@syncfusion/ej2-inputs 19.3.47 → 19.3.48

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.
@@ -1211,7 +1211,7 @@ let NumericTextBox = class NumericTextBox extends Component {
1211
1211
  }
1212
1212
  resetHandler(e) {
1213
1213
  e.preventDefault();
1214
- if (!(this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide'))) {
1214
+ if (!(this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide')) || this.inputWrapper.container.classList.contains('e-static-clear')) {
1215
1215
  this.clear(e);
1216
1216
  }
1217
1217
  this.isInteract = true;
@@ -2306,7 +2306,7 @@ function bindClearEvent() {
2306
2306
  }
2307
2307
  function resetHandler(e) {
2308
2308
  e.preventDefault();
2309
- if (!this.inputObj.clearButton.classList.contains('e-clear-icon-hide')) {
2309
+ if (!this.inputObj.clearButton.classList.contains('e-clear-icon-hide') || (this.inputObj.container.classList.contains('e-static-clear'))) {
2310
2310
  clear.call(this, e);
2311
2311
  this.value = '';
2312
2312
  }
@@ -10990,6 +10990,7 @@ let ColorPicker = class ColorPicker extends Component {
10990
10990
  target: this.container,
10991
10991
  disabled: this.disabled,
10992
10992
  enableRtl: this.enableRtl,
10993
+ createPopupOnClick: this.createPopupOnClick,
10993
10994
  open: this.onOpen.bind(this),
10994
10995
  click: () => {
10995
10996
  this.trigger('change', {
@@ -12128,7 +12129,12 @@ let ColorPicker = class ColorPicker extends Component {
12128
12129
  if (!this.showButtons && !isKey) {
12129
12130
  this.trigger('change', { currentValue: { hex: hex, rgba: rgba },
12130
12131
  previousValue: { hex: this.value.slice(0, 7), rgba: this.convertToRgbString(this.hexToRgb(this.value)) }, value: cValue });
12131
- this.setProperties({ 'value': cValue }, true);
12132
+ if (this.enableOpacity) {
12133
+ this.setProperties({ 'value': cValue }, true);
12134
+ }
12135
+ else {
12136
+ this.setProperties({ 'value': hex }, true);
12137
+ }
12132
12138
  this.element.value = hex ? hex : '#000000';
12133
12139
  }
12134
12140
  else {
@@ -12644,6 +12650,9 @@ __decorate$5([
12644
12650
  __decorate$5([
12645
12651
  Property(true)
12646
12652
  ], ColorPicker.prototype, "enableOpacity", void 0);
12653
+ __decorate$5([
12654
+ Property(false)
12655
+ ], ColorPicker.prototype, "createPopupOnClick", void 0);
12647
12656
  __decorate$5([
12648
12657
  Event()
12649
12658
  ], ColorPicker.prototype, "select", void 0);
@@ -13161,7 +13170,7 @@ let TextBox = class TextBox extends Component {
13161
13170
  }
13162
13171
  resetInputHandler(event) {
13163
13172
  event.preventDefault();
13164
- if (!(this.textboxWrapper.clearButton.classList.contains(HIDE_CLEAR))) {
13173
+ if (!(this.textboxWrapper.clearButton.classList.contains(HIDE_CLEAR)) || this.textboxWrapper.container.classList.contains('e-static-clear')) {
13165
13174
  Input.setValue('', this.respectiveElement, this.floatLabelType, this.showClearButton);
13166
13175
  if (this.isHiddenInput) {
13167
13176
  this.element.value = this.respectiveElement.value;