@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
@@ -2404,6 +2404,7 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
2404
2404
  floatLabelType: this.floatLabelType,
2405
2405
  properties: this.properties
2406
2406
  }, this.clearButton);
2407
+ setValue('ej2_instances', null, this.element);
2407
2408
  _super.prototype.destroy.call(this);
2408
2409
  };
2409
2410
  /**
@@ -4474,6 +4475,7 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
4474
4475
  }, this.clearButton);
4475
4476
  this.changeEventArgs = null;
4476
4477
  this.inputObj = null;
4478
+ setValue('ej2_instances', null, this.element);
4477
4479
  _super.prototype.destroy.call(this);
4478
4480
  };
4479
4481
  __decorate$1([
@@ -9325,7 +9327,8 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9325
9327
  Uploader.prototype.wireEvents = function () {
9326
9328
  EventHandler.add(this.browseButton, 'click', this.browseButtonClick, this);
9327
9329
  EventHandler.add(this.element, 'change', this.onSelectFiles, this);
9328
- EventHandler.add(document, 'click', this.removeFocus, this);
9330
+ this.documentClickHandler = this.removeFocus.bind(this);
9331
+ EventHandler.add(document, 'click', this.documentClickHandler);
9329
9332
  this.keyboardModule = new KeyboardEvents(this.uploadWrapper, {
9330
9333
  keyAction: this.keyActionHandler.bind(this),
9331
9334
  keyConfigs: this.keyConfigs,
@@ -9338,7 +9341,10 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9338
9341
  Uploader.prototype.unWireEvents = function () {
9339
9342
  EventHandler.remove(this.browseButton, 'click', this.browseButtonClick);
9340
9343
  EventHandler.remove(this.element, 'change', this.onSelectFiles);
9341
- EventHandler.remove(document, 'click', this.removeFocus);
9344
+ if (this.documentClickHandler) {
9345
+ EventHandler.remove(document, 'click', this.documentClickHandler);
9346
+ this.documentClickHandler = null;
9347
+ }
9342
9348
  if (this.isForm) {
9343
9349
  EventHandler.remove(this.formElement, 'reset', this.resetForm);
9344
9350
  }
@@ -11599,6 +11605,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
11599
11605
  this.keyboardModule = null;
11600
11606
  this.clearButton = null;
11601
11607
  this.uploadButton = null;
11608
+ setValue('ej2_instances', null, this.element);
11602
11609
  _super.prototype.destroy.call(this);
11603
11610
  };
11604
11611
  /**
@@ -12379,6 +12386,9 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
12379
12386
  }
12380
12387
  });
12381
12388
  this.splitBtn.createElement = this.createElement;
12389
+ if (this.isAngular) {
12390
+ this.splitBtn.isAngular = this.isAngular;
12391
+ }
12382
12392
  this.splitBtn.appendTo(splitButton);
12383
12393
  this.splitBtn.element.setAttribute('aria-label', 'colorpicker');
12384
12394
  var preview = this.createElement('span', { className: SPLITPREVIEW });
@@ -12452,8 +12462,9 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
12452
12462
  _this.modal = _this.createElement('div');
12453
12463
  _this.modal.className = 'e-' + _this.getModuleName() + ' e-modal';
12454
12464
  _this.modal.style.display = 'none';
12455
- document.body.insertBefore(_this.modal, popupEle);
12456
- document.body.className += ' e-colorpicker-overflow';
12465
+ var appendToElement = _this.getAppendToElement();
12466
+ appendToElement.insertBefore(_this.modal, popupEle);
12467
+ appendToElement.className += ' e-colorpicker-overflow';
12457
12468
  _this.modal.style.display = 'block';
12458
12469
  _this.modal.style.zIndex = (Number(popupEle.style.zIndex) - 1).toString();
12459
12470
  }
@@ -12487,6 +12498,16 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
12487
12498
  return callBackPromise;
12488
12499
  };
12489
12500
  };
12501
+ ColorPicker.prototype.getAppendToElement = function () {
12502
+ if (this.isAngular) {
12503
+ var cdkPane = this.element.closest('.cdk-overlay-pane');
12504
+ var popoverEl = this.element.closest('[popover]');
12505
+ if (cdkPane && popoverEl) {
12506
+ return cdkPane;
12507
+ }
12508
+ }
12509
+ return document.body;
12510
+ };
12490
12511
  ColorPicker.prototype.onPopupClose = function () {
12491
12512
  this.unWireEvents();
12492
12513
  this.destroyOtherComp();
@@ -12496,7 +12517,8 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
12496
12517
  this.container.innerHTML = '';
12497
12518
  removeClass([this.container], [PICKERCONTENT, PALETTECONTENT]);
12498
12519
  if (Browser.isDevice && this.modal) {
12499
- removeClass([document.body], 'e-colorpicker-overflow');
12520
+ var appendToElement = this.getAppendToElement();
12521
+ removeClass([appendToElement], 'e-colorpicker-overflow');
12500
12522
  this.modal.style.display = 'none';
12501
12523
  this.modal.outerHTML = '';
12502
12524
  this.modal = null;
@@ -13701,6 +13723,10 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
13701
13723
  this.unWireEvents();
13702
13724
  this.destroyOtherComp();
13703
13725
  }
13726
+ this.splitBtn.beforeClose = null;
13727
+ this.splitBtn.beforeOpen = null;
13728
+ this.splitBtn.click = null;
13729
+ this.splitBtn.open = null;
13704
13730
  this.splitBtn.destroy();
13705
13731
  this.splitBtn = null;
13706
13732
  }
@@ -14958,6 +14984,7 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
14958
14984
  floatLabelType: this.floatLabelType,
14959
14985
  properties: this.properties
14960
14986
  }, this.clearButton);
14987
+ setValue('ej2_instances', null, this.element);
14961
14988
  _super.prototype.destroy.call(this);
14962
14989
  };
14963
14990
  /**
@@ -15680,6 +15707,7 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
15680
15707
  properties: this.properties
15681
15708
  }, this.clearButton);
15682
15709
  this.formElement = null;
15710
+ setValue('ej2_instances', null, this.element);
15683
15711
  _super.prototype.destroy.call(this);
15684
15712
  };
15685
15713
  TextArea.prototype.focusHandler = function (args) {
@@ -16779,7 +16807,8 @@ var SignatureBase = /** @__PURE__ @class */ (function (_super) {
16779
16807
  if (isNullOrUndefined(this.pointColl) && !this.isReadOnly && !this.disabled) {
16780
16808
  EventHandler.add(this.canvasContext.canvas, 'mousedown touchstart', this.mouseDownHandler, this);
16781
16809
  EventHandler.add(this.canvasContext.canvas, 'keydown', this.keyboardHandler, this);
16782
- window.addEventListener('resize', this.resizeHandler.bind(this));
16810
+ this.boundResizeHandler = this.resizeHandler.bind(this);
16811
+ window.addEventListener('resize', this.boundResizeHandler);
16783
16812
  }
16784
16813
  else if (this.pointColl) {
16785
16814
  EventHandler.add(this.canvasContext.canvas, 'mousemove touchmove', this.mouseMoveHandler, this);
@@ -16800,7 +16829,10 @@ var SignatureBase = /** @__PURE__ @class */ (function (_super) {
16800
16829
  EventHandler.remove(this.canvasContext.canvas, 'mousedown touchstart', this.mouseDownHandler);
16801
16830
  EventHandler.remove(this.canvasContext.canvas, 'keydown', this.keyboardHandler);
16802
16831
  }
16803
- window.removeEventListener('resize', this.resizeHandler);
16832
+ if (this.boundResizeHandler) {
16833
+ window.removeEventListener('resize', this.boundResizeHandler);
16834
+ this.boundResizeHandler = null;
16835
+ }
16804
16836
  }
16805
16837
  };
16806
16838
  SignatureBase.prototype.setHTMLProperties = function () {