@syncfusion/ej2-calendars 26.2.8 → 26.2.11
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 +30 -14
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +30 -14
- 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 +10 -10
- package/src/daterangepicker/daterangepicker.js +18 -3
- package/src/datetimepicker/datetimepicker.d.ts +1 -0
- package/src/datetimepicker/datetimepicker.js +12 -11
- package/styles/bootstrap-dark.css +28 -0
- package/styles/bootstrap.css +28 -0
- package/styles/bootstrap4.css +28 -0
- package/styles/bootstrap5-dark.css +28 -0
- package/styles/bootstrap5.css +28 -0
- package/styles/calendar/fluent2.css +3 -1031
- package/styles/calendar/material3-dark.css +1 -54
- package/styles/calendar/material3.css +2 -109
- package/styles/datepicker/fluent2.css +3 -1031
- package/styles/datepicker/material3-dark.css +1 -54
- package/styles/datepicker/material3.css +2 -109
- package/styles/daterangepicker/fluent2.css +3 -1031
- package/styles/daterangepicker/material3-dark.css +1 -54
- package/styles/daterangepicker/material3.css +2 -109
- package/styles/datetimepicker/_layout.scss +20 -0
- package/styles/datetimepicker/bootstrap-dark.css +28 -0
- package/styles/datetimepicker/bootstrap.css +28 -0
- package/styles/datetimepicker/bootstrap4.css +28 -0
- package/styles/datetimepicker/bootstrap5-dark.css +28 -0
- package/styles/datetimepicker/bootstrap5.css +28 -0
- package/styles/datetimepicker/fabric-dark.css +28 -0
- package/styles/datetimepicker/fabric.css +28 -0
- package/styles/datetimepicker/fluent-dark.css +28 -0
- package/styles/datetimepicker/fluent.css +28 -0
- package/styles/datetimepicker/fluent2.css +31 -1031
- package/styles/datetimepicker/highcontrast-light.css +28 -0
- package/styles/datetimepicker/highcontrast.css +28 -0
- package/styles/datetimepicker/material-dark.css +28 -0
- package/styles/datetimepicker/material.css +28 -0
- package/styles/datetimepicker/material3-dark.css +29 -54
- package/styles/datetimepicker/material3.css +30 -109
- package/styles/datetimepicker/tailwind-dark.css +28 -0
- package/styles/datetimepicker/tailwind.css +28 -0
- package/styles/fabric-dark.css +28 -0
- package/styles/fabric.css +28 -0
- package/styles/fluent-dark.css +28 -0
- package/styles/fluent.css +28 -0
- package/styles/fluent2.css +31 -1031
- package/styles/highcontrast-light.css +28 -0
- package/styles/highcontrast.css +28 -0
- package/styles/material-dark.css +28 -0
- package/styles/material.css +28 -0
- package/styles/material3-dark.css +29 -54
- package/styles/material3.css +31 -110
- package/styles/tailwind-dark.css +28 -0
- package/styles/tailwind.css +28 -0
- package/styles/timepicker/fluent2.css +3 -1031
- package/styles/timepicker/material3-dark.css +1 -54
- package/styles/timepicker/material3.css +2 -109
- package/hotfix/26.1.35_Vol2.txt +0 -1
|
@@ -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;
|
|
@@ -7259,7 +7262,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
7259
7262
|
};
|
|
7260
7263
|
DateRangePicker.prototype.updateMinMaxDays = function (calendar) {
|
|
7261
7264
|
if ((!isNullOrUndefined(this.startValue) && isNullOrUndefined(this.endValue)) ||
|
|
7262
|
-
(this.isMobile && this.endButton.element.classList.contains(ACTIVE$1))) {
|
|
7265
|
+
(this.isMobile && this.endButton && this.endButton.element.classList.contains(ACTIVE$1))) {
|
|
7263
7266
|
if ((!isNullOrUndefined(this.minDays) && this.minDays > 0) || (!isNullOrUndefined(this.maxDays) && this.maxDays > 0)) {
|
|
7264
7267
|
var startValueSelected = this.removeTimeValueFromDate(this.startValue);
|
|
7265
7268
|
var minDate = new Date(new Date(+startValueSelected).setDate(startValueSelected.getDate() + (this.minDays - 1)));
|
|
@@ -8432,6 +8435,18 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
8432
8435
|
if (!isUndefined(_this.presets[0].start && _this.presets[0].end && _this.presets[0].label)) {
|
|
8433
8436
|
_this.unWireListEvents();
|
|
8434
8437
|
}
|
|
8438
|
+
if (_this.applyButton) {
|
|
8439
|
+
_this.applyButton.destroy();
|
|
8440
|
+
}
|
|
8441
|
+
if (_this.cancelButton) {
|
|
8442
|
+
_this.cancelButton.destroy();
|
|
8443
|
+
}
|
|
8444
|
+
if (_this.isMobile && _this.endButton) {
|
|
8445
|
+
_this.endButton.destroy();
|
|
8446
|
+
}
|
|
8447
|
+
if (_this.isMobile && _this.startButton) {
|
|
8448
|
+
_this.startButton.destroy();
|
|
8449
|
+
}
|
|
8435
8450
|
if (!isNullOrUndefined(_this.popupObj)) {
|
|
8436
8451
|
if (!isNullOrUndefined(_this.popupObj.element.parentElement)) {
|
|
8437
8452
|
detach(_this.popupObj.element);
|
|
@@ -13126,11 +13141,6 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13126
13141
|
if (Browser.isDevice && this.fullScreenMode) {
|
|
13127
13142
|
this.dateTimeWrapper.style.left = '0px';
|
|
13128
13143
|
}
|
|
13129
|
-
if (Browser.isDevice) {
|
|
13130
|
-
var dlgOverlay = this.createElement('div', { className: 'e-dlg-overlay' });
|
|
13131
|
-
dlgOverlay.style.zIndex = (this.zIndex - 1).toString();
|
|
13132
|
-
this.timeModal.appendChild(dlgOverlay);
|
|
13133
|
-
}
|
|
13134
13144
|
}
|
|
13135
13145
|
}
|
|
13136
13146
|
};
|
|
@@ -13199,6 +13209,14 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13199
13209
|
this.timeModal.style.display = 'block';
|
|
13200
13210
|
document.body.appendChild(this.timeModal);
|
|
13201
13211
|
}
|
|
13212
|
+
if (Browser.isDevice) {
|
|
13213
|
+
this.modelWrapper = createElement('div', { className: 'e-datetime-mob-popup-wrap' });
|
|
13214
|
+
this.modelWrapper.appendChild(this.dateTimeWrapper);
|
|
13215
|
+
var dlgOverlay = createElement('div', { className: 'e-dlg-overlay' });
|
|
13216
|
+
dlgOverlay.style.zIndex = (this.zIndex - 1).toString();
|
|
13217
|
+
this.modelWrapper.appendChild(dlgOverlay);
|
|
13218
|
+
document.body.appendChild(this.modelWrapper);
|
|
13219
|
+
}
|
|
13202
13220
|
var offset = 4;
|
|
13203
13221
|
this.popupObject = new Popup(this.dateTimeWrapper, {
|
|
13204
13222
|
width: this.setPopupWidth(),
|
|
@@ -13227,6 +13245,9 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13227
13245
|
remove(_this.popupObject.element);
|
|
13228
13246
|
_this.popupObject.destroy();
|
|
13229
13247
|
_this.dateTimeWrapper.innerHTML = '';
|
|
13248
|
+
if (_this.modelWrapper) {
|
|
13249
|
+
remove(_this.modelWrapper);
|
|
13250
|
+
}
|
|
13230
13251
|
_this.listWrapper = _this.dateTimeWrapper = undefined;
|
|
13231
13252
|
if (_this.inputEvent) {
|
|
13232
13253
|
_this.inputEvent.destroy();
|
|
@@ -13238,7 +13259,6 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13238
13259
|
}
|
|
13239
13260
|
});
|
|
13240
13261
|
if (Browser.isDevice && this.fullScreenMode) {
|
|
13241
|
-
this.popupObject.element.style.display = 'flex';
|
|
13242
13262
|
this.popupObject.element.style.maxHeight = '100%';
|
|
13243
13263
|
this.popupObject.element.style.width = '100%';
|
|
13244
13264
|
}
|
|
@@ -13246,18 +13266,14 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13246
13266
|
this.popupObject.element.style.maxHeight = POPUPDIMENSION$1;
|
|
13247
13267
|
}
|
|
13248
13268
|
if (Browser.isDevice && this.fullScreenMode) {
|
|
13249
|
-
var modelWrapper = createElement('div', { className: 'e-datetime-mob-popup-wrap' });
|
|
13250
13269
|
var modelHeader = this.createElement('div', { className: 'e-model-header' });
|
|
13251
13270
|
var modelTitleSpan = this.createElement('span', { className: 'e-model-title' });
|
|
13252
13271
|
modelTitleSpan.textContent = 'Select time';
|
|
13253
13272
|
var modelCloseIcon = this.createElement('span', { className: 'e-popup-close' });
|
|
13254
13273
|
EventHandler.add(modelCloseIcon, 'mousedown touchstart', this.dateTimeCloseHandler, this);
|
|
13255
|
-
var timeContent = this.dateTimeWrapper.querySelector('.e-content');
|
|
13256
13274
|
modelHeader.appendChild(modelCloseIcon);
|
|
13257
13275
|
modelHeader.appendChild(modelTitleSpan);
|
|
13258
|
-
|
|
13259
|
-
modelWrapper.appendChild(timeContent);
|
|
13260
|
-
this.dateTimeWrapper.insertBefore(modelWrapper, this.dateTimeWrapper.firstElementChild);
|
|
13276
|
+
this.dateTimeWrapper.insertBefore(modelHeader, this.dateTimeWrapper.firstElementChild);
|
|
13261
13277
|
}
|
|
13262
13278
|
};
|
|
13263
13279
|
DateTimePicker.prototype.dateTimeCloseHandler = function (e) {
|