@coreui/angular-pro 5.0.0-alpha.7 → 5.0.0-alpha.9
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/progress/progress-bar.component.mjs +54 -47
- package/esm2022/lib/progress/progress.component.mjs +27 -9
- package/esm2022/lib/progress/progress.type.mjs +2 -0
- package/esm2022/lib/progress/public_api.mjs +1 -1
- 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 +273 -105
- package/fesm2022/coreui-angular-pro.mjs.map +1 -1
- package/lib/progress/progress-bar.component.d.ts +24 -19
- package/lib/progress/progress.component.d.ts +21 -5
- package/lib/progress/progress.type.d.ts +19 -0
- package/lib/progress/public_api.d.ts +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/lib/smart-table/smart-table.utils.d.ts +1 -1
- package/package.json +3 -3
- package/esm2022/lib/progress/progress-bar.mjs +0 -2
- package/lib/progress/progress-bar.d.ts +0 -10
|
@@ -1,49 +1,54 @@
|
|
|
1
|
-
import { ElementRef, OnChanges, OnInit, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
1
|
import { Colors } from '../coreui.types';
|
|
2
|
+
import { IProgressBar } from './progress.type';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ProgressBarComponent implements
|
|
5
|
-
private
|
|
6
|
-
private hostElement;
|
|
4
|
+
export declare class ProgressBarComponent implements IProgressBar {
|
|
5
|
+
#private;
|
|
7
6
|
/**
|
|
8
7
|
* Use to animate the stripes right to left via CSS3 animations.
|
|
9
8
|
* @type boolean
|
|
10
9
|
*/
|
|
11
|
-
animated:
|
|
10
|
+
animated: boolean;
|
|
12
11
|
/**
|
|
13
12
|
* Sets the color context of the component to one of CoreUI’s themed colors.
|
|
14
13
|
* @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
|
|
15
14
|
*/
|
|
16
15
|
color?: Colors;
|
|
17
|
-
precision:
|
|
16
|
+
precision: number;
|
|
18
17
|
/**
|
|
19
|
-
* The percent
|
|
18
|
+
* The percent value the ProgressBar.
|
|
20
19
|
* @type number
|
|
20
|
+
* @default 0
|
|
21
21
|
*/
|
|
22
|
-
value:
|
|
22
|
+
set value(value: number);
|
|
23
23
|
/**
|
|
24
24
|
* Set the progress bar variant to optional striped.
|
|
25
25
|
* @values 'striped'
|
|
26
|
+
* @default undefined
|
|
26
27
|
*/
|
|
27
28
|
variant?: 'striped';
|
|
29
|
+
/**
|
|
30
|
+
* The min value of the ProgressBar.
|
|
31
|
+
* @type number
|
|
32
|
+
* @default 0
|
|
33
|
+
*/
|
|
34
|
+
set min(value: number);
|
|
35
|
+
/**
|
|
36
|
+
* The max value of the ProgressBar.
|
|
37
|
+
* @type number
|
|
38
|
+
* @default 100
|
|
39
|
+
*/
|
|
40
|
+
set max(value: number);
|
|
28
41
|
/**
|
|
29
42
|
* Set default html role attribute.
|
|
30
43
|
* @type string
|
|
31
44
|
*/
|
|
32
45
|
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
46
|
get hostClasses(): any;
|
|
40
|
-
ngOnInit(): void;
|
|
41
|
-
setPercent(): void;
|
|
42
|
-
setValues(): void;
|
|
43
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
44
47
|
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; }; "
|
|
48
|
+
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; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "role": { "alias": "role"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
46
49
|
static ngAcceptInputType_animated: unknown;
|
|
47
50
|
static ngAcceptInputType_precision: unknown;
|
|
48
51
|
static ngAcceptInputType_value: unknown;
|
|
52
|
+
static ngAcceptInputType_min: unknown;
|
|
53
|
+
static ngAcceptInputType_max: unknown;
|
|
49
54
|
}
|
|
@@ -1,25 +1,41 @@
|
|
|
1
|
+
import { Colors } from '../coreui.types';
|
|
2
|
+
import { IProgress } from './progress.type';
|
|
1
3
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ProgressComponent {
|
|
4
|
+
export declare class ProgressComponent implements IProgress {
|
|
5
|
+
#private;
|
|
3
6
|
/**
|
|
4
7
|
* Sets the height of the component. If you set that value the inner `<CProgressBar>` will automatically resize accordingly.
|
|
5
8
|
* @type number
|
|
6
9
|
*/
|
|
7
|
-
height:
|
|
10
|
+
height: number;
|
|
8
11
|
/**
|
|
9
12
|
* Displays thin progress.
|
|
10
13
|
* @type boolean
|
|
11
14
|
*/
|
|
12
|
-
thin:
|
|
15
|
+
thin: boolean;
|
|
13
16
|
/**
|
|
14
17
|
* Change the default color to white.
|
|
15
18
|
* @type boolean
|
|
16
19
|
*/
|
|
17
|
-
white:
|
|
20
|
+
white: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* props for ProgressBar.
|
|
23
|
+
*/
|
|
24
|
+
value?: number;
|
|
25
|
+
max?: number;
|
|
26
|
+
min?: number;
|
|
27
|
+
animated?: boolean;
|
|
28
|
+
color?: Colors;
|
|
29
|
+
variant?: 'striped';
|
|
18
30
|
get hostClasses(): any;
|
|
19
31
|
get hostStyle(): any;
|
|
20
32
|
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>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressComponent, "c-progress", never, { "height": { "alias": "height"; "required": false; }; "thin": { "alias": "thin"; "required": false; }; "white": { "alias": "white"; "required": false; }; "value": { "alias": "value"; "required": false; }; "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "animated": { "alias": "animated"; "required": false; }; "color": { "alias": "color"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
22
34
|
static ngAcceptInputType_height: unknown;
|
|
23
35
|
static ngAcceptInputType_thin: unknown;
|
|
24
36
|
static ngAcceptInputType_white: unknown;
|
|
37
|
+
static ngAcceptInputType_value: unknown;
|
|
38
|
+
static ngAcceptInputType_max: unknown;
|
|
39
|
+
static ngAcceptInputType_min: unknown;
|
|
40
|
+
static ngAcceptInputType_animated: unknown;
|
|
25
41
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Colors } from '../coreui.types';
|
|
2
|
+
export interface IProgress extends Omit<IProgressBar, 'animated' | 'value'> {
|
|
3
|
+
thin?: boolean;
|
|
4
|
+
height?: number;
|
|
5
|
+
animated?: boolean;
|
|
6
|
+
value?: number;
|
|
7
|
+
white?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface IProgressBar {
|
|
10
|
+
animated: boolean;
|
|
11
|
+
color?: Colors;
|
|
12
|
+
value: number;
|
|
13
|
+
variant?: 'striped';
|
|
14
|
+
min?: number;
|
|
15
|
+
max?: number;
|
|
16
|
+
}
|
|
17
|
+
export interface IStackedBar extends IProgressBar {
|
|
18
|
+
label?: string;
|
|
19
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { IStackedBar } from './progress
|
|
1
|
+
export { IStackedBar, IProgressBar, IProgress } from './progress.type';
|
|
2
2
|
export { ProgressComponent } from './progress.component';
|
|
3
3
|
export { ProgressBarComponent } from './progress-bar.component';
|
|
4
4
|
export { ProgressModule } from './progress.module';
|
|
@@ -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';
|
|
@@ -9,7 +9,7 @@ export declare const countColumns: (columns: IColumn[], counter?: number) => num
|
|
|
9
9
|
export declare const getColumnGroups: (columns: (string | IColumn)[] | undefined) => IGroup[][];
|
|
10
10
|
export declare const getColumnNamesFromItems: (items: IItem[]) => string[];
|
|
11
11
|
export declare const getColumnValues: (items: IItem[], key: string) => any[];
|
|
12
|
-
export declare const convertNgClassToObj: (value: string |
|
|
12
|
+
export declare const convertNgClassToObj: (value: string | string[] | Set<string> | {
|
|
13
13
|
[klass: string]: any;
|
|
14
14
|
} | null | undefined) => {
|
|
15
15
|
[klass: string]: boolean;
|
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.9",
|
|
4
4
|
"description": "CoreUI Pro Components Library for Angular",
|
|
5
5
|
"copyright": "Copyright 2024 creativeLabs Łukasz Holeczek",
|
|
6
6
|
"homepage": "https://coreui.io/angular",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@angular/core": "^17.0.0",
|
|
29
29
|
"@angular/forms": "^17.0.0",
|
|
30
30
|
"@angular/router": "^17.0.0",
|
|
31
|
-
"@coreui/coreui-pro": "~5.0.0-
|
|
32
|
-
"@coreui/icons-angular": "~4.7.3 || ^5.0.0",
|
|
31
|
+
"@coreui/coreui-pro": "~5.0.0-0",
|
|
32
|
+
"@coreui/icons-angular": "~4.7.3 || ^5.0.0-0 || ~5.0.0",
|
|
33
33
|
"rxjs": "^7.8.1"
|
|
34
34
|
},
|
|
35
35
|
"repository": {
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3MtYmFyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZXVpLWFuZ3VsYXIvc3JjL2xpYi9wcm9ncmVzcy9wcm9ncmVzcy1iYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSVN0YWNrZWRCYXIge1xuICB2YWx1ZTogbnVtYmVyO1xuICBjb2xvcj86IHN0cmluZztcbiAgbGFiZWw/OiBzdHJpbmc7XG4gIGFuaW1hdGVkPzogYm9vbGVhbjtcbiAgc3RyaXBlZD86IGJvb2xlYW47XG4gIHByZWNpc2lvbj86IG51bWJlcjtcbiAgbWluPzogbnVtYmVyO1xuICBtYXg/OiBudW1iZXI7XG59XG4iXX0=
|