@coreui/angular 4.7.17 → 5.0.0-rc.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.
Files changed (128) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +11 -1
  3. package/esm2022/lib/accordion/accordion/accordion.component.mjs +22 -16
  4. package/esm2022/lib/alert/alert.component.mjs +28 -36
  5. package/esm2022/lib/avatar/avatar.component.mjs +8 -5
  6. package/esm2022/lib/backdrop/backdrop.service.mjs +1 -2
  7. package/esm2022/lib/badge/badge.component.mjs +8 -4
  8. package/esm2022/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.mjs +5 -4
  9. package/esm2022/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.mjs +3 -3
  10. package/esm2022/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.mjs +6 -6
  11. package/esm2022/lib/button/button-close.directive.mjs +9 -3
  12. package/esm2022/lib/card/card.component.mjs +11 -8
  13. package/esm2022/lib/carousel/carousel/carousel.component.mjs +18 -17
  14. package/esm2022/lib/carousel/carousel-indicators/carousel-indicators.component.mjs +3 -3
  15. package/esm2022/lib/carousel/carousel-item/carousel-item.component.mjs +7 -7
  16. package/esm2022/lib/collapse/collapse.directive.mjs +30 -40
  17. package/esm2022/lib/coreui.types.mjs +1 -1
  18. package/esm2022/lib/dropdown/dropdown/dropdown.component.mjs +28 -49
  19. package/esm2022/lib/dropdown/dropdown-item/dropdown-item.directive.mjs +10 -2
  20. package/esm2022/lib/dropdown/dropdown-menu/dropdown-menu.directive.mjs +76 -40
  21. package/esm2022/lib/dropdown/dropdown.service.mjs +2 -2
  22. package/esm2022/lib/form/form-check/form-check-input.directive.mjs +10 -8
  23. package/esm2022/lib/grid/row.directive.mjs +4 -4
  24. package/esm2022/lib/header/header/header.component.mjs +3 -3
  25. package/esm2022/lib/modal/modal/modal.component.mjs +1 -1
  26. package/esm2022/lib/nav/nav.component.mjs +3 -3
  27. package/esm2022/lib/navbar/navbar.component.mjs +7 -11
  28. package/esm2022/lib/offcanvas/offcanvas/offcanvas.component.mjs +8 -4
  29. package/esm2022/lib/placeholder/placeholder.directive.mjs +11 -18
  30. package/esm2022/lib/popover/popover.directive.mjs +2 -2
  31. package/esm2022/lib/progress/progress-bar.component.mjs +21 -87
  32. package/esm2022/lib/progress/progress-bar.directive.mjs +112 -0
  33. package/esm2022/lib/progress/progress-stacked.component.mjs +19 -0
  34. package/esm2022/lib/progress/progress.component.mjs +25 -10
  35. package/esm2022/lib/progress/progress.module.mjs +15 -5
  36. package/esm2022/lib/progress/progress.type.mjs +2 -0
  37. package/esm2022/lib/progress/public_api.mjs +3 -1
  38. package/esm2022/lib/services/color-mode.service.mjs +73 -0
  39. package/esm2022/lib/services/in-memory-storage.service.mjs +33 -0
  40. package/esm2022/lib/services/local-storage.service.mjs +51 -0
  41. package/esm2022/lib/services/public_api.mjs +4 -1
  42. package/esm2022/lib/shared/public_api.mjs +2 -1
  43. package/esm2022/lib/shared/shared.module.mjs +5 -12
  44. package/esm2022/lib/shared/theme.directive.mjs +45 -0
  45. package/esm2022/lib/sidebar/public_api.mjs +2 -2
  46. package/esm2022/lib/sidebar/sidebar/sidebar.component.mjs +38 -47
  47. package/esm2022/lib/sidebar/sidebar-brand/sidebar-brand.component.mjs +3 -3
  48. package/esm2022/lib/sidebar/sidebar-nav/sidebar-nav-label.component.mjs +3 -3
  49. package/esm2022/lib/sidebar/sidebar-nav/sidebar-nav-link.component.mjs +8 -8
  50. package/esm2022/lib/sidebar/sidebar-nav/sidebar-nav.component.mjs +19 -15
  51. package/esm2022/lib/sidebar/sidebar-toggler/sidebar-toggler.directive.mjs +39 -0
  52. package/esm2022/lib/sidebar/sidebar.module.mjs +6 -6
  53. package/esm2022/lib/table/table.type.mjs +1 -1
  54. package/esm2022/lib/tabs/tab-content/tab-content.component.mjs +7 -7
  55. package/esm2022/lib/tabs/tab-content-ref.directive.mjs +12 -9
  56. package/esm2022/lib/tabs/tab-pane/tab-pane.component.mjs +5 -8
  57. package/esm2022/lib/toast/toast/toast.component.mjs +11 -9
  58. package/esm2022/lib/tooltip/tooltip.directive.mjs +2 -2
  59. package/esm2022/lib/utilities/public_api.mjs +4 -3
  60. package/esm2022/lib/utilities/shadow-on-scroll.directive.mjs +48 -0
  61. package/esm2022/lib/utilities/utilities.module.mjs +5 -29
  62. package/esm2022/lib/widget/widget-stat-a/widget-stat-a.component.mjs +2 -2
  63. package/esm2022/lib/widget/widget-stat-b/widget-stat-b.component.mjs +4 -4
  64. package/esm2022/lib/widget/widget-stat-c/widget-stat-c.component.mjs +14 -16
  65. package/esm2022/lib/widget/widget-stat-d/widget-stat-d.component.mjs +3 -3
  66. package/esm2022/lib/widget/widget-stat-e/widget-stat-e.component.mjs +2 -2
  67. package/esm2022/lib/widget/widget-stat-f/widget-stat-f.component.mjs +2 -2
  68. package/esm2022/public-api.mjs +2 -2
  69. package/fesm2022/coreui-angular.mjs +1124 -826
  70. package/fesm2022/coreui-angular.mjs.map +1 -1
  71. package/lib/accordion/accordion/accordion.component.d.ts +4 -6
  72. package/lib/alert/alert.component.d.ts +8 -12
  73. package/lib/avatar/avatar.component.d.ts +4 -3
  74. package/lib/badge/badge.component.d.ts +5 -3
  75. package/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.d.ts +1 -0
  76. package/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.d.ts +1 -1
  77. package/lib/button/button-close.directive.d.ts +3 -1
  78. package/lib/card/card.component.d.ts +3 -2
  79. package/lib/carousel/carousel/carousel.component.d.ts +4 -8
  80. package/lib/carousel/carousel-item/carousel-item.component.d.ts +1 -2
  81. package/lib/collapse/collapse.directive.d.ts +13 -13
  82. package/lib/coreui.types.d.ts +5 -3
  83. package/lib/dropdown/dropdown/dropdown.component.d.ts +10 -21
  84. package/lib/dropdown/dropdown-item/dropdown-item.directive.d.ts +5 -1
  85. package/lib/dropdown/dropdown-menu/dropdown-menu.directive.d.ts +13 -16
  86. package/lib/dropdown/dropdown.service.d.ts +0 -1
  87. package/lib/form/form-check/form-check-input.directive.d.ts +4 -3
  88. package/lib/nav/nav.component.d.ts +2 -2
  89. package/lib/navbar/navbar.component.d.ts +2 -5
  90. package/lib/offcanvas/offcanvas/offcanvas.component.d.ts +2 -1
  91. package/lib/placeholder/placeholder.directive.d.ts +3 -7
  92. package/lib/progress/progress-bar.component.d.ts +5 -46
  93. package/lib/progress/progress-bar.directive.d.ts +58 -0
  94. package/lib/progress/progress-stacked.component.d.ts +7 -0
  95. package/lib/progress/progress.component.d.ts +15 -6
  96. package/lib/progress/progress.module.d.ts +3 -1
  97. package/lib/progress/progress.type.d.ts +18 -0
  98. package/lib/progress/public_api.d.ts +3 -1
  99. package/lib/services/color-mode.service.d.ts +20 -0
  100. package/lib/services/in-memory-storage.service.d.ts +13 -0
  101. package/lib/services/local-storage.service.d.ts +17 -0
  102. package/lib/services/public_api.d.ts +3 -0
  103. package/lib/shared/public_api.d.ts +1 -0
  104. package/lib/shared/shared.module.d.ts +2 -1
  105. package/lib/shared/theme.directive.d.ts +19 -0
  106. package/lib/sidebar/public_api.d.ts +1 -1
  107. package/lib/sidebar/sidebar/sidebar.component.d.ts +13 -11
  108. package/lib/sidebar/sidebar-nav/sidebar-nav.component.d.ts +5 -2
  109. package/lib/sidebar/sidebar-toggler/sidebar-toggler.directive.d.ts +9 -0
  110. package/lib/sidebar/sidebar.module.d.ts +2 -2
  111. package/lib/table/table.type.d.ts +5 -6
  112. package/lib/tabs/tab-content/tab-content.component.d.ts +1 -0
  113. package/lib/tabs/tab-content-ref.directive.d.ts +4 -2
  114. package/lib/toast/toast/toast.component.d.ts +3 -2
  115. package/lib/utilities/public_api.d.ts +3 -2
  116. package/lib/utilities/shadow-on-scroll.directive.d.ts +8 -0
  117. package/lib/utilities/utilities.module.d.ts +7 -6
  118. package/lib/widget/widget-stat-a/widget-stat-a.component.d.ts +1 -1
  119. package/lib/widget/widget-stat-b/widget-stat-b.component.d.ts +3 -3
  120. package/lib/widget/widget-stat-c/widget-stat-c.component.d.ts +16 -15
  121. package/lib/widget/widget-stat-e/widget-stat-e.component.d.ts +1 -1
  122. package/lib/widget/widget-stat-f/widget-stat-f.component.d.ts +1 -1
  123. package/package.json +7 -5
  124. package/public-api.d.ts +1 -1
  125. package/esm2022/lib/progress/progress-bar.mjs +0 -2
  126. package/esm2022/lib/sidebar/sidebar-toggler/sidebar-toggler.component.mjs +0 -27
  127. package/lib/progress/progress-bar.d.ts +0 -10
  128. package/lib/sidebar/sidebar-toggler/sidebar-toggler.component.d.ts +0 -7
