@syncfusion/ej2-calendars 23.1.36 → 23.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-calendars.min.js +3 -3
- package/dist/ej2-calendars.umd.min.js +3 -3
- package/dist/ej2-calendars.umd.min.js.map +1 -1
- package/dist/es6/ej2-calendars.es2015.js +15 -6
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +15 -6
- package/dist/es6/ej2-calendars.es5.js.map +1 -1
- package/dist/global/ej2-calendars.min.js +3 -3
- package/dist/global/ej2-calendars.min.js.map +1 -1
- package/dist/global/index.d.ts +2 -2
- package/package.json +9 -9
- package/src/calendar/calendar.js +4 -1
- package/src/datepicker/datepicker.js +5 -5
- package/src/datetimepicker/datetimepicker.js +6 -0
|
@@ -840,6 +840,7 @@ let CalendarBase = class CalendarBase extends Component {
|
|
|
840
840
|
const dayLink = this.createElement('span');
|
|
841
841
|
const localMonth = (value && (value).getMonth() === localDate.getMonth());
|
|
842
842
|
const select$$1 = (value && (value).getFullYear() === yr && localMonth);
|
|
843
|
+
const title = this.globalize.formatDate(localDate, { type: 'date', format: 'MMM y' });
|
|
843
844
|
dayLink.textContent = this.toCapitalize(this.globalize.formatDate(localDate, {
|
|
844
845
|
format: null, type: 'dateTime', skeleton: 'MMM'
|
|
845
846
|
}));
|
|
@@ -858,6 +859,7 @@ let CalendarBase = class CalendarBase extends Component {
|
|
|
858
859
|
localDate.setMonth(localDate.getMonth() + 1);
|
|
859
860
|
if (!tdEle.classList.contains(DISABLED)) {
|
|
860
861
|
EventHandler.add(tdEle, 'click', this.clickHandler, this);
|
|
862
|
+
dayLink.setAttribute('title', '' + title);
|
|
861
863
|
}
|
|
862
864
|
tdEle.appendChild(dayLink);
|
|
863
865
|
tdEles.push(tdEle);
|
|
@@ -916,6 +918,7 @@ let CalendarBase = class CalendarBase extends Component {
|
|
|
916
918
|
}
|
|
917
919
|
if (!tdEle.classList.contains(DISABLED)) {
|
|
918
920
|
EventHandler.add(tdEle, 'click', this.clickHandler, this);
|
|
921
|
+
dayLink.setAttribute('title', '' + dayLink.textContent);
|
|
919
922
|
}
|
|
920
923
|
tdEle.appendChild(dayLink);
|
|
921
924
|
tdEles.push(tdEle);
|
|
@@ -2268,7 +2271,7 @@ let Calendar = class Calendar extends CalendarBase {
|
|
|
2268
2271
|
this.islamicModule.islamicRenderTemplate(elements, count, classNm, e, this.value);
|
|
2269
2272
|
}
|
|
2270
2273
|
this.changedArgs = { value: this.value, values: this.values };
|
|
2271
|
-
this.changeHandler();
|
|
2274
|
+
e && e.type === 'click' && e.currentTarget.classList.contains(OTHERMONTH) ? this.changeHandler(e) : this.changeHandler();
|
|
2272
2275
|
}
|
|
2273
2276
|
clickHandler(e) {
|
|
2274
2277
|
const eve = e.currentTarget;
|
|
@@ -3297,7 +3300,7 @@ let DatePicker = class DatePicker extends Calendar {
|
|
|
3297
3300
|
const ariaAttrs = {
|
|
3298
3301
|
'aria-atomic': 'true', 'aria-expanded': 'false',
|
|
3299
3302
|
'role': 'combobox', 'autocomplete': 'off', 'autocorrect': 'off',
|
|
3300
|
-
'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false'
|
|
3303
|
+
'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false', 'aria-label': this.getModuleName()
|
|
3301
3304
|
};
|
|
3302
3305
|
if (this.getModuleName() === 'datepicker') {
|
|
3303
3306
|
const l10nLocale = { placeholder: this.placeholder };
|
|
@@ -4043,10 +4046,10 @@ let DatePicker = class DatePicker extends Calendar {
|
|
|
4043
4046
|
}
|
|
4044
4047
|
else {
|
|
4045
4048
|
if (this.calendarMode === 'Gregorian') {
|
|
4046
|
-
formatOptions = { type: 'dateTime', skeleton: 'yMd' };
|
|
4049
|
+
formatOptions = { format: format, type: 'dateTime', skeleton: 'yMd' };
|
|
4047
4050
|
}
|
|
4048
4051
|
else {
|
|
4049
|
-
formatOptions = { type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
|
|
4052
|
+
formatOptions = { format: format, type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
|
|
4050
4053
|
}
|
|
4051
4054
|
date = this.globalize.parseDate(this.inputElement.value, formatOptions);
|
|
4052
4055
|
}
|
|
@@ -4109,7 +4112,7 @@ let DatePicker = class DatePicker extends Calendar {
|
|
|
4109
4112
|
targetType: 'container',
|
|
4110
4113
|
enableRtl: this.enableRtl,
|
|
4111
4114
|
zIndex: this.zIndex,
|
|
4112
|
-
collision: Browser.isDevice ? { X: 'fit', Y: 'fit' } : { X: 'flip', Y: 'flip' },
|
|
4115
|
+
collision: Browser.isDevice ? { X: 'fit', Y: 'fit' } : (this.enableRtl ? { X: 'fit', Y: 'flip' } : { X: 'flip', Y: 'flip' }),
|
|
4113
4116
|
open: () => {
|
|
4114
4117
|
if (Browser.isDevice && this.fullScreenMode) {
|
|
4115
4118
|
this.iconRight = parseInt(window.getComputedStyle(this.calendarElement.querySelector('.e-header.e-month .e-prev')).marginRight, 10) > 16 ? true : false;
|
|
@@ -4589,7 +4592,7 @@ let DatePicker = class DatePicker extends Calendar {
|
|
|
4589
4592
|
const ariaAttrs = {
|
|
4590
4593
|
'aria-atomic': 'true', 'aria-disabled': 'true',
|
|
4591
4594
|
'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
|
|
4592
|
-
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false'
|
|
4595
|
+
'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false', 'aria-label': this.getModuleName()
|
|
4593
4596
|
};
|
|
4594
4597
|
if (this.inputElement) {
|
|
4595
4598
|
Input.removeAttributes(ariaAttrs, this.inputElement);
|
|
@@ -12491,6 +12494,12 @@ let DateTimePicker = class DateTimePicker extends DatePicker {
|
|
|
12491
12494
|
this.cloneElement = this.element.cloneNode(true);
|
|
12492
12495
|
this.dateTimeFormat = this.cldrDateTimeFormat();
|
|
12493
12496
|
this.initValue = this.value;
|
|
12497
|
+
if (typeof (this.min) === 'string') {
|
|
12498
|
+
this.min = this.checkDateValue(new Date(this.min));
|
|
12499
|
+
}
|
|
12500
|
+
if (typeof (this.max) === 'string') {
|
|
12501
|
+
this.max = this.checkDateValue(new Date(this.max));
|
|
12502
|
+
}
|
|
12494
12503
|
if (!isNullOrUndefined(closest(this.element, 'fieldset')) && closest(this.element, 'fieldset').disabled) {
|
|
12495
12504
|
this.enabled = false;
|
|
12496
12505
|
}
|