@syncfusion/ej2-vue-progressbar 20.4.48 → 21.1.35

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ### ProgressBar
6
+
7
+ #### New Features
8
+
9
+ - `#I386691` - Provided support to display tooltips during initial load of progress bars and mouse hover with numeric or text values of the progress.
10
+ - Provided support to customize the width and color of the secondary progress bar.
11
+
5
12
  ## 20.4.38 (2022-12-21)
6
13
 
7
14
  ### ProgressBar
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * filename: ej2-vue-progressbar.umd.min.js
3
- * version : 20.4.48
3
+ * version : 21.1.35
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("vue"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-progressbar","vue","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t(e.ej={},e.ej2Progressbar,e.Vue,e.ej2VueBase,e.ej2Base)}(this,function(e,t,n,o,r){"use strict";n=n&&n.hasOwnProperty("default")?n.default:n;var s=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),a=function(e,t,n,o){var r,s=arguments.length,a=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(a=(s<3?r(a):s>3?r(t,n,a):r(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a},i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){},t=a([o.EJComponentDecorator({})],t)}(n),c={name:"e-progressbar-annotations",install:function(e){e.component(c.name,i)}},u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){},t=a([o.EJComponentDecorator({})],t)}(n),p={name:"e-progressbar-annotation",install:function(e){e.component(p.name,u)}},l=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),f=function(e,t,n,o){var r,s=arguments.length,a=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(a=(s<3?r(a):s>3?r(t,n,a):r(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a},d=["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"],h=[],g=function(e){function n(){var n=e.call(this,arguments)||this;return n.propKeys=d,n.models=h,n.hasChildDirective=!0,n.hasInjectedModules=!0,n.tagMapper={"e-progressbar-annotations":"e-progressbar-annotation"},n.tagNameMapper={"e-progressbar-annotations":"e-annotations"},n.ej2Instances=new t.ProgressBar({}),n.bindProperties(),n.ej2Instances._setProperties=n.ej2Instances.setProperties,n.ej2Instances.setProperties=n.setProperties,n.ej2Instances.clearTemplate=n.clearTemplate,n.updated=n.updated,n}return l(n,e),n.prototype.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],s=this.templateCollection[o];if(s&&s.length){for(var a=0,i=s;a<i.length;a++){var c=i[a];r.getValue("__vue__.$destroy",c)&&c.__vue__.$destroy(),c.innerHTML&&(c.innerHTML="")}delete this.templateCollection[o]}}},n.prototype.setProperties=function(e,t){var n=this;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(o){t!==o||/datasource/i.test(t)||n.$emit("update:"+t,e[t])})})},n.prototype.render=function(e){return e("div",this.$slots.default)},n.prototype.custom=function(){this.updated()},n.prototype.calculateProgressRange=function(e,t,n){return this.ej2Instances.calculateProgressRange(e,t,n)},n.prototype.calculateSegmentSize=function(e,t){return this.ej2Instances.calculateSegmentSize(e,t)},n.prototype.createClipPath=function(e,t,n,o,r,s,a){return this.ej2Instances.createClipPath(e,t,n,o,r,s,a)},n.prototype.getPathLine=function(e,t,n){return this.ej2Instances.getPathLine(e,t,n)},n.prototype.hide=function(){return this.ej2Instances.hide()},n.prototype.removeSvg=function(){return this.ej2Instances.removeSvg()},n.prototype.requiredModules=function(){return this.ej2Instances.requiredModules()},n.prototype.show=function(){return this.ej2Instances.show()},n=f([o.EJComponentDecorator({props:d})],n)}(o.ComponentBase),m={name:"ejs-progressbar",install:function(e){e.component(m.name,g),e.component(p.name,u),e.component(c.name,i)}};e.ProgressBarAnnotationsDirective=i,e.ProgressBarAnnotationDirective=u,e.ProgressBarAnnotationsPlugin=c,e.ProgressBarAnnotationPlugin=p,e.ProgressBarComponent=g,e.ProgressBarPlugin=m,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
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,s,n){"use strict";var o=s.vueDefineComponent({inject:{custom:{default:null}},render:function(e){if(!s.isExecute){var t=s.isExecute?e:s.gh,o=null;return n.isNullOrUndefined(this.$slots.default)||(o=s.isExecute?this.$slots.default:this.$slots.default()),t("div",{class:"e-directive"},o)}},updated:function(){!s.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=s.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-progressbar-annotation"}}}),a={name:"e-progressbar-annotation",install:function(e){e.component(a.name,i)}},u=["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"],c=[],l=s.getProps({props:u}),d=l[0],p=l[1],m=Object.keys(p);m.push("modelchanged","update:modelValue");for(var h=0,g=c;h<g.length;h++){var f=g[h];m.push("update:"+f)}var j=s.vueDefineComponent({name:"ProgressBarComponent",mixins:[s.ComponentBase],props:d,watch:p,emits:m,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new t.ProgressBar({}),propKeys:u,models:c,hasChildDirective:!0,hasInjectedModules:!0,tagMapper:{"e-progressbar-annotations":"e-progressbar-annotation"},tagNameMapper:{"e-progressbar-annotations":"e-annotations"},isVue3:!s.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=s.isExecute?e:s.gh,o=null;return n.isNullOrUndefined(this.$slots.default)||(o=s.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,s=e;t<s.length;t++){var o=s[t],r=this.templateCollection[o];if(r&&r.length){for(var i=0,a=r;i<a.length;i++){var u=a[i];n.getValue("__vue__.$destroy",u)&&u.__vue__.$destroy(),u.innerHTML&&(u.innerHTML="")}delete this.templateCollection[o]}}},setProperties:function(e,t){var s=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){s.models.map(function(n){t!==n||/datasource/i.test(t)||(s.isVue3?s.ej2Instances.vueInstance.$emit("update:"+t,e[t]):(s.$emit("update:"+t,e[t]),s.$emit("modelchanged",e[t])))})})},custom:function(){this.updated()},calculateProgressRange:function(e,t,s){return this.ej2Instances.calculateProgressRange(e,t,s)},calculateSegmentSize:function(e,t){return this.ej2Instances.calculateSegmentSize(e,t)},createClipPath:function(e,t,s,n,o,r,i){return this.ej2Instances.createClipPath(e,t,s,n,o,r,i)},getPathLine:function(e,t,s){return this.ej2Instances.getPathLine(e,t,s)},hide:function(){return this.ej2Instances.hide()},removeSvg:function(){return this.ej2Instances.removeSvg()},requiredModules:function(){return this.ej2Instances.requiredModules()},show:function(){return this.ej2Instances.show()}}}),v={name:"ejs-progressbar",install:function(e){e.component(v.name,j),e.component(a.name,i),e.component(r.name,o)}};e.ProgressBarAnnotationsDirective=o,e.ProgressBarAnnotationDirective=i,e.ProgressBarAnnotationsPlugin=r,e.ProgressBarAnnotationPlugin=a,e.ProgressBarComponent=j,e.ProgressBarPlugin=v,Object.keys(t).forEach(function(s){e[s]=t[s]}),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,iB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,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/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 { 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';\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\" },\n tagNameMapper: { \"e-progressbar-annotations\": \"e-annotations\" },\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 }\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","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","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,SAA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C,KAAMnB"}
@@ -1,35 +1,9 @@
1
1
  import { ProgressBar } from '@syncfusion/ej2-progressbar';
2
- import { ComponentBase, EJComponentDecorator, allVue, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
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 __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
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,42 @@ 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
- getTag() {
50
- return 'e-progressbar-annotations';
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
- }) End */
62
- ], ProgressBarAnnotationsDirective);
27
+ }
28
+ });
63
29
  const ProgressBarAnnotationsPlugin = {
64
30
  name: 'e-progressbar-annotations',
65
- install(Vue$$1) {
66
- Vue$$1.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);
31
+ install(Vue) {
32
+ Vue.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);
67
33
  }
