@tekkare/romulus 0.1.369 → 0.1.370

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.368",
7
+ "version": "0.1.369",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "2.0.0"
@@ -87,6 +87,12 @@ const props = withDefaults(
87
87
  * ranger, `active` pour l'entree ouverte).
88
88
  */
89
89
  subPart?: { label: string; to: string; menu?: { label: string; to: string; icon?: string; group?: string; active?: boolean }[] } | null;
90
+ /**
91
+ * false : le fil s'arrete a la partie (ou au sous-maillon), sans la page
92
+ * ouverte ni la page d'origine. Pour une partie ou l'on ne choisit que le
93
+ * sous-maillon (un theme), la barre gauche portant les pages.
94
+ */
95
+ pageCrumbs?: boolean;
90
96
  /** Sections de la barre gauche depliees par defaut. */
91
97
  navDefaultOpen?: boolean;
92
98
  /** Remplace app.config.oip.home quand le maillon pays est dynamique. */
@@ -117,7 +123,7 @@ const props = withDefaults(
117
123
  */
118
124
  panelProps?: Partial<Record<OipRailTileKey, Record<string, unknown>>>;
119
125
  }>(),
120
- { flag: "fr", appKey: "", part: null, partLinks: () => ({}), partMenu: null, subPart: null, navDefaultOpen: false, home: undefined, tiles: () => ({}), superAdmin: false, userName: "", hideTabs: false, panelProps: () => ({}) },
126
+ { flag: "fr", appKey: "", part: null, partLinks: () => ({}), partMenu: null, subPart: null, pageCrumbs: true, navDefaultOpen: false, home: undefined, tiles: () => ({}), superAdmin: false, userName: "", hideTabs: false, panelProps: () => ({}) },
121
127
  );
122
128
 
123
129
  /** Tuile ouverte, ou null quand la toolbar est fermee. */
@@ -315,10 +321,10 @@ const crumbs = computed(() => {
315
321
  ? [{ label: props.subPart.label, to: props.subPart.to, ...(props.subPart.menu?.length ? { menu: props.subPart.menu } : {}) }]
316
322
  : []),
317
323
  // Sur une fiche, la page d'origine reste dans le fil avant elle.
318
- ...(activeItem.value || !originPage.value || !props.sections.length
324
+ ...(!props.pageCrumbs || activeItem.value || !originPage.value || !props.sections.length
319
325
  ? []
320
326
  : [{ label: originPage.value.label, to: originPage.value.to, menu: pageMenu.value }]),
321
- ...(props.sections.length && activeLabel.value
327
+ ...(props.pageCrumbs && props.sections.length && activeLabel.value
322
328
  ? [{ label: activeLabel.value, ...(activeItem.value ? { menu: pageMenu.value } : {}) }]
323
329
  : []),
324
330
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/romulus",
3
- "version": "0.1.369",
3
+ "version": "0.1.370",
4
4
  "description": "Romulus Design System - Nuxt module by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",