@syncfusion/ej2-calendars 29.1.33 → 29.1.39

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 : 29.1.33
3
+ * version : 29.1.39
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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@29.1.35",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-oThXVtFZLWtWSij0H2ZsToVSIjmQV4tCYCvrXtGWiTi0h4yFDjI+esu/3RrWn8U3n79NXRq0QnLdZtdV+IUilA==",
5
+ "_integrity": "sha512-mqvrCexNlIzUSRNILrmadYJgMGqvnWbFWJtskEBlEHccUUZJUQvDkgWSr9OVD38jIGKR5lzHE9OvF2vOzBAI8A==",
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-release/@syncfusion/ej2-calendars/-/ej2-calendars-18.32.5.tgz",
35
- "_shasum": "728901b1333352dba23dbf2f4b61d57588b0aed4",
34
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-29.1.35.tgz",
35
+ "_shasum": "f60c06255c1d44f23918cbd651aebb277c060b19",
36
36
  "_spec": "@syncfusion/ej2-calendars@*",
37
37
  "_where": "/jenkins/workspace/elease-automation_release_29.1.1/packages/included",
38
38
  "author": {
@@ -43,11 +43,11 @@
43
43
  },
44
44
  "bundleDependencies": false,
45
45
  "dependencies": {
46
- "@syncfusion/ej2-base": "~29.1.33",
47
- "@syncfusion/ej2-buttons": "~29.1.33",
48
- "@syncfusion/ej2-inputs": "~29.1.33",
49
- "@syncfusion/ej2-lists": "~29.1.33",
50
- "@syncfusion/ej2-popups": "~29.1.33"
46
+ "@syncfusion/ej2-base": "~29.1.36",
47
+ "@syncfusion/ej2-buttons": "~29.1.34",
48
+ "@syncfusion/ej2-inputs": "~29.1.39",
49
+ "@syncfusion/ej2-lists": "~29.1.34",
50
+ "@syncfusion/ej2-popups": "~29.1.37"
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": "29.1.33",
83
+ "version": "29.1.39",
84
84
  "sideEffects": false
85
85
  }
@@ -1433,12 +1433,18 @@ var CalendarBase = /** @class */ (function (_super) {
1433
1433
  for (var skipIndex = 0; skipIndex < copyValues.length; skipIndex++) {
1434
1434
  var tempValue = copyValues[skipIndex];
1435
1435
  var type = (this.calendarMode === 'Gregorian') ? 'gregorian' : 'islamic';
1436
+ var tempValueFormat = void 0;
1436
1437
  var tempValueString = void 0;
1438
+ var tempValueDate = void 0;
1437
1439
  if (this.calendarMode === 'Gregorian') {
1438
- tempValueString = this.globalize.formatDate(tempValue, { type: 'date', skeleton: 'yMd' });
1440
+ tempValueFormat = { type: 'date', skeleton: 'yMd' };
1441
+ tempValueString = this.globalize.formatDate(tempValue, tempValueFormat);
1442
+ tempValueDate = this.globalize.parseDate(tempValueString, tempValueFormat);
1439
1443
  }
1440
1444
  else {
1441
- tempValueString = this.globalize.formatDate(tempValue, { type: 'dateTime', skeleton: 'full', calendar: 'islamic' });
1445
+ tempValueFormat = { type: 'date', skeleton: 'yMd', calendar: 'islamic' };
1446
+ tempValueString = this.globalize.formatDate(tempValue, tempValueFormat);
1447
+ tempValueDate = this.globalize.parseDate(tempValueString, tempValueFormat);
1442
1448
  }
1443
1449
  var minFormatOption = { type: 'date', skeleton: 'yMd', calendar: type };
1444
1450
  var minStringValue = this.globalize.formatDate(this.min, minFormatOption);
@@ -1446,8 +1452,9 @@ var CalendarBase = /** @class */ (function (_super) {
1446
1452
  var maxFormatOption = { type: 'date', skeleton: 'yMd', calendar: type };
1447
1453
  var maxStringValue = this.globalize.formatDate(this.max, maxFormatOption);
1448
1454
  var maxString = maxStringValue;
1449
- if (+new Date(tempValueString) < +new Date(minString) ||
1450
- +new Date(tempValueString) > +new Date(maxString)) {
1455
+ var minDate = this.globalize.parseDate(minString, minFormatOption);
1456
+ var maxDate = this.globalize.parseDate(maxString, maxFormatOption);
1457
+ if (+tempValueDate < +minDate || +tempValueDate > +maxDate) {
1451
1458
  copyValues.splice(skipIndex, 1);
1452
1459
  skipIndex = -1;
1453
1460
  }
@@ -1966,7 +1966,8 @@ var TimePicker = /** @class */ (function (_super) {
1966
1966
  var formatStr = null;
1967
1967
  var today = this.globalize.formatDate(new Date(), { format: formatStr, skeleton: 'short', type: 'date' });
1968
1968
  var value = null;
1969
- if (typeof val === 'string') {
1969
+ if (typeof val === 'string' && !(this.enableMask && this.maskedDateValue &&
1970
+ this.inputElement.value === this.maskedDateValue && !this.value)) {
1970
1971
  if (val.toUpperCase().indexOf('AM') > -1 || val.toUpperCase().indexOf('PM') > -1) {
1971
1972
  today = this.defaultCulture.formatDate(new Date(), { format: formatStr, skeleton: 'short', type: 'date' });
1972
1973
  value = isNaN(+new Date(today + ' ' + val)) ? null : new Date(new Date(today + ' ' + val).setMilliseconds(0));