@syncfusion/ej2-calendars 20.4.40 → 20.4.42
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/README.md +1 -1
- 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 +8 -4
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +8 -4
- 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 +8 -4
|
@@ -5904,7 +5904,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
5904
5904
|
this.createControl();
|
|
5905
5905
|
this.bindCalendarEvents();
|
|
5906
5906
|
this.updateRange((this.isMobile ? [this.calendarElement] : [this.leftCalendar, this.rightCalendar]));
|
|
5907
|
-
if (!isNullOrUndefined(this.endValue) && !isNullOrUndefined(this.startValue)) {
|
|
5907
|
+
if (!isNullOrUndefined(this.endValue) && !isNullOrUndefined(this.startValue) && !isNullOrUndefined(this.renderDayCell)) {
|
|
5908
5908
|
this.disabledDateRender();
|
|
5909
5909
|
}
|
|
5910
5910
|
this.updateHeader();
|
|
@@ -6908,7 +6908,9 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
6908
6908
|
if (!this.isMobile) {
|
|
6909
6909
|
this.removeClassDisabled();
|
|
6910
6910
|
}
|
|
6911
|
-
this.
|
|
6911
|
+
if (!isNullOrUndefined(this.renderDayCell)) {
|
|
6912
|
+
this.disabledDateRender();
|
|
6913
|
+
}
|
|
6912
6914
|
this.trigger('select', this.rangeArgs(event));
|
|
6913
6915
|
}
|
|
6914
6916
|
else if (+date < +this.startValue) {
|
|
@@ -8484,7 +8486,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
8484
8486
|
if (!this.strictMode && (isDisabled)) {
|
|
8485
8487
|
this.clearRange();
|
|
8486
8488
|
}
|
|
8487
|
-
if (!isNullOrUndefined(this.endValue) && !isNullOrUndefined(this.startValue) && !isDisabled) {
|
|
8489
|
+
if (!isNullOrUndefined(this.endValue) && !isNullOrUndefined(this.startValue) && !isDisabled && !isNullOrUndefined(this.renderDayCell)) {
|
|
8488
8490
|
this.disabledDateRender();
|
|
8489
8491
|
}
|
|
8490
8492
|
this.errorClass();
|
|
@@ -8977,7 +8979,9 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
8977
8979
|
if (!isNullOrUndefined(this.startValue) && !isNullOrUndefined(this.endValue)) {
|
|
8978
8980
|
range = (Math.round(Math.abs((this.removeTimeValueFromDate(this.startValue).getTime() -
|
|
8979
8981
|
this.removeTimeValueFromDate(this.endValue).getTime()) / (1000 * 60 * 60 * 24))) + 1);
|
|
8980
|
-
this.
|
|
8982
|
+
if (!isNullOrUndefined(this.renderDayCell)) {
|
|
8983
|
+
this.disabledDateRender();
|
|
8984
|
+
}
|
|
8981
8985
|
if (!isNullOrUndefined(this.disabledDayCnt)) {
|
|
8982
8986
|
range = range - this.disabledDayCnt;
|
|
8983
8987
|
this.disabledDayCnt = null;
|