@acorex/components 22.2.2 → 22.2.4

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,9 +1,9 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "22.2.2",
3
+ "version": "22.2.4",
4
4
  "peerDependencies": {
5
- "@acorex/core": "22.2.2",
6
- "@acorex/cdk": "22.2.2",
5
+ "@acorex/core": "22.2.4",
6
+ "@acorex/cdk": "22.2.4",
7
7
  "@angular/aria": ">=22.1.0",
8
8
  "polytype": ">=0.17.0",
9
9
  "hammerjs": ">=2.0.8",
@@ -930,6 +930,11 @@ interface AXLookupTreeTableDataSourceOptions {
930
930
  textField: string;
931
931
  parentField: string;
932
932
  hasChildrenField: string;
933
+ /**
934
+ * Fields matched by text search. Defaults to `textField` only. Supply the searchable
935
+ * column fields so values shown in other columns (codes, numbers) are matched too.
936
+ */
937
+ searchFields?: string[];
933
938
  /** When set, used for text search instead of loading roots only (whole-tree lazy search). */
934
939
  loadSearchRoots?: () => Promise<AXTreeViewNode[]>;
935
940
  }
@@ -938,13 +943,7 @@ interface AXLookupTreeTableDataSourceOptions {
938
943
  * `AXDataSource` that a multi-column data table can load and expand.
939
944
  */
940
945
  declare function createLookupTreeTableDataSource(source: AXTreeViewDataSource, options: AXLookupTreeTableDataSourceOptions): AXDataSource<AXLookupItem>;
941
- /**
942
- * Recursively filters a nested tree by `textField` (case-insensitive contains).
943
- * A node is kept if it matches or any descendant matches. Matching parents keep
944
- * all children. Every kept ancestor is a new object with `expanded: true` so
945
- * nested hits are visible without mutating the original tree.
946
- */
947
- declare function filterTreeNodes(nodes: AXLookupItem[], textField: string, query: string, translateText?: (text: string) => string): AXLookupItem[];
946
+ declare function filterTreeNodes(nodes: AXLookupItem[], textField: string | string[], query: string, translateText?: (text: string) => string): AXLookupItem[];
948
947
  /**
949
948
  * Maps `filterTreeNodes` output to data-table row metadata so matching branches
950
949
  * are expanded and nested rows are visible for search highlighting.