@pagopa/selfcare-common-frontend 1.10.6 → 1.10.9
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 +19 -0
- package/build.info +2 -2
- package/components/TitleBox.d.ts +1 -1
- package/components/TitleBox.js +2 -2
- package/components/TitleBox.js.map +1 -1
- package/components/Toast.js +1 -1
- package/components/ToastWrapper.js +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,27 @@ 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.9](https://github.com/pagopa/selfcare-common-frontend/compare/v1.10.8...v1.10.9)
|
|
8
|
+
|
|
9
|
+
- fix-TitleBox [`#71`](https://github.com/pagopa/selfcare-common-frontend/pull/71)
|
|
10
|
+
|
|
11
|
+
#### [v1.10.8](https://github.com/pagopa/selfcare-common-frontend/compare/v1.10.7...v1.10.8)
|
|
12
|
+
|
|
13
|
+
> 28 April 2022
|
|
14
|
+
|
|
15
|
+
- SELC-925 Change ADMIN and LIMITED labels + localization [`#70`](https://github.com/pagopa/selfcare-common-frontend/pull/70)
|
|
16
|
+
- SELC-925 Change ADMIN and LIMITED labels + localization (#70) [`#925`](https://pagopa.atlassian.net/browse/925)
|
|
17
|
+
|
|
18
|
+
#### [v1.10.7](https://github.com/pagopa/selfcare-common-frontend/compare/v1.10.6...v1.10.7)
|
|
19
|
+
|
|
20
|
+
> 26 April 2022
|
|
21
|
+
|
|
22
|
+
- modified z-index [`#69`](https://github.com/pagopa/selfcare-common-frontend/pull/69)
|
|
23
|
+
|
|
7
24
|
#### [v1.10.6](https://github.com/pagopa/selfcare-common-frontend/compare/v1.10.5...v1.10.6)
|
|
8
25
|
|
|
26
|
+
> 26 April 2022
|
|
27
|
+
|
|
9
28
|
- fixed userNotify timers configured once per notify [`#68`](https://github.com/pagopa/selfcare-common-frontend/pull/68)
|
|
10
29
|
- modified toast z-index [`#67`](https://github.com/pagopa/selfcare-common-frontend/pull/67)
|
|
11
30
|
|
package/build.info
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
remotes/origin/SELC-222
|
|
1
|
+
20220502.1 - selfcare-common-frontend.deploy(29651)
|
|
2
|
+
remotes/origin/SELC-222 1a38a7e61b199eadc51b0465c68a1ddde47aec26
|
package/components/TitleBox.d.ts
CHANGED
|
@@ -21,5 +21,5 @@ declare type Props = {
|
|
|
21
21
|
subTitleFontSize?: string;
|
|
22
22
|
};
|
|
23
23
|
/** Selfcare's page title */
|
|
24
|
-
export default function TitleBox({ title, subTitle, mbTitle, mtTitle, mbSubTitle, variantTitle, variantSubTitle, titleFontSize, subTitleFontSize }: Props): JSX.Element;
|
|
24
|
+
export default function TitleBox({ title, subTitle, mbTitle, mtTitle, mbSubTitle, variantTitle, variantSubTitle, titleFontSize, subTitleFontSize, }: Props): JSX.Element;
|
|
25
25
|
export {};
|
package/components/TitleBox.js
CHANGED
|
@@ -6,8 +6,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
6
6
|
const material_1 = require("@mui/material");
|
|
7
7
|
const material_2 = require("@mui/material");
|
|
8
8
|
/** Selfcare's page title */
|
|
9
|
-
function TitleBox({ title, subTitle, mbTitle = 2, mtTitle, mbSubTitle, variantTitle = 'h1', variantSubTitle = 'h5', titleFontSize, subTitleFontSize = '18px' }) {
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)(material_2.Grid, { container: true, mt: mtTitle, children: [(0, jsx_runtime_1.jsx)(material_2.Grid, { item: true, xs: 12, mb: mbTitle, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantTitle, sx: { fontSize: titleFontSize }, children: title }) }), (0, jsx_runtime_1.jsx)(material_2.Grid, { item: true, xs: 12, mb: mbSubTitle, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantSubTitle, sx: { fontSize: subTitleFontSize }, children: subTitle }) })] }));
|
|
9
|
+
function TitleBox({ title, subTitle, mbTitle = 2, mtTitle, mbSubTitle, variantTitle = 'h1', variantSubTitle = 'h5', titleFontSize, subTitleFontSize = '18px', }) {
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)(material_2.Grid, { container: true, mt: mtTitle, children: [(0, jsx_runtime_1.jsx)(material_2.Grid, { item: true, xs: 12, mb: mbTitle, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantTitle, sx: { fontSize: titleFontSize }, children: title }) }), subTitle && ((0, jsx_runtime_1.jsx)(material_2.Grid, { item: true, xs: 12, mb: mbSubTitle, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantSubTitle, sx: { fontSize: subTitleFontSize }, children: subTitle }) }))] }));
|
|
11
11
|
}
|
|
12
12
|
exports.default = TitleBox;
|
|
13
13
|
//# sourceMappingURL=TitleBox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TitleBox.js","sourceRoot":"","sources":["../../src/lib/components/TitleBox.tsx"],"names":[],"mappings":";;;AAAA,4BAA4B;AAC5B,uCAAuC;AACvC,4CAA2C;AAC3C,4CAAqC;AAwBrC,4BAA4B;AAC5B,SAAwB,QAAQ,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,OAAO,GAAG,CAAC,EACX,OAAO,EACP,UAAU,EACV,YAAY,GAAG,IAAI,EACnB,eAAe,GAAG,IAAI,EACtB,aAAa,EACb,gBAAgB,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"TitleBox.js","sourceRoot":"","sources":["../../src/lib/components/TitleBox.tsx"],"names":[],"mappings":";;;AAAA,4BAA4B;AAC5B,uCAAuC;AACvC,4CAA2C;AAC3C,4CAAqC;AAwBrC,4BAA4B;AAC5B,SAAwB,QAAQ,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,OAAO,GAAG,CAAC,EACX,OAAO,EACP,UAAU,EACV,YAAY,GAAG,IAAI,EACnB,eAAe,GAAG,IAAI,EACtB,aAAa,EACb,gBAAgB,GAAG,MAAM,GACnB;IACN,OAAO,CACL,wBAAC,eAAI,IAAC,SAAS,QAAC,EAAE,EAAE,OAAO,aACzB,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,YAC5B,uBAAC,qBAAU,IAAC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,YAC/D,KAAK,GACK,GACR,EACN,QAAQ,IAAI,CACX,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,UAAU,YAC/B,uBAAC,qBAAU,IAAC,OAAO,EAAE,eAAe,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YACrE,QAAQ,GACE,GACR,CACR,IACI,CACR,CAAC;AACJ,CAAC;AA3BD,2BA2BC"}
|
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,
|
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,WA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kB,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.9",
|
|
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"}
|