@topconsultnpm/sdkui-react-beta 6.13.90 → 6.13.92
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.
|
@@ -6,6 +6,9 @@ declare const SettingsAppearance: ({ landingPagesOptions, permissions }: {
|
|
|
6
6
|
permissions?: {
|
|
7
7
|
canArchive: boolean;
|
|
8
8
|
canSearch: boolean;
|
|
9
|
+
wgGroupLicense: boolean;
|
|
10
|
+
dossiersLicense: boolean;
|
|
11
|
+
workFlowLicense: boolean;
|
|
9
12
|
};
|
|
10
13
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
14
|
export default SettingsAppearance;
|
|
@@ -18,7 +18,7 @@ const fontSizes = [
|
|
|
18
18
|
{ value: "19px", display: "19px" },
|
|
19
19
|
{ value: "20px", display: "20px" }
|
|
20
20
|
];
|
|
21
|
-
const SettingsAppearance = ({ landingPagesOptions, permissions = { canArchive: true, canSearch: true } }) => {
|
|
21
|
+
const SettingsAppearance = ({ landingPagesOptions, permissions = { canArchive: true, canSearch: true, dossiersLicense: true, wgGroupLicense: true, workFlowLicense: true } }) => {
|
|
22
22
|
const [, setForceUpdate] = useState(0); // Dummy state to force re-renders
|
|
23
23
|
const triggerUIUpdate = () => setForceUpdate((prev) => prev + 1); // Increment dummy state to re-render
|
|
24
24
|
const filteredLandingPageOptopns = useMemo(() => {
|
|
@@ -29,6 +29,15 @@ const SettingsAppearance = ({ landingPagesOptions, permissions = { canArchive: t
|
|
|
29
29
|
if (!permissions?.canSearch) {
|
|
30
30
|
options = options.filter(option => option.value !== LandingPages.SEARCH);
|
|
31
31
|
}
|
|
32
|
+
if (!permissions?.wgGroupLicense) {
|
|
33
|
+
options = options.filter(option => option.value !== LandingPages.WORKING_GROUPS);
|
|
34
|
+
}
|
|
35
|
+
if (!permissions?.dossiersLicense) {
|
|
36
|
+
options = options.filter(option => option.value !== LandingPages.DOSSIERS);
|
|
37
|
+
}
|
|
38
|
+
if (!permissions?.workFlowLicense) {
|
|
39
|
+
options = options.filter(option => option.value !== LandingPages.APPR_WORKFLOW);
|
|
40
|
+
}
|
|
32
41
|
return options;
|
|
33
42
|
}, [permissions?.canArchive, permissions?.canSearch]);
|
|
34
43
|
return (_jsxs(TMLayoutContainer, { children: [landingPagesOptions && _jsx("p", { style: { fontSize: '1.h1rem', fontWeight: 'bold', marginBottom: '5px' }, children: 'Pagina iniziale' }), landingPagesOptions && _jsx(TMDropDown, { dataSource: filteredLandingPageOptopns, value: SDKUI_Globals.userSettings.landingPage, width: '230px', onValueChanged: (e) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topconsultnpm/sdkui-react-beta",
|
|
3
|
-
"version": "6.13.
|
|
3
|
+
"version": "6.13.92",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@topconsultnpm/sdk-ts-beta": "6.13.
|
|
45
|
+
"@topconsultnpm/sdk-ts-beta": "6.13.9",
|
|
46
46
|
"buffer": "^6.0.3",
|
|
47
47
|
"devextreme": "24.2.6",
|
|
48
48
|
"devextreme-react": "24.2.6",
|