@syncfusion/ej2-vue-inputs 19.2.55 → 19.3.44

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.
Files changed (86) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/ej2-vue-inputs.umd.min.js +10 -1
  3. package/dist/es6/ej2-vue-inputs.es2015.js +171 -17
  4. package/dist/es6/ej2-vue-inputs.es2015.js.map +1 -1
  5. package/dist/es6/ej2-vue-inputs.es5.js +183 -17
  6. package/dist/es6/ej2-vue-inputs.es5.js.map +1 -1
  7. package/dist/global/ej2-vue-inputs.min.js +2 -2
  8. package/package.json +8 -8
  9. package/src/color-picker/colorpicker.component.d.ts +2 -0
  10. package/src/color-picker/colorpicker.component.js +32 -4
  11. package/src/maskedtextbox/maskedtextbox.component.d.ts +2 -0
  12. package/src/maskedtextbox/maskedtextbox.component.js +32 -4
  13. package/src/numerictextbox/numerictextbox.component.d.ts +2 -0
  14. package/src/numerictextbox/numerictextbox.component.js +32 -4
  15. package/src/slider/slider.component.d.ts +2 -0
  16. package/src/slider/slider.component.js +32 -4
  17. package/src/textbox/textbox.component.d.ts +2 -0
  18. package/src/textbox/textbox.component.js +32 -4
  19. package/src/uploader/uploader.component.d.ts +2 -0
  20. package/src/uploader/uploader.component.js +28 -2
  21. package/styles/bootstrap-dark.css +14 -6
  22. package/styles/bootstrap.css +14 -6
  23. package/styles/bootstrap4.css +22 -12
  24. package/styles/bootstrap5-dark.css +7548 -0
  25. package/styles/bootstrap5-dark.scss +7 -0
  26. package/styles/bootstrap5.css +7548 -0
  27. package/styles/bootstrap5.scss +7 -0
  28. package/styles/color-picker/bootstrap5-dark.css +964 -0
  29. package/styles/color-picker/bootstrap5-dark.scss +1 -0
  30. package/styles/color-picker/bootstrap5.css +964 -0
  31. package/styles/color-picker/bootstrap5.scss +1 -0
  32. package/styles/fabric-dark.css +15 -7
  33. package/styles/fabric.css +15 -7
  34. package/styles/highcontrast-light.css +15 -7
  35. package/styles/highcontrast.css +16 -8
  36. package/styles/input/bootstrap-dark.css +12 -3
  37. package/styles/input/bootstrap.css +12 -3
  38. package/styles/input/bootstrap4.css +15 -3
  39. package/styles/input/bootstrap5-dark.css +4670 -0
  40. package/styles/input/bootstrap5-dark.scss +1 -0
  41. package/styles/input/bootstrap5.css +4670 -0
  42. package/styles/input/bootstrap5.scss +1 -0
  43. package/styles/input/fabric-dark.css +12 -3
  44. package/styles/input/fabric.css +13 -4
  45. package/styles/input/highcontrast-light.css +12 -3
  46. package/styles/input/highcontrast.css +13 -4
  47. package/styles/input/material-dark.css +2320 -201
  48. package/styles/input/material.css +12 -3
  49. package/styles/input/tailwind-dark.css +14 -5
  50. package/styles/input/tailwind.css +14 -5
  51. package/styles/maskedtextbox/bootstrap5-dark.css +33 -0
  52. package/styles/maskedtextbox/bootstrap5-dark.scss +1 -0
  53. package/styles/maskedtextbox/bootstrap5.css +33 -0
  54. package/styles/maskedtextbox/bootstrap5.scss +1 -0
  55. package/styles/material-dark.css +2337 -218
  56. package/styles/material.css +14 -5
  57. package/styles/numerictextbox/bootstrap5-dark.css +48 -0
  58. package/styles/numerictextbox/bootstrap5-dark.scss +1 -0
  59. package/styles/numerictextbox/bootstrap5.css +48 -0
  60. package/styles/numerictextbox/bootstrap5.scss +1 -0
  61. package/styles/slider/bootstrap-dark.css +2 -3
  62. package/styles/slider/bootstrap.css +2 -3
  63. package/styles/slider/bootstrap4.css +7 -9
  64. package/styles/slider/bootstrap5-dark.css +749 -0
  65. package/styles/slider/bootstrap5-dark.scss +1 -0
  66. package/styles/slider/bootstrap5.css +749 -0
  67. package/styles/slider/bootstrap5.scss +1 -0
  68. package/styles/slider/fabric-dark.css +3 -4
  69. package/styles/slider/fabric.css +2 -3
  70. package/styles/slider/highcontrast-light.css +3 -4
  71. package/styles/slider/highcontrast.css +3 -4
  72. package/styles/slider/material-dark.css +16 -16
  73. package/styles/slider/material.css +2 -2
  74. package/styles/slider/tailwind-dark.css +9 -8
  75. package/styles/slider/tailwind.css +7 -3
  76. package/styles/tailwind-dark.css +23 -13
  77. package/styles/tailwind.css +21 -8
  78. package/styles/textbox/bootstrap5-dark.css +0 -0
  79. package/styles/textbox/bootstrap5-dark.scss +1 -0
  80. package/styles/textbox/bootstrap5.css +0 -0
  81. package/styles/textbox/bootstrap5.scss +1 -0
  82. package/styles/uploader/bootstrap5-dark.css +1079 -0
  83. package/styles/uploader/bootstrap5-dark.scss +1 -0
  84. package/styles/uploader/bootstrap5.css +1079 -0
  85. package/styles/uploader/bootstrap5.scss +1 -0
  86. package/styles/uploader/material-dark.css +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ColorPicker, MaskedTextBox, NumericTextBox, Slider, TextBox, Uploader } from '@syncfusion/ej2-inputs';
