@progress/kendo-angular-progressbar 2.0.4 → 3.0.0-next.202203230843
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/bundles/kendo-angular-progressbar.umd.js +5 -0
- package/{dist/es2015/chunk → chunk}/chunk-progressbar.component.d.ts +6 -3
- package/{dist/es2015/common → common}/constants.d.ts +0 -0
- package/{dist/es2015/common → common}/progressbar-base.d.ts +19 -16
- package/{dist/es2015/common → common}/util.d.ts +0 -0
- package/{dist/es2015 → esm2015}/chunk/chunk-progressbar.component.js +51 -39
- package/{dist/es2015 → esm2015}/common/constants.js +0 -0
- package/{dist/es2015 → esm2015}/common/progressbar-base.js +61 -84
- package/{dist/es2015 → esm2015}/common/util.js +0 -3
- package/{dist/es2015/index.d.ts → esm2015/kendo-angular-progressbar.js} +0 -1
- package/{dist/es → esm2015}/main.js +0 -0
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015 → esm2015}/progressbar.component.js +79 -58
- package/{dist/es2015 → esm2015}/progressbar.module.js +14 -11
- package/{dist/es2015 → esm2015}/types/animation-end-event.js +1 -0
- package/{dist/es2015 → esm2015}/types/animation-options.interface.js +1 -0
- package/{dist/es2015 → esm2015}/types/label-fn-type.js +1 -0
- package/{dist/es → esm2015}/types/label-position.js +1 -0
- package/{dist/es → esm2015}/types/label-settings.interface.js +1 -0
- package/{dist/es → esm2015}/types/label-type.js +1 -0
- package/{dist/es → esm2015}/types/progressbar-animation.interface.js +1 -0
- package/{dist/es → esm2015}/types/progressbar-orientation.js +1 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-progressbar.js} +201 -187
- package/{dist/es/index.js → kendo-angular-progressbar.d.ts} +1 -1
- package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +32 -102
- package/{dist/es2015/progressbar.component.d.ts → progressbar.component.d.ts} +10 -7
- package/{dist/es2015/progressbar.module.d.ts → progressbar.module.d.ts} +7 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/types → types}/animation-end-event.d.ts +0 -0
- package/{dist/es2015/types → types}/animation-options.interface.d.ts +0 -0
- package/{dist/es2015/types → types}/label-fn-type.d.ts +0 -0
- package/{dist/es2015/types → types}/label-position.d.ts +0 -0
- package/{dist/es2015/types → types}/label-settings.interface.d.ts +0 -0
- package/{dist/es2015/types → types}/label-type.d.ts +0 -0
- package/{dist/es2015/types → types}/progressbar-animation.interface.d.ts +0 -0
- package/{dist/es2015/types → types}/progressbar-orientation.d.ts +0 -0
- package/dist/cdn/js/kendo-angular-progressbar.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/chunk/chunk-progressbar.component.js +0 -129
- package/dist/es/common/constants.js +0 -16
- package/dist/es/common/progressbar-base.js +0 -305
- package/dist/es/common/util.js +0 -86
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/progressbar.component.js +0 -304
- package/dist/es/progressbar.module.js +0 -55
- package/dist/es/types/animation-end-event.js +0 -4
- package/dist/es/types/animation-options.interface.js +0 -4
- package/dist/es/types/label-fn-type.js +0 -4
- package/dist/es2015/index.js +0 -9
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/main.js +0 -7
- package/dist/es2015/types/label-position.js +0 -4
- package/dist/es2015/types/label-settings.interface.js +0 -4
- package/dist/es2015/types/label-type.js +0 -4
- package/dist/es2015/types/progressbar-animation.interface.js +0 -4
- package/dist/es2015/types/progressbar-orientation.js +0 -4
- package/dist/fesm5/index.js +0 -875
- package/dist/npm/chunk/chunk-progressbar.component.js +0 -131
- package/dist/npm/common/constants.js +0 -18
- package/dist/npm/common/progressbar-base.js +0 -307
- package/dist/npm/common/util.js +0 -89
- package/dist/npm/index.js +0 -13
- package/dist/npm/main.js +0 -12
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/progressbar.component.js +0 -306
- package/dist/npm/progressbar.module.js +0 -57
- package/dist/npm/types/animation-end-event.js +0 -6
- package/dist/npm/types/animation-options.interface.js +0 -6
- package/dist/npm/types/label-fn-type.js +0 -6
- package/dist/npm/types/label-position.js +0 -6
- package/dist/npm/types/label-settings.interface.js +0 -6
- package/dist/npm/types/label-type.js +0 -6
- package/dist/npm/types/progressbar-animation.interface.js +0 -6
- package/dist/npm/types/progressbar-orientation.js +0 -6
- package/dist/systemjs/kendo-angular-progressbar.js +0 -5
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
5
|
import { ProgressBarBase } from './common/progressbar-base';
|
|
7
|
-
import { Component, Input,
|
|
6
|
+
import { Component, Input, ViewChild, Output, EventEmitter } from '@angular/core';
|
|
8
7
|
import { formatValue, calculateRatio, runAnimation, stopCurrentAnimation } from './common/util';
|
|
9
8
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
10
9
|
import { hasObservers } from '@progress/kendo-angular-common';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
|
12
|
+
import * as i2 from "@angular/common";
|
|
11
13
|
/**
|
|
12
14
|
* Represents the [Kendo UI ProgressBar component for Angular]({% slug overview_progressbar %}).
|
|
13
15
|
*
|
|
@@ -25,7 +27,7 @@ import { hasObservers } from '@progress/kendo-angular-common';
|
|
|
25
27
|
* }
|
|
26
28
|
* ```
|
|
27
29
|
*/
|
|
28
|
-
|
|
30
|
+
export class ProgressBarComponent extends ProgressBarBase {
|
|
29
31
|
/**
|
|
30
32
|
* @hidden
|
|
31
33
|
*/
|
|
@@ -213,48 +215,51 @@ let ProgressBarComponent = class ProgressBarComponent extends ProgressBarBase {
|
|
|
213
215
|
this.isAnimationInProgress = false;
|
|
214
216
|
});
|
|
215
217
|
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
],
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
]
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
]
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
]
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
]
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
218
|
+
}
|
|
219
|
+
ProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarComponent, deps: [{ token: i1.LocalizationService }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
220
|
+
ProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ProgressBarComponent, selector: "kendo-progressbar", inputs: { label: "label", progressCssStyle: "progressCssStyle", progressCssClass: "progressCssClass", emptyCssStyle: "emptyCssStyle", emptyCssClass: "emptyCssClass", animation: "animation" }, outputs: { animationEnd: "animationEnd" }, providers: [
|
|
221
|
+
LocalizationService,
|
|
222
|
+
{
|
|
223
|
+
provide: L10N_PREFIX,
|
|
224
|
+
useValue: 'kendo.progressbar'
|
|
225
|
+
}
|
|
226
|
+
], viewQueries: [{ propertyName: "progressStatusElement", first: true, predicate: ["progressStatus"], descendants: true }, { propertyName: "progressStatusWrapperElement", first: true, predicate: ["progressStatusWrap"], descendants: true }], exportAs: ["kendoProgressBar"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
227
|
+
<span class="k-progress-status-wrap"
|
|
228
|
+
[class.k-progress-start]="isPositionStart"
|
|
229
|
+
[class.k-progress-center]="isPositionCenter"
|
|
230
|
+
[class.k-progress-end]="isPositionEnd"
|
|
231
|
+
[ngStyle]="emptyCssStyle"
|
|
232
|
+
[ngClass]="emptyCssClass">
|
|
233
|
+
<span *ngIf="showLabel" class="k-progress-status">{{formattedLabelValue}}</span>
|
|
234
|
+
</span>
|
|
235
|
+
<div
|
|
236
|
+
#progressStatus
|
|
237
|
+
class="k-state-selected"
|
|
238
|
+
[class.k-complete]="isCompleted"
|
|
239
|
+
[ngStyle]="progressCssStyle"
|
|
240
|
+
[ngClass]="progressCssClass"
|
|
241
|
+
[style.width.%]="statusWidth"
|
|
242
|
+
[style.height.%]="statusHeight"
|
|
243
|
+
>
|
|
244
|
+
<span
|
|
245
|
+
#progressStatusWrap
|
|
246
|
+
class="k-progress-status-wrap"
|
|
247
|
+
[style.width.%]="statusWrapperWidth"
|
|
248
|
+
[style.height.%]="statusWrapperHeight"
|
|
249
|
+
[class.k-progress-start]="isPositionStart"
|
|
250
|
+
[class.k-progress-center]="isPositionCenter"
|
|
251
|
+
[class.k-progress-end]="isPositionEnd"
|
|
252
|
+
>
|
|
253
|
+
<span *ngIf="showLabel" class="k-progress-status">{{formattedLabelValue}}</span>
|
|
254
|
+
</span>
|
|
255
|
+
</div>
|
|
256
|
+
`, isInline: true, directives: [{ type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarComponent, decorators: [{
|
|
258
|
+
type: Component,
|
|
259
|
+
args: [{
|
|
260
|
+
exportAs: 'kendoProgressBar',
|
|
261
|
+
selector: 'kendo-progressbar',
|
|
262
|
+
template: `
|
|
258
263
|
<span class="k-progress-status-wrap"
|
|
259
264
|
[class.k-progress-start]="isPositionStart"
|
|
260
265
|
[class.k-progress-center]="isPositionCenter"
|
|
@@ -285,16 +290,32 @@ ProgressBarComponent = tslib_1.__decorate([
|
|
|
285
290
|
</span>
|
|
286
291
|
</div>
|
|
287
292
|
`,
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
293
|
+
providers: [
|
|
294
|
+
LocalizationService,
|
|
295
|
+
{
|
|
296
|
+
provide: L10N_PREFIX,
|
|
297
|
+
useValue: 'kendo.progressbar'
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
}]
|
|
301
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.NgZone }, { type: i0.Renderer2 }]; }, propDecorators: { label: [{
|
|
302
|
+
type: Input
|
|
303
|
+
}], progressCssStyle: [{
|
|
304
|
+
type: Input
|
|
305
|
+
}], progressCssClass: [{
|
|
306
|
+
type: Input
|
|
307
|
+
}], emptyCssStyle: [{
|
|
308
|
+
type: Input
|
|
309
|
+
}], emptyCssClass: [{
|
|
310
|
+
type: Input
|
|
311
|
+
}], animation: [{
|
|
312
|
+
type: Input
|
|
313
|
+
}], animationEnd: [{
|
|
314
|
+
type: Output
|
|
315
|
+
}], progressStatusElement: [{
|
|
316
|
+
type: ViewChild,
|
|
317
|
+
args: ['progressStatus', { static: false }]
|
|
318
|
+
}], progressStatusWrapperElement: [{
|
|
319
|
+
type: ViewChild,
|
|
320
|
+
args: ['progressStatusWrap', { static: false }]
|
|
321
|
+
}] } });
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
5
|
import { ChunkProgressBarComponent } from './chunk/chunk-progressbar.component';
|
|
7
6
|
import { NgModule } from '@angular/core';
|
|
8
7
|
import { CommonModule } from '@angular/common';
|
|
9
8
|
import { ProgressBarComponent } from './progressbar.component';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
10
|
const COMPONENT_DIRECTIVES = [ProgressBarComponent, ChunkProgressBarComponent];
|
|
11
11
|
const MODULES = [CommonModule];
|
|
12
12
|
/**
|
|
@@ -40,13 +40,16 @@ const MODULES = [CommonModule];
|
|
|
40
40
|
*
|
|
41
41
|
* ```
|
|
42
42
|
*/
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
ProgressBarModule =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
43
|
+
export class ProgressBarModule {
|
|
44
|
+
}
|
|
45
|
+
ProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
46
|
+
ProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarModule, declarations: [ProgressBarComponent, ChunkProgressBarComponent], imports: [CommonModule], exports: [ProgressBarComponent, ChunkProgressBarComponent] });
|
|
47
|
+
ProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarModule, imports: [MODULES] });
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarModule, decorators: [{
|
|
49
|
+
type: NgModule,
|
|
50
|
+
args: [{
|
|
51
|
+
declarations: COMPONENT_DIRECTIVES,
|
|
52
|
+
exports: COMPONENT_DIRECTIVES,
|
|
53
|
+
imports: MODULES
|
|
54
|
+
}]
|
|
55
|
+
}] });
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|