@progress/kendo-angular-progressbar 2.0.3 → 3.0.0-next.202202141243
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 -98
- 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
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { ProgressBarBase } from './common/progressbar-base';
|
|
7
|
-
import { Component, Input, NgZone, Renderer2, ViewChild, ElementRef, Output, EventEmitter } from '@angular/core';
|
|
8
|
-
import { formatValue, calculateRatio, runAnimation, stopCurrentAnimation } from './common/util';
|
|
9
|
-
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
10
|
-
import { hasObservers } from '@progress/kendo-angular-common';
|
|
11
|
-
/**
|
|
12
|
-
* Represents the [Kendo UI ProgressBar component for Angular]({% slug overview_progressbar %}).
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts-preview
|
|
16
|
-
* _@Component({
|
|
17
|
-
* selector: 'my-app',
|
|
18
|
-
* template: `
|
|
19
|
-
* <kendo-progressbar [value]="value">
|
|
20
|
-
* </kendo-progressbar>
|
|
21
|
-
* `
|
|
22
|
-
* })
|
|
23
|
-
* class AppComponent {
|
|
24
|
-
* public value = 50;
|
|
25
|
-
* }
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
var ProgressBarComponent = /** @class */ (function (_super) {
|
|
29
|
-
tslib_1.__extends(ProgressBarComponent, _super);
|
|
30
|
-
/**
|
|
31
|
-
* @hidden
|
|
32
|
-
*/
|
|
33
|
-
function ProgressBarComponent(localization, zone, renderer) {
|
|
34
|
-
var _this = _super.call(this, localization) || this;
|
|
35
|
-
_this.localization = localization;
|
|
36
|
-
_this.zone = zone;
|
|
37
|
-
_this.renderer = renderer;
|
|
38
|
-
/**
|
|
39
|
-
* Determines whether the status label will be visible.
|
|
40
|
-
* Defaults to `true`—the label will be visible and displayed with the default
|
|
41
|
-
* `LabelSettings` having its position set to `end` and its format set to `value`.
|
|
42
|
-
*/
|
|
43
|
-
_this.label = true;
|
|
44
|
-
/**
|
|
45
|
-
* The animation configuration of the ProgressBar.
|
|
46
|
-
* Defaults to `false`.
|
|
47
|
-
*/
|
|
48
|
-
_this.animation = false;
|
|
49
|
-
/**
|
|
50
|
-
* Fires when the animation which indicates the latest value change is completed.
|
|
51
|
-
*/
|
|
52
|
-
_this.animationEnd = new EventEmitter();
|
|
53
|
-
return _this;
|
|
54
|
-
}
|
|
55
|
-
Object.defineProperty(ProgressBarComponent.prototype, "showLabel", {
|
|
56
|
-
/**
|
|
57
|
-
* @hidden
|
|
58
|
-
*/
|
|
59
|
-
get: function () {
|
|
60
|
-
if (typeof this.label === 'boolean') {
|
|
61
|
-
return this.label;
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
if (this.label && !this.label.hasOwnProperty('visible')) {
|
|
65
|
-
this.label.visible = true;
|
|
66
|
-
}
|
|
67
|
-
return this.label.visible;
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
enumerable: true,
|
|
71
|
-
configurable: true
|
|
72
|
-
});
|
|
73
|
-
Object.defineProperty(ProgressBarComponent.prototype, "labelPosition", {
|
|
74
|
-
/**
|
|
75
|
-
* @hidden
|
|
76
|
-
*/
|
|
77
|
-
get: function () {
|
|
78
|
-
if (typeof this.label === 'boolean') {
|
|
79
|
-
return 'end';
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
if (this.label && !this.label.hasOwnProperty('position')) {
|
|
83
|
-
this.label.position = 'end';
|
|
84
|
-
}
|
|
85
|
-
return this.label.position;
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
enumerable: true,
|
|
89
|
-
configurable: true
|
|
90
|
-
});
|
|
91
|
-
Object.defineProperty(ProgressBarComponent.prototype, "isPositionStart", {
|
|
92
|
-
/**
|
|
93
|
-
* @hidden
|
|
94
|
-
*/
|
|
95
|
-
get: function () {
|
|
96
|
-
return this.labelPosition === 'start';
|
|
97
|
-
},
|
|
98
|
-
enumerable: true,
|
|
99
|
-
configurable: true
|
|
100
|
-
});
|
|
101
|
-
Object.defineProperty(ProgressBarComponent.prototype, "isPositionCenter", {
|
|
102
|
-
/**
|
|
103
|
-
* @hidden
|
|
104
|
-
*/
|
|
105
|
-
get: function () {
|
|
106
|
-
return this.labelPosition === 'center';
|
|
107
|
-
},
|
|
108
|
-
enumerable: true,
|
|
109
|
-
configurable: true
|
|
110
|
-
});
|
|
111
|
-
Object.defineProperty(ProgressBarComponent.prototype, "isPositionEnd", {
|
|
112
|
-
/**
|
|
113
|
-
* @hidden
|
|
114
|
-
*/
|
|
115
|
-
get: function () {
|
|
116
|
-
return this.labelPosition === 'end';
|
|
117
|
-
},
|
|
118
|
-
enumerable: true,
|
|
119
|
-
configurable: true
|
|
120
|
-
});
|
|
121
|
-
Object.defineProperty(ProgressBarComponent.prototype, "formattedLabelValue", {
|
|
122
|
-
/**
|
|
123
|
-
* @hidden
|
|
124
|
-
*/
|
|
125
|
-
get: function () {
|
|
126
|
-
return formatValue(this.displayValue, this.min, this.max, this.label);
|
|
127
|
-
},
|
|
128
|
-
enumerable: true,
|
|
129
|
-
configurable: true
|
|
130
|
-
});
|
|
131
|
-
/**
|
|
132
|
-
* @hidden
|
|
133
|
-
*/
|
|
134
|
-
ProgressBarComponent.prototype.ngOnChanges = function (changes) {
|
|
135
|
-
_super.prototype.ngOnChanges.call(this, changes);
|
|
136
|
-
if (this.isAnimationInProgress && stopCurrentAnimation(changes)) {
|
|
137
|
-
this.cancelCurrentAnimation = true;
|
|
138
|
-
}
|
|
139
|
-
if (runAnimation(changes, this.animation, this.previousValue, this.displayValue) && !changes.value.firstChange) {
|
|
140
|
-
this.startAnimation(this.previousValue);
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
/**
|
|
144
|
-
* @hidden
|
|
145
|
-
*/
|
|
146
|
-
ProgressBarComponent.prototype.ngOnDestroy = function () {
|
|
147
|
-
if (this.animationFrame) {
|
|
148
|
-
cancelAnimationFrame(this.animationFrame);
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
/**
|
|
152
|
-
* @hidden
|
|
153
|
-
*/
|
|
154
|
-
ProgressBarComponent.prototype.startAnimation = function (previousValue) {
|
|
155
|
-
var _this = this;
|
|
156
|
-
this.isAnimationInProgress = true;
|
|
157
|
-
var element = this.progressStatusElement.nativeElement;
|
|
158
|
-
var wrapperElement = this.progressStatusWrapperElement.nativeElement;
|
|
159
|
-
var animationOptions = this.getAnimationOptions(previousValue);
|
|
160
|
-
this.zone.runOutsideAngular(function () {
|
|
161
|
-
if (_this.animationFrame) {
|
|
162
|
-
cancelAnimationFrame(_this.animationFrame);
|
|
163
|
-
}
|
|
164
|
-
var animate = function () {
|
|
165
|
-
var elapsed = new Date().getTime() - animationOptions.startTime;
|
|
166
|
-
var position = Math.min(elapsed / animationOptions.duration, 1);
|
|
167
|
-
var size = animationOptions.startSize + animationOptions.deltaSize * position;
|
|
168
|
-
var wrapperSize = (100 / size) * 100;
|
|
169
|
-
_this.renderValueChange(element, wrapperElement, animationOptions.property, size, wrapperSize);
|
|
170
|
-
if (position < 1) {
|
|
171
|
-
if (_this.cancelCurrentAnimation) {
|
|
172
|
-
_this.resetProgress(element, wrapperElement, animationOptions.property);
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
_this.animationFrame = requestAnimationFrame(animate);
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
_this.stopAnimation(previousValue);
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
animate();
|
|
182
|
-
});
|
|
183
|
-
};
|
|
184
|
-
Object.defineProperty(ProgressBarComponent.prototype, "animationDuration", {
|
|
185
|
-
/**
|
|
186
|
-
* @hidden
|
|
187
|
-
*/
|
|
188
|
-
get: function () {
|
|
189
|
-
if (typeof this.animation === 'boolean') {
|
|
190
|
-
return 400;
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
if (this.animation && !this.animation.hasOwnProperty('duration')) {
|
|
194
|
-
this.animation.duration = 400;
|
|
195
|
-
}
|
|
196
|
-
return this.animation.duration;
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
enumerable: true,
|
|
200
|
-
configurable: true
|
|
201
|
-
});
|
|
202
|
-
ProgressBarComponent.prototype.stopAnimation = function (value) {
|
|
203
|
-
var _this = this;
|
|
204
|
-
if (hasObservers(this.animationEnd)) {
|
|
205
|
-
this.zone.run(function () {
|
|
206
|
-
_this.animationEnd.emit({
|
|
207
|
-
from: value,
|
|
208
|
-
to: _this.displayValue
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
this.zone.run(function () {
|
|
213
|
-
_this.isAnimationInProgress = false;
|
|
214
|
-
});
|
|
215
|
-
};
|
|
216
|
-
ProgressBarComponent.prototype.getAnimationOptions = function (value) {
|
|
217
|
-
var isHorizontal = this.orientation === 'horizontal';
|
|
218
|
-
var previousRatio = calculateRatio(this.min, this.max, value);
|
|
219
|
-
var previousStatusWidth = isHorizontal ? previousRatio * 100 : 100;
|
|
220
|
-
var previousStatusHeight = !isHorizontal ? previousRatio * 100 : 100;
|
|
221
|
-
var property = isHorizontal ? 'width' : 'height';
|
|
222
|
-
var startTime = new Date().getTime();
|
|
223
|
-
var startSize = isHorizontal ? previousStatusWidth : previousStatusHeight;
|
|
224
|
-
var deltaSize = isHorizontal ? this.statusWidth - previousStatusWidth : this.statusHeight - previousStatusHeight;
|
|
225
|
-
var duration = this.animationDuration * Math.abs((deltaSize / 100));
|
|
226
|
-
return {
|
|
227
|
-
property: property,
|
|
228
|
-
startTime: startTime,
|
|
229
|
-
startSize: startSize,
|
|
230
|
-
deltaSize: deltaSize,
|
|
231
|
-
duration: duration
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
ProgressBarComponent.prototype.renderValueChange = function (element, wrapperElement, property, size, wrapperSize) {
|
|
235
|
-
this.renderer.setStyle(element, property, size + '%');
|
|
236
|
-
this.renderer.setStyle(wrapperElement, property, wrapperSize + '%');
|
|
237
|
-
};
|
|
238
|
-
ProgressBarComponent.prototype.resetProgress = function (element, wrapperElement, property) {
|
|
239
|
-
var _this = this;
|
|
240
|
-
var size = calculateRatio(this.min, this.max, this.value);
|
|
241
|
-
var newSize = size * 100;
|
|
242
|
-
var newWrapperSize = 100 / size;
|
|
243
|
-
this.renderValueChange(element, wrapperElement, property, newSize, newWrapperSize);
|
|
244
|
-
this.zone.run(function () {
|
|
245
|
-
_this.cancelCurrentAnimation = false;
|
|
246
|
-
_this.isAnimationInProgress = false;
|
|
247
|
-
});
|
|
248
|
-
};
|
|
249
|
-
tslib_1.__decorate([
|
|
250
|
-
Input(),
|
|
251
|
-
tslib_1.__metadata("design:type", Object)
|
|
252
|
-
], ProgressBarComponent.prototype, "label", void 0);
|
|
253
|
-
tslib_1.__decorate([
|
|
254
|
-
Input(),
|
|
255
|
-
tslib_1.__metadata("design:type", Object)
|
|
256
|
-
], ProgressBarComponent.prototype, "progressCssStyle", void 0);
|
|
257
|
-
tslib_1.__decorate([
|
|
258
|
-
Input(),
|
|
259
|
-
tslib_1.__metadata("design:type", Object)
|
|
260
|
-
], ProgressBarComponent.prototype, "progressCssClass", void 0);
|
|
261
|
-
tslib_1.__decorate([
|
|
262
|
-
Input(),
|
|
263
|
-
tslib_1.__metadata("design:type", Object)
|
|
264
|
-
], ProgressBarComponent.prototype, "emptyCssStyle", void 0);
|
|
265
|
-
tslib_1.__decorate([
|
|
266
|
-
Input(),
|
|
267
|
-
tslib_1.__metadata("design:type", Object)
|
|
268
|
-
], ProgressBarComponent.prototype, "emptyCssClass", void 0);
|
|
269
|
-
tslib_1.__decorate([
|
|
270
|
-
Input(),
|
|
271
|
-
tslib_1.__metadata("design:type", Object)
|
|
272
|
-
], ProgressBarComponent.prototype, "animation", void 0);
|
|
273
|
-
tslib_1.__decorate([
|
|
274
|
-
Output(),
|
|
275
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
276
|
-
], ProgressBarComponent.prototype, "animationEnd", void 0);
|
|
277
|
-
tslib_1.__decorate([
|
|
278
|
-
ViewChild('progressStatus', { static: false }),
|
|
279
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
280
|
-
], ProgressBarComponent.prototype, "progressStatusElement", void 0);
|
|
281
|
-
tslib_1.__decorate([
|
|
282
|
-
ViewChild('progressStatusWrap', { static: false }),
|
|
283
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
284
|
-
], ProgressBarComponent.prototype, "progressStatusWrapperElement", void 0);
|
|
285
|
-
ProgressBarComponent = tslib_1.__decorate([
|
|
286
|
-
Component({
|
|
287
|
-
exportAs: 'kendoProgressBar',
|
|
288
|
-
selector: 'kendo-progressbar',
|
|
289
|
-
template: "\n <span class=\"k-progress-status-wrap\"\n [class.k-progress-start]=\"isPositionStart\"\n [class.k-progress-center]=\"isPositionCenter\"\n [class.k-progress-end]=\"isPositionEnd\"\n [ngStyle]=\"emptyCssStyle\"\n [ngClass]=\"emptyCssClass\">\n <span *ngIf=\"showLabel\" class=\"k-progress-status\">{{formattedLabelValue}}</span>\n </span>\n <div\n #progressStatus\n class=\"k-state-selected\"\n [class.k-complete]=\"isCompleted\"\n [ngStyle]=\"progressCssStyle\"\n [ngClass]=\"progressCssClass\"\n [style.width.%]=\"statusWidth\"\n [style.height.%]=\"statusHeight\"\n >\n <span\n #progressStatusWrap\n class=\"k-progress-status-wrap\"\n [style.width.%]=\"statusWrapperWidth\"\n [style.height.%]=\"statusWrapperHeight\"\n [class.k-progress-start]=\"isPositionStart\"\n [class.k-progress-center]=\"isPositionCenter\"\n [class.k-progress-end]=\"isPositionEnd\"\n >\n <span *ngIf=\"showLabel\" class=\"k-progress-status\">{{formattedLabelValue}}</span>\n </span>\n </div>\n ",
|
|
290
|
-
providers: [
|
|
291
|
-
LocalizationService,
|
|
292
|
-
{
|
|
293
|
-
provide: L10N_PREFIX,
|
|
294
|
-
useValue: 'kendo.progressbar'
|
|
295
|
-
}
|
|
296
|
-
]
|
|
297
|
-
}),
|
|
298
|
-
tslib_1.__metadata("design:paramtypes", [LocalizationService,
|
|
299
|
-
NgZone,
|
|
300
|
-
Renderer2])
|
|
301
|
-
], ProgressBarComponent);
|
|
302
|
-
return ProgressBarComponent;
|
|
303
|
-
}(ProgressBarBase));
|
|
304
|
-
export { ProgressBarComponent };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { ChunkProgressBarComponent } from './chunk/chunk-progressbar.component';
|
|
7
|
-
import { NgModule } from '@angular/core';
|
|
8
|
-
import { CommonModule } from '@angular/common';
|
|
9
|
-
import { ProgressBarComponent } from './progressbar.component';
|
|
10
|
-
var COMPONENT_DIRECTIVES = [ProgressBarComponent, ChunkProgressBarComponent];
|
|
11
|
-
var MODULES = [CommonModule];
|
|
12
|
-
/**
|
|
13
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmodules'] }})
|
|
14
|
-
* definition for the ProgressBar components.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
*
|
|
18
|
-
* ```ts-no-run
|
|
19
|
-
* // Import the ProgressBar module
|
|
20
|
-
* import { ProgressBarModule } from '@progress/kendo-angular-progressbar';
|
|
21
|
-
*
|
|
22
|
-
* // The browser platform with a compiler
|
|
23
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
24
|
-
*
|
|
25
|
-
* import { NgModule } from '@angular/core';
|
|
26
|
-
*
|
|
27
|
-
* // Import the app component
|
|
28
|
-
* import { AppComponent } from './app.component';
|
|
29
|
-
*
|
|
30
|
-
* // Define the app module
|
|
31
|
-
* _@NgModule({
|
|
32
|
-
* declarations: [AppComponent], // declare app component
|
|
33
|
-
* imports: [BrowserModule, ProgressBarModule], // import ProgressBar module
|
|
34
|
-
* bootstrap: [AppComponent]
|
|
35
|
-
* })
|
|
36
|
-
* export class AppModule {}
|
|
37
|
-
*
|
|
38
|
-
* // Compile and launch the module
|
|
39
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
40
|
-
*
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
var ProgressBarModule = /** @class */ (function () {
|
|
44
|
-
function ProgressBarModule() {
|
|
45
|
-
}
|
|
46
|
-
ProgressBarModule = tslib_1.__decorate([
|
|
47
|
-
NgModule({
|
|
48
|
-
declarations: COMPONENT_DIRECTIVES,
|
|
49
|
-
exports: COMPONENT_DIRECTIVES,
|
|
50
|
-
imports: MODULES
|
|
51
|
-
})
|
|
52
|
-
], ProgressBarModule);
|
|
53
|
-
return ProgressBarModule;
|
|
54
|
-
}());
|
|
55
|
-
export { ProgressBarModule };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
package/dist/es2015/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Generated bundle index. Do not edit.
|
|
7
|
-
*/
|
|
8
|
-
export * from './main';
|
|
9
|
-
export { ProgressBarBase } from './common/progressbar-base';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"ProgressBarComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ProgressBarBase"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":27,"character":1},"arguments":[{"exportAs":"kendoProgressBar","selector":"kendo-progressbar","template":"\n <span class=\"k-progress-status-wrap\"\n [class.k-progress-start]=\"isPositionStart\"\n [class.k-progress-center]=\"isPositionCenter\"\n [class.k-progress-end]=\"isPositionEnd\"\n [ngStyle]=\"emptyCssStyle\"\n [ngClass]=\"emptyCssClass\">\n <span *ngIf=\"showLabel\" class=\"k-progress-status\">{{formattedLabelValue}}</span>\n </span>\n <div\n #progressStatus\n class=\"k-state-selected\"\n [class.k-complete]=\"isCompleted\"\n [ngStyle]=\"progressCssStyle\"\n [ngClass]=\"progressCssClass\"\n [style.width.%]=\"statusWidth\"\n [style.height.%]=\"statusHeight\"\n >\n <span\n #progressStatusWrap\n class=\"k-progress-status-wrap\"\n [style.width.%]=\"statusWrapperWidth\"\n [style.height.%]=\"statusWrapperHeight\"\n [class.k-progress-start]=\"isPositionStart\"\n [class.k-progress-center]=\"isPositionCenter\"\n [class.k-progress-end]=\"isPositionEnd\"\n >\n <span *ngIf=\"showLabel\" class=\"k-progress-status\">{{formattedLabelValue}}</span>\n </span>\n </div>\n ","providers":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":62,"character":8},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"L10N_PREFIX","line":64,"character":21},"useValue":"kendo.progressbar"}]}]}],"members":{"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":75,"character":5}}]}],"progressCssStyle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":82,"character":5}}]}],"progressCssClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":89,"character":5}}]}],"emptyCssStyle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":96,"character":5}}]}],"emptyCssClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":103,"character":5}}]}],"animation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":109,"character":5}}]}],"animationEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":114,"character":5}}]}],"progressStatusElement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":174,"character":5},"arguments":["progressStatus",{"static":false}]}]}],"progressStatusWrapperElement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":177,"character":5},"arguments":["progressStatusWrap",{"static":false}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":188,"character":29},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":189,"character":22},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":190,"character":26}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"startAnimation":[{"__symbolic":"method"}],"stopAnimation":[{"__symbolic":"method"}],"getAnimationOptions":[{"__symbolic":"method"}],"renderValueChange":[{"__symbolic":"method"}],"resetProgress":[{"__symbolic":"method"}]}},"ChunkProgressBarComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ProgressBarBase"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":22,"character":1},"arguments":[{"exportAs":"kendoChunkProgressBar","selector":"kendo-chunkprogressbar","template":"\n <ul class=\"k-reset\">\n <li class=\"k-item\" *ngFor=\"let chunk of chunks; let i = index;\"\n [class.k-first]=\"i === 0\"\n [class.k-last]=\"i === chunkCount - 1\"\n [class.k-state-selected]=\"chunk\"\n [ngClass]=\"chunk ? progressCssClass : emptyCssClass\"\n [ngStyle]=\"chunk ? progressCssStyle : emptyCssStyle\"\n [style.width]=\"orientationStyles.width\"\n [style.height]=\"orientationStyles.height\"\n >\n </li>\n </ul>\n ","providers":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":40,"character":8},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"L10N_PREFIX","line":42,"character":21},"useValue":"kendo.chunkprogressbar"}]}]}],"members":{"chunkCount":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":53,"character":5}}]}],"progressCssStyle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":77,"character":5}}]}],"progressCssClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":83,"character":5}}]}],"emptyCssStyle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":89,"character":5}}]}],"emptyCssClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":95,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":126,"character":37}]}]}},"ProgressBarOrientation":{"__symbolic":"interface"},"LabelSettings":{"__symbolic":"interface"},"LabelPosition":{"__symbolic":"interface"},"LabelFn":{"__symbolic":"interface"},"LabelType":{"__symbolic":"interface"},"ProgressBarAnimation":{"__symbolic":"interface"},"ProgressBarModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":39,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ProgressBarComponent"},{"__symbolic":"reference","name":"ChunkProgressBarComponent"}],"exports":[{"__symbolic":"reference","name":"ProgressBarComponent"},{"__symbolic":"reference","name":"ChunkProgressBarComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":6,"character":17}]}]}],"members":{}},"ProgressBarBase":{"__symbolic":"class","members":{"widgetClasses":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":12,"character":5},"arguments":["class.k-widget"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":13,"character":5},"arguments":["class.k-progressbar"]}]}],"isHorizontal":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":16,"character":5},"arguments":["class.k-progressbar-horizontal"]}]}],"isVertical":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":24,"character":5},"arguments":["class.k-progressbar-vertical"]}]}],"disabledClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":32,"character":5},"arguments":["class.k-state-disabled"]}]}],"reverseClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":37,"character":5},"arguments":["class.k-progressbar-reverse"]}]}],"indeterminateClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":42,"character":5},"arguments":["class.k-progressbar-indeterminate"]}]}],"dirAttribute":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":47,"character":5},"arguments":["attr.dir"]}]}],"roleAttribute":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":52,"character":5},"arguments":["attr.role"]}]}],"ariaMinAttribute":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":55,"character":5},"arguments":["attr.aria-valuemin"]}]}],"ariaMaxAttribute":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":60,"character":5},"arguments":["attr.aria-valuemax"]}]}],"ariaValueAttribute":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":65,"character":5},"arguments":["attr.aria-valuenow"]}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":74,"character":5}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":80,"character":5}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":92,"character":5}}]}],"orientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":137,"character":5}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":145,"character":5}}]}],"reverse":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":152,"character":5}}]}],"indeterminate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":158,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":168,"character":40}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}},"origins":{"ProgressBarComponent":"./progressbar.component","ChunkProgressBarComponent":"./chunk/chunk-progressbar.component","ProgressBarOrientation":"./types/progressbar-orientation","LabelSettings":"./types/label-settings.interface","LabelPosition":"./types/label-position","LabelFn":"./types/label-fn-type","LabelType":"./types/label-type","ProgressBarAnimation":"./types/progressbar-animation.interface","ProgressBarModule":"./progressbar.module","ProgressBarBase":"./common/progressbar-base"},"importAs":"@progress/kendo-angular-progressbar"}
|
package/dist/es2015/main.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export { ProgressBarComponent } from './progressbar.component';
|
|
6
|
-
export { ChunkProgressBarComponent } from './chunk/chunk-progressbar.component';
|
|
7
|
-
export { ProgressBarModule } from './progressbar.module';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|