2
- import { isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
2
+ import { getValue, isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
3
3
  import { ComponentBase, EJComponentDecorator, allVue, getProps, gh } from '@syncfusion/ej2-vue-base';
4
4
  import { Vue } from 'vue-class-component';
5
5
  import Vue$1 from 'vue';
@@ -24,7 +24,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
24
24
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25
25
  };
26
26
  import { Options } from 'vue-class-component';
27
- var properties = ['autocomplete', 'cssClass', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'htmlAttributes', 'locale', 'multiline', 'placeholder', 'readonly', 'showClearButton', 'type', 'value', 'width', 'blur', 'change', 'created', 'destroyed', 'focus', 'input'];
27
+ var properties = ['islazyUpdate', 'autocomplete', 'cssClass', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'htmlAttributes', 'locale', 'multiline', 'placeholder', 'readonly', 'showClearButton', 'type', 'value', 'width', 'blur', 'change', 'created', 'destroyed', 'focus', 'input'];
28
28
  var modelProps = ['value'];
29
29
  var testProp = getProps({ props: properties });
30
30
  var props = testProp[0];
@@ -59,8 +59,33 @@ var TextBoxComponent = /** @__PURE__ @class */ (function (_super) {
59
59
  _this.bindProperties();
60
60
  _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
61
61
  _this.ej2Instances.setProperties = _this.setProperties;
62
+ _this.ej2Instances.clearTemplate = _this.clearTemplate;
62
63
  return _this;
63
64
  }
65
+ TextBoxComponent.prototype.clearTemplate = function (templateNames) {
66
+ if (!templateNames) {
67
+ templateNames = Object.keys(this.templateCollection || {});
68
+ }
69
+ if (templateNames.length && this.templateCollection) {
70
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
71
+ var tempName = templateNames_1[_i];
72
+ var elementCollection = this.templateCollection[tempName];
73
+ if (elementCollection && elementCollection.length) {
74
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
75
+ var ele = elementCollection_1[_a];
76
+ var destroy = getValue('__vue__.$destroy', ele);
77
+ if (destroy) {
78
+ ele.__vue__.$destroy();
79
+ }
80
+ if (ele.innerHTML) {
81
+ ele.innerHTML = '';
82
+ }
83
+ }
84
+ delete this.templateCollection[tempName];
85
+ }
86
+ }
87
+ }
88
+ };
64
89
  TextBoxComponent.prototype.setProperties = function (prop, muteOnChange) {
65
90
  var _this = this;
66
91
  if (this.isVue3) {
@@ -78,6 +103,7 @@ var TextBoxComponent = /** @__PURE__ @class */ (function (_super) {
78
103
  }
79
104
  else {
80
105
  _this.$emit('update:' + key, prop[key]);
106
+ _this.$emit('modelchanged', prop[key]);
81
107
  }
82
108
  }
83
109
  });
@@ -97,8 +123,10 @@ var TextBoxComponent = /** @__PURE__ @class */ (function (_super) {
97
123
  this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
98
124
  }
99
125
  else {
100
- this.$emit('update:' + propKey, eventProp[propKey]);
101
- this.$emit('modelchanged', eventProp[propKey]);
126
+ if (eventName === 'change' || (this.$props && !this.$props.islazyUpdate)) {
127
+ this.$emit('update:' + propKey, eventProp[propKey]);
128
+ this.$emit('modelchanged', eventProp[propKey]);
129
+ }
102
130
  }
103
131
  }
