@syncfusion/ej2-inputs 20.3.56 → 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.56
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.50",
3
+ "_id": "@syncfusion/ej2-inputs@20.3.56",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-vmj/ZVGO/olDWgbPmAA2DxZgvDHtruZlSbFUq2rPUTVQ+5iZjO1ofJ1Nn3SERbDhPooIqdW4OK4zME2DZZOl8Q==",
5
+ "_integrity": "sha512-14bVXvExqOfCNYF1wemfx2Zzwn1yrOWW5Y4FblnvPydWAMgPejOt4Jhxxh5ab+bZCGnoFM9YfdtpElwsa2M4QQ==",
6
6
  "_location": "/@syncfusion/ej2-inputs",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -39,8 +39,8 @@
39
39
  "/@syncfusion/ej2-schedule",
40
40
  "/@syncfusion/ej2-vue-inputs"
41
41
  ],
42
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-20.3.50.tgz",
43
- "_shasum": "361505246b387aed5a8650f1568204e1b6bb3e1a",
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
45
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
46
46
  "author": {
@@ -49,8 +49,8 @@
49
49
  "bundleDependencies": false,
50
50
  "dependencies": {
51
51
  "@syncfusion/ej2-base": "~20.3.56",
52
- "@syncfusion/ej2-buttons": "~20.3.56",
53
- "@syncfusion/ej2-popups": "~20.3.56",
52
+ "@syncfusion/ej2-buttons": "~20.3.57",
53
+ "@syncfusion/ej2-popups": "~20.3.57",
54
54
  "@syncfusion/ej2-splitbuttons": "~20.3.56"
55
55
  },
56
56
  "deprecated": false,
@@ -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.56",
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;
@@ -679,8 +679,8 @@ var NumericTextBox = /** @class */ (function (_super) {
679
679
  var current = this.instance.getNumberParser({ format: 'n' })(this.element.value);
680
680
  var previous = this.instance.getNumberParser({ format: 'n' })(this.elementPrevValue);
681
681
  //EJ2-54963-if type "." or ".0" or "-.0" it converts to "0" automatically when binding v-model
682
- var nonZeroRegex = new RegExp('[^1-9]+$');
683
- 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')) {
684
684
  current = this.value;
685
685
  }
686
686
  var eventArgs = {
@@ -1180,6 +1180,7 @@ var NumericTextBox = /** @class */ (function (_super) {
1180
1180
  break;
1181
1181
  case 'enabled':
1182
1182
  Input.setEnabled(newProp.enabled, this.element);
1183
+ this.bindClearEvent();
1183
1184
  break;
1184
1185
  case 'enableRtl':
1185
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;