@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
|
@@ -133,7 +133,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
133
133
|
this.calendarElement.classList.add(DEVICE);
|
|
134
134
|
}
|
|
135
135
|
attributes(this.calendarElement, {
|
|
136
|
-
'role': 'calendar'
|
|
136
|
+
'data-role': 'calendar'
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
this.createHeader();
|
|
@@ -261,7 +261,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
261
261
|
};
|
|
262
262
|
CalendarBase.prototype.createContent = function () {
|
|
263
263
|
this.contentElement = this.createElement('div', { className: CONTENT });
|
|
264
|
-
this.table = this.createElement('table', { attrs: { tabIndex: '0', 'role': 'grid', 'aria-activedescendant': '' } });
|
|
264
|
+
this.table = this.createElement('table', { attrs: { tabIndex: '0', 'role': 'grid', 'aria-activedescendant': '', 'aria-labelledby': this.element.id } });
|
|
265
265
|
if (this.getModuleName() === 'calendar') {
|
|
266
266
|
this.element.appendChild(this.contentElement);
|
|
267
267
|
}
|
|
@@ -893,7 +893,6 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
893
893
|
var year = startYear + rowIterator;
|
|
894
894
|
localDate.setFullYear(year);
|
|
895
895
|
var tdEle = this.dayCell(localDate);
|
|
896
|
-
attributes(tdEle, { 'role': 'gridcell' });
|
|
897
896
|
var dayLink = this.createElement('span');
|
|
898
897
|
dayLink.textContent = this.globalize.formatDate(localDate, {
|
|
899
898
|
format: null, type: 'dateTime', skeleton: 'y'
|
|
@@ -934,7 +933,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
934
933
|
var date = this.globalize.parseDate(this.globalize.formatDate(localDate, dateFormatOptions), dateFormatOptions);
|
|
935
934
|
var value = date.valueOf();
|
|
936
935
|
var attrs = {
|
|
937
|
-
className: CELL, attrs: { 'id': '' + getUniqueID('' + value), 'aria-selected': 'false'
|
|
936
|
+
className: CELL, attrs: { 'id': '' + getUniqueID('' + value), 'aria-selected': 'false' }
|
|
938
937
|
};
|
|
939
938
|
return this.createElement('td', attrs);
|
|
940
939
|
};
|
|
@@ -1008,7 +1007,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1008
1007
|
var row = count;
|
|
1009
1008
|
var rowIterator = 0;
|
|
1010
1009
|
for (var dayCell = 0; dayCell < elements.length / count; ++dayCell) {
|
|
1011
|
-
trEle = this.createElement('tr'
|
|
1010
|
+
trEle = this.createElement('tr');
|
|
1012
1011
|
for (rowIterator = 0 + rowIterator; rowIterator < row; rowIterator++) {
|
|
1013
1012
|
if (!elements[rowIterator].classList.contains('e-week-number') && !isNullOrUndefined(elements[rowIterator].children[0])) {
|
|
1014
1013
|
addClass([elements[rowIterator].children[0]], [LINK]);
|
|
@@ -2925,14 +2924,14 @@ var Islamic = /** @__PURE__ @class */ (function () {
|
|
|
2925
2924
|
dayLink.textContent = this.calendarInstance.globalize.formatDate(localDate, { type: 'dateTime', format: 'y', calendar: 'islamic' });
|
|
2926
2925
|
if (islamicDate.year === parseInt(startHdrYr) - 1 || (year_1 < startFullYr) || (year_1 > endFullYr) && islamicDate.year !== parseInt(endHdrYr)) {
|
|
2927
2926
|
addClass([tdEle], OTHERMONTH$1);
|
|
2928
|
-
if (year_1 < new Date(this.islamicInValue(this.calendarInstance.min)).getFullYear()
|
|
2929
|
-
|| year_1 > new Date(this.islamicInValue(this.calendarInstance.max)).getFullYear()) {
|
|
2930
|
-
addClass([tdEle], DISABLED$1);
|
|
2931
|
-
}
|
|
2932
2927
|
}
|
|
2933
2928
|
else if (year_1 < new Date(this.islamicInValue(this.calendarInstance.min)).getFullYear()
|
|
2934
2929
|
|| year_1 > new Date(this.islamicInValue(this.calendarInstance.max)).getFullYear()) {
|
|
2935
2930
|
addClass([tdEle], DISABLED$1);
|
|
2931
|
+
if (year_1 < new Date(this.islamicInValue(this.calendarInstance.min)).getFullYear()
|
|
2932
|
+
|| year_1 > new Date(this.islamicInValue(this.calendarInstance.max)).getFullYear()) {
|
|
2933
|
+
addClass([tdEle], DISABLED$1);
|
|
2934
|
+
}
|
|
2936
2935
|
}
|
|
2937
2936
|
else if (!isNullOrUndefined(value) &&
|
|
2938
2937
|
(this.getIslamicDate(localDate)).year ===
|
|
@@ -3250,10 +3249,9 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
3250
3249
|
};
|
|
3251
3250
|
DatePicker.prototype.createInput = function () {
|
|
3252
3251
|
var ariaAttrs = {
|
|
3253
|
-
'aria-live': 'assertive', 'aria-atomic': 'true',
|
|
3254
|
-
'
|
|
3255
|
-
'
|
|
3256
|
-
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false'
|
|
3252
|
+
'aria-live': 'assertive', 'aria-atomic': 'true', 'aria-expanded': 'false',
|
|
3253
|
+
'role': 'combobox', 'autocomplete': 'off', 'autocorrect': 'off',
|
|
3254
|
+
'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false'
|
|
3257
3255
|
};
|
|
3258
3256
|
if (this.getModuleName() === 'datepicker') {
|
|
3259
3257
|
var l10nLocale = { placeholder: this.placeholder };
|
|
@@ -4457,8 +4455,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
4457
4455
|
}
|
|
4458
4456
|
var ariaAttrs = {
|
|
4459
4457
|
'aria-live': 'assertive', 'aria-atomic': 'true', 'aria-disabled': 'true',
|
|
4460
|
-
'aria-
|
|
4461
|
-
'aria-owns': this.element.id + '_options', 'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
|
|
4458
|
+
'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
|
|
4462
4459
|
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false'
|
|
4463
4460
|
};
|
|
4464
4461
|
if (this.inputElement) {
|
|
@@ -4783,11 +4780,15 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
4783
4780
|
DatePicker.prototype.setAriaAttributes = function () {
|
|
4784
4781
|
if (this.isCalendar()) {
|
|
4785
4782
|
Input.addAttributes({ 'aria-expanded': 'true' }, this.inputElement);
|
|
4786
|
-
attributes(this.inputElement, { 'aria-
|
|
4783
|
+
attributes(this.inputElement, { 'aria-owns': this.inputElement.id + '_options' });
|
|
4784
|
+
if (this.value) {
|
|
4785
|
+
attributes(this.inputElement, { 'aria-activedescendant': '' + this.setActiveDescendant() });
|
|
4786
|
+
}
|
|
4787
4787
|
}
|
|
4788
4788
|
else {
|
|
4789
4789
|
Input.addAttributes({ 'aria-expanded': 'false' }, this.inputElement);
|
|
4790
|
-
|
|
4790
|
+
this.inputElement.removeAttribute('aria-owns');
|
|
4791
|
+
this.inputElement.removeAttribute('aria-activedescendant');
|
|
4791
4792
|
}
|
|
4792
4793
|
};
|
|
4793
4794
|
DatePicker.prototype.errorClass = function () {
|
|
@@ -4944,7 +4945,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
4944
4945
|
}
|
|
4945
4946
|
break;
|
|
4946
4947
|
}
|
|
4947
|
-
if (!this.isDynamicValueChanged) {
|
|
4948
|
+
if (!this.isDynamicValueChanged && !this.isIconClicked) {
|
|
4948
4949
|
this.hide(null);
|
|
4949
4950
|
}
|
|
4950
4951
|
this.isDynamicValueChanged = false;
|
|
@@ -5183,6 +5184,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
5183
5184
|
_this.invalidValueString = null;
|
|
5184
5185
|
_this.isAngular = false;
|
|
5185
5186
|
_this.preventChange = false;
|
|
5187
|
+
_this.isPropChanged = false;
|
|
5186
5188
|
_this.dateRangeOptions = options;
|
|
5187
5189
|
return _this;
|
|
5188
5190
|
}
|
|
@@ -7370,7 +7372,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
7370
7372
|
if (this.enableRtl) {
|
|
7371
7373
|
this.calendarElement.classList.add(RTL$1);
|
|
7372
7374
|
}
|
|
7373
|
-
attributes(this.calendarElement, { 'role': 'calendar' });
|
|
7375
|
+
attributes(this.calendarElement, { 'data-role': 'calendar' });
|
|
7374
7376
|
_super.prototype.createHeader.call(this);
|
|
7375
7377
|
_super.prototype.createContent.call(this);
|
|
7376
7378
|
};
|
|
@@ -7929,7 +7931,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
7929
7931
|
if (!isUndefined(this.presets[0].start && this.presets[0].end && this.presets[0].label)) {
|
|
7930
7932
|
this.presetElement = this.createElement('div', { className: PRESETS, attrs: { 'tabindex': '0' } });
|
|
7931
7933
|
var listTag = ListBase.createList(this.createElement, this.presetsItem, null, true);
|
|
7932
|
-
attributes(listTag, { 'role': 'listbox', 'aria-hidden': 'false', 'id': this.element.id + '_options' });
|
|
7934
|
+
attributes(listTag, { 'role': 'listbox', 'aria-hidden': 'false', 'id': this.element.id + '_options', 'tabindex': '0' });
|
|
7933
7935
|
this.presetElement.appendChild(listTag);
|
|
7934
7936
|
this.popupWrapper.appendChild(this.presetElement);
|
|
7935
7937
|
var customElement = this.presetElement.querySelector('#custom_range');
|
|
@@ -7990,7 +7992,13 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
7990
7992
|
enableRtl: this.enableRtl,
|
|
7991
7993
|
zIndex: this.zIndex,
|
|
7992
7994
|
open: function () {
|
|
7993
|
-
attributes(_this.inputElement, { 'aria-expanded': 'true' });
|
|
7995
|
+
attributes(_this.inputElement, { 'aria-expanded': 'true', 'aria-owns': _this.inputElement.id + '_options' });
|
|
7996
|
+
if (_this.value) {
|
|
7997
|
+
attributes(_this.inputElement, { 'aria-activedescendant': _this.inputElement.id });
|
|
7998
|
+
}
|
|
7999
|
+
else {
|
|
8000
|
+
_this.inputElement.removeAttribute('aria-activedescendant');
|
|
8001
|
+
}
|
|
7994
8002
|
addClass([_this.inputWrapper.buttons[0]], ACTIVE$1);
|
|
7995
8003
|
if (!_this.isMobile) {
|
|
7996
8004
|
if (_this.cancelButton) {
|
|
@@ -8038,6 +8046,8 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
8038
8046
|
},
|
|
8039
8047
|
close: function () {
|
|
8040
8048
|
attributes(_this.inputElement, { 'aria-expanded': 'false' });
|
|
8049
|
+
_this.inputElement.removeAttribute('aria-owns');
|
|
8050
|
+
_this.inputElement.removeAttribute('aria-activedescendant');
|
|
8041
8051
|
removeClass([_this.inputWrapper.buttons[0]], ACTIVE$1);
|
|
8042
8052
|
if (_this.isRangeIconClicked) {
|
|
8043
8053
|
_this.inputWrapper.container.children[1].focus();
|
|
@@ -8304,7 +8314,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
8304
8314
|
}
|
|
8305
8315
|
var target = e.target;
|
|
8306
8316
|
if (!this.inputWrapper.container.contains(target) ||
|
|
8307
|
-
(!isNullOrUndefined(this.popupObj) && !closest(target, '[id="' + this.popupWrapper.id + '"]') && e.type
|
|
8317
|
+
(!isNullOrUndefined(this.popupObj) && !closest(target, '[id="' + this.popupWrapper.id + '"]') && e.type !== 'mousedown')) {
|
|
8308
8318
|
if (e.type !== 'touchstart' && ((e.type === 'mousedown') ||
|
|
8309
8319
|
this.closeEventArgs && !this.closeEventArgs.cancel)) {
|
|
8310
8320
|
e.preventDefault();
|
|
@@ -8343,9 +8353,8 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
8343
8353
|
buttons: [DATERANGEICON]
|
|
8344
8354
|
}, this.createElement);
|
|
8345
8355
|
attributes(this.inputElement, {
|
|
8346
|
-
'
|
|
8347
|
-
'
|
|
8348
|
-
'role': 'combobox', 'autocomplete': 'off', 'aria-disabled': !this.enabled ? 'true' : 'false',
|
|
8356
|
+
'tabindex': '0', 'aria-expanded': 'false', 'role': 'combobox',
|
|
8357
|
+
'autocomplete': 'off', 'aria-disabled': !this.enabled ? 'true' : 'false',
|
|
8349
8358
|
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false'
|
|
8350
8359
|
});
|
|
8351
8360
|
Input.addAttributes({ 'aria-label': 'select' }, this.inputWrapper.buttons[0]);
|
|
@@ -8776,9 +8785,8 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
8776
8785
|
this.unBindEvents();
|
|
8777
8786
|
this.hide(null);
|
|
8778
8787
|
var ariaAttrs = {
|
|
8779
|
-
'
|
|
8780
|
-
'
|
|
8781
|
-
'role': 'combobox', 'autocomplete': 'off', 'aria-disabled': !this.enabled ? 'true' : 'false',
|
|
8788
|
+
'tabindex': '0', 'aria-expanded': 'false', 'role': 'combobox',
|
|
8789
|
+
'autocomplete': 'off', 'aria-disabled': !this.enabled ? 'true' : 'false',
|
|
8782
8790
|
'autocorrect': 'off', 'autocapitalize': 'off', 'aria-invalid': 'false', 'spellcheck': 'false'
|
|
8783
8791
|
};
|
|
8784
8792
|
if (this.inputElement) {
|
|
@@ -9137,9 +9145,6 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
9137
9145
|
for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
|
|
9138
9146
|
var prop = _a[_i];
|
|
9139
9147
|
var openPopup = ['maxDays', 'minDays', 'value'];
|
|
9140
|
-
if (openPopup.indexOf(prop) < 0) {
|
|
9141
|
-
this.hide(null);
|
|
9142
|
-
}
|
|
9143
9148
|
switch (prop) {
|
|
9144
9149
|
case 'width':
|
|
9145
9150
|
this.setEleWidth(this.width);
|
|
@@ -9160,7 +9165,6 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
9160
9165
|
break;
|
|
9161
9166
|
case 'readonly':
|
|
9162
9167
|
Input.setReadonly(this.readonly, this.inputElement);
|
|
9163
|
-
this.inputElement.setAttribute('aria-readonly', '' + this.readonly);
|
|
9164
9168
|
this.setRangeAllowEdit();
|
|
9165
9169
|
break;
|
|
9166
9170
|
case 'cssClass':
|
|
@@ -9350,7 +9354,13 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
9350
9354
|
this.setProperties({ depth: newProp.depth }, true);
|
|
9351
9355
|
this.refreshChange();
|
|
9352
9356
|
break;
|
|
9357
|
+
default:
|
|
9358
|
+
this.isPropChanged = true;
|
|
9359
|
+
}
|
|
9360
|
+
if (openPopup.indexOf(prop) < 0 && !this.isPropChanged) {
|
|
9361
|
+
this.hide(null);
|
|
9353
9362
|
}
|
|
9363
|
+
this.isPropChanged = false;
|
|
9354
9364
|
}
|
|
9355
9365
|
};
|
|
9356
9366
|
__decorate$2([
|
|
@@ -9824,9 +9834,10 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
9824
9834
|
}, this.createElement);
|
|
9825
9835
|
this.inputWrapper.container.style.width = this.setWidth(this.width);
|
|
9826
9836
|
attributes(this.inputElement, {
|
|
9827
|
-
'aria-
|
|
9828
|
-
'aria-
|
|
9829
|
-
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false',
|
|
9837
|
+
'aria-autocomplete': 'list', 'tabindex': '0',
|
|
9838
|
+
'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
|
|
9839
|
+
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false',
|
|
9840
|
+
'aria-disabled': 'false', 'aria-invalid': 'false'
|
|
9830
9841
|
});
|
|
9831
9842
|
if (!this.isNullOrEmpty(this.inputStyle)) {
|
|
9832
9843
|
Input.addAttributes({ 'style': this.inputStyle }, this.inputElement);
|
|
@@ -9927,9 +9938,10 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
9927
9938
|
this.hide();
|
|
9928
9939
|
this.unBindEvents();
|
|
9929
9940
|
var ariaAttribute = {
|
|
9930
|
-
'aria-
|
|
9931
|
-
'aria-
|
|
9932
|
-
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false',
|
|
9941
|
+
'aria-autocomplete': 'list', 'tabindex': '0',
|
|
9942
|
+
'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
|
|
9943
|
+
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false',
|
|
9944
|
+
'aria-disabled': 'true', 'aria-invalid': 'false'
|
|
9933
9945
|
};
|
|
9934
9946
|
if (this.inputElement) {
|
|
9935
9947
|
Input.removeAttributes(ariaAttribute, this.inputElement);
|
|
@@ -10030,7 +10042,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
10030
10042
|
}, close: function () {
|
|
10031
10043
|
removeClass([_this.inputWrapper.buttons[0]], SELECTED$4);
|
|
10032
10044
|
_this.unWireListEvents();
|
|
10033
|
-
_this.inputElement.
|
|
10045
|
+
_this.inputElement.removeAttribute('aria-activedescendant');
|
|
10034
10046
|
remove(_this.popupObj.element);
|
|
10035
10047
|
_this.popupObj.destroy();
|
|
10036
10048
|
_this.popupWrapper.innerHTML = '';
|
|
@@ -10522,6 +10534,8 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
10522
10534
|
_this.popupObj.hide(new Animation(animModel));
|
|
10523
10535
|
removeClass([_this.inputWrapper.container], [ICONANIMATION]);
|
|
10524
10536
|
attributes(_this.inputElement, { 'aria-expanded': 'false' });
|
|
10537
|
+
_this.inputElement.removeAttribute('aria-owns');
|
|
10538
|
+
_this.inputElement.removeAttribute('aria-activedescendant');
|
|
10525
10539
|
EventHandler.remove(document, 'mousedown touchstart', _this.documentClickHandler);
|
|
10526
10540
|
}
|
|
10527
10541
|
if (Browser.isDevice && _this.modal) {
|
|
@@ -11285,11 +11299,11 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
11285
11299
|
this.clearIconState();
|
|
11286
11300
|
};
|
|
11287
11301
|
TimePicker.prototype.setActiveDescendant = function () {
|
|
11288
|
-
if (!isNullOrUndefined(this.selectedElement)) {
|
|
11302
|
+
if (!isNullOrUndefined(this.selectedElement) && this.value) {
|
|
11289
11303
|
attributes(this.inputElement, { 'aria-activedescendant': this.selectedElement.getAttribute('id') });
|
|
11290
11304
|
}
|
|
11291
11305
|
else {
|
|
11292
|
-
|
|
11306
|
+
this.inputElement.removeAttribute('aria-activedescendant');
|
|
11293
11307
|
}
|
|
11294
11308
|
};
|
|
11295
11309
|
TimePicker.prototype.removeSelection = function () {
|
|
@@ -11379,7 +11393,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
11379
11393
|
};
|
|
11380
11394
|
TimePicker.prototype.createListItems = function () {
|
|
11381
11395
|
var _this = this;
|
|
11382
|
-
this.listWrapper = this.createElement('div', { className: CONTENT$2, attrs: { 'tabindex': '
|
|
11396
|
+
this.listWrapper = this.createElement('div', { className: CONTENT$2, attrs: { 'tabindex': '-1' } });
|
|
11383
11397
|
var start;
|
|
11384
11398
|
var interval = this.step * 60000;
|
|
11385
11399
|
var listItems = [];
|
|
@@ -11409,7 +11423,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
11409
11423
|
}
|
|
11410
11424
|
};
|
|
11411
11425
|
this.listTag = ListBase.createList(this.createElement, listItems, listBaseOptions, true);
|
|
11412
|
-
attributes(this.listTag, { 'role': 'listbox', 'aria-hidden': 'false', 'id': this.element.id + '_options' });
|
|
11426
|
+
attributes(this.listTag, { 'role': 'listbox', 'aria-hidden': 'false', 'id': this.element.id + '_options', 'tabindex': '0' });
|
|
11413
11427
|
append([this.listTag], this.listWrapper);
|
|
11414
11428
|
};
|
|
11415
11429
|
TimePicker.prototype.documentClickHandler = function (event) {
|
|
@@ -11622,6 +11636,7 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
11622
11636
|
}
|
|
11623
11637
|
_this.setActiveDescendant();
|
|
11624
11638
|
attributes(_this.inputElement, { 'aria-expanded': 'true' });
|
|
11639
|
+
attributes(_this.inputElement, { 'aria-owns': _this.inputElement.id + '_options' });
|
|
11625
11640
|
addClass([_this.inputWrapper.container], FOCUS);
|
|
11626
11641
|
EventHandler.add(document, 'mousedown touchstart', _this.documentClickHandler, _this);
|
|
11627
11642
|
_this.setOverlayIndex(_this.mobileTimePopupWrap, _this.popupObj.element, _this.modal, Browser.isDevice);
|
|
@@ -11735,7 +11750,6 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
11735
11750
|
switch (prop) {
|
|
11736
11751
|
case 'placeholder':
|
|
11737
11752
|
Input.setPlaceholder(newProp.placeholder, this.inputElement);
|
|
11738
|
-
this.inputElement.setAttribute('aria-placeholder', newProp.placeholder);
|
|
11739
11753
|
break;
|
|
11740
11754
|
case 'readonly':
|
|
11741
11755
|
Input.setReadonly(this.readonly, this.inputElement, this.floatLabelType);
|
|
@@ -12138,13 +12152,11 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12138
12152
|
}
|
|
12139
12153
|
var ariaAttribute = {
|
|
12140
12154
|
'aria-live': 'assertive', 'aria-atomic': 'true', 'aria-invalid': 'false',
|
|
12141
|
-
'aria-haspopup': 'true', 'aria-activedescendant': 'null',
|
|
12142
12155
|
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false',
|
|
12143
|
-
'aria-
|
|
12156
|
+
'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off'
|
|
12144
12157
|
};
|
|
12145
12158
|
if (this.inputElement) {
|
|
12146
12159
|
Input.removeAttributes(ariaAttribute, this.inputElement);
|
|
12147
|
-
this.inputElement.removeAttribute('aria-placeholder');
|
|
12148
12160
|
}
|
|
12149
12161
|
if (this.isCalendar()) {
|
|
12150
12162
|
if (this.popupWrapper) {
|
|
@@ -12559,6 +12571,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12559
12571
|
}
|
|
12560
12572
|
addClass([_this.inputWrapper.container], [ICONANIMATION$1]);
|
|
12561
12573
|
attributes(_this.inputElement, { 'aria-expanded': 'true' });
|
|
12574
|
+
attributes(_this.inputElement, { 'aria-owns': _this.inputElement.id + '_options' });
|
|
12562
12575
|
EventHandler.add(document, 'mousedown touchstart', _this.documentClickHandler, _this);
|
|
12563
12576
|
}
|
|
12564
12577
|
});
|
|
@@ -12623,7 +12636,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12623
12636
|
}, close: function () {
|
|
12624
12637
|
removeClass([_this.timeIcon], ACTIVE$2);
|
|
12625
12638
|
_this.unWireTimeListEvents();
|
|
12626
|
-
_this.inputElement.
|
|
12639
|
+
_this.inputElement.removeAttribute('aria-activedescendant');
|
|
12627
12640
|
remove(_this.popupObject.element);
|
|
12628
12641
|
_this.popupObject.destroy();
|
|
12629
12642
|
_this.dateTimeWrapper.innerHTML = '';
|
|
@@ -12839,11 +12852,11 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12839
12852
|
}
|
|
12840
12853
|
};
|
|
12841
12854
|
DateTimePicker.prototype.setTimeActiveDescendant = function () {
|
|
12842
|
-
if (!isNullOrUndefined(this.selectedElement)) {
|
|
12855
|
+
if (!isNullOrUndefined(this.selectedElement) && this.value) {
|
|
12843
12856
|
attributes(this.inputElement, { 'aria-activedescendant': this.selectedElement.getAttribute('id') });
|
|
12844
12857
|
}
|
|
12845
12858
|
else {
|
|
12846
|
-
|
|
12859
|
+
this.inputElement.removeAttribute('aria-activedescendant');
|
|
12847
12860
|
}
|
|
12848
12861
|
};
|
|
12849
12862
|
DateTimePicker.prototype.addTimeSelection = function () {
|
|
@@ -13002,6 +13015,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13002
13015
|
this.popupObject.hide(new Animation(animModel));
|
|
13003
13016
|
this.inputWrapper.container.classList.remove(ICONANIMATION$1);
|
|
13004
13017
|
attributes(this.inputElement, { 'aria-expanded': 'false' });
|
|
13018
|
+
this.inputElement.removeAttribute('aria-owns');
|
|
13005
13019
|
EventHandler.remove(document, 'mousedown touchstart', this.documentClickHandler);
|
|
13006
13020
|
}
|
|
13007
13021
|
};
|
|
@@ -13389,7 +13403,6 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13389
13403
|
break;
|
|
13390
13404
|
case 'placeholder':
|
|
13391
13405
|
Input.setPlaceholder(newProp.placeholder, this.inputElement);
|
|
13392
|
-
this.inputElement.setAttribute('aria-placeholder', newProp.placeholder);
|
|
13393
13406
|
break;
|
|
13394
13407
|
case 'enabled':
|
|
13395
13408
|
Input.setEnabled(this.enabled, this.inputElement);
|
|
@@ -13448,7 +13461,7 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13448
13461
|
_super.prototype.onPropertyChanged.call(this, newProp, oldProp);
|
|
13449
13462
|
break;
|
|
13450
13463
|
}
|
|
13451
|
-
if (!this.isDynamicValueChanged) {
|
|
13464
|
+
if (!this.isDynamicValueChanged && !this.isIconClicked) {
|
|
13452
13465
|
this.hide(null);
|
|
13453
13466
|
}
|
|
13454
13467
|
this.isDynamicValueChanged = false;
|