@syncfusion/ej2-calendars 24.2.8 → 24.2.9

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.
@@ -4165,7 +4165,8 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4165
4165
  }
4166
4166
  if ((this.getModuleName() === 'datetimepicker')) {
4167
4167
  if (this.checkDateValue(this.globalize.parseDate(this.inputElement.value, dateOptions))) {
4168
- date = this.globalize.parseDate(this.inputElement.value.toLocaleUpperCase(), dateOptions);
4168
+ var modifiedValue = this.inputElement.value.replace(/(am|pm|Am|aM|pM|Pm)/g, function (match) { return match.toLocaleUpperCase(); });
4169
+ date = this.globalize.parseDate(modifiedValue, dateOptions);
4169
4170
  }
4170
4171
  else {
4171
4172
  if (this.calendarMode === 'Gregorian') {
@@ -12028,10 +12029,6 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
12028
12029
  }
12029
12030
  }
12030
12031
  removeClass([this.inputWrapper.container], [FOCUS]);
12031
- var blurArguments = {
12032
- model: this
12033
- };
12034
- this.trigger('blur', blurArguments);
12035
12032
  if (this.getText() !== this.inputElement.value) {
12036
12033
  this.updateValue((this.inputElement).value, e);
12037
12034
  }
@@ -12043,6 +12040,10 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
12043
12040
  if (this.inputElement.value === '') {
12044
12041
  this.invalidValueString = null;
12045
12042
  }
12043
+ var blurArguments = {
12044
+ model: this
12045
+ };
12046
+ this.trigger('blur', blurArguments);
12046
12047
  };
12047
12048
  /**
12048
12049
  * Focuses out the TimePicker textbox element.