@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-vue-progressbar.es2015.js","sources":["../src/es6/progressbar/annotations.directive.js","../src/es6/progressbar/progressbar.component.js"],"sourcesContent":["var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n 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;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { EJComponentDecorator, allVue, gh, isExecute } from '@syncfusion/ej2-vue-base';\nimport * as Vue3 from 'vue-class-component';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nimport Vue from 'vue';\n// {{VueImport}}\nlet vueImport;\nif (!isExecute || parseInt(allVue.version) < 3) {\n vueImport = Vue3.Vue;\n}\nelse {\n vueImport = Vue;\n}\nlet ProgressBarAnnotationsDirective = \n/* Start Options({\n inject: {\n custom: {\n default: null\n }\n }\n}) End */\nclass ProgressBarAnnotationsDirective extends vueImport {\n constructor() {\n super(arguments);\n }\n render(createElement) {\n if (!isExecute) {\n let h = !isExecute ? gh : createElement;\n let slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', { class: 'e-directive' }, slots);\n }\n return;\n }\n updated() {\n if (!isExecute && this.custom) {\n this.custom();\n }\n }\n getTag() {\n return 'e-progressbar-annotations';\n }\n};\nProgressBarAnnotationsDirective = __decorate([\n EJComponentDecorator({}, isExecute)\n /* Start Options({\n inject: {\n custom: {\n default: null\n }\n }\n }) End */\n], ProgressBarAnnotationsDirective);\nexport { ProgressBarAnnotationsDirective };\nexport const ProgressBarAnnotationsPlugin = {\n name: 'e-progressbar-annotations',\n install(Vue) {\n Vue.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);\n }\n};\nlet ProgressBarAnnotationDirective = class ProgressBarAnnotationDirective extends vueImport {\n render() {\n return;\n }\n getTag() {\n return 'e-progressbar-annotation';\n }\n};\nProgressBarAnnotationDirective = __decorate([\n EJComponentDecorator({}, isExecute)\n], ProgressBarAnnotationDirective);\nexport { ProgressBarAnnotationDirective };\nexport const ProgressBarAnnotationPlugin = {\n name: 'e-progressbar-annotation',\n install(Vue) {\n Vue.component(ProgressBarAnnotationPlugin.name, ProgressBarAnnotationDirective);\n }\n};\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n 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;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { ProgressBar } from '@syncfusion/ej2-progressbar';\nimport { ProgressBarAnnotationsDirective, ProgressBarAnnotationDirective, ProgressBarAnnotationsPlugin, ProgressBarAnnotationPlugin } from './annotations.directive';\n// {{VueImport}}\nexport const 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'];\nexport const modelProps = [];\nexport const testProp = getProps({ props: properties });\nexport const props = testProp[0];\nexport const watch = testProp[1];\nexport const emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (let props of modelProps) {\n emitProbs.push('update:' + props);\n}\n/**\n * Represents Vuejs ProgressBar Component\n * ```vue\n * <ejs-progressbar></ejs-progressbar>\n * ```\n */\nlet ProgressBarComponent = \n/* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function provide() {\n return {\n custom: this.custom\n };\n }\n}) End */\nclass ProgressBarComponent extends ComponentBase {\n constructor() {\n super(arguments);\n this.propKeys = properties;\n this.models = modelProps;\n this.hasChildDirective = true;\n this.hasInjectedModules = true;\n this.tagMapper = { \"e-progressbar-annotations\": \"e-progressbar-annotation\" };\n this.tagNameMapper = { \"e-progressbar-annotations\": \"e-annotations\" };\n this.isVue3 = !isExecute;\n this.ej2Instances = new ProgressBar({});\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n this.ej2Instances.clearTemplate = this.clearTemplate;\n this.updated = this.updated;\n }\n clearTemplate(templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (let tempName of templateNames) {\n let elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (let ele of elementCollection) {\n let destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n }\n setProperties(prop, muteOnChange) {\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map((key) => {\n this.models.map((model) => {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (this.isVue3) {\n this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n this.$emit('update:' + key, prop[key]);\n this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n }\n render(createElement) {\n let h = !isExecute ? gh : createElement;\n let slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n }\n custom() {\n this.updated();\n }\n calculateProgressRange(value, minimum, maximum) {\n return this.ej2Instances.calculateProgressRange(value, minimum, maximum);\n }\n calculateSegmentSize(width, thickness) {\n return this.ej2Instances.calculateSegmentSize(width, thickness);\n }\n createClipPath(clipPath, range, d, refresh, thickness, isLabel, isMaximum) {\n return this.ej2Instances.createClipPath(clipPath, range, d, refresh, thickness, isLabel, isMaximum);\n }\n getPathLine(x, width, thickness) {\n return this.ej2Instances.getPathLine(x, width, thickness);\n }\n hide() {\n return this.ej2Instances.hide();\n }\n removeSvg() {\n return this.ej2Instances.removeSvg();\n }\n requiredModules() {\n return this.ej2Instances.requiredModules();\n }\n show() {\n return this.ej2Instances.show();\n }\n};\nProgressBarComponent = __decorate([\n EJComponentDecorator({\n props: properties\n }, isExecute)\n /* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function provide() {\n return {\n custom: this.custom\n };\n }\n }) End */\n], ProgressBarComponent);\nexport { ProgressBarComponent };\nexport const ProgressBarPlugin = {\n name: 'ejs-progressbar',\n install(Vue) {\n Vue.component(ProgressBarPlugin.name, ProgressBarComponent);\n Vue.component(ProgressBarAnnotationPlugin.name, ProgressBarAnnotationDirective);\n Vue.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);\n }\n};\n"],"names":["this","Vue3.Vue","Vue","__decorate"],"mappings":";;;;;;AAAA,IAAI,UAAU,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,UAAU,KAAK,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE;IACnF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CA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CAAC;QACjB,KAAK,EAAE,UAAU;KACpB,EAAE,SAAS,CAAC;;;;;;;;;;;CAWhB,EAAE,oBAAoB,CAAC,CAAC;AACzB,AACO,MAAM,iBAAiB,GAAG;IAC7B,IAAI,EAAE,iBAAiB;IACvB,OAAO,CAACD,MAAG,EAAE;QACTA,MAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC;QAC5DA,MAAG,CAAC,SAAS,CAAC,2BAA2B,CAAC,IAAI,EAAE,8BAA8B,CAAC,CAAC;QAChFA,MAAG,CAAC,SAAS,CAAC,4BAA4B,CAAC,IAAI,EAAE,+BAA+B,CAAC,CAAC;KACrF;CACJ;;;;;"}
|
|
1
|
+
{"version":3,"file":"ej2-vue-progressbar.es2015.js","sources":["../src/es6/progressbar/annotations.directive.js","../src/es6/progressbar/rangecolors.directive.js","../src/es6/progressbar/progressbar.component.js"],"sourcesContent":["import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nexport let ProgressBarAnnotationsDirective = vueDefineComponent({\n inject: { custom: { default: null } },\n render(createElement) {\n if (!isExecute) {\n let h = !isExecute ? gh : createElement;\n let slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', { class: 'e-directive' }, slots);\n }\n return;\n },\n updated() {\n if (!isExecute && this.custom) {\n this.custom();\n }\n },\n methods: {\n getTag() {\n return 'e-progressbar-annotations';\n }\n }\n});\nexport const ProgressBarAnnotationsPlugin = {\n name: 'e-progressbar-annotations',\n install(Vue) {\n Vue.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);\n }\n};\nexport let ProgressBarAnnotationDirective = vueDefineComponent({\n render() {\n return;\n },\n methods: {\n getTag() {\n return 'e-progressbar-annotation';\n }\n }\n});\nexport const ProgressBarAnnotationPlugin = {\n name: 'e-progressbar-annotation',\n install(Vue) {\n Vue.component(ProgressBarAnnotationPlugin.name, ProgressBarAnnotationDirective);\n }\n};\n","import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nexport let RangeColorsDirective = vueDefineComponent({\n inject: { custom: { default: null } },\n render(createElement) {\n if (!isExecute) {\n let h = !isExecute ? gh : createElement;\n let slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', { class: 'e-directive' }, slots);\n }\n return;\n },\n updated() {\n if (!isExecute && this.custom) {\n this.custom();\n }\n },\n methods: {\n getTag() {\n return 'e-rangecolors';\n }\n }\n});\nexport const RangeColorsPlugin = {\n name: 'e-rangecolors',\n install(Vue) {\n Vue.component(RangeColorsPlugin.name, RangeColorsDirective);\n }\n};\nexport let RangeColorDirective = vueDefineComponent({\n render() {\n return;\n },\n methods: {\n getTag() {\n return 'e-rangecolor';\n }\n }\n});\nexport const RangeColorPlugin = {\n name: 'e-rangecolor',\n install(Vue) {\n Vue.component(RangeColorPlugin.name, RangeColorDirective);\n }\n};\n","import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { ProgressBar } from '@syncfusion/ej2-progressbar';\nimport { ProgressBarAnnotationsDirective, ProgressBarAnnotationDirective, ProgressBarAnnotationsPlugin, ProgressBarAnnotationPlugin } from './annotations.directive';\nimport { RangeColorsDirective, RangeColorDirective, RangeColorsPlugin, RangeColorPlugin } from './rangecolors.directive';\nexport const 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'];\nexport const modelProps = [];\nexport const testProp = getProps({ props: properties });\nexport const props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (let props of modelProps) {\n emitProbs.push('update:' + props);\n}\n/**\n * Represents Vuejs ProgressBar Component\n * ```vue\n * <ejs-progressbar></ejs-progressbar>\n * ```\n */\nexport let ProgressBarComponent = vueDefineComponent({\n name: 'ProgressBarComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n provide() { return { custom: this.custom }; },\n data() {\n return {\n ej2Instances: new ProgressBar({}),\n propKeys: properties,\n models: modelProps,\n hasChildDirective: true,\n hasInjectedModules: true,\n tagMapper: { \"e-progressbar-annotations\": \"e-progressbar-annotation\", \"e-rangecolors\": \"e-rangecolor\" },\n tagNameMapper: { \"e-progressbar-annotations\": \"e-annotations\", \"e-rangecolors\": \"e-rangeColors\" },\n isVue3: !isExecute,\n templateCollection: {},\n };\n },\n created() {\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n this.ej2Instances.clearTemplate = this.clearTemplate;\n this.updated = this.updated;\n },\n render(createElement) {\n let h = !isExecute ? gh : createElement;\n let slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n },\n methods: {\n clearTemplate(templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (let tempName of templateNames) {\n let elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (let ele of elementCollection) {\n let destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n },\n setProperties(prop, muteOnChange) {\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map((key) => {\n this.models.map((model) => {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (this.isVue3) {\n this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n this.$emit('update:' + key, prop[key]);\n this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n },\n custom() {\n this.updated();\n },\n calculateProgressRange(value, minimum, maximum) {\n return this.ej2Instances.calculateProgressRange(value, minimum, maximum);\n },\n calculateSegmentSize(width, thickness) {\n return this.ej2Instances.calculateSegmentSize(width, thickness);\n },\n createClipPath(clipPath, range, d, refresh, thickness, isLabel, isMaximum) {\n return this.ej2Instances.createClipPath(clipPath, range, d, refresh, thickness, isLabel, isMaximum);\n },\n getPathLine(x, width, thickness) {\n return this.ej2Instances.getPathLine(x, width, thickness);\n },\n hide() {\n return this.ej2Instances.hide();\n },\n removeSvg() {\n return this.ej2Instances.removeSvg();\n },\n requiredModules() {\n return this.ej2Instances.requiredModules();\n },\n show() {\n return this.ej2Instances.show();\n },\n }\n});\nexport const ProgressBarPlugin = {\n name: 'ejs-progressbar',\n install(Vue) {\n Vue.component(ProgressBarPlugin.name, ProgressBarComponent);\n Vue.component(ProgressBarAnnotationPlugin.name, ProgressBarAnnotationDirective);\n Vue.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);\n Vue.component(RangeColorPlugin.name, RangeColor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CAAC,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC;KAC/D;CACJ;;;;;"}
|
|
@@ -1,42 +1,10 @@
|
|
|
1
1
|
import { ProgressBar } from '@syncfusion/ej2-progressbar';
|
|
2
|
-
import { ComponentBase,
|
|
3
|
-
import { Vue } from 'vue-class-component';
|
|
2
|
+
import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
4
3
|
import { getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
5
|
-
import Vue$1 from 'vue';
|
|
6
4
|
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
12
|
-
return extendStatics(d, b);
|
|
13
|
-
};
|
|
14
|
-
return function (d, b) {
|
|
15
|
-
extendStatics(d, b);
|
|
16
|
-
function __() { this.constructor = d; }
|
|
17
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
-
};
|
|
19
|
-
})();
|
|
20
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
-
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;
|
|
24
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
-
};
|
|
26
|
-
import { Options } from 'vue-class-component';
|
|
27
|
-
var vueImport;
|
|
28
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
29
|
-
vueImport = Vue;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
vueImport = Vue$1;
|
|
33
|
-
}
|
|
34
|
-
var ProgressBarAnnotationsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
35
|
-
__extends(ProgressBarAnnotationsDirective, _super);
|
|
36
|
-
function ProgressBarAnnotationsDirective() {
|
|
37
|
-
return _super.call(this, arguments) || this;
|
|
38
|
-
}
|
|
39
|
-
ProgressBarAnnotationsDirective.prototype.render = function (createElement) {
|
|
5
|
+
var ProgressBarAnnotationsDirective = vueDefineComponent({
|
|
6
|
+
inject: { custom: { default: null } },
|
|
7
|
+
render: function (createElement) {
|
|
40
8
|
if (!isExecute) {
|
|
41
9
|
var h = !isExecute ? gh : createElement;
|
|
42
10
|
var slots = null;
|
|
@@ -46,77 +14,89 @@ var ProgressBarAnnotationsDirective = /** @__PURE__ @class */ (function (_super)
|
|
|
46
14
|
return h('div', { class: 'e-directive' }, slots);
|
|
47
15
|
}
|
|
48
16
|
return;
|
|
49
|
-
}
|
|
50
|
-
|
|
17
|
+
},
|
|
18
|
+
updated: function () {
|
|
51
19
|
if (!isExecute && this.custom) {
|
|
52
20
|
this.custom();
|
|
53
21
|
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
inject: {
|
|
62
|
-
custom: {
|
|
63
|
-
default: null
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
})
|
|
67
|
-
], ProgressBarAnnotationsDirective);
|
|
68
|
-
return ProgressBarAnnotationsDirective;
|
|
69
|
-
}(vueImport));
|
|
22
|
+
},
|
|
23
|
+
methods: {
|
|
24
|
+
getTag: function () {
|
|
25
|
+
return 'e-progressbar-annotations';
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
});
|
|
70
29
|
var ProgressBarAnnotationsPlugin = {
|
|
71
30
|
name: 'e-progressbar-annotations',
|
|
72
|
-
install: function (Vue
|
|
73
|
-
Vue
|
|
31
|
+
install: function (Vue) {
|
|
32
|
+
Vue.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);
|
|
74
33
|
}
|
|
75
34
|
};
|
|
76
|
-
var ProgressBarAnnotationDirective =
|
|
77
|
-
|
|
78
|
-
function ProgressBarAnnotationDirective() {
|
|
79
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
80
|
-
}
|
|
81
|
-
ProgressBarAnnotationDirective.prototype.render = function () {
|
|
35
|
+
var ProgressBarAnnotationDirective = vueDefineComponent({
|
|
36
|
+
render: function () {
|
|
82
37
|
return;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return ProgressBarAnnotationDirective;
|
|
91
|
-
}(vueImport));
|
|
38
|
+
},
|
|
39
|
+
methods: {
|
|
40
|
+
getTag: function () {
|
|
41
|
+
return 'e-progressbar-annotation';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
});
|
|
92
45
|
var ProgressBarAnnotationPlugin = {
|
|
93
46
|
name: 'e-progressbar-annotation',
|
|
94
|
-
install: function (Vue
|
|
95
|
-
Vue
|
|
47
|
+
install: function (Vue) {
|
|
48
|
+
Vue.component(ProgressBarAnnotationPlugin.name, ProgressBarAnnotationDirective);
|
|
96
49
|
}
|
|
97
50
|
};
|
|
98
51
|
|
|
99
|
-
var
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
52
|
+
var RangeColorsDirective = vueDefineComponent({
|
|
53
|
+
inject: { custom: { default: null } },
|
|
54
|
+
render: function (createElement) {
|
|
55
|
+
if (!isExecute) {
|
|
56
|
+
var h = !isExecute ? gh : createElement;
|
|
57
|
+
var slots = null;
|
|
58
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
59
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
60
|
+
}
|
|
61
|
+
return h('div', { class: 'e-directive' }, slots);
|
|
62
|
+
}
|
|
63
|
+
return;
|
|
64
|
+
},
|
|
65
|
+
updated: function () {
|
|
66
|
+
if (!isExecute && this.custom) {
|
|
67
|
+
this.custom();
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
methods: {
|
|
71
|
+
getTag: function () {
|
|
72
|
+
return 'e-rangecolors';
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
var RangeColorsPlugin = {
|
|
77
|
+
name: 'e-rangecolors',
|
|
78
|
+
install: function (Vue) {
|
|
79
|
+
Vue.component(RangeColorsPlugin.name, RangeColorsDirective);
|
|
80
|
+
}
|
|
117
81
|
};
|
|
118
|
-
|
|
119
|
-
|
|
82
|
+
var RangeColorDirective = vueDefineComponent({
|
|
83
|
+
render: function () {
|
|
84
|
+
return;
|
|
85
|
+
},
|
|
86
|
+
methods: {
|
|
87
|
+
getTag: function () {
|
|
88
|
+
return 'e-rangecolor';
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
var RangeColorPlugin = {
|
|
93
|
+
name: 'e-rangecolor',
|
|
94
|
+
install: function (Vue) {
|
|
95
|
+
Vue.component(RangeColorPlugin.name, RangeColorDirective);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
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'];
|
|
120
100
|
var modelProps = [];
|
|
121
101
|
var testProp = getProps({ props: properties });
|
|
122
102
|
var props = testProp[0];
|
|
@@ -133,134 +113,130 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
|
133
113
|
* <ejs-progressbar></ejs-progressbar>
|
|
134
114
|
* ```
|
|
135
115
|
*/
|
|
136
|
-
var ProgressBarComponent =
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
116
|
+
var ProgressBarComponent = vueDefineComponent({
|
|
117
|
+
name: 'ProgressBarComponent',
|
|
118
|
+
mixins: [ComponentBase],
|
|
119
|
+
props: props,
|
|
120
|
+
watch: watch,
|
|
121
|
+
emits: emitProbs,
|
|
122
|
+
provide: function () { return { custom: this.custom }; },
|
|
123
|
+
data: function () {
|
|
124
|
+
return {
|
|
125
|
+
ej2Instances: new ProgressBar({}),
|
|
126
|
+
propKeys: properties,
|
|
127
|
+
models: modelProps,
|
|
128
|
+
hasChildDirective: true,
|
|
129
|
+
hasInjectedModules: true,
|
|
130
|
+
tagMapper: { "e-progressbar-annotations": "e-progressbar-annotation", "e-rangecolors": "e-rangecolor" },
|
|
131
|
+
tagNameMapper: { "e-progressbar-annotations": "e-annotations", "e-rangecolors": "e-rangeColors" },
|
|
132
|
+
isVue3: !isExecute,
|
|
133
|
+
templateCollection: {},
|
|
134
|
+
};
|
|
135
|
+
},
|
|
136
|
+
created: function () {
|
|
137
|
+
this.bindProperties();
|
|
138
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
139
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
140
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
141
|
+
this.updated = this.updated;
|
|
142
|
+
},
|
|
143
|
+
render: function (createElement) {
|
|
144
|
+
var h = !isExecute ? gh : createElement;
|
|
145
|
+
var slots = null;
|
|
146
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
147
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
158
148
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
149
|
+
return h('div', slots);
|
|
150
|
+
},
|
|
151
|
+
methods: {
|
|
152
|
+
clearTemplate: function (templateNames) {
|
|
153
|
+
if (!templateNames) {
|
|
154
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
155
|
+
}
|
|
156
|
+
if (templateNames.length && this.templateCollection) {
|
|
157
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
158
|
+
var tempName = templateNames_1[_i];
|
|
159
|
+
var elementCollection = this.templateCollection[tempName];
|
|
160
|
+
if (elementCollection && elementCollection.length) {
|
|
161
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
162
|
+
var ele = elementCollection_1[_a];
|
|
163
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
164
|
+
if (destroy) {
|
|
165
|
+
ele.__vue__.$destroy();
|
|
166
|
+
}
|
|
167
|
+
if (ele.innerHTML) {
|
|
168
|
+
ele.innerHTML = '';
|
|
169
|
+
}
|
|
172
170
|
}
|
|
171
|
+
delete this.templateCollection[tempName];
|
|
173
172
|
}
|
|
174
|
-
delete this.templateCollection[tempName];
|
|
175
173
|
}
|
|
176
174
|
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
175
|
+
},
|
|
176
|
+
setProperties: function (prop, muteOnChange) {
|
|
177
|
+
var _this = this;
|
|
178
|
+
if (this.isVue3) {
|
|
179
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
180
|
+
}
|
|
181
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
182
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
183
|
+
}
|
|
184
|
+
if (prop && this.models && this.models.length) {
|
|
185
|
+
Object.keys(prop).map(function (key) {
|
|
186
|
+
_this.models.map(function (model) {
|
|
187
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
188
|
+
if (_this.isVue3) {
|
|
189
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
_this.$emit('update:' + key, prop[key]);
|
|
193
|
+
_this.$emit('modelchanged', prop[key]);
|
|
194
|
+
}
|
|
197
195
|
}
|
|
198
|
-
}
|
|
196
|
+
});
|
|
199
197
|
});
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
ProgressBarComponent.prototype.render = function (createElement) {
|
|
204
|
-
var h = !isExecute ? gh : createElement;
|
|
205
|
-
var slots = null;
|
|
206
|
-
if (!isNullOrUndefined(this.$slots.default)) {
|
|
207
|
-
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
208
|
-
}
|
|
209
|
-
return h('div', slots);
|
|
210
|
-
};
|
|
211
|
-
ProgressBarComponent.prototype.custom = function () {
|
|
212
|
-
this.updated();
|
|
213
|
-
};
|
|
214
|
-
ProgressBarComponent.prototype.calculateProgressRange = function (value, minimum, maximum) {
|
|
215
|
-
return this.ej2Instances.calculateProgressRange(value, minimum, maximum);
|
|
216
|
-
};
|
|
217
|
-
ProgressBarComponent.prototype.calculateSegmentSize = function (width, thickness) {
|
|
218
|
-
return this.ej2Instances.calculateSegmentSize(width, thickness);
|
|
219
|
-
};
|
|
220
|
-
ProgressBarComponent.prototype.createClipPath = function (clipPath, range, d, refresh, thickness, isLabel, isMaximum) {
|
|
221
|
-
return this.ej2Instances.createClipPath(clipPath, range, d, refresh, thickness, isLabel, isMaximum);
|
|
222
|
-
};
|
|
223
|
-
ProgressBarComponent.prototype.getPathLine = function (x, width, thickness) {
|
|
224
|
-
return this.ej2Instances.getPathLine(x, width, thickness);
|
|
225
|
-
};
|
|
226
|
-
ProgressBarComponent.prototype.hide = function () {
|
|
227
|
-
return this.ej2Instances.hide();
|
|
228
|
-
};
|
|
229
|
-
ProgressBarComponent.prototype.removeSvg = function () {
|
|
230
|
-
return this.ej2Instances.removeSvg();
|
|
231
|
-
};
|
|
232
|
-
ProgressBarComponent.prototype.requiredModules = function () {
|
|
233
|
-
return this.ej2Instances.requiredModules();
|
|
234
|
-
};
|
|
235
|
-
ProgressBarComponent.prototype.show = function () {
|
|
236
|
-
return this.ej2Instances.show();
|
|
237
|
-
};
|
|
238
|
-
ProgressBarComponent = __decorate$1([
|
|
239
|
-
EJComponentDecorator({
|
|
240
|
-
props: properties
|
|
241
|
-
}, isExecute)
|
|
242
|
-
,Options({
|
|
243
|
-
props: props,
|
|
244
|
-
watch: watch,
|
|
245
|
-
emits: emitProbs,
|
|
246
|
-
provide: function provide() {
|
|
247
|
-
return {
|
|
248
|
-
custom: this.custom
|
|
249
|
-
};
|
|
250
198
|
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
}
|
|
199
|
+
},
|
|
200
|
+
custom: function () {
|
|
201
|
+
this.updated();
|
|
202
|
+
},
|
|
203
|
+
calculateProgressRange: function (value, minimum, maximum) {
|
|
204
|
+
return this.ej2Instances.calculateProgressRange(value, minimum, maximum);
|
|
205
|
+
},
|
|
206
|
+
calculateSegmentSize: function (width, thickness) {
|
|
207
|
+
return this.ej2Instances.calculateSegmentSize(width, thickness);
|
|
208
|
+
},
|
|
209
|
+
createClipPath: function (clipPath, range, d, refresh, thickness, isLabel, isMaximum) {
|
|
210
|
+
return this.ej2Instances.createClipPath(clipPath, range, d, refresh, thickness, isLabel, isMaximum);
|
|
211
|
+
},
|
|
212
|
+
getPathLine: function (x, width, thickness) {
|
|
213
|
+
return this.ej2Instances.getPathLine(x, width, thickness);
|
|
214
|
+
},
|
|
215
|
+
hide: function () {
|
|
216
|
+
return this.ej2Instances.hide();
|
|
217
|
+
},
|
|
218
|
+
removeSvg: function () {
|
|
219
|
+
return this.ej2Instances.removeSvg();
|
|
220
|
+
},
|
|
221
|
+
requiredModules: function () {
|
|
222
|
+
return this.ej2Instances.requiredModules();
|
|
223
|
+
},
|
|
224
|
+
show: function () {
|
|
225
|
+
return this.ej2Instances.show();
|
|
226
|
+
},
|
|
227
|
+
}
|
|
228
|
+
});
|
|
255
229
|
var ProgressBarPlugin = {
|
|
256
230
|
name: 'ejs-progressbar',
|
|
257
|
-
install: function (Vue
|
|
258
|
-
Vue
|
|
259
|
-
Vue
|
|
260
|
-
Vue
|
|
231
|
+
install: function (Vue) {
|
|
232
|
+
Vue.component(ProgressBarPlugin.name, ProgressBarComponent);
|
|
233
|
+
Vue.component(ProgressBarAnnotationPlugin.name, ProgressBarAnnotationDirective);
|
|
234
|
+
Vue.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);
|
|
235
|
+
Vue.component(RangeColorPlugin.name, RangeColorDirective);
|
|
236
|
+
Vue.component(RangeColorsPlugin.name, RangeColorsDirective);
|
|
261
237
|
}
|
|
262
238
|
};
|
|
263
239
|
|
|
264
|
-
export { ProgressBarAnnotationsDirective, ProgressBarAnnotationDirective, ProgressBarAnnotationsPlugin, ProgressBarAnnotationPlugin, ProgressBarComponent, ProgressBarPlugin };
|
|
240
|
+
export { ProgressBarAnnotationsDirective, ProgressBarAnnotationDirective, ProgressBarAnnotationsPlugin, ProgressBarAnnotationPlugin, RangeColorsDirective, RangeColorDirective, RangeColorsPlugin, RangeColorPlugin, ProgressBarComponent, ProgressBarPlugin };
|
|
265
241
|
export * from '@syncfusion/ej2-progressbar';
|
|
266
242
|
//# sourceMappingURL=ej2-vue-progressbar.es5.js.map
|