@syncfusion/ej2-calendars 23.1.41 → 23.2.6

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.
@@ -1297,8 +1297,14 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
1297
1297
  this.createContentHeader();
1298
1298
  this.createContentBody();
1299
1299
  }
1300
+ if (this.getModuleName() === 'calendar') {
1301
+ var l10nLocale = { today: 'Today' };
1302
+ this.l10 = new L10n(this.getModuleName(), l10nLocale, this.locale);
1303
+ }
1300
1304
  this.l10.setLocale(this.locale);
1301
- this.updateFooter();
1305
+ if (this.showTodayButton) {
1306
+ this.updateFooter();
1307
+ }
1302
1308
  break;
1303
1309
  case 'showTodayButton':
1304
1310
  if (newProp.showTodayButton) {
@@ -3386,7 +3392,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3386
3392
  this.inputElement.setAttribute('aria-disabled', 'false');
3387
3393
  this.inputElement.setAttribute('tabindex', this.tabIndex);
3388
3394
  }
3389
- Input.addAttributes({ 'aria-label': 'select' }, this.inputWrapper.buttons[0]);
3395
+ Input.addAttributes({ 'aria-label': 'select', 'role': 'button' }, this.inputWrapper.buttons[0]);
3390
3396
  addClass([this.inputWrapper.container], DATEWRAPPER);
3391
3397
  };
3392
3398
  DatePicker.prototype.updateInput = function (isDynamic, isBlur) {
@@ -3577,7 +3583,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3577
3583
  }
3578
3584
  };
3579
3585
  DatePicker.prototype.bindEvents = function () {
3580
- EventHandler.add(this.inputWrapper.buttons[0], 'mousedown touchstart', this.dateIconHandler, this);
3586
+ EventHandler.add(this.inputWrapper.buttons[0], 'mousedown', this.dateIconHandler, this);
3581
3587
  EventHandler.add(this.inputElement, 'mouseup', this.mouseUpHandler, this);
3582
3588
  EventHandler.add(this.inputElement, 'focus', this.inputFocusHandler, this);
3583
3589
  EventHandler.add(this.inputElement, 'blur', this.inputBlurHandler, this);
@@ -3626,7 +3632,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3626
3632
  };
3627
3633
  DatePicker.prototype.unBindEvents = function () {
3628
3634
  if (!isNullOrUndefined(this.inputWrapper)) {
3629
- EventHandler.remove(this.inputWrapper.buttons[0], 'mousedown touchstart', this.dateIconHandler);
3635
+ EventHandler.remove(this.inputWrapper.buttons[0], 'mousedown', this.dateIconHandler);
3630
3636
  }
3631
3637
  EventHandler.remove(this.inputElement, 'mouseup', this.mouseUpHandler);
3632
3638
  EventHandler.remove(this.inputElement, 'focus', this.inputFocusHandler);