From e90199d94145564d82075d35f7866555a01acfcf Mon Sep 17 00:00:00 2001 From: roll314 Date: Mon, 29 Apr 2019 15:17:24 +0300 Subject: [PATCH] fix(autocomplete): Autocomplete is not built properly (#117) * fix(autocomplete): Autocomplete is not built properly * fix(autocomplete): Autocomplete is not built properly --- src/dev-app/system-config.ts | 1 + ...sconfig-build.json => tsconfig.build.json} | 0 .../styles/typography/_all-typography.scss | 25 ++++++++-------- src/lib/core/theming/_all-theme.scss | 29 +++++++++---------- src/lib/public-api.ts | 1 + 5 files changed, 29 insertions(+), 27 deletions(-) rename src/lib/autocomplete/{tsconfig-build.json => tsconfig.build.json} (100%) diff --git a/src/dev-app/system-config.ts b/src/dev-app/system-config.ts index 46fa0ec5c..d1d5fbd63 100644 --- a/src/dev-app/system-config.ts +++ b/src/dev-app/system-config.ts @@ -60,6 +60,7 @@ System.config({ '@ptsecurity/mosaic': 'dist/packages/mosaic/index.js', + '@ptsecurity/mosaic/autocomplete': 'dist/packages/mosaic/autocomplete/index.js', '@ptsecurity/mosaic/button': 'dist/packages/mosaic/button/index.js', '@ptsecurity/mosaic/button-toggle': 'dist/packages/mosaic/button-toggle/index.js', '@ptsecurity/mosaic/core': 'dist/packages/mosaic/core/index.js', diff --git a/src/lib/autocomplete/tsconfig-build.json b/src/lib/autocomplete/tsconfig.build.json similarity index 100% rename from src/lib/autocomplete/tsconfig-build.json rename to src/lib/autocomplete/tsconfig.build.json diff --git a/src/lib/core/styles/typography/_all-typography.scss b/src/lib/core/styles/typography/_all-typography.scss index ea3aa9ae4..55797691e 100644 --- a/src/lib/core/styles/typography/_all-typography.scss +++ b/src/lib/core/styles/typography/_all-typography.scss @@ -1,8 +1,9 @@ @import './typography'; @import '../alerts'; @import '../badges'; -@import '../../../button/button-theme'; +@import '../../../autocomplete/autocomplete-theme'; @import '../../../button-toggle/button-toggle-theme'; +@import '../../../button/button-theme'; @import '../../../checkbox/checkbox-theme'; @import '../../../datepicker/datepicker-theme'; @import '../../../dropdown/dropdown-theme'; @@ -12,17 +13,17 @@ @import '../../../list/list-theme'; @import '../../../modal/modal-theme'; @import '../../../navbar/navbar-theme'; -@import '../../option/option-theme'; -@import '../../../sidepanel/sidepanel-theme'; @import '../../../radio/radio-theme'; +@import '../../../select/select-theme'; +@import '../../../sidepanel/sidepanel-theme'; @import '../../../tabs/tabs-theme'; @import '../../../tags/tag-theme'; @import '../../../textarea/textarea-theme'; -@import '../../../tooltip/tooltip-theme'; @import '../../../toggle/toggle-theme'; -@import '../../../tree/tree-theme'; -@import '../../../select/select-theme'; +@import '../../../tooltip/tooltip-theme'; @import '../../../tree-select/tree-select-theme'; +@import '../../../tree/tree-theme'; +@import '../../option/option-theme'; @mixin mosaic-typography($config: null) { @@ -33,9 +34,10 @@ @include mc-base-typography($config); @include mc-alert-typography($config); + @include mc-autocomplete-typography($config); @include mc-badge-typography($config); - @include mc-button-typography($config); @include mc-button-toggle-typography($config); + @include mc-button-typography($config); @include mc-checkbox-typography($config); @include mc-datepicker-typography($config); @include mc-dropdown-typography($config); @@ -46,15 +48,14 @@ @include mc-modal-typography($config); @include mc-navbar-typography($config); @include mc-option-typography($config); - @include mc-sidepanel-typography($config); - @include mc-tag-typography($config); @include mc-radio-typography($config); + @include mc-select-typography($config); + @include mc-sidepanel-typography($config); @include mc-tabs-typography($config); + @include mc-tag-typography($config); @include mc-textarea-typography($config); @include mc-toggle-typography($config); @include mc-tooltip-typography($config); - @include mc-tree-typography($config); - @include mc-tag-typography($config); - @include mc-select-typography($config); @include mc-tree-select-typography($config); + @include mc-tree-typography($config); } diff --git a/src/lib/core/theming/_all-theme.scss b/src/lib/core/theming/_all-theme.scss index 58f4da96f..23659bee6 100644 --- a/src/lib/core/theming/_all-theme.scss +++ b/src/lib/core/theming/_all-theme.scss @@ -2,50 +2,50 @@ @import '../core'; @import '../styles/badges'; @import '../styles/alerts'; -@import '../../button/button-theme'; +@import '../../autocomplete/autocomplete-theme'; @import '../../button-toggle/button-toggle-theme'; +@import '../../button/button-theme'; @import '../../card/card-theme'; @import '../../checkbox/checkbox-theme'; @import '../../datepicker/datepicker-theme'; @import '../../dropdown/dropdown-theme'; @import '../../form-field/form-field-theme'; -@import '../../input/input-theme'; @import '../../icon/icon-theme'; +@import '../../input/input-theme'; @import '../../link/link-theme'; @import '../../list/list-theme'; @import '../../modal/modal-theme'; @import '../../navbar/navbar-theme'; -@import '../option/option-theme'; @import '../../progress-bar/progress-bar-theme'; @import '../../progress-spinner/progress-spinner-theme'; @import '../../radio/radio-theme'; @import '../../select/select-theme'; +@import '../../sidepanel/sidepanel-theme'; +@import '../../splitter/splitter-theme'; @import '../../splitter/splitter-theme'; @import '../../tabs/tabs-theme'; @import '../../tags/tag-theme'; @import '../../textarea/textarea-theme'; -@import '../../tooltip/tooltip-theme'; @import '../../toggle/toggle-theme'; -@import '../../splitter/splitter-theme'; -@import '../../sidepanel/sidepanel-theme'; -@import '../../tree/tree-theme'; +@import '../../tooltip/tooltip-theme'; @import '../../tree-select/tree-select-theme'; -@import '../../autocomplete/autocomplete-theme'; +@import '../../tree/tree-theme'; +@import '../option/option-theme'; @import '../visual/panel-theme'; @mixin mosaic-theme($theme) { @include mc-core-theme($theme); - @include mc-alert-theme($theme); + @include mc-autocomplete-theme($theme); @include mc-badge-theme($theme); @include mc-button-theme($theme); @include mc-button-toggle-theme($theme); @include mc-card-theme($theme); + @include mc-checkbox-theme($theme); @include mc-datepicker-theme($theme); @include mc-dropdown-theme($theme); - @include mc-checkbox-theme($theme); @include mc-form-field-theme($theme); @include mc-icon-theme($theme); @include mc-input-theme($theme); @@ -59,16 +59,15 @@ @include mc-progress-spinner-theme($theme); @include mc-radio-theme($theme); @include mc-select-theme($theme); + @include mc-sidepanel-theme($theme); + @include mc-splitter-theme($theme); @include mc-splitter-theme($theme); @include mc-tabs-theme($theme); @include mc-tag-theme($theme); @include mc-textarea-theme($theme); + @include mc-textarea-theme($theme); @include mc-toggle-theme($theme); @include mc-tooltip-theme($theme); - @include mc-textarea-theme($theme); - @include mc-splitter-theme($theme); - @include mc-sidepanel-theme($theme); - @include mc-tree-theme($theme); @include mc-tree-select-theme($theme); - @include mc-autocomplete-theme($theme); + @include mc-tree-theme($theme); } diff --git a/src/lib/public-api.ts b/src/lib/public-api.ts index c979a98ff..68dfb551b 100644 --- a/src/lib/public-api.ts +++ b/src/lib/public-api.ts @@ -2,6 +2,7 @@ export * from './version'; export * from '@ptsecurity/mosaic/core'; +export * from '@ptsecurity/mosaic/autocomplete'; export * from '@ptsecurity/mosaic/button'; export * from '@ptsecurity/mosaic/button-toggle'; export * from '@ptsecurity/mosaic/card';