@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.3.50
3
+ * version : 20.3.57
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-inputs@*",
3
- "_id": "@syncfusion/ej2-inputs@20.3.49",
3
+ "_id": "@syncfusion/ej2-inputs@20.3.56",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-oPYNOhdJfOedbTF2vDkJXHhtwDmW58Yx/VtQDEGGKZunjRGx7F1+vfF2d1YyvJ+CKQwjyzg1N2YbVnVFL39iag==",
5
+ "_integrity": "sha512-14bVXvExqOfCNYF1wemfx2Zzwn1yrOWW5Y4FblnvPydWAMgPejOt4Jhxxh5ab+bZCGnoFM9YfdtpElwsa2M4QQ==",
6
6
  "_location": "/@syncfusion/ej2-inputs",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -39,19 +39,19 @@
39
39
  "/@syncfusion/ej2-schedule",
40
40
  "/@syncfusion/ej2-vue-inputs"
41
41
  ],
42
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-20.3.49.tgz",
43
- "_shasum": "41a3953dc1d8ca8915ac9ff8d4ecc48934c9fd2c",
42
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-20.3.56.tgz",
43
+ "_shasum": "48c89efc23b408a62947cd7a77d003f61a897665",
44
44
  "_spec": "@syncfusion/ej2-inputs@*",
45
- "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
45
+ "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
46
46
  "author": {
47
47
  "name": "Syncfusion Inc."
48
48
  },
49
49
  "bundleDependencies": false,
50
50
  "dependencies": {
51
- "@syncfusion/ej2-base": "~20.3.50",
52
- "@syncfusion/ej2-buttons": "~20.3.50",
53
- "@syncfusion/ej2-popups": "~20.3.50",
54
- "@syncfusion/ej2-splitbuttons": "~20.3.47"
51
+ "@syncfusion/ej2-base": "~20.3.56",
52
+ "@syncfusion/ej2-buttons": "~20.3.57",
53
+ "@syncfusion/ej2-popups": "~20.3.57",
54
+ "@syncfusion/ej2-splitbuttons": "~20.3.56"
55
55
  },
56
56
  "deprecated": false,
57
57
  "description": "A package of Essential JS 2 input components such as Textbox, Color-picker, Masked-textbox, Numeric-textbox, Slider, Upload, and Form-validator that is used to get input from the users.",
@@ -119,6 +119,6 @@
119
119
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/inputs"
120
120
  },
121
121
  "typings": "index.d.ts",
122
- "version": "20.3.50",
122
+ "version": "20.3.57",
123
123
  "sideEffects": false
124
124
  }
@@ -42,7 +42,7 @@ var SignatureBase = /** @class */ (function (_super) {
42
42
  SignatureBase.prototype.initialize = function (element, dotnetRef) {
43
43
  this.element = element;
44
44
  this.canvasContext = this.element.getContext('2d');
45
- this.canvasContext.canvas.tabIndex = 0;
45
+ this.canvasContext.canvas.tabIndex = -1;
46
46
  if (dotnetRef) {
47
47
  this.dotnetRef = dotnetRef;
48
48
  this.isBlazor = true;
@@ -157,6 +157,9 @@ var MaskedTextBox = /** @class */ (function (_super) {
157
157
  if (this.element.getAttribute('value') || this.value) {
158
158
  this.element.setAttribute('value', this.element.value);
159
159
  }
160
+ if (!isNullOrUndefined(closest(this.element, "fieldset")) && closest(this.element, "fieldset").disabled) {
161
+ this.enabled = false;
162
+ }
160
163
  this.renderComplete();
161
164
  }
162
165
  };
@@ -160,6 +160,9 @@ var NumericTextBox = /** @class */ (function (_super) {
160
160
  if (this.element.hasAttribute('data-val')) {
161
161
  this.element.setAttribute('data-val', 'false');
162
162
  }
163
+ if (!isNullOrUndefined(closest(this.element, "fieldset")) && closest(this.element, "fieldset").disabled) {
164
+ this.enabled = false;
165
+ }
163
166
  this.renderComplete();
164
167
  }
165
168
  };
@@ -676,8 +679,8 @@ var NumericTextBox = /** @class */ (function (_super) {
676
679
  var current = this.instance.getNumberParser({ format: 'n' })(this.element.value);
677
680
  var previous = this.instance.getNumberParser({ format: 'n' })(this.elementPrevValue);
678
681
  //EJ2-54963-if type "." or ".0" or "-.0" it converts to "0" automatically when binding v-model
679
- var nonZeroRegex = new RegExp('[^1-9]+$');
680
- if (nonZeroRegex.test(this.element.value)) {
682
+ var nonZeroRegex = new RegExp('[^0-9]+$');
683
+ if (nonZeroRegex.test(this.element.value) || ((this.elementPrevValue.indexOf('.') !== -1 || this.elementPrevValue.indexOf('-') !== -1) && this.element.value[this.element.value.length - 1] === '0')) {
681
684
  current = this.value;
682
685
  }
683
686
  var eventArgs = {
@@ -1177,6 +1180,7 @@ var NumericTextBox = /** @class */ (function (_super) {
1177
1180
  break;
1178
1181
  case 'enabled':
1179
1182
  Input.setEnabled(newProp.enabled, this.element);
1183
+ this.bindClearEvent();
1180
1184
  break;
1181
1185
  case 'enableRtl':
1182
1186
  Input.setEnableRtl(newProp.enableRtl, [this.container]);
@@ -274,7 +274,7 @@ var TextBox = /** @class */ (function (_super) {
274
274
  }
275
275
  break;
276
276
  case 'value':
277
- if ((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['value'] === undefined)) || isDynamic) {
277
+ if (((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['value'] === undefined)) || isDynamic) && this.element.value !== '') {
278
278
  this.setProperties({ value: this.element.value }, !isDynamic);
279
279
  }
280
280
  break;
@@ -336,6 +336,9 @@ var TextBox = /** @class */ (function (_super) {
336
336
  this.inputPreviousValue = this.value;
337
337
  this.respectiveElement.defaultValue = this.respectiveElement.value;
338
338
  Input.setWidth(this.width, this.textboxWrapper.container);
339
+ if (!isNullOrUndefined(closest(this.element, "fieldset")) && closest(this.element, "fieldset").disabled) {
340
+ this.enabled = false;
341
+ }
339
342
  this.renderComplete();
340
343
  };
341
344
  TextBox.prototype.updateHTMLAttrToWrapper = function () {