@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.
@@ -1279,8 +1279,14 @@ let CalendarBase = class CalendarBase extends Component {
1279
1279
  this.createContentHeader();
1280
1280
  this.createContentBody();
1281
1281
  }
1282
+ if (this.getModuleName() === 'calendar') {
1283
+ const l10nLocale = { today: 'Today' };
1284
+ this.l10 = new L10n(this.getModuleName(), l10nLocale, this.locale);
1285
+ }
1282
1286
  this.l10.setLocale(this.locale);
1283
- this.updateFooter();
1287
+ if (this.showTodayButton) {
1288
+ this.updateFooter();
1289
+ }
1284
1290
  break;
1285
1291
  case 'showTodayButton':
1286
1292
  if (newProp.showTodayButton) {
@@ -3346,7 +3352,7 @@ let DatePicker = class DatePicker extends Calendar {
3346
3352
  this.inputElement.setAttribute('aria-disabled', 'false');
3347
3353
  this.inputElement.setAttribute('tabindex', this.tabIndex);
3348
3354
  }
3349
- Input.addAttributes({ 'aria-label': 'select' }, this.inputWrapper.buttons[0]);
3355
+ Input.addAttributes({ 'aria-label': 'select', 'role': 'button' }, this.inputWrapper.buttons[0]);
3350
3356
  addClass([this.inputWrapper.container], DATEWRAPPER);
3351
3357
  }
3352
3358
  updateInput(isDynamic = false, isBlur = false) {
@@ -3535,7 +3541,7 @@ let DatePicker = class DatePicker extends Calendar {
3535
3541
  }
3536
3542
  }
3537
3543
  bindEvents() {
3538
- EventHandler.add(this.inputWrapper.buttons[0], 'mousedown touchstart', this.dateIconHandler, this);
3544
+ EventHandler.add(this.inputWrapper.buttons[0], 'mousedown', this.dateIconHandler, this);
3539
3545
  EventHandler.add(this.inputElement, 'mouseup', this.mouseUpHandler, this);
3540
3546
  EventHandler.add(this.inputElement, 'focus', this.inputFocusHandler, this);
3541
3547
  EventHandler.add(this.inputElement, 'blur', this.inputBlurHandler, this);
@@ -3584,7 +3590,7 @@ let DatePicker = class DatePicker extends Calendar {
3584
3590
  }
3585
3591
  unBindEvents() {
3586
3592
  if (!isNullOrUndefined(this.inputWrapper)) {
3587
- EventHandler.remove(this.inputWrapper.buttons[0], 'mousedown touchstart', this.dateIconHandler);
3593
+ EventHandler.remove(this.inputWrapper.buttons[0], 'mousedown', this.dateIconHandler);
3588
3594
  }
3589
3595
  EventHandler.remove(this.inputElement, 'mouseup', this.mouseUpHandler);
3590
3596
  EventHandler.remove(this.inputElement, 'focus', this.inputFocusHandler);