@syncfusion/ej2-calendars 27.1.55 → 27.2.2

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.
@@ -5237,6 +5237,12 @@ let DatePicker = class DatePicker extends Calendar {
5237
5237
  if (this.calendarElement && this.isCalendar()) {
5238
5238
  super.onPropertyChanged(newProp, oldProp);
5239
5239
  }
5240
+ if (prop === 'min' && isNullOrUndefined(this.min)) {
5241
+ this.min = new Date(1900, 0, 1);
5242
+ }
5243
+ if (prop === 'max' && isNullOrUndefined(this.max)) {
5244
+ this.max = new Date(2099, 11, 31);
5245
+ }
5240
5246
  break;
5241
5247
  }
5242
5248
  if (!this.isDynamicValueChanged) {
@@ -8219,6 +8225,21 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
8219
8225
  this.popupObj.hide();
8220
8226
  this.popupWrapper = this.createElement('div', { id: this.element.id + '_popup', className: ROOT$2 + ' ' + POPUP$1 });
8221
8227
  this.renderControl();
8228
+ this.openEventArgs = {
8229
+ popup: this.popupObj || null,
8230
+ cancel: false,
8231
+ date: this.inputElement.value,
8232
+ model: this,
8233
+ event: event ? event : null,
8234
+ appendTo: this.isMobile || Browser.isDevice ? this.mobileRangePopupWrap : document.body
8235
+ };
8236
+ const eventArgs = this.openEventArgs;
8237
+ this.trigger('open', eventArgs, (eventArgs) => {
8238
+ this.openEventArgs = eventArgs;
8239
+ if (this.openEventArgs.cancel) {
8240
+ return;
8241
+ }
8242
+ });
8222
8243
  this.openEventArgs.appendTo.appendChild(this.popupWrapper);
8223
8244
  this.showPopup();
8224
8245
  this.isCustomRange = true;