@coreui/angular-pro 5.0.4 → 5.1.0-next.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/esm2022/lib/rating/index.mjs +2 -0
- package/esm2022/lib/rating/public_api.mjs +3 -0
- package/esm2022/lib/rating/rating.component.mjs +188 -0
- package/esm2022/lib/rating/rating.module.mjs +16 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/coreui-angular-pro.mjs +3311 -3119
- package/fesm2022/coreui-angular-pro.mjs.map +1 -1
- package/lib/rating/index.d.ts +1 -0
- package/lib/rating/public_api.d.ts +2 -0
- package/lib/rating/rating.component.d.ts +58 -0
- package/lib/rating/rating.module.d.ts +7 -0
- package/package.json +2 -2
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { InputSignalWithTransform } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { TemplateIdDirective } from '../shared';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare const coerceStringArray: (value: string | string[]) => string[];
|
|
6
|
+
export declare const coerceRatingPrecision: (value: number | string) => number;
|
|
7
|
+
export declare class RatingComponent implements ControlValueAccessor {
|
|
8
|
+
#private;
|
|
9
|
+
constructor();
|
|
10
|
+
readonly activeIcon: InputSignalWithTransform<string[], string | string[]>;
|
|
11
|
+
readonly allowClear: InputSignalWithTransform<boolean, unknown>;
|
|
12
|
+
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
13
|
+
readonly highlightOnlySelected: InputSignalWithTransform<boolean, unknown>;
|
|
14
|
+
readonly icon: InputSignalWithTransform<string[], string | string[]>;
|
|
15
|
+
readonly itemCount: InputSignalWithTransform<number, unknown>;
|
|
16
|
+
readonly precision: InputSignalWithTransform<number, unknown>;
|
|
17
|
+
readonly readOnly: InputSignalWithTransform<boolean, unknown>;
|
|
18
|
+
readonly size: import("@angular/core").InputSignal<"sm" | "lg" | "custom" | undefined>;
|
|
19
|
+
readonly tooltips: import("@angular/core").InputSignal<boolean | string[] | undefined>;
|
|
20
|
+
readonly value: import("@angular/core").ModelSignal<number | null>;
|
|
21
|
+
readonly hoverValueChange: import("@angular/core").OutputEmitterRef<string>;
|
|
22
|
+
readonly hoverValue: import("@angular/core").WritableSignal<number | null>;
|
|
23
|
+
readonly tooltipValue: import("@angular/core").WritableSignal<string | number | null>;
|
|
24
|
+
readonly ratingDisabled: import("@angular/core").Signal<boolean>;
|
|
25
|
+
readonly contentTemplates: import("@angular/core").Signal<readonly TemplateIdDirective[]>;
|
|
26
|
+
readonly iconTemplates: import("@angular/core").Signal<any>;
|
|
27
|
+
readonly numberOfSubItems: import("@angular/core").Signal<number>;
|
|
28
|
+
readonly ratingItems: import("@angular/core").Signal<number[][]>;
|
|
29
|
+
get hostClasses(): {
|
|
30
|
+
[x: string]: boolean | "sm" | "lg" | "custom" | undefined;
|
|
31
|
+
rating: boolean;
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
readonly: boolean;
|
|
34
|
+
};
|
|
35
|
+
get ariaValueNow(): number | null;
|
|
36
|
+
get ariaValueMax(): number;
|
|
37
|
+
onClick($event: MouseEvent): false | undefined;
|
|
38
|
+
onChange: (value: number | null) => void;
|
|
39
|
+
readonly valueEffect: import("@angular/core").EffectRef;
|
|
40
|
+
onTouched: () => void;
|
|
41
|
+
registerOnChange(fn: any): void;
|
|
42
|
+
registerOnTouched(fn: any): void;
|
|
43
|
+
writeValue(value: number | null): void;
|
|
44
|
+
isItemActive(value: number): boolean;
|
|
45
|
+
notLastItemStyle(value: number): {
|
|
46
|
+
zIndex: number;
|
|
47
|
+
position: string;
|
|
48
|
+
width: string;
|
|
49
|
+
overflow: string;
|
|
50
|
+
opacity: number;
|
|
51
|
+
};
|
|
52
|
+
handleClick(value: number): void;
|
|
53
|
+
handleKeyUp($event: KeyboardEvent, value: number): void;
|
|
54
|
+
handleMouseEnter(value: number): void;
|
|
55
|
+
getTooltipValue(index: number): string;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RatingComponent, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RatingComponent, "c-rating", ["cRating"], { "activeIcon": { "alias": "activeIcon"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "highlightOnlySelected": { "alias": "highlightOnlySelected"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "itemCount": { "alias": "itemCount"; "required": false; "isSignal": true; }; "precision": { "alias": "precision"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "tooltips": { "alias": "tooltips"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "hoverValueChange": "hoverValueChange"; }, ["contentTemplates"], never, true, never>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./rating.component";
|
|
3
|
+
export declare class RatingModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RatingModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RatingModule, never, [typeof i1.RatingComponent], [typeof i1.RatingComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RatingModule>;
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coreui/angular-pro",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.1.0-next.0",
|
|
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,7 +28,7 @@
|
|
|
28
28
|
"@angular/core": "^17.3.0",
|
|
29
29
|
"@angular/forms": "^17.3.0",
|
|
30
30
|
"@angular/router": "^17.3.0",
|
|
31
|
-
"@coreui/coreui-pro": "~5.
|
|
31
|
+
"@coreui/coreui-pro": "~5.1.0-0",
|
|
32
32
|
"@coreui/icons-angular": "~5.0.0",
|
|
33
33
|
"rxjs": "^7.8.1"
|
|
34
34
|
},
|
package/public-api.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export * from './lib/pagination';
|
|
|
33
33
|
export * from './lib/placeholder';
|
|
34
34
|
export * from './lib/popover';
|
|
35
35
|
export * from './lib/progress';
|
|
36
|
+
export * from './lib/rating';
|
|
36
37
|
export * from './lib/services';
|
|
37
38
|
export * from './lib/sidebar';
|
|
38
39
|
export * from './lib/smart-pagination';
|