@egen-civitas/esm-styleguide 2.3.0 → 3.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.
Files changed (204) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/_all.scss +0 -1
  3. package/dist/_vars.scss +4 -4
  4. package/dist/assistant/index.d.ts +7 -0
  5. package/dist/assistant/index.d.ts.map +1 -1
  6. package/dist/assistant/index.js +5 -0
  7. package/dist/assistant/live-orb.component.d.ts +6 -0
  8. package/dist/assistant/live-orb.component.d.ts.map +1 -1
  9. package/dist/assistant/live-orb.component.js +15 -3
  10. package/dist/assistant/robot/README.md +47 -0
  11. package/dist/assistant/robot/Robot.d.ts +16 -0
  12. package/dist/assistant/robot/Robot.d.ts.map +1 -0
  13. package/dist/assistant/robot/Robot.js +159 -0
  14. package/dist/assistant/robot/RobotStage.d.ts +31 -0
  15. package/dist/assistant/robot/RobotStage.d.ts.map +1 -0
  16. package/dist/assistant/robot/RobotStage.js +250 -0
  17. package/dist/assistant/robot/clips.d.ts +62 -0
  18. package/dist/assistant/robot/clips.d.ts.map +1 -0
  19. package/dist/assistant/robot/clips.js +179 -0
  20. package/dist/assistant/robot/controller.d.ts +133 -0
  21. package/dist/assistant/robot/controller.d.ts.map +1 -0
  22. package/dist/assistant/robot/controller.js +522 -0
  23. package/dist/assistant/robot/gestures.d.ts +23 -0
  24. package/dist/assistant/robot/gestures.d.ts.map +1 -0
  25. package/dist/assistant/robot/gestures.js +1301 -0
  26. package/dist/assistant/robot/hands.d.ts +55 -0
  27. package/dist/assistant/robot/hands.d.ts.map +1 -0
  28. package/dist/assistant/robot/hands.js +121 -0
  29. package/dist/assistant/robot/ik.d.ts +34 -0
  30. package/dist/assistant/robot/ik.d.ts.map +1 -0
  31. package/dist/assistant/robot/ik.js +57 -0
  32. package/dist/assistant/robot/index.d.ts +18 -0
  33. package/dist/assistant/robot/index.d.ts.map +1 -0
  34. package/dist/assistant/robot/index.js +9 -0
  35. package/dist/assistant/robot/lazy.d.ts +8 -0
  36. package/dist/assistant/robot/lazy.d.ts.map +1 -0
  37. package/dist/assistant/robot/lazy.js +33 -0
  38. package/dist/assistant/robot/materials.d.ts +46 -0
  39. package/dist/assistant/robot/materials.d.ts.map +1 -0
  40. package/dist/assistant/robot/materials.js +101 -0
  41. package/dist/assistant/robot/parts/Body.d.ts +28 -0
  42. package/dist/assistant/robot/parts/Body.d.ts.map +1 -0
  43. package/dist/assistant/robot/parts/Body.js +368 -0
  44. package/dist/assistant/robot/parts/Head.d.ts +11 -0
  45. package/dist/assistant/robot/parts/Head.d.ts.map +1 -0
  46. package/dist/assistant/robot/parts/Head.js +210 -0
  47. package/dist/assistant/robot/parts/primitives.d.ts +36 -0
  48. package/dist/assistant/robot/parts/primitives.d.ts.map +1 -0
  49. package/dist/assistant/robot/parts/primitives.js +127 -0
  50. package/dist/assistant/robot/skeleton.d.ts +66 -0
  51. package/dist/assistant/robot/skeleton.d.ts.map +1 -0
  52. package/dist/assistant/robot/skeleton.js +266 -0
  53. package/dist/cards/card-header.component.d.ts +1 -1
  54. package/dist/cards/card-header.component.js +1 -1
  55. package/dist/cards/card-header.stories.js +1 -1
  56. package/dist/components/_general.scss +3 -3
  57. package/dist/config-schema.d.ts +0 -17
  58. package/dist/config-schema.d.ts.map +1 -1
  59. package/dist/config-schema.js +0 -25
  60. package/dist/datepicker/datepicker.stories.js +1 -1
  61. package/dist/empty-card/empty-card.stories.js +2 -2
  62. package/dist/error-state/error-state.stories.js +2 -2
  63. package/dist/icons/icon-registration.d.ts.map +1 -1
  64. package/dist/icons/icon-registration.js +0 -30
  65. package/dist/icons/icons.d.ts +4 -32
  66. package/dist/icons/icons.d.ts.map +1 -1
  67. package/dist/icons/icons.js +18 -148
  68. package/dist/index.js +0 -2
  69. package/dist/internal.d.ts +0 -3
  70. package/dist/internal.d.ts.map +1 -1
  71. package/dist/internal.js +0 -3
  72. package/dist/notifications/actionable-notification.stories.js +5 -5
  73. package/dist/notifications/notification.stories.js +5 -5
  74. package/dist/page-header/page-header.component.d.ts +1 -1
  75. package/dist/page-header/page-header.component.js +1 -1
  76. package/dist/pagination/pagination.stories.js +2 -2
  77. package/dist/pictograms/pictogram-registration.d.ts.map +1 -1
  78. package/dist/pictograms/pictogram-registration.js +2 -36
  79. package/dist/pictograms/pictograms.d.ts +2 -20
  80. package/dist/pictograms/pictograms.d.ts.map +1 -1
  81. package/dist/pictograms/pictograms.js +2 -139
  82. package/dist/public.d.ts +0 -3
  83. package/dist/public.d.ts.map +1 -1
  84. package/dist/public.js +0 -3
  85. package/dist/responsive-wrapper/responsive-wrapper.stories.js +1 -1
  86. package/dist/snackbars/snackbar.stories.js +1 -1
  87. package/dist/toasts/toast.stories.js +1 -1
  88. package/dist/workbench/splitter.component.d.ts +14 -0
  89. package/dist/workbench/splitter.component.d.ts.map +1 -1
  90. package/dist/workbench/splitter.component.js +52 -0
  91. package/dist/workbench/tool-window-rail.component.d.ts.map +1 -1
  92. package/dist/workbench/tool-window-rail.component.js +9 -1
  93. package/dist/workbench/tool-window-zone.component.d.ts.map +1 -1
  94. package/dist/workbench/tool-window-zone.component.js +9 -1
  95. package/dist/workbench/workbench.module.scss +64 -1
  96. package/dist/workbench/workbench.store.d.ts +2 -0
  97. package/dist/workbench/workbench.store.d.ts.map +1 -1
  98. package/dist/workbench/workbench.store.js +9 -0
  99. package/dist/workspaces/container/workspace-container.component.d.ts +8 -8
  100. package/dist/workspaces/container/workspace-container.component.js +9 -9
  101. package/dist/workspaces2/workspace2.d.ts +3 -3
  102. package/dist/workspaces2/workspace2.js +3 -3
  103. package/mock-jest.tsx +0 -41
  104. package/mock.tsx +0 -41
  105. package/package.json +26 -23
  106. package/src/_vars.scss +4 -4
  107. package/dist/entity-banner/actions-menu/entity-banner-actions-menu.component.d.ts +0 -19
  108. package/dist/entity-banner/actions-menu/entity-banner-actions-menu.component.d.ts.map +0 -1
  109. package/dist/entity-banner/actions-menu/entity-banner-actions-menu.component.js +0 -137
  110. package/dist/entity-banner/actions-menu/entity-banner-actions-menu.module.scss +0 -23
  111. package/dist/entity-banner/contact-details/entity-banner-contact-details.component.d.ts +0 -9
  112. package/dist/entity-banner/contact-details/entity-banner-contact-details.component.d.ts.map +0 -1
  113. package/dist/entity-banner/contact-details/entity-banner-contact-details.component.js +0 -207
  114. package/dist/entity-banner/contact-details/entity-banner-contact-details.module.scss +0 -47
  115. package/dist/entity-banner/contact-details/entity-banner-toggle-contact-details-button.component.d.ts +0 -12
  116. package/dist/entity-banner/contact-details/entity-banner-toggle-contact-details-button.component.d.ts.map +0 -1
  117. package/dist/entity-banner/contact-details/entity-banner-toggle-contact-details-button.component.js +0 -15
  118. package/dist/entity-banner/contact-details/types.d.ts +0 -48
  119. package/dist/entity-banner/contact-details/types.d.ts.map +0 -1
  120. package/dist/entity-banner/contact-details/types.js +0 -1
  121. package/dist/entity-banner/contact-details/useEntityAttributes.d.ts +0 -14
  122. package/dist/entity-banner/contact-details/useEntityAttributes.d.ts.map +0 -1
  123. package/dist/entity-banner/contact-details/useEntityAttributes.js +0 -12
  124. package/dist/entity-banner/contact-details/useEntityGroupsForEntity.d.ts +0 -11
  125. package/dist/entity-banner/contact-details/useEntityGroupsForEntity.d.ts.map +0 -1
  126. package/dist/entity-banner/contact-details/useEntityGroupsForEntity.js +0 -9
  127. package/dist/entity-banner/contact-details/useRelationships.d.ts +0 -35
  128. package/dist/entity-banner/contact-details/useRelationships.d.ts.map +0 -1
  129. package/dist/entity-banner/contact-details/useRelationships.js +0 -37
  130. package/dist/entity-banner/entity-info/entity-banner-entity-identifiers.component.d.ts +0 -9
  131. package/dist/entity-banner/entity-info/entity-banner-entity-identifiers.component.d.ts.map +0 -1
  132. package/dist/entity-banner/entity-info/entity-banner-entity-identifiers.component.js +0 -77
  133. package/dist/entity-banner/entity-info/entity-banner-entity-info.component.d.ts +0 -9
  134. package/dist/entity-banner/entity-info/entity-banner-entity-info.component.d.ts.map +0 -1
  135. package/dist/entity-banner/entity-info/entity-banner-entity-info.component.js +0 -72
  136. package/dist/entity-banner/entity-info/entity-banner-entity-info.module.scss +0 -165
  137. package/dist/entity-banner/index.d.ts +0 -5
  138. package/dist/entity-banner/index.d.ts.map +0 -1
  139. package/dist/entity-banner/index.js +0 -4
  140. package/dist/entity-photo/entity-photo.component.d.ts +0 -21
  141. package/dist/entity-photo/entity-photo.component.d.ts.map +0 -1
  142. package/dist/entity-photo/entity-photo.component.js +0 -111
  143. package/dist/entity-photo/entity-photo.module.scss +0 -21
  144. package/dist/entity-photo/index.d.ts +0 -3
  145. package/dist/entity-photo/index.d.ts.map +0 -1
  146. package/dist/entity-photo/index.js +0 -2
  147. package/dist/entity-photo/placeholder-icon.component.d.ts +0 -9
  148. package/dist/entity-photo/placeholder-icon.component.d.ts.map +0 -1
  149. package/dist/entity-photo/placeholder-icon.component.js +0 -26
  150. package/dist/entity-photo/useEntityPhoto.d.ts +0 -29
  151. package/dist/entity-photo/useEntityPhoto.d.ts.map +0 -1
  152. package/dist/entity-photo/useEntityPhoto.js +0 -37
  153. package/dist/icons/svgs/baby.svg +0 -1
  154. package/dist/icons/svgs/chemistry.svg +0 -1
  155. package/dist/icons/svgs/drug-order.svg +0 -1
  156. package/dist/icons/svgs/generic-order-type.svg +0 -1
  157. package/dist/icons/svgs/hospital-bed.svg +0 -1
  158. package/dist/icons/svgs/image-medical.svg +0 -1
  159. package/dist/icons/svgs/lab-order.svg +0 -1
  160. package/dist/icons/svgs/material-order.svg +0 -1
  161. package/dist/icons/svgs/medication.svg +0 -1
  162. package/dist/icons/svgs/microscope.svg +0 -1
  163. package/dist/icons/svgs/mother.svg +0 -1
  164. package/dist/icons/svgs/procedure-order.svg +0 -1
  165. package/dist/icons/svgs/referral-order.svg +0 -1
  166. package/dist/icons/svgs/syringe.svg +0 -1
  167. package/dist/logo/_logo.scss +0 -34
  168. package/dist/logo/egen-logo-full.svg +0 -1
  169. package/dist/logo/egen-logo-icon.svg +0 -1
  170. package/dist/logo/egen-logo-partial.svg +0 -1
  171. package/dist/logo/egen-logo-white.svg +0 -1
  172. package/dist/logo/index.d.ts +0 -8
  173. package/dist/logo/index.d.ts.map +0 -1
  174. package/dist/logo/index.js +0 -22
  175. package/dist/numeric-datapoint/index.d.ts +0 -4
  176. package/dist/numeric-datapoint/index.d.ts.map +0 -1
  177. package/dist/numeric-datapoint/index.js +0 -3
  178. package/dist/numeric-datapoint/interpretation-utils.d.ts +0 -27
  179. package/dist/numeric-datapoint/interpretation-utils.d.ts.map +0 -1
  180. package/dist/numeric-datapoint/interpretation-utils.js +0 -66
  181. package/dist/numeric-datapoint/numeric-datapoint.component.d.ts +0 -44
  182. package/dist/numeric-datapoint/numeric-datapoint.component.d.ts.map +0 -1
  183. package/dist/numeric-datapoint/numeric-datapoint.component.js +0 -110
  184. package/dist/numeric-datapoint/numeric-datapoint.module.scss +0 -141
  185. package/dist/numeric-datapoint/use-concept-reference-range.d.ts +0 -13
  186. package/dist/numeric-datapoint/use-concept-reference-range.d.ts.map +0 -1
  187. package/dist/numeric-datapoint/use-concept-reference-range.js +0 -31
  188. package/dist/pictograms/svgs/blood-bank.svg +0 -1
  189. package/dist/pictograms/svgs/cardiology.svg +0 -1
  190. package/dist/pictograms/svgs/ct-scan.svg +0 -1
  191. package/dist/pictograms/svgs/dentistry.svg +0 -1
  192. package/dist/pictograms/svgs/emergency-department.svg +0 -1
  193. package/dist/pictograms/svgs/geriatrics.svg +0 -1
  194. package/dist/pictograms/svgs/gynaecology.svg +0 -1
  195. package/dist/pictograms/svgs/in-patient.svg +0 -1
  196. package/dist/pictograms/svgs/labs-2.svg +0 -1
  197. package/dist/pictograms/svgs/labs.svg +0 -1
  198. package/dist/pictograms/svgs/obstetrics.svg +0 -1
  199. package/dist/pictograms/svgs/patient-search.svg +0 -1
  200. package/dist/pictograms/svgs/patients.svg +0 -1
  201. package/dist/pictograms/svgs/pharmacy-1.svg +0 -1
  202. package/dist/pictograms/svgs/pharmacy-2.svg +0 -1
  203. package/dist/pictograms/svgs/triage.svg +0 -1
  204. package/dist/pictograms/svgs/x-ray.svg +0 -1
