@syncfusion/ej2-calendars 30.2.4 → 31.1.18

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 : 30.2.4
3
+ * version : 31.1.18
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-calendars",
3
- "version": "30.2.4",
3
+ "version": "31.1.18",
4
4
  "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.",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,11 +8,11 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-calendars.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~30.2.4",
12
- "@syncfusion/ej2-buttons": "~30.2.4",
13
- "@syncfusion/ej2-inputs": "~30.2.4",
14
- "@syncfusion/ej2-lists": "~30.2.4",
15
- "@syncfusion/ej2-popups": "~30.2.4"
11
+ "@syncfusion/ej2-base": "~31.1.17",
12
+ "@syncfusion/ej2-buttons": "~31.1.17",
13
+ "@syncfusion/ej2-inputs": "~31.1.17",
14
+ "@syncfusion/ej2-lists": "~31.1.17",
15
+ "@syncfusion/ej2-popups": "~31.1.17"
16
16
  },
17
17
  "devDependencies": {},
18
18
  "keywords": [
@@ -541,6 +541,9 @@ var DatePicker = /** @class */ (function (_super) {
541
541
  if (!this.enableMask) {
542
542
  this.updateInputValue('');
543
543
  }
544
+ if (isNullOrUndefined(this.value)) {
545
+ this.currentDate = new Date(new Date().setHours(0, 0, 0, 0));
546
+ }
544
547
  var clearedArgs = {
545
548
  event: event
546
549
  };
@@ -719,7 +722,11 @@ var DatePicker = /** @class */ (function (_super) {
719
722
  }
720
723
  };
721
724
  DatePicker.prototype.inputBlurHandler = function (e) {
722
- if (!this.enabled) {
725
+ var inputSame = this.inputElement.value === this.previousElementValue;
726
+ var dateSame = this.value && this.previousDate
727
+ ? this.value.getTime() === this.previousDate.getTime()
728
+ : this.value === this.previousDate;
729
+ if (!this.enabled || (inputSame && dateSame)) {
723
730
  return;
724
731
  }
725
732
  this.strictModeUpdate();
@@ -812,19 +819,27 @@ var DatePicker = /** @class */ (function (_super) {
812
819
  this.hide(e);
813
820
  break;
814
821
  case 'enter':
815
- this.strictModeUpdate();
816
- this.updateInput();
817
- this.popupUpdate();
818
- this.changeTrigger(e);
819
- this.errorClass();
820
- if (!this.isCalendar() && document.activeElement === this.inputElement) {
821
- this.hide(e);
822
- }
823
- if (this.isCalendar()) {
824
- e.preventDefault();
825
- e.stopPropagation();
822
+ {
823
+ var inputUnchanged = this.inputElement.value === this.previousElementValue;
824
+ var valueUnchanged = this.value instanceof Date && this.previousDate instanceof Date
825
+ ? this.value.getTime() === this.previousDate.getTime()
826
+ : this.value === this.previousDate;
827
+ if (!(inputUnchanged && valueUnchanged)) {
828
+ this.strictModeUpdate();
829
+ this.updateInput();
830
+ this.popupUpdate();
831
+ this.changeTrigger(e);
832
+ this.errorClass();
833
+ }
834
+ if (!this.isCalendar() && document.activeElement === this.inputElement) {
835
+ this.hide(e);
836
+ }
837
+ if (this.isCalendar()) {
838
+ e.preventDefault();
839
+ e.stopPropagation();
840
+ }
841
+ break;
826
842
  }
827
- break;
828
843
  case 'tab':
829
844
  case 'shiftTab':
830
845
  {
@@ -4189,6 +4189,14 @@ var DateRangePicker = /** @class */ (function (_super) {
4189
4189
  _this.selectableDates();
4190
4190
  }
4191
4191
  _super.prototype.setOverlayIndex.call(_this, _this.mobileRangePopupWrap, _this.popupObj.element, _this.modal, _this.isMobile || Browser.isDevice);
4192
+ if (!isNullOrUndefined(_this.mobileRangePopupWrap) && !isNullOrUndefined(_this.popupObj)
4193
+ && !isNullOrUndefined(_this.popupObj.element) && isNullOrUndefined(_this.modal) &&
4194
+ !isUndefined(_this.presets[0].start && _this.presets[0].end && _this.presets[0].label) && isPreset
4195
+ && (_this.isMobile || Browser.isDevice) && !_this.isCustomWindow) {
4196
+ var index = parseInt(_this.popupObj.element.style.zIndex, 10) ?
4197
+ parseInt(_this.popupObj.element.style.zIndex, 10) : 1000;
4198
+ _this.mobileRangePopupWrap.style.zIndex = index.toString();
4199
+ }
4192
4200
  if (Browser.isDevice) {
4193
4201
  var dlgOverlay = _this.createElement('div', { className: 'e-dlg-overlay' });
4194
4202
  dlgOverlay.style.zIndex = (_this.zIndex - 1).toString();