@pagopa/selfcare-common-frontend 1.11.9 → 1.11.12
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
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.11.12](https://github.com/pagopa/selfcare-common-frontend/compare/v1.11.11...v1.11.12)
|
|
8
|
+
|
|
9
|
+
- Added the two new props after release in mui [`#94`](https://github.com/pagopa/selfcare-common-frontend/pull/94)
|
|
10
|
+
|
|
11
|
+
#### [v1.11.11](https://github.com/pagopa/selfcare-common-frontend/compare/v1.11.10...v1.11.11)
|
|
12
|
+
|
|
13
|
+
> 4 July 2022
|
|
14
|
+
|
|
15
|
+
- SELC-1206-modified Width with maxWidth in order to remove the fixed width in breadcrumb first child [`#93`](https://github.com/pagopa/selfcare-common-frontend/pull/93)
|
|
16
|
+
- SELC-1206-modified Width with maxWidth in order to remove the fixed width in breadcrumb first child (#93) [`#1206`](https://pagopa.atlassian.net/browse/1206)
|
|
17
|
+
|
|
18
|
+
#### [v1.11.10](https://github.com/pagopa/selfcare-common-frontend/compare/v1.11.9...v1.11.10)
|
|
19
|
+
|
|
20
|
+
> 1 July 2022
|
|
21
|
+
|
|
22
|
+
- added also for first part of breadcrumb [`#92`](https://github.com/pagopa/selfcare-common-frontend/pull/92)
|
|
23
|
+
|
|
7
24
|
#### [v1.11.9](https://github.com/pagopa/selfcare-common-frontend/compare/v1.11.8...v1.11.9)
|
|
8
25
|
|
|
26
|
+
> 1 July 2022
|
|
27
|
+
|
|
9
28
|
- Handling ellipsis in NavigationBar [`#91`](https://github.com/pagopa/selfcare-common-frontend/pull/91)
|
|
10
29
|
|
|
11
30
|
#### [v1.11.8](https://github.com/pagopa/selfcare-common-frontend/compare/v1.11.7...v1.11.8)
|
package/build.info
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
tags/v1.11.
|
|
1
|
+
20220704.2 - selfcare-common-frontend.deploy(37661)
|
|
2
|
+
tags/v1.11.12^0 3b0fcd77cf96b9efa2b6a84ada7d571f56058a25
|
|
@@ -31,7 +31,9 @@ declare type HeaderProps = {
|
|
|
31
31
|
enableDropdown?: boolean;
|
|
32
32
|
/** If true it concatenates selfcareProduct with productsList */
|
|
33
33
|
addSelfcareProduct?: boolean;
|
|
34
|
+
maxCharactersNumberMultiLineButton?: number;
|
|
35
|
+
maxCharactersNumberMultiLineItem?: number;
|
|
34
36
|
};
|
|
35
37
|
/** SelfCare Header component */
|
|
36
|
-
declare const Header: ({ withSecondHeader, productsList, selectedPartyId, selectedProductId, partyList, loggedUser, assistanceEmail, enableLogin, userActions, enableDropdown, addSelfcareProduct, onExit, onSelectedProduct, onSelectedParty, }: HeaderProps) => JSX.Element;
|
|
38
|
+
declare const Header: ({ withSecondHeader, productsList, selectedPartyId, selectedProductId, partyList, loggedUser, assistanceEmail, enableLogin, userActions, enableDropdown, addSelfcareProduct, onExit, onSelectedProduct, onSelectedParty, maxCharactersNumberMultiLineButton, maxCharactersNumberMultiLineItem, }: HeaderProps) => JSX.Element;
|
|
37
39
|
export default Header;
|
|
@@ -19,6 +19,6 @@ const rootLink = {
|
|
|
19
19
|
title: 'Sito di PagoPA S.p.A.',
|
|
20
20
|
};
|
|
21
21
|
/** SelfCare Header component */
|
|
22
|
-
const Header = ({ withSecondHeader, productsList = [], selectedPartyId, selectedProductId = selfcareProduct.id, partyList = [], loggedUser, assistanceEmail, enableLogin = true, userActions = [], enableDropdown = false, addSelfcareProduct = true, onExit = (exitAction) => exitAction(), onSelectedProduct, onSelectedParty, }) => ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(HeaderAccount_1.HeaderAccount, { rootLink: rootLink, loggedUser: loggedUser, onAssistanceClick: () => onExit(() => window.location.assign((0, assistanceService_1.buildAssistanceURI)(assistanceEmail))), onLogin: () => onExit(() => window.location.assign(env_1.CONFIG.URL_FE.LOGIN)), onLogout: () => onExit(() => window.location.assign(env_1.CONFIG.URL_FE.LOGOUT)), enableLogin: enableLogin, userActions: userActions, enableDropdown: enableDropdown }), withSecondHeader === true ? ((0, jsx_runtime_1.jsx)(HeaderProduct_1.HeaderProduct, { productId: selectedProductId, productsList: addSelfcareProduct ? [selfcareProduct].concat(productsList) : productsList, partyId: selectedPartyId, partyList: partyList, onSelectedProduct: onSelectedProduct, onSelectedParty: onSelectedParty })) : ('')] }));
|
|
22
|
+
const Header = ({ withSecondHeader, productsList = [], selectedPartyId, selectedProductId = selfcareProduct.id, partyList = [], loggedUser, assistanceEmail, enableLogin = true, userActions = [], enableDropdown = false, addSelfcareProduct = true, onExit = (exitAction) => exitAction(), onSelectedProduct, onSelectedParty, maxCharactersNumberMultiLineButton, maxCharactersNumberMultiLineItem, }) => ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(HeaderAccount_1.HeaderAccount, { rootLink: rootLink, loggedUser: loggedUser, onAssistanceClick: () => onExit(() => window.location.assign((0, assistanceService_1.buildAssistanceURI)(assistanceEmail))), onLogin: () => onExit(() => window.location.assign(env_1.CONFIG.URL_FE.LOGIN)), onLogout: () => onExit(() => window.location.assign(env_1.CONFIG.URL_FE.LOGOUT)), enableLogin: enableLogin, userActions: userActions, enableDropdown: enableDropdown }), withSecondHeader === true ? ((0, jsx_runtime_1.jsx)(HeaderProduct_1.HeaderProduct, { productId: selectedProductId, productsList: addSelfcareProduct ? [selfcareProduct].concat(productsList) : productsList, partyId: selectedPartyId, partyList: partyList, onSelectedProduct: onSelectedProduct, onSelectedParty: onSelectedParty, maxCharactersNumberMultiLineButton: maxCharactersNumberMultiLineButton, maxCharactersNumberMultiLineItem: maxCharactersNumberMultiLineItem })) : ('')] }));
|
|
23
23
|
exports.default = Header;
|
|
24
24
|
//# sourceMappingURL=Header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/lib/components/Header/Header.tsx"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,kGAA+F;AAC/F,kGAA+F;AAS/F,0CAA0C;AAC1C,wEAAsE;
|
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/lib/components/Header/Header.tsx"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,kGAA+F;AAC/F,kGAA+F;AAS/F,0CAA0C;AAC1C,wEAAsE;AAsCtE,MAAM,eAAe,GAAkB;IACrC,EAAE,EAAE,eAAe;IACnB,KAAK,EAAE,gBAAgB;IACvB,UAAU,EAAE,YAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU;IACzC,QAAQ,EAAE,UAAU;CACrB,CAAC;AACF,MAAM,QAAQ,GAAiB;IAC7B,KAAK,EAAE,eAAe;IACtB,IAAI,EAAE,YAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ;IACjC,SAAS,EAAE,oCAAoC;IAC/C,KAAK,EAAE,uBAAuB;CAC/B,CAAC;AAEF,gCAAgC;AAChC,MAAM,MAAM,GAAG,CAAC,EACd,gBAAgB,EAChB,YAAY,GAAG,EAAE,EACjB,eAAe,EACf,iBAAiB,GAAG,eAAe,CAAC,EAAE,EACtC,SAAS,GAAG,EAAE,EACd,UAAU,EACV,eAAe,EACf,WAAW,GAAG,IAAI,EAClB,WAAW,GAAG,EAAE,EAChB,cAAc,GAAG,KAAK,EACtB,kBAAkB,GAAG,IAAI,EACzB,MAAM,GAAG,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,EACrC,iBAAiB,EACjB,eAAe,EACf,kCAAkC,EAClC,gCAAgC,GACpB,EAAE,EAAE,CAAC,CACjB,wBAAC,gBAAQ,eACP,uBAAC,6BAAa,IACZ,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,EACtB,iBAAiB,EAAE,GAAG,EAAE,CACtB,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAA,sCAAkB,EAAC,eAAe,CAAC,CAAC,CAAC,EAE3E,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EACxE,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAC1E,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,cAAc,GAC9B,EACD,gBAAgB,KAAK,IAAI,CAAC,CAAC,CAAC,CAC3B,uBAAC,6BAAa,IACZ,SAAS,EAAE,iBAAiB,EAC5B,YAAY,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,EACxF,OAAO,EAAE,eAAe,EACxB,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,eAAe,EAChC,kCAAkC,EAAE,kCAAkC,EACtE,gCAAgC,EAAE,gCAAgC,GAClE,CACH,CAAC,CAAC,CAAC,CACF,EAAE,CACH,IACQ,CACZ,CAAC;AAEF,kBAAe,MAAM,CAAC"}
|
|
@@ -10,12 +10,12 @@ function NavigationBar({ paths, goBack, showBackComponent }) {
|
|
|
10
10
|
const onExit = (0, useUnloadEventInterceptor_1.useUnloadEventOnExit)();
|
|
11
11
|
const truncatedText = {
|
|
12
12
|
display: 'inline-block',
|
|
13
|
-
|
|
13
|
+
maxWidth: '50ch',
|
|
14
14
|
whiteSpace: 'nowrap',
|
|
15
15
|
overflow: 'hidden',
|
|
16
16
|
textOverflow: 'ellipsis',
|
|
17
17
|
};
|
|
18
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", children: [showBackComponent && ((0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, jsx_runtime_1.jsx)(BackComponent_1.default, { goBack: goBack }) })), (0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: 'center', children: (0, jsx_runtime_1.jsx)(material_1.Breadcrumbs, { "aria-label": "breadcrumb", children: paths.map((p) => p.onClick ? ((0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: "center", justifyContent: "center", ml: 2, children: (0, jsx_runtime_1.jsx)(mui_italia_1.ButtonNaked, { component: "button", onClick: () => onExit(p.onClick), startIcon: p.icon && (0, jsx_runtime_1.jsx)(material_1.Icon, { component: p.icon }), sx: { color: 'colorTextPrimary' }, weight: "default", children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", children: p.description }) }) }, p.description)) : ((0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex",
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", children: [showBackComponent && ((0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, jsx_runtime_1.jsx)(BackComponent_1.default, { goBack: goBack }) })), (0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: 'center', children: (0, jsx_runtime_1.jsx)(material_1.Breadcrumbs, { "aria-label": "breadcrumb", children: paths.map((p) => p.onClick ? ((0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: "center", justifyContent: "center", ml: 2, children: (0, jsx_runtime_1.jsx)(mui_italia_1.ButtonNaked, { component: "button", onClick: () => onExit(p.onClick), startIcon: p.icon && (0, jsx_runtime_1.jsx)(material_1.Icon, { component: p.icon }), sx: { color: 'colorTextPrimary' }, weight: "default", children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", sx: truncatedText, children: p.description }) }) }, p.description)) : ((0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", children: [p.icon && ((0, jsx_runtime_1.jsx)(material_1.Box, { mr: 1, display: "flex", alignItems: "center", children: (0, jsx_runtime_1.jsx)(material_1.Icon, { component: p.icon }) })), (0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: "center", children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", sx: { ...truncatedText, color: 'text.secondary', fontSize: 'fontSize' }, children: p.description }, p.description) })] }, p.description))) }) })] }));
|
|
19
19
|
}
|
|
20
20
|
exports.default = NavigationBar;
|
|
21
21
|
//# sourceMappingURL=NavigationBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationBar.js","sourceRoot":"","sources":["../../src/lib/components/NavigationBar.tsx"],"names":[],"mappings":";;;;AACA,4CAAmE;AACnE,mDAAiD;AACjD,kFAA0E;AAC1E,4EAA4C;AAiB5C,SAAwB,aAAa,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAS;IAC/E,MAAM,MAAM,GAAG,IAAA,gDAAoB,GAAE,CAAC;IAEtC,MAAM,aAAa,GAAG;QACpB,OAAO,EAAE,cAAc;QACvB,
|
|
1
|
+
{"version":3,"file":"NavigationBar.js","sourceRoot":"","sources":["../../src/lib/components/NavigationBar.tsx"],"names":[],"mappings":";;;;AACA,4CAAmE;AACnE,mDAAiD;AACjD,kFAA0E;AAC1E,4EAA4C;AAiB5C,SAAwB,aAAa,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAS;IAC/E,MAAM,MAAM,GAAG,IAAA,gDAAoB,GAAE,CAAC;IAEtC,MAAM,aAAa,GAAG;QACpB,OAAO,EAAE,cAAc;QACvB,QAAQ,EAAE,MAAM;QAChB,UAAU,EAAE,QAAQ;QACpB,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,UAAU;KACzB,CAAC;IAEF,OAAO,CACL,wBAAC,cAAG,IAAC,OAAO,EAAC,MAAM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AE,GAAG,aAAa,EAAE,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,UAAU,EAAE,YAEtE,CAAC,CAAC,WAAW,IAJT,CAAC,CAAC,WAAW,CAKP,GACT,KAdiB,CAAC,CAAC,WAAW,CAehC,CACP,CACF,GACW,GACV,IACF,CACP,CAAC;AACJ,CAAC;AAhED,gCAgEC"}
|
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.11.
|
|
4
|
+
"version": "1.11.12",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/pagopa/selfcare-common-frontend",
|
|
7
7
|
"author": "https://www.pagopa.gov.it",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@mui/lab": "^5.0.0-alpha.80",
|
|
16
16
|
"@mui/material": "^5.8.2",
|
|
17
17
|
"@mui/system": "^5.8.1",
|
|
18
|
-
"@pagopa/mui-italia": "^0.6.
|
|
18
|
+
"@pagopa/mui-italia": "^0.6.31",
|
|
19
19
|
"@pagopa/ts-commons": "^10.2.1",
|
|
20
20
|
"@reduxjs/toolkit": "^1.6.2",
|
|
21
21
|
"@types/lodash": "^4.14.172",
|