@@ -7,29 +7,12 @@ import style from "./pictograms.module.scss";
7
7
  'egen-pict-appointments',
8
8
  'egen-pict-assessment-1',
9
9
  'egen-pict-assessment-2',
10
- 'egen-pict-blood-bank',
11
- 'egen-pict-cardiology',
12
- 'egen-pict-ct-scan',
13
- 'egen-pict-dentistry',
14
- 'egen-pict-emergency-department',
15
10
  'egen-pict-facility',
16
- 'egen-pict-geriatrics',
17
- 'egen-pict-gynaecology',
18
- 'egen-pict-in-patient',
19
- 'egen-pict-laboratory',
20
- 'egen-pict-labs-2',
21
- 'egen-pict-obstetrics',
22
- 'egen-pict-patient-search',
23
- 'egen-pict-patients',
24
11
  'egen-pict-payments-desk',
25
- 'egen-pict-pharmacy',
26
- 'egen-pict-pharmacy-2',
27
12
  'egen-pict-registration',
28
13
  'egen-pict-service-queues',
29
14
  'egen-pict-stock-management',
30
- 'egen-pict-transfer',
31
- 'egen-pict-triage',
32
- 'egen-pict-x-ray'
15
+ 'egen-pict-transfer'
33
16
  ];
34
17
  export const AppointmentsPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function AppointmentsPictogram(props, ref) {
35
18
  return /*#__PURE__*/ _jsx(Pictogram, {
@@ -55,41 +38,6 @@ export const Assessment2Pictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(
55
38
  pictogramProps: props
56
39
  });
57
40
  }));
