@progress/kendo-angular-progressbar 17.0.0-develop.21 → 17.0.0-develop.23

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.
Files changed (37) hide show
  1. package/chunk/chunk-progressbar.component.d.ts +1 -1
  2. package/circularprogressbar/circular-progressbar.component.d.ts +1 -1
  3. package/common/localization/messages.d.ts +1 -1
  4. package/common/progressbar-base.d.ts +1 -1
  5. package/{esm2020 → esm2022}/chunk/chunk-progressbar.component.mjs +52 -27
  6. package/{esm2020 → esm2022}/circularprogressbar/center-template.directive.mjs +4 -3
  7. package/{esm2020 → esm2022}/circularprogressbar/circular-progressbar.component.mjs +59 -44
  8. package/{esm2020 → esm2022}/common/localization/custom-messages.component.mjs +9 -8
  9. package/{esm2020 → esm2022}/common/localization/localized-messages.directive.mjs +9 -8
  10. package/{esm2020 → esm2022}/common/localization/messages.mjs +7 -3
  11. package/{esm2020 → esm2022}/common/progressbar-base.mjs +69 -64
  12. package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
  13. package/{esm2020 → esm2022}/progressbar.component.mjs +68 -33
  14. package/{esm2020 → esm2022}/progressbar.module.mjs +4 -4
  15. package/{fesm2015 → fesm2022}/progress-kendo-angular-progressbar.mjs +285 -198
  16. package/package.json +12 -18
  17. package/progressbar.component.d.ts +1 -1
  18. package/types/label-fn-type.d.ts +1 -1
  19. package/types/label-position.d.ts +1 -1
  20. package/types/label-type.d.ts +1 -1
  21. package/types/progressbar-orientation.d.ts +1 -1
  22. package/fesm2020/progress-kendo-angular-progressbar.mjs +0 -1471
  23. /package/{esm2020 → esm2022}/circularprogressbar/models/center-template-context.interface.mjs +0 -0
  24. /package/{esm2020 → esm2022}/circularprogressbar/models/circular-progressbar-progress-color-interface.mjs +0 -0
  25. /package/{esm2020 → esm2022}/common/constants.mjs +0 -0
  26. /package/{esm2020 → esm2022}/common/util.mjs +0 -0
  27. /package/{esm2020 → esm2022}/directives.mjs +0 -0
  28. /package/{esm2020 → esm2022}/index.mjs +0 -0
  29. /package/{esm2020 → esm2022}/progress-kendo-angular-progressbar.mjs +0 -0
  30. /package/{esm2020 → esm2022}/types/animation-end-event.mjs +0 -0
  31. /package/{esm2020 → esm2022}/types/animation-options.interface.mjs +0 -0
  32. /package/{esm2020 → esm2022}/types/label-fn-type.mjs +0 -0
  33. /package/{esm2020 → esm2022}/types/label-position.mjs +0 -0
  34. /package/{esm2020 → esm2022}/types/label-settings.interface.mjs +0 -0
  35. /package/{esm2020 → esm2022}/types/label-type.mjs +0 -0
  36. /package/{esm2020 → esm2022}/types/progressbar-animation.interface.mjs +0 -0
  37. /package/{esm2020 → esm2022}/types/progressbar-orientation.mjs +0 -0
@@ -82,5 +82,5 @@ export declare class ChunkProgressBarComponent extends ProgressBarBase {
82
82
  */
83
83
  constructor(localization: LocalizationService, elem: ElementRef, renderer: Renderer2);
84
84
  static ɵfac: i0.ɵɵFactoryDeclaration<ChunkProgressBarComponent, never>;
85
- static ɵcmp: i0.ɵɵComponentDeclaration<ChunkProgressBarComponent, "kendo-chunkprogressbar", ["kendoChunkProgressBar"], { "chunkCount": "chunkCount"; "progressCssStyle": "progressCssStyle"; "progressCssClass": "progressCssClass"; "emptyCssStyle": "emptyCssStyle"; "emptyCssClass": "emptyCssClass"; }, {}, never, never, true, never>;
85
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChunkProgressBarComponent, "kendo-chunkprogressbar", ["kendoChunkProgressBar"], { "chunkCount": { "alias": "chunkCount"; "required": false; }; "progressCssStyle": { "alias": "progressCssStyle"; "required": false; }; "progressCssClass": { "alias": "progressCssClass"; "required": false; }; "emptyCssStyle": { "alias": "emptyCssStyle"; "required": false; }; "emptyCssClass": { "alias": "emptyCssClass"; "required": false; }; }, {}, never, never, true, never>;
86
86
  }
