@egen-civitas/esm-styleguide 1.6.1 → 1.8.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @egen-civitas/esm-styleguide
2
2
 
3
+ ## 1.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b49f9e8: Suppression définitive de la barre latérale globale : le conteneur `#egen-left-nav-container` est retiré du shell (il n'était plus que masqué) ainsi que ses règles CSS. `LeftNavMenu`, `useLeftNav`, `setLeftNav` et `unsetLeftNav` sont marqués `@deprecated` : la navigation de niveau 2 est portée par la TopBar (slot `topbar-level2-nav`) ; une app qui veut une navigation interne affiche sa propre barre latérale.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [b49f9e8]
12
+ - @egen-civitas/esm-react-utils@1.0.5
13
+ - @egen-civitas/esm-extensions@1.1.1
14
+
15
+ ## 1.7.0
16
+
17
+ ### Minor Changes
18
+
19
+ - 48e7980: Navigation de niveau 2 pilotée par les apps : nouveau type partagé `NavEntryMeta`, constante `TOPBAR_LEVEL2_NAV_SLOT` (`topbar-level2-nav`) et validateur `isNavEntryMeta` dans `esm-extensions`. La colonne de navigation latérale globale (`leftNav`) est retirée de la grille du shell : seuls la TopBar et le footer sont globaux ; une app qui veut une sidebar la fournit dans son propre contenu.
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [48e7980]
24
+ - @egen-civitas/esm-extensions@1.1.0
25
+
3
26
  ## 1.6.1
4
27
 
5
28
  ### Patch Changes
@@ -27,7 +27,6 @@ html[data-public-route='true'] {
27
27
  min-height: 100%;
28
28
  }
29
29
 
30
- #egen-left-nav-container,
31
30
  #egen-workspaces-container,
32
31
  #egen-footer-app-container {
33
32
  display: none;
@@ -79,10 +78,6 @@ html[data-public-route='true'] {
79
78
  overflow-x: auto;
80
79
  }
81
80
 
82
- #egen-left-nav-container {
83
- grid-area: leftNav;
84
- }
85
-
86
81
  #egen-workspaces-container {
87
82
  grid-area: workspace;
88
83
  position: sticky;
@@ -143,10 +138,10 @@ body {
143
138
  // NB : on n'utilise PAS padding-bottom sur le body : des resets globaux
144
139
  // chargés plus tard (`html, body { padding: 0 }`) l'écrasent.
145
140
  grid-template-areas:
146
- 'topNav topNav topNav'
147
- 'leftNav appRoots workspace'
148
- 'footerGap footerGap footerGap';
149
- grid-template-columns: min-content 1fr min-content;
141
+ 'topNav topNav'
142
+ 'appRoots workspace'
143
+ 'footerGap footerGap';
144
+ grid-template-columns: 1fr min-content;
150
145
  grid-template-rows: auto minmax(0, 1fr) var(--egen-footer-height, 0px);
151
146
  box-sizing: border-box;
152
147
  height: 100vh;
@@ -164,7 +159,6 @@ body {
164
159
  container-type: normal;
165
160
  }
166
161
 
167
- #egen-left-nav-container,
168
162
  #egen-workspaces-container,
169
163
  #egen-top-nav-app-container,
170
164
  #egen-footer-app-container {
@@ -135,12 +135,6 @@
135
135
  // est défini UNIQUEMENT dans _general.scss (zone de scroll du shell). Ne pas le
136
136
  // redéfinir ici : ce fichier est chargé après et écraserait le z-index.
137
137
 
138
- #egen-left-nav-container .cds--side-nav {
139
- height: calc(100dvh - var(--egen-navbar-height) - var(--egen-footer-height, 0px));
140
- top: var(--egen-navbar-height);
141
- position: sticky;
142
- }
143
-
144
138
  // Panneau workspace
145
139
  #egen-workspaces-container {
146
140
  backdrop-filter: var(--panel-lg-backdrop-filter);
