@acuteinfo/common-screens 1.0.30 → 1.0.32
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/dist/index.js +26 -33
- package/dist/index.js.map +1 -1
- package/dist/pages/sidebar/sideBar.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -326,7 +326,7 @@ const UsernamePasswordField = ({ classes, loginState, verifyUsernamePassword, fo
|
|
|
326
326
|
height: loginState.loading ? "40px" : "100%",
|
|
327
327
|
width: loginState.loading ? "0px" : "100%",
|
|
328
328
|
minWidth: loginState.loading ? "40px" : "80px",
|
|
329
|
-
}, fullWidth: true, disabled: loginState.loading, onClick: () => verifyUsernamePassword((input.userName || "").toLowerCase(), input.password), ref: inputButtonRef, children: loginState.loading ? (jsx(CircularProgress, { size: 25, thickness: 4.6 })) : (t("Next")) }) }) })] })] }) }) }));
|
|
329
|
+
}, fullWidth: true, disabled: loginState.loading, onClick: () => verifyUsernamePassword((input.userName || "").toLowerCase(), input.password), ref: inputButtonRef, endicon: loginState.loading ? undefined : "East", rotateIcon: "scale(1.4) rotateX(360deg)", children: loginState.loading ? (jsx(CircularProgress, { size: 25, thickness: 4.6 })) : (t("Next")) }) }) })] })] }) }) }));
|
|
330
330
|
};
|
|
331
331
|
|
|
332
332
|
const OTPModel = ({ classes, OTPResendRequest, open, handleClose, loginState, VerifyOTP, OTPError, setOTPError, previousStep, setNewRequestID = (id) => { }, otpresendCount = 0, resendFlag, }) => {
|
|
@@ -469,12 +469,14 @@ const OTPModel = ({ classes, OTPResendRequest, open, handleClose, loginState, Ve
|
|
|
469
469
|
"&:hover": {
|
|
470
470
|
background: "var(--theme-color2) !important",
|
|
471
471
|
},
|
|
472
|
-
},
|
|
472
|
+
},
|
|
473
|
+
// customstyle = {{color : "var(--theme-color3) !important"}}
|
|
474
|
+
starticon: "West", rotateIcon: "scale(1.4) rotateX(360deg)", children: t("otp.Back") }), jsx(GradientButton, { style: {
|
|
473
475
|
borderRadius: loginState.loading ? "50%" : "10px",
|
|
474
476
|
height: loginState.loading ? "40px" : "100%",
|
|
475
477
|
width: loginState.loading ? "0px" : "100%",
|
|
476
478
|
minWidth: loginState.loading ? "40px" : "80px",
|
|
477
|
-
}, fullWidth: true, disabled: loginState.loading, onClick: ClickEventHandler, ref: inputButtonRef, className: classes.otpButtons, children: loginState.loading ? (jsx(CircularProgress, { size: 25, thickness: 4.6 })) : (t("otp.VerifyOTP")) })] })] }) }) }) }));
|
|
479
|
+
}, fullWidth: true, disabled: loginState.loading, onClick: ClickEventHandler, ref: inputButtonRef, className: classes.otpButtons, endicon: loginState.loading ? undefined : "TaskAlt", rotateIcon: "scale(1.4)", children: loginState.loading ? (jsx(CircularProgress, { size: 25, thickness: 4.6 })) : (t("otp.VerifyOTP")) })] })] }) }) }) }));
|
|
478
480
|
};
|
|
479
481
|
const OTPModelForm = ({ classes, OTPResendRequest, handleClose, loginState, VerifyOTP, OTPError, setOTPError, resendFlag, setNewRequestID = (id) => { }, otpresendCount = 0, }) => {
|
|
480
482
|
const [OTP, setOTP] = useState("");
|
|
@@ -568,11 +570,9 @@ const OTPModelForm = ({ classes, OTPResendRequest, handleClose, loginState, Veri
|
|
|
568
570
|
gap: "10px",
|
|
569
571
|
margin: "42px 0 0 42px",
|
|
570
572
|
width: "60%",
|
|
571
|
-
}, children: [jsx(GradientButton, { fullWidth: true, disabled: loginState.otploading, onClick: handleCloseEvent, className: classes.otpButtons,
|
|
572
|
-
// starticon={"West"}
|
|
573
|
+
}, children: [jsx(GradientButton, { fullWidth: true, disabled: loginState.otploading, onClick: handleCloseEvent, className: classes.otpButtons, starticon: "West",
|
|
573
574
|
// color={"var(--theme-color2) !important"}
|
|
574
|
-
|
|
575
|
-
style: {
|
|
575
|
+
rotateIcon: "scale(1.4) rotateX(360deg)", style: {
|
|
576
576
|
border: "var(--theme-color3)1px solid",
|
|
577
577
|
color: "var(--theme-color2)",
|
|
578
578
|
// background: "var(--theme-color2)",
|
|
@@ -689,11 +689,7 @@ const VerifyFinger = ({ classes, loginState, verifyFinger, previousStep, }) => {
|
|
|
689
689
|
gap: "10px",
|
|
690
690
|
}, children: [jsx(GradientButton, { fullWidth: true, disabled: loginState.loading, onClick: () => {
|
|
691
691
|
previousStep(false, "");
|
|
692
|
-
}, className: classes.otpButtons,
|
|
693
|
-
// starticon={"West"}
|
|
694
|
-
// rotateIcon="scale(1.4) rotateX(360deg)"
|
|
695
|
-
// color={"var(--theme-color3) !important"}
|
|
696
|
-
style: {
|
|
692
|
+
}, className: classes.otpButtons, starticon: "West", rotateIcon: "scale(1.4) rotateX(360deg)", textColor: "var(--theme-color3) !important", style: {
|
|
697
693
|
border: "var(--theme-color3)1px solid",
|
|
698
694
|
color: "var(--theme-color3)",
|
|
699
695
|
background: "var(--theme-color2)",
|
|
@@ -1577,9 +1573,9 @@ const ForgotPasswordFields = ({ classes, loginState, onSubmit, navigate, loginPa
|
|
|
1577
1573
|
// fullWidth
|
|
1578
1574
|
disabled: loginState.loading, onClick: () => {
|
|
1579
1575
|
navigate(loginPageEndpoint);
|
|
1580
|
-
}, children: t("backtologin") }), jsx(GradientButton, { style: { borderRadius: "10px" }, disabled: loginState.loading, onClick: () => {
|
|
1576
|
+
}, starticon: "West", rotateIcon: "scale(1.4) rotateX(360deg)", children: t("backtologin") }), jsx(GradientButton, { style: { borderRadius: "10px" }, disabled: loginState.loading, onClick: () => {
|
|
1581
1577
|
onSubmit(input, loginState.workingState);
|
|
1582
|
-
}, ref: inputButtonRef, children: loginState.loading ? (jsx(CircularProgress, { size: 25, thickness: 4.6 })) : (t("Next")) })] }) }) })] }) }));
|
|
1578
|
+
}, ref: inputButtonRef, endicon: loginState.loading ? undefined : "East", rotateIcon: "scale(1.4) rotateX(360deg)", children: loginState.loading ? (jsx(CircularProgress, { size: 25, thickness: 4.6 })) : (t("Next")) })] }) }) })] }) }));
|
|
1583
1579
|
};
|
|
1584
1580
|
|
|
1585
1581
|
const ValidatePassword = (pwd) => {
|
|
@@ -2549,32 +2545,29 @@ const checkDateAndDisplay = (dateStr) => {
|
|
|
2549
2545
|
};
|
|
2550
2546
|
|
|
2551
2547
|
const drawerWidth = 227;
|
|
2552
|
-
const drawerWidthClosed = 65;
|
|
2553
2548
|
const useStyles = makeStyles((theme) => {
|
|
2554
2549
|
return {
|
|
2555
2550
|
drawerPaper: {
|
|
2556
2551
|
position: "relative",
|
|
2557
2552
|
whiteSpace: "nowrap",
|
|
2558
2553
|
width: drawerWidth,
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
transition: ".5s ease",
|
|
2554
|
+
transition: theme.transitions.create("width", {
|
|
2555
|
+
easing: theme.transitions.easing.sharp,
|
|
2556
|
+
duration: theme.transitions.duration.enteringScreen,
|
|
2557
|
+
}),
|
|
2564
2558
|
border: "none",
|
|
2565
2559
|
overflow: "hidden",
|
|
2566
2560
|
zIndex: 120,
|
|
2567
2561
|
},
|
|
2568
2562
|
drawerPaperClose: {
|
|
2569
2563
|
overflowX: "hidden",
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
width: drawerWidthClosed,
|
|
2564
|
+
transition: theme.transitions.create("width", {
|
|
2565
|
+
easing: theme.transitions.easing.sharp,
|
|
2566
|
+
duration: theme.transitions.duration.leavingScreen,
|
|
2567
|
+
}),
|
|
2568
|
+
width: theme.spacing(8),
|
|
2576
2569
|
[theme.breakpoints.up("sm")]: {
|
|
2577
|
-
width:
|
|
2570
|
+
width: theme.spacing(8),
|
|
2578
2571
|
},
|
|
2579
2572
|
},
|
|
2580
2573
|
toolbarIcon: {
|
|
@@ -2838,7 +2831,7 @@ const useStylesSideBar = makeStyles((theme) => ({
|
|
|
2838
2831
|
}));
|
|
2839
2832
|
|
|
2840
2833
|
let localdrawerOpen = true;
|
|
2841
|
-
const SideBarNav = ({ metaData, handleDrawerOpen, drawerOpen, setView, slimSize, setNewFilterData, setNewFilterView, isFromSeparetView = false, rootUrl, dashboardUrl, navigate }) => {
|
|
2834
|
+
const SideBarNav = ({ metaData, handleDrawerOpen, drawerOpen, setView, slimSize, setNewFilterData, setNewFilterView, isFromSeparetView = false, rootUrl, dashboardUrl, navigate, }) => {
|
|
2842
2835
|
const classes = useStylesSideBar();
|
|
2843
2836
|
let result = null;
|
|
2844
2837
|
localdrawerOpen = drawerOpen;
|
|
@@ -2884,7 +2877,7 @@ const SeperateListView = ({ item, setView, level, classes, slimSize, setNewFilte
|
|
|
2884
2877
|
setView(item.viewName);
|
|
2885
2878
|
}, children: [jsx(Tooltip, { title: item.label, arrow: true, placement: localdrawerOpen ? "bottom-start" : "right", children: jsx("span", { children: icon }) }), (localdrawerOpen && item.label.length > 27) || !Boolean(icon) ? (jsx(Tooltip, { title: item.label, arrow: true, placement: localdrawerOpen ? "bottom-start" : "right", children: jsx(ListItemText, { primary: item.label, className: classes.link, secondary: item.secondaryLabel ?? null }) })) : localdrawerOpen ? (jsx(ListItemText, { primary: item.label, className: classes.link, secondary: item.secondaryLabel ?? null })) : null] }));
|
|
2886
2879
|
};
|
|
2887
|
-
const SingleListItem = ({ item, classes, level, slimSize, drawerOpen, rootUrl, dashboardUrl, navigate }) => {
|
|
2880
|
+
const SingleListItem = ({ item, classes, level, slimSize, drawerOpen, rootUrl, dashboardUrl, navigate, }) => {
|
|
2888
2881
|
const isActiveMenu = isActiveMenuFromhref(window.location?.pathname ?? "", item?.href ?? "", item?.navigationProps, rootUrl, dashboardUrl);
|
|
2889
2882
|
if (isActiveMenu) {
|
|
2890
2883
|
// GeneralAPI.setDocumentName(item.label);
|
|
@@ -2927,7 +2920,7 @@ const SingleListItem = ({ item, classes, level, slimSize, drawerOpen, rootUrl, d
|
|
|
2927
2920
|
}
|
|
2928
2921
|
}, children: [jsx(Tooltip, { title: item.label, arrow: true, placement: localdrawerOpen ? "bottom-start" : "right", children: jsx("span", { children: icon }) }), (localdrawerOpen && item.label.length > 27) || !Boolean(icon) ? (jsx(Tooltip, { title: item.label, arrow: true, placement: localdrawerOpen ? "bottom-start" : "right", children: jsx(ListItemText, { primary: item.label, className: classes.link, secondary: item.secondaryLabel ?? null }) })) : localdrawerOpen ? (jsx(ListItemText, { primary: item.label, className: classes.link, secondary: item.secondaryLabel ?? null })) : null] }));
|
|
2929
2922
|
};
|
|
2930
|
-
const NestedListItem = ({ item, classes, level, handleDrawerOpen, drawerOpen, slimSize, rootUrl, navigate }) => {
|
|
2923
|
+
const NestedListItem = ({ item, classes, level, handleDrawerOpen, drawerOpen, slimSize, rootUrl, navigate, }) => {
|
|
2931
2924
|
const [open, setOpen] = useState(false);
|
|
2932
2925
|
const handleClick = () => {
|
|
2933
2926
|
setOpen(!open);
|
|
@@ -3015,7 +3008,7 @@ const filterMetaDataByValue = (searchString, navItems, tagsToSearch) => {
|
|
|
3015
3008
|
return newNavItems;
|
|
3016
3009
|
};
|
|
3017
3010
|
|
|
3018
|
-
const SearchViewNavigation = ({ metaData, handleDrawerOpen, drawerOpen, setView, label, icon, placeholder = "Search Reports...", rootUrl, dashboardUrl, navigate }) => {
|
|
3011
|
+
const SearchViewNavigation = ({ metaData, handleDrawerOpen, drawerOpen, setView, label, icon, placeholder = "Search Reports...", rootUrl, dashboardUrl, navigate, }) => {
|
|
3019
3012
|
const [search, setSearch] = useState("");
|
|
3020
3013
|
const filteredMetaData = useMemo(() => {
|
|
3021
3014
|
return filterMetaDataByValue(search, metaData.navItems, [
|
|
@@ -3158,7 +3151,7 @@ const filterMetaData = (navItems, role, branches, company, access, products) =>
|
|
|
3158
3151
|
};
|
|
3159
3152
|
|
|
3160
3153
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
3161
|
-
const SideBar = ({ authState, handleDrawerOpen, open, rootUrl, dashboardUrl = "dashboard", navigate }) => {
|
|
3154
|
+
const SideBar = ({ authState, handleDrawerOpen, open, rootUrl, dashboardUrl = "dashboard", navigate, }) => {
|
|
3162
3155
|
const [view, setView] = useState("/");
|
|
3163
3156
|
const [NewFilterView, setNewFilterView] = useState({});
|
|
3164
3157
|
const [NewFilterData, setNewFilterData] = useState([]);
|
|
@@ -3195,7 +3188,7 @@ const SideBar = ({ authState, handleDrawerOpen, open, rootUrl, dashboardUrl = "d
|
|
|
3195
3188
|
const SidebarWrapper = (props) => {
|
|
3196
3189
|
const classes = useStyles();
|
|
3197
3190
|
return (jsxs(Drawer, { variant: "permanent", classes: {
|
|
3198
|
-
paper: clsx(classes.drawerPaper, !open && classes.drawerPaperClose),
|
|
3191
|
+
paper: clsx(classes.drawerPaper, !props.open && classes.drawerPaperClose),
|
|
3199
3192
|
}, open: props.open, children: [jsx("div", { className: classes.toolbarIcon }), jsx(SideBar, { ...props })] }));
|
|
3200
3193
|
};
|
|
3201
3194
|
|