@syncfusion/ej2-angular-progressbar 29.2.4-ngcc → 30.1.37-ngcc
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/@syncfusion/ej2-angular-progressbar.es5.js +330 -330
- package/@syncfusion/ej2-angular-progressbar.js +279 -279
- package/{license → LICENSE} +10 -10
- package/dist/ej2-angular-progressbar.umd.js +321 -321
- package/dist/ej2-angular-progressbar.umd.min.js +1 -1
- package/ej2-angular-progressbar.d.ts +5 -5
- package/package.json +15 -46
- package/public_api.d.ts +1 -1
- package/schematics/utils/lib-details.d.ts +2 -2
- package/schematics/utils/lib-details.js +2 -2
- package/schematics/utils/lib-details.ts +4 -4
- package/src/index.d.ts +6 -6
- package/src/progressbar/annotations.directive.d.ts +37 -37
- package/src/progressbar/progressbar-all.module.d.ts +8 -8
- package/src/progressbar/progressbar.component.d.ts +44 -44
- package/src/progressbar/progressbar.module.d.ts +5 -5
- package/src/progressbar/rangecolors.directive.d.ts +29 -29
|
@@ -1,331 +1,331 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
3
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
4
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
5
|
-
return function (d, b) {
|
|
6
|
-
extendStatics(d, b);
|
|
7
|
-
function __() { this.constructor = d; }
|
|
8
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9
|
-
};
|
|
10
|
-
})();
|
|
11
|
-
import { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, Directive, ElementRef, Injector, NgModule, Renderer2, ViewContainerRef } from '@angular/core';
|
|
12
|
-
import { ArrayBase, ComplexBase, ComponentBase, ComponentMixins, Template, setValue } from '@syncfusion/ej2-angular-base';
|
|
13
|
-
import { ProgressAnnotation, ProgressBar, ProgressTooltip } from '@syncfusion/ej2-progressbar';
|
|
14
|
-
import { CommonModule } from '@angular/common';
|
|
15
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
18
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
19
|
-
else
|
|
20
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
21
|
-
if (d = decorators[i])
|
|
22
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
23
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24
|
-
};
|
|
25
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
26
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
27
|
-
return Reflect.metadata(k, v);
|
|
28
|
-
};
|
|
29
|
-
var input = ['annotationAngle', 'annotationRadius', 'content'];
|
|
30
|
-
var outputs = [];
|
|
31
|
-
/**
|
|
32
|
-
* ProgressBarAnnotations Directive
|
|
33
|
-
* ```html
|
|
34
|
-
* <e-progressbar-annotations>
|
|
35
|
-
* <e-progressbar-annotation></e-progressbar-annotation>
|
|
36
|
-
* </e-progressbar-annotations>
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
var ProgressBarAnnotationDirective = /** @class */ (function (_super) {
|
|
40
|
-
__extends(ProgressBarAnnotationDirective, _super);
|
|
41
|
-
/**
|
|
42
|
-
* @param {?} viewContainerRef
|
|
43
|
-
*/
|
|
44
|
-
function ProgressBarAnnotationDirective(viewContainerRef) {
|
|
45
|
-
var _this = _super.call(this) || this;
|
|
46
|
-
_this.viewContainerRef = viewContainerRef;
|
|
47
|
-
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
48
|
-
_this.registerEvents(outputs);
|
|
49
|
-
_this.directivePropList = input;
|
|
50
|
-
return _this;
|
|
51
|
-
}
|
|
52
|
-
return ProgressBarAnnotationDirective;
|
|
53
|
-
}(ComplexBase));
|
|
54
|
-
ProgressBarAnnotationDirective.decorators = [
|
|
55
|
-
{ type: Directive, args: [{
|
|
56
|
-
selector: 'e-progressbar-annotations>e-progressbar-annotation',
|
|
57
|
-
inputs: input,
|
|
58
|
-
outputs: outputs,
|
|
59
|
-
queries: {}
|
|
60
|
-
},] },
|
|
61
|
-
];
|
|
62
|
-
/**
|
|
63
|
-
* @nocollapse
|
|
64
|
-
*/
|
|
65
|
-
ProgressBarAnnotationDirective.ctorParameters = function () { return [
|
|
66
|
-
{ type: ViewContainerRef, },
|
|
67
|
-
]; };
|
|
68
|
-
ProgressBarAnnotationDirective.propDecorators = {
|
|
69
|
-
'content': [{ type: ContentChild, args: ['content',] },],
|
|
70
|
-
};
|
|
71
|
-
__decorate([
|
|
72
|
-
Template(),
|
|
73
|
-
__metadata("design:type", Object)
|
|
74
|
-
], ProgressBarAnnotationDirective.prototype, "content", void 0);
|
|
75
|
-
/**
|
|
76
|
-
* ProgressBarAnnotation Array Directive
|
|
77
|
-
*/
|
|
78
|
-
var ProgressBarAnnotationsDirective = /** @class */ (function (_super) {
|
|
79
|
-
__extends(ProgressBarAnnotationsDirective, _super);
|
|
80
|
-
function ProgressBarAnnotationsDirective() {
|
|
81
|
-
return _super.call(this, 'annotations') || this;
|
|
82
|
-
}
|
|
83
|
-
return ProgressBarAnnotationsDirective;
|
|
84
|
-
}(ArrayBase));
|
|
85
|
-
ProgressBarAnnotationsDirective.decorators = [
|
|
86
|
-
{ type: Directive, args: [{
|
|
87
|
-
selector: 'ej-progressbar>e-progressbar-annotations',
|
|
88
|
-
queries: {
|
|
89
|
-
children: new ContentChildren(ProgressBarAnnotationDirective)
|
|
90
|
-
},
|
|
91
|
-
},] },
|
|
92
|
-
];
|
|
93
|
-
/**
|
|
94
|
-
* @nocollapse
|
|
95
|
-
*/
|
|
96
|
-
ProgressBarAnnotationsDirective.ctorParameters = function () { return []; };
|
|
97
|
-
var input$1 = ['color', 'end', 'start'];
|
|
98
|
-
var outputs$1 = [];
|
|
99
|
-
var RangeColorDirective = /** @class */ (function (_super) {
|
|
100
|
-
__extends(RangeColorDirective, _super);
|
|
101
|
-
/**
|
|
102
|
-
* @param {?} viewContainerRef
|
|
103
|
-
*/
|
|
104
|
-
function RangeColorDirective(viewContainerRef) {
|
|
105
|
-
var _this = _super.call(this) || this;
|
|
106
|
-
_this.viewContainerRef = viewContainerRef;
|
|
107
|
-
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
108
|
-
_this.registerEvents(outputs$1);
|
|
109
|
-
_this.directivePropList = input$1;
|
|
110
|
-
return _this;
|
|
111
|
-
}
|
|
112
|
-
return RangeColorDirective;
|
|
113
|
-
}(ComplexBase));
|
|
114
|
-
RangeColorDirective.decorators = [
|
|
115
|
-
{ type: Directive, args: [{
|
|
116
|
-
selector: 'e-rangecolors>e-rangecolor',
|
|
117
|
-
inputs: input$1,
|
|
118
|
-
outputs: outputs$1,
|
|
119
|
-
queries: {}
|
|
120
|
-
},] },
|
|
121
|
-
];
|
|
122
|
-
/**
|
|
123
|
-
* @nocollapse
|
|
124
|
-
*/
|
|
125
|
-
RangeColorDirective.ctorParameters = function () { return [
|
|
126
|
-
{ type: ViewContainerRef, },
|
|
127
|
-
]; };
|
|
128
|
-
/**
|
|
129
|
-
* RangeColor Array Directive
|
|
130
|
-
*/
|
|
131
|
-
var RangeColorsDirective = /** @class */ (function (_super) {
|
|
132
|
-
__extends(RangeColorsDirective, _super);
|
|
133
|
-
function RangeColorsDirective() {
|
|
134
|
-
return _super.call(this, 'rangecolors') || this;
|
|
135
|
-
}
|
|
136
|
-
return RangeColorsDirective;
|
|
137
|
-
}(ArrayBase));
|
|
138
|
-
RangeColorsDirective.decorators = [
|
|
139
|
-
{ type: Directive, args: [{
|
|
140
|
-
selector: 'ejs-progressbar>e-rangecolors',
|
|
141
|
-
queries: {
|
|
142
|
-
children: new ContentChildren(RangeColorDirective)
|
|
143
|
-
},
|
|
144
|
-
},] },
|
|
145
|
-
];
|
|
146
|
-
/**
|
|
147
|
-
* @nocollapse
|
|
148
|
-
*/
|
|
149
|
-
RangeColorsDirective.ctorParameters = function () { return []; };
|
|
150
|
-
var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
151
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
152
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
153
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
154
|
-
else
|
|
155
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
156
|
-
if (d = decorators[i])
|
|
157
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
158
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
159
|
-
};
|
|
160
|
-
var __metadata$1 = (this && this.__metadata) || function (k, v) {
|
|
161
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
162
|
-
return Reflect.metadata(k, v);
|
|
163
|
-
};
|
|
164
|
-
var inputs = ['animation', 'annotations', 'cornerRadius', 'enablePersistence', 'enablePieProgress', 'enableProgressSegments', 'enableRtl', 'endAngle', 'gapWidth', 'height', 'innerRadius', 'isActive', 'isGradient', 'isIndeterminate', 'isStriped', 'labelOnTrack', 'labelStyle', 'locale', 'margin', 'maximum', 'minimum', 'progressColor', 'progressThickness', 'radius', 'rangeColors', 'role', 'secondaryProgress', 'secondaryProgressColor', 'secondaryProgressThickness', 'segmentColor', 'segmentCount', 'showProgressValue', 'startAngle', 'theme', 'tooltip', 'trackColor', 'trackThickness', 'type', 'value', 'width'];
|
|
165
|
-
var outputs$2 = ['animationComplete', 'load', 'loaded', 'mouseClick', 'mouseDown', 'mouseLeave', 'mouseMove', 'mouseUp', 'progressCompleted', 'textRender', 'tooltipRender', 'valueChanged'];
|
|
166
|
-
var twoWays = [''];
|
|
167
|
-
/**
|
|
168
|
-
* ProgressBar Component
|
|
169
|
-
* ```html
|
|
170
|
-
* <ejsprogressbar></ejsprogressbar>
|
|
171
|
-
* ```
|
|
172
|
-
*/
|
|
173
|
-
var ProgressBarComponent = /** @class */ (function (_super) {
|
|
174
|
-
__extends(ProgressBarComponent, _super);
|
|
175
|
-
/**
|
|
176
|
-
* @param {?} ngEle
|
|
177
|
-
* @param {?} srenderer
|
|
178
|
-
* @param {?} viewContainerRef
|
|
179
|
-
* @param {?} injector
|
|
180
|
-
*/
|
|
181
|
-
function ProgressBarComponent(ngEle, srenderer, viewContainerRef, injector) {
|
|
182
|
-
var _this = _super.call(this) || this;
|
|
183
|
-
_this.ngEle = ngEle;
|
|
184
|
-
_this.srenderer = srenderer;
|
|
185
|
-
_this.viewContainerRef = viewContainerRef;
|
|
186
|
-
_this.injector = injector;
|
|
187
|
-
_this.tags = ['annotations', 'rangeColors'];
|
|
188
|
-
_this.element = _this.ngEle.nativeElement;
|
|
189
|
-
_this.injectedModules = _this.injectedModules || [];
|
|
190
|
-
try {
|
|
191
|
-
var mod = _this.injector.get('ProgressBarProgressAnnotation');
|
|
192
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
193
|
-
_this.injectedModules.push(mod);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
catch (_a) { }
|
|
197
|
-
try {
|
|
198
|
-
var mod = _this.injector.get('ProgressBarProgressTooltip');
|
|
199
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
200
|
-
_this.injectedModules.push(mod);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
catch (_b) { }
|
|
204
|
-
_this.registerEvents(outputs$2);
|
|
205
|
-
_this.addTwoWay.call(_this, twoWays);
|
|
206
|
-
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
207
|
-
_this.context = new ComponentBase();
|
|
208
|
-
return _this;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* @return {?}
|
|
212
|
-
*/
|
|
213
|
-
ProgressBarComponent.prototype.ngOnInit = function () {
|
|
214
|
-
this.context.ngOnInit(this);
|
|
215
|
-
};
|
|
216
|
-
/**
|
|
217
|
-
* @return {?}
|
|
218
|
-
*/
|
|
219
|
-
ProgressBarComponent.prototype.ngAfterViewInit = function () {
|
|
220
|
-
this.context.ngAfterViewInit(this);
|
|
221
|
-
};
|
|
222
|
-
/**
|
|
223
|
-
* @return {?}
|
|
224
|
-
*/
|
|
225
|
-
ProgressBarComponent.prototype.ngOnDestroy = function () {
|
|
226
|
-
this.context.ngOnDestroy(this);
|
|
227
|
-
};
|
|
228
|
-
/**
|
|
229
|
-
* @return {?}
|
|
230
|
-
*/
|
|
231
|
-
ProgressBarComponent.prototype.ngAfterContentChecked = function () {
|
|
232
|
-
this.tagObjects[0].instance = this.childAnnotations;
|
|
233
|
-
if (this.childRangeColors) {
|
|
234
|
-
this.tagObjects[1].instance = /** @type {?} */ (this.childRangeColors);
|
|
235
|
-
}
|
|
236
|
-
this.context.ngAfterContentChecked(this);
|
|
237
|
-
};
|
|
238
|
-
return ProgressBarComponent;
|
|
239
|
-
}(ProgressBar));
|
|
240
|
-
ProgressBarComponent.decorators = [
|
|
241
|
-
{ type: Component, args: [{
|
|
242
|
-
selector: 'ejs-progressbar',
|
|
243
|
-
inputs: inputs,
|
|
244
|
-
outputs: outputs$2,
|
|
245
|
-
template: '',
|
|
246
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
247
|
-
queries: {
|
|
248
|
-
childAnnotations: new ContentChild(ProgressBarAnnotationsDirective),
|
|
249
|
-
childRangeColors: new ContentChild(RangeColorsDirective)
|
|
250
|
-
}
|
|
251
|
-
},] },
|
|
252
|
-
];
|
|
253
|
-
/**
|
|
254
|
-
* @nocollapse
|
|
255
|
-
*/
|
|
256
|
-
ProgressBarComponent.ctorParameters = function () { return [
|
|
257
|
-
{ type: ElementRef, },
|
|
258
|
-
{ type: Renderer2, },
|
|
259
|
-
{ type: ViewContainerRef, },
|
|
260
|
-
{ type: Injector, },
|
|
261
|
-
]; };
|
|
262
|
-
ProgressBarComponent = __decorate$1([
|
|
263
|
-
ComponentMixins([ComponentBase]),
|
|
264
|
-
__metadata$1("design:paramtypes", [ElementRef,
|
|
265
|
-
Renderer2,
|
|
266
|
-
ViewContainerRef,
|
|
267
|
-
Injector])
|
|
268
|
-
], ProgressBarComponent);
|
|
269
|
-
/**
|
|
270
|
-
* NgModule definition for the ProgressBar component.
|
|
271
|
-
*/
|
|
272
|
-
var ProgressBarModule = /** @class */ (function () {
|
|
273
|
-
function ProgressBarModule() {
|
|
274
|
-
}
|
|
275
|
-
return ProgressBarModule;
|
|
276
|
-
}());
|
|
277
|
-
ProgressBarModule.decorators = [
|
|
278
|
-
{ type: NgModule, args: [{
|
|
279
|
-
imports: [CommonModule],
|
|
280
|
-
declarations: [
|
|
281
|
-
ProgressBarComponent,
|
|
282
|
-
ProgressBarAnnotationDirective,
|
|
283
|
-
ProgressBarAnnotationsDirective,
|
|
284
|
-
RangeColorDirective,
|
|
285
|
-
RangeColorsDirective
|
|
286
|
-
],
|
|
287
|
-
exports: [
|
|
288
|
-
ProgressBarComponent,
|
|
289
|
-
ProgressBarAnnotationDirective,
|
|
290
|
-
ProgressBarAnnotationsDirective,
|
|
291
|
-
RangeColorDirective,
|
|
292
|
-
RangeColorsDirective
|
|
293
|
-
]
|
|
294
|
-
},] },
|
|
295
|
-
];
|
|
296
|
-
/**
|
|
297
|
-
* @nocollapse
|
|
298
|
-
*/
|
|
299
|
-
ProgressBarModule.ctorParameters = function () { return []; };
|
|
300
|
-
var ProgressAnnotationService = { provide: 'ProgressBarProgressAnnotation', useValue: ProgressAnnotation };
|
|
301
|
-
var ProgressTooltipService = { provide: 'ProgressBarProgressTooltip', useValue: ProgressTooltip };
|
|
302
|
-
/**
|
|
303
|
-
* NgModule definition for the ProgressBar component with providers.
|
|
304
|
-
*/
|
|
305
|
-
var ProgressBarAllModule = /** @class */ (function () {
|
|
306
|
-
function ProgressBarAllModule() {
|
|
307
|
-
}
|
|
308
|
-
return ProgressBarAllModule;
|
|
309
|
-
}());
|
|
310
|
-
ProgressBarAllModule.decorators = [
|
|
311
|
-
{ type: NgModule, args: [{
|
|
312
|
-
imports: [CommonModule, ProgressBarModule],
|
|
313
|
-
exports: [
|
|
314
|
-
ProgressBarModule
|
|
315
|
-
],
|
|
316
|
-
providers: [
|
|
317
|
-
ProgressAnnotationService,
|
|
318
|
-
ProgressTooltipService
|
|
319
|
-
]
|
|
320
|
-
},] },
|
|
321
|
-
];
|
|
322
|
-
/**
|
|
323
|
-
* @nocollapse
|
|
324
|
-
*/
|
|
325
|
-
ProgressBarAllModule.ctorParameters = function () { return []; };
|
|
326
|
-
/**
|
|
327
|
-
* Generated bundle index. Do not edit.
|
|
328
|
-
*/
|
|
329
|
-
export { ProgressBarAnnotationDirective, ProgressBarAnnotationsDirective, RangeColorDirective, RangeColorsDirective, ProgressBarComponent, ProgressBarModule, ProgressBarAllModule, ProgressAnnotationService, ProgressTooltipService, inputs as ɵa, outputs$2 as ɵb };
|
|
330
|
-
export { ProgressBar, Margin, Font, Animation, ProgressAnnotationSettings, Border, TooltipSettings, RangeColor, ProgressAnnotation, ProgressTooltip, Rect, Size, Pos, RectOption, ColorValue, convertToHexCode, componentToHex, convertHexToColor, colorNameToHex, TextOption, degreeToLocation, getPathArc, stringToNumber, setAttributes, effect, annotationRender, getElement, removeElement, ProgressLocation, ProgressAnimation } from '@syncfusion/ej2-progressbar';
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = Object.setPrototypeOf ||
|
|
3
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
4
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
5
|
+
return function (d, b) {
|
|
6
|
+
extendStatics(d, b);
|
|
7
|
+
function __() { this.constructor = d; }
|
|
8
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
import { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, Directive, ElementRef, Injector, NgModule, Renderer2, ViewContainerRef } from '@angular/core';
|
|
12
|
+
import { ArrayBase, ComplexBase, ComponentBase, ComponentMixins, Template, setValue } from '@syncfusion/ej2-angular-base';
|
|
13
|
+
import { ProgressAnnotation, ProgressBar, ProgressTooltip } from '@syncfusion/ej2-progressbar';
|
|
14
|
+
import { CommonModule } from '@angular/common';
|
|
15
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
18
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
19
|
+
else
|
|
20
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
21
|
+
if (d = decorators[i])
|
|
22
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
23
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24
|
+
};
|
|
25
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
26
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
27
|
+
return Reflect.metadata(k, v);
|
|
28
|
+
};
|
|
29
|
+
var input = ['annotationAngle', 'annotationRadius', 'content'];
|
|
30
|
+
var outputs = [];
|
|
31
|
+
/**
|
|
32
|
+
* ProgressBarAnnotations Directive
|
|
33
|
+
* ```html
|
|
34
|
+
* <e-progressbar-annotations>
|
|
35
|
+
* <e-progressbar-annotation></e-progressbar-annotation>
|
|
36
|
+
* </e-progressbar-annotations>
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
var ProgressBarAnnotationDirective = /** @class */ (function (_super) {
|
|
40
|
+
__extends(ProgressBarAnnotationDirective, _super);
|
|
41
|
+
/**
|
|
42
|
+
* @param {?} viewContainerRef
|
|
43
|
+
*/
|
|
44
|
+
function ProgressBarAnnotationDirective(viewContainerRef) {
|
|
45
|
+
var _this = _super.call(this) || this;
|
|
46
|
+
_this.viewContainerRef = viewContainerRef;
|
|
47
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
48
|
+
_this.registerEvents(outputs);
|
|
49
|
+
_this.directivePropList = input;
|
|
50
|
+
return _this;
|
|
51
|
+
}
|
|
52
|
+
return ProgressBarAnnotationDirective;
|
|
53
|
+
}(ComplexBase));
|
|
54
|
+
ProgressBarAnnotationDirective.decorators = [
|
|
55
|
+
{ type: Directive, args: [{
|
|
56
|
+
selector: 'e-progressbar-annotations>e-progressbar-annotation',
|
|
57
|
+
inputs: input,
|
|
58
|
+
outputs: outputs,
|
|
59
|
+
queries: {}
|
|
60
|
+
},] },
|
|
61
|
+
];
|
|
62
|
+
/**
|
|
63
|
+
* @nocollapse
|
|
64
|
+
*/
|
|
65
|
+
ProgressBarAnnotationDirective.ctorParameters = function () { return [
|
|
66
|
+
{ type: ViewContainerRef, },
|
|
67
|
+
]; };
|
|
68
|
+
ProgressBarAnnotationDirective.propDecorators = {
|
|
69
|
+
'content': [{ type: ContentChild, args: ['content',] },],
|
|
70
|
+
};
|
|
71
|
+
__decorate([
|
|
72
|
+
Template(),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], ProgressBarAnnotationDirective.prototype, "content", void 0);
|
|
75
|
+
/**
|
|
76
|
+
* ProgressBarAnnotation Array Directive
|
|
77
|
+
*/
|
|
78
|
+
var ProgressBarAnnotationsDirective = /** @class */ (function (_super) {
|
|
79
|
+
__extends(ProgressBarAnnotationsDirective, _super);
|
|
80
|
+
function ProgressBarAnnotationsDirective() {
|
|
81
|
+
return _super.call(this, 'annotations') || this;
|
|
82
|
+
}
|
|
83
|
+
return ProgressBarAnnotationsDirective;
|
|
84
|
+
}(ArrayBase));
|
|
85
|
+
ProgressBarAnnotationsDirective.decorators = [
|
|
86
|
+
{ type: Directive, args: [{
|
|
87
|
+
selector: 'ej-progressbar>e-progressbar-annotations',
|
|
88
|
+
queries: {
|
|
89
|
+
children: new ContentChildren(ProgressBarAnnotationDirective)
|
|
90
|
+
},
|
|
91
|
+
},] },
|
|
92
|
+
];
|
|
93
|
+
/**
|
|
94
|
+
* @nocollapse
|
|
95
|
+
*/
|
|
96
|
+
ProgressBarAnnotationsDirective.ctorParameters = function () { return []; };
|
|
97
|
+
var input$1 = ['color', 'end', 'start'];
|
|
98
|
+
var outputs$1 = [];
|
|
99
|
+
var RangeColorDirective = /** @class */ (function (_super) {
|
|
100
|
+
__extends(RangeColorDirective, _super);
|
|
101
|
+
/**
|
|
102
|
+
* @param {?} viewContainerRef
|
|
103
|
+
*/
|
|
104
|
+
function RangeColorDirective(viewContainerRef) {
|
|
105
|
+
var _this = _super.call(this) || this;
|
|
106
|
+
_this.viewContainerRef = viewContainerRef;
|
|
107
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
108
|
+
_this.registerEvents(outputs$1);
|
|
109
|
+
_this.directivePropList = input$1;
|
|
110
|
+
return _this;
|
|
111
|
+
}
|
|
112
|
+
return RangeColorDirective;
|
|
113
|
+
}(ComplexBase));
|
|
114
|
+
RangeColorDirective.decorators = [
|
|
115
|
+
{ type: Directive, args: [{
|
|
116
|
+
selector: 'e-rangecolors>e-rangecolor',
|
|
117
|
+
inputs: input$1,
|
|
118
|
+
outputs: outputs$1,
|
|
119
|
+
queries: {}
|
|
120
|
+
},] },
|
|
121
|
+
];
|
|
122
|
+
/**
|
|
123
|
+
* @nocollapse
|
|
124
|
+
*/
|
|
125
|
+
RangeColorDirective.ctorParameters = function () { return [
|
|
126
|
+
{ type: ViewContainerRef, },
|
|
127
|
+
]; };
|
|
128
|
+
/**
|
|
129
|
+
* RangeColor Array Directive
|
|
130
|
+
*/
|
|
131
|
+
var RangeColorsDirective = /** @class */ (function (_super) {
|
|
132
|
+
__extends(RangeColorsDirective, _super);
|
|
133
|
+
function RangeColorsDirective() {
|
|
134
|
+
return _super.call(this, 'rangecolors') || this;
|
|
135
|
+
}
|
|
136
|
+
return RangeColorsDirective;
|
|
137
|
+
}(ArrayBase));
|
|
138
|
+
RangeColorsDirective.decorators = [
|
|
139
|
+
{ type: Directive, args: [{
|
|
140
|
+
selector: 'ejs-progressbar>e-rangecolors',
|
|
141
|
+
queries: {
|
|
142
|
+
children: new ContentChildren(RangeColorDirective)
|
|
143
|
+
},
|
|
144
|
+
},] },
|
|
145
|
+
];
|
|
146
|
+
/**
|
|
147
|
+
* @nocollapse
|
|
148
|
+
*/
|
|
149
|
+
RangeColorsDirective.ctorParameters = function () { return []; };
|
|
150
|
+
var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
151
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
152
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
153
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
154
|
+
else
|
|
155
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
156
|
+
if (d = decorators[i])
|
|
157
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
158
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
159
|
+
};
|
|
160
|
+
var __metadata$1 = (this && this.__metadata) || function (k, v) {
|
|
161
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
162
|
+
return Reflect.metadata(k, v);
|
|
163
|
+
};
|
|
164
|
+
var inputs = ['animation', 'annotations', 'cornerRadius', 'enablePersistence', 'enablePieProgress', 'enableProgressSegments', 'enableRtl', 'endAngle', 'gapWidth', 'height', 'innerRadius', 'isActive', 'isGradient', 'isIndeterminate', 'isStriped', 'labelOnTrack', 'labelStyle', 'locale', 'margin', 'maximum', 'minimum', 'progressColor', 'progressThickness', 'radius', 'rangeColors', 'role', 'secondaryProgress', 'secondaryProgressColor', 'secondaryProgressThickness', 'segmentColor', 'segmentCount', 'showProgressValue', 'startAngle', 'theme', 'tooltip', 'trackColor', 'trackThickness', 'type', 'value', 'width'];
|
|
165
|
+
var outputs$2 = ['animationComplete', 'load', 'loaded', 'mouseClick', 'mouseDown', 'mouseLeave', 'mouseMove', 'mouseUp', 'progressCompleted', 'textRender', 'tooltipRender', 'valueChanged'];
|
|
166
|
+
var twoWays = [''];
|
|
167
|
+
/**
|
|
168
|
+
* ProgressBar Component
|
|
169
|
+
* ```html
|
|
170
|
+
* <ejsprogressbar></ejsprogressbar>
|
|
171
|
+
* ```
|
|
172
|
+
*/
|
|
173
|
+
var ProgressBarComponent = /** @class */ (function (_super) {
|
|
174
|
+
__extends(ProgressBarComponent, _super);
|
|
175
|
+
/**
|
|
176
|
+
* @param {?} ngEle
|
|
177
|
+
* @param {?} srenderer
|
|
178
|
+
* @param {?} viewContainerRef
|
|
179
|
+
* @param {?} injector
|
|
180
|
+
*/
|
|
181
|
+
function ProgressBarComponent(ngEle, srenderer, viewContainerRef, injector) {
|
|
182
|
+
var _this = _super.call(this) || this;
|
|
183
|
+
_this.ngEle = ngEle;
|
|
184
|
+
_this.srenderer = srenderer;
|
|
185
|
+
_this.viewContainerRef = viewContainerRef;
|
|
186
|
+
_this.injector = injector;
|
|
187
|
+
_this.tags = ['annotations', 'rangeColors'];
|
|
188
|
+
_this.element = _this.ngEle.nativeElement;
|
|
189
|
+
_this.injectedModules = _this.injectedModules || [];
|
|
190
|
+
try {
|
|
191
|
+
var mod = _this.injector.get('ProgressBarProgressAnnotation');
|
|
192
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
193
|
+
_this.injectedModules.push(mod);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
catch (_a) { }
|
|
197
|
+
try {
|
|
198
|
+
var mod = _this.injector.get('ProgressBarProgressTooltip');
|
|
199
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
200
|
+
_this.injectedModules.push(mod);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
catch (_b) { }
|
|
204
|
+
_this.registerEvents(outputs$2);
|
|
205
|
+
_this.addTwoWay.call(_this, twoWays);
|
|
206
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
207
|
+
_this.context = new ComponentBase();
|
|
208
|
+
return _this;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* @return {?}
|
|
212
|
+
*/
|
|
213
|
+
ProgressBarComponent.prototype.ngOnInit = function () {
|
|
214
|
+
this.context.ngOnInit(this);
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* @return {?}
|
|
218
|
+
*/
|
|
219
|
+
ProgressBarComponent.prototype.ngAfterViewInit = function () {
|
|
220
|
+
this.context.ngAfterViewInit(this);
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* @return {?}
|
|
224
|
+
*/
|
|
225
|
+
ProgressBarComponent.prototype.ngOnDestroy = function () {
|
|
226
|
+
this.context.ngOnDestroy(this);
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* @return {?}
|
|
230
|
+
*/
|
|
231
|
+
ProgressBarComponent.prototype.ngAfterContentChecked = function () {
|
|
232
|
+
this.tagObjects[0].instance = this.childAnnotations;
|
|
233
|
+
if (this.childRangeColors) {
|
|
234
|
+
this.tagObjects[1].instance = /** @type {?} */ (this.childRangeColors);
|
|
235
|
+
}
|
|
236
|
+
this.context.ngAfterContentChecked(this);
|
|
237
|
+
};
|
|
238
|
+
return ProgressBarComponent;
|
|
239
|
+
}(ProgressBar));
|
|
240
|
+
ProgressBarComponent.decorators = [
|
|
241
|
+
{ type: Component, args: [{
|
|
242
|
+
selector: 'ejs-progressbar',
|
|
243
|
+
inputs: inputs,
|
|
244
|
+
outputs: outputs$2,
|
|
245
|
+
template: '',
|
|
246
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
247
|
+
queries: {
|
|
248
|
+
childAnnotations: new ContentChild(ProgressBarAnnotationsDirective),
|
|
249
|
+
childRangeColors: new ContentChild(RangeColorsDirective)
|
|
250
|
+
}
|
|
251
|
+
},] },
|
|
252
|
+
];
|
|
253
|
+
/**
|
|
254
|
+
* @nocollapse
|
|
255
|
+
*/
|
|
256
|
+
ProgressBarComponent.ctorParameters = function () { return [
|
|
257
|
+
{ type: ElementRef, },
|
|
258
|
+
{ type: Renderer2, },
|
|
259
|
+
{ type: ViewContainerRef, },
|
|
260
|
+
{ type: Injector, },
|
|
261
|
+
]; };
|
|
262
|
+
ProgressBarComponent = __decorate$1([
|
|
263
|
+
ComponentMixins([ComponentBase]),
|
|
264
|
+
__metadata$1("design:paramtypes", [ElementRef,
|
|
265
|
+
Renderer2,
|
|
266
|
+
ViewContainerRef,
|
|
267
|
+
Injector])
|
|
268
|
+
], ProgressBarComponent);
|
|
269
|
+
/**
|
|
270
|
+
* NgModule definition for the ProgressBar component.
|
|
271
|
+
*/
|
|
272
|
+
var ProgressBarModule = /** @class */ (function () {
|
|
273
|
+
function ProgressBarModule() {
|
|
274
|
+
}
|
|
275
|
+
return ProgressBarModule;
|
|
276
|
+
}());
|
|
277
|
+
ProgressBarModule.decorators = [
|
|
278
|
+
{ type: NgModule, args: [{
|
|
279
|
+
imports: [CommonModule],
|
|
280
|
+
declarations: [
|
|
281
|
+
ProgressBarComponent,
|
|
282
|
+
ProgressBarAnnotationDirective,
|
|
283
|
+
ProgressBarAnnotationsDirective,
|
|
284
|
+
RangeColorDirective,
|
|
285
|
+
RangeColorsDirective
|
|
286
|
+
],
|
|
287
|
+
exports: [
|
|
288
|
+
ProgressBarComponent,
|
|
289
|
+
ProgressBarAnnotationDirective,
|
|
290
|
+
ProgressBarAnnotationsDirective,
|
|
291
|
+
RangeColorDirective,
|
|
292
|
+
RangeColorsDirective
|
|
293
|
+
]
|
|
294
|
+
},] },
|
|
295
|
+
];
|
|
296
|
+
/**
|
|
297
|
+
* @nocollapse
|
|
298
|
+
*/
|
|
299
|
+
ProgressBarModule.ctorParameters = function () { return []; };
|
|
300
|
+
var ProgressAnnotationService = { provide: 'ProgressBarProgressAnnotation', useValue: ProgressAnnotation };
|
|
301
|
+
var ProgressTooltipService = { provide: 'ProgressBarProgressTooltip', useValue: ProgressTooltip };
|
|
302
|
+
/**
|
|
303
|
+
* NgModule definition for the ProgressBar component with providers.
|
|
304
|
+
*/
|
|
305
|
+
var ProgressBarAllModule = /** @class */ (function () {
|
|
306
|
+
function ProgressBarAllModule() {
|
|
307
|
+
}
|
|
308
|
+
return ProgressBarAllModule;
|
|
309
|
+
}());
|
|
310
|
+
ProgressBarAllModule.decorators = [
|
|
311
|
+
{ type: NgModule, args: [{
|
|
312
|
+
imports: [CommonModule, ProgressBarModule],
|
|
313
|
+
exports: [
|
|
314
|
+
ProgressBarModule
|
|
315
|
+
],
|
|
316
|
+
providers: [
|
|
317
|
+
ProgressAnnotationService,
|
|
318
|
+
ProgressTooltipService
|
|
319
|
+
]
|
|
320
|
+
},] },
|
|
321
|
+
];
|
|
322
|
+
/**
|
|
323
|
+
* @nocollapse
|
|
324
|
+
*/
|
|
325
|
+
ProgressBarAllModule.ctorParameters = function () { return []; };
|
|
326
|
+
/**
|
|
327
|
+
* Generated bundle index. Do not edit.
|
|
328
|
+
*/
|
|
329
|
+
export { ProgressBarAnnotationDirective, ProgressBarAnnotationsDirective, RangeColorDirective, RangeColorsDirective, ProgressBarComponent, ProgressBarModule, ProgressBarAllModule, ProgressAnnotationService, ProgressTooltipService, inputs as ɵa, outputs$2 as ɵb };
|
|
330
|
+
export { ProgressBar, Margin, Font, Animation, ProgressAnnotationSettings, Border, TooltipSettings, RangeColor, ProgressAnnotation, ProgressTooltip, Rect, Size, Pos, RectOption, ColorValue, convertToHexCode, componentToHex, convertHexToColor, colorNameToHex, TextOption, degreeToLocation, getPathArc, stringToNumber, setAttributes, effect, annotationRender, getElement, removeElement, ProgressLocation, ProgressAnimation } from '@syncfusion/ej2-progressbar';
|
|
331
331
|
//# sourceMappingURL=ej2-angular-progressbar.es5.js.map
|