@@ -117,5 +117,5 @@ export declare class CircularProgressBarComponent implements AfterViewInit, OnCh
117
117
  private setDirection;
118
118
  private rtlChange;
119
119
  static ɵfac: i0.ɵɵFactoryDeclaration<CircularProgressBarComponent, never>;
120
- static ɵcmp: i0.ɵɵComponentDeclaration<CircularProgressBarComponent, "kendo-circularprogressbar", ["kendoCircularProgressBar"], { "value": "value"; "max": "max"; "min": "min"; "animation": "animation"; "opacity": "opacity"; "indeterminate": "indeterminate"; "progressColor": "progressColor"; }, { "animationEnd": "animationEnd"; }, ["centerTemplate"], never, true, never>;
120
+ static ɵcmp: i0.ɵɵComponentDeclaration<CircularProgressBarComponent, "kendo-circularprogressbar", ["kendoCircularProgressBar"], { "value": { "alias": "value"; "required": false; }; "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "progressColor": { "alias": "progressColor"; "required": false; }; }, { "animationEnd": "animationEnd"; }, ["centerTemplate"], never, true, never>;
121
121
  }
@@ -13,5 +13,5 @@ export declare class ProgressBarMessages extends ComponentMessages {
13
13
  */
14
14
  progressBarLabel: string;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarMessages, never>;
16
- static ɵdir: i0.ɵɵDirectiveDeclaration<ProgressBarMessages, never, never, { "progressBarLabel": "progressBarLabel"; }, {}, never, never, false, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ProgressBarMessages, never, never, { "progressBarLabel": { "alias": "progressBarLabel"; "required": false; }; }, {}, never, never, false, never>;
17
17
  }
