ets-fe-ng-sdk 20.3.15 → 20.3.16
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.
|
@@ -24609,7 +24609,7 @@ class FindItemComponent extends BaseFormGenerator {
|
|
|
24609
24609
|
/** Reference to action buttons in the template */
|
|
24610
24610
|
this.actionBtns = viewChildren('actionBtn', ...(ngDevMode ? [{ debugName: "actionBtns" }] : []));
|
|
24611
24611
|
/** Computed map of action button element IDs */
|
|
24612
|
-
this.fieldWidthOffsets = computed(() => Array.from(this.actionBtns())?.toMap((x) => x.nativeElement?.id), ...(ngDevMode ? [{ debugName: "fieldWidthOffsets" }] : []));
|
|
24612
|
+
this.fieldWidthOffsets = computed(() => Array.from(this.actionBtns() || [])?.toMap((x) => x.nativeElement?.id), ...(ngDevMode ? [{ debugName: "fieldWidthOffsets" }] : []));
|
|
24613
24613
|
/** Effect to log action buttons when they change */
|
|
24614
24614
|
this.actionBtnsEffect = effect(() => {
|
|
24615
24615
|
console.log('actionBtns', this.actionBtns());
|
|
@@ -24738,13 +24738,13 @@ class FindItemComponent extends BaseFormGenerator {
|
|
|
24738
24738
|
schema
|
|
24739
24739
|
.filter((x) => !x.standalone)
|
|
24740
24740
|
.forEach((s) => {
|
|
24741
|
+
form.registerControl(s.field.toString(), new FormControl(s.value != null ? s.value : initialQuery[s.field], s.isRequired ? [Validators.required] : s.validators, s.asyncValidators));
|
|
24741
24742
|
if (s.onChangeFunc) {
|
|
24742
24743
|
const sub = form.controls[s.field.toString()]?.valueChanges
|
|
24743
24744
|
.pipe(debounceTime(0))
|
|
24744
24745
|
.subscribe((r) => s.onChangeFunc(form.getRawValue(), r, this));
|
|
24745
24746
|
this.subs[s.field] = sub;
|
|
24746
24747
|
}
|
|
24747
|
-
form.registerControl(s.field.toString(), new FormControl(s.value != null ? s.value : initialQuery[s.field], s.isRequired ? [Validators.required] : s.validators, s.asyncValidators));
|
|
24748
24748
|
});
|
|
24749
24749
|
return form;
|
|
24750
24750
|
}, ...(ngDevMode ? [{ debugName: "searchForm" }] : []));
|