@datarailsshared/datarailsshared 1.6.314 → 1.6.318

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.
@@ -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 100
11
+ * Progress value from 0 to total
6
12
  */
7
- progress?: number;
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
- readonly ariaValueMax = 100;
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; }; }, {}, never, ["*"], true, never>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/datarailsshared",
3
- "version": "1.6.314",
3
+ "version": "1.6.318",
4
4
  "description": "DataRails shared components",
5
5
  "keywords": [
6
6
  "angular",