@syncfusion/ej2-calendars 20.1.56 → 20.2.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/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 +115 -14
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +117 -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/helpers/e2e/calendarHelper.js +86 -70
- package/helpers/e2e/datepickerHelper.js +95 -79
- package/helpers/e2e/daterangepickerHelper.js +128 -112
- package/helpers/e2e/datetimepickerHelper.js +125 -109
- package/helpers/e2e/index.js +12 -10
- package/helpers/e2e/timepickerHelper.js +62 -46
- package/package.json +10 -10
- package/src/calendar/calendar.js +4 -0
- package/src/datepicker/datepicker.d.ts +1 -0
- package/src/datepicker/datepicker.js +2 -0
- package/src/daterangepicker/daterangepicker.d.ts +2 -0
- package/src/daterangepicker/daterangepicker.js +62 -8
- package/src/maskbase/interface.d.ts +1 -0
- package/src/maskbase/masked-date-time.d.ts +2 -0
- package/src/maskbase/masked-date-time.js +49 -6
- package/styles/bootstrap-dark.css +96 -491
- package/styles/bootstrap.css +96 -491
- package/styles/bootstrap4.css +96 -493
- package/styles/bootstrap5-dark.css +97 -499
- package/styles/bootstrap5.css +97 -499
- package/styles/calendar/_fusionnew-definition.scss +224 -0
- package/styles/calendar/_material3-definition.scss +224 -0
- package/styles/calendar/bootstrap-dark.css +50 -238
- package/styles/calendar/bootstrap.css +50 -238
- package/styles/calendar/bootstrap4.css +50 -238
- package/styles/calendar/bootstrap5-dark.css +51 -246
- package/styles/calendar/bootstrap5.css +51 -246
- package/styles/calendar/fabric-dark.css +50 -237
- package/styles/calendar/fabric.css +50 -238
- package/styles/calendar/fluent-dark.css +56 -270
- package/styles/calendar/fluent.css +56 -270
- package/styles/calendar/highcontrast-light.css +50 -238
- package/styles/calendar/highcontrast.css +50 -238
- package/styles/calendar/icons/_fusionnew.scss +12 -0
- package/styles/calendar/icons/_material3.scss +12 -0
- package/styles/calendar/material-dark.css +50 -238
- package/styles/calendar/material.css +50 -238
- package/styles/calendar/tailwind-dark.css +53 -261
- package/styles/calendar/tailwind.css +53 -261
- package/styles/datepicker/_fusionnew-definition.scss +42 -0
- package/styles/datepicker/_material3-definition.scss +42 -0
- package/styles/datepicker/bootstrap-dark.css +7 -20
- package/styles/datepicker/bootstrap.css +7 -20
- package/styles/datepicker/bootstrap4.css +7 -21
- package/styles/datepicker/bootstrap5-dark.css +7 -20
- package/styles/datepicker/bootstrap5.css +7 -20
- package/styles/datepicker/fabric-dark.css +7 -20
- package/styles/datepicker/fabric.css +7 -20
- package/styles/datepicker/fluent-dark.css +7 -21
- package/styles/datepicker/fluent.css +7 -21
- package/styles/datepicker/highcontrast-light.css +7 -21
- package/styles/datepicker/highcontrast.css +7 -21
- package/styles/datepicker/icons/_fusionnew.scss +55 -0
- package/styles/datepicker/icons/_material3.scss +55 -0
- package/styles/datepicker/material-dark.css +7 -22
- package/styles/datepicker/material.css +7 -23
- package/styles/datepicker/tailwind-dark.css +7 -21
- package/styles/datepicker/tailwind.css +7 -21
- package/styles/daterangepicker/_fusionnew-definition.scss +223 -0
- package/styles/daterangepicker/_material3-definition.scss +223 -0
- package/styles/daterangepicker/bootstrap-dark.css +32 -184
- package/styles/daterangepicker/bootstrap.css +32 -184
- package/styles/daterangepicker/bootstrap4.css +32 -185
- package/styles/daterangepicker/bootstrap5-dark.css +32 -185
- package/styles/daterangepicker/bootstrap5.css +32 -185
- package/styles/daterangepicker/fabric-dark.css +32 -184
- package/styles/daterangepicker/fabric.css +32 -184
- package/styles/daterangepicker/fluent-dark.css +35 -188
- package/styles/daterangepicker/fluent.css +35 -188
- package/styles/daterangepicker/highcontrast-light.css +32 -184
- package/styles/daterangepicker/highcontrast.css +32 -184
- package/styles/daterangepicker/icons/_fusionnew.scss +67 -0
- package/styles/daterangepicker/icons/_material3.scss +67 -0
- package/styles/daterangepicker/material-dark.css +32 -185
- package/styles/daterangepicker/material.css +32 -186
- package/styles/daterangepicker/tailwind-dark.css +31 -178
- package/styles/daterangepicker/tailwind.css +31 -178
- package/styles/datetimepicker/_fusionnew-definition.scss +55 -0
- package/styles/datetimepicker/_material3-definition.scss +55 -0
- package/styles/datetimepicker/bootstrap-dark.css +7 -30
- package/styles/datetimepicker/bootstrap.css +7 -30
- package/styles/datetimepicker/bootstrap4.css +7 -30
- package/styles/datetimepicker/bootstrap5-dark.css +7 -30
- package/styles/datetimepicker/bootstrap5.css +7 -30
- package/styles/datetimepicker/fabric-dark.css +7 -30
- package/styles/datetimepicker/fabric.css +7 -30
- package/styles/datetimepicker/fluent-dark.css +7 -30
- package/styles/datetimepicker/fluent.css +7 -30
- package/styles/datetimepicker/highcontrast-light.css +7 -30
- package/styles/datetimepicker/highcontrast.css +7 -30
- package/styles/datetimepicker/icons/_fusionnew.scss +11 -0
- package/styles/datetimepicker/icons/_material3.scss +11 -0
- package/styles/datetimepicker/material-dark.css +7 -31
- package/styles/datetimepicker/material.css +7 -32
- package/styles/datetimepicker/tailwind-dark.css +7 -30
- package/styles/datetimepicker/tailwind.css +7 -30
- package/styles/fabric-dark.css +96 -490
- package/styles/fabric.css +96 -491
- package/styles/fluent-dark.css +105 -527
- package/styles/fluent.css +105 -527
- package/styles/highcontrast-light.css +96 -492
- package/styles/highcontrast.css +96 -492
- package/styles/material-dark.css +96 -496
- package/styles/material.css +96 -500
- package/styles/tailwind-dark.css +98 -509
- package/styles/tailwind.css +98 -509
- package/styles/timepicker/_fusionnew-definition.scss +52 -0
- package/styles/timepicker/_material3-definition.scss +52 -0
- package/styles/timepicker/bootstrap-dark.css +4 -22
- package/styles/timepicker/bootstrap.css +4 -22
- package/styles/timepicker/bootstrap4.css +4 -22
- package/styles/timepicker/bootstrap5-dark.css +4 -22
- package/styles/timepicker/bootstrap5.css +4 -22
- package/styles/timepicker/fabric-dark.css +4 -22
- package/styles/timepicker/fabric.css +4 -22
- package/styles/timepicker/fluent-dark.css +4 -22
- package/styles/timepicker/fluent.css +4 -22
- package/styles/timepicker/highcontrast-light.css +4 -22
- package/styles/timepicker/highcontrast.css +4 -22
- package/styles/timepicker/icons/_fusionnew.scss +13 -0
- package/styles/timepicker/icons/_material3.scss +13 -0
- package/styles/timepicker/material-dark.css +4 -23
- package/styles/timepicker/material.css +4 -24
- package/styles/timepicker/tailwind-dark.css +4 -22
- package/styles/timepicker/tailwind.css +4 -22
|
@@ -1,110 +1,126 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
define(["require", "exports", "@syncfusion/ej2-base/helpers/e2e"], function (require, exports, e2e_1) {
|
|
15
|
+
"use strict";
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var datetimepickerHelper = (function (_super) {
|
|
18
|
+
__extends(datetimepickerHelper, _super);
|
|
19
|
+
function datetimepickerHelper(id, wrapperFn) {
|
|
20
|
+
var _this = _super.call(this) || this;
|
|
21
|
+
_this.id = id;
|
|
22
|
+
if (wrapperFn !== undefined) {
|
|
23
|
+
_this.wrapperFn = wrapperFn;
|
|
24
|
+
}
|
|
25
|
+
return _this;
|
|
10
26
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
return
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
27
|
+
datetimepickerHelper.prototype.selector = function (arg) {
|
|
28
|
+
return (this.wrapperFn ? this.wrapperFn(arg) : arg);
|
|
29
|
+
};
|
|
30
|
+
datetimepickerHelper.prototype.getElement = function () {
|
|
31
|
+
return this.selector('#' + this.id);
|
|
32
|
+
};
|
|
33
|
+
datetimepickerHelper.prototype.getDateIcon = function () {
|
|
34
|
+
return this.selector('.e-datetime-wrapper .e-date-icon');
|
|
35
|
+
};
|
|
36
|
+
datetimepickerHelper.prototype.getTimeIcon = function () {
|
|
37
|
+
return this.selector('.e-datetime-wrapper .e-time-icon');
|
|
38
|
+
};
|
|
39
|
+
datetimepickerHelper.prototype.getClearIcon = function () {
|
|
40
|
+
return this.selector('.e-datetime-wrapper .e-clear-icon');
|
|
41
|
+
};
|
|
42
|
+
datetimepickerHelper.prototype.getInputFocus = function () {
|
|
43
|
+
return this.selector('.e-datetime-wrapper.e-input-focus');
|
|
44
|
+
};
|
|
45
|
+
datetimepickerHelper.prototype.getPopupElement = function () {
|
|
46
|
+
return this.selector('.e-datepicker.e-popup-wrapper');
|
|
47
|
+
};
|
|
48
|
+
datetimepickerHelper.prototype.getCalender = function () {
|
|
49
|
+
return this.selector('.e-datepicker .e-calendar.e-lib.e-keyboard');
|
|
50
|
+
};
|
|
51
|
+
datetimepickerHelper.prototype.getCalendarMonthHeader = function () {
|
|
52
|
+
return this.selector('.e-datepicker .e-calendar .e-header.e-month');
|
|
53
|
+
};
|
|
54
|
+
datetimepickerHelper.prototype.getCalendarYearHeader = function () {
|
|
55
|
+
return this.selector('.e-datepicker .e-calendar .e-header.e-year');
|
|
56
|
+
};
|
|
57
|
+
datetimepickerHelper.prototype.getCalendarDecadeHeader = function () {
|
|
58
|
+
return this.selector('.e-datepicker .e-calendar .e-header.e-decade');
|
|
59
|
+
};
|
|
60
|
+
datetimepickerHelper.prototype.getTitleElement = function () {
|
|
61
|
+
return this.selector('.e-datepicker .e-calendar .e-header .e-day.e-title');
|
|
62
|
+
};
|
|
63
|
+
datetimepickerHelper.prototype.getIconContainer = function () {
|
|
64
|
+
return this.selector('.e-datepicker .e-calendar .e-header .e-icon-container');
|
|
65
|
+
};
|
|
66
|
+
datetimepickerHelper.prototype.getPrevIcon = function () {
|
|
67
|
+
return this.selector('.e-datepicker .e-calendar .e-header .e-icon-container .e-prev');
|
|
68
|
+
};
|
|
69
|
+
datetimepickerHelper.prototype.getNextIcon = function () {
|
|
70
|
+
return this.selector('.e-datepicker .e-calendar .e-header .e-icon-container .e-next');
|
|
71
|
+
};
|
|
72
|
+
datetimepickerHelper.prototype.getWeeKHeader = function () {
|
|
73
|
+
return this.selector('.e-datepicker .e-calendar .e-content .e-week-header');
|
|
74
|
+
};
|
|
75
|
+
datetimepickerHelper.prototype.getCellElement = function () {
|
|
76
|
+
return this.selector('.e-datepicker .e-calendar .e-content .e-cell');
|
|
77
|
+
};
|
|
78
|
+
datetimepickerHelper.prototype.getOtherMonthCellElement = function () {
|
|
79
|
+
return this.selector('.e-datepicker .e-calendar .e-content .e-cell.e-other-month');
|
|
80
|
+
};
|
|
81
|
+
datetimepickerHelper.prototype.getSelectedCellElement = function () {
|
|
82
|
+
return this.selector('.e-datepicker .e-calendar .e-content .e-cell.e-selected');
|
|
83
|
+
};
|
|
84
|
+
datetimepickerHelper.prototype.getTodayElement = function () {
|
|
85
|
+
return this.selector('.e-datepicker .e-calendar .e-content .e-cell.e-today');
|
|
86
|
+
};
|
|
87
|
+
datetimepickerHelper.prototype.getDisabledElement = function () {
|
|
88
|
+
return this.selector('.e-datepicker .e-calendar .e-content .e-cell.e-disabled.e-overlay');
|
|
89
|
+
};
|
|
90
|
+
datetimepickerHelper.prototype.getFocusedElement = function () {
|
|
91
|
+
return this.selector('.e-datepicker .e-calendar .e-content .e-cell.e-focused-date');
|
|
92
|
+
};
|
|
93
|
+
datetimepickerHelper.prototype.getWeenkendElement = function () {
|
|
94
|
+
return this.selector('.e-datepicker .e-calendar .e-content .e-cell.e-weekend');
|
|
95
|
+
};
|
|
96
|
+
datetimepickerHelper.prototype.getFooterContainer = function () {
|
|
97
|
+
return this.selector('.e-datepicker .e-calendar .e-footer-container');
|
|
98
|
+
};
|
|
99
|
+
datetimepickerHelper.prototype.getToday = function () {
|
|
100
|
+
return this.selector('.e-datepicker .e-calendar .e-footer-container .e-today');
|
|
101
|
+
};
|
|
102
|
+
datetimepickerHelper.prototype.getWeekNumber = function () {
|
|
103
|
+
return this.selector('.e-datepicker .e-calendar.e-week-number .e-content .e-cell.e-week-number');
|
|
104
|
+
};
|
|
105
|
+
datetimepickerHelper.prototype.getTimePopup = function () {
|
|
106
|
+
return this.selector('.e-datetimepicker.e-popup');
|
|
107
|
+
};
|
|
108
|
+
datetimepickerHelper.prototype.getTimePopupContent = function () {
|
|
109
|
+
return this.selector('.e-datetimepicker.e-popup .e-content .e-list-parent');
|
|
110
|
+
};
|
|
111
|
+
datetimepickerHelper.prototype.getTimePopupItem = function () {
|
|
112
|
+
return this.selector('.e-datetimepicker.e-popup .e-content .e-list-parent .e-list-item');
|
|
113
|
+
};
|
|
114
|
+
datetimepickerHelper.prototype.getTimePopupActiveItem = function () {
|
|
115
|
+
return this.selector('.e-datetimepicker.e-popup .e-content .e-list-parent .e-list-item.e-active');
|
|
116
|
+
};
|
|
117
|
+
datetimepickerHelper.prototype.getTimePopupHoverItem = function () {
|
|
118
|
+
return this.selector('.e-datetimepicker.e-popup .e-content .e-list-parent .e-list-item.e-hover');
|
|
119
|
+
};
|
|
120
|
+
datetimepickerHelper.prototype.getTimePopupDisabledItem = function () {
|
|
121
|
+
return this.selector('.e-datetimepicker.e-popup .e-content .e-list-parent .e-list-item.e-disabled');
|
|
122
|
+
};
|
|
123
|
+
return datetimepickerHelper;
|
|
124
|
+
}(e2e_1.TestHelper));
|
|
125
|
+
exports.datetimepickerHelper = datetimepickerHelper;
|
|
126
|
+
});
|
package/helpers/e2e/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
__export(
|
|
8
|
-
__export(
|
|
9
|
-
__export(
|
|
10
|
-
__export(
|
|
1
|
+
define(["require", "exports", "./calendarHelper", "./datepickerHelper", "./datetimepickerHelper", "./daterangepickerHelper", "./timepickerHelper"], function (require, exports, calendarHelper_1, datepickerHelper_1, datetimepickerHelper_1, daterangepickerHelper_1, timepickerHelper_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
function __export(m) {
|
|
4
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
__export(calendarHelper_1);
|
|
8
|
+
__export(datepickerHelper_1);
|
|
9
|
+
__export(datetimepickerHelper_1);
|
|
10
|
+
__export(daterangepickerHelper_1);
|
|
11
|
+
__export(timepickerHelper_1);
|
|
12
|
+
});
|
|
@@ -1,47 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
define(["require", "exports", "@syncfusion/ej2-base/helpers/e2e"], function (require, exports, e2e_1) {
|
|
15
|
+
"use strict";
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var timepickerHelper = (function (_super) {
|
|
18
|
+
__extends(timepickerHelper, _super);
|
|
19
|
+
function timepickerHelper(id, wrapperFn) {
|
|
20
|
+
var _this = _super.call(this) || this;
|
|
21
|
+
_this.id = id;
|
|
22
|
+
if (wrapperFn !== undefined) {
|
|
23
|
+
_this.wrapperFn = wrapperFn;
|
|
24
|
+
}
|
|
25
|
+
return _this;
|
|
10
26
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
27
|
+
timepickerHelper.prototype.selector = function (arg) {
|
|
28
|
+
return (this.wrapperFn ? this.wrapperFn(arg) : arg);
|
|
29
|
+
};
|
|
30
|
+
timepickerHelper.prototype.getElement = function () {
|
|
31
|
+
return this.selector('#' + this.id);
|
|
32
|
+
};
|
|
33
|
+
timepickerHelper.prototype.getTimePickerInput = function () {
|
|
34
|
+
return this.selector('.e-control.e-timepicker.e-lib.e-input');
|
|
35
|
+
};
|
|
36
|
+
timepickerHelper.prototype.getTimePickerIcon = function () {
|
|
37
|
+
return this.selector('.e-time-wrapper .e-time-icon');
|
|
38
|
+
};
|
|
39
|
+
timepickerHelper.prototype.getTimePickerClearIcon = function () {
|
|
40
|
+
return this.selector('.e-time-wrapper .e-clear-icon');
|
|
41
|
+
};
|
|
42
|
+
timepickerHelper.prototype.getTimePicker = function () {
|
|
43
|
+
return this.selector('.e-input-group.e-control-wrapper');
|
|
44
|
+
};
|
|
45
|
+
timepickerHelper.prototype.getTimePickerContent = function () {
|
|
46
|
+
return this.selector('.e-timepicker .e-content');
|
|
47
|
+
};
|
|
48
|
+
timepickerHelper.prototype.getTimePickerListContent = function () {
|
|
49
|
+
return this.selector('.e-timepicker .e-content .e-list-parent');
|
|
50
|
+
};
|
|
51
|
+
timepickerHelper.prototype.getTimePickerListItem = function () {
|
|
52
|
+
return this.selector('.e-timepicker .e-content .e-list-parent .e-list-item');
|
|
53
|
+
};
|
|
54
|
+
timepickerHelper.prototype.getTimePickerDisabledTime = function () {
|
|
55
|
+
return this.selector('.e-timepicker .e-content .e-list-parent .e-list-item.e-disabled');
|
|
56
|
+
};
|
|
57
|
+
timepickerHelper.prototype.getTimePickerSelectedTime = function () {
|
|
58
|
+
return this.selector('.e-timepicker .e-content .e-list-parent .e-list-item.e-active');
|
|
59
|
+
};
|
|
60
|
+
return timepickerHelper;
|
|
61
|
+
}(e2e_1.TestHelper));
|
|
62
|
+
exports.timepickerHelper = timepickerHelper;
|
|
63
|
+
});
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-calendars@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-calendars@
|
|
3
|
+
"_id": "@syncfusion/ej2-calendars@18.29.2",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-MuOL7C9+HqtHwhH084J+MsNyH34ido8mHtAQEsIdTZWbwuj/tg5YxhC8PCPszG4z8/YZHhdDMRuFpatB+mGG+g==",
|
|
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": "http://nexus.syncfusion.com/repository/ej2-
|
|
36
|
-
"_shasum": "
|
|
35
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-calendars/-/ej2-calendars-18.29.2.tgz",
|
|
36
|
+
"_shasum": "d6b8c311d201d00f8322939e0acb955093667213",
|
|
37
37
|
"_spec": "@syncfusion/ej2-calendars@*",
|
|
38
38
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
39
39
|
"author": {
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
},
|
|
45
45
|
"bundleDependencies": false,
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@syncfusion/ej2-base": "~20.
|
|
48
|
-
"@syncfusion/ej2-buttons": "~20.
|
|
49
|
-
"@syncfusion/ej2-inputs": "~20.
|
|
50
|
-
"@syncfusion/ej2-lists": "~20.
|
|
51
|
-
"@syncfusion/ej2-popups": "~20.
|
|
47
|
+
"@syncfusion/ej2-base": "~20.2.36",
|
|
48
|
+
"@syncfusion/ej2-buttons": "~20.2.36",
|
|
49
|
+
"@syncfusion/ej2-inputs": "~20.2.36",
|
|
50
|
+
"@syncfusion/ej2-lists": "~20.2.36",
|
|
51
|
+
"@syncfusion/ej2-popups": "~20.2.36"
|
|
52
52
|
},
|
|
53
53
|
"deprecated": false,
|
|
54
54
|
"description": "A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization.",
|
|
@@ -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": "20.
|
|
84
|
+
"version": "20.2.36",
|
|
85
85
|
"sideEffects": false
|
|
86
86
|
}
|
package/src/calendar/calendar.js
CHANGED
|
@@ -238,6 +238,10 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
238
238
|
duration: 400,
|
|
239
239
|
isCenterRipple: true
|
|
240
240
|
});
|
|
241
|
+
if (this.getModuleName() === 'daterangepicker') {
|
|
242
|
+
attributes(this.previousIcon, { tabIndex: '-1' });
|
|
243
|
+
attributes(this.nextIcon, { tabIndex: '-1' });
|
|
244
|
+
}
|
|
241
245
|
attributes(this.nextIcon, ariaNextAttrs);
|
|
242
246
|
this.headerTitleElement = this.createElement('div', { className: '' + LINK + ' ' + TITLE });
|
|
243
247
|
attributes(this.headerTitleElement, ariaTitleAttrs);
|
|
@@ -62,6 +62,7 @@ export declare class DatePicker extends Calendar implements IInput {
|
|
|
62
62
|
protected isIconClicked: boolean;
|
|
63
63
|
protected isDynamicValueChanged: boolean;
|
|
64
64
|
protected moduleName: string;
|
|
65
|
+
protected isFocused: boolean;
|
|
65
66
|
/**
|
|
66
67
|
* Specifies the width of the DatePicker component.
|
|
67
68
|
*
|
|
@@ -85,6 +85,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
85
85
|
_this.isIconClicked = false;
|
|
86
86
|
_this.isDynamicValueChanged = false;
|
|
87
87
|
_this.moduleName = _this.getModuleName();
|
|
88
|
+
_this.isFocused = false;
|
|
88
89
|
_this.datepickerOptions = options;
|
|
89
90
|
return _this;
|
|
90
91
|
}
|
|
@@ -650,6 +651,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
650
651
|
}
|
|
651
652
|
};
|
|
652
653
|
DatePicker.prototype.inputFocusHandler = function () {
|
|
654
|
+
this.isFocused = true;
|
|
653
655
|
if (!this.enabled) {
|
|
654
656
|
return;
|
|
655
657
|
}
|
|
@@ -642,7 +642,9 @@ export declare class DateRangePicker extends CalendarBase {
|
|
|
642
642
|
private errorClass;
|
|
643
643
|
private keyCalendarUpdate;
|
|
644
644
|
private navInCalendar;
|
|
645
|
+
private firstCellToFocus;
|
|
645
646
|
private keyInputHandler;
|
|
647
|
+
private tabKeyValidation;
|
|
646
648
|
private keyNavigation;
|
|
647
649
|
private inputHandler;
|
|
648
650
|
private bindCalendarCellEvents;
|
|
@@ -344,7 +344,7 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
344
344
|
this.validationAttribute(this.element, this.inputElement);
|
|
345
345
|
}
|
|
346
346
|
this.checkHtmlAttributes(false);
|
|
347
|
-
merge(this.defaultKeyConfigs, { shiftTab: 'shift+tab' });
|
|
347
|
+
merge(this.defaultKeyConfigs, { shiftTab: 'shift+tab', tab: 'tab' });
|
|
348
348
|
var start = this.checkDateValue(new Date(this.checkValue(this.startValue)));
|
|
349
349
|
this.setProperties({ startDate: start }, true); // persist the value propeerty.
|
|
350
350
|
this.setProperties({ endValue: this.checkDateValue(new Date(this.checkValue(this.endValue))) }, true);
|
|
@@ -1055,8 +1055,11 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
1057
|
};
|
|
1058
|
-
DateRangePicker.prototype.keyCalendarUpdate = function (isLeftCalendar, ele) {
|
|
1059
|
-
|
|
1058
|
+
DateRangePicker.prototype.keyCalendarUpdate = function (isLeftCalendar, ele, isRemoveFocus) {
|
|
1059
|
+
if (isRemoveFocus === void 0) { isRemoveFocus = true; }
|
|
1060
|
+
if (isRemoveFocus) {
|
|
1061
|
+
this.removeFocusedDate();
|
|
1062
|
+
}
|
|
1060
1063
|
if (isLeftCalendar) {
|
|
1061
1064
|
this.leftCalCurrentDate = new Date(+this.currentDate);
|
|
1062
1065
|
ele = this.leftCalendar;
|
|
@@ -1157,8 +1160,37 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
1157
1160
|
}
|
|
1158
1161
|
this.keyNavigation(ele, e);
|
|
1159
1162
|
break;
|
|
1163
|
+
case 'tab':
|
|
1164
|
+
if (this.tabKeyValidation(ele, LEFTCALENDER)) {
|
|
1165
|
+
ele = this.keyCalendarUpdate(false, ele, false);
|
|
1166
|
+
var focusedCell = ele.querySelector('.e-focused-date');
|
|
1167
|
+
if (isNullOrUndefined(focusedCell)) {
|
|
1168
|
+
this.currentDate = this.firstCellToFocus(this.rightCalendar);
|
|
1169
|
+
}
|
|
1170
|
+
this.keyboardNavigate(0, view, e, max, min);
|
|
1171
|
+
this.keyNavigation(ele, e);
|
|
1172
|
+
}
|
|
1173
|
+
break;
|
|
1174
|
+
case 'shiftTab':
|
|
1175
|
+
if (this.tabKeyValidation(ele, RIGHTCALENDER)) {
|
|
1176
|
+
ele = this.keyCalendarUpdate(true, ele, false);
|
|
1177
|
+
var focusedCell = ele.querySelector('.e-focused-date');
|
|
1178
|
+
if (isNullOrUndefined(focusedCell)) {
|
|
1179
|
+
this.currentDate = this.firstCellToFocus(this.leftCalendar);
|
|
1180
|
+
}
|
|
1181
|
+
this.keyboardNavigate(0, view, e, max, min);
|
|
1182
|
+
this.keyNavigation(ele, e);
|
|
1183
|
+
}
|
|
1184
|
+
break;
|
|
1160
1185
|
}
|
|
1161
1186
|
};
|
|
1187
|
+
DateRangePicker.prototype.firstCellToFocus = function (calendar) {
|
|
1188
|
+
var focusAbleEle = calendar.children[1].firstElementChild.querySelector('td.e-cell:not(.e-week-number):not(.e-disabled):not(.e-other-month)');
|
|
1189
|
+
var focusEleID = focusAbleEle && focusAbleEle.id ? focusAbleEle.id.split('_')[0] : null;
|
|
1190
|
+
var currentFirstDay = new Date(this.currentDate.getFullYear(), this.currentDate.getMonth(), 1);
|
|
1191
|
+
var focusDate = focusEleID ? new Date(+focusEleID) : currentFirstDay;
|
|
1192
|
+
return focusDate;
|
|
1193
|
+
};
|
|
1162
1194
|
DateRangePicker.prototype.keyInputHandler = function (e, value) {
|
|
1163
1195
|
var date;
|
|
1164
1196
|
var view = this.getViewNumber(this.currentView());
|
|
@@ -1349,19 +1381,39 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
1349
1381
|
this.presetElement.focus();
|
|
1350
1382
|
this.removeFocusedDate();
|
|
1351
1383
|
}
|
|
1352
|
-
|
|
1384
|
+
if (isLeftCalendar) {
|
|
1385
|
+
e.preventDefault();
|
|
1386
|
+
}
|
|
1387
|
+
if (this.tabKeyValidation(ele, RIGHTCALENDER)) {
|
|
1388
|
+
this.currentDate = new Date(+this.leftCalCurrentDate);
|
|
1389
|
+
this.navInCalendar(e, isLeftCalendar, leftDateLimit, rightDateLimit, ele);
|
|
1390
|
+
}
|
|
1353
1391
|
break;
|
|
1354
1392
|
case 'spacebar':
|
|
1355
1393
|
if (this.applyButton && !this.applyButton.disabled) {
|
|
1356
1394
|
this.applyFunction(e);
|
|
1357
1395
|
}
|
|
1358
1396
|
break;
|
|
1397
|
+
case 'tab':
|
|
1398
|
+
if (this.tabKeyValidation(ele, LEFTCALENDER)) {
|
|
1399
|
+
this.currentDate = new Date(+this.rightCalCurrentDate);
|
|
1400
|
+
this.navInCalendar(e, isLeftCalendar, leftDateLimit, rightDateLimit, ele);
|
|
1401
|
+
}
|
|
1402
|
+
break;
|
|
1359
1403
|
default:
|
|
1360
1404
|
this.navInCalendar(e, isLeftCalendar, leftDateLimit, rightDateLimit, ele);
|
|
1361
1405
|
this.checkMinMaxDays();
|
|
1362
1406
|
}
|
|
1363
1407
|
this.presetHeight();
|
|
1364
1408
|
};
|
|
1409
|
+
DateRangePicker.prototype.tabKeyValidation = function (ele, calendarPos) {
|
|
1410
|
+
var isLeftCalendar = ele.classList.contains(calendarPos);
|
|
1411
|
+
var rightHeader = this.rightCalendar.querySelector('.e-header');
|
|
1412
|
+
var leftHeader = this.leftCalendar.querySelector('.e-header');
|
|
1413
|
+
var isRightMonth = rightHeader ? rightHeader.classList.contains('e-month') : false;
|
|
1414
|
+
var isLeftMonth = leftHeader ? leftHeader.classList.contains('e-month') : false;
|
|
1415
|
+
return isLeftCalendar && isLeftMonth && isRightMonth && !this.isMobile;
|
|
1416
|
+
};
|
|
1365
1417
|
DateRangePicker.prototype.keyNavigation = function (calendar, e) {
|
|
1366
1418
|
this.bindCalendarCellEvents(calendar);
|
|
1367
1419
|
if (calendar.classList.contains(LEFTCALENDER)) {
|
|
@@ -2103,9 +2155,10 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
2103
2155
|
}
|
|
2104
2156
|
this.removeFocusedDate();
|
|
2105
2157
|
};
|
|
2106
|
-
DateRangePicker.prototype.updateControl = function (calendar) {
|
|
2158
|
+
DateRangePicker.prototype.updateControl = function (calendar, customDate) {
|
|
2159
|
+
if (customDate === void 0) { customDate = null; }
|
|
2107
2160
|
if (calendar.classList.contains(RIGHTCALENDER)) {
|
|
2108
|
-
this.rightCalCurrentDate = new Date(+this.currentDate);
|
|
2161
|
+
this.rightCalCurrentDate = new Date(+(customDate ? customDate : this.currentDate));
|
|
2109
2162
|
}
|
|
2110
2163
|
else {
|
|
2111
2164
|
this.leftCalCurrentDate = new Date(+this.currentDate);
|
|
@@ -2433,7 +2486,7 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
2433
2486
|
this.rightCalNextIcon = this.calendarElement.querySelector('.' + RIGHTCALENDER + ' .' + NEXTICON);
|
|
2434
2487
|
this.rightTitle = this.calendarElement.querySelector('.' + RIGHTCALENDER + ' .' + TITLE);
|
|
2435
2488
|
remove(this.calendarElement.querySelector('.' + RIGHTCALENDER + ' .' + ICONCONTAINER));
|
|
2436
|
-
this.calendarElement.querySelector('table').setAttribute('tabindex', '
|
|
2489
|
+
this.calendarElement.querySelector('table').setAttribute('tabindex', '0');
|
|
2437
2490
|
this.calendarElement.querySelector('.' + RIGHTCALENDER + ' .' + HEADER).appendChild(this.rightCalNextIcon);
|
|
2438
2491
|
this.calendarElement.querySelector('.' + RIGHTCALENDER + ' .' + HEADER).appendChild(this.rightCalPrevIcon);
|
|
2439
2492
|
prepend([this.rightCalPrevIcon], this.calendarElement.querySelector('.' + RIGHTCALENDER + ' .' + HEADER));
|
|
@@ -2547,7 +2600,8 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
2547
2600
|
this.updateControl(this.leftCalendar);
|
|
2548
2601
|
this.updateCalendarElement(this.rightCalendar);
|
|
2549
2602
|
_super.prototype.navigateTo.call(this, view, this.rightCalCurrentDate);
|
|
2550
|
-
this.
|
|
2603
|
+
var customDate = this.rightCalCurrentDate ? this.rightCalCurrentDate : this.currentDate;
|
|
2604
|
+
this.updateControl(this.rightCalendar, customDate);
|
|
2551
2605
|
this.updateNavIcons();
|
|
2552
2606
|
this.calendarIconEvent();
|
|
2553
2607
|
this.calendarIconRipple();
|
|
@@ -26,6 +26,7 @@ export declare class MaskedDateTime {
|
|
|
26
26
|
private isComplete;
|
|
27
27
|
private previousDate;
|
|
28
28
|
private isNavigate;
|
|
29
|
+
private navigated;
|
|
29
30
|
private formatRegex;
|
|
30
31
|
private isDeletion;
|
|
31
32
|
private isShortYear;
|
|
@@ -48,6 +49,7 @@ export declare class MaskedDateTime {
|
|
|
48
49
|
private setDynamicValue;
|
|
49
50
|
private setSelection;
|
|
50
51
|
private maskKeydownHandler;
|
|
52
|
+
private isPersist;
|
|
51
53
|
private differenceCheck;
|
|
52
54
|
private formatCheck;
|
|
53
55
|
private maskInputHandler;
|