@syncfusion/ej2-calendars 27.1.50 → 27.1.51

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 : 27.1.50
3
+ * version : 27.1.51
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. 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-calendars@*",
3
- "_id": "@syncfusion/ej2-calendars@18.32.5",
3
+ "_id": "@syncfusion/ej2-calendars@27.1.50",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-rksJYsGIPpCObDMJj5UXpkHFC3zmO0oIq9E4epQ7uMf79Wwm7p1xmvrBVW4Ie71RnIfpTbHXPqJuFrfidkJcRQ==",
5
+ "_integrity": "sha512-g0dL8PLj2RZ7+F14PMrZfnSHCI6aRffPm4GORONccG4B3UoadWPsd94U8sLPpeHyN4V30MBCIzS5DX4ighQ1GQ==",
6
6
  "_location": "/@syncfusion/ej2-calendars",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -31,8 +31,8 @@
31
31
  "/@syncfusion/ej2-schedule",
32
32
  "/@syncfusion/ej2-vue-calendars"
33
33
  ],
34
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-18.32.5.tgz",
35
- "_shasum": "c76c6f7cbc4265f8ddd213a442133b7c0a8f34e0",
34
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-27.1.50.tgz",
35
+ "_shasum": "552a96a19e63124f18a7c4e287bec5ab2cc2060a",
36
36
  "_spec": "@syncfusion/ej2-calendars@*",
37
37
  "_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
38
38
  "author": {
@@ -44,7 +44,7 @@
44
44
  "bundleDependencies": false,
45
45
  "dependencies": {
46
46
  "@syncfusion/ej2-base": "~27.1.50",
47
- "@syncfusion/ej2-buttons": "~27.1.50",
47
+ "@syncfusion/ej2-buttons": "~27.1.51",
48
48
  "@syncfusion/ej2-inputs": "~27.1.50",
49
49
  "@syncfusion/ej2-lists": "~27.1.50",
50
50
  "@syncfusion/ej2-popups": "~27.1.50"
@@ -80,6 +80,6 @@
80
80
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
81
81
  },
82
82
  "typings": "index.d.ts",
83
- "version": "27.1.50",
83
+ "version": "27.1.51",
84
84
  "sideEffects": false
85
85
  }
@@ -447,9 +447,10 @@ var DatePicker = /** @class */ (function (_super) {
447
447
  case 'ArrowDown':
448
448
  case 'Home':
449
449
  case 'End':
450
+ case 'Backspace':
450
451
  case 'Delete':
451
452
  if (this.enableMask && !this.popupObj && !this.readonly) {
452
- if (e.code !== 'Delete') {
453
+ if (e.code !== 'Delete' && e.code !== 'Backspace') {
453
454
  e.preventDefault();
454
455
  }
455
456
  this.notify('keyDownHandler', {
@@ -171,6 +171,34 @@ var MaskedDateTime = /** @class */ (function () {
171
171
  this.parent.inputElement.setSelectionRange(start, end);
172
172
  };
173
173
  MaskedDateTime.prototype.maskKeydownHandler = function (args) {
174
+ if (args.e.key === 'Backspace') {
175
+ var start = this.parent.inputElement.selectionStart;
176
+ var formatText = '';
177
+ if (this.validCharacters.indexOf(this.hiddenMask[start]) !== -1) {
178
+ formatText = this.hiddenMask[start];
179
+ }
180
+ switch (formatText) {
181
+ case 'd':
182
+ this.dayTypeCount = Math.max(this.dayTypeCount - 1, 0);
183
+ break;
184
+ case 'M':
185
+ this.monthTypeCount = Math.max(this.monthTypeCount - 1, 0);
186
+ break;
187
+ case 'H':
188
+ case 'h':
189
+ this.hourTypeCount = Math.max(this.hourTypeCount - 1, 0);
190
+ break;
191
+ case 'm':
192
+ this.minuteTypeCount = Math.max(this.minuteTypeCount - 1, 0);
193
+ break;
194
+ case 's':
195
+ this.secondTypeCount = Math.max(this.secondTypeCount - 1, 0);
196
+ break;
197
+ default:
198
+ break;
199
+ }
200
+ return;
201
+ }
174
202
  this.dayTypeCount = this.monthTypeCount = this.hourTypeCount = this.minuteTypeCount = this.secondTypeCount = 0;
175
203
  if (args.e.key === 'Delete') {
176
204
  this.isDeleteKey = true;