@egen-civitas/esm-styleguide 1.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 (758) hide show
  1. package/README.md +7 -0
  2. package/dist/_all.scss +29 -0
  3. package/dist/_carbon-bridge.scss +194 -0
  4. package/dist/_glass.scss +75 -0
  5. package/dist/_overrides.scss +767 -0
  6. package/dist/_panel.scss +123 -0
  7. package/dist/_vars.scss +111 -0
  8. package/dist/brand.d.ts +8 -0
  9. package/dist/brand.d.ts.map +1 -0
  10. package/dist/brand.js +18 -0
  11. package/dist/breakpoints/index.d.ts +12 -0
  12. package/dist/breakpoints/index.d.ts.map +1 -0
  13. package/dist/breakpoints/index.js +28 -0
  14. package/dist/cards/card-header.component.d.ts +12 -0
  15. package/dist/cards/card-header.component.d.ts.map +1 -0
  16. package/dist/cards/card-header.component.js +22 -0
  17. package/dist/cards/card-header.module.scss +45 -0
  18. package/dist/cards/card-header.stories.js +32 -0
  19. package/dist/cards/decorated-card/_decoration-bleed.scss +26 -0
  20. package/dist/cards/decorated-card/card-decorations.d.ts +9 -0
  21. package/dist/cards/decorated-card/card-decorations.d.ts.map +1 -0
  22. package/dist/cards/decorated-card/card-decorations.js +106 -0
  23. package/dist/cards/decorated-card/decorated-card.component.d.ts +25 -0
  24. package/dist/cards/decorated-card/decorated-card.component.d.ts.map +1 -0
  25. package/dist/cards/decorated-card/decorated-card.component.js +134 -0
  26. package/dist/cards/decorated-card/decorated-card.module.scss +357 -0
  27. package/dist/cards/decorated-card/decorated-card.types.d.ts +26 -0
  28. package/dist/cards/decorated-card/decorated-card.types.d.ts.map +1 -0
  29. package/dist/cards/decorated-card/decorated-card.types.js +1 -0
  30. package/dist/cards/decorated-card/index.d.ts +3 -0
  31. package/dist/cards/decorated-card/index.d.ts.map +1 -0
  32. package/dist/cards/decorated-card/index.js +2 -0
  33. package/dist/cards/index.d.ts +3 -0
  34. package/dist/cards/index.d.ts.map +1 -0
  35. package/dist/cards/index.js +2 -0
  36. package/dist/carousel/circular-gallery/circular-gallery.component.d.ts +21 -0
  37. package/dist/carousel/circular-gallery/circular-gallery.component.d.ts.map +1 -0
  38. package/dist/carousel/circular-gallery/circular-gallery.component.js +130 -0
  39. package/dist/carousel/circular-gallery/circular-gallery.module.scss +165 -0
  40. package/dist/carousel/circular-gallery/circular-gallery.types.d.ts +17 -0
  41. package/dist/carousel/circular-gallery/circular-gallery.types.d.ts.map +1 -0
  42. package/dist/carousel/circular-gallery/circular-gallery.types.js +1 -0
  43. package/dist/carousel/circular-gallery/gallery-image.component.d.ts +23 -0
  44. package/dist/carousel/circular-gallery/gallery-image.component.d.ts.map +1 -0
  45. package/dist/carousel/circular-gallery/gallery-image.component.js +151 -0
  46. package/dist/carousel/circular-gallery/gallery-tabs.component.d.ts +10 -0
  47. package/dist/carousel/circular-gallery/gallery-tabs.component.d.ts.map +1 -0
  48. package/dist/carousel/circular-gallery/gallery-tabs.component.js +54 -0
  49. package/dist/carousel/circular-gallery/index.d.ts +3 -0
  50. package/dist/carousel/circular-gallery/index.d.ts.map +1 -0
  51. package/dist/carousel/circular-gallery/index.js +2 -0
  52. package/dist/carousel/image-swiper/image-swiper.component.d.ts +18 -0
  53. package/dist/carousel/image-swiper/image-swiper.component.d.ts.map +1 -0
  54. package/dist/carousel/image-swiper/image-swiper.component.js +200 -0
  55. package/dist/carousel/image-swiper/image-swiper.module.scss +43 -0
  56. package/dist/carousel/image-swiper/image-swiper.types.d.ts +17 -0
  57. package/dist/carousel/image-swiper/image-swiper.types.d.ts.map +1 -0
  58. package/dist/carousel/image-swiper/image-swiper.types.js +1 -0
  59. package/dist/carousel/image-swiper/index.d.ts +3 -0
  60. package/dist/carousel/image-swiper/index.d.ts.map +1 -0
  61. package/dist/carousel/image-swiper/index.js +2 -0
  62. package/dist/carousel/index.d.ts +5 -0
  63. package/dist/carousel/index.d.ts.map +1 -0
  64. package/dist/carousel/index.js +9 -0
  65. package/dist/carousel/slider/carousel.component.d.ts +29 -0
  66. package/dist/carousel/slider/carousel.component.d.ts.map +1 -0
  67. package/dist/carousel/slider/carousel.component.js +108 -0
  68. package/dist/carousel/slider/index.d.ts +9 -0
  69. package/dist/carousel/slider/index.d.ts.map +1 -0
  70. package/dist/carousel/slider/index.js +7 -0
  71. package/dist/carousel/slider/slider-container.component.d.ts +11 -0
  72. package/dist/carousel/slider/slider-container.component.d.ts.map +1 -0
  73. package/dist/carousel/slider/slider-container.component.js +21 -0
  74. package/dist/carousel/slider/slider-dot-button.component.d.ts +12 -0
  75. package/dist/carousel/slider/slider-dot-button.component.d.ts.map +1 -0
  76. package/dist/carousel/slider/slider-dot-button.component.js +29 -0
  77. package/dist/carousel/slider/slider.component.d.ts +11 -0
  78. package/dist/carousel/slider/slider.component.d.ts.map +1 -0
  79. package/dist/carousel/slider/slider.component.js +17 -0
  80. package/dist/carousel/slider/slider.context.d.ts +16 -0
  81. package/dist/carousel/slider/slider.context.d.ts.map +1 -0
  82. package/dist/carousel/slider/slider.context.js +9 -0
  83. package/dist/carousel/slider/slider.module.scss +176 -0
  84. package/dist/carousel/slider/slider.types.d.ts +40 -0
  85. package/dist/carousel/slider/slider.types.d.ts.map +1 -0
  86. package/dist/carousel/slider/slider.types.js +1 -0
  87. package/dist/carousel/slider/thumbs-slider.component.d.ts +16 -0
  88. package/dist/carousel/slider/thumbs-slider.component.d.ts.map +1 -0
  89. package/dist/carousel/slider/thumbs-slider.component.js +45 -0
  90. package/dist/carousel/testimonial-card/index.d.ts +4 -0
  91. package/dist/carousel/testimonial-card/index.d.ts.map +1 -0
  92. package/dist/carousel/testimonial-card/index.js +3 -0
  93. package/dist/carousel/testimonial-card/testimonial-card-stack.component.d.ts +29 -0
  94. package/dist/carousel/testimonial-card/testimonial-card-stack.component.d.ts.map +1 -0
  95. package/dist/carousel/testimonial-card/testimonial-card-stack.component.js +79 -0
  96. package/dist/carousel/testimonial-card/testimonial-card-stack.module.scss +18 -0
  97. package/dist/carousel/testimonial-card/testimonial-card.component.d.ts +36 -0
  98. package/dist/carousel/testimonial-card/testimonial-card.component.d.ts.map +1 -0
  99. package/dist/carousel/testimonial-card/testimonial-card.component.js +98 -0
  100. package/dist/carousel/testimonial-card/testimonial-card.module.scss +73 -0
  101. package/dist/carousel/testimonial-card/testimonial-card.types.d.ts +65 -0
  102. package/dist/carousel/testimonial-card/testimonial-card.types.d.ts.map +1 -0
  103. package/dist/carousel/testimonial-card/testimonial-card.types.js +1 -0
  104. package/dist/cascading-nav-dropdown/cascading-nav-dropdown.component.d.ts +33 -0
  105. package/dist/cascading-nav-dropdown/cascading-nav-dropdown.component.d.ts.map +1 -0
  106. package/dist/cascading-nav-dropdown/cascading-nav-dropdown.component.js +195 -0
  107. package/dist/cascading-nav-dropdown/cascading-nav-dropdown.module.scss +210 -0
  108. package/dist/cascading-nav-dropdown/cascading-nav-dropdown.types.d.ts +36 -0
  109. package/dist/cascading-nav-dropdown/cascading-nav-dropdown.types.d.ts.map +1 -0
  110. package/dist/cascading-nav-dropdown/cascading-nav-dropdown.types.js +1 -0
  111. package/dist/cascading-nav-dropdown/column-with-search.component.d.ts +15 -0
  112. package/dist/cascading-nav-dropdown/column-with-search.component.d.ts.map +1 -0
  113. package/dist/cascading-nav-dropdown/column-with-search.component.js +99 -0
  114. package/dist/cascading-nav-dropdown/index.d.ts +4 -0
  115. package/dist/cascading-nav-dropdown/index.d.ts.map +1 -0
  116. package/dist/cascading-nav-dropdown/index.js +3 -0
  117. package/dist/classification-tags/classification-tags.component.d.ts +32 -0
  118. package/dist/classification-tags/classification-tags.component.d.ts.map +1 -0
  119. package/dist/classification-tags/classification-tags.component.js +40 -0
  120. package/dist/classification-tags/index.d.ts +2 -0
  121. package/dist/classification-tags/index.d.ts.map +1 -0
  122. package/dist/classification-tags/index.js +1 -0
  123. package/dist/components/_breadcrumbs.scss +11 -0
  124. package/dist/components/_canvas.scss +8 -0
  125. package/dist/components/_general.scss +121 -0
  126. package/dist/components/_main-content.scss +24 -0
  127. package/dist/components/_panel-overrides.scss +150 -0
  128. package/dist/config-schema.d.ts +43 -0
  129. package/dist/config-schema.d.ts.map +1 -0
  130. package/dist/config-schema.js +107 -0
  131. package/dist/containers/folder-gallery/folder-gallery.component.d.ts +24 -0
  132. package/dist/containers/folder-gallery/folder-gallery.component.d.ts.map +1 -0
  133. package/dist/containers/folder-gallery/folder-gallery.component.js +168 -0
  134. package/dist/containers/folder-gallery/folder-gallery.module.scss +201 -0
  135. package/dist/containers/folder-gallery/folder-gallery.types.d.ts +27 -0
  136. package/dist/containers/folder-gallery/folder-gallery.types.d.ts.map +1 -0
  137. package/dist/containers/folder-gallery/folder-gallery.types.js +1 -0
  138. package/dist/containers/folder-gallery/index.d.ts +3 -0
  139. package/dist/containers/folder-gallery/index.d.ts.map +1 -0
  140. package/dist/containers/folder-gallery/index.js +2 -0
  141. package/dist/containers/index.d.ts +3 -0
  142. package/dist/containers/index.d.ts.map +1 -0
  143. package/dist/containers/index.js +8 -0
  144. package/dist/containers/layout-grid/index.d.ts +3 -0
  145. package/dist/containers/layout-grid/index.d.ts.map +1 -0
  146. package/dist/containers/layout-grid/index.js +2 -0
  147. package/dist/containers/layout-grid/layout-grid.component.d.ts +30 -0
  148. package/dist/containers/layout-grid/layout-grid.component.d.ts.map +1 -0
  149. package/dist/containers/layout-grid/layout-grid.component.js +152 -0
  150. package/dist/containers/layout-grid/layout-grid.module.scss +143 -0
  151. package/dist/containers/layout-grid/layout-grid.types.d.ts +19 -0
  152. package/dist/containers/layout-grid/layout-grid.types.d.ts.map +1 -0
  153. package/dist/containers/layout-grid/layout-grid.types.js +1 -0
  154. package/dist/custom-overflow-menu/custom-overflow-menu.component.d.ts +24 -0
  155. package/dist/custom-overflow-menu/custom-overflow-menu.component.d.ts.map +1 -0
  156. package/dist/custom-overflow-menu/custom-overflow-menu.component.js +133 -0
  157. package/dist/custom-overflow-menu/custom-overflow-menu.module.scss +38 -0
  158. package/dist/custom-overflow-menu/custom-overflow-menu.stories.js +64 -0
  159. package/dist/custom-overflow-menu/index.d.ts +2 -0
  160. package/dist/custom-overflow-menu/index.d.ts.map +1 -0
  161. package/dist/custom-overflow-menu/index.js +1 -0
  162. package/dist/dashboard-extension/dashboard.module.scss +13 -0
  163. package/dist/dashboard-extension/index.d.ts +13 -0
  164. package/dist/dashboard-extension/index.d.ts.map +1 -0
  165. package/dist/dashboard-extension/index.js +59 -0
  166. package/dist/data-table-batch-actions/data-table-batch-actions.component.d.ts +5 -0
  167. package/dist/data-table-batch-actions/data-table-batch-actions.component.d.ts.map +1 -0
  168. package/dist/data-table-batch-actions/data-table-batch-actions.component.js +24 -0
  169. package/dist/data-table-batch-actions/index.d.ts +2 -0
  170. package/dist/data-table-batch-actions/index.d.ts.map +1 -0
  171. package/dist/data-table-batch-actions/index.js +1 -0
  172. package/dist/datepicker/auto-close-dialog.component.d.ts +7 -0
  173. package/dist/datepicker/auto-close-dialog.component.d.ts.map +1 -0
  174. package/dist/datepicker/auto-close-dialog.component.js +16 -0
  175. package/dist/datepicker/calendar-popover.component.d.ts +28 -0
  176. package/dist/datepicker/calendar-popover.component.d.ts.map +1 -0
  177. package/dist/datepicker/calendar-popover.component.js +68 -0
  178. package/dist/datepicker/date-picker-icon.component.d.ts +9 -0
  179. package/dist/datepicker/date-picker-icon.component.d.ts.map +1 -0
  180. package/dist/datepicker/date-picker-icon.component.js +23 -0
  181. package/dist/datepicker/date-picker-input.component.d.ts +12 -0
  182. package/dist/datepicker/date-picker-input.component.d.ts.map +1 -0
  183. package/dist/datepicker/date-picker-input.component.js +70 -0
  184. package/dist/datepicker/date-range-picker.stories.js +44 -0
  185. package/dist/datepicker/date-segment.component.d.ts +11 -0
  186. package/dist/datepicker/date-segment.component.d.ts.map +1 -0
  187. package/dist/datepicker/date-segment.component.js +53 -0
  188. package/dist/datepicker/datepicker.module.scss +502 -0
  189. package/dist/datepicker/datepicker.stories.js +47 -0
  190. package/dist/datepicker/defaults.d.ts +10 -0
  191. package/dist/datepicker/defaults.d.ts.map +1 -0
  192. package/dist/datepicker/defaults.js +8 -0
  193. package/dist/datepicker/egen-date-picker.component.d.ts +27 -0
  194. package/dist/datepicker/egen-date-picker.component.d.ts.map +1 -0
  195. package/dist/datepicker/egen-date-picker.component.js +142 -0
  196. package/dist/datepicker/egen-date-range-picker.component.d.ts +22 -0
  197. package/dist/datepicker/egen-date-range-picker.component.d.ts.map +1 -0
  198. package/dist/datepicker/egen-date-range-picker.component.js +172 -0
  199. package/dist/datepicker/hooks.d.ts +911 -0
  200. package/dist/datepicker/hooks.d.ts.map +1 -0
  201. package/dist/datepicker/hooks.js +103 -0
  202. package/dist/datepicker/i18n-wrapper.component.d.ts +7 -0
  203. package/dist/datepicker/i18n-wrapper.component.d.ts.map +1 -0
  204. package/dist/datepicker/i18n-wrapper.component.js +8 -0
  205. package/dist/datepicker/index.d.ts +3 -0
  206. package/dist/datepicker/index.d.ts.map +1 -0
  207. package/dist/datepicker/index.js +2 -0
  208. package/dist/datepicker/month-year.component.d.ts +11 -0
  209. package/dist/datepicker/month-year.component.d.ts.map +1 -0
  210. package/dist/datepicker/month-year.component.js +80 -0
  211. package/dist/datepicker/types.d.ts +31 -0
  212. package/dist/datepicker/types.d.ts.map +1 -0
  213. package/dist/datepicker/types.js +3 -0
  214. package/dist/datepicker/utils.d.ts +16 -0
  215. package/dist/datepicker/utils.d.ts.map +1 -0
  216. package/dist/datepicker/utils.js +35 -0
  217. package/dist/declarations.d.js +0 -0
  218. package/dist/dialogs/card-modal/card-modal.animations.d.ts +5 -0
  219. package/dist/dialogs/card-modal/card-modal.animations.d.ts.map +1 -0
  220. package/dist/dialogs/card-modal/card-modal.animations.js +102 -0
  221. package/dist/dialogs/card-modal/card-modal.component.d.ts +40 -0
  222. package/dist/dialogs/card-modal/card-modal.component.d.ts.map +1 -0
  223. package/dist/dialogs/card-modal/card-modal.component.js +284 -0
  224. package/dist/dialogs/card-modal/card-modal.module.scss +103 -0
  225. package/dist/dialogs/card-modal/card-modal.types.d.ts +64 -0
  226. package/dist/dialogs/card-modal/card-modal.types.d.ts.map +1 -0
  227. package/dist/dialogs/card-modal/card-modal.types.js +1 -0
  228. package/dist/dialogs/card-modal/index.d.ts +4 -0
  229. package/dist/dialogs/card-modal/index.d.ts.map +1 -0
  230. package/dist/dialogs/card-modal/index.js +3 -0
  231. package/dist/dialogs/index.d.ts +2 -0
  232. package/dist/dialogs/index.d.ts.map +1 -0
  233. package/dist/dialogs/index.js +12 -0
  234. package/dist/empty-card/empty-card-registration.d.ts +2 -0
  235. package/dist/empty-card/empty-card-registration.d.ts.map +1 -0
  236. package/dist/empty-card/empty-card-registration.js +5 -0
  237. package/dist/empty-card/empty-card.component.d.ts +18 -0
  238. package/dist/empty-card/empty-card.component.d.ts.map +1 -0
  239. package/dist/empty-card/empty-card.component.js +52 -0
  240. package/dist/empty-card/empty-card.module.scss +27 -0
  241. package/dist/empty-card/empty-card.stories.js +23 -0
  242. package/dist/empty-card/empty-data-illustration.svg +1 -0
  243. package/dist/empty-card/index.d.ts +2 -0
  244. package/dist/empty-card/index.d.ts.map +1 -0
  245. package/dist/empty-card/index.js +1 -0
  246. package/dist/entity-banner/actions-menu/entity-banner-actions-menu.component.d.ts +19 -0
  247. package/dist/entity-banner/actions-menu/entity-banner-actions-menu.component.d.ts.map +1 -0
  248. package/dist/entity-banner/actions-menu/entity-banner-actions-menu.component.js +137 -0
  249. package/dist/entity-banner/actions-menu/entity-banner-actions-menu.module.scss +23 -0
  250. package/dist/entity-banner/contact-details/entity-banner-contact-details.component.d.ts +9 -0
  251. package/dist/entity-banner/contact-details/entity-banner-contact-details.component.d.ts.map +1 -0
  252. package/dist/entity-banner/contact-details/entity-banner-contact-details.component.js +207 -0
  253. package/dist/entity-banner/contact-details/entity-banner-contact-details.module.scss +47 -0
  254. package/dist/entity-banner/contact-details/entity-banner-toggle-contact-details-button.component.d.ts +12 -0
  255. package/dist/entity-banner/contact-details/entity-banner-toggle-contact-details-button.component.d.ts.map +1 -0
  256. package/dist/entity-banner/contact-details/entity-banner-toggle-contact-details-button.component.js +15 -0
  257. package/dist/entity-banner/contact-details/types.d.ts +48 -0
  258. package/dist/entity-banner/contact-details/types.d.ts.map +1 -0
  259. package/dist/entity-banner/contact-details/types.js +1 -0
  260. package/dist/entity-banner/contact-details/useEntityAttributes.d.ts +14 -0
  261. package/dist/entity-banner/contact-details/useEntityAttributes.d.ts.map +1 -0
  262. package/dist/entity-banner/contact-details/useEntityAttributes.js +12 -0
  263. package/dist/entity-banner/contact-details/useEntityGroupsForEntity.d.ts +11 -0
  264. package/dist/entity-banner/contact-details/useEntityGroupsForEntity.d.ts.map +1 -0
  265. package/dist/entity-banner/contact-details/useEntityGroupsForEntity.js +9 -0
  266. package/dist/entity-banner/contact-details/useRelationships.d.ts +35 -0
  267. package/dist/entity-banner/contact-details/useRelationships.d.ts.map +1 -0
  268. package/dist/entity-banner/contact-details/useRelationships.js +37 -0
  269. package/dist/entity-banner/entity-info/entity-banner-entity-identifiers.component.d.ts +9 -0
  270. package/dist/entity-banner/entity-info/entity-banner-entity-identifiers.component.d.ts.map +1 -0
  271. package/dist/entity-banner/entity-info/entity-banner-entity-identifiers.component.js +77 -0
  272. package/dist/entity-banner/entity-info/entity-banner-entity-info.component.d.ts +9 -0
  273. package/dist/entity-banner/entity-info/entity-banner-entity-info.component.d.ts.map +1 -0
  274. package/dist/entity-banner/entity-info/entity-banner-entity-info.component.js +72 -0
  275. package/dist/entity-banner/entity-info/entity-banner-entity-info.module.scss +165 -0
  276. package/dist/entity-banner/index.d.ts +5 -0
  277. package/dist/entity-banner/index.d.ts.map +1 -0
  278. package/dist/entity-banner/index.js +4 -0
  279. package/dist/entity-photo/entity-photo.component.d.ts +21 -0
  280. package/dist/entity-photo/entity-photo.component.d.ts.map +1 -0
  281. package/dist/entity-photo/entity-photo.component.js +111 -0
  282. package/dist/entity-photo/entity-photo.module.scss +21 -0
  283. package/dist/entity-photo/index.d.ts +3 -0
  284. package/dist/entity-photo/index.d.ts.map +1 -0
  285. package/dist/entity-photo/index.js +2 -0
  286. package/dist/entity-photo/placeholder-icon.component.d.ts +9 -0
  287. package/dist/entity-photo/placeholder-icon.component.d.ts.map +1 -0
  288. package/dist/entity-photo/placeholder-icon.component.js +26 -0
  289. package/dist/entity-photo/useEntityPhoto.d.ts +29 -0
  290. package/dist/entity-photo/useEntityPhoto.d.ts.map +1 -0
  291. package/dist/entity-photo/useEntityPhoto.js +37 -0
  292. package/dist/error-state/error-state.component.d.ts +11 -0
  293. package/dist/error-state/error-state.component.d.ts.map +1 -0
  294. package/dist/error-state/error-state.component.js +32 -0
  295. package/dist/error-state/error-state.module.scss +21 -0
  296. package/dist/error-state/error-state.stories.js +32 -0
  297. package/dist/error-state/index.d.ts +2 -0
  298. package/dist/error-state/index.d.ts.map +1 -0
  299. package/dist/error-state/index.js +1 -0
  300. package/dist/fields/dynamic-field.component.d.ts +39 -0
  301. package/dist/fields/dynamic-field.component.d.ts.map +1 -0
  302. package/dist/fields/dynamic-field.component.js +169 -0
  303. package/dist/fields/dynamic-field.module.scss +474 -0
  304. package/dist/fields/dynamic-field.stories.js +103 -0
  305. package/dist/fields/dynamic-field.types.d.ts +70 -0
  306. package/dist/fields/dynamic-field.types.d.ts.map +1 -0
  307. package/dist/fields/dynamic-field.types.js +7 -0
  308. package/dist/fields/field-icon.component.d.ts +11 -0
  309. package/dist/fields/field-icon.component.d.ts.map +1 -0
  310. package/dist/fields/field-icon.component.js +16 -0
  311. package/dist/fields/index.d.ts +3 -0
  312. package/dist/fields/index.d.ts.map +1 -0
  313. package/dist/fields/index.js +2 -0
  314. package/dist/fields/kinetic-label.component.d.ts +16 -0
  315. package/dist/fields/kinetic-label.component.d.ts.map +1 -0
  316. package/dist/fields/kinetic-label.component.js +53 -0
  317. package/dist/fields/use-field-validation.hook.d.ts +12 -0
  318. package/dist/fields/use-field-validation.hook.d.ts.map +1 -0
  319. package/dist/fields/use-field-validation.hook.js +72 -0
  320. package/dist/fields/validation-icon.component.d.ts +10 -0
  321. package/dist/fields/validation-icon.component.d.ts.map +1 -0
  322. package/dist/fields/validation-icon.component.js +40 -0
  323. package/dist/glass-card/index.d.ts +3 -0
  324. package/dist/glass-card/index.d.ts.map +1 -0
  325. package/dist/glass-card/index.js +2 -0
  326. package/dist/glass-card/liquid-glass-card.component.d.ts +23 -0
  327. package/dist/glass-card/liquid-glass-card.component.d.ts.map +1 -0
  328. package/dist/glass-card/liquid-glass-card.component.js +175 -0
  329. package/dist/glass-card/liquid-glass-card.module.scss +154 -0
  330. package/dist/glass-card/liquid-glass-card.types.d.ts +27 -0
  331. package/dist/glass-card/liquid-glass-card.types.d.ts.map +1 -0
  332. package/dist/glass-card/liquid-glass-card.types.js +1 -0
  333. package/dist/icons/error-filled.icon.d.ts +18 -0
  334. package/dist/icons/error-filled.icon.d.ts.map +1 -0
  335. package/dist/icons/error-filled.icon.js +22 -0
  336. package/dist/icons/icon-registration.d.ts +2 -0
  337. package/dist/icons/icon-registration.d.ts.map +1 -0
  338. package/dist/icons/icon-registration.js +191 -0
  339. package/dist/icons/icons.d.ts +334 -0
  340. package/dist/icons/icons.d.ts.map +1 -0
  341. package/dist/icons/icons.js +916 -0
  342. package/dist/icons/icons.module.scss +5 -0
  343. package/dist/icons/icons.stories.js +61 -0
  344. package/dist/icons/index.d.ts +3 -0
  345. package/dist/icons/index.d.ts.map +1 -0
  346. package/dist/icons/index.js +2 -0
  347. package/dist/icons/svgs/activity.svg +1 -0
  348. package/dist/icons/svgs/add.svg +1 -0
  349. package/dist/icons/svgs/arrow-down.svg +1 -0
  350. package/dist/icons/svgs/arrow-left.svg +1 -0
  351. package/dist/icons/svgs/arrow-right.svg +1 -0
  352. package/dist/icons/svgs/arrow-up.svg +1 -0
  353. package/dist/icons/svgs/baby.svg +1 -0
  354. package/dist/icons/svgs/calendar--heat-map.svg +1 -0
  355. package/dist/icons/svgs/calendar.svg +1 -0
  356. package/dist/icons/svgs/caret-down.svg +1 -0
  357. package/dist/icons/svgs/caret-left.svg +1 -0
  358. package/dist/icons/svgs/caret-right.svg +1 -0
  359. package/dist/icons/svgs/caret-up.svg +1 -0
  360. package/dist/icons/svgs/chart-average.svg +1 -0
  361. package/dist/icons/svgs/chart-line.svg +1 -0
  362. package/dist/icons/svgs/checkmark--filled.svg +1 -0
  363. package/dist/icons/svgs/checkmark--outline.svg +1 -0
  364. package/dist/icons/svgs/chemistry.svg +1 -0
  365. package/dist/icons/svgs/chevron-down.svg +1 -0
  366. package/dist/icons/svgs/chevron-left.svg +1 -0
  367. package/dist/icons/svgs/chevron-right.svg +1 -0
  368. package/dist/icons/svgs/chevron-up.svg +1 -0
  369. package/dist/icons/svgs/close--filled.svg +1 -0
  370. package/dist/icons/svgs/close--outline.svg +1 -0
  371. package/dist/icons/svgs/close.svg +1 -0
  372. package/dist/icons/svgs/document-attachment.svg +1 -0
  373. package/dist/icons/svgs/document.svg +1 -0
  374. package/dist/icons/svgs/download.svg +1 -0
  375. package/dist/icons/svgs/drug-order.svg +1 -0
  376. package/dist/icons/svgs/edit.svg +1 -0
  377. package/dist/icons/svgs/event-schedule.svg +1 -0
  378. package/dist/icons/svgs/events.svg +1 -0
  379. package/dist/icons/svgs/gender-female.svg +1 -0
  380. package/dist/icons/svgs/gender-male.svg +1 -0
  381. package/dist/icons/svgs/gender-other.svg +1 -0
  382. package/dist/icons/svgs/gender-unknown.svg +1 -0
  383. package/dist/icons/svgs/generic-order-type.svg +1 -0
  384. package/dist/icons/svgs/group-access.svg +1 -0
  385. package/dist/icons/svgs/group.svg +1 -0
  386. package/dist/icons/svgs/hospital-bed.svg +1 -0
  387. package/dist/icons/svgs/image-medical.svg +1 -0
  388. package/dist/icons/svgs/information--filled.svg +1 -0
  389. package/dist/icons/svgs/information--square.svg +1 -0
  390. package/dist/icons/svgs/information.svg +1 -0
  391. package/dist/icons/svgs/inventory-management.svg +1 -0
  392. package/dist/icons/svgs/lab-order.svg +1 -0
  393. package/dist/icons/svgs/list-checked.svg +1 -0
  394. package/dist/icons/svgs/location.svg +1 -0
  395. package/dist/icons/svgs/material-order.svg +1 -0
  396. package/dist/icons/svgs/maximize.svg +1 -0
  397. package/dist/icons/svgs/medication.svg +1 -0
  398. package/dist/icons/svgs/message-queue.svg +1 -0
  399. package/dist/icons/svgs/microscope.svg +1 -0
  400. package/dist/icons/svgs/money.svg +1 -0
  401. package/dist/icons/svgs/mother.svg +1 -0
  402. package/dist/icons/svgs/movement.svg +1 -0
  403. package/dist/icons/svgs/overflow-menu--horizontal.svg +1 -0
  404. package/dist/icons/svgs/overflow-menu--vertical.svg +1 -0
  405. package/dist/icons/svgs/password.svg +1 -0
  406. package/dist/icons/svgs/pedestrian-family.svg +1 -0
  407. package/dist/icons/svgs/pen.svg +1 -0
  408. package/dist/icons/svgs/printer.svg +1 -0
  409. package/dist/icons/svgs/procedure-order.svg +1 -0
  410. package/dist/icons/svgs/programs.svg +1 -0
  411. package/dist/icons/svgs/referral-order.svg +1 -0
  412. package/dist/icons/svgs/renew.svg +1 -0
  413. package/dist/icons/svgs/report.svg +1 -0
  414. package/dist/icons/svgs/reset.svg +1 -0
  415. package/dist/icons/svgs/save.svg +1 -0
  416. package/dist/icons/svgs/search.svg +1 -0
  417. package/dist/icons/svgs/settings.svg +1 -0
  418. package/dist/icons/svgs/shopping-cart--arrow-down.svg +1 -0
  419. package/dist/icons/svgs/shopping-cart.svg +1 -0
  420. package/dist/icons/svgs/sticky-note-add.svg +1 -0
  421. package/dist/icons/svgs/switcher.svg +1 -0
  422. package/dist/icons/svgs/syringe.svg +1 -0
  423. package/dist/icons/svgs/table-of-contents.svg +1 -0
  424. package/dist/icons/svgs/table.svg +1 -0
  425. package/dist/icons/svgs/time.svg +1 -0
  426. package/dist/icons/svgs/tools.svg +1 -0
  427. package/dist/icons/svgs/translate.svg +1 -0
  428. package/dist/icons/svgs/trash-can.svg +1 -0
  429. package/dist/icons/svgs/tree-view--alt.svg +1 -0
  430. package/dist/icons/svgs/user-avatar.svg +1 -0
  431. package/dist/icons/svgs/user-follow.svg +1 -0
  432. package/dist/icons/svgs/user-xray.svg +1 -0
  433. package/dist/icons/svgs/user.svg +1 -0
  434. package/dist/icons/svgs/view-off.svg +1 -0
  435. package/dist/icons/svgs/view.svg +1 -0
  436. package/dist/icons/svgs/warning.svg +1 -0
  437. package/dist/index.d.ts +2 -0
  438. package/dist/index.d.ts.map +1 -0
  439. package/dist/index.js +26 -0
  440. package/dist/internal.d.ts +43 -0
  441. package/dist/internal.d.ts.map +1 -0
  442. package/dist/internal.js +42 -0
  443. package/dist/left-nav/index.d.ts +24 -0
  444. package/dist/left-nav/index.d.ts.map +1 -0
  445. package/dist/left-nav/index.js +58 -0
  446. package/dist/left-nav/left-nav.module.scss +43 -0
  447. package/dist/location-picker/index.d.ts +2 -0
  448. package/dist/location-picker/index.d.ts.map +1 -0
  449. package/dist/location-picker/index.js +1 -0
  450. package/dist/location-picker/location-picker.component.d.ts +11 -0
  451. package/dist/location-picker/location-picker.component.d.ts.map +1 -0
  452. package/dist/location-picker/location-picker.component.js +114 -0
  453. package/dist/location-picker/location-picker.module.scss +71 -0
  454. package/dist/location-picker/location-picker.resource.d.ts +53 -0
  455. package/dist/location-picker/location-picker.resource.d.ts.map +1 -0
  456. package/dist/location-picker/location-picker.resource.js +98 -0
  457. package/dist/logo/_logo.scss +34 -0
  458. package/dist/logo/egen-logo-full.svg +1 -0
  459. package/dist/logo/egen-logo-icon.svg +1 -0
  460. package/dist/logo/egen-logo-partial.svg +1 -0
  461. package/dist/logo/egen-logo-white.svg +1 -0
  462. package/dist/logo/index.d.ts +8 -0
  463. package/dist/logo/index.d.ts.map +1 -0
  464. package/dist/logo/index.js +22 -0
  465. package/dist/master-detail/entity-detail-browser/entity-detail-browser.component.d.ts +30 -0
  466. package/dist/master-detail/entity-detail-browser/entity-detail-browser.component.d.ts.map +1 -0
  467. package/dist/master-detail/entity-detail-browser/entity-detail-browser.component.js +327 -0
  468. package/dist/master-detail/entity-detail-browser/entity-detail-browser.module.scss +335 -0
  469. package/dist/master-detail/entity-detail-browser/entity-detail-browser.types.d.ts +37 -0
  470. package/dist/master-detail/entity-detail-browser/entity-detail-browser.types.d.ts.map +1 -0
  471. package/dist/master-detail/entity-detail-browser/entity-detail-browser.types.js +1 -0
  472. package/dist/master-detail/entity-detail-browser/gradient-blur.component.d.ts +9 -0
  473. package/dist/master-detail/entity-detail-browser/gradient-blur.component.d.ts.map +1 -0
  474. package/dist/master-detail/entity-detail-browser/gradient-blur.component.js +16 -0
  475. package/dist/master-detail/entity-detail-browser/index.d.ts +4 -0
  476. package/dist/master-detail/entity-detail-browser/index.d.ts.map +1 -0
  477. package/dist/master-detail/entity-detail-browser/index.js +3 -0
  478. package/dist/master-detail/index.d.ts +2 -0
  479. package/dist/master-detail/index.d.ts.map +1 -0
  480. package/dist/master-detail/index.js +7 -0
  481. package/dist/modals/_modals.scss +13 -0
  482. package/dist/modals/index.d.ts +26 -0
  483. package/dist/modals/index.d.ts.map +1 -0
  484. package/dist/modals/index.js +173 -0
  485. package/dist/notifications/_actionable-notifications.scss +23 -0
  486. package/dist/notifications/_notifications.scss +22 -0
  487. package/dist/notifications/actionable-notification.component.d.ts +21 -0
  488. package/dist/notifications/actionable-notification.component.d.ts.map +1 -0
  489. package/dist/notifications/actionable-notification.component.js +26 -0
  490. package/dist/notifications/actionable-notification.stories.js +48 -0
  491. package/dist/notifications/active-actionable-notifications.component.d.ts +9 -0
  492. package/dist/notifications/active-actionable-notifications.component.d.ts.map +1 -0
  493. package/dist/notifications/active-actionable-notifications.component.js +21 -0
  494. package/dist/notifications/active-notifications.component.d.ts +9 -0
  495. package/dist/notifications/active-notifications.component.d.ts.map +1 -0
  496. package/dist/notifications/active-notifications.component.js +21 -0
  497. package/dist/notifications/index.d.ts +20 -0
  498. package/dist/notifications/index.d.ts.map +1 -0
  499. package/dist/notifications/index.js +78 -0
  500. package/dist/notifications/notification.component.d.ts +20 -0
  501. package/dist/notifications/notification.component.d.ts.map +1 -0
  502. package/dist/notifications/notification.component.js +15 -0
  503. package/dist/notifications/notification.stories.js +54 -0
  504. package/dist/numeric-datapoint/index.d.ts +4 -0
  505. package/dist/numeric-datapoint/index.d.ts.map +1 -0
  506. package/dist/numeric-datapoint/index.js +3 -0
  507. package/dist/numeric-datapoint/interpretation-utils.d.ts +27 -0
  508. package/dist/numeric-datapoint/interpretation-utils.d.ts.map +1 -0
  509. package/dist/numeric-datapoint/interpretation-utils.js +66 -0
  510. package/dist/numeric-datapoint/numeric-datapoint.component.d.ts +44 -0
  511. package/dist/numeric-datapoint/numeric-datapoint.component.d.ts.map +1 -0
  512. package/dist/numeric-datapoint/numeric-datapoint.component.js +110 -0
  513. package/dist/numeric-datapoint/numeric-datapoint.module.scss +141 -0
  514. package/dist/numeric-datapoint/use-concept-reference-range.d.ts +13 -0
  515. package/dist/numeric-datapoint/use-concept-reference-range.d.ts.map +1 -0
  516. package/dist/numeric-datapoint/use-concept-reference-range.js +31 -0
  517. package/dist/page-header/index.d.ts +2 -0
  518. package/dist/page-header/index.d.ts.map +1 -0
  519. package/dist/page-header/index.js +1 -0
  520. package/dist/page-header/page-header.component.d.ts +61 -0
  521. package/dist/page-header/page-header.component.d.ts.map +1 -0
  522. package/dist/page-header/page-header.component.js +89 -0
  523. package/dist/page-header/page-header.module.scss +28 -0
  524. package/dist/page-header/page-header.stories.js +21 -0
  525. package/dist/pagination/index.d.ts +2 -0
  526. package/dist/pagination/index.d.ts.map +1 -0
  527. package/dist/pagination/index.js +1 -0
  528. package/dist/pagination/pagination.component.d.ts +23 -0
  529. package/dist/pagination/pagination.component.d.ts.map +1 -0
  530. package/dist/pagination/pagination.component.js +49 -0
  531. package/dist/pagination/pagination.module.scss +66 -0
  532. package/dist/pagination/pagination.stories.js +45 -0
  533. package/dist/pictograms/index.d.ts +2 -0
  534. package/dist/pictograms/index.d.ts.map +1 -0
  535. package/dist/pictograms/index.js +1 -0
  536. package/dist/pictograms/pictogram-registration.d.ts +2 -0
  537. package/dist/pictograms/pictogram-registration.d.ts.map +1 -0
  538. package/dist/pictograms/pictogram-registration.js +62 -0
  539. package/dist/pictograms/pictograms.d.ts +66 -0
  540. package/dist/pictograms/pictograms.d.ts.map +1 -0
  541. package/dist/pictograms/pictograms.js +281 -0
  542. package/dist/pictograms/pictograms.module.scss +5 -0
  543. package/dist/pictograms/pictograms.stories.js +47 -0
  544. package/dist/pictograms/svgs/appointments.svg +1 -0
  545. package/dist/pictograms/svgs/assessment-1.svg +1 -0
  546. package/dist/pictograms/svgs/assessment-2.svg +1 -0
  547. package/dist/pictograms/svgs/blood-bank.svg +1 -0
  548. package/dist/pictograms/svgs/cardiology.svg +1 -0
  549. package/dist/pictograms/svgs/ct-scan.svg +1 -0
  550. package/dist/pictograms/svgs/dentistry.svg +1 -0
  551. package/dist/pictograms/svgs/emergency-department.svg +1 -0
  552. package/dist/pictograms/svgs/facility.svg +1 -0
  553. package/dist/pictograms/svgs/geriatrics.svg +1 -0
  554. package/dist/pictograms/svgs/gynaecology.svg +1 -0
  555. package/dist/pictograms/svgs/in-patient.svg +1 -0
  556. package/dist/pictograms/svgs/inventory.svg +1 -0
  557. package/dist/pictograms/svgs/labs-2.svg +1 -0
  558. package/dist/pictograms/svgs/labs.svg +1 -0
  559. package/dist/pictograms/svgs/obstetrics.svg +1 -0
  560. package/dist/pictograms/svgs/patient-search.svg +1 -0
  561. package/dist/pictograms/svgs/patients.svg +1 -0
  562. package/dist/pictograms/svgs/payments-desk.svg +1 -0
  563. package/dist/pictograms/svgs/pharmacy-1.svg +1 -0
  564. package/dist/pictograms/svgs/pharmacy-2.svg +1 -0
  565. package/dist/pictograms/svgs/registration.svg +1 -0
  566. package/dist/pictograms/svgs/service-queues.svg +1 -0
  567. package/dist/pictograms/svgs/transfer.svg +1 -0
  568. package/dist/pictograms/svgs/triage.svg +1 -0
  569. package/dist/pictograms/svgs/x-ray.svg +1 -0
  570. package/dist/public.d.ts +38 -0
  571. package/dist/public.d.ts.map +1 -0
  572. package/dist/public.js +34 -0
  573. package/dist/responsive-wrapper/index.d.ts +2 -0
  574. package/dist/responsive-wrapper/index.d.ts.map +1 -0
  575. package/dist/responsive-wrapper/index.js +1 -0
  576. package/dist/responsive-wrapper/responsive-wrapper.component.d.ts +12 -0
  577. package/dist/responsive-wrapper/responsive-wrapper.component.d.ts.map +1 -0
  578. package/dist/responsive-wrapper/responsive-wrapper.component.js +20 -0
  579. package/dist/responsive-wrapper/responsive-wrapper.stories.js +28 -0
  580. package/dist/selections/index.d.ts +3 -0
  581. package/dist/selections/index.d.ts.map +1 -0
  582. package/dist/selections/index.js +8 -0
  583. package/dist/selections/interactive-selector/index.d.ts +3 -0
  584. package/dist/selections/interactive-selector/index.d.ts.map +1 -0
  585. package/dist/selections/interactive-selector/index.js +2 -0
  586. package/dist/selections/interactive-selector/interactive-selector.component.d.ts +37 -0
  587. package/dist/selections/interactive-selector/interactive-selector.component.d.ts.map +1 -0
  588. package/dist/selections/interactive-selector/interactive-selector.component.js +154 -0
  589. package/dist/selections/interactive-selector/interactive-selector.module.scss +212 -0
  590. package/dist/selections/interactive-selector/interactive-selector.types.d.ts +32 -0
  591. package/dist/selections/interactive-selector/interactive-selector.types.d.ts.map +1 -0
  592. package/dist/selections/interactive-selector/interactive-selector.types.js +1 -0
  593. package/dist/selections/select-popover/index.d.ts +5 -0
  594. package/dist/selections/select-popover/index.d.ts.map +1 -0
  595. package/dist/selections/select-popover/index.js +4 -0
  596. package/dist/selections/select-popover/select-avatar.component.d.ts +9 -0
  597. package/dist/selections/select-popover/select-avatar.component.d.ts.map +1 -0
  598. package/dist/selections/select-popover/select-avatar.component.js +19 -0
  599. package/dist/selections/select-popover/select-content.component.d.ts +5 -0
  600. package/dist/selections/select-popover/select-content.component.d.ts.map +1 -0
  601. package/dist/selections/select-popover/select-content.component.js +198 -0
  602. package/dist/selections/select-popover/select-popover.module.scss +230 -0
  603. package/dist/selections/select-popover/select-popover.types.d.ts +56 -0
  604. package/dist/selections/select-popover/select-popover.types.d.ts.map +1 -0
  605. package/dist/selections/select-popover/select-popover.types.js +9 -0
  606. package/dist/selections/select-popover/select-trigger.component.d.ts +5 -0
  607. package/dist/selections/select-popover/select-trigger.component.d.ts.map +1 -0
  608. package/dist/selections/select-popover/select-trigger.component.js +46 -0
  609. package/dist/selections/select-popover/select.component.d.ts +19 -0
  610. package/dist/selections/select-popover/select.component.d.ts.map +1 -0
  611. package/dist/selections/select-popover/select.component.js +61 -0
  612. package/dist/sheet/index.d.ts +15 -0
  613. package/dist/sheet/index.d.ts.map +1 -0
  614. package/dist/sheet/index.js +13 -0
  615. package/dist/sheet/sheet-content.component.d.ts +21 -0
  616. package/dist/sheet/sheet-content.component.d.ts.map +1 -0
  617. package/dist/sheet/sheet-content.component.js +224 -0
  618. package/dist/sheet/sheet-overlay.component.d.ts +8 -0
  619. package/dist/sheet/sheet-overlay.component.d.ts.map +1 -0
  620. package/dist/sheet/sheet-overlay.component.js +36 -0
  621. package/dist/sheet/sheet-parts.component.d.ts +23 -0
  622. package/dist/sheet/sheet-parts.component.d.ts.map +1 -0
  623. package/dist/sheet/sheet-parts.component.js +20 -0
  624. package/dist/sheet/sheet-portal.component.d.ts +9 -0
  625. package/dist/sheet/sheet-portal.component.d.ts.map +1 -0
  626. package/dist/sheet/sheet-portal.component.js +17 -0
  627. package/dist/sheet/sheet-root.component.d.ts +25 -0
  628. package/dist/sheet/sheet-root.component.d.ts.map +1 -0
  629. package/dist/sheet/sheet-root.component.js +36 -0
  630. package/dist/sheet/sheet-trigger.component.d.ts +15 -0
  631. package/dist/sheet/sheet-trigger.component.d.ts.map +1 -0
  632. package/dist/sheet/sheet-trigger.component.js +45 -0
  633. package/dist/sheet/sheet.context.d.ts +16 -0
  634. package/dist/sheet/sheet.context.d.ts.map +1 -0
  635. package/dist/sheet/sheet.context.js +9 -0
  636. package/dist/sheet/sheet.module.scss +143 -0
  637. package/dist/snackbars/_snackbars.scss +31 -0
  638. package/dist/snackbars/active-snackbar.component.d.ts +10 -0
  639. package/dist/snackbars/active-snackbar.component.d.ts.map +1 -0
  640. package/dist/snackbars/active-snackbar.component.js +25 -0
  641. package/dist/snackbars/index.d.ts +14 -0
  642. package/dist/snackbars/index.d.ts.map +1 -0
  643. package/dist/snackbars/index.js +37 -0
  644. package/dist/snackbars/snackbar.component.d.ts +23 -0
  645. package/dist/snackbars/snackbar.component.d.ts.map +1 -0
  646. package/dist/snackbars/snackbar.component.js +64 -0
  647. package/dist/snackbars/snackbar.module.scss +30 -0
  648. package/dist/snackbars/snackbar.stories.js +68 -0
  649. package/dist/spinner/_spinner.scss +14 -0
  650. package/dist/spinner/index.d.ts +3 -0
  651. package/dist/spinner/index.d.ts.map +1 -0
  652. package/dist/spinner/index.js +10 -0
  653. package/dist/staggered-menu/index.d.ts +3 -0
  654. package/dist/staggered-menu/index.d.ts.map +1 -0
  655. package/dist/staggered-menu/index.js +2 -0
  656. package/dist/staggered-menu/menu-toggle-button.component.d.ts +22 -0
  657. package/dist/staggered-menu/menu-toggle-button.component.d.ts.map +1 -0
  658. package/dist/staggered-menu/menu-toggle-button.component.js +235 -0
  659. package/dist/staggered-menu/staggered-menu-panel.component.d.ts +57 -0
  660. package/dist/staggered-menu/staggered-menu-panel.component.d.ts.map +1 -0
  661. package/dist/staggered-menu/staggered-menu-panel.component.js +389 -0
  662. package/dist/svg-utils.d.ts +17 -0
  663. package/dist/svg-utils.d.ts.map +1 -0
  664. package/dist/svg-utils.js +69 -0
  665. package/dist/test-utils.d.ts +7 -0
  666. package/dist/test-utils.d.ts.map +1 -0
  667. package/dist/test-utils.js +17 -0
  668. package/dist/toasts/_toasts.scss +22 -0
  669. package/dist/toasts/active-toasts.component.d.ts +10 -0
  670. package/dist/toasts/active-toasts.component.d.ts.map +1 -0
  671. package/dist/toasts/active-toasts.component.js +27 -0
  672. package/dist/toasts/index.d.ts +14 -0
  673. package/dist/toasts/index.d.ts.map +1 -0
  674. package/dist/toasts/index.js +39 -0
  675. package/dist/toasts/toast-kind.config.d.ts +15 -0
  676. package/dist/toasts/toast-kind.config.d.ts.map +1 -0
  677. package/dist/toasts/toast-kind.config.js +33 -0
  678. package/dist/toasts/toast-progress-bar.component.d.ts +13 -0
  679. package/dist/toasts/toast-progress-bar.component.d.ts.map +1 -0
  680. package/dist/toasts/toast-progress-bar.component.js +36 -0
  681. package/dist/toasts/toast.component.d.ts +24 -0
  682. package/dist/toasts/toast.component.d.ts.map +1 -0
  683. package/dist/toasts/toast.component.js +175 -0
  684. package/dist/toasts/toast.module.scss +181 -0
  685. package/dist/toasts/toast.stories.js +112 -0
  686. package/dist/toasts/toast.types.d.ts +45 -0
  687. package/dist/toasts/toast.types.d.ts.map +1 -0
  688. package/dist/toasts/toast.types.js +1 -0
  689. package/dist/utils.d.ts +7 -0
  690. package/dist/utils.d.ts.map +1 -0
  691. package/dist/utils.js +17 -0
  692. package/dist/workspaces/action-menu-button/action-menu-button.component.d.ts +16 -0
  693. package/dist/workspaces/action-menu-button/action-menu-button.component.d.ts.map +1 -0
  694. package/dist/workspaces/action-menu-button/action-menu-button.component.js +79 -0
  695. package/dist/workspaces/action-menu-button/action-menu-button.module.scss +111 -0
  696. package/dist/workspaces/container/action-menu.component.d.ts +10 -0
  697. package/dist/workspaces/container/action-menu.component.d.ts.map +1 -0
  698. package/dist/workspaces/container/action-menu.component.js +40 -0
  699. package/dist/workspaces/container/action-menu.module.scss +89 -0
  700. package/dist/workspaces/container/workspace-container.component.d.ts +68 -0
  701. package/dist/workspaces/container/workspace-container.component.d.ts.map +1 -0
  702. package/dist/workspaces/container/workspace-container.component.js +227 -0
  703. package/dist/workspaces/container/workspace-renderer.component.d.ts +9 -0
  704. package/dist/workspaces/container/workspace-renderer.component.d.ts.map +1 -0
  705. package/dist/workspaces/container/workspace-renderer.component.js +46 -0
  706. package/dist/workspaces/container/workspace.module.scss +276 -0
  707. package/dist/workspaces/index.d.ts +6 -0
  708. package/dist/workspaces/index.d.ts.map +1 -0
  709. package/dist/workspaces/index.js +5 -0
  710. package/dist/workspaces/notification/workspace-notification.component.d.ts +7 -0
  711. package/dist/workspaces/notification/workspace-notification.component.d.ts.map +1 -0
  712. package/dist/workspaces/notification/workspace-notification.component.js +89 -0
  713. package/dist/workspaces/notification/workspace-notification.module.scss +5 -0
  714. package/dist/workspaces/public.d.ts +5 -0
  715. package/dist/workspaces/public.d.ts.map +1 -0
  716. package/dist/workspaces/public.js +3 -0
  717. package/dist/workspaces/workspace-sidebar-store/useWorkspaceGroupStore.d.ts +12 -0
  718. package/dist/workspaces/workspace-sidebar-store/useWorkspaceGroupStore.d.ts.map +1 -0
  719. package/dist/workspaces/workspace-sidebar-store/useWorkspaceGroupStore.js +38 -0
  720. package/dist/workspaces/workspaces.d.ts +254 -0
  721. package/dist/workspaces/workspaces.d.ts.map +1 -0
  722. package/dist/workspaces/workspaces.js +504 -0
  723. package/dist/workspaces2/action-menu2/action-menu-button2.component.d.ts +38 -0
  724. package/dist/workspaces2/action-menu2/action-menu-button2.component.d.ts.map +1 -0
  725. package/dist/workspaces2/action-menu2/action-menu-button2.component.js +112 -0
  726. package/dist/workspaces2/action-menu2/action-menu-button2.module.scss +113 -0
  727. package/dist/workspaces2/action-menu2/action-menu2.component.d.ts +17 -0
  728. package/dist/workspaces2/action-menu2/action-menu2.component.d.ts.map +1 -0
  729. package/dist/workspaces2/action-menu2/action-menu2.component.js +46 -0
  730. package/dist/workspaces2/action-menu2/action-menu2.module.scss +87 -0
  731. package/dist/workspaces2/active-workspace-window.component.d.ts +12 -0
  732. package/dist/workspaces2/active-workspace-window.component.d.ts.map +1 -0
  733. package/dist/workspaces2/active-workspace-window.component.js +150 -0
  734. package/dist/workspaces2/index.d.ts +4 -0
  735. package/dist/workspaces2/index.d.ts.map +1 -0
  736. package/dist/workspaces2/index.js +3 -0
  737. package/dist/workspaces2/scope-utils.d.ts +10 -0
  738. package/dist/workspaces2/scope-utils.d.ts.map +1 -0
  739. package/dist/workspaces2/scope-utils.js +30 -0
  740. package/dist/workspaces2/workspace-windows-and-menu.component.d.ts +2 -0
  741. package/dist/workspaces2/workspace-windows-and-menu.component.d.ts.map +1 -0
  742. package/dist/workspaces2/workspace-windows-and-menu.component.js +82 -0
  743. package/dist/workspaces2/workspace-windows-and-menu.module.scss +32 -0
  744. package/dist/workspaces2/workspace2-close-prompt.modal.d.ts +12 -0
  745. package/dist/workspaces2/workspace2-close-prompt.modal.d.ts.map +1 -0
  746. package/dist/workspaces2/workspace2-close-prompt.modal.js +45 -0
  747. package/dist/workspaces2/workspace2-close-prompt.module.scss +8 -0
  748. package/dist/workspaces2/workspace2.component.d.ts +51 -0
  749. package/dist/workspaces2/workspace2.component.d.ts.map +1 -0
  750. package/dist/workspaces2/workspace2.component.js +160 -0
  751. package/dist/workspaces2/workspace2.d.ts +187 -0
  752. package/dist/workspaces2/workspace2.d.ts.map +1 -0
  753. package/dist/workspaces2/workspace2.js +566 -0
  754. package/dist/workspaces2/workspace2.module.scss +228 -0
  755. package/mock-jest.tsx +220 -0
  756. package/mock.tsx +222 -0
  757. package/package.json +146 -0
  758. package/src/_vars.scss +111 -0
