@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.
@@ -1235,7 +1235,7 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
1235
1235
  };
1236
1236
  NumericTextBox.prototype.resetHandler = function (e) {
1237
1237
  e.preventDefault();
1238
- if (!(this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide'))) {
1238
+ if (!(this.inputWrapper.clearButton.classList.contains('e-clear-icon-hide')) || this.inputWrapper.container.classList.contains('e-static-clear')) {
1239
1239
  this.clear(e);
1240
1240
  }
1241
1241
  this.isInteract = true;
@@ -2339,7 +2339,7 @@ function bindClearEvent() {
2339
2339
  }
2340
2340
  function resetHandler(e) {
2341
2341
  e.preventDefault();
2342
- if (!this.inputObj.clearButton.classList.contains('e-clear-icon-hide')) {
2342
+ if (!this.inputObj.clearButton.classList.contains('e-clear-icon-hide') || (this.inputObj.container.classList.contains('e-static-clear'))) {
2343
2343
  clear.call(this, e);
2344
2344
  this.value = '';
2345
2345
  }
@@ -11230,6 +11230,7 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
11230
11230
  target: this.container,
11231
11231
  disabled: this.disabled,
11232
11232
  enableRtl: this.enableRtl,
11233
+ createPopupOnClick: this.createPopupOnClick,
11233
11234
  open: this.onOpen.bind(this),
11234
11235
  click: function () {
11235
11236
  _this.trigger('change', {
@@ -12377,7 +12378,12 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
12377
12378
  if (!this.showButtons && !isKey) {
12378
12379
  this.trigger('change', { currentValue: { hex: hex, rgba: rgba },
12379
12380
  previousValue: { hex: this.value.slice(0, 7), rgba: this.convertToRgbString(this.hexToRgb(this.value)) }, value: cValue });
12380
- this.setProperties({ 'value': cValue }, true);
12381
+ if (this.enableOpacity) {
12382
+ this.setProperties({ 'value': cValue }, true);
12383
+ }
12384
+ else {
12385
+ this.setProperties({ 'value': hex }, true);
12386
+ }
12381
12387
  this.element.value = hex ? hex : '#000000';
12382
12388
  }
12383
12389
  else {
@@ -12899,6 +12905,9 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
12899
12905
  __decorate$5([
12900
12906
  Property(true)
12901
12907
  ], ColorPicker.prototype, "enableOpacity", void 0);
12908
+ __decorate$5([
12909
+ Property(false)
12910
+ ], ColorPicker.prototype, "createPopupOnClick", void 0);
12902
12911
  __decorate$5([
12903
12912
  Event()
12904
12913
  ], ColorPicker.prototype, "select", void 0);
@@ -13437,7 +13446,7 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
13437
13446
  };
13438
13447
  TextBox.prototype.resetInputHandler = function (event) {
13439
13448
  event.preventDefault();
13440
- if (!(this.textboxWrapper.clearButton.classList.contains(HIDE_CLEAR))) {
13449
+ if (!(this.textboxWrapper.clearButton.classList.contains(HIDE_CLEAR)) || this.textboxWrapper.container.classList.contains('e-static-clear')) {
13441
13450
  Input.setValue('', this.respectiveElement, this.floatLabelType, this.showClearButton);
13442
13451
  if (this.isHiddenInput) {
13443
13452
  this.element.value = this.respectiveElement.value;