@egen-civitas/esm-framework 2.1.0 → 3.1.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 +53 -0
- package/mock-jest.tsx +2 -15
- package/mock.tsx +2 -15
- package/package.json +18 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,58 @@
|
|
|
1
1
|
# @egen-civitas/esm-framework
|
|
2
2
|
|
|
3
|
+
## 3.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 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.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [3d304d5]
|
|
12
|
+
- @egen-civitas/esm-extensions@2.4.0
|
|
13
|
+
- @egen-civitas/esm-styleguide@3.3.0
|
|
14
|
+
|
|
15
|
+
## 3.0.0
|
|
16
|
+
|
|
17
|
+
### Major Changes
|
|
18
|
+
|
|
19
|
+
- 159db44: Framework généraliste : suppression de la couche clinique héritée d'un autre projet (patients, FHIR, santé).
|
|
20
|
+
|
|
21
|
+
Retirés :
|
|
22
|
+
- `esm-styleguide` : `EntityBanner*`, `EntityPhoto`/`useEntityPhoto`, `NumericDataPoint`, 17 pictogrammes de départements hospitaliers (labo, pharmacie, cardiologie, radio, triage, patients…) et 15 icônes cliniques (seringue, lit d'hôpital, ordres médicaux…), clés de config `entityPhotoConceptUuid`, `contactAttributeTypes`, `excludeEntityIdentifierCodeTypes`.
|
|
23
|
+
- `esm-react-utils` : `useEntity`, `usePrimaryIdentifierResource`, `useFhirFetchAll`, `useFhirInfinite`, `useFhirPagination` (utiliser `useEgenFetchAll`, `useEgenInfinite`, `useEgenPagination`).
|
|
24
|
+
- `esm-data-api` : `getCurrentEntity`/`CurrentEntity`, types FHIR (`FHIRResource`, `FHIRCode`, `fhir.*`), `Task`, `CatalogItem` ; `DataPoint` et `Classification` utilisent `ReferenceTerm` au lieu de `Concept`.
|
|
25
|
+
- `esm-api` : types `Concept*` remplacés par `ReferenceTerm` ; champs cliniques de `Person` (décès).
|
|
26
|
+
- `esm-config` : types `ConceptUuid`, `PersonAttributeTypeUuid`, `EntityIdentifierTypeUuid`.
|
|
27
|
+
- `esm-utils` : `getEntityName`, `formatEntityName`, `selectPreferredName` (noms FHIR) ; `esm-globals` : `NameUse`.
|
|
28
|
+
- Dépendance `@types/fhir` retirée.
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- Updated dependencies [75af6f5]
|
|
33
|
+
- Updated dependencies [cf941e7]
|
|
34
|
+
- Updated dependencies [fc70c70]
|
|
35
|
+
- Updated dependencies [4c84714]
|
|
36
|
+
- Updated dependencies [8a39e13]
|
|
37
|
+
- Updated dependencies [159db44]
|
|
38
|
+
- @egen-civitas/esm-styleguide@3.0.0
|
|
39
|
+
- @egen-civitas/esm-extensions@2.1.0
|
|
40
|
+
- @egen-civitas/esm-routes@1.1.0
|
|
41
|
+
- @egen-civitas/esm-api@2.0.0
|
|
42
|
+
- @egen-civitas/esm-data-api@2.0.0
|
|
43
|
+
- @egen-civitas/esm-config@2.0.0
|
|
44
|
+
- @egen-civitas/esm-react-utils@3.0.0
|
|
45
|
+
- @egen-civitas/esm-utils@2.0.0
|
|
46
|
+
- @egen-civitas/esm-globals@2.0.0
|
|
47
|
+
- @egen-civitas/esm-translations@1.0.3
|
|
48
|
+
- @egen-civitas/esm-ai-framework@1.3.3
|
|
49
|
+
- @egen-civitas/esm-offline@1.0.3
|
|
50
|
+
- @egen-civitas/esm-state@1.0.3
|
|
51
|
+
- @egen-civitas/esm-context@1.0.2
|
|
52
|
+
- @egen-civitas/esm-dynamic-loading@2.0.1
|
|
53
|
+
- @egen-civitas/esm-error-handling@1.0.2
|
|
54
|
+
- @egen-civitas/esm-feature-flags@1.0.2
|
|
55
|
+
|
|
3
56
|
## 2.1.0
|
|
4
57
|
|
|
5
58
|
### Minor Changes
|
package/mock-jest.tsx
CHANGED
|
@@ -73,6 +73,8 @@ export const registerNavBehavior = jest.fn(() => () => {});
|
|
|
73
73
|
export const getNavBehavior = jest.fn();
|
|
74
74
|
// Constantes et validateurs purs : on garde les vraies implémentations (aucune raison de les simuler).
|
|
75
75
|
export {
|
|
76
|
+
TOPBAR_NAV_SLOT,
|
|
77
|
+
TOPBAR_NAV_SLOTS,
|
|
76
78
|
TOPBAR_LEVEL2_NAV_SLOT,
|
|
77
79
|
NAV_ALL_WORKSPACES,
|
|
78
80
|
isNavEntryMeta,
|
|
@@ -92,19 +94,6 @@ export const CustomOverflowMenuItem = jest.fn(({ itemText, ...props }) => (
|
|
|
92
94
|
{itemText}
|
|
93
95
|
</button>
|
|
94
96
|
));
|
|
95
|
-
export const EntityBannerActionsMenu = jest.fn(() => <div>Entity Banner Actions Menu</div>);
|
|
96
|
-
export const EntityBannerContactDetails = jest.fn(() => <div>Entity Banner Contact Details</div>);
|
|
97
|
-
export const EntityBannerEntityInfo = jest.fn(() => <div>Entity Banner Entity Info</div>);
|
|
98
|
-
export const EntityBannerEntityIdentifiers = jest.fn(() => <div>Entity Banner Entity Identifier</div>);
|
|
99
|
-
export const EntityBannerToggleContactDetailsButton = jest.fn(() => (
|
|
100
|
-
<div>Entity Banner Toggle Contact Details Button</div>
|
|
101
|
-
));
|
|
102
|
-
export const EntityPhoto = jest.fn(() => <div>Entity Photo</div>);
|
|
103
|
-
export const useEntityPhoto = jest.fn(() => ({
|
|
104
|
-
isLoading: true,
|
|
105
|
-
data: null,
|
|
106
|
-
error: null,
|
|
107
|
-
}));
|
|
108
97
|
|
|
109
98
|
export const ActionMenuButton = jest.fn(({ handler }) => <button onClick={handler}>Action Menu Button</button>);
|
|
110
99
|
export const ActionMenuButton2 = jest.fn(({ label, tagContent, icon }) => (
|
|
@@ -170,8 +159,6 @@ export const EgenDateRangePicker = jest.fn(({ id, labelText, value = [], onChang
|
|
|
170
159
|
/* esm-utils */
|
|
171
160
|
export {
|
|
172
161
|
getDefaultsFromConfigSchema,
|
|
173
|
-
getEntityName,
|
|
174
|
-
formatEntityName,
|
|
175
162
|
selectPreferredName,
|
|
176
163
|
} from '@egen-civitas/esm-utils';
|
|
177
164
|
|
package/mock.tsx
CHANGED
|
@@ -74,6 +74,8 @@ export const registerNavBehavior = vi.fn(() => () => {});
|
|
|
74
74
|
export const getNavBehavior = vi.fn();
|
|
75
75
|
// Constantes et validateurs purs : on garde les vraies implémentations (aucune raison de les simuler).
|
|
76
76
|
export {
|
|
77
|
+
TOPBAR_NAV_SLOT,
|
|
78
|
+
TOPBAR_NAV_SLOTS,
|
|
77
79
|
TOPBAR_LEVEL2_NAV_SLOT,
|
|
78
80
|
NAV_ALL_WORKSPACES,
|
|
79
81
|
isNavEntryMeta,
|
|
@@ -93,19 +95,6 @@ export const CustomOverflowMenuItem = vi.fn(({ itemText, ...props }) => (
|
|
|
93
95
|
{itemText}
|
|
94
96
|
</button>
|
|
95
97
|
));
|
|
96
|
-
export const EntityBannerActionsMenu = vi.fn(() => <div>Entity Banner Actions Menu</div>);
|
|
97
|
-
export const EntityBannerContactDetails = vi.fn(() => <div>Entity Banner Contact Details</div>);
|
|
98
|
-
export const EntityBannerEntityInfo = vi.fn(() => <div>Entity Banner Entity Info</div>);
|
|
99
|
-
export const EntityBannerEntityIdentifiers = vi.fn(() => <div>Entity Banner Entity Identifier</div>);
|
|
100
|
-
export const EntityBannerToggleContactDetailsButton = vi.fn(() => (
|
|
101
|
-
<div>Entity Banner Toggle Contact Details Button</div>
|
|
102
|
-
));
|
|
103
|
-
export const EntityPhoto = vi.fn(() => <div>Entity Photo</div>);
|
|
104
|
-
export const useEntityPhoto = vi.fn(() => ({
|
|
105
|
-
isLoading: true,
|
|
106
|
-
data: null,
|
|
107
|
-
error: null,
|
|
108
|
-
}));
|
|
109
98
|
|
|
110
99
|
export const ActionMenuButton = vi.fn(({ handler }) => <button onClick={handler}>Action Menu Button</button>);
|
|
111
100
|
export const ActionMenuButton2 = vi.fn(({ label, tagContent, icon }) => (
|
|
@@ -171,8 +160,6 @@ export const EgenDateRangePicker = vi.fn(({ id, labelText, value = [], onChange,
|
|
|
171
160
|
/* esm-utils */
|
|
172
161
|
export {
|
|
173
162
|
getDefaultsFromConfigSchema,
|
|
174
|
-
getEntityName,
|
|
175
|
-
formatEntityName,
|
|
176
163
|
selectPreferredName,
|
|
177
164
|
} from '@egen-civitas/esm-utils';
|
|
178
165
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egen-civitas/esm-framework",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -66,26 +66,26 @@
|
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@egen-civitas/esm-ai-framework": "^1.
|
|
70
|
-
"@egen-civitas/esm-api": "^
|
|
71
|
-
"@egen-civitas/esm-config": "^
|
|
72
|
-
"@egen-civitas/esm-context": "^1.0.
|
|
73
|
-
"@egen-civitas/esm-data-api": "^
|
|
74
|
-
"@egen-civitas/esm-dynamic-loading": "^2.0.
|
|
75
|
-
"@egen-civitas/esm-error-handling": "^1.0.
|
|
69
|
+
"@egen-civitas/esm-ai-framework": "^1.3.3",
|
|
70
|
+
"@egen-civitas/esm-api": "^2.0.0",
|
|
71
|
+
"@egen-civitas/esm-config": "^2.0.0",
|
|
72
|
+
"@egen-civitas/esm-context": "^1.0.2",
|
|
73
|
+
"@egen-civitas/esm-data-api": "^2.0.0",
|
|
74
|
+
"@egen-civitas/esm-dynamic-loading": "^2.0.1",
|
|
75
|
+
"@egen-civitas/esm-error-handling": "^1.0.2",
|
|
76
76
|
"@egen-civitas/esm-expression-evaluator": "^1.0.0",
|
|
77
|
-
"@egen-civitas/esm-extensions": "^2.
|
|
78
|
-
"@egen-civitas/esm-feature-flags": "^1.0.
|
|
79
|
-
"@egen-civitas/esm-globals": "^
|
|
77
|
+
"@egen-civitas/esm-extensions": "^2.4.0",
|
|
78
|
+
"@egen-civitas/esm-feature-flags": "^1.0.2",
|
|
79
|
+
"@egen-civitas/esm-globals": "^2.0.0",
|
|
80
80
|
"@egen-civitas/esm-navigation": "^1.0.0",
|
|
81
|
-
"@egen-civitas/esm-offline": "^1.0.
|
|
82
|
-
"@egen-civitas/esm-react-utils": "^
|
|
83
|
-
"@egen-civitas/esm-routes": "^1.0
|
|
84
|
-
"@egen-civitas/esm-state": "^1.0.
|
|
85
|
-
"@egen-civitas/esm-styleguide": "^
|
|
81
|
+
"@egen-civitas/esm-offline": "^1.0.3",
|
|
82
|
+
"@egen-civitas/esm-react-utils": "^3.0.0",
|
|
83
|
+
"@egen-civitas/esm-routes": "^1.1.0",
|
|
84
|
+
"@egen-civitas/esm-state": "^1.0.3",
|
|
85
|
+
"@egen-civitas/esm-styleguide": "^3.3.0",
|
|
86
86
|
"@egen-civitas/esm-tenant": "^1.0.0",
|
|
87
|
-
"@egen-civitas/esm-translations": "^1.0.
|
|
88
|
-
"@egen-civitas/esm-utils": "^
|
|
87
|
+
"@egen-civitas/esm-translations": "^1.0.3",
|
|
88
|
+
"@egen-civitas/esm-utils": "^2.0.0"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"dayjs": "1.x",
|