58
- export const BloodBankPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function BloodBankPictogram(props, ref) {
59
- return /*#__PURE__*/ _jsx(Pictogram, {
60
- ref: ref,
61
- pictogram: "egen-pict-blood-bank",
62
- pictogramProps: props
63
- });
64
- }));
65
- export const CardiologyPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function CardiologyPictogram(props, ref) {
66
- return /*#__PURE__*/ _jsx(Pictogram, {
67
- ref: ref,
68
- pictogram: "egen-pict-cardiology",
69
- pictogramProps: props
70
- });
71
- }));
72
- export const CtScanPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function CtScanPictogram(props, ref) {
73
- return /*#__PURE__*/ _jsx(Pictogram, {
74
- ref: ref,
75
- pictogram: "egen-pict-ct-scan",
76
- pictogramProps: props
77
- });
78
- }));
79
- export const DentistryPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function DentistryPictogram(props, ref) {
80
- return /*#__PURE__*/ _jsx(Pictogram, {
81
- ref: ref,
82
- pictogram: "egen-pict-dentistry",
83
- pictogramProps: props
84
- });
85
- }));
86
- export const EmergencyDepartmentPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function EmergencyDepartmentPictogram(props, ref) {
87
- return /*#__PURE__*/ _jsx(Pictogram, {
88
- ref: ref,
89
- pictogram: "egen-pict-emergency-department",
90
- pictogramProps: props
91
- });
92
- }));
93
41
  export const FacilityPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function FacilityPictogram(props, ref) {
94
42
  return /*#__PURE__*/ _jsx(Pictogram, {
95
43
  ref: ref,
@@ -97,62 +45,6 @@ export const FacilityPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(fun
97
45
  pictogramProps: props
98
46
  });
99
47
  }));
