@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
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
- "version": "0.1.367",
7
+ "version": "0.1.368",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "2.0.0"
@@ -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
- /** Maillon sous la partie (ex. la profession ouverte d'un annuaire). */
79
- subPart?: { label: string; to: string } | null;
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 ? [{ label: props.subPart.label, to: props.subPart.to }] : []),
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
  ? []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/romulus",
3
- "version": "0.1.368",
3
+ "version": "0.1.369",
4
4
  "description": "Romulus Design System - Nuxt module by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",