@syncfusion/ej2-vue-progressbar 19.2.55 → 19.4.38

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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-vue-progressbar@*",
3
- "_id": "@syncfusion/ej2-vue-progressbar@18.3.0",
3
+ "_id": "@syncfusion/ej2-vue-progressbar@18.10.0",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-mnT5Komy3T/8AnDFbTqrPwksH8EOezpILjghlG4j4nzdEklDeOKK7He1Q+rwvrGZVjJUiKemSh7y0HlqUZ87tw==",
5
+ "_integrity": "sha512-AcTs6zmyLPhpWhjuhEMCYxy37t7dn5yqa9oSDa/f7CJCO5plVJdH+qG1sWiylbozyCF75K33F8F+WXRs3iM8rA==",
6
6
  "_location": "/@syncfusion/ej2-vue-progressbar",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,8 +19,8 @@
19
19
  "_requiredBy": [
20
20
  "/"
21
21
  ],
22
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-vue-progressbar/-/ej2-vue-progressbar-18.3.0.tgz",
23
- "_shasum": "5e18618a9e8cef6c0277cd4551482718ec2ab321",
22
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-vue-progressbar/-/ej2-vue-progressbar-18.10.0.tgz",
23
+ "_shasum": "011769563f4e031fe283836e14f9327780b50613",
24
24
  "_spec": "@syncfusion/ej2-vue-progressbar@*",
25
25
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
26
26
  "author": {
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "bundleDependencies": false,
33
33
  "dependencies": {
34
- "@syncfusion/ej2-base": "~19.2.55",
35
- "@syncfusion/ej2-progressbar": "19.2.55",
36
- "@syncfusion/ej2-vue-base": "~19.2.55"
34
+ "@syncfusion/ej2-base": "~19.4.38",
35
+ "@syncfusion/ej2-progressbar": "19.4.38",
36
+ "@syncfusion/ej2-vue-base": "~19.4.38"
37
37
  },
38
38
  "deprecated": false,
39
39
  "description": "Essential JS 2 ProgressBar Component for Vue",
@@ -64,6 +64,6 @@
64
64
  "type": "git",
65
65
  "url": "git+https://github.com/syncfusion/ej2-vue-ui-components.git"
66
66
  },
67
- "version": "19.2.55",
67
+ "version": "19.4.38",
68
68
  "sideEffects": false
69
69
  }
@@ -23,7 +23,9 @@ export declare class ProgressBarComponent extends ComponentBase {
23
23
  };
24
24
  tagNameMapper: Object;
25
25
  isVue3: boolean;
26
+ templateCollection: any;
26
27
  constructor();
28
+ clearTemplate(templateNames?: string[]): any;
27
29
  setProperties(prop: any, muteOnChange: boolean): void;
28
30
  render(createElement: any): any;
29
31
  calculateProgressRange(value: number, minimum?: number, maximum?: number): number;
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
20
  import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
21
- import { isNullOrUndefined } from '@syncfusion/ej2-base';
21
+ import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
22
22
  import { ProgressBar } from '@syncfusion/ej2-progressbar';
23
23
  import { ProgressBarAnnotationsDirective, ProgressBarAnnotationDirective, ProgressBarAnnotationsPlugin, ProgressBarAnnotationPlugin } from './annotations.directive';
24
24
  import { Options } from 'vue-class-component';
@@ -55,8 +55,33 @@ var ProgressBarComponent = /** @class */ (function (_super) {
55
55
  _this.bindProperties();
56
56
  _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
57
57
  _this.ej2Instances.setProperties = _this.setProperties;
58
+ _this.ej2Instances.clearTemplate = _this.clearTemplate;
58
59
  return _this;
59
60
  }
61
+ ProgressBarComponent.prototype.clearTemplate = function (templateNames) {
62
+ if (!templateNames) {
63
+ templateNames = Object.keys(this.templateCollection || {});
64
+ }
65
+ if (templateNames.length && this.templateCollection) {
66
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
67
+ var tempName = templateNames_1[_i];
68
+ var elementCollection = this.templateCollection[tempName];
69
+ if (elementCollection && elementCollection.length) {
70
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
71
+ var ele = elementCollection_1[_a];
72
+ var destroy = getValue('__vue__.$destroy', ele);
73
+ if (destroy) {
74
+ ele.__vue__.$destroy();
75
+ }
76
+ if (ele.innerHTML) {
77
+ ele.innerHTML = '';
78
+ }
79
+ }
80
+ delete this.templateCollection[tempName];
81
+ }
82
+ }
83
+ }
84
+ };
60
85
  ProgressBarComponent.prototype.setProperties = function (prop, muteOnChange) {
61
86
  var _this = this;
62
87
  if (this.isVue3) {
@@ -74,6 +99,7 @@ var ProgressBarComponent = /** @class */ (function (_super) {
74
99
  }
75
100
  else {
76
101
  _this.$emit('update:' + key, prop[key]);
102
+ _this.$emit('modelchanged', prop[key]);
77
103
  }
78
104
  }
79
105
  });