@ascentgl/ads-ui 0.0.144 → 0.0.145
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.
- package/fesm2022/ascentgl-ads-ui.mjs +11 -1
- package/fesm2022/ascentgl-ads-ui.mjs.map +1 -1
- package/lib/components/badge/numeric-badge.component.d.ts +1 -1
- package/lib/components/buttons/button-container/button-container.component.d.ts +1 -1
- package/lib/components/form-fields/datepickers/datetime-picker/datetimepicker.component.d.ts +2 -1
- package/package.json +13 -13
|
@@ -4897,6 +4897,16 @@ class AdsDatetimepickerComponent extends AbstractInputComponent {
|
|
|
4897
4897
|
}
|
|
4898
4898
|
return value;
|
|
4899
4899
|
}
|
|
4900
|
+
syncState(status) {
|
|
4901
|
+
if (status === 'INVALID') {
|
|
4902
|
+
this.displayControl.setErrors(this.valueControl.errors);
|
|
4903
|
+
this.touchControls();
|
|
4904
|
+
}
|
|
4905
|
+
else {
|
|
4906
|
+
this.displayControl.setErrors([]);
|
|
4907
|
+
}
|
|
4908
|
+
super.syncState();
|
|
4909
|
+
}
|
|
4900
4910
|
/** @ignore */
|
|
4901
4911
|
setupSubscriptions() {
|
|
4902
4912
|
/**
|
|
@@ -4904,7 +4914,7 @@ class AdsDatetimepickerComponent extends AbstractInputComponent {
|
|
|
4904
4914
|
*sync display control statuses with value control status for proper error display
|
|
4905
4915
|
* make sure "displayControl" disabled state and value are synchronized with "control" disabled state and value
|
|
4906
4916
|
*/
|
|
4907
|
-
this.subscriptions.push(this.valueControl.statusChanges.subscribe(() => this.syncState()));
|
|
4917
|
+
this.subscriptions.push(this.valueControl.statusChanges.subscribe((status) => this.syncState(status)));
|
|
4908
4918
|
this.subscriptions.push(this.valueControl.valueChanges.subscribe(() => this.syncDisplayedValue()));
|
|
4909
4919
|
/**
|
|
4910
4920
|
* NOTE: registering display value change is needed to know when to focus time part of datetime if showTimePicker is false
|