104
132
  }
@@ -185,7 +213,7 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
185
213
  return c > 3 && r && Object.defineProperty(target, key, r), r;
186
214
  };
187
215
  // {{VueImport}}
188
- var properties$1 = ['cssClass', 'currency', 'currencyCode', 'decimals', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'format', 'htmlAttributes', 'locale', 'max', 'min', 'placeholder', 'readonly', 'showClearButton', 'showSpinButton', 'step', 'strictMode', 'validateDecimalOnType', 'value', 'width', 'blur', 'change', 'created', 'destroyed', 'focus'];
216
+ var properties$1 = ['islazyUpdate', 'cssClass', 'currency', 'currencyCode', 'decimals', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'format', 'htmlAttributes', 'locale', 'max', 'min', 'placeholder', 'readonly', 'showClearButton', 'showSpinButton', 'step', 'strictMode', 'validateDecimalOnType', 'value', 'width', 'blur', 'change', 'created', 'destroyed', 'focus'];
189
217
  var modelProps$1 = ['value'];
190
218
  var testProp$1 = getProps({ props: properties$1 });
191
219
  var props$1 = testProp$1[0];
@@ -220,8 +248,33 @@ var NumericTextBoxComponent = /** @__PURE__ @class */ (function (_super) {
220
248
  _this.bindProperties();
221
249
  _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
222
250
  _this.ej2Instances.setProperties = _this.setProperties;
251
+ _this.ej2Instances.clearTemplate = _this.clearTemplate;
223
252
  return _this;
224
253
  }
254
+ NumericTextBoxComponent.prototype.clearTemplate = function (templateNames) {
255
+ if (!templateNames) {
256
+ templateNames = Object.keys(this.templateCollection || {});
257
+ }
258
+ if (templateNames.length && this.templateCollection) {
259
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
260
+ var tempName = templateNames_1[_i];
261
+ var elementCollection = this.templateCollection[tempName];
262
+ if (elementCollection && elementCollection.length) {
263
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
264
+ var ele = elementCollection_1[_a];
265
+ var destroy = getValue('__vue__.$destroy', ele);
266
+ if (destroy) {
267
+ ele.__vue__.$destroy();
268
+ }
269
+ if (ele.innerHTML) {
270
+ ele.innerHTML = '';
271
+ }
272
+ }
273
+ delete this.templateCollection[tempName];
274
+ }
275
+ }
276
+ }
277
+ };
225
278
  NumericTextBoxComponent.prototype.setProperties = function (prop, muteOnChange) {
226
279
  var _this = this;
227
280
  if (this.isVue3) {
@@ -239,6 +292,7 @@ var NumericTextBoxComponent = /** @__PURE__ @class */ (function (_super) {
239
292
  }
240
293
  else {
241
294
  _this.$emit('update:' + key, prop[key]);
295
+ _this.$emit('modelchanged', prop[key]);
242
296
  }
243
297
  }
244
298
  });
@@ -258,8 +312,10 @@ var NumericTextBoxComponent = /** @__PURE__ @class */ (function (_super) {
258
312
  this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
259
313
  }
260
314
  else {
261
- this.$emit('update:' + propKey, eventProp[propKey]);
262
- this.$emit('modelchanged', eventProp[propKey]);
315
+ if (eventName === 'change' || (this.$props && !this.$props.islazyUpdate)) {
316
+ this.$emit('update:' + propKey, eventProp[propKey]);
317
+ this.$emit('modelchanged', eventProp[propKey]);
318
+ }
263
319
  }
264
320
  }
265
321
  }
@@ -346,7 +402,7 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
346
402
  return c > 3 && r && Object.defineProperty(target, key, r), r;
347
403
  };
348
404
  // {{VueImport}}
349
- var properties$2 = ['cssClass', 'customCharacters', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'htmlAttributes', 'locale', 'mask', 'placeholder', 'promptChar', 'readonly', 'showClearButton', 'value', 'width', 'blur', 'change', 'created', 'destroyed', 'focus'];
405
+ var properties$2 = ['islazyUpdate', 'cssClass', 'customCharacters', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'htmlAttributes', 'locale', 'mask', 'placeholder', 'promptChar', 'readonly', 'showClearButton', 'value', 'width', 'blur', 'change', 'created', 'destroyed', 'focus'];
350
406
  var modelProps$2 = ['value'];
