@syncfusion/ej2-calendars 26.2.10 → 26.2.12

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 : 26.2.10
3
+ * version : 26.2.12
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@26.2.8",
3
+ "_id": "@syncfusion/ej2-calendars@26.2.11",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-lSLHdNlcqugm3Gmp7JHlGEj99Msn113iGzsffWVknlK/MjHpeGSDKkkuUsY70Qq5swMRQg/45RQ1awd6C/pvnw==",
5
+ "_integrity": "sha512-Mxc9SOuea4bDMrp9EAAr3l17Ld4ebwP5yDdycrFnRbC2QpRU0ouqaFEMXql+AjvTFyV3PH7RrCDm6Ms8hlUnPw==",
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-26.2.8.tgz",
35
- "_shasum": "9c2c70ff41080297dd4c5d2769e79a095d129fdc",
34
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-26.2.11.tgz",
35
+ "_shasum": "9207e5d66d5c602f2e5a72804c6655d7ea42c069",
36
36
  "_spec": "@syncfusion/ej2-calendars@*",
37
37
  "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
38
38
  "author": {
@@ -45,9 +45,9 @@
45
45
  "dependencies": {
46
46
  "@syncfusion/ej2-base": "~26.2.10",
47
47
  "@syncfusion/ej2-buttons": "~26.2.10",
48
- "@syncfusion/ej2-inputs": "~26.2.10",
49
- "@syncfusion/ej2-lists": "~26.2.10",
50
- "@syncfusion/ej2-popups": "~26.2.10"
48
+ "@syncfusion/ej2-inputs": "~26.2.11",
49
+ "@syncfusion/ej2-lists": "~26.2.11",
50
+ "@syncfusion/ej2-popups": "~26.2.11"
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": "26.2.10",
83
+ "version": "26.2.12",
84
84
  "sideEffects": false
85
85
  }
@@ -1059,12 +1059,15 @@ var DateRangePicker = /** @class */ (function (_super) {
1059
1059
  if (this.depth === 'Month') {
1060
1060
  return this.globalize.parseDate(range[isEnd ? 1 : 0].trim(), dateOptions);
1061
1061
  }
1062
- else if (this.depth === 'Year') {
1062
+ else if (this.depth === 'Year' && !isNullOrUndefined(date)) {
1063
1063
  return new Date(date.getFullYear(), date.getMonth() + (isEnd ? 1 : 0), isEnd ? 0 : 1);
1064
1064
  }
1065
- else {
1065
+ else if (!isNullOrUndefined(date)) {
1066
1066
  return new Date(date.getFullYear(), isEnd ? 11 : 0, isEnd ? 31 : 1);
1067
1067
  }
1068
+ else {
1069
+ return null;
1070
+ }
1068
1071
  };
1069
1072
  DateRangePicker.prototype.clearRange = function () {
1070
1073
  this.previousStartValue = this.previousEndValue = null;
@@ -33,6 +33,7 @@ export declare class DateTimePicker extends DatePicker {
33
33
  private containerStyle;
34
34
  private popupObject;
35
35
  protected timeModal: HTMLElement;
36
+ protected modelWrapper: HTMLElement;
36
37
  private isNavigate;
37
38
  protected isPreventBlur: boolean;
38
39
  private timeValue;
@@ -575,13 +575,11 @@ var DateTimePicker = /** @class */ (function (_super) {
575
575
  if (!Browser.isDevice || (Browser.isDevice && !this.fullScreenMode)) {
576
576
  this.popupObject.refreshPosition(this.inputElement);
577
577
  }
578
- if (Browser.isDevice && this.fullScreenMode) {
579
- this.dateTimeWrapper.style.left = '0px';
580
- }
581
578
  if (Browser.isDevice) {
582
- var dlgOverlay = this.createElement('div', { className: 'e-dlg-overlay' });
583
- dlgOverlay.style.zIndex = (this.zIndex - 1).toString();
584
- this.timeModal.appendChild(dlgOverlay);
579
+ this.modelWrapper.style.zIndex = (this.popupObject.zIndex - 1).toString();
580
+ if (this.fullScreenMode) {
581
+ this.dateTimeWrapper.style.left = '0px';
582
+ }
585
583
  }
586
584
  }
587
585
  }
@@ -652,12 +650,12 @@ var DateTimePicker = /** @class */ (function (_super) {
652
650
  document.body.appendChild(this.timeModal);
653
651
  }
654
652
  if (Browser.isDevice) {
655
- var modelWrapper = createElement('div', { className: 'e-datetime-mob-popup-wrap' });
656
- modelWrapper.appendChild(this.dateTimeWrapper);
653
+ this.modelWrapper = createElement('div', { className: 'e-datetime-mob-popup-wrap' });
654
+ this.modelWrapper.appendChild(this.dateTimeWrapper);
657
655
  var dlgOverlay = createElement('div', { className: 'e-dlg-overlay' });
658
656
  dlgOverlay.style.zIndex = (this.zIndex - 1).toString();
659
- modelWrapper.appendChild(dlgOverlay);
660
- document.body.appendChild(modelWrapper);
657
+ this.modelWrapper.appendChild(dlgOverlay);
658
+ document.body.appendChild(this.modelWrapper);
661
659
  }
662
660
  var offset = 4;
663
661
  this.popupObject = new Popup(this.dateTimeWrapper, {
@@ -687,6 +685,9 @@ var DateTimePicker = /** @class */ (function (_super) {
687
685
  remove(_this.popupObject.element);
688
686
  _this.popupObject.destroy();
689
687
  _this.dateTimeWrapper.innerHTML = '';
688
+ if (_this.modelWrapper) {
689
+ remove(_this.modelWrapper);
690
+ }
690
691
  _this.listWrapper = _this.dateTimeWrapper = undefined;
691
692
  if (_this.inputEvent) {
692
693
  _this.inputEvent.destroy();