@syncfusion/ej2-calendars 33.2.7 → 33.2.10

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 33.2.7
3
+ * version : 33.2.10
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-calendars",
3
- "version": "33.2.7",
3
+ "version": "33.2.10",
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",
@@ -10,7 +10,7 @@
10
10
  "dependencies": {
11
11
  "@syncfusion/ej2-base": "~33.2.3",
12
12
  "@syncfusion/ej2-buttons": "~33.2.5",
13
- "@syncfusion/ej2-inputs": "~33.2.5",
13
+ "@syncfusion/ej2-inputs": "~33.2.10",
14
14
  "@syncfusion/ej2-lists": "~33.2.3",
15
15
  "@syncfusion/ej2-popups": "~33.2.7"
16
16
  },
@@ -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 class="">' + this.toCapitalize(shortNames[days]) + '</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 () {