@syncfusion/ej2-calendars 27.1.57 → 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.
@@ -5287,6 +5287,12 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
5287
5287
  if (this.calendarElement && this.isCalendar()) {
5288
5288
  _super.prototype.onPropertyChanged.call(this, newProp, oldProp);
5289
5289
  }
5290
+ if (prop === 'min' && isNullOrUndefined(this.min)) {
5291
+ this.min = new Date(1900, 0, 1);
5292
+ }
5293
+ if (prop === 'max' && isNullOrUndefined(this.max)) {
5294
+ this.max = new Date(2099, 11, 31);
5295
+ }
5290
5296
  break;
5291
5297
  }
5292
5298
  if (!this.isDynamicValueChanged) {
@@ -8306,10 +8312,26 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
8306
8312
  }
8307
8313
  };
8308
8314
  DateRangePicker.prototype.renderCustomPopup = function () {
8315
+ var _this = this;
8309
8316
  this.isCustomWindow = true;
8310
8317
  this.popupObj.hide();
8311
8318
  this.popupWrapper = this.createElement('div', { id: this.element.id + '_popup', className: ROOT$2 + ' ' + POPUP$1 });
8312
8319
  this.renderControl();
8320
+ this.openEventArgs = {
8321
+ popup: this.popupObj || null,
8322
+ cancel: false,
8323
+ date: this.inputElement.value,
8324
+ model: this,
8325
+ event: event ? event : null,
8326
+ appendTo: this.isMobile || Browser.isDevice ? this.mobileRangePopupWrap : document.body
8327
+ };
8328
+ var eventArgs = this.openEventArgs;
8329
+ this.trigger('open', eventArgs, function (eventArgs) {
8330
+ _this.openEventArgs = eventArgs;
8331
+ if (_this.openEventArgs.cancel) {
8332
+ return;
8333
+ }
8334
+ });
8313
8335
  this.openEventArgs.appendTo.appendChild(this.popupWrapper);
8314
8336
  this.showPopup();
8315
8337
  this.isCustomRange = true;