@alauda/ui 6.1.6-beta.3 → 6.2.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alauda-ui.metadata.json +1 -1
- package/bundles/alauda-ui.umd.js +54 -53
- package/bundles/alauda-ui.umd.js.map +1 -1
- package/bundles/alauda-ui.umd.min.js +1 -1
- package/bundles/alauda-ui.umd.min.js.map +1 -1
- package/esm2015/accordion/accordion-item/accordion-item.component.ngfactory.js +2 -2
- package/esm2015/alauda-ui.ngsummary.json +1 -1
- package/esm2015/autocomplete/autocomplete.component.js +1 -1
- package/esm2015/autocomplete/autocomplete.component.scss.ngstyle.js +1 -1
- package/esm2015/autocomplete/suggestion/suggestion.component.js +1 -1
- package/esm2015/autocomplete/suggestion/suggestion.component.scss.ngstyle.js +1 -1
- package/esm2015/back-top/back-top.component.ngfactory.js +2 -2
- package/esm2015/breadcrumb/breadcrumb-item.component.ngfactory.js +2 -2
- package/esm2015/button/button.component.js +1 -1
- package/esm2015/button/button.component.ngfactory.js +2 -2
- package/esm2015/button/button.component.scss.ngstyle.js +1 -1
- package/esm2015/card/card.component.js +1 -1
- package/esm2015/card/card.component.scss.ngstyle.js +1 -1
- package/esm2015/checkbox/checkbox.component.js +4 -4
- package/esm2015/checkbox/checkbox.component.ngfactory.js +3 -3
- package/esm2015/checkbox/checkbox.component.ngsummary.json +1 -1
- package/esm2015/checkbox/checkbox.component.scss.ngstyle.js +1 -1
- package/esm2015/color-picker/color-picker.component.js +1 -1
- package/esm2015/color-picker/color-picker.component.scss.ngstyle.js +1 -1
- package/esm2015/date-picker/calendar/header/component.ngfactory.js +5 -5
- package/esm2015/date-picker/trigger/trigger.component.js +1 -1
- package/esm2015/date-picker/trigger/trigger.component.ngfactory.js +9 -9
- package/esm2015/date-picker/trigger/trigger.style.scss.shim.ngstyle.js +1 -1
- package/esm2015/dialog/confirm-dialog/confirm-dialog.component.ngfactory.js +3 -3
- package/esm2015/dialog/dialog-content/dialog-header.component.ngfactory.js +2 -2
- package/esm2015/dialog/dialog.component.js +1 -1
- package/esm2015/dialog/dialog.component.scss.ngstyle.js +1 -1
- package/esm2015/drawer/component/drawer.component.js +1 -1
- package/esm2015/drawer/component/drawer.component.ngfactory.js +2 -2
- package/esm2015/drawer/component/drawer.component.scss.ngstyle.js +1 -1
- package/esm2015/dropdown/dropdown-button/dropdown-button.component.ngfactory.js +2 -2
- package/esm2015/dropdown/menu/menu.component.js +1 -1
- package/esm2015/dropdown/menu/menu.component.scss.ngstyle.js +1 -1
- package/esm2015/dropdown/menu-item/menu-item.component.js +1 -1
- package/esm2015/dropdown/menu-item/menu-item.component.scss.ngstyle.js +1 -1
- package/esm2015/dropdown/submenu/submenu.component.js +1 -1
- package/esm2015/dropdown/submenu/submenu.component.ngfactory.js +2 -2
- package/esm2015/dropdown/submenu/submenu.component.scss.ngstyle.js +1 -1
- package/esm2015/icon/icon.component.js +4 -4
- package/esm2015/icon/icon.component.ngfactory.js +4 -4
- package/esm2015/icon/icon.component.ngsummary.json +1 -1
- package/esm2015/icon/icon.module.ngfactory.js +1 -1
- package/esm2015/inline-alert/inline-alert.component.js +1 -1
- package/esm2015/inline-alert/inline-alert.component.ngfactory.js +4 -4
- package/esm2015/inline-alert/inline-alert.component.scss.ngstyle.js +1 -1
- package/esm2015/input/input.component.js +3 -5
- package/esm2015/input/input.component.ngfactory.js +1 -1
- package/esm2015/input/input.component.ngsummary.json +1 -1
- package/esm2015/input/input.component.scss.ngstyle.js +1 -1
- package/esm2015/input/number-input/number-input.component.js +1 -1
- package/esm2015/input/number-input/number-input.component.ngfactory.js +3 -3
- package/esm2015/input/number-input/number-input.component.scss.ngstyle.js +1 -1
- package/esm2015/input/search/search.component.ngfactory.js +6 -6
- package/esm2015/input/tags-input/tags-input.component.js +1 -1
- package/esm2015/message/message.component.js +1 -1
- package/esm2015/message/message.component.ngfactory.js +2 -2
- package/esm2015/message/message.component.scss.ngstyle.js +1 -1
- package/esm2015/notification/notification.component.js +1 -1
- package/esm2015/notification/notification.component.ngfactory.js +3 -3
- package/esm2015/notification/notification.component.scss.ngstyle.js +1 -1
- package/esm2015/paginator/paginator.component.js +1 -1
- package/esm2015/paginator/paginator.component.ngfactory.js +7 -7
- package/esm2015/paginator/paginator.component.scss.ngstyle.js +1 -1
- package/esm2015/public-api.ngsummary.json +1 -1
- package/esm2015/radio/radio-button/radio-button.component.js +1 -1
- package/esm2015/radio/radio-button/radio-button.component.ngfactory.js +2 -2
- package/esm2015/radio/radio-button/radio-button.component.scss.ngstyle.js +1 -1
- package/esm2015/radio/radio.component.js +1 -1
- package/esm2015/radio/radio.component.scss.ngstyle.js +1 -1
- package/esm2015/select/multi-select/multi-select.component.js +1 -1
- package/esm2015/select/multi-select/multi-select.component.ngfactory.js +4 -4
- package/esm2015/select/multi-select/multi-select.component.scss.ngstyle.js +1 -1
- package/esm2015/select/option/option.component.js +1 -1
- package/esm2015/select/option/option.component.ngfactory.js +2 -2
- package/esm2015/select/option/option.component.scss.ngstyle.js +1 -1
- package/esm2015/select/select.component.js +1 -1
- package/esm2015/select/select.component.ngfactory.js +4 -4
- package/esm2015/select/select.component.scss.ngstyle.js +1 -1
- package/esm2015/steps/steps.component.ngfactory.js +3 -3
- package/esm2015/table/table-cell.component.ngfactory.js +2 -2
- package/esm2015/tabs/tab-group.component.ngfactory.js +3 -3
- package/esm2015/tabs/tab-header.component.ngfactory.js +3 -3
- package/esm2015/tag/tag.component.ngfactory.js +3 -3
- package/esm2015/theme/public-api.js +2 -2
- package/esm2015/theme/public-api.ngsummary.json +1 -1
- package/esm2015/theme/theme-picker.pipe.js +36 -0
- package/esm2015/theme/{theme.pipe.ngsummary.json → theme-picker.pipe.ngsummary.json} +1 -1
- package/esm2015/theme/theme.module.js +4 -4
- package/esm2015/theme/theme.module.ngfactory.js +1 -1
- package/esm2015/theme/theme.module.ngsummary.json +1 -1
- package/esm2015/theme/theme.service.js +10 -10
- package/esm2015/theme/theme.service.ngsummary.json +1 -1
- package/esm2015/theme/theme.types.js +1 -1
- package/esm2015/time-picker/component.ngfactory.js +5 -5
- package/esm2015/time-picker/panel/panel.component.js +1 -1
- package/esm2015/time-picker/panel/panel.style.scss.ngstyle.js +1 -1
- package/esm2015/tooltip/tooltip.component.js +1 -1
- package/esm2015/tooltip/tooltip.component.scss.ngstyle.js +1 -1
- package/esm2015/tree-select/tree-node/tree-node.component.ngfactory.js +4 -4
- package/esm2015/tree-select/tree-select.component.js +1 -1
- package/esm2015/tree-select/tree-select.component.ngfactory.js +4 -4
- package/esm2015/tree-select/tree-select.component.scss.ngstyle.js +1 -1
- package/fesm2015/alauda-ui.js +51 -50
- package/fesm2015/alauda-ui.js.map +1 -1
- package/input/input.component.d.ts +0 -1
- package/package.json +1 -1
- package/theme/_base-var.scss +19 -19
- package/theme/_mixin.scss +64 -47
- package/theme/_pattern.scss +15 -15
- package/theme/_var.scss +17 -17
- package/theme/public-api.d.ts +1 -1
- package/theme/style.css +95 -87
- package/theme/{theme.pipe.d.ts → theme-picker.pipe.d.ts} +1 -1
- package/theme/theme.service.d.ts +2 -2
- package/theme/theme.types.d.ts +2 -2
- package/esm2015/theme/theme.pipe.js +0 -33
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Pipe, } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
import { takeUntil } from 'rxjs/operators';
|
|
4
|
-
import { ThemeService } from './theme.service';
|
|
5
|
-
export class ThemePipe {
|
|
6
|
-
constructor(themeService, cdr) {
|
|
7
|
-
this.destroy$$ = new Subject();
|
|
8
|
-
themeService.currentAppTheme$
|
|
9
|
-
.pipe(takeUntil(this.destroy$$))
|
|
10
|
-
.subscribe(theme => {
|
|
11
|
-
this.currentTheme = theme;
|
|
12
|
-
cdr.markForCheck();
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
transform(v) {
|
|
16
|
-
if (v instanceof Function) {
|
|
17
|
-
return v(this.currentTheme);
|
|
18
|
-
}
|
|
19
|
-
return v[this.currentTheme];
|
|
20
|
-
}
|
|
21
|
-
ngOnDestroy() {
|
|
22
|
-
this.destroy$$.next();
|
|
23
|
-
this.destroy$$.complete();
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
ThemePipe.decorators = [
|
|
27
|
-
{ type: Pipe, args: [{ name: 'auiTheme', pure: false },] }
|
|
28
|
-
];
|
|
29
|
-
ThemePipe.ctorParameters = () => [
|
|
30
|
-
{ type: ThemeService },
|
|
31
|
-
{ type: ChangeDetectorRef }
|
|
32
|
-
];
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhlbWUucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90aGVtZS90aGVtZS5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxpQkFBaUIsRUFFakIsSUFBSSxHQUVMLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDL0IsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRTNDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUkvQyxNQUFNLE9BQU8sU0FBUztJQUlwQixZQUFZLFlBQTBCLEVBQUUsR0FBc0I7UUFGN0MsY0FBUyxHQUFHLElBQUksT0FBTyxFQUFRLENBQUM7UUFHL0MsWUFBWSxDQUFDLGdCQUFnQjthQUMxQixJQUFJLENBQUMsU0FBUyxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQzthQUMvQixTQUFTLENBQUMsS0FBSyxDQUFDLEVBQUU7WUFDakIsSUFBSSxDQUFDLFlBQVksR0FBRyxLQUFLLENBQUM7WUFDMUIsR0FBRyxD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