@energycap/components 0.41.1-ECAP-26841-date-input-features.20250108-1012 → 0.41.1-ECAP-26841-date-input-features.20250108-1149
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.
@@ -5023,6 +5023,7 @@ class DateInputComponent extends FormControlBase {
|
|
5023
5023
|
this.calendarSelection = this.formModel.value;
|
5024
5024
|
this.updateCalendars(this.calendarSelection);
|
5025
5025
|
this.updateSteppers(this.calendarSelection);
|
5026
|
+
console.log(this.calendarSelection);
|
5026
5027
|
}
|
5027
5028
|
/** Focuses the input whenever the calendar is shift-tabbed out of. */
|
5028
5029
|
onCalendarFocusOutStart() {
|
@@ -5308,6 +5309,7 @@ class DateInputComponent extends FormControlBase {
|
|
5308
5309
|
updateSteppers(value) {
|
5309
5310
|
// Disable the steppers if we either don't have a selection or only have one date in the selection.
|
5310
5311
|
if (!value ||
|
5312
|
+
(DateInput.isSelectionSingleDate(value) && this.selectionMode !== 'day') ||
|
5311
5313
|
(DateInput.isSelectionRange(value) && (!value.start || !value.end))) {
|
5312
5314
|
this.disableSteppers = true;
|
5313
5315
|
}
|