351
407
  var testProp$2 = getProps({ props: properties$2 });
352
408
  var props$2 = testProp$2[0];
@@ -381,8 +437,33 @@ var MaskedTextBoxComponent = /** @__PURE__ @class */ (function (_super) {
381
437
  _this.bindProperties();
382
438
  _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
383
439
  _this.ej2Instances.setProperties = _this.setProperties;
440
+ _this.ej2Instances.clearTemplate = _this.clearTemplate;
384
441
  return _this;
385
442
  }
443
+ MaskedTextBoxComponent.prototype.clearTemplate = function (templateNames) {
444
+ if (!templateNames) {
445
+ templateNames = Object.keys(this.templateCollection || {});
446
+ }
447
+ if (templateNames.length && this.templateCollection) {
448
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
449
+ var tempName = templateNames_1[_i];
450
+ var elementCollection = this.templateCollection[tempName];
451
+ if (elementCollection && elementCollection.length) {
452
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
453
+ var ele = elementCollection_1[_a];
454
+ var destroy = getValue('__vue__.$destroy', ele);
455
+ if (destroy) {
456
+ ele.__vue__.$destroy();
457
+ }
458
+ if (ele.innerHTML) {
459
+ ele.innerHTML = '';
460
+ }
461
+ }
462
+ delete this.templateCollection[tempName];
463
+ }
464
+ }
465
+ }
466
+ };
386
467
  MaskedTextBoxComponent.prototype.setProperties = function (prop, muteOnChange) {
387
468
  var _this = this;
388
469
  if (this.isVue3) {
@@ -400,6 +481,7 @@ var MaskedTextBoxComponent = /** @__PURE__ @class */ (function (_super) {
400
481
  }
401
482
  else {
402
483
  _this.$emit('update:' + key, prop[key]);
484
+ _this.$emit('modelchanged', prop[key]);
403
485
  }
404
486
  }
405
487
  });
@@ -419,8 +501,10 @@ var MaskedTextBoxComponent = /** @__PURE__ @class */ (function (_super) {
419
501
  this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
420
502
  }
421
503
  else {
422
- this.$emit('update:' + propKey, eventProp[propKey]);
423
- this.$emit('modelchanged', eventProp[propKey]);
504
+ if (eventName === 'change' || (this.$props && !this.$props.islazyUpdate)) {
505
+ this.$emit('update:' + propKey, eventProp[propKey]);
506
+ this.$emit('modelchanged', eventProp[propKey]);
507
+ }
424
508
  }
425
509
  }
426
510
  }
@@ -501,7 +585,7 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
501
585
  return c > 3 && r && Object.defineProperty(target, key, r), r;
502
586
  };
503
587
  // {{VueImport}}
