@acorex/components 16.19.33 → 16.19.34
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.
|
@@ -12004,15 +12004,15 @@ class AXSearchBarComponent {
|
|
|
12004
12004
|
});
|
|
12005
12005
|
const groupMap = new Map();
|
|
12006
12006
|
for (const item of v) {
|
|
12007
|
-
const groupId = item.property?.
|
|
12007
|
+
const groupId = item.property?.groupOptions?.groupId ?? null;
|
|
12008
12008
|
if (!groupMap.has(groupId)) {
|
|
12009
12009
|
groupMap.set(groupId, []);
|
|
12010
12010
|
}
|
|
12011
12011
|
groupMap.get(groupId).push(item);
|
|
12012
12012
|
}
|
|
12013
12013
|
this._items = Array.from(groupMap.entries()).map(([groupId, items]) => {
|
|
12014
|
-
const groupTitle = items.find((i) => i.property?.
|
|
12015
|
-
?.
|
|
12014
|
+
const groupTitle = items.find((i) => i.property?.groupOptions?.groupTitle)?.property
|
|
12015
|
+
?.groupOptions?.groupTitle || null;
|
|
12016
12016
|
const rows = Object.entries(groupBy(items, (x) => x.property?.row)).map(([row, rowItems]) => ({
|
|
12017
12017
|
row,
|
|
12018
12018
|
items: rowItems,
|