@pagopa/selfcare-common-frontend 1.10.5 → 1.10.8
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 +20 -0
- package/build.info +2 -2
- package/components/Toast.js +1 -1
- package/components/ToastWrapper.js +1 -1
- package/components/UserNotifyHandle.js +8 -3
- package/components/UserNotifyHandle.js.map +1 -1
- package/locale/it.d.ts +12 -0
- package/locale/it.js +12 -0
- package/locale/it.js.map +1 -1
- package/package.json +1 -1
- package/utils/constants.d.ts +3 -3
- package/utils/constants.js +6 -6
- package/utils/constants.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,28 @@ 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.10.8](https://github.com/pagopa/selfcare-common-frontend/compare/v1.10.7...v1.10.8)
|
|
8
|
+
|
|
9
|
+
- SELC-925 Change ADMIN and LIMITED labels + localization [`#70`](https://github.com/pagopa/selfcare-common-frontend/pull/70)
|
|
10
|
+
- SELC-925 Change ADMIN and LIMITED labels + localization (#70) [`#925`](https://pagopa.atlassian.net/browse/925)
|
|
11
|
+
|
|
12
|
+
#### [v1.10.7](https://github.com/pagopa/selfcare-common-frontend/compare/v1.10.6...v1.10.7)
|
|
13
|
+
|
|
14
|
+
> 26 April 2022
|
|
15
|
+
|
|
16
|
+
- modified z-index [`#69`](https://github.com/pagopa/selfcare-common-frontend/pull/69)
|
|
17
|
+
|
|
18
|
+
#### [v1.10.6](https://github.com/pagopa/selfcare-common-frontend/compare/v1.10.5...v1.10.6)
|
|
19
|
+
|
|
20
|
+
> 26 April 2022
|
|
21
|
+
|
|
22
|
+
- fixed userNotify timers configured once per notify [`#68`](https://github.com/pagopa/selfcare-common-frontend/pull/68)
|
|
23
|
+
- modified toast z-index [`#67`](https://github.com/pagopa/selfcare-common-frontend/pull/67)
|
|
24
|
+
|
|
7
25
|
#### [v1.10.5](https://github.com/pagopa/selfcare-common-frontend/compare/v1.10.4...v1.10.5)
|
|
8
26
|
|
|
27
|
+
> 26 April 2022
|
|
28
|
+
|
|
9
29
|
- modified subHeader fontSize [`#66`](https://github.com/pagopa/selfcare-common-frontend/pull/66)
|
|
10
30
|
|
|
11
31
|
#### [v1.10.4](https://github.com/pagopa/selfcare-common-frontend/compare/v1.10.3...v1.10.4)
|
package/build.info
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
remotes/origin/SELC-222
|
|
1
|
+
20220428.1 - selfcare-common-frontend.deploy(29275)
|
|
2
|
+
remotes/origin/SELC-222 eeaa9907fe05af885f3c0b077b6cd2fbdfd5305d
|
package/components/Toast.js
CHANGED
|
@@ -13,7 +13,7 @@ const CustomAlert = (0, system_1.styled)(material_1.Alert)({
|
|
|
13
13
|
/** Selfcare's toast */
|
|
14
14
|
function Toast({ open, title, message, onCloseToast, logo = ConfirmIcon_1.default, leftBorderColor = '#00CF86', width = '376px', wrapped = false, bottom = '64px', right = '64px', }) {
|
|
15
15
|
const positionStyle = !wrapped
|
|
16
|
-
? { position: 'fixed', bottom, right, zIndex:
|
|
16
|
+
? { position: 'fixed', bottom, right, zIndex: 500 }
|
|
17
17
|
: { marginTop: 2 };
|
|
18
18
|
return ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: open && ((0, jsx_runtime_1.jsx)(CustomAlert, { className: "userToast", variant: "outlined", sx: {
|
|
19
19
|
...positionStyle,
|
|
@@ -18,8 +18,11 @@ function UserNotifyHandle() {
|
|
|
18
18
|
const notifies = (0, react_redux_1.useSelector)(appStateSlice_1.appStateSelectors.selectNotifies);
|
|
19
19
|
const lastNotifiesToast = (0, react_1.useRef)([]);
|
|
20
20
|
const lastNotifyModal = (0, react_1.useRef)();
|
|
21
|
+
const timers = (0, react_1.useRef)({});
|
|
21
22
|
const onClose = (notify) => {
|
|
22
23
|
dispatch(appStateSlice_1.appStateActions.removeNotify(notify));
|
|
24
|
+
// eslint-disable-next-line functional/immutable-data
|
|
25
|
+
delete timers.current[notify.id];
|
|
23
26
|
if (notify === null || notify === void 0 ? void 0 : notify.onClose) {
|
|
24
27
|
notify.onClose();
|
|
25
28
|
}
|
|
@@ -30,13 +33,13 @@ function UserNotifyHandle() {
|
|
|
30
33
|
notify.onConfirm();
|
|
31
34
|
}
|
|
32
35
|
};
|
|
33
|
-
const { openModal, openToast } = updateCurrents(lastNotifyModal, lastNotifiesToast, notifies, onClose);
|
|
36
|
+
const { openModal, openToast } = updateCurrents(lastNotifyModal, lastNotifiesToast, notifies, onClose, timers.current);
|
|
34
37
|
const notifyModal = lastNotifyModal.current;
|
|
35
38
|
const notifiesToast = lastNotifiesToast.current;
|
|
36
39
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ToastWrapper_1.default, { children: notifiesToast.map((n) => ((0, jsx_runtime_1.jsx)(__1.Toast, { wrapped: true, open: openToast, title: n.title, message: n.message, logo: n.logo, leftBorderColor: n.leftBorderColor, onCloseToast: () => onClose(n), width: n.width }, n.id))) }), (0, jsx_runtime_1.jsx)(__1.SessionModal, { open: openModal, title: (_a = notifyModal === null || notifyModal === void 0 ? void 0 : notifyModal.title) !== null && _a !== void 0 ? _a : 'Notify Title', message: notifyModal === null || notifyModal === void 0 ? void 0 : notifyModal.message, onConfirm: (notifyModal === null || notifyModal === void 0 ? void 0 : notifyModal.onConfirm) ? () => onConfirm(notifyModal) : undefined, onConfirmLabel: notifyModal === null || notifyModal === void 0 ? void 0 : notifyModal.confirmLabel, handleClose: () => onClose(notifyModal), onCloseLabel: notifyModal === null || notifyModal === void 0 ? void 0 : notifyModal.closeLabel, width: notifyModal === null || notifyModal === void 0 ? void 0 : notifyModal.width })] }));
|
|
37
40
|
}
|
|
38
41
|
exports.default = UserNotifyHandle;
|
|
39
|
-
function updateCurrents(lastNotifyModalRef, lastNotifiesToastRef, notifies, onClose) {
|
|
42
|
+
function updateCurrents(lastNotifyModalRef, lastNotifiesToastRef, notifies, onClose, timers) {
|
|
40
43
|
const lastNotifiesToast = notifies.filter((e) => e.component === 'Toast');
|
|
41
44
|
const lastNotifySessionModal = notifies.find((e) => e.component === 'SessionModal');
|
|
42
45
|
const openToast = lastNotifiesToast.length > 0;
|
|
@@ -49,8 +52,10 @@ function updateCurrents(lastNotifyModalRef, lastNotifiesToastRef, notifies, onCl
|
|
|
49
52
|
// eslint-disable-next-line functional/immutable-data
|
|
50
53
|
lastNotifiesToastRef.current = lastNotifiesToast;
|
|
51
54
|
lastNotifiesToast.forEach((n) => {
|
|
52
|
-
if (n.autoclosable === 'timer') {
|
|
55
|
+
if (n.autoclosable === 'timer' && !timers[n.id]) {
|
|
53
56
|
setTimeout(() => onClose(n), n.autocloseMilliseconds);
|
|
57
|
+
// eslint-disable-next-line functional/immutable-data
|
|
58
|
+
timers[n.id] = true;
|
|
54
59
|
}
|
|
55
60
|
});
|
|
56
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserNotifyHandle.js","sourceRoot":"","sources":["../../src/lib/components/UserNotifyHandle.tsx"],"names":[],"mappings":";;;;AAAA,iCAAiD;AACjD,6CAAuD;AACvD,0BAAyC;AAEzC,iEAAmF;AACnF,0EAA0C;AAE1C;;;;wJAIwJ;AACxJ,SAAS,gBAAgB;;IACvB,MAAM,QAAQ,GAAG,IAAA,yBAAW,GAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,IAAA,yBAAW,EAAC,iCAAiB,CAAC,cAAc,CAAC,CAAC;IAC/D,MAAM,iBAAiB,GAAG,IAAA,cAAM,EAAoB,EAAE,CAAC,CAAC;IACxD,MAAM,eAAe,GAAG,IAAA,cAAM,GAAc,CAAC;IAE7C,MAAM,OAAO,GAAG,CAAC,MAAkB,EAAE,EAAE;QACrC,QAAQ,CAAC,+BAAe,CAAC,YAAY,CAAC,MAAoB,CAAC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OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE;gBAC/C,UAAU,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,qBAAqB,CAAC,CAAC;gBACtD,qDAAqD;gBACrD,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;aACrB;QACH,CAAC,CAAC,CAAC;KACJ;IACD,OAAO;QACL,SAAS;QACT,SAAS;KACV,CAAC;AACJ,CAAC"}
|
package/locale/it.d.ts
CHANGED
|
@@ -34,6 +34,18 @@ declare const _default: {
|
|
|
34
34
|
message: string;
|
|
35
35
|
confirmLabel: string;
|
|
36
36
|
};
|
|
37
|
+
roles: {
|
|
38
|
+
admin: {
|
|
39
|
+
shortLabel: string;
|
|
40
|
+
longLabel: string;
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
limited: {
|
|
44
|
+
shortLabel: string;
|
|
45
|
+
longLabel: string;
|
|
46
|
+
description: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
37
49
|
};
|
|
38
50
|
};
|
|
39
51
|
export default _default;
|
package/locale/it.js
CHANGED
|
@@ -39,6 +39,18 @@ exports.default = {
|
|
|
39
39
|
message: 'Se esci, le modifiche apportate andranno perse.',
|
|
40
40
|
confirmLabel: 'Esci',
|
|
41
41
|
},
|
|
42
|
+
roles: {
|
|
43
|
+
admin: {
|
|
44
|
+
shortLabel: 'Ref. Amministrativo',
|
|
45
|
+
longLabel: 'Amministratore',
|
|
46
|
+
description: 'Ha tutti i permessi e gestisce gli utenti',
|
|
47
|
+
},
|
|
48
|
+
limited: {
|
|
49
|
+
shortLabel: 'Ref. Operativo',
|
|
50
|
+
longLabel: 'Operatore',
|
|
51
|
+
description: "Gestisce l'integrazione tecnologica e/o l'operatività dei servizi",
|
|
52
|
+
},
|
|
53
|
+
},
|
|
42
54
|
},
|
|
43
55
|
};
|
|
44
56
|
//# sourceMappingURL=it.js.map
|
package/locale/it.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it.js","sourceRoot":"","sources":["../../src/lib/locale/it.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,MAAM,EAAE;QACN,aAAa,EAAE;YACb,iBAAiB,EAAE,QAAQ;YAC3B,mBAAmB,EAAE,sCAAsC;YAC3D,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,sCAAsC;SACrD;QACD,iBAAiB,EAAE;YACjB,KAAK,EAAE,sCAAsC;YAC7C,WAAW,EAAE,2EAA2E;YACxF,WAAW,EAAE,uBAAuB;SACrC;QACD,MAAM,EAAE;YACN,aAAa,EAAE;;;0EAGqD;YACpE,iBAAiB,EAAE,iBAAiB;YACpC,qBAAqB,EAAE,sCAAsC;YAC7D,uBAAuB,EAAE,+BAA+B;YACxD,cAAc,EAAE,aAAa;SAC9B;QACD,MAAM,EAAE;YACN,UAAU,EAAE,MAAM;SACnB;QACD,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,MAAM,EAAE,QAAQ;SACjB;QACD,YAAY,EAAE;YACZ,WAAW,EAAE,SAAS;YACtB,aAAa,EAAE,SAAS;SACzB;QACD,kBAAkB,EAAE;YAClB,KAAK,EAAE,sBAAsB;YAC7B,OAAO,EAAE,iDAAiD;YAC1D,YAAY,EAAE,MAAM;SACrB;KACF;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"it.js","sourceRoot":"","sources":["../../src/lib/locale/it.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,MAAM,EAAE;QACN,aAAa,EAAE;YACb,iBAAiB,EAAE,QAAQ;YAC3B,mBAAmB,EAAE,sCAAsC;YAC3D,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,sCAAsC;SACrD;QACD,iBAAiB,EAAE;YACjB,KAAK,EAAE,sCAAsC;YAC7C,WAAW,EAAE,2EAA2E;YACxF,WAAW,EAAE,uBAAuB;SACrC;QACD,MAAM,EAAE;YACN,aAAa,EAAE;;;0EAGqD;YACpE,iBAAiB,EAAE,iBAAiB;YACpC,qBAAqB,EAAE,sCAAsC;YAC7D,uBAAuB,EAAE,+BAA+B;YACxD,cAAc,EAAE,aAAa;SAC9B;QACD,MAAM,EAAE;YACN,UAAU,EAAE,MAAM;SACnB;QACD,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,MAAM,EAAE,QAAQ;SACjB;QACD,YAAY,EAAE;YACZ,WAAW,EAAE,SAAS;YACtB,aAAa,EAAE,SAAS;SACzB;QACD,kBAAkB,EAAE;YAClB,KAAK,EAAE,sBAAsB;YAC7B,OAAO,EAAE,iDAAiD;YAC1D,YAAY,EAAE,MAAM;SACrB;QACD,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,UAAU,EAAE,qBAAqB;gBACjC,SAAS,EAAE,gBAAgB;gBAC3B,WAAW,EAAE,2CAA2C;aACzD;YACD,OAAO,EAAE;gBACP,UAAU,EAAE,gBAAgB;gBAC5B,SAAS,EAAE,WAAW;gBACtB,WAAW,EAAE,mEAAmE;aACjF;SACF;KACF;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pagopa/selfcare-common-frontend",
|
|
3
3
|
"description": "Shared React components for the pagopa selfcare project",
|
|
4
|
-
"version": "1.10.
|
|
4
|
+
"version": "1.10.8",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/pagopa/selfcare-common-frontend",
|
|
7
7
|
"author": "https://www.pagopa.gov.it",
|
package/utils/constants.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export declare type UserRole = 'ADMIN' | 'LIMITED';
|
|
|
4
4
|
/** The short and long labels used for the roles of selfcare's projects */
|
|
5
5
|
export declare const roleLabels: {
|
|
6
6
|
[key in UserRole]: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
shortLabelKey: string;
|
|
8
|
+
longLabelKey: string;
|
|
9
|
+
descriptionKey: string;
|
|
10
10
|
};
|
|
11
11
|
};
|
package/utils/constants.js
CHANGED
|
@@ -6,14 +6,14 @@ exports.LOADING_TASK_RETRIEVE_CACHED_VALUES = 'RETRIEVE_CACHED_VALUES';
|
|
|
6
6
|
/** The short and long labels used for the roles of selfcare's projects */
|
|
7
7
|
exports.roleLabels = {
|
|
8
8
|
ADMIN: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
shortLabelKey: 'common.roles.admin.shortLabel',
|
|
10
|
+
longLabelKey: 'common.roles.admin.longLabel',
|
|
11
|
+
descriptionKey: 'common.roles.admin.description',
|
|
12
12
|
},
|
|
13
13
|
LIMITED: {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
shortLabelKey: 'common.roles.limited.shortLabel',
|
|
15
|
+
longLabelKey: 'common.roles.limited.longLabel',
|
|
16
|
+
descriptionKey: 'common.roles.limited.description',
|
|
17
17
|
},
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=constants.js.map
|
package/utils/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/lib/utils/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,aAAa,CAAC;AACzC,QAAA,mCAAmC,GAAG,wBAAwB,CAAC;AAI5E,0EAA0E;AAC7D,QAAA,UAAU,GAEnB;IACF,KAAK,EAAE;QACL,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/lib/utils/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,aAAa,CAAC;AACzC,QAAA,mCAAmC,GAAG,wBAAwB,CAAC;AAI5E,0EAA0E;AAC7D,QAAA,UAAU,GAEnB;IACF,KAAK,EAAE;QACL,aAAa,EAAE,+BAA+B;QAC9C,YAAY,EAAE,8BAA8B;QAC5C,cAAc,EAAE,gCAAgC;KACjD;IACD,OAAO,EAAE;QACP,aAAa,EAAE,iCAAiC;QAChD,YAAY,EAAE,gCAAgC;QAC9C,cAAc,EAAE,kCAAkC;KACnD;CACF,CAAC"}
|