@syncfusion/ej2-vue-progressbar 20.4.48 → 21.1.37
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/CHANGELOG.md +15 -0
- package/dist/ej2-vue-progressbar.umd.min.js +2 -2
- package/dist/ej2-vue-progressbar.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-progressbar.es2015.js +168 -175
- package/dist/es6/ej2-vue-progressbar.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-progressbar.es5.js +185 -209
- package/dist/es6/ej2-vue-progressbar.es5.js.map +1 -1
- package/dist/global/ej2-vue-progressbar.min.js +2 -2
- package/package.json +11 -10
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/progressbar/annotations.directive.d.ts +2 -12
- package/src/progressbar/annotations.directive.js +22 -71
- package/src/progressbar/index.d.ts +1 -0
- package/src/progressbar/index.js +1 -0
- package/src/progressbar/progressbar.component.d.ts +3 -30
- package/src/progressbar/progressbar.component.js +111 -137
- package/src/progressbar/rangecolors.directive.d.ts +10 -0
- package/src/progressbar/rangecolors.directive.js +48 -0
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-vue-progressbar@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-vue-progressbar@
|
|
3
|
+
"_id": "@syncfusion/ej2-vue-progressbar@21.1.35",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-HXkFlpXxERLN7j89h/Ayu1cEfUScqhjUR1UM6WqAR8Y3sOSxmi8GJEsFGagDeMzewVzdwUSY2LqZ9uR+kjMzxQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-vue-progressbar",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/"
|
|
21
21
|
],
|
|
22
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-progressbar/-/ej2-vue-progressbar-
|
|
23
|
-
"_shasum": "
|
|
22
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-progressbar/-/ej2-vue-progressbar-21.1.35.tgz",
|
|
23
|
+
"_shasum": "d25896b2620f626955d5a4480e4af6fb9216cf02",
|
|
24
24
|
"_spec": "@syncfusion/ej2-vue-progressbar@*",
|
|
25
|
-
"_where": "/jenkins/workspace/
|
|
25
|
+
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
26
26
|
"author": {
|
|
27
27
|
"name": "Syncfusion Inc."
|
|
28
28
|
},
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"bundleDependencies": false,
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@syncfusion/ej2-base": "~
|
|
35
|
-
"@syncfusion/ej2-progressbar": "
|
|
36
|
-
"@syncfusion/ej2-vue-base": "~
|
|
34
|
+
"@syncfusion/ej2-base": "~21.1.37",
|
|
35
|
+
"@syncfusion/ej2-progressbar": "21.1.37",
|
|
36
|
+
"@syncfusion/ej2-vue-base": "~21.1.37"
|
|
37
37
|
},
|
|
38
38
|
"deprecated": false,
|
|
39
39
|
"description": "Essential JS 2 ProgressBar Component for Vue",
|
|
@@ -55,8 +55,9 @@
|
|
|
55
55
|
"url": "git+https://github.com/syncfusion/ej2-vue-ui-components.git"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
|
-
"
|
|
58
|
+
"ci-publish": "gulp ci-publish",
|
|
59
|
+
"compile": "gulp ci-compile && gulp vue-global-script"
|
|
59
60
|
},
|
|
60
|
-
"version": "
|
|
61
|
+
"version": "21.1.37",
|
|
61
62
|
"sideEffects": false
|
|
62
63
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export * from '@syncfusion/ej2-progressbar';
|
|
2
2
|
export { ProgressBarAnnotationsDirective, ProgressBarAnnotationDirective, ProgressBarAnnotationsPlugin, ProgressBarAnnotationPlugin } from './progressbar/annotations.directive';
|
|
3
|
+
export { RangeColorsDirective, RangeColorDirective, RangeColorsPlugin, RangeColorPlugin } from './progressbar/rangecolors.directive';
|
|
3
4
|
export { ProgressBarComponent, ProgressBarPlugin } from './progressbar/progressbar.component';
|
package/src/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export * from '@syncfusion/ej2-progressbar';
|
|
2
2
|
export { ProgressBarAnnotationsDirective, ProgressBarAnnotationDirective, ProgressBarAnnotationsPlugin, ProgressBarAnnotationPlugin } from './progressbar/annotations.directive';
|
|
3
|
+
export { RangeColorsDirective, RangeColorDirective, RangeColorsPlugin, RangeColorPlugin } from './progressbar/rangecolors.directive';
|
|
3
4
|
export { ProgressBarComponent, ProgressBarPlugin } from './progressbar/progressbar.component';
|
|
@@ -1,20 +1,10 @@
|
|
|
1
|
-
declare let
|
|
2
|
-
export declare class ProgressBarAnnotationsDirective extends vueImport {
|
|
3
|
-
constructor();
|
|
4
|
-
render(createElement: any): void;
|
|
5
|
-
updated(): void;
|
|
6
|
-
getTag(): string;
|
|
7
|
-
}
|
|
1
|
+
export declare let ProgressBarAnnotationsDirective: any;
|
|
8
2
|
export declare const ProgressBarAnnotationsPlugin: {
|
|
9
3
|
name: string;
|
|
10
4
|
install(Vue: any): void;
|
|
11
5
|
};
|
|
12
|
-
export declare
|
|
13
|
-
render(): void;
|
|
14
|
-
getTag(): string;
|
|
15
|
-
}
|
|
6
|
+
export declare let ProgressBarAnnotationDirective: any;
|
|
16
7
|
export declare const ProgressBarAnnotationPlugin: {
|
|
17
8
|
name: string;
|
|
18
9
|
install(Vue: any): void;
|
|
19
10
|
};
|
|
20
|
-
export {};
|
|
@@ -1,40 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
20
|
-
import { EJComponentDecorator, allVue, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
21
|
-
import * as Vue3 from 'vue-class-component';
|
|
1
|
+
import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
22
2
|
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
27
|
-
vueImport = Vue3.Vue;
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
vueImport = Vue;
|
|
31
|
-
}
|
|
32
|
-
var ProgressBarAnnotationsDirective = /** @class */ (function (_super) {
|
|
33
|
-
__extends(ProgressBarAnnotationsDirective, _super);
|
|
34
|
-
function ProgressBarAnnotationsDirective() {
|
|
35
|
-
return _super.call(this, arguments) || this;
|
|
36
|
-
}
|
|
37
|
-
ProgressBarAnnotationsDirective.prototype.render = function (createElement) {
|
|
3
|
+
export var ProgressBarAnnotationsDirective = vueDefineComponent({
|
|
4
|
+
inject: { custom: { default: null } },
|
|
5
|
+
render: function (createElement) {
|
|
38
6
|
if (!isExecute) {
|
|
39
7
|
var h = !isExecute ? gh : createElement;
|
|
40
8
|
var slots = null;
|
|
@@ -44,51 +12,34 @@ var ProgressBarAnnotationsDirective = /** @class */ (function (_super) {
|
|
|
44
12
|
return h('div', { class: 'e-directive' }, slots);
|
|
45
13
|
}
|
|
46
14
|
return;
|
|
47
|
-
}
|
|
48
|
-
|
|
15
|
+
},
|
|
16
|
+
updated: function () {
|
|
49
17
|
if (!isExecute && this.custom) {
|
|
50
18
|
this.custom();
|
|
51
19
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
inject: {
|
|
60
|
-
custom: {
|
|
61
|
-
default: null
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
})
|
|
65
|
-
], ProgressBarAnnotationsDirective);
|
|
66
|
-
return ProgressBarAnnotationsDirective;
|
|
67
|
-
}(vueImport));
|
|
68
|
-
export { ProgressBarAnnotationsDirective };
|
|
20
|
+
},
|
|
21
|
+
methods: {
|
|
22
|
+
getTag: function () {
|
|
23
|
+
return 'e-progressbar-annotations';
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
69
27
|
export var ProgressBarAnnotationsPlugin = {
|
|
70
28
|
name: 'e-progressbar-annotations',
|
|
71
29
|
install: function (Vue) {
|
|
72
30
|
Vue.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);
|
|
73
31
|
}
|
|
74
32
|
};
|
|
75
|
-
var ProgressBarAnnotationDirective =
|
|
76
|
-
|
|
77
|
-
function ProgressBarAnnotationDirective() {
|
|
78
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
79
|
-
}
|
|
80
|
-
ProgressBarAnnotationDirective.prototype.render = function () {
|
|
33
|
+
export var ProgressBarAnnotationDirective = vueDefineComponent({
|
|
34
|
+
render: function () {
|
|
81
35
|
return;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return ProgressBarAnnotationDirective;
|
|
90
|
-
}(vueImport));
|
|
91
|
-
export { ProgressBarAnnotationDirective };
|
|
36
|
+
},
|
|
37
|
+
methods: {
|
|
38
|
+
getTag: function () {
|
|
39
|
+
return 'e-progressbar-annotation';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
92
43
|
export var ProgressBarAnnotationPlugin = {
|
|
93
44
|
name: 'e-progressbar-annotation',
|
|
94
45
|
install: function (Vue) {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { ProgressBarAnnotationsDirective, ProgressBarAnnotationDirective, ProgressBarAnnotationsPlugin, ProgressBarAnnotationPlugin } from './annotations.directive';
|
|
2
|
+
export { RangeColorsDirective, RangeColorDirective, RangeColorsPlugin, RangeColorPlugin } from './rangecolors.directive';
|
|
2
3
|
export { ProgressBarComponent, ProgressBarPlugin } from './progressbar.component';
|
package/src/progressbar/index.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { ProgressBarAnnotationsDirective, ProgressBarAnnotationDirective, ProgressBarAnnotationsPlugin, ProgressBarAnnotationPlugin } from './annotations.directive';
|
|
2
|
+
export { RangeColorsDirective, RangeColorDirective, RangeColorsPlugin, RangeColorPlugin } from './rangecolors.directive';
|
|
2
3
|
export { ProgressBarComponent, ProgressBarPlugin } from './progressbar.component';
|
|
@@ -1,42 +1,15 @@
|
|
|
1
|
-
import { ComponentBase } from '@syncfusion/ej2-vue-base';
|
|
2
1
|
export declare const properties: string[];
|
|
3
2
|
export declare const modelProps: string[];
|
|
4
3
|
export declare const testProp: any;
|
|
5
|
-
export declare const props: any;
|
|
6
|
-
export declare const watch: any;
|
|
7
|
-
export declare const emitProbs: any;
|
|
4
|
+
export declare const props: any, watch: any, emitProbs: any;
|
|
8
5
|
/**
|
|
9
6
|
* Represents Vuejs ProgressBar Component
|
|
10
7
|
* ```vue
|
|
11
8
|
* <ejs-progressbar></ejs-progressbar>
|
|
12
9
|
* ```
|
|
13
10
|
*/
|
|
14
|
-
export declare
|
|
15
|
-
|
|
16
|
-
propKeys: string[];
|
|
17
|
-
models: string[];
|
|
18
|
-
hasChildDirective: boolean;
|
|
19
|
-
protected hasInjectedModules: boolean;
|
|
20
|
-
tagMapper: {
|
|
21
|
-
[key: string]: Object;
|
|
22
|
-
};
|
|
23
|
-
tagNameMapper: Object;
|
|
24
|
-
isVue3: boolean;
|
|
25
|
-
templateCollection: any;
|
|
26
|
-
constructor();
|
|
27
|
-
clearTemplate(templateNames?: string[]): any;
|
|
28
|
-
setProperties(prop: any, muteOnChange: boolean): void;
|
|
29
|
-
render(createElement: any): any;
|
|
30
|
-
custom(): void;
|
|
31
|
-
calculateProgressRange(value: number, minimum?: number, maximum?: number): number;
|
|
32
|
-
calculateSegmentSize(width: number, thickness: number): string;
|
|
33
|
-
createClipPath(clipPath?: Object, range?: number, d?: string, refresh?: boolean, thickness?: number, isLabel?: boolean, isMaximum?: boolean): Object;
|
|
34
|
-
getPathLine(x: number, width: number, thickness: number): string;
|
|
35
|
-
hide(): void;
|
|
36
|
-
removeSvg(): void;
|
|
37
|
-
requiredModules(): Object[];
|
|
38
|
-
show(): void;
|
|
39
|
-
}
|
|
11
|
+
export declare let ProgressBarComponent: any;
|
|
12
|
+
export declare type ProgressBarComponent = InstanceType<typeof ProgressBarComponent>;
|
|
40
13
|
export declare const ProgressBarPlugin: {
|
|
41
14
|
name: string;
|
|
42
15
|
install(Vue: any): void;
|
|
@@ -1,33 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
20
|
-
import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
1
|
+
import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
21
2
|
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
|
|
22
3
|
import { ProgressBar } from '@syncfusion/ej2-progressbar';
|
|
23
4
|
import { ProgressBarAnnotationsDirective, ProgressBarAnnotationDirective, ProgressBarAnnotationsPlugin, ProgressBarAnnotationPlugin } from './annotations.directive';
|
|
24
|
-
import {
|
|
25
|
-
export var properties = ['isLazyUpdate', 'plugins', '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', 'segmentColor', 'segmentCount', 'showProgressValue', 'startAngle', 'theme', 'trackColor', 'trackThickness', 'type', 'value', 'width', 'animationComplete', 'load', 'loaded', 'mouseClick', 'mouseDown', 'mouseLeave', 'mouseMove', 'mouseUp', 'progressCompleted', 'textRender', 'valueChanged'];
|
|
5
|
+
import { RangeColorsDirective, RangeColorDirective, RangeColorsPlugin, RangeColorPlugin } from './rangecolors.directive';
|
|
6
|
+
export var properties = ['isLazyUpdate', 'plugins', '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', 'animationComplete', 'load', 'loaded', 'mouseClick', 'mouseDown', 'mouseLeave', 'mouseMove', 'mouseUp', 'progressCompleted', 'textRender', 'tooltipRender', 'valueChanged'];
|
|
26
7
|
export var modelProps = [];
|
|
27
8
|
export var testProp = getProps({ props: properties });
|
|
28
|
-
export var props = testProp[0];
|
|
29
|
-
export var watch = testProp[1];
|
|
30
|
-
export var emitProbs = Object.keys(watch);
|
|
9
|
+
export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
|
|
31
10
|
emitProbs.push('modelchanged', 'update:modelValue');
|
|
32
11
|
for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
33
12
|
var props_1 = modelProps_1[_i];
|
|
@@ -39,131 +18,126 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
|
39
18
|
* <ejs-progressbar></ejs-progressbar>
|
|
40
19
|
* ```
|
|
41
20
|
*/
|
|
42
|
-
var ProgressBarComponent =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
21
|
+
export var ProgressBarComponent = vueDefineComponent({
|
|
22
|
+
name: 'ProgressBarComponent',
|
|
23
|
+
mixins: [ComponentBase],
|
|
24
|
+
props: props,
|
|
25
|
+
watch: watch,
|
|
26
|
+
emits: emitProbs,
|
|
27
|
+
provide: function () { return { custom: this.custom }; },
|
|
28
|
+
data: function () {
|
|
29
|
+
return {
|
|
30
|
+
ej2Instances: new ProgressBar({}),
|
|
31
|
+
propKeys: properties,
|
|
32
|
+
models: modelProps,
|
|
33
|
+
hasChildDirective: true,
|
|
34
|
+
hasInjectedModules: true,
|
|
35
|
+
tagMapper: { "e-progressbar-annotations": "e-progressbar-annotation", "e-rangecolors": "e-rangecolor" },
|
|
36
|
+
tagNameMapper: { "e-progressbar-annotations": "e-annotations", "e-rangecolors": "e-rangeColors" },
|
|
37
|
+
isVue3: !isExecute,
|
|
38
|
+
templateCollection: {},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
created: function () {
|
|
42
|
+
this.bindProperties();
|
|
43
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
44
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
45
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
46
|
+
this.updated = this.updated;
|
|
47
|
+
},
|
|
48
|
+
render: function (createElement) {
|
|
49
|
+
var h = !isExecute ? gh : createElement;
|
|
50
|
+
var slots = null;
|
|
51
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
52
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
64
53
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
54
|
+
return h('div', slots);
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
clearTemplate: function (templateNames) {
|
|
58
|
+
if (!templateNames) {
|
|
59
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
60
|
+
}
|
|
61
|
+
if (templateNames.length && this.templateCollection) {
|
|
62
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
63
|
+
var tempName = templateNames_1[_i];
|
|
64
|
+
var elementCollection = this.templateCollection[tempName];
|
|
65
|
+
if (elementCollection && elementCollection.length) {
|
|
66
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
67
|
+
var ele = elementCollection_1[_a];
|
|
68
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
69
|
+
if (destroy) {
|
|
70
|
+
ele.__vue__.$destroy();
|
|
71
|
+
}
|
|
72
|
+
if (ele.innerHTML) {
|
|
73
|
+
ele.innerHTML = '';
|
|
74
|
+
}
|
|
78
75
|
}
|
|
76
|
+
delete this.templateCollection[tempName];
|
|
79
77
|
}
|
|
80
|
-
delete this.templateCollection[tempName];
|
|
81
78
|
}
|
|
82
79
|
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
80
|
+
},
|
|
81
|
+
setProperties: function (prop, muteOnChange) {
|
|
82
|
+
var _this = this;
|
|
83
|
+
if (this.isVue3) {
|
|
84
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
85
|
+
}
|
|
86
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
87
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
88
|
+
}
|
|
89
|
+
if (prop && this.models && this.models.length) {
|
|
90
|
+
Object.keys(prop).map(function (key) {
|
|
91
|
+
_this.models.map(function (model) {
|
|
92
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
93
|
+
if (_this.isVue3) {
|
|
94
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
_this.$emit('update:' + key, prop[key]);
|
|
98
|
+
_this.$emit('modelchanged', prop[key]);
|
|
99
|
+
}
|
|
103
100
|
}
|
|
104
|
-
}
|
|
101
|
+
});
|
|
105
102
|
});
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
ProgressBarComponent.prototype.render = function (createElement) {
|
|
110
|
-
var h = !isExecute ? gh : createElement;
|
|
111
|
-
var slots = null;
|
|
112
|
-
if (!isNullOrUndefined(this.$slots.default)) {
|
|
113
|
-
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
114
|
-
}
|
|
115
|
-
return h('div', slots);
|
|
116
|
-
};
|
|
117
|
-
ProgressBarComponent.prototype.custom = function () {
|
|
118
|
-
this.updated();
|
|
119
|
-
};
|
|
120
|
-
ProgressBarComponent.prototype.calculateProgressRange = function (value, minimum, maximum) {
|
|
121
|
-
return this.ej2Instances.calculateProgressRange(value, minimum, maximum);
|
|
122
|
-
};
|
|
123
|
-
ProgressBarComponent.prototype.calculateSegmentSize = function (width, thickness) {
|
|
124
|
-
return this.ej2Instances.calculateSegmentSize(width, thickness);
|
|
125
|
-
};
|
|
126
|
-
ProgressBarComponent.prototype.createClipPath = function (clipPath, range, d, refresh, thickness, isLabel, isMaximum) {
|
|
127
|
-
return this.ej2Instances.createClipPath(clipPath, range, d, refresh, thickness, isLabel, isMaximum);
|
|
128
|
-
};
|
|
129
|
-
ProgressBarComponent.prototype.getPathLine = function (x, width, thickness) {
|
|
130
|
-
return this.ej2Instances.getPathLine(x, width, thickness);
|
|
131
|
-
};
|
|
132
|
-
ProgressBarComponent.prototype.hide = function () {
|
|
133
|
-
return this.ej2Instances.hide();
|
|
134
|
-
};
|
|
135
|
-
ProgressBarComponent.prototype.removeSvg = function () {
|
|
136
|
-
return this.ej2Instances.removeSvg();
|
|
137
|
-
};
|
|
138
|
-
ProgressBarComponent.prototype.requiredModules = function () {
|
|
139
|
-
return this.ej2Instances.requiredModules();
|
|
140
|
-
};
|
|
141
|
-
ProgressBarComponent.prototype.show = function () {
|
|
142
|
-
return this.ej2Instances.show();
|
|
143
|
-
};
|
|
144
|
-
ProgressBarComponent = __decorate([
|
|
145
|
-
EJComponentDecorator({
|
|
146
|
-
props: properties
|
|
147
|
-
}, isExecute)
|
|
148
|
-
,Options({
|
|
149
|
-
props: props,
|
|
150
|
-
watch: watch,
|
|
151
|
-
emits: emitProbs,
|
|
152
|
-
provide: function provide() {
|
|
153
|
-
return {
|
|
154
|
-
custom: this.custom
|
|
155
|
-
};
|
|
156
103
|
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
161
|
-
|
|
104
|
+
},
|
|
105
|
+
custom: function () {
|
|
106
|
+
this.updated();
|
|
107
|
+
},
|
|
108
|
+
calculateProgressRange: function (value, minimum, maximum) {
|
|
109
|
+
return this.ej2Instances.calculateProgressRange(value, minimum, maximum);
|
|
110
|
+
},
|
|
111
|
+
calculateSegmentSize: function (width, thickness) {
|
|
112
|
+
return this.ej2Instances.calculateSegmentSize(width, thickness);
|
|
113
|
+
},
|
|
114
|
+
createClipPath: function (clipPath, range, d, refresh, thickness, isLabel, isMaximum) {
|
|
115
|
+
return this.ej2Instances.createClipPath(clipPath, range, d, refresh, thickness, isLabel, isMaximum);
|
|
116
|
+
},
|
|
117
|
+
getPathLine: function (x, width, thickness) {
|
|
118
|
+
return this.ej2Instances.getPathLine(x, width, thickness);
|
|
119
|
+
},
|
|
120
|
+
hide: function () {
|
|
121
|
+
return this.ej2Instances.hide();
|
|
122
|
+
},
|
|
123
|
+
removeSvg: function () {
|
|
124
|
+
return this.ej2Instances.removeSvg();
|
|
125
|
+
},
|
|
126
|
+
requiredModules: function () {
|
|
127
|
+
return this.ej2Instances.requiredModules();
|
|
128
|
+
},
|
|
129
|
+
show: function () {
|
|
130
|
+
return this.ej2Instances.show();
|
|
131
|
+
},
|
|
132
|
+
}
|
|
133
|
+
});
|
|
162
134
|
export var ProgressBarPlugin = {
|
|
163
135
|
name: 'ejs-progressbar',
|
|
164
136
|
install: function (Vue) {
|
|
165
137
|
Vue.component(ProgressBarPlugin.name, ProgressBarComponent);
|
|
166
138
|
Vue.component(ProgressBarAnnotationPlugin.name, ProgressBarAnnotationDirective);
|
|
167
139
|
Vue.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);
|
|
140
|
+
Vue.component(RangeColorPlugin.name, RangeColorDirective);
|
|
141
|
+
Vue.component(RangeColorsPlugin.name, RangeColorsDirective);
|
|
168
142
|
}
|
|
169
143
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare let RangeColorsDirective: any;
|
|
2
|
+
export declare const RangeColorsPlugin: {
|
|
3
|
+
name: string;
|
|
4
|
+
install(Vue: any): void;
|
|
5
|
+
};
|
|
6
|
+
export declare let RangeColorDirective: any;
|
|
7
|
+
export declare const RangeColorPlugin: {
|
|
8
|
+
name: string;
|
|
9
|
+
install(Vue: any): void;
|
|
10
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
2
|
+
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
3
|
+
export var RangeColorsDirective = vueDefineComponent({
|
|
4
|
+
inject: { custom: { default: null } },
|
|
5
|
+
render: function (createElement) {
|
|
6
|
+
if (!isExecute) {
|
|
7
|
+
var h = !isExecute ? gh : createElement;
|
|
8
|
+
var slots = null;
|
|
9
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
10
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
11
|
+
}
|
|
12
|
+
return h('div', { class: 'e-directive' }, slots);
|
|
13
|
+
}
|
|
14
|
+
return;
|
|
15
|
+
},
|
|
16
|
+
updated: function () {
|
|
17
|
+
if (!isExecute && this.custom) {
|
|
18
|
+
this.custom();
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
methods: {
|
|
22
|
+
getTag: function () {
|
|
23
|
+
return 'e-rangecolors';
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export var RangeColorsPlugin = {
|
|
28
|
+
name: 'e-rangecolors',
|
|
29
|
+
install: function (Vue) {
|
|
30
|
+
Vue.component(RangeColorsPlugin.name, RangeColorsDirective);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export var RangeColorDirective = vueDefineComponent({
|
|
34
|
+
render: function () {
|
|
35
|
+
return;
|
|
36
|
+
},
|
|
37
|
+
methods: {
|
|
38
|
+
getTag: function () {
|
|
39
|
+
return 'e-rangecolor';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export var RangeColorPlugin = {
|
|
44
|
+
name: 'e-rangecolor',
|
|
45
|
+
install: function (Vue) {
|
|
46
|
+
Vue.component(RangeColorPlugin.name, RangeColorDirective);
|
|
47
|
+
}
|
|
48
|
+
};
|