@syncfusion/ej2-calendars 22.2.11 → 23.1.36
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/CHANGELOG.md +0 -50
- 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 +39 -10
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +39 -10
- 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 +11 -11
- package/src/calendar/calendar.js +2 -0
- package/src/datepicker/datepicker.d.ts +2 -0
- package/src/datepicker/datepicker.js +9 -1
- package/src/daterangepicker/daterangepicker.d.ts +2 -0
- package/src/daterangepicker/daterangepicker.js +23 -6
- package/src/datetimepicker/datetimepicker.js +1 -1
- package/src/timepicker/timepicker.js +4 -2
- package/styles/bootstrap-dark.css +91 -40
- package/styles/bootstrap.css +91 -40
- package/styles/bootstrap4.css +91 -40
- package/styles/bootstrap5-dark.css +92 -41
- package/styles/bootstrap5.css +92 -41
- package/styles/calendar/bootstrap-dark.scss +1 -1
- package/styles/calendar/bootstrap.scss +1 -1
- package/styles/calendar/bootstrap4.scss +1 -1
- package/styles/calendar/bootstrap5-dark.scss +1 -1
- package/styles/calendar/bootstrap5.scss +1 -1
- package/styles/calendar/fabric-dark.scss +1 -1
- package/styles/calendar/fabric.scss +1 -1
- package/styles/calendar/fluent-dark.scss +1 -1
- package/styles/calendar/fluent.scss +1 -1
- package/styles/calendar/highcontrast-light.scss +1 -1
- package/styles/calendar/highcontrast.scss +1 -1
- package/styles/calendar/material-dark.css +0 -1
- package/styles/calendar/material-dark.scss +1 -1
- package/styles/calendar/material.css +0 -1
- package/styles/calendar/material.scss +1 -1
- package/styles/calendar/material3-dark.css +0 -1
- package/styles/calendar/material3-dark.scss +1 -1
- package/styles/calendar/material3.css +0 -1
- package/styles/calendar/material3.scss +1 -1
- package/styles/calendar/tailwind-dark.css +0 -1
- package/styles/calendar/tailwind-dark.scss +1 -1
- package/styles/calendar/tailwind.css +0 -1
- package/styles/calendar/tailwind.scss +1 -1
- package/styles/datepicker/_bootstrap-dark-definition.scss +5 -5
- package/styles/datepicker/_bootstrap-definition.scss +5 -5
- package/styles/datepicker/_bootstrap4-definition.scss +5 -5
- package/styles/datepicker/_bootstrap5-definition.scss +6 -6
- package/styles/datepicker/_fabric-dark-definition.scss +4 -4
- package/styles/datepicker/_fabric-definition.scss +6 -6
- package/styles/datepicker/_fluent-definition.scss +4 -4
- package/styles/datepicker/_fusionnew-definition.scss +5 -5
- package/styles/datepicker/_highcontrast-definition.scss +5 -5
- package/styles/datepicker/_highcontrast-light-definition.scss +5 -5
- package/styles/datepicker/_layout.scss +34 -9
- package/styles/datepicker/_material-dark-definition.scss +4 -4
- package/styles/datepicker/_material-definition.scss +4 -4
- package/styles/datepicker/_material3-definition.scss +4 -4
- package/styles/datepicker/_tailwind-definition.scss +8 -8
- package/styles/datepicker/bootstrap-dark.css +49 -19
- package/styles/datepicker/bootstrap-dark.scss +1 -1
- package/styles/datepicker/bootstrap.css +49 -19
- package/styles/datepicker/bootstrap.scss +1 -1
- package/styles/datepicker/bootstrap4.css +49 -19
- package/styles/datepicker/bootstrap4.scss +1 -1
- package/styles/datepicker/bootstrap5-dark.css +50 -20
- package/styles/datepicker/bootstrap5-dark.scss +1 -1
- package/styles/datepicker/bootstrap5.css +50 -20
- package/styles/datepicker/bootstrap5.scss +1 -1
- package/styles/datepicker/fabric-dark.css +48 -18
- package/styles/datepicker/fabric-dark.scss +1 -1
- package/styles/datepicker/fabric.css +49 -19
- package/styles/datepicker/fabric.scss +1 -1
- package/styles/datepicker/fluent-dark.css +48 -18
- package/styles/datepicker/fluent-dark.scss +1 -1
- package/styles/datepicker/fluent.css +48 -18
- package/styles/datepicker/fluent.scss +1 -1
- package/styles/datepicker/highcontrast-light.css +49 -19
- package/styles/datepicker/highcontrast-light.scss +1 -1
- package/styles/datepicker/highcontrast.css +49 -19
- package/styles/datepicker/highcontrast.scss +1 -1
- package/styles/datepicker/material-dark.css +48 -19
- package/styles/datepicker/material-dark.scss +1 -1
- package/styles/datepicker/material.css +48 -19
- package/styles/datepicker/material.scss +1 -1
- package/styles/datepicker/material3-dark.css +48 -19
- package/styles/datepicker/material3-dark.scss +1 -1
- package/styles/datepicker/material3.css +48 -19
- package/styles/datepicker/material3.scss +1 -1
- package/styles/datepicker/tailwind-dark.css +52 -23
- package/styles/datepicker/tailwind-dark.scss +1 -1
- package/styles/datepicker/tailwind.css +52 -23
- package/styles/datepicker/tailwind.scss +1 -1
- package/styles/daterangepicker/_bootstrap-dark-definition.scss +4 -4
- package/styles/daterangepicker/_bootstrap-definition.scss +4 -4
- package/styles/daterangepicker/_bootstrap4-definition.scss +4 -4
- package/styles/daterangepicker/_bootstrap5-definition.scss +4 -4
- package/styles/daterangepicker/_fabric-dark-definition.scss +4 -4
- package/styles/daterangepicker/_fabric-definition.scss +4 -4
- package/styles/daterangepicker/_fluent-definition.scss +4 -4
- package/styles/daterangepicker/_fusionnew-definition.scss +4 -4
- package/styles/daterangepicker/_highcontrast-definition.scss +4 -4
- package/styles/daterangepicker/_highcontrast-light-definition.scss +4 -4
- package/styles/daterangepicker/_layout.scss +48 -19
- package/styles/daterangepicker/_material-dark-definition.scss +4 -4
- package/styles/daterangepicker/_material-definition.scss +4 -4
- package/styles/daterangepicker/_material3-definition.scss +8 -5
- package/styles/daterangepicker/_tailwind-definition.scss +5 -5
- package/styles/daterangepicker/bootstrap-dark.css +30 -26
- package/styles/daterangepicker/bootstrap-dark.scss +1 -1
- package/styles/daterangepicker/bootstrap.css +30 -26
- package/styles/daterangepicker/bootstrap.scss +1 -1
- package/styles/daterangepicker/bootstrap4.css +30 -26
- package/styles/daterangepicker/bootstrap4.scss +1 -1
- package/styles/daterangepicker/bootstrap5-dark.css +30 -26
- package/styles/daterangepicker/bootstrap5-dark.scss +1 -1
- package/styles/daterangepicker/bootstrap5.css +30 -26
- package/styles/daterangepicker/bootstrap5.scss +1 -1
- package/styles/daterangepicker/fabric-dark.css +30 -26
- package/styles/daterangepicker/fabric-dark.scss +1 -1
- package/styles/daterangepicker/fabric.css +30 -26
- package/styles/daterangepicker/fabric.scss +1 -1
- package/styles/daterangepicker/fluent-dark.css +30 -26
- package/styles/daterangepicker/fluent-dark.scss +1 -1
- package/styles/daterangepicker/fluent.css +30 -26
- package/styles/daterangepicker/fluent.scss +1 -1
- package/styles/daterangepicker/highcontrast-light.css +30 -26
- package/styles/daterangepicker/highcontrast-light.scss +1 -1
- package/styles/daterangepicker/highcontrast.css +30 -26
- package/styles/daterangepicker/highcontrast.scss +1 -1
- package/styles/daterangepicker/material-dark.css +30 -27
- package/styles/daterangepicker/material-dark.scss +1 -1
- package/styles/daterangepicker/material.css +30 -27
- package/styles/daterangepicker/material.scss +1 -1
- package/styles/daterangepicker/material3-dark.css +53 -28
- package/styles/daterangepicker/material3-dark.scss +1 -1
- package/styles/daterangepicker/material3.css +53 -28
- package/styles/daterangepicker/material3.scss +1 -1
- package/styles/daterangepicker/tailwind-dark.css +31 -28
- package/styles/daterangepicker/tailwind-dark.scss +1 -1
- package/styles/daterangepicker/tailwind.css +31 -28
- package/styles/daterangepicker/tailwind.scss +1 -1
- package/styles/datetimepicker/bootstrap-dark.scss +1 -1
- package/styles/datetimepicker/bootstrap.scss +1 -1
- package/styles/datetimepicker/bootstrap4.scss +1 -1
- package/styles/datetimepicker/bootstrap5-dark.scss +1 -1
- package/styles/datetimepicker/bootstrap5.scss +1 -1
- package/styles/datetimepicker/fabric-dark.scss +1 -1
- package/styles/datetimepicker/fabric.scss +1 -1
- package/styles/datetimepicker/fluent-dark.scss +1 -1
- package/styles/datetimepicker/fluent.scss +1 -1
- package/styles/datetimepicker/highcontrast-light.scss +1 -1
- package/styles/datetimepicker/highcontrast.scss +1 -1
- package/styles/datetimepicker/material-dark.css +0 -1
- package/styles/datetimepicker/material-dark.scss +1 -1
- package/styles/datetimepicker/material.css +0 -1
- package/styles/datetimepicker/material.scss +1 -1
- package/styles/datetimepicker/material3-dark.css +0 -1
- package/styles/datetimepicker/material3-dark.scss +1 -1
- package/styles/datetimepicker/material3.css +0 -1
- package/styles/datetimepicker/material3.scss +1 -1
- package/styles/datetimepicker/tailwind-dark.css +0 -1
- package/styles/datetimepicker/tailwind-dark.scss +1 -1
- package/styles/datetimepicker/tailwind.css +0 -1
- package/styles/datetimepicker/tailwind.scss +1 -1
- package/styles/fabric-dark.css +90 -39
- package/styles/fabric.css +103 -52
- package/styles/fluent-dark.css +90 -39
- package/styles/fluent.css +90 -39
- package/styles/highcontrast-light.css +91 -40
- package/styles/highcontrast.css +91 -40
- package/styles/material-dark.css +90 -40
- package/styles/material.css +90 -40
- package/styles/material3-dark.css +113 -41
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.css +113 -41
- package/styles/material3.scss +1 -1
- package/styles/tailwind-dark.css +95 -49
- package/styles/tailwind.css +95 -49
- package/styles/timepicker/_bootstrap-dark-definition.scss +2 -2
- package/styles/timepicker/_bootstrap-definition.scss +2 -2
- package/styles/timepicker/_bootstrap4-definition.scss +2 -2
- package/styles/timepicker/_bootstrap5-definition.scss +2 -2
- package/styles/timepicker/_fabric-dark-definition.scss +2 -2
- package/styles/timepicker/_fabric-definition.scss +4 -4
- package/styles/timepicker/_fluent-definition.scss +2 -2
- package/styles/timepicker/_fusionnew-definition.scss +2 -2
- package/styles/timepicker/_highcontrast-definition.scss +2 -2
- package/styles/timepicker/_highcontrast-light-definition.scss +2 -2
- package/styles/timepicker/_layout.scss +16 -0
- package/styles/timepicker/_material-dark-definition.scss +2 -2
- package/styles/timepicker/_material-definition.scss +2 -2
- package/styles/timepicker/_material3-definition.scss +2 -2
- package/styles/timepicker/_tailwind-definition.scss +2 -2
- package/styles/timepicker/_theme.scss +1 -0
- package/styles/timepicker/bootstrap-dark.css +19 -2
- package/styles/timepicker/bootstrap-dark.scss +1 -1
- package/styles/timepicker/bootstrap.css +19 -2
- package/styles/timepicker/bootstrap.scss +1 -1
- package/styles/timepicker/bootstrap4.css +19 -2
- package/styles/timepicker/bootstrap4.scss +1 -1
- package/styles/timepicker/bootstrap5-dark.css +19 -2
- package/styles/timepicker/bootstrap5-dark.scss +1 -1
- package/styles/timepicker/bootstrap5.css +19 -2
- package/styles/timepicker/bootstrap5.scss +1 -1
- package/styles/timepicker/fabric-dark.css +19 -2
- package/styles/timepicker/fabric-dark.scss +1 -1
- package/styles/timepicker/fabric.css +22 -5
- package/styles/timepicker/fabric.scss +1 -1
- package/styles/timepicker/fluent-dark.css +19 -2
- package/styles/timepicker/fluent-dark.scss +1 -1
- package/styles/timepicker/fluent.css +19 -2
- package/styles/timepicker/fluent.scss +1 -1
- package/styles/timepicker/highcontrast-light.css +19 -2
- package/styles/timepicker/highcontrast-light.scss +1 -1
- package/styles/timepicker/highcontrast.css +19 -2
- package/styles/timepicker/highcontrast.scss +1 -1
- package/styles/timepicker/material-dark.css +19 -3
- package/styles/timepicker/material-dark.scss +1 -1
- package/styles/timepicker/material.css +19 -3
- package/styles/timepicker/material.scss +1 -1
- package/styles/timepicker/material3-dark.css +19 -3
- package/styles/timepicker/material3-dark.scss +1 -1
- package/styles/timepicker/material3.css +19 -3
- package/styles/timepicker/material3.scss +1 -1
- package/styles/timepicker/tailwind-dark.css +19 -3
- package/styles/timepicker/tailwind-dark.scss +1 -1
- package/styles/timepicker/tailwind.css +19 -3
- package/styles/timepicker/tailwind.scss +1 -1
|
@@ -1472,6 +1472,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1472
1472
|
}
|
|
1473
1473
|
this.todayElement = null;
|
|
1474
1474
|
this.tableBodyElement = null;
|
|
1475
|
+
this.todayButtonEvent = null;
|
|
1475
1476
|
this.renderDayCellArgs = null;
|
|
1476
1477
|
this.headerElement = null;
|
|
1477
1478
|
this.nextIcon = null;
|
|
@@ -2419,6 +2420,7 @@ var Calendar = /** @__PURE__ @class */ (function (_super) {
|
|
|
2419
2420
|
Calendar.prototype.destroy = function () {
|
|
2420
2421
|
_super.prototype.destroy.call(this);
|
|
2421
2422
|
if (this.getModuleName() === 'calendar') {
|
|
2423
|
+
this.changedArgs = null;
|
|
2422
2424
|
var form = closest(this.element, 'form');
|
|
2423
2425
|
if (form) {
|
|
2424
2426
|
EventHandler.remove(form, 'reset', this.formResetHandler.bind(this));
|
|
@@ -3245,6 +3247,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
3245
3247
|
_this.moduleName = _this.getModuleName();
|
|
3246
3248
|
_this.isFocused = false;
|
|
3247
3249
|
_this.isBlur = false;
|
|
3250
|
+
_this.isKeyAction = false;
|
|
3248
3251
|
_this.datepickerOptions = options;
|
|
3249
3252
|
return _this;
|
|
3250
3253
|
}
|
|
@@ -3575,6 +3578,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
3575
3578
|
EventHandler.add(this.inputElement, 'mouseup', this.mouseUpHandler, this);
|
|
3576
3579
|
EventHandler.add(this.inputElement, 'focus', this.inputFocusHandler, this);
|
|
3577
3580
|
EventHandler.add(this.inputElement, 'blur', this.inputBlurHandler, this);
|
|
3581
|
+
EventHandler.add(this.inputElement, 'keyup', this.keyupHandler, this);
|
|
3578
3582
|
if (this.enableMask) {
|
|
3579
3583
|
EventHandler.add(this.inputElement, 'keydown', this.keydownHandler, this);
|
|
3580
3584
|
}
|
|
@@ -3625,6 +3629,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
3625
3629
|
EventHandler.remove(this.inputElement, 'focus', this.inputFocusHandler);
|
|
3626
3630
|
EventHandler.remove(this.inputElement, 'blur', this.inputBlurHandler);
|
|
3627
3631
|
EventHandler.remove(this.inputElement, 'change', this.inputChangeHandler);
|
|
3632
|
+
EventHandler.remove(this.inputElement, 'keyup', this.keyupHandler);
|
|
3628
3633
|
if (this.enableMask) {
|
|
3629
3634
|
EventHandler.remove(this.inputElement, 'keydown', this.keydownHandler);
|
|
3630
3635
|
}
|
|
@@ -4316,12 +4321,16 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
4316
4321
|
this.isInteracted = true;
|
|
4317
4322
|
}
|
|
4318
4323
|
}
|
|
4324
|
+
this.isKeyAction = false;
|
|
4319
4325
|
};
|
|
4320
4326
|
DatePicker.prototype.navigatedEvent = function () {
|
|
4321
4327
|
this.trigger('navigated', this.navigatedArgs);
|
|
4322
4328
|
};
|
|
4329
|
+
DatePicker.prototype.keyupHandler = function (e) {
|
|
4330
|
+
this.isKeyAction = (this.inputElement.value !== this.previousElementValue) ? true : false;
|
|
4331
|
+
};
|
|
4323
4332
|
DatePicker.prototype.changeEvent = function (event) {
|
|
4324
|
-
if (!this.isIconClicked && !this.isBlur) {
|
|
4333
|
+
if (!this.isIconClicked && !(this.isBlur || this.isKeyAction)) {
|
|
4325
4334
|
this.selectCalendar(event);
|
|
4326
4335
|
}
|
|
4327
4336
|
if (((this.previousDate && this.previousDate.valueOf()) !== (this.value && this.value.valueOf()))) {
|
|
@@ -4341,6 +4350,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
4341
4350
|
else if (event) {
|
|
4342
4351
|
this.hide(event);
|
|
4343
4352
|
}
|
|
4353
|
+
this.isKeyAction = false;
|
|
4344
4354
|
};
|
|
4345
4355
|
DatePicker.prototype.requiredModules = function () {
|
|
4346
4356
|
var modules = [];
|
|
@@ -5375,6 +5385,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
5375
5385
|
_this.invalidValueString = null;
|
|
5376
5386
|
_this.isAngular = false;
|
|
5377
5387
|
_this.preventChange = false;
|
|
5388
|
+
_this.isKeyPressed = false;
|
|
5378
5389
|
_this.dateRangeOptions = options;
|
|
5379
5390
|
return _this;
|
|
5380
5391
|
}
|
|
@@ -5730,6 +5741,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
5730
5741
|
EventHandler.add(this.inputElement, 'focus', this.inputFocusHandler, this);
|
|
5731
5742
|
EventHandler.add(this.inputElement, 'blur', this.inputBlurHandler, this);
|
|
5732
5743
|
EventHandler.add(this.inputElement, 'change', this.inputChangeHandler, this);
|
|
5744
|
+
EventHandler.add(this.inputElement, 'keyup', this.keyupHandler, this);
|
|
5733
5745
|
if (this.showClearButton && this.inputWrapper.clearButton) {
|
|
5734
5746
|
EventHandler.add(this.inputWrapper.clearButton, 'mousedown', this.resetHandler, this);
|
|
5735
5747
|
}
|
|
@@ -5756,6 +5768,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
5756
5768
|
EventHandler.remove(this.inputElement, 'blur', this.inputBlurHandler);
|
|
5757
5769
|
EventHandler.remove(this.inputElement, 'focus', this.inputFocusHandler);
|
|
5758
5770
|
EventHandler.remove(this.inputElement, 'change', this.inputChangeHandler);
|
|
5771
|
+
EventHandler.remove(this.inputElement, 'keyup', this.keyupHandler);
|
|
5759
5772
|
if (this.showClearButton && this.inputWrapper.clearButton) {
|
|
5760
5773
|
EventHandler.remove(this.inputWrapper.clearButton, 'mousedown touchstart', this.resetHandler);
|
|
5761
5774
|
}
|
|
@@ -5904,7 +5917,9 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
5904
5917
|
this.show(null, e);
|
|
5905
5918
|
if (!this.isMobile) {
|
|
5906
5919
|
if (!isNullOrUndefined(this.leftCalendar)) {
|
|
5920
|
+
this.isRangeIconClicked = false;
|
|
5907
5921
|
this.calendarFocus();
|
|
5922
|
+
this.isRangeIconClicked = true;
|
|
5908
5923
|
}
|
|
5909
5924
|
}
|
|
5910
5925
|
addClass([this.inputWrapper.container], [INPUTFOCUS$1]);
|
|
@@ -7075,11 +7090,16 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
7075
7090
|
if (event) {
|
|
7076
7091
|
leftCalendar = closest(event.target, '.' + LEFTCALENDER);
|
|
7077
7092
|
}
|
|
7078
|
-
if (
|
|
7079
|
-
|
|
7093
|
+
if (!isNullOrUndefined(leftCalendar)) {
|
|
7094
|
+
this.leftCalendar.children[1].firstElementChild.focus();
|
|
7080
7095
|
}
|
|
7081
|
-
|
|
7082
|
-
|
|
7096
|
+
else {
|
|
7097
|
+
if (event) {
|
|
7098
|
+
rightCalendar = event && closest(event.target, '.' + RIGHTCALENDER);
|
|
7099
|
+
}
|
|
7100
|
+
if (!isNullOrUndefined(rightCalendar)) {
|
|
7101
|
+
this.rightCalendar.children[1].firstElementChild.focus();
|
|
7102
|
+
}
|
|
7083
7103
|
}
|
|
7084
7104
|
addClass([ele], SELECTED$3);
|
|
7085
7105
|
this.calendarIconEvent();
|
|
@@ -7981,6 +8001,9 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
7981
8001
|
this.startButton.element.classList.add(ACTIVE$1);
|
|
7982
8002
|
}
|
|
7983
8003
|
};
|
|
8004
|
+
DateRangePicker.prototype.keyupHandler = function (e) {
|
|
8005
|
+
this.isKeyPressed = (this.inputElement.value !== this.previousEleValue) ? true : false;
|
|
8006
|
+
};
|
|
7984
8007
|
DateRangePicker.prototype.applyFunction = function (eve) {
|
|
7985
8008
|
var isValueChanged = false;
|
|
7986
8009
|
if (eve.type !== 'touchstart') {
|
|
@@ -8006,7 +8029,10 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
8006
8029
|
this.previousStartValue = new Date(+this.startValue);
|
|
8007
8030
|
this.previousEndValue = new Date(+this.endValue);
|
|
8008
8031
|
this.previousEleValue = this.inputElement.value;
|
|
8009
|
-
|
|
8032
|
+
if (!this.isKeyPressed) {
|
|
8033
|
+
Input.setValue(this.rangeArgs(eve).text, this.inputElement, this.floatLabelType, this.showClearButton);
|
|
8034
|
+
}
|
|
8035
|
+
this.isKeyPressed = false;
|
|
8010
8036
|
if (+this.initStartDate !== +this.startValue || +this.initEndDate !== +this.endValue) {
|
|
8011
8037
|
isValueChanged = true;
|
|
8012
8038
|
}
|
|
@@ -8319,7 +8345,8 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
8319
8345
|
EventHandler.remove(document, 'keydown', _this.popupCloseHandler);
|
|
8320
8346
|
}
|
|
8321
8347
|
}, targetExitViewport: function () {
|
|
8322
|
-
|
|
8348
|
+
var popupEle = _this.popupObj && _this.popupObj.element;
|
|
8349
|
+
if (!Browser.isDevice && popupEle && popupEle.getBoundingClientRect().height < popupEle.parentElement.getBoundingClientRect().height) {
|
|
8323
8350
|
_this.hide();
|
|
8324
8351
|
}
|
|
8325
8352
|
}
|
|
@@ -10815,7 +10842,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
10815
10842
|
};
|
|
10816
10843
|
TimePicker.prototype.inputHandler = function (event) {
|
|
10817
10844
|
if (!this.readonly && this.enabled) {
|
|
10818
|
-
if (!((event.action == 'right' || event.action == 'left' || event.action == 'tab') || ((event.action == 'home' || event.action == 'end') && !this.isPopupOpen()))) {
|
|
10845
|
+
if (!((event.action == 'right' || event.action == 'left' || event.action == 'tab') || ((event.action == 'home' || event.action == 'end' || event.action == 'up' || event.action == 'down') && !this.isPopupOpen() && !this.enableMask))) {
|
|
10819
10846
|
event.preventDefault();
|
|
10820
10847
|
}
|
|
10821
10848
|
switch (event.action) {
|
|
@@ -11618,7 +11645,9 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
11618
11645
|
this.isNavigate = true;
|
|
11619
11646
|
this.setHover(this.selectedElement, NAVIGATION);
|
|
11620
11647
|
this.setActiveDescendant();
|
|
11621
|
-
this.
|
|
11648
|
+
if (this.enableMask) {
|
|
11649
|
+
this.selectInputText();
|
|
11650
|
+
}
|
|
11622
11651
|
if (this.isPopupOpen() && this.selectedElement !== null && (!event || event.type !== 'click')) {
|
|
11623
11652
|
this.setScrollPosition();
|
|
11624
11653
|
}
|
|
@@ -12979,7 +13008,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12979
13008
|
if (!_this.preventArgs.cancel && !_this.readonly) {
|
|
12980
13009
|
var openAnimation = {
|
|
12981
13010
|
name: 'FadeIn',
|
|
12982
|
-
duration: ANIMATIONDURATION$1
|
|
13011
|
+
duration: ANIMATIONDURATION$1,
|
|
12983
13012
|
};
|
|
12984
13013
|
if (_this.zIndex === 1000) {
|
|
12985
13014
|
_this.popupObject.show(new Animation(openAnimation), _this.element);
|