100
- export const GeriatricsPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function GeriatricsPictogram(props, ref) {
101
- return /*#__PURE__*/ _jsx(Pictogram, {
102
- ref: ref,
103
- pictogram: "egen-pict-geriatrics",
104
- pictogramProps: props
105
- });
106
- }));
107
- export const GynaecologyPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function GynaecologyPictogram(props, ref) {
108
- return /*#__PURE__*/ _jsx(Pictogram, {
109
- ref: ref,
110
- pictogram: "egen-pict-gynaecology",
111
- pictogramProps: props
112
- });
113
- }));
114
- export const InPatientPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function InPatientPictogram(props, ref) {
115
- return /*#__PURE__*/ _jsx(Pictogram, {
116
- ref: ref,
117
- pictogram: "egen-pict-in-patient",
118
- pictogramProps: props
119
- });
120
- }));
121
- export const LaboratoryPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function LaboratoryPictogram(props, ref) {
122
- return /*#__PURE__*/ _jsx(Pictogram, {
123
- ref: ref,
124
- pictogram: "egen-pict-laboratory",
125
- pictogramProps: props
126
- });
127
- }));
128
- export const Labs2Pictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function Labs2Pictogram(props, ref) {
129
- return /*#__PURE__*/ _jsx(Pictogram, {
130
- ref: ref,
131
- pictogram: "egen-pict-labs-2",
132
- pictogramProps: props
133
- });
134
- }));
135
- export const ObstetricsPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function ObstetricsPictogram(props, ref) {
136
- return /*#__PURE__*/ _jsx(Pictogram, {
137
- ref: ref,
138
- pictogram: "egen-pict-obstetrics",
139
- pictogramProps: props
140
- });
141
- }));
142
- export const PatientSearchPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function PatientSearchPictogram(props, ref) {
143
- return /*#__PURE__*/ _jsx(Pictogram, {
144
- ref: ref,
145
- pictogram: "egen-pict-patient-search",
146
- pictogramProps: props
147
- });
148
- }));
149
- export const PatientsPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function PatientsPictogram(props, ref) {
150
- return /*#__PURE__*/ _jsx(Pictogram, {
151
- ref: ref,
152
- pictogram: "egen-pict-patients",
153
- pictogramProps: props
154
- });
155
- }));
156
48
  export const PaymentsDeskPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function PaymentsDeskPictogram(props, ref) {
157
49
  return /*#__PURE__*/ _jsx(Pictogram, {
158
50
  ref: ref,
@@ -160,20 +52,6 @@ export const PaymentsDeskPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef
160
52
  pictogramProps: props
161
53
  });
162
54
  }));
163
- export const PharmacyPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function PharmacyPictogram(props, ref) {
164
- return /*#__PURE__*/ _jsx(Pictogram, {
165
- ref: ref,
166
- pictogram: "egen-pict-pharmacy",
167
- pictogramProps: props
168
- });
169
- }));
170
- export const Pharmacy2Pictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function Pharmacy2Pictogram(props, ref) {
171
- return /*#__PURE__*/ _jsx(Pictogram, {
172
- ref: ref,
173
- pictogram: "egen-pict-pharmacy-2",
174
- pictogramProps: props
175
- });
176
- }));
177
55
  export const RegistrationPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function RegistrationPictogram(props, ref) {
178
56
  return /*#__PURE__*/ _jsx(Pictogram, {
179
57
  ref: ref,
@@ -202,31 +80,16 @@ export const TransferPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(fun
202
80
  pictogramProps: props
203
81
  });
204
82
  }));
205
- export const TriagePictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function TriagePictogram(props, ref) {
206
- return /*#__PURE__*/ _jsx(Pictogram, {
207
- ref: ref,
208
- pictogram: "egen-pict-triage",
209
- pictogramProps: props
210
- });
211
- }));
212
- export const XrayPictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function XrayPictogram(props, ref) {
213
- return /*#__PURE__*/ _jsx(Pictogram, {
214
- ref: ref,
215
- pictogram: "egen-pict-x-ray",
216
- pictogramProps: props
217
- });
218
- }));
219
83
  // Pictogram aliases that are a little more aligned to specific use-cases
220
84
  // should all resolve to a defined React icon
221
85
  export const HomePictogram = FacilityPictogram;