@@ -19,6 +19,9 @@ interface LeftNavMenuProps extends SideNavProps {
19
19
  * Use of this component by anything other than <SideMenuPanel> (where isChildOfHeader == false)
20
20
  * is deprecated; it simply renders nothing.
21
21
  */
22
+ /**
23
+ * @deprecated Il n'existe plus de barre latérale globale : la navigation de niveau 2 est portée par la TopBar (slot `topbar-level2-nav`, type `NavEntryMeta`). Une app qui a besoin d'une navigation interne affiche sa propre barre latérale.
24
+ */
22
25
  export declare const LeftNavMenu: React.ForwardRefExoticComponent<LeftNavMenuProps & React.RefAttributes<HTMLElement>>;
23
26
  export {};
24
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/left-nav/index.tsx"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAW3D;;GAEG;AACH,UAAU,gBAAiB,SAAQ,YAAY;IAC7C;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,sFA8BtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/left-nav/index.tsx"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAW3D;;GAEG;AACH,UAAU,gBAAiB,SAAQ,YAAY;IAC7C;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;GAMG;AACH;;GAEG;AACH,eAAO,MAAM,WAAW,sFA8BtB,CAAC"}
@@ -10,6 +10,8 @@ import styles from "./left-nav.module.scss";
10
10
  *
11
11
  * Use of this component by anything other than <SideMenuPanel> (where isChildOfHeader == false)
12
12
  * is deprecated; it simply renders nothing.
13
+ */ /**
14
+ * @deprecated Il n'existe plus de barre latérale globale : la navigation de niveau 2 est portée par la TopBar (slot `topbar-level2-nav`, type `NavEntryMeta`). Une app qui a besoin d'une navigation interne affiche sa propre barre latérale.
13
15
  */ export const LeftNavMenu = /*#__PURE__*/ React.forwardRef((props, ref)=>{
14
16
  const { slotName, basePath, componentContext, state } = useLeftNavStore();
15
17
  const currentPath = window.location ?? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@egen-civitas/esm-styleguide",
3
- "version": "1.6.1",
3
+ "version": "1.8.0",
4
4
  "license": "MPL-2.0",
5
5
  "description": "The styleguide for Egen SPA",
6
6
  "main": "dist/internal.js",
@@ -97,10 +97,10 @@
97
97
  "@egen-civitas/esm-config": "^1.0.0",
98
98
  "@egen-civitas/esm-data-api": "^1.0.2",
99
99
  "@egen-civitas/esm-error-handling": "^1.0.0",
100
- "@egen-civitas/esm-extensions": "^1.0.2",
100
+ "@egen-civitas/esm-extensions": "^1.1.1",
101
101
  "@egen-civitas/esm-globals": "^1.0.0",
102
102
  "@egen-civitas/esm-navigation": "^1.0.2",
103
- "@egen-civitas/esm-react-utils": "^1.0.3",
103
+ "@egen-civitas/esm-react-utils": "^1.0.5",
104
104
  "@egen-civitas/esm-routes": "^1.0.0",
105
105
  "@egen-civitas/esm-state": "^1.0.0",
106
106
  "@egen-civitas/esm-translations": "^1.0.0",
@@ -120,10 +120,10 @@
120
120
  "@egen-civitas/esm-data-api": "^1.0.2",
121
121
  "@egen-civitas/esm-error-handling": "^1.0.0",
122
122
  "@egen-civitas/esm-expression-evaluator": "^1.0.0",
123
- "@egen-civitas/esm-extensions": "^1.0.2",
123
+ "@egen-civitas/esm-extensions": "^1.1.1",
124
124
  "@egen-civitas/esm-globals": "^1.0.0",
125
125
  "@egen-civitas/esm-navigation": "^1.0.2",
126
- "@egen-civitas/esm-react-utils": "^1.0.3",
126
+ "@egen-civitas/esm-react-utils": "^1.0.5",
127
127
  "@egen-civitas/esm-routes": "^1.0.0",
128
128
  "@egen-civitas/esm-state": "^1.0.0",
129
129
  "@egen-civitas/esm-translations": "^1.0.0",