[ADF-theming-fix] Fix theming related issues (#2276)

* First steps

* Every package have separate entry points for styling mixins

* Moving to config dir, and using it in demo shell

* Remove webpack config include path magic from activiti-form package

* Fixing all the webpack common configs and using relative paths in the prebuilt themes

* Datatable header fix

* Update documentation
This commit is contained in:
Popovics András
2017-09-01 14:53:05 +01:00
committed by Mario Romano
parent 738290ce37
commit 407e11664a
72 changed files with 8936 additions and 7538 deletions

View File

@@ -19,9 +19,10 @@ module.exports = {
resolve: {
alias: {
"ng2-alfresco-core": helpers.root('../ng2-alfresco-core/index.ts')
"ng2-alfresco-core$": helpers.root('../ng2-alfresco-core/index.ts'),
"ng2-alfresco-core": helpers.root('../ng2-alfresco-core')
},
extensions: ['.ts', '.js'],
extensions: ['.ts', '.js', '.scss'],
symlinks: false,
modules: [helpers.root('../../ng2-components'), helpers.root('node_modules')]
},
@@ -67,10 +68,7 @@ module.exports = {
}, {
loader: "raw-loader"
}, {
loader: "sass-loader",
options: {
includePaths: [ path.resolve(__dirname, '../../ng2-alfresco-core/styles')]
}
loader: "sass-loader"
}],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},

View File

@@ -1,4 +1,4 @@
@import 'theming';
@import '~ng2-alfresco-core/styles/theming';
@import '../form';
.adf {

View File

@@ -1,4 +1,4 @@
@import 'theming';
@import '~ng2-alfresco-core/styles/theming';
@import '../form';
.adf {

View File

@@ -1,4 +1,4 @@
@import 'theming';
@import '~ng2-alfresco-core/styles/theming';
@import '../form';
.adf {

View File

@@ -1,5 +1,5 @@
@import '../form';
@import 'mixins';
@import '~ng2-alfresco-core/styles/mixins';
@mixin mat-dynamic-table-theme($theme) {
$foreground: map-get($theme, foreground);

View File

@@ -1,4 +1,4 @@
@import 'theming';
@import '~ng2-alfresco-core/styles/theming';
.adf {

View File

@@ -1,4 +1,4 @@
@import 'theming';
@import '~ng2-alfresco-core/styles/theming';
.adf {
&-date-editor {

View File

@@ -1,4 +1,4 @@
@import 'theming';
@import '~ng2-alfresco-core/styles/theming';
.adf {
&-dropdown-editor-select {

View File

@@ -1,4 +1,4 @@
@import 'theming';
@import '~ng2-alfresco-core/styles/theming';
.adf {
&-text-editor {

View File

@@ -1,5 +1,5 @@
@import './hyperlink/hyperlink.widget';
@import 'colors';
@import '~ng2-alfresco-core/styles/colors';
@mixin mat-form-theme($theme) {
$primary: map-get($theme, primary);

View File

@@ -1,4 +1,4 @@
@import 'theming';
@import '~ng2-alfresco-core/styles/theming';
@import '../form';
.adf {

View File

@@ -1,4 +1,4 @@
@import 'theming';
@import '~ng2-alfresco-core/styles/theming';
@import '../form';
.adf {

View File

@@ -1,4 +1,4 @@
@import 'theming';
@import '~ng2-alfresco-core/styles/theming';
@import '../form';
.adf {

View File

@@ -1,4 +1,4 @@
@import 'theming';
@import '~ng2-alfresco-core/styles/theming';
@import '../form';
.adf {

View File

@@ -1,4 +1,4 @@
@import 'theming';
@import '~ng2-alfresco-core/styles/theming';
@import '../form';
.adf {

View File

@@ -1,4 +1,4 @@
@import 'theming';
@import '~ng2-alfresco-core/styles/theming';
@import '../form';
.adf {

View File

@@ -1,4 +1,4 @@
@import 'theming';
@import '~ng2-alfresco-core/styles/theming';
@import '../form';
.adf {

View File

@@ -0,0 +1,9 @@
@import '../src/components/widgets/form';
@import '../src/components/widgets/container/container.widget';
@import '../src/components/widgets/dynamic-table/dynamic-table.widget';
@mixin alfresco-activity-form-theme($theme) {
@include mat-form-theme($theme);
@include mat-container-widget-theme($theme);
@include mat-dynamic-table-theme($theme);
}