@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.
- package/dist/ej2-calendars.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js.map +1 -1
- package/dist/es6/ej2-calendars.es2015.js +16 -12
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +16 -12
- package/dist/es6/ej2-calendars.es5.js.map +1 -1
- package/dist/global/ej2-calendars.min.js +2 -2
- package/dist/global/ej2-calendars.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/daterangepicker/daterangepicker.js +5 -2
- package/src/datetimepicker/datetimepicker.d.ts +1 -0
- package/src/datetimepicker/datetimepicker.js +11 -10
|
@@ -6394,12 +6394,15 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
6394
6394
|
if (this.depth === 'Month') {
|
|
6395
6395
|
return this.globalize.parseDate(range[isEnd ? 1 : 0].trim(), dateOptions);
|
|
6396
6396
|
}
|
|
6397
|
-
else if (this.depth === 'Year') {
|
|
6397
|
+
else if (this.depth === 'Year' && !isNullOrUndefined(date)) {
|
|
6398
6398
|
return new Date(date.getFullYear(), date.getMonth() + (isEnd ? 1 : 0), isEnd ? 0 : 1);
|
|
6399
6399
|
}
|
|
6400
|
-
else {
|
|
6400
|
+
else if (!isNullOrUndefined(date)) {
|
|
6401
6401
|
return new Date(date.getFullYear(), isEnd ? 11 : 0, isEnd ? 31 : 1);
|
|
6402
6402
|
}
|
|
6403
|
+
else {
|
|
6404
|
+
return null;
|
|
6405
|
+
}
|
|
6403
6406
|
};
|
|
6404
6407
|
DateRangePicker.prototype.clearRange = function () {
|
|
6405
6408
|
this.previousStartValue = this.previousEndValue = null;
|
|
@@ -13135,13 +13138,11 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13135
13138
|
if (!Browser.isDevice || (Browser.isDevice && !this.fullScreenMode)) {
|
|
13136
13139
|
this.popupObject.refreshPosition(this.inputElement);
|
|
13137
13140
|
}
|
|
13138
|
-
if (Browser.isDevice && this.fullScreenMode) {
|
|
13139
|
-
this.dateTimeWrapper.style.left = '0px';
|
|
13140
|
-
}
|
|
13141
13141
|
if (Browser.isDevice) {
|
|
13142
|
-
|
|
13143
|
-
|
|
13144
|
-
|
|
13142
|
+
this.modelWrapper.style.zIndex = (this.popupObject.zIndex - 1).toString();
|
|
13143
|
+
if (this.fullScreenMode) {
|
|
13144
|
+
this.dateTimeWrapper.style.left = '0px';
|
|
13145
|
+
}
|
|
13145
13146
|
}
|
|
13146
13147
|
}
|
|
13147
13148
|
}
|
|
@@ -13212,12 +13213,12 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13212
13213
|
document.body.appendChild(this.timeModal);
|
|
13213
13214
|
}
|
|
13214
13215
|
if (Browser.isDevice) {
|
|
13215
|
-
|
|
13216
|
-
modelWrapper.appendChild(this.dateTimeWrapper);
|
|
13216
|
+
this.modelWrapper = createElement('div', { className: 'e-datetime-mob-popup-wrap' });
|
|
13217
|
+
this.modelWrapper.appendChild(this.dateTimeWrapper);
|
|
13217
13218
|
var dlgOverlay = createElement('div', { className: 'e-dlg-overlay' });
|
|
13218
13219
|
dlgOverlay.style.zIndex = (this.zIndex - 1).toString();
|
|
13219
|
-
modelWrapper.appendChild(dlgOverlay);
|
|
13220
|
-
document.body.appendChild(modelWrapper);
|
|
13220
|
+
this.modelWrapper.appendChild(dlgOverlay);
|
|
13221
|
+
document.body.appendChild(this.modelWrapper);
|
|
13221
13222
|
}
|
|
13222
13223
|
var offset = 4;
|
|
13223
13224
|
this.popupObject = new Popup(this.dateTimeWrapper, {
|
|
@@ -13247,6 +13248,9 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13247
13248
|
remove(_this.popupObject.element);
|
|
13248
13249
|
_this.popupObject.destroy();
|
|
13249
13250
|
_this.dateTimeWrapper.innerHTML = '';
|
|
13251
|
+
if (_this.modelWrapper) {
|
|
13252
|
+
remove(_this.modelWrapper);
|
|
13253
|
+
}
|
|
13250
13254
|
_this.listWrapper = _this.dateTimeWrapper = undefined;
|
|
13251
13255
|
if (_this.inputEvent) {
|
|
13252
13256
|
_this.inputEvent.destroy();
|