@@ -103,5 +103,5 @@ export declare abstract class ProgressBarBase implements OnChanges {
103
103
  ngOnChanges(changes: SimpleChanges): void;
104
104
  ngOnDestroy(): void;
105
105
  static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarBase, never>;
106
- static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarBase, "ng-component", never, { "max": "max"; "min": "min"; "value": "value"; "orientation": "orientation"; "disabled": "disabled"; "reverse": "reverse"; "indeterminate": "indeterminate"; }, {}, never, never, false, never>;
106
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarBase, "ng-component", never, { "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "value": { "alias": "value"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; }, {}, never, never, false, never>;
107
107
  }
@@ -27,25 +27,15 @@ import * as i1 from "@progress/kendo-angular-l10n";
27
27
  * ```
28
28
  */
29
29
  export class ChunkProgressBarComponent extends ProgressBarBase {
30
+ localization;
31
+ elem;
32
+ renderer;
33
+ chunkClass = true;
30
34
  /**
31
- * @hidden
35
+ * Sets the number of chunks into which the ChunkProgressBar will be split.
36
+ * Defaults to `5`.
32
37
  */
33
- constructor(localization, elem, renderer) {
34
- super(elem, renderer, localization);
35
- this.localization = localization;
36
- this.elem = elem;
37
- this.renderer = renderer;
38
- this.chunkClass = true;
39
- /**
40
- * Sets the number of chunks into which the ChunkProgressBar will be split.
41
- * Defaults to `5`.
42
- */
43
- this.chunkCount = 5;
44
- this._orientationStyles = {
45
- width: `${this.chunkSizePercentage}%`,
46
- height: null
47
- };
48
- }
38
+ chunkCount = 5;
49
39
  /**
50
40
  * @hidden
51
41
  */
@@ -58,6 +48,28 @@ export class ChunkProgressBarComponent extends ProgressBarBase {
58
48
  }
59
49
  return chunks;
60
50
  }
51
+ /**
52
+ * The CSS styles that will be rendered on the full chunk elements ([see example]({% slug chunkprogressbar_appearance %})).
53
+ * Supports the type of values that are supported by [`ngStyle`](link:site.data.urls.angular['ngstyleapi']).
54
+ */
55
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
56
+ progressCssStyle;
57
+ /**
58
+ * The CSS classes that will be rendered on the full chunk elements ([see example]({% slug chunkprogressbar_appearance %})).
59
+ * Supports the type of values that are supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
60
+ */
61
+ progressCssClass;
62
+ /**
63
+ * The CSS styles that will be rendered on the empty chunk elements ([see example]({% slug chunkprogressbar_appearance %})).
64
+ * Supports the type of values that are supported by [`ngStyle`](link:site.data.urls.angular['ngstyleapi']).
65
+ */
66
+ emptyCssStyle;
67
+ /**
68
+ * The CSS classes that will be rendered on the empty chunk elements ([see example]({% slug chunkprogressbar_appearance %})).
69
+ * Supports the type of values that are supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
70
+ */
71
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
72
+ emptyCssClass;
61
73
  /**
62
74
  * @hidden
63
75
  */
@@ -78,15 +90,27 @@ export class ChunkProgressBarComponent extends ProgressBarBase {
78
90
  }
79
91
  return this._orientationStyles;
80
92
  }
81
- }
82
- ChunkProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChunkProgressBarComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
83
- ChunkProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChunkProgressBarComponent, isStandalone: true, selector: "kendo-chunkprogressbar", inputs: { chunkCount: "chunkCount", progressCssStyle: "progressCssStyle", progressCssClass: "progressCssClass", emptyCssStyle: "emptyCssStyle", emptyCssClass: "emptyCssClass" }, host: { properties: { "class.k-chunk-progressbar": "this.chunkClass" } }, providers: [
84
- LocalizationService,
85
- {
86
- provide: L10N_PREFIX,
87
- useValue: 'kendo.chunkprogressbar'
88
- }
89
- ], exportAs: ["kendoChunkProgressBar"], usesInheritance: true, ngImport: i0, template: `
93
+ _orientationStyles = {
94
+ width: `${this.chunkSizePercentage}%`,
95
+ height: null
96
+ };
97
+ /**
98
+ * @hidden
99
+ */
100
+ constructor(localization, elem, renderer) {
101
+ super(elem, renderer, localization);
102
+ this.localization = localization;
103
+ this.elem = elem;
104
+ this.renderer = renderer;
105
+ }
106
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChunkProgressBarComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
107
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ChunkProgressBarComponent, isStandalone: true, selector: "kendo-chunkprogressbar", inputs: { chunkCount: "chunkCount", progressCssStyle: "progressCssStyle", progressCssClass: "progressCssClass", emptyCssStyle: "emptyCssStyle", emptyCssClass: "emptyCssClass" }, host: { properties: { "class.k-chunk-progressbar": "this.chunkClass" } }, providers: [
108
+ LocalizationService,
109
+ {
110
+ provide: L10N_PREFIX,
111
+ useValue: 'kendo.chunkprogressbar'
112
+ }
113
+ ], exportAs: ["kendoChunkProgressBar"], usesInheritance: true, ngImport: i0, template: `
90
114
  <ng-container kendoProgressBarLocalizedMessages
91
115
  i18n-progressBarLabel="kendo.chunkprogressbar.progressBarLabel|The aria-label attribute for the ChunkProgressBar component."
92
116
  progressBarLabel="Chunk progressbar"
@@ -105,7 +129,8 @@ ChunkProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
105
129
  </li>
106
130
  </ul>
107
131
  `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedProgressBarMessagesDirective, selector: "[kendoProgressBarLocalizedMessages]" }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChunkProgressBarComponent, decorators: [{
132
+ }
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChunkProgressBarComponent, decorators: [{
109
134
  type: Component,
110
135
  args: [{
111
136
  exportAs: 'kendoChunkProgressBar',
@@ -9,13 +9,14 @@ import * as i0 from "@angular/core";
9
9
  * ([see example]({% slug center_template_circularprogressbar %})).
10
10
  */
11
11
  export class CircularProgressbarCenterTemplateDirective {
12
+ templateRef;
12
13
  constructor(templateRef) {
13
14
  this.templateRef = templateRef;
14
15
  }
16
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CircularProgressbarCenterTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
17
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CircularProgressbarCenterTemplateDirective, isStandalone: true, selector: "[kendoCircularProgressbarCenterTemplate]", ngImport: i0 });
15
18
  }
16
- CircularProgressbarCenterTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CircularProgressbarCenterTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
17
- CircularProgressbarCenterTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CircularProgressbarCenterTemplateDirective, isStandalone: true, selector: "[kendoCircularProgressbarCenterTemplate]", ngImport: i0 });
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CircularProgressbarCenterTemplateDirective, decorators: [{
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CircularProgressbarCenterTemplateDirective, decorators: [{
19
20
  type: Directive,
20
21
  args: [{
21
22
  selector: '[kendoCircularProgressbarCenterTemplate]',
@@ -33,40 +33,12 @@ const DEFAULT_SURFACE_SIZE = 200;
33
33
  * ```
34
34
  */
35
35
  export class CircularProgressBarComponent {
36
- constructor(renderer, cdr, localization, element, zone) {
37
- this.renderer = renderer;
38
- this.cdr = cdr;
39
- this.localization = localization;
40
- this.element = element;
41
- this.zone = zone;
42
- this.hostClasses = true;
43
- this.roleAttribute = 'progressbar';
44
- /**
45
- * Indicates whether an animation will be played on value changes.
46
- *
47
- * @default false
48
- */
49
- this.animation = false;
50
- /**
51
- * The opacity of the value arc.
52
- * @default 1
53
- */
54
- this.opacity = 1;
55
- /**
56
- * Fires when the animation which indicates the latest value change is completed.
57
- */
58
- this.animationEnd = new EventEmitter();
59
- this.centerTemplateContext = {};
60
- this._indeterminate = false;
61
- this._max = 100;
62
- this._min = 0;
63
- this._value = 0;
64
- this.previousValue = 0;
65
- this.internalValue = 0;
66
- this.subscriptions = new Subscription();
67
- validatePackage(packageMetadata);
68
- this.subscriptions.add(this.localization.changes.subscribe(this.rtlChange.bind(this)));
69
- }
36
+ renderer;
37
+ cdr;
38
+ localization;
39
+ element;
40
+ zone;
41
+ hostClasses = true;
70
42
  get ariaMinAttribute() {
71
43
  return String(this.min);
72
44
  }
@@ -76,6 +48,7 @@ export class CircularProgressBarComponent {
76
48
  get ariaValueAttribute() {
77
49
  return this.indeterminate ? undefined : String(this.value);
78
50
  }
51
+ roleAttribute = 'progressbar';
79
52
  /**
80
53
  * Sets the default value of the Circular Progressbar between `min` and `max`.
81
54
  *
@@ -122,6 +95,17 @@ export class CircularProgressBarComponent {
122
95
  get min() {
123
96
  return this._min;
124
97
  }
98
+ /**
99
+ * Indicates whether an animation will be played on value changes.
100
+ *
101
+ * @default false
102
+ */
103
+ animation = false;
104
+ /**
105
+ * The opacity of the value arc.
106
+ * @default 1
107
+ */
108
+ opacity = 1;
125
109
  /**
126
110
  * Puts the Circular ProgressBar in indeterminate state.
127
111
  * @default false
@@ -132,6 +116,37 @@ export class CircularProgressBarComponent {
132
116
  get indeterminate() {
133
117
  return this._indeterminate;
134
118
  }
119
+ /**
120
+ * Configures the pointer color. Could be set to a single color string or customized per progress stages.
121
+ */
122
+ progressColor;
123
+ /**
124
+ * Fires when the animation which indicates the latest value change is completed.
125
+ */
126
+ animationEnd = new EventEmitter();
127
+ progress;
128
+ scale;
129
+ labelElement;
130
+ surface;
131
+ centerTemplate;
132
+ centerTemplateContext = {};
133
+ _indeterminate = false;
134
+ _max = 100;
135
+ _min = 0;
136
+ _value = 0;
137
+ previousValue = 0;
138
+ internalValue = 0;
139
+ rtl;
140
+ subscriptions = new Subscription();
141
+ constructor(renderer, cdr, localization, element, zone) {
142
+ this.renderer = renderer;
143
+ this.cdr = cdr;
144
+ this.localization = localization;
145
+ this.element = element;
146
+ this.zone = zone;
147
+ validatePackage(packageMetadata);
148
+ this.subscriptions.add(this.localization.changes.subscribe(this.rtlChange.bind(this)));
149
+ }
135
150
  ngAfterViewInit() {
136
151
  if (!isDocumentAvailable()) {
137
152
  return;
@@ -376,15 +391,14 @@ export class CircularProgressBarComponent {
376
391
  this.setDirection();
377
392
  }
378
393
  }
379
- }
380
- CircularProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CircularProgressBarComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
381
- CircularProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CircularProgressBarComponent, isStandalone: true, selector: "kendo-circularprogressbar", inputs: { value: "value", max: "max", min: "min", animation: "animation", opacity: "opacity", indeterminate: "indeterminate", progressColor: "progressColor" }, outputs: { animationEnd: "animationEnd" }, host: { properties: { "class.k-circular-progressbar": "this.hostClasses", "attr.aria-valuemin": "this.ariaMinAttribute", "attr.aria-valuemax": "this.ariaMaxAttribute", "attr.aria-valuenow": "this.ariaValueAttribute", "attr.role": "this.roleAttribute" } }, providers: [
382
- LocalizationService,
383
- {
384
- provide: L10N_PREFIX,
385
- useValue: 'kendo.circularprogressbar'
386
- }
387
- ], queries: [{ propertyName: "centerTemplate", first: true, predicate: CircularProgressbarCenterTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "progress", first: true, predicate: ["progress"], descendants: true }, { propertyName: "scale", first: true, predicate: ["scale"], descendants: true }, { propertyName: "labelElement", first: true, predicate: ["label"], descendants: true }, { propertyName: "surface", first: true, predicate: ["surface"], descendants: true }], exportAs: ["kendoCircularProgressBar"], usesOnChanges: true, ngImport: i0, template: `
394
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CircularProgressBarComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
395
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CircularProgressBarComponent, isStandalone: true, selector: "kendo-circularprogressbar", inputs: { value: "value", max: "max", min: "min", animation: "animation", opacity: "opacity", indeterminate: "indeterminate", progressColor: "progressColor" }, outputs: { animationEnd: "animationEnd" }, host: { properties: { "class.k-circular-progressbar": "this.hostClasses", "attr.aria-valuemin": "this.ariaMinAttribute", "attr.aria-valuemax": "this.ariaMaxAttribute", "attr.aria-valuenow": "this.ariaValueAttribute", "attr.role": "this.roleAttribute" } }, providers: [
396
+ LocalizationService,
397
+ {
398
+ provide: L10N_PREFIX,
399
+ useValue: 'kendo.circularprogressbar'
400
+ }
401
+ ], queries: [{ propertyName: "centerTemplate", first: true, predicate: CircularProgressbarCenterTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "progress", first: true, predicate: ["progress"], descendants: true }, { propertyName: "scale", first: true, predicate: ["scale"], descendants: true }, { propertyName: "labelElement", first: true, predicate: ["label"], descendants: true }, { propertyName: "surface", first: true, predicate: ["surface"], descendants: true }], exportAs: ["kendoCircularProgressBar"], usesOnChanges: true, ngImport: i0, template: `
388
402
  <ng-container kendoProgressBarLocalizedMessages
389
403
  i18n-progressBarLabel="kendo.circularprogressbar.progressBarLabel|The aria-label attribute for the Circular ProgressBar component."
390
404
  progressBarLabel="Circular progressbar"
@@ -405,7 +419,8 @@ CircularProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14
405
419
  </div>
406
420
  <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>
407
421
  `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedProgressBarMessagesDirective, selector: "[kendoProgressBarLocalizedMessages]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }] });
408
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CircularProgressBarComponent, decorators: [{
422
+ }
423
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CircularProgressBarComponent, decorators: [{
409
424
  type: Component,
410
425
  args: [{
411
426
  exportAs: 'kendoCircularProgressBar',
@@ -12,6 +12,7 @@ import * as i1 from "@progress/kendo-angular-l10n";
12
12
  * ([see example]({% slug rtl_layout %})).
13
13
  */
14
14
  export class ProgressBarCustomMessagesComponent extends ProgressBarMessages {
15
+ service;
15
16
  constructor(service) {
16
17
  super();
17
18
  this.service = service;
@@ -19,15 +20,15 @@ export class ProgressBarCustomMessagesComponent extends ProgressBarMessages {
19
20
  get override() {
20
21
  return true;
21
22
  }
23
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgressBarCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
24
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ProgressBarCustomMessagesComponent, isStandalone: true, selector: "kendo-progressbar-messages", providers: [
25
+ {
26
+ provide: ProgressBarMessages,
27
+ useExisting: forwardRef(() => ProgressBarCustomMessagesComponent)
28
+ }
29
+ ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
22
30
  }
23
- ProgressBarCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProgressBarCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
24
- ProgressBarCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ProgressBarCustomMessagesComponent, isStandalone: true, selector: "kendo-progressbar-messages", providers: [
25
- {
26
- provide: ProgressBarMessages,
27
- useExisting: forwardRef(() => ProgressBarCustomMessagesComponent)
28
- }
29
- ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProgressBarCustomMessagesComponent, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgressBarCustomMessagesComponent, decorators: [{
31
32
  type: Component,
32
33
  args: [{
33
34
  providers: [
@@ -11,19 +11,20 @@ import * as i1 from "@progress/kendo-angular-l10n";
11
11
  * @hidden
12
12
  */
13
13
  export class LocalizedProgressBarMessagesDirective extends ProgressBarMessages {
14
+ service;
14
15
  constructor(service) {
15
16
  super();
16
17
  this.service = service;
17
18
  }
19
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedProgressBarMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
20
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LocalizedProgressBarMessagesDirective, isStandalone: true, selector: "[kendoProgressBarLocalizedMessages]", providers: [
21
+ {
22
+ provide: ProgressBarMessages,
23
+ useExisting: forwardRef(() => LocalizedProgressBarMessagesDirective)
24
+ }
25
+ ], usesInheritance: true, ngImport: i0 });
18
26
  }
19
- LocalizedProgressBarMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedProgressBarMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
20
- LocalizedProgressBarMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedProgressBarMessagesDirective, isStandalone: true, selector: "[kendoProgressBarLocalizedMessages]", providers: [
21
- {
22
- provide: ProgressBarMessages,
23
- useExisting: forwardRef(() => LocalizedProgressBarMessagesDirective)
24
- }
25
- ], usesInheritance: true, ngImport: i0 });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedProgressBarMessagesDirective, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedProgressBarMessagesDirective, decorators: [{
27
28
  type: Directive,
28
29
  args: [{
29
30
  providers: [
@@ -9,10 +9,14 @@ import * as i0 from "@angular/core";
9
9
  * @hidden
10
10
  */
11
11
  export class ProgressBarMessages extends ComponentMessages {
12
+ /**
13
+ * The aria-label attribute for the ProgressBar component.
14
+ */
15
+ progressBarLabel;
16
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgressBarMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
17
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ProgressBarMessages, inputs: { progressBarLabel: "progressBarLabel" }, usesInheritance: true, ngImport: i0 });
12
18
  }
13
- ProgressBarMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProgressBarMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
14
- ProgressBarMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ProgressBarMessages, inputs: { progressBarLabel: "progressBarLabel" }, usesInheritance: true, ngImport: i0 });
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProgressBarMessages, decorators: [{
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgressBarMessages, decorators: [{
16
20
  type: Directive,
17
21
  args: [{}]
18
22
  }], propDecorators: { progressBarLabel: [{
@@ -13,67 +13,10 @@ import * as i1 from "@progress/kendo-angular-l10n";
13
13
  * @hidden
14
14
  */
15
15
  export class ProgressBarBase {
16
- /**
17
- * @hidden
18
- */
19
- constructor(elem, renderer, localization) {
20
- this.elem = elem;
21
- this.renderer = renderer;
22
- this.localization = localization;
23
- this.hostClasses = true;
24
- this.roleAttribute = 'progressbar';
25
- /**
26
- * The maximum value of the ProgressBar.
27
- * Defaults to `100`.
28
- */
29
- this.max = 100;
30
- /**
31
- * The minimum value of the ProgressBar.
32
- * Defaults to `0`.
33
- */
34
- this.min = 0;
35
- /**
36
- * The value of the ProgressBar.
37
- * Has to be between `min` and `max`.
38
- * By default, the value is equal to the `min` value.
39
- */
40
- /**
41
- * The value of the ProgressBar.
42
- * Has to be between `min` and `max`.
43
- * Defaults to `0`.
44
- */
45
- this.value = 0;
46
- /**
47
- * Defines the orientation of the ProgressBar
48
- * ([see example]({% slug progressbar_orientation %})).
49
- * Defaults to `horizontal`.
50
- */
51
- this.orientation = 'horizontal';
52
- /**
53
- * If set to `true`, the ProgressBar will be disabled
54
- * ([see example]({% slug progressbar_disabled %})).
55
- * It will still allow you to change its value.
56
- * Defaults to `false`.
57
- */
58
- this.disabled = false;
59
- /**
60
- * If set to `true`, the ProgressBar will be reversed
61
- * ([see example]({% slug progressbar_direction %})).
62
- * Defaults to `false`.
63
- */
64
- this.reverse = false;
65
- /**
66
- * Sets the `indeterminate` state of the ProgressBar.
67
- * Defaults to `false`.
68
- */
69
- this.indeterminate = false;
70
- this.displayValue = 0;
71
- this.previousValue = 0;
72
- validatePackage(packageMetadata);
73
- this.localizationChangeSubscription = localization.changes.subscribe(({ rtl }) => {
74
- this.direction = rtl ? 'rtl' : 'ltr';
75
- });
76
- }
16
+ elem;
17
+ renderer;
18
+ localization;
19
+ hostClasses = true;
77
20
  get isHorizontal() {
78
21
  return this.orientation === 'horizontal';
79
22
  }
@@ -92,6 +35,7 @@ export class ProgressBarBase {
92
35
  get dirAttribute() {
93
36
  return this.direction;
94
37
  }
38
+ roleAttribute = 'progressbar';
95
39
  get ariaMinAttribute() {
96
40
  return String(this.min);
97
41
  }
@@ -101,6 +45,27 @@ export class ProgressBarBase {
101
45
  get ariaValueAttribute() {
102
46
  return this.indeterminate ? undefined : String(this.displayValue);
103
47
  }
48
+ /**
49
+ * The maximum value of the ProgressBar.
50
+ * Defaults to `100`.
51
+ */
52
+ max = 100;
53
+ /**
54
+ * The minimum value of the ProgressBar.
55
+ * Defaults to `0`.
56
+ */
57
+ min = 0;
58
+ /**
59
+ * The value of the ProgressBar.
60
+ * Has to be between `min` and `max`.
61
+ * By default, the value is equal to the `min` value.
62
+ */
63
+ /**
64
+ * The value of the ProgressBar.
65
+ * Has to be between `min` and `max`.
66
+ * Defaults to `0`.
67
+ */
68
+ value = 0;
104
69
  /**
105
70
  * @hidden
106
71
  */
@@ -134,6 +99,46 @@ export class ProgressBarBase {
134
99
  get _progressRatio() {
135
100
  return calculateRatio(this.min, this.max, this.displayValue);
136
101
  }
102
+ /**
103
+ * Defines the orientation of the ProgressBar
104
+ * ([see example]({% slug progressbar_orientation %})).
105
+ * Defaults to `horizontal`.
106
+ */
107
+ orientation = 'horizontal';
108
+ /**
109
+ * If set to `true`, the ProgressBar will be disabled
110
+ * ([see example]({% slug progressbar_disabled %})).
111
+ * It will still allow you to change its value.
112
+ * Defaults to `false`.
113
+ */
114
+ disabled = false;
115
+ /**
116
+ * If set to `true`, the ProgressBar will be reversed
117
+ * ([see example]({% slug progressbar_direction %})).
118
+ * Defaults to `false`.
119
+ */
120
+ reverse = false;
121
+ /**
122
+ * Sets the `indeterminate` state of the ProgressBar.
123
+ * Defaults to `false`.
124
+ */
125
+ indeterminate = false;
126
+ direction;
127
+ localizationChangeSubscription;
128
+ displayValue = 0;
129
+ previousValue = 0;
130
+ /**
131
+ * @hidden
132
+ */
133
+ constructor(elem, renderer, localization) {
134
+ this.elem = elem;
135
+ this.renderer = renderer;
136
+ this.localization = localization;
137
+ validatePackage(packageMetadata);
138
+ this.localizationChangeSubscription = localization.changes.subscribe(({ rtl }) => {
139
+ this.direction = rtl ? 'rtl' : 'ltr';
140
+ });
141
+ }
137
142
  ngAfterViewInit() {
138
143
  const elem = this.elem.nativeElement;
139
144
  const label = this.localization.get('progressBarLabel');
@@ -165,10 +170,10 @@ export class ProgressBarBase {
165
170
  this.localizationChangeSubscription.unsubscribe();
166
171
  }
167
172
  }
173
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgressBarBase, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
174
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ProgressBarBase, selector: "ng-component", inputs: { max: "max", min: "min", value: "value", orientation: "orientation", disabled: "disabled", reverse: "reverse", indeterminate: "indeterminate" }, host: { properties: { "class.k-progressbar": "this.hostClasses", "class.k-progressbar-horizontal": "this.isHorizontal", "class.k-progressbar-vertical": "this.isVertical", "class.k-disabled": "this.disabledClass", "class.k-progressbar-reverse": "this.reverseClass", "class.k-progressbar-indeterminate": "this.indeterminateClass", "attr.dir": "this.dirAttribute", "attr.role": "this.roleAttribute", "attr.aria-valuemin": "this.ariaMinAttribute", "attr.aria-valuemax": "this.ariaMaxAttribute", "attr.aria-valuenow": "this.ariaValueAttribute" } }, usesOnChanges: true, ngImport: i0, template: '', isInline: true });
168
175
  }
169
- ProgressBarBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProgressBarBase, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
170
- ProgressBarBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ProgressBarBase, selector: "ng-component", inputs: { max: "max", min: "min", value: "value", orientation: "orientation", disabled: "disabled", reverse: "reverse", indeterminate: "indeterminate" }, host: { properties: { "class.k-progressbar": "this.hostClasses", "class.k-progressbar-horizontal": "this.isHorizontal", "class.k-progressbar-vertical": "this.isVertical", "class.k-disabled": "this.disabledClass", "class.k-progressbar-reverse": "this.reverseClass", "class.k-progressbar-indeterminate": "this.indeterminateClass", "attr.dir": "this.dirAttribute", "attr.role": "this.roleAttribute", "attr.aria-valuemin": "this.ariaMinAttribute", "attr.aria-valuemax": "this.ariaMaxAttribute", "attr.aria-valuenow": "this.ariaValueAttribute" } }, usesOnChanges: true, ngImport: i0, template: '', isInline: true });
171
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProgressBarBase, decorators: [{
176
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgressBarBase, decorators: [{
172
177
  type: Component,
173
178
  args: [{
174
179
  template: ''
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-progressbar',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1729874058,
13
- version: '17.0.0-develop.21',
12
+ publishDate: 1730104772,
13
+ version: '17.0.0-develop.23',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };