@syncfusion/ej2-calendars 22.2.11 → 22.2.12
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 +20 -0
- 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 +23 -4
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +23 -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 +7 -7
- 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 +10 -1
- package/src/timepicker/timepicker.js +4 -2
- package/styles/calendar/material-dark.css +1 -1
- package/styles/datepicker/material-dark.css +1 -1
- package/styles/daterangepicker/material-dark.css +1 -1
- package/styles/datetimepicker/material-dark.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/timepicker/material-dark.css +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 22.2.
|
|
3
|
+
* version : 22.2.12
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-calendars@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-calendars@22.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-calendars@22.2.11",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-cwzDz6pAW40PxeOL7ChHzThrzubj01e3xIwcS2OyHLIAX5DX58JtNo/iGtHmui+Zum7JpHuAWe4hrIG6GerqIQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-calendars",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"/@syncfusion/ej2-schedule",
|
|
33
33
|
"/@syncfusion/ej2-vue-calendars"
|
|
34
34
|
],
|
|
35
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-22.2.
|
|
36
|
-
"_shasum": "
|
|
35
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-22.2.11.tgz",
|
|
36
|
+
"_shasum": "fa83b13c8bf2ac2f0d1eb48c5cceb9bd20753189",
|
|
37
37
|
"_spec": "@syncfusion/ej2-calendars@*",
|
|
38
38
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
39
39
|
"author": {
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
},
|
|
45
45
|
"bundleDependencies": false,
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@syncfusion/ej2-base": "~22.2.
|
|
47
|
+
"@syncfusion/ej2-base": "~22.2.12",
|
|
48
48
|
"@syncfusion/ej2-buttons": "~22.2.9",
|
|
49
|
-
"@syncfusion/ej2-inputs": "~22.2.
|
|
49
|
+
"@syncfusion/ej2-inputs": "~22.2.12",
|
|
50
50
|
"@syncfusion/ej2-lists": "~22.2.11",
|
|
51
51
|
"@syncfusion/ej2-popups": "~22.2.11"
|
|
52
52
|
},
|
|
@@ -81,6 +81,6 @@
|
|
|
81
81
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
82
82
|
},
|
|
83
83
|
"typings": "index.d.ts",
|
|
84
|
-
"version": "22.2.
|
|
84
|
+
"version": "22.2.12",
|
|
85
85
|
"sideEffects": false
|
|
86
86
|
}
|
|
@@ -68,6 +68,7 @@ export declare class DatePicker extends Calendar implements IInput {
|
|
|
68
68
|
protected touchStart: boolean;
|
|
69
69
|
protected iconRight: boolean;
|
|
70
70
|
protected isBlur: boolean;
|
|
71
|
+
private isKeyAction;
|
|
71
72
|
/**
|
|
72
73
|
* Specifies the width of the DatePicker component.
|
|
73
74
|
*
|
|
@@ -448,6 +449,7 @@ export declare class DatePicker extends Calendar implements IInput {
|
|
|
448
449
|
private modelCloseHandler;
|
|
449
450
|
protected changeTrigger(event?: MouseEvent | KeyboardEvent): void;
|
|
450
451
|
protected navigatedEvent(): void;
|
|
452
|
+
protected keyupHandler(e: KeyboardEventArgs): void;
|
|
451
453
|
protected changeEvent(event?: MouseEvent | KeyboardEvent | Event): void;
|
|
452
454
|
requiredModules(): ModuleDeclaration[];
|
|
453
455
|
protected selectCalendar(e?: MouseEvent | KeyboardEvent | Event): void;
|
|
@@ -86,6 +86,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
86
86
|
_this.moduleName = _this.getModuleName();
|
|
87
87
|
_this.isFocused = false;
|
|
88
88
|
_this.isBlur = false;
|
|
89
|
+
_this.isKeyAction = false;
|
|
89
90
|
_this.datepickerOptions = options;
|
|
90
91
|
return _this;
|
|
91
92
|
}
|
|
@@ -416,6 +417,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
416
417
|
EventHandler.add(this.inputElement, 'mouseup', this.mouseUpHandler, this);
|
|
417
418
|
EventHandler.add(this.inputElement, 'focus', this.inputFocusHandler, this);
|
|
418
419
|
EventHandler.add(this.inputElement, 'blur', this.inputBlurHandler, this);
|
|
420
|
+
EventHandler.add(this.inputElement, 'keyup', this.keyupHandler, this);
|
|
419
421
|
if (this.enableMask) {
|
|
420
422
|
EventHandler.add(this.inputElement, 'keydown', this.keydownHandler, this);
|
|
421
423
|
}
|
|
@@ -466,6 +468,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
466
468
|
EventHandler.remove(this.inputElement, 'focus', this.inputFocusHandler);
|
|
467
469
|
EventHandler.remove(this.inputElement, 'blur', this.inputBlurHandler);
|
|
468
470
|
EventHandler.remove(this.inputElement, 'change', this.inputChangeHandler);
|
|
471
|
+
EventHandler.remove(this.inputElement, 'keyup', this.keyupHandler);
|
|
469
472
|
if (this.enableMask) {
|
|
470
473
|
EventHandler.remove(this.inputElement, 'keydown', this.keydownHandler);
|
|
471
474
|
}
|
|
@@ -1157,12 +1160,16 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1157
1160
|
this.isInteracted = true;
|
|
1158
1161
|
}
|
|
1159
1162
|
}
|
|
1163
|
+
this.isKeyAction = false;
|
|
1160
1164
|
};
|
|
1161
1165
|
DatePicker.prototype.navigatedEvent = function () {
|
|
1162
1166
|
this.trigger('navigated', this.navigatedArgs);
|
|
1163
1167
|
};
|
|
1168
|
+
DatePicker.prototype.keyupHandler = function (e) {
|
|
1169
|
+
this.isKeyAction = (this.inputElement.value !== this.previousElementValue) ? true : false;
|
|
1170
|
+
};
|
|
1164
1171
|
DatePicker.prototype.changeEvent = function (event) {
|
|
1165
|
-
if (!this.isIconClicked && !this.isBlur) {
|
|
1172
|
+
if (!this.isIconClicked && !(this.isBlur || this.isKeyAction)) {
|
|
1166
1173
|
this.selectCalendar(event);
|
|
1167
1174
|
}
|
|
1168
1175
|
if (((this.previousDate && this.previousDate.valueOf()) !== (this.value && this.value.valueOf()))) {
|
|
@@ -1182,6 +1189,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1182
1189
|
else if (event) {
|
|
1183
1190
|
this.hide(event);
|
|
1184
1191
|
}
|
|
1192
|
+
this.isKeyAction = false;
|
|
1185
1193
|
};
|
|
1186
1194
|
DatePicker.prototype.requiredModules = function () {
|
|
1187
1195
|
var modules = [];
|
|
@@ -173,6 +173,7 @@ export declare class DateRangePicker extends CalendarBase {
|
|
|
173
173
|
protected touchRangeModule: Touch;
|
|
174
174
|
protected touchRangeStart: boolean;
|
|
175
175
|
protected iconRangeRight: string;
|
|
176
|
+
private isKeyPressed;
|
|
176
177
|
/**
|
|
177
178
|
* Gets or sets the start and end date of the Calendar.
|
|
178
179
|
* {% codeBlock src='daterangepicker/value/index.md' %}{% endcodeBlock %}
|
|
@@ -715,6 +716,7 @@ export declare class DateRangePicker extends CalendarBase {
|
|
|
715
716
|
private modelRangeCloseHandler;
|
|
716
717
|
private cancelFunction;
|
|
717
718
|
private deviceHeaderUpdate;
|
|
719
|
+
private keyupHandler;
|
|
718
720
|
private applyFunction;
|
|
719
721
|
private onMouseClick;
|
|
720
722
|
private onMouseOver;
|
|
@@ -147,6 +147,7 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
147
147
|
_this.invalidValueString = null;
|
|
148
148
|
_this.isAngular = false;
|
|
149
149
|
_this.preventChange = false;
|
|
150
|
+
_this.isKeyPressed = false;
|
|
150
151
|
_this.dateRangeOptions = options;
|
|
151
152
|
return _this;
|
|
152
153
|
}
|
|
@@ -502,6 +503,7 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
502
503
|
EventHandler.add(this.inputElement, 'focus', this.inputFocusHandler, this);
|
|
503
504
|
EventHandler.add(this.inputElement, 'blur', this.inputBlurHandler, this);
|
|
504
505
|
EventHandler.add(this.inputElement, 'change', this.inputChangeHandler, this);
|
|
506
|
+
EventHandler.add(this.inputElement, 'keyup', this.keyupHandler, this);
|
|
505
507
|
if (this.showClearButton && this.inputWrapper.clearButton) {
|
|
506
508
|
EventHandler.add(this.inputWrapper.clearButton, 'mousedown', this.resetHandler, this);
|
|
507
509
|
}
|
|
@@ -528,6 +530,7 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
528
530
|
EventHandler.remove(this.inputElement, 'blur', this.inputBlurHandler);
|
|
529
531
|
EventHandler.remove(this.inputElement, 'focus', this.inputFocusHandler);
|
|
530
532
|
EventHandler.remove(this.inputElement, 'change', this.inputChangeHandler);
|
|
533
|
+
EventHandler.remove(this.inputElement, 'keyup', this.keyupHandler);
|
|
531
534
|
if (this.showClearButton && this.inputWrapper.clearButton) {
|
|
532
535
|
EventHandler.remove(this.inputWrapper.clearButton, 'mousedown touchstart', this.resetHandler);
|
|
533
536
|
}
|
|
@@ -2753,6 +2756,9 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
2753
2756
|
this.startButton.element.classList.add(ACTIVE);
|
|
2754
2757
|
}
|
|
2755
2758
|
};
|
|
2759
|
+
DateRangePicker.prototype.keyupHandler = function (e) {
|
|
2760
|
+
this.isKeyPressed = (this.inputElement.value !== this.previousEleValue) ? true : false;
|
|
2761
|
+
};
|
|
2756
2762
|
DateRangePicker.prototype.applyFunction = function (eve) {
|
|
2757
2763
|
var isValueChanged = false;
|
|
2758
2764
|
if (eve.type !== 'touchstart') {
|
|
@@ -2778,7 +2784,10 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
2778
2784
|
this.previousStartValue = new Date(+this.startValue);
|
|
2779
2785
|
this.previousEndValue = new Date(+this.endValue);
|
|
2780
2786
|
this.previousEleValue = this.inputElement.value;
|
|
2781
|
-
|
|
2787
|
+
if (!this.isKeyPressed) {
|
|
2788
|
+
Input.setValue(this.rangeArgs(eve).text, this.inputElement, this.floatLabelType, this.showClearButton);
|
|
2789
|
+
}
|
|
2790
|
+
this.isKeyPressed = false;
|
|
2782
2791
|
if (+this.initStartDate !== +this.startValue || +this.initEndDate !== +this.endValue) {
|
|
2783
2792
|
isValueChanged = true;
|
|
2784
2793
|
}
|
|
@@ -992,7 +992,7 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
992
992
|
};
|
|
993
993
|
TimePicker.prototype.inputHandler = function (event) {
|
|
994
994
|
if (!this.readonly && this.enabled) {
|
|
995
|
-
if (!((event.action == 'right' || event.action == 'left' || event.action == 'tab') || ((event.action == 'home' || event.action == 'end') && !this.isPopupOpen()))) {
|
|
995
|
+
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))) {
|
|
996
996
|
event.preventDefault();
|
|
997
997
|
}
|
|
998
998
|
switch (event.action) {
|
|
@@ -1795,7 +1795,9 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
1795
1795
|
this.isNavigate = true;
|
|
1796
1796
|
this.setHover(this.selectedElement, NAVIGATION);
|
|
1797
1797
|
this.setActiveDescendant();
|
|
1798
|
-
this.
|
|
1798
|
+
if (this.enableMask) {
|
|
1799
|
+
this.selectInputText();
|
|
1800
|
+
}
|
|
1799
1801
|
if (this.isPopupOpen() && this.selectedElement !== null && (!event || event.type !== 'click')) {
|
|
1800
1802
|
this.setScrollPosition();
|
|
1801
1803
|
}
|
package/styles/material-dark.css
CHANGED