@elderbyte/ngx-starter 14.1.1 → 14.2.2

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.
Files changed (35) hide show
  1. package/esm2020/lib/components/navigation/toolbar/toolbar/elder-toolbar.component.mjs +29 -11
  2. package/esm2020/lib/components/public_api.mjs +2 -1
  3. package/esm2020/lib/components/shell/elder-shell.module.mjs +5 -4
  4. package/esm2020/lib/components/shell/header/elder-app-header/elder-app-header.component.mjs +51 -14
  5. package/esm2020/lib/components/shell/shell/elder-shell.component.mjs +47 -22
  6. package/esm2020/lib/components/theme/elder-theme-applier.directive.mjs +62 -0
  7. package/esm2020/lib/components/theme/elder-theme-preference.service.mjs +62 -0
  8. package/esm2020/lib/components/theme/elder-theme-toggle/elder-theme-toggle.component.mjs +72 -0
  9. package/esm2020/lib/components/theme/elder-theme.directive.mjs +61 -0
  10. package/esm2020/lib/components/theme/elder-theme.module.mjs +74 -0
  11. package/esm2020/lib/components/theme/elder-theme.service.mjs +123 -0
  12. package/esm2020/lib/components/theme/known-elder-themes.mjs +6 -0
  13. package/esm2020/lib/components/theme/public_api.mjs +2 -0
  14. package/esm2020/lib/components/theme/theme-spec.mjs +15 -0
  15. package/fesm2015/elderbyte-ngx-starter.mjs +619 -119
  16. package/fesm2015/elderbyte-ngx-starter.mjs.map +1 -1
  17. package/fesm2020/elderbyte-ngx-starter.mjs +616 -119
  18. package/fesm2020/elderbyte-ngx-starter.mjs.map +1 -1
  19. package/lib/components/navigation/toolbar/toolbar/elder-toolbar.component.d.ts +10 -5
  20. package/lib/components/public_api.d.ts +1 -0
  21. package/lib/components/shell/elder-shell.module.d.ts +2 -1
  22. package/lib/components/shell/header/elder-app-header/elder-app-header.component.d.ts +33 -6
  23. package/lib/components/shell/shell/elder-shell.component.d.ts +16 -6
  24. package/lib/components/theme/elder-theme-applier.directive.d.ts +36 -0
  25. package/lib/components/theme/elder-theme-preference.service.d.ts +33 -0
  26. package/lib/components/theme/elder-theme-toggle/elder-theme-toggle.component.d.ts +37 -0
  27. package/lib/components/theme/elder-theme.directive.d.ts +38 -0
  28. package/lib/components/theme/elder-theme.module.d.ts +22 -0
  29. package/lib/components/theme/elder-theme.service.d.ts +51 -0
  30. package/lib/components/theme/known-elder-themes.d.ts +5 -0
  31. package/lib/components/theme/public_api.d.ts +1 -0
  32. package/lib/components/theme/theme-spec.d.ts +18 -0
  33. package/package.json +1 -1
  34. package/src/lib/components/theme/elder-theme-toggle/elder-theme-toggle.component.scss +0 -0
  35. package/theming/_elder-scrollbar-theme.scss +1 -1