68
34
  };
69
- let ProgressBarAnnotationDirective = class ProgressBarAnnotationDirective extends vueImport {
35
+ let ProgressBarAnnotationDirective = vueDefineComponent({
70
36
  render() {
71
37
  return;
38
+ },
39
+ methods: {
40
+ getTag() {
41
+ return 'e-progressbar-annotation';
42
+ }
72
43
  }
73
- getTag() {
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$$1) {
83
- Vue$$1.component(ProgressBarAnnotationPlugin.name, ProgressBarAnnotationDirective);
47
+ install(Vue) {
48
+ Vue.component(ProgressBarAnnotationPlugin.name, ProgressBarAnnotationDirective);
84
49
  }
85
50
  };
86
51
 
87
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
88
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
89
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
90
- 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;
91
- return c > 3 && r && Object.defineProperty(target, key, r), r;
92
- };
93
- // {{VueImport}}
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'];
52
+ 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
53
  const modelProps = [];
96
54
  const testProp = getProps({ props: properties });
97
55
  const props = testProp[0];
@@ -107,79 +65,33 @@ for (let props of modelProps) {
107
65
  * <ejs-progressbar></ejs-progressbar>
108
66
  * ```
109
67
  */
110
- let ProgressBarComponent =
111
- /* Start Options({
68
+ let ProgressBarComponent = vueDefineComponent({
69
+ name: 'ProgressBarComponent',
70
+ mixins: [ComponentBase],
112
71
  props: props,
113
72
  watch: watch,
114
73
  emits: emitProbs,
115
- provide: function provide() {
74
+ provide() { return { custom: this.custom }; },
75
+ data() {
116
76
  return {
117
- custom: this.custom
77
+ ej2Instances: new ProgressBar({}),
78
+ propKeys: properties,
79
+ models: modelProps,
80
+ hasChildDirective: true,
81
+ hasInjectedModules: true,
82
+ tagMapper: { "e-progressbar-annotations": "e-progressbar-annotation" },
83
+ tagNameMapper: { "e-progressbar-annotations": "e-annotations" },
84
+ isVue3: !isExecute,
85
+ templateCollection: {},
118
86
  };
119
- }
120
- }) End */
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({});
87
+ },
88
+ created() {
132
89
  this.bindProperties();
133
90
  this.ej2Instances._setProperties = this.ej2Instances.setProperties;
134
91
  this.ej2Instances.setProperties = this.setProperties;
135
92
  this.ej2Instances.clearTemplate = this.clearTemplate;
136
93
  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
- }
94
+ },
183
95
  render(createElement) {
184
96
  let h = !isExecute ? gh : createElement;
185
97
  let slots = null;
@@ -187,56 +99,88 @@ class ProgressBarComponent extends ComponentBase {
187
99
  slots = !isExecute ? this.$slots.default() : this.$slots.default;
188
100
  }
189
101
  return h('div', slots);
190
- }
191
- custom() {
192
- this.updated();
193
- }
194
- calculateProgressRange(value, minimum, maximum) {
195
- return this.ej2Instances.calculateProgressRange(value, minimum, maximum);
196
- }
197
- calculateSegmentSize(width, thickness) {
198
- return this.ej2Instances.calculateSegmentSize(width, thickness);
199
- }
200
- createClipPath(clipPath, range, d, refresh, thickness, isLabel, isMaximum) {
201
- return this.ej2Instances.createClipPath(clipPath, range, d, refresh, thickness, isLabel, isMaximum);
202
- }
203
- getPathLine(x, width, thickness) {
204
- return this.ej2Instances.getPathLine(x, width, thickness);
205
- }
206
- hide() {
207
- return this.ej2Instances.hide();
208
- }
209
- removeSvg() {
210
- return this.ej2Instances.removeSvg();
211
- }
212
- requiredModules() {
213
- return this.ej2Instances.requiredModules();
214
- }
215
- show() {
216
- return this.ej2Instances.show();
217
- }
218
- };
219
- ProgressBarComponent = __decorate$1([
220
- EJComponentDecorator({
221
- props: properties
222
- }, isExecute)
223
- /* Start Options({
224
- props: props,
225
- watch: watch,
226
- emits: emitProbs,
227
- provide: function provide() {
228
- return {
229
- custom: this.custom
230
- };
231
- }
232
- }) End */
233
- ], ProgressBarComponent);
102
+ },
103
+ methods: {
104
+ clearTemplate(templateNames) {
105
+ if (!templateNames) {
106
+ templateNames = Object.keys(this.templateCollection || {});
107
+ }
108
+ if (templateNames.length && this.templateCollection) {
109
+ for (let tempName of templateNames) {
110
+ let elementCollection = this.templateCollection[tempName];
111
+ if (elementCollection && elementCollection.length) {
112
+ for (let ele of elementCollection) {
113
+ let destroy = getValue('__vue__.$destroy', ele);
114
+ if (destroy) {
115
+ ele.__vue__.$destroy();
116
+ }
117
+ if (ele.innerHTML) {
118
+ ele.innerHTML = '';
119
+ }
120
+ }
121
+ delete this.templateCollection[tempName];
122
+ }
123
+ }
124
+ }
125
+ },
126
+ setProperties(prop, muteOnChange) {
127
+ if (this.isVue3) {
128
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
129
+ }
130
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
131
+ this.ej2Instances._setProperties(prop, muteOnChange);
132
+ }
133
+ if (prop && this.models && this.models.length) {
134
+ Object.keys(prop).map((key) => {
135
+ this.models.map((model) => {
136
+ if ((key === model) && !(/datasource/i.test(key))) {
137
+ if (this.isVue3) {
138
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
139
+ }
140
+ else {
141
+ this.$emit('update:' + key, prop[key]);
142
+ this.$emit('modelchanged', prop[key]);
143
+ }
144
+ }
145
+ });
146
+ });
147
+ }
148
+ },
149
+ custom() {
150
+ this.updated();
151
+ },
152
+ calculateProgressRange(value, minimum, maximum) {
153
+ return this.ej2Instances.calculateProgressRange(value, minimum, maximum);
154
+ },
155
+ calculateSegmentSize(width, thickness) {
156
+ return this.ej2Instances.calculateSegmentSize(width, thickness);
157
+ },
158
+ createClipPath(clipPath, range, d, refresh, thickness, isLabel, isMaximum) {
159
+ return this.ej2Instances.createClipPath(clipPath, range, d, refresh, thickness, isLabel, isMaximum);
160
+ },
161
+ getPathLine(x, width, thickness) {
162
+ return this.ej2Instances.getPathLine(x, width, thickness);
163
+ },
164
+ hide() {
165
+ return this.ej2Instances.hide();
166
+ },
167
+ removeSvg() {
168
+ return this.ej2Instances.removeSvg();
169
+ },
170
+ requiredModules() {
171
+ return this.ej2Instances.requiredModules();
172
+ },
173
+ show() {
174
+ return this.ej2Instances.show();
175
+ },
176
+ }
177
+ });
234
178
  const ProgressBarPlugin = {
235
179
  name: 'ejs-progressbar',
236
- install(Vue$$1) {
237
- Vue$$1.component(ProgressBarPlugin.name, ProgressBarComponent);
238
- Vue$$1.component(ProgressBarAnnotationPlugin.name, ProgressBarAnnotationDirective);
239
- Vue$$1.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);
180
+ install(Vue) {
181
+ Vue.component(ProgressBarPlugin.name, ProgressBarComponent);
182
+ Vue.component(ProgressBarAnnotationPlugin.name, ProgressBarAnnotationDirective);
183
+ Vue.component(ProgressBarAnnotationsPlugin.name, ProgressBarAnnotationsDirective);
240
184
  }
241
185
  };
242
186
 
@@ -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,CAAC;SAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,EAA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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/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 { 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';\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\" },\n tagNameMapper: { \"e-progressbar-annotations\": \"e-annotations\" },\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 }\n};\n"],"names":[],"mappings":";;;;AAEO,IAAI,+BAA+B,GAAG,kBAAkB,CAAC;IAC5D,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACrC,MAAM,CAAC,aAAa,EAAE;QAClB,IAAI,CAAC,SAAS,EAAE;YACZ,IAAI,CAAC,GAAG,CAAC,SAAS,GAAG,EAAE,GAAG,aAAa,CAAC;YACxC,IAAI,KAAK,GAAG,IAAI,CAAC;YACjB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;gBACzC,KAAK,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;aACpE;YACD,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,KAAK,CAAC,CAAC;SACpD;QACD,OAAO;KACV;IACD,OAAO,GAAG;QACN,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE;YAC3B,IAAI,CAAC,MAAM,EAAE,CAAC;SACjB;KACJ;IACD,OAAO,EAAE;QACL,MAAM,GAAG;YACL,OAAO,2BAA2B,CAAC;SACtC;KACJ;CACJ,CAAC,CAAC;AACH,AAAO,MAAM,4BAA4B,GAAG;IACxC,IAAI,EAAE,2BAA2B;IACjC,OAAO,CAAC,GAAG,EAAE;QACT,GAAG,CAAC,SAAS,CAAC,4BAA4B,CAAC,IAAI,EAAE,+BAA+B,CAAC,CAAC;KACr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