@gen-epix/ui-client-common 4.3.1 → 4.4.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 (419) hide show
  1. package/README.md +9 -10
  2. package/dist/@types/mui.d.ts +1 -1
  3. package/dist/_chunks/ApplicationFooter.js +49 -49
  4. package/dist/_chunks/ApplicationFooter.js.map +1 -1
  5. package/dist/_chunks/Breadcrumbs.js +23 -22
  6. package/dist/_chunks/Breadcrumbs.js.map +1 -1
  7. package/dist/_chunks/CrudPage.js +211 -210
  8. package/dist/_chunks/CrudPage.js.map +1 -1
  9. package/dist/_chunks/GeoFilter.js.map +1 -1
  10. package/dist/_chunks/Notifications.js +67 -66
  11. package/dist/_chunks/Notifications.js.map +1 -1
  12. package/dist/_chunks/OutageList.js +30 -30
  13. package/dist/_chunks/OutageList.js.map +1 -1
  14. package/dist/_chunks/OutageUtil.js +2 -2
  15. package/dist/_chunks/OutageUtil.js.map +1 -1
  16. package/dist/_chunks/QueryClientProvider.js +1 -1
  17. package/dist/_chunks/QueryClientProvider.js.map +1 -1
  18. package/dist/_chunks/QueryClientService.js +406 -117
  19. package/dist/_chunks/QueryClientService.js.map +1 -1
  20. package/dist/_chunks/Reflect.js +642 -0
  21. package/dist/_chunks/Reflect.js.map +1 -0
  22. package/dist/_chunks/Table.js +572 -574
  23. package/dist/_chunks/Table.js.map +1 -1
  24. package/dist/_chunks/TableUtil.js +5 -5
  25. package/dist/_chunks/TableUtil.js.map +1 -1
  26. package/dist/_chunks/TextFilter.js +1 -1
  27. package/dist/_chunks/TextFilter.js.map +1 -1
  28. package/dist/_chunks/UserInvitationsAdminPage.js +109 -107
  29. package/dist/_chunks/UserInvitationsAdminPage.js.map +1 -1
  30. package/dist/_chunks/UserManagerUtil.js +7 -15
  31. package/dist/_chunks/UserManagerUtil.js.map +1 -1
  32. package/dist/_chunks/_baseAssignValue.js.map +1 -1
  33. package/dist/_chunks/_baseFlatten.js +8 -8
  34. package/dist/_chunks/_baseFlatten.js.map +1 -1
  35. package/dist/_chunks/_baseUnset.js +299 -22
  36. package/dist/_chunks/_baseUnset.js.map +1 -1
  37. package/dist/_chunks/_cacheHas.js.map +1 -1
  38. package/dist/_chunks/_setToString.js.map +1 -1
  39. package/dist/_chunks/decorate.js +9 -0
  40. package/dist/_chunks/decorateParam.js +8 -0
  41. package/dist/_chunks/format.js.map +1 -1
  42. package/dist/_chunks/isArrayLike.js.map +1 -1
  43. package/dist/_chunks/isObject.js.map +1 -1
  44. package/dist/_chunks/isSymbol.js.map +1 -1
  45. package/dist/_chunks/middleware.js +1 -1
  46. package/dist/_chunks/middleware.js.map +1 -1
  47. package/dist/_chunks/omit.js +39 -40
  48. package/dist/_chunks/omit.js.map +1 -1
  49. package/dist/_chunks/query.js +13 -17
  50. package/dist/_chunks/query.js.map +1 -1
  51. package/dist/_chunks/react.js +1 -1
  52. package/dist/_chunks/react.js.map +1 -1
  53. package/dist/_chunks/tableStore.js +40 -54
  54. package/dist/_chunks/tableStore.js.map +1 -1
  55. package/dist/_chunks/toDate.js.map +1 -1
  56. package/dist/_chunks/useColumnsMenu.js +2 -2
  57. package/dist/_chunks/useColumnsMenu.js.map +1 -1
  58. package/dist/_chunks/useMutation.js +31 -30
  59. package/dist/_chunks/useMutation.js.map +1 -1
  60. package/dist/_chunks/useQueryMemo.js +5 -5
  61. package/dist/_chunks/useQueryMemo.js.map +1 -1
  62. package/dist/_chunks/vanilla.js +1 -1
  63. package/dist/_chunks/vanilla.js.map +1 -1
  64. package/dist/_chunks/yup.js +2 -2
  65. package/dist/_chunks/yup.js.map +1 -1
  66. package/dist/classes/TableEventBus/TableEventBus.d.ts +1 -1
  67. package/dist/classes/TableEventBus/index.js.map +1 -1
  68. package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -1
  69. package/dist/classes/containers/UiClientCommonContainer/UiClientCommonContainer.d.ts +5 -0
  70. package/dist/classes/containers/UiClientCommonContainer/index.d.ts +1 -0
  71. package/dist/classes/containers/UiClientCommonContainer/index.js +17 -0
  72. package/dist/classes/containers/UiClientCommonContainer/index.js.map +1 -0
  73. package/dist/classes/filters/BooleanFilter.d.ts +1 -1
  74. package/dist/classes/filters/DateFilter.d.ts +2 -2
  75. package/dist/classes/filters/GeoFilter.d.ts +2 -2
  76. package/dist/classes/filters/MultiSelectFilter.d.ts +2 -2
  77. package/dist/classes/filters/NumberRangeFilter.d.ts +1 -1
  78. package/dist/classes/filters/TextFilter.d.ts +1 -1
  79. package/dist/classes/services/AuthenticationService/AuthenticationService.d.ts +5 -3
  80. package/dist/classes/services/AuthenticationService/index.js +34 -661
  81. package/dist/classes/services/AuthenticationService/index.js.map +1 -1
  82. package/dist/classes/services/AuthorizationService/AuthorizationService.d.ts +4 -4
  83. package/dist/classes/services/AuthorizationService/index.js +12 -10
  84. package/dist/classes/services/AuthorizationService/index.js.map +1 -1
  85. package/dist/classes/services/BackendVersionService/BackendVersionService.d.ts +0 -3
  86. package/dist/classes/services/BackendVersionService/index.js +5 -8
  87. package/dist/classes/services/BackendVersionService/index.js.map +1 -1
  88. package/dist/classes/services/BreadcrumbService/BreadcrumbService.d.ts +1 -3
  89. package/dist/classes/services/BreadcrumbService/index.js +19 -21
  90. package/dist/classes/services/BreadcrumbService/index.js.map +1 -1
  91. package/dist/classes/services/EmotionCacheService/EmotionCacheService.d.ts +4 -4
  92. package/dist/classes/services/EmotionCacheService/index.js +17 -14
  93. package/dist/classes/services/EmotionCacheService/index.js.map +1 -1
  94. package/dist/classes/services/FeatureFlagsService/FeatureFlagsService.d.ts +0 -3
  95. package/dist/classes/services/FeatureFlagsService/index.js +5 -8
  96. package/dist/classes/services/FeatureFlagsService/index.js.map +1 -1
  97. package/dist/classes/services/I18nService/I18nService.d.ts +3 -3
  98. package/dist/classes/services/I18nService/index.js +25 -29
  99. package/dist/classes/services/I18nService/index.js.map +1 -1
  100. package/dist/classes/services/InactivityService/InactivityService.d.ts +6 -3
  101. package/dist/classes/services/InactivityService/index.js +42 -36
  102. package/dist/classes/services/InactivityService/index.js.map +1 -1
  103. package/dist/classes/services/LogService/LogService.d.ts +7 -4
  104. package/dist/classes/services/LogService/index.js +39 -32
  105. package/dist/classes/services/LogService/index.js.map +1 -1
  106. package/dist/classes/services/NavigationHistoryService/NavigationHistoryService.d.ts +0 -3
  107. package/dist/classes/services/NavigationHistoryService/index.js +5 -8
  108. package/dist/classes/services/NavigationHistoryService/index.js.map +1 -1
  109. package/dist/classes/services/NotificationService/NotificationService.d.ts +4 -4
  110. package/dist/classes/services/NotificationService/index.js +21 -21
  111. package/dist/classes/services/NotificationService/index.js.map +1 -1
  112. package/dist/classes/services/PageEventBusService/PageEventBusService.d.ts +4 -3
  113. package/dist/classes/services/PageEventBusService/index.js +18 -15
  114. package/dist/classes/services/PageEventBusService/index.js.map +1 -1
  115. package/dist/classes/services/QueryClientService/QueryClientService.d.ts +6 -7
  116. package/dist/classes/services/QueryClientService/index.js +1 -2
  117. package/dist/classes/services/RouterService/RouterService.d.ts +6 -9
  118. package/dist/classes/services/RouterService/index.js +8 -12
  119. package/dist/classes/services/RouterService/index.js.map +1 -1
  120. package/dist/classes/services/UserSettingsService/UserSettingsService.d.ts +0 -3
  121. package/dist/classes/services/UserSettingsService/index.js +5 -8
  122. package/dist/classes/services/UserSettingsService/index.js.map +1 -1
  123. package/dist/components/app/App/App.d.ts +5 -1
  124. package/dist/components/app/App/index.js +31 -37
  125. package/dist/components/app/App/index.js.map +1 -1
  126. package/dist/components/app/AppRouterProvider/AppRouterProvider.d.ts +1 -1
  127. package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js +50 -49
  128. package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js.map +1 -1
  129. package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js +42 -41
  130. package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js.map +1 -1
  131. package/dist/components/app/AuthenticationWrapper/AuthenticationWrapper.d.ts +1 -1
  132. package/dist/components/app/AuthenticationWrapper/index.js +68 -67
  133. package/dist/components/app/AuthenticationWrapper/index.js.map +1 -1
  134. package/dist/components/app/AuthorizationWrapper/index.js +33 -32
  135. package/dist/components/app/AuthorizationWrapper/index.js.map +1 -1
  136. package/dist/components/app/RouterRoot/RouterRoot.d.ts +1 -1
  137. package/dist/components/app/RouterRoot/index.js +62 -61
  138. package/dist/components/app/RouterRoot/index.js.map +1 -1
  139. package/dist/components/epi/EpiContactDetailsDialog/index.js +38 -37
  140. package/dist/components/epi/EpiContactDetailsDialog/index.js.map +1 -1
  141. package/dist/components/filters/BooleanFilterField/BooleanFilterField.d.ts +1 -1
  142. package/dist/components/filters/BooleanFilterField/index.js +5 -5
  143. package/dist/components/filters/BooleanFilterField/index.js.map +1 -1
  144. package/dist/components/filters/DateFilterField/DateFilterField.d.ts +1 -1
  145. package/dist/components/filters/DateFilterField/index.js +3 -3
  146. package/dist/components/filters/DateFilterField/index.js.map +1 -1
  147. package/dist/components/filters/GeoFilterField/GeoFilterField.d.ts +1 -1
  148. package/dist/components/filters/GeoFilterField/index.js +4 -4
  149. package/dist/components/filters/GeoFilterField/index.js.map +1 -1
  150. package/dist/components/filters/MultiSelectFilterField/MultiSelectFilterField.d.ts +1 -1
  151. package/dist/components/filters/MultiSelectFilterField/index.js +4 -4
  152. package/dist/components/filters/MultiSelectFilterField/index.js.map +1 -1
  153. package/dist/components/filters/NumberRangeFilterField/NumberRangeFilterField.d.ts +1 -1
  154. package/dist/components/filters/NumberRangeFilterField/index.js +3 -3
  155. package/dist/components/filters/NumberRangeFilterField/index.js.map +1 -1
  156. package/dist/components/filters/TextFilterField/TextFilterField.d.ts +1 -1
  157. package/dist/components/filters/TextFilterField/index.js +3 -3
  158. package/dist/components/filters/TextFilterField/index.js.map +1 -1
  159. package/dist/components/ui/ApplicationBar/ApplicationBar.d.ts +1 -1
  160. package/dist/components/ui/ApplicationBar/ApplicationBarActions.d.ts +1 -1
  161. package/dist/components/ui/ApplicationBar/ApplicationBarActionsFeedbackItem.d.ts +1 -1
  162. package/dist/components/ui/ApplicationBar/ApplicationBarActionsInfotem.d.ts +1 -1
  163. package/dist/components/ui/ApplicationBar/ApplicationBarActionsNotificationsItem.d.ts +1 -1
  164. package/dist/components/ui/ApplicationBar/ApplicationBarActionsOrganizationSwitcherItem.d.ts +1 -1
  165. package/dist/components/ui/ApplicationBar/ApplicationBarActionsOutagesItem.d.ts +1 -1
  166. package/dist/components/ui/ApplicationBar/ApplicationBarActionsUserItem.d.ts +1 -1
  167. package/dist/components/ui/ApplicationBar/ApplicationBarNavigationMenu.d.ts +1 -1
  168. package/dist/components/ui/ApplicationBar/UserOrganizationAdminMenuItem.d.ts +1 -1
  169. package/dist/components/ui/ApplicationBar/UserOwnOrganizationMenuItem.d.ts +1 -1
  170. package/dist/components/ui/ApplicationBar/index.js +242 -241
  171. package/dist/components/ui/ApplicationBar/index.js.map +1 -1
  172. package/dist/components/ui/ApplicationFooter/ApplicationFooter.d.ts +1 -1
  173. package/dist/components/ui/ApplicationFooter/ApplicationFooterLink.d.ts +1 -1
  174. package/dist/components/ui/ApplicationFooter/ApplicationFooterLinkSection.d.ts +1 -1
  175. package/dist/components/ui/ApplicationFooter/index.js +1 -2
  176. package/dist/components/ui/Breadcrumbs/Breadcrumb.d.ts +1 -1
  177. package/dist/components/ui/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  178. package/dist/components/ui/Breadcrumbs/index.js +1 -2
  179. package/dist/components/ui/ConsentDialog/index.js +11 -6
  180. package/dist/components/ui/ConsentDialog/index.js.map +1 -1
  181. package/dist/components/ui/GenericErrorMessage/GenericErrorMessage.d.ts +1 -1
  182. package/dist/components/ui/GenericErrorMessage/index.js +51 -50
  183. package/dist/components/ui/GenericErrorMessage/index.js.map +1 -1
  184. package/dist/components/ui/LicensesDialog/index.js +66 -69
  185. package/dist/components/ui/LicensesDialog/index.js.map +1 -1
  186. package/dist/components/ui/MyPermissionsDialog/index.js +26 -25
  187. package/dist/components/ui/MyPermissionsDialog/index.js.map +1 -1
  188. package/dist/components/ui/NavLink/NavLink.d.ts +1 -1
  189. package/dist/components/ui/NavLink/index.js +6 -6
  190. package/dist/components/ui/NavLink/index.js.map +1 -1
  191. package/dist/components/ui/Notifications/NotificationItem.d.ts +2 -2
  192. package/dist/components/ui/Notifications/NotificationsDrawer.d.ts +1 -1
  193. package/dist/components/ui/Notifications/index.js +1 -2
  194. package/dist/components/ui/OrganizationSwitcherDialog/index.js +69 -76
  195. package/dist/components/ui/OrganizationSwitcherDialog/index.js.map +1 -1
  196. package/dist/components/ui/OutageList/OutageItem.d.ts +1 -1
  197. package/dist/components/ui/OutageList/OutageList.d.ts +1 -1
  198. package/dist/components/ui/OutageList/OutageSection.d.ts +1 -1
  199. package/dist/components/ui/OutageList/index.js +1 -2
  200. package/dist/components/ui/OutagesDialog/index.js.map +1 -1
  201. package/dist/components/ui/PageContainer/PageContainer.d.ts +1 -1
  202. package/dist/components/ui/PageContainer/index.js +57 -52
  203. package/dist/components/ui/PageContainer/index.js.map +1 -1
  204. package/dist/components/ui/ResponseHandler/ResponseHandler.d.ts +1 -1
  205. package/dist/components/ui/ResponseHandler/index.js.map +1 -1
  206. package/dist/components/ui/Sidebar/SidebarItem.d.ts +2 -2
  207. package/dist/components/ui/Sidebar/SidebarMenu.d.ts +1 -1
  208. package/dist/components/ui/Sidebar/SidebarMenuItem.d.ts +2 -2
  209. package/dist/components/ui/Sidebar/index.js +45 -45
  210. package/dist/components/ui/Sidebar/index.js.map +1 -1
  211. package/dist/components/ui/SortableList/SortableList.d.ts +1 -1
  212. package/dist/components/ui/SortableList/SortableListItem.d.ts +1 -1
  213. package/dist/components/ui/SortableList/SortableListItemDragHandle.d.ts +1 -1
  214. package/dist/components/ui/SortableList/SortableOverlay.d.ts +1 -1
  215. package/dist/components/ui/SortableList/context/SortableListItemContextProvider.d.ts +1 -1
  216. package/dist/components/ui/Table/Table.d.ts +2 -2
  217. package/dist/components/ui/Table/TableActionsCell.d.ts +2 -2
  218. package/dist/components/ui/Table/TableCaption.d.ts +1 -1
  219. package/dist/components/ui/Table/TableCell.d.ts +2 -2
  220. package/dist/components/ui/Table/TableCellAsyncContent.d.ts +1 -1
  221. package/dist/components/ui/Table/TableCheckboxCell.d.ts +2 -2
  222. package/dist/components/ui/Table/TableCheckboxHeader.d.ts +2 -2
  223. package/dist/components/ui/Table/TableColumnsEditorDialog.d.ts +1 -1
  224. package/dist/components/ui/Table/TableFilter.d.ts +3 -3
  225. package/dist/components/ui/Table/TableFiltersSidebarItem.d.ts +2 -2
  226. package/dist/components/ui/Table/TableHeader.d.ts +1 -1
  227. package/dist/components/ui/Table/TableHeaderCell.d.ts +2 -2
  228. package/dist/components/ui/Table/TableHeaderFilter.d.ts +3 -3
  229. package/dist/components/ui/Table/TableMenu.d.ts +1 -1
  230. package/dist/components/ui/Table/TableReadableIndexCell.d.ts +2 -2
  231. package/dist/components/ui/Table/TableSidebarMenu.d.ts +1 -1
  232. package/dist/components/ui/Table/index.js +1 -2
  233. package/dist/components/ui/UserFeedbackDialog/index.js +65 -64
  234. package/dist/components/ui/UserFeedbackDialog/index.js.map +1 -1
  235. package/dist/components/ui/UserInactivityConfirmation/UserInactivityConfirmation.d.ts +1 -1
  236. package/dist/components/ui/UserInactivityConfirmation/index.js +26 -25
  237. package/dist/components/ui/UserInactivityConfirmation/index.js.map +1 -1
  238. package/dist/constants/config.constants.d.ts +5 -0
  239. package/dist/constants/config.constants.js +6 -0
  240. package/dist/constants/config.constants.js.map +1 -0
  241. package/dist/constants/{query.js → query.constants.js} +2 -2
  242. package/dist/constants/query.constants.js.map +1 -0
  243. package/dist/context/uiClientCommonConfigContext/UiClientCommonConfigContext.d.ts +6 -2
  244. package/dist/context/uiClientCommonConfigContext/UiClientCommonConfigContextProvider.d.ts +3 -3
  245. package/dist/context/uiClientCommonConfigContext/index.js +28 -12
  246. package/dist/context/uiClientCommonConfigContext/index.js.map +1 -1
  247. package/dist/context/uiClientCommonConfigContext/useUiClientCommonConfigContext.d.ts +2 -1
  248. package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +17 -16
  249. package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js.map +1 -1
  250. package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/useIdentifierIssuerOwnOrganizationQuery.d.ts +1 -1
  251. package/dist/dataHooks/useIdentifierIssuerQuery/index.js +18 -17
  252. package/dist/dataHooks/useIdentifierIssuerQuery/index.js.map +1 -1
  253. package/dist/dataHooks/useIdentifierIssuerQuery/useIdentifierIssuerQuery.d.ts +1 -1
  254. package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +11 -10
  255. package/dist/dataHooks/useInviteUserConstraintsQuery/index.js.map +1 -1
  256. package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +22 -21
  257. package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js.map +1 -1
  258. package/dist/dataHooks/useOrganizationAdminPoliciesQuery/useOrganizationAdminPoliciesQuery.d.ts +1 -1
  259. package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js +8 -7
  260. package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js.map +1 -1
  261. package/dist/dataHooks/useOrganizationsQuery/index.js +17 -16
  262. package/dist/dataHooks/useOrganizationsQuery/index.js.map +1 -1
  263. package/dist/dataHooks/useOrganizationsQuery/useOrganizationsQuery.d.ts +1 -1
  264. package/dist/dataHooks/useUsersQuery/index.js +18 -17
  265. package/dist/dataHooks/useUsersQuery/index.js.map +1 -1
  266. package/dist/dataHooks/useUsersQuery/useUsersQuery.d.ts +1 -1
  267. package/dist/hoc/withPermissions/index.js +12 -11
  268. package/dist/hoc/withPermissions/index.js.map +1 -1
  269. package/dist/hoc/withPermissions/withPermissions.d.ts +1 -1
  270. package/dist/hooks/useColumnsMenu/index.js +1 -2
  271. package/dist/hooks/useColumnsMenu/useColumnsMenu.d.ts +2 -2
  272. package/dist/hooks/useConfig/index.d.ts +1 -0
  273. package/dist/hooks/useConfig/index.js +7 -0
  274. package/dist/hooks/useConfig/index.js.map +1 -0
  275. package/dist/hooks/useConfig/useConfig.d.ts +2 -0
  276. package/dist/hooks/useCreateMutation/index.js +25 -24
  277. package/dist/hooks/useCreateMutation/index.js.map +1 -1
  278. package/dist/hooks/useCreateMutation/useCreateMutation.d.ts +1 -1
  279. package/dist/hooks/useDeleteMutation/index.js +24 -23
  280. package/dist/hooks/useDeleteMutation/index.js.map +1 -1
  281. package/dist/hooks/useDeleteMutation/useDeleteMutation.d.ts +1 -1
  282. package/dist/hooks/useEditMutation/index.js +33 -32
  283. package/dist/hooks/useEditMutation/index.js.map +1 -1
  284. package/dist/hooks/useEditMutation/useEditMutation.d.ts +1 -1
  285. package/dist/hooks/useInitializeTableStore/index.js.map +1 -1
  286. package/dist/hooks/useInitializeTableStore/useInitializeTableStore.d.ts +1 -1
  287. package/dist/hooks/useItemQuery/index.js +36 -35
  288. package/dist/hooks/useItemQuery/index.js.map +1 -1
  289. package/dist/hooks/useItemQuery/useItemQuery.d.ts +1 -1
  290. package/dist/hooks/useQueryMemo/index.js +1 -2
  291. package/dist/hooks/useUpdateBreadcrumb/index.js +10 -9
  292. package/dist/hooks/useUpdateBreadcrumb/index.js.map +1 -1
  293. package/dist/hooks/useUpdateDocumentTitle/index.js +4 -3
  294. package/dist/hooks/useUpdateDocumentTitle/index.js.map +1 -1
  295. package/dist/models/{admin.js → admin.models.js} +2 -2
  296. package/dist/models/admin.models.js.map +1 -0
  297. package/dist/models/api.models.d.ts +16 -0
  298. package/dist/models/api.models.js +6 -0
  299. package/dist/models/api.models.js.map +1 -0
  300. package/dist/models/{dataHooks.d.ts → data-hooks.models.d.ts} +1 -1
  301. package/dist/models/{table.d.ts → table.models.d.ts} +2 -2
  302. package/dist/models/{table.js → table.models.js} +2 -2
  303. package/dist/models/table.models.js.map +1 -0
  304. package/dist/pages/AcceptInvitationPage/AcceptInvitationPage.d.ts +1 -1
  305. package/dist/pages/AcceptInvitationPage/index.js +40 -39
  306. package/dist/pages/AcceptInvitationPage/index.js.map +1 -1
  307. package/dist/pages/AdminPage/AdminPage.d.ts +1 -1
  308. package/dist/pages/AdminPage/index.js +39 -38
  309. package/dist/pages/AdminPage/index.js.map +1 -1
  310. package/dist/pages/ChooseIdentityProviderPage/ChooseIdentityProviderPage.d.ts +2 -2
  311. package/dist/pages/ChooseIdentityProviderPage/index.js +38 -37
  312. package/dist/pages/ChooseIdentityProviderPage/index.js.map +1 -1
  313. package/dist/pages/CrudPage/CrudPage.d.ts +7 -7
  314. package/dist/pages/CrudPage/CrudPageDeleteDialog.d.ts +1 -1
  315. package/dist/pages/CrudPage/CrudPageEditDialog.d.ts +2 -2
  316. package/dist/pages/CrudPage/index.js +1 -2
  317. package/dist/pages/ErrorPage/ErrorPage.d.ts +1 -1
  318. package/dist/pages/ErrorPage/index.js.map +1 -1
  319. package/dist/pages/IdentifierIssuersAdminPage/IdentifierIssuersAdminPage.d.ts +1 -1
  320. package/dist/pages/IdentifierIssuersAdminPage/index.js +41 -40
  321. package/dist/pages/IdentifierIssuersAdminPage/index.js.map +1 -1
  322. package/dist/pages/OrganizationAdminPoliciesAdminPage/OrganizationAdminPoliciesAdminPage.d.ts +1 -1
  323. package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +58 -57
  324. package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js.map +1 -1
  325. package/dist/pages/OrganizationContactsAdminPage/OrganizationContactsAdminPage.d.ts +1 -1
  326. package/dist/pages/OrganizationContactsAdminPage/index.js +49 -48
  327. package/dist/pages/OrganizationContactsAdminPage/index.js.map +1 -1
  328. package/dist/pages/OrganizationSitesAdminPage/OrganizationSitesAdminPage.d.ts +1 -1
  329. package/dist/pages/OrganizationSitesAdminPage/index.js +44 -43
  330. package/dist/pages/OrganizationSitesAdminPage/index.js.map +1 -1
  331. package/dist/pages/OrganizationsAdminPage/OrganizationsAdminPage.d.ts +1 -1
  332. package/dist/pages/OrganizationsAdminPage/index.js +57 -56
  333. package/dist/pages/OrganizationsAdminPage/index.js.map +1 -1
  334. package/dist/pages/OutagesAdminPage/OutagesAdminPage.d.ts +1 -1
  335. package/dist/pages/OutagesAdminPage/index.js +63 -62
  336. package/dist/pages/OutagesAdminPage/index.js.map +1 -1
  337. package/dist/pages/PostLoginPage/PostLoginPage.d.ts +1 -1
  338. package/dist/pages/PostLoginPage/index.js +14 -13
  339. package/dist/pages/PostLoginPage/index.js.map +1 -1
  340. package/dist/pages/PostLogoutPage/PostLogoutPage.d.ts +1 -1
  341. package/dist/pages/PostLogoutPage/index.js +19 -18
  342. package/dist/pages/PostLogoutPage/index.js.map +1 -1
  343. package/dist/pages/RouterErrorPage/RouterErrorPage.d.ts +1 -1
  344. package/dist/pages/RouterErrorPage/index.js.map +1 -1
  345. package/dist/pages/UserInvitationsAdminPage/UserInvitationsAdminPage.d.ts +1 -1
  346. package/dist/pages/UserInvitationsAdminPage/index.js +1 -2
  347. package/dist/pages/UsersAdminPage/UsersAdminPage.d.ts +2 -2
  348. package/dist/pages/UsersAdminPage/index.js +110 -109
  349. package/dist/pages/UsersAdminPage/index.js.map +1 -1
  350. package/dist/routes/adminRoutes.d.ts +1 -1
  351. package/dist/routes/index.js +1 -1
  352. package/dist/routes/index.js.map +1 -1
  353. package/dist/routes/routes.d.ts +1 -1
  354. package/dist/setup/setup.js.map +1 -1
  355. package/dist/stores/oidcStore/index.js.map +1 -1
  356. package/dist/stores/outagesStore/index.js.map +1 -1
  357. package/dist/stores/outagesStore/outagesStore.d.ts +1 -1
  358. package/dist/stores/tableStore/TableStoreContextProvider.d.ts +1 -1
  359. package/dist/stores/tableStore/index.js +1 -2
  360. package/dist/stores/tableStore/tableStore.d.ts +2 -2
  361. package/dist/theme/demoTheme/index.js.map +1 -1
  362. package/dist/utils/AxiosUtil/index.js.map +1 -1
  363. package/dist/utils/DataHookUtil/DataHookUtil.d.ts +1 -1
  364. package/dist/utils/DataHookUtil/index.js.map +1 -1
  365. package/dist/utils/LoadableUtil/LoadableUtil.d.ts +1 -1
  366. package/dist/utils/LoadableUtil/index.js.map +1 -1
  367. package/dist/utils/MenuDataUtil/MenuDataUtil.d.ts +1 -1
  368. package/dist/utils/MenuDataUtil/index.js.map +1 -1
  369. package/dist/utils/NotificationUtil/index.js.map +1 -1
  370. package/dist/utils/OutageUtil/OutageUtil.d.ts +1 -1
  371. package/dist/utils/OutageUtil/index.js +1 -2
  372. package/dist/utils/StandardConfigUtil/StandardConfigUtil.d.ts +1 -1
  373. package/dist/utils/StandardConfigUtil/index.js.map +1 -1
  374. package/dist/utils/TableUtil/TableUtil.d.ts +4 -4
  375. package/dist/utils/TableUtil/index.js +1 -2
  376. package/dist/utils/TimeUtil/index.js.map +1 -1
  377. package/dist/utils/UserManagerUtil/index.js +1 -2
  378. package/dist/utils/UserUtil/index.js.map +1 -1
  379. package/package.json +93 -87
  380. package/dist/_chunks/_baseGet.js +0 -280
  381. package/dist/_chunks/_baseGet.js.map +0 -1
  382. package/dist/_chunks/_baseIteratee.js +0 -274
  383. package/dist/_chunks/_baseIteratee.js.map +0 -1
  384. package/dist/_chunks/last.js +0 -13
  385. package/dist/_chunks/last.js.map +0 -1
  386. package/dist/_chunks/uniq.js +0 -44
  387. package/dist/_chunks/uniq.js.map +0 -1
  388. package/dist/classes/services/ApiService/ApiService.d.ts +0 -19
  389. package/dist/classes/services/ApiService/index.d.ts +0 -1
  390. package/dist/classes/services/ApiService/index.js +0 -21
  391. package/dist/classes/services/ApiService/index.js.map +0 -1
  392. package/dist/classes/services/ConfigService/ConfigService.d.ts +0 -9
  393. package/dist/classes/services/ConfigService/index.d.ts +0 -1
  394. package/dist/classes/services/ConfigService/index.js +0 -21
  395. package/dist/classes/services/ConfigService/index.js.map +0 -1
  396. package/dist/constants/query.js.map +0 -1
  397. package/dist/models/admin.js.map +0 -1
  398. package/dist/models/api.d.ts +0 -9
  399. package/dist/models/table.js.map +0 -1
  400. package/dist/models/theme.js +0 -0
  401. /package/dist/constants/{query.d.ts → query.constants.d.ts} +0 -0
  402. /package/dist/models/{admin.d.ts → admin.models.d.ts} +0 -0
  403. /package/dist/models/{auth.d.ts → auth.models.d.ts} +0 -0
  404. /package/dist/models/{api.js → auth.models.js} +0 -0
  405. /package/dist/models/{config.d.ts → config.models.d.ts} +0 -0
  406. /package/dist/models/{auth.js → config.models.js} +0 -0
  407. /package/dist/models/{config.js → data-hooks.models.js} +0 -0
  408. /package/dist/models/{data.d.ts → data.models.d.ts} +0 -0
  409. /package/dist/models/{data.js → data.models.js} +0 -0
  410. /package/dist/models/{filter.d.ts → filter.models.d.ts} +0 -0
  411. /package/dist/models/{dataHooks.js → filter.models.js} +0 -0
  412. /package/dist/models/{notification.d.ts → notification.models.d.ts} +0 -0
  413. /package/dist/models/{filter.js → notification.models.js} +0 -0
  414. /package/dist/models/{outage.d.ts → outage.models.d.ts} +0 -0
  415. /package/dist/models/{notification.js → outage.models.js} +0 -0
  416. /package/dist/models/{reactRouter.d.ts → react-router.models.d.ts} +0 -0
  417. /package/dist/models/{outage.js → react-router.models.js} +0 -0
  418. /package/dist/models/{theme.d.ts → theme.models.d.ts} +0 -0
  419. /package/dist/models/{reactRouter.js → theme.models.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ui/Sidebar/SidebarItem.tsx","../../../../src/components/ui/Sidebar/SidebarMenu.tsx","../../../../src/components/ui/Sidebar/SidebarMenuItem.tsx"],"sourcesContent":["import {\n Box,\n Drawer,\n IconButton,\n Tooltip,\n Typography,\n useTheme,\n} from '@mui/material';\nimport {\n useEffect,\n useState,\n} from 'react';\nimport type {\n PropsWithChildren,\n ReactElement,\n} from 'react';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\nimport type { PropsWithTestIdAttributes } from '@gen-epix/ui-core/models/testId';\n\nimport { ConfigService } from '../../../classes/services/ConfigService';\n\nexport type SidebarItemProps = PropsWithTestIdAttributes<PropsWithChildren<{\n readonly closeIcon: ReactElement;\n readonly closeIconTooltipText: string;\n readonly title: string;\n readonly width: number;\n} & SidebarItemSharedProps>>;\n\nexport type SidebarItemSharedProps = {\n readonly onClose: () => void;\n readonly open: boolean;\n};\n\nexport const SidebarItem = ({ children, closeIcon, closeIconTooltipText, onClose, open, testIdAttributes, title, width }: SidebarItemProps) => {\n const theme = useTheme();\n const [mainContentDOMRect, setMainContentDOMRect] = useState<DOMRect>(null);\n\n useEffect(() => {\n const mainContentElement = document.getElementById(ConfigService.getInstance().config.layout.MAIN_CONTENT_ID);\n\n\n setMainContentDOMRect(mainContentElement.getBoundingClientRect());\n\n const observer = new ResizeObserver(() => {\n setMainContentDOMRect(mainContentElement.getBoundingClientRect());\n });\n observer.observe(mainContentElement, {\n box: 'content-box',\n });\n observer.observe(document.body);\n return () => {\n observer.disconnect();\n };\n }, []);\n\n const { height, top } = mainContentDOMRect ?? {};\n\n return (\n <Drawer\n anchor={'left'}\n onClose={onClose}\n open={open}\n slotProps={{\n backdrop: {\n sx: {\n height,\n top,\n },\n },\n paper: {\n sx: {\n height,\n top,\n },\n },\n root: {\n ...TestIdUtil.createAttributes('SidebarItem', testIdAttributes),\n sx: {\n height,\n top,\n },\n },\n }}\n >\n {!open && (\n <Box\n sx={{\n width: theme.spacing(width),\n }}\n />\n )}\n {open && (\n <>\n <Box\n sx={{\n alignItems: 'center',\n background: theme.palette.grey[100],\n display: 'flex',\n height: theme.spacing(6),\n justifyContent: 'space-between',\n maxWidth: '100vw',\n width: theme.spacing(width),\n }}\n >\n <Typography\n component={'h3'}\n style={{ paddingLeft: theme.spacing(1) }}\n variant={'h5'}\n >\n {title}\n </Typography>\n <Tooltip\n arrow\n title={closeIconTooltipText}\n >\n <IconButton\n color={'primary'}\n onClick={onClose}\n {...TestIdUtil.createAttributes('SidebarItem-CloseButton')}\n >\n {closeIcon}\n </IconButton>\n </Tooltip>\n </Box>\n <Box\n sx={{\n paddingX: 1,\n }}\n >\n <Box\n sx={{\n height: `calc(100% - ${theme.spacing(6)})`,\n position: 'absolute',\n top: theme.spacing(6),\n width: theme.spacing(width - 1),\n }}\n >\n {children}\n </Box>\n </Box>\n </>\n )}\n </Drawer>\n\n );\n};\n","import {\n Box,\n useTheme,\n} from '@mui/material';\nimport type { PropsWithChildren } from 'react';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\n\nimport { ConfigService } from '../../../classes/services/ConfigService';\n\nexport type SidebarMenuProps = PropsWithChildren;\n\nexport const SidebarMenu = ({ children }: SidebarMenuProps) => {\n const theme = useTheme();\n\n return (\n <Box\n {...TestIdUtil.createAttributes('SidebarMenu')}\n sx={{\n borderRight: '1px solid #C8DDFB',\n bottom: 0,\n display: 'flex',\n flexDirection: 'column',\n left: 0,\n position: 'absolute',\n top: 0,\n width: theme.spacing(ConfigService.getInstance().config.layout.SIDEBAR_MENU_WIDTH),\n zIndex: 2,\n }}\n >\n {children}\n </Box>\n );\n};\n","import type { BadgeOwnProps } from '@mui/material';\nimport {\n Badge,\n IconButton,\n Tooltip,\n useTheme,\n} from '@mui/material';\nimport type { ReactElement } from 'react';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\nimport type { PropsWithTestIdAttributes } from '@gen-epix/ui-core/models/testId';\n\n\nexport type SidebarMenuItemProps = PropsWithTestIdAttributes<{\n readonly badgeColor?: BadgeOwnProps['color'];\n readonly badgeContent?: number | string;\n readonly first?: boolean;\n readonly icon: ReactElement;\n readonly onClick: () => void;\n readonly title: string;\n}>;\n\nexport const SidebarMenuItem = ({\n badgeColor = 'secondary',\n badgeContent,\n first,\n icon,\n onClick,\n testIdAttributes,\n title,\n}: SidebarMenuItemProps) => {\n const theme = useTheme();\n\n return (\n <Tooltip\n arrow\n placement={'right'}\n title={title}\n >\n <IconButton\n {...TestIdUtil.createAttributes('SidebarMenuItem', testIdAttributes)}\n aria-label={title}\n color={'primary'}\n onClick={onClick}\n sx={{\n marginLeft: theme.spacing(-1),\n marginTop: theme.spacing(first ? 0 : 2),\n padding: 0,\n }}\n >\n <Badge\n badgeContent={badgeContent ?? 0}\n color={badgeColor}\n sx={{ '& .MuiBadge-badge': { fontSize: 9, height: 15, minWidth: 15 } }}\n >\n {icon}\n </Badge>\n </IconButton>\n </Tooltip>\n );\n};\n"],"mappings":"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"}
1
+ {"version":3,"file":"index.js","names":["_Fragment","Fragment$1","SidebarItem","theme","useTheme","config","useConfig","mainContentDOMRect","setMainContentDOMRect","useState","mainContentElement","observer","Drawer","TestIdUtil","testIdAttributes","open","Box","width","Typography","title","Tooltip","closeIconTooltipText","IconButton","onClose","closeIcon","SidebarMenu","SidebarMenuItem","first","Badge","badgeContent","badgeColor","icon"],"sources":["../../../../src/components/ui/Sidebar/SidebarItem.tsx","../../../../src/components/ui/Sidebar/SidebarMenu.tsx","../../../../src/components/ui/Sidebar/SidebarMenuItem.tsx"],"sourcesContent":["import {\n Box,\n Drawer,\n IconButton,\n Tooltip,\n Typography,\n useTheme,\n} from '@mui/material';\nimport {\n useEffect,\n useState,\n} from 'react';\nimport type {\n PropsWithChildren,\n ReactElement,\n} from 'react';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\nimport type { PropsWithTestIdAttributes } from '@gen-epix/ui-core/models/test-id.models';\n\nimport { useConfig } from '../../../hooks/useConfig';\n\nexport type SidebarItemProps = PropsWithTestIdAttributes<PropsWithChildren<{\n readonly closeIcon: ReactElement;\n readonly closeIconTooltipText: string;\n readonly title: string;\n readonly width: number;\n} & SidebarItemSharedProps>>;\n\nexport type SidebarItemSharedProps = {\n readonly onClose: () => void;\n readonly open: boolean;\n};\n\nexport const SidebarItem = ({ children, closeIcon, closeIconTooltipText, onClose, open, testIdAttributes, title, width }: SidebarItemProps) => {\n const theme = useTheme();\n const config = useConfig();\n const [mainContentDOMRect, setMainContentDOMRect] = useState<DOMRect>(null);\n\n useEffect(() => {\n const mainContentElement = document.getElementById(config.layout.MAIN_CONTENT_ID);\n\n\n setMainContentDOMRect(mainContentElement.getBoundingClientRect());\n\n const observer = new ResizeObserver(() => {\n setMainContentDOMRect(mainContentElement.getBoundingClientRect());\n });\n observer.observe(mainContentElement, {\n box: 'content-box',\n });\n observer.observe(document.body);\n return () => {\n observer.disconnect();\n };\n }, [config.layout.MAIN_CONTENT_ID]);\n\n const { height, top } = mainContentDOMRect ?? {};\n\n return (\n <Drawer\n anchor={'left'}\n onClose={onClose}\n open={open}\n slotProps={{\n backdrop: {\n sx: {\n height,\n top,\n },\n },\n paper: {\n sx: {\n height,\n top,\n },\n },\n root: {\n ...TestIdUtil.createAttributes('SidebarItem', testIdAttributes),\n sx: {\n height,\n top,\n },\n },\n }}\n >\n {!open && (\n <Box\n sx={{\n width: theme.spacing(width),\n }}\n />\n )}\n {open && (\n <>\n <Box\n sx={{\n alignItems: 'center',\n background: theme.palette.grey[100],\n display: 'flex',\n height: theme.spacing(6),\n justifyContent: 'space-between',\n maxWidth: '100vw',\n width: theme.spacing(width),\n }}\n >\n <Typography\n component={'h3'}\n style={{ paddingLeft: theme.spacing(1) }}\n variant={'h5'}\n >\n {title}\n </Typography>\n <Tooltip\n arrow\n title={closeIconTooltipText}\n >\n <IconButton\n color={'primary'}\n onClick={onClose}\n {...TestIdUtil.createAttributes('SidebarItem-CloseButton')}\n >\n {closeIcon}\n </IconButton>\n </Tooltip>\n </Box>\n <Box\n sx={{\n paddingX: 1,\n }}\n >\n <Box\n sx={{\n height: `calc(100% - ${theme.spacing(6)})`,\n position: 'absolute',\n top: theme.spacing(6),\n width: theme.spacing(width - 1),\n }}\n >\n {children}\n </Box>\n </Box>\n </>\n )}\n </Drawer>\n\n );\n};\n","import {\n Box,\n useTheme,\n} from '@mui/material';\nimport type { PropsWithChildren } from 'react';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\n\nimport { useConfig } from '../../../hooks/useConfig';\n\nexport type SidebarMenuProps = PropsWithChildren;\n\nexport const SidebarMenu = ({ children }: SidebarMenuProps) => {\n const theme = useTheme();\n const config = useConfig();\n\n return (\n <Box\n {...TestIdUtil.createAttributes('SidebarMenu')}\n sx={{\n borderRight: '1px solid #C8DDFB',\n bottom: 0,\n display: 'flex',\n flexDirection: 'column',\n left: 0,\n position: 'absolute',\n top: 0,\n width: theme.spacing(config.layout.SIDEBAR_MENU_WIDTH),\n zIndex: 2,\n }}\n >\n {children}\n </Box>\n );\n};\n","import type { BadgeOwnProps } from '@mui/material';\nimport {\n Badge,\n IconButton,\n Tooltip,\n useTheme,\n} from '@mui/material';\nimport type { ReactElement } from 'react';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\nimport type { PropsWithTestIdAttributes } from '@gen-epix/ui-core/models/test-id.models';\n\n\nexport type SidebarMenuItemProps = PropsWithTestIdAttributes<{\n readonly badgeColor?: BadgeOwnProps['color'];\n readonly badgeContent?: number | string;\n readonly first?: boolean;\n readonly icon: ReactElement;\n readonly onClick: () => void;\n readonly title: string;\n}>;\n\nexport const SidebarMenuItem = ({\n badgeColor = 'secondary',\n badgeContent,\n first,\n icon,\n onClick,\n testIdAttributes,\n title,\n}: SidebarMenuItemProps) => {\n const theme = useTheme();\n\n return (\n <Tooltip\n arrow\n placement={'right'}\n title={title}\n >\n <IconButton\n {...TestIdUtil.createAttributes('SidebarMenuItem', testIdAttributes)}\n aria-label={title}\n color={'primary'}\n onClick={onClick}\n sx={{\n marginLeft: theme.spacing(-1),\n marginTop: theme.spacing(first ? 0 : 2),\n padding: 0,\n }}\n >\n <Badge\n badgeContent={badgeContent ?? 0}\n color={badgeColor}\n sx={{ '& .MuiBadge-badge': { fontSize: 9, height: 15, minWidth: 15 } }}\n >\n {icon}\n </Badge>\n </IconButton>\n </Tooltip>\n );\n};\n"],"mappings":"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"}
@@ -10,5 +10,5 @@ interface Props<T extends BaseItem> {
10
10
  onChange(items: T[]): void;
11
11
  renderItemContent(item: T): ReactNode;
12
12
  }
13
- export declare const SortableList: <T extends BaseItem>({ items, onChange, renderItemContent, }: Props<T>) => import("react").JSX.Element;
13
+ export declare const SortableList: <T extends BaseItem>({ items, onChange, renderItemContent, }: Props<T>) => import('react').JSX.Element;
14
14
  export {};
@@ -5,4 +5,4 @@ export type SortableListItemProps = PropsWithChildren<{
5
5
  readonly id: UniqueIdentifier;
6
6
  readonly sx?: SxProps;
7
7
  }>;
8
- export declare const SortableListItem: ({ children, id, sx }: SortableListItemProps) => import("react").JSX.Element;
8
+ export declare const SortableListItem: ({ children, id, sx }: SortableListItemProps) => import('react').JSX.Element;
@@ -1,4 +1,4 @@
1
1
  export type SortableListItemDragHandleProps = {
2
2
  readonly name: string;
3
3
  };
4
- export declare const SortableListItemDragHandle: ({ name }: SortableListItemDragHandleProps) => import("react").JSX.Element;
4
+ export declare const SortableListItemDragHandle: ({ name }: SortableListItemDragHandleProps) => import('react').JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { PropsWithChildren } from 'react';
2
- export declare const SortableOverlay: ({ children }: PropsWithChildren<unknown>) => import("react").JSX.Element;
2
+ export declare const SortableOverlay: ({ children }: PropsWithChildren<unknown>) => import('react').JSX.Element;
@@ -3,4 +3,4 @@ import { SortableListItemContextValue } from './SortableListItemContext';
3
3
  export type SortableListItemContextProviderProps = PropsWithChildren<{
4
4
  readonly value: SortableListItemContextValue;
5
5
  }>;
6
- export declare const SortableListItemContextProvider: (props: SortableListItemContextProviderProps) => import("react").JSX.Element;
6
+ export declare const SortableListItemContextProvider: (props: SortableListItemContextProviderProps) => import('react').JSX.Element;
@@ -2,7 +2,7 @@ import { SxProps, Theme } from '@mui/material';
2
2
  import { Ref } from 'react';
3
3
  import { ListRange } from 'react-virtuoso';
4
4
  import { Subject } from '@gen-epix/ui-core/classes/Subject';
5
- import { TableRowParams } from '../../../models/table';
5
+ import { TableRowParams } from '../../../models/table.models';
6
6
  export type TableProps<TRowData, TDataContext = null> = {
7
7
  readonly font?: string;
8
8
  readonly forceHorizontalOverflow?: boolean;
@@ -27,4 +27,4 @@ export interface TableRef {
27
27
  scrollToIndex: (index: number, onScrolledToIndex?: () => void) => void;
28
28
  setVerticalScrollPosition: (position: number) => void;
29
29
  }
30
- export declare const Table: <TRowData, TDataContext = null>({ font, forceHorizontalOverflow, getRowName, headerHeight, initialVisibleItemIndex, onRangeChanged, onReadableIndexClick, onRowClick, onRowMouseEnter, onRowMouseLeave, onVerticalScrollPositionChange, onVisibleItemIndexChange, overscanMain, overscanReverse, ref, rowHeight, rowHighlightingSubject, sx, }: TableProps<TRowData, TDataContext>) => import("react").JSX.Element;
30
+ export declare const Table: <TRowData, TDataContext = null>({ font, forceHorizontalOverflow, getRowName, headerHeight, initialVisibleItemIndex, onRangeChanged, onReadableIndexClick, onRowClick, onRowMouseEnter, onRowMouseLeave, onVerticalScrollPositionChange, onVisibleItemIndexChange, overscanMain, overscanReverse, ref, rowHeight, rowHighlightingSubject, sx, }: TableProps<TRowData, TDataContext>) => import('react').JSX.Element;
@@ -1,6 +1,6 @@
1
- import { TableColumnActions } from '../../../models/table';
1
+ import { TableColumnActions } from '../../../models/table.models';
2
2
  import { TableCellProps } from './TableCell';
3
3
  export interface TableActionsCellProps<TRowData, TDataContext = null> extends TableCellProps<TRowData, TDataContext> {
4
4
  readonly column: TableColumnActions<TRowData, TDataContext>;
5
5
  }
6
- export declare const TableActionsCell: <TRowData, TDataContext = null>(props: TableActionsCellProps<TRowData, TDataContext>) => import("react").JSX.Element;
6
+ export declare const TableActionsCell: <TRowData, TDataContext = null>(props: TableActionsCellProps<TRowData, TDataContext>) => import('react').JSX.Element;
@@ -4,4 +4,4 @@ export type TableCaptionProps = {
4
4
  readonly component?: TypographyProps['component'];
5
5
  readonly variant: TypographyProps['variant'];
6
6
  };
7
- export declare const TableCaption: <TRowData, TDataContext = null>({ caption, component, variant }: TableCaptionProps) => import("react").JSX.Element;
7
+ export declare const TableCaption: <TRowData, TDataContext = null>({ caption, component, variant }: TableCaptionProps) => import('react').JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { AriaRole, ForwardedRef, PropsWithChildren, MouseEvent as ReactMouseEvent } from 'react';
2
2
  import { SxProps, Theme } from '@mui/material';
3
- import { TableColumn, TableDragEvent, TableRowParams } from '../../../models/table';
3
+ import { TableColumn, TableDragEvent, TableRowParams } from '../../../models/table.models';
4
4
  export type TableCellProps<TRowData, TDataContext = null> = PropsWithChildren<{
5
5
  readonly ariaSort?: 'ascending' | 'descending' | 'other';
6
6
  readonly backgroundColor?: string;
@@ -24,4 +24,4 @@ export type TableCellProps<TRowData, TDataContext = null> = PropsWithChildren<{
24
24
  readonly xOffset?: number;
25
25
  }>;
26
26
  export type TableCellRef = HTMLDivElement;
27
- export declare const TableCell: <TRowData, TDataContext = null>({ ariaSort, backgroundColor, canDrag, children, className, column, columnIndex, enabled, height, onClick, onCustomDrag, order, ref, role, row, rowIndex, sx, tabIndex, title, width, xOffset, }: TableCellProps<TRowData, TDataContext>) => import("react").JSX.Element;
27
+ export declare const TableCell: <TRowData, TDataContext = null>({ ariaSort, backgroundColor, canDrag, children, className, column, columnIndex, enabled, height, onClick, onCustomDrag, order, ref, role, row, rowIndex, sx, tabIndex, title, width, xOffset, }: TableCellProps<TRowData, TDataContext>) => import('react').JSX.Element;
@@ -1,4 +1,4 @@
1
1
  export type TableCellAsyncContentProps = {
2
2
  readonly content: Promise<string> | string;
3
3
  };
4
- export declare const TableCellAsyncContent: ({ content }: TableCellAsyncContentProps) => import("react").JSX.Element;
4
+ export declare const TableCellAsyncContent: ({ content }: TableCellAsyncContentProps) => import('react').JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import { MouseEvent as ReactMouseEvent } from 'react';
2
- import { TableColumnSelectable, TableRowParams } from '../../../models/table';
2
+ import { TableColumnSelectable, TableRowParams } from '../../../models/table.models';
3
3
  export type TableCheckboxCellProps<TRowData, TDataContext = null> = {
4
4
  readonly cell: TableRowParams<TRowData, TDataContext>;
5
5
  readonly onCheckBoxClick: (event: ReactMouseEvent, id: string) => void;
6
6
  readonly tableColumn: TableColumnSelectable<TRowData, TDataContext>;
7
7
  };
8
- export declare const TableCheckboxCell: <TRowData, TDataContext = null>({ cell, onCheckBoxClick, tableColumn, }: TableCheckboxCellProps<TRowData, TDataContext>) => import("react").JSX.Element;
8
+ export declare const TableCheckboxCell: <TRowData, TDataContext = null>({ cell, onCheckBoxClick, tableColumn, }: TableCheckboxCellProps<TRowData, TDataContext>) => import('react').JSX.Element;
@@ -1,5 +1,5 @@
1
- import { TableColumnParams } from '../../../models/table';
1
+ import { TableColumnParams } from '../../../models/table.models';
2
2
  export type TableCheckboxHeaderProps<TRowData, TDataContext = null> = {
3
3
  readonly tableColumnParams: TableColumnParams<TRowData, TDataContext>;
4
4
  };
5
- export declare const TableCheckboxHeader: <TRowData, TDataContext = null>({ tableColumnParams }: TableCheckboxHeaderProps<TRowData, TDataContext>) => import("react").JSX.Element;
5
+ export declare const TableCheckboxHeader: <TRowData, TDataContext = null>({ tableColumnParams }: TableCheckboxHeaderProps<TRowData, TDataContext>) => import('react').JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { WithDialogRefMethods, WithDialogRenderProps } from '@gen-epix/ui-core-components/hoc/withDialog';
2
- import { HasCellDataFn } from '../../../models/table';
2
+ import { HasCellDataFn } from '../../../models/table.models';
3
3
  export interface TableColumnsEditorDialogOpenProps<TRowData, TDataContext> {
4
4
  readonly hasCellData: HasCellDataFn<TRowData, TDataContext>;
5
5
  }
@@ -1,6 +1,6 @@
1
- import { UnwrapArray } from '@gen-epix/ui-core/models/generic';
2
- import { Filters } from '../../../models/filter';
1
+ import { UnwrapArray } from '@gen-epix/ui-core/models/generic.models';
2
+ import { Filters } from '../../../models/filter.models';
3
3
  export type TableFilterProps = {
4
4
  readonly filter: UnwrapArray<Filters>;
5
5
  };
6
- export declare const TableFilter: ({ filter }: TableFilterProps) => import("react").JSX.Element;
6
+ export declare const TableFilter: ({ filter }: TableFilterProps) => import('react').JSX.Element;
@@ -4,6 +4,6 @@ type TableFiltersSidebarItemContentProps = Pick<TableFiltersSidebarItemProps, 'o
4
4
  export declare const TableFiltersSidebarItemIcon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
5
5
  muiName: string;
6
6
  };
7
- export declare const TableFiltersSidebarItemContent: <TRowData, TDataContext = null>({ onClose }: TableFiltersSidebarItemContentProps) => import("react").JSX.Element;
8
- export declare const TableFiltersSidebarItem: ({ onClose, open }: TableFiltersSidebarItemProps) => import("react").JSX.Element;
7
+ export declare const TableFiltersSidebarItemContent: <TRowData, TDataContext = null>({ onClose }: TableFiltersSidebarItemContentProps) => import('react').JSX.Element;
8
+ export declare const TableFiltersSidebarItem: ({ onClose, open }: TableFiltersSidebarItemProps) => import('react').JSX.Element;
9
9
  export {};
@@ -5,4 +5,4 @@ export type TableHeaderProps = {
5
5
  readonly headerVariant?: TypographyProps['variant'];
6
6
  readonly showTableMenu?: boolean;
7
7
  };
8
- export declare const TableHeader: ({ header, headerComponent, headerVariant, showTableMenu }: TableHeaderProps) => import("react").JSX.Element;
8
+ export declare const TableHeader: ({ header, headerComponent, headerVariant, showTableMenu }: TableHeaderProps) => import('react').JSX.Element;
@@ -1,9 +1,9 @@
1
1
  import { KeyboardEvent as ReactKeyboardEvent, MouseEvent as ReactMouseEvent } from 'react';
2
- import { TableColumn } from '../../../models/table';
2
+ import { TableColumn } from '../../../models/table.models';
3
3
  import { TableCellProps } from './TableCell';
4
4
  export interface TableHeaderCellProps<TRowData, TDataContext = null> extends TableCellProps<TRowData, TDataContext> {
5
5
  readonly dividerColor: string;
6
6
  readonly onColumnDividerKeyDown: (event: ReactKeyboardEvent<HTMLDivElement>, column: TableColumn<TRowData, TDataContext>) => void;
7
7
  readonly onColumnDividerMouseDown: (event: ReactMouseEvent<HTMLDivElement>, column: TableColumn<TRowData, TDataContext>) => void;
8
8
  }
9
- export declare const TableHeaderCell: <TRowData, TDataContext = null>(props: TableHeaderCellProps<TRowData, TDataContext>) => import("react").JSX.Element;
9
+ export declare const TableHeaderCell: <TRowData, TDataContext = null>(props: TableHeaderCellProps<TRowData, TDataContext>) => import('react').JSX.Element;
@@ -1,7 +1,7 @@
1
- import { UnwrapArray } from '@gen-epix/ui-core/models/generic';
2
- import { Filters } from '../../../models/filter';
1
+ import { UnwrapArray } from '@gen-epix/ui-core/models/generic.models';
2
+ import { Filters } from '../../../models/filter.models';
3
3
  export type TableHeaderFilterProps = {
4
4
  readonly filter: UnwrapArray<Filters>;
5
5
  readonly onFilterChange: () => void;
6
6
  };
7
- export declare const TableHeaderFilter: <TRowData, TDataContext>({ filter, onFilterChange }: TableHeaderFilterProps) => import("react").JSX.Element;
7
+ export declare const TableHeaderFilter: <TRowData, TDataContext>({ filter, onFilterChange }: TableHeaderFilterProps) => import('react').JSX.Element;
@@ -2,4 +2,4 @@ import { BoxProps } from '@mui/material';
2
2
  export type TableMenuProps = {
3
3
  readonly ContainerProps?: Partial<BoxProps>;
4
4
  };
5
- export declare const TableMenu: ({ ContainerProps }: TableMenuProps) => import("react").JSX.Element;
5
+ export declare const TableMenu: ({ ContainerProps }: TableMenuProps) => import('react').JSX.Element;
@@ -1,8 +1,8 @@
1
- import { TableColumnReadableIndex, TableRowParams } from '../../../models/table';
1
+ import { TableColumnReadableIndex, TableRowParams } from '../../../models/table.models';
2
2
  export type TableReadableIndexCellProps<TRowData, TDataContext> = {
3
3
  readonly cell: TableRowParams<TRowData, TDataContext>;
4
4
  readonly getRowName?: (row: TRowData) => string;
5
5
  readonly onReadableIndexClick: (row: TRowData) => void;
6
6
  readonly tableColumn: TableColumnReadableIndex<TRowData, TDataContext>;
7
7
  };
8
- export declare const TableReadableIndexCell: <TRowData, TDataContext>({ cell, getRowName, onReadableIndexClick, tableColumn, }: TableReadableIndexCellProps<TRowData, TDataContext>) => number | import("react").JSX.Element;
8
+ export declare const TableReadableIndexCell: <TRowData, TDataContext>({ cell, getRowName, onReadableIndexClick, tableColumn, }: TableReadableIndexCellProps<TRowData, TDataContext>) => number | import('react').JSX.Element;
@@ -2,4 +2,4 @@ import { ReactNode } from 'react';
2
2
  export type TableSidebarMenuProps = {
3
3
  readonly extraSidebarMenuItems?: ReactNode;
4
4
  };
5
- export declare const TableSidebarMenu: <TRowData, TDataContext = null>({ extraSidebarMenuItems }: TableSidebarMenuProps) => import("react").JSX.Element;
5
+ export declare const TableSidebarMenu: <TRowData, TDataContext = null>({ extraSidebarMenuItems }: TableSidebarMenuProps) => import('react').JSX.Element;
@@ -1,2 +1 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "../../../_chunks/Table.js";
2
- export { t as Table, a as TableActionsCell, d as TableCaption, n as TableCell, o as TableCellAsyncContent, l as TableFilter, i as TableFiltersSidebarItem, e as TableFiltersSidebarItemContent, c as TableFiltersSidebarItemIcon, s as TableHeader, p as TableHeaderCell, r as TableHeaderFilter, u as TableMenu, f as TableSidebarMenu };
1
+ export { c as Table, l as TableActionsCell, s as TableCaption, d as TableCell, m as TableCellAsyncContent, p as TableFilter, i as TableFiltersSidebarItem, a as TableFiltersSidebarItemContent, o as TableFiltersSidebarItemIcon, n as TableHeader, u as TableHeaderCell, f as TableHeaderFilter, r as TableMenu, t as TableSidebarMenu } from "../../../_chunks/Table.js";
@@ -1,107 +1,108 @@
1
- import { ConfigService as e } from "../../../classes/services/ConfigService/index.js";
2
- import { AuthorizationService as t } from "../../../classes/services/AuthorizationService/index.js";
1
+ import { AuthorizationService as e } from "../../../classes/services/AuthorizationService/index.js";
2
+ import { useConfig as t } from "../../../hooks/useConfig/index.js";
3
3
  import { LogService as n } from "../../../classes/services/LogService/index.js";
4
4
  import { NotificationService as r } from "../../../classes/services/NotificationService/index.js";
5
5
  import { t as i } from "../../../_chunks/yup.js";
6
6
  import { NavigationHistoryService as a } from "../../../classes/services/NavigationHistoryService/index.js";
7
7
  import { UserSettingsService as o } from "../../../classes/services/UserSettingsService/index.js";
8
- import { Box as s, Typography as c } from "@mui/material";
9
- import { useCallback as l, useEffect as u, useMemo as d } from "react";
10
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
11
- import { useTranslation as m } from "react-i18next";
12
- import { object as h, string as g } from "yup";
13
- import { TestIdUtil as _ } from "@gen-epix/ui-core/utils/TestIdUtil";
14
- import { FORM_FIELD_DEFINITION_TYPE as v } from "@gen-epix/ui-core-form/models/form";
15
- import { SchemaUtil as y } from "@gen-epix/ui-core-form/utils/SchemaUtil";
16
- import { useForm as b } from "react-hook-form";
17
- import { withDialog as x } from "@gen-epix/ui-core-components/hoc/withDialog";
18
- import { GenericForm as S } from "@gen-epix/ui-core-form/components/helpers/GenericForm";
8
+ import { container as s } from "tsyringe";
9
+ import { useCallback as c, useEffect as l, useMemo as u } from "react";
10
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
11
+ import { Box as p, Typography as m } from "@mui/material";
12
+ import { useTranslation as h } from "react-i18next";
13
+ import { object as g, string as _ } from "yup";
14
+ import { TestIdUtil as v } from "@gen-epix/ui-core/utils/TestIdUtil";
15
+ import { FORM_FIELD_DEFINITION_TYPE as y } from "@gen-epix/ui-core-form/models/form.models";
16
+ import { SchemaUtil as b } from "@gen-epix/ui-core-form/utils/SchemaUtil";
17
+ import { useForm as x } from "react-hook-form";
18
+ import { withDialog as S } from "@gen-epix/ui-core-components/hoc/withDialog";
19
+ import { GenericForm as C } from "@gen-epix/ui-core-form/components/helpers/GenericForm";
19
20
  //#region src/components/ui/UserFeedbackDialog/UserFeedbackDialog.tsx
20
- var C = x(({ onActionsChange: x, onClose: C, onTitleChange: w }) => {
21
- let { t: T } = m(), E = d(() => h().shape({
22
- email: g().email().required().max(200),
23
- message: g().freeFormText().required().max(5e3),
24
- name: y.name
25
- }), []), D = b({
26
- resolver: i(E),
21
+ var w = S(({ onActionsChange: S, onClose: w, onTitleChange: T }) => {
22
+ let { t: E } = h(), D = t(), O = u(() => g().shape({
23
+ email: _().email().required().max(200),
24
+ message: _().freeFormText().required().max(5e3),
25
+ name: b.name
26
+ }), []), k = x({
27
+ resolver: i(O),
27
28
  values: {
28
- email: t.getInstance().user?.email ?? t.getInstance().user?.key ?? "",
29
+ email: s.resolve(e).user?.email ?? s.resolve(e).user?.key ?? "",
29
30
  message: "",
30
- name: t.getInstance().user?.name ?? ""
31
+ name: s.resolve(e).user?.name ?? ""
31
32
  }
32
- }), { handleSubmit: O } = D;
33
- u(() => {
34
- o.getInstance().showShowUserFeedbackTooltip = !1;
33
+ }), { handleSubmit: A } = k;
34
+ l(() => {
35
+ s.resolve(o).showShowUserFeedbackTooltip = !1;
35
36
  }, []);
36
- let k = d(() => [
37
+ let j = u(() => [
37
38
  {
38
- definition: v.TEXTFIELD,
39
- label: T`Name`,
39
+ definition: y.TEXTFIELD,
40
+ label: E`Name`,
40
41
  name: "name"
41
42
  },
42
43
  {
43
- definition: v.TEXTFIELD,
44
- label: T`Email`,
44
+ definition: y.TEXTFIELD,
45
+ label: E`Email`,
45
46
  name: "email"
46
47
  },
47
48
  {
48
- definition: v.TEXTFIELD,
49
- label: T`Your message`,
49
+ definition: y.TEXTFIELD,
50
+ label: E`Your message`,
50
51
  multiline: !0,
51
52
  name: "message",
52
53
  rows: 15
53
54
  }
54
- ], [T]);
55
- u(() => {
56
- w(T`Feedback`);
57
- }, [w, T]);
58
- let A = l((e) => {
59
- let t = a.getInstance().navigationHistory;
60
- n.getInstance().log([{
55
+ ], [E]);
56
+ l(() => {
57
+ T(E`Feedback`);
58
+ }, [T, E]);
59
+ let M = c((e) => {
60
+ let t = s.resolve(a).navigationHistory;
61
+ s.resolve(n).log([{
61
62
  detail: {
62
63
  ...e,
63
64
  navigationHistory: t.slice(t.length - 50).reverse()
64
65
  },
65
66
  level: "INFO",
66
67
  topic: "USER_FEEDBACK"
67
- }]), n.getInstance().flushLog(), r.getInstance().showNotification({
68
- message: T`Thank you for sharing your feedback with us`,
68
+ }]), s.resolve(n).flushLog(), s.resolve(r).showNotification({
69
+ message: E`Thank you for sharing your feedback with us`,
69
70
  severity: "success"
70
- }), C();
71
- }, [C, T]);
72
- return u(() => {
73
- x([{
74
- ..._.createAttributes("UserFeedbackDialog-close"),
71
+ }), w();
72
+ }, [w, E]);
73
+ return l(() => {
74
+ S([{
75
+ ...v.createAttributes("UserFeedbackDialog-close"),
75
76
  autoFocus: !0,
76
77
  color: "primary",
77
- label: T`Cancel`,
78
- onClick: C,
78
+ label: E`Cancel`,
79
+ onClick: w,
79
80
  variant: "outlined"
80
81
  }, {
81
- ..._.createAttributes("UserFeedbackDialog-send"),
82
+ ...v.createAttributes("UserFeedbackDialog-send"),
82
83
  autoFocus: !0,
83
84
  color: "secondary",
84
- label: T`Send`,
85
- onClick: O(A),
85
+ label: E`Send`,
86
+ onClick: A(M),
86
87
  variant: "contained"
87
88
  }]);
88
89
  }, [
89
- O,
90
- x,
91
- C,
92
90
  A,
93
- T
94
- ]), /* @__PURE__ */ p(s, { children: [/* @__PURE__ */ f(s, {
91
+ S,
92
+ w,
93
+ M,
94
+ E
95
+ ]), /* @__PURE__ */ f(p, { children: [/* @__PURE__ */ d(p, {
95
96
  sx: { marginBottom: 2 },
96
- children: /* @__PURE__ */ f(c, {
97
+ children: /* @__PURE__ */ d(m, {
97
98
  component: "p",
98
- children: T("Please help make {{applicationName}} better by sharing your feedback with us. You may use this form as many times as you like.", { applicationName: e.getInstance().config.applicationName })
99
+ children: E("Please help make {{applicationName}} better by sharing your feedback with us. You may use this form as many times as you like.", { applicationName: D.applicationName })
99
100
  })
100
- }), /* @__PURE__ */ f(S, {
101
- formFieldDefinitions: k,
102
- formMethods: D,
103
- onSubmit: O(A),
104
- schema: E
101
+ }), /* @__PURE__ */ d(C, {
102
+ formFieldDefinitions: j,
103
+ formMethods: k,
104
+ onSubmit: A(M),
105
+ schema: O
105
106
  })] });
106
107
  }, {
107
108
  defaultTitle: "",
@@ -112,6 +113,6 @@ var C = x(({ onActionsChange: x, onClose: C, onTitleChange: w }) => {
112
113
  testId: "UserFeedbackDialog"
113
114
  });
114
115
  //#endregion
115
- export { C as UserFeedbackDialog };
116
+ export { w as UserFeedbackDialog };
116
117
 
117
118
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ui/UserFeedbackDialog/UserFeedbackDialog.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next';\nimport type { ReactElement } from 'react';\nimport {\n useCallback,\n useEffect,\n useMemo,\n} from 'react';\nimport type { Resolver } from 'react-hook-form';\nimport { useForm } from 'react-hook-form';\nimport { yupResolver } from '@hookform/resolvers/yup';\nimport {\n object,\n string,\n} from 'yup';\nimport {\n Box,\n Typography,\n} from '@mui/material';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\nimport { SchemaUtil } from '@gen-epix/ui-core-form/utils/SchemaUtil';\nimport { GenericForm } from '@gen-epix/ui-core-form/components/helpers/GenericForm';\nimport type { FormFieldDefinition } from '@gen-epix/ui-core-form/models/form';\nimport { FORM_FIELD_DEFINITION_TYPE } from '@gen-epix/ui-core-form/models/form';\nimport type {\n WithDialogRefMethods,\n WithDialogRenderProps,\n} from '@gen-epix/ui-core-components/hoc/withDialog';\nimport { withDialog } from '@gen-epix/ui-core-components/hoc/withDialog';\n\nimport { ConfigService } from '../../../classes/services/ConfigService';\nimport { LogService } from '../../../classes/services/LogService';\nimport { NavigationHistoryService } from '../../../classes/services/NavigationHistoryService';\nimport { NotificationService } from '../../../classes/services/NotificationService';\nimport { UserSettingsService } from '../../../classes/services/UserSettingsService';\nimport { AuthorizationService } from '../../../classes/services/AuthorizationService';\n\nexport interface UserFeedbackDialogOpenProps {\n //\n}\n\nexport interface UserFeedbackDialogProps extends WithDialogRenderProps<UserFeedbackDialogOpenProps> {\n //\n}\n\nexport type UserFeedbackDialogRefMethods = WithDialogRefMethods<UserFeedbackDialogProps, UserFeedbackDialogOpenProps>;\n\ntype FormFields = {\n email: string;\n message: string;\n name: string;\n};\n\nexport const UserFeedbackDialog = withDialog<UserFeedbackDialogProps, UserFeedbackDialogOpenProps>((\n {\n onActionsChange,\n onClose,\n onTitleChange,\n }: UserFeedbackDialogProps,\n): ReactElement => {\n const { t } = useTranslation();\n\n const schema = useMemo(() => object<FormFields>().shape({\n email: string().email().required().max(200),\n message: string().freeFormText().required().max(5000),\n name: SchemaUtil.name,\n }), []);\n\n const formMethods = useForm<FormFields>({\n resolver: yupResolver(schema) as Resolver<FormFields>,\n values: {\n email: AuthorizationService.getInstance().user?.email ?? AuthorizationService.getInstance().user?.key ?? '',\n message: '',\n name: AuthorizationService.getInstance().user?.name ?? '',\n },\n });\n const { handleSubmit } = formMethods;\n\n useEffect(() => {\n UserSettingsService.getInstance().showShowUserFeedbackTooltip = false;\n }, []);\n\n const formFieldDefinitions = useMemo<FormFieldDefinition<FormFields>[]>(() => [\n {\n definition: FORM_FIELD_DEFINITION_TYPE.TEXTFIELD,\n label: t`Name`,\n name: 'name',\n } as const satisfies FormFieldDefinition<FormFields>,\n {\n definition: FORM_FIELD_DEFINITION_TYPE.TEXTFIELD,\n label: t`Email`,\n name: 'email',\n } as const satisfies FormFieldDefinition<FormFields>,\n {\n definition: FORM_FIELD_DEFINITION_TYPE.TEXTFIELD,\n label: t`Your message`,\n multiline: true,\n name: 'message',\n rows: 15,\n } as const satisfies FormFieldDefinition<FormFields>,\n ] as const, [t]);\n\n useEffect(() => {\n onTitleChange(t`Feedback`);\n }, [onTitleChange, t]);\n\n const onFormSubmit = useCallback((formValues: FormFields): void => {\n const navigationHistory = NavigationHistoryService.getInstance().navigationHistory;\n LogService.getInstance().log([{\n detail: {\n ...formValues,\n navigationHistory: navigationHistory.slice(navigationHistory.length - 50).reverse(),\n },\n level: 'INFO',\n topic: 'USER_FEEDBACK',\n }]);\n LogService.getInstance().flushLog();\n NotificationService.getInstance().showNotification({\n message: t`Thank you for sharing your feedback with us`,\n severity: 'success',\n });\n onClose();\n }, [onClose, t]);\n\n useEffect(() => {\n onActionsChange(\n [\n {\n ...TestIdUtil.createAttributes('UserFeedbackDialog-close'),\n autoFocus: true,\n color: 'primary',\n label: t`Cancel`,\n onClick: onClose,\n variant: 'outlined',\n },\n {\n ...TestIdUtil.createAttributes('UserFeedbackDialog-send'),\n autoFocus: true,\n color: 'secondary',\n label: t`Send`,\n onClick: handleSubmit(onFormSubmit),\n variant: 'contained',\n },\n ],\n );\n }, [handleSubmit, onActionsChange, onClose, onFormSubmit, t]);\n\n return (\n <Box>\n <Box\n sx={{\n marginBottom: 2,\n }}\n >\n <Typography component={'p'}>\n {t('Please help make {{applicationName}} better by sharing your feedback with us. You may use this form as many times as you like.', { applicationName: ConfigService.getInstance().config.applicationName })}\n </Typography>\n </Box>\n <GenericForm<FormFields>\n formFieldDefinitions={formFieldDefinitions}\n formMethods={formMethods}\n onSubmit={handleSubmit(onFormSubmit)}\n schema={schema}\n />\n </Box>\n );\n}, {\n defaultTitle: '',\n disableBackdropClick: false,\n fullWidth: true,\n maxWidth: 'md',\n noCloseButton: false,\n testId: 'UserFeedbackDialog',\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAoDA,IAAa,IAAqB,GAChC,EACE,oBACA,YACA,uBAEe;CACjB,IAAM,EAAE,SAAM,EAAe,GAEvB,IAAS,QAAc,EAAmB,CAAC,CAAC,MAAM;EACtD,OAAO,EAAO,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,GAAG;EAC1C,SAAS,EAAO,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,GAAI;EACpD,MAAM,EAAW;CACnB,CAAC,GAAG,CAAC,CAAC,GAEA,IAAc,EAAoB;EACtC,UAAU,EAAY,CAAM;EAC5B,QAAQ;GACN,OAAO,EAAqB,YAAY,CAAC,CAAC,MAAM,SAAS,EAAqB,YAAY,CAAC,CAAC,MAAM,OAAO;GACzG,SAAS;GACT,MAAM,EAAqB,YAAY,CAAC,CAAC,MAAM,QAAQ;EACzD;CACF,CAAC,GACK,EAAE,oBAAiB;CAEzB,QAAgB;EACd,EAAoB,YAAY,CAAC,CAAC,8BAA8B;CAClE,GAAG,CAAC,CAAC;CAEL,IAAM,IAAuB,QAAiD;EAC5E;GACE,YAAY,EAA2B;GACvC,OAAO,CAAC;GACR,MAAM;EACR;EACA;GACE,YAAY,EAA2B;GACvC,OAAO,CAAC;GACR,MAAM;EACR;EACA;GACE,YAAY,EAA2B;GACvC,OAAO,CAAC;GACR,WAAW;GACX,MAAM;GACN,MAAM;EACR;CACF,GAAY,CAAC,CAAC,CAAC;CAEf,QAAgB;EACd,EAAc,CAAC,UAAU;CAC3B,GAAG,CAAC,GAAe,CAAC,CAAC;CAErB,IAAM,IAAe,GAAa,MAAiC;EACjE,IAAM,IAAoB,EAAyB,YAAY,CAAC,CAAC;EAcjE,AAbA,EAAW,YAAY,CAAC,CAAC,IAAI,CAAC;GAC5B,QAAQ;IACN,GAAG;IACH,mBAAmB,EAAkB,MAAM,EAAkB,SAAS,EAAE,CAAC,CAAC,QAAQ;GACpF;GACA,OAAO;GACP,OAAO;EACT,CAAC,CAAC,GACF,EAAW,YAAY,CAAC,CAAC,SAAS,GAClC,EAAoB,YAAY,CAAC,CAAC,iBAAiB;GACjD,SAAS,CAAC;GACV,UAAU;EACZ,CAAC,GACD,EAAQ;CACV,GAAG,CAAC,GAAS,CAAC,CAAC;CAyBf,OAvBA,QAAgB;EACd,EACE,CACE;GACE,GAAG,EAAW,iBAAiB,0BAA0B;GACzD,WAAW;GACX,OAAO;GACP,OAAO,CAAC;GACR,SAAS;GACT,SAAS;EACX,GACA;GACE,GAAG,EAAW,iBAAiB,yBAAyB;GACxD,WAAW;GACX,OAAO;GACP,OAAO,CAAC;GACR,SAAS,EAAa,CAAY;GAClC,SAAS;EACX,CACF,CACF;CACF,GAAG;EAAC;EAAc;EAAiB;EAAS;EAAc;CAAC,CAAC,GAG1D,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;EACE,IAAI,EACF,cAAc,EAChB;EAEA,UAAA,kBAAC,GAAD;GAAY,WAAW;GACpB,UAAA,EAAE,kIAAkI,EAAE,iBAAiB,EAAc,YAAY,CAAC,CAAC,OAAO,gBAAgB,CAAC;EAClM,CAAA;CACT,CAAA,GACL,kBAAC,GAAD;EACwB;EACT;EACb,UAAU,EAAa,CAAY;EAC3B;CACT,CAAA,CACE,EAAA,CAAA;AAET,GAAG;CACD,cAAc;CACd,sBAAsB;CACtB,WAAW;CACX,UAAU;CACV,eAAe;CACf,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"index.js","names":["yupResolver","rootContainer","o","UserFeedbackDialog","withDialog","useTranslation","config","useConfig","schema","useMemo","object","string","SchemaUtil","formMethods","useForm","container","AuthorizationService","UserSettingsService","formFieldDefinitions","FORM_FIELD_DEFINITION_TYPE","t","onTitleChange","onFormSubmit","useCallback","navigationHistory","NavigationHistoryService","LogService","formValues","NotificationService","onClose","useEffect","TestIdUtil","handleSubmit","onActionsChange","Box","Typography","GenericForm"],"sources":["../../../../src/components/ui/UserFeedbackDialog/UserFeedbackDialog.tsx"],"sourcesContent":["import { container as rootContainer } from 'tsyringe';\nimport { useTranslation } from 'react-i18next';\nimport type { ReactElement } from 'react';\nimport {\n useCallback,\n useEffect,\n useMemo,\n} from 'react';\nimport type { Resolver } from 'react-hook-form';\nimport { useForm } from 'react-hook-form';\nimport { yupResolver } from '@hookform/resolvers/yup';\nimport {\n object,\n string,\n} from 'yup';\nimport {\n Box,\n Typography,\n} from '@mui/material';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\nimport { SchemaUtil } from '@gen-epix/ui-core-form/utils/SchemaUtil';\nimport { GenericForm } from '@gen-epix/ui-core-form/components/helpers/GenericForm';\nimport type { FormFieldDefinition } from '@gen-epix/ui-core-form/models/form.models';\nimport { FORM_FIELD_DEFINITION_TYPE } from '@gen-epix/ui-core-form/models/form.models';\nimport type {\n WithDialogRefMethods,\n WithDialogRenderProps,\n} from '@gen-epix/ui-core-components/hoc/withDialog';\nimport { withDialog } from '@gen-epix/ui-core-components/hoc/withDialog';\n\nimport { LogService } from '../../../classes/services/LogService';\nimport { NavigationHistoryService } from '../../../classes/services/NavigationHistoryService';\nimport { NotificationService } from '../../../classes/services/NotificationService';\nimport { UserSettingsService } from '../../../classes/services/UserSettingsService';\nimport { AuthorizationService } from '../../../classes/services/AuthorizationService';\nimport { useConfig } from '../../../hooks/useConfig';\n\nexport interface UserFeedbackDialogOpenProps {\n //\n}\n\nexport interface UserFeedbackDialogProps extends WithDialogRenderProps<UserFeedbackDialogOpenProps> {\n //\n}\n\nexport type UserFeedbackDialogRefMethods = WithDialogRefMethods<UserFeedbackDialogProps, UserFeedbackDialogOpenProps>;\n\ntype FormFields = {\n email: string;\n message: string;\n name: string;\n};\n\nexport const UserFeedbackDialog = withDialog<UserFeedbackDialogProps, UserFeedbackDialogOpenProps>((\n {\n onActionsChange,\n onClose,\n onTitleChange,\n }: UserFeedbackDialogProps,\n): ReactElement => {\n const { t } = useTranslation();\n const config = useConfig();\n\n const schema = useMemo(() => object<FormFields>().shape({\n email: string().email().required().max(200),\n message: string().freeFormText().required().max(5000),\n name: SchemaUtil.name,\n }), []);\n\n const formMethods = useForm<FormFields>({\n resolver: yupResolver(schema) as Resolver<FormFields>,\n values: {\n email: rootContainer.resolve(AuthorizationService).user?.email ?? rootContainer.resolve(AuthorizationService).user?.key ?? '',\n message: '',\n name: rootContainer.resolve(AuthorizationService).user?.name ?? '',\n },\n });\n const { handleSubmit } = formMethods;\n\n useEffect(() => {\n rootContainer.resolve(UserSettingsService).showShowUserFeedbackTooltip = false;\n }, []);\n\n const formFieldDefinitions = useMemo<FormFieldDefinition<FormFields>[]>(() => [\n {\n definition: FORM_FIELD_DEFINITION_TYPE.TEXTFIELD,\n label: t`Name`,\n name: 'name',\n } as const satisfies FormFieldDefinition<FormFields>,\n {\n definition: FORM_FIELD_DEFINITION_TYPE.TEXTFIELD,\n label: t`Email`,\n name: 'email',\n } as const satisfies FormFieldDefinition<FormFields>,\n {\n definition: FORM_FIELD_DEFINITION_TYPE.TEXTFIELD,\n label: t`Your message`,\n multiline: true,\n name: 'message',\n rows: 15,\n } as const satisfies FormFieldDefinition<FormFields>,\n ] as const, [t]);\n\n useEffect(() => {\n onTitleChange(t`Feedback`);\n }, [onTitleChange, t]);\n\n const onFormSubmit = useCallback((formValues: FormFields): void => {\n const navigationHistory = rootContainer.resolve(NavigationHistoryService).navigationHistory;\n rootContainer.resolve(LogService).log([{\n detail: {\n ...formValues,\n navigationHistory: navigationHistory.slice(navigationHistory.length - 50).reverse(),\n },\n level: 'INFO',\n topic: 'USER_FEEDBACK',\n }]);\n rootContainer.resolve(LogService).flushLog();\n rootContainer.resolve(NotificationService).showNotification({\n message: t`Thank you for sharing your feedback with us`,\n severity: 'success',\n });\n onClose();\n }, [onClose, t]);\n\n useEffect(() => {\n onActionsChange(\n [\n {\n ...TestIdUtil.createAttributes('UserFeedbackDialog-close'),\n autoFocus: true,\n color: 'primary',\n label: t`Cancel`,\n onClick: onClose,\n variant: 'outlined',\n },\n {\n ...TestIdUtil.createAttributes('UserFeedbackDialog-send'),\n autoFocus: true,\n color: 'secondary',\n label: t`Send`,\n onClick: handleSubmit(onFormSubmit),\n variant: 'contained',\n },\n ],\n );\n }, [handleSubmit, onActionsChange, onClose, onFormSubmit, t]);\n\n return (\n <Box>\n <Box\n sx={{\n marginBottom: 2,\n }}\n >\n <Typography component={'p'}>\n {t('Please help make {{applicationName}} better by sharing your feedback with us. You may use this form as many times as you like.', { applicationName: config.applicationName })}\n </Typography>\n </Box>\n <GenericForm<FormFields>\n formFieldDefinitions={formFieldDefinitions}\n formMethods={formMethods}\n onSubmit={handleSubmit(onFormSubmit)}\n schema={schema}\n />\n </Box>\n );\n}, {\n defaultTitle: '',\n disableBackdropClick: false,\n fullWidth: true,\n maxWidth: 'md',\n noCloseButton: false,\n testId: 'UserFeedbackDialog',\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAqDA,IAAaG,IAAqBC,GAChC,EACE,oBACA,YACA,uBAEe;CACjB,IAAM,EAAE,SAAMC,EAAe,GACvBC,IAASC,EAAU,GAEnBC,IAASC,QAAcC,EAAmB,CAAC,CAAC,MAAM;EACtD,OAAOC,EAAO,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,GAAG;EAC1C,SAASA,EAAO,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,GAAI;EACpD,MAAMC,EAAW;CACnB,CAAC,GAAG,CAAC,CAAC,GAEAC,IAAcC,EAAoB;EACtC,UAAUd,EAAYQ,CAAM;EAC5B,QAAQ;GACN,OAAOP,EAAc,QAAQe,CAAoB,CAAC,CAAC,MAAM,SAASf,EAAc,QAAQe,CAAoB,CAAC,CAAC,MAAM,OAAO;GAC3H,SAAS;GACT,MAAMf,EAAc,QAAQe,CAAoB,CAAC,CAAC,MAAM,QAAQ;EAClE;CACF,CAAC,GACK,EAAE,oBAAiBH;CAEzB,QAAgB;EACd,EAAc,QAAQI,CAAmB,CAAC,CAAC,8BAA8B;CAC3E,GAAG,CAAC,CAAC;CAEL,IAAMC,IAAuBT,QAAiD;EAC5E;GACE,YAAYU,EAA2B;GACvC,OAAO,CAAC;GACR,MAAM;EACR;EACA;GACE,YAAYA,EAA2B;GACvC,OAAO,CAAC;GACR,MAAM;EACR;EACA;GACE,YAAYA,EAA2B;GACvC,OAAO,CAAC;GACR,WAAW;GACX,MAAM;GACN,MAAM;EACR;CACF,GAAY,CAACC,CAAC,CAAC;CAEf,QAAgB;EACd,EAAc,CAAC,UAAU;CAC3B,GAAG,CAACC,GAAeD,CAAC,CAAC;CAErB,IAAME,IAAeC,GAAa,MAAiC;EACjE,IAAMC,IAAoBvB,EAAc,QAAQwB,CAAwB,CAAC,CAAC;EAc1E,AAbAV,EAAc,QAAQW,CAAU,CAAC,CAAC,IAAI,CAAC;GACrC,QAAQ;IACN,GAAGC;IACH,mBAAmBH,EAAkB,MAAMA,EAAkB,SAAS,EAAE,CAAC,CAAC,QAAQ;GACpF;GACA,OAAO;GACP,OAAO;EACT,CAAC,CAAC,GACFT,EAAc,QAAQW,CAAU,CAAC,CAAC,SAAS,GAC3CX,EAAc,QAAQa,CAAmB,CAAC,CAAC,iBAAiB;GAC1D,SAAS,CAAC;GACV,UAAU;EACZ,CAAC,GACDC,EAAQ;CACV,GAAG,CAACA,GAAST,CAAC,CAAC;CAyBf,OAvBAU,QAAgB;EACd,EACE,CACE;GACE,GAAGC,EAAW,iBAAiB,0BAA0B;GACzD,WAAW;GACX,OAAO;GACP,OAAO,CAAC;GACR,SAASF;GACT,SAAS;EACX,GACA;GACE,GAAGE,EAAW,iBAAiB,yBAAyB;GACxD,WAAW;GACX,OAAO;GACP,OAAO,CAAC;GACR,SAASC,EAAaV,CAAY;GAClC,SAAS;EACX,CACF,CACF;CACF,GAAG;EAACU;EAAcC;EAAiBJ;EAASP;EAAcF;CAAC,CAAC,GAG1D,kBAACc,GAAD,EAAA,UAAA,CACE,kBAACA,GAAD;EACE,IAAI,EACF,cAAc,EAChB;EAEA,UAAA,kBAACC,GAAD;GAAY,WAAW;GACpB,UAAAf,EAAE,kIAAkI,EAAE,iBAAiBd,EAAO,gBAAgB,CAAC;EACtK,CAAA;CACT,CAAA,GACL,kBAAC8B,GAAD;EACwB;EACT;EACb,UAAUJ,EAAaV,CAAY;EAC3B;CACT,CAAA,CACE,EAAA,CAAA;AAET,GAAG;CACD,cAAc;CACd,sBAAsB;CACtB,WAAW;CACX,UAAU;CACV,eAAe;CACf,QAAQ;AACV,CAAC"}
@@ -1 +1 @@
1
- export declare const UserInactivityConfirmation: () => import("react").JSX.Element;
1
+ export declare const UserInactivityConfirmation: () => import('react').JSX.Element;
@@ -1,40 +1,41 @@
1
1
  import { InactivityService as e } from "../../../classes/services/InactivityService/index.js";
2
- import { useCallback as t, useEffect as n, useRef as r, useState as i } from "react";
3
- import { jsx as a } from "react/jsx-runtime";
4
- import { useTranslation as o } from "react-i18next";
5
- import { Confirmation as s } from "@gen-epix/ui-core-components/components/Confirmation";
2
+ import { container as t } from "tsyringe";
3
+ import { useCallback as n, useEffect as r, useRef as i, useState as a } from "react";
4
+ import { jsx as o } from "react/jsx-runtime";
5
+ import { useTranslation as s } from "react-i18next";
6
+ import { Confirmation as c } from "@gen-epix/ui-core-components/components/Confirmation";
6
7
  //#region src/components/ui/UserInactivityConfirmation/UserInactivityConfirmation.tsx
7
- var c = () => {
8
- let { t: c } = o(), l = r(null), [u, d] = i(e.getInstance().data);
9
- n(() => {
10
- let t = e.getInstance().subscribe((e) => {
11
- e.isIdle ? (d(e), l.current?.open()) : l.current?.close();
8
+ var l = () => {
9
+ let { t: l } = s(), u = i(null), [d, f] = a(t.resolve(e).data);
10
+ r(() => {
11
+ let n = t.resolve(e).subscribe((e) => {
12
+ e.isIdle ? (f(e), u.current?.open()) : u.current?.close();
12
13
  });
13
14
  return () => {
14
- t();
15
+ n();
15
16
  };
16
17
  }, []);
17
- let f = t(() => {
18
- e.getInstance().logout();
19
- }, []), p = t(() => {
20
- e.getInstance().reset();
18
+ let p = n(() => {
19
+ t.resolve(e).logout();
20
+ }, []), m = n(() => {
21
+ t.resolve(e).reset();
21
22
  }, []);
22
- return /* @__PURE__ */ a(s, {
23
- body: c("Because you were inactive for the last {{formattedTimeInactive}}, you will be automatically logged out in {{formattedTimeUntilLogout}}.", {
24
- formattedTimeInactive: u.readableIdleDiff,
25
- formattedTimeUntilLogout: u.readableNotificationDiff
23
+ return /* @__PURE__ */ o(c, {
24
+ body: l("Because you were inactive for the last {{formattedTimeInactive}}, you will be automatically logged out in {{formattedTimeUntilLogout}}.", {
25
+ formattedTimeInactive: d.readableIdleDiff,
26
+ formattedTimeUntilLogout: d.readableNotificationDiff
26
27
  }),
27
28
  cancelLabel: "Logout",
28
- confirmLabel: c`Stay logged in`,
29
+ confirmLabel: l`Stay logged in`,
29
30
  maxWidth: "xs",
30
- onCancel: f,
31
- onClose: p,
32
- onConfirm: p,
33
- ref: l,
34
- title: c`Your session is about to expire`
31
+ onCancel: p,
32
+ onClose: m,
33
+ onConfirm: m,
34
+ ref: u,
35
+ title: l`Your session is about to expire`
35
36
  });
36
37
  };
37
38
  //#endregion
38
- export { c as UserInactivityConfirmation };
39
+ export { l as UserInactivityConfirmation };
39
40
 
40
41
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ui/UserInactivityConfirmation/UserInactivityConfirmation.tsx"],"sourcesContent":["import {\n useCallback,\n useEffect,\n useRef,\n useState,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\nimport type { ConfirmationRefMethods } from '@gen-epix/ui-core-components/components/Confirmation';\nimport { Confirmation } from '@gen-epix/ui-core-components/components/Confirmation';\n\nimport type { InactivityState } from '../../../classes/services/InactivityService';\nimport { InactivityService } from '../../../classes/services/InactivityService';\n\nexport const UserInactivityConfirmation = () => {\n const { t } = useTranslation();\n const confirmationRef = useRef<ConfirmationRefMethods>(null);\n const [idleState, setIdleState] = useState<InactivityState>(InactivityService.getInstance().data);\n\n\n useEffect(() => {\n const unsubscribe = InactivityService.getInstance().subscribe((data) => {\n if (data.isIdle) {\n setIdleState(data);\n confirmationRef.current?.open();\n } else {\n confirmationRef.current?.close();\n }\n });\n return () => {\n unsubscribe();\n };\n }, []);\n\n const onCancel = useCallback(() => {\n InactivityService.getInstance().logout();\n }, []);\n\n const onClose = useCallback(() => {\n InactivityService.getInstance().reset();\n }, []);\n\n\n return (\n <Confirmation\n body={t('Because you were inactive for the last {{formattedTimeInactive}}, you will be automatically logged out in {{formattedTimeUntilLogout}}.', {\n formattedTimeInactive: idleState.readableIdleDiff,\n formattedTimeUntilLogout: idleState.readableNotificationDiff,\n })}\n cancelLabel={'Logout'}\n confirmLabel={t`Stay logged in`}\n maxWidth={'xs'}\n onCancel={onCancel}\n onClose={onClose}\n onConfirm={onClose}\n ref={confirmationRef}\n title={t`Your session is about to expire`}\n />\n );\n};\n"],"mappings":";;;;;;AAaA,IAAa,UAAmC;CAC9C,IAAM,EAAE,SAAM,EAAe,GACvB,IAAkB,EAA+B,IAAI,GACrD,CAAC,GAAW,KAAgB,EAA0B,EAAkB,YAAY,CAAC,CAAC,IAAI;CAGhG,QAAgB;EACd,IAAM,IAAc,EAAkB,YAAY,CAAC,CAAC,WAAW,MAAS;GACtE,AAAI,EAAK,UACP,EAAa,CAAI,GACjB,EAAgB,SAAS,KAAK,KAE9B,EAAgB,SAAS,MAAM;EAEnC,CAAC;EACD,aAAa;GACX,EAAY;EACd;CACF,GAAG,CAAC,CAAC;CAEL,IAAM,IAAW,QAAkB;EACjC,EAAkB,YAAY,CAAC,CAAC,OAAO;CACzC,GAAG,CAAC,CAAC,GAEC,IAAU,QAAkB;EAChC,EAAkB,YAAY,CAAC,CAAC,MAAM;CACxC,GAAG,CAAC,CAAC;CAGL,OACE,kBAAC,GAAD;EACE,MAAM,EAAE,2IAA2I;GACjJ,uBAAuB,EAAU;GACjC,0BAA0B,EAAU;EACtC,CAAC;EACD,aAAa;EACb,cAAc,CAAC;EACf,UAAU;EACA;EACD;EACT,WAAW;EACX,KAAK;EACL,OAAO,CAAC;CACT,CAAA;AAEL"}
1
+ {"version":3,"file":"index.js","names":["rootContainer","UserInactivityConfirmation","useTranslation","confirmationRef","useRef","idleState","setIdleState","useState","container","InactivityService","unsubscribe","data","onCancel","useCallback","onClose","Confirmation","t"],"sources":["../../../../src/components/ui/UserInactivityConfirmation/UserInactivityConfirmation.tsx"],"sourcesContent":["import { container as rootContainer } from 'tsyringe';\nimport {\n useCallback,\n useEffect,\n useRef,\n useState,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\nimport type { ConfirmationRefMethods } from '@gen-epix/ui-core-components/components/Confirmation';\nimport { Confirmation } from '@gen-epix/ui-core-components/components/Confirmation';\n\nimport type { InactivityState } from '../../../classes/services/InactivityService';\nimport { InactivityService } from '../../../classes/services/InactivityService';\n\nexport const UserInactivityConfirmation = () => {\n const { t } = useTranslation();\n const confirmationRef = useRef<ConfirmationRefMethods>(null);\n const [idleState, setIdleState] = useState<InactivityState>(rootContainer.resolve(InactivityService).data);\n\n\n useEffect(() => {\n const unsubscribe = rootContainer.resolve(InactivityService).subscribe((data) => {\n if (data.isIdle) {\n setIdleState(data);\n confirmationRef.current?.open();\n } else {\n confirmationRef.current?.close();\n }\n });\n return () => {\n unsubscribe();\n };\n }, []);\n\n const onCancel = useCallback(() => {\n rootContainer.resolve(InactivityService).logout();\n }, []);\n\n const onClose = useCallback(() => {\n rootContainer.resolve(InactivityService).reset();\n }, []);\n\n\n return (\n <Confirmation\n body={t('Because you were inactive for the last {{formattedTimeInactive}}, you will be automatically logged out in {{formattedTimeUntilLogout}}.', {\n formattedTimeInactive: idleState.readableIdleDiff,\n formattedTimeUntilLogout: idleState.readableNotificationDiff,\n })}\n cancelLabel={'Logout'}\n confirmLabel={t`Stay logged in`}\n maxWidth={'xs'}\n onCancel={onCancel}\n onClose={onClose}\n onConfirm={onClose}\n ref={confirmationRef}\n title={t`Your session is about to expire`}\n />\n );\n};\n"],"mappings":";;;;;;;AAcA,IAAaC,UAAmC;CAC9C,IAAM,EAAE,SAAMC,EAAe,GACvBC,IAAkBC,EAA+B,IAAI,GACrD,CAACC,GAAWC,KAAgBC,EAA0BP,EAAc,QAAQS,CAAiB,CAAC,CAAC,IAAI;CAGzG,QAAgB;EACd,IAAMC,IAAcV,EAAc,QAAQS,CAAiB,CAAC,CAAC,WAAW,MAAS;GAC/E,AAAIE,EAAK,UACPL,EAAaK,CAAI,GACjBR,EAAgB,SAAS,KAAK,KAE9BA,EAAgB,SAAS,MAAM;EAEnC,CAAC;EACD,aAAa;GACX,EAAY;EACd;CACF,GAAG,CAAC,CAAC;CAEL,IAAMS,IAAWC,QAAkB;EACjC,EAAc,QAAQJ,CAAiB,CAAC,CAAC,OAAO;CAClD,GAAG,CAAC,CAAC,GAECK,IAAUD,QAAkB;EAChC,EAAc,QAAQJ,CAAiB,CAAC,CAAC,MAAM;CACjD,GAAG,CAAC,CAAC;CAGL,OACE,kBAACM,GAAD;EACE,MAAMC,EAAE,2IAA2I;GACjJ,uBAAuBX,EAAU;GACjC,0BAA0BA,EAAU;EACtC,CAAC;EACD,aAAa;EACb,cAAc,CAAC;EACf,UAAU;EACA;EACD;EACT,WAAWS;EACX,KAAKX;EACL,OAAO,CAAC;CACT,CAAA;AAEL"}
@@ -0,0 +1,5 @@
1
+ import { InjectionToken } from 'tsyringe';
2
+ import { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';
3
+ import { ConfigBase } from '../models/config.models';
4
+ export declare const CONFIG_TOKEN: InjectionToken<ConfigBase>;
5
+ export declare const WINDOW_SERVICE_TOKEN: InjectionToken<WindowService>;