222
- export const PatientListsPictogram = PatientsPictogram;
223
86
  /**
224
87
  * This is a utility component that takes an `pictogram` and render it if the sprite for the pictogram
225
88
  * is available. The goal is to make it easier to conditionally render configuration-specified pictograms.
226
89
  *
227
90
  * @example
228
91
  * ```tsx
229
- * <MaybePictogram pictogram='egen-icon-baby' className={styles.myPictogramStyles} />
92
+ * <MaybePictogram pictogram='egen-icon-user' className={styles.myPictogramStyles} />
230
93
  * ```
231
94
  */ export const MaybePictogram = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function MaybePictogram({ pictogram, fallback, ...pictogramProps }, ref) {
232
95
  const iconRef = useRef(document.getElementById(pictogram));
package/dist/public.d.ts CHANGED
@@ -9,7 +9,6 @@ export * from './error-state/index.js';
9
9
  export * from './fields/index.js';
10
10
  export * from './icons/icons.js';
11
11
  export * from './location-picker/index.js';
12
- export * from './numeric-datapoint/index.js';
13
12
  export * from './page-background/index.js';
14
13
  export { showModal } from './modals/index.js';
15
14
  export { showNotification, showActionableNotification } from './notifications/index.js';
@@ -17,8 +16,6 @@ export { type ActionableNotificationDescriptor, type ActionableNotificationType,
17
16
  export { type NotificationDescriptor, type InlineNotificationType } from './notifications/notification.component.js';
18
17
  export * from './page-header/index.js';
19
18
  export * from './pagination/index.js';
20
- export * from './entity-banner/index.js';
21
- export * from './entity-photo/index.js';
22
19
  export * from './pictograms/pictograms.js';
23
20
  export * from './responsive-wrapper/index.js';
24
21
  export { showSnackbar, type SnackbarDescriptor, type SnackbarType, type SnackbarMeta } from './snackbars/index.js';
@@ -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,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB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AAmB,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,4BAA4B,EAC5B,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,GAC/B,MAAM,wBAAwB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,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
@@ -8,14 +8,11 @@ export * from "./error-state/index.js";
8
8
  export * from "./fields/index.js";
9
9
  export * from "./icons/icons.js";
10
10
  export * from "./location-picker/index.js";
11
- export * from "./numeric-datapoint/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";
15
14
  export * from "./page-header/index.js";
16
15
  export * from "./pagination/index.js";
17
- export * from "./entity-banner/index.js";
18
- export * from "./entity-photo/index.js";
19
16
  export * from "./pictograms/pictograms.js";
20
17
  export * from "./responsive-wrapper/index.js";
21
18
  export { showSnackbar } from "./snackbars/index.js";
@@ -21,7 +21,7 @@ export const Default = {
21
21
  render: ()=>/*#__PURE__*/ _jsx(ResponsiveWrapper, {
22
22
  children: /*#__PURE__*/ _jsx(TextInput, {
23
23
  id: "example",
24
- labelText: "Patient name",
24
+ labelText: "Entity name",
25
25
  placeholder: "Enter name"
26
26
  })
27
27
  })
@@ -47,7 +47,7 @@ export const WithAction = {
47
47
  args: {
48
48
  snackbar: {
49
49
  id: 3,
50
- title: 'Visit started',
50
+ title: 'Session started',
51
51
  subtitle: 'A new session has been started for this entity.',
52
52
  kind: 'info',
53
53
  actionButtonLabel: 'Undo',
@@ -56,7 +56,7 @@ export const WithAction = {
56
56
  toast: {
57
57
  id: 4,
58
58
  title: 'Form submitted',
59
- description: 'The clinical form has been submitted.',
59
+ description: 'The business form has been submitted.',
60
60
  kind: 'success',
61
61
  actionButtonLabel: 'View'
62
62
  }
@@ -13,5 +13,19 @@ interface SplitterProps {
13
13
  * saut au début du glissement, même si la poignée a été saisie à côté de son centre.
14
14
  */
15
15
  export declare function Splitter({ anchor, label }: SplitterProps): React.JSX.Element;
16
+ type CornerSide = 'left' | 'right';
17
+ interface CornerSplitterProps {
18
+ /** Zone latérale dont la frontière croise celle de la zone basse. */
19
+ side: CornerSide;
20
+ label: string;
21
+ }
22
+ /**
23
+ * Poignée d'angle : posée à l'intersection de trois zones (latérale / centre / bas), elle redimensionne
24
+ * les deux axes d'un même geste — la largeur de la zone latérale et la hauteur de la zone basse.
25
+ * Le déplacement est relatif au point saisi : la frontière suit le pointeur sans saut. Double-clic :
26
+ * les deux tailles reviennent à leur valeur par défaut. Les deux poignées linéaires restent
27
+ * disponibles (souris et clavier) ; l'angle est donc un raccourci pointeur, masqué aux lecteurs d'écran.
28
+ */
29
+ export declare function CornerSplitter({ side, label }: CornerSplitterProps): React.JSX.Element;
16
30
  export {};
17
31
  //# sourceMappingURL=splitter.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitter.component.d.ts","sourceRoot":"","sources":["../../src/workbench/splitter.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAQrE,UAAU,aAAa;IACrB,MAAM,EAAE,gBAAgB,CAAC;IACzB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,aAAa,qBAwExD"}
1
+ {"version":3,"file":"splitter.component.d.ts","sourceRoot":"","sources":["../../src/workbench/splitter.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAQrE,UAAU,aAAa;IACrB,MAAM,EAAE,gBAAgB,CAAC;IACzB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,aAAa,qBAwExD;AAED,KAAK,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC;AAEnC,UAAU,mBAAmB;IAC3B,qEAAqE;IACrE,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,mBAAmB,qBA+ClE"}
@@ -79,3 +79,55 @@ const RESIZING_ATTRIBUTE = 'data-workbench-resizing';
79
79
  onKeyDown: onKeyDown
80
80
  });
81
81
  }
82
+ /**
83
+ * Poignée d'angle : posée à l'intersection de trois zones (latérale / centre / bas), elle redimensionne
84
+ * les deux axes d'un même geste — la largeur de la zone latérale et la hauteur de la zone basse.
85
+ * Le déplacement est relatif au point saisi : la frontière suit le pointeur sans saut. Double-clic :
86
+ * les deux tailles reviennent à leur valeur par défaut. Les deux poignées linéaires restent
87
+ * disponibles (souris et clavier) ; l'angle est donc un raccourci pointeur, masqué aux lecteurs d'écran.
88
+ */ export function CornerSplitter({ side, label }) {
89
+ const start = useRef(null);
90
+ const attribute = `corner-${side}`;
91
+ const onPointerDown = (event)=>{
92
+ if (event.button !== 0) return;
93
+ const { sizes } = workbenchStore.getState();
94
+ start.current = {
95
+ x: event.clientX,
96
+ y: event.clientY,
97
+ side: sizes[side],
98
+ bottom: sizes.bottom
99
+ };
100
+ event.currentTarget.setPointerCapture?.(event.pointerId);
101
+ document.documentElement.setAttribute(RESIZING_ATTRIBUTE, attribute);
102
+ event.preventDefault();
103
+ };
104
+ const onPointerMove = (event)=>{
105
+ const origin = start.current;
106
+ if (!origin) return;
107
+ const dx = event.clientX - origin.x;
108
+ // Zone gauche : grandit vers la droite ; zone droite : vers la gauche ; zone basse : vers le haut.
109
+ setZoneSize(side, origin.side + (side === 'left' ? dx : -dx));
110
+ setZoneSize('bottom', origin.bottom - (event.clientY - origin.y));
111
+ };
112
+ const stopDragging = (event)=>{
113
+ if (!start.current) return;
114
+ start.current = null;
115
+ event.currentTarget.releasePointerCapture?.(event.pointerId);
116
+ document.documentElement.removeAttribute(RESIZING_ATTRIBUTE);
117
+ };
118
+ const reset = ()=>{
119
+ resetZoneSize(side);
120
+ resetZoneSize('bottom');
121
+ };
122
+ return /*#__PURE__*/ _jsx("div", {
123
+ "aria-hidden": "true",
124
+ title: label,
125
+ "data-corner": side,
126
+ className: `${styles.cornerSplitter} ${styles[`cornerSplitter-${side}`]}`,
127
+ onPointerDown: onPointerDown,
128
+ onPointerMove: onPointerMove,
129
+ onPointerUp: stopDragging,
130
+ onPointerCancel: stopDragging,
131
+ onDoubleClick: reset
132
+ });
133
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"tool-window-rail.component.d.ts","sourceRoot":"","sources":["../../src/workbench/tool-window-rail.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAyD1B;;;GAGG;AACH,wBAAgB,QAAQ,sBAQvB;AAED,6GAA6G;AAC7G,wBAAgB,SAAS,sBAQxB"}
1
+ {"version":3,"file":"tool-window-rail.component.d.ts","sourceRoot":"","sources":["../../src/workbench/tool-window-rail.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAyElD;;;GAGG;AACH,wBAAgB,QAAQ,sBAQvB;AAED,6GAA6G;AAC7G,wBAAgB,SAAS,sBAQxB"}
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from "react";
3
+ import { isSafeToolWindowIconUrl } from "@egen-civitas/esm-extensions";
3
4
  import { useStore } from "@egen-civitas/esm-react-utils";
4
5
  import { resolveWorkbenchIcon } from "./workbench-icons.js";
5
6
  import { toolWindowTitle, useToolWindows } from "./use-tool-windows.js";
@@ -27,6 +28,7 @@ function RailGroup({ anchor, label, rail }) {
27
28
  function RailButton({ tool, active, onClick }) {
28
29
  const title = toolWindowTitle(tool);
29
30
  const Icon = resolveWorkbenchIcon(tool.meta.icon);
31
+ const iconUrl = isSafeToolWindowIconUrl(tool.meta.iconUrl) ? tool.meta.iconUrl : undefined;
30
32
  // NB : `useStore` retourne l'état étalé (clé = id de fenêtre d'outils).
31
33
  const badge = useStore(workbenchBadgeStore)[tool.id];
32
34
  return /*#__PURE__*/ _jsxs("button", {
@@ -38,7 +40,13 @@ function RailButton({ tool, active, onClick }) {
38
40
  "data-active": active,
39
41
  onClick: onClick,
40
42
  children: [
41
- Icon ? /*#__PURE__*/ _jsx(Icon, {
43
+ iconUrl ? /*#__PURE__*/ _jsx("span", {
44
+ "aria-hidden": "true",
45
+ className: styles.railIconMask,
46
+ style: {
47
+ '--egen-rail-icon': `url("${iconUrl.replace(/"/g, '%22')}")`
48
+ }
49
+ }) : Icon ? /*#__PURE__*/ _jsx(Icon, {
42
50
  size: 18,
43
51
  "aria-hidden": "true"
44
52
  }) : /*#__PURE__*/ _jsx("span", {
@@ -1 +1 @@
1
- {"version":3,"file":"tool-window-zone.component.d.ts","sourceRoot":"","sources":["../../src/workbench/tool-window-zone.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwF,MAAM,OAAO,CAAC;AAC7G,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAwCxF,UAAU,mBAAmB;IAC3B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,mBAAmB,qBA4F7D"}
1
+ {"version":3,"file":"tool-window-zone.component.d.ts","sourceRoot":"","sources":["../../src/workbench/tool-window-zone.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwF,MAAM,OAAO,CAAC;AAC7G,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAwCxF,UAAU,mBAAmB;IAC3B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,mBAAmB,qBAmG7D"}
@@ -3,7 +3,7 @@ import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from
3
3
  import { TOOL_WINDOW_SLOTS } from "@egen-civitas/esm-extensions";
4
4
  import { ComponentContext, ExtensionSlot, useStore } from "@egen-civitas/esm-react-utils";
5
5
  import { X } from "lucide-react";
6
- import { Splitter } from "./splitter.component.js";
6
+ import { CornerSplitter, Splitter } from "./splitter.component.js";
7
7
  import { TOOL_WINDOW_HEADER_ATTRIBUTE } from "./tool-window-header.component.js";
8
8
  import { toolWindowTitle, useToolWindows } from "./use-tool-windows.js";
9
9
  import { closeToolWindow, workbenchStore } from "./workbench.store.js";
@@ -141,6 +141,14 @@ const EXIT_CLASS = {
141
141
  phase !== 'closing' && /*#__PURE__*/ _jsx(Splitter, {
142
142
  anchor: anchor,
143
143
  label: `Redimensionner ${title}`
144
+ }),
145
+ anchor === 'bottom' && phase !== 'closing' && active.left !== null && /*#__PURE__*/ _jsx(CornerSplitter, {
146
+ side: "left",
147
+ label: "Redimensionner la zone gauche et la zone basse"
148
+ }),
149
+ anchor === 'bottom' && phase !== 'closing' && active.right !== null && /*#__PURE__*/ _jsx(CornerSplitter, {
150
+ side: "right",
151
+ label: "Redimensionner la zone droite et la zone basse"
144
152
  })
145
153
  ]
146
154
  })
@@ -35,6 +35,15 @@ $gap: var(--egen-workbench-gap, 0.375rem);
35
35
  flex: 1 1 auto;
36
36
  }
37
37
 
38
+ .railIconMask {
39
+ display: block;
40
+ width: 18px;
41
+ height: 18px;
42
+ background-color: currentColor;
43
+ mask: var(--egen-rail-icon) center / contain no-repeat;
44
+ -webkit-mask: var(--egen-rail-icon) center / contain no-repeat;
45
+ }
46
+
38
47
  .railBadge {
39
48
  position: absolute;
40
49
  top: 0.125rem;
@@ -103,7 +112,7 @@ $gap: var(--egen-workbench-gap, 0.375rem);
103
112
  min-height: 0;
104
113
  border-radius: $radius;
105
114
  // Même léger assombrissement que la carte centrale (voir _general.scss).
106
- background: var(--egen-workbench-card-bg, rgb(0 0 0 / 16%));
115
+ background: var(--egen-workbench-card-bg, rgb(0 0 0 / 24%));
107
116
  color: var(--colors-surface-foreground, #fff);
108
117
 
109
118
  // Distance de glissement des animations d'ouverture/fermeture (classes egen-anim-*).
@@ -272,6 +281,12 @@ $gap: var(--egen-workbench-gap, 0.375rem);
272
281
  opacity: 1;
273
282
  }
274
283
 
284
+ :global(html[data-workbench-resizing='corner-left']) .splitter-left::after,
285
+ :global(html[data-workbench-resizing='corner-right']) .splitter-right::after,
286
+ :global(html[data-workbench-resizing^='corner-']) .splitter-bottom::after {
287
+ opacity: 1;
288
+ }
289
+
275
290
  .splitter-left,
276
291
  .splitter-right {
277
292
  top: 0;
@@ -311,3 +326,51 @@ $gap: var(--egen-workbench-gap, 0.375rem);
311
326
  transform: translateY(-50%);
312
327
  }
313
328
  }
329
+
330
+ // ── Poignées d'angle (intersection latérale / centre / bas) ─────────────────
331
+ // Carré centré sur le croisement des deux frontières : la zone basse commence une demi-écart sous
332
+ // le centre, et la frontière latérale se trouve à la largeur de la zone, moins une demi-écart
333
+ // (la carte est décalée d'une demi-écart dans sa cellule). Au-dessus des deux poignées linéaires.
334
+ .cornerSplitter {
335
+ --corner-size: calc(#{$gap} + 0.75rem);
336
+
337
+ position: absolute;
338
+ z-index: 3;
339
+ top: calc(-0.5 * (#{$gap} + var(--corner-size)));
340
+ width: var(--corner-size);
341
+ height: var(--corner-size);
342
+ border-radius: 999px;
343
+ background: transparent;
344
+ cursor: move;
345
+ touch-action: none;
346
+
347
+ &::after {
348
+ content: '';
349
+ position: absolute;
350
+ inset: 50% auto auto 50%;
351
+ width: 0.5rem;
352
+ height: 0.5rem;
353
+ border-radius: 999px;
354
+ background: var(--colors-primary-500, #3b82f6);
355
+ opacity: 0;
356
+ transform: translate(-50%, -50%);
357
+ transition: opacity 120ms ease;
358
+ }
359
+
360
+ &:hover::after {
361
+ opacity: 0.9;
362
+ }
363
+ }
364
+
365
+ .cornerSplitter-left {
366
+ left: calc(var(--egen-zone-left-width, 0px) - 0.5 * (#{$gap} + var(--corner-size)));
367
+ }
368
+
369
+ .cornerSplitter-right {
370
+ right: calc(var(--egen-zone-right-width, 0px) - 0.5 * (#{$gap} + var(--corner-size)));
371
+ }
372
+
373
+ :global(html[data-workbench-resizing='corner-left']) .cornerSplitter-left::after,
374
+ :global(html[data-workbench-resizing='corner-right']) .cornerSplitter-right::after {
375
+ opacity: 1;
376
+ }
@@ -28,6 +28,8 @@ export declare function clampZoneSize(anchor: ToolWindowAnchor, size: number, vi
28
28
  export declare const workbenchStore: import("zustand").StoreApi<WorkbenchState>;
29
29
  /** Ouvre la fenêtre d'outils `id` dans la zone `anchor` ; un second appel sur la même la referme. */
30
30
  export declare function toggleToolWindow(anchor: ToolWindowAnchor, id: string): void;
31
+ /** Ouvre la fenêtre d'outils `id` dans la zone `anchor` (sans la refermer si elle est déjà affichée). */
32
+ export declare function openToolWindow(anchor: ToolWindowAnchor, id: string): void;
31
33
  /** Replie la zone `anchor`. */
32
34
  export declare function closeToolWindow(anchor: ToolWindowAnchor): void;
33
35
  /** Redimensionne la zone `anchor` (valeur bornée par `clampZoneSize`). */
@@ -1 +1 @@
1
- {"version":3,"file":"workbench.store.d.ts","sourceRoot":"","sources":["../../src/workbench/workbench.store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D,eAAO,MAAM,YAAY,EAAE,SAAS,gBAAgB,EAAgC,CAAC;AAErF,6FAA6F;AAC7F,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAA0C,CAAC;AAQrH,MAAM,WAAW,cAAc;IAC7B,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;IACxC,+FAA+F;IAC/F,MAAM,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;CACjD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,gBAAgB,EACxB,IAAI,EAAE,MAAM,EACZ,QAAQ,GAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAA6D,GACrG,MAAM,CAMR;AA2BD,eAAO,MAAM,cAAc,4CAAiE,CAAC;AAU7F,qGAAqG;AACrG,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,EAAE,EAAE,EAAE,MAAM,QAGpE;AAED,+BAA+B;AAC/B,wBAAgB,eAAe,CAAC,MAAM,EAAE,gBAAgB,QAGvD;AAED,0EAA0E;AAC1E,wBAAgB,WAAW,CAAC,MAAM,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,QAIjE;AAED,yDAAyD;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AAa,CAAC,MAAM,EAAE,gBAAgB,QAErD"}
@@ -90,6 +90,15 @@ workbenchStore.subscribe((state)=>{
90
90
  }
91
91
  });
92
92
  }
93
+ /** Ouvre la fenêtre d'outils `id` dans la zone `anchor` (sans la refermer si elle est déjà affichée). */ export function openToolWindow(anchor, id) {
94
+ const { active } = workbenchStore.getState();
95
+ if (active[anchor] !== id) workbenchStore.setState({
96
+ active: {
97
+ ...active,
98
+ [anchor]: id
99
+ }
100
+ });
101
+ }
93
102
  /** Replie la zone `anchor`. */ export function closeToolWindow(anchor) {
94
103
  const { active } = workbenchStore.getState();
95
104
  if (active[anchor] !== null) workbenchStore.setState({
@@ -25,7 +25,7 @@ export interface WorkspaceContainerProps {
25
25
  }
26
26
  /**
27
27
  * Use this component to render the [workspace window](https://egen.alpha.vercel.com/design-system)
28
- * in an app such as the patient chart, or a workspace overlay in an app such as the clinic dashboard.
28
+ * in an app such as the entity chart, or a workspace overlay in an app such as the office dashboard.
29
29
  * This allows workspaces to be opened on the page where this component is mounted. This component
30
30
  * must not be mounted multiple times on the same page. If there are multiple apps on a page, only
31
31
  * one of those apps should use this component—it "hosts" the workspaces.
@@ -40,16 +40,16 @@ export interface WorkspaceContainerProps {
40
40
  * The context key is a string that appears in the URL, which defines the pages on which workspaces
41
41
  * are valid. If the URL changes in a way such that it no longer contains the context key, then
42
42
  * all workspaces will be closed. This ensures that, for example, workspaces on the home page do
43
- * not stay open when the user transitions to the patient dashboard; and also that workspaces do
44
- * not stay open when the user navigates to a different patient. The context key must be a valid
43
+ * not stay open when the user transitions to the entity dashboard; and also that workspaces do
44
+ * not stay open when the user navigates to a different entity. The context key must be a valid
45
45
  * sub-path of the URL, with no initial or trailing slash. So if the URL is
46
- * `https://example.com/patient/123/foo`, then `patient` and `patient/123` and `123/foo` are valid
47
- * context keys, but `patient/12` and `pati` are not.
46
+ * `https://example.com/entity/123/foo`, then `entity` and `entity/123` and `123/foo` are valid
47
+ * context keys, but `entity/12` and `pati` are not.
48
48
  *
49
49
  * An extension slot is provided in the workspace header. Its name is derived from the `featureName` of
50
50
  * the top-level component in which it is defined (feature names are generally provided in the lifecycle
51
51
  * functions in an app's `index.ts` file). The slot is named `workspace-header-${featureName}-slot`.
52
- * For the patient chart, this is `workspace-header-patient-chart-slot`.
52
+ * For the entity chart, this is `workspace-header-entity-chart-slot`.
53
53
  *
54
54
  * This component also provides the [Siderail and Bottom Nav](https://egen.alpha.vercel.com/design-system).
55
55
  * To use this, pass the `showSiderailAndBottomNav` prop. The Siderail is rendered on the right side of the screen
@@ -57,8 +57,8 @@ export interface WorkspaceContainerProps {
57
57
  * menu provides an extension slot, to which buttons are attached as extensions. The slot
58
58
  * derives its name from the `featureName` of the top-level component in which this `WorkspaceContainer`
59
59
  * appears (feature names are generally provided in the lifecycle functions in an app's `index.ts` file).
60
- * The slot is named `action-menu-${featureName}-items-slot`. For the patient chart, this is
61
- * `action-menu-patient-chart-items-slot`.
60
+ * The slot is named `action-menu-${featureName}-items-slot`. For the entity chart, this is
61
+ * `action-menu-entity-chart-items-slot`.
62
62
  *
63
63
  * This component also provides everything needed for workspace notifications to be rendered.
64
64
  *
@@ -14,7 +14,7 @@ import ActionMenu from "./action-menu.component.js";
14
14
  import styles from "./workspace.module.scss";
15
15
  /**
16
16
  * Use this component to render the [workspace window](https://egen.alpha.vercel.com/design-system)
17
- * in an app such as the patient chart, or a workspace overlay in an app such as the clinic dashboard.
17
+ * in an app such as the entity chart, or a workspace overlay in an app such as the office dashboard.
18
18
  * This allows workspaces to be opened on the page where this component is mounted. This component
19
19
  * must not be mounted multiple times on the same page. If there are multiple apps on a page, only
20
20
  * one of those apps should use this component—it "hosts" the workspaces.
@@ -29,16 +29,16 @@ import styles from "./workspace.module.scss";
29
29
  * The context key is a string that appears in the URL, which defines the pages on which workspaces
30
30
  * are valid. If the URL changes in a way such that it no longer contains the context key, then
31
31
  * all workspaces will be closed. This ensures that, for example, workspaces on the home page do
32
- * not stay open when the user transitions to the patient dashboard; and also that workspaces do
33
- * not stay open when the user navigates to a different patient. The context key must be a valid
32
+ * not stay open when the user transitions to the entity dashboard; and also that workspaces do
33
+ * not stay open when the user navigates to a different entity. The context key must be a valid
34
34
  * sub-path of the URL, with no initial or trailing slash. So if the URL is
35
- * `https://example.com/patient/123/foo`, then `patient` and `patient/123` and `123/foo` are valid
36
- * context keys, but `patient/12` and `pati` are not.
35
+ * `https://example.com/entity/123/foo`, then `entity` and `entity/123` and `123/foo` are valid
36
+ * context keys, but `entity/12` and `pati` are not.
37
37
  *
38
38
  * An extension slot is provided in the workspace header. Its name is derived from the `featureName` of
39
39
  * the top-level component in which it is defined (feature names are generally provided in the lifecycle
40
40
  * functions in an app's `index.ts` file). The slot is named `workspace-header-${featureName}-slot`.
41
- * For the patient chart, this is `workspace-header-patient-chart-slot`.
41
+ * For the entity chart, this is `workspace-header-entity-chart-slot`.
42
42
  *
43
43
  * This component also provides the [Siderail and Bottom Nav](https://egen.alpha.vercel.com/design-system).
44
44
  * To use this, pass the `showSiderailAndBottomNav` prop. The Siderail is rendered on the right side of the screen
@@ -46,8 +46,8 @@ import styles from "./workspace.module.scss";
46
46
  * menu provides an extension slot, to which buttons are attached as extensions. The slot
47
47
  * derives its name from the `featureName` of the top-level component in which this `WorkspaceContainer`
48
48
  * appears (feature names are generally provided in the lifecycle functions in an app's `index.ts` file).
49
- * The slot is named `action-menu-${featureName}-items-slot`. For the patient chart, this is
50
- * `action-menu-patient-chart-items-slot`.
49
+ * The slot is named `action-menu-${featureName}-items-slot`. For the entity chart, this is
50
+ * `action-menu-entity-chart-items-slot`.
51
51
  *
52
52
  * This component also provides everything needed for workspace notifications to be rendered.
53
53
  *
@@ -136,7 +136,7 @@ function Workspace({ workspaceInstance, additionalWorkspaceProps }) {
136
136
  ]);
137
137
  // We use the feature name of the app containing the workspace in order to set the extension
138
138
  // slot name. We can't use contextKey for this because we don't want the slot name to be
139
- // different for different patients, but we do want it to be different for different apps.
139
+ // different for different entities, but we do want it to be different for different apps.
140
140
  const { featureName } = useContext(ComponentContext);
141
141
  const toggleWindowState = useCallback(()=>{
142
142
  updateWorkspaceWindowState(isMaximized ? 'normal' : 'maximized');
@@ -54,10 +54,10 @@ export declare function closeWorkspaceGroup2(discardUnsavedChanges?: boolean): P
54
54
  * To do so, we need to call `launchChildWorkspace` instead.
55
55
  *
56
56
  * [^1] Omitting window or group props is useful for workspaces that don't have ties to the window or group "context" (props).
57
- * For example, in the patient chart, the visit notes / clinical forms / order basket action menu button all share
58
- * a "group context" of the current visit. However, the "patient list" action menu button does not need to share that group
57
+ * For example, in the entity chart, the notes / business forms / order basket action menu button all share
58
+ * a "group context" of the current session. However, the "entity list" action menu button does not need to share that group
59
59
  * context, so opening that workspace should not need to cause other workspaces / windows / groups to potentially close.
60
- * The "patient search" workspace in the queues and ward apps is another example.
60
+ * The "entity search" workspace in the queues and unit apps is another example.
61
61
  *
62
62
  * [^2] 2 sets of props are compatible if either one is nullish, or if they are shallow equal.
63
63
  * @experimental