@energycap/components 0.39.36-ECAP-26840-date-input.20241121-1051 → 0.39.36-ECAP-26840-date-input.20241121-1605

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.
@@ -4133,7 +4133,7 @@ class DateInputComponent extends FormControlBase {
4133
4133
  this.onTextboxValueChanges();
4134
4134
  // Sync the initial disabled status and value of the textbox
4135
4135
  this.syncTextboxControlDisabledStatus(this.formModel.status);
4136
- this.textboxControl.setValue(this.dateDisplayPipe.transform(this.formModel.value), { emitEvent: false });
4136
+ this.textboxControl.setValue(this.dateDisplayPipe.transform(this.formModel.value, true), { emitEvent: false });
4137
4137
  this.calendarSelection = this.formModel.value;
4138
4138
  }
4139
4139
  onFormModelStatusChanges() {
@@ -4154,7 +4154,7 @@ class DateInputComponent extends FormControlBase {
4154
4154
  // Update the calendar selection textbox value with a formatted date when the form model changes.
4155
4155
  // This is usually triggered by programmatic changes to the form model by a parent component.
4156
4156
  this.formModel.valueChanges.pipe(distinctUntilChanged((a, b) => moment(a).isSame(b, 'day')), takeUntil(this.componentDestroyed)).subscribe(value => {
4157
- const displayValue = this.dateDisplayPipe.transform(value);
4157
+ const displayValue = this.dateDisplayPipe.transform(value, true);
4158
4158
  // Don't emit an event when setting the textbox value to avoid circular updates between the textbox and form model.
4159
4159
  this.textboxControl.setValue(displayValue, { emitEvent: false });
4160
4160
  this.calendarSelection = value;