@@ -1,11 +1,13 @@
1
- import { OnInit, TemplateRef } from '@angular/core';
1
+ import { OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
2
  import { ElderToolbarService } from '../elder-toolbar.service';
3
- import { Observable } from 'rxjs';
3
+ import { BehaviorSubject, Observable } from 'rxjs';
4
4
  import { ToolbarColumnPosition } from '../toolbar-column-position';
5
5
  import { ThemePalette } from '@angular/material/core';
6
+ import { ElderThemeService } from '../../../theme/elder-theme.service';
6
7
  import * as i0 from "@angular/core";
7
- export declare class ElderToolbarComponent implements OnInit {
8
+ export declare class ElderToolbarComponent implements OnInit, OnDestroy {
8
9
  private toolbarService;
10
+ private themeService;
9
11
  /***************************************************************************
10
12
  * *
11
13
  * Fields *
@@ -13,19 +15,22 @@ export declare class ElderToolbarComponent implements OnInit {
13
15
  **************************************************************************/
14
16
  private readonly logger;
15
17
  /** The color of the Toolbar */
16
- color: ThemePalette;
18
+ readonly color$: BehaviorSubject<ThemePalette>;
19
+ private readonly destroy$;
20
+ set color(c: ThemePalette);
17
21
  /***************************************************************************
18
22
  * *
19
23
  * Constructor *
20
24
  * *
21
25
  **************************************************************************/
22
- constructor(toolbarService: ElderToolbarService);
26
+ constructor(toolbarService: ElderToolbarService, themeService: ElderThemeService);
23
27
  /***************************************************************************
24
28
  * *
25
29
  * Life Cycle *
26
30
  * *
27
31
  **************************************************************************/
28
32
  ngOnInit(): void;
33
+ ngOnDestroy(): void;
29
34
  /***************************************************************************
30
35
  * *
31
36
  * Public API *
@@ -1,3 +1,4 @@
1
+ export * from './theme/public_api';
1
2
  export * from './access-denied/elder-access-denied.module';
2
3
  export * from './expand-toggle-button/elder-expand-toggle-button.module';
3
4
  export * from './multi-autocomplete/elder-multi-auto-complete.module';
@@ -14,6 +14,7 @@ import * as i12 from "../navigation/toolbar/elder-toolbar.module";
14
14
  import * as i13 from "@angular/flex-layout";
15
15
  import * as i14 from "@ngx-translate/core";
16
16
  import * as i15 from "../panels/elder-panel.module";
17
+ import * as i16 from "../theme/elder-theme.module";
17
18
  export * from './shell/elder-shell.component';
18
19
  export { ElderShellNavigationToggleComponent } from './shell-navigation-toggle/elder-shell-navigation-toggle.component';
19
20
  export { DrawerOutletBinding } from './drawers/drawer-outlet-binding';
@@ -25,6 +26,6 @@ export { ShellContentSlot } from './shell-content-slot';
25
26
  export { ElderAppHeaderComponent } from './header/elder-app-header/elder-app-header.component';
26
27
  export declare class ElderShellModule {
27
28
  static ɵfac: i0.ɵɵFactoryDeclaration<ElderShellModule, never>;
28
- static ɵmod: i0.ɵɵNgModuleDeclaration<ElderShellModule, [typeof i1.ElderShellComponent, typeof i1.ElderShellSideLeftDirective, typeof i1.ElderShellSideRightDirective, typeof i1.ElderShellCenterDirective, typeof i2.ElderShellNavigationToggleComponent, typeof i3.ElderShellSlotDirective, typeof i4.ElderAppHeaderComponent], [typeof i5.CommonModule, typeof i6.RouterModule, typeof i7.MatSidenavModule, typeof i8.MatToolbarModule, typeof i9.MatIconModule, typeof i10.MatListModule, typeof i11.MatButtonModule, typeof i12.ElderToolbarModule, typeof i13.FlexLayoutModule, typeof i14.TranslateModule, typeof i15.ElderPanelModule], [typeof i1.ElderShellComponent, typeof i1.ElderShellSideLeftDirective, typeof i1.ElderShellSideRightDirective, typeof i1.ElderShellCenterDirective, typeof i2.ElderShellNavigationToggleComponent, typeof i3.ElderShellSlotDirective, typeof i4.ElderAppHeaderComponent]>;
29
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ElderShellModule, [typeof i1.ElderShellComponent, typeof i1.ElderShellSideLeftDirective, typeof i1.ElderShellSideRightDirective, typeof i1.ElderShellCenterDirective, typeof i2.ElderShellNavigationToggleComponent, typeof i3.ElderShellSlotDirective, typeof i4.ElderAppHeaderComponent], [typeof i5.CommonModule, typeof i6.RouterModule, typeof i7.MatSidenavModule, typeof i8.MatToolbarModule, typeof i9.MatIconModule, typeof i10.MatListModule, typeof i11.MatButtonModule, typeof i12.ElderToolbarModule, typeof i13.FlexLayoutModule, typeof i14.TranslateModule, typeof i15.ElderPanelModule, typeof i16.ElderThemeModule], [typeof i1.ElderShellComponent, typeof i1.ElderShellSideLeftDirective, typeof i1.ElderShellSideRightDirective, typeof i1.ElderShellCenterDirective, typeof i2.ElderShellNavigationToggleComponent, typeof i3.ElderShellSlotDirective, typeof i4.ElderAppHeaderComponent]>;
29
30
  static ɵinj: i0.ɵɵInjectorDeclaration<ElderShellModule>;
30
31
  }
@@ -1,16 +1,43 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnInit, OnDestroy } from '@angular/core';
2
2
  import { ThemePalette } from '@angular/material/core';
3
+ import { ElderThemeService } from '../../../theme/elder-theme.service';
4
+ import { BehaviorSubject } from 'rxjs';
3
5
  import * as i0 from "@angular/core";
4
- export declare class ElderAppHeaderComponent implements OnInit {
6
+ export declare class ElderAppHeaderComponent implements OnInit, OnDestroy {
7
+ private readonly themeService;
8
+ /***************************************************************************
9
+ * *
10
+ * Fields *
11
+ * *
12
+ **************************************************************************/
5
13
  icon: string;
6
- iconColor: ThemePalette;
7
14
  title: string;
8
15
  subTitle: string;
9
16
  subTitleLink: string;
10
17
  version: string;
11
- color: ThemePalette;
12
- constructor();
18
+ readonly color$: BehaviorSubject<ThemePalette>;
19
+ readonly iconColor$: BehaviorSubject<ThemePalette>;
20
+ private readonly destroy$;
21
+ /***************************************************************************
22
+ * *
23
+ * Constructor *
24
+ * *
25
+ **************************************************************************/
26
+ constructor(themeService: ElderThemeService);
27
+ /***************************************************************************
28
+ * *
29
+ * Life Cycle *
30
+ * *
31
+ **************************************************************************/
13
32
  ngOnInit(): void;
33
+ ngOnDestroy(): void;
34
+ /***************************************************************************
35
+ * *
36
+ * Properties *
37
+ * *
38
+ **************************************************************************/
39
+ set color(c: ThemePalette);
40
+ set iconColor(c: ThemePalette);
14
41
  static ɵfac: i0.ɵɵFactoryDeclaration<ElderAppHeaderComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<ElderAppHeaderComponent, "elder-app-header", never, { "icon": "icon"; "iconColor": "iconColor"; "title": "title"; "subTitle": "subTitle"; "subTitleLink": "subTitleLink"; "version": "version"; "color": "color"; }, {}, never, ["*"], false>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<ElderAppHeaderComponent, "elder-app-header", never, { "icon": "icon"; "title": "title"; "subTitle": "subTitle"; "subTitleLink": "subTitleLink"; "version": "version"; "color": "color"; "iconColor": "iconColor"; }, {}, never, ["*"], false>;
16
43
  }
@@ -2,8 +2,9 @@ import { ChangeDetectorRef, OnDestroy, OnInit, TemplateRef, ViewContainerRef } f
2
2
  import { ElderShellService } from '../elder-shell.service';
3
3
  import { MatSidenav } from '@angular/material/sidenav';
4
4
  import { ElderRouteOutletDrawerService } from '../drawers/elder-route-outlet-drawer.service';
5
- import { Observable } from 'rxjs';
5
+ import { BehaviorSubject, Observable } from 'rxjs';
6
6
  import { ThemePalette } from '@angular/material/core';
7
+ import { ElderThemeService } from '../../theme/elder-theme.service';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class ElderShellSideLeftDirective {
9
10
  templateRef: TemplateRef<any>;
@@ -30,6 +31,7 @@ export declare class ElderShellComponent implements OnInit, OnDestroy {
30
31
  private shellService;
31
32
  private outletDrawerService;
32
33
  private changeDetectorRef;
34
+ private themeService;
33
35
  /***************************************************************************
34
36
  * *
35
37
  * Fields *
@@ -38,8 +40,6 @@ export declare class ElderShellComponent implements OnInit, OnDestroy {
38
40
  private readonly logger;
39
41
  /** Controls if the SideNav toggle should be displayed. Default: true */
40
42
  sideNavToggleEnabled: boolean;
41
- color: ThemePalette;
42
- menuColor: ThemePalette;
43
43
  leftSideAutoFocus: boolean;
44
44
  rightSideAutoFocus: boolean;
45
45
  sideContentLeft: TemplateRef<any>;
@@ -51,13 +51,15 @@ export declare class ElderShellComponent implements OnInit, OnDestroy {
51
51
  readonly headerTemplate$: Observable<TemplateRef<any>>;
52
52
  readonly centerTemplate$: Observable<TemplateRef<any>>;
53
53
  readonly footerTemplate$: Observable<TemplateRef<any>>;
54
- private _sub;
54
+ private readonly destroy$;
55
+ color: ThemePalette;
56
+ readonly menuColor$: BehaviorSubject<ThemePalette>;
55
57
  /***************************************************************************
56
58
  * *
57
59
  * Constructor *
58
60
  * *
59
61
  **************************************************************************/
60
- constructor(shellService: ElderShellService, outletDrawerService: ElderRouteOutletDrawerService, changeDetectorRef: ChangeDetectorRef);
62
+ constructor(shellService: ElderShellService, outletDrawerService: ElderRouteOutletDrawerService, changeDetectorRef: ChangeDetectorRef, themeService: ElderThemeService);
61
63
  /***************************************************************************
62
64
  * *
63
65
  * Life Cycle *
@@ -65,6 +67,13 @@ export declare class ElderShellComponent implements OnInit, OnDestroy {
65
67
  **************************************************************************/
66
68
  ngOnInit(): void;
67
69
  ngOnDestroy(): void;
70
+ /***************************************************************************
71
+ * *
72
+ * Properties *
73
+ * *
74
+ **************************************************************************/
75
+ set menuColor(c: ThemePalette);
76
+ get menuColor(): ThemePalette;
68
77
  /***************************************************************************
69
78
  * *
70
79
  * Public API *
@@ -79,8 +88,9 @@ export declare class ElderShellComponent implements OnInit, OnDestroy {
79
88
  * Private methods *
80
89
  * *
81
90
  **************************************************************************/
91
+ private adjustColorsForTheme;
82
92
  private isContained;
83
93
  private checkSoon;
84
94
  static ɵfac: i0.ɵɵFactoryDeclaration<ElderShellComponent, never>;
85
- static ɵcmp: i0.ɵɵComponentDeclaration<ElderShellComponent, "elder-shell, ebs-shell", never, { "sideNavToggleEnabled": "sideNavToggleEnabled"; "color": "color"; "menuColor": "menuColor"; "leftSideAutoFocus": "leftSideAutoFocus"; "rightSideAutoFocus": "rightSideAutoFocus"; }, {}, ["sideContentLeft", "sideContentRight", "centerContent"], never, false>;
95
+ static ɵcmp: i0.ɵɵComponentDeclaration<ElderShellComponent, "elder-shell, ebs-shell", never, { "sideNavToggleEnabled": "sideNavToggleEnabled"; "leftSideAutoFocus": "leftSideAutoFocus"; "rightSideAutoFocus": "rightSideAutoFocus"; "color": "color"; "menuColor": "menuColor"; }, {}, ["sideContentLeft", "sideContentRight", "centerContent"], never, false>;
86
96
  }
@@ -0,0 +1,36 @@
1
+ import { OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
+ import { ElderThemeService } from './elder-theme.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ElderThemeApplierDirective implements OnInit, OnDestroy {
5
+ private readonly themeService;
6
+ private readonly renderer;
7
+ /***************************************************************************
8
+ * *
9
+ * Fields *
10
+ * *
11
+ **************************************************************************/
12
+ private readonly logger;
13
+ private activeThemeCss;
14
+ private readonly destroy$;
15
+ /***************************************************************************
16
+ * *
17
+ * Constructor *
18
+ * *
19
+ **************************************************************************/
20
+ constructor(themeService: ElderThemeService, renderer: Renderer2);
21
+ /***************************************************************************
22
+ * *
23
+ * Life Cycle *
24
+ * *
25
+ **************************************************************************/
26
+ ngOnInit(): void;
27
+ ngOnDestroy(): void;
28
+ /***************************************************************************
29
+ * *
30
+ * Private methods *
31
+ * *
32
+ **************************************************************************/
33
+ private activateTheme;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElderThemeApplierDirective, never>;
35
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ElderThemeApplierDirective, "[elderThemeApplier]", never, {}, {}, never, never, false>;
36
+ }
@@ -0,0 +1,33 @@
1
+ import { ElderThemeService } from './elder-theme.service';
2
+ import { WebLocalStorage } from '@elderbyte/ngx-simple-webstorage';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ElderThemePreferenceService {
5
+ private readonly themeService;
6
+ private readonly localStorage;
7
+ /***************************************************************************
8
+ * *
9
+ * Fields *
10
+ * *
11
+ **************************************************************************/
12
+ private readonly THEME_PREFERENCE_KEY;
13
+ /***************************************************************************
14
+ * *
15
+ * Constructor *
16
+ * *
17
+ **************************************************************************/
18
+ constructor(themeService: ElderThemeService, localStorage: WebLocalStorage);
19
+ /***************************************************************************
20
+ * *
21
+ * Public API *
22
+ * *
23
+ **************************************************************************/
24
+ activateThemeAndSave(themeId: string): void;
25
+ /***************************************************************************
26
+ * *
27
+ * Private methods *
28
+ * *
29
+ **************************************************************************/
30
+ private guessInitialTheme;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElderThemePreferenceService, never>;
32
+ static ɵprov: i0.ɵɵInjectableDeclaration<ElderThemePreferenceService>;
33
+ }
@@ -0,0 +1,37 @@
1
+ import { ElderThemeService } from '../elder-theme.service';
2
+ import { Observable } from 'rxjs';
3
+ import { ElderThemePreferenceService } from '../elder-theme-preference.service';
4
+ import * as i0 from "@angular/core";
5
+ declare type ToggleTheme = 'default' | 'secondary';
6
+ export declare class ElderThemeToggleComponent {
7
+ private readonly themeService;
8
+ private readonly themePreferenceService;
9
+ /***************************************************************************
10
+ * *
11
+ * Fields *
12
+ * *
13
+ **************************************************************************/
14
+ private readonly logger;
15
+ readonly activeToggleTheme$: Observable<ToggleTheme>;
16
+ /***************************************************************************
17
+ * *
18
+ * Constructor *
19
+ * *
20
+ **************************************************************************/
21
+ constructor(themeService: ElderThemeService, themePreferenceService: ElderThemePreferenceService);
22
+ /***************************************************************************
23
+ * *
24
+ * Public API *
25
+ * *
26
+ **************************************************************************/
27
+ onToggle(tggl: boolean): void;
28
+ /***************************************************************************
29
+ * *
30
+ * Private methods *
31
+ * *
32
+ **************************************************************************/
33
+ private decideToggleTheme;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElderThemeToggleComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<ElderThemeToggleComponent, "elder-theme-toggle", never, {}, {}, never, never, false>;
36
+ }
37
+ export {};
@@ -0,0 +1,38 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { ElderThemeService } from './elder-theme.service';
3
+ import { MatToolbar } from '@angular/material/toolbar';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Applies material theme palettes to material components.
7
+ */
8
+ export declare class ElderThemeDirective implements OnInit, OnDestroy {
9
+ private readonly matToolbar;
10
+ private readonly themeService;
11
+ /***************************************************************************
12
+ * *
13
+ * Fields *
14
+ * *
15
+ **************************************************************************/
16
+ private readonly destroy$;
17
+ /***************************************************************************
18
+ * *
19
+ * Constructor *
20
+ * *
21
+ **************************************************************************/
22
+ constructor(matToolbar: MatToolbar, themeService: ElderThemeService);
23
+ /***************************************************************************
24
+ * *
25
+ * Life Cycle *
26
+ * *
27
+ **************************************************************************/
28
+ ngOnInit(): void;
29
+ ngOnDestroy(): void;
30
+ /***************************************************************************
31
+ * *
32
+ * Private methods *
33
+ * *
34
+ **************************************************************************/
35
+ private applyTheme;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElderThemeDirective, [{ optional: true; host: true; }, null]>;
37
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ElderThemeDirective, "[elderTheme]", never, {}, {}, never, never, false>;
38
+ }
@@ -0,0 +1,22 @@
1
+ import { ElderThemePreferenceService } from './elder-theme-preference.service';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "./elder-theme-applier.directive";
4
+ import * as i2 from "./elder-theme-toggle/elder-theme-toggle.component";
5
+ import * as i3 from "./elder-theme.directive";
6
+ import * as i4 from "@angular/common";
7
+ import * as i5 from "@angular/material/slide-toggle";
8
+ import * as i6 from "@angular/material/icon";
9
+ import * as i7 from "@angular/forms";
10
+ export { ThemeSpec } from './theme-spec';
11
+ export { KnownElderThemes } from './known-elder-themes';
12
+ export { ElderThemeService } from './elder-theme.service';
13
+ export { ElderThemePreferenceService } from './elder-theme-preference.service';
14
+ export { ElderThemeApplierDirective } from './elder-theme-applier.directive';
15
+ export { ElderThemeToggleComponent } from './elder-theme-toggle/elder-theme-toggle.component';
16
+ export { ElderThemeDirective } from './elder-theme.directive';
17
+ export declare function themeInit(thpref: ElderThemePreferenceService): () => void;
18
+ export declare class ElderThemeModule {
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElderThemeModule, never>;
20
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ElderThemeModule, [typeof i1.ElderThemeApplierDirective, typeof i2.ElderThemeToggleComponent, typeof i3.ElderThemeDirective], [typeof i4.CommonModule, typeof i5.MatSlideToggleModule, typeof i6.MatIconModule, typeof i7.FormsModule], [typeof i1.ElderThemeApplierDirective, typeof i2.ElderThemeToggleComponent, typeof i3.ElderThemeDirective]>;
21
+ static ɵinj: i0.ɵɵInjectorDeclaration<ElderThemeModule>;
22
+ }
@@ -0,0 +1,51 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ThemeSpec } from './theme-spec';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ElderThemeService {
5
+ /***************************************************************************
6
+ * *
7
+ * Fields *
8
+ * *
9
+ **************************************************************************/
10
+ private readonly logger;
11
+ private readonly _activeTheme$;
12
+ private readonly _defaultTheme$;
13
+ private readonly _themes$;
14
+ /***************************************************************************
15
+ * *
16
+ * Constructor *
17
+ * *
18
+ **************************************************************************/
19
+ constructor();
20
+ /***************************************************************************
21
+ * *
22
+ * Properties *
23
+ * *
24
+ **************************************************************************/
25
+ get defaultTheme$(): Observable<ThemeSpec>;
26
+ get defaultThemeSnapshot(): ThemeSpec;
27
+ get themes$(): Observable<ThemeSpec[]>;
28
+ get themesSnapshot(): ThemeSpec[];
29
+ get activeThemeSnapshot(): ThemeSpec;
30
+ get activeTheme$(): Observable<ThemeSpec>;
31
+ /***************************************************************************
32
+ * *
33
+ * Public API *
34
+ * *
35
+ **************************************************************************/
36
+ activateTheme(themeId: string): void;
37
+ defaultTheme(themeId: string): void;
38
+ registerTheme(theme: ThemeSpec, markDefault?: boolean): void;
39
+ unregisterTheme(themeId: string): void;
40
+ clearThemes(): void;
41
+ /***************************************************************************
42
+ * *
43
+ * Private methods *
44
+ * *
45
+ **************************************************************************/
46
+ private findTheme;
47
+ private modifyThemes;
48
+ private cleanUpDefaultTheme;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElderThemeService, never>;
50
+ static ɵprov: i0.ɵɵInjectableDeclaration<ElderThemeService>;
51
+ }
@@ -0,0 +1,5 @@
1
+ import { ThemeSpec } from './theme-spec';
2
+ export declare class KnownElderThemes {
3
+ static ELDER_LIGHT: ThemeSpec;
4
+ static ELDER_DARK: ThemeSpec;
5
+ }
@@ -0,0 +1 @@
1
+ export * from './elder-theme.module';
@@ -0,0 +1,18 @@
1
+ import { ThemePalette } from '@angular/material/core';
2
+ export declare class ThemeSpec {
3
+ readonly id: string;
4
+ readonly name: string;
5
+ readonly cssClass: string;
6
+ readonly dark: boolean;
7
+ /**
8
+ * Hero Background is a background color which should
9
+ * highlight the app theme. Usually its the primary palette.
10
+ */
11
+ readonly heroBackground: ThemePalette;
12
+ /**
13
+ * Hero Icon is the color of icons which are displayed on
14
+ * top of hero backgrounds. It should look well on it.
15
+ */
16
+ readonly heroIconColor: ThemePalette;
17
+ constructor(id: string, name: string, cssClass: string, dark: boolean, heroBackground?: ThemePalette, heroIconColor?: ThemePalette);
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "14.1.1",
3
+ "version": "14.2.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.0.1",
6
6
  "@angular/core": "^14.0.1",
@@ -10,7 +10,7 @@
10
10
 
11
11
  /* width */
12
12
  ::-webkit-scrollbar {
13
- width: 10px;
13
+ width: 6px;
14
14
  }
15
15
 
16
16
  /* Track */