@tekkare/romulus 0.1.298 → 0.1.299
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/module.json
CHANGED
|
@@ -65,6 +65,12 @@ const props = withDefaults(
|
|
|
65
65
|
appKey?: string;
|
|
66
66
|
/** Maillon de partie pose a la main (lien deja localise), pour une app sans `parts`. */
|
|
67
67
|
part?: { label: string; to: string } | null;
|
|
68
|
+
/**
|
|
69
|
+
* Lien d'une partie du menu du fil d'Ariane, par cle, a la place de sa
|
|
70
|
+
* route d'accueil (deja localise). Pour faire suivre a l'autre partie ce
|
|
71
|
+
* que l'ecran montre (ex. la selection de produits de la vue).
|
|
72
|
+
*/
|
|
73
|
+
partLinks?: Record<string, string>;
|
|
68
74
|
/** Maillon sous la partie (ex. la profession ouverte d'un annuaire). */
|
|
69
75
|
subPart?: { label: string; to: string } | null;
|
|
70
76
|
/** Sections de la barre gauche depliees par defaut. */
|
|
@@ -93,7 +99,7 @@ const props = withDefaults(
|
|
|
93
99
|
*/
|
|
94
100
|
panelProps?: Partial<Record<OipRailTileKey, Record<string, unknown>>>;
|
|
95
101
|
}>(),
|
|
96
|
-
{ flag: "fr", appKey: "", part: null, subPart: null, navDefaultOpen: false, home: undefined, tiles: () => ({}), superAdmin: false, userName: "", hideTabs: false, panelProps: () => ({}) },
|
|
102
|
+
{ flag: "fr", appKey: "", part: null, partLinks: () => ({}), subPart: null, navDefaultOpen: false, home: undefined, tiles: () => ({}), superAdmin: false, userName: "", hideTabs: false, panelProps: () => ({}) },
|
|
97
103
|
);
|
|
98
104
|
|
|
99
105
|
/** Tuile ouverte, ou null quand la toolbar est fermee. */
|
|
@@ -243,7 +249,7 @@ const partMenu = computed(() =>
|
|
|
243
249
|
.map((p) => ({
|
|
244
250
|
label: partLabel(p),
|
|
245
251
|
icon: p.icon,
|
|
246
|
-
to: localePath(p.to),
|
|
252
|
+
to: props.partLinks[p.key] ?? localePath(p.to),
|
|
247
253
|
active: p.key === props.appKey,
|
|
248
254
|
})),
|
|
249
255
|
);
|