@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
|
@@ -6318,12 +6318,15 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
|
|
|
6318
6318
|
if (this.depth === 'Month') {
|
|
6319
6319
|
return this.globalize.parseDate(range[isEnd ? 1 : 0].trim(), dateOptions);
|
|
6320
6320
|
}
|
|
6321
|
-
else if (this.depth === 'Year') {
|
|
6321
|
+
else if (this.depth === 'Year' && !isNullOrUndefined(date)) {
|
|
6322
6322
|
return new Date(date.getFullYear(), date.getMonth() + (isEnd ? 1 : 0), isEnd ? 0 : 1);
|
|
6323
6323
|
}
|
|
6324
|
-
else {
|
|
6324
|
+
else if (!isNullOrUndefined(date)) {
|
|
6325
6325
|
return new Date(date.getFullYear(), isEnd ? 11 : 0, isEnd ? 31 : 1);
|
|
6326
6326
|
}
|
|
6327
|
+
else {
|
|
6328
|
+
return null;
|
|
6329
|
+
}
|
|
6327
6330
|
}
|
|
6328
6331
|
clearRange() {
|
|
6329
6332
|
this.previousStartValue = this.previousEndValue = null;
|
|
@@ -7173,7 +7176,7 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
|
|
|
7173
7176
|
}
|
|
7174
7177
|
updateMinMaxDays(calendar) {
|
|
7175
7178
|
if ((!isNullOrUndefined(this.startValue) && isNullOrUndefined(this.endValue)) ||
|
|
7176
|
-
(this.isMobile && this.endButton.element.classList.contains(ACTIVE$1))) {
|
|
7179
|
+
(this.isMobile && this.endButton && this.endButton.element.classList.contains(ACTIVE$1))) {
|
|
7177
7180
|
if ((!isNullOrUndefined(this.minDays) && this.minDays > 0) || (!isNullOrUndefined(this.maxDays) && this.maxDays > 0)) {
|
|
7178
7181
|
const startValueSelected = this.removeTimeValueFromDate(this.startValue);
|
|
7179
7182
|
let minDate = new Date(new Date(+startValueSelected).setDate(startValueSelected.getDate() + (this.minDays - 1)));
|
|
@@ -8339,6 +8342,18 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
|
|
|
8339
8342
|
if (!isUndefined(this.presets[0].start && this.presets[0].end && this.presets[0].label)) {
|
|
8340
8343
|
this.unWireListEvents();
|
|
8341
8344
|
}
|
|
8345
|
+
if (this.applyButton) {
|
|
8346
|
+
this.applyButton.destroy();
|
|
8347
|
+
}
|
|
8348
|
+
if (this.cancelButton) {
|
|
8349
|
+
this.cancelButton.destroy();
|
|
8350
|
+
}
|
|
8351
|
+
if (this.isMobile && this.endButton) {
|
|
8352
|
+
this.endButton.destroy();
|
|
8353
|
+
}
|
|
8354
|
+
if (this.isMobile && this.startButton) {
|
|
8355
|
+
this.startButton.destroy();
|
|
8356
|
+
}
|
|
8342
8357
|
if (!isNullOrUndefined(this.popupObj)) {
|
|
8343
8358
|
if (!isNullOrUndefined(this.popupObj.element.parentElement)) {
|
|
8344
8359
|
detach(this.popupObj.element);
|
|
@@ -12984,11 +12999,6 @@ let DateTimePicker = class DateTimePicker extends DatePicker {
|
|
|
12984
12999
|
if (Browser.isDevice && this.fullScreenMode) {
|
|
12985
13000
|
this.dateTimeWrapper.style.left = '0px';
|
|
12986
13001
|
}
|
|
12987
|
-
if (Browser.isDevice) {
|
|
12988
|
-
const dlgOverlay = this.createElement('div', { className: 'e-dlg-overlay' });
|
|
12989
|
-
dlgOverlay.style.zIndex = (this.zIndex - 1).toString();
|
|
12990
|
-
this.timeModal.appendChild(dlgOverlay);
|
|
12991
|
-
}
|
|
12992
13002
|
}
|
|
12993
13003
|
}
|
|
12994
13004
|
}
|
|
@@ -13055,6 +13065,14 @@ let DateTimePicker = class DateTimePicker extends DatePicker {
|
|
|
13055
13065
|
this.timeModal.style.display = 'block';
|
|
13056
13066
|
document.body.appendChild(this.timeModal);
|
|
13057
13067
|
}
|
|
13068
|
+
if (Browser.isDevice) {
|
|
13069
|
+
this.modelWrapper = createElement('div', { className: 'e-datetime-mob-popup-wrap' });
|
|
13070
|
+
this.modelWrapper.appendChild(this.dateTimeWrapper);
|
|
13071
|
+
const dlgOverlay = createElement('div', { className: 'e-dlg-overlay' });
|
|
13072
|
+
dlgOverlay.style.zIndex = (this.zIndex - 1).toString();
|
|
13073
|
+
this.modelWrapper.appendChild(dlgOverlay);
|
|
13074
|
+
document.body.appendChild(this.modelWrapper);
|
|
13075
|
+
}
|
|
13058
13076
|
const offset = 4;
|
|
13059
13077
|
this.popupObject = new Popup(this.dateTimeWrapper, {
|
|
13060
13078
|
width: this.setPopupWidth(),
|
|
@@ -13083,6 +13101,9 @@ let DateTimePicker = class DateTimePicker extends DatePicker {
|
|
|
13083
13101
|
remove(this.popupObject.element);
|
|
13084
13102
|
this.popupObject.destroy();
|
|
13085
13103
|
this.dateTimeWrapper.innerHTML = '';
|
|
13104
|
+
if (this.modelWrapper) {
|
|
13105
|
+
remove(this.modelWrapper);
|
|
13106
|
+
}
|
|
13086
13107
|
this.listWrapper = this.dateTimeWrapper = undefined;
|
|
13087
13108
|
if (this.inputEvent) {
|
|
13088
13109
|
this.inputEvent.destroy();
|
|
@@ -13094,7 +13115,6 @@ let DateTimePicker = class DateTimePicker extends DatePicker {
|
|
|
13094
13115
|
}
|
|
13095
13116
|
});
|
|
13096
13117
|
if (Browser.isDevice && this.fullScreenMode) {
|
|
13097
|
-
this.popupObject.element.style.display = 'flex';
|
|
13098
13118
|
this.popupObject.element.style.maxHeight = '100%';
|
|
13099
13119
|
this.popupObject.element.style.width = '100%';
|
|
13100
13120
|
}
|
|
@@ -13102,18 +13122,14 @@ let DateTimePicker = class DateTimePicker extends DatePicker {
|
|
|
13102
13122
|
this.popupObject.element.style.maxHeight = POPUPDIMENSION$1;
|
|
13103
13123
|
}
|
|
13104
13124
|
if (Browser.isDevice && this.fullScreenMode) {
|
|
13105
|
-
const modelWrapper = createElement('div', { className: 'e-datetime-mob-popup-wrap' });
|
|
13106
13125
|
const modelHeader = this.createElement('div', { className: 'e-model-header' });
|
|
13107
13126
|
const modelTitleSpan = this.createElement('span', { className: 'e-model-title' });
|
|
13108
13127
|
modelTitleSpan.textContent = 'Select time';
|
|
13109
13128
|
const modelCloseIcon = this.createElement('span', { className: 'e-popup-close' });
|
|
13110
13129
|
EventHandler.add(modelCloseIcon, 'mousedown touchstart', this.dateTimeCloseHandler, this);
|
|
13111
|
-
const timeContent = this.dateTimeWrapper.querySelector('.e-content');
|
|
13112
13130
|
modelHeader.appendChild(modelCloseIcon);
|
|
13113
13131
|
modelHeader.appendChild(modelTitleSpan);
|
|
13114
|
-
|
|
13115
|
-
modelWrapper.appendChild(timeContent);
|
|
13116
|
-
this.dateTimeWrapper.insertBefore(modelWrapper, this.dateTimeWrapper.firstElementChild);
|
|
13132
|
+
this.dateTimeWrapper.insertBefore(modelHeader, this.dateTimeWrapper.firstElementChild);
|
|
13117
13133
|
}
|
|
13118
13134
|
}
|
|
13119
13135
|
dateTimeCloseHandler(e) {
|