@tekkare/romulus 0.1.368 → 0.1.369
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
|
@@ -75,8 +75,18 @@ const props = withDefaults(
|
|
|
75
75
|
* que l'ecran montre (ex. la selection de produits de la vue).
|
|
76
76
|
*/
|
|
77
77
|
partLinks?: Record<string, string>;
|
|
78
|
-
/**
|
|
79
|
-
|
|
78
|
+
/**
|
|
79
|
+
* Menu du maillon de partie, a la place des autres parties du hub (liens
|
|
80
|
+
* deja localises). Pour une partie qui forme un univers a part : ses
|
|
81
|
+
* propres voisins, ou `[]` pour un maillon simple.
|
|
82
|
+
*/
|
|
83
|
+
partMenu?: { label: string; to: string; icon?: string; group?: string; active?: boolean }[] | null;
|
|
84
|
+
/**
|
|
85
|
+
* Maillon sous la partie (ex. la profession ouverte d'un annuaire). Avec
|
|
86
|
+
* `menu`, il ouvre ses voisins (liens deja localises, `group` pour les
|
|
87
|
+
* ranger, `active` pour l'entree ouverte).
|
|
88
|
+
*/
|
|
89
|
+
subPart?: { label: string; to: string; menu?: { label: string; to: string; icon?: string; group?: string; active?: boolean }[] } | null;
|
|
80
90
|
/** Sections de la barre gauche depliees par defaut. */
|
|
81
91
|
navDefaultOpen?: boolean;
|
|
82
92
|
/** Remplace app.config.oip.home quand le maillon pays est dynamique. */
|
|
@@ -107,7 +117,7 @@ const props = withDefaults(
|
|
|
107
117
|
*/
|
|
108
118
|
panelProps?: Partial<Record<OipRailTileKey, Record<string, unknown>>>;
|
|
109
119
|
}>(),
|
|
110
|
-
{ flag: "fr", appKey: "", part: null, partLinks: () => ({}), subPart: null, navDefaultOpen: false, home: undefined, tiles: () => ({}), superAdmin: false, userName: "", hideTabs: false, panelProps: () => ({}) },
|
|
120
|
+
{ flag: "fr", appKey: "", part: null, partLinks: () => ({}), partMenu: null, subPart: null, navDefaultOpen: false, home: undefined, tiles: () => ({}), superAdmin: false, userName: "", hideTabs: false, panelProps: () => ({}) },
|
|
111
121
|
);
|
|
112
122
|
|
|
113
123
|
/** Tuile ouverte, ou null quand la toolbar est fermee. */
|
|
@@ -297,11 +307,13 @@ const crumbs = computed(() => {
|
|
|
297
307
|
config.platform,
|
|
298
308
|
...(home ? [home] : []),
|
|
299
309
|
...(currentPart.value
|
|
300
|
-
? [{ label: partLabel(currentPart.value), to: appTo.value, menu: partMenu.value }]
|
|
310
|
+
? [{ label: partLabel(currentPart.value), to: appTo.value, menu: props.partMenu ?? partMenu.value }]
|
|
301
311
|
: props.part
|
|
302
312
|
? [{ label: props.part.label, to: props.part.to }]
|
|
303
313
|
: []),
|
|
304
|
-
...(props.subPart
|
|
314
|
+
...(props.subPart
|
|
315
|
+
? [{ label: props.subPart.label, to: props.subPart.to, ...(props.subPart.menu?.length ? { menu: props.subPart.menu } : {}) }]
|
|
316
|
+
: []),
|
|
305
317
|
// Sur une fiche, la page d'origine reste dans le fil avant elle.
|
|
306
318
|
...(activeItem.value || !originPage.value || !props.sections.length
|
|
307
319
|
? []
|