@pagopa/selfcare-common-frontend 1.34.92 → 1.34.94
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 +18 -2
- package/build.info +2 -2
- package/examples/locale/en.js +1 -3
- package/examples/locale/en.js.map +1 -1
- package/examples/locale/index.js +4 -7
- package/examples/locale/index.js.map +1 -1
- package/examples/locale/it.js +1 -3
- package/examples/locale/it.js.map +1 -1
- package/lib/common-polyfill.d.ts +0 -1
- package/lib/common-polyfill.js +9 -12
- package/lib/common-polyfill.js.map +1 -1
- package/lib/components/BackComponent.js +7 -10
- package/lib/components/BackComponent.js.map +1 -1
- package/lib/components/CustomAlert.js +6 -9
- package/lib/components/CustomAlert.js.map +1 -1
- package/lib/components/CustomAvatar.js +5 -9
- package/lib/components/CustomAvatar.js.map +1 -1
- package/lib/components/CustomPagination.js +6 -10
- package/lib/components/CustomPagination.js.map +1 -1
- package/lib/components/EndingPage.js +3 -5
- package/lib/components/EndingPage.js.map +1 -1
- package/lib/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
- package/lib/components/ErrorBoundary/ErrorBoundary.js +25 -29
- package/lib/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/lib/components/ErrorBoundary/components/BlockingErrorPage.js +9 -12
- package/lib/components/ErrorBoundary/components/BlockingErrorPage.js.map +1 -1
- package/lib/components/FilterModal.js +16 -23
- package/lib/components/FilterModal.js.map +1 -1
- package/lib/components/Footer/Footer.js +35 -39
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/FooterConfig.js +4 -7
- package/lib/components/Footer/FooterConfig.js.map +1 -1
- package/lib/components/Header/Header.d.ts +1 -1
- package/lib/components/Header/Header.js +16 -18
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Loading/LoadingOverlay.js +7 -11
- package/lib/components/Loading/LoadingOverlay.js.map +1 -1
- package/lib/components/LoadingOverlayComponent.js +9 -13
- package/lib/components/LoadingOverlayComponent.js.map +1 -1
- package/lib/components/NavigationBar.js +9 -13
- package/lib/components/NavigationBar.js.map +1 -1
- package/lib/components/SessionModal.d.ts +1 -1
- package/lib/components/SessionModal.js +12 -14
- package/lib/components/SessionModal.js.map +1 -1
- package/lib/components/TitleBox.js +5 -8
- package/lib/components/TitleBox.js.map +1 -1
- package/lib/components/Toast.js +10 -14
- package/lib/components/Toast.js.map +1 -1
- package/lib/components/ToastWrapper.js +5 -8
- package/lib/components/ToastWrapper.js.map +1 -1
- package/lib/components/UnloadEventHandler.js +13 -18
- package/lib/components/UnloadEventHandler.js.map +1 -1
- package/lib/components/UserNotifyHandle.js +18 -22
- package/lib/components/UserNotifyHandle.js.map +1 -1
- package/lib/components/icons/CheckIllustrationIcon.js +3 -6
- package/lib/components/icons/CheckIllustrationIcon.js.map +1 -1
- package/lib/components/icons/ConfirmIcon.js +4 -6
- package/lib/components/icons/ConfirmIcon.js.map +1 -1
- package/lib/components/icons/ErrorIcon.js +3 -6
- package/lib/components/icons/ErrorIcon.js.map +1 -1
- package/lib/components/icons/ErrorIconExclamation.js +4 -6
- package/lib/components/icons/ErrorIconExclamation.js.map +1 -1
- package/lib/components/icons/FaultIcon.js +4 -6
- package/lib/components/icons/FaultIcon.js.map +1 -1
- package/lib/components/icons/PagoPaIcon.js +3 -6
- package/lib/components/icons/PagoPaIcon.js.map +1 -1
- package/lib/components/icons/PagoPaIconColored.js +3 -6
- package/lib/components/icons/PagoPaIconColored.js.map +1 -1
- package/lib/components/icons/PagoPaMiniIcon.js +3 -6
- package/lib/components/icons/PagoPaMiniIcon.js.map +1 -1
- package/lib/components/tests/FilterModal.test.js +15 -18
- package/lib/components/tests/FilterModal.test.js.map +1 -1
- package/lib/config/env.d.ts +2 -2
- package/lib/config/env.js +9 -14
- package/lib/config/env.js.map +1 -1
- package/lib/consentManagementConfigure.js +5 -7
- package/lib/consentManagementConfigure.js.map +1 -1
- package/lib/decorators/__mocks__/withLogin.js +13 -17
- package/lib/decorators/__mocks__/withLogin.js.map +1 -1
- package/lib/decorators/withLogin.js +21 -26
- package/lib/decorators/withLogin.js.map +1 -1
- package/lib/decorators/withRetrievedValue.js +9 -13
- package/lib/decorators/withRetrievedValue.js.map +1 -1
- package/lib/hooks/useErrorDispatcher.js +5 -8
- package/lib/hooks/useErrorDispatcher.js.map +1 -1
- package/lib/hooks/useFakePagination.js +9 -14
- package/lib/hooks/useFakePagination.js.map +1 -1
- package/lib/hooks/useFocus.js +3 -7
- package/lib/hooks/useFocus.js.map +1 -1
- package/lib/hooks/useLiveAnnouncerWithRegion.js +5 -9
- package/lib/hooks/useLiveAnnouncerWithRegion.js.map +1 -1
- package/lib/hooks/useLoading.js +8 -11
- package/lib/hooks/useLoading.js.map +1 -1
- package/lib/hooks/useLogin.js +16 -21
- package/lib/hooks/useLogin.js.map +1 -1
- package/lib/hooks/usePermissions.js +6 -9
- package/lib/hooks/usePermissions.js.map +1 -1
- package/lib/hooks/useReduxCachedValue.js +10 -16
- package/lib/hooks/useReduxCachedValue.js.map +1 -1
- package/lib/hooks/useUnloadEventInterceptor.js +24 -31
- package/lib/hooks/useUnloadEventInterceptor.js.map +1 -1
- package/lib/hooks/useUserNotify.js +5 -8
- package/lib/hooks/useUserNotify.js.map +1 -1
- package/lib/index.js +36 -79
- package/lib/index.js.map +1 -1
- package/lib/locale/de.js +1 -3
- package/lib/locale/de.js.map +1 -1
- package/lib/locale/en.js +1 -3
- package/lib/locale/en.js.map +1 -1
- package/lib/locale/fr.js +1 -3
- package/lib/locale/fr.js.map +1 -1
- package/lib/locale/it.js +1 -3
- package/lib/locale/it.js.map +1 -1
- package/lib/locale/locale-utils.js +20 -25
- package/lib/locale/locale-utils.js.map +1 -1
- package/lib/locale/sl.js +1 -3
- package/lib/locale/sl.js.map +1 -1
- package/lib/model/AppError.js +1 -2
- package/lib/model/JwtUser.js +1 -2
- package/lib/model/Page.js +1 -2
- package/lib/model/PageRequest.js +1 -2
- package/lib/model/PageResource.js +1 -2
- package/lib/model/User.js +1 -2
- package/lib/model/UserNotify.js +1 -2
- package/lib/redux/slices/appStateSlice.d.ts +13 -31
- package/lib/redux/slices/appStateSlice.js +15 -8
- package/lib/redux/slices/appStateSlice.js.map +1 -1
- package/lib/redux/slices/permissionsSlice.js +5 -10
- package/lib/redux/slices/permissionsSlice.js.map +1 -1
- package/lib/redux/slices/userSlice.d.ts +20 -2
- package/lib/redux/slices/userSlice.js +5 -8
- package/lib/redux/slices/userSlice.js.map +1 -1
- package/lib/services/analyticsService.js +20 -27
- package/lib/services/analyticsService.js.map +1 -1
- package/lib/services/assistanceService.js +9 -14
- package/lib/services/assistanceService.js.map +1 -1
- package/lib/services/errorService.js +3 -7
- package/lib/services/errorService.js.map +1 -1
- package/lib/utils/api-utils.js +14 -20
- package/lib/utils/api-utils.js.map +1 -1
- package/lib/utils/constants.d.ts +1 -0
- package/lib/utils/constants.js +10 -12
- package/lib/utils/constants.js.map +1 -1
- package/lib/utils/productId2ProductTitle.js +1 -5
- package/lib/utils/productId2ProductTitle.js.map +1 -1
- package/lib/utils/routes-utils.js +1 -5
- package/lib/utils/routes-utils.js.map +1 -1
- package/lib/utils/storage-utils.js +4 -10
- package/lib/utils/storage-utils.js.map +1 -1
- package/lib/utils/storage.js +7 -13
- package/lib/utils/storage.js.map +1 -1
- package/lib/utils/utils.js +5 -10
- package/lib/utils/utils.js.map +1 -1
- package/lib/utils/verifyChecksumMatchWithTaxCode.js +1 -5
- package/lib/utils/verifyChecksumMatchWithTaxCode.js.map +1 -1
- package/lib/utils/verifyNameMatchWithTaxCode.js +15 -13
- package/lib/utils/verifyNameMatchWithTaxCode.js.map +1 -1
- package/lib/utils/verifySurnameMatchWithTaxCode.js +7 -12
- package/lib/utils/verifySurnameMatchWithTaxCode.js.map +1 -1
- package/package.json +21 -66
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,10 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
-
#### [v1.34.
|
|
7
|
+
#### [v1.34.94](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.94)
|
|
8
8
|
|
|
9
|
+
- feat: Migrate project to Vite and Vitest [`#329`](https://github.com/pagopa/selfcare-common-frontend/pull/329)
|
|
10
|
+
- [SELC-8277] feat: add new action to handle product groups [`#328`](https://github.com/pagopa/selfcare-common-frontend/pull/328)
|
|
9
11
|
- Automatic logout [`#327`](https://github.com/pagopa/selfcare-common-frontend/pull/327)
|
|
10
12
|
- automatic logout logic [`#326`](https://github.com/pagopa/selfcare-common-frontend/pull/326)
|
|
11
13
|
- [SELC-8079] feat : handle redirect for backstage [`#324`](https://github.com/pagopa/selfcare-common-frontend/pull/324)
|
|
@@ -74,6 +76,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
74
76
|
- SELC-2590 [`#186`](https://github.com/pagopa/selfcare-common-frontend/pull/186)
|
|
75
77
|
- SELC-2590 - update common [`#185`](https://github.com/pagopa/selfcare-common-frontend/pull/185)
|
|
76
78
|
- Used a environment variable to manage correct links in the footer based to product and actual environment [`#184`](https://github.com/pagopa/selfcare-common-frontend/pull/184)
|
|
79
|
+
- [SELC-8277] feat: add new action to handle product groups (#328) [`#8277`](https://pagopa.atlassian.net/browse/8277)
|
|
77
80
|
- [SELC-8079] feat : handle redirect for backstage (#324) [`#8079`](https://pagopa.atlassian.net/browse/8079)
|
|
78
81
|
- [SELC-8042] feat: update role label for backstage header (#322) [`#8042`](https://pagopa.atlassian.net/browse/8042)
|
|
79
82
|
- [SELC-8066] feat: add live region label to announce loading in LoadingOverlayComponent (#321) [`#8066`](https://pagopa.atlassian.net/browse/8066)
|
|
@@ -150,10 +153,23 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
150
153
|
- Bump rimraf from 3.0.2 to 6.0.1 [`e6941b9`](https://github.com/pagopa/selfcare-common-frontend/commit/e6941b9e6b05c973d991e2470a851b5ca03926ce)
|
|
151
154
|
- Used a environment variable to manage correct links in the footer based to product and actual environment [`960e2fb`](https://github.com/pagopa/selfcare-common-frontend/commit/960e2fbaa8aa8f79061639b26dc1a27f28b8aae3)
|
|
152
155
|
|
|
153
|
-
#### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.
|
|
156
|
+
#### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.93...v1.35.0)
|
|
154
157
|
|
|
155
158
|
> 20 July 2023
|
|
156
159
|
|
|
160
|
+
#### [v1.34.93](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.92...v1.34.93)
|
|
161
|
+
|
|
162
|
+
> 11 March 2026
|
|
163
|
+
|
|
164
|
+
- [SELC-8277] feat: add new action to handle product groups [`#328`](https://github.com/pagopa/selfcare-common-frontend/pull/328)
|
|
165
|
+
- [SELC-8277] feat: add new action to handle product groups (#328) [`#8277`](https://pagopa.atlassian.net/browse/8277)
|
|
166
|
+
|
|
167
|
+
#### [v1.34.92](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.91...v1.34.92)
|
|
168
|
+
|
|
169
|
+
> 16 February 2026
|
|
170
|
+
|
|
171
|
+
- Automatic logout [`#327`](https://github.com/pagopa/selfcare-common-frontend/pull/327)
|
|
172
|
+
|
|
157
173
|
#### [v1.34.91](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.90...v1.34.91)
|
|
158
174
|
|
|
159
175
|
> 16 February 2026
|
package/build.info
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
tags/v1.29.0~1^2
|
|
1
|
+
20260312.1 - selfcare-common-frontend.deploy(262128)
|
|
2
|
+
tags/v1.29.0~1^2 f93686565b216dab43fac414dbacb39286ec7e2c
|
package/examples/locale/en.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
1
|
const descriptionEn = 'bold description';
|
|
4
|
-
|
|
2
|
+
export default {
|
|
5
3
|
'session modal button': 'Translate Example Session Modal',
|
|
6
4
|
labelTitle: 'name Title',
|
|
7
5
|
boldDescriptionText: ' Test Description with bold text',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../../src/examples/locale/en.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../../src/examples/locale/en.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG,kBAAkB,CAAC;AAEzC,eAAe;IACb,sBAAsB,EAAE,iCAAiC;IACzD,UAAU,EAAE,YAAY;IACxB,mBAAmB,EAAE,kCAAkC;IACvD,kBAAkB,EAAE,QAAQ,aAAa,EAAE;IAC3C,WAAW,EAAE;QACX,KAAK,EAAE,6BAA6B;QACpC,KAAK,EAAE,6BAA6B;KACrC;IACD,GAAG,EAAE,4BAA4B;IACjC,IAAI,EAAE,iCAAiC;IACvC,QAAQ,EAAE,gBAAgB;IAC1B,QAAQ,EAAE,gBAAgB;IAC1B,QAAQ,EAAE,GAAG;IACb,0BAA0B,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,CAAC;IACvD,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;CACrD,CAAC"}
|
package/examples/locale/index.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const en_1 = tslib_1.__importDefault(require("./en"));
|
|
6
|
-
const it_1 = tslib_1.__importDefault(require("./it"));
|
|
7
|
-
(0, locale_utils_1.configureI18n)({ en: en_1.default, it: it_1.default });
|
|
1
|
+
import { configureI18n } from '../../lib/locale/locale-utils';
|
|
2
|
+
import en from './en';
|
|
3
|
+
import it from './it';
|
|
4
|
+
configureI18n({ en, it });
|
|
8
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/examples/locale/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/examples/locale/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtB,aAAa,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC"}
|
package/examples/locale/it.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
1
|
const labelTitle = 'nome Titolo';
|
|
4
2
|
const descriptionIt = 'descrizione in grassetto';
|
|
5
|
-
|
|
3
|
+
export default {
|
|
6
4
|
'session modal button': 'Esempio Traduzione SessionModal',
|
|
7
5
|
labelTitle: `${labelTitle}`,
|
|
8
6
|
boldDescriptionText: ' testo in grassetto',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it.js","sourceRoot":"","sources":["../../../src/examples/locale/it.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"it.js","sourceRoot":"","sources":["../../../src/examples/locale/it.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,aAAa,CAAC;AACjC,MAAM,aAAa,GAAG,0BAA0B,CAAC;AAEjD,eAAe;IACb,sBAAsB,EAAE,iCAAiC;IACzD,UAAU,EAAE,GAAG,UAAU,EAAE;IAC3B,mBAAmB,EAAE,qBAAqB;IAC1C,kBAAkB,EAAE,iBAAiB,aAAa,EAAE;IACpD,WAAW,EAAE;QACX,KAAK,EAAE,8BAA8B;QACrC,KAAK,EAAE,8BAA8B;KACtC;IACD,GAAG,EAAE,0BAA0B;IAC/B,IAAI,EAAE,yCAAyC;IAC/C,QAAQ,EAAE,gBAAgB;IAC1B,QAAQ,EAAE,gBAAgB;IAC1B,QAAQ,EAAE,GAAG;IACb,0BAA0B,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC;IACvD,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;CACtD,CAAC"}
|
package/lib/common-polyfill.d.ts
CHANGED
package/lib/common-polyfill.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
require("core-js/stable/string");
|
|
11
|
-
require("core-js/stable/number");
|
|
12
|
-
require("core-js/stable/url-search-params");
|
|
1
|
+
import 'core-js/es/object/entries';
|
|
2
|
+
import 'core-js/es/object/from-entries';
|
|
3
|
+
import 'core-js/es/object/values';
|
|
4
|
+
import 'core-js/es/map';
|
|
5
|
+
import 'core-js/es/promise';
|
|
6
|
+
import 'core-js/es/array';
|
|
7
|
+
import 'core-js/stable/string';
|
|
8
|
+
import 'core-js/stable/number';
|
|
9
|
+
import 'core-js/stable/url-search-params';
|
|
13
10
|
//# sourceMappingURL=common-polyfill.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-polyfill.js","sourceRoot":"","sources":["../../src/lib/common-polyfill.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common-polyfill.js","sourceRoot":"","sources":["../../src/lib/common-polyfill.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AACnC,OAAO,gCAAgC,CAAC;AACxC,OAAO,0BAA0B,CAAC;AAClC,OAAO,gBAAgB,CAAC;AACxB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,kCAAkC,CAAC"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
function BackComponent({ goBack, backLabel, color }) {
|
|
9
|
-
const { t } = (0, react_i18next_1.useTranslation)();
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)(mui_italia_1.ButtonNaked, { size: "small", component: "button", onClick: goBack, startIcon: (0, jsx_runtime_1.jsx)(icons_material_1.ArrowBack, {}), sx: { color: color !== null && color !== void 0 ? color : 'primary.main' }, weight: "default", children: backLabel !== null && backLabel !== void 0 ? backLabel : t('common.backComponent.label') }));
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ArrowBack } from '@mui/icons-material';
|
|
3
|
+
import { ButtonNaked } from '@pagopa/mui-italia';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
|
+
export default function BackComponent({ goBack, backLabel, color }) {
|
|
6
|
+
const { t } = useTranslation();
|
|
7
|
+
return (_jsx(ButtonNaked, { size: "small", component: "button", onClick: goBack, startIcon: _jsx(ArrowBack, {}), sx: { color: color ?? 'primary.main' }, weight: "default", children: backLabel ?? t('common.backComponent.label') }));
|
|
11
8
|
}
|
|
12
9
|
//# sourceMappingURL=BackComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BackComponent.js","sourceRoot":"","sources":["../../../src/lib/components/BackComponent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BackComponent.js","sourceRoot":"","sources":["../../../src/lib/components/BackComponent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAO/C,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAS;IACvE,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAC;IAC/B,OAAO,CACL,KAAC,WAAW,IACV,IAAI,EAAC,OAAO,EACZ,SAAS,EAAC,QAAQ,EAClB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,KAAC,SAAS,KAAG,EACxB,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,IAAI,cAAc,EAAE,EACtC,MAAM,EAAC,SAAS,YAEf,SAAS,IAAI,CAAC,CAAC,4BAA4B,CAAC,GACjC,CACf,CAAC;AACJ,CAAC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
function CustomAlert({ text, severity = 'info', variant = 'standard', sx, ...rest }) {
|
|
8
|
-
const { t } = (0, react_i18next_1.useTranslation)();
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Alert, { role: "alert", severity: severity, variant: variant, sx: sx, ...rest, children: text || t('common.customAlert.message') }));
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Alert } from '@mui/material';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
export default function CustomAlert({ text, severity = 'info', variant = 'standard', sx, ...rest }) {
|
|
5
|
+
const { t } = useTranslation();
|
|
6
|
+
return (_jsx(Alert, { role: "alert", severity: severity, variant: variant, sx: sx, ...rest, children: text || t('common.customAlert.message') }));
|
|
10
7
|
}
|
|
11
8
|
//# sourceMappingURL=CustomAlert.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAlert.js","sourceRoot":"","sources":["../../../src/lib/components/CustomAlert.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CustomAlert.js","sourceRoot":"","sources":["../../../src/lib/components/CustomAlert.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAa/C,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,IAAI,EACJ,QAAQ,GAAG,MAAM,EACjB,OAAO,GAAG,UAAU,EACpB,EAAE,EACF,GAAG,IAAI,EACI;IACX,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAC;IAE/B,OAAO,CACL,KAAC,KAAK,IAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,KAAM,IAAI,YACvE,IAAI,IAAI,CAAC,CAAC,4BAA4B,CAAC,GAClC,CACT,CAAC;AACJ,CAAC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
7
|
-
const material_1 = require("@mui/material");
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Avatar } from '@mui/material';
|
|
8
4
|
/** Avatar to use to load Organization logo */
|
|
9
|
-
function CustomAvatar({ customAlt, customSrc, customWidth, customHeight, id, loading, }) {
|
|
10
|
-
return ((
|
|
5
|
+
export default function CustomAvatar({ customAlt, customSrc, customWidth, customHeight, id, loading, }) {
|
|
6
|
+
return (_jsx(React.Fragment, { children: _jsx(Avatar, { id: id, alt: customAlt, src: customSrc, sx: {
|
|
11
7
|
width: customWidth,
|
|
12
8
|
height: customHeight,
|
|
13
9
|
display: !loading ? undefined : 'none',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAvatar.js","sourceRoot":"","sources":["../../../src/lib/components/CustomAvatar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CustomAvatar.js","sourceRoot":"","sources":["../../../src/lib/components/CustomAvatar.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAiBvC,8CAA8C;AAC9C,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,SAAS,EACT,SAAS,EACT,WAAW,EACX,YAAY,EACZ,EAAE,EACF,OAAO,GACD;IACN,OAAO,CACL,KAAC,KAAK,CAAC,QAAQ,cACb,KAAC,MAAM,IACL,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,SAAS,EACd,GAAG,EAAE,SAAS,EACd,EAAE,EAAE;gBACF,KAAK,EAAE,WAAW;gBAClB,MAAM,EAAE,YAAY;gBACpB,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM;gBACtC,KAAK,EAAE,4BAA4B;gBACnC,eAAe,EAAE,SAAS;aAC3B,GACD,GACa,CAClB,CAAC;AACJ,CAAC"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
const material_1 = require("@mui/material");
|
|
7
|
-
const PaginationItem_1 = tslib_1.__importDefault(require("@mui/material/PaginationItem"));
|
|
8
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Grid, Pagination } from '@mui/material';
|
|
3
|
+
import PaginationItem from '@mui/material/PaginationItem';
|
|
4
|
+
import React from 'react';
|
|
9
5
|
function defaultLabelDisplayedRows(from, to, count) {
|
|
10
6
|
// eslint-disable-next-line sonarjs/no-nested-template-literals
|
|
11
7
|
return `${from}-${to} di ${count !== -1 ? count : `più di ${to}`}`;
|
|
@@ -17,11 +13,11 @@ const getLabelDisplayedRowsTo = (count, page, size) => {
|
|
|
17
13
|
return size === -1 ? count : Math.min(count, (page + 1) * size);
|
|
18
14
|
};
|
|
19
15
|
/** Selfcare custom table available pages component */
|
|
20
|
-
function CustomPagination({ page, onPageRequest, sort }) {
|
|
16
|
+
export default function CustomPagination({ page, onPageRequest, sort }) {
|
|
21
17
|
const count = page.totalElements;
|
|
22
18
|
const from = count === 0 ? 0 : page.number * page.size + 1;
|
|
23
19
|
const to = getLabelDisplayedRowsTo(count, page.number, page.size);
|
|
24
|
-
return ((
|
|
20
|
+
return (_jsx(React.Fragment, { children: _jsxs(Grid, { container: true, sx: { padding: '0 10px' }, children: [_jsx(Grid, { item: true, xs: 6, display: "flex", justifyContent: "start", alignItems: 'center', children: defaultLabelDisplayedRows(from, to, count) }), _jsx(Grid, { item: true, xs: 6, display: "flex", justifyContent: "end", alignItems: 'center', children: page.totalElements > page.size && (_jsx(Pagination, { sx: { display: 'flex' }, color: "primary", shape: "rounded", page: page.number + 1, count: page.totalPages, renderItem: (props2) => (_jsx(PaginationItem, { ...props2, sx: { border: 'none' }, variant: "outlined" })), onChange: (_event, value) => (onPageRequest({
|
|
25
21
|
page: value - 1,
|
|
26
22
|
size: page.size,
|
|
27
23
|
sort,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomPagination.js","sourceRoot":"","sources":["../../../src/lib/components/CustomPagination.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CustomPagination.js","sourceRoot":"","sources":["../../../src/lib/components/CustomPagination.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,SAAS,yBAAyB,CAAC,IAAY,EAAE,EAAU,EAAE,KAAa;IACxE,+DAA+D;IAC/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,GACtC,EACP,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,EAAE,OAAO,EAAC,MAAM,EAAC,cAAc,EAAC,KAAK,EAAC,UAAU,EAAE,QAAQ,YACvE,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,IAAI,IAAI,CACjC,KAAC,UAAU,IACT,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EACvB,KAAK,EAAC,SAAS,EACf,KAAK,EAAC,SAAS,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,EACrB,KAAK,EAAE,IAAI,CAAC,UAAU,EACtB,UAAU,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CACtB,KAAC,cAAc,OAAK,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,OAAO,EAAC,UAAU,GAAG,CAC1E,EACD,QAAQ,EAAE,CAAC,MAAkC,EAAE,KAAa,EAAE,EAAE,CAAC,CAC/D,aAAa,CAAC;4BACZ,IAAI,EAAE,KAAK,GAAG,CAAC;4BACf,IAAI,EAAE,IAAI,CAAC,IAAI;4BACf,IAAI;yBACL,CAAC;4BACF,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CACtB,GACD,CACH,GACI,IACF,GACQ,CAClB,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const material_1 = require("@mui/material");
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Grid, Typography, Box } from '@mui/material';
|
|
5
3
|
/** Selfcare's Ending Page */
|
|
6
|
-
|
|
4
|
+
export default ({ minHeight, description, onButtonClick, onSecondButtonClick, icon, title, buttonLabel, variantTitle, variantDescription, paragraph, isParagraphPresent, haveTwoButtons = false, secondButtonLabel, variantFirstButton = 'contained', variantSecondButton = 'contained', }) => (_jsx(Box, { sx: { minHeight, position: 'static' }, display: "flex", flexGrow: 1, children: _jsxs(Grid, { container: true, direction: "column", style: { textAlign: 'center' }, margin: 'auto', children: [_jsx(Grid, { container: true, item: true, justifyContent: "center", mb: 3, children: _jsx(Grid, { item: true, xs: 6, children: icon }) }), _jsx(Grid, { container: true, item: true, justifyContent: "center", children: _jsx(Grid, { item: true, xs: 6, children: _jsx(Typography, { variant: variantTitle, children: title }) }) }), _jsx(Grid, { container: true, item: true, justifyContent: "center", mb: 4, mt: 1, children: _jsx(Grid, { item: true, xs: 6, children: _jsx(Typography, { variant: variantDescription, children: description }) }) }), buttonLabel && (_jsx(Grid, { container: true, item: true, justifyContent: "center", children: _jsxs(Grid, { item: true, xs: haveTwoButtons ? 12 : 4, children: [_jsx(Button, { variant: variantFirstButton, sx: { alignSelf: 'center', marginRight: haveTwoButtons ? 3 : 0 }, onClick: onButtonClick, children: buttonLabel }), haveTwoButtons && (_jsx(Button, { variant: variantSecondButton, sx: { alignSelf: 'center' }, onClick: onSecondButtonClick, children: secondButtonLabel }))] }) })), isParagraphPresent && (_jsx(Grid, { container: true, item: true, justifyContent: "center", my: 4, children: _jsx(Grid, { item: true, xs: 6, children: _jsx(Typography, { variant: variantDescription, children: paragraph }) }) }))] }, "0") }));
|
|
7
5
|
//# sourceMappingURL=EndingPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EndingPage.js","sourceRoot":"","sources":["../../../src/lib/components/EndingPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EndingPage.js","sourceRoot":"","sources":["../../../src/lib/components/EndingPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAgB,MAAM,eAAe,CAAC;AAkE5E,6BAA6B;AAC7B,eAAe,CAAC,EACd,SAAS,EACT,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,IAAI,EACJ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ACpC,KAAC,MAAM,IACL,OAAO,EAAE,kBAAkB,EAC3B,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAChE,OAAO,EAAE,aAAa,YAErB,WAAW,GACL,EACR,cAAc,IAAI,CACjB,KAAC,MAAM,IACL,OAAO,EAAE,mBAAmB,EAC5B,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAC3B,OAAO,EAAE,mBAAmB,YAE3B,iBAAiB,GACX,CACV,IACI,GACF,CACR,EAEA,kBAAkB,IAAI,CACrB,KAAC,IAAI,IAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,EAAC,EAAE,EAAE,CAAC,YAChD,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,KAAC,UAAU,IAAC,OAAO,EAAE,kBAAkB,YAAG,SAAS,GAAc,GAC5D,GACF,CACR,KA7CoC,GAAG,CA8CnC,GACH,CACP,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TFunction } from 'i18next';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ComponentType, ReactNode } from 'react';
|
|
3
3
|
interface Props {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
assistanceEmail?: string;
|
|
@@ -7,5 +7,5 @@ interface Props {
|
|
|
7
7
|
t: TFunction<'translation', undefined>;
|
|
8
8
|
showCloseIcon?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const _default:
|
|
10
|
+
declare const _default: ComponentType<Omit<Props, "t">>;
|
|
11
11
|
export default _default;
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const SessionModal_1 = tslib_1.__importDefault(require("../SessionModal"));
|
|
13
|
-
const Toast_1 = tslib_1.__importDefault(require("../Toast"));
|
|
14
|
-
const BlockingErrorPage_1 = tslib_1.__importDefault(require("./components/BlockingErrorPage"));
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import ErrorOutlineOutlinedIcon from '@mui/icons-material/ErrorOutlineOutlined';
|
|
3
|
+
import { uniqueId } from 'lodash';
|
|
4
|
+
import { Component, Fragment } from 'react';
|
|
5
|
+
import { withTranslation } from 'react-i18next';
|
|
6
|
+
import { connect } from 'react-redux';
|
|
7
|
+
import { appStateActions, appStateSelectors } from '../../redux/slices/appStateSlice';
|
|
8
|
+
import { handleErrors } from '../../services/errorService';
|
|
9
|
+
import SessionModal from '../SessionModal';
|
|
10
|
+
import Toast from '../Toast';
|
|
11
|
+
import BlockingErrorPage from './components/BlockingErrorPage';
|
|
15
12
|
/** This feature is based on react-redux library and require to register the reducer build in appStateSlice into the application's redux store.
|
|
16
13
|
It allows to dispatch errors in order to display a warning or the error page to the user.
|
|
17
14
|
Errors dispatched will be notified using errorService
|
|
18
15
|
|
|
19
16
|
To use this feature you have to put ErrorBoundary in your App as a child of a redux Provider component.
|
|
20
17
|
In order to dispatch an error you have to use the custom hook useErrorDispatcher which will return a fuction to be used to dispatch the error. */
|
|
21
|
-
class ErrorBoundary extends
|
|
18
|
+
class ErrorBoundary extends Component {
|
|
22
19
|
constructor(props) {
|
|
23
20
|
super(props);
|
|
24
21
|
this.buildNotBlockingError.bind(this);
|
|
@@ -30,7 +27,7 @@ class ErrorBoundary extends react_1.Component {
|
|
|
30
27
|
}
|
|
31
28
|
componentDidCatch(error, errorInfo) {
|
|
32
29
|
this.props.addError({
|
|
33
|
-
id:
|
|
30
|
+
id: uniqueId('uncaught-'),
|
|
34
31
|
techDescription: 'Uncaught error',
|
|
35
32
|
error,
|
|
36
33
|
errorInfo,
|
|
@@ -43,30 +40,28 @@ class ErrorBoundary extends react_1.Component {
|
|
|
43
40
|
const blockingErrors = this.props.errors.filter((e) => e.blocking);
|
|
44
41
|
const hasBlockingError = blockingErrors.length > 0;
|
|
45
42
|
if (hasError) {
|
|
46
|
-
|
|
43
|
+
handleErrors(this.props.errors);
|
|
47
44
|
}
|
|
48
45
|
if (!hasBlockingError) {
|
|
49
|
-
return ((
|
|
46
|
+
return (_jsxs(Fragment, { children: [this.props.children, hasError && this.buildNotBlockingError(this.props.errors)] }));
|
|
50
47
|
}
|
|
51
48
|
else {
|
|
52
|
-
return ((
|
|
49
|
+
return (_jsx(BlockingErrorPage, { description: blockingErrors[0].displayableDescription, assistanceEmail: this.props.assistanceEmail, minHeight: this.props.minHeight }));
|
|
53
50
|
}
|
|
54
51
|
}
|
|
55
52
|
buildNotBlockingError(errors) {
|
|
56
53
|
const errorModal = errors.find((e) => e.component === 'SessionModal');
|
|
57
54
|
const errorToast = errors.find((e) => e.component === 'Toast');
|
|
58
|
-
return ((
|
|
55
|
+
return (_jsxs(_Fragment, { children: [errorModal && this.buildErrorModal(errorModal), errorToast && this.buildErrorToast(errorToast)] }));
|
|
59
56
|
}
|
|
60
57
|
buildErrorToast(error) {
|
|
61
|
-
var _a, _b;
|
|
62
58
|
if (error.autoclosable === 'timer') {
|
|
63
59
|
setTimeout(() => this.handleClose(error), error.autocloseMilliseconds);
|
|
64
60
|
}
|
|
65
|
-
return ((
|
|
61
|
+
return (_jsx(Toast, { open: true, title: error.displayableTitle ?? this.props.t('common.errorBoundary.toastError'), message: error.displayableDescription ?? this.props.t('common.errorBoundary.toastMessage'), logo: ErrorOutlineOutlinedIcon, toastColorIcon: "#FE6666", leftBorderColor: "#FE6666", onCloseToast: () => this.handleClose(error), width: error.width, showToastCloseIcon: error.showCloseIcon }));
|
|
66
62
|
}
|
|
67
63
|
buildErrorModal(error) {
|
|
68
|
-
|
|
69
|
-
return ((0, jsx_runtime_1.jsx)(SessionModal_1.default, { open: true, title: (_a = error.displayableTitle) !== null && _a !== void 0 ? _a : this.props.t('common.errorBoundary.sessionModalTitle'), message: (_b = error.displayableDescription) !== null && _b !== void 0 ? _b : this.props.t('common.errorBoundary.sessionModalMessage'), onConfirm: error.onRetry ? () => this.retryError(error) : undefined, handleClose: () => this.handleClose(error), width: error.width, showCloseIcon: error.showCloseIcon }));
|
|
64
|
+
return (_jsx(SessionModal, { open: true, title: error.displayableTitle ?? this.props.t('common.errorBoundary.sessionModalTitle'), message: error.displayableDescription ?? this.props.t('common.errorBoundary.sessionModalMessage'), onConfirm: error.onRetry ? () => this.retryError(error) : undefined, handleClose: () => this.handleClose(error), width: error.width, showCloseIcon: error.showCloseIcon }));
|
|
70
65
|
}
|
|
71
66
|
retryError(error) {
|
|
72
67
|
this.popError(error);
|
|
@@ -86,13 +81,14 @@ class ErrorBoundary extends react_1.Component {
|
|
|
86
81
|
}
|
|
87
82
|
function mapStateToProps(state) {
|
|
88
83
|
return {
|
|
89
|
-
errors:
|
|
84
|
+
errors: appStateSelectors.selectErrors(state)
|
|
90
85
|
};
|
|
91
86
|
}
|
|
92
87
|
const mapDispatchToProps = (dispatch) => ({
|
|
93
|
-
addError: (error) => dispatch(
|
|
94
|
-
removeError: (error) => dispatch(
|
|
88
|
+
addError: (error) => dispatch(appStateActions.addError(error)),
|
|
89
|
+
removeError: (error) => dispatch(appStateActions.removeError(error)),
|
|
95
90
|
});
|
|
96
|
-
const ErrorBoundaryConnected =
|
|
97
|
-
|
|
91
|
+
const ErrorBoundaryConnected = connect(mapStateToProps, mapDispatchToProps)(ErrorBoundary);
|
|
92
|
+
const ErrorBoundaryWithTranslation = withTranslation()(ErrorBoundaryConnected);
|
|
93
|
+
export default ErrorBoundaryWithTranslation;
|
|
98
94
|
//# sourceMappingURL=ErrorBoundary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundary.js","sourceRoot":"","sources":["../../../../src/lib/components/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":"
|
|
1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 -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const { t } = (0, react_i18next_1.useTranslation)();
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)(EndingPage_1.default, { minHeight: minHeight, icon: (0, jsx_runtime_1.jsx)(ErrorIcon_1.default, {}), title: t('common.blockingErrorPage.title'), description: description !== null && description !== void 0 ? description : t('common.blockingErrorPage.description'), onButtonClick: assistanceEmail
|
|
12
|
-
? () => window.location.assign((0, assistanceService_1.buildAssistanceURI)(assistanceEmail))
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
3
|
+
import { buildAssistanceURI } from '../../../services/assistanceService';
|
|
4
|
+
import EndingPage from '../../EndingPage';
|
|
5
|
+
import ErrorIcon from '../../icons/ErrorIcon';
|
|
6
|
+
export default ({ description, assistanceEmail, minHeight = '100vh' }) => {
|
|
7
|
+
const { t } = useTranslation();
|
|
8
|
+
return (_jsx(EndingPage, { minHeight: minHeight, icon: _jsx(ErrorIcon, {}), title: t('common.blockingErrorPage.title'), description: description ?? t('common.blockingErrorPage.description'), onButtonClick: assistanceEmail
|
|
9
|
+
? () => window.location.assign(buildAssistanceURI(assistanceEmail))
|
|
13
10
|
: undefined, buttonLabel: t('common.blockingErrorPage.buttonLabel') }));
|
|
14
11
|
};
|
|
15
12
|
//# sourceMappingURL=BlockingErrorPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockingErrorPage.js","sourceRoot":"","sources":["../../../../../src/lib/components/ErrorBoundary/components/BlockingErrorPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BlockingErrorPage.js","sourceRoot":"","sources":["../../../../../src/lib/components/ErrorBoundary/components/BlockingErrorPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAO9C,eAAe,CAAC,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,GAAG,OAAO,EAAS,EAAE,EAAE;IAC9E,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAC;IAC/B,OAAO,CACL,KAAC,UAAU,IACT,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,KAAC,SAAS,KAAG,EACnB,KAAK,EAAE,CAAC,CAAC,gCAAgC,CAAC,EAC1C,WAAW,EAAE,WAAW,IAAI,CAAC,CAAC,sCAAsC,CAAC,EACrE,aAAa,EACX,eAAe;YACb,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;YACnE,CAAC,CAAC,SAAS,EAEf,WAAW,EAAE,CAAC,CAAC,sCAAsC,CAAC,GACtD,CACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,37 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const useMediaQuery_1 = tslib_1.__importDefault(require("@mui/material/useMediaQuery"));
|
|
10
|
-
const styles_1 = require("@mui/material/styles");
|
|
11
|
-
const ClearOutlined_1 = tslib_1.__importDefault(require("@mui/icons-material/ClearOutlined"));
|
|
12
|
-
const react_i18next_1 = require("react-i18next");
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Typography, Box, Button, FormControlLabel, Grid, IconButton, Radio, RadioGroup, } from '@mui/material';
|
|
4
|
+
import Dialog from '@mui/material/Dialog';
|
|
5
|
+
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
6
|
+
import { useTheme } from '@mui/material/styles';
|
|
7
|
+
import ClearOutlinedIcon from '@mui/icons-material/ClearOutlined';
|
|
8
|
+
import { useTranslation } from 'react-i18next';
|
|
13
9
|
/** Modal used to show a list of values from which to choose a single value */
|
|
14
|
-
function FilterModal({ open, handleClose, title, filterModalConfig, height = '16em', minHeight = '16em', }) {
|
|
15
|
-
const theme =
|
|
16
|
-
const fullScreen = (
|
|
10
|
+
export default function FilterModal({ open, handleClose, title, filterModalConfig, height = '16em', minHeight = '16em', }) {
|
|
11
|
+
const theme = useTheme();
|
|
12
|
+
const fullScreen = useMediaQuery(theme.breakpoints.down('xs'));
|
|
17
13
|
React.useEffect(() => setValueRadio(''), [open]);
|
|
18
14
|
const [valueRadio, setValueRadio] = React.useState('');
|
|
19
|
-
const { t } =
|
|
15
|
+
const { t } = useTranslation();
|
|
20
16
|
const handleChange = (_, value) => {
|
|
21
17
|
setValueRadio(value);
|
|
22
18
|
};
|
|
23
19
|
const submitFilter = (event) => {
|
|
24
20
|
const i = data.filter((value) => value.id === valueRadio).map((x) => x)[0];
|
|
25
|
-
filterModalConfig
|
|
21
|
+
filterModalConfig?.onFilterChange(i === undefined ? valueRadio : i);
|
|
26
22
|
handleClose(event);
|
|
27
23
|
};
|
|
28
|
-
const data =
|
|
29
|
-
return ((
|
|
24
|
+
const data = filterModalConfig?.data !== undefined ? filterModalConfig?.data : [];
|
|
25
|
+
return (_jsx(Dialog, { fullScreen: fullScreen, open: open, "aria-labelledby": "responsive-dialog-title", children: _jsx(Grid, { container: true, direction: "column", sx: { height, minHeight, width: '21.9em' }, children: _jsxs(Box, { mx: 3, sx: { height: '100%' }, children: [_jsx(Grid, { container: true, item: true, mt: 4, children: _jsxs(Grid, { item: true, xs: 10, children: [_jsx(IconButton, { onClick: (e) => {
|
|
30
26
|
setValueRadio('');
|
|
31
27
|
handleClose(e);
|
|
32
|
-
}, style: { position: 'absolute', top: '20px', right: '16px', zIndex: 100 }, children: (
|
|
33
|
-
var _a;
|
|
34
|
-
return ((0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: filterModalConfig === null || filterModalConfig === void 0 ? void 0 : filterModalConfig.getValue(value), control: (0, jsx_runtime_1.jsx)(material_1.Radio, {}), label: (_a = filterModalConfig === null || filterModalConfig === void 0 ? void 0 : filterModalConfig.getLabel(value)) !== null && _a !== void 0 ? _a : '' }, index));
|
|
35
|
-
}) }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, mb: 2, children: (0, jsx_runtime_1.jsx)(material_1.Button, { sx: { width: '100%', marginBottom: '20px' }, color: "primary", variant: "contained", onClick: submitFilter, children: t('common.filterModal.button') }) })] }) }) }));
|
|
28
|
+
}, style: { position: 'absolute', top: '20px', right: '16px', zIndex: 100 }, children: _jsx(ClearOutlinedIcon, {}) }), _jsx(Typography, { variant: "h5", sx: { fontSize: '18px', fontWeight: '600' }, children: `${t('common.filterModal.title')} ${title}` })] }) }), _jsx(Grid, { container: true, item: true, children: _jsx(Grid, { item: true, xs: 12, my: 3, children: _jsx(RadioGroup, { "aria-label": "gender", name: "controlled-radio-buttons-group", value: valueRadio, onChange: handleChange, children: data.map((value, index) => (_jsx(FormControlLabel, { value: filterModalConfig?.getValue(value), control: _jsx(Radio, {}), label: filterModalConfig?.getLabel(value) ?? '' }, index))) }) }) }), _jsx(Grid, { item: true, xs: 12, mb: 2, children: _jsx(Button, { sx: { width: '100%', marginBottom: '20px' }, color: "primary", variant: "contained", onClick: submitFilter, children: t('common.filterModal.button') }) })] }) }) }));
|
|
36
29
|
}
|
|
37
30
|
//# sourceMappingURL=FilterModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterModal.js","sourceRoot":"","sources":["../../../src/lib/components/FilterModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FilterModal.js","sourceRoot":"","sources":["../../../src/lib/components/Fil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