@acuteinfo/common-screens 1.0.31 → 1.0.33
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 +14 -20
- 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,7 @@ 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
|
-
// color={"var(--theme-color2) !important"}
|
|
574
|
-
// rotateIcon="scale(1.4) rotateX(360deg)"
|
|
575
|
-
style: {
|
|
573
|
+
}, children: [jsx(GradientButton, { fullWidth: true, disabled: loginState.otploading, onClick: handleCloseEvent, className: classes.otpButtons, starticon: "West", textColor: "var(--theme-color2) !important", rotateIcon: "scale(1.4) rotateX(360deg)", style: {
|
|
576
574
|
border: "var(--theme-color3)1px solid",
|
|
577
575
|
color: "var(--theme-color2)",
|
|
578
576
|
// background: "var(--theme-color2)",
|
|
@@ -689,11 +687,7 @@ const VerifyFinger = ({ classes, loginState, verifyFinger, previousStep, }) => {
|
|
|
689
687
|
gap: "10px",
|
|
690
688
|
}, children: [jsx(GradientButton, { fullWidth: true, disabled: loginState.loading, onClick: () => {
|
|
691
689
|
previousStep(false, "");
|
|
692
|
-
}, className: classes.otpButtons,
|
|
693
|
-
// starticon={"West"}
|
|
694
|
-
// rotateIcon="scale(1.4) rotateX(360deg)"
|
|
695
|
-
// color={"var(--theme-color3) !important"}
|
|
696
|
-
style: {
|
|
690
|
+
}, className: classes.otpButtons, starticon: "West", rotateIcon: "scale(1.4) rotateX(360deg)", textColor: "var(--theme-color3) !important", style: {
|
|
697
691
|
border: "var(--theme-color3)1px solid",
|
|
698
692
|
color: "var(--theme-color3)",
|
|
699
693
|
background: "var(--theme-color2)",
|
|
@@ -1577,9 +1571,9 @@ const ForgotPasswordFields = ({ classes, loginState, onSubmit, navigate, loginPa
|
|
|
1577
1571
|
// fullWidth
|
|
1578
1572
|
disabled: loginState.loading, onClick: () => {
|
|
1579
1573
|
navigate(loginPageEndpoint);
|
|
1580
|
-
}, children: t("backtologin") }), jsx(GradientButton, { style: { borderRadius: "10px" }, disabled: loginState.loading, onClick: () => {
|
|
1574
|
+
}, starticon: "West", rotateIcon: "scale(1.4) rotateX(360deg)", children: t("backtologin") }), jsx(GradientButton, { style: { borderRadius: "10px" }, disabled: loginState.loading, onClick: () => {
|
|
1581
1575
|
onSubmit(input, loginState.workingState);
|
|
1582
|
-
}, ref: inputButtonRef, children: loginState.loading ? (jsx(CircularProgress, { size: 25, thickness: 4.6 })) : (t("Next")) })] }) }) })] }) }));
|
|
1576
|
+
}, 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
1577
|
};
|
|
1584
1578
|
|
|
1585
1579
|
const ValidatePassword = (pwd) => {
|
|
@@ -2835,7 +2829,7 @@ const useStylesSideBar = makeStyles((theme) => ({
|
|
|
2835
2829
|
}));
|
|
2836
2830
|
|
|
2837
2831
|
let localdrawerOpen = true;
|
|
2838
|
-
const SideBarNav = ({ metaData, handleDrawerOpen, drawerOpen, setView, slimSize, setNewFilterData, setNewFilterView, isFromSeparetView = false, rootUrl, dashboardUrl, navigate }) => {
|
|
2832
|
+
const SideBarNav = ({ metaData, handleDrawerOpen, drawerOpen, setView, slimSize, setNewFilterData, setNewFilterView, isFromSeparetView = false, rootUrl, dashboardUrl, navigate, }) => {
|
|
2839
2833
|
const classes = useStylesSideBar();
|
|
2840
2834
|
let result = null;
|
|
2841
2835
|
localdrawerOpen = drawerOpen;
|
|
@@ -2881,7 +2875,7 @@ const SeperateListView = ({ item, setView, level, classes, slimSize, setNewFilte
|
|
|
2881
2875
|
setView(item.viewName);
|
|
2882
2876
|
}, 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] }));
|
|
2883
2877
|
};
|
|
2884
|
-
const SingleListItem = ({ item, classes, level, slimSize, drawerOpen, rootUrl, dashboardUrl, navigate }) => {
|
|
2878
|
+
const SingleListItem = ({ item, classes, level, slimSize, drawerOpen, rootUrl, dashboardUrl, navigate, }) => {
|
|
2885
2879
|
const isActiveMenu = isActiveMenuFromhref(window.location?.pathname ?? "", item?.href ?? "", item?.navigationProps, rootUrl, dashboardUrl);
|
|
2886
2880
|
if (isActiveMenu) {
|
|
2887
2881
|
// GeneralAPI.setDocumentName(item.label);
|
|
@@ -2924,7 +2918,7 @@ const SingleListItem = ({ item, classes, level, slimSize, drawerOpen, rootUrl, d
|
|
|
2924
2918
|
}
|
|
2925
2919
|
}, 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] }));
|
|
2926
2920
|
};
|
|
2927
|
-
const NestedListItem = ({ item, classes, level, handleDrawerOpen, drawerOpen, slimSize, rootUrl, navigate }) => {
|
|
2921
|
+
const NestedListItem = ({ item, classes, level, handleDrawerOpen, drawerOpen, slimSize, rootUrl, navigate, }) => {
|
|
2928
2922
|
const [open, setOpen] = useState(false);
|
|
2929
2923
|
const handleClick = () => {
|
|
2930
2924
|
setOpen(!open);
|
|
@@ -3012,7 +3006,7 @@ const filterMetaDataByValue = (searchString, navItems, tagsToSearch) => {
|
|
|
3012
3006
|
return newNavItems;
|
|
3013
3007
|
};
|
|
3014
3008
|
|
|
3015
|
-
const SearchViewNavigation = ({ metaData, handleDrawerOpen, drawerOpen, setView, label, icon, placeholder = "Search Reports...", rootUrl, dashboardUrl, navigate }) => {
|
|
3009
|
+
const SearchViewNavigation = ({ metaData, handleDrawerOpen, drawerOpen, setView, label, icon, placeholder = "Search Reports...", rootUrl, dashboardUrl, navigate, }) => {
|
|
3016
3010
|
const [search, setSearch] = useState("");
|
|
3017
3011
|
const filteredMetaData = useMemo(() => {
|
|
3018
3012
|
return filterMetaDataByValue(search, metaData.navItems, [
|
|
@@ -3155,7 +3149,7 @@ const filterMetaData = (navItems, role, branches, company, access, products) =>
|
|
|
3155
3149
|
};
|
|
3156
3150
|
|
|
3157
3151
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
3158
|
-
const SideBar = ({ authState, handleDrawerOpen, open, rootUrl, dashboardUrl = "dashboard", navigate }) => {
|
|
3152
|
+
const SideBar = ({ authState, handleDrawerOpen, open, rootUrl, dashboardUrl = "dashboard", navigate, }) => {
|
|
3159
3153
|
const [view, setView] = useState("/");
|
|
3160
3154
|
const [NewFilterView, setNewFilterView] = useState({});
|
|
3161
3155
|
const [NewFilterData, setNewFilterData] = useState([]);
|