@pagopa/selfcare-common-frontend 1.35.0 → 1.35.1

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 (287) hide show
  1. package/CHANGELOG.md +875 -1
  2. package/README.md +34 -8
  3. package/examples/locale/en.d.ts +20 -0
  4. package/examples/locale/en.js +18 -0
  5. package/examples/locale/index.js +4 -0
  6. package/examples/locale/it.d.ts +20 -0
  7. package/examples/locale/it.js +19 -0
  8. package/{common-polyfill.d.ts → lib/common-polyfill.d.ts} +0 -1
  9. package/lib/common-polyfill.js +9 -0
  10. package/lib/components/BackComponent.d.ts +7 -0
  11. package/lib/components/BackComponent.js +8 -0
  12. package/lib/components/CustomAlert.d.ts +12 -0
  13. package/lib/components/CustomAlert.js +7 -0
  14. package/{components → lib/components}/CustomAvatar.d.ts +2 -3
  15. package/lib/components/CustomAvatar.js +13 -0
  16. package/{components → lib/components}/CustomPagination.d.ts +7 -3
  17. package/lib/components/CustomPagination.js +25 -0
  18. package/{components → lib/components}/EndingPage.d.ts +15 -3
  19. package/lib/components/EndingPage.js +4 -0
  20. package/lib/components/ErrorBoundary/ErrorBoundary.d.ts +11 -0
  21. package/lib/components/ErrorBoundary/ErrorBoundary.js +93 -0
  22. package/{components → lib/components}/ErrorBoundary/components/BlockingErrorPage.d.ts +2 -3
  23. package/lib/components/ErrorBoundary/components/BlockingErrorPage.js +11 -0
  24. package/{components → lib/components}/FilterModal.d.ts +3 -3
  25. package/lib/components/FilterModal.js +29 -0
  26. package/{components → lib/components}/Footer/Footer.d.ts +2 -3
  27. package/lib/components/Footer/Footer.js +179 -0
  28. package/{components → lib/components}/Footer/FooterConfig.js +5 -9
  29. package/{components → lib/components}/Header/Header.d.ts +11 -6
  30. package/lib/components/Header/Header.js +45 -0
  31. package/{components → lib/components}/Loading/LoadingOverlay.d.ts +1 -2
  32. package/lib/components/Loading/LoadingOverlay.js +13 -0
  33. package/lib/components/LoadingOverlayComponent.d.ts +7 -0
  34. package/lib/components/LoadingOverlayComponent.js +25 -0
  35. package/{components → lib/components}/NavigationBar.d.ts +5 -4
  36. package/lib/components/NavigationBar.js +17 -0
  37. package/{components → lib/components}/SessionModal.d.ts +3 -3
  38. package/lib/components/SessionModal.js +17 -0
  39. package/{components → lib/components}/TitleBox.d.ts +7 -7
  40. package/lib/components/TitleBox.js +9 -0
  41. package/{components → lib/components}/Toast.d.ts +3 -3
  42. package/lib/components/Toast.js +25 -0
  43. package/{components → lib/components}/ToastWrapper.d.ts +2 -2
  44. package/lib/components/ToastWrapper.js +12 -0
  45. package/{components → lib/components}/UnloadEventHandler.d.ts +1 -2
  46. package/lib/components/UnloadEventHandler.js +29 -0
  47. package/{components → lib/components}/UserNotifyHandle.d.ts +1 -2
  48. package/lib/components/UserNotifyHandle.js +62 -0
  49. package/{components → lib/components}/icons/CheckIllustrationIcon.d.ts +1 -2
  50. package/lib/components/icons/CheckIllustrationIcon.js +3 -0
  51. package/lib/components/icons/ConfirmIcon.js +4 -0
  52. package/{components → lib/components}/icons/ErrorIcon.d.ts +1 -2
  53. package/lib/components/icons/ErrorIcon.js +3 -0
  54. package/lib/components/icons/ErrorIconExclamation.js +4 -0
  55. package/lib/components/icons/FaultIcon.js +4 -0
  56. package/{components → lib/components}/icons/PagoPaIcon.d.ts +1 -2
  57. package/lib/components/icons/PagoPaIcon.js +3 -0
  58. package/{components → lib/components}/icons/PagoPaIconColored.d.ts +1 -2
  59. package/lib/components/icons/PagoPaIconColored.js +3 -0
  60. package/{components → lib/components}/icons/PagoPaMiniIcon.d.ts +1 -2
  61. package/lib/components/icons/PagoPaMiniIcon.js +3 -0
  62. package/lib/components/tests/FilterModal.test.d.ts +1 -0
  63. package/lib/components/tests/FilterModal.test.js +37 -0
  64. package/{config → lib/config}/env.d.ts +4 -1
  65. package/{config → lib/config}/env.js +13 -17
  66. package/lib/consentManagementConfigure.d.ts +1 -0
  67. package/{consentManagementConfigure.js → lib/consentManagementConfigure.js} +5 -8
  68. package/{decorators → lib/decorators}/__mocks__/withLogin.d.ts +1 -2
  69. package/lib/decorators/__mocks__/withLogin.js +18 -0
  70. package/{decorators → lib/decorators}/withLogin.d.ts +1 -2
  71. package/{decorators → lib/decorators}/withLogin.js +13 -18
  72. package/{decorators → lib/decorators}/withRetrievedValue.d.ts +1 -1
  73. package/{decorators → lib/decorators}/withRetrievedValue.js +9 -14
  74. package/lib/hooks/useErrorDispatcher.js +7 -0
  75. package/{hooks → lib/hooks}/useFakePagination.d.ts +3 -3
  76. package/{hooks → lib/hooks}/useFakePagination.js +9 -15
  77. package/lib/hooks/useFocus.d.ts +1 -0
  78. package/lib/hooks/useFocus.js +8 -0
  79. package/lib/hooks/useLiveAnnouncerWithRegion.d.ts +4 -0
  80. package/lib/hooks/useLiveAnnouncerWithRegion.js +19 -0
  81. package/lib/hooks/useLoading.js +10 -0
  82. package/lib/hooks/useLogin.js +40 -0
  83. package/lib/hooks/usePermissions.d.ts +7 -0
  84. package/lib/hooks/usePermissions.js +25 -0
  85. package/lib/hooks/useReduxCachedValue.d.ts +22 -0
  86. package/{hooks → lib/hooks}/useReduxCachedValue.js +10 -17
  87. package/{hooks → lib/hooks}/useUnloadEventInterceptor.d.ts +3 -3
  88. package/{hooks → lib/hooks}/useUnloadEventInterceptor.js +24 -32
  89. package/lib/hooks/useUserNotify.js +7 -0
  90. package/{index.d.ts → lib/index.d.ts} +11 -8
  91. package/lib/index.js +36 -0
  92. package/{locale/it.d.ts → lib/locale/de.d.ts} +4 -1
  93. package/{locale → lib/locale}/de.js +31 -31
  94. package/{locale → lib/locale}/en.d.ts +4 -1
  95. package/{locale → lib/locale}/en.js +30 -30
  96. package/{locale → lib/locale}/fr.d.ts +5 -2
  97. package/{locale → lib/locale}/fr.js +26 -26
  98. package/{locale/de.d.ts → lib/locale/it.d.ts} +8 -2
  99. package/{locale → lib/locale}/it.js +11 -8
  100. package/lib/locale/locale-utils.js +45 -0
  101. package/{locale → lib/locale}/sl.d.ts +5 -2
  102. package/{locale → lib/locale}/sl.js +31 -31
  103. package/{model → lib/model}/AppError.d.ts +1 -1
  104. package/lib/model/AppError.js +1 -0
  105. package/lib/model/JwtUser.d.ts +9 -0
  106. package/lib/model/JwtUser.js +1 -0
  107. package/{model → lib/model}/Page.d.ts +1 -1
  108. package/lib/model/Page.js +1 -0
  109. package/{model → lib/model}/PageRequest.d.ts +1 -1
  110. package/lib/model/PageRequest.js +1 -0
  111. package/{model → lib/model}/PageResource.d.ts +1 -1
  112. package/lib/model/PageResource.js +1 -0
  113. package/lib/model/User.d.ts +8 -0
  114. package/lib/model/User.js +1 -0
  115. package/{model → lib/model}/UserNotify.d.ts +1 -2
  116. package/lib/model/UserNotify.js +1 -0
  117. package/lib/redux/slices/appStateSlice.d.ts +58 -0
  118. package/{redux → lib/redux}/slices/appStateSlice.js +15 -9
  119. package/lib/redux/slices/permissionsSlice.d.ts +12 -0
  120. package/lib/redux/slices/permissionsSlice.js +23 -0
  121. package/lib/redux/slices/productsSlice.d.ts +204 -0
  122. package/lib/redux/slices/productsSlice.js +26 -0
  123. package/lib/redux/slices/userSlice.d.ts +36 -0
  124. package/lib/redux/slices/userSlice.js +17 -0
  125. package/{services → lib/services}/analyticsService.d.ts +2 -1
  126. package/{services → lib/services}/analyticsService.js +31 -28
  127. package/{services → lib/services}/assistanceService.d.ts +1 -1
  128. package/lib/services/assistanceService.js +14 -0
  129. package/lib/services/errorService.js +8 -0
  130. package/{utils → lib/utils}/api-utils.d.ts +3 -3
  131. package/{utils → lib/utils}/api-utils.js +28 -23
  132. package/lib/utils/constants.d.ts +67 -0
  133. package/lib/utils/constants.js +82 -0
  134. package/lib/utils/productId2ProductTitle.d.ts +1 -0
  135. package/lib/utils/productId2ProductTitle.js +13 -0
  136. package/lib/utils/routes-utils.js +2 -0
  137. package/{utils → lib/utils}/storage-utils.d.ts +3 -3
  138. package/{utils → lib/utils}/storage-utils.js +4 -12
  139. package/{utils → lib/utils}/storage.d.ts +6 -0
  140. package/lib/utils/storage.js +31 -0
  141. package/lib/utils/utils.d.ts +11 -0
  142. package/lib/utils/utils.js +148 -0
  143. package/{utils → lib/utils}/verifyChecksumMatchWithTaxCode.js +1 -6
  144. package/{utils → lib/utils}/verifyNameMatchWithTaxCode.d.ts +1 -1
  145. package/lib/utils/verifyNameMatchWithTaxCode.js +27 -0
  146. package/{utils → lib/utils}/verifySurnameMatchWithTaxCode.d.ts +1 -1
  147. package/lib/utils/verifySurnameMatchWithTaxCode.js +17 -0
  148. package/package.json +54 -79
  149. package/build.info +0 -2
  150. package/common-polyfill.js +0 -13
  151. package/common-polyfill.js.map +0 -1
  152. package/components/BackComponent.d.ts +0 -6
  153. package/components/BackComponent.js +0 -12
  154. package/components/BackComponent.js.map +0 -1
  155. package/components/CustomAvatar.js +0 -18
  156. package/components/CustomAvatar.js.map +0 -1
  157. package/components/CustomPagination.js +0 -31
  158. package/components/CustomPagination.js.map +0 -1
  159. package/components/EndingPage.js +0 -7
  160. package/components/EndingPage.js.map +0 -1
  161. package/components/ErrorBoundary/ErrorBoundary.d.ts +0 -11
  162. package/components/ErrorBoundary/ErrorBoundary.js +0 -98
  163. package/components/ErrorBoundary/ErrorBoundary.js.map +0 -1
  164. package/components/ErrorBoundary/components/BlockingErrorPage.js +0 -15
  165. package/components/ErrorBoundary/components/BlockingErrorPage.js.map +0 -1
  166. package/components/FilterModal.js +0 -37
  167. package/components/FilterModal.js.map +0 -1
  168. package/components/Footer/Footer.js +0 -213
  169. package/components/Footer/Footer.js.map +0 -1
  170. package/components/Footer/FooterConfig.js.map +0 -1
  171. package/components/Header/Header.js +0 -24
  172. package/components/Header/Header.js.map +0 -1
  173. package/components/Loading/LoadingOverlay.js +0 -18
  174. package/components/Loading/LoadingOverlay.js.map +0 -1
  175. package/components/LoadingOverlayComponent.d.ts +0 -7
  176. package/components/LoadingOverlayComponent.js +0 -20
  177. package/components/LoadingOverlayComponent.js.map +0 -1
  178. package/components/NavigationBar.js +0 -21
  179. package/components/NavigationBar.js.map +0 -1
  180. package/components/SessionModal.js +0 -21
  181. package/components/SessionModal.js.map +0 -1
  182. package/components/TitleBox.js +0 -13
  183. package/components/TitleBox.js.map +0 -1
  184. package/components/Toast.js +0 -29
  185. package/components/Toast.js.map +0 -1
  186. package/components/ToastWrapper.js +0 -16
  187. package/components/ToastWrapper.js.map +0 -1
  188. package/components/UnloadEventHandler.js +0 -35
  189. package/components/UnloadEventHandler.js.map +0 -1
  190. package/components/UserNotifyHandle.js +0 -67
  191. package/components/UserNotifyHandle.js.map +0 -1
  192. package/components/icons/CheckIllustrationIcon.js +0 -7
  193. package/components/icons/CheckIllustrationIcon.js.map +0 -1
  194. package/components/icons/ConfirmIcon.js +0 -7
  195. package/components/icons/ConfirmIcon.js.map +0 -1
  196. package/components/icons/ErrorIcon.js +0 -7
  197. package/components/icons/ErrorIcon.js.map +0 -1
  198. package/components/icons/ErrorIconExclamation.js +0 -7
  199. package/components/icons/ErrorIconExclamation.js.map +0 -1
  200. package/components/icons/FaultIcon.js +0 -7
  201. package/components/icons/FaultIcon.js.map +0 -1
  202. package/components/icons/PagoPaIcon.js +0 -7
  203. package/components/icons/PagoPaIcon.js.map +0 -1
  204. package/components/icons/PagoPaIconColored.js +0 -7
  205. package/components/icons/PagoPaIconColored.js.map +0 -1
  206. package/components/icons/PagoPaMiniIcon.js +0 -7
  207. package/components/icons/PagoPaMiniIcon.js.map +0 -1
  208. package/config/env.js.map +0 -1
  209. package/consentManagementConfigure.js.map +0 -1
  210. package/decorators/__mocks__/withLogin.js +0 -27
  211. package/decorators/__mocks__/withLogin.js.map +0 -1
  212. package/decorators/withLogin.js.map +0 -1
  213. package/decorators/withRetrievedValue.js.map +0 -1
  214. package/hooks/useErrorDispatcher.js +0 -11
  215. package/hooks/useErrorDispatcher.js.map +0 -1
  216. package/hooks/useFakePagination.js.map +0 -1
  217. package/hooks/useLoading.js +0 -14
  218. package/hooks/useLoading.js.map +0 -1
  219. package/hooks/useLogin.js +0 -44
  220. package/hooks/useLogin.js.map +0 -1
  221. package/hooks/useReduxCachedValue.d.ts +0 -14
  222. package/hooks/useReduxCachedValue.js.map +0 -1
  223. package/hooks/useUnloadEventInterceptor.js.map +0 -1
  224. package/hooks/useUserNotify.js +0 -11
  225. package/hooks/useUserNotify.js.map +0 -1
  226. package/index.js +0 -76
  227. package/index.js.map +0 -1
  228. package/locale/de.js.map +0 -1
  229. package/locale/en.js.map +0 -1
  230. package/locale/fr.js.map +0 -1
  231. package/locale/it.js.map +0 -1
  232. package/locale/locale-utils.js +0 -36
  233. package/locale/locale-utils.js.map +0 -1
  234. package/locale/sl.js.map +0 -1
  235. package/model/AppError.js +0 -3
  236. package/model/AppError.js.map +0 -1
  237. package/model/Page.js +0 -3
  238. package/model/Page.js.map +0 -1
  239. package/model/PageRequest.js +0 -3
  240. package/model/PageRequest.js.map +0 -1
  241. package/model/PageResource.js +0 -3
  242. package/model/PageResource.js.map +0 -1
  243. package/model/User.d.ts +0 -7
  244. package/model/User.js +0 -3
  245. package/model/User.js.map +0 -1
  246. package/model/UserNotify.js +0 -3
  247. package/model/UserNotify.js.map +0 -1
  248. package/redux/slices/appStateSlice.d.ts +0 -76
  249. package/redux/slices/appStateSlice.js.map +0 -1
  250. package/redux/slices/userSlice.d.ts +0 -18
  251. package/redux/slices/userSlice.js +0 -21
  252. package/redux/slices/userSlice.js.map +0 -1
  253. package/services/analyticsService.js.map +0 -1
  254. package/services/assistanceService.js +0 -20
  255. package/services/assistanceService.js.map +0 -1
  256. package/services/errorService.js +0 -13
  257. package/services/errorService.js.map +0 -1
  258. package/utils/api-utils.js.map +0 -1
  259. package/utils/constants.d.ts +0 -19
  260. package/utils/constants.js +0 -32
  261. package/utils/constants.js.map +0 -1
  262. package/utils/routes-utils.js +0 -7
  263. package/utils/routes-utils.js.map +0 -1
  264. package/utils/storage-utils.js.map +0 -1
  265. package/utils/storage.js +0 -9
  266. package/utils/storage.js.map +0 -1
  267. package/utils/utils.d.ts +0 -3
  268. package/utils/utils.js +0 -13
  269. package/utils/utils.js.map +0 -1
  270. package/utils/verifyChecksumMatchWithTaxCode.js.map +0 -1
  271. package/utils/verifyNameMatchWithTaxCode.js +0 -26
  272. package/utils/verifyNameMatchWithTaxCode.js.map +0 -1
  273. package/utils/verifySurnameMatchWithTaxCode.js +0 -23
  274. package/utils/verifySurnameMatchWithTaxCode.js.map +0 -1
  275. /package/{consentManagementConfigure.d.ts → examples/locale/index.d.ts} +0 -0
  276. /package/{components → lib/components}/Footer/FooterConfig.d.ts +0 -0
  277. /package/{components → lib/components}/icons/ConfirmIcon.d.ts +0 -0
  278. /package/{components → lib/components}/icons/ErrorIconExclamation.d.ts +0 -0
  279. /package/{components → lib/components}/icons/FaultIcon.d.ts +0 -0
  280. /package/{hooks → lib/hooks}/useErrorDispatcher.d.ts +0 -0
  281. /package/{hooks → lib/hooks}/useLoading.d.ts +0 -0
  282. /package/{hooks → lib/hooks}/useLogin.d.ts +0 -0
  283. /package/{hooks → lib/hooks}/useUserNotify.d.ts +0 -0
  284. /package/{locale → lib/locale}/locale-utils.d.ts +0 -0
  285. /package/{services → lib/services}/errorService.d.ts +0 -0
  286. /package/{utils → lib/utils}/routes-utils.d.ts +0 -0
  287. /package/{utils → lib/utils}/verifyChecksumMatchWithTaxCode.d.ts +0 -0
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ const visuallyHiddenStyle = {
4
+ border: 0,
5
+ clip: 'rect(0 0 0 0)',
6
+ height: '1px',
7
+ margin: '-1px',
8
+ overflow: 'hidden',
9
+ padding: 0,
10
+ position: 'absolute',
11
+ whiteSpace: 'nowrap',
12
+ width: '1px',
13
+ };
14
+ export const useLiveAnnouncerWithRegion = () => {
15
+ const [message, setMessage] = useState('');
16
+ const announce = (msg) => setMessage(msg);
17
+ const LiveRegion = (_jsx("div", { "aria-live": "polite", "aria-atomic": "true", "data-testid": "live-region-announcer", style: visuallyHiddenStyle, children: message }));
18
+ return { announce, LiveRegion };
19
+ };
@@ -0,0 +1,10 @@
1
+ import { uniqueId } from 'lodash';
2
+ import { useRef } from 'react';
3
+ import { useDispatch } from 'react-redux';
4
+ import { appStateActions } from '../redux/slices/appStateSlice';
5
+ /** @see {@link LoadingOverlay} */
6
+ export default function (task) {
7
+ const dispatch = useDispatch();
8
+ const ref = useRef(uniqueId());
9
+ return (loading) => dispatch(appStateActions.setLoading({ task: `${task}[${ref.current}]`, loading }));
10
+ }
@@ -0,0 +1,40 @@
1
+ import isEmpty from 'lodash/isEmpty';
2
+ import { useDispatch } from 'react-redux';
3
+ import { CONFIG } from '../config/env';
4
+ import { userActions } from '../redux/slices/userSlice';
5
+ import { isPagoPaUser, storageTokenOps, storageUserOps } from '../utils/storage';
6
+ const testToken = CONFIG.TEST.JWT;
7
+ const mockedUser = {
8
+ uid: '0',
9
+ taxCode: 'AAAAAA00A00A000A',
10
+ name: 'loggedName',
11
+ surname: 'loggedSurname',
12
+ email: 'loggedEmail@aa.aa',
13
+ iss: 'SPID',
14
+ };
15
+ export const useLogin = () => {
16
+ const dispatch = useDispatch();
17
+ const setUser = (user) => dispatch(userActions.setLoggedUser(user));
18
+ const attemptSilentLogin = async () => {
19
+ if (CONFIG.MOCKS.MOCK_USER) {
20
+ setUser(mockedUser);
21
+ storageTokenOps.write(testToken);
22
+ storageUserOps.write(mockedUser);
23
+ return;
24
+ }
25
+ const sessionStorageUser = storageUserOps.read();
26
+ const LOGIN_URL = isPagoPaUser() ? CONFIG.URL_FE.LOGOUT_GOOGLE : CONFIG.URL_FE.LOGIN;
27
+ // If there are no credentials, it is impossible to get the user, so
28
+ if (isEmpty(sessionStorageUser)) {
29
+ // Remove any partial data that might have remained, just for safety
30
+ storageUserOps.delete();
31
+ // Go to the login view
32
+ globalThis.location.assign(LOGIN_URL);
33
+ // This return is necessary
34
+ return;
35
+ }
36
+ // Otherwise, set the user to the one stored in the storage
37
+ setUser(sessionStorageUser);
38
+ };
39
+ return { attemptSilentLogin };
40
+ };
@@ -0,0 +1,7 @@
1
+ import { ProductPermissions } from './../redux/slices/permissionsSlice';
2
+ export declare function usePermissions(): {
3
+ hasPermission: (productId: string, action: string) => boolean;
4
+ getProductPermissions: (productId: string) => Array<string>;
5
+ getAllProductsWithPermission: (action: string) => Array<string>;
6
+ productPermissions: ProductPermissions[];
7
+ };
@@ -0,0 +1,25 @@
1
+ import { useSelector } from 'react-redux';
2
+ import { selectProductPermissions } from './../redux/slices/permissionsSlice';
3
+ export function usePermissions() {
4
+ const productPermissions = useSelector(selectProductPermissions);
5
+ // Function to check if a user has permission for a specific action.
6
+ const hasPermission = (productId, action) => {
7
+ const product = productPermissions.find((p) => p.productId === productId);
8
+ return product?.actions.includes(action) || false;
9
+ };
10
+ // Function that returns an array of actions for a given product ID.
11
+ const getProductPermissions = (productId) => {
12
+ const product = productPermissions.find((p) => p.productId === productId);
13
+ return product?.actions || [];
14
+ };
15
+ // Function that returns an array of product IDs that have a specific action.
16
+ const getAllProductsWithPermission = (action) => productPermissions
17
+ .filter((product) => product.actions.includes(action))
18
+ .map((product) => product.productId);
19
+ return {
20
+ hasPermission,
21
+ getProductPermissions,
22
+ getAllProductsWithPermission,
23
+ productPermissions,
24
+ };
25
+ }
@@ -0,0 +1,22 @@
1
+ import { PayloadAction } from '@reduxjs/toolkit';
2
+ /** @see {useReduxCachedValue} when there is not RETRIEVER_ARGS and RETRIEVED_VALUE === STORED_VALUE */
3
+ declare const useReduxCachedValue: <RETRIEVED_VALUE extends Record<string, any>>(entity: string, retrieverService: () => Promise<RETRIEVED_VALUE>, reduxSelector: (state: any) => RETRIEVED_VALUE | undefined, reduxSetterAction: (value: RETRIEVED_VALUE) => PayloadAction<any>, selectedValuePredicate2Retrieve?: (value: RETRIEVED_VALUE) => boolean, alwaysRetrieve?: boolean) => (() => Promise<RETRIEVED_VALUE>);
4
+ /** @see {useReduxCachedValueParametricRetrieverTranscoded} when there is not RETRIEVER_ARGS */
5
+ export declare const useReduxCachedValueTranscoded: <RETRIEVED_VALUE, STORED_VALUE>(entity: string, retrieverService: () => Promise<RETRIEVED_VALUE>, reduxSelector: (state: any) => STORED_VALUE | undefined, reduxSetterAction: (value: RETRIEVED_VALUE) => PayloadAction<STORED_VALUE>, selectedValue2RetrievedValue: (value: STORED_VALUE) => RETRIEVED_VALUE, selectedValuePredicate2Retrieve?: (value: STORED_VALUE) => boolean, alwaysRetrieve?: boolean) => (() => Promise<RETRIEVED_VALUE>);
6
+ /** It will return a method that will call the retrieverService only when there are not storing values, or a condition on them is not more verified */
7
+ export declare const useReduxCachedValueParametricRetrieverTranscoded: <RETRIEVED_VALUE, STORED_VALUE, RETRIEVER_ARGS>(
8
+ /** The name of the entity, used just for logging purpose */
9
+ entity: string,
10
+ /** The service that will retrieve the value */
11
+ retrieverService: (retrieverServiceArgs: RETRIEVER_ARGS) => Promise<RETRIEVED_VALUE>,
12
+ /** The selector to read the value from redux */
13
+ reduxSelector: (state: any) => STORED_VALUE | undefined,
14
+ /** The action to store the new value */
15
+ reduxSetterAction: (value: RETRIEVED_VALUE, retrieverServiceArgs: RETRIEVER_ARGS) => PayloadAction<STORED_VALUE>,
16
+ /** A function called to transform STORED_VALUE into RETRIEVED_VALUE and called when hitting the cache */
17
+ selectedValue2RetrievedValue: (value: STORED_VALUE, args: RETRIEVER_ARGS) => RETRIEVED_VALUE,
18
+ /** An optional predicate evaluated when reduxSelector returned some value in order to compare it against the retrieverServiceArgs and evaluate if retrieverService should be called again */
19
+ selectedValuePredicate2Retrieve?: (value: STORED_VALUE, args: RETRIEVER_ARGS) => boolean,
20
+ /** If true, it will always retrieve and store the new value */
21
+ alwaysRetrieve?: boolean) => ((retrieverServiceArgs: RETRIEVER_ARGS) => Promise<RETRIEVED_VALUE>);
22
+ export default useReduxCachedValue;
@@ -1,19 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useReduxCachedValueParametricRetrieverTranscoded = exports.useReduxCachedValueTranscoded = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_redux_1 = require("react-redux");
6
- const constants_1 = require("../utils/constants");
7
- const useLoading_1 = tslib_1.__importDefault(require("./useLoading"));
1
+ import { useDispatch, useSelector } from 'react-redux';
2
+ import { LOADING_TASK_RETRIEVE_CACHED_VALUES } from '../utils/constants';
3
+ import useLoading from './useLoading';
8
4
  /** @see {useReduxCachedValue} when there is not RETRIEVER_ARGS and RETRIEVED_VALUE === STORED_VALUE */
