@acuteinfo/common-screens 1.0.47 → 1.0.48
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 +16 -19
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2051,21 +2051,21 @@ const actions = [
|
|
|
2051
2051
|
multiple: undefined,
|
|
2052
2052
|
rowDoubleClick: false,
|
|
2053
2053
|
alwaysAvailable: true,
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2054
|
+
actionTextColor: "var(--theme-color3)",
|
|
2055
|
+
actionBackground: "var(--theme-color2)",
|
|
2056
|
+
startsIcon: "West",
|
|
2057
|
+
rotateIcon: "scale(1.4) rotateX(-360deg)",
|
|
2058
2058
|
},
|
|
2059
2059
|
{
|
|
2060
2060
|
actionName: "proceed",
|
|
2061
2061
|
actionLabel: "Proceed",
|
|
2062
2062
|
multiple: false,
|
|
2063
2063
|
rowDoubleClick: true,
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2064
|
+
actionTextColor: "var(--theme-color2)",
|
|
2065
|
+
actionBackground: "var(--theme-color3)",
|
|
2066
|
+
onEnterSubmit: true,
|
|
2067
|
+
endsIcon: "East",
|
|
2068
|
+
rotateIcon: "scale(1.4) rotateX(-360deg)",
|
|
2069
2069
|
},
|
|
2070
2070
|
];
|
|
2071
2071
|
const BranchSelectionGrid = ({ selectionMode, authState, isBranchSelectedFn, isLoggedInFn, logoutFn, logos, logo, navigate, BranchSelectionGridDataApiFn, GetMenuDataApiFn, sideImage, branchSelectFn, dashboardUrl, loginUrl, appTranCd, }) => {
|
|
@@ -2211,16 +2211,13 @@ const BranchSelectionGrid = ({ selectionMode, authState, isBranchSelectedFn, isL
|
|
|
2211
2211
|
display: "flex",
|
|
2212
2212
|
alignItems: "center",
|
|
2213
2213
|
justifyContent: "right",
|
|
2214
|
-
}, children: [" ", jsx("div", { children: jsx("img", { src: Boolean(logos?.logo) ? logos?.logo : logo, alt: "CbsEnfinity", className: classes.logo }) })] })] }), isError ? (jsx(Fragment, { children: jsx("div", { style: { width: "100%", paddingTop: "10px" }, children: jsx(Alert, { severity: error?.severity ?? "error", errorMsg: error?.error_msg ?? "Error", errorDetail: error?.error_detail ?? "" }) }) })) : mutation.isError && mutation.error ? (jsx(Fragment, { children: jsx("div", { style: { width: "100%", paddingTop: "10px" }, children: jsx(Alert, { severity: getError.severity ?? "error", errorMsg: getError.error_msg ?? "Error", errorDetail: getError.error_detail ?? "" }) }) })) : null, jsx(GridWrapper, { finalMetaData: BranchSelectionGridMetaData, data: data ?? [], setData: () => null, actions: actions, setAction: setCurrentAction,
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
// onlySingleSelectionAllow={true}
|
|
2222
|
-
// isNewRowStyle={true}
|
|
2223
|
-
loading: isLoading || isFetching || mutation.isLoading }, `branchSelection`), isError || data?.length === 0 ? (jsx(Button, { sx: {
|
|
2214
|
+
}, children: [" ", jsx("div", { children: jsx("img", { src: Boolean(logos?.logo) ? logos?.logo : logo, alt: "CbsEnfinity", className: classes.logo }) })] })] }), isError ? (jsx(Fragment, { children: jsx("div", { style: { width: "100%", paddingTop: "10px" }, children: jsx(Alert, { severity: error?.severity ?? "error", errorMsg: error?.error_msg ?? "Error", errorDetail: error?.error_detail ?? "" }) }) })) : mutation.isError && mutation.error ? (jsx(Fragment, { children: jsx("div", { style: { width: "100%", paddingTop: "10px" }, children: jsx(Alert, { severity: getError.severity ?? "error", errorMsg: getError.error_msg ?? "Error", errorDetail: getError.error_detail ?? "" }) }) })) : null, jsx(GridWrapper, { finalMetaData: BranchSelectionGridMetaData, data: data ?? [], setData: () => null, actions: actions, setAction: setCurrentAction, controlsAtBottom: true, actionContextAtBottom: true, headerToolbarStyle: {
|
|
2215
|
+
backgroundColor: "#fff !important",
|
|
2216
|
+
padding: "0",
|
|
2217
|
+
"& .MuiTypography-root": {
|
|
2218
|
+
color: "black",
|
|
2219
|
+
}
|
|
2220
|
+
}, disableMultipleRowSelect: true, variant: "outlined", loading: isLoading || isFetching || mutation.isLoading, defaultSelectedRowId: authState?.user?.branchCode ?? null }, `branchSelection`), isError || data?.length === 0 ? (jsx(Button, { sx: {
|
|
2224
2221
|
backgroundColor: "var(--theme-color3)",
|
|
2225
2222
|
position: "absolute",
|
|
2226
2223
|
right: "113px",
|