@egen-civitas/esm-styleguide 3.2.0 → 4.0.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 +47 -0
- package/dist/assistant/spline-scene.component.d.ts.map +1 -1
- package/dist/assistant/spline-scene.component.js +15 -1
- package/dist/cards/card-header.stories.js +2 -2
- package/dist/datepicker/datepicker.stories.js +1 -1
- package/dist/empty-card/empty-card.stories.js +2 -2
- package/dist/filters/filter-bar.component.js +1 -1
- package/dist/icons/icon-registration.d.ts.map +1 -1
- package/dist/icons/icon-registration.js +0 -8
- package/dist/icons/icons.d.ts +4 -20
- package/dist/icons/icons.d.ts.map +1 -1
- package/dist/icons/icons.js +4 -42
- package/dist/internal.d.ts +0 -1
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +0 -1
- package/dist/page-header/page-header.stories.js +3 -3
- package/dist/pictograms/pictogram-registration.d.ts.map +1 -1
- package/dist/pictograms/pictogram-registration.js +2 -10
- package/dist/pictograms/pictograms.d.ts +1 -10
- package/dist/pictograms/pictograms.d.ts.map +1 -1
- package/dist/pictograms/pictograms.js +8 -44
- package/dist/pictograms/svgs/home.svg +1 -0
- package/dist/public.d.ts +0 -1
- package/dist/public.d.ts.map +1 -1
- package/dist/public.js +0 -1
- package/dist/workbench/section-nav-panel.component.d.ts +1 -1
- package/dist/workbench/section-nav-panel.component.d.ts.map +1 -1
- package/dist/workbench/section-nav-panel.component.js +18 -3
- package/mock-jest.tsx +0 -39
- package/mock.tsx +0 -39
- package/package.json +15 -15
- package/dist/icons/svgs/gender-female.svg +0 -1
- package/dist/icons/svgs/gender-male.svg +0 -1
- package/dist/icons/svgs/gender-other.svg +0 -1
- package/dist/icons/svgs/gender-unknown.svg +0 -1
- package/dist/location-picker/index.d.ts +0 -2
- package/dist/location-picker/index.d.ts.map +0 -1
- package/dist/location-picker/index.js +0 -1
- package/dist/location-picker/location-picker.component.d.ts +0 -11
- package/dist/location-picker/location-picker.component.d.ts.map +0 -1
- package/dist/location-picker/location-picker.component.js +0 -114
- package/dist/location-picker/location-picker.module.scss +0 -71
- package/dist/location-picker/location-picker.resource.d.ts +0 -53
- package/dist/location-picker/location-picker.resource.d.ts.map +0 -1
- package/dist/location-picker/location-picker.resource.js +0 -98
- package/dist/pictograms/svgs/appointments.svg +0 -1
- package/dist/pictograms/svgs/assessment-1.svg +0 -1
- package/dist/pictograms/svgs/assessment-2.svg +0 -1
- package/dist/pictograms/svgs/facility.svg +0 -1
- package/dist/pictograms/svgs/registration.svg +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
# @egen-civitas/esm-styleguide
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 5958a56: Framework neutre : suppression des derniers résidus hospitaliers (FHIR, patients, établissement de santé).
|
|
8
|
+
|
|
9
|
+
Retirés :
|
|
10
|
+
|
|
11
|
+
- `esm-api` : `fhirBaseUrl` et le traitement spécifique des URL FHIR (`_summary=data`) dans `egenFetch`.
|
|
12
|
+
- `esm-data-api` : type `FHIRLocationResource`.
|
|
13
|
+
- `esm-styleguide` : composant `LocationPicker` (basé sur l'API FHIR `Location` et le tag « Login Location ») ; pictogrammes médicaux `AppointmentsPictogram`, `AppointmentsAltPictogram`, `Assessment1Pictogram`, `Assessment2Pictogram`, `FacilityPictogram`, `RegistrationPictogram` (identifiants `egen-pict-appointments`, `-assessment-1`, `-assessment-2`, `-facility`, `-registration`) ; icônes `GenderFemaleIcon`, `GenderMaleIcon`, `GenderOtherIcon`, `GenderUnknownIcon`.
|
|
14
|
+
- `esm-translations` : clés `errorLoadingLoginLocations`, `searchForLocation` et clés orphelines patient/clinique (`Clinic`, `patientAvatarAlt`, `patientIdentifierSticker`, `patientLists`, `patientPhotoAlt`, `patientPhotoPlaceholder`, `seeMoreLists`) dans toutes les langues.
|
|
15
|
+
|
|
16
|
+
Ajouté : `HomePictogram` est désormais un pictogramme de maison neutre (`egen-pict-home`) au lieu d'un alias du bâtiment d'hôpital.
|
|
17
|
+
|
|
18
|
+
Vocabulaire neutre dans la documentation, les exemples, les stories et les tests (patient, médicaments, rendez-vous, pharmacie remplacés).
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 478e80c: Cible native : démarrage compatible avec la CSP `script-src 'self'`.
|
|
23
|
+
|
|
24
|
+
- `esm-app-shell` : en natif, le thème anti-FOUC, les ponts `window.egen*` et `initializeSpa` sont émis comme fichiers (`bootstrap-head.<hash>.js`, `bootstrap.<hash>.js`) ; les `onclick` du gabarit d'erreur deviennent `data-egen-action` ; la `<meta>` CSP issue de la cible est posée. Le HTML Web est inchangé (octet pour octet). Les sources `tools/targets.js` et `tools/bootstrap.js` sont publiées pour `egen build`.
|
|
25
|
+
- `esm-styleguide` : `SplineScene` (runtime 3D, qui génère du code et compile du WebAssembly) ne charge rien en natif et rend un conteneur vide ; `preloadSplineScene` ne télécharge plus rien en natif. Web inchangé.
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [d1d2d7d]
|
|
28
|
+
- Updated dependencies [669cbd6]
|
|
29
|
+
- Updated dependencies [b3d9419]
|
|
30
|
+
- Updated dependencies [5958a56]
|
|
31
|
+
- @egen-civitas/esm-globals@2.1.0
|
|
32
|
+
- @egen-civitas/esm-routes@1.2.0
|
|
33
|
+
- @egen-civitas/esm-api@3.0.0
|
|
34
|
+
- @egen-civitas/esm-translations@1.0.4
|
|
35
|
+
- @egen-civitas/esm-data-api@3.0.0
|
|
36
|
+
- @egen-civitas/esm-react-utils@3.0.1
|
|
37
|
+
- @egen-civitas/esm-extensions@2.4.1
|
|
38
|
+
|
|
39
|
+
## 3.3.0
|
|
40
|
+
|
|
41
|
+
### Minor Changes
|
|
42
|
+
|
|
43
|
+
- 3d304d5: Slot de navigation de la TopBar sans numéro de niveau : nouvelle constante `TOPBAR_NAV_SLOT` (`topbar-nav-slot`) et `TOPBAR_NAV_SLOTS` (tous les noms à lire, officiel d'abord). `TOPBAR_LEVEL2_NAV_SLOT` (`topbar-level2-nav`) est conservée, marquée `@deprecated`, et reste honorée : `SectionNavPanel` lit les deux slots (sans doublon). Les apps migrent leur `routes.json` vers le nouveau nom quand elles veulent ; aucune rupture.
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- Updated dependencies [3d304d5]
|
|
48
|
+
- @egen-civitas/esm-extensions@2.4.0
|
|
49
|
+
|
|
3
50
|
## 3.2.0
|
|
4
51
|
|
|
5
52
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spline-scene.component.d.ts","sourceRoot":"","sources":["../../src/assistant/spline-scene.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"spline-scene.component.d.ts","sourceRoot":"","sources":["../../src/assistant/spline-scene.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmC,MAAM,OAAO,CAAC;AAOxD,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC;AAID;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAUpD;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,SAA2B,EAAE,MAAM,EAAE,EAAE,gBAAgB,qBAsC3F;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import React, { Suspense, lazy, useState } from "react";
|
|
4
|
+
import { isNativeTarget } from "@egen-civitas/esm-globals";
|
|
4
5
|
// Spline (runtime WebGL ~ plusieurs centaines de Ko) est chargé à la demande : importer le
|
|
5
6
|
// styleguide ne doit JAMAIS déclencher de téléchargement ni d'effet de bord réseau.
|
|
6
7
|
const Spline = /*#__PURE__*/ lazy(()=>import("@splinetool/react-spline"));
|
|
@@ -9,7 +10,8 @@ const preloaded = new Set();
|
|
|
9
10
|
* Préchauffe le cache navigateur avec une scène Spline (~1,3 Mo). À appeler explicitement
|
|
10
11
|
* (ouverture de l'assistant, idle…) — jamais au chargement du module.
|
|
11
12
|
*/ export function preloadSplineScene(url) {
|
|
12
|
-
|
|
13
|
+
// Natif : la scène n'est jamais affichée (voir `SplineScene`), donc jamais téléchargée.
|
|
14
|
+
if (typeof document === 'undefined' || isNativeTarget() || preloaded.has(url)) return;
|
|
13
15
|
preloaded.add(url);
|
|
14
16
|
const link = document.createElement('link');
|
|
15
17
|
link.rel = 'preload';
|
|
@@ -20,6 +22,18 @@ const preloaded = new Set();
|
|
|
20
22
|
}
|
|
21
23
|
export function SplineScene({ scene, className = 'w-full h-full', onLoad }) {
|
|
22
24
|
const [isLoaded, setIsLoaded] = useState(false);
|
|
25
|
+
// Cible NATIVE : la CSP (`script-src 'self'`, sans `unsafe-eval` ni `wasm-unsafe-eval`) interdit le runtime Spline,
|
|
26
|
+
// qui génère du code à l'exécution (`Function(...)`) et compile du WebAssembly ; la scène est de plus une ressource
|
|
27
|
+
// distante hors `connect-src`. On n'affaiblit pas la CSP pour un décor : en natif le composant ne charge RIEN et
|
|
28
|
+
// rend un conteneur vide de même taille. Web inchangé.
|
|
29
|
+
if (isNativeTarget()) {
|
|
30
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
31
|
+
className: `relative ${className} overflow-hidden`,
|
|
32
|
+
"data-egen-3d": "unavailable",
|
|
33
|
+
"data-testid": "spline-unavailable",
|
|
34
|
+
"aria-hidden": "true"
|
|
35
|
+
});
|
|
36
|
+
}
|
|
23
37
|
return /*#__PURE__*/ _jsxs("div", {
|
|
24
38
|
className: `relative ${className} overflow-hidden`,
|
|
25
39
|
children: [
|
|
@@ -18,14 +18,14 @@ export const Default = {
|
|
|
18
18
|
};
|
|
19
19
|
export const WithAction = {
|
|
20
20
|
args: {
|
|
21
|
-
title: '
|
|
21
|
+
title: 'Documents'
|
|
22
22
|
},
|
|
23
23
|
render: (args)=>/*#__PURE__*/ _jsx(CardHeader, {
|
|
24
24
|
...args,
|
|
25
25
|
children: /*#__PURE__*/ _jsx(Button, {
|
|
26
26
|
kind: "ghost",
|
|
27
27
|
renderIcon: AddIcon,
|
|
28
|
-
iconDescription: "Add
|
|
28
|
+
iconDescription: "Add document",
|
|
29
29
|
children: "Add"
|
|
30
30
|
})
|
|
31
31
|
})
|
|
@@ -16,8 +16,8 @@ export const Default = {
|
|
|
16
16
|
};
|
|
17
17
|
export const WithLaunchForm = {
|
|
18
18
|
args: {
|
|
19
|
-
headerTitle: '
|
|
20
|
-
displayText: '
|
|
19
|
+
headerTitle: 'Documents',
|
|
20
|
+
displayText: 'documents',
|
|
21
21
|
launchForm: ()=>window.alert('Launch form clicked')
|
|
22
22
|
}
|
|
23
23
|
};
|
|
@@ -1646,7 +1646,7 @@ const DEMO_ARTICLES = [
|
|
|
1646
1646
|
},
|
|
1647
1647
|
{
|
|
1648
1648
|
id: "7",
|
|
1649
|
-
title: "Nouvelle campagne de
|
|
1649
|
+
title: "Nouvelle campagne de sensibilisation lancée",
|
|
1650
1650
|
status: "published",
|
|
1651
1651
|
category: "politique",
|
|
1652
1652
|
subcategory: "national",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-registration.d.ts","sourceRoot":"","sources":["../../src/icons/icon-registration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icon-registration.d.ts","sourceRoot":"","sources":["../../src/icons/icon-registration.ts"],"names":[],"mappings":"AA4EA,wBAAgB,UAAU,SAyEzB"}
|
|
@@ -27,10 +27,6 @@ import download from "./svgs/download.svg";
|
|
|
27
27
|
import edit from "./svgs/edit.svg";
|
|
28
28
|
import eventSchedule from "./svgs/event-schedule.svg";
|
|
29
29
|
import events from "./svgs/events.svg";
|
|
30
|
-
import genderFemale from "./svgs/gender-female.svg";
|
|
31
|
-
import genderMale from "./svgs/gender-male.svg";
|
|
32
|
-
import genderOther from "./svgs/gender-other.svg";
|
|
33
|
-
import genderUnknown from "./svgs/gender-unknown.svg";
|
|
34
30
|
import group from "./svgs/group.svg";
|
|
35
31
|
import groupAccess from "./svgs/group-access.svg";
|
|
36
32
|
import information from "./svgs/information.svg";
|
|
@@ -104,10 +100,6 @@ export function setupIcons() {
|
|
|
104
100
|
addIconSvg('egen-icon-edit', edit);
|
|
105
101
|
addIconSvg('egen-icon-event-schedule', eventSchedule);
|
|
106
102
|
addIconSvg('egen-icon-events', events);
|
|
107
|
-
addIconSvg('egen-icon-gender-female', genderFemale);
|
|
108
|
-
addIconSvg('egen-icon-gender-male', genderMale);
|
|
109
|
-
addIconSvg('egen-icon-gender-other', genderOther);
|
|
110
|
-
addIconSvg('egen-icon-gender-unknown', genderUnknown);
|
|
111
103
|
addIconSvg('egen-icon-group', group);
|
|
112
104
|
addIconSvg('egen-icon-group-access', groupAccess);
|
|
113
105
|
addIconSvg('egen-icon-information', information);
|
package/dist/icons/icons.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { type Argument } from 'classnames';
|
|
4
4
|
/** Array of all available Egen icon IDs that can be used with the Icon component. */
|
|
5
|
-
export declare const iconIds: readonly ["egen-icon-activity", "egen-icon-add", "egen-icon-arrow-down", "egen-icon-arrow-left", "egen-icon-arrow-right", "egen-icon-arrow-up", "egen-icon-calendar-heat-map", "egen-icon-calendar", "egen-icon-caret-down", "egen-icon-caret-left", "egen-icon-caret-right", "egen-icon-caret-up", "egen-icon-chart-average", "egen-icon-chart-line", "egen-icon-checkmark-filled", "egen-icon-checkmark-outline", "egen-icon-chevron-down", "egen-icon-chevron-left", "egen-icon-chevron-right", "egen-icon-chevron-up", "egen-icon-close", "egen-icon-close-filled", "egen-icon-close-outline", "egen-icon-document", "egen-icon-document-attachment", "egen-icon-download", "egen-icon-edit", "egen-icon-event-schedule", "egen-icon-events", "egen-icon-
|
|
5
|
+
export declare const iconIds: readonly ["egen-icon-activity", "egen-icon-add", "egen-icon-arrow-down", "egen-icon-arrow-left", "egen-icon-arrow-right", "egen-icon-arrow-up", "egen-icon-calendar-heat-map", "egen-icon-calendar", "egen-icon-caret-down", "egen-icon-caret-left", "egen-icon-caret-right", "egen-icon-caret-up", "egen-icon-chart-average", "egen-icon-chart-line", "egen-icon-checkmark-filled", "egen-icon-checkmark-outline", "egen-icon-chevron-down", "egen-icon-chevron-left", "egen-icon-chevron-right", "egen-icon-chevron-up", "egen-icon-close", "egen-icon-close-filled", "egen-icon-close-outline", "egen-icon-document", "egen-icon-document-attachment", "egen-icon-download", "egen-icon-edit", "egen-icon-event-schedule", "egen-icon-events", "egen-icon-group", "egen-icon-group-access", "egen-icon-information", "egen-icon-information-filled", "egen-icon-information-square", "egen-icon-inventory-management", "egen-icon-list-checked", "egen-icon-location", "egen-icon-maximize", "egen-icon-message-queue", "egen-icon-money", "egen-icon-movement", "egen-icon-overflow-menu--horizontal", "egen-icon-overflow-menu--vertical", "egen-icon-password", "egen-icon-pedestrian-family", "egen-icon-pen", "egen-icon-printer", "egen-icon-programs", "egen-icon-renew", "egen-icon-report", "egen-icon-reset", "egen-icon-save", "egen-icon-search", "egen-icon-settings", "egen-icon-shopping-cart", "egen-icon-shopping-cart--arrow-down", "egen-icon-sticky-note-add", "egen-icon-switcher", "egen-icon-table-of-contents", "egen-icon-table", "egen-icon-time", "egen-icon-tools", "egen-icon-translate", "egen-icon-trash-can", "egen-icon-tree-view--alt", "egen-icon-user-avatar", "egen-icon-user-follow", "egen-icon-user", "egen-icon-view-off", "egen-icon-view", "egen-icon-warning"];
|
|
6
6
|
export type IconId = (typeof iconIds)[number];
|
|
7
7
|
export type IconProps = {
|
|
8
8
|
className?: Argument;
|
|
@@ -102,22 +102,6 @@ export declare const EventScheduleIcon: React.MemoExoticComponent<React.ForwardR
|
|
|
102
102
|
/**
|
|
103
103
|
*/
|
|
104
104
|
export declare const EventsIcon: React.MemoExoticComponent<React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>>;
|
|
105
|
-
/**
|
|
106
|
-
*/
|
|
107
|
-
export declare const GenderFemaleIcon: React.MemoExoticComponent<React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>>;
|
|
108
|
-
/**
|
|
109
|
-
*/
|
|
110
|
-
export declare const GenderMaleIcon: React.MemoExoticComponent<React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>>;
|
|
111
|
-
/**
|
|
112
|
-
*/
|
|
113
|
-
export declare const GenderOtherIcon: React.MemoExoticComponent<React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>>;
|
|
114
|
-
/**
|
|
115
|
-
*/
|
|
116
|
-
export declare const GenderUnknownIcon: React.MemoExoticComponent<React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>>;
|
|
117
|
-
/**
|
|
118
|
-
*/
|
|
119
|
-
/**
|
|
120
|
-
*/
|
|
121
105
|
export declare const GroupIcon: React.MemoExoticComponent<React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>>;
|
|
122
106
|
/**
|
|
123
107
|
*/
|
|
@@ -212,11 +196,11 @@ export declare const SettingsIcon: React.MemoExoticComponent<React.ForwardRefExo
|
|
|
212
196
|
*/
|
|
213
197
|
export declare const SwitcherIcon: React.MemoExoticComponent<React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>>;
|
|
214
198
|
/**
|
|
215
|
-
*
|
|
199
|
+
* Shopping cart, the UI to gather several items and confirm them in one go
|
|
216
200
|
*/
|
|
217
201
|
export declare const ShoppingCartIcon: React.MemoExoticComponent<React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>>;
|
|
218
202
|
/**
|
|
219
|
-
* Used as a button to add an item to the
|
|
203
|
+
* Used as a button to add an item to the shopping cart from a search
|
|
220
204
|
*/
|
|
221
205
|
export declare const ShoppingCartArrowDownIcon: React.MemoExoticComponent<React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>>;
|
|
222
206
|
/**
|
|
@@ -226,7 +210,7 @@ export declare const StickyNoteAddIcon: React.MemoExoticComponent<React.ForwardR
|
|
|
226
210
|
/**
|
|
227
211
|
*/
|
|
228
212
|
/**
|
|
229
|
-
* Used as a button to add an item to the
|
|
213
|
+
* Used as a button to add an item to the shopping cart from a search
|
|
230
214
|
*/
|
|
231
215
|
export declare const TableOfContentsIcon: React.MemoExoticComponent<React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>>;
|
|
232
216
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/icons/icons.tsx"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,OAAO,KAAmE,MAAM,OAAO,CAAC;AACxF,OAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAIvD,qFAAqF;AACrF,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/icons/icons.tsx"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,OAAO,KAAmE,MAAM,OAAO,CAAC;AACxF,OAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAIvD,qFAAqF;AACrF,eAAO,MAAM,OAAO,+sDAwEV,CAAC;AAEX,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9C,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,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,uBAAuB,4GAA4B,CAAC;AAEjE;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS;UACc,MAAM,GAAG,SAAS;eAAa,KAAK,CAAC,SAAS;oDA8BjF,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI,+GA+BhB,CAAC"}
|
package/dist/icons/icons.js
CHANGED
|
@@ -33,10 +33,6 @@ import style from "./icons.module.scss";
|
|
|
33
33
|
'egen-icon-edit',
|
|
34
34
|
'egen-icon-event-schedule',
|
|
35
35
|
'egen-icon-events',
|
|
36
|
-
'egen-icon-gender-female',
|
|
37
|
-
'egen-icon-gender-male',
|
|
38
|
-
'egen-icon-gender-other',
|
|
39
|
-
'egen-icon-gender-unknown',
|
|
40
36
|
'egen-icon-group',
|
|
41
37
|
'egen-icon-group-access',
|
|
42
38
|
'egen-icon-information',
|
|
@@ -315,41 +311,7 @@ import style from "./icons.module.scss";
|
|
|
315
311
|
iconProps: props
|
|
316
312
|
});
|
|
317
313
|
}));
|
|
318
|
-
|
|
319
|
-
*/ export const GenderFemaleIcon = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function GenderFemaleIcon(props, ref) {
|
|
320
|
-
return /*#__PURE__*/ _jsx(Icon, {
|
|
321
|
-
ref: ref,
|
|
322
|
-
icon: "egen-icon-gender-female",
|
|
323
|
-
iconProps: props
|
|
324
|
-
});
|
|
325
|
-
}));
|
|
326
|
-
/**
|
|
327
|
-
*/ export const GenderMaleIcon = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function GenderMaleIcon(props, ref) {
|
|
328
|
-
return /*#__PURE__*/ _jsx(Icon, {
|
|
329
|
-
ref: ref,
|
|
330
|
-
icon: "egen-icon-gender-male",
|
|
331
|
-
iconProps: props
|
|
332
|
-
});
|
|
333
|
-
}));
|
|
334
|
-
/**
|
|
335
|
-
*/ export const GenderOtherIcon = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function GenderOtherIcon(props, ref) {
|
|
336
|
-
return /*#__PURE__*/ _jsx(Icon, {
|
|
337
|
-
ref: ref,
|
|
338
|
-
icon: "egen-icon-gender-other",
|
|
339
|
-
iconProps: props
|
|
340
|
-
});
|
|
341
|
-
}));
|
|
342
|
-
/**
|
|
343
|
-
*/ export const GenderUnknownIcon = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function GenderUnknownIcon(props, ref) {
|
|
344
|
-
return /*#__PURE__*/ _jsx(Icon, {
|
|
345
|
-
ref: ref,
|
|
346
|
-
icon: "egen-icon-gender-unknown",
|
|
347
|
-
iconProps: props
|
|
348
|
-
});
|
|
349
|
-
}));
|
|
350
|
-
/**
|
|
351
|
-
*/ /**
|
|
352
|
-
*/ export const GroupIcon = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function GroupIcon(props, ref) {
|
|
314
|
+
export const GroupIcon = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function GroupIcon(props, ref) {
|
|
353
315
|
return /*#__PURE__*/ _jsx(Icon, {
|
|
354
316
|
ref: ref,
|
|
355
317
|
icon: "egen-icon-group",
|
|
@@ -566,7 +528,7 @@ export const PasswordIcon = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function
|
|
|
566
528
|
});
|
|
567
529
|
}));
|
|
568
530
|
/**
|
|
569
|
-
*
|
|
531
|
+
* Shopping cart, the UI to gather several items and confirm them in one go
|
|
570
532
|
*/ export const ShoppingCartIcon = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function ShoppingCartIcon(props, ref) {
|
|
571
533
|
return /*#__PURE__*/ _jsx(Icon, {
|
|
572
534
|
ref: ref,
|
|
@@ -575,7 +537,7 @@ export const PasswordIcon = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function
|
|
|
575
537
|
});
|
|
576
538
|
}));
|
|
577
539
|
/**
|
|
578
|
-
* Used as a button to add an item to the
|
|
540
|
+
* Used as a button to add an item to the shopping cart from a search
|
|
579
541
|
*/ export const ShoppingCartArrowDownIcon = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function ShoppingCartArrowDownIcon(props, ref) {
|
|
580
542
|
return /*#__PURE__*/ _jsx(Icon, {
|
|
581
543
|
ref: ref,
|
|
@@ -594,7 +556,7 @@ export const PasswordIcon = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function
|
|
|
594
556
|
}));
|
|
595
557
|
/**
|
|
596
558
|
*/ /**
|
|
597
|
-
* Used as a button to add an item to the
|
|
559
|
+
* Used as a button to add an item to the shopping cart from a search
|
|
598
560
|
*/ export const TableOfContentsIcon = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function TableOfContentsIcon(props, ref) {
|
|
599
561
|
return /*#__PURE__*/ _jsx(Icon, {
|
|
600
562
|
ref: ref,
|
package/dist/internal.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export * from './empty-card/index.js';
|
|
|
9
9
|
export * from './error-state/index.js';
|
|
10
10
|
export * from './fields/index.js';
|
|
11
11
|
export * from './icons/icons.js';
|
|
12
|
-
export * from './location-picker/index.js';
|
|
13
12
|
export * from './modals/index.js';
|
|
14
13
|
export * from './notifications/index.js';
|
|
15
14
|
export * from './notifications/actionable-notification.component.js';
|
package/dist/internal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;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AC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC"}
|
package/dist/internal.js
CHANGED
|
@@ -9,7 +9,6 @@ export * from "./empty-card/index.js";
|
|
|
9
9
|
export * from "./error-state/index.js";
|
|
10
10
|
export * from "./fields/index.js";
|
|
11
11
|
export * from "./icons/icons.js";
|
|
12
|
-
export * from "./location-picker/index.js";
|
|
13
12
|
export * from "./modals/index.js";
|
|
14
13
|
export * from "./notifications/index.js";
|
|
15
14
|
export * from "./notifications/actionable-notification.component.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { PageHeader } from "./page-header.component.js";
|
|
4
|
-
import {
|
|
4
|
+
import { HomePictogram } from "../pictograms/pictograms.js";
|
|
5
5
|
const meta = {
|
|
6
6
|
title: 'Components/PageHeader',
|
|
7
7
|
component: PageHeader,
|
|
@@ -15,7 +15,7 @@ const meta = {
|
|
|
15
15
|
export default meta;
|
|
16
16
|
export const Default = {
|
|
17
17
|
args: {
|
|
18
|
-
title: '
|
|
19
|
-
illustration: /*#__PURE__*/ _jsx(
|
|
18
|
+
title: 'Dashboard',
|
|
19
|
+
illustration: /*#__PURE__*/ _jsx(HomePictogram, {})
|
|
20
20
|
}
|
|
21
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pictogram-registration.d.ts","sourceRoot":"","sources":["../../src/pictograms/pictogram-registration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pictogram-registration.d.ts","sourceRoot":"","sources":["../../src/pictograms/pictogram-registration.ts"],"names":[],"mappings":"AAQA,wBAAgB,eAAe,SAM9B"}
|
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
import { addSvg } from "../svg-utils.js";
|
|
2
|
-
import
|
|
3
|
-
import assessment1 from "./svgs/assessment-1.svg";
|
|
4
|
-
import assessment2 from "./svgs/assessment-2.svg";
|
|
5
|
-
import facility from "./svgs/facility.svg";
|
|
2
|
+
import home from "./svgs/home.svg";
|
|
6
3
|
import stockManagement from "./svgs/inventory.svg";
|
|
7
4
|
import paymentsDesk from "./svgs/payments-desk.svg";
|
|
8
|
-
import registration from "./svgs/registration.svg";
|
|
9
5
|
import serviceQueues from "./svgs/service-queues.svg";
|
|
10
6
|
import transfer from "./svgs/transfer.svg";
|
|
11
7
|
export function setupPictograms() {
|
|
12
|
-
addPictogramSvg('egen-pict-
|
|
13
|
-
addPictogramSvg('egen-pict-assessment-1', assessment1);
|
|
14
|
-
addPictogramSvg('egen-pict-assessment-2', assessment2);
|
|
15
|
-
addPictogramSvg('egen-pict-facility', facility);
|
|
8
|
+
addPictogramSvg('egen-pict-home', home);
|
|
16
9
|
addPictogramSvg('egen-pict-payments-desk', paymentsDesk);
|
|
17
|
-
addPictogramSvg('egen-pict-registration', registration);
|
|
18
10
|
addPictogramSvg('egen-pict-service-queues', serviceQueues);
|
|
19
11
|
addPictogramSvg('egen-pict-stock-management', stockManagement);
|
|
20
12
|
addPictogramSvg('egen-pict-transfer', transfer);
|
|
@@ -2,22 +2,13 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { type Argument } from 'classnames';
|
|
4
4
|
/** Array of all available Egen pictogram IDs that can be used with the Pictogram component. */
|
|
5
|
-
export declare const pictogramIds: readonly ["egen-pict-
|
|
5
|
+
export declare const pictogramIds: readonly ["egen-pict-home", "egen-pict-payments-desk", "egen-pict-service-queues", "egen-pict-stock-management", "egen-pict-transfer"];
|
|
6
6
|
export type PictogramId = (typeof pictogramIds)[number];
|
|
7
7
|
export type PictogramProps = {
|
|
8
8
|
className?: Argument;
|
|
9
9
|
size?: number;
|
|
10
10
|
};
|
|
11
|
-
export declare const AppointmentsPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated use AppointmentsPictogram instead
|
|
14
|
-
*/
|
|
15
|
-
export declare const AppointmentsAltPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
16
|
-
export declare const Assessment1Pictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
17
|
-
export declare const Assessment2Pictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
18
|
-
export declare const FacilityPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
19
11
|
export declare const PaymentsDeskPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
20
|
-
export declare const RegistrationPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
21
12
|
export declare const ServiceQueuesPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
22
13
|
export declare const StockManagementPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
23
14
|
export declare const TransferPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pictograms.d.ts","sourceRoot":"","sources":["../../src/pictograms/pictograms.tsx"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,KAA8C,MAAM,OAAO,CAAC;AACnE,OAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAIvD,+FAA+F;AAC/F,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"pictograms.d.ts","sourceRoot":"","sources":["../../src/pictograms/pictograms.tsx"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,KAA8C,MAAM,OAAO,CAAC;AACnE,OAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAIvD,+FAA+F;AAC/F,eAAO,MAAM,YAAY,wIAMf,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,qBAAqB,iHAIjC,CAAC;AAEF,eAAO,MAAM,sBAAsB,iHAIlC,CAAC;AAEF,eAAO,MAAM,wBAAwB,iHAIpC,CAAC;AAEF,eAAO,MAAM,iBAAiB,iHAI7B,CAAC;AAKF,eAAO,MAAM,aAAa,iHAIzB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;eACc,MAAM;eAAa,KAAK,CAAC,SAAS;yDA8B1E,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,+BAA+B;IAC/B,SAAS,EAAE,WAAW,CAAC;IACvB,2CAA2C;IAC3C,cAAc,EAAE,cAAc,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,oHAcrB,CAAC"}
|
|
@@ -4,47 +4,12 @@ import classNames from "classnames";
|
|
|
4
4
|
import { RenderIfValueIsTruthy } from "@egen-civitas/esm-react-utils";
|
|
5
5
|
import style from "./pictograms.module.scss";
|
|
6
6
|
/** Array of all available Egen pictogram IDs that can be used with the Pictogram component. */ export const pictogramIds = [
|
|
7
|
-
'egen-pict-
|
|
8
|
-
'egen-pict-assessment-1',
|
|
9
|
-
'egen-pict-assessment-2',
|
|
10
|
-
'egen-pict-facility',
|
|
7
|
+
'egen-pict-home',
|
|
11
8
|
'egen-pict-payments-desk',
|
|
12
|
-
'egen-pict-registration',
|
|
13
9
|
'egen-pict-service-queues',
|
|
14
10
|
'egen-pict-stock-management',
|
|
15
11
|
'egen-pict-transfer'
|
|
16
12
|
];
|
|
17
|
-
export const AppointmentsPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function AppointmentsPictogram(props, ref) {
|
|
18
|
-
return /*#__PURE__*/ _jsx(Pictogram, {
|
|
19
|
-
ref: ref,
|
|
20
|
-
pictogram: "egen-pict-appointments",
|
|
21
|
-
pictogramProps: props
|
|
22
|
-
});
|
|
23
|
-
}));
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated use AppointmentsPictogram instead
|
|
26
|
-
*/ export const AppointmentsAltPictogram = AppointmentsPictogram;
|
|
27
|
-
export const Assessment1Pictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function Assessment1Pictogram(props, ref) {
|
|
28
|
-
return /*#__PURE__*/ _jsx(Pictogram, {
|
|
29
|
-
ref: ref,
|
|
30
|
-
pictogram: "egen-pict-assessment-1",
|
|
31
|
-
pictogramProps: props
|
|
32
|
-
});
|
|
33
|
-
}));
|
|
34
|
-
export const Assessment2Pictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function Assessment2Pictogram(props, ref) {
|
|
35
|
-
return /*#__PURE__*/ _jsx(Pictogram, {
|
|
36
|
-
ref: ref,
|
|
37
|
-
pictogram: "egen-pict-assessment-2",
|
|
38
|
-
pictogramProps: props
|
|
39
|
-
});
|
|
40
|
-
}));
|
|
41
|
-
export const FacilityPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function FacilityPictogram(props, ref) {
|
|
42
|
-
return /*#__PURE__*/ _jsx(Pictogram, {
|
|
43
|
-
ref: ref,
|
|
44
|
-
pictogram: "egen-pict-facility",
|
|
45
|
-
pictogramProps: props
|
|
46
|
-
});
|
|
47
|
-
}));
|
|
48
13
|
export const PaymentsDeskPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function PaymentsDeskPictogram(props, ref) {
|
|
49
14
|
return /*#__PURE__*/ _jsx(Pictogram, {
|
|
50
15
|
ref: ref,
|
|
@@ -52,13 +17,6 @@ export const PaymentsDeskPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef
|
|
|
52
17
|
pictogramProps: props
|
|
53
18
|
});
|
|
54
19
|
}));
|
|
55
|
-
export const RegistrationPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function RegistrationPictogram(props, ref) {
|
|
56
|
-
return /*#__PURE__*/ _jsx(Pictogram, {
|
|
57
|
-
ref: ref,
|
|
58
|
-
pictogram: "egen-pict-registration",
|
|
59
|
-
pictogramProps: props
|
|
60
|
-
});
|
|
61
|
-
}));
|
|
62
20
|
export const ServiceQueuesPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function ServiceQueuesPictogram(props, ref) {
|
|
63
21
|
return /*#__PURE__*/ _jsx(Pictogram, {
|
|
64
22
|
ref: ref,
|
|
@@ -82,7 +40,13 @@ export const TransferPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(fun
|
|
|
82
40
|
}));
|
|
83
41
|
// Pictogram aliases that are a little more aligned to specific use-cases
|
|
84
42
|
// should all resolve to a defined React icon
|
|
85
|
-
export const HomePictogram =
|
|
43
|
+
export const HomePictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function HomePictogram(props, ref) {
|
|
44
|
+
return /*#__PURE__*/ _jsx(Pictogram, {
|
|
45
|
+
ref: ref,
|
|
46
|
+
pictogram: "egen-pict-home",
|
|
47
|
+
pictogramProps: props
|
|
48
|
+
});
|
|
49
|
+
}));
|
|
86
50
|
/**
|
|
87
51
|
* This is a utility component that takes an `pictogram` and render it if the sprite for the pictogram
|
|
88
52
|
* is available. The goal is to make it easier to conditionally render configuration-specified pictograms.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg"><path fill="#CEE6E5" d="M40 16 16 36v28h48V36z"/><path fill="#7BBCB9" d="M35 64V48.5c0-.83.67-1.5 1.5-1.5h7c.83 0 1.5.67 1.5 1.5V64zM22 42h8v8h-8zM50 42h8v8h-8z"/></svg>
|
package/dist/public.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export * from './empty-card/index.js';
|
|
|
8
8
|
export * from './error-state/index.js';
|
|
9
9
|
export * from './fields/index.js';
|
|
10
10
|
export * from './icons/icons.js';
|
|
11
|
-
export * from './location-picker/index.js';
|
|
12
11
|
export * from './page-background/index.js';
|
|
13
12
|
export { showModal } from './modals/index.js';
|
|
14
13
|
export { showNotification, showActionableNotification } from './notifications/index.js';
|
package/dist/public.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../src/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../src/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,SAAS,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kB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/public.js
CHANGED
|
@@ -7,7 +7,6 @@ export * from "./empty-card/index.js";
|
|
|
7
7
|
export * from "./error-state/index.js";
|
|
8
8
|
export * from "./fields/index.js";
|
|
9
9
|
export * from "./icons/icons.js";
|
|
10
|
-
export * from "./location-picker/index.js";
|
|
11
10
|
export * from "./page-background/index.js";
|
|
12
11
|
export { showModal } from "./modals/index.js";
|
|
13
12
|
export { showNotification, showActionableNotification } from "./notifications/index.js";
|
|
@@ -5,7 +5,7 @@ export interface SectionNavPanelProps {
|
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* Contenu d'une option globale du rail gauche : liste les sous-options (entrées `NavEntryMeta`
|
|
8
|
-
* de la `section`, déclarées par l'app sur le slot `topbar-level2-nav`), regroupées par `group`.
|
|
8
|
+
* de la `section`, déclarées par l'app sur le slot `topbar-nav-slot`, ou sur son ancien nom `topbar-level2-nav`), regroupées par `group`.
|
|
9
9
|
* Un clic navigue vers la route de la sous-option : la zone centrale se met à jour, la zone
|
|
10
10
|
* gauche reste ouverte.
|
|
11
11
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-nav-panel.component.d.ts","sourceRoot":"","sources":["../../src/workbench/section-nav-panel.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"section-nav-panel.component.d.ts","sourceRoot":"","sources":["../../src/workbench/section-nav-panel.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AA0B5D,MAAM,WAAW,oBAAoB;IACnC,+EAA+E;IAC/E,OAAO,EAAE,MAAM,CAAC;CACjB;AA6BD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE,oBAAoB,4BAmFhE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React, { useEffect, useMemo, useState } from "react";
|
|
3
|
-
import { isNavEntryMeta, TOPBAR_LEVEL2_NAV_SLOT } from "@egen-civitas/esm-extensions";
|
|
3
|
+
import { isNavEntryMeta, TOPBAR_NAV_SLOT, TOPBAR_LEVEL2_NAV_SLOT } from "@egen-civitas/esm-extensions";
|
|
4
4
|
import { navigate } from "@egen-civitas/esm-navigation";
|
|
5
5
|
import { useAssignedExtensions } from "@egen-civitas/esm-react-utils";
|
|
6
6
|
import { translateFrom } from "@egen-civitas/esm-translations";
|
|
@@ -29,14 +29,29 @@ function useCurrentRoute() {
|
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* Contenu d'une option globale du rail gauche : liste les sous-options (entrées `NavEntryMeta`
|
|
32
|
-
* de la `section`, déclarées par l'app sur le slot `topbar-level2-nav`), regroupées par `group`.
|
|
32
|
+
* de la `section`, déclarées par l'app sur le slot `topbar-nav-slot`, ou sur son ancien nom `topbar-level2-nav`), regroupées par `group`.
|
|
33
33
|
* Un clic navigue vers la route de la sous-option : la zone centrale se met à jour, la zone
|
|
34
34
|
* gauche reste ouverte.
|
|
35
35
|
*
|
|
36
36
|
* À utiliser comme composant d'une extension du slot `shell-rail-left-slot` déclarée avec
|
|
37
37
|
* `meta.global: true` (voir `ToolWindowMeta`).
|
|
38
38
|
*/ export function SectionNavPanel({ section }) {
|
|
39
|
-
|
|
39
|
+
// Les deux noms de slot sont lus (le second est l'ancien nom, encore utilisé par des apps déjà déployées).
|
|
40
|
+
const current = useAssignedExtensions(TOPBAR_NAV_SLOT);
|
|
41
|
+
const legacy = useAssignedExtensions(TOPBAR_LEVEL2_NAV_SLOT);
|
|
42
|
+
const assigned = useMemo(()=>{
|
|
43
|
+
const seen = new Set();
|
|
44
|
+
return [
|
|
45
|
+
...current,
|
|
46
|
+
...legacy
|
|
47
|
+
].filter((e)=>{
|
|
48
|
+
const key = `${e.moduleName}::${e.name}`;
|
|
49
|
+
return seen.has(key) ? false : (seen.add(key), true);
|
|
50
|
+
});
|
|
51
|
+
}, [
|
|
52
|
+
current,
|
|
53
|
+
legacy
|
|
54
|
+
]);
|
|
40
55
|
const route = useCurrentRoute();
|
|
41
56
|
const [selected, setSelected] = useState(null);
|
|
42
57
|
const groups = useMemo(()=>{
|