504
- var properties$3 = ['colorRange', 'cssClass', 'customValues', 'enableAnimation', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enabled', 'limits', 'locale', 'max', 'min', 'orientation', 'readonly', 'showButtons', 'step', 'ticks', 'tooltip', 'type', 'value', 'width', 'change', 'changed', 'created', 'renderedTicks', 'renderingTicks', 'tooltipChange'];
588
+ var properties$3 = ['islazyUpdate', 'colorRange', 'cssClass', 'customValues', 'enableAnimation', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enabled', 'limits', 'locale', 'max', 'min', 'orientation', 'readonly', 'showButtons', 'step', 'ticks', 'tooltip', 'type', 'value', 'width', 'change', 'changed', 'created', 'renderedTicks', 'renderingTicks', 'tooltipChange'];
505
589
  var modelProps$3 = ['value'];
506
590
  var testProp$3 = getProps({ props: properties$3 });
507
591
  var props$3 = testProp$3[0];
@@ -536,8 +620,33 @@ var SliderComponent = /** @__PURE__ @class */ (function (_super) {
536
620
  _this.bindProperties();
537
621
  _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
538
622
  _this.ej2Instances.setProperties = _this.setProperties;
623
+ _this.ej2Instances.clearTemplate = _this.clearTemplate;
539
624
  return _this;
540
625
  }
626
+ SliderComponent.prototype.clearTemplate = function (templateNames) {
627
+ if (!templateNames) {
628
+ templateNames = Object.keys(this.templateCollection || {});
629
+ }
630
+ if (templateNames.length && this.templateCollection) {
631
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
632
+ var tempName = templateNames_1[_i];
633
+ var elementCollection = this.templateCollection[tempName];
634
+ if (elementCollection && elementCollection.length) {
635
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
636
+ var ele = elementCollection_1[_a];
637
+ var destroy = getValue('__vue__.$destroy', ele);
638
+ if (destroy) {
639
+ ele.__vue__.$destroy();
640
+ }
641
+ if (ele.innerHTML) {
642
+ ele.innerHTML = '';
643
+ }
644
+ }
645
+ delete this.templateCollection[tempName];
646
+ }
647
+ }
648
+ }
649
+ };
541
650
  SliderComponent.prototype.setProperties = function (prop, muteOnChange) {
542
651
  var _this = this;
543
652
  if (this.isVue3) {
@@ -555,6 +664,7 @@ var SliderComponent = /** @__PURE__ @class */ (function (_super) {
555
664
  }
556
665
  else {
557
666
  _this.$emit('update:' + key, prop[key]);
667
+ _this.$emit('modelchanged', prop[key]);
558
668
  }
559
669
  }
560
670
  });
@@ -574,8 +684,10 @@ var SliderComponent = /** @__PURE__ @class */ (function (_super) {
574
684
  this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
575
685
  }
576
686
  else {
577
- this.$emit('update:' + propKey, eventProp[propKey]);
578
- this.$emit('modelchanged', eventProp[propKey]);
687
+ if (eventName === 'change' || (this.$props && !this.$props.islazyUpdate)) {
688
+ this.$emit('update:' + propKey, eventProp[propKey]);
689
+ this.$emit('modelchanged', eventProp[propKey]);
690
+ }
579
691
  }
580
692
  }
581
693
  }
@@ -737,7 +849,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
737
849
  return c > 3 && r && Object.defineProperty(target, key, r), r;
738
850
  };
739
851
  // {{VueImport}}
740
- var properties$4 = ['allowedExtensions', 'asyncSettings', 'autoUpload', 'buttons', 'cssClass', 'directoryUpload', 'dropArea', 'dropEffect', 'enablePersistence', 'enableRtl', 'enabled', 'files', 'htmlAttributes', 'locale', 'maxFileSize', 'minFileSize', 'multiple', 'sequentialUpload', 'showFileList', 'template', 'actionComplete', 'beforeRemove', 'beforeUpload', 'canceling', 'change', 'chunkFailure', 'chunkSuccess', 'chunkUploading', 'clearing', 'created', 'failure', 'fileListRendering', 'pausing', 'progress', 'removing', 'rendering', 'resuming', 'selected', 'success', 'uploading'];
852
+ var properties$4 = ['islazyUpdate', 'allowedExtensions', 'asyncSettings', 'autoUpload', 'buttons', 'cssClass', 'directoryUpload', 'dropArea', 'dropEffect', 'enablePersistence', 'enableRtl', 'enabled', 'files', 'htmlAttributes', 'locale', 'maxFileSize', 'minFileSize', 'multiple', 'sequentialUpload', 'showFileList', 'template', 'actionComplete', 'beforeRemove', 'beforeUpload', 'canceling', 'change', 'chunkFailure', 'chunkSuccess', 'chunkUploading', 'clearing', 'created', 'failure', 'fileListRendering', 'pausing', 'progress', 'removing', 'rendering', 'resuming', 'selected', 'success', 'uploading'];
741
853
  var modelProps$4 = [];
742
854
  var testProp$4 = getProps({ props: properties$4 });
743
855
  var props$4 = testProp$4[0];
@@ -770,8 +882,33 @@ var UploaderComponent = /** @__PURE__ @class */ (function (_super) {
770
882
  _this.bindProperties();
771
883
  _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
772
884
  _this.ej2Instances.setProperties = _this.setProperties;
885
+ _this.ej2Instances.clearTemplate = _this.clearTemplate;
773
886
  return _this;
774
887
  }
888
+ UploaderComponent.prototype.clearTemplate = function (templateNames) {
889
+ if (!templateNames) {
890
+ templateNames = Object.keys(this.templateCollection || {});
891
+ }
892
+ if (templateNames.length && this.templateCollection) {
893
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
894
+ var tempName = templateNames_1[_i];
895
+ var elementCollection = this.templateCollection[tempName];
896
+ if (elementCollection && elementCollection.length) {
897
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
898
+ var ele = elementCollection_1[_a];
899
+ var destroy = getValue('__vue__.$destroy', ele);
900
+ if (destroy) {
901
+ ele.__vue__.$destroy();
902
+ }
903
+ if (ele.innerHTML) {
904
+ ele.innerHTML = '';
905
+ }
906
+ }
907
+ delete this.templateCollection[tempName];
908
+ }
909
+ }
910
+ }
911
+ };
775
912
  UploaderComponent.prototype.setProperties = function (prop, muteOnChange) {
776
913
  var _this = this;
777
914
  if (this.isVue3) {
@@ -789,6 +926,7 @@ var UploaderComponent = /** @__PURE__ @class */ (function (_super) {
789
926
  }
790
927
  else {
791
928
  _this.$emit('update:' + key, prop[key]);
929
+ _this.$emit('modelchanged', prop[key]);
792
930
  }
793
931
  }
794
932
  });
