@luigi-project/core-modular 0.0.16-dev.202609290053 → 0.0.16-dev.20261010103
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/luigi.js +7 -2
- package/luigi.js.map +1 -1
- package/package.json +1 -1
- package/types/navigation.d.ts +2 -0
package/luigi.js
CHANGED
|
@@ -7983,7 +7983,8 @@ var fi = {
|
|
|
7983
7983
|
id: n,
|
|
7984
7984
|
label: a,
|
|
7985
7985
|
nodes: [],
|
|
7986
|
-
tooltip: this.resolveTooltipText(s.category, a)
|
|
7986
|
+
tooltip: this.resolveTooltipText(s.category, a),
|
|
7987
|
+
navigateOnClick: s.category.navigateOnClick ?? !1
|
|
7987
7988
|
}
|
|
7988
7989
|
}, r[n] = o, i.push(o);
|
|
7989
7990
|
else if (e) if (o.badgeCounter) {
|
|
@@ -8023,7 +8024,11 @@ var fi = {
|
|
|
8023
8024
|
count: () => s,
|
|
8024
8025
|
label: ""
|
|
8025
8026
|
};
|
|
8026
|
-
return i.unshift(...a), {
|
|
8027
|
+
return i.unshift(...a), i.forEach((e) => {
|
|
8028
|
+
if (!e.category?.navigateOnClick || !e.category.nodes?.length) return;
|
|
8029
|
+
let t = e.category.navigateOnClick, n = t === !0 ? e.category.nodes.find((e) => e.node?.category?.navigateOnClick) : e.category.nodes.find((e) => e.node?.pathSegment === t);
|
|
8030
|
+
n && (n.navigateOnClick = !0);
|
|
8031
|
+
}), {
|
|
8027
8032
|
items: i,
|
|
8028
8033
|
totalBadgeNode: c
|
|
8029
8034
|
};
|