@kodaris/krubble-app-components 1.0.14 → 1.0.15
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/dist/krubble-app.bundled.js +8 -0
- package/dist/krubble-app.bundled.js.map +1 -1
- package/dist/krubble-app.bundled.min.js +1 -1
- package/dist/krubble-app.bundled.min.js.map +1 -1
- package/dist/krubble-app.umd.js +8 -0
- package/dist/krubble-app.umd.js.map +1 -1
- package/dist/krubble-app.umd.min.js +1 -1
- package/dist/krubble-app.umd.min.js.map +1 -1
- package/dist/scaffold.d.ts.map +1 -1
- package/dist/scaffold.js +8 -0
- package/dist/scaffold.js.map +1 -1
- package/package.json +1 -1
|
@@ -1503,6 +1503,14 @@ let KRScaffold = class KRScaffold extends i$1 {
|
|
|
1503
1503
|
if (this.navQuery) {
|
|
1504
1504
|
const query = this.navQuery.toLowerCase();
|
|
1505
1505
|
const allItems = this.getComputedNav();
|
|
1506
|
+
// If we're getting children of a group, check if parent group name matches query
|
|
1507
|
+
// If so, show all children without filtering
|
|
1508
|
+
if (parentId !== null) {
|
|
1509
|
+
const parentGroup = allItems.find(item => item.id === parentId);
|
|
1510
|
+
if (parentGroup?.label.toLowerCase().includes(query)) {
|
|
1511
|
+
return items; // Show all children when group name matches
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1506
1514
|
items = items.filter(item => {
|
|
1507
1515
|
if (item.type === 'group') {
|
|
1508
1516
|
// Show group if its label matches OR if it has matching children
|