@syncfusion/ej2-calendars 29.2.5 → 29.2.10
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 -1
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +30 -1
- 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 +12 -55
- package/src/datepicker/datepicker.js +3 -0
- package/src/daterangepicker/daterangepicker.js +26 -0
- package/src/timepicker/timepicker.js +1 -1
|
@@ -4509,6 +4509,9 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
4509
4509
|
this.changedArgs.element = this.element;
|
|
4510
4510
|
this.changedArgs.isInteracted = this.isInteracted;
|
|
4511
4511
|
if (!this.isDynamicValueChanged) {
|
|
4512
|
+
if (this.isAngular) {
|
|
4513
|
+
this.previousDate = this.value && new Date(+this.value);
|
|
4514
|
+
}
|
|
4512
4515
|
this.trigger('change', this.changedArgs);
|
|
4513
4516
|
}
|
|
4514
4517
|
this.previousDate = this.value && new Date(+this.value);
|
|
@@ -6471,6 +6474,9 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
6471
6474
|
if (this.inputElement.defaultValue !== value) {
|
|
6472
6475
|
endDate = this.getStartEndDate(endDate, true);
|
|
6473
6476
|
}
|
|
6477
|
+
if (endDate >= this.max) {
|
|
6478
|
+
endDate = this.max;
|
|
6479
|
+
}
|
|
6474
6480
|
}
|
|
6475
6481
|
if (!isNullOrUndefined(startDate) && !isNaN(+startDate) && !isNullOrUndefined(endDate) && !isNaN(+endDate)) {
|
|
6476
6482
|
var prevStartVal = this.startValue;
|
|
@@ -7359,6 +7365,29 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
7359
7365
|
this.checkMinMaxDays();
|
|
7360
7366
|
}
|
|
7361
7367
|
}
|
|
7368
|
+
var isCustomMin = this.min.getTime() !== new Date(1900, 0, 1).getTime();
|
|
7369
|
+
var isCustomMax = this.max.getTime() !== new Date(2099, 11, 31).getTime();
|
|
7370
|
+
if (this.currentView() === 'Year' && this.depth === 'Year') {
|
|
7371
|
+
var startMonth = new Date(this.min.getFullYear(), this.min.getMonth(), 1);
|
|
7372
|
+
if (!isNullOrUndefined(this.startValue) && isCustomMin && +this.startValue <= +startMonth) {
|
|
7373
|
+
this.startValue = this.min;
|
|
7374
|
+
}
|
|
7375
|
+
var endMonth = new Date(this.max.getFullYear(), this.max.getMonth() + 1, 0);
|
|
7376
|
+
if (!isNullOrUndefined(this.endValue) && isCustomMax && +this.endValue >= +endMonth) {
|
|
7377
|
+
this.endValue = this.max;
|
|
7378
|
+
}
|
|
7379
|
+
}
|
|
7380
|
+
else if (this.currentView() === 'Decade' && this.depth === 'Decade') {
|
|
7381
|
+
if (!isNullOrUndefined(this.startValue) && isCustomMin && this.startValue.getFullYear() <= this.min.getFullYear()) {
|
|
7382
|
+
this.startValue = this.min;
|
|
7383
|
+
}
|
|
7384
|
+
else if (isCustomMin && this.startValue.getFullYear() > this.min.getFullYear()) {
|
|
7385
|
+
this.startValue = new Date(this.startValue.getFullYear(), 0, 1);
|
|
7386
|
+
}
|
|
7387
|
+
if (!isNullOrUndefined(this.endValue) && isCustomMax && this.endValue.getFullYear() >= this.max.getFullYear()) {
|
|
7388
|
+
this.endValue = this.max;
|
|
7389
|
+
}
|
|
7390
|
+
}
|
|
7362
7391
|
if (event) {
|
|
7363
7392
|
leftCalendar = closest(event.target, '.' + LEFTCALENDER);
|
|
7364
7393
|
}
|
|
@@ -11509,7 +11538,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
11509
11538
|
keyConfigs: this.keyConfigure,
|
|
11510
11539
|
eventName: 'keydown'
|
|
11511
11540
|
});
|
|
11512
|
-
if (this.
|
|
11541
|
+
if (this.inputElement && (this.showClearButton || this.enableMask)) {
|
|
11513
11542
|
EventHandler.add(this.inputElement, 'mousedown', this.mouseDownHandler, this);
|
|
11514
11543
|
}
|
|
11515
11544
|
}
|