@syncfusion/ej2-calendars 25.1.37 → 25.1.40

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 : 25.1.37
3
+ * version : 25.1.40
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@25.1.39",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-1RBLq8MJWJQ0wL7otcL8+Ycr+kfHKbctRk+Jps7sKApzm9mqvB5y53DNQP0Yv+uAAZqqarmgYdqYXdVv2nNdvA==",
5
+ "_integrity": "sha512-SuYxQeHmCkbg4/eDVQlTTzRMGjj+wc+Utnw0fO+msJNMm1Il9GwT3JYMtnr/6IZIjSTZdtTqdCB+Hl3qpBJ1gw==",
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": "7fb84d9c26c2464a44ab7fb749580a9c659950ae",
34
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-25.1.39.tgz",
35
+ "_shasum": "00620365fb7d18204457aa5ddf7775e3ebca90c7",
36
36
  "_spec": "@syncfusion/ej2-calendars@*",
37
37
  "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
38
38
  "author": {
@@ -44,10 +44,10 @@
44
44
  "bundleDependencies": false,
45
45
  "dependencies": {
46
46
  "@syncfusion/ej2-base": "~25.1.35",
47
- "@syncfusion/ej2-buttons": "~25.1.35",
48
- "@syncfusion/ej2-inputs": "~25.1.37",
49
- "@syncfusion/ej2-lists": "~25.1.35",
50
- "@syncfusion/ej2-popups": "~25.1.35"
47
+ "@syncfusion/ej2-buttons": "~25.1.39",
48
+ "@syncfusion/ej2-inputs": "~25.1.40",
49
+ "@syncfusion/ej2-lists": "~25.1.39",
50
+ "@syncfusion/ej2-popups": "~25.1.39"
51
51
  },
52
52
  "deprecated": false,
53
53
  "description": "A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization.",
@@ -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": "25.1.37",
83
+ "version": "25.1.40",
84
84
  "sideEffects": false
85
85
  }
@@ -301,8 +301,8 @@ var CalendarBase = /** @class */ (function (_super) {
301
301
  }
302
302
  };
303
303
  CalendarBase.prototype.removeContentFocus = function (args) {
304
- var focusedDate = this.tableBodyElement.querySelector('tr td.e-focused-date');
305
- var selectedDate = this.tableBodyElement.querySelector('tr td.e-selected');
304
+ var focusedDate = !isNullOrUndefined(this.tableBodyElement) ? this.tableBodyElement.querySelector('tr td.e-focused-date') : null;
305
+ var selectedDate = !isNullOrUndefined(this.tableBodyElement) ? this.tableBodyElement.querySelector('tr td.e-selected') : null;
306
306
  if (!isNullOrUndefined(selectedDate)) {
307
307
  selectedDate.classList.remove(FOCUSEDCELL);
308
308
  }
@@ -99,7 +99,7 @@ var DatePicker = /** @class */ (function (_super) {
99
99
  DatePicker.prototype.render = function () {
100
100
  this.initialize();
101
101
  this.bindEvents();
102
- if (this.floatLabelType === 'Auto') {
102
+ if (this.floatLabelType !== 'Never') {
103
103
  Input.calculateWidth(this.inputElement, this.inputWrapper.container);
104
104
  }
105
105
  if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
@@ -165,7 +165,7 @@ var DateRangePicker = /** @class */ (function (_super) {
165
165
  if (this.element.hasAttribute('data-val')) {
166
166
  this.element.setAttribute('data-val', 'false');
167
167
  }
168
- if (this.floatLabelType === 'Auto') {
168
+ if (this.floatLabelType !== 'Never') {
169
169
  Input.calculateWidth(this.inputElement, this.inputWrapper.container);
170
170
  }
171
171
  if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
@@ -244,7 +244,7 @@ var DateTimePicker = /** @class */ (function (_super) {
244
244
  this.inputElement.tabIndex = -1;
245
245
  }
246
246
  }
247
- if (this.floatLabelType === 'Auto') {
247
+ if (this.floatLabelType !== 'Never') {
248
248
  Input.calculateWidth(this.inputElement, this.inputWrapper.container);
249
249
  }
250
250
  if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
@@ -515,6 +515,9 @@ var DateTimePicker = /** @class */ (function (_super) {
515
515
  var dateObject;
516
516
  if (this.calendarMode === 'Gregorian') {
517
517
  this.cldrDateTimeFormat().replace(this.formatRegex, this.TimePopupFormat());
518
+ if (this.dateFormatString === '') {
519
+ this.dateFormatString = this.cldrDateTimeFormat();
520
+ }
518
521
  dateObject = this.globalize.parseDate(this.inputElement.value, {
519
522
  format: this.dateFormatString, type: 'datetime'
520
523
  });
@@ -35,7 +35,7 @@ var MaskedDateTime = /** @class */ (function () {
35
35
  this.isNavigate = false;
36
36
  this.navigated = false;
37
37
  this.isBlur = false;
38
- this.formatRegex = /EEEEE|EEEE|EEE|EE|E|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|HH|H|hh|h|mm|m|fff|ff|f|aa|a|ss|s|zzzz|zzz|zz|z|'[^']*'|'[^']*'/g;
38
+ this.formatRegex = /EEEEE|EEEE|EEE|EE|E|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|HH|H|hh|h|mm|m|fff|ff|f|aa|a|ss|s|zzzz|zzz|zz|z|'[^']*'|'[^']*'/g;
39
39
  this.isDeletion = false;
40
40
  this.isShortYear = false;
41
41
  this.isDeleteKey = false;
@@ -346,6 +346,7 @@ var MaskedDateTime = /** @class */ (function () {
346
346
  var year = (this.isYearPart && (newDateValue.getFullYear().toString().length < 4
347
347
  && !this.isShortYear) ? newDateValue.getFullYear() * 10 : 0) + parseInt(newVal[start - 1], 10);
348
348
  var yearValue = (this.dateformat.match(/y/g) || []).length;
349
+ yearValue = yearValue !== 2 ? 4 : yearValue;
349
350
  this.isShortYear = false;
350
351
  this.isYearZero = (newVal[start - 1] === '0');
351
352
  if (isNaN(year)) {
@@ -536,6 +537,7 @@ var MaskedDateTime = /** @class */ (function () {
536
537
  result = proxy.zeroCheck(proxy.isYearZero, proxy.isYearPart, result);
537
538
  break;
538
539
  case 'y':
540
+ case 'yyy':
539
541
  case 'yyyy':
540
542
  result = proxy.isYearPart ? proxy.roundOff(proxy.maskDateValue.getFullYear(), 4) : proxy.defaultConstant['year'].toString();
541
543
  result = proxy.zeroCheck(proxy.isYearZero, proxy.isYearPart, result);