@syncfusion/ej2-calendars 23.1.36 → 23.1.38
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 +6 -3
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +6 -3
- 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 +7 -7
- package/src/calendar/calendar.js +3 -0
- package/src/datepicker/datepicker.js +3 -3
|
@@ -857,6 +857,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
857
857
|
var dayLink = this.createElement('span');
|
|
858
858
|
var localMonth = (value && (value).getMonth() === localDate.getMonth());
|
|
859
859
|
var select$$1 = (value && (value).getFullYear() === yr && localMonth);
|
|
860
|
+
var title = this.globalize.formatDate(localDate, { type: 'date', format: 'MMM y' });
|
|
860
861
|
dayLink.textContent = this.toCapitalize(this.globalize.formatDate(localDate, {
|
|
861
862
|
format: null, type: 'dateTime', skeleton: 'MMM'
|
|
862
863
|
}));
|
|
@@ -875,6 +876,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
875
876
|
localDate.setMonth(localDate.getMonth() + 1);
|
|
876
877
|
if (!tdEle.classList.contains(DISABLED)) {
|
|
877
878
|
EventHandler.add(tdEle, 'click', this.clickHandler, this);
|
|
879
|
+
dayLink.setAttribute('title', '' + title);
|
|
878
880
|
}
|
|
879
881
|
tdEle.appendChild(dayLink);
|
|
880
882
|
tdEles.push(tdEle);
|
|
@@ -933,6 +935,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
933
935
|
}
|
|
934
936
|
if (!tdEle.classList.contains(DISABLED)) {
|
|
935
937
|
EventHandler.add(tdEle, 'click', this.clickHandler, this);
|
|
938
|
+
dayLink.setAttribute('title', '' + dayLink.textContent);
|
|
936
939
|
}
|
|
937
940
|
tdEle.appendChild(dayLink);
|
|
938
941
|
tdEles.push(tdEle);
|
|
@@ -4087,10 +4090,10 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
4087
4090
|
}
|
|
4088
4091
|
else {
|
|
4089
4092
|
if (this.calendarMode === 'Gregorian') {
|
|
4090
|
-
formatOptions = { type: 'dateTime', skeleton: 'yMd' };
|
|
4093
|
+
formatOptions = { format: format, type: 'dateTime', skeleton: 'yMd' };
|
|
4091
4094
|
}
|
|
4092
4095
|
else {
|
|
4093
|
-
formatOptions = { type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
|
|
4096
|
+
formatOptions = { format: format, type: 'dateTime', skeleton: 'yMd', calendar: 'islamic' };
|
|
4094
4097
|
}
|
|
4095
4098
|
date = this.globalize.parseDate(this.inputElement.value, formatOptions);
|
|
4096
4099
|
}
|
|
@@ -4154,7 +4157,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
4154
4157
|
targetType: 'container',
|
|
4155
4158
|
enableRtl: this.enableRtl,
|
|
4156
4159
|
zIndex: this.zIndex,
|
|
4157
|
-
collision: Browser.isDevice ? { X: 'fit', Y: 'fit' } : { X: 'flip', Y: 'flip' },
|
|
4160
|
+
collision: Browser.isDevice ? { X: 'fit', Y: 'fit' } : (this.enableRtl ? { X: 'fit', Y: 'flip' } : { X: 'flip', Y: 'flip' }),
|
|
4158
4161
|
open: function () {
|
|
4159
4162
|
if (Browser.isDevice && _this.fullScreenMode) {
|
|
4160
4163
|
_this.iconRight = parseInt(window.getComputedStyle(_this.calendarElement.querySelector('.e-header.e-month .e-prev')).marginRight, 10) > 16 ? true : false;
|