@@ -1,22 +1,18 @@
1
- import { BooleanInput } from '@angular/cdk/coercion';
2
1
  import * as i0 from "@angular/core";
3
2
  export declare class PlaceholderDirective {
4
- static ngAcceptInputType_visible: BooleanInput;
5
- constructor();
6
3
  /**
7
4
  * placeholder toggler
8
5
  * @type boolean
9
6
  * @default false
10
7
  */
11
- set visible(value: boolean);
12
- get visible(): boolean;
13
- private _visible;
8
+ visible: boolean;
14
9
  /**
15
- * Size the placeholder extra small, small, large.
10
+ * Size the placeholder extremely small, small, large.
16
11
  */
17
12
  size?: 'xs' | 'sm' | 'lg';
18
13
  get ariaHidden(): boolean | null;
19
14
  get hostClasses(): any;
20
15
  static ɵfac: i0.ɵɵFactoryDeclaration<PlaceholderDirective, never>;
21
16
  static ɵdir: i0.ɵɵDirectiveDeclaration<PlaceholderDirective, "[cPlaceholder]", ["cPlaceholder"], { "visible": { "alias": "cPlaceholder"; "required": false; }; "size": { "alias": "cPlaceholderSize"; "required": false; }; }, {}, never, never, true, never>;
17
+ static ngAcceptInputType_visible: unknown;
22
18
  }