9
5
  const useReduxCachedValue = (entity, retrieverService, reduxSelector, reduxSetterAction, selectedValuePredicate2Retrieve, alwaysRetrieve) => useReduxCachedValueParametricRetriever(entity, retrieverService, reduxSelector, reduxSetterAction, selectedValuePredicate2Retrieve, alwaysRetrieve);
10
6
  /** @see {useReduxCachedValueParametricRetrieverTranscoded} when RETRIEVED_VALUE === STORED_VALUE */
11
- const useReduxCachedValueParametricRetriever = (entity, retrieverService, reduxSelector, reduxSetterAction, selectedValuePredicate2Retrieve, alwaysRetrieve) => (0, exports.useReduxCachedValueParametricRetrieverTranscoded)(entity, retrieverService, reduxSelector, reduxSetterAction, (value) => value, selectedValuePredicate2Retrieve, alwaysRetrieve);
7
+ const useReduxCachedValueParametricRetriever = (entity, retrieverService, reduxSelector, reduxSetterAction, selectedValuePredicate2Retrieve, alwaysRetrieve) => useReduxCachedValueParametricRetrieverTranscoded(entity, retrieverService, reduxSelector, reduxSetterAction, (value) => value, selectedValuePredicate2Retrieve, alwaysRetrieve);
12
8
  /** @see {useReduxCachedValueParametricRetrieverTranscoded} when there is not RETRIEVER_ARGS */
