@acorex/platform 20.6.0-next.25 → 20.6.0-next.26

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.
@@ -10605,7 +10605,6 @@ class AXPLookupFilterWidgetEditComponent extends AXPValueWidgetComponent {
10605
10605
  //#region ---- Lookup Node ----
10606
10606
  this.lookupNode = signal({
10607
10607
  type: 'lookup-editor',
10608
- defaultValue: undefined,
10609
10608
  path: this.path,
10610
10609
  options: {},
10611
10610
  }, ...(ngDevMode ? [{ debugName: "lookupNode" }] : []));
@@ -10615,7 +10614,7 @@ class AXPLookupFilterWidgetEditComponent extends AXPValueWidgetComponent {
10615
10614
  // console.log('path:', this.path, this.expose());
10616
10615
  const node = {
10617
10616
  type: 'lookup-editor',
10618
- // defaultValue: this.getValue()?.value,
10617
+ defaultValue: this.getValue()?.value,
10619
10618
  path: this.editorPath,
10620
10619
  options: {
10621
10620
  entity: this.entity(),
@@ -10633,13 +10632,15 @@ class AXPLookupFilterWidgetEditComponent extends AXPValueWidgetComponent {
10633
10632
  multiple: this.multiple(),
10634
10633
  textField: this.textField(),
10635
10634
  filter: this.customFilter(),
10636
- allowClear: true,
10635
+ allowClear: false,
10637
10636
  },
10638
10637
  };
10639
10638
  this.lookupNode.set(node);
10640
10639
  }, ...(ngDevMode ? [{ debugName: "#efUpdateLookupNode" }] : []));
10641
10640
  this.#efUpdateValue = effect(() => {
10642
10641
  const newValueObj = this.contextService.getValue(`${this.path}EditorObj`);
10642
+ if (!newValueObj)
10643
+ return;
10643
10644
  const prevValue = untracked(() => this.getValue()?.value);
10644
10645
  const newValue = this.multiple()
10645
10646
  ? newValueObj?.map((v) => v[this.valueField()])