@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
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ### NumericTextBox
6
+
7
+ #### Bug Fixes
8
+
9
+ - `#I319166` - Issue with "lazy modifier not working" has been resolved.
10
+
11
+ ## 19.2.59 (2021-08-31)
12
+
13
+ ### Uploader
14
+
15
+ #### Bug Fixes
16
+
17
+ - `#F165287` - Issue with "files are not uploaded in the sequential upload while retrying the failed duplicate files" has been resolved.
18
+
5
19
  ## 19.2.48 (2021-07-20)
6
20
 
7
21
  ### Range Slider
@@ -1,6 +1,15 @@
1
1
  /*!
2
2
  * filename: ej2-vue-inputs.umd.min.js
3
- * version : 19.2.55
3
+ * version : 19.3.44
4
+ * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
+ * Use of this code is subject to the terms of our license.
6
+ * A copy of the current license can be obtained at any time by e-mailing
7
+ * licensing@syncfusion.com. Any infringement will be prosecuted under
8
+ * applicable laws.
9
+ */
10
+ /*!
11
+ * filename: ej2-vue-inputs.umd.min.js
12
+ * version : 19.3.43
4
13
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
14
  * Use of this code is subject to the terms of our license.
6
15
  * A copy of the current license can be obtained at any time by e-mailing
@@ -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';
@@ -11,7 +11,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
11
11
  return c > 3 && r && Object.defineProperty(target, key, r), r;
12
12
  };
13
13
  // {{VueImport}}
14
- const properties = ['autocomplete', 'cssClass', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'htmlAttributes', 'locale', 'multiline', 'placeholder', 'readonly', 'showClearButton', 'type', 'value', 'width', 'blur', 'change', 'created', 'destroyed', 'focus', 'input'];
14
+ const properties = ['islazyUpdate', 'autocomplete', 'cssClass', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'htmlAttributes', 'locale', 'multiline', 'placeholder', 'readonly', 'showClearButton', 'type', 'value', 'width', 'blur', 'change', 'created', 'destroyed', 'focus', 'input'];
15
15
  const modelProps = ['value'];
16
16
  const testProp = getProps({ props: properties });
17
17
  const props = testProp[0];
@@ -50,6 +50,29 @@ class TextBoxComponent extends ComponentBase {
50
50
  this.bindProperties();
51
51
  this.ej2Instances._setProperties = this.ej2Instances.setProperties;
52
52
  this.ej2Instances.setProperties = this.setProperties;
53
+ this.ej2Instances.clearTemplate = this.clearTemplate;
54
+ }
55
+ clearTemplate(templateNames) {
56
+ if (!templateNames) {
57
+ templateNames = Object.keys(this.templateCollection || {});
58
+ }
59
+ if (templateNames.length && this.templateCollection) {
60
+ for (let tempName of templateNames) {
61
+ let elementCollection = this.templateCollection[tempName];
62
+ if (elementCollection && elementCollection.length) {
63
+ for (let ele of elementCollection) {
64
+ let destroy = getValue('__vue__.$destroy', ele);
65
+ if (destroy) {
66
+ ele.__vue__.$destroy();
67
+ }
68
+ if (ele.innerHTML) {
69
+ ele.innerHTML = '';
70
+ }
71
+ }
72
+ delete this.templateCollection[tempName];
73
+ }
74
+ }
75
+ }
53
76
  }
54
77
  setProperties(prop, muteOnChange) {
55
78
  if (this.isVue3) {
@@ -67,6 +90,7 @@ class TextBoxComponent extends ComponentBase {
67
90
  }
68
91
  else {
69
92
  this.$emit('update:' + key, prop[key]);
93
+ this.$emit('modelchanged', prop[key]);
70
94
  }
71
95
  }
72
96
  });
@@ -86,8 +110,10 @@ class TextBoxComponent extends ComponentBase {
86
110
  this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
87
111
  }
88
112
  else {
89
- this.$emit('update:' + propKey, eventProp[propKey]);
90
- this.$emit('modelchanged', eventProp[propKey]);
113
+ if (eventName === 'change' || (this.$props && !this.$props.islazyUpdate)) {
114
+ this.$emit('update:' + propKey, eventProp[propKey]);
115
+ this.$emit('modelchanged', eventProp[propKey]);
116
+ }
91
117
  }
92
118
  }
93
119
  }
@@ -160,7 +186,7 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
160
186
  return c > 3 && r && Object.defineProperty(target, key, r), r;
161
187
  };
162
188
  // {{VueImport}}
163
- const 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'];
189
+ const 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'];
164
190
  const modelProps$1 = ['value'];
165
191
  const testProp$1 = getProps({ props: properties$1 });
166
192
  const props$1 = testProp$1[0];
@@ -199,6 +225,29 @@ class NumericTextBoxComponent extends ComponentBase {
199
225
  this.bindProperties();
200
226
  this.ej2Instances._setProperties = this.ej2Instances.setProperties;
201
227
  this.ej2Instances.setProperties = this.setProperties;
228
+ this.ej2Instances.clearTemplate = this.clearTemplate;
229
+ }
230
+ clearTemplate(templateNames) {
231
+ if (!templateNames) {
232
+ templateNames = Object.keys(this.templateCollection || {});
233
+ }
234
+ if (templateNames.length && this.templateCollection) {
235
+ for (let tempName of templateNames) {
236
+ let elementCollection = this.templateCollection[tempName];
237
+ if (elementCollection && elementCollection.length) {
238
+ for (let ele of elementCollection) {
239
+ let destroy = getValue('__vue__.$destroy', ele);
240
+ if (destroy) {
241
+ ele.__vue__.$destroy();
242
+ }
243
+ if (ele.innerHTML) {
244
+ ele.innerHTML = '';
245
+ }
246
+ }
247
+ delete this.templateCollection[tempName];
248
+ }
249
+ }
250
+ }
202
251
  }
203
252
  setProperties(prop, muteOnChange) {
204
253
  if (this.isVue3) {
@@ -216,6 +265,7 @@ class NumericTextBoxComponent extends ComponentBase {
216
265
  }
217
266
  else {
218
267
  this.$emit('update:' + key, prop[key]);
268
+ this.$emit('modelchanged', prop[key]);
219
269
  }
220
270
  }
221
271
  });
@@ -235,8 +285,10 @@ class NumericTextBoxComponent extends ComponentBase {
235
285
  this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
236
286
  }
237
287
  else {
238
- this.$emit('update:' + propKey, eventProp[propKey]);
239
- this.$emit('modelchanged', eventProp[propKey]);
288
+ if (eventName === 'change' || (this.$props && !this.$props.islazyUpdate)) {
289
+ this.$emit('update:' + propKey, eventProp[propKey]);
290
+ this.$emit('modelchanged', eventProp[propKey]);
291
+ }
240
292
  }
241
293
  }
242
294
  }
@@ -309,7 +361,7 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
309
361
  return c > 3 && r && Object.defineProperty(target, key, r), r;
310
362
  };
311
363
  // {{VueImport}}
312
- const properties$2 = ['cssClass', 'customCharacters', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'htmlAttributes', 'locale', 'mask', 'placeholder', 'promptChar', 'readonly', 'showClearButton', 'value', 'width', 'blur', 'change', 'created', 'destroyed', 'focus'];
364
+ const properties$2 = ['islazyUpdate', 'cssClass', 'customCharacters', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'htmlAttributes', 'locale', 'mask', 'placeholder', 'promptChar', 'readonly', 'showClearButton', 'value', 'width', 'blur', 'change', 'created', 'destroyed', 'focus'];
313
365
  const modelProps$2 = ['value'];
314
366
  const testProp$2 = getProps({ props: properties$2 });
315
367
  const props$2 = testProp$2[0];
@@ -348,6 +400,29 @@ class MaskedTextBoxComponent extends ComponentBase {
348
400
  this.bindProperties();
349
401
  this.ej2Instances._setProperties = this.ej2Instances.setProperties;
350
402
  this.ej2Instances.setProperties = this.setProperties;
403
+ this.ej2Instances.clearTemplate = this.clearTemplate;
404
+ }
405
+ clearTemplate(templateNames) {
406
+ if (!templateNames) {
407
+ templateNames = Object.keys(this.templateCollection || {});
408
+ }
409
+ if (templateNames.length && this.templateCollection) {
410
+ for (let tempName of templateNames) {
411
+ let elementCollection = this.templateCollection[tempName];
412
+ if (elementCollection && elementCollection.length) {
413
+ for (let ele of elementCollection) {
414
+ let destroy = getValue('__vue__.$destroy', ele);
415
+ if (destroy) {
416
+ ele.__vue__.$destroy();
417
+ }
418
+ if (ele.innerHTML) {
419
+ ele.innerHTML = '';
420
+ }
421
+ }
422
+ delete this.templateCollection[tempName];
423
+ }
424
+ }
425
+ }
351
426
  }
352
427
  setProperties(prop, muteOnChange) {
353
428
  if (this.isVue3) {
@@ -365,6 +440,7 @@ class MaskedTextBoxComponent extends ComponentBase {
365
440
  }
366
441
  else {
367
442
  this.$emit('update:' + key, prop[key]);
443
+ this.$emit('modelchanged', prop[key]);
368
444
  }
369
445
  }
370
446
  });
@@ -384,8 +460,10 @@ class MaskedTextBoxComponent extends ComponentBase {
384
460
  this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
385
461
  }
386
462
  else {
387
- this.$emit('update:' + propKey, eventProp[propKey]);
388
- this.$emit('modelchanged', eventProp[propKey]);
463
+ if (eventName === 'change' || (this.$props && !this.$props.islazyUpdate)) {
464
+ this.$emit('update:' + propKey, eventProp[propKey]);
465
+ this.$emit('modelchanged', eventProp[propKey]);
466
+ }
389
467
  }
390
468
  }
391
469
  }
@@ -452,7 +530,7 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
452
530
  return c > 3 && r && Object.defineProperty(target, key, r), r;
453
531
  };
454
532
  // {{VueImport}}
455
- const 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'];
533
+ const 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'];
456
534
  const modelProps$3 = ['value'];
457
535
  const testProp$3 = getProps({ props: properties$3 });
458
536
  const props$3 = testProp$3[0];
@@ -491,6 +569,29 @@ class SliderComponent extends ComponentBase {
491
569
  this.bindProperties();
492
570
  this.ej2Instances._setProperties = this.ej2Instances.setProperties;
493
571
  this.ej2Instances.setProperties = this.setProperties;
572
+ this.ej2Instances.clearTemplate = this.clearTemplate;
573
+ }
574
+ clearTemplate(templateNames) {
575
+ if (!templateNames) {
576
+ templateNames = Object.keys(this.templateCollection || {});
577
+ }
578
+ if (templateNames.length && this.templateCollection) {
579
+ for (let tempName of templateNames) {
580
+ let elementCollection = this.templateCollection[tempName];
581
+ if (elementCollection && elementCollection.length) {
582
+ for (let ele of elementCollection) {
583
+ let destroy = getValue('__vue__.$destroy', ele);
584
+ if (destroy) {
585
+ ele.__vue__.$destroy();
586
+ }
587
+ if (ele.innerHTML) {
588
+ ele.innerHTML = '';
589
+ }
590
+ }
591
+ delete this.templateCollection[tempName];
592
+ }
593
+ }
594
+ }
494
595
  }
495
596
  setProperties(prop, muteOnChange) {
496
597
  if (this.isVue3) {
@@ -508,6 +609,7 @@ class SliderComponent extends ComponentBase {
508
609
  }
509
610
  else {
510
611
  this.$emit('update:' + key, prop[key]);
612
+ this.$emit('modelchanged', prop[key]);
511
613
  }
512
614
  }
513
615
  });
@@ -527,8 +629,10 @@ class SliderComponent extends ComponentBase {
527
629
  this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
528
630
  }
529
631
  else {
530
- this.$emit('update:' + propKey, eventProp[propKey]);
531
- this.$emit('modelchanged', eventProp[propKey]);
632
+ if (eventName === 'change' || (this.$props && !this.$props.islazyUpdate)) {
633
+ this.$emit('update:' + propKey, eventProp[propKey]);
634
+ this.$emit('modelchanged', eventProp[propKey]);
635
+ }
532
636
  }
533
637
  }
534
638
  }
@@ -653,7 +757,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
653
757
  return c > 3 && r && Object.defineProperty(target, key, r), r;
654
758
  };
655
759
  // {{VueImport}}
656
- const 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'];
760
+ const 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'];
657
761
  const modelProps$4 = [];
658
762
  const testProp$4 = getProps({ props: properties$4 });
659
763
  const props$4 = testProp$4[0];
@@ -690,6 +794,29 @@ class UploaderComponent extends ComponentBase {
690
794
  this.bindProperties();
691
795
  this.ej2Instances._setProperties = this.ej2Instances.setProperties;
692
796
  this.ej2Instances.setProperties = this.setProperties;
797
+ this.ej2Instances.clearTemplate = this.clearTemplate;
798
+ }
799
+ clearTemplate(templateNames) {
800
+ if (!templateNames) {
801
+ templateNames = Object.keys(this.templateCollection || {});
802
+ }
803
+ if (templateNames.length && this.templateCollection) {
804
+ for (let tempName of templateNames) {
805
+ let elementCollection = this.templateCollection[tempName];
806
+ if (elementCollection && elementCollection.length) {
807
+ for (let ele of elementCollection) {
808
+ let destroy = getValue('__vue__.$destroy', ele);
809
+ if (destroy) {
810
+ ele.__vue__.$destroy();
811
+ }
812
+ if (ele.innerHTML) {
813
+ ele.innerHTML = '';
814
+ }
815
+ }
816
+ delete this.templateCollection[tempName];
817
+ }
818
+ }
819
+ }
693
820
  }
694
821
  setProperties(prop, muteOnChange) {
695
822
  if (this.isVue3) {
@@ -707,6 +834,7 @@ class UploaderComponent extends ComponentBase {
707
834
  }
708
835
  else {
709
836
  this.$emit('update:' + key, prop[key]);
837
+ this.$emit('modelchanged', prop[key]);
710
838
  }
711
839
  }
712
840
  });
@@ -784,7 +912,7 @@ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators,
784
912
  return c > 3 && r && Object.defineProperty(target, key, r), r;
785
913
  };
786
914
  // {{VueImport}}
787
- const 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'];
915
+ const 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'];
788
916
  const modelProps$5 = ['value'];
789
917
  const testProp$5 = getProps({ props: properties$5 });
790
918
  const props$5 = testProp$5[0];
@@ -823,6 +951,29 @@ class ColorPickerComponent extends ComponentBase {
823
951
  this.bindProperties();
824
952
  this.ej2Instances._setProperties = this.ej2Instances.setProperties;
825
953
  this.ej2Instances.setProperties = this.setProperties;
954
+ this.ej2Instances.clearTemplate = this.clearTemplate;
955
+ }
956
+ clearTemplate(templateNames) {
957
+ if (!templateNames) {
958
+ templateNames = Object.keys(this.templateCollection || {});
959
+ }
960
+ if (templateNames.length && this.templateCollection) {
961
+ for (let tempName of templateNames) {
962
+ let elementCollection = this.templateCollection[tempName];
963
+ if (elementCollection && elementCollection.length) {
964
+ for (let ele of elementCollection) {
965
+ let destroy = getValue('__vue__.$destroy', ele);
966
+ if (destroy) {
967
+ ele.__vue__.$destroy();
968
+ }
969
+ if (ele.innerHTML) {
970
+ ele.innerHTML = '';
971
+ }
972
+ }
973
+ delete this.templateCollection[tempName];
974
+ }
975
+ }
976
+ }
826
977
  }
827
978
  setProperties(prop, muteOnChange) {
828
979
  if (this.isVue3) {
@@ -840,6 +991,7 @@ class ColorPickerComponent extends ComponentBase {
840
991
  }
841
992
  else {
842
993
  this.$emit('update:' + key, prop[key]);
994
+ this.$emit('modelchanged', prop[key]);
843
995
  }
844
996
  }
845
997
  });
@@ -859,8 +1011,10 @@ class ColorPickerComponent extends ComponentBase {
859
1011
  this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
860
1012
  }
861
1013
  else {
862
- this.$emit('update:' + propKey, eventProp[propKey]);
863
- this.$emit('modelchanged', eventProp[propKey]);
1014
+ if (eventName === 'change' || (this.$props && !this.$props.islazyUpdate)) {
1015
+ this.$emit('update:' + propKey, eventProp[propKey]);
1016
+ this.$emit('modelchanged', eventProp[propKey]);
1017
+ }
864
1018
  }
865
1019
  }
866
1020
  }