@pagopa/selfcare-common-frontend 1.35.0 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +883 -1
- package/README.md +34 -8
- package/examples/locale/en.d.ts +20 -0
- package/examples/locale/en.js +18 -0
- package/examples/locale/index.js +4 -0
- package/examples/locale/it.d.ts +20 -0
- package/examples/locale/it.js +19 -0
- package/{common-polyfill.d.ts → lib/common-polyfill.d.ts} +0 -1
- package/lib/common-polyfill.js +9 -0
- package/lib/components/BackComponent.d.ts +7 -0
- package/lib/components/BackComponent.js +8 -0
- package/lib/components/CustomAlert.d.ts +12 -0
- package/lib/components/CustomAlert.js +7 -0
- package/{components → lib/components}/CustomAvatar.d.ts +2 -3
- package/lib/components/CustomAvatar.js +13 -0
- package/{components → lib/components}/CustomPagination.d.ts +7 -3
- package/lib/components/CustomPagination.js +25 -0
- package/{components → lib/components}/EndingPage.d.ts +15 -3
- package/lib/components/EndingPage.js +4 -0
- package/lib/components/ErrorBoundary/ErrorBoundary.d.ts +11 -0
- package/lib/components/ErrorBoundary/ErrorBoundary.js +93 -0
- package/{components → lib/components}/ErrorBoundary/components/BlockingErrorPage.d.ts +2 -3
- package/lib/components/ErrorBoundary/components/BlockingErrorPage.js +11 -0
- package/{components → lib/components}/FilterModal.d.ts +3 -3
- package/lib/components/FilterModal.js +29 -0
- package/{components → lib/components}/Footer/Footer.d.ts +2 -3
- package/lib/components/Footer/Footer.js +179 -0
- package/{components → lib/components}/Footer/FooterConfig.js +5 -9
- package/{components → lib/components}/Header/Header.d.ts +11 -6
- package/lib/components/Header/Header.js +45 -0
- package/{components → lib/components}/Loading/LoadingOverlay.d.ts +1 -2
- package/lib/components/Loading/LoadingOverlay.js +13 -0
- package/lib/components/LoadingOverlayComponent.d.ts +7 -0
- package/lib/components/LoadingOverlayComponent.js +25 -0
- package/{components → lib/components}/NavigationBar.d.ts +5 -4
- package/lib/components/NavigationBar.js +17 -0
- package/{components → lib/components}/SessionModal.d.ts +3 -3
- package/lib/components/SessionModal.js +17 -0
- package/{components → lib/components}/TitleBox.d.ts +7 -7
- package/lib/components/TitleBox.js +9 -0
- package/{components → lib/components}/Toast.d.ts +3 -3
- package/lib/components/Toast.js +25 -0
- package/{components → lib/components}/ToastWrapper.d.ts +2 -2
- package/lib/components/ToastWrapper.js +12 -0
- package/{components → lib/components}/UnloadEventHandler.d.ts +1 -2
- package/lib/components/UnloadEventHandler.js +29 -0
- package/{components → lib/components}/UserNotifyHandle.d.ts +1 -2
- package/lib/components/UserNotifyHandle.js +62 -0
- package/{components → lib/components}/icons/CheckIllustrationIcon.d.ts +1 -2
- package/lib/components/icons/CheckIllustrationIcon.js +3 -0
- package/lib/components/icons/ConfirmIcon.js +4 -0
- package/{components → lib/components}/icons/ErrorIcon.d.ts +1 -2
- package/lib/components/icons/ErrorIcon.js +3 -0
- package/lib/components/icons/ErrorIconExclamation.js +4 -0
- package/lib/components/icons/FaultIcon.js +4 -0
- package/{components → lib/components}/icons/PagoPaIcon.d.ts +1 -2
- package/lib/components/icons/PagoPaIcon.js +3 -0
- package/{components → lib/components}/icons/PagoPaIconColored.d.ts +1 -2
- package/lib/components/icons/PagoPaIconColored.js +3 -0
- package/{components → lib/components}/icons/PagoPaMiniIcon.d.ts +1 -2
- package/lib/components/icons/PagoPaMiniIcon.js +3 -0
- package/lib/components/tests/FilterModal.test.d.ts +1 -0
- package/lib/components/tests/FilterModal.test.js +37 -0
- package/{config → lib/config}/env.d.ts +4 -1
- package/{config → lib/config}/env.js +13 -17
- package/lib/consentManagementConfigure.d.ts +1 -0
- package/{consentManagementConfigure.js → lib/consentManagementConfigure.js} +5 -8
- package/{decorators → lib/decorators}/__mocks__/withLogin.d.ts +1 -2
- package/lib/decorators/__mocks__/withLogin.js +18 -0
- package/{decorators → lib/decorators}/withLogin.d.ts +1 -2
- package/{decorators → lib/decorators}/withLogin.js +13 -18
- package/{decorators → lib/decorators}/withRetrievedValue.d.ts +1 -1
- package/{decorators → lib/decorators}/withRetrievedValue.js +9 -14
- package/lib/hooks/useErrorDispatcher.js +7 -0
- package/{hooks → lib/hooks}/useFakePagination.d.ts +3 -3
- package/{hooks → lib/hooks}/useFakePagination.js +9 -15
- package/lib/hooks/useFocus.d.ts +1 -0
- package/lib/hooks/useFocus.js +8 -0
- package/lib/hooks/useLiveAnnouncerWithRegion.d.ts +4 -0
- package/lib/hooks/useLiveAnnouncerWithRegion.js +19 -0
- package/lib/hooks/useLoading.js +10 -0
- package/lib/hooks/useLogin.js +40 -0
- package/lib/hooks/usePermissions.d.ts +7 -0
- package/lib/hooks/usePermissions.js +25 -0
- package/lib/hooks/useReduxCachedValue.d.ts +22 -0
- package/{hooks → lib/hooks}/useReduxCachedValue.js +10 -17
- package/{hooks → lib/hooks}/useUnloadEventInterceptor.d.ts +3 -3
- package/{hooks → lib/hooks}/useUnloadEventInterceptor.js +24 -32
- package/lib/hooks/useUserNotify.js +7 -0
- package/{index.d.ts → lib/index.d.ts} +11 -8
- package/lib/index.js +36 -0
- package/{locale/it.d.ts → lib/locale/de.d.ts} +4 -1
- package/{locale → lib/locale}/de.js +31 -31
- package/{locale → lib/locale}/en.d.ts +4 -1
- package/{locale → lib/locale}/en.js +30 -30
- package/{locale → lib/locale}/fr.d.ts +5 -2
- package/{locale → lib/locale}/fr.js +26 -26
- package/{locale/de.d.ts → lib/locale/it.d.ts} +8 -2
- package/{locale → lib/locale}/it.js +11 -8
- package/lib/locale/locale-utils.js +45 -0
- package/{locale → lib/locale}/sl.d.ts +5 -2
- package/{locale → lib/locale}/sl.js +31 -31
- package/{model → lib/model}/AppError.d.ts +1 -1
- package/lib/model/AppError.js +1 -0
- package/lib/model/JwtUser.d.ts +9 -0
- package/lib/model/JwtUser.js +1 -0
- package/{model → lib/model}/Page.d.ts +1 -1
- package/lib/model/Page.js +1 -0
- package/{model → lib/model}/PageRequest.d.ts +1 -1
- package/lib/model/PageRequest.js +1 -0
- package/{model → lib/model}/PageResource.d.ts +1 -1
- package/lib/model/PageResource.js +1 -0
- package/lib/model/User.d.ts +8 -0
- package/lib/model/User.js +1 -0
- package/{model → lib/model}/UserNotify.d.ts +1 -2
- package/lib/model/UserNotify.js +1 -0
- package/lib/redux/slices/appStateSlice.d.ts +58 -0
- package/{redux → lib/redux}/slices/appStateSlice.js +15 -9
- package/lib/redux/slices/permissionsSlice.d.ts +12 -0
- package/lib/redux/slices/permissionsSlice.js +23 -0
- package/lib/redux/slices/productsSlice.d.ts +204 -0
- package/lib/redux/slices/productsSlice.js +26 -0
- package/lib/redux/slices/userSlice.d.ts +36 -0
- package/lib/redux/slices/userSlice.js +17 -0
- package/{services → lib/services}/analyticsService.d.ts +2 -1
- package/{services → lib/services}/analyticsService.js +31 -28
- package/{services → lib/services}/assistanceService.d.ts +1 -1
- package/lib/services/assistanceService.js +14 -0
- package/lib/services/errorService.js +8 -0
- package/{utils → lib/utils}/api-utils.d.ts +3 -3
- package/{utils → lib/utils}/api-utils.js +28 -23
- package/lib/utils/constants.d.ts +69 -0
- package/lib/utils/constants.js +83 -0
- package/lib/utils/productId2ProductTitle.d.ts +1 -0
- package/lib/utils/productId2ProductTitle.js +13 -0
- package/lib/utils/routes-utils.js +2 -0
- package/{utils → lib/utils}/storage-utils.d.ts +3 -3
- package/{utils → lib/utils}/storage-utils.js +4 -12
- package/{utils → lib/utils}/storage.d.ts +6 -0
- package/lib/utils/storage.js +31 -0
- package/lib/utils/utils.d.ts +11 -0
- package/lib/utils/utils.js +148 -0
- package/{utils → lib/utils}/verifyChecksumMatchWithTaxCode.js +1 -6
- package/{utils → lib/utils}/verifyNameMatchWithTaxCode.d.ts +1 -1
- package/lib/utils/verifyNameMatchWithTaxCode.js +27 -0
- package/{utils → lib/utils}/verifySurnameMatchWithTaxCode.d.ts +1 -1
- package/lib/utils/verifySurnameMatchWithTaxCode.js +17 -0
- package/package.json +54 -79
- package/build.info +0 -2
- package/common-polyfill.js +0 -13
- package/common-polyfill.js.map +0 -1
- package/components/BackComponent.d.ts +0 -6
- package/components/BackComponent.js +0 -12
- package/components/BackComponent.js.map +0 -1
- package/components/CustomAvatar.js +0 -18
- package/components/CustomAvatar.js.map +0 -1
- package/components/CustomPagination.js +0 -31
- package/components/CustomPagination.js.map +0 -1
- package/components/EndingPage.js +0 -7
- package/components/EndingPage.js.map +0 -1
- package/components/ErrorBoundary/ErrorBoundary.d.ts +0 -11
- package/components/ErrorBoundary/ErrorBoundary.js +0 -98
- package/components/ErrorBoundary/ErrorBoundary.js.map +0 -1
- package/components/ErrorBoundary/components/BlockingErrorPage.js +0 -15
- package/components/ErrorBoundary/components/BlockingErrorPage.js.map +0 -1
- package/components/FilterModal.js +0 -37
- package/components/FilterModal.js.map +0 -1
- package/components/Footer/Footer.js +0 -213
- package/components/Footer/Footer.js.map +0 -1
- package/components/Footer/FooterConfig.js.map +0 -1
- package/components/Header/Header.js +0 -24
- package/components/Header/Header.js.map +0 -1
- package/components/Loading/LoadingOverlay.js +0 -18
- package/components/Loading/LoadingOverlay.js.map +0 -1
- package/components/LoadingOverlayComponent.d.ts +0 -7
- package/components/LoadingOverlayComponent.js +0 -20
- package/components/LoadingOverlayComponent.js.map +0 -1
- package/components/NavigationBar.js +0 -21
- package/components/NavigationBar.js.map +0 -1
- package/components/SessionModal.js +0 -21
- package/components/SessionModal.js.map +0 -1
- package/components/TitleBox.js +0 -13
- package/components/TitleBox.js.map +0 -1
- package/components/Toast.js +0 -29
- package/components/Toast.js.map +0 -1
- package/components/ToastWrapper.js +0 -16
- package/components/ToastWrapper.js.map +0 -1
- package/components/UnloadEventHandler.js +0 -35
- package/components/UnloadEventHandler.js.map +0 -1
- package/components/UserNotifyHandle.js +0 -67
- package/components/UserNotifyHandle.js.map +0 -1
- package/components/icons/CheckIllustrationIcon.js +0 -7
- package/components/icons/CheckIllustrationIcon.js.map +0 -1
- package/components/icons/ConfirmIcon.js +0 -7
- package/components/icons/ConfirmIcon.js.map +0 -1
- package/components/icons/ErrorIcon.js +0 -7
- package/components/icons/ErrorIcon.js.map +0 -1
- package/components/icons/ErrorIconExclamation.js +0 -7
- package/components/icons/ErrorIconExclamation.js.map +0 -1
- package/components/icons/FaultIcon.js +0 -7
- package/components/icons/FaultIcon.js.map +0 -1
- package/components/icons/PagoPaIcon.js +0 -7
- package/components/icons/PagoPaIcon.js.map +0 -1
- package/components/icons/PagoPaIconColored.js +0 -7
- package/components/icons/PagoPaIconColored.js.map +0 -1
- package/components/icons/PagoPaMiniIcon.js +0 -7
- package/components/icons/PagoPaMiniIcon.js.map +0 -1
- package/config/env.js.map +0 -1
- package/consentManagementConfigure.js.map +0 -1
- package/decorators/__mocks__/withLogin.js +0 -27
- package/decorators/__mocks__/withLogin.js.map +0 -1
- package/decorators/withLogin.js.map +0 -1
- package/decorators/withRetrievedValue.js.map +0 -1
- package/hooks/useErrorDispatcher.js +0 -11
- package/hooks/useErrorDispatcher.js.map +0 -1
- package/hooks/useFakePagination.js.map +0 -1
- package/hooks/useLoading.js +0 -14
- package/hooks/useLoading.js.map +0 -1
- package/hooks/useLogin.js +0 -44
- package/hooks/useLogin.js.map +0 -1
- package/hooks/useReduxCachedValue.d.ts +0 -14
- package/hooks/useReduxCachedValue.js.map +0 -1
- package/hooks/useUnloadEventInterceptor.js.map +0 -1
- package/hooks/useUserNotify.js +0 -11
- package/hooks/useUserNotify.js.map +0 -1
- package/index.js +0 -76
- package/index.js.map +0 -1
- package/locale/de.js.map +0 -1
- package/locale/en.js.map +0 -1
- package/locale/fr.js.map +0 -1
- package/locale/it.js.map +0 -1
- package/locale/locale-utils.js +0 -36
- package/locale/locale-utils.js.map +0 -1
- package/locale/sl.js.map +0 -1
- package/model/AppError.js +0 -3
- package/model/AppError.js.map +0 -1
- package/model/Page.js +0 -3
- package/model/Page.js.map +0 -1
- package/model/PageRequest.js +0 -3
- package/model/PageRequest.js.map +0 -1
- package/model/PageResource.js +0 -3
- package/model/PageResource.js.map +0 -1
- package/model/User.d.ts +0 -7
- package/model/User.js +0 -3
- package/model/User.js.map +0 -1
- package/model/UserNotify.js +0 -3
- package/model/UserNotify.js.map +0 -1
- package/redux/slices/appStateSlice.d.ts +0 -76
- package/redux/slices/appStateSlice.js.map +0 -1
- package/redux/slices/userSlice.d.ts +0 -18
- package/redux/slices/userSlice.js +0 -21
- package/redux/slices/userSlice.js.map +0 -1
- package/services/analyticsService.js.map +0 -1
- package/services/assistanceService.js +0 -20
- package/services/assistanceService.js.map +0 -1
- package/services/errorService.js +0 -13
- package/services/errorService.js.map +0 -1
- package/utils/api-utils.js.map +0 -1
- package/utils/constants.d.ts +0 -19
- package/utils/constants.js +0 -32
- package/utils/constants.js.map +0 -1
- package/utils/routes-utils.js +0 -7
- package/utils/routes-utils.js.map +0 -1
- package/utils/storage-utils.js.map +0 -1
- package/utils/storage.js +0 -9
- package/utils/storage.js.map +0 -1
- package/utils/utils.d.ts +0 -3
- package/utils/utils.js +0 -13
- package/utils/utils.js.map +0 -1
- package/utils/verifyChecksumMatchWithTaxCode.js.map +0 -1
- package/utils/verifyNameMatchWithTaxCode.js +0 -26
- package/utils/verifyNameMatchWithTaxCode.js.map +0 -1
- package/utils/verifySurnameMatchWithTaxCode.js +0 -23
- package/utils/verifySurnameMatchWithTaxCode.js.map +0 -1
- /package/{consentManagementConfigure.d.ts → examples/locale/index.d.ts} +0 -0
- /package/{components → lib/components}/Footer/FooterConfig.d.ts +0 -0
- /package/{components → lib/components}/icons/ConfirmIcon.d.ts +0 -0
- /package/{components → lib/components}/icons/ErrorIconExclamation.d.ts +0 -0
- /package/{components → lib/components}/icons/FaultIcon.d.ts +0 -0
- /package/{hooks → lib/hooks}/useErrorDispatcher.d.ts +0 -0
- /package/{hooks → lib/hooks}/useLoading.d.ts +0 -0
- /package/{hooks → lib/hooks}/useLogin.d.ts +0 -0
- /package/{hooks → lib/hooks}/useUserNotify.d.ts +0 -0
- /package/{locale → lib/locale}/locale-utils.d.ts +0 -0
- /package/{services → lib/services}/errorService.d.ts +0 -0
- /package/{utils → lib/utils}/routes-utils.d.ts +0 -0
- /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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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) =>
|
|
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) =>
|
|
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 =
|
|
32
|
-
const entities =
|
|
26
|
+
const dispatch = useDispatch();
|
|
27
|
+
const entities = useSelector(reduxSelector);
|
|
33
28
|
const setEntities = (value, retrieverServiceArgs) => dispatch(reduxSetterAction(value, retrieverServiceArgs));
|
|
34
|
-
const setLoading = (
|
|
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
|
-
|
|
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
|
|
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
|
|
11
|
-
registerUnloadEvent: (title?: string
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 =
|
|
16
|
-
const history =
|
|
17
|
-
const onExit =
|
|
18
|
-
const unblockHistory =
|
|
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(
|
|
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(
|
|
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 } =
|
|
46
|
-
|
|
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 =
|
|
59
|
-
const store =
|
|
52
|
+
export const useUnloadEventOnExit = () => {
|
|
53
|
+
const dispatch = useDispatch();
|
|
54
|
+
const store = useStore();
|
|
60
55
|
return (exitAction) => {
|
|
61
|
-
if (
|
|
62
|
-
dispatch(
|
|
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 =
|
|
73
|
-
return () => onExit(() => window.location.assign(
|
|
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
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
5
|
+
sessionModalMessage: 'Es ist leider ein Fehler aufgetreten. ',
|
|
8
6
|
toastError: 'FEHLER',
|
|
9
|
-
toastMessage: 'Es
|
|
7
|
+
toastMessage: 'Es ist leider ein Fehler aufgetreten. ',
|
|
10
8
|
},
|
|
11
9
|
blockingErrorPage: {
|
|
12
|
-
title: 'Es
|
|
10
|
+
title: 'Es ist leider ein Fehler aufgetreten. ',
|
|
13
11
|
description: 'Aufgrund eines Systemfehlers kann der Vorgang nicht abgeschlossen werden.',
|
|
14
|
-
buttonLabel: '
|
|
12
|
+
buttonLabel: 'Kontaktiere den Support',
|
|
15
13
|
},
|
|
16
14
|
footer: {
|
|
17
|
-
legalInfoText:
|
|
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: '
|
|
17
|
+
termsAndConditionLink: 'Allgemeine Geschäftsbedingungen zur Benutzung der Site ',
|
|
20
18
|
informationSecurityLink: 'Informationssicherheit ',
|
|
21
|
-
assistanceLink: '
|
|
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: '
|
|
25
|
+
workwithud: 'Karriere',
|
|
28
26
|
},
|
|
29
27
|
},
|
|
30
28
|
resources: {
|
|
31
|
-
title: '
|
|
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
|
-
|
|
35
|
+
cookies: 'Cookie-Einstellungen',
|
|
38
36
|
termsandconditions: 'Allgemeine Geschäftsbedingungen',
|
|
39
|
-
transparentcompany: '
|
|
40
|
-
disclosurePolicy: '
|
|
41
|
-
|
|
37
|
+
transparentcompany: 'Transparente Gesellschaft',
|
|
38
|
+
disclosurePolicy: 'Responsible Disclosure Policy',
|
|
39
|
+
model231: 'Modell 231',
|
|
42
40
|
},
|
|
43
41
|
},
|
|
44
42
|
followUs: {
|
|
45
|
-
title: '
|
|
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: '
|
|
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: '
|
|
64
|
+
confirmButton: 'Versuche es erneut',
|
|
64
65
|
},
|
|
65
66
|
unloadEventHandler: {
|
|
66
|
-
title: '
|
|
67
|
-
message: 'Wenn
|
|
68
|
-
confirmLabel: '
|
|
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: '
|
|
73
|
+
shortLabel: 'Bez. Administrativ',
|
|
73
74
|
longLabel: 'Administrator',
|
|
74
|
-
description: '
|
|
75
|
+
description: 'Hat alle Berechtigungen und verwaltet Benutzer',
|
|
75
76
|
},
|
|
76
77
|
limited: {
|
|
77
|
-
shortLabel: '
|
|
78
|
-
longLabel: '
|
|
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: '
|
|
85
|
+
shortLabel: 'Bez. Administrativ',
|
|
85
86
|
longLabel: 'Administrator',
|
|
86
|
-
description: '
|
|
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
|
|
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
|
-
|
|
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;
|