@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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
### ProgressBar
|
|
6
|
+
|
|
7
|
+
#### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- `#F180771` - The progress bar range color issue has been resolved.
|
|
10
|
+
|
|
11
|
+
## 21.1.35 (2023-03-23)
|
|
12
|
+
|
|
13
|
+
### ProgressBar
|
|
14
|
+
|
|
15
|
+
#### New Features
|
|
16
|
+
|
|
17
|
+
- `#I386691` - Provided support to display tooltips during initial load of progress bars and mouse hover with numeric or text values of the progress.
|
|
18
|
+
- Provided support to customize the width and color of the secondary progress bar.
|
|
19
|
+
|
|
5
20
|
## 20.4.38 (2022-12-21)
|
|
6
21
|
|
|
7
22
|
### ProgressBar
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-vue-progressbar.umd.min.js
|
|
3
|
-
* version :
|
|
3
|
+
* version : 21.1.37
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
7
|
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
8
|
* applicable laws.
|
|
9
9
|
*/
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-progressbar"),require("
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-progressbar"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-progressbar","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t(e.ej={},e.ej2Progressbar,e.ej2VueBase,e.ej2Base)}(this,function(e,t,n,s){"use strict";var o=n.vueDefineComponent({inject:{custom:{default:null}},render:function(e){if(!n.isExecute){var t=n.isExecute?e:n.gh,o=null;return s.isNullOrUndefined(this.$slots.default)||(o=n.isExecute?this.$slots.default:this.$slots.default()),t("div",{class:"e-directive"},o)}},updated:function(){!n.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-progressbar-annotations"}}}),r={name:"e-progressbar-annotations",install:function(e){e.component(r.name,o)}},i=n.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-progressbar-annotation"}}}),a={name:"e-progressbar-annotation",install:function(e){e.component(a.name,i)}},u=n.vueDefineComponent({inject:{custom:{default:null}},render:function(e){if(!n.isExecute){var t=n.isExecute?e:n.gh,o=null;return s.isNullOrUndefined(this.$slots.default)||(o=n.isExecute?this.$slots.default:this.$slots.default()),t("div",{class:"e-directive"},o)}},updated:function(){!n.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-rangecolors"}}}),c={name:"e-rangecolors",install:function(e){e.component(c.name,u)}},l=n.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-rangecolor"}}}),d={name:"e-rangecolor",install:function(e){e.component(d.name,l)}},m=["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"],p=[],g=n.getProps({props:m}),h=g[0],f=g[1],v=Object.keys(f);v.push("modelchanged","update:modelValue");for(var j=0,P=p;j<P.length;j++){var C=P[j];v.push("update:"+C)}var b=n.vueDefineComponent({name:"ProgressBarComponent",mixins:[n.ComponentBase],props:h,watch:f,emits:v,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new t.ProgressBar({}),propKeys:m,models:p,hasChildDirective:!0,hasInjectedModules:!0,tagMapper:{"e-progressbar-annotations":"e-progressbar-annotation","e-rangecolors":"e-rangecolor"},tagNameMapper:{"e-progressbar-annotations":"e-annotations","e-rangecolors":"e-rangeColors"},isVue3:!n.isExecute,templateCollection:{}}},created:function(){this.bindProperties(),this.ej2Instances._setProperties=this.ej2Instances.setProperties,this.ej2Instances.setProperties=this.setProperties,this.ej2Instances.clearTemplate=this.clearTemplate,this.updated=this.updated},render:function(e){var t=n.isExecute?e:n.gh,o=null;return s.isNullOrUndefined(this.$slots.default)||(o=n.isExecute?this.$slots.default:this.$slots.default()),t("div",o)},methods:{clearTemplate:function(e){if(e||(e=Object.keys(this.templateCollection||{})),e.length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var o=n[t],r=this.templateCollection[o];if(r&&r.length){for(var i=0,a=r;i<a.length;i++){var u=a[i];s.getValue("__vue__.$destroy",u)&&u.__vue__.$destroy(),u.innerHTML&&(u.innerHTML="")}delete this.templateCollection[o]}}},setProperties:function(e,t){var n=this;this.isVue3&&(this.models=this.models?this.models:this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&this.models.length&&Object.keys(e).map(function(t){n.models.map(function(s){t!==s||/datasource/i.test(t)||(n.isVue3?n.ej2Instances.vueInstance.$emit("update:"+t,e[t]):(n.$emit("update:"+t,e[t]),n.$emit("modelchanged",e[t])))})})},custom:function(){this.updated()},calculateProgressRange:function(e,t,n){return this.ej2Instances.calculateProgressRange(e,t,n)},calculateSegmentSize:function(e,t){return this.ej2Instances.calculateSegmentSize(e,t)},createClipPath:function(e,t,n,s,o,r,i){return this.ej2Instances.createClipPath(e,t,n,s,o,r,i)},getPathLine:function(e,t,n){return this.ej2Instances.getPathLine(e,t,n)},hide:function(){return this.ej2Instances.hide()},removeSvg:function(){return this.ej2Instances.removeSvg()},requiredModules:function(){return this.ej2Instances.requiredModules()},show:function(){return this.ej2Instances.show()}}}),y={name:"ejs-progressbar",install:function(e){e.component(y.name,b),e.component(a.name,i),e.component(r.name,o),e.component(d.name,l),e.component(c.name,u)}};e.ProgressBarAnnotationsDirective=o,e.ProgressBarAnnotationDirective=i,e.ProgressBarAnnotationsPlugin=r,e.ProgressBarAnnotationPlugin=a,e.RangeColorsDirective=u,e.RangeColorDirective=l,e.RangeColorsPlugin=c,e.RangeColorPlugin=d,e.ProgressBarComponent=b,e.ProgressBarPlugin=y,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
|
|
11
11
|
//# sourceMappingURL=ej2-vue-progressbar.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-vue-progressbar.umd.min.js","sources":["../vue2/src/progressbar/annotations.directive.js","../vue2/src/progressbar/progressbar.component.js"],"sourcesContent":["var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __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 Vue from 'vue';\nimport { EJComponentDecorator } from '@syncfusion/ej2-vue-base';\nvar ProgressBarAnnotationsDirective = /** @class */ (function (_super) {\n __extends(ProgressBarAnnotationsDirective, _super);\n function ProgressBarAnnotationsDirective() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n ProgressBarAnnotationsDirective.prototype.render = function () {\n return;\n };\n ProgressBarAnnotationsDirective = __decorate([\n EJComponentDecorator({})\n ], ProgressBarAnnotationsDirective);\n return ProgressBarAnnotationsDirective;\n}(Vue));\nexport { ProgressBarAnnotationsDirective };\nexport var ProgressBarAnnotationsPlugin = {\n name: 'e-progressbar-annotations',\n install: function (Vue) {\n Vue.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);\n }\n};\nvar ProgressBarAnnotationDirective = /** @class */ (function (_super) {\n __extends(ProgressBarAnnotationDirective, _super);\n function ProgressBarAnnotationDirective() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n ProgressBarAnnotationDirective.prototype.render = function () {\n return;\n };\n ProgressBarAnnotationDirective = __decorate([\n EJComponentDecorator({})\n ], ProgressBarAnnotationDirective);\n return ProgressBarAnnotationDirective;\n}(Vue));\nexport { ProgressBarAnnotationDirective };\nexport var ProgressBarAnnotationPlugin = {\n name: 'e-progressbar-annotation',\n install: function (Vue) {\n Vue.component(ProgressBarAnnotationPlugin.name, ProgressBarAnnotationDirective);\n }\n};\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __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 } from '@syncfusion/ej2-vue-base';\nimport { getValue } from '@syncfusion/ej2-base';\nimport { ProgressBar } from '@syncfusion/ej2-progressbar';\nimport { ProgressBarAnnotationsDirective, ProgressBarAnnotationDirective, ProgressBarAnnotationsPlugin, ProgressBarAnnotationPlugin } from './annotations.directive';\nexport 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'];\nexport var modelProps = [];\n/**\n * Represents Vuejs ProgressBar Component\n * ```vue\n * <ejs-progressbar></ejs-progressbar>\n * ```\n */\nvar ProgressBarComponent = /** @class */ (function (_super) {\n __extends(ProgressBarComponent, _super);\n function ProgressBarComponent() {\n var _this = _super.call(this, arguments) || this;\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.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 return _this;\n }\n ProgressBarComponent.prototype.clearTemplate = function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var 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 ProgressBarComponent.prototype.setProperties = function (prop, muteOnChange) {\n var _this = this;\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(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n _this.$emit('update:' + key, prop[key]);\n }\n });\n });\n }\n };\n ProgressBarComponent.prototype.render = function (createElement) {\n return createElement('div', this.$slots.default);\n };\n ProgressBarComponent.prototype.custom = function () {\n this.updated();\n };\n ProgressBarComponent.prototype.calculateProgressRange = function (value, minimum, maximum) {\n return this.ej2Instances.calculateProgressRange(value, minimum, maximum);\n };\n ProgressBarComponent.prototype.calculateSegmentSize = function (width, thickness) {\n return this.ej2Instances.calculateSegmentSize(width, thickness);\n };\n ProgressBarComponent.prototype.createClipPath = function (clipPath, range, d, refresh, thickness, isLabel, isMaximum) {\n return this.ej2Instances.createClipPath(clipPath, range, d, refresh, thickness, isLabel, isMaximum);\n };\n ProgressBarComponent.prototype.getPathLine = function (x, width, thickness) {\n return this.ej2Instances.getPathLine(x, width, thickness);\n };\n ProgressBarComponent.prototype.hide = function () {\n return this.ej2Instances.hide();\n };\n ProgressBarComponent.prototype.removeSvg = function () {\n return this.ej2Instances.removeSvg();\n };\n ProgressBarComponent.prototype.requiredModules = function () {\n return this.ej2Instances.requiredModules();\n };\n ProgressBarComponent.prototype.show = function () {\n return this.ej2Instances.show();\n };\n ProgressBarComponent = __decorate([\n EJComponentDecorator({\n props: properties\n })\n ], ProgressBarComponent);\n return ProgressBarComponent;\n}(ComponentBase));\nexport { ProgressBarComponent };\nexport var ProgressBarPlugin = {\n name: 'ejs-progressbar',\n install: function (Vue) {\n Vue.component(ProgressBarPlugin.name, ProgressBarComponent);\n Vue.component(ProgressBarAnnotationPlugin.name, ProgressBarAnnotationDirective);\n Vue.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);\n }\n};\n"],"names":["__extends","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__","this","constructor","prototype","create","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","ProgressBarAnnotationsDirective","_super","apply","render","EJComponentDecorator","Vue","ProgressBarAnnotationsPlugin","name","install","component","ProgressBarAnnotationDirective","ProgressBarAnnotationPlugin","properties","modelProps","ProgressBarComponent","_this","call","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","e-progressbar-annotations","tagNameMapper","ej2Instances","ProgressBar","bindProperties","_setProperties","setProperties","clearTemplate","updated","templateNames","keys","templateCollection","_i","templateNames_1","tempName","elementCollection","_a","elementCollection_1","ele","getValue","__vue__","$destroy","innerHTML","prop","muteOnChange","map","model","test","$emit","createElement","$slots","default","custom","calculateProgressRange","value","minimum","maximum","calculateSegmentSize","width","thickness","createClipPath","clipPath","range","refresh","isLabel","isMaximum","getPathLine","x","hide","removeSvg","requiredModules","show","props","ComponentBase","ProgressBarPlugin"],"mappings":"weAAA,IAAIA,EAAwC,WACxC,IAAIC,EAAgB,SAAUC,EAAGC,GAI7B,OAHAF,EAAgBG,OAAOC,iBAChBC,wBAA2BC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAE5B,OAAO,SAAUD,EAAGC,GAEhB,SAASO,IAAOC,KAAKC,YAAcV,EADnCD,EAAcC,EAAGC,GAEjBD,EAAEW,UAAkB,OAANV,EAAaC,OAAOU,OAAOX,IAAMO,EAAGG,UAAYV,EAAEU,UAAW,IAAIH,IAV3C,GAaxCK,EAA0C,SAAUC,EAAYC,EAAQC,EAAKC,GAC7E,IAA2HjB,EAAvHkB,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE,EAAgBA,EAAOf,OAAOo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D,GAC9C,OAAOA,EAAc,MAAOrE,KAAKsE,OAAOC,UAE5CvC,EAAqB9B,UAAUsE,OAAS,WACpCxE,KAAKgD,WAEThB,EAAqB9B,UAAUuE,uBAAyB,SAAUC,EAAOC,EAASC,GAC9E,OAAO5E,KAAK0C,aAAa+B,uBAAuBC,EAAOC,EAASC,IAEpE5C,EAAqB9B,UAAU2E,qBAAuB,SAAUC,EAAOC,GACnE,OAAO/E,KAAK0C,aAAamC,qBAAqBC,EAAOC,IAEzD/C,EAAqB9B,UAAU8E,eAAiB,SAAUC,EAAUC,EAAO3F,EAAG4F,EAASJ,EAAWK,EAASC,GACvG,OAAOrF,KAAK0C,aAAasC,eAAeC,EAAUC,EAAO3F,EAAG4F,EAASJ,EAAWK,EAASC,IAE7FrD,EAAqB9B,UAAUoF,YAAc,SAAUC,EAAGT,EAAOC,GAC7D,OAAO/E,KAAK0C,aAAa4C,YAAYC,EAAGT,EAAOC,IAEnD/C,EAAqB9B,UAAUsF,KAAO,WAClC,OAAOxF,KAAK0C,aAAa8C,QAE7BxD,EAAqB9B,UAAUuF,UAAY,WACvC,OAAOzF,KAAK0C,aAAa+C,aAE7BzD,EAAqB9B,UAAUwF,gBAAkB,WAC7C,OAAO1F,KAAK0C,aAAagD,mBAE7B1D,EAAqB9B,UAAUyF,KAAO,WAClC,OAAO3F,KAAK0C,aAAaiD,QAE7B3D,EAAuB5B,GACnBkB,wBACIsE,MAAO9D,KAEZE,IAEL6D,iBAESC,GACPrE,KAAM,kBACNC,QAAS,SAAUH,GACfA,EAAII,UAAUmE,EAAkBrE,KAAMO,GACtCT,EAAII,UAAUE,EAA4BJ,KAAMG,GAChDL,EAAII,UAAUH,EAA6BC,KAAMP"}
|
|
1
|
+
{"version":3,"file":"ej2-vue-progressbar.umd.min.js","sources":["../src/progressbar/annotations.directive.js","../src/progressbar/rangecolors.directive.js","../src/progressbar/progressbar.component.js"],"sourcesContent":["import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nexport var ProgressBarAnnotationsDirective = vueDefineComponent({\n inject: { custom: { default: null } },\n render: function (createElement) {\n if (!isExecute) {\n var h = !isExecute ? gh : createElement;\n var 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: function () {\n if (!isExecute && this.custom) {\n this.custom();\n }\n },\n methods: {\n getTag: function () {\n return 'e-progressbar-annotations';\n }\n }\n});\nexport var ProgressBarAnnotationsPlugin = {\n name: 'e-progressbar-annotations',\n install: function (Vue) {\n Vue.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);\n }\n};\nexport var ProgressBarAnnotationDirective = vueDefineComponent({\n render: function () {\n return;\n },\n methods: {\n getTag: function () {\n return 'e-progressbar-annotation';\n }\n }\n});\nexport var ProgressBarAnnotationPlugin = {\n name: 'e-progressbar-annotation',\n install: function (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 var RangeColorsDirective = vueDefineComponent({\n inject: { custom: { default: null } },\n render: function (createElement) {\n if (!isExecute) {\n var h = !isExecute ? gh : createElement;\n var 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: function () {\n if (!isExecute && this.custom) {\n this.custom();\n }\n },\n methods: {\n getTag: function () {\n return 'e-rangecolors';\n }\n }\n});\nexport var RangeColorsPlugin = {\n name: 'e-rangecolors',\n install: function (Vue) {\n Vue.component(RangeColorsPlugin.name, RangeColorsDirective);\n }\n};\nexport var RangeColorDirective = vueDefineComponent({\n render: function () {\n return;\n },\n methods: {\n getTag: function () {\n return 'e-rangecolor';\n }\n }\n});\nexport var RangeColorPlugin = {\n name: 'e-rangecolor',\n install: function (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 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'];\nexport var modelProps = [];\nexport var testProp = getProps({ props: properties });\nexport var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {\n var props_1 = modelProps_1[_i];\n emitProbs.push('update:' + props_1);\n}\n/**\n * Represents Vuejs ProgressBar Component\n * ```vue\n * <ejs-progressbar></ejs-progressbar>\n * ```\n */\nexport var ProgressBarComponent = vueDefineComponent({\n name: 'ProgressBarComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function () { return { custom: this.custom }; },\n data: function () {\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: function () {\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: function (createElement) {\n var h = !isExecute ? gh : createElement;\n var 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: function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var 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: function (prop, muteOnChange) {\n var _this = this;\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(function (key) {\n _this.models.map(function (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: function () {\n this.updated();\n },\n calculateProgressRange: function (value, minimum, maximum) {\n return this.ej2Instances.calculateProgressRange(value, minimum, maximum);\n },\n calculateSegmentSize: function (width, thickness) {\n return this.ej2Instances.calculateSegmentSize(width, thickness);\n },\n createClipPath: function (clipPath, range, d, refresh, thickness, isLabel, isMaximum) {\n return this.ej2Instances.createClipPath(clipPath, range, d, refresh, thickness, isLabel, isMaximum);\n },\n getPathLine: function (x, width, thickness) {\n return this.ej2Instances.getPathLine(x, width, thickness);\n },\n hide: function () {\n return this.ej2Instances.hide();\n },\n removeSvg: function () {\n return this.ej2Instances.removeSvg();\n },\n requiredModules: function () {\n return this.ej2Instances.requiredModules();\n },\n show: function () {\n return this.ej2Instances.show();\n },\n }\n});\nexport var ProgressBarPlugin = {\n name: 'ejs-progressbar',\n install: function (Vue) {\n Vue.component(ProgressBarPlugin.name, ProgressBarComponent);\n Vue.component(ProgressBarAnnotationPlugin.name, ProgressBarAnnotationDirective);\n Vue.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);\n Vue.component(RangeColorPlugin.name, RangeColorDirective);\n Vue.component(RangeColorsPlugin.name, RangeColorsDirective);\n }\n};\n"],"names":["ProgressBarAnnotationsDirective","vueDefineComponent","inject","custom","default","render","createElement","isExecute","h","gh","slots","isNullOrUndefined","this","$slots","class","updated","methods","getTag","ProgressBarAnnotationsPlugin","name","install","Vue","component","ProgressBarAnnotationDirective","ProgressBarAnnotationPlugin","RangeColorsDirective","RangeColorsPlugin","RangeColorDirective","RangeColorPlugin","properties","modelProps","testProp","getProps","props","watch","emitProbs","Object","keys","push","_i","modelProps_1","length","props_1","ProgressBarComponent","mixins","ComponentBase","emits","provide","data","ej2Instances","ProgressBar","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","e-progressbar-annotations","e-rangecolors","tagNameMapper","isVue3","templateCollection","created","bindProperties","_setProperties","setProperties","clearTemplate","templateNames","templateNames_1","tempName","elementCollection","_a","elementCollection_1","ele","getValue","__vue__","$destroy","innerHTML","prop","muteOnChange","_this","referModels","map","key","model","test","vueInstance","$emit","calculateProgressRange","value","minimum","maximum","calculateSegmentSize","width","thickness","createClipPath","clipPath","range","d","refresh","isLabel","isMaximum","getPathLine","x","hide","removeSvg","requiredModules","show","ProgressBarPlugin"],"mappings":"8ZAEO,IAAIA,EAAkCC,sBACzCC,QAAUC,QAAUC,QAAS,OAC7BC,OAAQ,SAAUC,GACd,IAAKC,YAAW,CACZ,IAAIC,EAAKD,YAAiBD,EAALG,KACjBC,EAAQ,KAIZ,OAHKC,oBAAkBC,KAAKC,OAAOT,WAC/BM,EAASH,YAAoCK,KAAKC,OAAOT,QAApCQ,KAAKC,OAAOT,WAE9BI,EAAE,OAASM,MAAO,eAAiBJ,KAIlDK,QAAS,YACAR,aAAaK,KAAKT,QACnBS,KAAKT,UAGba,SACIC,OAAQ,WACJ,MAAO,gCAIRC,GACPC,KAAM,4BACNC,QAAS,SAAUC,GACfA,EAAIC,UAAUJ,EAA6BC,KAAMnB,KAG9CuB,EAAiCtB,sBACxCI,OAAQ,aAGRW,SACIC,OAAQ,WACJ,MAAO,+BAIRO,GACPL,KAAM,2BACNC,QAAS,SAAUC,GACfA,EAAIC,UAAUE,EAA4BL,KAAMI,KC3C7CE,EAAuBxB,sBAC9BC,QAAUC,QAAUC,QAAS,OAC7BC,OAAQ,SAAUC,GACd,IAAKC,YAAW,CACZ,IAAIC,EAAKD,YAAiBD,EAALG,KACjBC,EAAQ,KAIZ,OAHKC,oBAAkBC,KAAKC,OAAOT,WAC/BM,EAASH,YAAoCK,KAAKC,OAAOT,QAApCQ,KAAKC,OAAOT,WAE9BI,EAAE,OAASM,MAAO,eAAiBJ,KAIlDK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
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
-
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;
|
|
11
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12
|
-
};
|
|
13
|
-
// {{VueImport}}
|
|
14
|
-
let vueImport;
|
|
15
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
16
|
-
vueImport = Vue;
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
vueImport = Vue$1;
|
|
20
|
-
}
|
|
21
|
-
let ProgressBarAnnotationsDirective =
|
|
22
|
-
/* Start Options({
|
|
23
|
-
inject: {
|
|
24
|
-
custom: {
|
|
25
|
-
default: null
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}) End */
|
|
29
|
-
class ProgressBarAnnotationsDirective extends vueImport {
|
|
30
|
-
constructor() {
|
|
31
|
-
super(arguments);
|
|
32
|
-
}
|
|
5
|
+
let ProgressBarAnnotationsDirective = vueDefineComponent({
|
|
6
|
+
inject: { custom: { default: null } },
|
|
33
7
|
render(createElement) {
|
|
34
8
|
if (!isExecute) {
|
|
35
9
|
let h = !isExecute ? gh : createElement;
|
|
@@ -40,58 +14,89 @@ class ProgressBarAnnotationsDirective extends vueImport {
|
|
|
40
14
|
return h('div', { class: 'e-directive' }, slots);
|
|
41
15
|
}
|
|
42
16
|
return;
|
|
43
|
-
}
|
|
17
|
+
},
|
|
44
18
|
updated() {
|
|
45
19
|
if (!isExecute && this.custom) {
|
|
46
20
|
this.custom();
|
|
47
21
|
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
};
|
|
53
|
-
ProgressBarAnnotationsDirective = __decorate([
|
|
54
|
-
EJComponentDecorator({}, isExecute)
|
|
55
|
-
/* Start Options({
|
|
56
|
-
inject: {
|
|
57
|
-
custom: {
|
|
58
|
-
default: null
|
|
59
|
-
}
|
|
22
|
+
},
|
|
23
|
+
methods: {
|
|
24
|
+
getTag() {
|
|
25
|
+
return 'e-progressbar-annotations';
|
|
60
26
|
}
|
|
61
|
-
}
|
|
62
|
-
|
|
27
|
+
}
|
|
28
|
+
});
|
|
63
29
|
const ProgressBarAnnotationsPlugin = {
|
|
64
30
|
name: 'e-progressbar-annotations',
|
|
65
|
-
install(Vue
|
|
66
|
-
Vue
|
|
31
|
+
install(Vue) {
|
|
32
|
+
Vue.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);
|
|
67
33
|
}
|
|
68
34
|
};
|
|
69
|
-
let ProgressBarAnnotationDirective =
|
|
35
|
+
let ProgressBarAnnotationDirective = vueDefineComponent({
|
|
70
36
|
render() {
|
|
71
37
|
return;
|
|
38
|
+
},
|
|
39
|
+
methods: {
|
|
40
|
+
getTag() {
|
|
41
|
+
return 'e-progressbar-annotation';
|
|
42
|
+
}
|
|
72
43
|
}
|
|
73
|
-
|
|
74
|
-
return 'e-progressbar-annotation';
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
ProgressBarAnnotationDirective = __decorate([
|
|
78
|
-
EJComponentDecorator({}, isExecute)
|
|
79
|
-
], ProgressBarAnnotationDirective);
|
|
44
|
+
});
|
|
80
45
|
const ProgressBarAnnotationPlugin = {
|
|
81
46
|
name: 'e-progressbar-annotation',
|
|
82
|
-
install(Vue
|
|
83
|
-
Vue
|
|
47
|
+
install(Vue) {
|
|
48
|
+
Vue.component(ProgressBarAnnotationPlugin.name, ProgressBarAnnotationDirective);
|
|
84
49
|
}
|
|
85
50
|
};
|
|
86
51
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
52
|
+
let RangeColorsDirective = vueDefineComponent({
|
|
53
|
+
inject: { custom: { default: null } },
|
|
54
|
+
render(createElement) {
|
|
55
|
+
if (!isExecute) {
|
|
56
|
+
let h = !isExecute ? gh : createElement;
|
|
57
|
+
let 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() {
|
|
66
|
+
if (!isExecute && this.custom) {
|
|
67
|
+
this.custom();
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
methods: {
|
|
71
|
+
getTag() {
|
|
72
|
+
return 'e-rangecolors';
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
const RangeColorsPlugin = {
|
|
77
|
+
name: 'e-rangecolors',
|
|
78
|
+
install(Vue) {
|
|
79
|
+
Vue.component(RangeColorsPlugin.name, RangeColorsDirective);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
let RangeColorDirective = vueDefineComponent({
|
|
83
|
+
render() {
|
|
84
|
+
return;
|
|
85
|
+
},
|
|
86
|
+
methods: {
|
|
87
|
+
getTag() {
|
|
88
|
+
return 'e-rangecolor';
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
const RangeColorPlugin = {
|
|
93
|
+
name: 'e-rangecolor',
|
|
94
|
+
install(Vue) {
|
|
95
|
+
Vue.component(RangeColorPlugin.name, RangeColorDirective);
|
|
96
|
+
}
|
|
92
97
|
};
|
|
93
|
-
|
|
94
|
-
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'];
|
|
98
|
+
|
|
99
|
+
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'];
|
|
95
100
|
const modelProps = [];
|
|
96
101
|
const testProp = getProps({ props: properties });
|
|
97
102
|
const props = testProp[0];
|
|
@@ -107,79 +112,33 @@ for (let props of modelProps) {
|
|
|
107
112
|
* <ejs-progressbar></ejs-progressbar>
|
|
108
113
|
* ```
|
|
109
114
|
*/
|
|
110
|
-
let ProgressBarComponent =
|
|
111
|
-
|
|
115
|
+
let ProgressBarComponent = vueDefineComponent({
|
|
116
|
+
name: 'ProgressBarComponent',
|
|
117
|
+
mixins: [ComponentBase],
|
|
112
118
|
props: props,
|
|
113
119
|
watch: watch,
|
|
114
120
|
emits: emitProbs,
|
|
115
|
-
provide:
|
|
121
|
+
provide() { return { custom: this.custom }; },
|
|
122
|
+
data() {
|
|
116
123
|
return {
|
|
117
|
-
|
|
124
|
+
ej2Instances: new ProgressBar({}),
|
|
125
|
+
propKeys: properties,
|
|
126
|
+
models: modelProps,
|
|
127
|
+
hasChildDirective: true,
|
|
128
|
+
hasInjectedModules: true,
|
|
129
|
+
tagMapper: { "e-progressbar-annotations": "e-progressbar-annotation", "e-rangecolors": "e-rangecolor" },
|
|
130
|
+
tagNameMapper: { "e-progressbar-annotations": "e-annotations", "e-rangecolors": "e-rangeColors" },
|
|
131
|
+
isVue3: !isExecute,
|
|
132
|
+
templateCollection: {},
|
|
118
133
|
};
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
class ProgressBarComponent extends ComponentBase {
|
|
122
|
-
constructor() {
|
|
123
|
-
super(arguments);
|
|
124
|
-
this.propKeys = properties;
|
|
125
|
-
this.models = modelProps;
|
|
126
|
-
this.hasChildDirective = true;
|
|
127
|
-
this.hasInjectedModules = true;
|
|
128
|
-
this.tagMapper = { "e-progressbar-annotations": "e-progressbar-annotation" };
|
|
129
|
-
this.tagNameMapper = { "e-progressbar-annotations": "e-annotations" };
|
|
130
|
-
this.isVue3 = !isExecute;
|
|
131
|
-
this.ej2Instances = new ProgressBar({});
|
|
134
|
+
},
|
|
135
|
+
created() {
|
|
132
136
|
this.bindProperties();
|
|
133
137
|
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
134
138
|
this.ej2Instances.setProperties = this.setProperties;
|
|
135
139
|
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
136
140
|
this.updated = this.updated;
|
|
137
|
-
}
|
|
138
|
-
clearTemplate(templateNames) {
|
|
139
|
-
if (!templateNames) {
|
|
140
|
-
templateNames = Object.keys(this.templateCollection || {});
|
|
141
|
-
}
|
|
142
|
-
if (templateNames.length && this.templateCollection) {
|
|
143
|
-
for (let tempName of templateNames) {
|
|
144
|
-
let elementCollection = this.templateCollection[tempName];
|
|
145
|
-
if (elementCollection && elementCollection.length) {
|
|
146
|
-
for (let ele of elementCollection) {
|
|
147
|
-
let destroy = getValue('__vue__.$destroy', ele);
|
|
148
|
-
if (destroy) {
|
|
149
|
-
ele.__vue__.$destroy();
|
|
150
|
-
}
|
|
151
|
-
if (ele.innerHTML) {
|
|
152
|
-
ele.innerHTML = '';
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
delete this.templateCollection[tempName];
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
setProperties(prop, muteOnChange) {
|
|
161
|
-
if (this.isVue3) {
|
|
162
|
-
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
163
|
-
}
|
|
164
|
-
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
165
|
-
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
166
|
-
}
|
|
167
|
-
if (prop && this.models && this.models.length) {
|
|
168
|
-
Object.keys(prop).map((key) => {
|
|
169
|
-
this.models.map((model) => {
|
|
170
|
-
if ((key === model) && !(/datasource/i.test(key))) {
|
|
171
|
-
if (this.isVue3) {
|
|
172
|
-
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
this.$emit('update:' + key, prop[key]);
|
|
176
|
-
this.$emit('modelchanged', prop[key]);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
}
|
|
141
|
+
},
|
|
183
142
|
render(createElement) {
|
|
184
143
|
let h = !isExecute ? gh : createElement;
|
|
185
144
|
let slots = null;
|
|
@@ -187,59 +146,93 @@ class ProgressBarComponent extends ComponentBase {
|
|
|
187
146
|
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
188
147
|
}
|
|
189
148
|
return h('div', slots);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
149
|
+
},
|
|
150
|
+
methods: {
|
|
151
|
+
clearTemplate(templateNames) {
|
|
152
|
+
if (!templateNames) {
|
|
153
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
154
|
+
}
|
|
155
|
+
if (templateNames.length && this.templateCollection) {
|
|
156
|
+
for (let tempName of templateNames) {
|
|
157
|
+
let elementCollection = this.templateCollection[tempName];
|
|
158
|
+
if (elementCollection && elementCollection.length) {
|
|
159
|
+
for (let ele of elementCollection) {
|
|
160
|
+
let destroy = getValue('__vue__.$destroy', ele);
|
|
161
|
+
if (destroy) {
|
|
162
|
+
ele.__vue__.$destroy();
|
|
163
|
+
}
|
|
164
|
+
if (ele.innerHTML) {
|
|
165
|
+
ele.innerHTML = '';
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
delete this.templateCollection[tempName];
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
setProperties(prop, muteOnChange) {
|
|
174
|
+
if (this.isVue3) {
|
|
175
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
176
|
+
}
|
|
177
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
178
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
179
|
+
}
|
|
180
|
+
if (prop && this.models && this.models.length) {
|
|
181
|
+
Object.keys(prop).map((key) => {
|
|
182
|
+
this.models.map((model) => {
|
|
183
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
184
|
+
if (this.isVue3) {
|
|
185
|
+
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
this.$emit('update:' + key, prop[key]);
|
|
189
|
+
this.$emit('modelchanged', prop[key]);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
custom() {
|
|
197
|
+
this.updated();
|
|
198
|
+
},
|
|
199
|
+
calculateProgressRange(value, minimum, maximum) {
|
|
200
|
+
return this.ej2Instances.calculateProgressRange(value, minimum, maximum);
|
|
201
|
+
},
|
|
202
|
+
calculateSegmentSize(width, thickness) {
|
|
203
|
+
return this.ej2Instances.calculateSegmentSize(width, thickness);
|
|
204
|
+
},
|
|
205
|
+
createClipPath(clipPath, range, d, refresh, thickness, isLabel, isMaximum) {
|
|
206
|
+
return this.ej2Instances.createClipPath(clipPath, range, d, refresh, thickness, isLabel, isMaximum);
|
|
207
|
+
},
|
|
208
|
+
getPathLine(x, width, thickness) {
|
|
209
|
+
return this.ej2Instances.getPathLine(x, width, thickness);
|
|
210
|
+
},
|
|
211
|
+
hide() {
|
|
212
|
+
return this.ej2Instances.hide();
|
|
213
|
+
},
|
|
214
|
+
removeSvg() {
|
|
215
|
+
return this.ej2Instances.removeSvg();
|
|
216
|
+
},
|
|
217
|
+
requiredModules() {
|
|
218
|
+
return this.ej2Instances.requiredModules();
|
|
219
|
+
},
|
|
220
|
+
show() {
|
|
221
|
+
return this.ej2Instances.show();
|
|
222
|
+
},
|
|
223
|
+
}
|
|
224
|
+
});
|
|
234
225
|
const ProgressBarPlugin = {
|
|
235
226
|
name: 'ejs-progressbar',
|
|
236
|
-
install(Vue
|
|
237
|
-
Vue
|
|
238
|
-
Vue
|
|
239
|
-
Vue
|
|
227
|
+
install(Vue) {
|
|
228
|
+
Vue.component(ProgressBarPlugin.name, ProgressBarComponent);
|
|
229
|
+
Vue.component(ProgressBarAnnotationPlugin.name, ProgressBarAnnotationDirective);
|
|
230
|
+
Vue.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);
|
|
231
|
+
Vue.component(RangeColorPlugin.name, RangeColorDirective);
|
|
232
|
+
Vue.component(RangeColorsPlugin.name, RangeColorsDirective);
|
|
240
233
|
}
|
|
241
234
|
};
|
|
242
235
|
|
|
243
|
-
export { ProgressBarAnnotationsDirective, ProgressBarAnnotationDirective, ProgressBarAnnotationsPlugin, ProgressBarAnnotationPlugin, ProgressBarComponent, ProgressBarPlugin };
|
|
236
|
+
export { ProgressBarAnnotationsDirective, ProgressBarAnnotationDirective, ProgressBarAnnotationsPlugin, ProgressBarAnnotationPlugin, RangeColorsDirective, RangeColorDirective, RangeColorsPlugin, RangeColorPlugin, ProgressBarComponent, ProgressBarPlugin };
|
|
244
237
|
export * from '@syncfusion/ej2-progressbar';
|
|
245
238
|
//# sourceMappingURL=ej2-vue-progressbar.es2015.js.map
|