@yuuvis/client-framework 3.8.0 → 3.8.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.
- package/fesm2022/yuuvis-client-framework-forms.mjs +5 -1
- package/fesm2022/yuuvis-client-framework-forms.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-metadata-form-defaults.mjs +2 -2
- package/fesm2022/yuuvis-client-framework-metadata-form-defaults.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-object-details.mjs +47 -1
- package/fesm2022/yuuvis-client-framework-object-details.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-smart-search.mjs +233 -19
- package/fesm2022/yuuvis-client-framework-smart-search.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-tile-list.mjs +4 -0
- package/fesm2022/yuuvis-client-framework-tile-list.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework.mjs +245 -227
- package/fesm2022/yuuvis-client-framework.mjs.map +1 -1
- package/lib/assets/i18n/de.json +31 -24
- package/lib/assets/i18n/en.json +31 -24
- package/package.json +5 -5
- package/types/yuuvis-client-framework-smart-search.d.ts +114 -5
- package/types/yuuvis-client-framework.d.ts +1 -3
|
@@ -854,10 +854,14 @@ class DynamicCatalogComponent extends AbstractMatFormField {
|
|
|
854
854
|
// eslint-disable-next-line @typescript-eslint/no-empty-function, @typescript-eslint/explicit-module-boundary-types
|
|
855
855
|
this.propagateChange = (fnc) => { };
|
|
856
856
|
this.#translate.onLangChange.pipe(takeUntilDestroyed()).subscribe((evt) => this.#currentLang.set(evt.lang));
|
|
857
|
-
// re-run validation once options have resolved (writeValue may run before the catalog response arrives)
|
|
857
|
+
// re-run validation once options have resolved (writeValue may run before the catalog response arrives).
|
|
858
|
+
// statusChanges is suppressed (emitEvent: false) to avoid a spurious value emission, so re-sync the
|
|
859
|
+
// host control and errorState explicitly — otherwise a stale { invalidValue: true } lingers on the host.
|
|
858
860
|
effect(() => {
|
|
859
861
|
this.options();
|
|
860
862
|
this.ctrl.updateValueAndValidity({ emitEvent: false });
|
|
863
|
+
this.errorState = FormUtils.getErrorState(this.ctrl);
|
|
864
|
+
this.ngControl?.control?.setErrors(this.ctrl.errors);
|
|
861
865
|
});
|
|
862
866
|
}
|
|
863
867
|
writeValue(value) {
|