@syncfusion/ej2-calendars 23.2.6 → 24.1.41
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 -20
- package/dist/ej2-calendars.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js.map +1 -1
- package/dist/es6/ej2-calendars.es2015.js +99 -23
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +99 -23
- 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 -1
- package/src/datepicker/datepicker.js +9 -3
- package/src/daterangepicker/daterangepicker.js +20 -13
- package/src/datetimepicker/datetimepicker.d.ts +3 -0
- package/src/datetimepicker/datetimepicker.js +45 -4
- package/src/maskbase/masked-date-time.d.ts +1 -0
- package/src/maskbase/masked-date-time.js +14 -1
- package/src/timepicker/timepicker.js +7 -1
- package/styles/daterangepicker/_layout.scss +11 -15
- package/styles/daterangepicker/_material3-definition.scss +2 -1
- package/styles/daterangepicker/material3-dark.css +2 -5
- package/styles/daterangepicker/material3.css +2 -5
- package/styles/material3-dark.css +2 -5
- package/styles/material3.css +2 -5
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 24.1.41
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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.32.2",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-U2dC95e+gsF0zCd8VVJCsnHHozjtljby/RpYpVh8Wfes8aFQ+v523JhDOZ7I6gqEtpeoApb5OT/yBLjpTSey7Q==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-calendars",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"/@syncfusion/ej2-schedule",
|
|
32
32
|
"/@syncfusion/ej2-vue-calendars"
|
|
33
33
|
],
|
|
34
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-
|
|
35
|
-
"_shasum": "
|
|
34
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-calendars/-/ej2-calendars-18.32.2.tgz",
|
|
35
|
+
"_shasum": "cea42534d623c526f5f7542b74562686a77163e5",
|
|
36
36
|
"_spec": "@syncfusion/ej2-calendars@*",
|
|
37
|
-
"_where": "/jenkins/workspace/elease-
|
|
37
|
+
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
38
38
|
"author": {
|
|
39
39
|
"name": "Syncfusion Inc."
|
|
40
40
|
},
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
},
|
|
44
44
|
"bundleDependencies": false,
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@syncfusion/ej2-base": "~
|
|
47
|
-
"@syncfusion/ej2-buttons": "~
|
|
48
|
-
"@syncfusion/ej2-inputs": "~
|
|
49
|
-
"@syncfusion/ej2-lists": "~
|
|
50
|
-
"@syncfusion/ej2-popups": "~
|
|
46
|
+
"@syncfusion/ej2-base": "~24.1.41",
|
|
47
|
+
"@syncfusion/ej2-buttons": "~24.1.41",
|
|
48
|
+
"@syncfusion/ej2-inputs": "~24.1.41",
|
|
49
|
+
"@syncfusion/ej2-lists": "~24.1.41",
|
|
50
|
+
"@syncfusion/ej2-popups": "~24.1.41"
|
|
51
51
|
},
|
|
52
52
|
"deprecated": false,
|
|
53
53
|
"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.",
|
|
@@ -80,6 +80,6 @@
|
|
|
80
80
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
81
81
|
},
|
|
82
82
|
"typings": "index.d.ts",
|
|
83
|
-
"version": "
|
|
83
|
+
"version": "24.1.41",
|
|
84
84
|
"sideEffects": false
|
|
85
85
|
}
|
package/src/calendar/calendar.js
CHANGED
|
@@ -319,7 +319,7 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
319
319
|
}
|
|
320
320
|
this.tableHeadElement = this.createElement('thead', { className: WEEKHEADER });
|
|
321
321
|
if (this.weekNumber) {
|
|
322
|
-
html += '<th class="e-week-number"></th>';
|
|
322
|
+
html += '<th class="e-week-number" aria-hidden="true"></th>';
|
|
323
323
|
if (this.getModuleName() === 'calendar') {
|
|
324
324
|
addClass([this.element], '' + WEEKNUMBER);
|
|
325
325
|
}
|
|
@@ -718,6 +718,7 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
718
718
|
}
|
|
719
719
|
if (currentMonth !== localDate.getMonth()) {
|
|
720
720
|
addClass([tdEle], OTHERMONTH);
|
|
721
|
+
dayLink.setAttribute('aria-disabled', 'true');
|
|
721
722
|
}
|
|
722
723
|
if (localDate.getDay() === 0 || localDate.getDay() === 6) {
|
|
723
724
|
addClass([tdEle], WEEKEND);
|
|
@@ -753,6 +754,7 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
753
754
|
if (this.renderDayCellArgs.isDisabled && !tdEle.classList.contains(SELECTED)) {
|
|
754
755
|
addClass([tdEle], DISABLED);
|
|
755
756
|
addClass([tdEle], OVERLAY);
|
|
757
|
+
dayLink.setAttribute('aria-disabled', 'true');
|
|
756
758
|
if (+this.renderDayCellArgs.date === +this.todayDate) {
|
|
757
759
|
this.todayDisabled = true;
|
|
758
760
|
}
|
|
@@ -914,6 +916,7 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
914
916
|
});
|
|
915
917
|
if ((year < startFullYr) || (year > endFullYr)) {
|
|
916
918
|
addClass([tdEle], OTHERDECADE);
|
|
919
|
+
dayLink.setAttribute('aria-disabled', 'true');
|
|
917
920
|
if (!isNullOrUndefined(value) && localDate.getFullYear() === (value).getFullYear()) {
|
|
918
921
|
addClass([tdEle], SELECTED);
|
|
919
922
|
}
|
|
@@ -972,7 +972,9 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
972
972
|
};
|
|
973
973
|
DatePicker.prototype.createCalendar = function () {
|
|
974
974
|
var _this = this;
|
|
975
|
-
this.popupWrapper = this.createElement('div', { className: '' + ROOT + ' ' + POPUPWRAPPER });
|
|
975
|
+
this.popupWrapper = this.createElement('div', { className: '' + ROOT + ' ' + POPUPWRAPPER, id: this.inputElement.id + '_options' });
|
|
976
|
+
this.popupWrapper.setAttribute('aria-label', this.element.id);
|
|
977
|
+
this.popupWrapper.setAttribute('role', 'dialog');
|
|
976
978
|
if (!isNullOrUndefined(this.cssClass)) {
|
|
977
979
|
this.popupWrapper.className += ' ' + this.cssClass;
|
|
978
980
|
}
|
|
@@ -1816,6 +1818,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1816
1818
|
if (this.isCalendar()) {
|
|
1817
1819
|
Input.addAttributes({ 'aria-expanded': 'true' }, this.inputElement);
|
|
1818
1820
|
attributes(this.inputElement, { 'aria-owns': this.inputElement.id + '_options' });
|
|
1821
|
+
attributes(this.inputElement, { 'aria-controls': this.inputElement.id });
|
|
1819
1822
|
if (this.value) {
|
|
1820
1823
|
attributes(this.inputElement, { 'aria-activedescendant': '' + this.setActiveDescendant() });
|
|
1821
1824
|
}
|
|
@@ -1823,6 +1826,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1823
1826
|
else {
|
|
1824
1827
|
Input.addAttributes({ 'aria-expanded': 'false' }, this.inputElement);
|
|
1825
1828
|
this.inputElement.removeAttribute('aria-owns');
|
|
1829
|
+
this.inputElement.removeAttribute('aria-controls');
|
|
1826
1830
|
this.inputElement.removeAttribute('aria-activedescendant');
|
|
1827
1831
|
}
|
|
1828
1832
|
};
|
|
@@ -1919,8 +1923,10 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1919
1923
|
case 'locale':
|
|
1920
1924
|
this.globalize = new Internationalization(this.locale);
|
|
1921
1925
|
this.l10n.setLocale(this.locale);
|
|
1922
|
-
this.
|
|
1923
|
-
|
|
1926
|
+
if (this.datepickerOptions && this.datepickerOptions.placeholder == null) {
|
|
1927
|
+
this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
|
|
1928
|
+
Input.setPlaceholder(this.placeholder, this.inputElement);
|
|
1929
|
+
}
|
|
1924
1930
|
this.updateInput();
|
|
1925
1931
|
if (this.enableMask) {
|
|
1926
1932
|
this.notify('createMask', {
|
|
@@ -793,6 +793,8 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
795
|
this.popupWrapper = createElement('div', { id: this.element.id + '_popup', className: ROOT + ' ' + POPUP });
|
|
796
|
+
this.popupWrapper.setAttribute('aria-label', this.element.id);
|
|
797
|
+
this.popupWrapper.setAttribute('role', 'dialog');
|
|
796
798
|
this.adjustLongHeaderWidth();
|
|
797
799
|
var isPreset = (!this.isCustomRange || this.isMobile);
|
|
798
800
|
if (!isUndefined(this.presets[0].start && this.presets[0].end && this.presets[0].label) && isPreset) {
|
|
@@ -981,8 +983,8 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
981
983
|
if (range.length > 1) {
|
|
982
984
|
this.invalidValueString = null;
|
|
983
985
|
var dateOptions = { format: this.formatString, type: 'date', skeleton: 'yMd' };
|
|
984
|
-
var start =
|
|
985
|
-
var end =
|
|
986
|
+
var start = this.globalize.parseDate(range[0], dateOptions);
|
|
987
|
+
var end = this.globalize.parseDate(range[1], dateOptions);
|
|
986
988
|
var startDate = this.getStartEndDate(start, false, range, dateOptions);
|
|
987
989
|
var endDate = this.getStartEndDate(end, true, range, dateOptions);
|
|
988
990
|
if (!isNullOrUndefined(startDate) && !isNaN(+startDate) && !isNullOrUndefined(endDate) && !isNaN(+endDate)) {
|
|
@@ -2946,7 +2948,7 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
2946
2948
|
if (!isUndefined(this.presets[0].start && this.presets[0].end && this.presets[0].label)) {
|
|
2947
2949
|
this.presetElement = this.createElement('div', { className: PRESETS, attrs: { 'tabindex': '0' } });
|
|
2948
2950
|
var listTag = ListBase.createList(this.createElement, this.presetsItem, null, true);
|
|
2949
|
-
attributes(listTag, { 'role': 'listbox', 'aria-hidden': 'false', 'id': this.element.id + '_options', 'tabindex': '0' });
|
|
2951
|
+
attributes(listTag, { 'role': 'listbox', 'aria-hidden': 'false', 'id': this.element.id + '_options', 'tabindex': '0', 'aria-label': 'daterangepicker-preset' });
|
|
2950
2952
|
this.presetElement.appendChild(listTag);
|
|
2951
2953
|
this.popupWrapper.appendChild(this.presetElement);
|
|
2952
2954
|
var customElement = this.presetElement.querySelector('#custom_range');
|
|
@@ -3033,7 +3035,7 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
3033
3035
|
EventHandler.add(_this.calendarElement.querySelector(".e-content.e-month"), "touchstart", _this.touchStartRangeHandler, _this);
|
|
3034
3036
|
}
|
|
3035
3037
|
}
|
|
3036
|
-
attributes(_this.inputElement, { 'aria-expanded': 'true', 'aria-owns': _this.
|
|
3038
|
+
attributes(_this.inputElement, { 'aria-expanded': 'true', 'aria-owns': _this.element.id, 'aria-controls': _this.inputElement.id });
|
|
3037
3039
|
if (_this.value) {
|
|
3038
3040
|
attributes(_this.inputElement, { 'aria-activedescendant': _this.inputElement.id });
|
|
3039
3041
|
}
|
|
@@ -3088,6 +3090,7 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
3088
3090
|
close: function () {
|
|
3089
3091
|
attributes(_this.inputElement, { 'aria-expanded': 'false' });
|
|
3090
3092
|
_this.inputElement.removeAttribute('aria-owns');
|
|
3093
|
+
_this.inputElement.removeAttribute('aria-controls');
|
|
3091
3094
|
_this.inputElement.removeAttribute('aria-activedescendant');
|
|
3092
3095
|
removeClass([_this.inputWrapper.buttons[0]], ACTIVE);
|
|
3093
3096
|
if (_this.isRangeIconClicked) {
|
|
@@ -3108,7 +3111,7 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
3108
3111
|
}
|
|
3109
3112
|
}, targetExitViewport: function () {
|
|
3110
3113
|
var popupEle = _this.popupObj && _this.popupObj.element;
|
|
3111
|
-
if (!Browser.isDevice && popupEle && popupEle.getBoundingClientRect().height <
|
|
3114
|
+
if (!Browser.isDevice && popupEle && popupEle.getBoundingClientRect().height < window.innerHeight) {
|
|
3112
3115
|
_this.hide();
|
|
3113
3116
|
}
|
|
3114
3117
|
}
|
|
@@ -3441,10 +3444,10 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
3441
3444
|
'autocomplete': 'off', 'aria-disabled': !this.enabled ? 'true' : 'false',
|
|
3442
3445
|
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false'
|
|
3443
3446
|
});
|
|
3444
|
-
Input.addAttributes({ 'aria-label': 'select' }, this.inputWrapper.buttons[0]);
|
|
3445
|
-
if (!isNullOrUndefined(this.placeholder) && this.placeholder.trim() !== '') {
|
|
3446
|
-
|
|
3447
|
-
}
|
|
3447
|
+
Input.addAttributes({ 'aria-label': 'select', 'role': 'button' }, this.inputWrapper.buttons[0]);
|
|
3448
|
+
// if (!isNullOrUndefined(this.placeholder) && this.placeholder.trim() !== '') {
|
|
3449
|
+
// Input.addAttributes({ 'aria-placeholder': this.placeholder }, this.inputElement);
|
|
3450
|
+
// }
|
|
3448
3451
|
this.setEleWidth(this.width);
|
|
3449
3452
|
addClass([this.inputWrapper.container], DATERANGEWRAPPER);
|
|
3450
3453
|
if (isNullOrUndefined(this.inputElement.getAttribute('name'))) {
|
|
@@ -4172,8 +4175,10 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
4172
4175
|
DateRangePicker.prototype.setLocale = function () {
|
|
4173
4176
|
this.globalize = new Internationalization(this.locale);
|
|
4174
4177
|
this.l10n.setLocale(this.locale);
|
|
4175
|
-
this.
|
|
4176
|
-
|
|
4178
|
+
if (this.dateRangeOptions && this.dateRangeOptions.placeholder == null) {
|
|
4179
|
+
this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
|
|
4180
|
+
Input.setPlaceholder(this.placeholder, this.inputElement);
|
|
4181
|
+
}
|
|
4177
4182
|
this.updateInput();
|
|
4178
4183
|
this.updateHiddenInput();
|
|
4179
4184
|
this.changeTrigger();
|
|
@@ -4330,8 +4335,10 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
4330
4335
|
case 'locale':
|
|
4331
4336
|
this.globalize = new Internationalization(this.locale);
|
|
4332
4337
|
this.l10n.setLocale(this.locale);
|
|
4333
|
-
this.
|
|
4334
|
-
|
|
4338
|
+
if (this.dateRangeOptions && this.dateRangeOptions.placeholder == null) {
|
|
4339
|
+
this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
|
|
4340
|
+
Input.setPlaceholder(this.placeholder, this.inputElement);
|
|
4341
|
+
}
|
|
4335
4342
|
this.setLocale();
|
|
4336
4343
|
break;
|
|
4337
4344
|
case 'htmlAttributes':
|
|
@@ -54,6 +54,8 @@ export declare class DateTimePicker extends DatePicker {
|
|
|
54
54
|
protected moduleName: string;
|
|
55
55
|
protected touchDTModule: Touch;
|
|
56
56
|
protected touchDTStart: boolean;
|
|
57
|
+
private formatRegex;
|
|
58
|
+
private dateFormatString;
|
|
57
59
|
/**
|
|
58
60
|
* Specifies the format of the time value that to be displayed in time popup list.
|
|
59
61
|
*
|
|
@@ -571,6 +573,7 @@ export declare class DateTimePicker extends DatePicker {
|
|
|
571
573
|
protected isValidLI(li: Element | HTMLElement): boolean;
|
|
572
574
|
private calculateStartEnd;
|
|
573
575
|
private startTime;
|
|
576
|
+
private TimePopupFormat;
|
|
574
577
|
private endTime;
|
|
575
578
|
hide(e?: KeyboardEvent | MouseEvent | Event): void;
|
|
576
579
|
private dateTimeCloseEventCallback;
|
|
@@ -85,6 +85,8 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
85
85
|
_this.valueWithMinutes = null;
|
|
86
86
|
_this.scrollInvoked = false;
|
|
87
87
|
_this.moduleName = _this.getModuleName();
|
|
88
|
+
_this.formatRegex = /dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|'[^']*'|'[^']*'/g;
|
|
89
|
+
_this.dateFormatString = '';
|
|
88
90
|
_this.dateTimeOptions = options;
|
|
89
91
|
return _this;
|
|
90
92
|
}
|
|
@@ -504,8 +506,9 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
504
506
|
DateTimePicker.prototype.listCreation = function () {
|
|
505
507
|
var dateObject;
|
|
506
508
|
if (this.calendarMode === 'Gregorian') {
|
|
509
|
+
this.cldrDateTimeFormat().replace(this.formatRegex, this.TimePopupFormat());
|
|
507
510
|
dateObject = this.globalize.parseDate(this.inputElement.value, {
|
|
508
|
-
format: this.
|
|
511
|
+
format: this.dateFormatString, type: 'datetime'
|
|
509
512
|
});
|
|
510
513
|
}
|
|
511
514
|
else {
|
|
@@ -536,7 +539,7 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
536
539
|
if (type === 'date') {
|
|
537
540
|
if (!this.readonly && this.popupWrapper) {
|
|
538
541
|
addClass([this.popupWrapper], DATETIMEPOPUPWRAPPER);
|
|
539
|
-
attributes(this.popupWrapper, { 'id': this.element.id + '
|
|
542
|
+
attributes(this.popupWrapper, { 'id': this.element.id + '_options' });
|
|
540
543
|
}
|
|
541
544
|
}
|
|
542
545
|
else {
|
|
@@ -595,6 +598,7 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
595
598
|
addClass([_this.inputWrapper.container], [ICONANIMATION]);
|
|
596
599
|
attributes(_this.inputElement, { 'aria-expanded': 'true' });
|
|
597
600
|
attributes(_this.inputElement, { 'aria-owns': _this.inputElement.id + '_options' });
|
|
601
|
+
attributes(_this.inputElement, { 'aria-controls': _this.inputElement.id });
|
|
598
602
|
EventHandler.add(document, 'mousedown touchstart', _this.documentClickHandler, _this);
|
|
599
603
|
}
|
|
600
604
|
});
|
|
@@ -994,6 +998,40 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
994
998
|
}
|
|
995
999
|
return this.calculateStartEnd(tempStartValue, start, 'starttime');
|
|
996
1000
|
};
|
|
1001
|
+
DateTimePicker.prototype.TimePopupFormat = function () {
|
|
1002
|
+
var format = '';
|
|
1003
|
+
var formatCount = 0;
|
|
1004
|
+
var proxy = this;
|
|
1005
|
+
function formatValueSpecifier(formattext) {
|
|
1006
|
+
switch (formattext) {
|
|
1007
|
+
case 'd':
|
|
1008
|
+
case 'dd':
|
|
1009
|
+
case 'ddd':
|
|
1010
|
+
case 'dddd':
|
|
1011
|
+
case 'M':
|
|
1012
|
+
case 'MM':
|
|
1013
|
+
case 'MMM':
|
|
1014
|
+
case 'MMMM':
|
|
1015
|
+
case 'y':
|
|
1016
|
+
case 'yy':
|
|
1017
|
+
case 'yyy':
|
|
1018
|
+
case 'yyyy':
|
|
1019
|
+
if (format == '') {
|
|
1020
|
+
format = format + formattext;
|
|
1021
|
+
}
|
|
1022
|
+
else {
|
|
1023
|
+
format = format + "/" + formattext;
|
|
1024
|
+
}
|
|
1025
|
+
formatCount = formatCount + 1;
|
|
1026
|
+
break;
|
|
1027
|
+
}
|
|
1028
|
+
if (formatCount > 2) {
|
|
1029
|
+
proxy.dateFormatString = format;
|
|
1030
|
+
}
|
|
1031
|
+
return format;
|
|
1032
|
+
}
|
|
1033
|
+
return formatValueSpecifier;
|
|
1034
|
+
};
|
|
997
1035
|
DateTimePicker.prototype.endTime = function (date) {
|
|
998
1036
|
var tempEndValue;
|
|
999
1037
|
var end;
|
|
@@ -1074,6 +1112,7 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
1074
1112
|
this.inputWrapper.container.classList.remove(ICONANIMATION);
|
|
1075
1113
|
attributes(this.inputElement, { 'aria-expanded': 'false' });
|
|
1076
1114
|
this.inputElement.removeAttribute('aria-owns');
|
|
1115
|
+
this.inputElement.removeAttribute('aria-controls');
|
|
1077
1116
|
EventHandler.remove(document, 'mousedown touchstart', this.documentClickHandler);
|
|
1078
1117
|
}
|
|
1079
1118
|
};
|
|
@@ -1441,8 +1480,10 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
1441
1480
|
case 'locale':
|
|
1442
1481
|
this.globalize = new Internationalization(this.locale);
|
|
1443
1482
|
this.l10n.setLocale(this.locale);
|
|
1444
|
-
this.
|
|
1445
|
-
|
|
1483
|
+
if (this.dateTimeOptions && this.dateTimeOptions.placeholder == null) {
|
|
1484
|
+
this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
|
|
1485
|
+
Input.setPlaceholder(this.l10n.getConstant('placeholder'), this.inputElement);
|
|
1486
|
+
}
|
|
1446
1487
|
this.dateTimeFormat = this.cldrDateTimeFormat();
|
|
1447
1488
|
_super.prototype.updateInput.call(this);
|
|
1448
1489
|
break;
|
|
@@ -42,6 +42,7 @@ var MaskedDateTime = /** @class */ (function () {
|
|
|
42
42
|
this.isDateZero = false;
|
|
43
43
|
this.isMonthZero = false;
|
|
44
44
|
this.isYearZero = false;
|
|
45
|
+
this.isLeadingZero = false;
|
|
45
46
|
this.dayTypeCount = 0;
|
|
46
47
|
this.monthTypeCount = 0;
|
|
47
48
|
this.hourTypeCount = 0;
|
|
@@ -285,7 +286,18 @@ var MaskedDateTime = /** @class */ (function () {
|
|
|
285
286
|
}
|
|
286
287
|
if (month >= 1) {
|
|
287
288
|
newDateValue.setMonth(month - 1);
|
|
288
|
-
|
|
289
|
+
if (month >= 10 || month == 1) {
|
|
290
|
+
if (this.isLeadingZero && month == 1) {
|
|
291
|
+
this.isNavigate = month.toString().length === 1;
|
|
292
|
+
this.isLeadingZero = false;
|
|
293
|
+
}
|
|
294
|
+
else {
|
|
295
|
+
this.isNavigate = month.toString().length === 2;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
this.isNavigate = month.toString().length === 1;
|
|
300
|
+
}
|
|
289
301
|
if (newDateValue.getMonth() !== month - 1) {
|
|
290
302
|
newDateValue.setDate(1);
|
|
291
303
|
newDateValue.setMonth(month - 1);
|
|
@@ -303,6 +315,7 @@ var MaskedDateTime = /** @class */ (function () {
|
|
|
303
315
|
}
|
|
304
316
|
else {
|
|
305
317
|
newDateValue.setMonth(0);
|
|
318
|
+
this.isLeadingZero = true;
|
|
306
319
|
this.isMonthPart = false;
|
|
307
320
|
this.monthTypeCount = this.isMonthZero ? this.monthTypeCount + 1 : this.monthTypeCount;
|
|
308
321
|
}
|
|
@@ -539,6 +539,8 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
539
539
|
className: ROOT + ' ' + POPUP,
|
|
540
540
|
attrs: { 'id': this.element.id + '_popup', 'style': 'visibility:hidden' }
|
|
541
541
|
});
|
|
542
|
+
this.popupWrapper.setAttribute('aria-label', this.element.id);
|
|
543
|
+
this.popupWrapper.setAttribute('role', 'dialog');
|
|
542
544
|
if (!isNullOrUndefined(this.cssClass)) {
|
|
543
545
|
this.popupWrapper.className += ' ' + this.cssClass;
|
|
544
546
|
}
|
|
@@ -1098,6 +1100,7 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
1098
1100
|
removeClass([_this.inputWrapper.container], [ICONANIMATION]);
|
|
1099
1101
|
attributes(_this.inputElement, { 'aria-expanded': 'false' });
|
|
1100
1102
|
_this.inputElement.removeAttribute('aria-owns');
|
|
1103
|
+
_this.inputElement.removeAttribute('aria-controls');
|
|
1101
1104
|
_this.inputElement.removeAttribute('aria-activedescendant');
|
|
1102
1105
|
EventHandler.remove(document, 'mousedown touchstart', _this.documentClickHandler);
|
|
1103
1106
|
}
|
|
@@ -2209,6 +2212,7 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
2209
2212
|
_this.setActiveDescendant();
|
|
2210
2213
|
attributes(_this.inputElement, { 'aria-expanded': 'true' });
|
|
2211
2214
|
attributes(_this.inputElement, { 'aria-owns': _this.inputElement.id + '_options' });
|
|
2215
|
+
attributes(_this.inputElement, { 'aria-controls': _this.inputElement.id });
|
|
2212
2216
|
addClass([_this.inputWrapper.container], FOCUS);
|
|
2213
2217
|
EventHandler.add(document, 'mousedown touchstart', _this.documentClickHandler, _this);
|
|
2214
2218
|
_this.setOverlayIndex(_this.mobileTimePopupWrap, _this.popupObj.element, _this.modal, Browser.isDevice);
|
|
@@ -2370,7 +2374,9 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
2370
2374
|
this.setProperties({ locale: newProp.locale }, true);
|
|
2371
2375
|
this.globalize = new Internationalization(this.locale);
|
|
2372
2376
|
this.l10n.setLocale(this.locale);
|
|
2373
|
-
this.
|
|
2377
|
+
if (this.timeOptions && this.timeOptions.placeholder == null) {
|
|
2378
|
+
this.updatePlaceHolder();
|
|
2379
|
+
}
|
|
2374
2380
|
this.setValue(this.value);
|
|
2375
2381
|
if (this.enableMask) {
|
|
2376
2382
|
this.notify('createMask', {
|
|
@@ -721,13 +721,11 @@
|
|
|
721
721
|
height: $modal-range-prev-next-icon-size;
|
|
722
722
|
width: $modal-range-prev-next-icon-size;
|
|
723
723
|
@if ($skin-name == 'Material3') {
|
|
724
|
-
margin-right: 60vw;
|
|
725
724
|
vertical-align: inherit;
|
|
726
725
|
font-size: $modal-range-tablet-font-size
|
|
727
726
|
}
|
|
728
727
|
@media screen and (orientation: landscape) {
|
|
729
728
|
@if ($skin-name == 'Material3') {
|
|
730
|
-
margin-right: 78vw;
|
|
731
729
|
vertical-align: inherit;
|
|
732
730
|
}
|
|
733
731
|
}
|
|
@@ -742,9 +740,6 @@
|
|
|
742
740
|
#{if(&, '&', '*')} .e-next {
|
|
743
741
|
height: $modal-range-prev-next-icon-size;
|
|
744
742
|
width: $modal-range-prev-next-icon-size;
|
|
745
|
-
@if ($skin-name == 'Material3') {
|
|
746
|
-
margin-right: 42px;
|
|
747
|
-
}
|
|
748
743
|
|
|
749
744
|
#{if(&, '&', '*')} span {
|
|
750
745
|
padding: $modal-range-prev-next-icon-padding;
|
|
@@ -757,16 +752,17 @@
|
|
|
757
752
|
|
|
758
753
|
#{if(&, '&', '*')} .e-title {
|
|
759
754
|
@media (max-height: 600px) {
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
755
|
+
@if ($skin-name =='Material3') {
|
|
756
|
+
margin-left: $modal-header-month-name-left-landscape-width;
|
|
757
|
+
position: absolute;
|
|
758
|
+
text-align: center;
|
|
759
|
+
vertical-align: middle;
|
|
760
|
+
width: $modal-header-month-name-width;
|
|
761
|
+
line-height: $modal-month-name-line-height;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
line-height: $modal-range-month-landscape-title-line-height;
|
|
765
|
+
}
|
|
770
766
|
|
|
771
767
|
@media (min-height: 600px) {
|
|
772
768
|
@if ($skin-name == 'Material3') {
|
|
@@ -250,7 +250,8 @@ $modal-range-landscape-conetent-overflow: auto !default;
|
|
|
250
250
|
$modal-range-table-display: table !default;
|
|
251
251
|
$modal-range-start-end-size: 28px !default;
|
|
252
252
|
$modal-month-name-line-height: 44px !default;
|
|
253
|
-
$modal-header-month-name-left-width: -
|
|
253
|
+
$modal-header-month-name-left-width: -29vw !default;
|
|
254
|
+
$modal-header-month-name-left-landscape-width: -27vw !default;
|
|
254
255
|
$modal-header-month-name-width: 50vw !default;
|
|
255
256
|
|
|
256
257
|
// header styles for presets
|
|
@@ -834,13 +834,11 @@
|
|
|
834
834
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-prev, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-prev, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-prev {
|
|
835
835
|
height: 36px;
|
|
836
836
|
width: 36px;
|
|
837
|
-
margin-right: 60vw;
|
|
838
837
|
vertical-align: inherit;
|
|
839
838
|
font-size: 18px;
|
|
840
839
|
}
|
|
841
840
|
@media screen and (orientation: landscape) {
|
|
842
841
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-prev, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-prev, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-prev {
|
|
843
|
-
margin-right: 78vw;
|
|
844
842
|
vertical-align: inherit;
|
|
845
843
|
}
|
|
846
844
|
}
|
|
@@ -853,7 +851,6 @@
|
|
|
853
851
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-next, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-next, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-next {
|
|
854
852
|
height: 36px;
|
|
855
853
|
width: 36px;
|
|
856
|
-
margin-right: 42px;
|
|
857
854
|
}
|
|
858
855
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-next span, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-next span, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-next span {
|
|
859
856
|
padding: 10px;
|
|
@@ -866,7 +863,7 @@
|
|
|
866
863
|
}
|
|
867
864
|
@media (max-height: 600px) {
|
|
868
865
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-title, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-title, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-title {
|
|
869
|
-
margin-left: -
|
|
866
|
+
margin-left: -27vw;
|
|
870
867
|
position: absolute;
|
|
871
868
|
text-align: center;
|
|
872
869
|
vertical-align: middle;
|
|
@@ -877,7 +874,7 @@
|
|
|
877
874
|
}
|
|
878
875
|
@media (min-height: 600px) {
|
|
879
876
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-title, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-title, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-title {
|
|
880
|
-
margin-left: -
|
|
877
|
+
margin-left: -29vw;
|
|
881
878
|
position: absolute;
|
|
882
879
|
text-align: center;
|
|
883
880
|
vertical-align: middle;
|
|
@@ -890,13 +890,11 @@
|
|
|
890
890
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-prev, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-prev, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-prev {
|
|
891
891
|
height: 36px;
|
|
892
892
|
width: 36px;
|
|
893
|
-
margin-right: 60vw;
|
|
894
893
|
vertical-align: inherit;
|
|
895
894
|
font-size: 18px;
|
|
896
895
|
}
|
|
897
896
|
@media screen and (orientation: landscape) {
|
|
898
897
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-prev, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-prev, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-prev {
|
|
899
|
-
margin-right: 78vw;
|
|
900
898
|
vertical-align: inherit;
|
|
901
899
|
}
|
|
902
900
|
}
|
|
@@ -909,7 +907,6 @@
|
|
|
909
907
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-next, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-next, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-next {
|
|
910
908
|
height: 36px;
|
|
911
909
|
width: 36px;
|
|
912
|
-
margin-right: 42px;
|
|
913
910
|
}
|
|
914
911
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-next span, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-next span, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-next span {
|
|
915
912
|
padding: 10px;
|
|
@@ -922,7 +919,7 @@
|
|
|
922
919
|
}
|
|
923
920
|
@media (max-height: 600px) {
|
|
924
921
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-title, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-title, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-title {
|
|
925
|
-
margin-left: -
|
|
922
|
+
margin-left: -27vw;
|
|
926
923
|
position: absolute;
|
|
927
924
|
text-align: center;
|
|
928
925
|
vertical-align: middle;
|
|
@@ -933,7 +930,7 @@
|
|
|
933
930
|
}
|
|
934
931
|
@media (min-height: 600px) {
|
|
935
932
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-title, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-title, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-title {
|
|
936
|
-
margin-left: -
|
|
933
|
+
margin-left: -29vw;
|
|
937
934
|
position: absolute;
|
|
938
935
|
text-align: center;
|
|
939
936
|
vertical-align: middle;
|
|
@@ -2502,13 +2502,11 @@ ejs-calendar {
|
|
|
2502
2502
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-prev, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-prev, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-prev {
|
|
2503
2503
|
height: 36px;
|
|
2504
2504
|
width: 36px;
|
|
2505
|
-
margin-right: 60vw;
|
|
2506
2505
|
vertical-align: inherit;
|
|
2507
2506
|
font-size: 18px;
|
|
2508
2507
|
}
|
|
2509
2508
|
@media screen and (orientation: landscape) {
|
|
2510
2509
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-prev, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-prev, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-prev {
|
|
2511
|
-
margin-right: 78vw;
|
|
2512
2510
|
vertical-align: inherit;
|
|
2513
2511
|
}
|
|
2514
2512
|
}
|
|
@@ -2521,7 +2519,6 @@ ejs-calendar {
|
|
|
2521
2519
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-next, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-next, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-next {
|
|
2522
2520
|
height: 36px;
|
|
2523
2521
|
width: 36px;
|
|
2524
|
-
margin-right: 42px;
|
|
2525
2522
|
}
|
|
2526
2523
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-next span, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-next span, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-next span {
|
|
2527
2524
|
padding: 10px;
|
|
@@ -2534,7 +2531,7 @@ ejs-calendar {
|
|
|
2534
2531
|
}
|
|
2535
2532
|
@media (max-height: 600px) {
|
|
2536
2533
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-title, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-title, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-title {
|
|
2537
|
-
margin-left: -
|
|
2534
|
+
margin-left: -27vw;
|
|
2538
2535
|
position: absolute;
|
|
2539
2536
|
text-align: center;
|
|
2540
2537
|
vertical-align: middle;
|
|
@@ -2545,7 +2542,7 @@ ejs-calendar {
|
|
|
2545
2542
|
}
|
|
2546
2543
|
@media (min-height: 600px) {
|
|
2547
2544
|
.e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-month .e-title, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-year .e-title, .e-daterangepick-mob-popup-wrap .e-daterangepicker.e-popup.e-popup-expand .e-date-range-container .e-calendar .e-header.e-decade .e-title {
|
|
2548
|
-
margin-left: -
|
|
2545
|
+
margin-left: -29vw;
|
|
2549
2546
|
position: absolute;
|
|
2550
2547
|
text-align: center;
|
|
2551
2548
|
vertical-align: middle;
|