@syncfusion/ej2-calendars 20.2.50 → 20.3.47
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 -6
- package/dist/ej2-calendars.min.js +10 -0
- 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 +65 -52
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +65 -52
- 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 +4 -5
- package/src/calendar/islamic.js +4 -4
- package/src/datepicker/datepicker.js +11 -9
- package/src/daterangepicker/daterangepicker.d.ts +1 -0
- package/src/daterangepicker/daterangepicker.js +23 -14
- package/src/datetimepicker/datetimepicker.js +7 -8
- package/src/timepicker/timepicker.js +16 -12
- package/styles/bootstrap-dark.css +13 -184
- package/styles/bootstrap.css +13 -184
- package/styles/bootstrap4.css +13 -184
- package/styles/bootstrap5-dark.css +18 -186
- package/styles/bootstrap5.css +18 -186
- package/styles/calendar/_all.scss +1 -1
- package/styles/calendar/_bootstrap-dark-definition.scss +8 -7
- package/styles/calendar/_bootstrap-definition.scss +6 -6
- package/styles/calendar/_bootstrap4-definition.scss +6 -5
- package/styles/calendar/_bootstrap5-definition.scss +29 -3
- package/styles/calendar/_fabric-dark-definition.scss +4 -1
- package/styles/calendar/_fabric-definition.scss +1 -0
- package/styles/calendar/_fluent-definition.scss +30 -4
- package/styles/calendar/_fusionnew-definition.scss +29 -3
- package/styles/calendar/_highcontrast-light-definition.scss +3 -1
- package/styles/calendar/_layout.scss +153 -95
- package/styles/calendar/_material-dark-definition.scss +3 -1
- package/styles/calendar/_material3-definition.scss +29 -3
- package/styles/calendar/_tailwind-definition.scss +27 -5
- package/styles/calendar/_theme.scss +111 -66
- package/styles/calendar/bootstrap-dark.css +1 -0
- package/styles/calendar/bootstrap.css +1 -0
- package/styles/calendar/bootstrap4.css +1 -0
- package/styles/calendar/bootstrap5-dark.css +1 -0
- package/styles/calendar/bootstrap5.css +1 -0
- package/styles/calendar/fabric-dark.css +1 -0
- package/styles/calendar/fabric.css +1 -0
- package/styles/calendar/fluent-dark.css +1 -0
- package/styles/calendar/fluent.css +1 -0
- package/styles/calendar/highcontrast-light.css +1 -0
- package/styles/calendar/highcontrast.css +1 -0
- package/styles/calendar/icons/_bootstrap-dark.scss +2 -1
- package/styles/calendar/icons/_bootstrap.scss +2 -1
- package/styles/calendar/icons/_bootstrap4.scss +2 -1
- package/styles/calendar/icons/_bootstrap5.scss +2 -1
- package/styles/calendar/icons/_fabric-dark.scss +2 -1
- package/styles/calendar/icons/_fabric.scss +2 -1
- package/styles/calendar/icons/_fluent.scss +2 -1
- package/styles/calendar/icons/_fusionnew.scss +2 -1
- package/styles/calendar/icons/_highcontrast-light.scss +2 -1
- package/styles/calendar/icons/_highcontrast.scss +2 -1
- package/styles/calendar/icons/_material-dark.scss +2 -1
- package/styles/calendar/icons/_material.scss +2 -1
- package/styles/calendar/icons/_material3.scss +2 -1
- package/styles/calendar/icons/_tailwind.scss +2 -1
- package/styles/calendar/material-dark.css +1 -0
- package/styles/calendar/material.css +1 -0
- package/styles/calendar/tailwind-dark.css +2 -0
- package/styles/calendar/tailwind.css +2 -0
- package/styles/datepicker/_all.scss +1 -1
- package/styles/datepicker/_bootstrap-dark-definition.scss +4 -1
- package/styles/datepicker/_bootstrap-definition.scss +2 -0
- package/styles/datepicker/_bootstrap4-definition.scss +2 -0
- package/styles/datepicker/_bootstrap5-definition.scss +5 -1
- package/styles/datepicker/_fabric-dark-definition.scss +3 -0
- package/styles/datepicker/_fabric-definition.scss +2 -0
- package/styles/datepicker/_fluent-definition.scss +4 -1
- package/styles/datepicker/_fusionnew-definition.scss +5 -1
- package/styles/datepicker/_highcontrast-definition.scss +2 -0
- package/styles/datepicker/_highcontrast-light-definition.scss +4 -1
- package/styles/datepicker/_layout.scss +23 -18
- package/styles/datepicker/_material-dark-definition.scss +4 -1
- package/styles/datepicker/_material-definition.scss +2 -0
- package/styles/datepicker/_material3-definition.scss +5 -1
- package/styles/datepicker/_tailwind-definition.scss +5 -1
- package/styles/datepicker/_theme.scss +7 -7
- package/styles/datepicker/bootstrap-dark.css +3 -80
- package/styles/datepicker/bootstrap.css +3 -80
- package/styles/datepicker/bootstrap4.css +3 -80
- package/styles/datepicker/bootstrap5-dark.css +4 -81
- package/styles/datepicker/bootstrap5.css +4 -81
- package/styles/datepicker/fabric-dark.css +3 -80
- package/styles/datepicker/fabric.css +3 -80
- package/styles/datepicker/fluent-dark.css +4 -81
- package/styles/datepicker/fluent.css +4 -81
- package/styles/datepicker/highcontrast-light.css +3 -80
- package/styles/datepicker/highcontrast.css +3 -80
- package/styles/datepicker/icons/_bootstrap-dark.scss +7 -6
- package/styles/datepicker/icons/_bootstrap.scss +7 -6
- package/styles/datepicker/icons/_bootstrap4.scss +7 -6
- package/styles/datepicker/icons/_bootstrap5.scss +7 -6
- package/styles/datepicker/icons/_fabric-dark.scss +6 -5
- package/styles/datepicker/icons/_fabric.scss +7 -6
- package/styles/datepicker/icons/_fluent.scss +7 -6
- package/styles/datepicker/icons/_fusionnew.scss +7 -6
- package/styles/datepicker/icons/_highcontrast-light.scss +7 -6
- package/styles/datepicker/icons/_highcontrast.scss +7 -7
- package/styles/datepicker/icons/_material-dark.scss +7 -6
- package/styles/datepicker/icons/_material.scss +7 -6
- package/styles/datepicker/icons/_material3.scss +7 -6
- package/styles/datepicker/icons/_tailwind.scss +7 -6
- package/styles/datepicker/material-dark.css +3 -80
- package/styles/datepicker/material.css +9 -3
- package/styles/datepicker/tailwind-dark.css +4 -81
- package/styles/datepicker/tailwind.css +4 -81
- package/styles/daterangepicker/_all.scss +1 -1
- package/styles/daterangepicker/_bootstrap-dark-definition.scss +4 -0
- package/styles/daterangepicker/_bootstrap-definition.scss +5 -1
- package/styles/daterangepicker/_bootstrap4-definition.scss +4 -0
- package/styles/daterangepicker/_bootstrap5-definition.scss +7 -0
- package/styles/daterangepicker/_fabric-dark-definition.scss +7 -2
- package/styles/daterangepicker/_fabric-definition.scss +5 -1
- package/styles/daterangepicker/_fluent-definition.scss +6 -1
- package/styles/daterangepicker/_fusionnew-definition.scss +6 -0
- package/styles/daterangepicker/_highcontrast-definition.scss +6 -2
- package/styles/daterangepicker/_highcontrast-light-definition.scss +8 -3
- package/styles/daterangepicker/_layout.scss +144 -71
- package/styles/daterangepicker/_material-dark-definition.scss +7 -2
- package/styles/daterangepicker/_material-definition.scss +6 -1
- package/styles/daterangepicker/_material3-definition.scss +6 -0
- package/styles/daterangepicker/_tailwind-definition.scss +5 -0
- package/styles/daterangepicker/_theme.scss +55 -27
- package/styles/daterangepicker/bootstrap-dark.css +3 -104
- package/styles/daterangepicker/bootstrap.css +3 -104
- package/styles/daterangepicker/bootstrap4.css +3 -104
- package/styles/daterangepicker/bootstrap5-dark.css +5 -105
- package/styles/daterangepicker/bootstrap5.css +5 -105
- package/styles/daterangepicker/fabric-dark.css +3 -104
- package/styles/daterangepicker/fabric.css +3 -104
- package/styles/daterangepicker/fluent-dark.css +4 -105
- package/styles/daterangepicker/fluent.css +4 -105
- package/styles/daterangepicker/highcontrast-light.css +3 -104
- package/styles/daterangepicker/highcontrast.css +3 -104
- package/styles/daterangepicker/icons/_bootstrap-dark.scss +13 -8
- package/styles/daterangepicker/icons/_bootstrap.scss +13 -8
- package/styles/daterangepicker/icons/_bootstrap4.scss +13 -8
- package/styles/daterangepicker/icons/_bootstrap5.scss +13 -8
- package/styles/daterangepicker/icons/_fabric-dark.scss +13 -8
- package/styles/daterangepicker/icons/_fabric.scss +13 -8
- package/styles/daterangepicker/icons/_fluent.scss +13 -8
- package/styles/daterangepicker/icons/_fusionnew.scss +13 -8
- package/styles/daterangepicker/icons/_highcontrast-light.scss +13 -8
- package/styles/daterangepicker/icons/_highcontrast.scss +13 -8
- package/styles/daterangepicker/icons/_material-dark.scss +13 -7
- package/styles/daterangepicker/icons/_material.scss +13 -7
- package/styles/daterangepicker/icons/_material3.scss +13 -8
- package/styles/daterangepicker/icons/_tailwind.scss +13 -8
- package/styles/daterangepicker/material-dark.css +5 -106
- package/styles/daterangepicker/material.css +12 -0
- package/styles/daterangepicker/tailwind-dark.css +5 -105
- package/styles/daterangepicker/tailwind.css +5 -105
- package/styles/datetimepicker/_all.scss +1 -1
- package/styles/datetimepicker/_bootstrap-dark-definition.scss +7 -3
- package/styles/datetimepicker/_bootstrap-definition.scss +6 -1
- package/styles/datetimepicker/_bootstrap4-definition.scss +6 -1
- package/styles/datetimepicker/_bootstrap5-definition.scss +5 -0
- package/styles/datetimepicker/_fabric-dark-definition.scss +5 -0
- package/styles/datetimepicker/_fabric-definition.scss +4 -0
- package/styles/datetimepicker/_fluent-definition.scss +8 -3
- package/styles/datetimepicker/_fusionnew-definition.scss +5 -0
- package/styles/datetimepicker/_highcontrast-definition.scss +4 -0
- package/styles/datetimepicker/_highcontrast-light-definition.scss +6 -1
- package/styles/datetimepicker/_layout.scss +2 -3
- package/styles/datetimepicker/_material-dark-definition.scss +6 -1
- package/styles/datetimepicker/_material-definition.scss +4 -0
- package/styles/datetimepicker/_material3-definition.scss +5 -0
- package/styles/datetimepicker/_tailwind-definition.scss +5 -0
- package/styles/datetimepicker/_theme.scss +2 -1
- package/styles/datetimepicker/bootstrap-dark.css +2 -0
- package/styles/datetimepicker/bootstrap.css +2 -0
- package/styles/datetimepicker/bootstrap4.css +2 -0
- package/styles/datetimepicker/bootstrap5-dark.css +3 -0
- package/styles/datetimepicker/bootstrap5.css +3 -0
- package/styles/datetimepicker/fabric-dark.css +2 -0
- package/styles/datetimepicker/fabric.css +2 -0
- package/styles/datetimepicker/fluent-dark.css +3 -0
- package/styles/datetimepicker/fluent.css +3 -0
- package/styles/datetimepicker/highcontrast-light.css +2 -0
- package/styles/datetimepicker/highcontrast.css +2 -0
- package/styles/datetimepicker/icons/_bootstrap-dark.scss +1 -1
- package/styles/datetimepicker/icons/_bootstrap.scss +1 -1
- package/styles/datetimepicker/icons/_bootstrap4.scss +1 -1
- package/styles/datetimepicker/icons/_bootstrap5.scss +1 -1
- package/styles/datetimepicker/icons/_fabric-dark.scss +1 -1
- package/styles/datetimepicker/icons/_fabric.scss +1 -1
- package/styles/datetimepicker/icons/_fluent.scss +1 -1
- package/styles/datetimepicker/icons/_fusionnew.scss +1 -1
- package/styles/datetimepicker/icons/_highcontrast-light.scss +1 -0
- package/styles/datetimepicker/icons/_highcontrast.scss +1 -1
- package/styles/datetimepicker/icons/_material-dark.scss +1 -1
- package/styles/datetimepicker/icons/_material.scss +1 -0
- package/styles/datetimepicker/icons/_material3.scss +1 -1
- package/styles/datetimepicker/icons/_tailwind.scss +1 -1
- package/styles/datetimepicker/material-dark.css +2 -0
- package/styles/datetimepicker/material.css +2 -0
- package/styles/datetimepicker/tailwind-dark.css +3 -0
- package/styles/datetimepicker/tailwind.css +3 -0
- package/styles/fabric-dark.css +13 -184
- package/styles/fabric.css +13 -186
- package/styles/fluent-dark.css +17 -186
- package/styles/fluent.css +17 -186
- package/styles/highcontrast-light.css +13 -184
- package/styles/highcontrast.css +13 -184
- package/styles/material-dark.css +15 -186
- package/styles/material.css +28 -3
- package/styles/tailwind-dark.css +19 -186
- package/styles/tailwind.css +19 -186
- package/styles/timepicker/_all.scss +1 -1
- package/styles/timepicker/_bootstrap-dark-definition.scss +6 -1
- package/styles/timepicker/_bootstrap-definition.scss +4 -0
- package/styles/timepicker/_bootstrap4-definition.scss +5 -0
- package/styles/timepicker/_bootstrap5-definition.scss +5 -0
- package/styles/timepicker/_fabric-dark-definition.scss +6 -1
- package/styles/timepicker/_fabric-definition.scss +4 -0
- package/styles/timepicker/_fluent-definition.scss +5 -0
- package/styles/timepicker/_fusionnew-definition.scss +5 -0
- package/styles/timepicker/_highcontrast-definition.scss +4 -0
- package/styles/timepicker/_highcontrast-light-definition.scss +6 -1
- package/styles/timepicker/_layout.scss +4 -5
- package/styles/timepicker/_material-dark-definition.scss +6 -1
- package/styles/timepicker/_material-definition.scss +4 -0
- package/styles/timepicker/_material3-definition.scss +5 -0
- package/styles/timepicker/_tailwind-definition.scss +5 -0
- package/styles/timepicker/_theme.scss +2 -1
- package/styles/timepicker/bootstrap-dark.css +4 -0
- package/styles/timepicker/bootstrap.css +4 -0
- package/styles/timepicker/bootstrap4.css +4 -0
- package/styles/timepicker/bootstrap5-dark.css +5 -0
- package/styles/timepicker/bootstrap5.css +5 -0
- package/styles/timepicker/fabric-dark.css +4 -0
- package/styles/timepicker/fabric.css +4 -0
- package/styles/timepicker/fluent-dark.css +5 -0
- package/styles/timepicker/fluent.css +5 -0
- package/styles/timepicker/highcontrast-light.css +4 -0
- package/styles/timepicker/highcontrast.css +4 -0
- package/styles/timepicker/icons/_bootstrap-dark.scss +1 -2
- package/styles/timepicker/icons/_bootstrap.scss +1 -2
- package/styles/timepicker/icons/_bootstrap4.scss +1 -2
- package/styles/timepicker/icons/_bootstrap5.scss +1 -2
- package/styles/timepicker/icons/_fabric-dark.scss +1 -2
- package/styles/timepicker/icons/_fabric.scss +1 -2
- package/styles/timepicker/icons/_fluent.scss +1 -2
- package/styles/timepicker/icons/_fusionnew.scss +1 -2
- package/styles/timepicker/icons/_highcontrast-light.scss +1 -2
- package/styles/timepicker/icons/_highcontrast.scss +1 -2
- package/styles/timepicker/icons/_material-dark.scss +1 -2
- package/styles/timepicker/icons/_material.scss +1 -1
- package/styles/timepicker/icons/_material3.scss +1 -2
- package/styles/timepicker/icons/_tailwind.scss +1 -2
- package/styles/timepicker/material-dark.css +4 -0
- package/styles/timepicker/material.css +4 -0
- package/styles/timepicker/tailwind-dark.css +5 -0
- package/styles/timepicker/tailwind.css +5 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.
|
|
3
|
+
* version : 20.3.47
|
|
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@
|
|
3
|
+
"_id": "@syncfusion/ej2-calendars@18.29.7",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-r5oATghsZmaxkIjMxERQi6aiK4xRGL4R/aBoxhg3RHjx6JHzKJbnx9PyV9yLMd4tg8fb5Bwa7dDWxKYVLuPcXg==",
|
|
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.7.tgz",
|
|
36
|
+
"_shasum": "e84b6925e383db1cec6844879252bd260ab4dd68",
|
|
37
37
|
"_spec": "@syncfusion/ej2-calendars@*",
|
|
38
38
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
39
39
|
"author": {
|
|
@@ -44,16 +44,16 @@
|
|
|
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.3.47",
|
|
48
|
+
"@syncfusion/ej2-buttons": "~20.3.47",
|
|
49
|
+
"@syncfusion/ej2-inputs": "~20.3.47",
|
|
50
|
+
"@syncfusion/ej2-lists": "~20.3.47",
|
|
51
|
+
"@syncfusion/ej2-popups": "~20.3.47"
|
|
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.",
|
|
55
55
|
"devDependencies": {},
|
|
56
|
-
"es2015": "./dist/es6/ej2-calendars.
|
|
56
|
+
"es2015": "./dist/es6/ej2-calendars.es5.js",
|
|
57
57
|
"homepage": "https://github.com/syncfusion/ej2-javascript-ui-controls#readme",
|
|
58
58
|
"keywords": [
|
|
59
59
|
"ej2",
|
|
@@ -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.3.47",
|
|
85
85
|
"sideEffects": false
|
|
86
86
|
}
|
package/src/calendar/calendar.js
CHANGED
|
@@ -134,7 +134,7 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
134
134
|
this.calendarElement.classList.add(DEVICE);
|
|
135
135
|
}
|
|
136
136
|
attributes(this.calendarElement, {
|
|
137
|
-
'role': 'calendar'
|
|
137
|
+
'data-role': 'calendar'
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
this.createHeader();
|
|
@@ -262,7 +262,7 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
262
262
|
};
|
|
263
263
|
CalendarBase.prototype.createContent = function () {
|
|
264
264
|
this.contentElement = this.createElement('div', { className: CONTENT });
|
|
265
|
-
this.table = this.createElement('table', { attrs: { tabIndex: '0', 'role': 'grid', 'aria-activedescendant': '' } });
|
|
265
|
+
this.table = this.createElement('table', { attrs: { tabIndex: '0', 'role': 'grid', 'aria-activedescendant': '', 'aria-labelledby': this.element.id } });
|
|
266
266
|
if (this.getModuleName() === 'calendar') {
|
|
267
267
|
this.element.appendChild(this.contentElement);
|
|
268
268
|
}
|
|
@@ -894,7 +894,6 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
894
894
|
var year = startYear + rowIterator;
|
|
895
895
|
localDate.setFullYear(year);
|
|
896
896
|
var tdEle = this.dayCell(localDate);
|
|
897
|
-
attributes(tdEle, { 'role': 'gridcell' });
|
|
898
897
|
var dayLink = this.createElement('span');
|
|
899
898
|
dayLink.textContent = this.globalize.formatDate(localDate, {
|
|
900
899
|
format: null, type: 'dateTime', skeleton: 'y'
|
|
@@ -935,7 +934,7 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
935
934
|
var date = this.globalize.parseDate(this.globalize.formatDate(localDate, dateFormatOptions), dateFormatOptions);
|
|
936
935
|
var value = date.valueOf();
|
|
937
936
|
var attrs = {
|
|
938
|
-
className: CELL, attrs: { 'id': '' + getUniqueID('' + value), 'aria-selected': 'false'
|
|
937
|
+
className: CELL, attrs: { 'id': '' + getUniqueID('' + value), 'aria-selected': 'false' }
|
|
939
938
|
};
|
|
940
939
|
return this.createElement('td', attrs);
|
|
941
940
|
};
|
|
@@ -1009,7 +1008,7 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
1009
1008
|
var row = count;
|
|
1010
1009
|
var rowIterator = 0;
|
|
1011
1010
|
for (var dayCell = 0; dayCell < elements.length / count; ++dayCell) {
|
|
1012
|
-
trEle = this.createElement('tr'
|
|
1011
|
+
trEle = this.createElement('tr');
|
|
1013
1012
|
for (rowIterator = 0 + rowIterator; rowIterator < row; rowIterator++) {
|
|
1014
1013
|
if (!elements[rowIterator].classList.contains('e-week-number') && !isNullOrUndefined(elements[rowIterator].children[0])) {
|
|
1015
1014
|
addClass([elements[rowIterator].children[0]], [LINK]);
|
package/src/calendar/islamic.js
CHANGED
|
@@ -354,14 +354,14 @@ var Islamic = /** @class */ (function () {
|
|
|
354
354
|
dayLink.textContent = this.calendarInstance.globalize.formatDate(localDate, { type: 'dateTime', format: 'y', calendar: 'islamic' });
|
|
355
355
|
if (islamicDate.year === parseInt(startHdrYr) - 1 || (year_1 < startFullYr) || (year_1 > endFullYr) && islamicDate.year !== parseInt(endHdrYr)) {
|
|
356
356
|
addClass([tdEle], OTHERMONTH);
|
|
357
|
-
if (year_1 < new Date(this.islamicInValue(this.calendarInstance.min)).getFullYear()
|
|
358
|
-
|| year_1 > new Date(this.islamicInValue(this.calendarInstance.max)).getFullYear()) {
|
|
359
|
-
addClass([tdEle], DISABLED);
|
|
360
|
-
}
|
|
361
357
|
}
|
|
362
358
|
else if (year_1 < new Date(this.islamicInValue(this.calendarInstance.min)).getFullYear()
|
|
363
359
|
|| year_1 > new Date(this.islamicInValue(this.calendarInstance.max)).getFullYear()) {
|
|
364
360
|
addClass([tdEle], DISABLED);
|
|
361
|
+
if (year_1 < new Date(this.islamicInValue(this.calendarInstance.min)).getFullYear()
|
|
362
|
+
|| year_1 > new Date(this.islamicInValue(this.calendarInstance.max)).getFullYear()) {
|
|
363
|
+
addClass([tdEle], DISABLED);
|
|
364
|
+
}
|
|
365
365
|
}
|
|
366
366
|
else if (!isNullOrUndefined(value) &&
|
|
367
367
|
(this.getIslamicDate(localDate)).year ===
|
|
@@ -165,10 +165,9 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
165
165
|
};
|
|
166
166
|
DatePicker.prototype.createInput = function () {
|
|
167
167
|
var ariaAttrs = {
|
|
168
|
-
'aria-live': 'assertive', 'aria-atomic': 'true',
|
|
169
|
-
'
|
|
170
|
-
'
|
|
171
|
-
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false'
|
|
168
|
+
'aria-live': 'assertive', 'aria-atomic': 'true', 'aria-expanded': 'false',
|
|
169
|
+
'role': 'combobox', 'autocomplete': 'off', 'autocorrect': 'off',
|
|
170
|
+
'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false'
|
|
172
171
|
};
|
|
173
172
|
if (this.getModuleName() === 'datepicker') {
|
|
174
173
|
var l10nLocale = { placeholder: this.placeholder };
|
|
@@ -1372,8 +1371,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1372
1371
|
}
|
|
1373
1372
|
var ariaAttrs = {
|
|
1374
1373
|
'aria-live': 'assertive', 'aria-atomic': 'true', 'aria-disabled': 'true',
|
|
1375
|
-
'aria-
|
|
1376
|
-
'aria-owns': this.element.id + '_options', 'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
|
|
1374
|
+
'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
|
|
1377
1375
|
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false'
|
|
1378
1376
|
};
|
|
1379
1377
|
if (this.inputElement) {
|
|
@@ -1698,11 +1696,15 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1698
1696
|
DatePicker.prototype.setAriaAttributes = function () {
|
|
1699
1697
|
if (this.isCalendar()) {
|
|
1700
1698
|
Input.addAttributes({ 'aria-expanded': 'true' }, this.inputElement);
|
|
1701
|
-
attributes(this.inputElement, { 'aria-
|
|
1699
|
+
attributes(this.inputElement, { 'aria-owns': this.inputElement.id + '_options' });
|
|
1700
|
+
if (this.value) {
|
|
1701
|
+
attributes(this.inputElement, { 'aria-activedescendant': '' + this.setActiveDescendant() });
|
|
1702
|
+
}
|
|
1702
1703
|
}
|
|
1703
1704
|
else {
|
|
1704
1705
|
Input.addAttributes({ 'aria-expanded': 'false' }, this.inputElement);
|
|
1705
|
-
|
|
1706
|
+
this.inputElement.removeAttribute('aria-owns');
|
|
1707
|
+
this.inputElement.removeAttribute('aria-activedescendant');
|
|
1706
1708
|
}
|
|
1707
1709
|
};
|
|
1708
1710
|
DatePicker.prototype.errorClass = function () {
|
|
@@ -1859,7 +1861,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1859
1861
|
}
|
|
1860
1862
|
break;
|
|
1861
1863
|
}
|
|
1862
|
-
if (!this.isDynamicValueChanged) {
|
|
1864
|
+
if (!this.isDynamicValueChanged && !this.isIconClicked) {
|
|
1863
1865
|
this.hide(null);
|
|
1864
1866
|
}
|
|
1865
1867
|
this.isDynamicValueChanged = false;
|
|
@@ -169,6 +169,7 @@ export declare class DateRangePicker extends CalendarBase {
|
|
|
169
169
|
private mobileRangePopupWrap;
|
|
170
170
|
protected isAngular: boolean;
|
|
171
171
|
protected preventChange: boolean;
|
|
172
|
+
protected isPropChanged: boolean;
|
|
172
173
|
/**
|
|
173
174
|
* Gets or sets the start and end date of the Calendar.
|
|
174
175
|
* {% codeBlock src='daterangepicker/value/index.md' %}{% endcodeBlock %}
|
|
@@ -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.isPropChanged = false;
|
|
150
151
|
_this.dateRangeOptions = options;
|
|
151
152
|
return _this;
|
|
152
153
|
}
|
|
@@ -2334,7 +2335,7 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
2334
2335
|
if (this.enableRtl) {
|
|
2335
2336
|
this.calendarElement.classList.add(RTL);
|
|
2336
2337
|
}
|
|
2337
|
-
attributes(this.calendarElement, { 'role': 'calendar' });
|
|
2338
|
+
attributes(this.calendarElement, { 'data-role': 'calendar' });
|
|
2338
2339
|
_super.prototype.createHeader.call(this);
|
|
2339
2340
|
_super.prototype.createContent.call(this);
|
|
2340
2341
|
};
|
|
@@ -2893,7 +2894,7 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
2893
2894
|
if (!isUndefined(this.presets[0].start && this.presets[0].end && this.presets[0].label)) {
|
|
2894
2895
|
this.presetElement = this.createElement('div', { className: PRESETS, attrs: { 'tabindex': '0' } });
|
|
2895
2896
|
var listTag = ListBase.createList(this.createElement, this.presetsItem, null, true);
|
|
2896
|
-
attributes(listTag, { 'role': 'listbox', 'aria-hidden': 'false', 'id': this.element.id + '_options' });
|
|
2897
|
+
attributes(listTag, { 'role': 'listbox', 'aria-hidden': 'false', 'id': this.element.id + '_options', 'tabindex': '0' });
|
|
2897
2898
|
this.presetElement.appendChild(listTag);
|
|
2898
2899
|
this.popupWrapper.appendChild(this.presetElement);
|
|
2899
2900
|
var customElement = this.presetElement.querySelector('#custom_range');
|
|
@@ -2954,7 +2955,13 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
2954
2955
|
enableRtl: this.enableRtl,
|
|
2955
2956
|
zIndex: this.zIndex,
|
|
2956
2957
|
open: function () {
|
|
2957
|
-
attributes(_this.inputElement, { 'aria-expanded': 'true' });
|
|
2958
|
+
attributes(_this.inputElement, { 'aria-expanded': 'true', 'aria-owns': _this.inputElement.id + '_options' });
|
|
2959
|
+
if (_this.value) {
|
|
2960
|
+
attributes(_this.inputElement, { 'aria-activedescendant': _this.inputElement.id });
|
|
2961
|
+
}
|
|
2962
|
+
else {
|
|
2963
|
+
_this.inputElement.removeAttribute('aria-activedescendant');
|
|
2964
|
+
}
|
|
2958
2965
|
addClass([_this.inputWrapper.buttons[0]], ACTIVE);
|
|
2959
2966
|
if (!_this.isMobile) {
|
|
2960
2967
|
if (_this.cancelButton) {
|
|
@@ -3002,6 +3009,8 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
3002
3009
|
},
|
|
3003
3010
|
close: function () {
|
|
3004
3011
|
attributes(_this.inputElement, { 'aria-expanded': 'false' });
|
|
3012
|
+
_this.inputElement.removeAttribute('aria-owns');
|
|
3013
|
+
_this.inputElement.removeAttribute('aria-activedescendant');
|
|
3005
3014
|
removeClass([_this.inputWrapper.buttons[0]], ACTIVE);
|
|
3006
3015
|
if (_this.isRangeIconClicked) {
|
|
3007
3016
|
_this.inputWrapper.container.children[1].focus();
|
|
@@ -3268,7 +3277,7 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
3268
3277
|
}
|
|
3269
3278
|
var target = e.target;
|
|
3270
3279
|
if (!this.inputWrapper.container.contains(target) ||
|
|
3271
|
-
(!isNullOrUndefined(this.popupObj) && !closest(target, '[id="' + this.popupWrapper.id + '"]') && e.type
|
|
3280
|
+
(!isNullOrUndefined(this.popupObj) && !closest(target, '[id="' + this.popupWrapper.id + '"]') && e.type !== 'mousedown')) {
|
|
3272
3281
|
if (e.type !== 'touchstart' && ((e.type === 'mousedown') ||
|
|
3273
3282
|
this.closeEventArgs && !this.closeEventArgs.cancel)) {
|
|
3274
3283
|
e.preventDefault();
|
|
@@ -3307,9 +3316,8 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
3307
3316
|
buttons: [DATERANGEICON]
|
|
3308
3317
|
}, this.createElement);
|
|
3309
3318
|
attributes(this.inputElement, {
|
|
3310
|
-
'
|
|
3311
|
-
'
|
|
3312
|
-
'role': 'combobox', 'autocomplete': 'off', 'aria-disabled': !this.enabled ? 'true' : 'false',
|
|
3319
|
+
'tabindex': '0', 'aria-expanded': 'false', 'role': 'combobox',
|
|
3320
|
+
'autocomplete': 'off', 'aria-disabled': !this.enabled ? 'true' : 'false',
|
|
3313
3321
|
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false'
|
|
3314
3322
|
});
|
|
3315
3323
|
Input.addAttributes({ 'aria-label': 'select' }, this.inputWrapper.buttons[0]);
|
|
@@ -3740,9 +3748,8 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
3740
3748
|
this.unBindEvents();
|
|
3741
3749
|
this.hide(null);
|
|
3742
3750
|
var ariaAttrs = {
|
|
3743
|
-
'
|
|
3744
|
-
'
|
|
3745
|
-
'role': 'combobox', 'autocomplete': 'off', 'aria-disabled': !this.enabled ? 'true' : 'false',
|
|
3751
|
+
'tabindex': '0', 'aria-expanded': 'false', 'role': 'combobox',
|
|
3752
|
+
'autocomplete': 'off', 'aria-disabled': !this.enabled ? 'true' : 'false',
|
|
3746
3753
|
'autocorrect': 'off', 'autocapitalize': 'off', 'aria-invalid': 'false', 'spellcheck': 'false'
|
|
3747
3754
|
};
|
|
3748
3755
|
if (this.inputElement) {
|
|
@@ -4101,9 +4108,6 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
4101
4108
|
for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
|
|
4102
4109
|
var prop = _a[_i];
|
|
4103
4110
|
var openPopup = ['maxDays', 'minDays', 'value'];
|
|
4104
|
-
if (openPopup.indexOf(prop) < 0) {
|
|
4105
|
-
this.hide(null);
|
|
4106
|
-
}
|
|
4107
4111
|
switch (prop) {
|
|
4108
4112
|
case 'width':
|
|
4109
4113
|
this.setEleWidth(this.width);
|
|
@@ -4124,7 +4128,6 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
4124
4128
|
break;
|
|
4125
4129
|
case 'readonly':
|
|
4126
4130
|
Input.setReadonly(this.readonly, this.inputElement);
|
|
4127
|
-
this.inputElement.setAttribute('aria-readonly', '' + this.readonly);
|
|
4128
4131
|
this.setRangeAllowEdit();
|
|
4129
4132
|
break;
|
|
4130
4133
|
case 'cssClass':
|
|
@@ -4314,7 +4317,13 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
4314
4317
|
this.setProperties({ depth: newProp.depth }, true);
|
|
4315
4318
|
this.refreshChange();
|
|
4316
4319
|
break;
|
|
4320
|
+
default:
|
|
4321
|
+
this.isPropChanged = true;
|
|
4322
|
+
}
|
|
4323
|
+
if (openPopup.indexOf(prop) < 0 && !this.isPropChanged) {
|
|
4324
|
+
this.hide(null);
|
|
4317
4325
|
}
|
|
4326
|
+
this.isPropChanged = false;
|
|
4318
4327
|
}
|
|
4319
4328
|
};
|
|
4320
4329
|
__decorate([
|
|
@@ -148,13 +148,11 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
148
148
|
}
|
|
149
149
|
var ariaAttribute = {
|
|
150
150
|
'aria-live': 'assertive', 'aria-atomic': 'true', 'aria-invalid': 'false',
|
|
151
|
-
'aria-haspopup': 'true', 'aria-activedescendant': 'null',
|
|
152
151
|
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false',
|
|
153
|
-
'aria-
|
|
152
|
+
'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off'
|
|
154
153
|
};
|
|
155
154
|
if (this.inputElement) {
|
|
156
155
|
Input.removeAttributes(ariaAttribute, this.inputElement);
|
|
157
|
-
this.inputElement.removeAttribute('aria-placeholder');
|
|
158
156
|
}
|
|
159
157
|
if (this.isCalendar()) {
|
|
160
158
|
if (this.popupWrapper) {
|
|
@@ -569,6 +567,7 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
569
567
|
}
|
|
570
568
|
addClass([_this.inputWrapper.container], [ICONANIMATION]);
|
|
571
569
|
attributes(_this.inputElement, { 'aria-expanded': 'true' });
|
|
570
|
+
attributes(_this.inputElement, { 'aria-owns': _this.inputElement.id + '_options' });
|
|
572
571
|
EventHandler.add(document, 'mousedown touchstart', _this.documentClickHandler, _this);
|
|
573
572
|
}
|
|
574
573
|
});
|
|
@@ -633,7 +632,7 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
633
632
|
}, close: function () {
|
|
634
633
|
removeClass([_this.timeIcon], ACTIVE);
|
|
635
634
|
_this.unWireTimeListEvents();
|
|
636
|
-
_this.inputElement.
|
|
635
|
+
_this.inputElement.removeAttribute('aria-activedescendant');
|
|
637
636
|
remove(_this.popupObject.element);
|
|
638
637
|
_this.popupObject.destroy();
|
|
639
638
|
_this.dateTimeWrapper.innerHTML = '';
|
|
@@ -849,11 +848,11 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
849
848
|
}
|
|
850
849
|
};
|
|
851
850
|
DateTimePicker.prototype.setTimeActiveDescendant = function () {
|
|
852
|
-
if (!isNullOrUndefined(this.selectedElement)) {
|
|
851
|
+
if (!isNullOrUndefined(this.selectedElement) && this.value) {
|
|
853
852
|
attributes(this.inputElement, { 'aria-activedescendant': this.selectedElement.getAttribute('id') });
|
|
854
853
|
}
|
|
855
854
|
else {
|
|
856
|
-
|
|
855
|
+
this.inputElement.removeAttribute('aria-activedescendant');
|
|
857
856
|
}
|
|
858
857
|
};
|
|
859
858
|
DateTimePicker.prototype.addTimeSelection = function () {
|
|
@@ -1012,6 +1011,7 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
1012
1011
|
this.popupObject.hide(new Animation(animModel));
|
|
1013
1012
|
this.inputWrapper.container.classList.remove(ICONANIMATION);
|
|
1014
1013
|
attributes(this.inputElement, { 'aria-expanded': 'false' });
|
|
1014
|
+
this.inputElement.removeAttribute('aria-owns');
|
|
1015
1015
|
EventHandler.remove(document, 'mousedown touchstart', this.documentClickHandler);
|
|
1016
1016
|
}
|
|
1017
1017
|
};
|
|
@@ -1399,7 +1399,6 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
1399
1399
|
break;
|
|
1400
1400
|
case 'placeholder':
|
|
1401
1401
|
Input.setPlaceholder(newProp.placeholder, this.inputElement);
|
|
1402
|
-
this.inputElement.setAttribute('aria-placeholder', newProp.placeholder);
|
|
1403
1402
|
break;
|
|
1404
1403
|
case 'enabled':
|
|
1405
1404
|
Input.setEnabled(this.enabled, this.inputElement);
|
|
@@ -1458,7 +1457,7 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
1458
1457
|
_super.prototype.onPropertyChanged.call(this, newProp, oldProp);
|
|
1459
1458
|
break;
|
|
1460
1459
|
}
|
|
1461
|
-
if (!this.isDynamicValueChanged) {
|
|
1460
|
+
if (!this.isDynamicValueChanged && !this.isIconClicked) {
|
|
1462
1461
|
this.hide(null);
|
|
1463
1462
|
}
|
|
1464
1463
|
this.isDynamicValueChanged = false;
|
|
@@ -345,9 +345,10 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
345
345
|
}, this.createElement);
|
|
346
346
|
this.inputWrapper.container.style.width = this.setWidth(this.width);
|
|
347
347
|
attributes(this.inputElement, {
|
|
348
|
-
'aria-
|
|
349
|
-
'aria-
|
|
350
|
-
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false',
|
|
348
|
+
'aria-autocomplete': 'list', 'tabindex': '0',
|
|
349
|
+
'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
|
|
350
|
+
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false',
|
|
351
|
+
'aria-disabled': 'false', 'aria-invalid': 'false'
|
|
351
352
|
});
|
|
352
353
|
if (!this.isNullOrEmpty(this.inputStyle)) {
|
|
353
354
|
Input.addAttributes({ 'style': this.inputStyle }, this.inputElement);
|
|
@@ -448,9 +449,10 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
448
449
|
this.hide();
|
|
449
450
|
this.unBindEvents();
|
|
450
451
|
var ariaAttribute = {
|
|
451
|
-
'aria-
|
|
452
|
-
'aria-
|
|
453
|
-
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false',
|
|
452
|
+
'aria-autocomplete': 'list', 'tabindex': '0',
|
|
453
|
+
'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
|
|
454
|
+
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false',
|
|
455
|
+
'aria-disabled': 'true', 'aria-invalid': 'false'
|
|
454
456
|
};
|
|
455
457
|
if (this.inputElement) {
|
|
456
458
|
Input.removeAttributes(ariaAttribute, this.inputElement);
|
|
@@ -551,7 +553,7 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
551
553
|
}, close: function () {
|
|
552
554
|
removeClass([_this.inputWrapper.buttons[0]], SELECTED);
|
|
553
555
|
_this.unWireListEvents();
|
|
554
|
-
_this.inputElement.
|
|
556
|
+
_this.inputElement.removeAttribute('aria-activedescendant');
|
|
555
557
|
remove(_this.popupObj.element);
|
|
556
558
|
_this.popupObj.destroy();
|
|
557
559
|
_this.popupWrapper.innerHTML = '';
|
|
@@ -1043,6 +1045,8 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
1043
1045
|
_this.popupObj.hide(new Animation(animModel));
|
|
1044
1046
|
removeClass([_this.inputWrapper.container], [ICONANIMATION]);
|
|
1045
1047
|
attributes(_this.inputElement, { 'aria-expanded': 'false' });
|
|
1048
|
+
_this.inputElement.removeAttribute('aria-owns');
|
|
1049
|
+
_this.inputElement.removeAttribute('aria-activedescendant');
|
|
1046
1050
|
EventHandler.remove(document, 'mousedown touchstart', _this.documentClickHandler);
|
|
1047
1051
|
}
|
|
1048
1052
|
if (Browser.isDevice && _this.modal) {
|
|
@@ -1806,11 +1810,11 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
1806
1810
|
this.clearIconState();
|
|
1807
1811
|
};
|
|
1808
1812
|
TimePicker.prototype.setActiveDescendant = function () {
|
|
1809
|
-
if (!isNullOrUndefined(this.selectedElement)) {
|
|
1813
|
+
if (!isNullOrUndefined(this.selectedElement) && this.value) {
|
|
1810
1814
|
attributes(this.inputElement, { 'aria-activedescendant': this.selectedElement.getAttribute('id') });
|
|
1811
1815
|
}
|
|
1812
1816
|
else {
|
|
1813
|
-
|
|
1817
|
+
this.inputElement.removeAttribute('aria-activedescendant');
|
|
1814
1818
|
}
|
|
1815
1819
|
};
|
|
1816
1820
|
TimePicker.prototype.removeSelection = function () {
|
|
@@ -1900,7 +1904,7 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
1900
1904
|
};
|
|
1901
1905
|
TimePicker.prototype.createListItems = function () {
|
|
1902
1906
|
var _this = this;
|
|
1903
|
-
this.listWrapper = this.createElement('div', { className: CONTENT, attrs: { 'tabindex': '
|
|
1907
|
+
this.listWrapper = this.createElement('div', { className: CONTENT, attrs: { 'tabindex': '-1' } });
|
|
1904
1908
|
var start;
|
|
1905
1909
|
var interval = this.step * 60000;
|
|
1906
1910
|
var listItems = [];
|
|
@@ -1930,7 +1934,7 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
1930
1934
|
}
|
|
1931
1935
|
};
|
|
1932
1936
|
this.listTag = ListBase.createList(this.createElement, listItems, listBaseOptions, true);
|
|
1933
|
-
attributes(this.listTag, { 'role': 'listbox', 'aria-hidden': 'false', 'id': this.element.id + '_options' });
|
|
1937
|
+
attributes(this.listTag, { 'role': 'listbox', 'aria-hidden': 'false', 'id': this.element.id + '_options', 'tabindex': '0' });
|
|
1934
1938
|
append([this.listTag], this.listWrapper);
|
|
1935
1939
|
};
|
|
1936
1940
|
TimePicker.prototype.documentClickHandler = function (event) {
|
|
@@ -2143,6 +2147,7 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
2143
2147
|
}
|
|
2144
2148
|
_this.setActiveDescendant();
|
|
2145
2149
|
attributes(_this.inputElement, { 'aria-expanded': 'true' });
|
|
2150
|
+
attributes(_this.inputElement, { 'aria-owns': _this.inputElement.id + '_options' });
|
|
2146
2151
|
addClass([_this.inputWrapper.container], FOCUS);
|
|
2147
2152
|
EventHandler.add(document, 'mousedown touchstart', _this.documentClickHandler, _this);
|
|
2148
2153
|
_this.setOverlayIndex(_this.mobileTimePopupWrap, _this.popupObj.element, _this.modal, Browser.isDevice);
|
|
@@ -2256,7 +2261,6 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
2256
2261
|
switch (prop) {
|
|
2257
2262
|
case 'placeholder':
|
|
2258
2263
|
Input.setPlaceholder(newProp.placeholder, this.inputElement);
|
|
2259
|
-
this.inputElement.setAttribute('aria-placeholder', newProp.placeholder);
|
|
2260
2264
|
break;
|
|
2261
2265
|
case 'readonly':
|
|
2262
2266
|
Input.setReadonly(this.readonly, this.inputElement, this.floatLabelType);
|