@@ -880,7 +1018,7 @@ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators,
880
1018
  return c > 3 && r && Object.defineProperty(target, key, r), r;
881
1019
  };
882
1020
  // {{VueImport}}
883
- var properties$5 = ['columns', 'cssClass', 'disabled', 'enableOpacity', 'enablePersistence', 'enableRtl', 'inline', 'locale', 'mode', 'modeSwitcher', 'noColor', 'presetColors', 'showButtons', 'value', 'beforeClose', 'beforeModeSwitch', 'beforeOpen', 'beforeTileRender', 'change', 'created', 'onModeSwitch', 'open', 'select'];
1021
+ var properties$5 = ['islazyUpdate', 'columns', 'cssClass', 'disabled', 'enableOpacity', 'enablePersistence', 'enableRtl', 'inline', 'locale', 'mode', 'modeSwitcher', 'noColor', 'presetColors', 'showButtons', 'value', 'beforeClose', 'beforeModeSwitch', 'beforeOpen', 'beforeTileRender', 'change', 'created', 'onModeSwitch', 'open', 'select'];
884
1022
  var modelProps$5 = ['value'];
885
1023
  var testProp$5 = getProps({ props: properties$5 });
886
1024
  var props$5 = testProp$5[0];
@@ -915,8 +1053,33 @@ var ColorPickerComponent = /** @__PURE__ @class */ (function (_super) {
915
1053
  _this.bindProperties();
916
1054
  _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
917
1055
  _this.ej2Instances.setProperties = _this.setProperties;
1056
+ _this.ej2Instances.clearTemplate = _this.clearTemplate;
918
1057
  return _this;
919
1058
  }
1059
+ ColorPickerComponent.prototype.clearTemplate = function (templateNames) {
1060
+ if (!templateNames) {
1061
+ templateNames = Object.keys(this.templateCollection || {});
1062
+ }
1063
+ if (templateNames.length && this.templateCollection) {
1064
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
1065
+ var tempName = templateNames_1[_i];
1066
+ var elementCollection = this.templateCollection[tempName];
1067
+ if (elementCollection && elementCollection.length) {
1068
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
1069
+ var ele = elementCollection_1[_a];
1070
+ var destroy = getValue('__vue__.$destroy', ele);
1071
+ if (destroy) {
1072
+ ele.__vue__.$destroy();
1073
+ }
1074
+ if (ele.innerHTML) {
1075
+ ele.innerHTML = '';
1076
+ }
1077
+ }
1078
+ delete this.templateCollection[tempName];
1079
+ }
1080
+ }
1081
+ }
1082
+ };
920
1083
  ColorPickerComponent.prototype.setProperties = function (prop, muteOnChange) {
921
1084
  var _this = this;
922
1085
  if (this.isVue3) {
@@ -934,6 +1097,7 @@ var ColorPickerComponent = /** @__PURE__ @class */ (function (_super) {
934
1097
  }
935
1098
  else {
936
1099
  _this.$emit('update:' + key, prop[key]);
1100
+ _this.$emit('modelchanged', prop[key]);
937
1101
  }
938
1102
  }
939
1103
  });
@@ -953,8 +1117,10 @@ var ColorPickerComponent = /** @__PURE__ @class */ (function (_super) {
953
1117
  this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
954
1118
  }
955
1119
  else {
956
- this.$emit('update:' + propKey, eventProp[propKey]);
957
- this.$emit('modelchanged', eventProp[propKey]);
1120
+ if (eventName === 'change' || (this.$props && !this.$props.islazyUpdate)) {
1121
+ this.$emit('update:' + propKey, eventProp[propKey]);
1122
+ this.$emit('modelchanged', eventProp[propKey]);
1123
+ }
958
1124
  }
959
1125
  }
960
1126
  }