@acorex-platform/module-platform-management-server 2.0.0-next.50 → 2.0.0-next.56

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.
@@ -4766,10 +4766,18 @@ export declare const WIDGET_CATALOG_ROWS: readonly [{
4766
4766
  readonly name: "toggle-editor";
4767
4767
  readonly title: "toggle-editor";
4768
4768
  };
4769
+ }, {
4770
+ readonly name: "leafOnly";
4771
+ readonly title: "Leaf Only";
4772
+ readonly description: "options.leafOnly defaults to false, so parent rows in tree lookups stay selectable. Set true to block parent selection and allow only leaf rows. Parents keep their normal style and stay expandable.";
4773
+ readonly interface: {
4774
+ readonly name: "toggle-editor";
4775
+ readonly title: "toggle-editor";
4776
+ };
4769
4777
  }, {
4770
4778
  readonly name: "prefetchChildrenCount";
4771
4779
  readonly title: "Prefetch Children Count";
4772
- readonly description: "options.prefetchChildrenCount defaults to false. Single-select hierarchical lookups (multi-column tree) then show an expander on rows without a known childrenCount and load children only when a row is expanded. Set true to run one extra parentKey-in query per level so leaf rows hide the expander up front. Multi-select tree mode always prefetches.";
4780
+ readonly description: "options.prefetchChildrenCount is ignored for hierarchical lookups. Those modes always prefetch child counts so expand state is known. When options.leafOnly is true, that count is also what marks a row as a parent. Flat lookups ignore this option.";
4773
4781
  readonly interface: {
4774
4782
  readonly name: "toggle-editor";
4775
4783
  readonly title: "toggle-editor";
@@ -4791,7 +4799,7 @@ export declare const WIDGET_CATALOG_ROWS: readonly [{
4791
4799
  readonly title: "lookup-editor";
4792
4800
  };
4793
4801
  }];
4794
- readonly metadataJson: "{\n \"name\": \"lookup-editor\",\n \"title\": \"Lookup Editor\",\n \"description\": \"Entity lookup; stores valueField (usually id). With options.multiple stores an array of ids.\",\n \"icon\": \"fa-light fa-magnifying-glass\",\n \"categories\": {\n \"name\": \"editor\",\n \"order\": 2,\n \"title\": \"@platform-layout-widgets:categories.editor.title\"\n },\n \"groups\": [\n \"entity-widget\",\n \"form-element\"\n ],\n \"defaultFilterWidgetName\": \"lookup-filter\",\n \"type\": \"editor\",\n \"dataType\": \"string\",\n \"inputs\": [\n {\n \"name\": \"name\",\n \"title\": \"Name\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"path\",\n \"title\": \"Data Path\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"entity\",\n \"title\": \"Entity\",\n \"interface\": {\n \"name\": \"entity-definition-provider-editor\"\n }\n },\n {\n \"name\": \"valueField\",\n \"title\": \"Value Field\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"textField\",\n \"title\": \"Text Field\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"multiple\",\n \"title\": \"Multiple\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"disabled\",\n \"title\": \"Disabled\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"waitForCascade\",\n \"title\": \"Wait For Cascade\",\n \"description\": \"options.waitForCascade defaults to true. An empty cascade filter keeps the editor disabled and the list empty until parent values exist. Set false to skip that lock. Ignored when options.disabled is true.\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"prefetchChildrenCount\",\n \"title\": \"Prefetch Children Count\",\n \"description\": \"options.prefetchChildrenCount defaults to false. Single-select hierarchical lookups (multi-column tree) then show an expander on rows without a known childrenCount and load children only when a row is expanded. Set true to run one extra parentKey-in query per level so leaf rows hide the expander up front. Multi-select tree mode always prefetches.\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"readonly\",\n \"title\": \"Readonly\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n }\n ],\n \"outputs\": [\n {\n \"name\": \"boundValue\",\n \"title\": \"Selected value\",\n \"description\": \"string id, or string[] when multiple is true.\",\n \"interface\": {\n \"name\": \"lookup-editor\"\n }\n }\n ]\n}";
4802
+ readonly metadataJson: "{\n \"name\": \"lookup-editor\",\n \"title\": \"Lookup Editor\",\n \"description\": \"Entity lookup; stores valueField (usually id). With options.multiple stores an array of ids.\",\n \"icon\": \"fa-light fa-magnifying-glass\",\n \"categories\": {\n \"name\": \"editor\",\n \"order\": 2,\n \"title\": \"@platform-layout-widgets:categories.editor.title\"\n },\n \"groups\": [\n \"entity-widget\",\n \"form-element\"\n ],\n \"defaultFilterWidgetName\": \"lookup-filter\",\n \"type\": \"editor\",\n \"dataType\": \"string\",\n \"inputs\": [\n {\n \"name\": \"name\",\n \"title\": \"Name\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"path\",\n \"title\": \"Data Path\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"entity\",\n \"title\": \"Entity\",\n \"interface\": {\n \"name\": \"entity-definition-provider-editor\"\n }\n },\n {\n \"name\": \"valueField\",\n \"title\": \"Value Field\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"textField\",\n \"title\": \"Text Field\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"multiple\",\n \"title\": \"Multiple\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"disabled\",\n \"title\": \"Disabled\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"waitForCascade\",\n \"title\": \"Wait For Cascade\",\n \"description\": \"options.waitForCascade defaults to true. An empty cascade filter keeps the editor disabled and the list empty until parent values exist. Set false to skip that lock. Ignored when options.disabled is true.\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"leafOnly\",\n \"title\": \"Leaf Only\",\n \"description\": \"options.leafOnly defaults to false, so parent rows in tree lookups stay selectable. Set true to block parent selection and allow only leaf rows. Parents keep their normal style and stay expandable.\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"prefetchChildrenCount\",\n \"title\": \"Prefetch Children Count\",\n \"description\": \"options.prefetchChildrenCount is ignored for hierarchical lookups. Those modes always prefetch child counts so expand state is known. When options.leafOnly is true, that count is also what marks a row as a parent. Flat lookups ignore this option.\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"readonly\",\n \"title\": \"Readonly\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n }\n ],\n \"outputs\": [\n {\n \"name\": \"boundValue\",\n \"title\": \"Selected value\",\n \"description\": \"string id, or string[] when multiple is true.\",\n \"interface\": {\n \"name\": \"lookup-editor\"\n }\n }\n ]\n}";
4795
4803
  readonly categories: readonly [{
4796
4804
  readonly name: "editor";
4797
4805
  readonly order: 2;
@@ -6585,6 +6593,14 @@ export declare const WIDGET_CATALOG_ROWS: readonly [{
6585
6593
  readonly name: "toggle-editor";
6586
6594
  readonly title: "toggle-editor";
6587
6595
  };
6596
+ }, {
6597
+ readonly name: "leafOnly";
6598
+ readonly title: "Leaf Only";
6599
+ readonly description: "options.leafOnly defaults to false. Set true on a tree lookup so parent nodes cannot be selected and only leaf nodes can. Parents keep their normal style and stay expandable.";
6600
+ readonly interface: {
6601
+ readonly name: "toggle-editor";
6602
+ readonly title: "toggle-editor";
6603
+ };
6588
6604
  }, {
6589
6605
  readonly name: "prefetch";
6590
6606
  readonly title: "Prefetch";
@@ -6619,7 +6635,7 @@ export declare const WIDGET_CATALOG_ROWS: readonly [{
6619
6635
  };
6620
6636
  }];
6621
6637
  readonly aiMetadataJson: "{\n \"tags\": [\n \"editor\",\n \"select\",\n \"lookup\",\n \"data-source\",\n \"filter\"\n ],\n \"shortDescription\": \"Single/multi pick from **`options.dataSource`**. **Never** ship a categorical select **without** items: either **`options.dataSource`** as an **inline row array** `{ id, title, … }` **or** a **registry string** resolved at runtime (discover keys via **`PlatformManagement:ListRegisteredDataSources`** when listing DI data-source definitions). Always set **`options.valueField`** / **`options.textField`** to match row properties — wrong fields yield empty labels.\",\n \"usage\": {\n \"whenToUse\": [\n \"Pick one or many items from a dataSource with valueField/textField.\",\n \"Filter row needs a select that writes structured filter value (filterMode).\"\n ],\n \"avoidWhen\": [\n \"Free-text search without discrete items — use text-editor or lookup patterns.\"\n ]\n },\n \"renderSurfaces\": [\n {\n \"mode\": \"edit\",\n \"summary\": \"AXPDataListWidgetComponent: plain array `options.dataSource` renders ax-combo-box; registry string or AXDataSource renders ax-lookup (drop-down-list / multi-select). Primitive keys bind to the host; commit resolves full rows, updates selectedItems, optional expose patch, filterMode writes { value, displayText, operation }.\"\n },\n {\n \"mode\": \"view\",\n \"summary\": \"AXPDataListWidgetComponent: iterates selectedItems(); prints textField for each item via translate pipe; empty shows \\\"---\\\".\"\n },\n {\n \"mode\": \"column\",\n \"summary\": \"AXPColumnWidgetComponent: resolves rawValue to objects using dataSource when primitives are stored; renders textField labels as badges.\"\n },\n {\n \"mode\": \"designer\",\n \"summary\": \"Reuses edit component.\"\n }\n ],\n \"instruction\": \"Read select-box-widget-edit.component.ts for authoritative value rules: array dataSource uses ax-combo-box, registry/AXDataSource uses ax-lookup; strategy-driven primitive vs full items, filterMode object shape, and expose merging into contextService.\"\n}";
6622
- readonly metadataJson: "{\n \"name\": \"select-editor\",\n \"title\": \"@platform-layout-widgets:widgets.select-editor.title\",\n \"description\": \"@platform-layout-widgets:widgets.select-editor.description\",\n \"icon\": \"fa-light fa-list-dropdown\",\n \"categories\": {\n \"name\": \"editor\",\n \"order\": 2,\n \"title\": \"@platform-layout-widgets:categories.editor.title\"\n },\n \"subCategory\": {\n \"name\": \"editor-choice\",\n \"order\": 4,\n \"title\": \"@platform-layout-widgets:subcategories.editor-choice.title\"\n },\n \"groups\": [\n \"form-element\"\n ],\n \"defaultFilterWidgetName\": \"select-filter\",\n \"type\": \"editor\",\n \"dataType\": \"string\",\n \"inputs\": [\n {\n \"name\": \"dataSourceOptions\",\n \"title\": \"Data source bundle (options)\",\n \"description\": \"Designer merges this into `options`: shape matches AXPDataSourceOptionsValue — dataSource (inline array or string registry key), optional sourceMode list|tabular, columns for tabular, valueField, textField, filters. Not a separate form widget in the AI field catalog; describe as structured JSON on the host select-editor.\",\n \"interface\": {\n \"name\": \"json\"\n },\n \"bindingHints\": {\n \"strategies\": [\n \"Inline list: set options.dataSource to an array of row objects; set valueField/textField to property names on each row (e.g. id + title).\",\n \"Registry string: set options.dataSource to a named data-source definition key the runtime resolves to a provider (async list).\",\n \"Query-then-assign: run a catalog query to obtain rows, then pass the result array as options.dataSource (same as inline list).\",\n \"Tabular mock: sourceMode \\\"tabular\\\" with options.columns for row-shaped sample data edited in the designer.\"\n ],\n \"examples\": [\n \"{ \\\"dataSource\\\": [{ \\\"id\\\": \\\"a\\\", \\\"title\\\": \\\"A\\\" }], \\\"valueField\\\": \\\"id\\\", \\\"textField\\\": \\\"title\\\" }\",\n \"{ \\\"dataSource\\\": \\\"MyModule:SomeListQuery\\\", \\\"valueField\\\": \\\"id\\\", \\\"textField\\\": \\\"name\\\" }\",\n \"{ \\\"dataSource\\\": \\\"<registryKeyFromListRegisteredDataSources>\\\", \\\"valueField\\\": \\\"id\\\", \\\"textField\\\": \\\"title\\\" }\"\n ],\n \"notes\": \"The property editor widget id `data-source-options` exists only in the layout designer; do not use it as interface.name for AI tool field typing. Use json + bindingHints here.\"\n }\n },\n {\n \"name\": \"name\",\n \"title\": \"Name\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"path\",\n \"title\": \"Data Path\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"defaultValue\",\n \"title\": \"Default Value\",\n \"interface\": {\n \"name\": \"select-editor\"\n }\n },\n {\n \"name\": \"multiple\",\n \"title\": \"Multiple\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"disabled\",\n \"title\": \"Disabled\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"readonly\",\n \"title\": \"Readonly\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"placeholder\",\n \"title\": \"Placeholder\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"hasClearButton\",\n \"title\": \"Clear Button\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"allowSearch\",\n \"title\": \"Allow Search\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"prefetch\",\n \"title\": \"Prefetch\",\n \"description\": \"options.prefetch on registry/AXDataSource selects: ax-lookup loads on render; auto-selects when exactly one item is returned and value is empty. Ignored for inline array dataSource (ax-combo-box).\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"waitForCascade\",\n \"title\": \"Wait For Cascade\",\n \"description\": \"options.waitForCascade defaults to true. An empty cascade filter keeps the editor disabled and the list empty until parent values exist. Set false to skip that lock. Ignored when options.disabled is true.\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"triggers\",\n \"title\": \"Triggers\",\n \"interface\": {\n \"name\": \"triggers-editor\"\n }\n }\n ],\n \"outputs\": [\n {\n \"name\": \"boundValue\",\n \"title\": \"Selection or filter payload\",\n \"description\": \"Normal mode: when widgetsConfigs.selectValueStrategy is valueField, stores primitive value from ax-combo-box / ax-lookup; otherwise stores selected row object or array when multiple. filterMode (options.filterMode): stores { value, displayText, operation } with operation.type in / equal. expose option can patch extra paths into context on change.\",\n \"interface\": {\n \"name\": \"json\"\n }\n }\n ],\n \"ai\": {\n \"tags\": [\n \"editor\",\n \"select\",\n \"lookup\",\n \"data-source\",\n \"filter\"\n ],\n \"shortDescription\": \"Single/multi pick from **`options.dataSource`**. **Never** ship a categorical select **without** items: either **`options.dataSource`** as an **inline row array** `{ id, title, … }` **or** a **registry string** resolved at runtime (discover keys via **`PlatformManagement:ListRegisteredDataSources`** when listing DI data-source definitions). Always set **`options.valueField`** / **`options.textField`** to match row properties — wrong fields yield empty labels.\",\n \"usage\": {\n \"whenToUse\": [\n \"Pick one or many items from a dataSource with valueField/textField.\",\n \"Filter row needs a select that writes structured filter value (filterMode).\"\n ],\n \"avoidWhen\": [\n \"Free-text search without discrete items — use text-editor or lookup patterns.\"\n ]\n },\n \"renderSurfaces\": [\n {\n \"mode\": \"edit\",\n \"summary\": \"AXPDataListWidgetComponent: plain array `options.dataSource` renders ax-combo-box; registry string or AXDataSource renders ax-lookup (drop-down-list / multi-select). Primitive keys bind to the host; commit resolves full rows, updates selectedItems, optional expose patch, filterMode writes { value, displayText, operation }.\"\n },\n {\n \"mode\": \"view\",\n \"summary\": \"AXPDataListWidgetComponent: iterates selectedItems(); prints textField for each item via translate pipe; empty shows \\\"---\\\".\"\n },\n {\n \"mode\": \"column\",\n \"summary\": \"AXPColumnWidgetComponent: resolves rawValue to objects using dataSource when primitives are stored; renders textField labels as badges.\"\n },\n {\n \"mode\": \"designer\",\n \"summary\": \"Reuses edit component.\"\n }\n ],\n \"instruction\": \"Read select-box-widget-edit.component.ts for authoritative value rules: array dataSource uses ax-combo-box, registry/AXDataSource uses ax-lookup; strategy-driven primitive vs full items, filterMode object shape, and expose merging into contextService.\"\n }\n}";
6638
+ readonly metadataJson: "{\n \"name\": \"select-editor\",\n \"title\": \"@platform-layout-widgets:widgets.select-editor.title\",\n \"description\": \"@platform-layout-widgets:widgets.select-editor.description\",\n \"icon\": \"fa-light fa-list-dropdown\",\n \"categories\": {\n \"name\": \"editor\",\n \"order\": 2,\n \"title\": \"@platform-layout-widgets:categories.editor.title\"\n },\n \"subCategory\": {\n \"name\": \"editor-choice\",\n \"order\": 4,\n \"title\": \"@platform-layout-widgets:subcategories.editor-choice.title\"\n },\n \"groups\": [\n \"form-element\"\n ],\n \"defaultFilterWidgetName\": \"select-filter\",\n \"type\": \"editor\",\n \"dataType\": \"string\",\n \"inputs\": [\n {\n \"name\": \"dataSourceOptions\",\n \"title\": \"Data source bundle (options)\",\n \"description\": \"Designer merges this into `options`: shape matches AXPDataSourceOptionsValue — dataSource (inline array or string registry key), optional sourceMode list|tabular, columns for tabular, valueField, textField, filters. Not a separate form widget in the AI field catalog; describe as structured JSON on the host select-editor.\",\n \"interface\": {\n \"name\": \"json\"\n },\n \"bindingHints\": {\n \"strategies\": [\n \"Inline list: set options.dataSource to an array of row objects; set valueField/textField to property names on each row (e.g. id + title).\",\n \"Registry string: set options.dataSource to a named data-source definition key the runtime resolves to a provider (async list).\",\n \"Query-then-assign: run a catalog query to obtain rows, then pass the result array as options.dataSource (same as inline list).\",\n \"Tabular mock: sourceMode \\\"tabular\\\" with options.columns for row-shaped sample data edited in the designer.\"\n ],\n \"examples\": [\n \"{ \\\"dataSource\\\": [{ \\\"id\\\": \\\"a\\\", \\\"title\\\": \\\"A\\\" }], \\\"valueField\\\": \\\"id\\\", \\\"textField\\\": \\\"title\\\" }\",\n \"{ \\\"dataSource\\\": \\\"MyModule:SomeListQuery\\\", \\\"valueField\\\": \\\"id\\\", \\\"textField\\\": \\\"name\\\" }\",\n \"{ \\\"dataSource\\\": \\\"<registryKeyFromListRegisteredDataSources>\\\", \\\"valueField\\\": \\\"id\\\", \\\"textField\\\": \\\"title\\\" }\"\n ],\n \"notes\": \"The property editor widget id `data-source-options` exists only in the layout designer; do not use it as interface.name for AI tool field typing. Use json + bindingHints here.\"\n }\n },\n {\n \"name\": \"name\",\n \"title\": \"Name\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"path\",\n \"title\": \"Data Path\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"defaultValue\",\n \"title\": \"Default Value\",\n \"interface\": {\n \"name\": \"select-editor\"\n }\n },\n {\n \"name\": \"multiple\",\n \"title\": \"Multiple\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"disabled\",\n \"title\": \"Disabled\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"readonly\",\n \"title\": \"Readonly\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"placeholder\",\n \"title\": \"Placeholder\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"hasClearButton\",\n \"title\": \"Clear Button\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"allowSearch\",\n \"title\": \"Allow Search\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"leafOnly\",\n \"title\": \"Leaf Only\",\n \"description\": \"options.leafOnly defaults to false. Set true on a tree lookup so parent nodes cannot be selected and only leaf nodes can. Parents keep their normal style and stay expandable.\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"prefetch\",\n \"title\": \"Prefetch\",\n \"description\": \"options.prefetch on registry/AXDataSource selects: ax-lookup loads on render; auto-selects when exactly one item is returned and value is empty. Ignored for inline array dataSource (ax-combo-box).\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"waitForCascade\",\n \"title\": \"Wait For Cascade\",\n \"description\": \"options.waitForCascade defaults to true. An empty cascade filter keeps the editor disabled and the list empty until parent values exist. Set false to skip that lock. Ignored when options.disabled is true.\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"triggers\",\n \"title\": \"Triggers\",\n \"interface\": {\n \"name\": \"triggers-editor\"\n }\n }\n ],\n \"outputs\": [\n {\n \"name\": \"boundValue\",\n \"title\": \"Selection or filter payload\",\n \"description\": \"Normal mode: when widgetsConfigs.selectValueStrategy is valueField, stores primitive value from ax-combo-box / ax-lookup; otherwise stores selected row object or array when multiple. filterMode (options.filterMode): stores { value, displayText, operation } with operation.type in / equal. expose option can patch extra paths into context on change.\",\n \"interface\": {\n \"name\": \"json\"\n }\n }\n ],\n \"ai\": {\n \"tags\": [\n \"editor\",\n \"select\",\n \"lookup\",\n \"data-source\",\n \"filter\"\n ],\n \"shortDescription\": \"Single/multi pick from **`options.dataSource`**. **Never** ship a categorical select **without** items: either **`options.dataSource`** as an **inline row array** `{ id, title, … }` **or** a **registry string** resolved at runtime (discover keys via **`PlatformManagement:ListRegisteredDataSources`** when listing DI data-source definitions). Always set **`options.valueField`** / **`options.textField`** to match row properties — wrong fields yield empty labels.\",\n \"usage\": {\n \"whenToUse\": [\n \"Pick one or many items from a dataSource with valueField/textField.\",\n \"Filter row needs a select that writes structured filter value (filterMode).\"\n ],\n \"avoidWhen\": [\n \"Free-text search without discrete items — use text-editor or lookup patterns.\"\n ]\n },\n \"renderSurfaces\": [\n {\n \"mode\": \"edit\",\n \"summary\": \"AXPDataListWidgetComponent: plain array `options.dataSource` renders ax-combo-box; registry string or AXDataSource renders ax-lookup (drop-down-list / multi-select). Primitive keys bind to the host; commit resolves full rows, updates selectedItems, optional expose patch, filterMode writes { value, displayText, operation }.\"\n },\n {\n \"mode\": \"view\",\n \"summary\": \"AXPDataListWidgetComponent: iterates selectedItems(); prints textField for each item via translate pipe; empty shows \\\"---\\\".\"\n },\n {\n \"mode\": \"column\",\n \"summary\": \"AXPColumnWidgetComponent: resolves rawValue to objects using dataSource when primitives are stored; renders textField labels as badges.\"\n },\n {\n \"mode\": \"designer\",\n \"summary\": \"Reuses edit component.\"\n }\n ],\n \"instruction\": \"Read select-box-widget-edit.component.ts for authoritative value rules: array dataSource uses ax-combo-box, registry/AXDataSource uses ax-lookup; strategy-driven primitive vs full items, filterMode object shape, and expose merging into contextService.\"\n }\n}";
6623
6639
  readonly categories: readonly [{
6624
6640
  readonly name: "editor";
6625
6641
  readonly order: 2;
@@ -5630,10 +5630,19 @@ exports.WIDGET_CATALOG_ROWS = [
5630
5630
  "title": "toggle-editor"
5631
5631
  }
5632
5632
  },
5633
+ {
5634
+ "name": "leafOnly",
5635
+ "title": "Leaf Only",
5636
+ "description": "options.leafOnly defaults to false, so parent rows in tree lookups stay selectable. Set true to block parent selection and allow only leaf rows. Parents keep their normal style and stay expandable.",
5637
+ "interface": {
5638
+ "name": "toggle-editor",
5639
+ "title": "toggle-editor"
5640
+ }
5641
+ },
5633
5642
  {
5634
5643
  "name": "prefetchChildrenCount",
5635
5644
  "title": "Prefetch Children Count",
5636
- "description": "options.prefetchChildrenCount defaults to false. Single-select hierarchical lookups (multi-column tree) then show an expander on rows without a known childrenCount and load children only when a row is expanded. Set true to run one extra parentKey-in query per level so leaf rows hide the expander up front. Multi-select tree mode always prefetches.",
5645
+ "description": "options.prefetchChildrenCount is ignored for hierarchical lookups. Those modes always prefetch child counts so expand state is known. When options.leafOnly is true, that count is also what marks a row as a parent. Flat lookups ignore this option.",
5637
5646
  "interface": {
5638
5647
  "name": "toggle-editor",
5639
5648
  "title": "toggle-editor"
@@ -5659,7 +5668,7 @@ exports.WIDGET_CATALOG_ROWS = [
5659
5668
  }
5660
5669
  }
5661
5670
  ],
5662
- "metadataJson": "{\n \"name\": \"lookup-editor\",\n \"title\": \"Lookup Editor\",\n \"description\": \"Entity lookup; stores valueField (usually id). With options.multiple stores an array of ids.\",\n \"icon\": \"fa-light fa-magnifying-glass\",\n \"categories\": {\n \"name\": \"editor\",\n \"order\": 2,\n \"title\": \"@platform-layout-widgets:categories.editor.title\"\n },\n \"groups\": [\n \"entity-widget\",\n \"form-element\"\n ],\n \"defaultFilterWidgetName\": \"lookup-filter\",\n \"type\": \"editor\",\n \"dataType\": \"string\",\n \"inputs\": [\n {\n \"name\": \"name\",\n \"title\": \"Name\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"path\",\n \"title\": \"Data Path\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"entity\",\n \"title\": \"Entity\",\n \"interface\": {\n \"name\": \"entity-definition-provider-editor\"\n }\n },\n {\n \"name\": \"valueField\",\n \"title\": \"Value Field\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"textField\",\n \"title\": \"Text Field\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"multiple\",\n \"title\": \"Multiple\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"disabled\",\n \"title\": \"Disabled\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"waitForCascade\",\n \"title\": \"Wait For Cascade\",\n \"description\": \"options.waitForCascade defaults to true. An empty cascade filter keeps the editor disabled and the list empty until parent values exist. Set false to skip that lock. Ignored when options.disabled is true.\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"prefetchChildrenCount\",\n \"title\": \"Prefetch Children Count\",\n \"description\": \"options.prefetchChildrenCount defaults to false. Single-select hierarchical lookups (multi-column tree) then show an expander on rows without a known childrenCount and load children only when a row is expanded. Set true to run one extra parentKey-in query per level so leaf rows hide the expander up front. Multi-select tree mode always prefetches.\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"readonly\",\n \"title\": \"Readonly\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n }\n ],\n \"outputs\": [\n {\n \"name\": \"boundValue\",\n \"title\": \"Selected value\",\n \"description\": \"string id, or string[] when multiple is true.\",\n \"interface\": {\n \"name\": \"lookup-editor\"\n }\n }\n ]\n}",
5671
+ "metadataJson": "{\n \"name\": \"lookup-editor\",\n \"title\": \"Lookup Editor\",\n \"description\": \"Entity lookup; stores valueField (usually id). With options.multiple stores an array of ids.\",\n \"icon\": \"fa-light fa-magnifying-glass\",\n \"categories\": {\n \"name\": \"editor\",\n \"order\": 2,\n \"title\": \"@platform-layout-widgets:categories.editor.title\"\n },\n \"groups\": [\n \"entity-widget\",\n \"form-element\"\n ],\n \"defaultFilterWidgetName\": \"lookup-filter\",\n \"type\": \"editor\",\n \"dataType\": \"string\",\n \"inputs\": [\n {\n \"name\": \"name\",\n \"title\": \"Name\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"path\",\n \"title\": \"Data Path\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"entity\",\n \"title\": \"Entity\",\n \"interface\": {\n \"name\": \"entity-definition-provider-editor\"\n }\n },\n {\n \"name\": \"valueField\",\n \"title\": \"Value Field\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"textField\",\n \"title\": \"Text Field\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"multiple\",\n \"title\": \"Multiple\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"disabled\",\n \"title\": \"Disabled\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"waitForCascade\",\n \"title\": \"Wait For Cascade\",\n \"description\": \"options.waitForCascade defaults to true. An empty cascade filter keeps the editor disabled and the list empty until parent values exist. Set false to skip that lock. Ignored when options.disabled is true.\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"leafOnly\",\n \"title\": \"Leaf Only\",\n \"description\": \"options.leafOnly defaults to false, so parent rows in tree lookups stay selectable. Set true to block parent selection and allow only leaf rows. Parents keep their normal style and stay expandable.\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"prefetchChildrenCount\",\n \"title\": \"Prefetch Children Count\",\n \"description\": \"options.prefetchChildrenCount is ignored for hierarchical lookups. Those modes always prefetch child counts so expand state is known. When options.leafOnly is true, that count is also what marks a row as a parent. Flat lookups ignore this option.\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"readonly\",\n \"title\": \"Readonly\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n }\n ],\n \"outputs\": [\n {\n \"name\": \"boundValue\",\n \"title\": \"Selected value\",\n \"description\": \"string id, or string[] when multiple is true.\",\n \"interface\": {\n \"name\": \"lookup-editor\"\n }\n }\n ]\n}",
5663
5672
  "categories": [
5664
5673
  {
5665
5674
  "name": "editor",
@@ -7752,6 +7761,15 @@ exports.WIDGET_CATALOG_ROWS = [
7752
7761
  "title": "toggle-editor"
7753
7762
  }
7754
7763
  },
7764
+ {
7765
+ "name": "leafOnly",
7766
+ "title": "Leaf Only",
7767
+ "description": "options.leafOnly defaults to false. Set true on a tree lookup so parent nodes cannot be selected and only leaf nodes can. Parents keep their normal style and stay expandable.",
7768
+ "interface": {
7769
+ "name": "toggle-editor",
7770
+ "title": "toggle-editor"
7771
+ }
7772
+ },
7755
7773
  {
7756
7774
  "name": "prefetch",
7757
7775
  "title": "Prefetch",
@@ -7791,7 +7809,7 @@ exports.WIDGET_CATALOG_ROWS = [
7791
7809
  }
7792
7810
  ],
7793
7811
  "aiMetadataJson": "{\n \"tags\": [\n \"editor\",\n \"select\",\n \"lookup\",\n \"data-source\",\n \"filter\"\n ],\n \"shortDescription\": \"Single/multi pick from **`options.dataSource`**. **Never** ship a categorical select **without** items: either **`options.dataSource`** as an **inline row array** `{ id, title, … }` **or** a **registry string** resolved at runtime (discover keys via **`PlatformManagement:ListRegisteredDataSources`** when listing DI data-source definitions). Always set **`options.valueField`** / **`options.textField`** to match row properties — wrong fields yield empty labels.\",\n \"usage\": {\n \"whenToUse\": [\n \"Pick one or many items from a dataSource with valueField/textField.\",\n \"Filter row needs a select that writes structured filter value (filterMode).\"\n ],\n \"avoidWhen\": [\n \"Free-text search without discrete items — use text-editor or lookup patterns.\"\n ]\n },\n \"renderSurfaces\": [\n {\n \"mode\": \"edit\",\n \"summary\": \"AXPDataListWidgetComponent: plain array `options.dataSource` renders ax-combo-box; registry string or AXDataSource renders ax-lookup (drop-down-list / multi-select). Primitive keys bind to the host; commit resolves full rows, updates selectedItems, optional expose patch, filterMode writes { value, displayText, operation }.\"\n },\n {\n \"mode\": \"view\",\n \"summary\": \"AXPDataListWidgetComponent: iterates selectedItems(); prints textField for each item via translate pipe; empty shows \\\"---\\\".\"\n },\n {\n \"mode\": \"column\",\n \"summary\": \"AXPColumnWidgetComponent: resolves rawValue to objects using dataSource when primitives are stored; renders textField labels as badges.\"\n },\n {\n \"mode\": \"designer\",\n \"summary\": \"Reuses edit component.\"\n }\n ],\n \"instruction\": \"Read select-box-widget-edit.component.ts for authoritative value rules: array dataSource uses ax-combo-box, registry/AXDataSource uses ax-lookup; strategy-driven primitive vs full items, filterMode object shape, and expose merging into contextService.\"\n}",
7794
- "metadataJson": "{\n \"name\": \"select-editor\",\n \"title\": \"@platform-layout-widgets:widgets.select-editor.title\",\n \"description\": \"@platform-layout-widgets:widgets.select-editor.description\",\n \"icon\": \"fa-light fa-list-dropdown\",\n \"categories\": {\n \"name\": \"editor\",\n \"order\": 2,\n \"title\": \"@platform-layout-widgets:categories.editor.title\"\n },\n \"subCategory\": {\n \"name\": \"editor-choice\",\n \"order\": 4,\n \"title\": \"@platform-layout-widgets:subcategories.editor-choice.title\"\n },\n \"groups\": [\n \"form-element\"\n ],\n \"defaultFilterWidgetName\": \"select-filter\",\n \"type\": \"editor\",\n \"dataType\": \"string\",\n \"inputs\": [\n {\n \"name\": \"dataSourceOptions\",\n \"title\": \"Data source bundle (options)\",\n \"description\": \"Designer merges this into `options`: shape matches AXPDataSourceOptionsValue — dataSource (inline array or string registry key), optional sourceMode list|tabular, columns for tabular, valueField, textField, filters. Not a separate form widget in the AI field catalog; describe as structured JSON on the host select-editor.\",\n \"interface\": {\n \"name\": \"json\"\n },\n \"bindingHints\": {\n \"strategies\": [\n \"Inline list: set options.dataSource to an array of row objects; set valueField/textField to property names on each row (e.g. id + title).\",\n \"Registry string: set options.dataSource to a named data-source definition key the runtime resolves to a provider (async list).\",\n \"Query-then-assign: run a catalog query to obtain rows, then pass the result array as options.dataSource (same as inline list).\",\n \"Tabular mock: sourceMode \\\"tabular\\\" with options.columns for row-shaped sample data edited in the designer.\"\n ],\n \"examples\": [\n \"{ \\\"dataSource\\\": [{ \\\"id\\\": \\\"a\\\", \\\"title\\\": \\\"A\\\" }], \\\"valueField\\\": \\\"id\\\", \\\"textField\\\": \\\"title\\\" }\",\n \"{ \\\"dataSource\\\": \\\"MyModule:SomeListQuery\\\", \\\"valueField\\\": \\\"id\\\", \\\"textField\\\": \\\"name\\\" }\",\n \"{ \\\"dataSource\\\": \\\"<registryKeyFromListRegisteredDataSources>\\\", \\\"valueField\\\": \\\"id\\\", \\\"textField\\\": \\\"title\\\" }\"\n ],\n \"notes\": \"The property editor widget id `data-source-options` exists only in the layout designer; do not use it as interface.name for AI tool field typing. Use json + bindingHints here.\"\n }\n },\n {\n \"name\": \"name\",\n \"title\": \"Name\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"path\",\n \"title\": \"Data Path\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"defaultValue\",\n \"title\": \"Default Value\",\n \"interface\": {\n \"name\": \"select-editor\"\n }\n },\n {\n \"name\": \"multiple\",\n \"title\": \"Multiple\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"disabled\",\n \"title\": \"Disabled\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"readonly\",\n \"title\": \"Readonly\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"placeholder\",\n \"title\": \"Placeholder\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"hasClearButton\",\n \"title\": \"Clear Button\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"allowSearch\",\n \"title\": \"Allow Search\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"prefetch\",\n \"title\": \"Prefetch\",\n \"description\": \"options.prefetch on registry/AXDataSource selects: ax-lookup loads on render; auto-selects when exactly one item is returned and value is empty. Ignored for inline array dataSource (ax-combo-box).\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"waitForCascade\",\n \"title\": \"Wait For Cascade\",\n \"description\": \"options.waitForCascade defaults to true. An empty cascade filter keeps the editor disabled and the list empty until parent values exist. Set false to skip that lock. Ignored when options.disabled is true.\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"triggers\",\n \"title\": \"Triggers\",\n \"interface\": {\n \"name\": \"triggers-editor\"\n }\n }\n ],\n \"outputs\": [\n {\n \"name\": \"boundValue\",\n \"title\": \"Selection or filter payload\",\n \"description\": \"Normal mode: when widgetsConfigs.selectValueStrategy is valueField, stores primitive value from ax-combo-box / ax-lookup; otherwise stores selected row object or array when multiple. filterMode (options.filterMode): stores { value, displayText, operation } with operation.type in / equal. expose option can patch extra paths into context on change.\",\n \"interface\": {\n \"name\": \"json\"\n }\n }\n ],\n \"ai\": {\n \"tags\": [\n \"editor\",\n \"select\",\n \"lookup\",\n \"data-source\",\n \"filter\"\n ],\n \"shortDescription\": \"Single/multi pick from **`options.dataSource`**. **Never** ship a categorical select **without** items: either **`options.dataSource`** as an **inline row array** `{ id, title, … }` **or** a **registry string** resolved at runtime (discover keys via **`PlatformManagement:ListRegisteredDataSources`** when listing DI data-source definitions). Always set **`options.valueField`** / **`options.textField`** to match row properties — wrong fields yield empty labels.\",\n \"usage\": {\n \"whenToUse\": [\n \"Pick one or many items from a dataSource with valueField/textField.\",\n \"Filter row needs a select that writes structured filter value (filterMode).\"\n ],\n \"avoidWhen\": [\n \"Free-text search without discrete items — use text-editor or lookup patterns.\"\n ]\n },\n \"renderSurfaces\": [\n {\n \"mode\": \"edit\",\n \"summary\": \"AXPDataListWidgetComponent: plain array `options.dataSource` renders ax-combo-box; registry string or AXDataSource renders ax-lookup (drop-down-list / multi-select). Primitive keys bind to the host; commit resolves full rows, updates selectedItems, optional expose patch, filterMode writes { value, displayText, operation }.\"\n },\n {\n \"mode\": \"view\",\n \"summary\": \"AXPDataListWidgetComponent: iterates selectedItems(); prints textField for each item via translate pipe; empty shows \\\"---\\\".\"\n },\n {\n \"mode\": \"column\",\n \"summary\": \"AXPColumnWidgetComponent: resolves rawValue to objects using dataSource when primitives are stored; renders textField labels as badges.\"\n },\n {\n \"mode\": \"designer\",\n \"summary\": \"Reuses edit component.\"\n }\n ],\n \"instruction\": \"Read select-box-widget-edit.component.ts for authoritative value rules: array dataSource uses ax-combo-box, registry/AXDataSource uses ax-lookup; strategy-driven primitive vs full items, filterMode object shape, and expose merging into contextService.\"\n }\n}",
7812
+ "metadataJson": "{\n \"name\": \"select-editor\",\n \"title\": \"@platform-layout-widgets:widgets.select-editor.title\",\n \"description\": \"@platform-layout-widgets:widgets.select-editor.description\",\n \"icon\": \"fa-light fa-list-dropdown\",\n \"categories\": {\n \"name\": \"editor\",\n \"order\": 2,\n \"title\": \"@platform-layout-widgets:categories.editor.title\"\n },\n \"subCategory\": {\n \"name\": \"editor-choice\",\n \"order\": 4,\n \"title\": \"@platform-layout-widgets:subcategories.editor-choice.title\"\n },\n \"groups\": [\n \"form-element\"\n ],\n \"defaultFilterWidgetName\": \"select-filter\",\n \"type\": \"editor\",\n \"dataType\": \"string\",\n \"inputs\": [\n {\n \"name\": \"dataSourceOptions\",\n \"title\": \"Data source bundle (options)\",\n \"description\": \"Designer merges this into `options`: shape matches AXPDataSourceOptionsValue — dataSource (inline array or string registry key), optional sourceMode list|tabular, columns for tabular, valueField, textField, filters. Not a separate form widget in the AI field catalog; describe as structured JSON on the host select-editor.\",\n \"interface\": {\n \"name\": \"json\"\n },\n \"bindingHints\": {\n \"strategies\": [\n \"Inline list: set options.dataSource to an array of row objects; set valueField/textField to property names on each row (e.g. id + title).\",\n \"Registry string: set options.dataSource to a named data-source definition key the runtime resolves to a provider (async list).\",\n \"Query-then-assign: run a catalog query to obtain rows, then pass the result array as options.dataSource (same as inline list).\",\n \"Tabular mock: sourceMode \\\"tabular\\\" with options.columns for row-shaped sample data edited in the designer.\"\n ],\n \"examples\": [\n \"{ \\\"dataSource\\\": [{ \\\"id\\\": \\\"a\\\", \\\"title\\\": \\\"A\\\" }], \\\"valueField\\\": \\\"id\\\", \\\"textField\\\": \\\"title\\\" }\",\n \"{ \\\"dataSource\\\": \\\"MyModule:SomeListQuery\\\", \\\"valueField\\\": \\\"id\\\", \\\"textField\\\": \\\"name\\\" }\",\n \"{ \\\"dataSource\\\": \\\"<registryKeyFromListRegisteredDataSources>\\\", \\\"valueField\\\": \\\"id\\\", \\\"textField\\\": \\\"title\\\" }\"\n ],\n \"notes\": \"The property editor widget id `data-source-options` exists only in the layout designer; do not use it as interface.name for AI tool field typing. Use json + bindingHints here.\"\n }\n },\n {\n \"name\": \"name\",\n \"title\": \"Name\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"path\",\n \"title\": \"Data Path\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"defaultValue\",\n \"title\": \"Default Value\",\n \"interface\": {\n \"name\": \"select-editor\"\n }\n },\n {\n \"name\": \"multiple\",\n \"title\": \"Multiple\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"disabled\",\n \"title\": \"Disabled\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"readonly\",\n \"title\": \"Readonly\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"placeholder\",\n \"title\": \"Placeholder\",\n \"interface\": {\n \"name\": \"text-editor\"\n }\n },\n {\n \"name\": \"hasClearButton\",\n \"title\": \"Clear Button\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"allowSearch\",\n \"title\": \"Allow Search\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"leafOnly\",\n \"title\": \"Leaf Only\",\n \"description\": \"options.leafOnly defaults to false. Set true on a tree lookup so parent nodes cannot be selected and only leaf nodes can. Parents keep their normal style and stay expandable.\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"prefetch\",\n \"title\": \"Prefetch\",\n \"description\": \"options.prefetch on registry/AXDataSource selects: ax-lookup loads on render; auto-selects when exactly one item is returned and value is empty. Ignored for inline array dataSource (ax-combo-box).\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"waitForCascade\",\n \"title\": \"Wait For Cascade\",\n \"description\": \"options.waitForCascade defaults to true. An empty cascade filter keeps the editor disabled and the list empty until parent values exist. Set false to skip that lock. Ignored when options.disabled is true.\",\n \"interface\": {\n \"name\": \"toggle-editor\"\n }\n },\n {\n \"name\": \"triggers\",\n \"title\": \"Triggers\",\n \"interface\": {\n \"name\": \"triggers-editor\"\n }\n }\n ],\n \"outputs\": [\n {\n \"name\": \"boundValue\",\n \"title\": \"Selection or filter payload\",\n \"description\": \"Normal mode: when widgetsConfigs.selectValueStrategy is valueField, stores primitive value from ax-combo-box / ax-lookup; otherwise stores selected row object or array when multiple. filterMode (options.filterMode): stores { value, displayText, operation } with operation.type in / equal. expose option can patch extra paths into context on change.\",\n \"interface\": {\n \"name\": \"json\"\n }\n }\n ],\n \"ai\": {\n \"tags\": [\n \"editor\",\n \"select\",\n \"lookup\",\n \"data-source\",\n \"filter\"\n ],\n \"shortDescription\": \"Single/multi pick from **`options.dataSource`**. **Never** ship a categorical select **without** items: either **`options.dataSource`** as an **inline row array** `{ id, title, … }` **or** a **registry string** resolved at runtime (discover keys via **`PlatformManagement:ListRegisteredDataSources`** when listing DI data-source definitions). Always set **`options.valueField`** / **`options.textField`** to match row properties — wrong fields yield empty labels.\",\n \"usage\": {\n \"whenToUse\": [\n \"Pick one or many items from a dataSource with valueField/textField.\",\n \"Filter row needs a select that writes structured filter value (filterMode).\"\n ],\n \"avoidWhen\": [\n \"Free-text search without discrete items — use text-editor or lookup patterns.\"\n ]\n },\n \"renderSurfaces\": [\n {\n \"mode\": \"edit\",\n \"summary\": \"AXPDataListWidgetComponent: plain array `options.dataSource` renders ax-combo-box; registry string or AXDataSource renders ax-lookup (drop-down-list / multi-select). Primitive keys bind to the host; commit resolves full rows, updates selectedItems, optional expose patch, filterMode writes { value, displayText, operation }.\"\n },\n {\n \"mode\": \"view\",\n \"summary\": \"AXPDataListWidgetComponent: iterates selectedItems(); prints textField for each item via translate pipe; empty shows \\\"---\\\".\"\n },\n {\n \"mode\": \"column\",\n \"summary\": \"AXPColumnWidgetComponent: resolves rawValue to objects using dataSource when primitives are stored; renders textField labels as badges.\"\n },\n {\n \"mode\": \"designer\",\n \"summary\": \"Reuses edit component.\"\n }\n ],\n \"instruction\": \"Read select-box-widget-edit.component.ts for authoritative value rules: array dataSource uses ax-combo-box, registry/AXDataSource uses ax-lookup; strategy-driven primitive vs full items, filterMode object shape, and expose merging into contextService.\"\n }\n}",
7795
7813
  "categories": [
7796
7814
  {
7797
7815
  "name": "editor",