@syncfusion/ej2-calendars 33.2.7 → 33.2.8
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 +1 -10
- package/dist/ej2-calendars.umd.min.js +1 -10
- package/dist/ej2-calendars.umd.min.js.map +1 -1
- package/dist/es6/ej2-calendars.es2015.js +16 -3
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +16 -3
- package/dist/es6/ej2-calendars.es5.js.map +1 -1
- package/dist/global/ej2-calendars.min.js +1 -10
- package/dist/global/ej2-calendars.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/package.json +1 -1
- package/src/calendar/calendar.js +2 -2
- package/src/datepicker/datepicker.d.ts +1 -0
- package/src/datepicker/datepicker.js +14 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* filename: index.d.ts
|
|
3
|
-
* version : 33.2.7
|
|
4
|
-
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
|
-
* Use of this code is subject to the terms of our license.
|
|
6
|
-
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
-
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
-
* applicable laws.
|
|
9
|
-
*/
|
|
10
1
|
import * as _calendars from '@syncfusion/ej2-calendars';
|
|
11
2
|
|
|
12
3
|
export declare namespace ej {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-calendars",
|
|
3
|
-
"version": "33.2.
|
|
3
|
+
"version": "33.2.8",
|
|
4
4
|
"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.",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
package/src/calendar/calendar.js
CHANGED
|
@@ -361,7 +361,7 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
361
361
|
this.getCultureValues())), this.firstDayOfWeek) : null;
|
|
362
362
|
if (!isNullOrUndefined(shortNames)) {
|
|
363
363
|
for (var days = 0; days <= daysCount; days++) {
|
|
364
|
-
html += '<th
|
|
364
|
+
html += '<th aria-hidden="true" class="">' + this.toCapitalize(shortNames[days]) + '</th>';
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
html = '<tr>' + html + '</tr>';
|
|
@@ -1056,7 +1056,7 @@ var CalendarBase = /** @class */ (function (_super) {
|
|
|
1056
1056
|
value = date.valueOf();
|
|
1057
1057
|
}
|
|
1058
1058
|
var attrs = {
|
|
1059
|
-
className: CELL, attrs: { 'id': '' + getUniqueID('' + value) }
|
|
1059
|
+
className: CELL, attrs: { 'id': '' + getUniqueID('' + value), 'aria-selected': 'false' }
|
|
1060
1060
|
};
|
|
1061
1061
|
return this.createElement('td', attrs);
|
|
1062
1062
|
};
|
|
@@ -439,6 +439,7 @@ export declare class DatePicker extends Calendar implements IInput {
|
|
|
439
439
|
private updateInputValue;
|
|
440
440
|
private dateIconHandler;
|
|
441
441
|
protected updateHtmlAttributeToWrapper(): void;
|
|
442
|
+
private getDeviceType;
|
|
442
443
|
protected updateHtmlAttributeToElement(): void;
|
|
443
444
|
private updateCssClass;
|
|
444
445
|
private calendarKeyActionHandle;
|
|
@@ -635,6 +635,19 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
637
|
};
|
|
638
|
+
DatePicker.prototype.getDeviceType = function () {
|
|
639
|
+
var userAgent = navigator.userAgent || navigator.vendor;
|
|
640
|
+
if (/android/i.test(userAgent)) {
|
|
641
|
+
return 'Android';
|
|
642
|
+
}
|
|
643
|
+
if (/iPhone/i.test(userAgent)) {
|
|
644
|
+
return 'iPhone';
|
|
645
|
+
}
|
|
646
|
+
if (/iPad/i.test(userAgent)) {
|
|
647
|
+
return 'iPad';
|
|
648
|
+
}
|
|
649
|
+
return 'Unknown';
|
|
650
|
+
};
|
|
638
651
|
DatePicker.prototype.updateHtmlAttributeToElement = function () {
|
|
639
652
|
if (!isNullOrUndefined(this.htmlAttributes)) {
|
|
640
653
|
for (var _i = 0, _a = Object.keys(this.htmlAttributes); _i < _a.length; _i++) {
|
|
@@ -1095,7 +1108,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
|
1095
1108
|
});
|
|
1096
1109
|
}
|
|
1097
1110
|
}
|
|
1098
|
-
if (Browser.isDevice && _this.allowEdit && !_this.readonly && Browser.isIos) {
|
|
1111
|
+
if (Browser.isDevice && _this.allowEdit && !_this.readonly && Browser.isIos && _this.getDeviceType() !== 'iPhone') {
|
|
1099
1112
|
_this.inputElement.blur();
|
|
1100
1113
|
}
|
|
1101
1114
|
}, close: function () {
|