@colijnit/corecomponents_v12 259.1.13 → 259.1.14

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.
@@ -7479,6 +7479,7 @@
7479
7479
  }
7480
7480
  }
7481
7481
  this.outputRangeIfValid();
7482
+ this._closeIfRangeComplete();
7482
7483
  };
7483
7484
  DoubleCalendarComponent.prototype.handleSecondDateSelected = function (date) {
7484
7485
  this.selectedSecondDate = date;
@@ -7494,6 +7495,7 @@
7494
7495
  this.outputRangeIfValid();
7495
7496
  this.secondDateSelected.next();
7496
7497
  }
7498
+ this._closeIfRangeComplete();
7497
7499
  };
7498
7500
  DoubleCalendarComponent.prototype.outputRangeIfValid = function () {
7499
7501
  if (this.selectedDates[0] instanceof Date && this.selectedDates[1] instanceof Date) {
@@ -7510,6 +7512,16 @@
7510
7512
  // Emit updated state to parent
7511
7513
  this.datesSelected.emit(this.selectedDates);
7512
7514
  };
7515
+ DoubleCalendarComponent.prototype._closeIfRangeComplete = function () {
7516
+ if (this.selectedFirstDate instanceof Date && this.selectedSecondDate instanceof Date) {
7517
+ // emit the selected range (keeps current behavior)
7518
+ this.outputRangeIfValid();
7519
+ // optional: keep your “second date chosen” signal
7520
+ this.secondDateSelected.next();
7521
+ // close the overlay/popup
7522
+ this.clickedOutside.emit();
7523
+ }
7524
+ };
7513
7525
  return DoubleCalendarComponent;
7514
7526
  }(BaseInputDatePickerDirective));
7515
7527
  DoubleCalendarComponent.decorators = [
@@ -10257,6 +10269,7 @@
10257
10269
  _d.editCellIndex = _e.sent();
10258
10270
  _e.label = 4;
10259
10271
  case 4:
10272
+ this.addRow.next();
10260
10273
  this._detectChanges();
10261
10274
  _e.label = 5;
10262
10275
  case 5: return [3 /*break*/, 7];