@syncfusion/ej2-inputs 32.2.5 → 32.2.8

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 (96) hide show
  1. package/dist/ej2-inputs.min.js +2 -2
  2. package/dist/ej2-inputs.umd.min.js +2 -2
  3. package/dist/ej2-inputs.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-inputs.es2015.js +39 -7
  5. package/dist/es6/ej2-inputs.es2015.js.map +1 -1
  6. package/dist/es6/ej2-inputs.es5.js +39 -7
  7. package/dist/es6/ej2-inputs.es5.js.map +1 -1
  8. package/dist/global/ej2-inputs.min.js +2 -2
  9. package/dist/global/ej2-inputs.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +5 -5
  12. package/src/color-picker/color-picker.d.ts +1 -0
  13. package/src/color-picker/color-picker.js +22 -3
  14. package/src/common/signature-base.d.ts +1 -0
  15. package/src/common/signature-base.js +6 -2
  16. package/src/maskedtextbox/maskedtextbox/maskedtextbox.js +1 -0
  17. package/src/numerictextbox/numerictextbox.js +1 -0
  18. package/src/textarea/textarea.js +1 -0
  19. package/src/textbox/textbox.js +1 -0
  20. package/src/uploader/uploader.d.ts +1 -0
  21. package/src/uploader/uploader.js +7 -2
  22. package/styles/bds-lite.css +0 -11
  23. package/styles/bds.css +0 -11
  24. package/styles/bootstrap-dark-lite.css +0 -9
  25. package/styles/bootstrap-dark.css +0 -9
  26. package/styles/bootstrap-lite.css +0 -9
  27. package/styles/bootstrap.css +0 -9
  28. package/styles/bootstrap4-lite.css +0 -9
  29. package/styles/bootstrap4.css +0 -9
  30. package/styles/bootstrap5-dark-lite.css +0 -9
  31. package/styles/bootstrap5-dark.css +0 -9
  32. package/styles/bootstrap5-lite.css +0 -9
  33. package/styles/bootstrap5.3-lite.css +0 -11
  34. package/styles/bootstrap5.3.css +0 -11
  35. package/styles/bootstrap5.css +0 -9
  36. package/styles/color-picker/bds.css +0 -2
  37. package/styles/color-picker/bootstrap5.3.css +0 -2
  38. package/styles/color-picker/material3-dark.css +0 -6
  39. package/styles/color-picker/material3.css +0 -6
  40. package/styles/color-picker/tailwind3.css +0 -2
  41. package/styles/fabric-dark-lite.css +0 -9
  42. package/styles/fabric-dark.css +0 -9
  43. package/styles/fabric-lite.css +0 -9
  44. package/styles/fabric.css +0 -9
  45. package/styles/fluent-dark-lite.css +0 -9
  46. package/styles/fluent-dark.css +0 -9
  47. package/styles/fluent-lite.css +0 -9
  48. package/styles/fluent.css +0 -9
  49. package/styles/fluent2-lite.css +0 -10
  50. package/styles/fluent2.css +0 -10
  51. package/styles/highcontrast-light-lite.css +0 -9
  52. package/styles/highcontrast-light.css +0 -9
  53. package/styles/highcontrast-lite.css +0 -9
  54. package/styles/highcontrast.css +0 -9
  55. package/styles/input/fluent2.css +0 -1
  56. package/styles/input/material3-dark.css +0 -2
  57. package/styles/input/material3.css +0 -2
  58. package/styles/material-dark-lite.css +0 -9
  59. package/styles/material-dark.css +0 -9
  60. package/styles/material-lite.css +0 -9
  61. package/styles/material.css +0 -9
  62. package/styles/material3-dark-lite.css +0 -19
  63. package/styles/material3-dark.css +0 -19
  64. package/styles/material3-lite.css +0 -19
  65. package/styles/material3.css +0 -19
  66. package/styles/rating/bds.css +0 -9
  67. package/styles/rating/bootstrap-dark.css +0 -9
  68. package/styles/rating/bootstrap.css +0 -9
  69. package/styles/rating/bootstrap4.css +0 -9
  70. package/styles/rating/bootstrap5-dark.css +0 -9
  71. package/styles/rating/bootstrap5.3.css +0 -9
  72. package/styles/rating/bootstrap5.css +0 -9
  73. package/styles/rating/fabric-dark.css +0 -9
  74. package/styles/rating/fabric.css +0 -9
  75. package/styles/rating/fluent-dark.css +0 -9
  76. package/styles/rating/fluent.css +0 -9
  77. package/styles/rating/fluent2.css +0 -9
  78. package/styles/rating/highcontrast-light.css +0 -9
  79. package/styles/rating/highcontrast.css +0 -9
  80. package/styles/rating/material-dark.css +0 -9
  81. package/styles/rating/material.css +0 -9
  82. package/styles/rating/material3-dark.css +0 -9
  83. package/styles/rating/material3.css +0 -9
  84. package/styles/rating/tailwind-dark.css +0 -9
  85. package/styles/rating/tailwind.css +0 -9
  86. package/styles/rating/tailwind3.css +0 -9
  87. package/styles/slider/material3-dark.css +0 -1
  88. package/styles/slider/material3.css +0 -1
  89. package/styles/tailwind-dark-lite.css +0 -9
  90. package/styles/tailwind-dark.css +0 -9
  91. package/styles/tailwind-lite.css +0 -9
  92. package/styles/tailwind.css +0 -9
  93. package/styles/tailwind3-lite.css +0 -11
  94. package/styles/tailwind3.css +0 -11
  95. package/styles/uploader/material3-dark.css +0 -1
  96. package/styles/uploader/material3.css +0 -1