@@ -0,0 +1,37 @@
1
+ /** @category EntityDetailBrowser */
2
+ import type React from 'react';
3
+ export interface EntityDetailBrowserItem {
4
+ id: string | number;
5
+ title: React.ReactNode;
6
+ /** Étiquette secondaire libre affichée à droite de l'item (ex. durée, date, quantité...). */
7
+ meta?: React.ReactNode;
8
+ /** Contenu affiché en tête du panneau de détail (ex. auteurs, contributeurs...). ReactNode libre — inclut ses propres icônes si besoin. */
9
+ credits?: React.ReactNode;
10
+ /** Contenu du panneau de détail. Si omis, l'item n'ouvre aucun détail au clic. */
11
+ detail?: React.ReactNode;
12
+ }
13
+ export interface EntityDetailBrowserRelatedEntity {
14
+ name: React.ReactNode;
15
+ photoUrl: string;
16
+ category?: React.ReactNode;
17
+ itemCountLabel?: React.ReactNode;
18
+ statLabel?: React.ReactNode;
19
+ description?: React.ReactNode;
20
+ }
21
+ export interface EntityDetailBrowserProps {
22
+ /** Titre de l'entité principale. */
23
+ title: React.ReactNode;
24
+ coverImageUrl: string;
25
+ category?: React.ReactNode;
26
+ itemCountLabel?: React.ReactNode;
27
+ meta?: React.ReactNode;
28
+ /** Sous-éléments consultables — aucune donnée statique, tout vient d'ici. */
29
+ items: EntityDetailBrowserItem[];
30
+ /** Entité liée (ex. auteur, propriétaire, catégorie parente...) — le bouton bascule ce panneau si fourni. */
31
+ relatedEntity?: EntityDetailBrowserRelatedEntity;
32
+ /** Appelé au clic sur le bouton "options" d'un item. */
33
+ onItemOptionsClick?: (item: EntityDetailBrowserItem) => void;
34
+ className?: string;
35
+ style?: React.CSSProperties;
36
+ }
37
+ //# sourceMappingURL=entity-detail-browser.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-detail-browser.types.d.ts","sourceRoot":"","sources":["../../../src/master-detail/entity-detail-browser/entity-detail-browser.types.ts"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,6FAA6F;IAC7F,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,2IAA2I;IAC3I,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,kFAAkF;IAClF,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,MAAM,WAAW,gCAAgC;IAC/C,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B;AAED,MAAM,WAAW,wBAAwB;IACvC,oCAAoC;IACpC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,6EAA6E;IAC7E,KAAK,EAAE,uBAAuB,EAAE,CAAC;IACjC,6GAA6G;IAC7G,aAAa,CAAC,EAAE,gCAAgC,CAAC;IACjD,wDAAwD;IACxD,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,uBAAuB,KAAK,IAAI,CAAC;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B"}
@@ -0,0 +1 @@
1
+ /** @category EntityDetailBrowser */ export { };
@@ -0,0 +1,9 @@
1
+ /** @category EntityDetailBrowser */
2
+ import React from 'react';
3
+ /**
4
+ * Effet de flou progressif (8 couches, flou croissant + masque en dégradé) —
5
+ * technique classique pour estomper un contenu qui déborde sous un panneau,
6
+ * sans dégradé de couleur opaque qui masquerait brutalement le texte.
7
+ */
8
+ export declare const GradientBlur: React.FC;
9
+ //# sourceMappingURL=gradient-blur.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradient-blur.component.d.ts","sourceRoot":"","sources":["../../../src/master-detail/entity-detail-browser/gradient-blur.component.tsx"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAMhC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /** @category EntityDetailBrowser */ import React from "react";
3
+ import styles from "./entity-detail-browser.module.scss";
4
+ /**
5
+ * Effet de flou progressif (8 couches, flou croissant + masque en dégradé) —
6
+ * technique classique pour estomper un contenu qui déborde sous un panneau,
7
+ * sans dégradé de couleur opaque qui masquerait brutalement le texte.
8
+ */ export const GradientBlur = ()=>/*#__PURE__*/ _jsx("div", {
9
+ className: styles.gradientBlur,
10
+ "aria-hidden": "true",
11
+ children: Array.from({
12
+ length: 8
13
+ }, (_, i)=>/*#__PURE__*/ _jsx("div", {
14
+ className: styles.gradientBlurLayer
15
+ }, i))
16
+ });
@@ -0,0 +1,4 @@
1
+ export * from './entity-detail-browser.component.js';
2
+ export * from './entity-detail-browser.types.js';
3
+ export * from './gradient-blur.component.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/master-detail/entity-detail-browser/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./entity-detail-browser.component.js";
2
+ export * from "./entity-detail-browser.types.js";
3
+ export * from "./gradient-blur.component.js";
@@ -0,0 +1,2 @@
1
+ export * from './entity-detail-browser/index.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/master-detail/index.ts"],"names":[],"mappings":"AAMA,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,7 @@
1
+ // ============================================================================
2
+ // Catégorie « master-detail »
3
+ // Composants "entité principale + liste de sous-éléments consultables" —
4
+ // panneau de détail positionné dynamiquement sur l'item cliqué, panneau
5
+ // d'entité liée en overlay. Générique (pas de terme lié à un domaine).
6
+ // ============================================================================
7
+ export * from "./entity-detail-browser/index.js";
@@ -0,0 +1,13 @@
1
+ .egen-modals-container {
2
+ position: fixed;
3
+ width: 100vw;
4
+ height: 100vh;
5
+ background-color: rgba(0, 0, 0, 0.5);
6
+ z-index: 9001;
7
+ visibility: hidden;
8
+ top: 0;
9
+ left: 0;
10
+ display: flex;
11
+ justify-content: center;
12
+ align-items: center;
13
+ }
@@ -0,0 +1,26 @@
1
+ type ModalSize = 'xs' | 'sm' | 'md' | 'lg';
2
+ export interface ModalProps {
3
+ size?: ModalSize;
4
+ [key: string]: unknown;
5
+ }
6
+ /**
7
+ * @internal
8
+ * Sets up the modals system. Should be called in the app shell during initialization.
9
+ */
10
+ export declare function setupModals(modalContainer: HTMLElement | null): void;
11
+ /**
12
+ * Shows a modal dialog.
13
+ *
14
+ * The modal must have been registered by name. This should be done in the `routes.json` file of the
15
+ * app that defines the modal. Note that both the `<ModalHeader>` and `<ModalBody>` should be at the
16
+ * top level of the modal component (wrapped in a React.Fragment), or else the content of the modal
17
+ * body might not vertical-scroll properly.
18
+ *
19
+ * @param modalName The name of the modal to show.
20
+ * @param props The optional props to provide to the modal.
21
+ * @param onClose The optional callback to call when the modal is closed.
22
+ * @returns The dispose function to force closing the modal dialog.
23
+ */
24
+ export declare function showModal(modalName: string, props?: ModalProps, onClose?: () => void): () => void;
25
+ export {};
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modals/index.tsx"],"names":[],"mappings":"AAOA,KAAK,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAiKD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,cAAc,EAAE,WAAW,GAAG,IAAI,QAO7D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,GAAE,UAAe,EAAE,OAAO,GAAE,MAAM,IAAe,cA0BlG"}
@@ -0,0 +1,173 @@
1
+ /** @module @category UI */ import { mountRootParcel } from "single-spa";
2
+ import { createGlobalStore } from "@egen-civitas/esm-state";
3
+ import { getModalRegistration } from "@egen-civitas/esm-extensions";
4
+ import { reportError } from "@egen-civitas/esm-error-handling";
5
+ const modalStore = createGlobalStore('modalState', {
6
+ modalContainer: null,
7
+ modalStack: []
8
+ });
9
+ function createModalFrame({ size }) {
10
+ const modalFrame = document.createElement('div');
11
+ modalFrame.className = `cds--modal-container cds--modal-container--${size}`;
12
+ modalFrame.setAttribute('role', 'dialog');
13
+ modalFrame.setAttribute('tabindex', '-1');
14
+ modalFrame.setAttribute('aria-modal', 'true');
15
+ return modalFrame;
16
+ }
17
+ let parcelCount = 0;
18
+ /**
19
+ * Mounts the named modal into the specified DOM element
20
+ */ async function renderModalIntoDOM(domElement, modalName, additionalProps = {}) {
21
+ const modalRegistration = getModalRegistration(modalName);
22
+ let parcel = null;
23
+ if (domElement) {
24
+ if (!modalRegistration) {
25
+ throw Error(`No modal named '${modalName}' has been registered.`);
26
+ }
27
+ const { load } = modalRegistration;
28
+ const lifecycle = await load();
29
+ const id = parcelCount++;
30
+ parcel = mountRootParcel({
31
+ ...lifecycle,
32
+ name: `${modalName}-${id}`
33
+ }, {
34
+ ...additionalProps,
35
+ domElement
36
+ });
37
+ } else {
38
+ reportError(`Failed to launch modal. Please notify your administrator. Modal name: ${modalName}`);
39
+ }
40
+ return parcel;
41
+ }
42
+ const original = window.getComputedStyle(document.body).overflow;
43
+ function handleModalStateUpdate({ modalStack, modalContainer }) {
44
+ if (!modalContainer) {
45
+ return;
46
+ }
47
+ if (modalStack.length) {
48
+ // ensure the container is visible
49
+ if (!modalContainer.style.visibility) {
50
+ addEventListener('keydown', handleEscKey);
51
+ document.body.style.overflow = 'hidden';
52
+ modalContainer.style.visibility = 'unset';
53
+ }
54
+ modalStack.forEach((instance, index)=>{
55
+ switch(instance.state){
56
+ case 'NEW':
57
+ {
58
+ const modalFrame = createModalFrame({
59
+ size: instance.props?.size ?? 'md'
60
+ });
61
+ instance.container = modalFrame;
62
+ renderModalIntoDOM(modalFrame, instance.modalName, instance.props).then((parcel)=>{
63
+ instance.parcel = parcel;
64
+ instance.state = 'MOUNTED';
65
+ modalContainer.prepend(modalFrame);
66
+ modalFrame.style.visibility = 'unset';
67
+ });
68
+ break;
69
+ }
70
+ case 'MOUNTED':
71
+ if (instance.container) {
72
+ instance.container.style.visibility = index ? 'hidden' : 'unset';
73
+ }
74
+ break;
75
+ case 'TO_BE_DELETED':
76
+ instance.onClose();
77
+ instance.parcel?.unmount?.();
78
+ instance.container?.remove();
79
+ setTimeout(()=>{
80
+ modalStore.setState({
81
+ modalContainer,
82
+ modalStack: modalStack.filter((x)=>x !== instance)
83
+ });
84
+ }, 0);
85
+ break;
86
+ }
87
+ });
88
+ } else {
89
+ modalContainer.style.removeProperty('visibility');
90
+ document.body.style.overflow = original;
91
+ removeEventListener('keydown', handleEscKey);
92
+ }
93
+ }
94
+ function openInstance(instance) {
95
+ const state = modalStore.getState();
96
+ const modalStack = [
97
+ instance,
98
+ ...state.modalStack
99
+ ];
100
+ modalStore.setState({
101
+ ...state,
102
+ modalStack
103
+ });
104
+ }
105
+ function closeInstance(instance) {
106
+ const state = modalStore.getState();
107
+ const modalStack = state.modalStack.map((x)=>x === instance ? {
108
+ ...x,
109
+ state: 'TO_BE_DELETED'
110
+ } : x);
111
+ modalStore.setState({
112
+ ...state,
113
+ modalStack
114
+ });
115
+ }
116
+ function closeHighestInstance() {
117
+ const state = modalStore.getState();
118
+ const [top] = state.modalStack;
119
+ if (top) {
120
+ closeInstance(top);
121
+ }
122
+ }
123
+ function handleEscKey(e) {
124
+ if (e.key === 'Escape') {
125
+ closeHighestInstance();
126
+ }
127
+ }
128
+ /**
129
+ * @internal
130
+ * Sets up the modals system. Should be called in the app shell during initialization.
131
+ */ export function setupModals(modalContainer) {
132
+ modalStore.subscribe(handleModalStateUpdate);
133
+ modalStore.setState({
134
+ ...modalStore.getState(),
135
+ modalContainer
136
+ });
137
+ }
138
+ /**
139
+ * Shows a modal dialog.
140
+ *
141
+ * The modal must have been registered by name. This should be done in the `routes.json` file of the
142
+ * app that defines the modal. Note that both the `<ModalHeader>` and `<ModalBody>` should be at the
143
+ * top level of the modal component (wrapped in a React.Fragment), or else the content of the modal
144
+ * body might not vertical-scroll properly.
145
+ *
146
+ * @param modalName The name of the modal to show.
147
+ * @param props The optional props to provide to the modal.
148
+ * @param onClose The optional callback to call when the modal is closed.
149
+ * @returns The dispose function to force closing the modal dialog.
150
+ */ export function showModal(modalName, props = {}, onClose = ()=>{}) {
151
+ const close = ()=>{
152
+ const state = modalStore.getState();
153
+ const item = state.modalStack.find((m)=>m.onClose === onClose);
154
+ if (item) {
155
+ closeInstance(item);
156
+ }
157
+ };
158
+ const modalRegistration = getModalRegistration(modalName);
159
+ if (!modalRegistration) {
160
+ reportError(`Failed to launch modal. Please notify your administrator. Modal name: "${modalName}"`);
161
+ } else {
162
+ openInstance({
163
+ state: 'NEW',
164
+ onClose,
165
+ modalName,
166
+ props: {
167
+ close,
168
+ ...props
169
+ }
170
+ });
171
+ }
172
+ return close;
173
+ }
@@ -0,0 +1,23 @@
1
+ @use '@carbon/layout';
2
+
3
+ .egen-actionable-notifications-container {
4
+ z-index: 1000;
5
+ position: fixed;
6
+ width: 100%;
7
+ display: flex;
8
+ bottom: layout.$spacing-07;
9
+ display: flex;
10
+ flex-direction: column;
11
+ align-items: center;
12
+ justify-content: center;
13
+ }
14
+
15
+ .egen-actionable-notification-mounting,
16
+ .egen-actionable-notification-mounting > * {
17
+ padding: 0;
18
+ }
19
+
20
+ .egen-actionable-notification-closing,
21
+ .egen-actionable-notification-mounting {
22
+ opacity: 0;
23
+ }
@@ -0,0 +1,22 @@
1
+ @use '@carbon/layout';
2
+
3
+ .egen-inline-notifications-container {
4
+ z-index: 100000;
5
+ position: fixed;
6
+ width: 100%;
7
+ bottom: layout.$spacing-07;
8
+ display: flex;
9
+ flex-direction: column;
10
+ align-items: center;
11
+ justify-content: center;
12
+ }
13
+
14
+ .egen-notification-mounting,
15
+ .egen-notification-mounting > * {
16
+ padding: 0;
17
+ }
18
+
19
+ .egen-notification-closing,
20
+ .egen-notification-mounting {
21
+ opacity: 0;
22
+ }
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ /** @module @category UI */
3
+ export interface ActionableNotificationProps {
4
+ notification: ActionableNotificationMeta;
5
+ }
6
+ export interface ActionableNotificationDescriptor {
7
+ actionButtonLabel: string;
8
+ onActionButtonClick(): void;
9
+ onClose?(): void;
10
+ subtitle: string;
11
+ title?: string;
12
+ kind?: ActionableNotificationType | string;
13
+ critical?: boolean;
14
+ progressActionLabel?: string;
15
+ }
16
+ export interface ActionableNotificationMeta extends ActionableNotificationDescriptor {
17
+ id: number;
18
+ }
19
+ export type ActionableNotificationType = 'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt';
20
+ export declare const ActionableNotificationComponent: React.FC<ActionableNotificationProps>;
21
+ //# sourceMappingURL=actionable-notification.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionable-notification.component.d.ts","sourceRoot":"","sources":["../../src/notifications/actionable-notification.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,2BAA2B;AAE3B,MAAM,WAAW,2BAA2B;IAC1C,YAAY,EAAE,0BAA0B,CAAC;CAC1C;AAED,MAAM,WAAW,gCAAgC;IAC/C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,IAAI,IAAI,CAAC;IAC5B,OAAO,CAAC,IAAI,IAAI,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,0BAA0B,GAAG,MAAM,CAAC;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,0BAA2B,SAAQ,gCAAgC;IAClF,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,0BAA0B,GAAG,OAAO,GAAG,MAAM,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC;AAElH,eAAO,MAAM,+BAA+B,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAoCjF,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React, { useState } from "react";
3
+ import { ActionableNotification } from "@carbon/react";
4
+ import { getCoreTranslation } from "@egen-civitas/esm-translations";
5
+ export const ActionableNotificationComponent = ({ notification })=>{
6
+ const { actionButtonLabel, onActionButtonClick = ()=>{}, subtitle, kind, title, critical, progressActionLabel, id, ...props } = notification;
7
+ const [actionText, setActionText] = useState(actionButtonLabel);
8
+ const handleActionClick = ()=>{
9
+ onActionButtonClick();
10
+ if (progressActionLabel) {
11
+ setActionText(progressActionLabel);
12
+ }
13
+ };
14
+ return /*#__PURE__*/ _jsx(ActionableNotification, {
15
+ kind: kind || 'info',
16
+ actionButtonLabel: actionText,
17
+ ariaLabel: getCoreTranslation('closesActionableNotification', 'Closes actionable notification'),
18
+ onActionButtonClick: handleActionClick,
19
+ statusIconDescription: getCoreTranslation('actionableNotification', 'Actionable notification'),
20
+ subtitle: subtitle,
21
+ title: title,
22
+ lowContrast: critical,
23
+ inline: true,
24
+ ...props
25
+ });
26
+ };
@@ -0,0 +1,48 @@
1
+ import React from "react";
2
+ import { ActionableNotificationComponent } from "./actionable-notification.component.js";
3
+ const meta = {
4
+ title: 'Components/ActionableNotification',
5
+ component: ActionableNotificationComponent,
6
+ tags: [
7
+ 'autodocs'
8
+ ],
9
+ parameters: {
10
+ layout: 'padded'
11
+ }
12
+ };
13
+ export default meta;
14
+ export const Default = {
15
+ args: {
16
+ notification: {
17
+ id: 1,
18
+ title: 'Allergies',
19
+ subtitle: 'No allergies have been recorded for this patient.',
20
+ actionButtonLabel: 'Record allergies',
21
+ onActionButtonClick: ()=>{}
22
+ }
23
+ }
24
+ };
25
+ export const WithProgressLabel = {
26
+ args: {
27
+ notification: {
28
+ id: 2,
29
+ title: 'Visit ended',
30
+ subtitle: 'The current visit has been ended.',
31
+ actionButtonLabel: 'Undo',
32
+ progressActionLabel: 'Undoing...',
33
+ onActionButtonClick: ()=>{}
34
+ }
35
+ }
36
+ };
37
+ export const ErrorKind = {
38
+ args: {
39
+ notification: {
40
+ id: 3,
41
+ title: 'Error',
42
+ subtitle: 'Failed to submit the form. Please try again.',
43
+ kind: 'error',
44
+ actionButtonLabel: 'Retry',
45
+ onActionButtonClick: ()=>{}
46
+ }
47
+ }
48
+ };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { Subject } from 'rxjs';
3
+ import type { ActionableNotificationMeta } from './actionable-notification.component.js';
4
+ interface ActionableActiveNotificationProps {
5
+ subject: Subject<ActionableNotificationMeta>;
6
+ }
7
+ declare const ActionableActiveNotifications: React.FC<ActionableActiveNotificationProps>;
8
+ export default ActionableActiveNotifications;
9
+ //# sourceMappingURL=active-actionable-notifications.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"active-actionable-notifications.component.d.ts","sourceRoot":"","sources":["../../src/notifications/active-actionable-notifications.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AAGzF,UAAU,iCAAiC;IACzC,OAAO,EAAE,OAAO,CAAC,0BAA0B,CAAC,CAAC;CAC9C;AAED,QAAA,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CA4B9E,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import React, { useEffect, useState } from "react";
3
+ import { ActionableNotificationComponent } from "./actionable-notification.component.js";
4
+ const ActionableActiveNotifications = ({ subject })=>{
5
+ const [notifications, setNotifications] = useState([]);
6
+ useEffect(()=>{
7
+ const subscription = subject.subscribe((notification)=>setNotifications((notifications)=>[
8
+ ...notifications.filter((n)=>n.subtitle !== notification.subtitle || n.actionButtonLabel !== notification.actionButtonLabel || n.onActionButtonClick !== notification.onActionButtonClick || n.kind !== notification.kind || n.title !== notification.title),
9
+ notification
10
+ ]));
11
+ return ()=>subscription.unsubscribe();
12
+ }, [
13
+ subject
14
+ ]);
15
+ return /*#__PURE__*/ _jsx(_Fragment, {
16
+ children: notifications.map((notification)=>/*#__PURE__*/ _jsx(ActionableNotificationComponent, {
17
+ notification: notification
18
+ }, notification.id))
19
+ });
20
+ };
21
+ export default ActionableActiveNotifications;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { Subject } from 'rxjs';
3
+ import type { InlineNotificationMeta } from './notification.component.js';
4
+ interface ActiveNotificationProps {
5
+ subject: Subject<InlineNotificationMeta>;
6
+ }
7
+ declare const ActiveNotifications: React.FC<ActiveNotificationProps>;
8
+ export default ActiveNotifications;
9
+ //# sourceMappingURL=active-notifications.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"active-notifications.component.d.ts","sourceRoot":"","sources":["../../src/notifications/active-notifications.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAG1E,UAAU,uBAAuB;IAC/B,OAAO,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;CAC1C;AAED,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA2B1D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import React, { useEffect, useState } from "react";
3
+ import { Notification } from "./notification.component.js";
4
+ const ActiveNotifications = ({ subject })=>{
5
+ const [notifications, setNotifications] = useState([]);
6
+ useEffect(()=>{
7
+ const subscription = subject.subscribe((notification)=>setNotifications((notifications)=>[
8
+ ...notifications.filter((n)=>n.description !== notification.description || n.action !== notification.action || n.kind !== notification.kind || n.title !== notification.title),
9
+ notification
10
+ ]));
11
+ return ()=>subscription.unsubscribe();
12
+ }, [
13
+ subject
14
+ ]);
15
+ return /*#__PURE__*/ _jsx(_Fragment, {
16
+ children: notifications.map((notification)=>/*#__PURE__*/ _jsx(Notification, {
17
+ notification: notification
18
+ }, notification.id))
19
+ });
20
+ };
21
+ export default ActiveNotifications;
@@ -0,0 +1,20 @@
1
+ import type { NotificationDescriptor } from './notification.component.js';
2
+ import type { ActionableNotificationDescriptor } from './actionable-notification.component.js';
3
+ /**
4
+ * Starts a rendering host for inline notifications. Should only be used by the app shell.
5
+ * Under normal conditions there is no need to use this function.
6
+ * @param target The container target that hosts the inline notifications.
7
+ */
8
+ export declare function renderInlineNotifications(target: HTMLElement | null): void;
9
+ /**
10
+ * Displays an inline notification in the UI.
11
+ * @param notification The description of the notification to display.
12
+ */
13
+ export declare function showNotification(notification: NotificationDescriptor): void;
14
+ export declare function renderActionableNotifications(target: HTMLElement | null): void;
15
+ /**
16
+ * Displays an actionable notification in the UI.
17
+ * @param notification The description of the notification to display.
18
+ */
19
+ export declare function showActionableNotification(notification: ActionableNotificationDescriptor): void;
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/notifications/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAA0B,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAClG,OAAO,KAAK,EAA8B,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAY3H;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,QAKnE;AAYD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,sBAAsB,QAkBpE;AAID,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,QAKvE;AAUD;;;GAGG;AAEH,wBAAgB,0BAA0B,CAAC,YAAY,EAAE,gCAAgC,QAYxF"}
@@ -0,0 +1,78 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /** @module @category UI */ import React from "react";
3
+ import { Subject } from "rxjs";
4
+ import ActiveNotifications from "./active-notifications.component.js";
5
+ import ActionableActiveNotifications from "./active-actionable-notifications.component.js";
6
+ import isEmpty from "lodash-es/isEmpty";
7
+ import { createRoot } from "react-dom/client";
8
+ const inlineNotificationsSubject = new Subject();
9
+ let notificationId = 0;
10
+ const actionableNotificationsSubject = new Subject();
11
+ let actionableNotificationId = 0;
12
+ /**
13
+ * Starts a rendering host for inline notifications. Should only be used by the app shell.
14
+ * Under normal conditions there is no need to use this function.
15
+ * @param target The container target that hosts the inline notifications.
16
+ */ export function renderInlineNotifications(target) {
17
+ if (target) {
18
+ const root = createRoot(target);
19
+ root.render(/*#__PURE__*/ _jsx(ActiveNotifications, {
20
+ subject: inlineNotificationsSubject
21
+ }));
22
+ }
23
+ }
24
+ function isNotEmpty(description) {
25
+ if (typeof description === 'string') {
26
+ return description.trim().length > 0;
27
+ } else if (typeof description === 'object') {
28
+ return description instanceof Error || !isEmpty(description);
29
+ }
30
+ return false;
31
+ }
32
+ /**
33
+ * Displays an inline notification in the UI.
34
+ * @param notification The description of the notification to display.
35
+ */ export function showNotification(notification) {
36
+ if (notification && isNotEmpty(notification.description)) {
37
+ if (notification.description instanceof Error) {
38
+ notification.description = notification.description.toLocaleString();
39
+ }
40
+ setTimeout(()=>{
41
+ // always use in subsequent cycle
42
+ inlineNotificationsSubject.next({
43
+ ...notification,
44
+ id: notificationId++
45
+ });
46
+ }, 0);
47
+ } else {
48
+ console.error(`showNotification must be called with an object having a 'description' property that is a non-empty string or object`);
49
+ }
50
+ }
51
+ // Actionable Notifications
52
+ export function renderActionableNotifications(target) {
53
+ if (target) {
54
+ const root = createRoot(target);
55
+ root.render(/*#__PURE__*/ _jsx(ActionableActiveNotifications, {
56
+ subject: actionableNotificationsSubject
57
+ }));
58
+ }
59
+ }
60
+ function isNotActionableNotificationEmpty(subtitle) {
61
+ return typeof subtitle === 'string' ? subtitle.trim().length > 0 : typeof subtitle === 'object' ? !isEmpty(subtitle) : false;
62
+ }
63
+ /**
64
+ * Displays an actionable notification in the UI.
65
+ * @param notification The description of the notification to display.
66
+ */ export function showActionableNotification(notification) {
67
+ if (notification && isNotActionableNotificationEmpty(notification.actionButtonLabel)) {
68
+ setTimeout(()=>{
69
+ // always use in subsequent cycle
70
+ actionableNotificationsSubject.next({
71
+ ...notification,
72
+ id: actionableNotificationId++
73
+ });
74
+ }, 0);
75
+ } else {
76
+ console.error(`showActionableNotification must be called with an actionButtonLabel that is a non-empty string`);
77
+ }
78
+ }