@coreui/angular-pro 5.0.0-alpha.7 → 5.0.0-alpha.8
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/esm2022/lib/grid/row.directive.mjs +4 -4
- package/esm2022/lib/services/color-mode.service.mjs +79 -0
- package/esm2022/lib/services/in-memory-storage.service.mjs +33 -0
- package/esm2022/lib/services/local-storage.service.mjs +47 -0
- package/esm2022/lib/services/public_api.mjs +4 -1
- package/esm2022/lib/utilities/shadow-on-scroll.directive.mjs +2 -2
- package/fesm2022/coreui-angular-pro.mjs +153 -8
- package/fesm2022/coreui-angular-pro.mjs.map +1 -1
- package/lib/services/color-mode.service.d.ts +17 -0
- package/lib/services/in-memory-storage.service.d.ts +13 -0
- package/lib/services/local-storage.service.d.ts +18 -0
- package/lib/services/public_api.d.ts +3 -0
- package/package.json +2 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { WritableSignal } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ColorModeService {
|
|
4
|
+
#private;
|
|
5
|
+
readonly eventName: WritableSignal<string>;
|
|
6
|
+
readonly localStorageItemName: WritableSignal<string>;
|
|
7
|
+
readonly localStorageItemName$: import("rxjs").Observable<string>;
|
|
8
|
+
readonly colorMode: WritableSignal<'light' | 'dark' | 'auto'>;
|
|
9
|
+
readonly colorModeEffect: import("@angular/core").EffectRef;
|
|
10
|
+
constructor();
|
|
11
|
+
getStoredTheme(localStorageItemName: string): any;
|
|
12
|
+
setStoredTheme(localStorageItemName: string, colorMode: string): void;
|
|
13
|
+
getPreferredColorScheme(localStorageItemName: string): any;
|
|
14
|
+
setTheme(colorMode: string): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorModeService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ColorModeService>;
|
|
17
|
+
}
|
|
@@ -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,18 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class LocalStorageService {
|
|
3
|
+
#private;
|
|
4
|
+
private platformId;
|
|
5
|
+
private document;
|
|
6
|
+
localStorage: Storage;
|
|
7
|
+
constructor(platformId: Object, document: Document);
|
|
8
|
+
data$: import("rxjs").Observable<{
|
|
9
|
+
key: string;
|
|
10
|
+
data: any;
|
|
11
|
+
} | null>;
|
|
12
|
+
setItem(key: string, data: any): void;
|
|
13
|
+
getItem(key: string): any;
|
|
14
|
+
removeItem(key: string): void;
|
|
15
|
+
clear(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageService>;
|
|
18
|
+
}
|
|
@@ -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 } from './color-mode.service';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coreui/angular-pro",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.8",
|
|
4
4
|
"description": "CoreUI Pro Components Library for Angular",
|
|
5
5
|
"copyright": "Copyright 2024 creativeLabs Łukasz Holeczek",
|
|
6
6
|
"homepage": "https://coreui.io/angular",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@angular/forms": "^17.0.0",
|
|
30
30
|
"@angular/router": "^17.0.0",
|
|
31
31
|
"@coreui/coreui-pro": "~5.0.0-rc.1",
|
|
32
|
-
"@coreui/icons-angular": "~4.7.3 || ^5.0.0",
|
|
32
|
+
"@coreui/icons-angular": "~4.7.3 || ^5.0.0-alpha.x",
|
|
33
33
|
"rxjs": "^7.8.1"
|
|
34
34
|
},
|
|
35
35
|
"repository": {
|