@masterteam/components 0.0.283 → 0.0.285

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/components",
3
- "version": "0.0.283",
3
+ "version": "0.0.285",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/components",
6
6
  "linkDirectory": true,
@@ -327,6 +327,12 @@ declare class EntityListField implements ControlValueAccessor {
327
327
  readonly configuration: _angular_core.InputSignal<Record<string, unknown> | null>;
328
328
  /** Runtime ids needed to call the read endpoint. */
329
329
  readonly runtimeContext: _angular_core.InputSignal<EntityListFieldRuntimeContext | null>;
330
+ /**
331
+ * Full lookup catalog of the host form, forwarded to the add/edit dialog's
332
+ * nested form. `process-form-load` returns only the lookup *id* per field,
333
+ * so without this the target module's Lookup fields render "no options".
334
+ */
335
+ readonly lookups: _angular_core.InputSignal<unknown[]>;
330
336
  /** Optional HttpContext (kept for back-compat). */
331
337
  readonly context: _angular_core.InputSignal<HttpContext | undefined>;
332
338
  private readonly storedValue;
@@ -462,7 +468,7 @@ declare class EntityListField implements ControlValueAccessor {
462
468
  private applyResponse;
463
469
  private toEntityData;
464
470
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityListField, never>;
465
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityListField, "mt-entity-list-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "propertyId": { "alias": "propertyId"; "required": false; "isSignal": true; }; "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; "runtimeContext": { "alias": "runtimeContext"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
471
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityListField, "mt-entity-list-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "propertyId": { "alias": "propertyId"; "required": false; "isSignal": true; }; "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; "runtimeContext": { "alias": "runtimeContext"; "required": false; "isSignal": true; }; "lookups": { "alias": "lookups"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
466
472
  }
467
473
 
468
474
  /** Inputs the EntityList add-row dialog will receive via ModalService inputValues. */
@@ -472,6 +478,11 @@ interface EntityListAddDialogInputs {
472
478
  levelDataId: number | string | null;
473
479
  /** Property keys that should be editable in the dialog. */
474
480
  writeFields: string[];
481
+ /**
482
+ * Host form's lookup catalog. The dialog's nested form needs it to resolve
483
+ * options for the target module's `Lookup` / `LookupMultiSelect` fields.
484
+ */
485
+ lookups?: unknown[];
475
486
  /** Pre-populated form values (keyed by property key) for the Edit flow. */
476
487
  initialValues?: Record<string, unknown>;
477
488
  /** True when the dialog edits an existing row rather than adding one. */
@@ -736,11 +736,17 @@ declare class EntityListFieldConfig extends BaseFieldConfig {
736
736
  configuration: any;
737
737
  /** Runtime ids needed to call the read endpoint. */
738
738
  runtimeContext: EntityListFieldRuntimeContext | null;
739
+ /**
740
+ * Full lookup catalog, carried through to the add/edit dialog's nested form.
741
+ * Without it a `Lookup` field of the target module renders "no options".
742
+ */
743
+ lookups: unknown[];
739
744
  context: HttpContext | undefined;
740
745
  constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
741
746
  propertyId?: number | null;
742
747
  configuration?: any;
743
748
  runtimeContext?: EntityListFieldRuntimeContext | null;
749
+ lookups?: unknown[];
744
750
  context?: HttpContext | undefined;
745
751
  });
746
752
  }