13
- const useReduxCachedValueTranscoded = (entity, retrieverService, reduxSelector, reduxSetterAction, selectedValue2RetrievedValue, selectedValuePredicate2Retrieve, alwaysRetrieve) => (0, exports.useReduxCachedValueParametricRetrieverTranscoded)(entity, retrieverService, reduxSelector, reduxSetterAction, selectedValue2RetrievedValue, selectedValuePredicate2Retrieve, alwaysRetrieve);
14
- exports.useReduxCachedValueTranscoded = useReduxCachedValueTranscoded;
9
+ export const useReduxCachedValueTranscoded = (entity, retrieverService, reduxSelector, reduxSetterAction, selectedValue2RetrievedValue, selectedValuePredicate2Retrieve, alwaysRetrieve) => useReduxCachedValueParametricRetrieverTranscoded(entity, retrieverService, reduxSelector, reduxSetterAction, selectedValue2RetrievedValue, selectedValuePredicate2Retrieve, alwaysRetrieve);
15
10
  /** It will return a method that will call the retrieverService only when there are not storing values, or a condition on them is not more verified */
16
- const useReduxCachedValueParametricRetrieverTranscoded = (
11
+ export const useReduxCachedValueParametricRetrieverTranscoded = (
17
12
  /** The name of the entity, used just for logging purpose */
18
13
  entity,
19
14
  /** The service that will retrieve the value */
@@ -28,10 +23,10 @@ selectedValue2RetrievedValue,
28
23
  selectedValuePredicate2Retrieve,
29
24
  /** If true, it will always retrieve and store the new value */
30
25
  alwaysRetrieve) => {
31
- const dispatch = (0, react_redux_1.useDispatch)();
32
- const entities = (0, react_redux_1.useSelector)(reduxSelector);
26
+ const dispatch = useDispatch();
27
+ const entities = useSelector(reduxSelector);
33
28
  const setEntities = (value, retrieverServiceArgs) => dispatch(reduxSetterAction(value, retrieverServiceArgs));
34
- const setLoading = (0, useLoading_1.default)(`${constants_1.LOADING_TASK_RETRIEVE_CACHED_VALUES}_${entity}`);
29
+ const setLoading = useLoading(`${LOADING_TASK_RETRIEVE_CACHED_VALUES}_${entity}`);
35
30
  return (retrieverServiceArgs) => {
36
31
  if (alwaysRetrieve ||
37
32
  !entities ||
@@ -50,6 +45,4 @@ alwaysRetrieve) => {
50
45
  }
51
46
  };
52
47
  };
53
- exports.useReduxCachedValueParametricRetrieverTranscoded = useReduxCachedValueParametricRetrieverTranscoded;
54
- exports.default = useReduxCachedValue;
55
- //# sourceMappingURL=useReduxCachedValue.js.map
48
+ export default useReduxCachedValue;
@@ -3,12 +3,12 @@
3
3
  2. unregisterUnloadEvent: an arrow function to call in order to disable this functionality.
4
4
  */
5
5
  export declare const useUnloadEventInterceptor: () => {
6
- registerUnloadEvent: (title?: string | undefined, description?: string | undefined) => void;
6
+ registerUnloadEvent: (title?: string, description?: string) => void;
7
7
  unregisterUnloadEvent: () => void;
8
8
  };
9
9
  /** If you wont to enable immediately this functionality when invoking the custom hook you can use the hook useUnloadEventInterceptorAndActivate, which will enable the functionality and will disable it when unmounting the component. */
10
- export declare const useUnloadEventInterceptorAndActivate: (title?: string | undefined, description?: string | undefined) => {
11
- registerUnloadEvent: (title?: string | undefined, description?: string | undefined) => void;
10
+ export declare const useUnloadEventInterceptorAndActivate: (title?: string, description?: string) => {
11
+ registerUnloadEvent: (title?: string, description?: string) => void;
12
12
  unregisterUnloadEvent: () => void;
13
13
  };
14
14
  /** In order to show a custom pop-up when the user trigger an exit action you have to use the custom hook useUnloadEventOnExit which will return an arrow function to invoke instead of the exit action passing to it the exitAction itself. */
@@ -1,23 +1,20 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useUnloadEventLogout = exports.useUnloadEventOnExit = exports.useUnloadEventInterceptorAndActivate = exports.useUnloadEventInterceptor = void 0;
4
- const react_1 = require("react");
5
- const react_redux_1 = require("react-redux");
6
- const react_router_dom_1 = require("react-router-dom");
7
- const env_1 = require("../config/env");
8
- const appStateSlice_1 = require("../redux/slices/appStateSlice");
9
- const appStateSlice_2 = require("./../redux/slices/appStateSlice");
1
+ import { useEffect, useRef } from 'react';
2
+ import { useDispatch, useStore } from 'react-redux';
3
+ import { useHistory } from 'react-router-dom';
4
+ import { CONFIG } from '../config/env';
5
+ import { appStateActions } from '../redux/slices/appStateSlice';
6
+ import { appStateSelectors } from './../redux/slices/appStateSlice';
10
7
  /** In order to use this feature you have to use the custom hook useUnloadEventInterceptor, which will return an object having the following keys:
11
8
  1. registerUnloadEvent: an arrow function which takes two optional parameters to customize the title and the description of the pop-up opened when invoking the exitAction function (see below) and enable the functionality.
12
9
  2. unregisterUnloadEvent: an arrow function to call in order to disable this functionality.
13
10
  */
14
- const useUnloadEventInterceptor = () => {
15
- const dispatch = (0, react_redux_1.useDispatch)();
16
- const history = (0, react_router_dom_1.useHistory)();
17
- const onExit = (0, exports.useUnloadEventOnExit)();
18
- const unblockHistory = (0, react_1.useRef)(() => { });
11
+ export const useUnloadEventInterceptor = () => {
12
+ const dispatch = useDispatch();
13
+ const history = useHistory();
14
+ const onExit = useUnloadEventOnExit();
15
+ const unblockHistory = useRef(() => { });
19
16
  const registerUnloadEvent = (title, description) => {
20
- dispatch(appStateSlice_1.appStateActions.enableUnloadEventInterceptor({ title, description }));
17
+ dispatch(appStateActions.enableUnloadEventInterceptor({ title, description }));
21
18
  if (history) {
22
19
  // if not using ReactRouter, it will be undefined
23
20
  // eslint-disable-next-line functional/immutable-data
@@ -31,7 +28,7 @@ const useUnloadEventInterceptor = () => {
31
28
  }
32
29
  };
33
30
  const unregisterUnloadEvent = () => {
34
- dispatch(appStateSlice_1.appStateActions.disableUnloadEventInterceptor());
31
+ dispatch(appStateActions.disableUnloadEventInterceptor());
35
32
  unblockHistory.current();
36
33
  };
37
34
  return {
@@ -39,11 +36,10 @@ const useUnloadEventInterceptor = () => {
39
36
  unregisterUnloadEvent,
40
37
  };
41
38
  };
42
- exports.useUnloadEventInterceptor = useUnloadEventInterceptor;
43
39
  /** If you wont to enable immediately this functionality when invoking the custom hook you can use the hook useUnloadEventInterceptorAndActivate, which will enable the functionality and will disable it when unmounting the component. */
44
- const useUnloadEventInterceptorAndActivate = (title, description) => {
45
- const { registerUnloadEvent, unregisterUnloadEvent } = (0, exports.useUnloadEventInterceptor)();
46
- (0, react_1.useEffect)(() => {
40
+ export const useUnloadEventInterceptorAndActivate = (title, description) => {
41
+ const { registerUnloadEvent, unregisterUnloadEvent } = useUnloadEventInterceptor();
42
+ useEffect(() => {
47
43
  registerUnloadEvent(title, description);
48
44
  return () => unregisterUnloadEvent();
49
45
  }, []);
@@ -52,25 +48,21 @@ const useUnloadEventInterceptorAndActivate = (title, description) => {
52
48
  unregisterUnloadEvent,
53
49
  };
54
50
  };
55
- exports.useUnloadEventInterceptorAndActivate = useUnloadEventInterceptorAndActivate;
56
51
  /** In order to show a custom pop-up when the user trigger an exit action you have to use the custom hook useUnloadEventOnExit which will return an arrow function to invoke instead of the exit action passing to it the exitAction itself. */
57
- const useUnloadEventOnExit = () => {
58
- const dispatch = (0, react_redux_1.useDispatch)();
59
- const store = (0, react_redux_1.useStore)();
52
+ export const useUnloadEventOnExit = () => {
53
+ const dispatch = useDispatch();
54
+ const store = useStore();
60
55
  return (exitAction) => {
61
- if (appStateSlice_2.appStateSelectors.selectUnloadEventConfiguration(store.getState()).enabled) {
62
- dispatch(appStateSlice_1.appStateActions.openUnloadEventNotify(exitAction));
56
+ if (appStateSelectors.selectUnloadEventConfiguration(store.getState()).enabled) {
57
+ dispatch(appStateActions.openUnloadEventNotify(exitAction));
63
58
  }
64
59
  else {
65
60
  exitAction();
66
61
  }
67
62
  };
68
63
  };
69
- exports.useUnloadEventOnExit = useUnloadEventOnExit;
70
64
  /** When the exitAction is the Logout you can use the custom hook useUnloadEventLogout which is the customization of the useUnloadEventOnExit using the logout as an exit action. */
71
- const useUnloadEventLogout = () => {
72
- const onExit = (0, exports.useUnloadEventOnExit)();
73
- return () => onExit(() => window.location.assign(env_1.CONFIG.URL_FE.LOGOUT));
65
+ export const useUnloadEventLogout = () => {
66
+ const onExit = useUnloadEventOnExit();
67
+ return () => onExit(() => window.location.assign(CONFIG.URL_FE.LOGOUT));
74
68
  };
75
- exports.useUnloadEventLogout = useUnloadEventLogout;
76
- //# sourceMappingURL=useUnloadEventInterceptor.js.map
@@ -0,0 +1,7 @@
1
+ import { useDispatch } from 'react-redux';
2
+ import { appStateActions } from '../redux/slices/appStateSlice';
3
+ /** @see {@link UserNotifyHandle} */
4
+ export default function () {
5
+ const dispatch = useDispatch();
6
+ return (notify) => dispatch(appStateActions.addNotify(notify));
7
+ }
@@ -1,21 +1,21 @@
1
- export { default as Header } from './components/Header/Header';
2
- export { default as Footer } from './components/Footer/Footer';
1
+ export { default as BackComponent } from './components/BackComponent';
3
2
  export { default as CustomAvatar } from './components/CustomAvatar';
4
3
  export { default as CustomPagination } from './components/CustomPagination';
4
+ export { default as EndingPage } from './components/EndingPage';
5
5
  export { default as FilterModal } from './components/FilterModal';
6
+ export { default as Footer } from './components/Footer/Footer';
7
+ export { default as Header } from './components/Header/Header';
8
+ export { default as LoadingOverlayComponent } from './components/LoadingOverlayComponent';
9
+ export { default as NavigationBar } from './components/NavigationBar';
6
10
  export { default as SessionModal } from './components/SessionModal';
7
11
  export { default as TitleBox } from './components/TitleBox';
8
12
  export { default as Toast } from './components/Toast';
9
13
  export { default as ToastWrapper } from './components/ToastWrapper';
10
- export { default as EndingPage } from './components/EndingPage';
11
- export { default as LoadingOverlayComponent } from './components/LoadingOverlayComponent';
12
- export { default as NavigationBar } from './components/NavigationBar';
13
- export { default as BackComponent } from './components/BackComponent';
14
14
  export { default as CheckIllustrationIcon } from './components/icons/CheckIllustrationIcon';
15
15
  export { default as ConfirmIcon } from './components/icons/ConfirmIcon';
16
16
  export { default as ErrorIcon } from './components/icons/ErrorIcon';
17
- export { default as FaultIcon } from './components/icons/FaultIcon';
18
17
  export { default as ErrorIconExclamation } from './components/icons/ErrorIconExclamation';
18
+ export { default as FaultIcon } from './components/icons/FaultIcon';
19
19
  export { default as PagoPaIcon } from './components/icons/PagoPaIcon';
20
20
  export { default as PagoPaMiniIcon } from './components/icons/PagoPaMiniIcon';
21
21
  export { default as ErrorBoundary } from './components/ErrorBoundary/ErrorBoundary';
@@ -25,9 +25,12 @@ export { default as useLoading } from './hooks/useLoading';
25
25
  export { default as UserNotifyHandle } from './components/UserNotifyHandle';
26
26
  export { default as useUserNotify } from './hooks/useUserNotify';
27
27
  export { default as UnloadEventHandler } from './components/UnloadEventHandler';
28
- export { useUnloadEventInterceptor, useUnloadEventInterceptorAndActivate, useUnloadEventOnExit, useUnloadEventLogout, } from './hooks/useUnloadEventInterceptor';
28
+ export { useUnloadEventInterceptor, useUnloadEventInterceptorAndActivate, useUnloadEventLogout, useUnloadEventOnExit } from './hooks/useUnloadEventInterceptor';
29
29
  export { default as withLogin } from './decorators/withLogin';
30
30
  export { useLogin } from './hooks/useLogin';
31
31
  export { default as withRetrievedValue } from './decorators/withRetrievedValue';
32
32
  export { default as useReduxCachedValue } from './hooks/useReduxCachedValue';
33
+ export { default as CustomAlert } from './components/CustomAlert';
33
34
  export { default as useFakePagination } from './hooks/useFakePagination';
35
+ export { useLiveAnnouncerWithRegion } from './hooks/useLiveAnnouncerWithRegion';
36
+ export { usePermissions } from './hooks/usePermissions';
package/lib/index.js ADDED
@@ -0,0 +1,36 @@
1
+ export { default as BackComponent } from './components/BackComponent';
2
+ export { default as CustomAvatar } from './components/CustomAvatar';
3
+ export { default as CustomPagination } from './components/CustomPagination';
4
+ export { default as EndingPage } from './components/EndingPage';
5
+ export { default as FilterModal } from './components/FilterModal';
6
+ export { default as Footer } from './components/Footer/Footer';
7
+ export { default as Header } from './components/Header/Header';
8
+ export { default as LoadingOverlayComponent } from './components/LoadingOverlayComponent';
9
+ export { default as NavigationBar } from './components/NavigationBar';
10
+ export { default as SessionModal } from './components/SessionModal';
11
+ export { default as TitleBox } from './components/TitleBox';
12
+ export { default as Toast } from './components/Toast';
13
+ export { default as ToastWrapper } from './components/ToastWrapper';
14
+ export { default as CheckIllustrationIcon } from './components/icons/CheckIllustrationIcon';
15
+ export { default as ConfirmIcon } from './components/icons/ConfirmIcon';
16
+ export { default as ErrorIcon } from './components/icons/ErrorIcon';
17
+ export { default as ErrorIconExclamation } from './components/icons/ErrorIconExclamation';
18
+ export { default as FaultIcon } from './components/icons/FaultIcon';
19
+ export { default as PagoPaIcon } from './components/icons/PagoPaIcon';
20
+ export { default as PagoPaMiniIcon } from './components/icons/PagoPaMiniIcon';
21
+ export { default as ErrorBoundary } from './components/ErrorBoundary/ErrorBoundary';
22
+ export { default as useErrorDispatcher } from './hooks/useErrorDispatcher';
23
+ export { default as LoadingOverlay } from './components/Loading/LoadingOverlay';
24
+ export { default as useLoading } from './hooks/useLoading';
25
+ export { default as UserNotifyHandle } from './components/UserNotifyHandle';
26
+ export { default as useUserNotify } from './hooks/useUserNotify';
27
+ export { default as UnloadEventHandler } from './components/UnloadEventHandler';
28
+ export { useUnloadEventInterceptor, useUnloadEventInterceptorAndActivate, useUnloadEventLogout, useUnloadEventOnExit } from './hooks/useUnloadEventInterceptor';
29
+ export { default as withLogin } from './decorators/withLogin';
30
+ export { useLogin } from './hooks/useLogin';
31
+ export { default as withRetrievedValue } from './decorators/withRetrievedValue';
32
+ export { default as useReduxCachedValue } from './hooks/useReduxCachedValue';
33
+ export { default as CustomAlert } from './components/CustomAlert';
34
+ export { default as useFakePagination } from './hooks/useFakePagination';
35
+ export { useLiveAnnouncerWithRegion } from './hooks/useLiveAnnouncerWithRegion';
36
+ export { usePermissions } from './hooks/usePermissions';
@@ -36,21 +36,24 @@ declare const _default: {
36
36
  termsandconditions: string;
37
37
  transparentcompany: string;
38
38
  disclosurePolicy: string;
39
- Model321: string;
39
+ model231: string;
40
40
  };
41
41
  };
42
42
  followUs: {
43
43
  title: string;
44
44
  };
45
+ accessibility: string;
45
46
  };
46
47
  postLoginLinks: {
47
48
  privacyPolicy: string;
48
49
  protectionofpersonaldata: string;
49
50
  termsandconditions: string;
51
+ accessibility: string;
50
52
  };
51
53
  };
52
54
  header: {
53
55
  exitButton: string;
56
+ chipLabel: string;
54
57
  };
55
58
  filterModal: {
56
59
  title: string;
@@ -1,58 +1,59 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
1
+ export default {
4
2
  common: {
5
3
  errorBoundary: {
6
4
  sessionModalTitle: 'Fehler',
7
- sessionModalMessage: 'Es tut uns leid, etwas ist schief gelaufen.',
5
+ sessionModalMessage: 'Es ist leider ein Fehler aufgetreten. ',
8
6
  toastError: 'FEHLER',
9
- toastMessage: 'Es tut uns leid, etwas ist schief gelaufen.',
7
+ toastMessage: 'Es ist leider ein Fehler aufgetreten. ',
10
8
  },
11
9
  blockingErrorPage: {
12
- title: 'Es tut uns leid, etwas ist schief gelaufen.',
10
+ title: 'Es ist leider ein Fehler aufgetreten. ',
13
11
  description: 'Aufgrund eines Systemfehlers kann der Vorgang nicht abgeschlossen werden.',
14
- buttonLabel: 'Kundensupport kontaktieren',
12
+ buttonLabel: 'Kontaktiere den Support',
15
13
  },
16
14
  footer: {
17
- legalInfoText: `<0>PagoPA S.p.A.</0> - Aktiengesellschaft mit einem einzigen Gesellschafter - Gezeichnetes Kapital von 1.000.000 Euro - Firmensitz in Rom, Piazza Colonna 370, <2/> CAP 00187 - Eintragung im Handelsregister von Rom, Steuernummer und Umsatzsteuer-ID 15376371009`,
15
+ legalInfoText: '<0>PagoPA S.p.A.</0> - Aktiengesellschaft mit Alleingesellschafter - Gesellschaftskapital von 1.000.000 Euro voll eingezahlt - Sitz in Rom, Piazza Colonna 370, <2/> PLZ 00187 - Eintrag im Handelsregister von Rom Nr., Steuernummer und USt-IdNr. 15376371009',
18
16
  privacyPolicyLink: 'Datenschutzerklärung ',
19
- termsAndConditionLink: 'Nutzungsbedingungen der Website ',
17
+ termsAndConditionLink: 'Allgemeine Geschäftsbedingungen zur Benutzung der Site ',
20
18
  informationSecurityLink: 'Informationssicherheit ',
21
- assistanceLink: 'Kundensupport ',
19
+ assistanceLink: 'Betreuung ',
22
20
  preLoginLinks: {
23
21
  aboutUs: {
24
22
  links: {
25
23
  aboutUs: 'PagoPA S.p.A.',
26
24
  media: 'Medien',
27
- workwithud: 'Arbeiten Sie mit uns',
25
+ workwithud: 'Karriere',
28
26
  },
29
27
  },
30
28
  resources: {
31
- title: 'Ressourcen',
29
+ title: 'Quellen',
32
30
  links: {
33
31
  privacyPolicy: 'Datenschutzerklärung',
34
32
  certifications: 'Zertifizierungen',
35
33
  informationsecurity: 'Informationssicherheit',
36
34
  protectionofpersonaldata: 'Recht auf Schutz personenbezogener Daten',
37
- cookie: 'Cookie-Einstellungen',
35
+ cookies: 'Cookie-Einstellungen',
38
36
  termsandconditions: 'Allgemeine Geschäftsbedingungen',
39
- transparentcompany: 'Transparentes Unternehmen',
40
- disclosurePolicy: 'Verantwortungsbewusste Offenlegungspolitik',
41
- Model321: 'Modell 321',
37
+ transparentcompany: 'Transparente Gesellschaft',
38
+ disclosurePolicy: 'Responsible Disclosure Policy',
39
+ model231: 'Modell 231',
42
40
  },
43
41
  },
44
42
  followUs: {
45
- title: 'Folgen Sie uns auf',
43
+ title: 'Folg uns auf',
46
44
  },
45
+ accessibility: 'Zugänglichkeit',
47
46
  },
48
47
  postLoginLinks: {
49
48
  privacyPolicy: 'Datenschutzerklärung',
50
49
  protectionofpersonaldata: 'Recht auf Schutz personenbezogener Daten',
51
50
  termsandconditions: 'Allgemeine Geschäftsbedingungen',
51
+ accessibility: 'Zugänglichkeit',
52
52
  },
53
53
  },
54
54
  header: {
55
- exitButton: 'Beenden',
55
+ exitButton: 'Abmelden',
56
+ chipLabel: 'PagoPA-Betreiber',
56
57
  },
57
58
  filterModal: {
58
59
  title: 'Filtern nach ',
@@ -60,35 +61,35 @@ exports.default = {
60
61
  },
61
62
  sessionModal: {
62
63
  closeButton: 'Abbrechen',
63
- confirmButton: 'Erneut versuchen',
64
+ confirmButton: 'Versuche es erneut',
64
65
  },
65
66
  unloadEventHandler: {
66
- title: 'Wollen Sie wirklich gehen?',
67
- message: 'Wenn Sie gehen, gehen alle Änderungen verloren.',
68
- confirmLabel: 'Verlassen',
67
+ title: 'Möchtest du wirklich beenden?',
68
+ message: 'Wenn du dich abmeldest, gehen die vorgenommenen Änderungen verloren.',
69
+ confirmLabel: 'Abmelden',
69
70
  },
70
71
  roles: {
71
72
  admin: {
72
- shortLabel: 'Admin',
73
+ shortLabel: 'Bez. Administrativ',
73
74
  longLabel: 'Administrator',
74
- description: 'Verfügt über alle Rechte und verwaltet Benutzer',
75
+ description: 'Hat alle Berechtigungen und verwaltet Benutzer',
75
76
  },
76
77
  limited: {
77
- shortLabel: 'Operator',
78
- longLabel: 'Operator',
78
+ shortLabel: 'Bez. Operativ',
79
+ longLabel: 'Bearbeiter',
79
80
  description: 'Verwaltet die technologische Integration und/oder den Betrieb der Dienste',
80
81
  },
81
82
  },
82
83
  pnpgRoles: {
83
84
  admin: {
84
- shortLabel: 'Admin',
85
+ shortLabel: 'Bez. Administrativ',
85
86
  longLabel: 'Administrator',
86
- description: 'Verfügt über alle Rechte und verwaltet Benutzer',
87
+ description: 'Hat alle Berechtigungen und verwaltet Benutzer',
87
88
  },
88
89
  limited: {
89
- shortLabel: 'Techniker',
90
+ shortLabel: 'Bez. Techniker',
90
91
  longLabel: 'Techniker',
91
- description: 'Liest die Benachrichtigungen der Behörde',
92
+ description: 'Liest die Bescheide der Behörde',
92
93
  },
93
94
  },
94
95
  backComponent: {
@@ -96,4 +97,3 @@ exports.default = {
96
97
  },
97
98
  },
98
99
  };
99
- //# sourceMappingURL=de.js.map
@@ -36,21 +36,24 @@ declare const _default: {
36
36
  termsandconditions: string;
37
37
  transparentcompany: string;
38
38
  disclosurePolicy: string;
39
- Model321: string;
39
+ model231: string;
40
40
  };
41
41
  };
42
42
  followUs: {
43
43
  title: string;
44
44
  };
45
+ accessibility: string;
45
46
  };
46
47
  postLoginLinks: {
47
48
  privacyPolicy: string;
48
49
  protectionofpersonaldata: string;
49
50
  termsandconditions: string;
51
+ accessibility: string;
50
52
  };
51
53
  };
52
54
  header: {
53
55
  exitButton: string;
56
+ chipLabel: string;
54
57
  };
55
58
  filterModal: {
56
59
  title: string;