@@ -2369,6 +2369,7 @@ let NumericTextBox = class NumericTextBox extends Component {
2369
2369
  floatLabelType: this.floatLabelType,
2370
2370
  properties: this.properties
2371
2371
  }, this.clearButton);
2372
+ setValue('ej2_instances', null, this.element);
2372
2373
  super.destroy();
2373
2374
  }
2374
2375
  /**
@@ -4411,6 +4412,7 @@ let MaskedTextBox = class MaskedTextBox extends Component {
4411
4412
  }, this.clearButton);
4412
4413
  this.changeEventArgs = null;
4413
4414
  this.inputObj = null;
4415
+ setValue('ej2_instances', null, this.element);
4414
4416
  super.destroy();
4415
4417
  }
4416
4418
  };
@@ -9149,7 +9151,8 @@ let Uploader = class Uploader extends Component {
9149
9151
  wireEvents() {
9150
9152
  EventHandler.add(this.browseButton, 'click', this.browseButtonClick, this);
9151
9153
  EventHandler.add(this.element, 'change', this.onSelectFiles, this);
9152
- EventHandler.add(document, 'click', this.removeFocus, this);
9154
+ this.documentClickHandler = this.removeFocus.bind(this);
9155
+ EventHandler.add(document, 'click', this.documentClickHandler);
9153
9156
  this.keyboardModule = new KeyboardEvents(this.uploadWrapper, {
9154
9157
  keyAction: this.keyActionHandler.bind(this),
9155
9158
  keyConfigs: this.keyConfigs,
@@ -9162,7 +9165,10 @@ let Uploader = class Uploader extends Component {
9162
9165
  unWireEvents() {
9163
9166
  EventHandler.remove(this.browseButton, 'click', this.browseButtonClick);
9164
9167
  EventHandler.remove(this.element, 'change', this.onSelectFiles);
9165
- EventHandler.remove(document, 'click', this.removeFocus);
9168
+ if (this.documentClickHandler) {
9169
+ EventHandler.remove(document, 'click', this.documentClickHandler);
9170
+ this.documentClickHandler = null;
9171
+ }
9166
9172
  if (this.isForm) {
9167
9173
  EventHandler.remove(this.formElement, 'reset', this.resetForm);
9168
9174
  }
@@ -11382,6 +11388,7 @@ let Uploader = class Uploader extends Component {
11382
11388
  this.keyboardModule = null;
11383
11389
  this.clearButton = null;
11384
11390
  this.uploadButton = null;
11391
+ setValue('ej2_instances', null, this.element);
11385
11392
  super.destroy();
11386
11393
  }
11387
11394
  /**
@@ -12135,6 +12142,9 @@ let ColorPicker = class ColorPicker extends Component {
12135
12142
  }
12136
12143
  });
12137
12144
  this.splitBtn.createElement = this.createElement;
12145
+ if (this.isAngular) {
12146
+ this.splitBtn.isAngular = this.isAngular;
12147
+ }
12138
12148
  this.splitBtn.appendTo(splitButton);
12139
12149
  this.splitBtn.element.setAttribute('aria-label', 'colorpicker');
12140
12150
  const preview = this.createElement('span', { className: SPLITPREVIEW });
@@ -12207,8 +12217,9 @@ let ColorPicker = class ColorPicker extends Component {
12207
12217
  this.modal = this.createElement('div');
12208
12218
  this.modal.className = 'e-' + this.getModuleName() + ' e-modal';
12209
12219
  this.modal.style.display = 'none';
12210
- document.body.insertBefore(this.modal, popupEle);
12211
- document.body.className += ' e-colorpicker-overflow';
12220
+ const appendToElement = this.getAppendToElement();
12221
+ appendToElement.insertBefore(this.modal, popupEle);
12222
+ appendToElement.className += ' e-colorpicker-overflow';
12212
12223
  this.modal.style.display = 'block';
12213
12224
  this.modal.style.zIndex = (Number(popupEle.style.zIndex) - 1).toString();
12214
12225
  }
@@ -12242,6 +12253,16 @@ let ColorPicker = class ColorPicker extends Component {
12242
12253
  return callBackPromise;
12243
12254
  };
12244
12255
  }
12256
+ getAppendToElement() {
12257
+ if (this.isAngular) {
12258
+ const cdkPane = this.element.closest('.cdk-overlay-pane');
12259
+ const popoverEl = this.element.closest('[popover]');
12260
+ if (cdkPane && popoverEl) {
12261
+ return cdkPane;
12262
+ }
12263
+ }
12264
+ return document.body;
12265
+ }
12245
12266
  onPopupClose() {
12246
12267
  this.unWireEvents();
12247
12268
  this.destroyOtherComp();
@@ -12251,7 +12272,8 @@ let ColorPicker = class ColorPicker extends Component {
12251
12272
  this.container.innerHTML = '';
12252
12273
  removeClass([this.container], [PICKERCONTENT, PALETTECONTENT]);
12253
12274
  if (Browser.isDevice && this.modal) {
12254
- removeClass([document.body], 'e-colorpicker-overflow');
12275
+ const appendToElement = this.getAppendToElement();
12276
+ removeClass([appendToElement], 'e-colorpicker-overflow');
12255
12277
  this.modal.style.display = 'none';
12256
12278
  this.modal.outerHTML = '';
12257
12279
  this.modal = null;
@@ -13446,6 +13468,10 @@ let ColorPicker = class ColorPicker extends Component {
13446
13468
  this.unWireEvents();
13447
13469
  this.destroyOtherComp();
13448
13470
  }
13471
+ this.splitBtn.beforeClose = null;
13472
+ this.splitBtn.beforeOpen = null;
13473
+ this.splitBtn.click = null;
13474
+ this.splitBtn.open = null;
13449
13475
  this.splitBtn.destroy();
13450
13476
  this.splitBtn = null;
13451
13477
  }
@@ -14678,6 +14704,7 @@ let TextBox = class TextBox extends Component {
14678
14704
  floatLabelType: this.floatLabelType,
14679
14705
  properties: this.properties
14680
14706
  }, this.clearButton);
14707
+ setValue('ej2_instances', null, this.element);
14681
14708
  super.destroy();
14682
14709
  }
14683
14710
  /**
@@ -15379,6 +15406,7 @@ let TextArea = class TextArea extends Component {
15379
15406
  properties: this.properties
15380
15407
  }, this.clearButton);
15381
15408
  this.formElement = null;
15409
+ setValue('ej2_instances', null, this.element);
15382
15410
  super.destroy();
15383
15411
  }
15384
15412
  focusHandler(args) {
@@ -16373,7 +16401,8 @@ class SignatureBase extends Component {
16373
16401
  if (isNullOrUndefined(this.pointColl) && !this.isReadOnly && !this.disabled) {
16374
16402
  EventHandler.add(this.canvasContext.canvas, 'mousedown touchstart', this.mouseDownHandler, this);
16375
16403
  EventHandler.add(this.canvasContext.canvas, 'keydown', this.keyboardHandler, this);
16376
- window.addEventListener('resize', this.resizeHandler.bind(this));
16404
+ this.boundResizeHandler = this.resizeHandler.bind(this);
16405
+ window.addEventListener('resize', this.boundResizeHandler);
16377
16406
  }
16378
16407
  else if (this.pointColl) {
16379
16408
  EventHandler.add(this.canvasContext.canvas, 'mousemove touchmove', this.mouseMoveHandler, this);
@@ -16394,7 +16423,10 @@ class SignatureBase extends Component {
16394
16423
  EventHandler.remove(this.canvasContext.canvas, 'mousedown touchstart', this.mouseDownHandler);
16395
16424
  EventHandler.remove(this.canvasContext.canvas, 'keydown', this.keyboardHandler);
16396
16425
  }
16397
- window.removeEventListener('resize', this.resizeHandler);
16426
+ if (this.boundResizeHandler) {
16427
+ window.removeEventListener('resize', this.boundResizeHandler);
16428
+ this.boundResizeHandler = null;
16429
+ }
16398
16430
  }
16399
16431
  }
16400
16432
  setHTMLProperties() {