@syncfusion/ej2-inputs 20.3.50 → 20.3.57

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.
@@ -1038,6 +1038,9 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
1038
1038
  if (this.element.hasAttribute('data-val')) {
1039
1039
  this.element.setAttribute('data-val', 'false');
1040
1040
  }
1041
+ if (!isNullOrUndefined(closest(this.element, "fieldset")) && closest(this.element, "fieldset").disabled) {
1042
+ this.enabled = false;
1043
+ }
1041
1044
  this.renderComplete();
1042
1045
  }
1043
1046
  };
@@ -1554,8 +1557,8 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
1554
1557
  var current = this.instance.getNumberParser({ format: 'n' })(this.element.value);
1555
1558
  var previous = this.instance.getNumberParser({ format: 'n' })(this.elementPrevValue);
1556
1559
  //EJ2-54963-if type "." or ".0" or "-.0" it converts to "0" automatically when binding v-model
1557
- var nonZeroRegex = new RegExp('[^1-9]+$');
1558
- if (nonZeroRegex.test(this.element.value)) {
1560
+ var nonZeroRegex = new RegExp('[^0-9]+$');
1561
+ if (nonZeroRegex.test(this.element.value) || ((this.elementPrevValue.indexOf('.') !== -1 || this.elementPrevValue.indexOf('-') !== -1) && this.element.value[this.element.value.length - 1] === '0')) {
1559
1562
  current = this.value;
1560
1563
  }
1561
1564
  var eventArgs = {
@@ -2055,6 +2058,7 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
2055
2058
  break;
2056
2059
  case 'enabled':
2057
2060
  Input.setEnabled(newProp.enabled, this.element);
2061
+ this.bindClearEvent();
2058
2062
  break;
2059
2063
  case 'enableRtl':
2060
2064
  Input.setEnableRtl(newProp.enableRtl, [this.container]);
@@ -3556,6 +3560,9 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
3556
3560
  if (this.element.getAttribute('value') || this.value) {
3557
3561
  this.element.setAttribute('value', this.element.value);
3558
3562
  }
3563
+ if (!isNullOrUndefined(closest(this.element, "fieldset")) && closest(this.element, "fieldset").disabled) {
3564
+ this.enabled = false;
3565
+ }
3559
3566
  this.renderComplete();
3560
3567
  }
3561
3568
  };
@@ -13340,7 +13347,7 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
13340
13347
  }
13341
13348
  break;
13342
13349
  case 'value':
13343
- if ((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['value'] === undefined)) || isDynamic) {
13350
+ if (((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['value'] === undefined)) || isDynamic) && this.element.value !== '') {
13344
13351
  this.setProperties({ value: this.element.value }, !isDynamic);
13345
13352
  }
13346
13353
  break;
@@ -13402,6 +13409,9 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
13402
13409
  this.inputPreviousValue = this.value;
13403
13410
  this.respectiveElement.defaultValue = this.respectiveElement.value;
13404
13411
  Input.setWidth(this.width, this.textboxWrapper.container);
13412
+ if (!isNullOrUndefined(closest(this.element, "fieldset")) && closest(this.element, "fieldset").disabled) {
13413
+ this.enabled = false;
13414
+ }
13405
13415
  this.renderComplete();
13406
13416
  };
13407
13417
  TextBox.prototype.updateHTMLAttrToWrapper = function () {
@@ -13859,7 +13869,7 @@ var SignatureBase = /** @__PURE__ @class */ (function (_super) {
13859
13869
  SignatureBase.prototype.initialize = function (element, dotnetRef) {
13860
13870
  this.element = element;
13861
13871
  this.canvasContext = this.element.getContext('2d');
13862
- this.canvasContext.canvas.tabIndex = 0;
13872
+ this.canvasContext.canvas.tabIndex = -1;
13863
13873
  if (dotnetRef) {
13864
13874
  this.dotnetRef = dotnetRef;
13865
13875
  this.isBlazor = true;