@syncfusion/ej2-calendars 23.1.38 → 23.1.40

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.
@@ -2292,7 +2292,7 @@ var Calendar = /** @__PURE__ @class */ (function (_super) {
2292
2292
  this.islamicModule.islamicRenderTemplate(elements, count, classNm, e, this.value);
2293
2293
  }
2294
2294
  this.changedArgs = { value: this.value, values: this.values };
2295
- this.changeHandler();
2295
+ e && e.type === 'click' && e.currentTarget.classList.contains(OTHERMONTH) ? this.changeHandler(e) : this.changeHandler();
2296
2296
  };
2297
2297
  Calendar.prototype.clickHandler = function (e) {
2298
2298
  var eve = e.currentTarget;
@@ -3340,7 +3340,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3340
3340
  var ariaAttrs = {
3341
3341
  'aria-atomic': 'true', 'aria-expanded': 'false',
3342
3342
  'role': 'combobox', 'autocomplete': 'off', 'autocorrect': 'off',
3343
- 'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false'
3343
+ 'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false', 'aria-label': this.getModuleName()
3344
3344
  };
3345
3345
  if (this.getModuleName() === 'datepicker') {
3346
3346
  var l10nLocale = { placeholder: this.placeholder };
@@ -4639,7 +4639,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4639
4639
  var ariaAttrs = {
4640
4640
  'aria-atomic': 'true', 'aria-disabled': 'true',
4641
4641
  'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
4642
- 'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false'
4642
+ 'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false', 'aria-label': this.getModuleName()
4643
4643
  };
4644
4644
  if (this.inputElement) {
4645
4645
  Input.removeAttributes(ariaAttrs, this.inputElement);
@@ -12636,6 +12636,12 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
12636
12636
  this.cloneElement = this.element.cloneNode(true);
12637
12637
  this.dateTimeFormat = this.cldrDateTimeFormat();
12638
12638
  this.initValue = this.value;
12639
+ if (typeof (this.min) === 'string') {
12640
+ this.min = this.checkDateValue(new Date(this.min));
12641
+ }
12642
+ if (typeof (this.max) === 'string') {
12643
+ this.max = this.checkDateValue(new Date(this.max));
12644
+ }
12639
12645
  if (!isNullOrUndefined(closest(this.element, 'fieldset')) && closest(this.element, 'fieldset').disabled) {
12640
12646
  this.enabled = false;
12641
12647
  }