@acuteinfo/common-screens 1.0.56 → 1.0.58
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--theme-color1: #07288e;
|
|
3
|
-
--white: #ffffff;
|
|
4
|
-
--theme-color3: #4263c7;
|
|
5
|
-
--theme-color4: #eceff9;
|
|
6
|
-
--primary-bg: linear-gradient(71.66deg, #4285f4 -2.97%, #885df5 111.3%);
|
|
7
|
-
--theme-color6: rgba(148, 149, 151, 1);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/*# sourceMappingURL=index~
|
|
1
|
+
:root {
|
|
2
|
+
--theme-color1: #07288e;
|
|
3
|
+
--white: #ffffff;
|
|
4
|
+
--theme-color3: #4263c7;
|
|
5
|
+
--theme-color4: #eceff9;
|
|
6
|
+
--primary-bg: linear-gradient(71.66deg, #4285f4 -2.97%, #885df5 111.3%);
|
|
7
|
+
--theme-color6: rgba(148, 149, 151, 1);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/*# sourceMappingURL=index~NFLKLAwc.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/assets/css/index.css"],"names":[],"mappings":"AAAA;EACE,uBAAuB;EACvB,gBAAgB;EAChB,uBAAuB;EACvB,uBAAuB;EACvB,uEAAuE;EACvE,sCAAsC;AACxC","file":"index~NFLKLAwc.css","sourcesContent":[":root {\r\n --theme-color1: #07288e;\r\n --white: #ffffff;\r\n --theme-color3: #4263c7;\r\n --theme-color4: #eceff9;\r\n --primary-bg: linear-gradient(71.66deg, #4285f4 -2.97%, #885df5 111.3%);\r\n --theme-color6: rgba(148, 149, 151, 1);\r\n}\r\n"]}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'regenerator-runtime/runtime';
|
|
2
|
-
import './assets/index~
|
|
2
|
+
import './assets/index~NFLKLAwc.css';
|
|
3
3
|
import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
4
4
|
import { TextField, GradientButton, utilFunction, ClearCacheProvider, queryClient, Alert, GridWrapper, SearchBar } from '@acuteinfo/common-base';
|
|
5
5
|
import { useState, useRef, useEffect, Fragment, useMemo, useReducer, useCallback } from 'react';
|
|
@@ -29,7 +29,7 @@ import ScrollBar from 'react-perfect-scrollbar';
|
|
|
29
29
|
import { ExpandLess, ExpandMore } from '@mui/icons-material';
|
|
30
30
|
import ArrowBackIosNewIcon from '@mui/icons-material/ArrowBackIosNew';
|
|
31
31
|
import { library } from '@fortawesome/fontawesome-svg-core';
|
|
32
|
-
import { faHandsHelping, faUsers, faBars, faBalanceScale, faHandHoldingHeart, faTasks, faCog, faHome, faTh, faUsersCog, faCircle, faUserCircle, faHashtag, faThumbtack, faSquare, faLink, faQuestion, faPlus, faTable, faLocationArrow, faHeadset, faGears, faArrowDown, faArrowUp, faSpinner, faCircleExclamation, faRotateRight, faUserLock, faUserClock, faGripHorizontal, faFileLines, faGear, faHeadphones, faUsersGear, faMessage, faUnlock, faUserPlus, faUserCheck, faKey, faIdCard, faIdBadge, faCheck, faCheckDouble, faCircleCheck, faCircleXmark, faUserTag, faAddressCard, faChartColumn, faUserPen, faHandHolding, faHandHoldingMedical, faObjectGroup, faTowerCell, faTowerObservation, faBuilding, faMailBulk, faLandmarkFlag, faCreditCard, faHospitalSymbol, faPlugCircleBolt, faCodeBranch, faPersonCircleCheck, faBank, faServer, faNotesMedical, faA, faB, faC, faD, faE, faF, faG, faH, faI, faJ, faK, faL, faM, faN, faO, faP, faQ, faR, faS, faT, faU, faV, faW, faX, faY, faZ } from '@fortawesome/free-solid-svg-icons';
|
|
32
|
+
import { faHandsHelping, faUsers, faBars, faBalanceScale, faHandHoldingHeart, faTasks, faCog, faHome, faTh, faUsersCog, faCircle, faUserCircle, faHashtag, faThumbtack, faSquare, faLink, faQuestion, faPlus, faTable, faLocationArrow, faHeadset, faGears, faArrowDown, faArrowUp, faSpinner, faCircleExclamation, faRotateRight, faUserLock, faUserClock, faGripHorizontal, faFileLines, faGear, faHeadphones, faUsersGear, faMessage, faUnlock, faUserPlus, faUserCheck, faKey, faIdCard, faIdBadge, faCheck, faCheckDouble, faCircleCheck, faCircleXmark, faUserTag, faAddressCard, faChartColumn, faUserPen, faHandHolding, faHandHoldingMedical, faObjectGroup, faTowerCell, faTowerObservation, faBuilding, faMailBulk, faLandmarkFlag, faCreditCard, faHospitalSymbol, faPlugCircleBolt, faCodeBranch, faPersonCircleCheck, faBank, faServer, faNotesMedical, faPenToSquare, faBarsProgress, faFileExport, faA, faB, faC, faD, faE, faF, faG, faH, faI, faJ, faK, faL, faM, faN, faO, faP, faQ, faR, faS, faT, faU, faV, faW, faX, faY, faZ } from '@fortawesome/free-solid-svg-icons';
|
|
33
33
|
import 'lodash';
|
|
34
34
|
|
|
35
35
|
const useStyles$3 = makeStyles((theme) => ({
|
|
@@ -2821,7 +2821,12 @@ const SideBarNav = ({ metaData, handleDrawerOpen, drawerOpen, setView, slimSize,
|
|
|
2821
2821
|
};
|
|
2822
2822
|
const SeperateListView = ({ item, setView, level, classes, slimSize, setNewFilterData, setNewFilterView, }) => {
|
|
2823
2823
|
let labelStart = (item.label || "").toLowerCase().substring(0, 1) || "circle";
|
|
2824
|
-
const icon = item.icon ? (
|
|
2824
|
+
// const icon = item.icon ? (
|
|
2825
|
+
// <ListItemIcon className={classes.listIcon}>
|
|
2826
|
+
// <FontAwesomeIcon icon={["fas", labelStart]} />
|
|
2827
|
+
// </ListItemIcon>
|
|
2828
|
+
// ) : null;
|
|
2829
|
+
const icon = item.icon?.toLowerCase() !== "process.gif" && item.icon ? (jsx(ListItemIcon, { className: classes.listIcon, children: jsx(FontAwesomeIcon, { icon: ["fas", item.icon] }) })) : (jsx(ListItemIcon, { className: classes.listIcon, children: jsx(FontAwesomeIcon, { icon: ["fas", labelStart] }) }));
|
|
2825
2830
|
const levelClassName = level === 1
|
|
2826
2831
|
? classes.nestedMenuLevel1
|
|
2827
2832
|
: level === 2
|
|
@@ -2854,7 +2859,7 @@ const SingleListItem = ({ item, classes, level, slimSize, drawerOpen, rootUrl, d
|
|
|
2854
2859
|
document.title = titleText.split(" - ")[0] + " - " + item.label;
|
|
2855
2860
|
}
|
|
2856
2861
|
let labelStart = (item.label || "").toLowerCase().substring(0, 1) || "circle";
|
|
2857
|
-
const icon = item.icon.toLowerCase() === "process.gif" ? (jsx(ListItemIcon, { className: classes.listIcon, children: jsx(FontAwesomeIcon, { icon: ["fas", labelStart] }) })) : (jsx(ListItemIcon, { className: classes.listIcon, children: jsx(FontAwesomeIcon, { icon: ["fas", item.icon] }) }));
|
|
2862
|
+
const icon = item.icon.toLowerCase() === "process.gif" || !Boolean(item.icon) ? (jsx(ListItemIcon, { className: classes.listIcon, children: jsx(FontAwesomeIcon, { icon: ["fas", labelStart] }) })) : (jsx(ListItemIcon, { className: classes.listIcon, children: jsx(FontAwesomeIcon, { icon: ["fas", item.icon] }) }));
|
|
2858
2863
|
const levelClassName = level === 1
|
|
2859
2864
|
? classes.nestedMenuLevel1
|
|
2860
2865
|
: level === 2
|
|
@@ -2903,7 +2908,7 @@ const NestedListItem = ({ item, classes, level, handleDrawerOpen, drawerOpen, sl
|
|
|
2903
2908
|
}
|
|
2904
2909
|
});
|
|
2905
2910
|
let labelStart = (item.label || "").toLowerCase().substring(0, 1) || "circle";
|
|
2906
|
-
const icon = item.icon === "
|
|
2911
|
+
const icon = item.icon?.toLowerCase() === "process.gif" || !Boolean(item.icon) ? (jsx(ListItemIcon, { className: classes.listIcon, children: jsx(FontAwesomeIcon, { icon: ["fas", labelStart] }) })) : (jsx(ListItemIcon, { className: classes.listIcon, children: jsx(FontAwesomeIcon, { icon: ["fas", item.icon] }) }));
|
|
2907
2912
|
const levelClassName = level === 1
|
|
2908
2913
|
? classes.nestedMenuLevel1
|
|
2909
2914
|
: level === 2
|
|
@@ -3002,7 +3007,7 @@ const SearchViewNavigation = ({ metaData, handleDrawerOpen, drawerOpen, setView,
|
|
|
3002
3007
|
}, slimSize: true, isFromSeparetView: true, rootUrl: rootUrl, dashboardUrl: dashboardUrl, navigate: navigate })] }));
|
|
3003
3008
|
};
|
|
3004
3009
|
|
|
3005
|
-
library.add(faHandsHelping, faUsers, faBars, faBalanceScale, faHandHoldingHeart, faTasks, faCog, faHome, faTh, faUsersCog, faCircle, faUserCircle, faHashtag, faThumbtack, faSquare, faLink, faQuestion, faPlus, faTable, faLocationArrow, faHeadset, faGears, faArrowDown, faArrowUp, faSpinner, faCircleExclamation, faRotateRight, faUserLock, faUserClock, faGripHorizontal, faFileLines, faGear, faHeadphones, faUsersGear, faMessage, faUnlock, faUserPlus, faUserCheck, faKey, faIdCard, faIdBadge, faCheck, faCheckDouble, faCircleCheck, faCircleXmark, faUserTag, faAddressCard, faChartColumn, faUserPen, faHandHolding, faHandHoldingMedical, faObjectGroup, faTowerCell, faTowerObservation, faBuilding, faMailBulk, faLandmarkFlag, faCreditCard, faHospitalSymbol, faPlugCircleBolt, faCodeBranch, faPersonCircleCheck, faBank, faServer, faNotesMedical, faA, faB, faC, faD, faE, faF, faG, faH, faI, faJ, faK, faL, faM, faN, faO, faP, faQ, faR, faS, faT, faU, faV, faW, faX, faY, faZ);
|
|
3010
|
+
library.add(faHandsHelping, faUsers, faBars, faBalanceScale, faHandHoldingHeart, faTasks, faCog, faHome, faTh, faUsersCog, faCircle, faUserCircle, faHashtag, faThumbtack, faSquare, faLink, faQuestion, faPlus, faTable, faLocationArrow, faHeadset, faGears, faArrowDown, faArrowUp, faSpinner, faCircleExclamation, faRotateRight, faUserLock, faUserClock, faGripHorizontal, faFileLines, faGear, faHeadphones, faUsersGear, faMessage, faUnlock, faUserPlus, faUserCheck, faKey, faIdCard, faIdBadge, faCheck, faCheckDouble, faCircleCheck, faCircleXmark, faUserTag, faAddressCard, faChartColumn, faUserPen, faHandHolding, faHandHoldingMedical, faObjectGroup, faTowerCell, faTowerObservation, faBuilding, faMailBulk, faLandmarkFlag, faCreditCard, faHospitalSymbol, faPlugCircleBolt, faCodeBranch, faPersonCircleCheck, faBank, faServer, faNotesMedical, faPenToSquare, faBarsProgress, faFileExport, faA, faB, faC, faD, faE, faF, faG, faH, faI, faJ, faK, faL, faM, faN, faO, faP, faQ, faR, faS, faT, faU, faV, faW, faX, faY, faZ);
|
|
3006
3011
|
|
|
3007
3012
|
const transformMetaDataAsPerRole = (metaData, role, branches, company, access, products) => {
|
|
3008
3013
|
let navItems = filterMetaData(metaData.navItems, role, branches, company, access, products);
|