@@ -1,49 +1,8 @@
1
- import { ElementRef, OnChanges, OnInit, Renderer2, SimpleChanges } from '@angular/core';
2
- import { Colors } from '../coreui.types';
3
1
  import * as i0 from "@angular/core";
4
- export declare class ProgressBarComponent implements OnInit, OnChanges {
5
- private renderer;
6
- private hostElement;
7
- /**
8
- * Use to animate the stripes right to left via CSS3 animations.
9
- * @type boolean
10
- */
11
- animated: string | boolean;
12
- /**
13
- * Sets the color context of the component to one of CoreUI’s themed colors.
14
- * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
15
- */
16
- color?: Colors;
17
- precision: string | number;
18
- /**
19
- * The percent to progress the ProgressBar.
20
- * @type number
21
- */
22
- value: string | number;
23
- /**
24
- * Set the progress bar variant to optional striped.
25
- * @values 'striped'
26
- */
27
- variant?: 'striped';
28
- /**
29
- * Set default html role attribute.
30
- * @type string
31
- */
32
- role: string;
33
- private state;
34
- constructor(renderer: Renderer2, hostElement: ElementRef);
35
- get min(): number;
36
- set min(value: number);
37
- get max(): number;
38
- set max(value: number);
39
- get hostClasses(): any;
40
- ngOnInit(): void;
41
- setPercent(): void;
42
- setValues(): void;
43
- ngOnChanges(changes: SimpleChanges): void;
2
+ import * as i1 from "./progress-bar.directive";
3
+ export declare class ProgressBarComponent {
4
+ #private;
5
+ get hostClasses(): Record<string, boolean>;
44
6
  static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
45
- static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "c-progress-bar", never, { "animated": { "alias": "animated"; "required": false; }; "color": { "alias": "color"; "required": false; }; "precision": { "alias": "precision"; "required": false; }; "value": { "alias": "value"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "role": { "alias": "role"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, {}, never, ["*"], true, never>;
46
- static ngAcceptInputType_animated: unknown;
47
- static ngAcceptInputType_precision: unknown;
48
- static ngAcceptInputType_value: unknown;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "c-progress-bar", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.ProgressBarDirective; inputs: { "animated": "animated"; "color": "color"; "max": "max"; "role": "role"; "stacked": "stacked"; "value": "value"; "variant": "variant"; "width": "width"; }; outputs: {}; }]>;
49
8
  }
@@ -0,0 +1,58 @@
1
+ import { Colors } from '../coreui.types';
2
+ import { IProgressBar } from './progress.type';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ProgressBarDirective implements IProgressBar {
5
+ #private;
6
+ constructor();
7
+ readonly percent: import("@angular/core").Signal<number>;
8
+ /**
9
+ * Use to animate the stripes right to left via CSS3 animations.
10
+ * @type boolean
11
+ */
12
+ animated?: boolean;
13
+ /**
14
+ * Sets the color context of the component to one of CoreUI’s themed colors.
15
+ * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
16
+ */
17
+ color?: Colors;
18
+ precision: number;
19
+ /**
20
+ * The percent value the ProgressBar.
21
+ * @type number
22
+ * @default 0
23
+ */
24
+ set value(value: number | undefined);
25
+ get value(): number | undefined;
26
+ set width(value: number | undefined);
27
+ /**
28
+ * Set the progress bar variant to optional striped.
29
+ * @values 'striped'
30
+ * @default undefined
31
+ */
32
+ variant?: 'striped';
33
+ /**
34
+ * The max value of the ProgressBar.
35
+ * @type number
36
+ * @default 100
37
+ */
38
+ set max(max: number);
39
+ /**
40
+ * Stacked ProgressBars.
41
+ * @type boolean
42
+ * @default false
43
+ */
44
+ stacked?: boolean;
45
+ /**
46
+ * Set default html role attribute.
47
+ * @type string
48
+ */
49
+ role: string;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarDirective, never>;
51
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ProgressBarDirective, "[cProgressBar]", never, { "animated": { "alias": "animated"; "required": false; }; "color": { "alias": "color"; "required": false; }; "precision": { "alias": "precision"; "required": false; }; "value": { "alias": "value"; "required": false; }; "width": { "alias": "width"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "max": { "alias": "max"; "required": false; }; "stacked": { "alias": "stacked"; "required": false; }; "role": { "alias": "role"; "required": false; }; }, {}, never, never, true, never>;
52
+ static ngAcceptInputType_animated: unknown;
53
+ static ngAcceptInputType_precision: unknown;
54
+ static ngAcceptInputType_value: unknown;
55
+ static ngAcceptInputType_width: unknown;
56
+ static ngAcceptInputType_max: unknown;
57
+ static ngAcceptInputType_stacked: unknown;
58
+ }
@@ -0,0 +1,7 @@
1
+ import { IProgressBarStacked } from './progress.type';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ProgressStackedComponent implements IProgressBarStacked {
4
+ stacked: boolean;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgressStackedComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProgressStackedComponent, "c-progress-stacked", never, { "stacked": { "alias": "stacked"; "required": false; }; }, {}, never, ["*"], true, never>;
7
+ }
@@ -1,24 +1,33 @@
1
+ import { QueryList } from '@angular/core';
2
+ import { IProgress } from './progress.type';
3
+ import { ProgressBarComponent } from './progress-bar.component';
4
+ import { ProgressBarDirective } from './progress-bar.directive';
1
5
  import * as i0 from "@angular/core";
2
- export declare class ProgressComponent {
6
+ import * as i1 from "./progress-bar.directive";
7
+ export declare class ProgressComponent implements IProgress {
8
+ #private;
9
+ protected readonly pbd: ProgressBarDirective | null;
10
+ constructor();
11
+ contentProgressBars: QueryList<ProgressBarComponent>;
3
12
  /**
4
13
  * Sets the height of the component. If you set that value the inner `<CProgressBar>` will automatically resize accordingly.
5
14
  * @type number
6
15
  */
7
- height: string | number;
16
+ height: number;
8
17
  /**
9
18
  * Displays thin progress.
10
19
  * @type boolean
11
20
  */
12
- thin: string | boolean;
21
+ thin: boolean;
13
22
  /**
14
23
  * Change the default color to white.
15
24
  * @type boolean
16
25
  */
17
- white: string | boolean;
18
- get hostClasses(): any;
26
+ white: boolean;
27
+ get hostClasses(): Record<string, boolean>;
19
28
  get hostStyle(): any;
20
29
  static ɵfac: i0.ɵɵFactoryDeclaration<ProgressComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<ProgressComponent, "c-progress", never, { "height": { "alias": "height"; "required": false; }; "thin": { "alias": "thin"; "required": false; }; "white": { "alias": "white"; "required": false; }; }, {}, never, ["*"], true, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProgressComponent, "c-progress", never, { "height": { "alias": "height"; "required": false; }; "thin": { "alias": "thin"; "required": false; }; "white": { "alias": "white"; "required": false; }; }, {}, ["contentProgressBars"], ["*"], true, [{ directive: typeof i1.ProgressBarDirective; inputs: { "animated": "animated"; "color": "color"; "max": "max"; "role": "role"; "value": "value"; "variant": "variant"; }; outputs: {}; }]>;
22
31
  static ngAcceptInputType_height: unknown;
23
32
  static ngAcceptInputType_thin: unknown;
24
33
  static ngAcceptInputType_white: unknown;
@@ -1,8 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./progress.component";
3
3
  import * as i2 from "./progress-bar.component";
4
+ import * as i3 from "./progress-bar.directive";
5
+ import * as i4 from "./progress-stacked.component";
4
6
  export declare class ProgressModule {
5
7
  static ɵfac: i0.ɵɵFactoryDeclaration<ProgressModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<ProgressModule, never, [typeof i1.ProgressComponent, typeof i2.ProgressBarComponent], [typeof i1.ProgressComponent, typeof i2.ProgressBarComponent]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ProgressModule, never, [typeof i1.ProgressComponent, typeof i2.ProgressBarComponent, typeof i3.ProgressBarDirective, typeof i4.ProgressStackedComponent], [typeof i1.ProgressComponent, typeof i2.ProgressBarComponent, typeof i3.ProgressBarDirective, typeof i4.ProgressStackedComponent]>;
7
9
  static ɵinj: i0.ɵɵInjectorDeclaration<ProgressModule>;
8
10
  }
@@ -0,0 +1,18 @@
1
+ import { Colors } from '../coreui.types';
2
+ export interface IProgress {
3
+ height: number;
4
+ thin: boolean;
5
+ white: boolean;
6
+ }
7
+ export interface IProgressBar extends IProgressBarStacked {
8
+ animated?: boolean;
9
+ color?: Colors;
10
+ max?: number;
11
+ precision: number;
12
+ value?: number;
13
+ variant?: 'striped';
14
+ width?: number;
15
+ }
16
+ export interface IProgressBarStacked {
17
+ stacked?: boolean;
18
+ }
@@ -1,4 +1,6 @@
1
- export { IStackedBar } from './progress-bar';
1
+ export { IProgress, IProgressBar, IProgressBarStacked } from './progress.type';
2
2
  export { ProgressComponent } from './progress.component';
3
+ export { ProgressStackedComponent } from './progress-stacked.component';
3
4
  export { ProgressBarComponent } from './progress-bar.component';
5
+ export { ProgressBarDirective } from './progress-bar.directive';
4
6
  export { ProgressModule } from './progress.module';
@@ -0,0 +1,20 @@
1
+ import { WritableSignal } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export type ColorMode = 'light' | 'dark' | 'auto' | string | undefined;
4
+ export declare class ColorModeService {
5
+ #private;
6
+ readonly eventName: WritableSignal<string>;
7
+ readonly localStorageItemName: WritableSignal<string | undefined>;
8
+ readonly localStorageItemName$: import("rxjs").Observable<string | undefined>;
9
+ readonly colorMode: WritableSignal<ColorMode>;
10
+ readonly colorModeEffect: import("@angular/core").EffectRef;
11
+ constructor();
12
+ getStoredTheme(localStorageItemName: string): any;
13
+ setStoredTheme(localStorageItemName: string, colorMode: string): void;
14
+ removeStoredTheme(localStorageItemName: string): void;
15
+ getDefaultScheme(localStorageItemName: string | undefined): any;
16
+ getPrefersColorScheme(): "dark" | "light" | undefined;
17
+ getDatasetTheme(): ColorMode;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorModeService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<ColorModeService>;
20
+ }
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class InMemoryStorageService implements Storage {
3
+ #private;
4
+ constructor();
5
+ setItem(key: string, data: any): void;
6
+ getItem(key: string): any;
7
+ removeItem(key: string): void;
8
+ clear(): void;
9
+ get length(): number;
10
+ key(index: number): string;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<InMemoryStorageService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<InMemoryStorageService>;
13
+ }
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class LocalStorageService {
3
+ #private;
4
+ private platformId;
5
+ private document;
6
+ constructor(platformId: Object, document: Document);
7
+ readonly data$: import("rxjs").Observable<{
8
+ key: string;
9
+ data: any;
10
+ } | null>;
11
+ setItem(key: string, data: any): void;
12
+ getItem(key: string): any;
13
+ removeItem(key: string): void;
14
+ clear(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageService>;
17
+ }
@@ -1,3 +1,6 @@
1
1
  export { IntersectionService, IIntersectionObserverInit } from './intersection.service';
2
2
  export { ListenersService, IListenersConfig } from './listeners.service';
3
3
  export { ClassToggleService } from './class-toggle.service';
4
+ export { LocalStorageService } from './local-storage.service';
5
+ export { InMemoryStorageService } from './in-memory-storage.service';
6
+ export { ColorModeService, ColorMode } from './color-mode.service';
@@ -1,3 +1,4 @@
1
1
  export { SharedModule } from './shared.module';
2
2
  export { HtmlAttributesDirective } from './html-attr.directive';
3
3
  export { TemplateIdDirective } from './template-id.directive';
4
+ export { ThemeDirective } from './theme.directive';
@@ -2,9 +2,10 @@ import { ModuleWithProviders } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  import * as i1 from "./html-attr.directive";
4
4
  import * as i2 from "./template-id.directive";
5
+ import * as i3 from "./theme.directive";
5
6
  export declare class SharedModule {
6
7
  static forRoot(): ModuleWithProviders<SharedModule>;
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.HtmlAttributesDirective, typeof i2.TemplateIdDirective], [typeof i1.HtmlAttributesDirective, typeof i2.TemplateIdDirective]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.HtmlAttributesDirective, typeof i2.TemplateIdDirective, typeof i3.ThemeDirective], [typeof i1.HtmlAttributesDirective, typeof i2.TemplateIdDirective, typeof i3.ThemeDirective]>;
9
10
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
10
11
  }
@@ -0,0 +1,19 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ThemeDirective {
3
+ #private;
4
+ /**
5
+ * Add dark theme attribute.
6
+ * @type 'dark' | 'light' | undefined
7
+ */
8
+ set colorScheme(scheme: 'dark' | 'light' | undefined);
9
+ /**
10
+ * Add dark theme attribute.
11
+ * @type boolean
12
+ */
13
+ set dark(darkTheme: boolean);
14
+ setTheme(theme?: string): void;
15
+ unsetTheme(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemeDirective, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThemeDirective, "[cTheme]", never, { "colorScheme": { "alias": "colorScheme"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; }, {}, never, never, true, never>;
18
+ static ngAcceptInputType_dark: unknown;
19
+ }
@@ -2,7 +2,7 @@ export { SidebarComponent } from './sidebar/sidebar.component';
2
2
  export { SidebarService } from './sidebar.service';
3
3
  export { SidebarBrandComponent } from './sidebar-brand/sidebar-brand.component';
4
4
  export { SidebarToggleDirective } from './sidebar-toggle/sidebar-toggle.directive';
5
- export { SidebarTogglerComponent } from './sidebar-toggler/sidebar-toggler.component';
5
+ export { SidebarTogglerDirective } from './sidebar-toggler/sidebar-toggler.directive';
6
6
  export { SidebarHeaderComponent } from './sidebar-header/sidebar-header.component';
7
7
  export { SidebarFooterComponent } from './sidebar-footer/sidebar-footer.component';
8
8
  export { SidebarNavComponent, INavData, SidebarNavHelper } from './sidebar-nav';
@@ -1,5 +1,4 @@
1
1
  import { EventEmitter, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core';
2
- import { BooleanInput } from '@angular/cdk/coercion';
3
2
  import { BreakpointObserver } from '@angular/cdk/layout';
4
3
  import { ISidebarAction, SidebarService } from '../sidebar.service';
5
4
  import { SidebarBackdropService } from '../sidebar-backdrop/sidebar-backdrop.service';
@@ -11,10 +10,6 @@ export declare class SidebarComponent implements OnChanges, OnDestroy, OnInit {
11
10
  private breakpointObserver;
12
11
  private sidebarService;
13
12
  private backdropService;
14
- static ngAcceptInputType_narrow: BooleanInput;
15
- static ngAcceptInputType_overlaid: BooleanInput;
16
- static ngAcceptInputType_unfoldable: BooleanInput;
17
- static ngAcceptInputType_visible: BooleanInput;
18
13
  state: ISidebarAction;
19
14
  /**
20
15
  * Sets if the color of text should be colored for a light or dark background. [docs]
@@ -31,15 +26,15 @@ export declare class SidebarComponent implements OnChanges, OnDestroy, OnInit {
31
26
  /**
32
27
  * Make sidebar narrow. [docs]
33
28
  * @type boolean
29
+ * @default false
34
30
  */
35
- set narrow(value: boolean);
36
- get narrow(): boolean;
31
+ narrow: boolean;
37
32
  /**
38
33
  * Set sidebar to overlaid variant.
39
34
  * @type boolean
35
+ * @default false
40
36
  */
41
- set overlaid(value: boolean);
42
- get overlaid(): boolean;
37
+ overlaid: boolean;
43
38
  /**
44
39
  * Components placement, there’s no default placement. [docs]
45
40
  * @type 'start' | 'end'
@@ -56,11 +51,14 @@ export declare class SidebarComponent implements OnChanges, OnDestroy, OnInit {
56
51
  size?: 'sm' | 'lg' | 'xl';
57
52
  /**
58
53
  * Expand narrowed sidebar on hover. [docs]
54
+ * @type boolean
55
+ * @default false
59
56
  */
60
- set unfoldable(value: boolean);
61
- get unfoldable(): boolean;
57
+ unfoldable: boolean;
62
58
  /**
63
59
  * Toggle the visibility of sidebar component. [docs]
60
+ * @type boolean
61
+ * @default false
64
62
  */
65
63
  set visible(value: boolean);
66
64
  get visible(): boolean;
@@ -82,4 +80,8 @@ export declare class SidebarComponent implements OnChanges, OnDestroy, OnInit {
82
80
  layoutChangeSubscribe(subscribe?: boolean): void;
83
81
  static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
84
82
  static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "c-sidebar", ["cSidebar"], { "colorScheme": { "alias": "colorScheme"; "required": false; }; "id": { "alias": "id"; "required": false; }; "narrow": { "alias": "narrow"; "required": false; }; "overlaid": { "alias": "overlaid"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "position": { "alias": "position"; "required": false; }; "size": { "alias": "size"; "required": false; }; "unfoldable": { "alias": "unfoldable"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, { "visibleChange": "visibleChange"; }, never, ["*"], true, never>;
83
+ static ngAcceptInputType_narrow: unknown;
84
+ static ngAcceptInputType_overlaid: unknown;
85
+ static ngAcceptInputType_unfoldable: unknown;
86
+ static ngAcceptInputType_visible: unknown;
85
87
  }
@@ -18,6 +18,7 @@ export declare class SidebarNavGroupComponent implements OnInit, OnDestroy {
18
18
  item: any;
19
19
  dropdownMode: 'path' | 'none' | 'close';
20
20
  show?: boolean;
21
+ compact?: boolean;
21
22
  get hostClasses(): any;
22
23
  sidebarNav: ElementRef;
23
24
  navigationEndObservable: Observable<NavigationEnd>;
@@ -34,7 +35,8 @@ export declare class SidebarNavGroupComponent implements OnInit, OnDestroy {
34
35
  onAnimationStart($event: AnimationEvent): void;
35
36
  onAnimationDone($event: AnimationEvent): void;
36
37
  static ɵfac: i0.ɵɵFactoryDeclaration<SidebarNavGroupComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<SidebarNavGroupComponent, "c-sidebar-nav-group", never, { "item": { "alias": "item"; "required": false; }; "dropdownMode": { "alias": "dropdownMode"; "required": false; }; "show": { "alias": "show"; "required": false; }; }, {}, never, never, true, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarNavGroupComponent, "c-sidebar-nav-group", never, { "item": { "alias": "item"; "required": false; }; "dropdownMode": { "alias": "dropdownMode"; "required": false; }; "show": { "alias": "show"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; }, {}, never, never, true, never>;
39
+ static ngAcceptInputType_compact: unknown;
38
40
  }
39
41
  export declare class SidebarNavComponent implements OnChanges {
40
42
  sidebar: SidebarComponent;
@@ -49,11 +51,12 @@ export declare class SidebarNavComponent implements OnChanges {
49
51
  groupItems?: boolean;
50
52
  compact?: boolean;
51
53
  get hostClasses(): any;
52
- get sidebarNavGroupItemsClass(): boolean;
53
54
  role: string;
54
55
  navItemsArray: INavData[];
55
56
  ngOnChanges(changes: SimpleChanges): void;
56
57
  hideMobile(): void;
57
58
  static ɵfac: i0.ɵɵFactoryDeclaration<SidebarNavComponent, [{ optional: true; }, null, null, null, null, null]>;
58
59
  static ɵcmp: i0.ɵɵComponentDeclaration<SidebarNavComponent, "c-sidebar-nav", never, { "navItems": { "alias": "navItems"; "required": false; }; "dropdownMode": { "alias": "dropdownMode"; "required": false; }; "groupItems": { "alias": "groupItems"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; }, {}, never, ["*"], true, never>;
60
+ static ngAcceptInputType_groupItems: unknown;
61
+ static ngAcceptInputType_compact: unknown;
59
62
  }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../sidebar-toggle/sidebar-toggle.directive";
3
+ export declare class SidebarTogglerDirective {
4
+ role: string;
5
+ sidebarTogglerClass: boolean;
6
+ get getStyles(): any;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarTogglerDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarTogglerDirective, "[cSidebarToggler]", never, { "role": { "alias": "role"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.SidebarToggleDirective; inputs: { "cSidebarToggle": "cSidebarToggler"; "toggle": "toggle"; }; outputs: {}; }]>;
9
+ }
@@ -13,9 +13,9 @@ import * as i11 from "./sidebar-nav/sidebar-nav-link.component";
13
13
  import * as i12 from "./sidebar-nav/sidebar-nav-link.pipe";
14
14
  import * as i13 from "./sidebar-nav/sidebar-nav-title.component";
15
15
  import * as i14 from "./sidebar-toggle/sidebar-toggle.directive";
16
- import * as i15 from "./sidebar-toggler/sidebar-toggler.component";
16
+ import * as i15 from "./sidebar-toggler/sidebar-toggler.directive";
17
17
  export declare class SidebarModule {
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<SidebarModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<SidebarModule, never, [typeof i1.SidebarComponent, typeof i2.SidebarBrandComponent, typeof i3.SidebarFooterComponent, typeof i4.SidebarHeaderComponent, typeof i5.SidebarNavComponent, typeof i6.SidebarNavBadgePipe, typeof i7.SidebarNavDividerComponent, typeof i5.SidebarNavGroupComponent, typeof i8.SidebarNavIconPipe, typeof i9.SidebarNavItemClassPipe, typeof i10.SidebarNavLabelComponent, typeof i11.SidebarNavLinkComponent, typeof i11.SidebarNavLinkContentComponent, typeof i12.SidebarNavLinkPipe, typeof i13.SidebarNavTitleComponent, typeof i14.SidebarToggleDirective, typeof i15.SidebarTogglerComponent], [typeof i1.SidebarComponent, typeof i14.SidebarToggleDirective, typeof i15.SidebarTogglerComponent, typeof i2.SidebarBrandComponent, typeof i5.SidebarNavComponent, typeof i4.SidebarHeaderComponent, typeof i3.SidebarFooterComponent]>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SidebarModule, never, [typeof i1.SidebarComponent, typeof i2.SidebarBrandComponent, typeof i3.SidebarFooterComponent, typeof i4.SidebarHeaderComponent, typeof i5.SidebarNavComponent, typeof i6.SidebarNavBadgePipe, typeof i7.SidebarNavDividerComponent, typeof i5.SidebarNavGroupComponent, typeof i8.SidebarNavIconPipe, typeof i9.SidebarNavItemClassPipe, typeof i10.SidebarNavLabelComponent, typeof i11.SidebarNavLinkComponent, typeof i11.SidebarNavLinkContentComponent, typeof i12.SidebarNavLinkPipe, typeof i13.SidebarNavTitleComponent, typeof i14.SidebarToggleDirective, typeof i15.SidebarTogglerDirective], [typeof i1.SidebarComponent, typeof i14.SidebarToggleDirective, typeof i15.SidebarTogglerDirective, typeof i2.SidebarBrandComponent, typeof i5.SidebarNavComponent, typeof i4.SidebarHeaderComponent, typeof i3.SidebarFooterComponent]>;
20
20
  static ɵinj: i0.ɵɵInjectorDeclaration<SidebarModule>;
21
21
  }
@@ -51,9 +51,7 @@ export interface ITable {
51
51
  * @type boolean
52
52
  */
53
53
  striped?: boolean | string;
54
- attributes?: {
55
- [key: string]: any;
56
- };
54
+ attributes?: Partial<HTMLTableElement>;
57
55
  }
58
56
  export interface ITableElementProps {
59
57
  /**
@@ -66,9 +64,8 @@ export interface ITableElementProps {
66
64
  * @type Colors
67
65
  */
68
66
  color?: Colors;
69
- _attributes?: {
70
- [key: string]: any;
71
- };
67
+ /** @deprecated */
68
+ _attributes?: Partial<HTMLTableElement>;
72
69
  }
73
70
  export interface ITableRowCellProps extends ITableElementProps {
74
71
  /**
@@ -76,4 +73,6 @@ export interface ITableRowCellProps extends ITableElementProps {
76
73
  @type boolean
77
74
  */
78
75
  active?: boolean;
76
+ /** @deprecated */
77
+ _attributes?: Partial<HTMLTableCellElement> | Partial<HTMLTableRowElement>;
79
78
  }
@@ -30,4 +30,5 @@ export declare class TabContentComponent implements AfterContentChecked, AfterCo
30
30
  refreshTabPaneActive(idx: number): void;
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<TabContentComponent, never>;
32
32
  static ɵcmp: i0.ɵɵComponentDeclaration<TabContentComponent, "c-tab-content", ["cTabContent"], { "activeTabPaneIdx": { "alias": "activeTabPaneIdx"; "required": false; }; }, { "activeTabPaneIdxChange": "activeTabPaneIdxChange"; }, ["panes"], ["*"], true, never>;
33
+ static ngAcceptInputType_activeTabPaneIdx: unknown;
33
34
  }
@@ -1,12 +1,10 @@
1
1
  import { ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
- import { BooleanInput } from '@angular/cdk/coercion';
3
2
  import { TabService } from './tab.service';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class TabContentRefDirective implements OnChanges, OnDestroy {
6
5
  private changeDetectorRef;
7
6
  private tabService;
8
7
  constructor(changeDetectorRef: ChangeDetectorRef, tabService: TabService);
9
- static ngAcceptInputType_disabled: BooleanInput;
10
8
  private tabServiceSubscription;
11
9
  /**
12
10
  * Template Ref
@@ -16,6 +14,7 @@ export declare class TabContentRefDirective implements OnChanges, OnDestroy {
16
14
  /**
17
15
  * Set active state of tab content
18
16
  * @type boolean
17
+ * @default false
19
18
  */
20
19
  set active(value: boolean);
21
20
  get active(): boolean;
@@ -46,4 +45,7 @@ export declare class TabContentRefDirective implements OnChanges, OnDestroy {
46
45
  subscribeTabService(subscribe?: boolean): void;
47
46
  static ɵfac: i0.ɵɵFactoryDeclaration<TabContentRefDirective, never>;
48
47
  static ɵdir: i0.ɵɵDirectiveDeclaration<TabContentRefDirective, "[cTabContent]", never, { "tabContentRef": { "alias": "cTabContent"; "required": false; }; "active": { "alias": "active"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabPaneIdx": { "alias": "tabPaneIdx"; "required": false; }; }, {}, never, never, true, never>;
48
+ static ngAcceptInputType_active: unknown;
49
+ static ngAcceptInputType_disabled: unknown;
50
+ static ngAcceptInputType_tabPaneIdx: unknown;
49
51
  }
@@ -1,5 +1,4 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
- import { BooleanInput } from '@angular/cdk/coercion';
3
2
  import { Colors } from '../../coreui.types';
4
3
  import { ToasterService } from '../toaster/toaster.service';
5
4
  import { TToasterPlacement } from '../toaster/toaster.component';
@@ -10,7 +9,6 @@ export declare class ToastComponent implements OnInit, OnDestroy {
10
9
  renderer: Renderer2;
11
10
  toasterService: ToasterService;
12
11
  changeDetectorRef: ChangeDetectorRef;
13
- static ngAcceptInputType_visible: BooleanInput;
14
12
  dynamic: boolean;
15
13
  placement: TToasterPlacement;
16
14
  constructor(hostElement: ElementRef, renderer: Renderer2, toasterService: ToasterService, changeDetectorRef: ChangeDetectorRef);
@@ -75,5 +73,8 @@ export declare class ToastComponent implements OnInit, OnDestroy {
75
73
  clearClock(): void;
76
74
  static ɵfac: i0.ɵɵFactoryDeclaration<ToastComponent, never>;
77
75
  static ɵcmp: i0.ɵɵComponentDeclaration<ToastComponent, "c-toast", ["cToast"], { "autohide": { "alias": "autohide"; "required": false; }; "color": { "alias": "color"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "fade": { "alias": "fade"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, { "visibleChange": "visibleChange"; "timer": "timer"; }, never, ["*"], true, never>;
76
+ static ngAcceptInputType_delay: unknown;
77
+ static ngAcceptInputType_visible: unknown;
78
+ static ngAcceptInputType_index: unknown;
78
79
  }
79
80
  export {};
@@ -1,6 +1,7 @@
1
+ export { AlignDirective } from './align.directive';
1
2
  export { BgColorDirective } from './bg-color.directive';
2
3
  export { BorderDirective } from './border.directive';
3
- export { TextColorDirective } from './text-color.directive';
4
4
  export { RoundedDirective } from './rounded.directive';
5
- export { AlignDirective } from './align.directive';
5
+ export { ShadowOnScrollDirective } from './shadow-on-scroll.directive';
6
+ export { TextColorDirective } from './text-color.directive';
6
7
  export { UtilitiesModule } from './utilities.module';
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ShadowOnScrollDirective {
3
+ #private;
4
+ constructor();
5
+ set cShadowOnScroll(value: 'sm' | 'lg' | 'none' | boolean);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShadowOnScrollDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ShadowOnScrollDirective, "[cShadowOnScroll]", never, { "cShadowOnScroll": { "alias": "cShadowOnScroll"; "required": false; }; }, {}, never, never, true, never>;
8
+ }
@@ -1,11 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./bg-color.directive";
3
- import * as i2 from "./border.directive";
4
- import * as i3 from "./rounded.directive";
5
- import * as i4 from "./text-color.directive";
6
- import * as i5 from "./align.directive";
2
+ import * as i1 from "./align.directive";
3
+ import * as i2 from "./bg-color.directive";
4
+ import * as i3 from "./border.directive";
5
+ import * as i4 from "./rounded.directive";
6
+ import * as i5 from "./shadow-on-scroll.directive";
7
+ import * as i6 from "./text-color.directive";
7
8
  export declare class UtilitiesModule {
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<UtilitiesModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<UtilitiesModule, never, [typeof i1.BgColorDirective, typeof i2.BorderDirective, typeof i3.RoundedDirective, typeof i4.TextColorDirective, typeof i5.AlignDirective], [typeof i1.BgColorDirective, typeof i2.BorderDirective, typeof i3.RoundedDirective, typeof i4.TextColorDirective, typeof i5.AlignDirective]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UtilitiesModule, never, [typeof i1.AlignDirective, typeof i2.BgColorDirective, typeof i3.BorderDirective, typeof i4.RoundedDirective, typeof i5.ShadowOnScrollDirective, typeof i6.TextColorDirective], [typeof i1.AlignDirective, typeof i2.BgColorDirective, typeof i3.BorderDirective, typeof i4.RoundedDirective, typeof i5.ShadowOnScrollDirective, typeof i6.TextColorDirective]>;
10
11
  static ɵinj: i0.ɵɵInjectorDeclaration<UtilitiesModule>;
11
12
  }
@@ -23,7 +23,7 @@ export declare class WidgetStatAComponent implements AfterContentInit {
23
23
  get hostClasses(): {
24
24
  [x: string]: boolean;
25
25
  card: boolean;
26
- 'text-high-emphasis-inverse': boolean;
26
+ 'text-white': boolean;
27
27
  };
28
28
  get bodyClasses(): {
29
29
  'pb-0': boolean;