@datarailsshared/datarailsshared 1.6.316 → 1.6.320
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/datarailsshared-datarailsshared-1.6.320.tgz +0 -0
- package/esm2022/lib/dr-progress-bar/dr-progress-bar.component.mjs +88 -15
- package/fesm2022/datarailsshared-datarailsshared.mjs +86 -13
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/dr-progress-bar/dr-progress-bar.component.d.ts +21 -4
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.6.316.tgz +0 -0
|
@@ -1,10 +1,21 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export type TProgressBarTheme = 'light' | 'dark';
|
|
4
|
+
export type TProgressBarValueTemplateContext = {
|
|
5
|
+
progress: number;
|
|
6
|
+
total: number;
|
|
7
|
+
progressPercent: number;
|
|
8
|
+
};
|
|
3
9
|
export declare class DrProgressBarComponent {
|
|
4
10
|
/**
|
|
5
|
-
* Progress value from 0 to
|
|
11
|
+
* Progress value from 0 to total
|
|
6
12
|
*/
|
|
7
|
-
progress
|
|
13
|
+
set progress(value: number | undefined);
|
|
14
|
+
get progress(): number;
|
|
15
|
+
set total(value: number | undefined);
|
|
16
|
+
get total(): number;
|
|
17
|
+
roundProgress: boolean;
|
|
18
|
+
customValueTemplate?: TemplateRef<TProgressBarValueTemplateContext>;
|
|
8
19
|
/**
|
|
9
20
|
* Option to hide value label
|
|
10
21
|
*/
|
|
@@ -16,9 +27,15 @@ export declare class DrProgressBarComponent {
|
|
|
16
27
|
customAriaLabel?: string;
|
|
17
28
|
readonly role = "progressbar";
|
|
18
29
|
readonly ariaValueMin = 0;
|
|
19
|
-
|
|
30
|
+
get ariaValueMax(): number;
|
|
20
31
|
get ariaValueNow(): number;
|
|
21
32
|
get ariaLabel(): string;
|
|
33
|
+
get valueTemplateContext(): TProgressBarValueTemplateContext;
|
|
34
|
+
get progressPercent(): number;
|
|
35
|
+
private clampProgress;
|
|
36
|
+
private clampNonNegativeNumber;
|
|
37
|
+
private _rawProgress;
|
|
38
|
+
private _total;
|
|
22
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrProgressBarComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DrProgressBarComponent, "dr-progress-bar", never, { "progress": { "alias": "progress"; "required": false; }; "showValue": { "alias": "showValue"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "customAriaLabel": { "alias": "aria-label"; "required": false; }; }, {},
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DrProgressBarComponent, "dr-progress-bar", never, { "progress": { "alias": "progress"; "required": false; }; "total": { "alias": "total"; "required": false; }; "roundProgress": { "alias": "roundProgress"; "required": false; }; "showValue": { "alias": "showValue"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "customAriaLabel": { "alias": "aria-label"; "required": false; }; }, {}, ["customValueTemplate"], ["*"], true, never>;
|
|
24
41
|
}
|
package/package.json
CHANGED
|
Binary file
|