@asaleh37/ui-base 1.2.6 → 1.2.7

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 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../node_modules/style-inject/dist/style-inject.es.js","../src/hooks/UseMobile.tsx","../src/redux/features/common/AppLayoutSlice.ts","../src/redux/features/common/LoadingMaskSlice.ts","../src/hooks/useLoadingMask.tsx","../src/hooks/useAxios.tsx","../src/redux/features/common/UserSessionSlice.ts","../src/locales/english/index.ts","../src/locales/index.ts","../src/locales/arabic/index.ts","../src/locales/i18n.ts","../src/hooks/UseConfirmationWindow.tsx","../src/hooks/UseSession.tsx","../src/hooks/UseWindow.tsx","../src/redux/features/common/CommonStoreSlice.ts","../src/hooks/useApiActions.ts","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/TemplateTextField.tsx","../src/components/templates/TransferList.tsx","../src/components/templates/visuals/charts/TemplateBarChart.tsx","../src/components/templates/visuals/charts/TemplateDataCard.tsx","../src/components/templates/visuals/charts/TemplateGauge.tsx","../src/components/templates/visuals/charts/TemplateLineChart.tsx","../src/components/templates/visuals/charts/TemplateLineProgress.tsx","../src/components/templates/visuals/charts/TemplatePieChart.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/CheckBox.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/ComboBox.tsx","../src/util/constants.ts","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/Datefield.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/DatetimeField.tsx","../node_modules/@mui/system/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js","../node_modules/prop-types/node_modules/react-is/index.js","../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../node_modules/object-assign/index.js","../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/lib/has.js","../node_modules/prop-types/checkPropTypes.js","../node_modules/prop-types/factoryWithTypeCheckers.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js","../node_modules/react-is/cjs/react-is.production.js","../node_modules/react-is/cjs/react-is.development.js","../node_modules/react-is/index.js","../node_modules/@mui/system/node_modules/@mui/utils/esm/deepmerge/deepmerge.js","../node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.js","../node_modules/@mui/system/esm/createTheme/shape.js","../node_modules/@mui/system/esm/responsivePropType/responsivePropType.js","../node_modules/@mui/system/esm/merge/merge.js","../node_modules/@mui/system/esm/breakpoints/breakpoints.js","../node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js","../node_modules/@mui/system/node_modules/@mui/utils/esm/capitalize/capitalize.js","../node_modules/@mui/system/esm/style/style.js","../node_modules/@mui/system/esm/spacing/spacing.js","../node_modules/@mui/system/esm/memoize/memoize.js","../node_modules/@mui/system/esm/compose/compose.js","../node_modules/@mui/system/esm/borders/borders.js","../node_modules/@mui/system/esm/cssGrid/cssGrid.js","../node_modules/@mui/system/esm/palette/palette.js","../node_modules/@mui/system/esm/sizing/sizing.js","../node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js","../node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js","../node_modules/@mui/system/esm/createTheme/applyStyles.js","../node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js","../node_modules/@mui/system/esm/useTheme/useTheme.js","../node_modules/@mui/system/esm/createTheme/createTheme.js","../node_modules/@mui/system/esm/createTheme/createSpacing.js","../node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js","../node_modules/@mui/system/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js","../node_modules/clsx/dist/clsx.mjs","../node_modules/@mui/system/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js","../node_modules/@mui/system/esm/Box/boxClasses.js","../node_modules/@mui/system/esm/Box/Box.js","../node_modules/@mui/system/esm/createBox/createBox.js","../node_modules/@mui/styled-engine/esm/index.js","../node_modules/@mui/system/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js","../src/util/AppUtils.ts","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/HtmlEditor.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/SystemLookupCombobox.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementField.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormAction.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementGroup.tsx","../src/components/templates/DataEntryTemplates/TemplateDataGrid/DataGridColumnsUtil.tsx","../src/components/templates/DataEntryTemplates/DataEntryUtil.ts","../src/components/templates/DataEntryTemplates/TemplateDataForm/TemplateForm.tsx","../src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGridMultiRecordAction.tsx","../src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGridTopBar.tsx","../src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGridRecordAction.tsx","../src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid.tsx","../src/hooks/useLookupGridColumn.tsx","../src/components/common/ChangeOrgForm.tsx","../src/redux/features/common/SideBarSlice.ts","../src/layout/TopBar.tsx","../src/layout/DrawerHeader.tsx","../src/navigationItems/index.tsx","../src/navigationItems/Administration/index.tsx","../src/navigationItems/Administration/adminNavigationItems.tsx","../src/layout/NavigationTree.tsx","../src/layout/SideBar.tsx","../src/components/common/LayoutHandlers.tsx","../src/components/templates/visuals/WidgetViewer.tsx","../src/components/templates/visuals/DashboardViewer.tsx","../src/components/administration/admin/OrganizationApplicationModuleGrid.tsx","../src/components/administration/admin/OrganizationUnitTypeGrid.tsx","../src/components/administration/admin/OrganizationUnitGrid.tsx","../src/components/administration/admin/OrganizationRankGrid.tsx","../src/components/administration/admin/OrgMemberRoleForm.tsx","../src/components/administration/admin/OrganizationMemberGrid.tsx","../src/components/administration/admin/SystemApplicationModuleGrid.tsx","../src/components/administration/admin/SystemApplicationAuthorityGrid.tsx","../src/components/administration/admin/RoleAuthoritiesForm.tsx","../src/components/administration/admin/SystemApplicationRoleGrid.tsx","../src/components/administration/dev/LookupGrid.tsx","../src/components/administration/dev/DataQueryParameterGrid.tsx","../src/components/administration/dev/ReportParameterGrid.tsx","../src/components/templates/report/ExcelReportViewer.tsx","../src/components/templates/report/ReportViewer.tsx","../src/components/administration/dev/ReportGrid.tsx","../src/components/administration/dev/MailRecipientGrid.tsx","../src/components/administration/dev/MailBodyGrid.tsx","../src/components/administration/dev/MailAttachmentGrid.tsx","../src/components/administration/dev/MailSenderConfigGrid.tsx","../src/components/administration/dev/WorkflowDocumentStatusGrid.tsx","../src/components/administration/dev/WorkflowDocumentActionMailGrid.tsx","../src/components/administration/dev/WorkflowDocumentActionGrid.tsx","../src/components/administration/dev/WidgetGrid.tsx","../src/components/administration/dev/DashboardWidgetGrid.tsx","../src/routes/index.ts","../src/components/common/Home.tsx","../src/routes/administration/index.ts","../src/routes/administration/adminRoutes.tsx","../src/components/administration/admin/OrganizationGrid.tsx","../src/components/administration/admin/OrganizationMemberRoleGrid.tsx","../src/components/administration/admin/PersonGrid.tsx","../src/components/administration/admin/SystemApplicationGrid.tsx","../src/components/administration/admin/SystemApplicationRoleAuthorityGrid.tsx","../src/routes/administration/devRoutes.tsx","../src/components/administration/dev/BluePrintGrid.tsx","../src/components/administration/dev/DataQueryGrid.tsx","../src/components/administration/dev/DatasourceConnectionGrid.tsx","../src/components/administration/dev/EntityParameterGrid.tsx","../src/components/administration/dev/MailTemplateGrid.tsx","../src/components/administration/dev/WorkflowDocumentGrid.tsx","../src/components/administration/dev/DashboardGrid.tsx","../src/components/templates/visuals/DashboardRouteView.tsx","../src/components/administration/dev/WorkflowDocumentMailLogGrid.tsx","../src/components/administration/dev/MailNotificationQueueGrid.tsx","../src/layout/RouteWrapper.tsx","../src/layout/MainContent.tsx","../src/layout/MobileDrawer.tsx","../src/components/common/LoadingMask.tsx","../src/components/common/Login.tsx","../src/layout/Layout.tsx","../src/redux/features/common/AppInfoSlice.ts","../src/redux/features/administration/AdministrationStoresMetaData.ts","../src/components/App.tsx","../src/components/BaseApp.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import { useEffect, useState } from \"react\";\r\n\r\nexport const useIsMobile = (breakpoint = 768) => {\r\n const [isMobile, setIsMobile] = useState(window.innerWidth < breakpoint);\r\n\r\n useEffect(() => {\r\n const handleResize = () => setIsMobile(window.innerWidth < breakpoint);\r\n window.addEventListener(\"resize\", handleResize);\r\n return () => window.removeEventListener(\"resize\", handleResize);\r\n }, [breakpoint]);\r\n\r\n return isMobile;\r\n};\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\nexport const DRAWER_WIDTH = 350;\r\n\r\ninterface AppLayoutState {\r\n themeMode: \"light\" | \"dark\" | string;\r\n appDirection: \"ltr\" | \"rtl\";\r\n}\r\n\r\nconst initialState: AppLayoutState = {\r\n themeMode: localStorage.getItem(\"themeMode\") || \"light\",\r\n appDirection: localStorage.getItem(\"language\") == \"ar\" ? \"rtl\" : \"ltr\",\r\n};\r\n\r\nconst AppLayoutSlice = createSlice({\r\n name: \"AppLayout\",\r\n initialState,\r\n reducers: {\r\n setThemeMode: (state, action) => {\r\n state.themeMode = action.payload;\r\n },\r\n setAppDirection: (state, action) => {\r\n state.appDirection = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const AppLayoutActions = AppLayoutSlice.actions;\r\nexport default AppLayoutSlice.reducer;\r\n","import { createSlice, PayloadAction } from \"@reduxjs/toolkit\";\r\n\r\ninterface LoadingMaskStateValue {\r\n value: { isOpened: boolean; message?: string | null };\r\n}\r\n\r\nconst initialState: LoadingMaskStateValue = {\r\n value: { isOpened: false, message: null },\r\n};\r\n\r\nconst loadingMaskSlice = createSlice({\r\n name: \"loadingMask\",\r\n initialState,\r\n reducers: {\r\n showLoadingMask: (\r\n state,\r\n action: PayloadAction<string | null | undefined>\r\n ) => {\r\n state.value.isOpened = true;\r\n state.value.message = action.payload;\r\n },\r\n hideLoadingMask: (state) => {\r\n state.value.isOpened = false;\r\n state.value.message = null;\r\n },\r\n },\r\n});\r\n\r\nexport const { showLoadingMask, hideLoadingMask } = loadingMaskSlice.actions;\r\nexport default loadingMaskSlice.reducer;\r\n","import { useDispatch } from \"react-redux\";\r\nimport { hideLoadingMask, showLoadingMask } from \"../redux/features/common/LoadingMaskSlice\";\r\n\r\n\r\nconst useLoadingMask = () => {\r\n const dispatch = useDispatch();\r\n const show = (message?: string) => {\r\n dispatch(showLoadingMask(message));\r\n };\r\n const hide = () => {\r\n dispatch(hideLoadingMask());\r\n };\r\n return { show, hide };\r\n};\r\n\r\nexport default useLoadingMask;\r\n","import { toast } from \"react-toastify\";\r\nimport axios from \"axios\";\r\nimport { useSelector } from \"react-redux\";\r\nimport useLoadingMask from \"./useLoadingMask\";\r\n\r\nexport interface APIRequest {\r\n endPointURI: string;\r\n parameters?: any;\r\n data?: any;\r\n showMask?: Boolean;\r\n loadingMessage?: string;\r\n successCallBkFn?: Function;\r\n failureCallBkFn?: Function;\r\n}\r\n\r\nconst useAxios = () => {\r\n const mask = useLoadingMask();\r\n const apiBaseUrl = useSelector(\r\n (state: any) => state.AppInfo.value.apiBaseUrl\r\n );\r\n const axiosInstance = axios.create({\r\n baseURL: apiBaseUrl,\r\n timeout: 600000,\r\n withCredentials: true,\r\n });\r\n\r\n axiosInstance.defaults.withCredentials = true;\r\n axiosInstance.interceptors.response.use(\r\n (response: any) => {\r\n return response;\r\n },\r\n (error: any) => {\r\n if (\r\n error\r\n ? error.response\r\n ? error.response.status\r\n ? error.response.status === 401\r\n : false\r\n : false\r\n : false\r\n ) {\r\n toast.error(\"your session is now expired, you need to login again\", {\r\n autoClose: false,\r\n });\r\n } else if (\r\n error\r\n ? error.response\r\n ? error.response.status\r\n ? error.response.status === 403\r\n : false\r\n : false\r\n : false\r\n ) {\r\n toast.error(\"you aren't authorized to process this request\");\r\n } else if (\r\n error\r\n ? error.response\r\n ? error.response.status\r\n ? error.response.status === 500\r\n : false\r\n : false\r\n : false\r\n ) {\r\n if (error.response.data instanceof Blob) {\r\n const blob = error.response.data;\r\n blob.text().then((text) => {\r\n toast.error(text);\r\n });\r\n } else {\r\n toast.error(error.response.data);\r\n }\r\n } else {\r\n toast.error(\r\n \"failed to communicate with the server ... try again later\"\r\n );\r\n }\r\n return \"ERROR\";\r\n }\r\n );\r\n const handleGetRequest = async (\r\n props: APIRequest = { endPointURI: \"\", parameters: {} }\r\n ) => {\r\n if (\r\n props.showMask !== undefined &&\r\n props.showMask != null &&\r\n props.showMask === true\r\n ) {\r\n mask.show(props.loadingMessage);\r\n }\r\n const response: any = await axiosInstance.get(props.endPointURI, {\r\n params: { ...props.parameters },\r\n withCredentials: true,\r\n // withCredentials: true,\r\n });\r\n if (\r\n props.showMask !== undefined &&\r\n props.showMask != null &&\r\n props.showMask === true\r\n ) {\r\n mask.hide();\r\n }\r\n if (response !== \"ERROR\") {\r\n if (\r\n props.successCallBkFn !== undefined &&\r\n props.successCallBkFn != null\r\n ) {\r\n props.successCallBkFn(response);\r\n }\r\n return response;\r\n } else {\r\n if (\r\n props.failureCallBkFn !== undefined &&\r\n props.failureCallBkFn != null\r\n ) {\r\n props.failureCallBkFn(response);\r\n }\r\n return \"ERROR\";\r\n }\r\n };\r\n\r\n const HandleDownloadHTTPPostPDF = async (\r\n props: APIRequest = { endPointURI: \"\", parameters: {}, data: {} }\r\n ) => {\r\n if (\r\n props.showMask !== undefined &&\r\n props.showMask != null &&\r\n props.showMask === true\r\n ) {\r\n mask.show(props.loadingMessage);\r\n }\r\n const response: any = await axiosInstance.post(\r\n props.endPointURI,\r\n props.data,\r\n {\r\n responseType: \"blob\",\r\n }\r\n );\r\n if (\r\n props.showMask !== undefined &&\r\n props.showMask != null &&\r\n props.showMask === true\r\n ) {\r\n mask.hide();\r\n }\r\n if (response !== \"ERROR\") {\r\n if (\r\n props.successCallBkFn !== undefined &&\r\n props.successCallBkFn != null\r\n ) {\r\n props.successCallBkFn(response);\r\n }\r\n return response;\r\n } else {\r\n if (\r\n props.failureCallBkFn !== undefined &&\r\n props.failureCallBkFn != null\r\n ) {\r\n props.failureCallBkFn(response);\r\n }\r\n return \"ERROR\";\r\n }\r\n };\r\n const handlePostRequest = async (\r\n props: APIRequest = { endPointURI: \"\", parameters: {}, data: {} }\r\n ) => {\r\n if (\r\n props.showMask !== undefined &&\r\n props.showMask != null &&\r\n props.showMask === true\r\n ) {\r\n mask.show(props.loadingMessage);\r\n }\r\n let response: any = await axiosInstance.post(\r\n props.endPointURI,\r\n props.data,\r\n {\r\n params: props.parameters,\r\n }\r\n );\r\n if (\r\n props.showMask !== undefined &&\r\n props.showMask != null &&\r\n props.showMask === true\r\n ) {\r\n mask.hide();\r\n }\r\n if (response !== \"ERROR\") {\r\n if (\r\n props.successCallBkFn !== undefined &&\r\n props.successCallBkFn != null\r\n ) {\r\n props.successCallBkFn(response);\r\n }\r\n return response;\r\n } else {\r\n if (\r\n props.failureCallBkFn !== undefined &&\r\n props.failureCallBkFn != null\r\n ) {\r\n props.failureCallBkFn(response);\r\n }\r\n return \"ERROR\";\r\n }\r\n };\r\n const handleDeleteRequest = async (\r\n props: APIRequest = { endPointURI: \"\", parameters: {} }\r\n ) => {\r\n if (\r\n props.showMask !== undefined &&\r\n props.showMask != null &&\r\n props.showMask === true\r\n ) {\r\n mask.show(props.loadingMessage);\r\n }\r\n let response: any = await axiosInstance.delete(props.endPointURI, {\r\n params: {\r\n ...props.parameters,\r\n },\r\n });\r\n if (\r\n props.showMask !== undefined &&\r\n props.showMask != null &&\r\n props.showMask === true\r\n ) {\r\n mask.hide();\r\n }\r\n if (response !== \"ERROR\") {\r\n if (\r\n props.successCallBkFn !== undefined &&\r\n props.successCallBkFn != null\r\n ) {\r\n props.successCallBkFn(response);\r\n }\r\n return response;\r\n } else {\r\n if (\r\n props.failureCallBkFn !== undefined &&\r\n props.failureCallBkFn != null\r\n ) {\r\n props.failureCallBkFn(response);\r\n }\r\n return \"ERROR\";\r\n }\r\n };\r\n return {\r\n handleGetRequest,\r\n handlePostRequest,\r\n handleDeleteRequest,\r\n HandleDownloadHTTPPostPDF,\r\n };\r\n};\r\n\r\nexport default useAxios;\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\nexport interface OrganizationProps {\r\n organizationCode?: string;\r\n organizationName?: string;\r\n}\r\n\r\nexport interface UserSessionProps {\r\n value: {\r\n isAuthenticated: boolean | null;\r\n employeeNumber?: string;\r\n employeeName?: string;\r\n mobileNumber?: string;\r\n email?: string;\r\n isEmployeeArchived?: string;\r\n organizationCode?: string;\r\n organizationUnitId?: string;\r\n organizationUnitArName?: string;\r\n organizationUnitEnName?: string;\r\n organizationRankId?: string;\r\n rankCode?: string;\r\n rankName?: string;\r\n rankOrder?: string;\r\n currentOrganization?: any;\r\n userOrganizations?: Array<OrganizationProps>;\r\n authorities: Array<{ authority: string }>;\r\n };\r\n}\r\n\r\nconst initialState: UserSessionProps = {\r\n value: {\r\n isAuthenticated: null,\r\n authorities: [],\r\n },\r\n};\r\n\r\nconst UserSessionSlice = createSlice({\r\n name: \"UserSession\",\r\n initialState,\r\n reducers: {\r\n setAuthenticated: (state, action) => {\r\n state.value = action.payload;\r\n },\r\n setUnAuthenticated: (state) => {\r\n state.value = {\r\n isAuthenticated: false,\r\n authorities: [],\r\n };\r\n },\r\n },\r\n});\r\n\r\nexport const UserSessionActions = UserSessionSlice.actions;\r\nexport default UserSessionSlice.reducer;\r\n","import common from \"./common.json\";\r\nimport AdminLocalsEn from \"./adminLocalsEn.json\";\r\nimport devLocalsEn from \"./devLocalsEn.json\";\r\n\r\nexport const ENGLISH_TRANS = {\r\n ...common,\r\n ...AdminLocalsEn,\r\n ...devLocalsEn,\r\n};\r\n","import { ARABIC_TRANS } from \"./arabic\";\r\nimport { ENGLISH_TRANS } from \"./english\";\r\n\r\nconst resources = {\r\n en: { translation: ENGLISH_TRANS },\r\n ar: { translation: ARABIC_TRANS },\r\n};\r\n\r\nexport default resources;\r\n","import common from \"./common.json\";\r\nimport adminLocalsAr from \"./adminLocalsAr.json\";\r\nimport devLocalAr from \"./devLocalsAr.json\";\r\n\r\nexport const ARABIC_TRANS = {\r\n ...common,\r\n ...adminLocalsAr,\r\n ...devLocalAr,\r\n};\r\n","import i18n from \"i18next\";\r\nimport { initReactI18next } from \"react-i18next\";\r\nimport resources from \".\";\r\ni18n.use(initReactI18next).init({\r\n resources: resources, // Where we're gonna put translations' files\r\n lng: localStorage.getItem(\"language\") || \"en\", // Set the initial language of the App\r\n fallbackLng: \"en\",\r\n});\r\n\r\nexport const changeLanguage = (lng: string) => {\r\n i18n.changeLanguage(lng);\r\n localStorage.setItem(\"language\", lng); // Persist user choice\r\n};\r\n\r\nexport default i18n;\r\n","import {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogContentText,\r\n DialogTitle,\r\n} from \"@mui/material\";\r\nimport { useState } from \"react\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ninterface ConfirmationWindowProps {\r\n title: string;\r\n body: string;\r\n onConfirmationCallBk: () => void;\r\n}\r\n\r\nexport const useConfirmationWindow = (props: ConfirmationWindowProps) => {\r\n const [open, setOpen] = useState<boolean>(false);\r\n const { t } = useTranslation();\r\n const ConfirmationWindow: React.FC = () => {\r\n return (\r\n <Dialog open={open}>\r\n <DialogTitle>{props.title}</DialogTitle>\r\n <DialogContent>\r\n <DialogContentText>{props.body}</DialogContentText>\r\n </DialogContent>\r\n <DialogActions>\r\n <Button\r\n variant=\"contained\"\r\n color=\"primary\"\r\n onClick={() => {\r\n setOpen(false);\r\n }}\r\n >\r\n {t(\"NO_LABEL\")}\r\n </Button>\r\n <Button\r\n variant=\"contained\"\r\n color=\"error\"\r\n onClick={() => {\r\n props.onConfirmationCallBk();\r\n setOpen(false);\r\n }}\r\n autoFocus\r\n >\r\n {t(\"YES_LABEL\")}\r\n </Button>\r\n </DialogActions>\r\n </Dialog>\r\n );\r\n };\r\n return { ConfirmationWindow, open, setOpen };\r\n};\r\n","import { useSelector } from \"react-redux\";\r\n\r\nconst useSession = () => {\r\n const UserSession = useSelector((state: any) => state.UserSession);\r\n const UserInfo = UserSession.value;\r\n const isUserAuthorized = (authorityCode: string): boolean => {\r\n if (UserSession?.value?.authorities) {\r\n for (let grantedAuthority of UserSession.value.authorities) {\r\n if (\r\n grantedAuthority?.authority === \"DEVELOPMENT_ADMIN\" ||\r\n grantedAuthority?.authority === authorityCode\r\n ) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n };\r\n return { UserSession, isUserAuthorized, UserInfo };\r\n};\r\n\r\nexport default useSession;\r\n","import { useEffect, useState } from \"react\";\r\nimport {\r\n AppBar,\r\n Box,\r\n IconButton,\r\n Modal,\r\n Paper,\r\n Toolbar,\r\n Typography,\r\n} from \"@mui/material\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { IconProp } from \"@fortawesome/fontawesome-svg-core\";\r\n\r\nexport interface TemplateWindowProp {\r\n height?: any;\r\n width?: any;\r\n minWidth?: any;\r\n minHeight?: any;\r\n windowIcon?: IconProp;\r\n windowTitle?: string;\r\n onCloseCallBack?: any;\r\n}\r\n\r\ninterface WindowProps {\r\n children?: React.ReactNode;\r\n}\r\n\r\nexport const useWindow = (props: TemplateWindowProp) => {\r\n const [windowState, setWindowState] = useState(false);\r\n\r\n const Window: React.FC<WindowProps> = (windowProps: WindowProps) => {\r\n return (\r\n <Modal\r\n open={windowState}\r\n sx={{ zIndex: (theme) => theme.zIndex.drawer }}\r\n onClose={() => {\r\n if (!windowState && props?.onCloseCallBack) {\r\n props.onCloseCallBack();\r\n }\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n position: \"absolute\",\r\n top: \"50%\",\r\n left: \"50%\",\r\n maxHeight: \"90%\",\r\n transform: \"translate(-50%, -50%)\",\r\n height: props?.height || \"80%\",\r\n width: props?.width || \"90%\",\r\n minWidth: props.minWidth || 400,\r\n minHeight: props.minHeight || 200,\r\n overflow: \"hidden\",\r\n bgcolor: \"modalBackground.main\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n }}\r\n >\r\n <AppBar position=\"static\">\r\n <Toolbar variant=\"dense\">\r\n <FontAwesomeIcon\r\n icon={props?.windowIcon || \"window-maximize\"}\r\n style={{ marginRight: 5 }}\r\n />\r\n <Typography variant=\"h6\" color=\"inherit\" component=\"div\">\r\n {props?.windowTitle || \"window\"}\r\n </Typography>\r\n <div style={{ flexGrow: 1 }}></div>\r\n <IconButton\r\n onClick={() => {\r\n setWindowState(false);\r\n if (\r\n props.onCloseCallBack != undefined &&\r\n props.onCloseCallBack != null\r\n ) {\r\n props.onCloseCallBack();\r\n }\r\n }}\r\n color=\"secondary\"\r\n >\r\n <FontAwesomeIcon icon=\"xmark-square\" />\r\n </IconButton>\r\n </Toolbar>\r\n </AppBar>\r\n <Paper\r\n sx={{\r\n // flexGrow: 1,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n width: \"100%\",\r\n height: \"100%\",\r\n padding: 1,\r\n // justifyContent: \"center\",\r\n overflow: \"hidden\",\r\n }}\r\n >\r\n {windowProps?.children}\r\n </Paper>\r\n </Box>\r\n </Modal>\r\n );\r\n };\r\n return { windowState, setWindowState, Window };\r\n};\r\n","import { createSlice, PayloadAction } from \"@reduxjs/toolkit\";\r\n\r\nexport type CommonStores = {\r\n [key: string]: StoreMetaData;\r\n};\r\n\r\nexport interface CommonStoresInterface {\r\n stores: { [key: string]: StoreMetaData };\r\n storeKeys: Array<String>;\r\n isAutoLoadLoaded: boolean;\r\n}\r\n\r\ninterface setStoreDataProps {\r\n storeKey: string;\r\n data: Array<any>;\r\n}\r\n\r\nexport interface StoreMetaData {\r\n url: string;\r\n data: Array<any>;\r\n autoLoad: boolean;\r\n authority?: string;\r\n}\r\n\r\nexport const commonStoresInitialState: CommonStoresInterface = {\r\n stores: {},\r\n storeKeys: [],\r\n isAutoLoadLoaded: false,\r\n};\r\n\r\nconst commonStoreSlice = createSlice({\r\n name: \"loadingMask\",\r\n initialState: commonStoresInitialState,\r\n reducers: {\r\n setStoresMetaData: (state, action) => {\r\n state.stores = action.payload;\r\n state.storeKeys = Object.keys(action.payload);\r\n },\r\n setStoreData: (state, action: PayloadAction<setStoreDataProps>) => {\r\n state.stores[action.payload.storeKey].data = action.payload.data;\r\n },\r\n setAutoLoadLoaded: () => {\r\n state.isAutoLoadLoaded = true;\r\n },\r\n },\r\n});\r\n\r\nexport const { setStoreData, setStoresMetaData, setAutoLoadLoaded } =\r\n commonStoreSlice.actions;\r\nexport default commonStoreSlice.reducer;\r\n","import { useDispatch, useSelector } from \"react-redux\";\r\nimport useSession from \"./UseSession\";\r\nimport useAxios from \"./useAxios\";\r\nimport { setStoreData } from \"../redux/features/common/CommonStoreSlice\";\r\n\r\nexport type ApiActionsProps = {\r\n findAll?: string;\r\n commonStoreKey?: string;\r\n setData?: any;\r\n findById?: string;\r\n findByIdParamName?: string;\r\n save?: string;\r\n deleteById?: string;\r\n deleteByIdParamName?: string;\r\n};\r\n\r\nexport type ApiActions = {\r\n reloadData: (params?: any) => Promise<void>;\r\n saveRecord: (record: any) => Promise<any | null>;\r\n loadRecordById: (recordId: any) => Promise<any>;\r\n deleteRecordById: (recordId: any) => Promise<boolean>;\r\n};\r\n\r\nconst useApiActions: (apiActionsProps: ApiActionsProps) => ApiActions = (\r\n apiActionsProps: ApiActionsProps\r\n) => {\r\n const CommonStores = useSelector((state: any) => state.commonStores.stores);\r\n const dispatch = useDispatch();\r\n const session = useSession();\r\n const { handleGetRequest, handlePostRequest, handleDeleteRequest } =\r\n useAxios();\r\n const reloadData = async (params?: any) => {\r\n if (apiActionsProps?.commonStoreKey) {\r\n const storeKeys = Object.keys(CommonStores);\r\n for (const storeKey of storeKeys) {\r\n if (storeKey === apiActionsProps.commonStoreKey) {\r\n if (\r\n (CommonStores[storeKey]?.authority === undefined ||\r\n CommonStores[storeKey]?.authority === null ||\r\n session.isUserAuthorized(CommonStores[storeKey]?.authority)) &&\r\n CommonStores[storeKey]?.url != \"\"\r\n ) {\r\n await handleGetRequest({\r\n endPointURI: CommonStores[storeKey].url,\r\n showMask: false,\r\n successCallBkFn: (response: any) => {\r\n dispatch(setStoreData({ storeKey, data: response.data }));\r\n apiActionsProps.setData(response.data);\r\n },\r\n failureCallBkFn: () => {\r\n dispatch(setStoreData({ storeKey, data: [] }));\r\n apiActionsProps.setData([]);\r\n },\r\n });\r\n break;\r\n }\r\n }\r\n }\r\n } else if (apiActionsProps?.findAll) {\r\n await handleGetRequest({\r\n endPointURI: apiActionsProps.findAll,\r\n showMask: true,\r\n parameters: params || {},\r\n successCallBkFn: (response: any) => {\r\n apiActionsProps.setData(response.data);\r\n },\r\n });\r\n }\r\n };\r\n const saveRecord = async (record: any) => {\r\n let savedRecord = null;\r\n if (apiActionsProps?.save) {\r\n await handlePostRequest({\r\n endPointURI: apiActionsProps.save,\r\n data: record,\r\n showMask: true,\r\n successCallBkFn: (response: any) => {\r\n savedRecord = response.data;\r\n },\r\n });\r\n }\r\n return savedRecord;\r\n };\r\n const loadRecordById = async (recordId: any) => {\r\n let record: any = null;\r\n if (apiActionsProps?.findById) {\r\n const parameters: any = {};\r\n const keyParameterName = apiActionsProps?.findByIdParamName || \"id\";\r\n parameters[keyParameterName] = recordId;\r\n await handleGetRequest({\r\n endPointURI: apiActionsProps.findById,\r\n showMask: true,\r\n parameters,\r\n successCallBkFn: (response: any) => {\r\n record = response.data;\r\n },\r\n });\r\n }\r\n return record;\r\n };\r\n const deleteRecordById = async (recordId: any) => {\r\n let result = true;\r\n if (apiActionsProps?.deleteById) {\r\n const parameters: any = {};\r\n const keyParameterName = apiActionsProps?.deleteByIdParamName || \"id\";\r\n parameters[keyParameterName] = recordId;\r\n await handleDeleteRequest({\r\n endPointURI: apiActionsProps.deleteById,\r\n showMask: true,\r\n parameters,\r\n successCallBkFn: () => {\r\n result = true;\r\n },\r\n failureCallBkFn: () => {\r\n result = false;\r\n },\r\n });\r\n }\r\n return result;\r\n };\r\n return { reloadData, loadRecordById, saveRecord, deleteRecordById };\r\n};\r\n\r\nexport default useApiActions;\r\n","import { TextField, TextFieldProps } from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nconst TemplateTextField: React.FC<Omit<TextFieldProps, \"outlined\">> = (\r\n props\r\n) => {\r\n const { t } = useTranslation();\r\n return (\r\n <TextField\r\n {...props}\r\n slotProps={{ inputLabel: { shrink: true } }}\r\n label={<>{props?.label ? t(props.label) : \"\"}</>}\r\n />\r\n );\r\n};\r\n\r\nexport default TemplateTextField;\r\n","import * as React from \"react\";\r\nimport List from \"@mui/material/List\";\r\nimport Card from \"@mui/material/Card\";\r\nimport CardHeader from \"@mui/material/CardHeader\";\r\nimport ListItemText from \"@mui/material/ListItemText\";\r\nimport ListItemIcon from \"@mui/material/ListItemIcon\";\r\nimport Checkbox from \"@mui/material/Checkbox\";\r\nimport Button from \"@mui/material/Button\";\r\nimport Divider from \"@mui/material/Divider\";\r\nimport { Box, Grid2, ListItemButton } from \"@mui/material\";\r\nimport TemplateTextField from \"./DataEntryTemplates/TemplateDataForm/FormFields/TemplateTextField\";\r\n\r\nfunction not(a, b) {\r\n return a.filter((value) => b.indexOf(value) === -1);\r\n}\r\n\r\nfunction intersection(a, b) {\r\n return a.filter((value) => b.indexOf(value) !== -1);\r\n}\r\n\r\nfunction union(a, b) {\r\n return [...a, ...not(b, a)];\r\n}\r\n\r\nexport type TransferListProps = {\r\n valueField: string;\r\n displayField: string;\r\n options: Array<any>;\r\n selectedOptions: Array<any>;\r\n setSelection: any;\r\n};\r\n\r\nconst TransferList: React.FC<TransferListProps> = ({\r\n valueField = \"id\",\r\n displayField = \"name\",\r\n options = [],\r\n selectedOptions = [],\r\n setSelection,\r\n}) => {\r\n const [checked, setChecked] = React.useState([]);\r\n const [left, setLeft] = React.useState<Array<any>>([]);\r\n const [right, setRight] = React.useState<Array<any>>([]);\r\n const [leftFilterValue, setLeftFilterValue] = React.useState<string>(\"\");\r\n const [rightFilterValue, setRightFilterValue] = React.useState<string>(\"\");\r\n\r\n const leftChecked = intersection(checked, left);\r\n const rightChecked = intersection(checked, right);\r\n\r\n React.useEffect(() => {\r\n if (options) {\r\n setLeft([...options]);\r\n }\r\n }, [options]);\r\n React.useEffect(() => {\r\n if (selectedOptions) {\r\n setRight([...selectedOptions]);\r\n }\r\n }, [selectedOptions]);\r\n\r\n const handleToggle = (value) => () => {\r\n const currentIndex = checked.indexOf(value);\r\n const newChecked = [...checked];\r\n\r\n if (currentIndex === -1) {\r\n newChecked.push(value);\r\n } else {\r\n newChecked.splice(currentIndex, 1);\r\n }\r\n\r\n setChecked(newChecked);\r\n };\r\n\r\n const numberOfChecked = (items) => intersection(checked, items).length;\r\n\r\n const handleToggleAll = (items) => () => {\r\n if (numberOfChecked(items) === items.length) {\r\n setChecked(not(checked, items));\r\n } else {\r\n setChecked(union(checked, items));\r\n }\r\n };\r\n\r\n const handleCheckedRight = () => {\r\n setRight((oldState) => {\r\n let newState = right.concat(leftChecked);\r\n setSelection(newState);\r\n return newState;\r\n });\r\n setLeft(not(left, leftChecked));\r\n setChecked(not(checked, leftChecked));\r\n };\r\n\r\n const handleCheckedLeft = () => {\r\n setLeft(left.concat(rightChecked));\r\n setRight((oldState) => {\r\n let newState = not(right, rightChecked);\r\n setSelection(newState);\r\n return newState;\r\n });\r\n setChecked(not(checked, rightChecked));\r\n };\r\n\r\n const customList = (\r\n title: string,\r\n unfilteredItems: Array<any>,\r\n side: \"left\" | \"right\"\r\n ) => { \r\n const items = unfilteredItems.filter((option: any) => {\r\n \r\n if (option[displayField]) {\r\n const value: string = option[displayField];\r\n if (\r\n side === \"left\" &&\r\n value\r\n .toLocaleLowerCase()\r\n .includes(leftFilterValue.toLocaleLowerCase())\r\n ) {\r\n return true;\r\n } else if (\r\n side === \"right\" &&\r\n value\r\n .toLocaleLowerCase()\r\n .includes(rightFilterValue.toLocaleLowerCase())\r\n ) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n });\r\n return (\r\n <Card sx={{ height: \"100%\" }}>\r\n <CardHeader\r\n sx={{ px: 2, py: 1 }}\r\n avatar={\r\n <Checkbox\r\n onClick={handleToggleAll(items)}\r\n checked={\r\n numberOfChecked(items) === items.length && items.length !== 0\r\n }\r\n indeterminate={\r\n numberOfChecked(items) !== items.length &&\r\n numberOfChecked(items) !== 0\r\n }\r\n disabled={items.length === 0}\r\n inputProps={{\r\n \"aria-label\": \"all items selected\",\r\n }}\r\n />\r\n }\r\n title={title}\r\n subheader={`${numberOfChecked(unfilteredItems)} / ${\r\n unfilteredItems.length\r\n } Selected`}\r\n />\r\n <Box sx={{ width: \"100%\", padding: 1 }}>\r\n <TemplateTextField\r\n fullWidth\r\n label=\"search\"\r\n value={side === \"left\" ? leftFilterValue : rightFilterValue}\r\n onChange={(event) => {\r\n if (side === \"left\") {\r\n setLeftFilterValue(event.target.value);\r\n } else {\r\n setRightFilterValue(event.target.value);\r\n }\r\n }}\r\n />\r\n </Box>\r\n <Divider />\r\n <List\r\n sx={{\r\n width: \"100%\",\r\n height: \"100%\",\r\n bgcolor: \"secondary\",\r\n overflow: \"auto\",\r\n }}\r\n dense\r\n component=\"div\"\r\n role=\"list\"\r\n >\r\n {items.map((value) => {\r\n const labelId = `transfer-list-all-item-${value[valueField]}-label`;\r\n\r\n return (\r\n <ListItemButton\r\n key={value[valueField]}\r\n role=\"listitem\"\r\n onClick={handleToggle(value)}\r\n sx={{ cursor: \"pointer\" }}\r\n >\r\n <ListItemIcon>\r\n <Checkbox\r\n checked={checked.indexOf(value) !== -1}\r\n tabIndex={-1}\r\n disableRipple\r\n />\r\n </ListItemIcon>\r\n <ListItemText\r\n id={value[valueField]}\r\n primary={value[displayField]}\r\n />\r\n </ListItemButton>\r\n );\r\n })}\r\n </List>\r\n </Card>\r\n );\r\n };\r\n return (\r\n <Grid2\r\n container\r\n spacing={2}\r\n sx={{\r\n flexGrow: 1,\r\n overflow: \"auto\",\r\n margin: 1,\r\n display: \"flex\",\r\n width: \"100%\",\r\n }}\r\n justifyContent=\"center\"\r\n alignItems=\"center\"\r\n >\r\n <Grid2 sx={{ height: \"100%\", flex: 1 }}>\r\n {customList(\"Available Items\", left, \"left\")}\r\n </Grid2>\r\n <Grid2>\r\n <Grid2 container direction=\"column\" alignItems=\"center\">\r\n <Button\r\n sx={{ my: 0.5 }}\r\n variant=\"outlined\"\r\n size=\"small\"\r\n onClick={handleCheckedRight}\r\n disabled={leftChecked.length === 0}\r\n aria-label=\"move selected right\"\r\n >\r\n &gt;\r\n </Button>\r\n <Button\r\n sx={{ my: 0.5 }}\r\n variant=\"outlined\"\r\n size=\"small\"\r\n onClick={handleCheckedLeft}\r\n disabled={rightChecked.length === 0}\r\n aria-label=\"move selected left\"\r\n >\r\n &lt;\r\n </Button>\r\n </Grid2>\r\n </Grid2>\r\n <Grid2 sx={{ height: \"100%\", flex: 1 }}>\r\n {customList(\"Currently Selected\", right, \"right\")}\r\n </Grid2>\r\n </Grid2>\r\n );\r\n};\r\n\r\nexport default TransferList;\r\n","import { BarChart } from \"@mui/x-charts\";\r\nimport { WidgetProps } from \"../DashboardViewer\";\r\n\r\n\r\nconst TemplateBarChart: React.FC<WidgetProps> = (props) => {\r\n return (\r\n <BarChart\r\n dataset={props.data}\r\n xAxis={[\r\n {\r\n dataKey: props.valueField,\r\n scaleType: \"band\",\r\n label: props.valueLabel,\r\n },\r\n ]}\r\n series={props.labelField?.split(\",\").map((labelField) => {\r\n return { dataKey: labelField, label: labelField };\r\n })}\r\n />\r\n );\r\n};\r\n\r\nexport default TemplateBarChart;\r\n","import { Box, Paper, Typography } from \"@mui/material\";\r\nimport { SingleRecordWidgetProps } from \"../DashboardViewer\";\r\n\r\n\r\nconst TemplateDataCard: React.FC<SingleRecordWidgetProps> = (props: any) => {\r\n return (\r\n <Paper\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n height: 150,\r\n padding: 1,\r\n flexGrow: 1,\r\n justifyContent: \"center\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n width: \"100%\",\r\n justifyContent: \"space-evenly\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <div>{props.record[props.valueField]}</div>\r\n </Box>\r\n <Typography sx={{ fontSize: 16, fontWeight: \"bold\" }}>\r\n {props.record[props.labelField]}\r\n </Typography>\r\n </Paper>\r\n );\r\n};\r\n\r\nexport default TemplateDataCard;\r\n","import { Gauge } from \"@mui/x-charts\";\r\nimport { SingleRecordWidgetProps } from \"../DashboardViewer\";\r\nimport { Typography } from \"@mui/material\";\r\n\r\nconst TemplateGauge: React.FC<SingleRecordWidgetProps> = (props: any) => {\r\n return (\r\n <>\r\n <Typography sx={{ fontSize: 16, fontWeight: \"bold\" }}>\r\n {props.record[props.labelField]}\r\n </Typography>\r\n <Gauge\r\n width={200}\r\n height={200}\r\n value={props.record[props.valueField]}\r\n valueMax={props.total}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default TemplateGauge;\r\n","import { LineChart } from \"@mui/x-charts\";\r\nimport { WidgetProps } from \"../DashboardViewer\";\r\n\r\nconst TemplateLineChart: React.FC<WidgetProps> = (props) => {\r\n return (\r\n <LineChart\r\n dataset={props.data}\r\n xAxis={[\r\n {\r\n dataKey: props.valueField,\r\n scaleType: \"band\",\r\n label: props.valueLabel,\r\n },\r\n ]}\r\n series={props.labelField?.split(\",\").map((labelField) => {\r\n return { dataKey: labelField, label: labelField };\r\n })}\r\n />\r\n );\r\n};\r\n\r\nexport default TemplateLineChart;\r\n","import * as React from \"react\";\r\nimport LinearProgress, {\r\n LinearProgressProps,\r\n} from \"@mui/material/LinearProgress\";\r\nimport Typography from \"@mui/material/Typography\";\r\nimport Box from \"@mui/material/Box\";\r\nimport { SingleRecordWidgetProps } from \"../DashboardViewer\";\r\n\r\nfunction LinearProgressWithLabel(\r\n props: LinearProgressProps & { value: number }\r\n) {\r\n return (\r\n <Box sx={{ display: \"flex\", alignItems: \"center\" }}>\r\n <Box sx={{ width: \"100%\", mr: 1 }}>\r\n <LinearProgress variant=\"determinate\" {...props} />\r\n </Box>\r\n <Box sx={{ minWidth: 35 }}>\r\n <Typography\r\n variant=\"body2\"\r\n sx={{ color: \"text.secondary\" }}\r\n >{`${Math.round(props.value)}%`}</Typography>\r\n </Box>\r\n </Box>\r\n );\r\n}\r\n\r\nconst TemplateLineProgress: React.FC<SingleRecordWidgetProps> = (\r\n props: any\r\n) => {\r\n return (\r\n <Box sx={{ width: \"100%\" }}>\r\n <Typography sx={{ fontSize: 16, fontWeight: \"bold\" }}>\r\n {props.record[props.labelField]}\r\n </Typography>\r\n <LinearProgressWithLabel\r\n value={100 * (props.record[props.valueField] / props.total)}\r\n />\r\n </Box>\r\n );\r\n};\r\n\r\nexport default TemplateLineProgress;\r\n","import { PieChart } from \"@mui/x-charts/PieChart\";\r\nimport { WidgetProps } from \"../DashboardViewer\";\r\n\r\nconst TemplatePieChart: React.FC<WidgetProps> = (props) => {\r\n // construct data object\r\n const chartData = props.data.map((record: any, index: any) => {\r\n return {\r\n id: index,\r\n value: record[props.valueField],\r\n label: record[props.labelField] + \"\",\r\n };\r\n });\r\n return (\r\n <PieChart\r\n series={[\r\n {\r\n data: chartData,\r\n },\r\n ]}\r\n />\r\n );\r\n};\r\n\r\nexport default TemplatePieChart;\r\n","import { Checkbox, FormControlLabel } from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ninterface CheckBoxProps {\r\n value: any;\r\n disabled?: boolean;\r\n required?: boolean;\r\n label: string;\r\n checkedValue?: any;\r\n unCheckedValue?: any;\r\n onChangeCallBack: Function;\r\n sx?: any;\r\n}\r\n\r\nconst CheckBox: React.FC<CheckBoxProps> = (props) => {\r\n const { t } = useTranslation();\r\n return (\r\n <FormControlLabel\r\n sx={props.sx}\r\n disabled={props.disabled || false}\r\n required={props.required || false}\r\n control={\r\n <Checkbox\r\n checked={\r\n props?.checkedValue == props.value ||\r\n props.value === \"true\" ||\r\n props.value == \"1\"\r\n ? true\r\n : false\r\n }\r\n onChange={(e) => {\r\n if (\r\n props.onChangeCallBack !== undefined &&\r\n props.onChangeCallBack != null\r\n ) {\r\n if (e.target.checked) {\r\n if (\r\n props.checkedValue !== undefined &&\r\n props.checkedValue != null\r\n ) {\r\n props.onChangeCallBack(props.checkedValue);\r\n } else {\r\n props.onChangeCallBack(true);\r\n }\r\n } else {\r\n if (\r\n props.unCheckedValue !== undefined &&\r\n props.unCheckedValue != null\r\n ) {\r\n props.onChangeCallBack(props.unCheckedValue);\r\n } else {\r\n props.onChangeCallBack(false);\r\n }\r\n }\r\n }\r\n }}\r\n />\r\n }\r\n label={t(props.label)}\r\n />\r\n );\r\n};\r\n\r\nexport default CheckBox;\r\n","import { useSelector } from \"react-redux\";\r\nimport { Autocomplete, Popper, TextField } from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ninterface ComboBoxProps {\r\n value: any;\r\n onChangeCallBack: Function;\r\n label: string;\r\n disabled?: boolean;\r\n required?: boolean;\r\n options: Array<any>;\r\n errorMessage?: any;\r\n displayField: string;\r\n valueField: string;\r\n sx?: any;\r\n}\r\n\r\nconst ComboBox: React.FC<ComboBoxProps> = (props) => {\r\n const AppLayoutState = useSelector((state: any) => state.AppLayout);\r\n const { t } = useTranslation();\r\n const getValue = (v: string) => {\r\n for (let option of props.options) {\r\n if (option[props.valueField] == v) {\r\n return option;\r\n }\r\n }\r\n return null;\r\n };\r\n return (\r\n <Autocomplete\r\n sx={props.sx}\r\n value={getValue(props.value)}\r\n options={props.options}\r\n disabled={props.disabled}\r\n onChange={(event, newValue) => {\r\n if (\r\n props.onChangeCallBack !== undefined &&\r\n props.onChangeCallBack != null\r\n ) {\r\n if (newValue != null) {\r\n let v = newValue[props.valueField];\r\n props.onChangeCallBack(v, newValue);\r\n } else {\r\n props.onChangeCallBack(null, null);\r\n }\r\n }\r\n }}\r\n clearOnBlur\r\n handleHomeEndKeys\r\n getOptionLabel={(option) => {\r\n return option != null ? t(option[props.displayField]) : \"\";\r\n }}\r\n renderOption={(props1, option) => {\r\n return (\r\n <li {...props1}>\r\n {option != null ? t(option[props.displayField]) : \"\"}\r\n </li>\r\n );\r\n }}\r\n slots={{\r\n popper: (props: any) => (\r\n <Popper\r\n {...props}\r\n style={{ ...props.style, direction: AppLayoutState.appDirection }}\r\n />\r\n ),\r\n }}\r\n renderInput={(params) => {\r\n return (\r\n <TextField\r\n {...params}\r\n required={props.required || false}\r\n variant=\"outlined\"\r\n InputLabelProps={{ shrink: true }}\r\n label={t(props.label)}\r\n error={\r\n props.errorMessage != null && props.errorMessage !== undefined\r\n ? true\r\n : false\r\n }\r\n helperText={\r\n props.errorMessage != null && props.errorMessage !== undefined\r\n ? t(props.errorMessage)\r\n : \"\"\r\n }\r\n />\r\n );\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default ComboBox;\r\n","export const DATE_FORMAT = \"YYYY-MM-DD\";\r\nexport const DATE_TIME_FORMAT = \"YYYY-MM-DD HH:mm:ss\";\r\nexport const LIGHT_THEME_INITIAL_MAIN_COLOR = \"#37505C\";\r\nexport const LIGHT_THEME_INITIAL_SECANDARY_COLOR = \"#ff6d00\";\r\nexport const DARK_THEME_INITIAL_MAIN_COLOR = \"#ea690e\";\r\nexport const DARK_THEME_INITIAL_SECANDARY_COLOR = \"#74776B\";\r\n","import { DatePicker, LocalizationProvider } from \"@mui/x-date-pickers\";\r\nimport { AdapterMoment } from \"@mui/x-date-pickers/AdapterMoment\";\r\nimport moment from \"moment\";\r\nimport { DATE_FORMAT } from \"../../../../../util/constants\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ninterface DatefieldProps {\r\n value: string | null;\r\n label: string;\r\n disabled?: boolean;\r\n required?: boolean;\r\n sx?: any;\r\n format?: string;\r\n errorMessage?: any;\r\n onChangeCallBack: Function;\r\n [x: string | number | symbol]: unknown;\r\n}\r\n\r\nconst Datefield: React.FC<DatefieldProps> = (props) => {\r\n const { t } = useTranslation();\r\n return (\r\n <LocalizationProvider dateAdapter={AdapterMoment}>\r\n <DatePicker\r\n value={\r\n props.value != null && props.value !== undefined && props.value !== \"\"\r\n ? moment(props.value, props?.format || DATE_FORMAT)\r\n : null\r\n }\r\n sx={props.sx}\r\n label={t(props.label)}\r\n format={props?.format || DATE_FORMAT}\r\n disabled={props.disabled}\r\n onChange={(momentValue) => {\r\n let v = null;\r\n if (momentValue != null && momentValue.isValid()) {\r\n v = momentValue.format(props?.format || DATE_FORMAT);\r\n }\r\n if (\r\n props.onChangeCallBack !== undefined &&\r\n props.onChangeCallBack != null\r\n ) {\r\n props.onChangeCallBack(v);\r\n }\r\n }}\r\n slotProps={{\r\n textField: {\r\n InputLabelProps: { shrink: true },\r\n variant: \"outlined\",\r\n required: props.required,\r\n error:\r\n props.errorMessage !== undefined && props.errorMessage != null,\r\n helperText:\r\n props.errorMessage !== undefined && props.errorMessage != null ? (\r\n <>{t(props.errorMessage)}</>\r\n ) : (\r\n <></>\r\n ),\r\n },\r\n }}\r\n />\r\n </LocalizationProvider>\r\n );\r\n};\r\n\r\nexport default Datefield;\r\n","import { DateTimePicker, LocalizationProvider } from \"@mui/x-date-pickers\";\r\nimport { AdapterMoment } from \"@mui/x-date-pickers/AdapterMoment\";\r\nimport moment from \"moment\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { DATE_TIME_FORMAT } from \"../../../../../util/constants\";\r\n\r\ninterface DatetimeFieldProps {\r\n value: string | null;\r\n label: string;\r\n disabled?: boolean;\r\n required?: boolean;\r\n format?: string;\r\n sx?: any;\r\n errorMessage?: any;\r\n onChangeCallBack: Function;\r\n [x: string | number | symbol]: unknown;\r\n}\r\n\r\nconst DatetimeField: React.FC<DatetimeFieldProps> = (props) => {\r\n const { t } = useTranslation();\r\n return (\r\n <LocalizationProvider dateAdapter={AdapterMoment}>\r\n <DateTimePicker\r\n value={\r\n props.value != null && props.value !== undefined && props.value !== \"\"\r\n ? moment(props.value, props?.format || DATE_TIME_FORMAT)\r\n : null\r\n }\r\n label={t(props.label)}\r\n sx={props.sx}\r\n format={props?.format || DATE_TIME_FORMAT}\r\n disabled={props.disabled}\r\n onChange={(momentValue) => {\r\n let v = null;\r\n if (momentValue != null && momentValue.isValid()) {\r\n v = momentValue.format(props?.format || DATE_TIME_FORMAT);\r\n }\r\n if (\r\n props.onChangeCallBack !== undefined &&\r\n props.onChangeCallBack != null\r\n ) {\r\n props.onChangeCallBack(v);\r\n }\r\n }}\r\n slotProps={{\r\n textField: {\r\n variant: \"outlined\",\r\n required: props.required,\r\n error:\r\n props.errorMessage !== undefined && props.errorMessage != null,\r\n helperText:\r\n props.errorMessage !== undefined && props.errorMessage != null ? (\r\n <>{t(props.errorMessage)}</>\r\n ) : (\r\n <></>\r\n ),\r\n },\r\n }}\r\n />\r\n </LocalizationProvider>\r\n );\r\n};\r\n\r\nexport default DatetimeField;\r\n","/**\n * WARNING: Don't import this directly. It's imported by the code generated by\n * `@mui/interal-babel-plugin-minify-errors`. Make sure to always use string literals in `Error`\n * constructors to ensure the plugin works as expected. Supported patterns include:\n * throw new Error('My message');\n * throw new Error(`My message: ${foo}`);\n * throw new Error(`My message: ${foo}` + 'another string');\n * ...\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code, ...args) {\n const url = new URL(`https://mui.com/production-error/?code=${code}`);\n args.forEach(arg => url.searchParams.append('args[]', arg));\n return `Minified MUI error #${code}; visit ${url} for the full message.`;\n}","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * @license React\n * react-is.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\nSymbol.for(\"react.provider\");\nvar REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\nfunction typeOf(object) {\n if (\"object\" === typeof object && null !== object) {\n var $$typeof = object.$$typeof;\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n switch (((object = object.type), object)) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n case REACT_VIEW_TRANSITION_TYPE:\n return object;\n default:\n switch (((object = object && object.$$typeof), object)) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n return object;\n case REACT_CONSUMER_TYPE:\n return object;\n default:\n return $$typeof;\n }\n }\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n}\nexports.ContextConsumer = REACT_CONSUMER_TYPE;\nexports.ContextProvider = REACT_CONTEXT_TYPE;\nexports.Element = REACT_ELEMENT_TYPE;\nexports.ForwardRef = REACT_FORWARD_REF_TYPE;\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.Lazy = REACT_LAZY_TYPE;\nexports.Memo = REACT_MEMO_TYPE;\nexports.Portal = REACT_PORTAL_TYPE;\nexports.Profiler = REACT_PROFILER_TYPE;\nexports.StrictMode = REACT_STRICT_MODE_TYPE;\nexports.Suspense = REACT_SUSPENSE_TYPE;\nexports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nexports.isContextConsumer = function (object) {\n return typeOf(object) === REACT_CONSUMER_TYPE;\n};\nexports.isContextProvider = function (object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n};\nexports.isElement = function (object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n};\nexports.isForwardRef = function (object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n};\nexports.isFragment = function (object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n};\nexports.isLazy = function (object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n};\nexports.isMemo = function (object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n};\nexports.isPortal = function (object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n};\nexports.isProfiler = function (object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n};\nexports.isStrictMode = function (object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n};\nexports.isSuspense = function (object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n};\nexports.isSuspenseList = function (object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n};\nexports.isValidElementType = function (type) {\n return \"string\" === typeof type ||\n \"function\" === typeof type ||\n type === REACT_FRAGMENT_TYPE ||\n type === REACT_PROFILER_TYPE ||\n type === REACT_STRICT_MODE_TYPE ||\n type === REACT_SUSPENSE_TYPE ||\n type === REACT_SUSPENSE_LIST_TYPE ||\n (\"object\" === typeof type &&\n null !== type &&\n (type.$$typeof === REACT_LAZY_TYPE ||\n type.$$typeof === REACT_MEMO_TYPE ||\n type.$$typeof === REACT_CONTEXT_TYPE ||\n type.$$typeof === REACT_CONSUMER_TYPE ||\n type.$$typeof === REACT_FORWARD_REF_TYPE ||\n type.$$typeof === REACT_CLIENT_REFERENCE ||\n void 0 !== type.getModuleId))\n ? !0\n : !1;\n};\nexports.typeOf = typeOf;\n","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function typeOf(object) {\n if (\"object\" === typeof object && null !== object) {\n var $$typeof = object.$$typeof;\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n switch (((object = object.type), object)) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n case REACT_VIEW_TRANSITION_TYPE:\n return object;\n default:\n switch (((object = object && object.$$typeof), object)) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n return object;\n case REACT_CONSUMER_TYPE:\n return object;\n default:\n return $$typeof;\n }\n }\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n }\n var REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\n exports.ContextConsumer = REACT_CONSUMER_TYPE;\n exports.ContextProvider = REACT_CONTEXT_TYPE;\n exports.Element = REACT_ELEMENT_TYPE;\n exports.ForwardRef = REACT_FORWARD_REF_TYPE;\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.Lazy = REACT_LAZY_TYPE;\n exports.Memo = REACT_MEMO_TYPE;\n exports.Portal = REACT_PORTAL_TYPE;\n exports.Profiler = REACT_PROFILER_TYPE;\n exports.StrictMode = REACT_STRICT_MODE_TYPE;\n exports.Suspense = REACT_SUSPENSE_TYPE;\n exports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;\n exports.isContextConsumer = function (object) {\n return typeOf(object) === REACT_CONSUMER_TYPE;\n };\n exports.isContextProvider = function (object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n };\n exports.isElement = function (object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n };\n exports.isForwardRef = function (object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n };\n exports.isFragment = function (object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n };\n exports.isLazy = function (object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n };\n exports.isMemo = function (object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n };\n exports.isPortal = function (object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n };\n exports.isProfiler = function (object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n };\n exports.isStrictMode = function (object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n };\n exports.isSuspense = function (object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n };\n exports.isSuspenseList = function (object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n };\n exports.isValidElementType = function (type) {\n return \"string\" === typeof type ||\n \"function\" === typeof type ||\n type === REACT_FRAGMENT_TYPE ||\n type === REACT_PROFILER_TYPE ||\n type === REACT_STRICT_MODE_TYPE ||\n type === REACT_SUSPENSE_TYPE ||\n type === REACT_SUSPENSE_LIST_TYPE ||\n (\"object\" === typeof type &&\n null !== type &&\n (type.$$typeof === REACT_LAZY_TYPE ||\n type.$$typeof === REACT_MEMO_TYPE ||\n type.$$typeof === REACT_CONTEXT_TYPE ||\n type.$$typeof === REACT_CONSUMER_TYPE ||\n type.$$typeof === REACT_FORWARD_REF_TYPE ||\n type.$$typeof === REACT_CLIENT_REFERENCE ||\n void 0 !== type.getModuleId))\n ? !0\n : !1;\n };\n exports.typeOf = typeOf;\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import * as React from 'react';\nimport { isValidElementType } from 'react-is';\n\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n if (typeof item !== 'object' || item === null) {\n return false;\n }\n const prototype = Object.getPrototypeOf(item);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n if (/*#__PURE__*/React.isValidElement(source) || isValidElementType(source) || !isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\n\n/**\n * Merge objects deeply.\n * It will shallow copy React elements.\n *\n * If `options.clone` is set to `false` the source object will be merged directly into the target object.\n *\n * @example\n * ```ts\n * deepmerge({ a: { b: 1 }, d: 2 }, { a: { c: 2 }, d: 4 });\n * // => { a: { b: 1, c: 2 }, d: 4 }\n * ````\n *\n * @param target The target object.\n * @param source The source object.\n * @param options The merge options.\n * @param options.clone Set to `false` to merge the source object directly into the target object.\n * @returns The merged object.\n */\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? {\n ...target\n } : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n if (/*#__PURE__*/React.isValidElement(source[key]) || isValidElementType(source[key])) {\n output[key] = source[key];\n } else if (isPlainObject(source[key]) &&\n // Avoid prototype pollution\n Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","// Sorted ASC by size. That's important.\n// It can't be configured as it's used statically for propTypes.\nexport const breakpointKeys = ['xs', 'sm', 'md', 'lg', 'xl'];\nconst sortBreakpointsValues = values => {\n const breakpointsAsArray = Object.keys(values).map(key => ({\n key,\n val: values[key]\n })) || [];\n // Sort in ascending order\n breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);\n return breakpointsAsArray.reduce((acc, obj) => {\n return {\n ...acc,\n [obj.key]: obj.val\n };\n }, {});\n};\n\n// Keep in mind that @media is inclusive by the CSS specification.\nexport default function createBreakpoints(breakpoints) {\n const {\n // The breakpoint **start** at this value.\n // For instance with the first breakpoint xs: [xs, sm).\n values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n },\n unit = 'px',\n step = 5,\n ...other\n } = breakpoints;\n const sortedValues = sortBreakpointsValues(values);\n const keys = Object.keys(sortedValues);\n function up(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (min-width:${value}${unit})`;\n }\n function down(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (max-width:${value - step / 100}${unit})`;\n }\n function between(start, end) {\n const endIndex = keys.indexOf(end);\n return `@media (min-width:${typeof values[start] === 'number' ? values[start] : start}${unit}) and ` + `(max-width:${(endIndex !== -1 && typeof values[keys[endIndex]] === 'number' ? values[keys[endIndex]] : end) - step / 100}${unit})`;\n }\n function only(key) {\n if (keys.indexOf(key) + 1 < keys.length) {\n return between(key, keys[keys.indexOf(key) + 1]);\n }\n return up(key);\n }\n function not(key) {\n // handle first and last key separately, for better readability\n const keyIndex = keys.indexOf(key);\n if (keyIndex === 0) {\n return up(keys[1]);\n }\n if (keyIndex === keys.length - 1) {\n return down(keys[keyIndex]);\n }\n return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');\n }\n return {\n keys,\n values: sortedValues,\n up,\n down,\n between,\n only,\n not,\n unit,\n ...other\n };\n}","const shape = {\n borderRadius: 4\n};\nexport default shape;","import PropTypes from 'prop-types';\nconst responsivePropType = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) : {};\nexport default responsivePropType;","import deepmerge from '@mui/utils/deepmerge';\nfunction merge(acc, item) {\n if (!item) {\n return acc;\n }\n return deepmerge(acc, item, {\n clone: false // No need to clone deep, it's way faster.\n });\n}\nexport default merge;","import PropTypes from 'prop-types';\nimport deepmerge from '@mui/utils/deepmerge';\nimport merge from \"../merge/index.js\";\nimport { isCqShorthand, getContainerQuery } from \"../cssContainerQueries/index.js\";\n\n// The breakpoint **start** at this value.\n// For instance with the first breakpoint xs: [xs, sm[.\nexport const values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n};\nconst defaultBreakpoints = {\n // Sorted ASC by size. That's important.\n // It can't be configured as it's used statically for propTypes.\n keys: ['xs', 'sm', 'md', 'lg', 'xl'],\n up: key => `@media (min-width:${values[key]}px)`\n};\nconst defaultContainerQueries = {\n containerQueries: containerName => ({\n up: key => {\n let result = typeof key === 'number' ? key : values[key] || key;\n if (typeof result === 'number') {\n result = `${result}px`;\n }\n return containerName ? `@container ${containerName} (min-width:${result})` : `@container (min-width:${result})`;\n }\n })\n};\nexport function handleBreakpoints(props, propValue, styleFromPropValue) {\n const theme = props.theme || {};\n if (Array.isArray(propValue)) {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return propValue.reduce((acc, item, index) => {\n acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);\n return acc;\n }, {});\n }\n if (typeof propValue === 'object') {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return Object.keys(propValue).reduce((acc, breakpoint) => {\n if (isCqShorthand(themeBreakpoints.keys, breakpoint)) {\n const containerKey = getContainerQuery(theme.containerQueries ? theme : defaultContainerQueries, breakpoint);\n if (containerKey) {\n acc[containerKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n }\n }\n // key is breakpoint\n else if (Object.keys(themeBreakpoints.values || values).includes(breakpoint)) {\n const mediaKey = themeBreakpoints.up(breakpoint);\n acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n } else {\n const cssKey = breakpoint;\n acc[cssKey] = propValue[cssKey];\n }\n return acc;\n }, {});\n }\n const output = styleFromPropValue(propValue);\n return output;\n}\nfunction breakpoints(styleFunction) {\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const newStyleFunction = props => {\n const theme = props.theme || {};\n const base = styleFunction(props);\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n const extended = themeBreakpoints.keys.reduce((acc, key) => {\n if (props[key]) {\n acc = acc || {};\n acc[themeBreakpoints.up(key)] = styleFunction({\n theme,\n ...props[key]\n });\n }\n return acc;\n }, null);\n return merge(base, extended);\n };\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? {\n ...styleFunction.propTypes,\n xs: PropTypes.object,\n sm: PropTypes.object,\n md: PropTypes.object,\n lg: PropTypes.object,\n xl: PropTypes.object\n } : {};\n newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl', ...styleFunction.filterProps];\n return newStyleFunction;\n}\nexport function createEmptyBreakpointObject(breakpointsInput = {}) {\n const breakpointsInOrder = breakpointsInput.keys?.reduce((acc, key) => {\n const breakpointStyleKey = breakpointsInput.up(key);\n acc[breakpointStyleKey] = {};\n return acc;\n }, {});\n return breakpointsInOrder || {};\n}\nexport function removeUnusedBreakpoints(breakpointKeys, style) {\n return breakpointKeys.reduce((acc, key) => {\n const breakpointOutput = acc[key];\n const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0;\n if (isBreakpointUnused) {\n delete acc[key];\n }\n return acc;\n }, style);\n}\nexport function mergeBreakpointsInOrder(breakpointsInput, ...styles) {\n const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);\n const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});\n return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);\n}\n\n// compute base for responsive values; e.g.,\n// [1,2,3] => {xs: true, sm: true, md: true}\n// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}\nexport function computeBreakpointsBase(breakpointValues, themeBreakpoints) {\n // fixed value\n if (typeof breakpointValues !== 'object') {\n return {};\n }\n const base = {};\n const breakpointsKeys = Object.keys(themeBreakpoints);\n if (Array.isArray(breakpointValues)) {\n breakpointsKeys.forEach((breakpoint, i) => {\n if (i < breakpointValues.length) {\n base[breakpoint] = true;\n }\n });\n } else {\n breakpointsKeys.forEach(breakpoint => {\n if (breakpointValues[breakpoint] != null) {\n base[breakpoint] = true;\n }\n });\n }\n return base;\n}\nexport function resolveBreakpointValues({\n values: breakpointValues,\n breakpoints: themeBreakpoints,\n base: customBase\n}) {\n const base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints);\n const keys = Object.keys(base);\n if (keys.length === 0) {\n return breakpointValues;\n }\n let previous;\n return keys.reduce((acc, breakpoint, i) => {\n if (Array.isArray(breakpointValues)) {\n acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];\n previous = i;\n } else if (typeof breakpointValues === 'object') {\n acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous];\n previous = breakpoint;\n } else {\n acc[breakpoint] = breakpointValues;\n }\n return acc;\n }, {});\n}\nexport default breakpoints;","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/**\n * For using in `sx` prop to sort the breakpoint from low to high.\n * Note: this function does not work and will not support multiple units.\n * e.g. input: { '@container (min-width:300px)': '1rem', '@container (min-width:40rem)': '2rem' }\n * output: { '@container (min-width:40rem)': '2rem', '@container (min-width:300px)': '1rem' } // since 40 < 300 eventhough 40rem > 300px\n */\nexport function sortContainerQueries(theme, css) {\n if (!theme.containerQueries) {\n return css;\n }\n const sorted = Object.keys(css).filter(key => key.startsWith('@container')).sort((a, b) => {\n const regex = /min-width:\\s*([0-9.]+)/;\n return +(a.match(regex)?.[1] || 0) - +(b.match(regex)?.[1] || 0);\n });\n if (!sorted.length) {\n return css;\n }\n return sorted.reduce((acc, key) => {\n const value = css[key];\n delete acc[key];\n acc[key] = value;\n return acc;\n }, {\n ...css\n });\n}\nexport function isCqShorthand(breakpointKeys, value) {\n return value === '@' || value.startsWith('@') && (breakpointKeys.some(key => value.startsWith(`@${key}`)) || !!value.match(/^@\\d/));\n}\nexport function getContainerQuery(theme, shorthand) {\n const matches = shorthand.match(/^@([^/]+)?\\/?(.+)?$/);\n if (!matches) {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \\`@<breakpoint | number>\\` or \\`@<breakpoint | number>/<container>\\`.\\n` + 'For example, `@sm` or `@600` or `@40rem/sidebar`.' : _formatErrorMessage(18, `(${shorthand})`));\n }\n return null;\n }\n const [, containerQuery, containerName] = matches;\n const value = Number.isNaN(+containerQuery) ? containerQuery || 0 : +containerQuery;\n return theme.containerQueries(containerName).up(value);\n}\nexport default function cssContainerQueries(themeInput) {\n const toContainerQuery = (mediaQuery, name) => mediaQuery.replace('@media', name ? `@container ${name}` : '@container');\n function attachCq(node, name) {\n node.up = (...args) => toContainerQuery(themeInput.breakpoints.up(...args), name);\n node.down = (...args) => toContainerQuery(themeInput.breakpoints.down(...args), name);\n node.between = (...args) => toContainerQuery(themeInput.breakpoints.between(...args), name);\n node.only = (...args) => toContainerQuery(themeInput.breakpoints.only(...args), name);\n node.not = (...args) => {\n const result = toContainerQuery(themeInput.breakpoints.not(...args), name);\n if (result.includes('not all and')) {\n // `@container` does not work with `not all and`, so need to invert the logic\n return result.replace('not all and ', '').replace('min-width:', 'width<').replace('max-width:', 'width>').replace('and', 'or');\n }\n return result;\n };\n }\n const node = {};\n const containerQueries = name => {\n attachCq(node, name);\n return node;\n };\n attachCq(containerQueries);\n return {\n ...themeInput,\n containerQueries\n };\n}","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: `capitalize(string)` expects a string argument.' : _formatErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","import capitalize from '@mui/utils/capitalize';\nimport responsivePropType from \"../responsivePropType/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nexport function getPath(obj, path, checkVars = true) {\n if (!path || typeof path !== 'string') {\n return null;\n }\n\n // Check if CSS variables are used\n if (obj && obj.vars && checkVars) {\n const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);\n if (val != null) {\n return val;\n }\n }\n return path.split('.').reduce((acc, item) => {\n if (acc && acc[item] != null) {\n return acc[item];\n }\n return null;\n }, obj);\n}\nexport function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {\n let value;\n if (typeof themeMapping === 'function') {\n value = themeMapping(propValueFinal);\n } else if (Array.isArray(themeMapping)) {\n value = themeMapping[propValueFinal] || userValue;\n } else {\n value = getPath(themeMapping, propValueFinal) || userValue;\n }\n if (transform) {\n value = transform(value, userValue, themeMapping);\n }\n return value;\n}\nfunction style(options) {\n const {\n prop,\n cssProperty = options.prop,\n themeKey,\n transform\n } = options;\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n if (props[prop] == null) {\n return null;\n }\n const propValue = props[prop];\n const theme = props.theme;\n const themeMapping = getPath(theme, themeKey) || {};\n const styleFromPropValue = propValueFinal => {\n let value = getStyleValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, propValue, styleFromPropValue);\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? {\n [prop]: responsivePropType\n } : {};\n fn.filterProps = [prop];\n return fn;\n}\nexport default style;","import responsivePropType from \"../responsivePropType/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nimport { getPath } from \"../style/index.js\";\nimport merge from \"../merge/index.js\";\nimport memoize from \"../memoize/index.js\";\nconst properties = {\n m: 'margin',\n p: 'padding'\n};\nconst directions = {\n t: 'Top',\n r: 'Right',\n b: 'Bottom',\n l: 'Left',\n x: ['Left', 'Right'],\n y: ['Top', 'Bottom']\n};\nconst aliases = {\n marginX: 'mx',\n marginY: 'my',\n paddingX: 'px',\n paddingY: 'py'\n};\n\n// memoize() impact:\n// From 300,000 ops/sec\n// To 350,000 ops/sec\nconst getCssProperties = memoize(prop => {\n // It's not a shorthand notation.\n if (prop.length > 2) {\n if (aliases[prop]) {\n prop = aliases[prop];\n } else {\n return [prop];\n }\n }\n const [a, b] = prop.split('');\n const property = properties[a];\n const direction = directions[b] || '';\n return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];\n});\nexport const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];\nexport const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];\nconst spacingKeys = [...marginKeys, ...paddingKeys];\nexport function createUnaryUnit(theme, themeKey, defaultValue, propName) {\n const themeSpacing = getPath(theme, themeKey, true) ?? defaultValue;\n if (typeof themeSpacing === 'number' || typeof themeSpacing === 'string') {\n return val => {\n if (typeof val === 'string') {\n return val;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (typeof val !== 'number') {\n console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${val}.`);\n }\n }\n if (typeof themeSpacing === 'string') {\n if (themeSpacing.startsWith('var(') && val === 0) {\n return 0;\n }\n if (themeSpacing.startsWith('var(') && val === 1) {\n return themeSpacing;\n }\n return `calc(${val} * ${themeSpacing})`;\n }\n return themeSpacing * val;\n };\n }\n if (Array.isArray(themeSpacing)) {\n return val => {\n if (typeof val === 'string') {\n return val;\n }\n const abs = Math.abs(val);\n if (process.env.NODE_ENV !== 'production') {\n if (!Number.isInteger(abs)) {\n console.error([`MUI: The \\`theme.${themeKey}\\` array type cannot be combined with non integer values.` + `You should either use an integer value that can be used as index, or define the \\`theme.${themeKey}\\` as a number.`].join('\\n'));\n } else if (abs > themeSpacing.length - 1) {\n console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join('\\n'));\n }\n }\n const transformed = themeSpacing[abs];\n if (val >= 0) {\n return transformed;\n }\n if (typeof transformed === 'number') {\n return -transformed;\n }\n if (typeof transformed === 'string' && transformed.startsWith('var(')) {\n return `calc(-1 * ${transformed})`;\n }\n return `-${transformed}`;\n };\n }\n if (typeof themeSpacing === 'function') {\n return themeSpacing;\n }\n if (process.env.NODE_ENV !== 'production') {\n console.error([`MUI: The \\`theme.${themeKey}\\` value (${themeSpacing}) is invalid.`, 'It should be a number, an array or a function.'].join('\\n'));\n }\n return () => undefined;\n}\nexport function createUnarySpacing(theme) {\n return createUnaryUnit(theme, 'spacing', 8, 'spacing');\n}\nexport function getValue(transformer, propValue) {\n if (typeof propValue === 'string' || propValue == null) {\n return propValue;\n }\n return transformer(propValue);\n}\nexport function getStyleFromPropValue(cssProperties, transformer) {\n return propValue => cssProperties.reduce((acc, cssProperty) => {\n acc[cssProperty] = getValue(transformer, propValue);\n return acc;\n }, {});\n}\nfunction resolveCssProperty(props, keys, prop, transformer) {\n // Using a hash computation over an array iteration could be faster, but with only 28 items,\n // it's doesn't worth the bundle size.\n if (!keys.includes(prop)) {\n return null;\n }\n const cssProperties = getCssProperties(prop);\n const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);\n const propValue = props[prop];\n return handleBreakpoints(props, propValue, styleFromPropValue);\n}\nfunction style(props, keys) {\n const transformer = createUnarySpacing(props.theme);\n return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});\n}\nexport function margin(props) {\n return style(props, marginKeys);\n}\nmargin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nmargin.filterProps = marginKeys;\nexport function padding(props) {\n return style(props, paddingKeys);\n}\npadding.propTypes = process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\npadding.filterProps = paddingKeys;\nfunction spacing(props) {\n return style(props, spacingKeys);\n}\nspacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nspacing.filterProps = spacingKeys;\nexport default spacing;","export default function memoize(fn) {\n const cache = {};\n return arg => {\n if (cache[arg] === undefined) {\n cache[arg] = fn(arg);\n }\n return cache[arg];\n };\n}","import merge from \"../merge/index.js\";\nfunction compose(...styles) {\n const handlers = styles.reduce((acc, style) => {\n style.filterProps.forEach(prop => {\n acc[prop] = style;\n });\n return acc;\n }, {});\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n return Object.keys(props).reduce((acc, prop) => {\n if (handlers[prop]) {\n return merge(acc, handlers[prop](props));\n }\n return acc;\n }, {});\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce((acc, style) => Object.assign(acc, style.propTypes), {}) : {};\n fn.filterProps = styles.reduce((acc, style) => acc.concat(style.filterProps), []);\n return fn;\n}\nexport default compose;","import responsivePropType from \"../responsivePropType/index.js\";\nimport style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nimport { createUnaryUnit, getValue } from \"../spacing/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nexport function borderTransform(value) {\n if (typeof value !== 'number') {\n return value;\n }\n return `${value}px solid`;\n}\nfunction createBorderStyle(prop, transform) {\n return style({\n prop,\n themeKey: 'borders',\n transform\n });\n}\nexport const border = createBorderStyle('border', borderTransform);\nexport const borderTop = createBorderStyle('borderTop', borderTransform);\nexport const borderRight = createBorderStyle('borderRight', borderTransform);\nexport const borderBottom = createBorderStyle('borderBottom', borderTransform);\nexport const borderLeft = createBorderStyle('borderLeft', borderTransform);\nexport const borderColor = createBorderStyle('borderColor');\nexport const borderTopColor = createBorderStyle('borderTopColor');\nexport const borderRightColor = createBorderStyle('borderRightColor');\nexport const borderBottomColor = createBorderStyle('borderBottomColor');\nexport const borderLeftColor = createBorderStyle('borderLeftColor');\nexport const outline = createBorderStyle('outline', borderTransform);\nexport const outlineColor = createBorderStyle('outlineColor');\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const borderRadius = props => {\n if (props.borderRadius !== undefined && props.borderRadius !== null) {\n const transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');\n const styleFromPropValue = propValue => ({\n borderRadius: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.borderRadius, styleFromPropValue);\n }\n return null;\n};\nborderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {\n borderRadius: responsivePropType\n} : {};\nborderRadius.filterProps = ['borderRadius'];\nconst borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);\nexport default borders;","import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nimport { createUnaryUnit, getValue } from \"../spacing/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nimport responsivePropType from \"../responsivePropType/index.js\";\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const gap = props => {\n if (props.gap !== undefined && props.gap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'gap');\n const styleFromPropValue = propValue => ({\n gap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.gap, styleFromPropValue);\n }\n return null;\n};\ngap.propTypes = process.env.NODE_ENV !== 'production' ? {\n gap: responsivePropType\n} : {};\ngap.filterProps = ['gap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const columnGap = props => {\n if (props.columnGap !== undefined && props.columnGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'columnGap');\n const styleFromPropValue = propValue => ({\n columnGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.columnGap, styleFromPropValue);\n }\n return null;\n};\ncolumnGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n columnGap: responsivePropType\n} : {};\ncolumnGap.filterProps = ['columnGap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const rowGap = props => {\n if (props.rowGap !== undefined && props.rowGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'rowGap');\n const styleFromPropValue = propValue => ({\n rowGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.rowGap, styleFromPropValue);\n }\n return null;\n};\nrowGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n rowGap: responsivePropType\n} : {};\nrowGap.filterProps = ['rowGap'];\nexport const gridColumn = style({\n prop: 'gridColumn'\n});\nexport const gridRow = style({\n prop: 'gridRow'\n});\nexport const gridAutoFlow = style({\n prop: 'gridAutoFlow'\n});\nexport const gridAutoColumns = style({\n prop: 'gridAutoColumns'\n});\nexport const gridAutoRows = style({\n prop: 'gridAutoRows'\n});\nexport const gridTemplateColumns = style({\n prop: 'gridTemplateColumns'\n});\nexport const gridTemplateRows = style({\n prop: 'gridTemplateRows'\n});\nexport const gridTemplateAreas = style({\n prop: 'gridTemplateAreas'\n});\nexport const gridArea = style({\n prop: 'gridArea'\n});\nconst grid = compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);\nexport default grid;","import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nexport function paletteTransform(value, userValue) {\n if (userValue === 'grey') {\n return userValue;\n }\n return value;\n}\nexport const color = style({\n prop: 'color',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const bgcolor = style({\n prop: 'bgcolor',\n cssProperty: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const backgroundColor = style({\n prop: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nconst palette = compose(color, bgcolor, backgroundColor);\nexport default palette;","import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nimport { handleBreakpoints, values as breakpointsValues } from \"../breakpoints/index.js\";\nexport function sizingTransform(value) {\n return value <= 1 && value !== 0 ? `${value * 100}%` : value;\n}\nexport const width = style({\n prop: 'width',\n transform: sizingTransform\n});\nexport const maxWidth = props => {\n if (props.maxWidth !== undefined && props.maxWidth !== null) {\n const styleFromPropValue = propValue => {\n const breakpoint = props.theme?.breakpoints?.values?.[propValue] || breakpointsValues[propValue];\n if (!breakpoint) {\n return {\n maxWidth: sizingTransform(propValue)\n };\n }\n if (props.theme?.breakpoints?.unit !== 'px') {\n return {\n maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`\n };\n }\n return {\n maxWidth: breakpoint\n };\n };\n return handleBreakpoints(props, props.maxWidth, styleFromPropValue);\n }\n return null;\n};\nmaxWidth.filterProps = ['maxWidth'];\nexport const minWidth = style({\n prop: 'minWidth',\n transform: sizingTransform\n});\nexport const height = style({\n prop: 'height',\n transform: sizingTransform\n});\nexport const maxHeight = style({\n prop: 'maxHeight',\n transform: sizingTransform\n});\nexport const minHeight = style({\n prop: 'minHeight',\n transform: sizingTransform\n});\nexport const sizeWidth = style({\n prop: 'size',\n cssProperty: 'width',\n transform: sizingTransform\n});\nexport const sizeHeight = style({\n prop: 'size',\n cssProperty: 'height',\n transform: sizingTransform\n});\nexport const boxSizing = style({\n prop: 'boxSizing'\n});\nconst sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);\nexport default sizing;","import { padding, margin } from \"../spacing/index.js\";\nimport { borderRadius, borderTransform } from \"../borders/index.js\";\nimport { gap, rowGap, columnGap } from \"../cssGrid/index.js\";\nimport { paletteTransform } from \"../palette/index.js\";\nimport { maxWidth, sizingTransform } from \"../sizing/index.js\";\nconst defaultSxConfig = {\n // borders\n border: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderTop: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderRight: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderBottom: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderLeft: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderColor: {\n themeKey: 'palette'\n },\n borderTopColor: {\n themeKey: 'palette'\n },\n borderRightColor: {\n themeKey: 'palette'\n },\n borderBottomColor: {\n themeKey: 'palette'\n },\n borderLeftColor: {\n themeKey: 'palette'\n },\n outline: {\n themeKey: 'borders',\n transform: borderTransform\n },\n outlineColor: {\n themeKey: 'palette'\n },\n borderRadius: {\n themeKey: 'shape.borderRadius',\n style: borderRadius\n },\n // palette\n color: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n bgcolor: {\n themeKey: 'palette',\n cssProperty: 'backgroundColor',\n transform: paletteTransform\n },\n backgroundColor: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n // spacing\n p: {\n style: padding\n },\n pt: {\n style: padding\n },\n pr: {\n style: padding\n },\n pb: {\n style: padding\n },\n pl: {\n style: padding\n },\n px: {\n style: padding\n },\n py: {\n style: padding\n },\n padding: {\n style: padding\n },\n paddingTop: {\n style: padding\n },\n paddingRight: {\n style: padding\n },\n paddingBottom: {\n style: padding\n },\n paddingLeft: {\n style: padding\n },\n paddingX: {\n style: padding\n },\n paddingY: {\n style: padding\n },\n paddingInline: {\n style: padding\n },\n paddingInlineStart: {\n style: padding\n },\n paddingInlineEnd: {\n style: padding\n },\n paddingBlock: {\n style: padding\n },\n paddingBlockStart: {\n style: padding\n },\n paddingBlockEnd: {\n style: padding\n },\n m: {\n style: margin\n },\n mt: {\n style: margin\n },\n mr: {\n style: margin\n },\n mb: {\n style: margin\n },\n ml: {\n style: margin\n },\n mx: {\n style: margin\n },\n my: {\n style: margin\n },\n margin: {\n style: margin\n },\n marginTop: {\n style: margin\n },\n marginRight: {\n style: margin\n },\n marginBottom: {\n style: margin\n },\n marginLeft: {\n style: margin\n },\n marginX: {\n style: margin\n },\n marginY: {\n style: margin\n },\n marginInline: {\n style: margin\n },\n marginInlineStart: {\n style: margin\n },\n marginInlineEnd: {\n style: margin\n },\n marginBlock: {\n style: margin\n },\n marginBlockStart: {\n style: margin\n },\n marginBlockEnd: {\n style: margin\n },\n // display\n displayPrint: {\n cssProperty: false,\n transform: value => ({\n '@media print': {\n display: value\n }\n })\n },\n display: {},\n overflow: {},\n textOverflow: {},\n visibility: {},\n whiteSpace: {},\n // flexbox\n flexBasis: {},\n flexDirection: {},\n flexWrap: {},\n justifyContent: {},\n alignItems: {},\n alignContent: {},\n order: {},\n flex: {},\n flexGrow: {},\n flexShrink: {},\n alignSelf: {},\n justifyItems: {},\n justifySelf: {},\n // grid\n gap: {\n style: gap\n },\n rowGap: {\n style: rowGap\n },\n columnGap: {\n style: columnGap\n },\n gridColumn: {},\n gridRow: {},\n gridAutoFlow: {},\n gridAutoColumns: {},\n gridAutoRows: {},\n gridTemplateColumns: {},\n gridTemplateRows: {},\n gridTemplateAreas: {},\n gridArea: {},\n // positions\n position: {},\n zIndex: {\n themeKey: 'zIndex'\n },\n top: {},\n right: {},\n bottom: {},\n left: {},\n // shadows\n boxShadow: {\n themeKey: 'shadows'\n },\n // sizing\n width: {\n transform: sizingTransform\n },\n maxWidth: {\n style: maxWidth\n },\n minWidth: {\n transform: sizingTransform\n },\n height: {\n transform: sizingTransform\n },\n maxHeight: {\n transform: sizingTransform\n },\n minHeight: {\n transform: sizingTransform\n },\n boxSizing: {},\n // typography\n font: {\n themeKey: 'font'\n },\n fontFamily: {\n themeKey: 'typography'\n },\n fontSize: {\n themeKey: 'typography'\n },\n fontStyle: {\n themeKey: 'typography'\n },\n fontWeight: {\n themeKey: 'typography'\n },\n letterSpacing: {},\n textTransform: {},\n lineHeight: {},\n textAlign: {},\n typography: {\n cssProperty: false,\n themeKey: 'typography'\n }\n};\nexport default defaultSxConfig;","import capitalize from '@mui/utils/capitalize';\nimport merge from \"../merge/index.js\";\nimport { getPath, getStyleValue as getValue } from \"../style/index.js\";\nimport { handleBreakpoints, createEmptyBreakpointObject, removeUnusedBreakpoints } from \"../breakpoints/index.js\";\nimport { sortContainerQueries } from \"../cssContainerQueries/index.js\";\nimport defaultSxConfig from \"./defaultSxConfig.js\";\nfunction objectsHaveSameKeys(...objects) {\n const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);\n const union = new Set(allKeys);\n return objects.every(object => union.size === Object.keys(object).length);\n}\nfunction callIfFn(maybeFn, arg) {\n return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_createStyleFunctionSx() {\n function getThemeValue(prop, val, theme, config) {\n const props = {\n [prop]: val,\n theme\n };\n const options = config[prop];\n if (!options) {\n return {\n [prop]: val\n };\n }\n const {\n cssProperty = prop,\n themeKey,\n transform,\n style\n } = options;\n if (val == null) {\n return null;\n }\n\n // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123\n if (themeKey === 'typography' && val === 'inherit') {\n return {\n [prop]: val\n };\n }\n const themeMapping = getPath(theme, themeKey) || {};\n if (style) {\n return style(props);\n }\n const styleFromPropValue = propValueFinal => {\n let value = getValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, val, styleFromPropValue);\n }\n function styleFunctionSx(props) {\n const {\n sx,\n theme = {}\n } = props || {};\n if (!sx) {\n return null; // Emotion & styled-components will neglect null\n }\n const config = theme.unstable_sxConfig ?? defaultSxConfig;\n\n /*\n * Receive `sxInput` as object or callback\n * and then recursively check keys & values to create media query object styles.\n * (the result will be used in `styled`)\n */\n function traverse(sxInput) {\n let sxObject = sxInput;\n if (typeof sxInput === 'function') {\n sxObject = sxInput(theme);\n } else if (typeof sxInput !== 'object') {\n // value\n return sxInput;\n }\n if (!sxObject) {\n return null;\n }\n const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);\n const breakpointsKeys = Object.keys(emptyBreakpoints);\n let css = emptyBreakpoints;\n Object.keys(sxObject).forEach(styleKey => {\n const value = callIfFn(sxObject[styleKey], theme);\n if (value !== null && value !== undefined) {\n if (typeof value === 'object') {\n if (config[styleKey]) {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n } else {\n const breakpointsValues = handleBreakpoints({\n theme\n }, value, x => ({\n [styleKey]: x\n }));\n if (objectsHaveSameKeys(breakpointsValues, value)) {\n css[styleKey] = styleFunctionSx({\n sx: value,\n theme\n });\n } else {\n css = merge(css, breakpointsValues);\n }\n }\n } else {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n }\n }\n });\n return sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css));\n }\n return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);\n }\n return styleFunctionSx;\n}\nconst styleFunctionSx = unstable_createStyleFunctionSx();\nstyleFunctionSx.filterProps = ['sx'];\nexport default styleFunctionSx;","/**\n * A universal utility to style components with multiple color modes. Always use it from the theme object.\n * It works with:\n * - [Basic theme](https://mui.com/material-ui/customization/dark-mode/)\n * - [CSS theme variables](https://mui.com/material-ui/customization/css-theme-variables/overview/)\n * - Zero-runtime engine\n *\n * Tips: Use an array over object spread and place `theme.applyStyles()` last.\n *\n * With the styled function:\n * ✅ [{ background: '#e5e5e5' }, theme.applyStyles('dark', { background: '#1c1c1c' })]\n * 🚫 { background: '#e5e5e5', ...theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * With the sx prop:\n * ✅ [{ background: '#e5e5e5' }, theme => theme.applyStyles('dark', { background: '#1c1c1c' })]\n * 🚫 { background: '#e5e5e5', ...theme => theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * @example\n * 1. using with `styled`:\n * ```jsx\n * const Component = styled('div')(({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]);\n * ```\n *\n * @example\n * 2. using with `sx` prop:\n * ```jsx\n * <Box sx={[\n * { background: '#e5e5e5' },\n * theme => theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]}\n * />\n * ```\n *\n * @example\n * 3. theming a component:\n * ```jsx\n * extendTheme({\n * components: {\n * MuiButton: {\n * styleOverrides: {\n * root: ({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ],\n * },\n * }\n * }\n * })\n *```\n */\nexport default function applyStyles(key, styles) {\n // @ts-expect-error this is 'any' type\n const theme = this;\n if (theme.vars) {\n if (!theme.colorSchemes?.[key] || typeof theme.getColorSchemeSelector !== 'function') {\n return {};\n }\n // If CssVarsProvider is used as a provider, returns '*:where({selector}) &'\n let selector = theme.getColorSchemeSelector(key);\n if (selector === '&') {\n return styles;\n }\n if (selector.includes('data-') || selector.includes('.')) {\n // '*' is required as a workaround for Emotion issue (https://github.com/emotion-js/emotion/issues/2836)\n selector = `*:where(${selector.replace(/\\s*&$/, '')}) &`;\n }\n return {\n [selector]: styles\n };\n }\n if (theme.palette.mode === key) {\n return styles;\n }\n return {};\n}","'use client';\n\nimport * as React from 'react';\nimport { ThemeContext } from '@mui/styled-engine';\nfunction isObjectEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction useTheme(defaultTheme = null) {\n const contextTheme = React.useContext(ThemeContext);\n return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;\n}\nexport default useTheme;","'use client';\n\nimport createTheme from \"../createTheme/index.js\";\nimport useThemeWithoutDefault from \"../useThemeWithoutDefault/index.js\";\nexport const systemDefaultTheme = createTheme();\nfunction useTheme(defaultTheme = systemDefaultTheme) {\n return useThemeWithoutDefault(defaultTheme);\n}\nexport default useTheme;","import deepmerge from '@mui/utils/deepmerge';\nimport createBreakpoints from \"../createBreakpoints/createBreakpoints.js\";\nimport cssContainerQueries from \"../cssContainerQueries/index.js\";\nimport shape from \"./shape.js\";\nimport createSpacing from \"./createSpacing.js\";\nimport styleFunctionSx from \"../styleFunctionSx/styleFunctionSx.js\";\nimport defaultSxConfig from \"../styleFunctionSx/defaultSxConfig.js\";\nimport applyStyles from \"./applyStyles.js\";\nfunction createTheme(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput = {},\n palette: paletteInput = {},\n spacing: spacingInput,\n shape: shapeInput = {},\n ...other\n } = options;\n const breakpoints = createBreakpoints(breakpointsInput);\n const spacing = createSpacing(spacingInput);\n let muiTheme = deepmerge({\n breakpoints,\n direction: 'ltr',\n components: {},\n // Inject component definitions.\n palette: {\n mode: 'light',\n ...paletteInput\n },\n spacing,\n shape: {\n ...shape,\n ...shapeInput\n }\n }, other);\n muiTheme = cssContainerQueries(muiTheme);\n muiTheme.applyStyles = applyStyles;\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n muiTheme.unstable_sxConfig = {\n ...defaultSxConfig,\n ...other?.unstable_sxConfig\n };\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nexport default createTheme;","import { createUnarySpacing } from \"../spacing/index.js\";\n\n// The different signatures imply different meaning for their arguments that can't be expressed structurally.\n// We express the difference with variable names.\n\nexport default function createSpacing(spacingInput = 8,\n// Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.\n// Smaller components, such as icons, can align to a 4dp grid.\n// https://m2.material.io/design/layout/understanding-layout.html\ntransform = createUnarySpacing({\n spacing: spacingInput\n})) {\n // Already transformed.\n if (spacingInput.mui) {\n return spacingInput;\n }\n const spacing = (...argsInput) => {\n if (process.env.NODE_ENV !== 'production') {\n if (!(argsInput.length <= 4)) {\n console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`);\n }\n }\n const args = argsInput.length === 0 ? [1] : argsInput;\n return args.map(argument => {\n const output = transform(argument);\n return typeof output === 'number' ? `${output}px` : output;\n }).join(' ');\n };\n spacing.mui = true;\n return spacing;\n}","import { isPlainObject } from '@mui/utils/deepmerge';\nimport defaultSxConfig from \"./defaultSxConfig.js\";\nconst splitProps = props => {\n const result = {\n systemProps: {},\n otherProps: {}\n };\n const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;\n Object.keys(props).forEach(prop => {\n if (config[prop]) {\n result.systemProps[prop] = props[prop];\n } else {\n result.otherProps[prop] = props[prop];\n }\n });\n return result;\n};\nexport default function extendSxProp(props) {\n const {\n sx: inSx,\n ...other\n } = props;\n const {\n systemProps,\n otherProps\n } = splitProps(other);\n let finalSx;\n if (Array.isArray(inSx)) {\n finalSx = [systemProps, ...inSx];\n } else if (typeof inSx === 'function') {\n finalSx = (...args) => {\n const result = inSx(...args);\n if (!isPlainObject(result)) {\n return systemProps;\n }\n return {\n ...systemProps,\n ...result\n };\n };\n } else {\n finalSx = {\n ...systemProps,\n ...inSx\n };\n }\n return {\n ...otherProps,\n sx: finalSx\n };\n}","const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n let generate = defaultGenerator;\n return {\n configure(generator) {\n generate = generator;\n },\n generate(componentName) {\n return generate(componentName);\n },\n reset() {\n generate = defaultGenerator;\n }\n };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","import ClassNameGenerator from \"../ClassNameGenerator/index.js\";\nexport const globalStateClasses = {\n active: 'active',\n checked: 'checked',\n completed: 'completed',\n disabled: 'disabled',\n error: 'error',\n expanded: 'expanded',\n focused: 'focused',\n focusVisible: 'focusVisible',\n open: 'open',\n readOnly: 'readOnly',\n required: 'required',\n selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nconst boxClasses = generateUtilityClasses('MuiBox', ['root']);\nexport default boxClasses;","'use client';\n\nimport PropTypes from 'prop-types';\nimport ClassNameGenerator from '@mui/utils/ClassNameGenerator';\nimport createBox from \"../createBox/index.js\";\nimport boxClasses from \"./boxClasses.js\";\nconst Box = createBox({\n defaultClassName: boxClasses.root,\n generateClassName: ClassNameGenerator.generate\n});\nprocess.env.NODE_ENV !== \"production\" ? Box.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Box;","'use client';\n\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport styled from '@mui/styled-engine';\nimport styleFunctionSx, { extendSxProp } from \"../styleFunctionSx/index.js\";\nimport useTheme from \"../useTheme/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createBox(options = {}) {\n const {\n themeId,\n defaultTheme,\n defaultClassName = 'MuiBox-root',\n generateClassName\n } = options;\n const BoxRoot = styled('div', {\n shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'\n })(styleFunctionSx);\n const Box = /*#__PURE__*/React.forwardRef(function Box(inProps, ref) {\n const theme = useTheme(defaultTheme);\n const {\n className,\n component = 'div',\n ...other\n } = extendSxProp(inProps);\n return /*#__PURE__*/_jsx(BoxRoot, {\n as: component,\n ref: ref,\n className: clsx(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName),\n theme: themeId ? theme[themeId] || theme : theme,\n ...other\n });\n });\n return Box;\n}","/**\n * @mui/styled-engine v7.1.1\n *\n * @license MIT\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use client';\n\n/* eslint-disable no-underscore-dangle */\nimport emStyled from '@emotion/styled';\nimport { serializeStyles as emSerializeStyles } from '@emotion/serialize';\nexport default function styled(tag, options) {\n const stylesFactory = emStyled(tag, options);\n if (process.env.NODE_ENV !== 'production') {\n return (...styles) => {\n const component = typeof tag === 'string' ? `\"${tag}\"` : 'component';\n if (styles.length === 0) {\n console.error([`MUI: Seems like you called \\`styled(${component})()\\` without a \\`style\\` argument.`, 'You must provide a `styles` argument: `styled(\"div\")(styleYouForgotToPass)`.'].join('\\n'));\n } else if (styles.some(style => style === undefined)) {\n console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);\n }\n return stylesFactory(...styles);\n };\n }\n return stylesFactory;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function internal_mutateStyles(tag, processor) {\n // Emotion attaches all the styles as `__emotion_styles`.\n // Ref: https://github.com/emotion-js/emotion/blob/16d971d0da229596d6bcc39d282ba9753c9ee7cf/packages/styled/src/base.js#L186\n if (Array.isArray(tag.__emotion_styles)) {\n tag.__emotion_styles = processor(tag.__emotion_styles);\n }\n}\n\n// Emotion only accepts an array, but we want to avoid allocations\nconst wrapper = [];\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function internal_serializeStyles(styles) {\n wrapper[0] = styles;\n return emSerializeStyles(wrapper);\n}\nexport { ThemeContext, keyframes, css } from '@emotion/react';\nexport { default as StyledEngineProvider } from \"./StyledEngineProvider/index.js\";\nexport { default as GlobalStyles } from \"./GlobalStyles/index.js\";","import generateUtilityClass from \"../generateUtilityClass/index.js\";\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n });\n return result;\n}","export function hasDigitsOnly(str: string) {\r\n return /^\\d+$/.test(str);\r\n}\r\n\r\nexport function isNumber(value: any) {\r\n return typeof value === \"number\" && !isNaN(value);\r\n}\r\n\r\nexport function isNumeric(value: string) {\r\n return (\r\n typeof value === \"string\" && value.trim() !== \"\" && !isNaN(Number(value))\r\n );\r\n}\r\n\r\nexport function capitalizeFirstLetter(str: string) {\r\n if (!str) return \"\";\r\n return str.charAt(0).toUpperCase() + str.slice(1);\r\n}\r\n\r\nexport function isValidEmail(email) {\r\n const re = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\r\n return re.test(email);\r\n}\r\n","import { EditorState, convertToRaw } from \"draft-js\";\r\nimport { Editor } from \"react-draft-wysiwyg\";\r\nimport draftToHtml from \"draftjs-to-html\";\r\nimport { stateFromHTML } from \"draft-js-import-html\";\r\nimport { useState } from \"react\";\r\nimport \"react-draft-wysiwyg/dist/react-draft-wysiwyg.css\";\r\nimport { useEffect } from \"react\";\r\nimport { Box, Paper } from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ntype HtmlEditorProps = {\r\n label?: string;\r\n value: string;\r\n setValue: (v: any) => void;\r\n maxLength: number;\r\n errorMessage?: string;\r\n};\r\n\r\nconst HtmlEditor: React.FC<HtmlEditorProps> = ({\r\n label,\r\n errorMessage,\r\n value,\r\n setValue,\r\n maxLength,\r\n}) => {\r\n const { t } = useTranslation();\r\n const options = {\r\n customInlineFn: (element, { Style }) => {\r\n if (element.style.color) {\r\n return Style(\"color-\" + element.style.color);\r\n }\r\n },\r\n };\r\n\r\n let contentState = stateFromHTML(value, options);\r\n\r\n const [editorState, setEditorState] = useState(\r\n EditorState.createWithContent(contentState)\r\n );\r\n let onEditorStateChange = (editorState) => {\r\n let newData = draftToHtml(convertToRaw(editorState.getCurrentContent()));\r\n console.log(\"Text Length \" + newData.length);\r\n if (newData.length > maxLength) {\r\n let contentState = stateFromHTML(\r\n newData.substring(0, maxLength),\r\n options\r\n );\r\n setEditorState(EditorState.createWithContent(contentState));\r\n return;\r\n } else {\r\n setEditorState(editorState);\r\n }\r\n setValue(draftToHtml(convertToRaw(editorState.getCurrentContent())));\r\n };\r\n useEffect(() => {\r\n if (value != draftToHtml(convertToRaw(editorState.getCurrentContent()))) {\r\n setEditorState(\r\n EditorState.createWithContent(stateFromHTML(value, options))\r\n );\r\n }\r\n }, [value]);\r\n const _getLengthOfSelectedText = () => {\r\n const currentSelection = editorState.getSelection();\r\n const isCollapsed = currentSelection.isCollapsed();\r\n\r\n let length = 0;\r\n\r\n if (!isCollapsed) {\r\n const currentContent = editorState.getCurrentContent();\r\n const startKey = currentSelection.getStartKey();\r\n const endKey = currentSelection.getEndKey();\r\n const startBlock = currentContent.getBlockForKey(startKey);\r\n const isStartAndEndBlockAreTheSame = startKey === endKey;\r\n const startBlockTextLength = startBlock.getLength();\r\n const startSelectedTextLength =\r\n startBlockTextLength - currentSelection.getStartOffset();\r\n const endSelectedTextLength = currentSelection.getEndOffset();\r\n const keyAfterEnd = currentContent.getKeyAfter(endKey);\r\n if (isStartAndEndBlockAreTheSame) {\r\n length +=\r\n currentSelection.getEndOffset() - currentSelection.getStartOffset();\r\n } else {\r\n let currentKey = startKey;\r\n\r\n while (currentKey && currentKey !== keyAfterEnd) {\r\n if (currentKey === startKey) {\r\n length += startSelectedTextLength + 1;\r\n } else if (currentKey === endKey) {\r\n length += endSelectedTextLength;\r\n } else {\r\n length += currentContent.getBlockForKey(currentKey).getLength() + 1;\r\n }\r\n\r\n currentKey = currentContent.getKeyAfter(currentKey);\r\n }\r\n }\r\n }\r\n\r\n return length;\r\n };\r\n return (\r\n <Paper\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n padding: 1,\r\n }}\r\n >\r\n {label ? <Box>{t(label)}</Box> : <></>}\r\n <Editor\r\n editorState={editorState}\r\n onEditorStateChange={onEditorStateChange}\r\n handlePastedText={(pastedText) => {\r\n const currentContent = editorState.getCurrentContent();\r\n const currentContentLength = currentContent.getPlainText(\"\").length;\r\n const selectedTextLength = _getLengthOfSelectedText();\r\n\r\n if (\r\n currentContentLength + pastedText.length - selectedTextLength >\r\n maxLength\r\n ) {\r\n alert(\"max text length is \" + maxLength);\r\n return \"handled\";\r\n }\r\n }}\r\n editorStyle={{\r\n height: \"200px\", // 👈 set height of content area\r\n border: \"1px solid #F1F1F1\",\r\n padding: \"10px\",\r\n overflow: \"auto\", // scroll if needed\r\n }}\r\n wrapperStyle={{ marginBottom: \"1rem\" }}\r\n toolbarStyle={{ border: \"1px solid #ccc\" }}\r\n />\r\n {errorMessage ? (\r\n <Box sx={{ color: \"red\" }}>{t(errorMessage)}</Box>\r\n ) : (\r\n <></>\r\n )}\r\n </Paper>\r\n );\r\n};\r\n\r\nexport default HtmlEditor;\r\n","import { useEffect, useState } from \"react\";\r\nimport { useAxios, useSession } from \"../../../../../hooks\";\r\nimport ComboBox from \"./ComboBox\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype SystemLookupListProps = {\r\n lookupType: string;\r\n value: any;\r\n onChangeCallBack: Function;\r\n label: string;\r\n disabled?: boolean;\r\n required?: boolean;\r\n errorMessage?: any;\r\n sx?: any;\r\n};\r\n\r\nconst SystemLookupCombobox: React.FC<SystemLookupListProps> = (props) => {\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const session = useSession();\r\n const [options, setOptions] = useState<Array<any>>([]);\r\n const { handleGetRequest } = useAxios();\r\n\r\n const loadLookupOptions = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/dev/system/lookup\",\r\n showMask: true,\r\n parameters: { lookupType: props.lookupType },\r\n successCallBkFn: (response: any) => {\r\n setOptions(response.data);\r\n },\r\n failureCallBkFn: () => {\r\n setOptions([]);\r\n },\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n if (props.lookupType) {\r\n loadLookupOptions();\r\n }\r\n }, [props.lookupType, session.UserSession]);\r\n\r\n return (\r\n <ComboBox\r\n {...props}\r\n options={options}\r\n displayField={\r\n AppLayout.appDirection === \"ltr\" ? \"lookupEnDisplay\" : \"lookupArDisplay\"\r\n }\r\n valueField=\"lookupValue\"\r\n />\r\n );\r\n};\r\n\r\nexport default SystemLookupCombobox;\r\n","import { Grid2 } from \"@mui/material\";\r\nimport TemplateTextField from \"./FormFields/TemplateTextField\";\r\nimport Datefield from \"./FormFields/Datefield\";\r\nimport DatetimeField from \"./FormFields/DatetimeField\";\r\nimport ComboBox from \"./FormFields/ComboBox\";\r\nimport CheckBox from \"./FormFields/CheckBox\";\r\nimport { DATE_FORMAT, DATE_TIME_FORMAT } from \"../../../../util/constants\";\r\nimport { isNumeric } from \"../../../../util/AppUtils\";\r\nimport { FormElementFieldProps } from \"../DataEntryTypes\";\r\nimport HtmlEditor from \"./FormFields/HtmlEditor\";\r\nimport SystemLookupCombobox from \"./FormFields/SystemLookupCombobox\";\r\n\r\nconst FormElementField: React.FC<FormElementFieldProps> = (\r\n element: FormElementFieldProps\r\n) => {\r\n if (element?.fieldInfo) {\r\n const props = element.fieldInfo;\r\n const formManager = element?.formManager || null;\r\n const formActions = element?.formActions || null;\r\n const formValues = element?.formValues || null;\r\n const fieldName: any = element?.fieldInfo?.fieldName || null;\r\n const fieldType = element?.fieldInfo?.fieldType || null;\r\n if (!(props && formManager && formValues && fieldName && fieldType)) {\r\n return <></>;\r\n }\r\n return !element.hiddenFields.includes(fieldName) ? (\r\n <Grid2\r\n size={\r\n props?.formProps?.fieldSize || {\r\n lg: 12,\r\n md: 12,\r\n sm: 12,\r\n }\r\n }\r\n sx={{\r\n padding: 1,\r\n width: \"100%\",\r\n }}\r\n >\r\n {fieldType === \"text\" || fieldType === \"number\" ? (\r\n <TemplateTextField\r\n {...props.muiTextFieldProps}\r\n fullWidth\r\n type={fieldType}\r\n disabled={\r\n props?.disabled || element.disabledFields.includes(fieldName)\r\n ? true\r\n : false\r\n }\r\n hidden={props?.hidden || false}\r\n label={props?.fieldLabel}\r\n value={formValues[fieldName]}\r\n onChange={(event) => {\r\n let newValue = null;\r\n if (event.target.value != \"\") {\r\n if (fieldType === \"number\" && isNumeric(event.target.value)) {\r\n newValue = Number(event.target.value);\r\n } else {\r\n newValue = event.target.value;\r\n }\r\n }\r\n formManager.setValue(fieldName, newValue);\r\n if (props?.formProps?.onValueChangeCallBack) {\r\n props?.formProps?.onValueChangeCallBack(\r\n newValue,\r\n formManager,\r\n formActions\r\n );\r\n }\r\n }}\r\n sx={{\r\n \"& .MuiInputBase-root\": {\r\n height: `${props?.formProps?.fieldHeight}px` || undefined,\r\n },\r\n \"& .MuiInputBase-input\": {\r\n height: \"100% !important\", // forces full height usage\r\n },\r\n ...props?.formProps?.style,\r\n }}\r\n error={formManager.formState.errors[fieldName] != undefined}\r\n helperText={formManager?.formState?.errors[\r\n fieldName\r\n ]?.message?.toString()}\r\n />\r\n ) : props?.fieldType === \"date\" ? (\r\n <Datefield\r\n format={props?.dateFormat || DATE_FORMAT}\r\n sx={props?.formProps?.style || { width: \"100%\" }}\r\n disabled={\r\n props?.disabled || element.disabledFields.includes(fieldName)\r\n ? true\r\n : false\r\n }\r\n label={props?.fieldLabel}\r\n onChangeCallBack={(v: any) => {\r\n formManager.setValue(fieldName, v);\r\n if (props?.formProps?.onValueChangeCallBack) {\r\n props?.formProps?.onValueChangeCallBack(\r\n v,\r\n formManager,\r\n formActions\r\n );\r\n }\r\n }}\r\n value={formValues[fieldName]}\r\n error={formManager.formState.errors[fieldName] != undefined}\r\n errorMessage={formManager?.formState?.errors[\r\n fieldName\r\n ]?.message?.toString()}\r\n />\r\n ) : props?.fieldType === \"datetime\" ? (\r\n <DatetimeField\r\n format={props?.dateFormat || DATE_TIME_FORMAT}\r\n sx={props?.formProps?.style || { width: \"100%\" }}\r\n disabled={\r\n props?.disabled || element.disabledFields.includes(fieldName)\r\n ? true\r\n : false\r\n }\r\n label={props?.fieldLabel}\r\n onChangeCallBack={(v: any) => {\r\n formManager.setValue(fieldName, v);\r\n if (props?.formProps?.onValueChangeCallBack) {\r\n props?.formProps?.onValueChangeCallBack(\r\n v,\r\n formManager,\r\n formActions\r\n );\r\n }\r\n }}\r\n value={formValues[fieldName]}\r\n error={formManager.formState.errors[fieldName] != undefined}\r\n errorMessage={formManager?.formState?.errors[\r\n fieldName\r\n ]?.message?.toString()}\r\n />\r\n ) : props?.fieldType === \"checkbox\" ? (\r\n <CheckBox\r\n label={props?.fieldLabel}\r\n onChangeCallBack={(v: any) => {\r\n formManager.setValue(fieldName, v);\r\n if (props?.formProps?.onValueChangeCallBack) {\r\n props?.formProps?.onValueChangeCallBack(\r\n v,\r\n formManager,\r\n formActions\r\n );\r\n }\r\n }}\r\n value={formValues[fieldName]}\r\n checkedValue={props?.checkedValue || true}\r\n unCheckedValue={props?.unCheckedValue || false}\r\n disabled={\r\n props?.disabled || element.disabledFields.includes(fieldName)\r\n ? true\r\n : false\r\n }\r\n sx={props?.formProps?.style}\r\n />\r\n ) : props?.fieldType === \"combobox\" ? (\r\n <ComboBox\r\n sx={props?.formProps?.style || { width: \"100%\" }}\r\n label={props?.fieldLabel}\r\n disabled={\r\n props?.disabled || element.disabledFields.includes(fieldName)\r\n ? true\r\n : false\r\n }\r\n onChangeCallBack={(v: any, selectedRecord: any) => {\r\n let newValue = null;\r\n if (v) {\r\n newValue = v + \"\";\r\n }\r\n formManager.setValue(fieldName, newValue);\r\n if (props?.formProps?.onValueChangeCallBack) {\r\n props?.formProps?.onValueChangeCallBack(\r\n newValue,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n );\r\n }\r\n }}\r\n options={props?.options || []}\r\n displayField={props?.optionDisplayField || \"\"}\r\n valueField={props?.optionValueField || \"\"}\r\n value={formValues[fieldName]}\r\n errorMessage={formManager?.formState?.errors[\r\n fieldName\r\n ]?.message?.toString()}\r\n />\r\n ) : props?.fieldType === \"lookup\" ? (\r\n <SystemLookupCombobox\r\n sx={props?.formProps?.style || { width: \"100%\" }}\r\n label={props?.fieldLabel}\r\n disabled={\r\n props?.disabled || element.disabledFields.includes(fieldName)\r\n ? true\r\n : false\r\n }\r\n onChangeCallBack={(v: any, selectedRecord: any) => {\r\n let newValue = null;\r\n if (v) {\r\n newValue = v + \"\";\r\n }\r\n formManager.setValue(fieldName, newValue);\r\n if (props?.formProps?.onValueChangeCallBack) {\r\n props?.formProps?.onValueChangeCallBack(\r\n newValue,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n );\r\n }\r\n }}\r\n lookupType={props.lookupType}\r\n value={formValues[fieldName]}\r\n errorMessage={formManager?.formState?.errors[\r\n fieldName\r\n ]?.message?.toString()}\r\n />\r\n ) : props?.fieldType === \"html\" ? (\r\n <HtmlEditor\r\n label={props.fieldLabel}\r\n value={formValues[fieldName] || \"\"}\r\n errorMessage={formManager?.formState?.errors[\r\n fieldName\r\n ]?.message?.toString()}\r\n setValue={(v) => {\r\n formManager.setValue(fieldName, v);\r\n if (props?.formProps?.onValueChangeCallBack) {\r\n props?.formProps?.onValueChangeCallBack(\r\n v,\r\n formManager,\r\n formActions\r\n );\r\n }\r\n }}\r\n maxLength={4000}\r\n />\r\n ) : (\r\n <>Unknown field type</>\r\n )}\r\n </Grid2>\r\n ) : (\r\n <></>\r\n );\r\n } else {\r\n return <></>;\r\n }\r\n};\r\n\r\nexport default FormElementField;\r\n","import { Button } from \"@mui/material\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { RecordAction } from \"../DataEntryTypes\";\r\nimport useSession from \"../../../../hooks/UseSession\";\r\nimport { useConfirmationWindow } from \"../../../../hooks/UseConfirmationWindow\";\r\n\r\nconst FormAction: React.FC<RecordAction> = (action: RecordAction) => {\r\n const session = useSession();\r\n const { ConfirmationWindow, setOpen: setConfirmationWindowState } =\r\n useConfirmationWindow({\r\n body: action?.confirmationMessage || \"\",\r\n title: \"Confirmation\",\r\n onConfirmationCallBk: () => {\r\n action?.actionFn(action?.record);\r\n },\r\n });\r\n if (\r\n action?.authority === undefined ||\r\n action?.authority === null ||\r\n session.isUserAuthorized(action.authority)\r\n ) {\r\n return (\r\n <>\r\n <ConfirmationWindow />\r\n <Button\r\n variant={action?.formActionProps?.actionButtonVariant}\r\n color={action?.formActionProps?.actionButtonColor}\r\n onClick={() => {\r\n if (action?.actionFn) {\r\n if (action?.preActionValidation) {\r\n if (!action.preActionValidation(action.record)) {\r\n return;\r\n }\r\n }\r\n if (action?.isConfirmationRequired === true) {\r\n setConfirmationWindowState(true);\r\n } else {\r\n action?.actionFn(action.record);\r\n }\r\n }\r\n }}\r\n >\r\n {action?.icon ? (\r\n <FontAwesomeIcon\r\n icon={action.icon}\r\n style={{ marginRight: 5, marginLeft: 5 }}\r\n />\r\n ) : (\r\n <></>\r\n )}\r\n <div>{action?.label}</div>\r\n </Button>\r\n </>\r\n );\r\n } else {\r\n return <></>;\r\n }\r\n};\r\n\r\nexport default FormAction;\r\n","import { Grid2 } from \"@mui/material\";\r\nimport FormElementField from \"./FormElementField\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport FormAction from \"./FormAction\";\r\nimport {\r\n FormElementGroupProps,\r\n FormElementProps,\r\n RecordAction,\r\n} from \"../DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nconst FormElementGroup: React.FC<FormElementGroupProps> = (\r\n props: FormElementGroupProps\r\n) => {\r\n const { t } = useTranslation();\r\n return (\r\n <>\r\n <Grid2 container sx={props?.style} alignItems=\"flex-start\">\r\n {props?.label ? (\r\n <Grid2\r\n size={12}\r\n sx={{\r\n padding: 1,\r\n fontWeight: \"bold\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n }}\r\n >\r\n {props?.icon ? (\r\n <>\r\n <FontAwesomeIcon\r\n icon={props.icon}\r\n style={{ marginRight: 5, marginLeft: 5 }}\r\n />\r\n <div>{t(props.label)}</div>\r\n </>\r\n ) : (\r\n <>{t(props.label)}</>\r\n )}\r\n </Grid2>\r\n ) : (\r\n <></>\r\n )}\r\n {props?.elements\r\n ? props.elements.map((element: FormElementProps) => {\r\n if (element.type === \"group\") {\r\n return (\r\n <FormElementGroup\r\n {...element.props}\r\n formManager={props.formManager}\r\n formValues={props.formValues}\r\n formActions={props.formActions}\r\n hiddenFields={props.hiddenFields}\r\n disabledFields={props.disabledFields}\r\n />\r\n );\r\n } else if (element.type === \"field\" && element.mode === \"props\") {\r\n return (\r\n <FormElementField\r\n fieldInfo={element.props}\r\n formManager={props.formManager}\r\n formValues={props.formValues}\r\n formActions={props.formActions}\r\n hiddenFields={props.hiddenFields}\r\n disabledFields={props.disabledFields}\r\n />\r\n );\r\n } else if (element.type === \"field\" && element.mode === \"node\") {\r\n return (\r\n <Grid2\r\n size={\r\n element?.props?.formProps?.fieldSize || {\r\n lg: 3,\r\n md: 6,\r\n sm: 12,\r\n }\r\n }\r\n sx={{ padding: 1, width: \"100%\" }}\r\n >\r\n <element.node\r\n formManager={props.formManager}\r\n formValues={props.formValues}\r\n formActions={props.formActions}\r\n />\r\n </Grid2>\r\n );\r\n }\r\n })\r\n : null}\r\n\r\n {props?.actions ? (\r\n <Grid2 size={{ sm: 12 }} sx={{ padding: 1 }}>\r\n {props.actions.map((action: RecordAction) => {\r\n return <FormAction {...action} record={props.formValues} />;\r\n })}\r\n </Grid2>\r\n ) : (\r\n <></>\r\n )}\r\n </Grid2>\r\n </>\r\n );\r\n};\r\n\r\nexport default FormElementGroup;\r\n","import moment from \"moment\";\r\nimport { TemplateGridColDef } from \"../DataEntryTypes\";\r\nimport Datefield from \"../TemplateDataForm/FormFields/Datefield\";\r\nimport { DATE_FORMAT, DATE_TIME_FORMAT } from \"../../../../util/constants\";\r\nimport DatetimeField from \"../TemplateDataForm/FormFields/DatetimeField\";\r\nimport ComboBox from \"../TemplateDataForm/FormFields/ComboBox\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport CheckBox from \"../TemplateDataForm/FormFields/CheckBox\";\r\n\r\nexport const generateDateColumn: any = (colDef: TemplateGridColDef) => {\r\n const column: TemplateGridColDef = {\r\n ...colDef,\r\n type: \"string\",\r\n renderEditCell: (params: any) => {\r\n return (\r\n <Datefield\r\n sx={{ width: \"100%\" }}\r\n label=\"\"\r\n value={params.value}\r\n onChangeCallBack={(v: any) => {\r\n params.api.setEditCellValue({\r\n id: params.id,\r\n field: params.field,\r\n value: v,\r\n });\r\n }}\r\n />\r\n );\r\n },\r\n valueParser: (value: any, row: any, column: any) => {\r\n let v = null;\r\n if (value !== null) {\r\n v = moment(value).format(DATE_FORMAT);\r\n }\r\n return v;\r\n },\r\n valueFormatter: (value: any, row: any, column: any) => {\r\n return row[column.field];\r\n },\r\n };\r\n return column;\r\n};\r\n\r\nexport const generateDateTimeColumn: any = (colDef: TemplateGridColDef) => {\r\n const column: TemplateGridColDef = {\r\n ...colDef,\r\n type: \"string\",\r\n renderEditCell: (params: any) => {\r\n return (\r\n <DatetimeField\r\n sx={{ width: \"100%\" }}\r\n label=\"\"\r\n value={params.value}\r\n onChangeCallBack={(v: any) => {\r\n params.api.setEditCellValue({\r\n id: params.id,\r\n field: params.field,\r\n value: v,\r\n });\r\n }}\r\n />\r\n );\r\n },\r\n valueParser: (value: any, row: any, column: any) => {\r\n let v = null;\r\n if (value !== null) {\r\n v = moment(value).format(DATE_TIME_FORMAT);\r\n }\r\n return v;\r\n },\r\n valueFormatter: (value: any, row: any, column: any) => {\r\n return row[column.field];\r\n },\r\n };\r\n return column;\r\n};\r\n\r\ntype ComboBoxColumnProps = TemplateGridColDef & {\r\n lookupType?: string;\r\n options: Array<any>;\r\n displayField: string;\r\n valueField: string;\r\n};\r\nexport const generateComboColumn: (\r\n props: ComboBoxColumnProps\r\n) => TemplateGridColDef = (colDef: ComboBoxColumnProps) => {\r\n const column: TemplateGridColDef = {\r\n ...colDef,\r\n type: \"custom\",\r\n valueGetter: (value) => {\r\n if (value) {\r\n return value + \"\";\r\n }\r\n return value;\r\n },\r\n renderCell: (parameters: any) => {\r\n let record = null;\r\n try {\r\n record = parameters.colDef.options.find(\r\n (item: any) => item[parameters.colDef.valueField] == parameters.value\r\n );\r\n } catch (e) {}\r\n return (\r\n <div>\r\n {record != null\r\n ? record[parameters.colDef.displayField]\r\n : parameters.value}\r\n </div>\r\n );\r\n },\r\n\r\n renderEditCell: (params: any) => {\r\n return (\r\n <ComboBox\r\n {...params}\r\n sx={{ width: \"100%\" }}\r\n options={params.colDef.options}\r\n valueField={params.colDef.valueField}\r\n displayField={params.colDef.displayField}\r\n onChangeCallBack={(v: any, selectedRecord: any) => {\r\n if (v === null) {\r\n params.api.setEditCellValue({\r\n id: params.id,\r\n field: params.field,\r\n value: null,\r\n });\r\n }\r\n params.api.setEditCellValue({\r\n id: params.id,\r\n field: params.field,\r\n value: v + \"\",\r\n });\r\n }}\r\n />\r\n );\r\n },\r\n };\r\n return column;\r\n};\r\n\r\ntype CheckBoxColumnProps = TemplateGridColDef & {\r\n checkedValue?: string;\r\n unCheckedValue?: string;\r\n};\r\n\r\nexport const generateCheckBoxColumn: (\r\n props: CheckBoxColumnProps\r\n) => TemplateGridColDef = (colDef: CheckBoxColumnProps) => {\r\n return {\r\n ...colDef,\r\n type: \"custom\",\r\n valueGetter: (value) => {\r\n if (value == null || value == undefined) {\r\n return null;\r\n } else {\r\n return value;\r\n }\r\n },\r\n renderCell: (parameters: any) => {\r\n const value = parameters?.value;\r\n if (\r\n value === colDef.checkedValue ||\r\n value === \"true\" ||\r\n value === 1 ||\r\n value === true\r\n ) {\r\n return <FontAwesomeIcon icon=\"check\" color=\"green\" />;\r\n } else {\r\n return <FontAwesomeIcon icon=\"xmark\" color=\"red\" />;\r\n }\r\n },\r\n renderEditCell: (params: any) => {\r\n return (\r\n <CheckBox\r\n {...params}\r\n checkedValue={colDef?.checkedValue || true}\r\n unCheckedValue={colDef?.unCheckedValue || false}\r\n onChangeCallBack={(v: any) => {\r\n params.api.setEditCellValue({\r\n id: params.id,\r\n field: params.field,\r\n value: v,\r\n });\r\n }}\r\n />\r\n );\r\n },\r\n };\r\n};\r\n","import { GridRowSelectionModel } from \"@mui/x-data-grid-premium\";\r\nimport {\r\n FormElementProps,\r\n RecordFieldProps,\r\n TemplateGridColDef,\r\n} from \"./DataEntryTypes\";\r\nimport {\r\n generateCheckBoxColumn,\r\n generateComboColumn,\r\n generateDateColumn,\r\n generateDateTimeColumn,\r\n} from \"./TemplateDataGrid/DataGridColumnsUtil\";\r\nimport * as z from \"zod\";\r\nimport { TFunction } from \"i18next\";\r\n\r\nexport const getElementFields: (\r\n element: FormElementProps\r\n) => Array<RecordFieldProps> = (element: FormElementProps) => {\r\n const fields: Array<RecordFieldProps> = [];\r\n if (element.type === \"field\" && element.mode === \"props\" && element?.props) {\r\n fields.push(element.props);\r\n } else if (\r\n element.type === \"group\" &&\r\n element?.props &&\r\n element?.props?.elements\r\n ) {\r\n for (const childElement of element.props.elements) {\r\n fields.push(...getElementFields(childElement));\r\n }\r\n }\r\n return fields;\r\n};\r\n\r\nexport const getAllFields: (\r\n elements: Array<FormElementProps>\r\n) => Array<RecordFieldProps> = (elements: Array<FormElementProps>) => {\r\n const fields: Array<RecordFieldProps> = [];\r\n for (const element of elements) {\r\n fields.push(...getElementFields(element));\r\n }\r\n return fields;\r\n};\r\n\r\nexport const constructGridColumnsFromFields: (\r\n fields: Array<RecordFieldProps>,\r\n isDefaultEditable: boolean,\r\n t: TFunction<\"translation\", undefined>\r\n) => Array<TemplateGridColDef> = (fields, isDefaultEditable, t) => {\r\n const columns: Array<TemplateGridColDef> = [];\r\n\r\n for (const tableField of fields) {\r\n if (\r\n tableField?.fieldType === \"text\" ||\r\n tableField?.fieldType === \"number\"\r\n ) {\r\n const column: TemplateGridColDef = {\r\n ...tableField?.gridProps?.muiProps,\r\n editable:\r\n tableField?.gridProps?.muiProps?.editable != undefined\r\n ? tableField?.gridProps?.muiProps?.editable\r\n : isDefaultEditable,\r\n type: tableField?.fieldType == \"number\" ? \"number\" : \"string\",\r\n field: tableField?.fieldName,\r\n headerName: t(tableField?.fieldLabel || tableField?.fieldName),\r\n headerAlign: \"center\",\r\n align: \"center\",\r\n hidden: tableField?.hidden,\r\n searchable: tableField?.gridProps?.searchable,\r\n flex: 1,\r\n minWidth: 200,\r\n };\r\n\r\n columns.push(column);\r\n } else if (tableField?.fieldType === \"date\") {\r\n const column: TemplateGridColDef = generateDateColumn({\r\n ...tableField?.gridProps?.muiProps,\r\n editable:\r\n tableField?.gridProps?.muiProps?.editable != undefined\r\n ? tableField?.gridProps?.muiProps?.editable\r\n : isDefaultEditable,\r\n field: tableField?.fieldName,\r\n headerName: t(tableField?.fieldLabel || tableField?.fieldName),\r\n headerAlign: \"center\",\r\n align: \"center\",\r\n hidden: tableField?.hidden,\r\n searchable: tableField?.gridProps?.searchable,\r\n flex: 1,\r\n minWidth: 200,\r\n });\r\n columns.push(column);\r\n } else if (tableField?.fieldType === \"datetime\") {\r\n const column: TemplateGridColDef = generateDateTimeColumn({\r\n ...tableField?.gridProps?.muiProps,\r\n editable:\r\n tableField?.gridProps?.muiProps?.editable != undefined\r\n ? tableField?.gridProps?.muiProps?.editable\r\n : isDefaultEditable,\r\n field: tableField?.fieldName,\r\n headerName: t(tableField?.fieldLabel || tableField?.fieldName),\r\n headerAlign: \"center\",\r\n align: \"center\",\r\n hidden: tableField?.hidden,\r\n searchable: tableField?.gridProps?.searchable,\r\n flex: 1,\r\n minWidth: 200,\r\n });\r\n columns.push(column);\r\n } else if (tableField?.fieldType === \"checkbox\") {\r\n const column = generateCheckBoxColumn({\r\n ...tableField?.gridProps?.muiProps,\r\n editable:\r\n tableField?.gridProps?.muiProps?.editable != undefined\r\n ? tableField?.gridProps?.muiProps?.editable\r\n : isDefaultEditable,\r\n field: tableField?.fieldName,\r\n headerName: t(tableField?.fieldLabel || tableField?.fieldName),\r\n headerAlign: \"center\",\r\n align: \"center\",\r\n hidden: tableField?.hidden,\r\n searchable: tableField?.gridProps?.searchable,\r\n checkedValue: tableField?.checkedValue,\r\n unCheckedValue: tableField?.unCheckedValue,\r\n width: 150,\r\n });\r\n columns.push(column);\r\n } else if (tableField?.fieldType === \"combobox\") {\r\n const column: TemplateGridColDef = generateComboColumn({\r\n ...tableField?.gridProps?.muiProps,\r\n editable:\r\n tableField?.gridProps?.muiProps?.editable != undefined\r\n ? tableField?.gridProps?.muiProps?.editable\r\n : isDefaultEditable,\r\n field: tableField?.fieldName,\r\n headerName: t(tableField?.fieldLabel || tableField?.fieldName),\r\n headerAlign: \"center\",\r\n align: \"center\",\r\n hidden: tableField?.hidden,\r\n searchable: tableField?.gridProps?.searchable,\r\n valueField: tableField?.optionValueField || \"value\",\r\n displayField: tableField?.optionDisplayField || \"display\",\r\n options: tableField?.options || [],\r\n flex: 1,\r\n minWidth: 200,\r\n });\r\n columns.push(column);\r\n } else if (tableField?.fieldType === \"lookup\") {\r\n const column: TemplateGridColDef = generateComboColumn({\r\n ...tableField?.gridProps?.muiProps,\r\n editable:\r\n tableField?.gridProps?.muiProps?.editable != undefined\r\n ? tableField?.gridProps?.muiProps?.editable\r\n : isDefaultEditable,\r\n lookupType: tableField?.lookupType,\r\n field: tableField?.fieldName,\r\n headerName: t(tableField?.fieldLabel || tableField?.fieldName),\r\n headerAlign: \"center\",\r\n align: \"center\",\r\n hidden: tableField?.hidden,\r\n searchable: tableField?.gridProps?.searchable,\r\n valueField: tableField?.optionValueField || \"value\",\r\n displayField: tableField?.optionDisplayField || \"display\",\r\n options: tableField?.options || [],\r\n flex: 1,\r\n minWidth: 200,\r\n });\r\n columns.push(column);\r\n }\r\n }\r\n return columns;\r\n};\r\n\r\nexport const constructValidationSchema = (fields: Array<RecordFieldProps>) => {\r\n const validationSchemaObj: any = {};\r\n for (const field of fields) {\r\n if (field?.fieldName) {\r\n const fieldName = field.fieldName;\r\n if (field.fieldType === \"number\") {\r\n if (field?.required === true) {\r\n validationSchemaObj[fieldName] = z.number({\r\n required_error: \"This field is required\",\r\n invalid_type_error: \"This field must be a number\",\r\n });\r\n } else {\r\n validationSchemaObj[fieldName] = z.number().optional().nullable();\r\n }\r\n } else if (field.fieldType === \"checkbox\") {\r\n if (field?.required === true) {\r\n validationSchemaObj[fieldName] = z.boolean({\r\n required_error: \"This field is required\",\r\n });\r\n } else {\r\n validationSchemaObj[fieldName] = z.boolean().optional().nullable();\r\n }\r\n } else {\r\n if (field?.required === true) {\r\n validationSchemaObj[fieldName] = z\r\n .string({ message: \"This field is required\" })\r\n .min(1, \"This field is required\");\r\n } else {\r\n validationSchemaObj[fieldName] = z.string().optional().nullable();\r\n }\r\n }\r\n }\r\n }\r\n return validationSchemaObj;\r\n};\r\n\r\nexport type GridSelection = {\r\n selectedRecords: Array<any>;\r\n selectedRecordIds: Array<any>;\r\n};\r\n\r\nexport const getGridSelection: (\r\n rowSelectionModel: GridRowSelectionModel,\r\n data: Array<any>,\r\n keyColumnName: string\r\n) => GridSelection = (\r\n rowSelectionModel: GridRowSelectionModel,\r\n data: Array<any>,\r\n keyColumnName: string\r\n) => {\r\n const sRecords = [];\r\n const sRecordIds = [];\r\n if (\r\n rowSelectionModel.type === \"exclude\" &&\r\n rowSelectionModel.ids.size === 0\r\n ) {\r\n for (const record of data) {\r\n sRecords.push(record);\r\n sRecordIds.push(record[keyColumnName]);\r\n }\r\n } else {\r\n if (rowSelectionModel?.ids) {\r\n for (const selectedId of rowSelectionModel.ids) {\r\n const record = data.find((x) => x[keyColumnName] === selectedId);\r\n sRecords.push(record);\r\n sRecordIds.push(selectedId);\r\n }\r\n }\r\n }\r\n return { selectedRecords: sRecords, selectedRecordIds: sRecordIds };\r\n};\r\n","import { Box } from \"@mui/system\";\r\nimport React, { useEffect, useState } from \"react\";\r\nimport * as z from \"zod\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport { zodResolver } from \"@hookform/resolvers/zod\";\r\nimport { useParams } from \"react-router-dom\";\r\nimport { Button, Grid2 } from \"@mui/material\";\r\nimport { toast } from \"react-toastify\";\r\nimport FormElementGroup from \"./FormElementGroup\";\r\nimport FormElementField from \"./FormElementField\";\r\nimport FormAction from \"./FormAction\";\r\nimport { constructValidationSchema, getAllFields } from \"../DataEntryUtil\";\r\nimport {\r\n FormElementProps,\r\n RecordAction,\r\n TemplateFormProps,\r\n} from \"../DataEntryTypes\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nconst TemplateForm: React.FC<TemplateFormProps> = (\r\n props: TemplateFormProps\r\n) => {\r\n const { t } = useTranslation();\r\n const fields = getAllFields(props.elements);\r\n const initiallyHiddenFields = [];\r\n for (const field of fields) {\r\n if (field?.hidden) {\r\n initiallyHiddenFields.push(field.fieldName);\r\n }\r\n }\r\n const [hiddenFields, setHiddenFields] = useState<string[]>(\r\n initiallyHiddenFields\r\n );\r\n const initialValues: any = {};\r\n for (const element of props.elements) {\r\n if (\r\n element?.type === \"field\" &&\r\n element?.mode === \"props\" &&\r\n element?.props?.defaultValue\r\n ) {\r\n initialValues[element.props.fieldName] = element.props.defaultValue;\r\n }\r\n }\r\n const [disabledFields, setDisabledFields] = useState<string[]>([]);\r\n const formSchema = z.object(constructValidationSchema(fields));\r\n type FormData = z.infer<typeof formSchema>;\r\n const formManager = useForm<FormData>({\r\n resolver: zodResolver(formSchema),\r\n defaultValues: initialValues,\r\n });\r\n const formValues = formManager.watch();\r\n const pathParameters = useParams();\r\n const formRouteRecordIdParamName: any = props?.formRouteRecordIdParamName;\r\n\r\n const loadRecord = async () => {\r\n let idToLoad = null;\r\n if (props?.recordIdToEdit) {\r\n idToLoad = props.recordIdToEdit;\r\n } else if (\r\n formRouteRecordIdParamName &&\r\n pathParameters[formRouteRecordIdParamName]\r\n ) {\r\n idToLoad = pathParameters[formRouteRecordIdParamName];\r\n }\r\n if (idToLoad) {\r\n const retrievedRecord: any = await props.apiActions.loadRecordById(\r\n idToLoad\r\n );\r\n if (retrievedRecord) {\r\n formManager.reset({ ...retrievedRecord });\r\n if (props?.formLoadCallBk) {\r\n props?.formLoadCallBk(formActions, formManager, retrievedRecord);\r\n }\r\n for (const field of fields) {\r\n if (\r\n field?.fieldType === \"combobox\" &&\r\n retrievedRecord[field.fieldName]\r\n ) {\r\n formManager.setValue(\r\n field.fieldName,\r\n retrievedRecord[field.fieldName] + \"\"\r\n );\r\n }\r\n }\r\n }\r\n } else {\r\n formManager.reset({});\r\n }\r\n };\r\n\r\n const saveRecord = async (record: any) => {\r\n if (props?.preSaveValidation && !props.preSaveValidation(record)) {\r\n return;\r\n }\r\n if (record) {\r\n const savedRecord: any = await props.apiActions.saveRecord(record);\r\n if (savedRecord) {\r\n formManager.reset({ ...savedRecord });\r\n if (props?.formSavedSuccessfullyCallBk) {\r\n props.formSavedSuccessfullyCallBk(savedRecord);\r\n }\r\n if (props?.formCloseCallBk) {\r\n props.formCloseCallBk();\r\n }\r\n }\r\n }\r\n };\r\n\r\n const formActions = {\r\n setFieldValue: (fieldName: string, fieldValue: any) => {\r\n formManager.setValue(fieldName, fieldValue);\r\n },\r\n hideField: (fieldName: string) => {\r\n setHiddenFields((oldValues) => {\r\n const newValues = [...oldValues, fieldName];\r\n return newValues;\r\n });\r\n },\r\n showField: (fieldName: string) => {\r\n setHiddenFields((oldValues) => {\r\n const newValues = oldValues.filter((x) => x !== fieldName);\r\n return newValues;\r\n });\r\n },\r\n disableField: (fieldName: string) => {\r\n setDisabledFields((oldValues) => {\r\n const newValues = [...oldValues, fieldName];\r\n return newValues;\r\n });\r\n },\r\n enableField: (fieldName: string) => {\r\n setDisabledFields((oldValues) => {\r\n const newValues = oldValues.filter((x) => x !== fieldName);\r\n return newValues;\r\n });\r\n },\r\n };\r\n\r\n useEffect(() => {\r\n loadRecord();\r\n }, [props?.recordIdToEdit]);\r\n\r\n return (\r\n <>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flex: 1,\r\n width: \"100%\",\r\n height: \"fit-content\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n overflow: \"auto\",\r\n }}\r\n >\r\n <Grid2 sx={{ width: \"100%\" }} container>\r\n {props.elements.map((formElement: FormElementProps, index) => {\r\n if (formElement.type === \"group\") {\r\n return (\r\n <FormElementGroup\r\n key={index}\r\n {...formElement.props}\r\n formManager={formManager}\r\n formValues={formValues}\r\n formActions={formActions}\r\n hiddenFields={hiddenFields}\r\n disabledFields={disabledFields}\r\n />\r\n );\r\n } else if (\r\n formElement.type === \"field\" &&\r\n formElement.mode === \"props\"\r\n ) {\r\n return (\r\n <FormElementField\r\n key={index}\r\n fieldInfo={formElement.props}\r\n formManager={formManager}\r\n formValues={formValues}\r\n formActions={formActions}\r\n hiddenFields={hiddenFields}\r\n disabledFields={disabledFields}\r\n />\r\n );\r\n } else if (\r\n formElement.type === \"field\" &&\r\n formElement.mode === \"node\"\r\n ) {\r\n return (\r\n <Grid2\r\n key={index}\r\n size={\r\n formElement?.props?.formProps?.fieldSize || {\r\n lg: 3,\r\n md: 6,\r\n xs: 12,\r\n }\r\n }\r\n sx={{ padding: 1, width: \"100%\" }}\r\n >\r\n <formElement.node\r\n formManager={formManager}\r\n formValues={formValues}\r\n />\r\n </Grid2>\r\n );\r\n }\r\n })}\r\n </Grid2>\r\n </Box>\r\n\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n width: \"100%\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n }}\r\n >\r\n {props?.actions ? (\r\n props.actions.map((action: RecordAction) => {\r\n if (action?.formActionProps?.enabled === true) {\r\n return <FormAction {...action} record={formValues} />;\r\n } else {\r\n return <></>;\r\n }\r\n })\r\n ) : (\r\n <></>\r\n )}\r\n <div style={{ flex: 1 }}></div>\r\n <Button\r\n variant={\r\n props?.saveButtonSpecs?.actionButtonVariant\r\n ? props.saveButtonSpecs.actionButtonVariant\r\n : \"contained\"\r\n }\r\n sx={{ m: 1 }}\r\n startIcon={\r\n props?.saveButtonSpecs?.icon ? (\r\n <FontAwesomeIcon icon={props.saveButtonSpecs.icon} />\r\n ) : null\r\n }\r\n color={\r\n props?.saveButtonSpecs?.actionButtonColor\r\n ? props.saveButtonSpecs.actionButtonColor\r\n : \"primary\"\r\n }\r\n onClick={formManager.handleSubmit(\r\n (values) => {\r\n console.log(\"form values\", values);\r\n saveRecord(values);\r\n },\r\n (errors) => {\r\n toast.error(\r\n \"Form Data is not valid, make sure you have all field with valid data\"\r\n );\r\n console.log(\"form validation error\", errors);\r\n }\r\n )}\r\n >\r\n {t(props?.saveButtonSpecs?.label || \"SAVE_BTN_LABEL\")}\r\n </Button>\r\n <Button\r\n variant={\r\n props?.cancelButtonSpecs?.actionButtonVariant\r\n ? props.cancelButtonSpecs.actionButtonVariant\r\n : \"contained\"\r\n }\r\n startIcon={\r\n props?.cancelButtonSpecs?.icon ? (\r\n <FontAwesomeIcon icon={props.cancelButtonSpecs.icon} />\r\n ) : null\r\n }\r\n color={\r\n props?.cancelButtonSpecs?.actionButtonColor\r\n ? props.cancelButtonSpecs.actionButtonColor\r\n : \"error\"\r\n }\r\n sx={{ m: 1 }}\r\n onClick={() => {\r\n if (props?.formCloseCallBk) {\r\n props.formCloseCallBk();\r\n }\r\n formManager.reset(initialValues);\r\n }}\r\n >\r\n {t(props?.cancelButtonSpecs?.label || \"CANCEL_BTN_LABEL\")}\r\n </Button>\r\n </Box>\r\n </>\r\n );\r\n};\r\n\r\nexport default TemplateForm;\r\n","import { Button } from \"@mui/material\";\r\nimport { RecordAction } from \"../DataEntryTypes\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { toast } from \"react-toastify\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport useSession from \"../../../../hooks/UseSession\";\r\nimport { useConfirmationWindow } from \"../../../../hooks/UseConfirmationWindow\";\r\n\r\nconst TemplateGridMultiRecordAction: React.FC<RecordAction> = (\r\n rowAction: RecordAction\r\n) => {\r\n const { t } = useTranslation();\r\n const session = useSession();\r\n const { ConfirmationWindow, setOpen } = useConfirmationWindow({\r\n body: t(rowAction?.confirmationMessage || \"ACTION_CONFIRMATION\"),\r\n title: t(\"CONFIRMATION\"),\r\n onConfirmationCallBk: async () => {\r\n await rowAction?.actionFn(\r\n rowAction.recordsToProcessActionOn,\r\n rowAction.recordIdsToProcessActionOn\r\n );\r\n if (rowAction?.reloadData) {\r\n rowAction.reloadData();\r\n }\r\n },\r\n });\r\n let isActionAllowed = true;\r\n if (rowAction.authority) {\r\n isActionAllowed = session.isUserAuthorized(rowAction.authority);\r\n }\r\n\r\n if (isActionAllowed) {\r\n return (\r\n <>\r\n <ConfirmationWindow />\r\n <Button\r\n onClick={async () => {\r\n if (\r\n rowAction?.recordsToProcessActionOn &&\r\n rowAction?.recordsToProcessActionOn.length > 0\r\n ) {\r\n if (rowAction?.preActionValidation) {\r\n for (const record of rowAction.recordsToProcessActionOn) {\r\n if (!rowAction.preActionValidation(record)) {\r\n return;\r\n }\r\n }\r\n }\r\n if (rowAction?.isConfirmationRequired === true) {\r\n setOpen(true);\r\n } else {\r\n await rowAction.actionFn(\r\n rowAction.recordsToProcessActionOn,\r\n rowAction.recordIdsToProcessActionOn\r\n );\r\n if (rowAction?.reloadData) {\r\n rowAction.reloadData();\r\n }\r\n }\r\n } else {\r\n toast.error(t(\"AT_LEAST_ONE_RECORD_SELECTED_MESSAGE\"));\r\n }\r\n }}\r\n variant={\r\n rowAction?.label\r\n ? \"outlined\"\r\n : rowAction?.formActionProps?.actionButtonVariant\r\n ? rowAction.formActionProps.actionButtonVariant\r\n : \"text\"\r\n }\r\n size=\"small\"\r\n color={rowAction?.formActionProps?.actionButtonColor || \"primary\"}\r\n >\r\n {rowAction?.icon ? (\r\n <FontAwesomeIcon\r\n style={{ marginRight: 5, marginLeft: 5 }}\r\n icon={rowAction.icon}\r\n />\r\n ) : (\r\n <></>\r\n )}\r\n {rowAction?.label ? t(rowAction.label) : <></>}\r\n </Button>\r\n </>\r\n );\r\n }\r\n};\r\n\r\nexport default TemplateGridMultiRecordAction;\r\n","import {\r\n Badge,\r\n Box,\r\n Button,\r\n Divider,\r\n IconButton,\r\n InputAdornment,\r\n MenuItem,\r\n styled,\r\n TextField,\r\n Tooltip,\r\n} from \"@mui/material\";\r\nimport {\r\n Toolbar,\r\n ToolbarButton,\r\n ColumnsPanelTrigger,\r\n FilterPanelTrigger,\r\n QuickFilter,\r\n QuickFilterControl,\r\n QuickFilterClear,\r\n QuickFilterTrigger,\r\n GridViewColumnIcon,\r\n GridFilterListIcon,\r\n ExportExcel,\r\n} from \"@mui/x-data-grid-premium\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport TemplateGridMultiRecordAction from \"./TemplateGridMultiRecordAction\";\r\nimport { getGridSelection } from \"../DataEntryUtil\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { TemplateGridTopBarProps } from \"../DataEntryTypes\";\r\nimport useSession from \"../../../../hooks/UseSession\";\r\n\r\ntype OwnerState = {\r\n expanded: boolean;\r\n};\r\n\r\nconst StyledQuickFilter = styled(QuickFilter)({\r\n display: \"grid\",\r\n alignItems: \"center\",\r\n});\r\n\r\nconst StyledToolbarButton = styled(ToolbarButton)<{ ownerState: OwnerState }>(\r\n ({ theme, ownerState }) => ({\r\n gridArea: \"1 / 1\",\r\n width: \"min-content\",\r\n height: \"min-content\",\r\n zIndex: 1,\r\n opacity: ownerState.expanded ? 0 : 1,\r\n pointerEvents: ownerState.expanded ? \"none\" : \"auto\",\r\n transition: theme.transitions.create([\"opacity\"]),\r\n })\r\n);\r\n\r\nconst StyledTextField = styled(TextField)<{\r\n ownerState: OwnerState;\r\n}>(({ theme, ownerState }) => ({\r\n gridArea: \"1 / 1\",\r\n overflowX: \"clip\",\r\n width: ownerState.expanded ? 260 : \"var(--trigger-width)\",\r\n opacity: ownerState.expanded ? 1 : 0,\r\n transition: theme.transitions.create([\"width\", \"opacity\"]),\r\n}));\r\n\r\nconst TemplateGridTopBar: React.FC<TemplateGridTopBarProps> = (\r\n props: TemplateGridTopBarProps\r\n) => {\r\n const { t } = useTranslation();\r\n const session = useSession();\r\n const isCreationAuthorized = props?.templateProps?.editAction?.authority\r\n ? session.isUserAuthorized(props.templateProps.editAction.authority)\r\n : true;\r\n const isCreationEnabled = props?.templateProps?.disableDefaultAction || true;\r\n const gridSelection = getGridSelection(\r\n props?.templateProps?.rowSelectionModel || {\r\n ids: new Set(),\r\n type: \"include\",\r\n },\r\n props?.templateProps?.data || [],\r\n props?.templateProps?.keyColumnName || \"id\"\r\n );\r\n return (\r\n <Toolbar>\r\n {isCreationEnabled &&\r\n isCreationAuthorized &&\r\n props?.templateProps?.editMode?.editMode != \"none\" ? (\r\n <Button onClick={props?.handleCreateNewRecord}>\r\n <FontAwesomeIcon\r\n icon=\"add\"\r\n style={{ marginRight: 5, marginLeft: 5 }}\r\n />\r\n {t(\"ADD_BTN_LABEL\")}\r\n </Button>\r\n ) : (\r\n <></>\r\n )}\r\n {props?.templateProps?.rowActions ? (\r\n props.templateProps.rowActions.map((rowAction, index) =>\r\n rowAction?.gridActionProps?.multiRecord === true ? (\r\n <TemplateGridMultiRecordAction\r\n {...rowAction}\r\n key={index}\r\n reloadData={async () => {\r\n props.templateProps.apiActions.reloadData(\r\n props?.templateProps?.gridLoadParametersValues\r\n );\r\n }}\r\n recordIdsToProcessActionOn={gridSelection.selectedRecordIds}\r\n recordsToProcessActionOn={gridSelection.selectedRecords}\r\n />\r\n ) : null\r\n )\r\n ) : (\r\n <></>\r\n )}\r\n <Box sx={{ flex: 1, mx: 0.5 }}>{props?.templateProps?.tBar}</Box>\r\n\r\n <Tooltip title=\"Columns\">\r\n <ColumnsPanelTrigger render={<ToolbarButton />}>\r\n <GridViewColumnIcon fontSize=\"small\" />\r\n </ColumnsPanelTrigger>\r\n </Tooltip>\r\n\r\n <Tooltip title=\"Filters\">\r\n <FilterPanelTrigger\r\n render={(props, state) => (\r\n <ToolbarButton {...props} color=\"default\">\r\n <Badge\r\n badgeContent={state.filterCount}\r\n color=\"primary\"\r\n variant=\"dot\"\r\n >\r\n <GridFilterListIcon fontSize=\"small\" />\r\n </Badge>\r\n </ToolbarButton>\r\n )}\r\n />\r\n </Tooltip>\r\n\r\n {props?.templateProps?.gridStateKey ? (\r\n <Tooltip title={t(\"RESET_GRID_STATE\")}>\r\n <IconButton onClick={props?.clearGridState}>\r\n <FontAwesomeIcon icon=\"eraser\" />\r\n </IconButton>\r\n </Tooltip>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n <Divider\r\n orientation=\"vertical\"\r\n variant=\"middle\"\r\n flexItem\r\n sx={{ mx: 0.5 }}\r\n />\r\n\r\n <Tooltip title={t(\"EXPORT_EXECL_LABEL\")}>\r\n <ExportExcel render={<MenuItem />}>\r\n <FontAwesomeIcon icon=\"file-excel\" color=\"green\" />\r\n </ExportExcel>\r\n </Tooltip>\r\n\r\n <StyledQuickFilter>\r\n <QuickFilterTrigger\r\n render={(triggerProps, state) => (\r\n <Tooltip title={t(\"SEARCH_BTN_LABEL\")} enterDelay={0}>\r\n <StyledToolbarButton\r\n {...triggerProps}\r\n ownerState={{ expanded: state.expanded }}\r\n color=\"default\"\r\n aria-disabled={state.expanded}\r\n >\r\n <FontAwesomeIcon icon=\"search\" />\r\n </StyledToolbarButton>\r\n </Tooltip>\r\n )}\r\n />\r\n <QuickFilterControl\r\n render={({ ref, ...controlProps }, state) => (\r\n <StyledTextField\r\n {...controlProps}\r\n ownerState={{ expanded: state.expanded }}\r\n inputRef={ref}\r\n aria-label=\"Search\"\r\n placeholder={`${t(\"SEARCH_BTN_LABEL\")}...`}\r\n size=\"small\"\r\n slotProps={{\r\n input: {\r\n startAdornment: (\r\n <InputAdornment position=\"start\">\r\n <FontAwesomeIcon icon=\"search\" />\r\n </InputAdornment>\r\n ),\r\n endAdornment: state.value ? (\r\n <InputAdornment position=\"end\">\r\n <QuickFilterClear\r\n edge=\"end\"\r\n size=\"small\"\r\n aria-label=\"Clear search\"\r\n // material={{ sx: { marginRight: -0.75 } }}\r\n >\r\n <FontAwesomeIcon icon=\"xmark\" />\r\n </QuickFilterClear>\r\n </InputAdornment>\r\n ) : null,\r\n ...controlProps.slotProps?.input,\r\n },\r\n ...controlProps.slotProps,\r\n }}\r\n />\r\n )}\r\n />\r\n </StyledQuickFilter>\r\n\r\n <IconButton\r\n onClick={() => {\r\n props.templateProps.apiActions.reloadData(\r\n props?.templateProps?.gridLoadParametersValues\r\n );\r\n }}\r\n >\r\n <FontAwesomeIcon icon=\"refresh\" />\r\n </IconButton>\r\n </Toolbar>\r\n );\r\n};\r\n\r\nexport default TemplateGridTopBar;\r\n","import { Tooltip } from \"@mui/material\";\r\nimport { GridActionsCellItem } from \"@mui/x-data-grid-premium\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { RecordAction } from \"../DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport useSession from \"../../../../hooks/UseSession\";\r\nimport { useConfirmationWindow } from \"../../../../hooks/UseConfirmationWindow\";\r\n\r\nconst TemplateGridRecordAction: React.FC<RecordAction> = (\r\n rowAction: RecordAction\r\n) => {\r\n const { t } = useTranslation();\r\n const session = useSession();\r\n const { ConfirmationWindow, setOpen } = useConfirmationWindow({\r\n body: t(rowAction?.confirmationMessage || \"ACTION_CONFIRMATION\"),\r\n title: t(\"CONFIRMATION\"),\r\n onConfirmationCallBk: async () => {\r\n await rowAction?.actionFn(rowAction.record);\r\n if (rowAction?.reloadData) {\r\n rowAction.reloadData();\r\n }\r\n },\r\n });\r\n let isActionAllowed = true;\r\n if (rowAction.authority) {\r\n isActionAllowed = session.isUserAuthorized(rowAction.authority);\r\n }\r\n let iconStyle: any = {};\r\n if (rowAction?.getActionIconStyleForRecord) {\r\n iconStyle = rowAction.getActionIconStyleForRecord(rowAction.record);\r\n }\r\n let isActionVisibleForRecord = true;\r\n if (rowAction?.isActionVisibleForRecord) {\r\n isActionVisibleForRecord = rowAction?.isActionVisibleForRecord(\r\n rowAction.record\r\n );\r\n }\r\n let isActionDisabledForRecord = false;\r\n if (rowAction?.isActionDisabledForRecord) {\r\n isActionDisabledForRecord = rowAction.isActionDisabledForRecord(\r\n rowAction.record\r\n );\r\n }\r\n if (isActionAllowed && isActionVisibleForRecord) {\r\n return (\r\n <>\r\n <ConfirmationWindow />\r\n <GridActionsCellItem\r\n disabled={isActionDisabledForRecord}\r\n icon={\r\n <Tooltip title={rowAction?.label ? t(rowAction.label) : \"\"}>\r\n <FontAwesomeIcon\r\n icon={rowAction.icon}\r\n style={{\r\n ...iconStyle,\r\n color: isActionDisabledForRecord\r\n ? \"gray\"\r\n : iconStyle?.color != undefined\r\n ? iconStyle.color\r\n : undefined,\r\n }}\r\n />\r\n </Tooltip>\r\n }\r\n showInMenu={rowAction?.gridActionProps?.showInMenu || false}\r\n label={\"\"}\r\n className=\"textPrimary\"\r\n color=\"inherit\"\r\n onClick={async () => {\r\n if (!isActionDisabledForRecord) {\r\n if (rowAction?.preActionValidation) {\r\n if (!rowAction.preActionValidation(rowAction.record)) {\r\n return;\r\n }\r\n }\r\n if (rowAction?.isConfirmationRequired === true) {\r\n setOpen(true);\r\n } else {\r\n await rowAction.actionFn(rowAction.record);\r\n if (\r\n rowAction?.gridActionProps?.reloadGridAfterAction === true &&\r\n rowAction?.reloadData\r\n ) {\r\n rowAction.reloadData();\r\n }\r\n }\r\n }\r\n }}\r\n />\r\n </>\r\n );\r\n }\r\n};\r\n\r\nexport default TemplateGridRecordAction;\r\n","import {\r\n DataGridPremium,\r\n GridActionsCellItem,\r\n GridActionsCellItemProps,\r\n GridColumnOrderChangeParams,\r\n GridColumnResizeParams,\r\n GridColumnVisibilityModel,\r\n GridEventListener,\r\n GridExpandMoreIcon,\r\n GridPinnedColumnFields,\r\n GridRowGroupingModel,\r\n GridRowModes,\r\n GridRowModesModel,\r\n GridRowParams,\r\n GridRowSelectionModel,\r\n} from \"@mui/x-data-grid-premium\";\r\nimport { TemplateGridColDef, TemplateGridProps } from \"../DataEntryTypes\";\r\nimport TemplateGridTopBar from \"./TemplateGridTopBar\";\r\nimport { useNavigate } from \"react-router-dom\";\r\nimport React, { useEffect, useState } from \"react\";\r\nimport { z } from \"zod\";\r\nimport {\r\n constructGridColumnsFromFields,\r\n constructValidationSchema,\r\n getAllFields,\r\n} from \"../DataEntryUtil\";\r\nimport { toast } from \"react-toastify\";\r\nimport {\r\n Accordion,\r\n AccordionDetails,\r\n AccordionSummary,\r\n Box,\r\n Divider,\r\n IconButton,\r\n Tooltip,\r\n Typography,\r\n} from \"@mui/material\";\r\nimport { capitalizeFirstLetter, isNumber } from \"../../../../util/AppUtils\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport TemplateGridRecordAction from \"./TemplateGridRecordAction\";\r\nimport TemplateForm from \"../TemplateDataForm/TemplateForm\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport useSession from \"../../../../hooks/UseSession\";\r\nimport { useConfirmationWindow } from \"../../../../hooks/UseConfirmationWindow\";\r\nimport { useWindow } from \"../../../../hooks/UseWindow\";\r\nimport { useAxios } from \"../../../../hooks\";\r\nimport useLookupGridColumn from \"../../../../hooks/useLookupGridColumn\";\r\nimport { ContinuousColorLegend } from \"@mui/x-charts\";\r\nlet currentNewRecordIndex = -1;\r\n\r\ninterface GridState {\r\n columnVisibilityModel?: GridColumnVisibilityModel;\r\n columnOrder?: string[];\r\n columnWidths?: { [key: string]: number };\r\n columnGroupingModel?: GridRowGroupingModel;\r\n pinnedColumns?: GridPinnedColumnFields;\r\n}\r\n\r\nconst loadGridState = (gridStateKey: string): GridState => {\r\n try {\r\n const saved = localStorage.getItem(gridStateKey);\r\n return saved ? JSON.parse(saved) : {};\r\n } catch (e) {\r\n console.error(\"Failed to load grid state\", e);\r\n return {};\r\n }\r\n};\r\n\r\nconst saveGridState = (gridStateKey: string, statePart: GridState) => {\r\n const current = loadGridState(gridStateKey);\r\n localStorage.setItem(\r\n gridStateKey,\r\n JSON.stringify({ ...current, ...statePart })\r\n );\r\n};\r\n\r\nconst PIN_FIXED_COLUMNS = [\"__check__\", \"actions\"];\r\n\r\nconst TemplateGrid: React.FC<TemplateGridProps> = (props) => {\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const { getLookupOptions } = useLookupGridColumn();\r\n const [generatedColumns, setGeneratedColumns] = useState<\r\n Array<TemplateGridColDef>\r\n >([]);\r\n const { t } = useTranslation();\r\n const fields = getAllFields(props.formElements);\r\n const hiddenFields = [];\r\n const savedState = React.useMemo<GridState>(\r\n () => (props?.gridStateKey ? loadGridState(props.gridStateKey) : {}),\r\n []\r\n );\r\n for (const field of fields) {\r\n if (field?.gridProps?.hidden === true) {\r\n hiddenFields.push(field.fieldName);\r\n }\r\n }\r\n let initialVisibilityState: GridColumnVisibilityModel = {};\r\n if (savedState?.columnVisibilityModel) {\r\n initialVisibilityState = savedState.columnVisibilityModel;\r\n const existingFields = Object.keys(initialVisibilityState);\r\n for (const field of hiddenFields) {\r\n if (!existingFields.includes(field)) {\r\n initialVisibilityState[field] = false;\r\n }\r\n }\r\n } else {\r\n for (const field of hiddenFields) {\r\n initialVisibilityState[field] = false;\r\n }\r\n }\r\n\r\n const themeDirection = useSelector(\r\n (state: any) => state.AppLayout.appDirection\r\n );\r\n\r\n const clearGridState = () => {\r\n if (props?.gridStateKey) {\r\n localStorage.removeItem(props.gridStateKey);\r\n }\r\n setColumnVisibilityModel({});\r\n setColumnOrder([]);\r\n setColumnWidths({});\r\n setGridRowGroupingModel([]);\r\n setPinnedColumns({\r\n left: [...(themeDirection === \"ltr\" ? PIN_FIXED_COLUMNS : [])],\r\n right: [...(themeDirection === \"rtl\" ? PIN_FIXED_COLUMNS : [])],\r\n });\r\n };\r\n const [columnVisibilityModel, setColumnVisibilityModel] =\r\n React.useState<GridColumnVisibilityModel>(initialVisibilityState);\r\n const [columnOrder, setColumnOrder] = React.useState<string[]>(\r\n savedState.columnOrder || []\r\n );\r\n const [columnWidths, setColumnWidths] = React.useState<{\r\n [key: string]: number;\r\n }>(savedState.columnWidths || {});\r\n const [gridRowGroupingModel, setGridRowGroupingModel] =\r\n useState<GridRowGroupingModel>(savedState.columnGroupingModel || []);\r\n let newLeft = savedState?.pinnedColumns?.left || [];\r\n newLeft = newLeft.filter(\r\n (record: any) => !PIN_FIXED_COLUMNS.includes(record)\r\n );\r\n let newRight = savedState?.pinnedColumns?.right || [] || [];\r\n newRight = newRight.filter(\r\n (record: any) => !PIN_FIXED_COLUMNS.includes(record)\r\n );\r\n\r\n const [pinnedColumns, setPinnedColumns] = useState<GridPinnedColumnFields>({\r\n left: [...(themeDirection === \"ltr\" ? PIN_FIXED_COLUMNS : []), ...newLeft],\r\n right: [\r\n ...(themeDirection === \"rtl\" ? PIN_FIXED_COLUMNS : []),\r\n ...newRight,\r\n ],\r\n });\r\n\r\n const session = useSession();\r\n const navigate = useNavigate();\r\n const [recordToDelete, setRecordToDelete] = useState<any>(null);\r\n const [recordToEdit, setRecordToEdit] = useState<any>(null);\r\n const [rowModesModel, setRowModesModel] = useState<GridRowModesModel>({});\r\n const adjustGridColumns = async () => {\r\n let gridColumns = constructGridColumnsFromFields(\r\n fields,\r\n props?.editMode?.editMode === \"row\" || false,\r\n t\r\n );\r\n for (let gridColumn of gridColumns) {\r\n if (gridColumn?.lookupType) {\r\n gridColumn.displayField =\r\n AppLayout.appDirection === \"ltr\"\r\n ? \"lookupEnDisplay\"\r\n : \"lookupArDisplay\";\r\n gridColumn.options = await getLookupOptions(gridColumn.lookupType);\r\n gridColumn.valueField = \"lookupValue\";\r\n }\r\n } \r\n setGeneratedColumns(gridColumns);\r\n };\r\n const [rowSelectionModel, setRowSelectionModel] =\r\n useState<GridRowSelectionModel>({ ids: new Set(), type: \"include\" });\r\n let keyColumnName: string = \"id\";\r\n if (props?.keyColumnName) {\r\n keyColumnName = props?.keyColumnName;\r\n }\r\n const setData = props.setData;\r\n const validationSchema = z.object(constructValidationSchema(fields));\r\n let isEditAllowed = true;\r\n if (props?.editAction?.authority) {\r\n isEditAllowed = session.isUserAuthorized(props.editAction.authority);\r\n }\r\n let isDeleteAllowed = true;\r\n if (props?.deleteAction?.authority) {\r\n isDeleteAllowed = session.isUserAuthorized(props.deleteAction.authority);\r\n }\r\n\r\n const handleRowModesModelChange = (newModel: GridRowModesModel) => {\r\n setRowModesModel(newModel);\r\n };\r\n\r\n const handlePinnedColumnsChange = (newModel: GridPinnedColumnFields) => {\r\n let newLeft = newModel?.left || [];\r\n newLeft = newLeft.filter(\r\n (record: any) => !PIN_FIXED_COLUMNS.includes(record)\r\n );\r\n let newRight = newModel?.right || [];\r\n newRight = newRight.filter(\r\n (record: any) => !PIN_FIXED_COLUMNS.includes(record)\r\n );\r\n const newPinedColumns: GridPinnedColumnFields = {\r\n left: [\r\n ...(themeDirection === \"ltr\" ? PIN_FIXED_COLUMNS : []),\r\n ...newLeft,\r\n ],\r\n right: [\r\n ...(themeDirection === \"rtl\" ? PIN_FIXED_COLUMNS : []),\r\n ...newRight,\r\n ],\r\n };\r\n setPinnedColumns(newPinedColumns);\r\n if (props?.gridStateKey) {\r\n saveGridState(props.gridStateKey, { pinnedColumns: newPinedColumns });\r\n }\r\n };\r\n\r\n const handleDeleteRecord = async () => {\r\n let result = true;\r\n if (!(recordToDelete && recordToDelete?.isNew === true)) {\r\n result = await props.apiActions.deleteRecordById(\r\n recordToDelete[keyColumnName]\r\n );\r\n }\r\n if (result) {\r\n if (props?.deleteAction?.postActionCallBack) {\r\n await props.deleteAction.postActionCallBack(recordToDelete);\r\n }\r\n\r\n setData((oldData: any) => {\r\n const newData = oldData.filter(\r\n (record: any) =>\r\n record[keyColumnName] != recordToDelete[keyColumnName]\r\n );\r\n return newData;\r\n });\r\n }\r\n };\r\n\r\n const { ConfirmationWindow, setOpen: setConfirmationWindowOpened } =\r\n useConfirmationWindow({\r\n title: \"Confirmation\",\r\n body: \"Are you sure you want to delete this record ?\",\r\n onConfirmationCallBk: handleDeleteRecord,\r\n });\r\n\r\n let formModalHeight = undefined;\r\n let formModalWidth = undefined;\r\n let formModalMinHeight = undefined;\r\n let formModalMinWidth = undefined;\r\n let formModalIcon = undefined;\r\n let formModalTitle = undefined;\r\n\r\n if (props?.editMode?.editMode === \"modal\") {\r\n formModalHeight = props?.editMode?.specs?.modalHeight || \"fit-content\";\r\n formModalWidth = props?.editMode?.specs?.modalWidth || \"300\";\r\n formModalMinHeight = props?.editMode?.specs?.modalMinHeight;\r\n formModalMinWidth = props?.editMode?.specs?.modalMinWidth;\r\n formModalIcon = props?.editMode?.specs?.modalIcon || \"window\";\r\n formModalTitle = props?.editMode?.specs?.modalTitle || \"Record Form\";\r\n }\r\n\r\n const { Window: FormWindow, setWindowState: setFormWindowState } = useWindow({\r\n height: formModalHeight,\r\n minHeight: formModalMinHeight,\r\n minWidth: formModalMinWidth,\r\n onCloseCallBack: () => {\r\n props.apiActions.reloadData(props?.gridLoadParametersValues);\r\n },\r\n width: formModalWidth,\r\n windowIcon: formModalIcon,\r\n windowTitle: formModalTitle,\r\n });\r\n\r\n const handleCreateNewRecord = () => {\r\n if (props?.editMode?.editMode === \"form\") {\r\n navigate(props.editMode.specs.formRoute);\r\n } else if (props?.editMode?.editMode === \"modal\") {\r\n setRecordToEdit(null);\r\n setFormWindowState(true);\r\n } else if (props?.editMode?.editMode === \"row\") {\r\n currentNewRecordIndex = currentNewRecordIndex - 1;\r\n const newRecord: any = {};\r\n newRecord[keyColumnName] = currentNewRecordIndex;\r\n newRecord.isNew = true;\r\n for (const gridColumn of generatedColumns) {\r\n if (\r\n gridColumn?.type != \"actions\" &&\r\n gridColumn?.field != keyColumnName\r\n ) {\r\n if (gridColumn?.field) {\r\n newRecord[gridColumn.field] = null;\r\n }\r\n }\r\n }\r\n setData((oldRows: any) => [newRecord, ...oldRows]);\r\n setRowModesModel((oldModel: any) => ({\r\n ...oldModel,\r\n [currentNewRecordIndex]: { mode: GridRowModes.Edit },\r\n }));\r\n }\r\n };\r\n\r\n const handleEditRecord = async (record: any) => {\r\n if (record) {\r\n setRecordToEdit(record);\r\n if (props.editMode.editMode === \"form\") {\r\n navigate(props.editMode.specs.formRoute + \"/\" + record[keyColumnName]);\r\n } else if (props.editMode.editMode === \"modal\") {\r\n setFormWindowState(true);\r\n } else if (props?.editMode?.editMode === \"row\") {\r\n const id = record[keyColumnName];\r\n setRowModesModel({\r\n ...rowModesModel,\r\n [id]: { mode: GridRowModes.Edit },\r\n });\r\n }\r\n }\r\n };\r\n\r\n const validateRecord = (record: any) => {\r\n try {\r\n validationSchema.parse(record);\r\n } catch (err) {\r\n console.log(\"validateRecord err\", err);\r\n let errorMessage: any = null;\r\n if (err instanceof z.ZodError) {\r\n errorMessage = err.errors\r\n .map(\r\n (error) => \"Error in field (\" + error.path + \") : \" + error.message\r\n )\r\n .join(\",\");\r\n } else {\r\n errorMessage = \"invalid record data\";\r\n }\r\n return errorMessage;\r\n }\r\n };\r\n\r\n const handleSaveRowClick = (record: any) => {\r\n const id = record[keyColumnName];\r\n setRowModesModel({\r\n ...rowModesModel,\r\n [id]: { mode: GridRowModes.View },\r\n });\r\n };\r\n\r\n const processRowUpdate = async (record: any) => {\r\n if (props.editMode.editMode === \"row\") {\r\n let savedRecord: any = null;\r\n const errorMessage = validateRecord(record);\r\n if (errorMessage) {\r\n const errors = errorMessage.split(\",\");\r\n toast.error(\r\n <div style={{}}>\r\n {errors.map((error: any) => (\r\n <>\r\n <div>{error}</div>\r\n <Divider />\r\n </>\r\n ))}\r\n </div>\r\n );\r\n throw new Error(errorMessage);\r\n }\r\n if (props?.editAction?.preActionValidation) {\r\n if (!props.editAction.preActionValidation(record)) {\r\n throw new Error(\"error on the configured presave validation\");\r\n }\r\n }\r\n const requestObject: any = { ...record };\r\n if (\r\n record[keyColumnName] &&\r\n isNumber(record[keyColumnName]) &&\r\n Number(record[keyColumnName]) < 0\r\n ) {\r\n requestObject[keyColumnName] = null;\r\n }\r\n savedRecord = await props.apiActions.saveRecord(requestObject);\r\n if (savedRecord == null) {\r\n throw new Error(\r\n \"Failed to process your request, contact your administrator\"\r\n );\r\n }\r\n if (props?.editAction?.postActionCallBack) {\r\n await props.editAction.postActionCallBack(record);\r\n }\r\n if (record?.isNew === true) {\r\n setData((oldData: any) => {\r\n const newData = oldData.filter(\r\n (x: any) => x[keyColumnName] !== record[keyColumnName]\r\n );\r\n return [savedRecord, ...newData];\r\n });\r\n }\r\n if (\r\n props?.editMode?.reloadAfterSave === true &&\r\n props?.apiActions?.reloadData\r\n ) {\r\n props?.apiActions?.reloadData(props?.gridLoadParametersValues);\r\n }\r\n return savedRecord;\r\n }\r\n };\r\n\r\n const handleCancelRowEditClick = (record: any) => {\r\n const id = record[keyColumnName];\r\n if (id && isNumber(id) && id < 0) {\r\n setRowModesModel({\r\n ...rowModesModel,\r\n [id]: { mode: GridRowModes.View, ignoreModifications: true },\r\n });\r\n setData((oldData: any) => {\r\n const newData = oldData.filter(\r\n (record: any) => record[keyColumnName] != id\r\n );\r\n return newData;\r\n });\r\n } else {\r\n setRowModesModel({\r\n ...rowModesModel,\r\n [id]: { mode: GridRowModes.View, ignoreModifications: true },\r\n });\r\n }\r\n };\r\n\r\n const getActionColumnActions = (params: GridRowParams<any>) => {\r\n const record: any = params.row;\r\n const actions: Array<React.ReactElement<GridActionsCellItemProps>> = [];\r\n if (props?.editMode?.editMode != \"none\") {\r\n if (\r\n props?.disableDefaultAction === undefined ||\r\n !props.disableDefaultAction\r\n ) {\r\n const isInEditMode: boolean =\r\n rowModesModel[record[keyColumnName]]?.mode === GridRowModes.Edit;\r\n if (props.editMode.editMode === \"row\" && isInEditMode) {\r\n if (isEditAllowed) {\r\n actions.push(\r\n <GridActionsCellItem\r\n icon={<FontAwesomeIcon icon=\"save\" />}\r\n label={t(\"SAVE_BTN_LABEL\")}\r\n onClick={() => {\r\n handleSaveRowClick(record);\r\n }}\r\n />\r\n );\r\n actions.push(\r\n <GridActionsCellItem\r\n icon={<FontAwesomeIcon icon=\"cancel\" />}\r\n label={t(\"CANCEL_BTN_LABEL\")}\r\n onClick={() => {\r\n handleCancelRowEditClick(record);\r\n }}\r\n color=\"inherit\"\r\n />\r\n );\r\n }\r\n } else {\r\n if (props?.editAction && props?.editAction?.isEnabled === true) {\r\n let isEditActionVisibleForRecord = true;\r\n if (props?.editAction?.isActionVisibleForRecord) {\r\n isEditActionVisibleForRecord =\r\n props?.editAction?.isActionVisibleForRecord(record);\r\n }\r\n let isActionEditDisabledForRecord = false;\r\n if (props?.editAction?.isActionDisabledForRecord) {\r\n isActionEditDisabledForRecord =\r\n props?.editAction?.isActionDisabledForRecord(record);\r\n }\r\n if (isEditAllowed && isEditActionVisibleForRecord) {\r\n actions.push(\r\n <GridActionsCellItem\r\n disabled={isActionEditDisabledForRecord}\r\n icon={\r\n <Tooltip title={t(\"EDIT_BTN_LABEL\")}>\r\n <FontAwesomeIcon\r\n icon={\"edit\"}\r\n style={{\r\n color: isActionEditDisabledForRecord\r\n ? \"gray\"\r\n : undefined,\r\n }}\r\n />\r\n </Tooltip>\r\n }\r\n showInMenu={\r\n props?.editAction?.gridActionProps?.showInMenu || false\r\n }\r\n label={t(\"EDIT_BTN_LABEL\")}\r\n className=\"textPrimary\"\r\n color=\"inherit\"\r\n onClick={() => {\r\n if (isEditAllowed && !isActionEditDisabledForRecord) {\r\n handleEditRecord(record);\r\n }\r\n }}\r\n />\r\n );\r\n }\r\n }\r\n if (props?.deleteAction && props?.deleteAction?.isEnabled === true) {\r\n let isDeleteActionVisibleForRecord = true;\r\n if (props?.deleteAction?.isActionVisibleForRecord) {\r\n isDeleteActionVisibleForRecord =\r\n props?.deleteAction?.isActionVisibleForRecord(record);\r\n }\r\n let isDeleteActionDisabledForRecord = false;\r\n if (props?.deleteAction?.isActionDisabledForRecord) {\r\n isDeleteActionDisabledForRecord =\r\n props?.deleteAction?.isActionDisabledForRecord(record);\r\n }\r\n if (isDeleteAllowed && isDeleteActionVisibleForRecord) {\r\n actions.push(\r\n <GridActionsCellItem\r\n disabled={isDeleteActionDisabledForRecord}\r\n icon={\r\n <Tooltip title={t(\"DELETE_BTN_LABEL\")}>\r\n <FontAwesomeIcon\r\n icon={\"trash\"}\r\n style={{\r\n color: isDeleteActionDisabledForRecord\r\n ? \"gray\"\r\n : undefined,\r\n }}\r\n />\r\n </Tooltip>\r\n }\r\n showInMenu={\r\n props?.deleteAction?.gridActionProps?.showInMenu || false\r\n }\r\n label={t(\"DELETE_BTN_LABEL\")}\r\n className=\"textPrimary\"\r\n color=\"inherit\"\r\n onClick={() => {\r\n if (isDeleteAllowed && !isDeleteActionDisabledForRecord) {\r\n if (props?.deleteAction?.preActionValidation) {\r\n if (!props.deleteAction.preActionValidation(record)) {\r\n return;\r\n }\r\n }\r\n setRecordToDelete(record);\r\n setConfirmationWindowOpened(true);\r\n }\r\n }}\r\n />\r\n );\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if (props?.rowActions) {\r\n for (const rowAction of props.rowActions) {\r\n if (\r\n !(\r\n rowAction?.gridActionProps?.multiRecord &&\r\n rowAction?.gridActionProps?.multiRecord === true\r\n )\r\n ) {\r\n actions.push(\r\n <TemplateGridRecordAction\r\n {...rowAction}\r\n record={record}\r\n reloadData={async () => {\r\n props.apiActions.reloadData(props?.gridLoadParametersValues);\r\n }}\r\n />\r\n );\r\n }\r\n }\r\n }\r\n\r\n return actions;\r\n };\r\n\r\n const actionColumn: TemplateGridColDef = {\r\n type: \"actions\",\r\n field: \"actions\",\r\n headerName: \"\",\r\n headerAlign: \"center\",\r\n width:\r\n (props?.rowActions ? props.rowActions.length * 30 : 0) +\r\n (props?.editAction && props?.editAction?.isEnabled ? 30 : 0) +\r\n (props?.deleteAction && props?.deleteAction?.isEnabled ? 30 : 0),\r\n getActions: getActionColumnActions,\r\n };\r\n\r\n let structuredColumns: Array<TemplateGridColDef> = [];\r\n if (\r\n props?.disableDefaultAction === undefined ||\r\n !props.disableDefaultAction ||\r\n (props?.rowActions && props?.rowActions.length > 0)\r\n ) {\r\n structuredColumns.push(actionColumn);\r\n }\r\n\r\n structuredColumns = [...structuredColumns, ...generatedColumns];\r\n const handleRowSelection = (gridSelectionModel: GridRowSelectionModel) => {\r\n setRowSelectionModel(gridSelectionModel);\r\n };\r\n useEffect(() => {\r\n if (props?.autoLoad === undefined || props.autoLoad === true) {\r\n props.apiActions.reloadData(props?.gridLoadParametersValues);\r\n }\r\n adjustGridColumns();\r\n }, []);\r\n\r\n useEffect(() => {\r\n adjustGridColumns();\r\n }, [themeDirection, props.formElements]);\r\n\r\n const handleColumnVisibilityChange = (model: GridColumnVisibilityModel) => {\r\n setColumnVisibilityModel(model);\r\n if (props?.gridStateKey) {\r\n saveGridState(props.gridStateKey, { columnVisibilityModel: model });\r\n }\r\n };\r\n\r\n const handleColumnOrderChange: GridEventListener<\"columnOrderChange\"> = (\r\n params: GridColumnOrderChangeParams\r\n ) => {\r\n const { column, targetIndex } = params;\r\n setColumnOrder((prevOrder) => {\r\n const currentOrder = prevOrder.length\r\n ? [...prevOrder]\r\n : structuredColumns.map((col) => col.field);\r\n const fromIndex = currentOrder.indexOf(column.field);\r\n if (fromIndex === -1) return currentOrder;\r\n\r\n currentOrder.splice(fromIndex, 1); // remove\r\n currentOrder.splice(targetIndex, 0, column.field); // insert at new index\r\n\r\n if (props?.gridStateKey) {\r\n saveGridState(props.gridStateKey, { columnOrder: currentOrder });\r\n }\r\n\r\n return currentOrder;\r\n });\r\n };\r\n\r\n const handleRowGroupChange = (model: GridRowGroupingModel) => {\r\n setGridRowGroupingModel(model);\r\n if (props?.gridStateKey) {\r\n saveGridState(props.gridStateKey, { columnGroupingModel: model });\r\n }\r\n };\r\n\r\n const handleColumnWidthChange: GridEventListener<\"columnWidthChange\"> = (\r\n params: GridColumnResizeParams\r\n ) => {\r\n const updatedWidths = {\r\n ...columnWidths,\r\n [params.colDef.field]: params.width,\r\n };\r\n setColumnWidths(updatedWidths);\r\n if (props?.gridStateKey) {\r\n saveGridState(props.gridStateKey, { columnWidths: updatedWidths });\r\n }\r\n };\r\n\r\n const adjustedColumns: Array<TemplateGridColDef> = React.useMemo(() => {\r\n const baseCols = structuredColumns.map((col) => ({\r\n ...col,\r\n width: columnWidths[col.field] || col.width,\r\n }));\r\n\r\n // Reorder based on saved columnOrder\r\n if (columnOrder.length) {\r\n const fieldToCol = new Map(baseCols.map((col) => [col.field, col]));\r\n return columnOrder.map((field) => fieldToCol.get(field)!).filter(Boolean);\r\n }\r\n\r\n return baseCols;\r\n }, [columnOrder, columnWidths, structuredColumns]);\r\n return (\r\n <>\r\n <ConfirmationWindow />\r\n {props?.editMode?.editMode === \"modal\" ? (\r\n <FormWindow>\r\n {props?.editMode?.specs?.formComponent ? (\r\n <props.editMode.specs.formComponent\r\n recordIdToEdit={\r\n recordToEdit ? recordToEdit[keyColumnName] : undefined\r\n }\r\n formCloseCallBk={() => {\r\n setFormWindowState(false);\r\n props.apiActions.reloadData(props?.gridLoadParametersValues);\r\n }}\r\n />\r\n ) : (\r\n <TemplateForm\r\n formLoadCallBk={props.formLoadCallBk}\r\n recordIdToEdit={\r\n recordToEdit ? recordToEdit[keyColumnName] : undefined\r\n }\r\n formCloseCallBk={() => {\r\n setFormWindowState(false);\r\n props.apiActions.reloadData(props?.gridLoadParametersValues);\r\n }}\r\n elements={props.formElements}\r\n apiActions={props.apiActions}\r\n editAuthorityKey={props?.editAction?.authority}\r\n formSavedSuccessfullyCallBk={\r\n props?.editAction?.postActionCallBack\r\n }\r\n preSaveValidation={props?.editAction?.preActionValidation}\r\n actions={props?.rowActions}\r\n />\r\n )}\r\n </FormWindow>\r\n ) : (\r\n <></>\r\n )}\r\n {props?.hideInfoBar === undefined && !props?.hideInfoBar ? (\r\n <Box sx={{ display: \"flex\" }}>\r\n {props?.hideBackButton === undefined && !props?.hideBackButton ? (\r\n <IconButton\r\n onClick={() => {\r\n navigate(-1, { replace: true });\r\n }}\r\n >\r\n <FontAwesomeIcon icon=\"arrow-left\" />\r\n </IconButton>\r\n ) : (\r\n <></>\r\n )}\r\n <Box\r\n sx={{\r\n flex: 1,\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n {props?.girdIcon ? (\r\n <FontAwesomeIcon\r\n icon={props.girdIcon}\r\n style={{ marginRight: 5, marginLeft: 5 }}\r\n />\r\n ) : (\r\n <></>\r\n )}\r\n <Typography variant=\"h5\">\r\n {props?.gridTitle\r\n ? capitalizeFirstLetter(t(props?.gridTitle))\r\n : \"\"}\r\n </Typography>\r\n </Box>\r\n </Box>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n {props?.gridLoadParameters &&\r\n props?.gridLoadParameters.length > 0 &&\r\n props?.gridLoadParametersValues &&\r\n props?.setGridLoadParametersValues ? (\r\n <Accordion defaultExpanded sx={{ width: \"100%\" }}>\r\n <AccordionSummary expandIcon={<GridExpandMoreIcon />}>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n style={{ marginLeft: 5, marginRight: 5 }}\r\n icon=\"search\"\r\n />\r\n <Typography component=\"span\">Filters</Typography>\r\n </Box>\r\n </AccordionSummary>\r\n <AccordionDetails>\r\n <Box>\r\n <TemplateForm\r\n saveButtonSpecs={{\r\n label: t(\"SEARCH_BTN_LABEL\"),\r\n icon: \"search\",\r\n actionButtonVariant: \"outlined\",\r\n actionButtonColor: \"success\",\r\n }}\r\n cancelButtonSpecs={{\r\n label: t(\"RESET_BTN_LABEL\"),\r\n icon: \"eraser\",\r\n actionButtonVariant: \"outlined\",\r\n actionButtonColor: \"error\",\r\n }}\r\n apiActions={{\r\n deleteRecordById: async () => {\r\n return true;\r\n },\r\n saveRecord: async (params) => {\r\n if (params != undefined) {\r\n props.setGridLoadParametersValues(params);\r\n } else {\r\n props.setGridLoadParametersValues({});\r\n }\r\n props.apiActions.reloadData(params);\r\n },\r\n reloadData: async () => {},\r\n loadRecordById: async () => {},\r\n }}\r\n elements={props.gridLoadParameters}\r\n />\r\n </Box>\r\n </AccordionDetails>\r\n </Accordion>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n <DataGridPremium\r\n {...props?.muiProps}\r\n slots={{ toolbar: TemplateGridTopBar }}\r\n slotProps={{\r\n toolbar: {\r\n templateProps: {\r\n ...props,\r\n rowSelectionModel: rowSelectionModel,\r\n data: props?.data,\r\n },\r\n handleCreateNewRecord,\r\n clearGridState,\r\n } as any,\r\n }}\r\n getRowId={(record: any) => {\r\n return record[keyColumnName];\r\n }}\r\n showToolbar={true}\r\n rows={props?.data}\r\n columns={adjustedColumns}\r\n checkboxSelection\r\n editMode=\"row\"\r\n rowModesModel={\r\n props.editMode.editMode == \"row\" ? rowModesModel : undefined\r\n }\r\n onRowModesModelChange={\r\n props.editMode.editMode == \"row\"\r\n ? handleRowModesModelChange\r\n : undefined\r\n }\r\n rowGroupingColumnMode=\"multiple\"\r\n processRowUpdate={processRowUpdate}\r\n rowSelectionModel={rowSelectionModel}\r\n onRowSelectionModelChange={handleRowSelection}\r\n columnVisibilityModel={columnVisibilityModel}\r\n onColumnVisibilityModelChange={handleColumnVisibilityChange}\r\n onColumnOrderChange={handleColumnOrderChange}\r\n onColumnWidthChange={handleColumnWidthChange}\r\n rowGroupingModel={gridRowGroupingModel}\r\n onRowGroupingModelChange={(model: GridRowGroupingModel) => {\r\n handleRowGroupChange(model);\r\n }}\r\n pinnedColumns={pinnedColumns}\r\n onPinnedColumnsChange={handlePinnedColumnsChange}\r\n sx={{ width: \"100%\" }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default TemplateGrid;\r\n","import { useSelector } from \"react-redux\";\r\nimport { TemplateGridColDef } from \"../components\";\r\nimport useAxios from \"./useAxios\";\r\n\r\nconst useLookupGridColumn = () => {\r\n const { handleGetRequest } = useAxios();\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const getLookupOptions = async (lookupType: string) => {\r\n let options = [];\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/dev/system/lookup\",\r\n showMask: true,\r\n parameters: { lookupType },\r\n successCallBkFn: (response: any) => {\r\n options = response.data;\r\n },\r\n });\r\n return options;\r\n };\r\n const generateLookupGridColumn = async (props: TemplateGridColDef) => { \r\n let options = await getLookupOptions(props.lookupType);\r\n return {\r\n ...props,\r\n options,\r\n displayField:\r\n AppLayout.appDirection === \"ltr\"\r\n ? \"lookupEnDisplay\"\r\n : \"lookupArDisplay\",\r\n valueField: \"lookupValue\",\r\n };\r\n };\r\n return { generateLookupGridColumn, getLookupOptions };\r\n};\r\n\r\nexport default useLookupGridColumn;\r\n","import { useState } from \"react\";\r\nimport { useAxios, useSession } from \"../../hooks\";\r\nimport { ComboBox } from \"../templates\";\r\nimport { Box, Button } from \"@mui/material\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { UserSessionActions } from \"../../redux/features/common/UserSessionSlice\";\r\n\r\ntype ChangeOrgFormProps = {\r\n successChangeCallBackFn: () => void;\r\n};\r\n\r\nconst ChangeOrgForm: React.FC<ChangeOrgFormProps> = (props) => {\r\n const { UserSession } = useSession();\r\n const AppLayoutState = useSelector((state: any) => state.AppLayout);\r\n const dispatch = useDispatch();\r\n const { handlePostRequest } = useAxios();\r\n const [newOrgId, setNewOrgId] = useState(\r\n UserSession.value.currentOrganization.id\r\n );\r\n return (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n width: \"100%\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n padding: 1,\r\n }}\r\n >\r\n <ComboBox\r\n sx={{ width: \"100%\" }}\r\n displayField={\r\n AppLayoutState.appDirection === \"ltr\"\r\n ? \"organizationEnName\"\r\n : \"organizationArName\"\r\n }\r\n valueField=\"id\"\r\n label=\"\"\r\n options={UserSession.value.userOrganizations}\r\n value={newOrgId}\r\n onChangeCallBack={(value) => {\r\n setNewOrgId(value);\r\n }}\r\n />\r\n <Button\r\n sx={{ m: 1 }}\r\n variant=\"contained\"\r\n disabled={\r\n newOrgId == null ||\r\n newOrgId === UserSession.value.currentOrganization.id\r\n }\r\n onClick={async () => {\r\n await handlePostRequest({\r\n endPointURI: \"api/auth/changeCurrentOrg\",\r\n showMask: true,\r\n parameters: {\r\n username: UserSession.value.username,\r\n orgId: newOrgId,\r\n },\r\n data: {},\r\n successCallBkFn: (response) => {\r\n const UserSession = {\r\n ...response.data,\r\n isAuthenticated: true,\r\n };\r\n dispatch(UserSessionActions.setAuthenticated(UserSession));\r\n if (props.successChangeCallBackFn) {\r\n props.successChangeCallBackFn();\r\n }\r\n },\r\n });\r\n }}\r\n >\r\n Change Organization\r\n </Button>\r\n </Box>\r\n );\r\n};\r\n\r\nexport default ChangeOrgForm;\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\nexport const DRAWER_WIDTH = 350;\r\n\r\ninterface SideBarState {\r\n isOpened: boolean;\r\n}\r\n\r\nconst initialState: SideBarState = {\r\n isOpened: false,\r\n};\r\n\r\nconst SideBarSlice = createSlice({\r\n name: \"SideBar\",\r\n initialState,\r\n reducers: {\r\n toggleSideBarState: (state) => {\r\n debugger;\r\n state.isOpened = !state.isOpened;\r\n },\r\n setSideBarState: (state, action) => {\r\n debugger;\r\n state.isOpened = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const { toggleSideBarState, setSideBarState } = SideBarSlice.actions;\r\nexport default SideBarSlice.reducer;\r\n","import {\r\n Avatar,\r\n Box,\r\n IconButton,\r\n styled,\r\n Tooltip,\r\n Typography,\r\n} from \"@mui/material\";\r\nimport MuiAppBar, { AppBarProps as MuiAppBarProps } from \"@mui/material/AppBar\";\r\nimport Toolbar from \"@mui/material/Toolbar\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { useIsMobile } from \"../hooks/UseMobile\";\r\nimport {\r\n AppLayoutActions,\r\n DRAWER_WIDTH,\r\n} from \"../redux/features/common/AppLayoutSlice\";\r\nimport useAxios from \"../hooks/useAxios\";\r\nimport { UserSessionActions } from \"../redux/features/common/UserSessionSlice\";\r\nimport i18n, { changeLanguage } from \"../locales/i18n\";\r\nimport { useSession, useWindow } from \"../hooks\";\r\nimport ChangeOrgForm from \"../components/common/ChangeOrgForm\";\r\nimport { toggleSideBarState } from \"../redux/features/common/SideBarSlice\";\r\n\r\ninterface AppBarProps extends MuiAppBarProps {\r\n open?: boolean;\r\n}\r\n\r\nconst AppBar = styled(MuiAppBar, {\r\n shouldForwardProp: (prop) => prop !== \"open\",\r\n})<AppBarProps>(({ theme }) => {\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const isMobile = useIsMobile();\r\n return {\r\n transition: theme.transitions.create([\"margin\", \"width\"], {\r\n easing: theme.transitions.easing.sharp,\r\n duration: theme.transitions.duration.leavingScreen,\r\n }),\r\n variants: [\r\n {\r\n props: ({ open }) => open,\r\n style: {\r\n width: !isMobile ? `calc(100% - ${DRAWER_WIDTH}px)` : undefined,\r\n marginLeft:\r\n !isMobile && AppLayout.appDirection === \"ltr\"\r\n ? `${DRAWER_WIDTH}px`\r\n : undefined,\r\n marginRight:\r\n !isMobile && AppLayout.appDirection === \"rtl\"\r\n ? `${DRAWER_WIDTH}px`\r\n : undefined,\r\n transition: theme.transitions.create([\"margin\", \"width\"], {\r\n easing: theme.transitions.easing.easeOut,\r\n duration: theme.transitions.duration.enteringScreen,\r\n }),\r\n },\r\n },\r\n ],\r\n };\r\n});\r\n\r\nconst TopBar: React.FC = () => {\r\n const { Window: ChangeOrgWindow, setWindowState: setChangeOrgWindowState } =\r\n useWindow({\r\n windowTitle: \"Change Current Organization\",\r\n windowIcon: \"globe\",\r\n width: \"fit-content\",\r\n height: \"fit-content\",\r\n });\r\n const AppInfo = useSelector((state: any) => state.AppInfo.value);\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const SideBarState = useSelector((state: any) => state.SideBar);\r\n const { UserSession } = useSession();\r\n const currentOrganization = UserSession.value.currentOrganization;\r\n const { handleGetRequest } = useAxios();\r\n const isMobile = useIsMobile();\r\n const dispatch = useDispatch();\r\n const handleLogout = async () => {\r\n try {\r\n await handleGetRequest({ endPointURI: \"api/auth/logout\" });\r\n } catch (error) {\r\n console.log(\"logout error\", error);\r\n }\r\n dispatch(UserSessionActions.setUnAuthenticated());\r\n };\r\n const toggleSideBar = () => {\r\n dispatch(toggleSideBarState());\r\n };\r\n return (\r\n <>\r\n <ChangeOrgWindow>\r\n <ChangeOrgForm\r\n successChangeCallBackFn={() => {\r\n setChangeOrgWindowState(false);\r\n }}\r\n />\r\n </ChangeOrgWindow>\r\n <AppBar position=\"fixed\" open={SideBarState.isOpened}>\r\n <Toolbar>\r\n <IconButton\r\n color=\"inherit\"\r\n aria-label=\"open drawer\"\r\n onClick={toggleSideBar}\r\n edge=\"start\"\r\n sx={[\r\n {\r\n mr: AppLayout.appDirection === \"ltr\" ? 2 : undefined,\r\n ml: AppLayout.appDirection === \"rtl\" ? 2 : undefined,\r\n },\r\n SideBarState.isOpened && { display: \"none\" },\r\n ]}\r\n >\r\n <FontAwesomeIcon icon=\"bars\" />\r\n </IconButton>\r\n <Avatar\r\n src={AppInfo.appLogo}\r\n sx={{ marginRight: 1, marginLeft: 1 }}\r\n />\r\n <Typography variant=\"h6\" noWrap component=\"div\" sx={{ flex: 1 }}>\r\n {isMobile\r\n ? \"\"\r\n : `${AppInfo.appName} - ${\r\n AppLayout.appDirection === \"ltr\"\r\n ? currentOrganization?.organizationEnName\r\n : currentOrganization?.organizationArName\r\n }`}\r\n </Typography>\r\n <Tooltip\r\n title={\r\n AppLayout.themeMode === \"light\"\r\n ? \"Switch Theme to Dark\"\r\n : \"Switch Theme to Light\"\r\n }\r\n >\r\n <IconButton\r\n color=\"inherit\"\r\n onClick={() => {\r\n dispatch(\r\n AppLayoutActions.setThemeMode(\r\n AppLayout.themeMode === \"light\" ? \"dark\" : \"light\"\r\n )\r\n );\r\n localStorage.setItem(\r\n \"themeMode\",\r\n AppLayout.themeMode === \"light\" ? \"dark\" : \"light\"\r\n );\r\n }}\r\n >\r\n {AppLayout.themeMode === \"light\" ? (\r\n <FontAwesomeIcon icon=\"moon\" />\r\n ) : (\r\n <FontAwesomeIcon icon={{ prefix: \"far\", iconName: \"sun\" }} />\r\n )}\r\n </IconButton>\r\n </Tooltip>\r\n <Tooltip\r\n title={\r\n i18n.language === \"ar\"\r\n ? \"Change Language To English\"\r\n : \"Change Language To Arabic\"\r\n }\r\n >\r\n <IconButton\r\n color=\"inherit\"\r\n onClick={() => {\r\n let nextLanguage = i18n.language === \"ar\" ? \"en\" : \"ar\";\r\n changeLanguage(nextLanguage);\r\n dispatch(\r\n AppLayoutActions.setAppDirection(\r\n nextLanguage === \"ar\" ? \"rtl\" : \"ltr\"\r\n )\r\n );\r\n }}\r\n >\r\n <FontAwesomeIcon icon=\"language\" />\r\n </IconButton>\r\n </Tooltip>\r\n {UserSession.value?.userOrganizations &&\r\n UserSession.value?.userOrganizations.length > 1 ? (\r\n <Tooltip title=\"Change Current Organization\">\r\n <IconButton\r\n color=\"inherit\"\r\n onClick={() => {\r\n setChangeOrgWindowState(true);\r\n }}\r\n >\r\n <FontAwesomeIcon icon=\"globe\" />\r\n </IconButton>\r\n </Tooltip>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n <Avatar />\r\n <div style={{ marginLeft: 5, marginRight: 5 }}>\r\n {isMobile ? \"\" : UserSession.value?.username}\r\n </div>\r\n <IconButton color=\"inherit\" onClick={handleLogout}>\r\n <FontAwesomeIcon\r\n rotation={AppLayout.appDirection === \"rtl\" ? 180 : undefined}\r\n icon=\"arrow-right-from-bracket\"\r\n />\r\n </IconButton>\r\n </Toolbar>\r\n </AppBar>\r\n </>\r\n );\r\n};\r\n\r\nexport default TopBar;\r\n","import { styled } from \"@mui/material\";\r\n\r\nexport const DrawerHeader = styled(\"div\")(({ theme }) => ({\r\n display: \"flex\",\r\n alignItems: \"center\", \r\n // padding: theme.spacing(0, 1),\r\n // necessary for content to be below app bar\r\n ...theme.mixins.toolbar,\r\n justifyContent: \"flex-end\",\r\n}));\r\n","import { TreeViewBaseItem } from \"@mui/x-tree-view/models\";\r\nimport { AdministrationItems } from \"./Administration\";\r\nimport { IconProp } from \"@fortawesome/fontawesome-svg-core\";\r\n\r\nexport type ExtendedTreeItemProps = {\r\n icon: IconProp;\r\n id: string;\r\n label: string;\r\n action?: \"NAVIGATION\";\r\n authority?: string;\r\n actionPayload?: {\r\n path?: string;\r\n parameters?: object;\r\n };\r\n children?: ExtendedTreeItemProps[];\r\n};\r\n\r\nexport const findNavigationItemById = (\r\n id: string,\r\n nodes: ExtendedTreeItemProps[]\r\n): ExtendedTreeItemProps | undefined => {\r\n for (const node of nodes) {\r\n if (node.id === id) return node;\r\n if (node.children) {\r\n const found = findNavigationItemById(id, node.children);\r\n if (found) return found;\r\n }\r\n }\r\n return undefined;\r\n};\r\n\r\nexport const NavigationItems: TreeViewBaseItem<ExtendedTreeItemProps>[] = [\r\n ...AdministrationItems, \r\n];\r\n","import { TreeViewBaseItem } from \"@mui/x-tree-view/models\";\r\nimport { ExtendedTreeItemProps } from \"..\";\r\nimport { adminNavigationItems } from \"./adminNavigationItems\";\r\n\r\nexport const AdministrationItems: TreeViewBaseItem<ExtendedTreeItemProps>[] = [\r\n {\r\n id: \"home\",\r\n icon: \"home\",\r\n label: \"Home\",\r\n action: \"NAVIGATION\",\r\n actionPayload: {\r\n path: \"/\",\r\n },\r\n },\r\n ...adminNavigationItems,\r\n];\r\n","import { TreeViewBaseItem } from \"@mui/x-tree-view/models\";\r\nimport { ExtendedTreeItemProps } from \"..\";\r\n\r\nexport const adminNavigationItems: TreeViewBaseItem<ExtendedTreeItemProps>[] = [\r\n {\r\n id: \"system_admin\",\r\n label: \"System Administration\",\r\n authority: \"SYSTEM_ADMIN\",\r\n icon: \"cog\",\r\n children: [\r\n {\r\n id: \"development_admin.organization\",\r\n label: \"ORGANIZATION_PLURAL\",\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n icon: \"globe\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"admin/organizations\" },\r\n },\r\n {\r\n id: \"development_admin.SystemApplication\",\r\n label: \"SYSTEM_APPLICATION_PLURAL\",\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n icon: \"window-restore\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"admin/systemapplications\" },\r\n },\r\n {\r\n id: \"system_admin.Person\",\r\n label: \"PERSON_PLURAL\",\r\n icon: \"users\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"admin/persons\" },\r\n },\r\n {\r\n id: \"system_admin.devtools\",\r\n label: \"DEVELOPMENT_TOOLS\",\r\n icon: \"code\",\r\n children: [\r\n {\r\n id: \"system_admin.devtools.DatasourceConnection\",\r\n label: \"DATASOURCE_CONNECTION_PLURAL\",\r\n icon: \"plug\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/datasourceconnections\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.EntityParameter\",\r\n label: \"ENTITY_PARAMETER_PLURAL\",\r\n icon: \"p\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/entityparameters\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.DataQuery\",\r\n label: \"DATA_QUERY_PLURAL\",\r\n icon: \"file-code\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/dataqueries\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.Report\",\r\n label: \"REPORT_PLURAL\",\r\n icon: \"file\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/reports\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.MailConfig\",\r\n label: \"Mail Sender Config\",\r\n icon: { iconName: \"paper-plane\", prefix: \"fas\" },\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/mailsender/config\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.MailTemplate\",\r\n label: \"MAIL_TEMPLATE_PLURAL\",\r\n icon: \"envelope\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/mailtemplates\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.WorkflowDocument\",\r\n label: \"WORKFLOW_DOCUMENT_PLURAL\",\r\n icon: \"chart-diagram\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/workflowdocuments\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.Widget\",\r\n label: \"WIDGET_PLURAL\",\r\n icon: \"chart-pie\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/widgets\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.Dashboard\",\r\n label: \"DASHBOARD_PLURAL\",\r\n icon: \"square-poll-vertical\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/dashboards\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.BluePrint\",\r\n label: \"BLUE_PRINT_PLURAL\",\r\n icon: \"fingerprint\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/blueprints\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.Notification\",\r\n label: \"NOTIFICATION_PLURAL\",\r\n icon: \"bell\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/notifications\" },\r\n },\r\n ],\r\n },\r\n {\r\n id: \"system_admin.followup\",\r\n label: \"SYSTEM_MONITORING\",\r\n icon: \"tv\",\r\n children: [\r\n {\r\n id: \"system_admin.WorkflowDocumentMailLog\",\r\n label: \"Action Mail Logs\",\r\n icon: \"envelopes-bulk\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/workflowdocumentmaillogs\" },\r\n },\r\n {\r\n id: \"system_admin.MailNotificationQueue\",\r\n label: \"Mail Notification Queue\",\r\n icon: \"envelope-open-text\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/mailnotificationqueues\" },\r\n },\r\n {\r\n id: \"system_admin.NotificationQueue\",\r\n label: \"NOTIFICATION_QUEUE_PLURAL\",\r\n icon: \"bell\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/notificationqueues\" },\r\n },\r\n ],\r\n },\r\n ],\r\n },\r\n];\r\n","import * as React from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { animated, useSpring } from \"@react-spring/web\";\r\nimport { styled, alpha } from \"@mui/material/styles\";\r\nimport { TransitionProps } from \"@mui/material/transitions\";\r\nimport Box from \"@mui/material/Box\";\r\nimport Collapse from \"@mui/material/Collapse\";\r\nimport Typography from \"@mui/material/Typography\";\r\nimport { RichTreeView } from \"@mui/x-tree-view/RichTreeView\";\r\nimport { treeItemClasses } from \"@mui/x-tree-view/TreeItem\";\r\nimport {\r\n useTreeItem2,\r\n UseTreeItem2Parameters,\r\n} from \"@mui/x-tree-view/useTreeItem2\";\r\nimport {\r\n TreeItem2Checkbox,\r\n TreeItem2Content,\r\n TreeItem2IconContainer,\r\n TreeItem2Label,\r\n TreeItem2Root,\r\n} from \"@mui/x-tree-view/TreeItem2\";\r\nimport { TreeItem2Icon } from \"@mui/x-tree-view/TreeItem2Icon\";\r\nimport { TreeItem2Provider } from \"@mui/x-tree-view/TreeItem2Provider\";\r\nimport { TreeItem2DragAndDropOverlay } from \"@mui/x-tree-view/TreeItem2DragAndDropOverlay\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { useNavigate } from \"react-router-dom\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { RootState } from \"../redux/store\";\r\nimport { IconProp } from \"@fortawesome/fontawesome-svg-core\";\r\nimport { useIsMobile } from \"../hooks/UseMobile\";\r\nimport useSession from \"../hooks/UseSession\";\r\nimport { findNavigationItemById, NavigationItems } from \"../navigationItems\";\r\nimport { DRAWER_WIDTH } from \"../redux/features/common/AppLayoutSlice\";\r\n\r\nfunction DotIcon() {\r\n return (\r\n <Box\r\n sx={{\r\n width: 6,\r\n height: 6,\r\n borderRadius: \"70%\",\r\n bgcolor: \"warning.main\",\r\n display: \"inline-block\",\r\n verticalAlign: \"middle\",\r\n zIndex: 1,\r\n mx: 1,\r\n }}\r\n />\r\n );\r\n}\r\ndeclare module \"react\" {\r\n interface CSSProperties {\r\n \"--tree-view-color\"?: string;\r\n \"--tree-view-bg-color\"?: string;\r\n }\r\n}\r\n\r\nconst StyledTreeItemRoot = styled(TreeItem2Root)(({ theme }) => ({\r\n color: theme.palette.grey[400],\r\n position: \"relative\",\r\n [`& .${treeItemClasses.groupTransition}`]: {\r\n marginLeft: theme.spacing(2.5),\r\n },\r\n ...theme.applyStyles(\"light\", {\r\n color: theme.palette.grey[800],\r\n }),\r\n})) as unknown as typeof TreeItem2Root;\r\n\r\nconst CustomTreeItemContent = styled(TreeItem2Content)(({ theme }) => ({\r\n flexDirection: \"row-reverse\",\r\n borderRadius: theme.spacing(0.7),\r\n marginBottom: theme.spacing(0.5),\r\n marginTop: theme.spacing(0.5),\r\n padding: theme.spacing(0.5),\r\n paddingRight: theme.spacing(1),\r\n [`&.Mui-expanded `]: {\r\n \"&:not(.Mui-focused, .Mui-selected, .Mui-selected.Mui-focused) .labelIcon\":\r\n {\r\n color: theme.palette.primary.dark,\r\n ...theme.applyStyles(\"light\", {\r\n color: theme.palette.primary.main,\r\n }),\r\n },\r\n \"&::before\": {\r\n content: '\"\"',\r\n display: \"block\",\r\n position: \"absolute\",\r\n left: \"16px\",\r\n top: \"44px\",\r\n height: \"calc(100% - 48px)\",\r\n width: \"1.5px\",\r\n backgroundColor: theme.palette.grey[700],\r\n ...theme.applyStyles(\"light\", {\r\n backgroundColor: theme.palette.grey[300],\r\n }),\r\n },\r\n },\r\n \"&:hover\": {\r\n backgroundColor: alpha(theme.palette.primary.main, 0.1),\r\n color: \"white\",\r\n ...theme.applyStyles(\"light\", {\r\n color: theme.palette.primary.main,\r\n }),\r\n },\r\n [`&.Mui-focused, &.Mui-selected, &.Mui-selected.Mui-focused`]: {\r\n backgroundColor: theme.palette.primary.dark,\r\n color: theme.palette.primary.contrastText,\r\n ...theme.applyStyles(\"light\", {\r\n backgroundColor: theme.palette.primary.main,\r\n }),\r\n },\r\n}));\r\n\r\nconst AnimatedCollapse = animated(Collapse);\r\n\r\nfunction TransitionComponent(props: TransitionProps) {\r\n const style = useSpring({\r\n to: {\r\n opacity: props.in ? 1 : 0,\r\n transform: `translate3d(0,${props.in ? 0 : 20}px,0)`,\r\n },\r\n });\r\n\r\n return <AnimatedCollapse style={style} {...props} />;\r\n}\r\n\r\nconst StyledTreeItemLabelText = styled(Typography)({\r\n color: \"inherit\",\r\n fontWeight: 500,\r\n}) as unknown as typeof Typography;\r\n\r\ninterface CustomLabelProps {\r\n children: any;\r\n icon: IconProp;\r\n expandable?: boolean;\r\n}\r\n\r\nfunction CustomLabel({\r\n icon,\r\n expandable,\r\n children,\r\n ...other\r\n}: CustomLabelProps) {\r\n const { t } = useTranslation();\r\n const appLayoutState = useSelector((state: RootState) => state.AppLayout);\r\n return (\r\n <TreeItem2Label\r\n {...other}\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n padding: 1,\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n style={{\r\n marginRight: appLayoutState.appDirection === \"ltr\" ? 7 : undefined,\r\n marginLeft: appLayoutState.appDirection === \"rtl\" ? 7 : undefined,\r\n fontSize: \"1.2rem\",\r\n }}\r\n icon={icon}\r\n />\r\n <StyledTreeItemLabelText variant=\"body2\" sx={{ fontSize: 16 }}>\r\n {t(children)}\r\n </StyledTreeItemLabelText>\r\n {expandable && <DotIcon />}\r\n </TreeItem2Label>\r\n );\r\n}\r\n\r\nconst isExpandable = (reactChildren: React.ReactNode) => {\r\n if (Array.isArray(reactChildren)) {\r\n return reactChildren.length > 0 && reactChildren.some(isExpandable);\r\n }\r\n return Boolean(reactChildren);\r\n};\r\n\r\ninterface CustomTreeItemProps\r\n extends Omit<UseTreeItem2Parameters, \"rootRef\">,\r\n Omit<React.HTMLAttributes<HTMLLIElement>, \"onFocus\"> {}\r\n\r\nconst CustomTreeItem = React.forwardRef(function CustomTreeItem(\r\n props: CustomTreeItemProps,\r\n ref: React.Ref<HTMLLIElement>\r\n) {\r\n const { id, itemId, label, disabled, children, ...other } = props;\r\n const {\r\n getRootProps,\r\n getContentProps,\r\n getIconContainerProps,\r\n getCheckboxProps,\r\n getLabelProps,\r\n getGroupTransitionProps,\r\n getDragAndDropOverlayProps,\r\n status,\r\n publicAPI,\r\n } = useTreeItem2({ id, itemId, children, label, disabled, rootRef: ref });\r\n const item = publicAPI.getItem(itemId);\r\n const expandable = isExpandable(children);\r\n return (\r\n <TreeItem2Provider itemId={itemId}>\r\n <StyledTreeItemRoot {...getRootProps(other)}>\r\n <CustomTreeItemContent\r\n {...getContentProps({\r\n className: clsx(\"content\", {\r\n \"Mui-expanded\": status.expanded,\r\n \"Mui-selected\": status.selected,\r\n \"Mui-focused\": status.focused,\r\n \"Mui-disabled\": status.disabled,\r\n }),\r\n })}\r\n >\r\n <TreeItem2IconContainer {...getIconContainerProps()}>\r\n <TreeItem2Icon status={status} />\r\n </TreeItem2IconContainer>\r\n <TreeItem2Checkbox {...getCheckboxProps()} />\r\n <CustomLabel\r\n {...getLabelProps({\r\n icon: item?.icon || \"book\",\r\n expandable: expandable && status.expanded,\r\n })}\r\n />\r\n <TreeItem2DragAndDropOverlay {...getDragAndDropOverlayProps()} />\r\n </CustomTreeItemContent>\r\n {children && <TransitionComponent {...getGroupTransitionProps()} />}\r\n </StyledTreeItemRoot>\r\n </TreeItem2Provider>\r\n );\r\n});\r\n\r\nexport default function NavigationTree() {\r\n const navigate = useNavigate();\r\n const appLayoutState = useSelector((state: RootState) => state.AppLayout);\r\n const AppInfo = useSelector((state: RootState) => state.AppInfo.value);\r\n const dispatch = useDispatch();\r\n const isMobile = useIsMobile();\r\n const { isUserAuthorized } = useSession();\r\n const filterData = (data) => {\r\n return data\r\n .filter(\r\n (item: any) =>\r\n item.authority === undefined ||\r\n item.authority == null ||\r\n isUserAuthorized(item.authority)\r\n )\r\n .map((item: any) => {\r\n if (item.children) {\r\n item.children = filterData(item.children);\r\n }\r\n return item;\r\n });\r\n };\r\n\r\n const mergedNavigationItems = [];\r\n if (AppInfo.enableAdministrationModule) {\r\n mergedNavigationItems.push(...NavigationItems);\r\n }\r\n mergedNavigationItems.push(...AppInfo.businessNavigationItems);\r\n const authoriedNavigationItems = filterData(mergedNavigationItems);\r\n\r\n return (\r\n <RichTreeView\r\n items={authoriedNavigationItems}\r\n onItemClick={(event, itemId) => {\r\n const navigationItem = findNavigationItemById(\r\n itemId,\r\n mergedNavigationItems\r\n );\r\n if (\r\n navigationItem?.action === \"NAVIGATION\" &&\r\n navigationItem?.actionPayload != null &&\r\n (navigationItem.children === undefined ||\r\n navigationItem.children === null ||\r\n navigationItem.children.length == 0)\r\n ) {\r\n navigate(navigationItem?.actionPayload?.path || \"\");\r\n }\r\n }}\r\n sx={{\r\n height: \"fit-content\",\r\n flexGrow: 1,\r\n maxWidth: DRAWER_WIDTH,\r\n direction: appLayoutState.appDirection,\r\n maxHeight: isMobile ? 300 : undefined,\r\n overflowY: \"auto\",\r\n overflowX: \"auto\",\r\n }}\r\n slots={{ item: CustomTreeItem }}\r\n />\r\n );\r\n}\r\n","import Divider from \"@mui/material/Divider\";\r\nimport IconButton from \"@mui/material/IconButton\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport Drawer from \"@mui/material/Drawer\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { DrawerHeader } from \"./DrawerHeader\";\r\nimport { Box, Typography, useTheme } from \"@mui/material\";\r\nimport { DRAWER_WIDTH } from \"../redux/features/common/AppLayoutSlice\";\r\nimport NavigationTree from \"./NavigationTree\";\r\nimport { useSession } from \"../hooks\";\r\nimport { toggleSideBarState } from \"../redux/features/common/SideBarSlice\";\r\n\r\nconst SideBar: React.FC = () => {\r\n const AppInfo = useSelector((state: any) => state.AppInfo.value);\r\n const { UserSession } = useSession();\r\n const currentOrganization = UserSession.value.currentOrganization;\r\n const theme = useTheme();\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const SideBarState = useSelector((state: any) => state.SideBar);\r\n const dispatch = useDispatch();\r\n const toggleSideBar = () => {\r\n dispatch(toggleSideBarState());\r\n };\r\n return (\r\n <Drawer\r\n sx={{\r\n width: DRAWER_WIDTH,\r\n flexShrink: 0,\r\n \"& .MuiDrawer-paper\": {\r\n width: DRAWER_WIDTH,\r\n boxSizing: \"border-box\",\r\n },\r\n }}\r\n variant=\"persistent\"\r\n anchor={AppLayout.appDirection === \"ltr\" ? \"left\" : \"right\"}\r\n open={SideBarState.isOpened}\r\n >\r\n <DrawerHeader>\r\n <Box sx={{ width: \"100%\" }}>\r\n <Typography\r\n color=\"primary\"\r\n sx={{\r\n width: \"100%\",\r\n textAlign: \"center\",\r\n fontSize: 18,\r\n fontWeight: \"bold\",\r\n }}\r\n >\r\n System Content\r\n </Typography>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"space-around\",\r\n marginTop: 1,\r\n }}\r\n >\r\n <Typography sx={{ fontSize: 12 }} color=\"textDisabled\">\r\n {`${AppInfo.appName} - ${\r\n AppLayout.appDirection === \"ltr\"\r\n ? currentOrganization?.organizationEnName\r\n : currentOrganization?.organizationArName\r\n }`}\r\n </Typography>\r\n <Typography sx={{ fontSize: 12 }} color=\"textDisabled\">\r\n V.{AppInfo.appVersion}\r\n </Typography>\r\n </Box>\r\n </Box>\r\n <IconButton onClick={toggleSideBar}>\r\n {theme.direction === \"ltr\" ? (\r\n <FontAwesomeIcon icon=\"angle-left\" />\r\n ) : (\r\n <FontAwesomeIcon icon=\"angle-right\" />\r\n )}\r\n </IconButton>\r\n </DrawerHeader>\r\n <Divider />\r\n <NavigationTree />\r\n </Drawer>\r\n );\r\n};\r\n\r\nexport default SideBar;\r\n","import rtlPlugin from \"stylis-plugin-rtl\";\r\nimport { prefixer } from \"stylis\";\r\nimport createCache from \"@emotion/cache\";\r\n\r\nexport const cacheRtl = createCache({\r\n key: \"muirtl\",\r\n stylisPlugins: [prefixer, rtlPlugin],\r\n});\r\n\r\nexport const cacheLtr = createCache({\r\n key: \"mui\",\r\n});","import { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { WidgetType } from \"../../administration/dev/WidgetGrid\";\r\nimport { Backdrop, Box, CircularProgress, Grid2 } from \"@mui/material\";\r\nimport { useEffect, useState } from \"react\";\r\nimport LoadingMask from \"../../common/LoadingMask\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { useAxios } from \"../../../hooks\";\r\nimport TemplateLineChart from \"./charts/TemplateLineChart\";\r\nimport TemplateBarChart from \"./charts/TemplateBarChart\";\r\nimport TemplatePieChart from \"./charts/TemplatePieChart\";\r\nimport TemplateDataCard from \"./charts/TemplateDataCard\";\r\nimport TemplateGauge from \"./charts/TemplateGauge\";\r\nimport TemplateLineProgress from \"./charts/TemplateLineProgress\";\r\n\r\nexport type Widget = {\r\n widgetName: string;\r\n widgetDescription: string;\r\n title: string;\r\n icon: any;\r\n dataQueryId: number;\r\n widgetType: WidgetType;\r\n width: any;\r\n height: any;\r\n horizontalAxisField: any;\r\n horizontalAxisLabel: any;\r\n verticalAxisField: string;\r\n verticalAxisLabel: string;\r\n seriesKeys: any;\r\n parameterValues: {\r\n [key: string]: any;\r\n };\r\n};\r\n\r\nconst WidgetViewer: React.FC<Widget> = (props) => {\r\n const [isWidgetLoading, setWidgetLoading] = useState(true);\r\n const [data, setData] = useState([]);\r\n const { handleGetRequest } = useAxios();\r\n const getWidgetData = async () => {\r\n setWidgetLoading(true);\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/dev/query/result\",\r\n showMask: false,\r\n parameters: {\r\n queryId: props.dataQueryId,\r\n ...props.parameterValues,\r\n },\r\n successCallBkFn: (response) => {\r\n setWidgetLoading(false);\r\n setData(response.data);\r\n },\r\n failureCallBkFn: () => {\r\n setWidgetLoading(false);\r\n setData(null);\r\n },\r\n });\r\n };\r\n useEffect(() => {\r\n getWidgetData();\r\n }, [props.parameterValues]);\r\n\r\n let total = 0;\r\n if (data.length == 1) {\r\n total = 100;\r\n }\r\n if (\r\n props.widgetType === \"CircularProgress\" ||\r\n props.widgetType === \"LinearProgress\"\r\n ) {\r\n for (const record of data) {\r\n total += record[props.verticalAxisField];\r\n }\r\n }\r\n return (\r\n <>\r\n {props.widgetType === \"LineChart\" ||\r\n props.widgetType === \"PieChart\" ||\r\n props.widgetType === \"ColumnChart\" ? (\r\n <Box>\r\n <FontAwesomeIcon\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n icon={props?.icon || \"chart-pie\"}\r\n />\r\n {props?.title}\r\n </Box>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n <Box\r\n sx={{\r\n flex: 1,\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n width: \"100%\",\r\n }}\r\n >\r\n {isWidgetLoading ? (\r\n <>\r\n <FontAwesomeIcon\r\n icon={{ prefix: \"fas\", iconName: \"arrows-spin\" }}\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n spin\r\n size=\"2x\"\r\n />\r\n <div>Loading</div>\r\n </>\r\n ) : props.widgetType === \"ColumnChart\" ? (\r\n <TemplateBarChart\r\n data={data}\r\n widgetTitle={props.title}\r\n labelField={props.verticalAxisField}\r\n valueField={props.horizontalAxisField}\r\n valueLabel={props.horizontalAxisLabel}\r\n widgetType=\"Line\"\r\n />\r\n ) : props.widgetType === \"LineChart\" ? (\r\n <TemplateLineChart\r\n data={data}\r\n widgetTitle={props.title}\r\n labelField={props.verticalAxisField}\r\n valueField={props.horizontalAxisField}\r\n valueLabel={props.horizontalAxisLabel}\r\n widgetType=\"Line\"\r\n />\r\n ) : props.widgetType === \"PieChart\" ? (\r\n <TemplatePieChart\r\n data={data}\r\n widgetTitle={props.title}\r\n labelField={props.horizontalAxisField}\r\n valueField={props.verticalAxisField}\r\n widgetType=\"Line\"\r\n />\r\n ) : (\r\n <Grid2\r\n container\r\n sx={{\r\n width: \"100%\",\r\n alignItems: \"flex-start\",\r\n justifyContent: \"flex-start\",\r\n }}\r\n spacing={2}\r\n size={{ xs: 12 }}\r\n >\r\n <Grid2 size={{ xs: 12 }} sx={{ textAlign: \"center\" }}>\r\n {props.title}\r\n </Grid2>\r\n\r\n {data.map((record, index) => {\r\n if (props.widgetType === \"Card\") {\r\n return (\r\n <Grid2 size={{ md: 3, xs: 12 }}>\r\n <TemplateDataCard\r\n key={index}\r\n widgetTitle={\"\"}\r\n record={record}\r\n labelField={props.verticalAxisField}\r\n valueField={props.horizontalAxisField}\r\n />\r\n </Grid2>\r\n );\r\n } else if (props.widgetType === \"CircularProgress\") {\r\n return (\r\n <Grid2 size={{ md: 3, xs: 12 }}>\r\n <TemplateGauge\r\n key={index}\r\n widgetTitle={\"\"}\r\n record={record}\r\n labelField={props.horizontalAxisField}\r\n valueField={props.verticalAxisField}\r\n total={total}\r\n />\r\n </Grid2>\r\n );\r\n } else if (props.widgetType === \"LinearProgress\") {\r\n return (\r\n <Grid2 size={{ md: 3, xs: 12 }}>\r\n <TemplateLineProgress\r\n key={index}\r\n widgetTitle={\"\"}\r\n record={record}\r\n labelField={props.horizontalAxisField}\r\n valueField={props.verticalAxisField}\r\n total={total}\r\n />\r\n </Grid2>\r\n );\r\n }\r\n })}\r\n </Grid2>\r\n )}\r\n </Box>\r\n </>\r\n );\r\n};\r\n\r\nexport default WidgetViewer;\r\n","import { Box, Grid2, IconButton } from \"@mui/material\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { useAxios } from \"../../../hooks\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport WidgetViewer, { Widget } from \"./WidgetViewer\";\r\nimport { useNavigate } from \"react-router-dom\";\r\n\r\ntype DashboardViewerProps = {\r\n dashboardCode: string;\r\n parameters?: { [key: string]: any };\r\n};\r\n\r\nexport interface WidgetProps {\r\n widgetTitle?: string;\r\n widgetType: \"Line\" | \"Bar\" | \"Pie\" | \"Card\" | \"Gauge\" | \"Progress\";\r\n data: any;\r\n valueLabel?: string;\r\n valueField: string; //x-axis field in case of line/bar chart\r\n labelField: string; //y-axis field in case of line/bar chart, it can also be a comma separated string for multiple series\r\n}\r\n\r\nexport interface SingleRecordWidgetProps {\r\n widgetTitle?: string;\r\n record: object;\r\n valueField: string;\r\n labelField: string;\r\n total?: number;\r\n}\r\n\r\ntype DashboardInfo = {\r\n dashboardCode: string;\r\n dashboardName: string;\r\n dashboardTitle: string;\r\n widgets: Array<Widget>;\r\n dashboardParameters: Array<any>;\r\n};\r\n\r\nconst DashboardViewer: React.FC<DashboardViewerProps> = (props) => {\r\n const [dashboardInfo, setDashboardInfo] = useState<DashboardInfo>({\r\n dashboardCode: \"\",\r\n dashboardName: \"\",\r\n dashboardTitle: \"\",\r\n dashboardParameters: [],\r\n widgets: [],\r\n });\r\n const [dashboardParameterValues, setDashboardParameterValues] = useState<{\r\n [key: string]: any;\r\n }>(props?.parameters || {});\r\n const navigate = useNavigate();\r\n const { handleGetRequest, handlePostRequest } = useAxios();\r\n const loadDashboardInfo = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/dev/dashboard/metadata\",\r\n showMask: true,\r\n parameters: {\r\n dashboardCode: props.dashboardCode,\r\n },\r\n successCallBkFn: (response) => {\r\n setDashboardInfo(response.data);\r\n },\r\n failureCallBkFn: () => {\r\n setDashboardInfo(null);\r\n },\r\n });\r\n };\r\n useEffect(() => {\r\n if (props.dashboardCode) {\r\n loadDashboardInfo();\r\n }\r\n }, [props.dashboardCode, props.parameters]);\r\n return (\r\n <>\r\n {dashboardInfo ? (\r\n <>\r\n <Box\r\n sx={{\r\n fontSize: 20,\r\n fontWeight: \"bold\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <IconButton\r\n onClick={() => {\r\n navigate(-1, { replace: true });\r\n }}\r\n >\r\n <FontAwesomeIcon icon=\"arrow-left\" />\r\n </IconButton>\r\n <Box sx={{ flex: 1 }}></Box>\r\n <FontAwesomeIcon\r\n style={{ marginLeft: 10, marginRight: 10 }}\r\n icon={\"square-poll-vertical\"}\r\n />\r\n <Box>{dashboardInfo?.dashboardTitle}</Box>\r\n <Box sx={{ flex: 1 }}></Box>\r\n </Box>\r\n <Grid2\r\n container\r\n spacing={1}\r\n sx={{\r\n flexGrow: 1,\r\n overflowY: \"auto\",\r\n padding: 1,\r\n }}\r\n >\r\n {dashboardInfo?.widgets.map((widget, index) => {\r\n return (\r\n <Grid2\r\n key={index}\r\n sx={{\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n padding: 1,\r\n display: \"flex\",\r\n overflow: \"auto\",\r\n flexDirection:\r\n widget.widgetType != \"Card\" ? \"column\" : undefined,\r\n height: widget?.height || 300,\r\n }}\r\n size={{ md: widget?.width, sm: 12 }}\r\n >\r\n <WidgetViewer {...widget} />\r\n </Grid2>\r\n );\r\n })}\r\n </Grid2>\r\n </>\r\n ) : (\r\n <Box\r\n sx={{\r\n flex: 1,\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n fontSize: 24,\r\n fontWeight: \"bold\",\r\n }}\r\n >\r\n No Dashboard Found\r\n </Box>\r\n )}\r\n </>\r\n );\r\n};\r\n\r\nexport default DashboardViewer;\r\n","import { useEffect, useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useAxios } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ntype OrganizationApplicationModuleGridProps = {\r\n selectedOrganization: any;\r\n};\r\n\r\nconst OrganizationApplicationModuleGrid: React.FC<\r\n OrganizationApplicationModuleGridProps\r\n> = (props) => {\r\n const { t } = useTranslation();\r\n const { handleGetRequest } = useAxios();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/organizationapplicationmodule/all\",\r\n deleteById: \"api/v1/admin/organizationapplicationmodule\",\r\n save: \"api/v1/admin/organizationapplicationmodule\",\r\n findById: \"api/v1/admin/organizationapplicationmodule\",\r\n setData: setData,\r\n });\r\n const [systemApplicationModules, setSystemApplicationModules] = useState([]);\r\n\r\n const getSystemApplicationModules = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/admin/systemapplicationmodule/all\",\r\n showMask: true,\r\n successCallBkFn: (response: any) => {\r\n setSystemApplicationModules(response.data);\r\n },\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n getSystemApplicationModules();\r\n }, []);\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel:\r\n \"ORGANIZATION_APPLICATION_MODULE_SYSTEM_APPLICATION_MODULE_ID\",\r\n fieldName: \"systemApplicationModuleId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: systemApplicationModules,\r\n optionDisplayField: \"moduleName\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n fieldLabel: \"ORGANIZATION_APPLICATION_MODULE_ORGANIZATION_ID\",\r\n fieldName: \"organizationId\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_APPLICATION_MODULE_SUBSCRIPTION_DATE\",\r\n fieldName: \"subscriptionDate\",\r\n required: true,\r\n fieldType: \"date\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_APPLICATION_MODULE_EXPIRATION_DATE\",\r\n fieldName: \"expirationDate\",\r\n required: false,\r\n fieldType: \"date\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_APPLICATION_MODULE_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n gridLoadParametersValues={{\r\n organizationId: props?.selectedOrganization?.id,\r\n }}\r\n hideInfoBar={true}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"ORGANIZATION_APPLICATION_MODULE_PLURAL\"\r\n girdIcon=\"layer-group\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"ORGANIZATION_APPLICATION_MODULE_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.organizationId = props?.selectedOrganization?.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"ORGANIZATION_APPLICATION_MODULE_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default OrganizationApplicationModuleGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ntype OrganizationUnitTypeGridProps = {\r\n selectedOrganization: any;\r\n};\r\n\r\nconst OrganizationUnitTypeGrid: React.FC<OrganizationUnitTypeGridProps> = (\r\n props\r\n) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/organizationunittype/all\",\r\n deleteById: \"api/v1/admin/organizationunittype\",\r\n save: \"api/v1/admin/organizationunittype\",\r\n findById: \"api/v1/admin/organizationunittype\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_TYPE_ORGANIZATION_ID\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n fieldName: \"organizationId\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_TYPE_ORGANIZATION_UNIT_TYPE_ORDER\",\r\n fieldName: \"organizationUnitTypeOrder\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_TYPE_UNIT_TYPE_CODE\",\r\n fieldName: \"unitTypeCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_TYPE_UNIT_TYPE_AR_NAME\",\r\n fieldName: \"unitTypeArName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_TYPE_UNIT_TYPE_EN_NAME\",\r\n fieldName: \"unitTypeEnName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_TYPE_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{\r\n organizationId: props?.selectedOrganization?.id,\r\n }}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"ORGANIZATION_UNIT_TYPE_PLURAL\"\r\n girdIcon=\"tags\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"ORGANIZATION_UNIT_TYPE_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.organizationId = props?.selectedOrganization?.id;\t\t \r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"ORGANIZATION_UNIT_TYPE_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default OrganizationUnitTypeGrid;\r\n","import { useEffect, useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useAxios } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ntype OrganizationUnitGridProps = {\r\n selectedOrganization: any;\r\n};\r\n\r\nconst OrganizationUnitGrid: React.FC<OrganizationUnitGridProps> = (props) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/organizationunit/all\",\r\n deleteById: \"api/v1/admin/organizationunit\",\r\n save: \"api/v1/admin/organizationunit\",\r\n findById: \"api/v1/admin/organizationunit\",\r\n setData: setData,\r\n });\r\n const [organizationUnitTypes, setOrganizationUnitTypes] = useState([]);\r\n const { handleGetRequest } = useAxios();\r\n const getOrganizationUnitTypes = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/admin/organizationunittype/all\",\r\n showMask: true,\r\n parameters: {\r\n organizationId: props.selectedOrganization.id,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setOrganizationUnitTypes(response.data);\r\n },\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n getOrganizationUnitTypes();\r\n }, []);\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n fieldLabel: \"ORGANIZATION_UNIT_ORGANIZATION_ID\",\r\n fieldName: \"organizationId\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_ORGANIZATION_UNIT_TYPE_ID\",\r\n fieldName: \"organizationUnitTypeId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: organizationUnitTypes,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"unitTypeEnName\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME\",\r\n fieldName: \"organizationUnitArName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME\",\r\n fieldName: \"organizationUnitEnName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID\",\r\n fieldName: \"organizationUnitParentId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: data,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"organizationUnitEnName\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{\r\n organizationId: props?.selectedOrganization?.id,\r\n }}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"ORGANIZATION_UNIT_PLURAL\"\r\n girdIcon=\"folder-tree\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"ORGANIZATION_UNIT_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.organizationId = props?.selectedOrganization?.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"ORGANIZATION_UNIT_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default OrganizationUnitGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ntype OrganizationRankGridProps = {\r\n selectedOrganization: any;\r\n};\r\n\r\nconst OrganizationRankGrid: React.FC<OrganizationRankGridProps> = (props) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/organizationrank/all\",\r\n deleteById: \"api/v1/admin/organizationrank\",\r\n save: \"api/v1/admin/organizationrank\",\r\n findById: \"api/v1/admin/organizationrank\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n fieldLabel: \"ORGANIZATION_RANK_ORGANIZATION_ID\",\r\n fieldName: \"organizationId\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_RANK_RANK_ORDER\",\r\n fieldName: \"rankOrder\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_RANK_RANK_CODE\",\r\n fieldName: \"rankCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_RANK_RANK_AR_NAME\",\r\n fieldName: \"rankArName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_RANK_RANK_EN_NAME\",\r\n fieldName: \"rankEnName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_RANK_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{\r\n organizationId: props?.selectedOrganization?.id,\r\n }}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"ORGANIZATION_RANK_PLURAL\"\r\n girdIcon=\"street-view\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"ORGANIZATION_RANK_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.organizationId = props?.selectedOrganization?.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"ORGANIZATION_RANK_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default OrganizationRankGrid;\r\n","import { useEffect, useState } from \"react\";\r\nimport TransferList from \"../../templates/TransferList\";\r\nimport { Box, Button } from \"@mui/material\";\r\nimport { toast } from \"react-toastify\";\r\nimport { useAxios } from \"../../../hooks\";\r\n\r\ntype OrgMemberRoleFormProps = {\r\n selectedRecord: any;\r\n closeModalFn: () => void;\r\n};\r\n\r\nconst OrgMemberRoleForm: React.FC<OrgMemberRoleFormProps> = (props) => {\r\n const [selectedOptions, setSelectedOptions] = useState([]);\r\n const [availableOptions, setAvailableOptions] = useState([]);\r\n const { handlePostRequest, handleGetRequest } = useAxios();\r\n\r\n const getOrgMemberRoles = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/admin/organization/member/roles\",\r\n showMask: true,\r\n parameters: {\r\n orgMemberId: props.selectedRecord.id,\r\n organizationId: props.selectedRecord.organizationId,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setSelectedOptions(response.data.currentRoles);\r\n setAvailableOptions(response.data.availableRoles);\r\n },\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n if (props.selectedRecord) {\r\n getOrgMemberRoles();\r\n }\r\n }, [props.selectedRecord]);\r\n const saveOrgMemberRoles = async () => {\r\n await handlePostRequest({\r\n endPointURI: \"api/v1/admin/organization/member/roles\",\r\n showMask: true,\r\n parameters: { orgMemberId: props.selectedRecord.id },\r\n data: selectedOptions,\r\n successCallBkFn: () => {\r\n toast.success(\"Your request has been proccesed successfully\");\r\n if (props.closeModalFn) {\r\n props.closeModalFn();\r\n }\r\n },\r\n });\r\n };\r\n return (\r\n <>\r\n <TransferList\r\n displayField=\"appRoleDisplay\"\r\n options={availableOptions}\r\n valueField=\"id\"\r\n selectedOptions={selectedOptions}\r\n setSelection={setSelectedOptions}\r\n />\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-end\",\r\n width: \"100%\",\r\n }}\r\n >\r\n <Button\r\n variant=\"contained\"\r\n onClick={saveOrgMemberRoles}\r\n sx={{ marginRight: 1, marginLeft: 1 }}\r\n >\r\n Save\r\n </Button>\r\n <Button variant=\"contained\" color=\"error\" onClick={props.closeModalFn}>\r\n Cancel\r\n </Button>\r\n </Box>\r\n </>\r\n );\r\n};\r\n\r\nexport default OrgMemberRoleForm;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useSelector } from \"react-redux\";\r\nimport OrgMemberRoleForm from \"./OrgMemberRoleForm\";\r\n\r\ntype OrganizationMemberGridProps = {\r\n selectedPerson: any;\r\n};\r\nconst OrganizationMemberGrid: React.FC<OrganizationMemberGridProps> = (\r\n props\r\n) => {\r\n const [selectedRecord, setSelectedRecord] = useState<any>(null);\r\n const {\r\n Window: OrganizationMemberRolesWindow,\r\n setWindowState: setOrganizationMemberRolesWindowState,\r\n } = useWindow({\r\n windowIcon: \"tag\",\r\n windowTitle: \"Organization Member Roles\",\r\n width: \"50%\",\r\n });\r\n const SystemOrganizations = useSelector(\r\n (state: any) => state.commonStores.stores.SystemOrganizations.data\r\n );\r\n const SystemOrganizationRanks = useSelector(\r\n (state: any) => state.commonStores.stores.SystemOrganizationRanks.data\r\n );\r\n const SystemOrganizationUnits = useSelector(\r\n (state: any) => state.commonStores.stores.SystemOrganizationUnits.data\r\n );\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/organizationmember/all\",\r\n deleteById: \"api/v1/admin/organizationmember\",\r\n save: \"api/v1/admin/organizationmember\",\r\n findById: \"api/v1/admin/organizationmember\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_MEMBER_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_MEMBER_IS_DEFAULT\",\r\n fieldName: \"isDefault\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_MEMBER_ORGANIZATION_ID\",\r\n fieldName: \"organizationId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemOrganizations,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"organizationEnName\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_MEMBER_ORGANIZATION_RANK_ID\",\r\n fieldName: \"organizationRankId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemOrganizationRanks,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"rankDisplay\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_MEMBER_ORGANIZATION_UNIT_ID\",\r\n fieldName: \"organizationUnitId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemOrganizationUnits,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"fullPath\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Membership number\",\r\n fieldName: \"organizationMembershipNumber\",\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n fieldLabel: \"ORGANIZATION_MEMBER_PERSON_ID\",\r\n fieldName: \"personId\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <OrganizationMemberRolesWindow>\r\n <OrgMemberRoleForm\r\n selectedRecord={selectedRecord}\r\n closeModalFn={() => {\r\n setOrganizationMemberRolesWindowState(false);\r\n }}\r\n />\r\n </OrganizationMemberRolesWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n hideInfoBar={true}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n rowActions={[\r\n {\r\n icon: \"tag\",\r\n label: \"Roles\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setOrganizationMemberRolesWindowState(true);\r\n },\r\n },\r\n ]}\r\n gridLoadParametersValues={{ personId: props.selectedPerson.id }}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"ORGANIZATION_MEMBER_PLURAL\"\r\n girdIcon=\"table-cells\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"ORGANIZATION_MEMBER_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.personId = props.selectedPerson.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"ORGANIZATION_MEMBER_DELETE\",\r\n }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default OrganizationMemberGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ntype SystemApplicationModuleGridProps = {\r\n selectedApplication: any;\r\n};\r\n\r\nconst SystemApplicationModuleGrid: React.FC<\r\n SystemApplicationModuleGridProps\r\n> = (props) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/systemapplicationmodule/application/all\",\r\n deleteById: \"api/v1/admin/systemapplicationmodule\",\r\n save: \"api/v1/admin/systemapplicationmodule\",\r\n findById: \"api/v1/admin/systemapplicationmodule\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_MODULE_MODULE_CODE\",\r\n fieldName: \"moduleCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_MODULE_MODULE_NAME\",\r\n fieldName: \"moduleName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_MODULE_MODULE_DESCRIPTION\",\r\n fieldName: \"moduleDescription\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_MODULE_SYSTEM_APPLICATION_ID\",\r\n fieldName: \"systemApplicationId\",\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n gridLoadParametersValues={{\r\n applicationId: props?.selectedApplication?.id,\r\n }}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n hideInfoBar={true}\r\n gridTitle=\"SYSTEM_APPLICATION_MODULE_PLURAL\"\r\n girdIcon=\"layer-group\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"SYSTEM_APPLICATION_MODULE_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.systemApplicationId = props?.selectedApplication?.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"SYSTEM_APPLICATION_MODULE_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default SystemApplicationModuleGrid;\r\n","import { useEffect, useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useAxios } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ntype SystemApplicationAuthorityGridProps = {\r\n selectedApplication: any;\r\n};\r\n\r\nconst SystemApplicationAuthorityGrid: React.FC<\r\n SystemApplicationAuthorityGridProps\r\n> = (props) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/systemapplicationauthority/all\",\r\n deleteById: \"api/v1/admin/systemapplicationauthority\",\r\n save: \"api/v1/admin/systemapplicationauthority\",\r\n findById: \"api/v1/admin/systemapplicationauthority\",\r\n setData: setData,\r\n });\r\n const [systemApplicationModules, setSystemApplicationModules] = useState([]);\r\n\r\n const { handleGetRequest } = useAxios();\r\n const getSystemApplicationModules = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/admin/systemapplicationmodule/application/all\",\r\n showMask: true,\r\n parameters: {\r\n applicationId: props.selectedApplication.id,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setSystemApplicationModules(response.data);\r\n },\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n getSystemApplicationModules();\r\n }, []);\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_AUTHORITY_SYSTEM_APPLICATION_ID\",\r\n fieldName: \"systemApplicationId\",\r\n required: false,\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_AUTHORITY_SYSTEM_MODULE_ID\",\r\n fieldName: \"systemModuleId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: systemApplicationModules,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"moduleName\",\r\n },\r\n },\r\n \r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_NAME\",\r\n fieldName: \"authorityName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_CODE\",\r\n fieldName: \"authorityCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_DESCRIPTION\",\r\n fieldName: \"authorityDescription\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_AUTHORITY_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{\r\n applicationId: props?.selectedApplication?.id,\r\n }}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"SYSTEM_APPLICATION_AUTHORITY_PLURAL\"\r\n girdIcon=\"key\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"SYSTEM_APPLICATION_AUTHORITY_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.systemApplicationId = props?.selectedApplication?.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"SYSTEM_APPLICATION_AUTHORITY_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default SystemApplicationAuthorityGrid;\r\n","import { useEffect, useState } from \"react\";\r\nimport TransferList from \"../../templates/TransferList\";\r\nimport { Box, Button } from \"@mui/material\";\r\nimport { toast } from \"react-toastify\";\r\nimport { useAxios } from \"../../../hooks\";\r\n\r\ntype RoleAuthoritiesFormProps = {\r\n roleId: number;\r\n appId: number;\r\n closeModalFn: () => void;\r\n};\r\n\r\nconst RoleAuthoritiesForm: React.FC<RoleAuthoritiesFormProps> = (props) => {\r\n const [selectedOptions, setSelectedOptions] = useState([]);\r\n const [availableAuthorities, setAvailableAuthorities] = useState([]);\r\n const { handlePostRequest, handleGetRequest } = useAxios();\r\n\r\n const getRoleAuthorities = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/admin/systemApplicationRoleAuthorities\",\r\n showMask: true,\r\n parameters: {\r\n appId: props.appId,\r\n roleId: props.roleId,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setSelectedOptions(response.data.selectedAuthorities);\r\n setAvailableAuthorities(response.data.availableAuthorities);\r\n },\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n if (props.roleId && props.appId) {\r\n getRoleAuthorities();\r\n }\r\n }, [props.roleId, props.appId]);\r\n const saveRoleAuthorities = async () => {\r\n await handlePostRequest({\r\n endPointURI: \"api/v1/admin/systemApplicationRoleAuthorities\",\r\n showMask: true,\r\n parameters: { roleId: props.roleId },\r\n data: selectedOptions,\r\n successCallBkFn: () => {\r\n toast.success(\"Your request has been proccesed successfully\");\r\n if (props.closeModalFn) {\r\n props.closeModalFn();\r\n }\r\n },\r\n });\r\n };\r\n return (\r\n <>\r\n <TransferList\r\n displayField=\"authorityName\"\r\n options={availableAuthorities}\r\n valueField=\"id\"\r\n selectedOptions={selectedOptions}\r\n setSelection={setSelectedOptions}\r\n />\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-end\",\r\n width: \"100%\",\r\n }}\r\n >\r\n <Button\r\n variant=\"contained\"\r\n onClick={saveRoleAuthorities}\r\n sx={{ marginRight: 1, marginLeft: 1 }}\r\n >\r\n Save\r\n </Button>\r\n <Button variant=\"contained\" color=\"error\" onClick={props.closeModalFn}>\r\n Cancel\r\n </Button>\r\n </Box>\r\n </>\r\n );\r\n};\r\n\r\nexport default RoleAuthoritiesForm;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport RoleAuthoritiesForm from \"./RoleAuthoritiesForm\";\r\n\r\ntype SystemApplicationRoleGridProps = {\r\n selectedApplication: any;\r\n};\r\n\r\nconst SystemApplicationRoleGrid: React.FC<SystemApplicationRoleGridProps> = (\r\n props\r\n) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const [selectedRole, setSelectedRole] = useState(null);\r\n const {\r\n Window: RoleaAuthoritiesWindow,\r\n setWindowState: setRoleAuthoritiesWindowState,\r\n } = useWindow({\r\n windowTitle: \"System Application Role Authorities\",\r\n windowIcon: \"key\",\r\n width: \"50%\",\r\n });\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/systemapplicationrole/all\",\r\n deleteById: \"api/v1/admin/systemapplicationrole\",\r\n save: \"api/v1/admin/systemapplicationrole\",\r\n findById: \"api/v1/admin/systemapplicationrole\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_ROLE_SYSTEM_APPLICATION_ID\",\r\n fieldName: \"systemApplicationId\",\r\n required: false,\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_ROLE_ROLE_NAME\",\r\n fieldName: \"roleName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_ROLE_ROLE_DESCRIPTION\",\r\n fieldName: \"roleDescription\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_ROLE_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <RoleaAuthoritiesWindow>\r\n <RoleAuthoritiesForm\r\n appId={props.selectedApplication.id}\r\n roleId={selectedRole?.id}\r\n closeModalFn={() => {\r\n setRoleAuthoritiesWindowState(false);\r\n }}\r\n />\r\n </RoleaAuthoritiesWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{\r\n applicationId: props?.selectedApplication?.id,\r\n }}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"SYSTEM_APPLICATION_ROLE_PLURAL\"\r\n girdIcon=\"tag\"\r\n rowActions={[\r\n {\r\n icon: \"key\",\r\n actionFn: async (data) => {\r\n setSelectedRole(data);\r\n setRoleAuthoritiesWindowState(true);\r\n },\r\n label: \"Authorities\",\r\n },\r\n ]}\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"SYSTEM_APPLICATION_ROLE_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.systemApplicationId = props?.selectedApplication?.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"SYSTEM_APPLICATION_ROLE_DELETE\",\r\n }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default SystemApplicationRoleGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype LookupGridProps = {\r\n selectedApplication: any;\r\n};\r\n\r\nconst LookupGrid: React.FC<LookupGridProps> = (props) => {\r\n const SystemOrganizations = useSelector(\r\n (state: any) => state.commonStores.stores.SystemOrganizations.data\r\n );\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/lookup/all\",\r\n deleteById: \"api/v1/dev/lookup\",\r\n save: \"api/v1/dev/lookup\",\r\n findById: \"api/v1/dev/lookup\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Organization\",\r\n fieldName: \"organizationId\",\r\n options: SystemOrganizations,\r\n optionDisplayField: \"organizationEnName\",\r\n optionValueField: \"id\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"LOOKUP_LOOKUP_TYPE\",\r\n fieldName: \"lookupType\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"LOOKUP_LOOKUP_AR_DISPLAY\",\r\n fieldName: \"lookupArDisplay\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"LOOKUP_LOOKUP_EN_DISPLAY\",\r\n fieldName: \"lookupEnDisplay\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"LOOKUP_LOOKUP_VALUE\",\r\n fieldName: \"lookupValue\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"LOOKUP_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"System Application\",\r\n fieldName: \"systemApplicationId\",\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{\r\n systemApplicationId: props.selectedApplication.id,\r\n }}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"LOOKUP_PLURAL\")}\r\n girdIcon=\"list-check\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"LOOKUP_EDIT\",\r\n preActionValidation: (data: any) => {\r\n data.systemApplicationId = props.selectedApplication.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"LOOKUP_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default LookupGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype DataQueryParameterGridProps = {\r\n selectedRecord: any;\r\n};\r\n\r\nconst DataQueryParameterGrid: React.FC<DataQueryParameterGridProps> = (\r\n props\r\n) => {\r\n const SystemEntityParameters = useSelector(\r\n (state: any) => state.commonStores.stores.SystemEntityParameters.data\r\n );\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/dataqueryparameter/all\",\r\n deleteById: \"api/v1/dev/dataqueryparameter\",\r\n save: \"api/v1/dev/dataqueryparameter\",\r\n findById: \"api/v1/dev/dataqueryparameter\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_PARAMETER_DATA_QUERY_ID\",\r\n fieldName: \"dataQueryId\",\r\n required: false,\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID\",\r\n fieldName: \"entityParameterId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemEntityParameters,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"parameterCode\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_PARAMETER_DEFAULT_VALUE\",\r\n fieldName: \"defaultValue\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_PARAMETER_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_PARAMETER_HIDDEN\",\r\n fieldName: \"hidden\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_PARAMETER_MANDATORY\",\r\n fieldName: \"mandatory\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n hideInfoBar={true}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridLoadParametersValues={{ dataQueryId: props.selectedRecord.id }}\r\n gridTitle={t(\"DATA_QUERY_PARAMETER_PLURAL\")}\r\n girdIcon=\"table-cells\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"DATA_QUERY_PARAMETER_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.dataQueryId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"DATA_QUERY_PARAMETER_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default DataQueryParameterGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype ReportParameterGridProps = {\r\n selectedRecord: any;\r\n};\r\n\r\nconst ReportParameterGrid: React.FC<ReportParameterGridProps> = (props) => {\r\n const { t } = useTranslation();\r\n const SystemEntityParameters = useSelector(\r\n (state: any) => state.commonStores.stores.SystemEntityParameters.data\r\n );\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/reportparameter/all\",\r\n deleteById: \"api/v1/dev/reportparameter\",\r\n save: \"api/v1/dev/reportparameter\",\r\n findById: \"api/v1/dev/reportparameter\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_PARAMETER_ENTITY_PARAMETER_ID\",\r\n fieldName: \"entityParameterId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemEntityParameters,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"parameterCode\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_PARAMETER_DEFAULT_VALUE\",\r\n fieldName: \"defaultValue\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_PARAMETER_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_PARAMETER_HIDDEN\",\r\n fieldName: \"hidden\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_PARAMETER_MANDATORY\",\r\n fieldName: \"mandatory\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_PARAMETER_REPORT_ID\",\r\n fieldName: \"reportId\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n setData={setData}\r\n gridLoadParametersValues={{ reportId: props.selectedRecord.id }}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"REPORT_PARAMETER_PLURAL\")}\r\n girdIcon=\"p\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"REPORT_PARAMETER_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.reportId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"REPORT_PARAMETER_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default ReportParameterGrid;\r\n","import { useEffect, useState } from \"react\";\r\nimport TemplateGrid from \"../DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../DataEntryTemplates/DataEntryTypes\";\r\n\r\ntype ExcelReportViewerProps = {\r\n reportData: Array<any>;\r\n setReportData: (data) => void;\r\n reloadReport: () => void;\r\n gridLoadParameters?: Array<FormElementProps>;\r\n gridLoadParametersValues?: { [key: string]: any };\r\n setGridLoadParametersValues?: any;\r\n};\r\n\r\nconst getGridColumnsFromRecord = (data: Array<any>) => {\r\n if (data.length === 0) {\r\n return [];\r\n }\r\n const formElements: Array<FormElementProps> = [];\r\n for (const key of Object.keys(data[0])) {\r\n const formElement: FormElementProps = {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: key,\r\n fieldName: key,\r\n fieldType: \"text\",\r\n },\r\n };\r\n formElements.push(formElement);\r\n }\r\n console.log(\"formElements\", formElements);\r\n return formElements;\r\n};\r\n\r\nconst ExcelReportViewer: React.FC<ExcelReportViewerProps> = (props) => {\r\n console.log(\"reportdata\", props.reportData);\r\n return (\r\n <TemplateGrid\r\n data={props.reportData}\r\n disableDefaultAction={true}\r\n setData={props.setReportData}\r\n formElements={getGridColumnsFromRecord(props.reportData)}\r\n gridLoadParameters={props.gridLoadParameters}\r\n gridLoadParametersValues={props.gridLoadParametersValues}\r\n setGridLoadParametersValues={props.setGridLoadParametersValues}\r\n editMode={{ editMode: \"none\" }}\r\n girdIcon={\"file-excel\"}\r\n gridTitle=\"Report\"\r\n autoLoad={true}\r\n hideInfoBar={true}\r\n apiActions={{\r\n deleteRecordById: async () => {\r\n return true;\r\n },\r\n loadRecordById: async () => {},\r\n reloadData: async () => {\r\n props.reloadReport();\r\n },\r\n saveRecord: async () => {},\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default ExcelReportViewer;\r\n","import { useEffect, useState } from \"react\";\r\nimport { useAxios, useWindow } from \"../../../hooks\";\r\nimport TemplateForm from \"../DataEntryTemplates/TemplateDataForm/TemplateForm\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { FormElementProps } from \"../DataEntryTemplates/DataEntryTypes\";\r\nimport {\r\n Accordion,\r\n AccordionDetails,\r\n AccordionSummary,\r\n Box,\r\n Icon,\r\n IconButton,\r\n Typography,\r\n} from \"@mui/material\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport ExcelReportViewer from \"./ExcelReportViewer\";\r\nimport { GridExpandMoreIcon } from \"@mui/x-data-grid-premium\";\r\n\r\ntype ReportViewerState =\r\n | \"ERROR\"\r\n | \"WAITING_REPORT_CODE\"\r\n | \"LOADING_METADATA\"\r\n | \"WAITING_PARAMETER_INPUT\"\r\n | \"WAITING_RESULT\"\r\n | \"SHOWING_RESULT\";\r\n\r\ntype ReportViewerProps = {\r\n reportCode: string;\r\n resultMode: \"Request\" | \"App\";\r\n reportParametersValues?: { [key: string]: any };\r\n byPassParameterEntry?: boolean;\r\n jasperOutPutFileType?: \"pdf\" | \"word\" | \"excel\";\r\n};\r\n\r\ntype ReportParameter = {\r\n parameterCode: string;\r\n parameterLabel: string;\r\n parameterValueFormat?: string;\r\n parameterValueField?: string;\r\n parameterDisplayField?: string;\r\n parameterDataset?: Array<any>;\r\n parameterDataQueryId?: number;\r\n hidden?: boolean;\r\n mandatory?: boolean;\r\n defaultValue?: any;\r\n parameterType:\r\n | \"text\"\r\n | \"number\"\r\n | \"date\"\r\n | \"datetime\"\r\n | \"combobox\"\r\n | \"checkbox\"\r\n | \"html\"\r\n | \"lookup\";\r\n};\r\n\r\nconst ReportViewer: React.FC<ReportViewerProps> = (props) => {\r\n const [blobUrl, setBlobUrl] = useState(null);\r\n const [errorMessage, setErrorMessage] = useState(null);\r\n const [excelReportData, setExcelReportData] = useState<Array<any>>([]);\r\n const [reportViewerState, setReportViewerState] = useState<ReportViewerState>(\r\n \"WAITING_REPORT_CODE\"\r\n );\r\n const { handleGetRequest, handlePostRequest, HandleDownloadHTTPPostPDF } =\r\n useAxios();\r\n const [reportInfo, setReportInfo] = useState<any>(null);\r\n const [reportParametersValues, setReportParametersValues] = useState<any>({\r\n ...props?.reportParametersValues,\r\n });\r\n const [reportParametersElements, setReportParametersElements] = useState<\r\n Array<FormElementProps>\r\n >([]);\r\n const { t } = useTranslation();\r\n\r\n const getFormElementsFromReportParameters = (\r\n reportParameters: Array<ReportParameter>\r\n ) => {\r\n const formElements: Array<FormElementProps> = [];\r\n for (const reportParameter of reportParameters) {\r\n const formElement: FormElementProps = {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: reportParameter?.parameterLabel,\r\n fieldName: reportParameter?.parameterCode,\r\n fieldType: reportParameter?.parameterType,\r\n hidden: reportParameter?.hidden,\r\n formProps: { fieldSize: { lg: 4, md: 6, sm: 12 } },\r\n required: reportParameter?.mandatory,\r\n defaultValue:\r\n reportParametersValues[reportParameter?.parameterCode] ||\r\n reportParameter?.defaultValue,\r\n },\r\n };\r\n formElements.push(formElement);\r\n }\r\n return formElements;\r\n };\r\n const loadReportData = async () => {\r\n setReportViewerState(\"LOADING_METADATA\");\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/dev/report/metadata\",\r\n showMask: true,\r\n parameters: { reportCode: props.reportCode },\r\n successCallBkFn: (response: any) => {\r\n setReportInfo(response.data);\r\n setReportParametersElements(\r\n getFormElementsFromReportParameters(response.data.reportParameters)\r\n );\r\n if (\r\n props?.byPassParameterEntry === true ||\r\n response.data.reportParameters.length == 0\r\n ) {\r\n runReport(response.data, reportParametersValues);\r\n setReportViewerState(\"WAITING_RESULT\");\r\n } else {\r\n setReportViewerState(\"WAITING_PARAMETER_INPUT\");\r\n }\r\n },\r\n failureCallBkFn: (response) => {\r\n setErrorMessage(\r\n \"Failed loading report metadata ... contact your administrator\"\r\n );\r\n setReportViewerState(\"ERROR\");\r\n },\r\n });\r\n };\r\n\r\n const runReport = async (reportInfoProp, params) => {\r\n setReportViewerState(\"WAITING_RESULT\");\r\n if (reportInfoProp?.reportType === \"Excel\") {\r\n await handlePostRequest({\r\n endPointURI: \"api/v1/dev/report/run\",\r\n showMask: true,\r\n data: {\r\n reportCode: props.reportCode,\r\n parameters: params,\r\n resultMode: props.resultMode,\r\n jasperOutPutFileType: props.jasperOutPutFileType,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setReportViewerState(\"SHOWING_RESULT\");\r\n setExcelReportData(response.data);\r\n },\r\n });\r\n } else if (reportInfoProp?.reportType) {\r\n await HandleDownloadHTTPPostPDF({\r\n endPointURI: \"api/v1/dev/report/run\",\r\n showMask: true,\r\n data: {\r\n reportCode: props.reportCode,\r\n parameters: params,\r\n resultMode: props.resultMode,\r\n jasperOutPutFileType: props.jasperOutPutFileType,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setReportViewerState(\"SHOWING_RESULT\");\r\n const contentDisposition = response.headers[\"content-disposition\"];\r\n let filename = \"downloaded_file\";\r\n if (\r\n contentDisposition &&\r\n contentDisposition.indexOf(\"filename=\") !== -1\r\n ) {\r\n const match = contentDisposition.match(/filename=\"?([^\"]+)\"?/);\r\n if (match && match[1]) filename = match[1];\r\n }\r\n if (filename.includes(\"pdf\")) {\r\n const file = new Blob([response.data], { type: \"application/pdf\" });\r\n const url = URL.createObjectURL(file);\r\n setBlobUrl(url);\r\n } else {\r\n const blob = new Blob([response.data], {\r\n type: response.headers[\"content-type\"],\r\n });\r\n // Create a temporary anchor element\r\n const url = window.URL.createObjectURL(blob);\r\n const link = document.createElement(\"a\");\r\n link.href = url;\r\n // Optional: Try to get filename from response headers\r\n\r\n link.download = filename;\r\n document.body.appendChild(link);\r\n link.click();\r\n\r\n // Clean up\r\n document.body.removeChild(link);\r\n window.URL.revokeObjectURL(url);\r\n }\r\n console.log(response);\r\n },\r\n failureCallBkFn: (response) => {\r\n setErrorMessage(\r\n \"Failed To run report ... contact your administrator\"\r\n );\r\n setReportViewerState(\"ERROR\");\r\n },\r\n });\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n if (props?.reportCode) {\r\n loadReportData();\r\n }\r\n }, [\r\n props.reportCode,\r\n props.byPassParameterEntry,\r\n props.reportParametersValues,\r\n props.jasperOutPutFileType,\r\n props.resultMode,\r\n ]);\r\n\r\n return (\r\n <>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n width: \"100%\",\r\n }}\r\n >\r\n <Box sx={{ flex: 1, textAlign: \"center\", marginBottom: 1 }}>\r\n <FontAwesomeIcon\r\n icon={\r\n reportInfo?.reportType === \"Excel\" ? \"file-excel\" : \"file-pdf\"\r\n }\r\n color={reportInfo?.reportType === \"Excel\" ? \"darkgreen\" : \"darkred\"}\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {reportInfo?.reportName}\r\n </Box>\r\n {reportInfo?.reportType != \"Excel\" ? (\r\n reportViewerState === \"SHOWING_RESULT\" ? (\r\n <>\r\n {props?.byPassParameterEntry === true ? (\r\n <></>\r\n ) : reportParametersElements.length > 0 ? (\r\n <IconButton\r\n onClick={() => {\r\n setReportParametersElements(\r\n getFormElementsFromReportParameters(\r\n reportInfo.reportParameters\r\n )\r\n );\r\n setReportViewerState(\"WAITING_PARAMETER_INPUT\");\r\n }}\r\n >\r\n <FontAwesomeIcon icon=\"filter\" />\r\n </IconButton>\r\n ) : (\r\n <></>\r\n )}\r\n <IconButton>\r\n <FontAwesomeIcon\r\n icon=\"refresh\"\r\n onClick={() => {\r\n runReport(reportInfo, reportParametersValues);\r\n }}\r\n />\r\n </IconButton>\r\n </>\r\n ) : (\r\n <></>\r\n )\r\n ) : (\r\n <></>\r\n )}\r\n </Box>\r\n <Box\r\n sx={{\r\n flexGrow: 1,\r\n width: \"100%\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n }}\r\n >\r\n {reportViewerState === \"WAITING_PARAMETER_INPUT\" &&\r\n reportInfo?.reportType != \"Excel\" ? (\r\n <Accordion defaultExpanded sx={{ width: \"100%\" }} expanded={true}>\r\n <AccordionSummary>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n style={{ marginLeft: 5, marginRight: 5 }}\r\n icon=\"search\"\r\n />\r\n <Typography component=\"span\">Filters</Typography>\r\n </Box>\r\n </AccordionSummary>\r\n <AccordionDetails>\r\n <Box>\r\n <TemplateForm\r\n saveButtonSpecs={{\r\n label: t(\"SHOW_REPORT_BTN_LABEL\"),\r\n icon: \"search\",\r\n actionButtonVariant: \"outlined\",\r\n actionButtonColor: \"success\",\r\n hidden: true,\r\n }}\r\n cancelButtonSpecs={{\r\n label: t(\"RESET_BTN_LABEL\"),\r\n icon: \"eraser\",\r\n actionButtonVariant: \"outlined\",\r\n actionButtonColor: \"error\",\r\n }}\r\n apiActions={{\r\n deleteRecordById: async () => {\r\n return true;\r\n },\r\n saveRecord: async (params) => {\r\n if (params != undefined) {\r\n setReportParametersValues(params);\r\n } else {\r\n setReportParametersValues({});\r\n }\r\n runReport(reportInfo, params);\r\n },\r\n reloadData: async () => {},\r\n loadRecordById: async () => {},\r\n }}\r\n elements={reportParametersElements}\r\n />\r\n </Box>\r\n </AccordionDetails>\r\n </Accordion>\r\n ) : reportViewerState === \"SHOWING_RESULT\" ||\r\n ((reportViewerState === \"WAITING_PARAMETER_INPUT\" ||\r\n reportViewerState === \"WAITING_RESULT\") &&\r\n reportInfo?.reportType === \"Excel\") ? (\r\n reportInfo?.reportType === \"Excel\" ? (\r\n <ExcelReportViewer\r\n reportData={excelReportData}\r\n setReportData={setExcelReportData}\r\n reloadReport={async () => {\r\n runReport(reportInfo, reportParametersValues);\r\n }}\r\n gridLoadParameters={reportParametersElements}\r\n gridLoadParametersValues={reportParametersValues}\r\n setGridLoadParametersValues={setReportParametersValues}\r\n />\r\n ) : (\r\n <iframe\r\n src={blobUrl}\r\n width=\"100%\"\r\n height=\"100%\"\r\n title=\"PDF Preview\"\r\n style={{ border: \"1px solid #ccc\", marginTop: \"20px\" }}\r\n ></iframe>\r\n )\r\n ) : reportViewerState === \"ERROR\" ? (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flex: 1,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n icon=\"circle-exclamation\"\r\n color=\"darkred\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {errorMessage}\r\n </Box>\r\n ) : (\r\n <></>\r\n )}\r\n </Box>\r\n </>\r\n );\r\n};\r\n\r\nexport default ReportViewer;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport {\r\n FormActionProps,\r\n FormElementProps,\r\n} from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { UseFormReturn } from \"react-hook-form\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { toast } from \"react-toastify\";\r\nimport ReportParametersForm from \"./ReportParametersForm\";\r\nimport ReportParameterGrid from \"./ReportParameterGrid\";\r\nimport ReportViewer from \"../../templates/report/ReportViewer\";\r\n\r\ntype ValidationCritria = {\r\n isVisible: boolean;\r\n isMandatory: boolean;\r\n};\r\n\r\nexport type ReportType = \"Jasper\" | \"Excel\" | \"Blueprint\";\r\n\r\ntype ReportValidationOptions = {\r\n useSysDatasource: ValidationCritria;\r\n datasourceConId: ValidationCritria;\r\n reportBluePrintId: ValidationCritria;\r\n reportExcelDataQueryId: ValidationCritria;\r\n reportJasperName: ValidationCritria;\r\n reportJasperPath: ValidationCritria;\r\n};\r\n\r\ntype validationObjectType = {\r\n [key in ReportType]: ReportValidationOptions;\r\n};\r\n\r\nconst validationObject: validationObjectType = {\r\n Blueprint: {\r\n useSysDatasource: { isMandatory: false, isVisible: false },\r\n datasourceConId: { isMandatory: false, isVisible: false },\r\n reportBluePrintId: { isMandatory: true, isVisible: true },\r\n reportExcelDataQueryId: { isMandatory: false, isVisible: false },\r\n reportJasperName: { isMandatory: false, isVisible: false },\r\n reportJasperPath: { isMandatory: false, isVisible: false },\r\n },\r\n Jasper: {\r\n useSysDatasource: { isMandatory: false, isVisible: true },\r\n datasourceConId: { isMandatory: false, isVisible: true },\r\n reportBluePrintId: { isMandatory: false, isVisible: false },\r\n reportExcelDataQueryId: { isMandatory: false, isVisible: false },\r\n reportJasperName: { isMandatory: true, isVisible: true },\r\n reportJasperPath: { isMandatory: true, isVisible: true },\r\n },\r\n Excel: {\r\n useSysDatasource: { isMandatory: false, isVisible: false },\r\n datasourceConId: { isMandatory: false, isVisible: false },\r\n reportBluePrintId: { isMandatory: false, isVisible: false },\r\n reportExcelDataQueryId: { isMandatory: true, isVisible: true },\r\n reportJasperName: { isMandatory: false, isVisible: false },\r\n reportJasperPath: { isMandatory: false, isVisible: false },\r\n },\r\n};\r\n\r\nconst adjustFormAccordingToReportType = (\r\n value: any,\r\n formActions: FormActionProps,\r\n formManager: UseFormReturn\r\n) => {\r\n if (value && validationObject[value]) {\r\n const validationObjects: ReportValidationOptions = validationObject[value];\r\n const fields = Object.keys(validationObjects);\r\n for (const field of fields) {\r\n const validationCritria: ValidationCritria = validationObjects[field];\r\n if (validationCritria.isVisible) {\r\n formActions.showField(field);\r\n } else {\r\n formActions.hideField(field);\r\n formManager.setValue(field, null);\r\n }\r\n }\r\n } else {\r\n formActions.hideField(\"useSysDatasource\");\r\n formActions.hideField(\"datasourceConId\");\r\n formActions.hideField(\"reportBluePrintId\");\r\n formActions.hideField(\"reportExcelDataQueryId\");\r\n formActions.hideField(\"reportJasperName\");\r\n formActions.hideField(\"reportJasperPath\");\r\n formManager.setValue(\"useSysDatasource\", null);\r\n formManager.setValue(\"datasourceConId\", null);\r\n formManager.setValue(\"reportBluePrintId\", null);\r\n formManager.setValue(\"reportExcelDataQueryId\", null);\r\n formManager.setValue(\"reportJasperName\", null);\r\n formManager.setValue(\"reportJasperPath\", null);\r\n }\r\n};\r\n\r\nconst ReportGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [selectedRecord, setSelectedRecord] = useState(null);\r\n const {\r\n Window: ReporTrialWindow,\r\n setWindowState: setReportTrialWindowState,\r\n } = useWindow({\r\n windowTitle: \"Report View\",\r\n windowIcon: \"eye\",\r\n width: \"80%\",\r\n });\r\n const {\r\n Window: ReportParameterWindow,\r\n setWindowState: setReportParameterWindowState,\r\n } = useWindow({\r\n windowTitle: \"Report Parameters\",\r\n windowIcon: \"p\",\r\n width: \"80%\",\r\n });\r\n const [data, setData] = useState([]);\r\n const SystemDataSources = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataSources.data\r\n );\r\n const SystemDataQueries = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataQueries.data\r\n );\r\n const SystemBluePrints = useSelector(\r\n (state: any) => state.commonStores.stores.SystemBluePrints.data\r\n );\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/report/all\",\r\n deleteById: \"api/v1/dev/report\",\r\n save: \"api/v1/dev/report\",\r\n findById: \"api/v1/dev/report\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_TYPE\",\r\n fieldName: \"reportType\",\r\n options: [\r\n { value: \"Excel\" },\r\n { value: \"Jasper\" },\r\n { value: \"Blueprint\" },\r\n ],\r\n optionDisplayField: \"value\",\r\n optionValueField: \"value\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n adjustFormAccordingToReportType(value, formActions, formManager);\r\n },\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_CODE\",\r\n fieldName: \"reportCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_NAME\",\r\n fieldName: \"reportName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_CATEGORY\",\r\n fieldName: \"reportCategory\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Authority Code\",\r\n fieldName: \"reportAuthorityCode\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_EXPORT_NAME\",\r\n fieldName: \"reportExportName\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_USE_SYS_DATASOURCE\",\r\n fieldName: \"useSysDatasource\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n if (value) {\r\n formActions.hideField(\"datasourceConId\");\r\n formManager.setValue(\"datasourceConId\", null);\r\n } else {\r\n formActions.showField(\"datasourceConId\");\r\n }\r\n },\r\n },\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_DATASOURCE_CON_ID\",\r\n fieldName: \"datasourceConId\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataSources,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"connectionName\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_BLUE_PRINT_ID\",\r\n fieldName: \"reportBluePrintId\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemBluePrints,\r\n optionDisplayField: \"bluePrintCode\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_EXCEL_DATA_QUERY_ID\",\r\n fieldName: \"reportExcelDataQueryId\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"queryName\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_JASPER_NAME\",\r\n fieldName: \"reportJasperName\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_JASPER_PATH\",\r\n fieldName: \"reportJasperPath\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Active\",\r\n fieldName: \"isActive\",\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <ReporTrialWindow>\r\n <ReportViewer\r\n reportCode={selectedRecord?.reportCode}\r\n resultMode=\"App\"\r\n />\r\n </ReporTrialWindow>\r\n <ReportParameterWindow>\r\n <ReportParameterGrid selectedRecord={selectedRecord} />\r\n </ReportParameterWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalTitle: \"Report\",\r\n modalIcon: \"file\",\r\n modalWidth: 300,\r\n },\r\n }}\r\n rowActions={[\r\n {\r\n icon: \"p\",\r\n label: \"Report Parameters\",\r\n isActionVisibleForRecord: (record) => {\r\n return record.reportType === \"Jasper\";\r\n },\r\n actionFn: async (data, recordIdsToProcessActionOn) => {\r\n setSelectedRecord(data);\r\n setReportParameterWindowState(true);\r\n },\r\n },\r\n {\r\n icon: \"eye\",\r\n label: \"View Report\",\r\n actionFn: async (data, recordIdsToProcessActionOn) => {\r\n setSelectedRecord(data);\r\n setReportTrialWindowState(true);\r\n },\r\n },\r\n ]}\r\n formLoadCallBk={(\r\n formActions: FormActionProps,\r\n formManager: UseFormReturn,\r\n record: any\r\n ) => {\r\n adjustFormAccordingToReportType(\r\n record.reportType,\r\n formActions,\r\n formManager\r\n );\r\n if (record?.useSysDatasource === true) {\r\n formActions.hideField(\"datasourceConId\");\r\n }\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"REPORT_PLURAL\")}\r\n girdIcon=\"table-cells\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"REPORT_EDIT\",\r\n preActionValidation: (record) => {\r\n if (\r\n record?.reportType === \"Jasper\" &&\r\n record?.useSysDatasource === false &&\r\n !record?.datasourceConId\r\n ) {\r\n toast.error(\"You must choose the datasource\");\r\n return false;\r\n }\r\n if (record?.reportType === \"Jasper\" && !record?.reportJasperName) {\r\n toast.error(\"You must enter the jasper report name\");\r\n return false;\r\n }\r\n if (record?.reportType === \"Jasper\" && !record?.reportJasperPath) {\r\n toast.error(\"You must enter the jasper report path\");\r\n return false;\r\n }\r\n if (\r\n record?.reportType === \"Blueprint\" &&\r\n !record?.reportBluePrintId\r\n ) {\r\n toast.error(\"You must choose the report blueprint\");\r\n return false;\r\n }\r\n if (\r\n record?.reportType === \"Excel\" &&\r\n !record?.reportExcelDataQueryId\r\n ) {\r\n toast.error(\"You must choose the report query\");\r\n return false;\r\n }\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"REPORT_DELETE\" }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default ReportGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { isValidEmail } from \"../../../util\";\r\nimport { toast } from \"react-toastify\";\r\n\r\ntype MailRecipientGridProps = {\r\n selectedRecord: any;\r\n callBkFn: () => void;\r\n};\r\n\r\nconst MailRecipientGrid: React.FC<MailRecipientGridProps> = (props) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/mailrecipient/all\",\r\n deleteById: \"api/v1/dev/mailrecipient\",\r\n save: \"api/v1/dev/mailrecipient\",\r\n findById: \"api/v1/dev/mailrecipient\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_RECIPIENT_MAIL_TEMPLATE_ID\",\r\n fieldName: \"mailTemplateId\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_RECIPIENT_RECIPIENT_TYPE\",\r\n fieldName: \"recipientType\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: [{ value: \"To\" }, { value: \"CC\" }],\r\n optionDisplayField: \"value\",\r\n optionValueField: \"value\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_RECIPIENT_RECIPIENT_MAIL\",\r\n fieldName: \"recipientMail\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_RECIPIENT_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{mailTemplateId:props.selectedRecord.id}}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"MAIL_RECIPIENT_PLURAL\")}\r\n girdIcon=\"users\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"MAIL_RECIPIENT_EDIT\",\r\n preActionValidation: (record) => {\r\n if (record?.recipientMail && !isValidEmail(record.recipientMail)) {\r\n toast.error(\"You must enter a valid email address\");\r\n return false;\r\n }\r\n record.mailTemplateId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"MAIL_RECIPIENT_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default MailRecipientGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype MailBodyGridProps = {\r\n selectedRecord: any;\r\n callBkFn: () => void;\r\n};\r\n\r\nconst MailBodyGrid: React.FC<MailBodyGridProps> = (props) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const SystemDataQueries = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataQueries.data\r\n );\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/mailbody/all\",\r\n deleteById: \"api/v1/dev/mailbody\",\r\n save: \"api/v1/dev/mailbody\",\r\n findById: \"api/v1/dev/mailbody\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n\t{\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_BODY_BODY_NAME\",\r\n fieldName: \"bodyName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_BODY_BODY_ORDER\",\r\n fieldName: \"bodyOrder\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_BODY_BODY_CONTENT\",\r\n fieldName: \"bodyContent\",\r\n required: true,\r\n fieldType: \"html\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID\",\r\n fieldName: \"bodyContentDataQueryId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionDisplayField: \"queryName\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_BODY_PRINT_FOR_EACH_RECORD\",\r\n fieldName: \"printForEachRecord\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_BODY_IS_MAIN\",\r\n fieldName: \"isMain\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_BODY_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_BODY_MAIL_TEMPLATE_ID\",\r\n fieldName: \"mailTemplateId\",\r\n required: false,\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n fieldType: \"number\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{ mailTemplateId: props.selectedRecord.id }}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalIcon: { prefix: \"fas\", iconName: \"envelope-open-text\" },\r\n modalTitle: \"Mail Body\",\r\n modalWidth: \"50%\",\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"MAIL_BODY_PLURAL\")}\r\n girdIcon={{ prefix: \"fas\", iconName: \"envelope-open-text\" }}\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"MAIL_BODY_EDIT\",\r\n preActionValidation: async (record) => {\r\n record.mailTemplateId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"MAIL_BODY_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default MailBodyGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype MailAttachmentGridProps = {\r\n selectedRecord: any;\r\n callBkFn: () => void;\r\n};\r\n\r\nconst MailAttachmentGrid: React.FC<MailAttachmentGridProps> = (props) => {\r\n const SystemReports = useSelector(\r\n (state: any) => state.commonStores.stores.SystemReports.data\r\n );\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/mailattachment/all\",\r\n deleteById: \"api/v1/dev/mailattachment\",\r\n save: \"api/v1/dev/mailattachment\",\r\n findById: \"api/v1/dev/mailattachment\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n options: SystemReports,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"reportName\",\r\n fieldLabel: \"REPORT_REPORT_NAME\",\r\n fieldName: \"reportId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_ATTACHMENT_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_ATTACHMENT_MAIL_TEMPLATE_ID\",\r\n fieldName: \"mailTemplateId\",\r\n required: false,\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n fieldType: \"number\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{ mailTemplateId: props.selectedRecord.id }}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"MAIL_ATTACHMENT_PLURAL\")}\r\n girdIcon=\"paperclip\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"MAIL_ATTACHMENT_EDIT\",\r\n preActionValidation: (record) => {\r\n record.mailTemplateId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"MAIL_ATTACHMENT_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default MailAttachmentGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport {\r\n FormActionProps,\r\n FormElementProps,\r\n} from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { UseFormReturn } from \"react-hook-form\";\r\n\r\ntype ValidationCritria = {\r\n isVisible: boolean;\r\n isMandatory: boolean;\r\n};\r\n\r\nexport type EngineType = \"Gmail\" | \"Azure\";\r\n\r\ntype ReportValidationOptions = {\r\n mailHost: ValidationCritria;\r\n mailPort: ValidationCritria;\r\n mailUsername: ValidationCritria;\r\n mailPassword: ValidationCritria; \r\n mailProtocol: ValidationCritria;\r\n isMailSmtpAuthEnabled: ValidationCritria;\r\n isMailStarttlsEnabled: ValidationCritria;\r\n isSmtpSSlEnabled: ValidationCritria;\r\n azureGraphApiClientId: ValidationCritria;\r\n azureGraphApiClientSecret: ValidationCritria;\r\n azureGraphApiTenantId: ValidationCritria;\r\n azureGraphApiScope: ValidationCritria;\r\n azureGraphApiEmailId: ValidationCritria;\r\n};\r\n\r\ntype validationObjectType = {\r\n [key in EngineType]: ReportValidationOptions;\r\n};\r\n\r\nconst validationObject: validationObjectType = {\r\n Gmail: {\r\n mailHost: { isMandatory: true, isVisible: true },\r\n mailPort: { isMandatory: true, isVisible: true },\r\n mailUsername: { isMandatory: true, isVisible: true },\r\n mailPassword: { isMandatory: true, isVisible: true }, \r\n mailProtocol: { isMandatory: true, isVisible: true },\r\n isMailSmtpAuthEnabled: { isMandatory: true, isVisible: true },\r\n isMailStarttlsEnabled: { isMandatory: true, isVisible: true },\r\n isSmtpSSlEnabled: { isMandatory: true, isVisible: true },\r\n azureGraphApiClientId: { isMandatory: false, isVisible: false },\r\n azureGraphApiClientSecret: { isMandatory: false, isVisible: false },\r\n azureGraphApiTenantId: { isMandatory: false, isVisible: false },\r\n azureGraphApiScope: { isMandatory: false, isVisible: false },\r\n azureGraphApiEmailId: { isMandatory: false, isVisible: false },\r\n },\r\n Azure: {\r\n mailHost: { isMandatory: false, isVisible: false },\r\n mailPort: { isMandatory: false, isVisible: false },\r\n mailUsername: { isMandatory: false, isVisible: false },\r\n mailPassword: { isMandatory: false, isVisible: false }, \r\n mailProtocol: { isMandatory: false, isVisible: false },\r\n isMailSmtpAuthEnabled: { isMandatory: false, isVisible: false },\r\n isMailStarttlsEnabled: { isMandatory: false, isVisible: false },\r\n isSmtpSSlEnabled: { isMandatory: false, isVisible: false },\r\n azureGraphApiClientId: { isMandatory: true, isVisible: true },\r\n azureGraphApiClientSecret: { isMandatory: true, isVisible: true },\r\n azureGraphApiTenantId: { isMandatory: true, isVisible: true },\r\n azureGraphApiScope: { isMandatory: true, isVisible: true },\r\n azureGraphApiEmailId: { isMandatory: true, isVisible: true },\r\n },\r\n};\r\n\r\nconst adjustFormAccordingToEngineType = (\r\n value: any,\r\n formActions: FormActionProps,\r\n formManager: UseFormReturn\r\n) => {\r\n if (value && validationObject[value]) {\r\n const validationObjects: ReportValidationOptions = validationObject[value];\r\n const fields = Object.keys(validationObjects);\r\n for (const field of fields) {\r\n const validationCritria: ValidationCritria = validationObjects[field];\r\n if (validationCritria.isVisible) {\r\n formActions.showField(field);\r\n } else {\r\n formActions.hideField(field);\r\n formManager.setValue(field, null);\r\n }\r\n }\r\n } else {\r\n formActions.hideField(\"mailHost\");\r\n formManager.setValue(\"mailHost\", null);\r\n formActions.hideField(\"mailPort\");\r\n formManager.setValue(\"mailPort\", null);\r\n formActions.hideField(\"mailUsername\");\r\n formManager.setValue(\"mailUsername\", null);\r\n formActions.hideField(\"mailPassword\");\r\n formManager.setValue(\"mailPassword\", null); \r\n formActions.hideField(\"mailProtocol\");\r\n formManager.setValue(\"mailProtocol\", null);\r\n formActions.hideField(\"isMailSmtpAuthEnabled\");\r\n formManager.setValue(\"isMailSmtpAuthEnabled\", null);\r\n formActions.hideField(\"isMailStarttlsEnabled\");\r\n formManager.setValue(\"isMailStarttlsEnabled\", null);\r\n formActions.hideField(\"isSmtpSSlEnabled\");\r\n formManager.setValue(\"isSmtpSSlEnabled\", null);\r\n formActions.hideField(\"azureGraphApiClientId\");\r\n formManager.setValue(\"azureGraphApiClientId\", null);\r\n formActions.hideField(\"azureGraphApiClientSecret\");\r\n formManager.setValue(\"azureGraphApiClientSecret\", null);\r\n formActions.hideField(\"azureGraphApiTenantId\");\r\n formManager.setValue(\"azureGraphApiTenantId\", null);\r\n formActions.hideField(\"azureGraphApiScope\");\r\n formManager.setValue(\"azureGraphApiScope\", null);\r\n formActions.hideField(\"azureGraphApiEmailId\");\r\n formManager.setValue(\"azureGraphApiEmailId\", null);\r\n }\r\n};\r\n\r\nconst MailSenderConfigGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/mailsenderconfig/all\",\r\n deleteById: \"api/v1/dev/mailsenderconfig\",\r\n save: \"api/v1/dev/mailsenderconfig\",\r\n findById: \"api/v1/dev/mailsenderconfig\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Name\",\r\n fieldName: \"configName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Engine\",\r\n fieldName: \"mailEngine\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: [{ value: \"Gmail\" }, { value: \"Azure\" }],\r\n optionDisplayField: \"value\",\r\n optionValueField: \"value\",\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n adjustFormAccordingToEngineType(value, formActions, formManager);\r\n },\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Hostname\",\r\n fieldName: \"mailHost\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"port\",\r\n fieldName: \"mailPort\",\r\n required: false,\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"username\",\r\n fieldName: \"mailUsername\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"password\",\r\n fieldName: \"mailPassword\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Workflow Approval Receive Email\",\r\n fieldName: \"workFlowApprovalReceiveEmail\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Protocol\",\r\n fieldName: \"mailProtocol\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Enable Smtp Auth\",\r\n fieldName: \"isMailSmtpAuthEnabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Enable Start TLS\",\r\n fieldName: \"isMailStarttlsEnabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Enable SSL\",\r\n fieldName: \"isSmtpSSlEnabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Azure Graph API Client Id\",\r\n fieldName: \"azureGraphApiClientId\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Azure Graph API Secret\",\r\n fieldName: \"azureGraphApiClientSecret\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Azure Graph API Tenant Id\",\r\n fieldName: \"azureGraphApiTenantId\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Azure Graph API Scope\",\r\n fieldName: \"azureGraphApiScope\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Azure Graph API Email Id\",\r\n fieldName: \"azureGraphApiEmailId\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Default\",\r\n fieldName: \"isDefault\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Active\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalIcon: { iconName: \"paper-plane\", prefix: \"fas\" },\r\n modalTitle: \"Mail Sender Configuration\",\r\n modalWidth: 300,\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"Mail Sender Configuration\")}\r\n girdIcon={{ iconName: \"paper-plane\", prefix: \"fas\" }}\r\n editAction={{ isEnabled: true, authority: \"MAIL_SENDER_CONFIG_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"MAIL_SENDER_CONFIG_DELETE\" }}\r\n formLoadCallBk={(\r\n formActions: FormActionProps,\r\n formManager: UseFormReturn,\r\n record: any\r\n ) => {\r\n adjustFormAccordingToEngineType(\r\n record.mailEngine,\r\n formActions,\r\n formManager\r\n );\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default MailSenderConfigGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype WorkflowDocumentStatusGridProps = {\r\n selectedRecord: any;\r\n};\r\n\r\nconst WorkflowDocumentStatusGrid: React.FC<WorkflowDocumentStatusGridProps> = (\r\n props\r\n) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/workflowdocumentstatus/all\",\r\n deleteById: \"api/v1/dev/workflowdocumentstatus\",\r\n save: \"api/v1/dev/workflowdocumentstatus\",\r\n findById: \"api/v1/dev/workflowdocumentstatus\",\r\n setData: setData,\r\n });\r\n const SystemDataQueries = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataQueries.data\r\n );\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_CODE\",\r\n fieldName: \"documentStatusCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Status Arabic Name\",\r\n fieldName: \"documentStatusArName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Status English Name\",\r\n fieldName: \"documentStatusEnName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_ORDER\",\r\n fieldName: \"documentStatusOrder\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_STATUS_IS_ZERO_STATE\",\r\n fieldName: \"isZeroState\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel:\r\n \"Next Actions Query (must return array of actions in table named workflow_document_action)\",\r\n fieldName: \"nextActionsQueryId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"queryName\",\r\n gridProps: { hidden: true },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel:\r\n \"Next Action Takers Query (must return array of persons in table named person)\",\r\n fieldName: \"nextActionTakersQueryId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"queryName\",\r\n gridProps: { hidden: true },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Next Action Takers Authority\",\r\n fieldName: \"nextActionTakersAuthority\",\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_STATUS_WORKFLOW_DOCUMENT_ID\",\r\n fieldName: \"workflowDocumentId\",\r\n required: false,\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_STATUS_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{\r\n workflowDocumentId: props.selectedRecord.id,\r\n }}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalIcon: \"tag\",\r\n modalTitle: \"Workflow Document Status\",\r\n modalWidth: 600,\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"WORKFLOW_DOCUMENT_STATUS_PLURAL\")}\r\n girdIcon=\"tags\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_STATUS_EDIT\",\r\n preActionValidation: (record) => {\r\n record.workflowDocumentId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_STATUS_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default WorkflowDocumentStatusGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype WorkflowDocumentActionMailGridProps = {\r\n selectedRecord: any;\r\n};\r\n\r\nconst WorkflowDocumentActionMailGrid: React.FC<\r\n WorkflowDocumentActionMailGridProps\r\n> = (props) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/workflowdocumentactionmail/all\",\r\n deleteById: \"api/v1/dev/workflowdocumentactionmail\",\r\n save: \"api/v1/dev/workflowdocumentactionmail\",\r\n findById: \"api/v1/dev/workflowdocumentactionmail\",\r\n setData: setData,\r\n });\r\n\r\n const SystemMailTemplates = useSelector(\r\n (state: any) => state.commonStores.stores.SystemMailTemplates.data\r\n );\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_ACTION_MAIL_DOCUMENT_ACTION_ID\",\r\n fieldName: \"documentActionId\",\r\n required: false,\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_ACTION_MAIL_MAIL_TEMPLATE_ID\",\r\n fieldName: \"mailTemplateId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemMailTemplates,\r\n optionDisplayField: \"mailTemplateName\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_ACTION_MAIL_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{ actionId: props.selectedRecord.id }}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"WORKFLOW_DOCUMENT_ACTION_MAIL_PLURAL\")}\r\n girdIcon=\"table-cells\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_ACTION_MAIL_EDIT\",\r\n preActionValidation: (record) => {\r\n record.documentActionId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_ACTION_MAIL_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default WorkflowDocumentActionMailGrid;\r\n","import { useEffect, useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions, useAxios, useWindow } from \"../../../hooks\";\r\nimport WorkflowDocumentActionMailGrid from \"./WorkflowDocumentActionMailGrid\";\r\n\r\ntype WorkflowDocumentActionGridProps = {\r\n selectedRecord: any;\r\n};\r\n\r\nconst WorkflowDocumentActionGrid: React.FC<WorkflowDocumentActionGridProps> = (\r\n props\r\n) => {\r\n const [selectedRecord, setSelectedRecord] = useState<any>(null);\r\n const {\r\n Window: ActionMailsWindow,\r\n setWindowState: setActionMailWindowState,\r\n } = useWindow({\r\n windowTitle: \"Action Mail Notification\",\r\n windowIcon: \"envelope\",\r\n width: \"50%\",\r\n });\r\n const { t } = useTranslation();\r\n const { handleGetRequest } = useAxios();\r\n const [workflowStates, setWorkflowStates] = useState<Array<any>>([]);\r\n const loadWorkFlowDocumentStates = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/dev/workflowdocumentstatus/all\",\r\n showMask: true,\r\n parameters: {\r\n workflowDocumentId: props.selectedRecord.id,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setWorkflowStates(response.data);\r\n },\r\n });\r\n };\r\n useEffect(() => {\r\n loadWorkFlowDocumentStates();\r\n }, [props.selectedRecord]);\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/workflowdocumentaction/all\",\r\n deleteById: \"api/v1/dev/workflowdocumentaction\",\r\n save: \"api/v1/dev/workflowdocumentaction\",\r\n findById: \"api/v1/dev/workflowdocumentaction\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_CODE\",\r\n fieldName: \"documentActionCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Action Arabic Name\",\r\n fieldName: \"documentActionArName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Action English Name\",\r\n fieldName: \"documentActionEnName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_ACTION_NEXT_DOCUMENT_STATUS_ID\",\r\n fieldName: \"nextDocumentStatusId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: workflowStates,\r\n optionDisplayField: \"documentStatusCode\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel:\r\n \"Post Action Endpoint ( system will call it with post method and parameters refDocumentId , workflowActionId)\",\r\n fieldName: \"postActionEndpoint\",\r\n required: false,\r\n fieldType: \"text\",\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel:\r\n \"Pre Action Endpoint ( system will call it with post method and parameters refDocumentId , workflowActionId)\",\r\n fieldName: \"preActionEndpoint\",\r\n required: false,\r\n fieldType: \"text\",\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_ACTION_REQUIRE_COMMENT\",\r\n fieldName: \"requireComment\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_ACTION_WORKFLOW_DOCUMENT_ID\",\r\n fieldName: \"workflowDocumentId\",\r\n required: false,\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <ActionMailsWindow>\r\n <WorkflowDocumentActionMailGrid selectedRecord={selectedRecord} />\r\n </ActionMailsWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{\r\n workflowDocumentId: props.selectedRecord.id,\r\n }}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalIcon: \"stamp\",\r\n modalTitle: \"Workflow Document Action\",\r\n modalWidth: 700,\r\n },\r\n }}\r\n rowActions={[\r\n {\r\n label: \"Action Mail Notifications\",\r\n icon: \"envelope\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setActionMailWindowState(true);\r\n },\r\n },\r\n ]}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"WORKFLOW_DOCUMENT_ACTION_PLURAL\")}\r\n girdIcon=\"stamp\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_ACTION_EDIT\",\r\n preActionValidation: (record) => {\r\n record.workflowDocumentId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_ACTION_DELETE\",\r\n }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default WorkflowDocumentActionGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport {\r\n FormActionProps,\r\n FormElementProps,\r\n} from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { UseFormReturn } from \"react-hook-form\";\r\n\r\ntype ValidationCritria = {\r\n isVisible: boolean;\r\n isMandatory: boolean;\r\n};\r\n\r\nexport type WidgetType =\r\n | \"LineChart\"\r\n | \"ColumnChart\"\r\n | \"PieChart\"\r\n | \"Card\"\r\n | \"CircularProgress\"\r\n | \"LinearProgress\";\r\n\r\ntype WidgetValidationOptions = {\r\n height: ValidationCritria;\r\n width: ValidationCritria;\r\n horizontalAxisField: ValidationCritria;\r\n horizontalAxisLabel: ValidationCritria;\r\n seriesKeys: ValidationCritria;\r\n verticalAxisField: ValidationCritria;\r\n verticalAxisLabel: ValidationCritria;\r\n};\r\n\r\ntype validationObjectType = {\r\n [key in WidgetType]: WidgetValidationOptions;\r\n};\r\n\r\nconst validationObject: validationObjectType = {\r\n LineChart: {\r\n height: { isMandatory: true, isVisible: true },\r\n width: { isMandatory: true, isVisible: true },\r\n horizontalAxisField: { isMandatory: true, isVisible: true },\r\n horizontalAxisLabel: { isMandatory: true, isVisible: true },\r\n seriesKeys: { isMandatory: false, isVisible: false },\r\n verticalAxisField: { isMandatory: true, isVisible: true },\r\n verticalAxisLabel: { isMandatory: true, isVisible: true },\r\n },\r\n ColumnChart: {\r\n height: { isMandatory: true, isVisible: true },\r\n width: { isMandatory: true, isVisible: true },\r\n horizontalAxisField: { isMandatory: true, isVisible: true },\r\n horizontalAxisLabel: { isMandatory: true, isVisible: true },\r\n seriesKeys: { isMandatory: false, isVisible: false },\r\n verticalAxisField: { isMandatory: true, isVisible: true },\r\n verticalAxisLabel: { isMandatory: true, isVisible: true },\r\n },\r\n PieChart: {\r\n height: { isMandatory: true, isVisible: true },\r\n width: { isMandatory: true, isVisible: true },\r\n horizontalAxisField: { isMandatory: true, isVisible: true },\r\n horizontalAxisLabel: { isMandatory: false, isVisible: false },\r\n seriesKeys: { isMandatory: false, isVisible: false },\r\n verticalAxisField: { isMandatory: true, isVisible: true },\r\n verticalAxisLabel: { isMandatory: false, isVisible: false },\r\n },\r\n Card: {\r\n height: { isMandatory: true, isVisible: true },\r\n width: { isMandatory: true, isVisible: true },\r\n horizontalAxisField: { isMandatory: true, isVisible: true },\r\n horizontalAxisLabel: { isMandatory: false, isVisible: false },\r\n seriesKeys: { isMandatory: false, isVisible: false },\r\n verticalAxisField: { isMandatory: true, isVisible: true },\r\n verticalAxisLabel: { isMandatory: false, isVisible: false },\r\n },\r\n CircularProgress: {\r\n height: { isMandatory: false, isVisible: false },\r\n width: { isMandatory: false, isVisible: false },\r\n horizontalAxisField: { isMandatory: false, isVisible: false },\r\n horizontalAxisLabel: { isMandatory: false, isVisible: false },\r\n seriesKeys: { isMandatory: false, isVisible: false },\r\n verticalAxisField: { isMandatory: false, isVisible: false },\r\n verticalAxisLabel: { isMandatory: false, isVisible: false },\r\n },\r\n LinearProgress: {\r\n height: { isMandatory: false, isVisible: false },\r\n width: { isMandatory: false, isVisible: false },\r\n horizontalAxisField: { isMandatory: false, isVisible: false },\r\n horizontalAxisLabel: { isMandatory: false, isVisible: false },\r\n seriesKeys: { isMandatory: false, isVisible: false },\r\n verticalAxisField: { isMandatory: false, isVisible: false },\r\n verticalAxisLabel: { isMandatory: false, isVisible: false },\r\n },\r\n};\r\n\r\nconst adjustFormAccordingToWidgetType = (\r\n value: any,\r\n formActions: FormActionProps,\r\n formManager: UseFormReturn\r\n) => {\r\n if (value && validationObject[value]) {\r\n const validationObjects: WidgetValidationOptions = validationObject[value];\r\n const fields = Object.keys(validationObjects);\r\n for (const field of fields) {\r\n const validationCritria: ValidationCritria = validationObjects[field];\r\n if (validationCritria.isVisible) {\r\n formActions.showField(field);\r\n } else {\r\n formActions.hideField(field);\r\n formManager.setValue(field, null);\r\n }\r\n }\r\n } else {\r\n formActions.hideField(\"height\");\r\n formManager.setValue(\"height\", null);\r\n formActions.hideField(\"width\");\r\n formManager.setValue(\"width\", null);\r\n formActions.hideField(\"horizontalAxisField\");\r\n formManager.setValue(\"horizontalAxisField\", null);\r\n formActions.hideField(\"horizontalAxisLabel\");\r\n formManager.setValue(\"horizontalAxisLabel\", null);\r\n formActions.hideField(\"seriesKeys\");\r\n formManager.setValue(\"seriesKeys\", null);\r\n formActions.hideField(\"verticalAxisField\");\r\n formManager.setValue(\"verticalAxisField\", null);\r\n formActions.hideField(\"verticalAxisLabel\");\r\n formManager.setValue(\"verticalAxisLabel\", null);\r\n }\r\n};\r\n\r\nconst WidgetGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const SystemDataQueries = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataQueries.data\r\n );\r\n const SystemWidgetTypes = useSelector(\r\n (state: any) => state.commonStores.stores.SystemWidgetTypes.data\r\n );\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n commonStoreKey: \"SystemWidgets\",\r\n deleteById: \"api/v1/dev/widget\",\r\n save: \"api/v1/dev/widget\",\r\n findById: \"api/v1/dev/widget\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_WIDGET_TYPE\",\r\n fieldName: \"widgetType\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemWidgetTypes,\r\n optionDisplayField: \"name\",\r\n optionValueField: \"name\",\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n adjustFormAccordingToWidgetType(value, formActions, formManager);\r\n },\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Query\",\r\n fieldName: \"dataQueryId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionDisplayField: \"queryName\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_WIDGET_NAME\",\r\n fieldName: \"widgetName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_ICON\",\r\n fieldName: \"icon\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_TITLE\",\r\n fieldName: \"title\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_WIDGET_DESCRIPTION\",\r\n fieldName: \"widgetDescription\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_HEIGHT\",\r\n fieldName: \"height\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_WIDTH\",\r\n fieldName: \"width\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: [\r\n { value: 1 },\r\n { value: 2 },\r\n { value: 3 },\r\n { value: 4 },\r\n { value: 5 },\r\n { value: 6 },\r\n { value: 7 },\r\n { value: 8 },\r\n { value: 9 },\r\n { value: 10 },\r\n { value: 11 },\r\n { value: 12 },\r\n ],\r\n optionDisplayField: \"value\",\r\n optionValueField: \"value\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"group\",\r\n props: {\r\n style: { padding: 1, border: \"1px solid black\", width: \"100%\" },\r\n label: \"Data Specs\",\r\n elements: [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_HORIZONTAL_AXIS_FIELD\",\r\n fieldName: \"horizontalAxisField\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_HORIZONTAL_AXIS_LABEL\",\r\n fieldName: \"horizontalAxisLabel\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_SERIES_KEYS\",\r\n fieldName: \"seriesKeys\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_VERTICAL_AXIS_FIELD\",\r\n fieldName: \"verticalAxisField\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_VERTICAL_AXIS_LABEL\",\r\n fieldName: \"verticalAxisLabel\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n ],\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: { modalIcon: \"chart-pie\", modalTitle: \"Widget\" },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"WIDGET_PLURAL\")}\r\n girdIcon=\"chart-pie\"\r\n editAction={{ isEnabled: true, authority: \"WIDGET_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"WIDGET_DELETE\" }}\r\n formLoadCallBk={(\r\n formActions: FormActionProps,\r\n formManager: UseFormReturn,\r\n record: any\r\n ) => {\r\n adjustFormAccordingToWidgetType(\r\n record.widgetType,\r\n formActions,\r\n formManager\r\n );\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default WidgetGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype DashboardWidgetGridProps = {\r\n selectedRecord: any;\r\n};\r\n\r\nconst DashboardWidgetGrid: React.FC<DashboardWidgetGridProps> = (props) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const SystemWidgets = useSelector(\r\n (state: any) => state.commonStores.stores.SystemWidgets.data\r\n );\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/dashboardwidget/all\",\r\n deleteById: \"api/v1/dev/dashboardwidget\",\r\n save: \"api/v1/dev/dashboardwidget\",\r\n findById: \"api/v1/dev/dashboardwidget\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DASHBOARD_WIDGET_DASHBOARD_ID\",\r\n fieldName: \"dashboardId\",\r\n required: false,\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DASHBOARD_WIDGET_WIDGET_ID\",\r\n fieldName: \"widgetId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemWidgets,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"widgetName\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DASHBOARD_WIDGET_WIDGET_ORDER\",\r\n fieldName: \"widgetOrder\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DASHBOARD_WIDGET_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n hideInfoBar={true}\r\n formElements={formElements}\r\n gridLoadParametersValues={{ dashboardId: props.selectedRecord.id }}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"DASHBOARD_WIDGET_PLURAL\")}\r\n girdIcon=\"table-cells\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"DASHBOARD_WIDGET_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.dashboardId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"DASHBOARD_WIDGET_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default DashboardWidgetGrid;\r\n","import Home from \"../components/common/Home\";\r\nimport { ADMINISTRATION_ROUTES } from \"./administration\";\r\nimport { SystemRoute } from \"./types\";\r\n\r\nexport const SYSTEM_ROUTES: Array<SystemRoute> = [\r\n {\r\n path: \"/\",\r\n component: Home,\r\n },\r\n ...ADMINISTRATION_ROUTES,\r\n];\r\n","import { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { Box } from \"@mui/material\";\r\nimport { TemplateForm } from \"../templates\";\r\nimport ReportViewer from \"../templates/report/ReportViewer\";\r\nimport WorkflowDocumentPanel from \"../templates/workflow/WorkflowDocumentPanel\";\r\nimport ExampleDashboard from \"../templates/visuals/ExampleDashboard\";\r\nimport DashboardViewer from \"../templates/visuals/DashboardViewer\";\r\n\r\nconst Home: React.FC = () => {\r\n return (\r\n <DashboardViewer dashboardCode=\"XX_TEMPLATE_DASHBOARD\" />\r\n // <Box\r\n // sx={{\r\n // display: \"flex\",\r\n // flexDirection: \"column\",\r\n // alignItems: \"center\",\r\n // justifyContent: \"center\",\r\n // flex: 1,\r\n // fontSize: 24,\r\n // fontWeight: \"bold\",\r\n // }}\r\n // >\r\n // <img src=\"logo.png\" style={{ margin: 5 }} />\r\n // <div>Welcome to Ezzsteel Flat Product Management System</div>\r\n // <div style={{ fontSize: 16 }}>\r\n // Use side menu [\r\n // <FontAwesomeIcon\r\n // icon=\"bars\"\r\n // style={{ marginLeft: 10, marginRight: 10 }}\r\n // />\r\n // ] to navigate to your authorized system modules\r\n // </div>\r\n // </Box>\r\n );\r\n};\r\n\r\nexport default Home;\r\n","import { SystemRoute } from \"../types\";\r\nimport { adminRoutes } from \"./adminRoutes\";\r\nimport { devRoutes } from \"./devRoutes\";\r\n\r\nexport const ADMINISTRATION_ROUTES: Array<SystemRoute> = [\r\n ...adminRoutes,\r\n ...devRoutes,\r\n];\r\n","import { SystemRoute } from \"../types\";\r\nimport OrganizationGrid from \"../../components/administration/admin/OrganizationGrid\";\r\nimport OrganizationMemberGrid from \"../../components/administration/admin/OrganizationMemberGrid\";\r\nimport OrganizationMemberRoleGrid from \"../../components/administration/admin/OrganizationMemberRoleGrid\";\r\nimport OrganizationRankGrid from \"../../components/administration/admin/OrganizationRankGrid\";\r\nimport OrganizationUnitGrid from \"../../components/administration/admin/OrganizationUnitGrid\";\r\nimport OrganizationUnitTypeGrid from \"../../components/administration/admin/OrganizationUnitTypeGrid\";\r\nimport PersonGrid from \"../../components/administration/admin/PersonGrid\";\r\nimport SystemApplicationGrid from \"../../components/administration/admin/SystemApplicationGrid\";\r\nimport SystemApplicationAuthorityGrid from \"../../components/administration/admin/SystemApplicationAuthorityGrid\";\r\nimport SystemApplicationModuleGrid from \"../../components/administration/admin/SystemApplicationModuleGrid\";\r\nimport SystemApplicationRoleGrid from \"../../components/administration/admin/SystemApplicationRoleGrid\";\r\nimport SystemApplicationRoleAuthorityGrid from \"../../components/administration/admin/SystemApplicationRoleAuthorityGrid\";\r\nexport const adminRoutes: Array<SystemRoute> = [\r\n {\r\n path: \"admin/organizations\",\r\n component: OrganizationGrid,\r\n authority: \"ORGANIZATION_VIEW\",\r\n },\r\n {\r\n path: \"admin/organizationmembers\",\r\n component: OrganizationMemberGrid,\r\n authority: \"ORGANIZATION_MEMBER_VIEW\",\r\n },\r\n {\r\n path: \"admin/organizationmemberroles\",\r\n component: OrganizationMemberRoleGrid,\r\n authority: \"ORGANIZATION_MEMBER_ROLE_VIEW\",\r\n },\r\n {\r\n path: \"admin/organizationranks\",\r\n component: OrganizationRankGrid,\r\n authority: \"ORGANIZATION_RANK_VIEW\",\r\n },\r\n {\r\n path: \"admin/organizationunits\",\r\n component: OrganizationUnitGrid,\r\n authority: \"ORGANIZATION_UNIT_VIEW\",\r\n },\r\n {\r\n path: \"admin/organizationunittypes\",\r\n component: OrganizationUnitTypeGrid,\r\n authority: \"ORGANIZATION_UNIT_TYPE_VIEW\",\r\n },\r\n {\r\n path: \"admin/persons\",\r\n component: PersonGrid,\r\n authority: \"PERSON_VIEW\",\r\n },\r\n {\r\n path: \"admin/systemapplications\",\r\n component: SystemApplicationGrid,\r\n authority: \"SYSTEM_APPLICATION_VIEW\",\r\n },\r\n {\r\n path: \"admin/systemapplicationauthorities\",\r\n component: SystemApplicationAuthorityGrid,\r\n authority: \"SYSTEM_APPLICATION_AUTHORITY_VIEW\",\r\n },\r\n {\r\n path: \"admin/systemapplicationmodules\",\r\n component: SystemApplicationModuleGrid,\r\n authority: \"SYSTEM_APPLICATION_MODULE_VIEW\",\r\n },\r\n {\r\n path: \"admin/systemapplicationroles\",\r\n component: SystemApplicationRoleGrid,\r\n authority: \"SYSTEM_APPLICATION_ROLE_VIEW\",\r\n },\r\n {\r\n path: \"admin/systemapplicationroleauthorities\",\r\n component: SystemApplicationRoleAuthorityGrid,\r\n authority: \"SYSTEM_APPLICATION_ROLE_AUTHORITY_VIEW\",\r\n },\r\n];\r\n\r\n// import { adminRoutes } from \"./adminRoutes\";\r\n// [...adminRoutes]\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport OrganizationApplicationModuleGrid from \"./OrganizationApplicationModuleGrid\";\r\nimport OrganizationUnitTypeGrid from \"./OrganizationUnitTypeGrid\";\r\nimport OrganizationUnitGrid from \"./OrganizationUnitGrid\";\r\nimport OrganizationRankGrid from \"./OrganizationRankGrid\";\r\n\r\nconst OrganizationGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/organization/all\",\r\n deleteById: \"api/v1/admin/organization\",\r\n save: \"api/v1/admin/organization\",\r\n findById: \"api/v1/admin/organization\",\r\n setData: setData,\r\n });\r\n const {\r\n Window: ApplicationModulesWindow,\r\n setWindowState: setApplicationWindowState,\r\n } = useWindow({\r\n windowTitle: \"Organization Subscriped Application Modules\",\r\n windowIcon: \"layer-group\",\r\n });\r\n const {\r\n Window: OrgUnitTypesWindow,\r\n setWindowState: setOrgUnitTypesWindowState,\r\n } = useWindow({\r\n windowTitle: \"Organization Unit Types\",\r\n windowIcon: \"tags\",\r\n });\r\n const { Window: OrgUnitsWindow, setWindowState: setOrgUnitsWindowState } =\r\n useWindow({\r\n windowTitle: \"Organization Units\",\r\n windowIcon: \"folder-tree\",\r\n });\r\n const { Window: OrgRanksWindow, setWindowState: setOrgRanksWindowState } =\r\n useWindow({\r\n windowTitle: \"Organization Ranks\",\r\n windowIcon: \"street-view\",\r\n });\r\n const [selectedRecord, setSelectedRecord] = useState<any>(null);\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_ORGANIZATION_CODE\",\r\n fieldName: \"organizationCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_ORGANIZATION_AR_NAME\",\r\n fieldName: \"organizationArName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_ORGANIZATION_EN_NAME\",\r\n fieldName: \"organizationEnName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type:'field',\r\n mode:'props',\r\n props:{\r\n fieldLabel:'Status',\r\n fieldName:'status',\r\n fieldType:'lookup',\r\n lookupType:'STATUS'\r\n }\r\n }\r\n ];\r\n\r\n return (\r\n <>\r\n <ApplicationModulesWindow>\r\n <OrganizationApplicationModuleGrid\r\n selectedOrganization={selectedRecord}\r\n />\r\n </ApplicationModulesWindow>\r\n <OrgUnitTypesWindow>\r\n <OrganizationUnitTypeGrid selectedOrganization={selectedRecord} />\r\n </OrgUnitTypesWindow>\r\n <OrgUnitsWindow>\r\n <OrganizationUnitGrid selectedOrganization={selectedRecord} />\r\n </OrgUnitsWindow>\r\n <OrgRanksWindow>\r\n <OrganizationRankGrid selectedOrganization={selectedRecord} />\r\n </OrgRanksWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n rowActions={[\r\n {\r\n icon: \"layer-group\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setApplicationWindowState(true);\r\n },\r\n label: \"modules\",\r\n },\r\n {\r\n icon: \"tags\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setOrgUnitTypesWindowState(true);\r\n },\r\n label: \"Organization Unit Types\",\r\n },\r\n {\r\n icon: \"folder-tree\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setOrgUnitsWindowState(true);\r\n },\r\n label: \"Organization Units\",\r\n },\r\n {\r\n icon: \"street-view\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setOrgRanksWindowState(true);\r\n },\r\n label: \"Organization Ranks\",\r\n },\r\n ]}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"ORGANIZATION_PLURAL\"\r\n girdIcon=\"globe\"\r\n editAction={{ isEnabled: true, authority: \"ORGANIZATION_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"ORGANIZATION_DELETE\" }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default OrganizationGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport {useApiActions} from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nconst OrganizationMemberRoleGrid: React.FC = () => {\r\n\tconst { t } = useTranslation();\r\n\tconst [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n \tfindAll: \"api/v1/admin/organizationmemberrole/all\",\r\n \tdeleteById: \"api/v1/admin/organizationmemberrole\",\r\n \tsave: \"api/v1/admin/organizationmemberrole\",\r\n\t\tfindById: \"api/v1/admin/organizationmemberrole\",\r\n \tsetData: setData,\r\n \t});\r\n\t\r\n\tconst formElements: Array<FormElementProps> = [\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n \t\t\t\ttype: \"field\",\r\n \t\t\t\tmode: \"props\",\r\n \t\t\t\tprops: {\r\n \t\t\t\tfieldLabel: \"ORGANIZATION_MEMBER_ROLE_IS_ACTIVE\",\r\n \t\t\t\tfieldName: \"isActive\",\r\n \t\t\t\trequired: false,\r\n \t\t\t\tfieldType: \"checkbox\",\r\n \t\t\t\t},\r\n \t\t\t},\r\n\t\t\t\t\t \t\t\t \t\t\t \t\t\t \t\t\t\t\t\t\t\t\t\t{\r\n \t\t\t\ttype: \"field\",\r\n \t\t\t\tmode: \"props\",\r\n \t\t\t\tprops: {\r\n \t\t\t\tfieldLabel: \"ORGANIZATION_MEMBER_ROLE_END_DATE\",\r\n \t\t\t\tfieldName: \"endDate\",\r\n \t\t\t\trequired: false,\r\n \t\t\t\tfieldType: \"datetime\",\r\n \t\t\t\t},\r\n \t\t\t},\r\n\t\t\t\t\t \t\t\t \t\t\t \t\t\t\t\t\t \t\t\t{\r\n \t\t\t\ttype: \"field\",\r\n \t\t\t\tmode: \"props\",\r\n \t\t\t\tprops: {\r\n \t\t\t\tfieldLabel: \"ORGANIZATION_MEMBER_ROLE_ORGANIZATION_MEMBER_ID\",\r\n \t\t\t\tfieldName: \"organizationMemberId\",\r\n \t\t\t\trequired: true,\r\n \t\t\t\tfieldType: \"text\",\r\n \t\t\t\t},\r\n \t\t\t},\t\t\t\r\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t{\r\n \t\t\t\ttype: \"field\",\r\n \t\t\t\tmode: \"props\",\r\n \t\t\t\tprops: {\r\n \t\t\t\tfieldLabel: \"ORGANIZATION_MEMBER_ROLE_START_DATE\",\r\n \t\t\t\tfieldName: \"startDate\",\r\n \t\t\t\trequired: false,\r\n \t\t\t\tfieldType: \"datetime\",\r\n \t\t\t\t},\r\n \t\t\t},\r\n\t\t\t\t\t \t\t\t\t\t\t \t\t\t{\r\n \t\t\t\ttype: \"field\",\r\n \t\t\t\tmode: \"props\",\r\n \t\t\t\tprops: {\r\n \t\t\t\tfieldLabel: \"ORGANIZATION_MEMBER_ROLE_SYSTEM_APPLICATION_ROLE_ID\",\r\n \t\t\t\tfieldName: \"systemApplicationRoleId\",\r\n \t\t\t\trequired: true,\r\n \t\t\t\tfieldType: \"text\",\r\n \t\t\t\t},\r\n \t\t\t},\t\t\t\r\n\t\t\t\t\t \t\t\t \t\t\t \t\t\t \t\t];\r\n\r\n\treturn (\r\n \t<TemplateGrid\r\n \t\tapiActions={apiActions}\r\n \t\tdata={data}\r\n \t\tsetData={setData}\r\n \t\teditMode={{ editMode: \"row\"}}\r\n \t\tformElements={formElements}\r\n\t\t\tkeyColumnName={\"id\"}\r\n \t\tgridTitle=\"ORGANIZATION_MEMBER_ROLE_PLURAL\"\r\n \t\tgirdIcon=\"table-cells\"\r\n \t\teditAction={{ isEnabled: true, authority: \"ORGANIZATION_MEMBER_ROLE_EDIT\" }}\r\n \t\tdeleteAction={{ isEnabled: true, authority: \"ORGANIZATION_MEMBER_ROLE_DELETE\" }}\r\n \t/>\r\n );\r\n};\r\n\r\nexport default OrganizationMemberRoleGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { toast } from \"react-toastify\";\r\nimport OrganizationMemberGrid from \"./OrganizationMemberGrid\";\r\n\r\nconst PersonGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [selectedPerson, setSelectedPerson] = useState<any>(null);\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/person/all\",\r\n deleteById: \"api/v1/admin/person\",\r\n save: \"api/v1/admin/person\",\r\n findById: \"api/v1/admin/person\",\r\n setData: setData,\r\n });\r\n const {\r\n Window: OrganizationMembersWindow,\r\n setWindowState: setOrganizationMemberWindowState,\r\n } = useWindow({\r\n windowTitle: \"Organizations Membership\",\r\n windowIcon: \"globe\",\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n hidden: true,\r\n fieldLabel: \"Ref Source\",\r\n fieldName: \"refSource\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n hidden: true,\r\n fieldLabel: \"PERSON_EMPLOYEE_NUMBER\",\r\n fieldName: \"refSyncNumber\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"PERSON_EMPLOYEE_AR_NAME\",\r\n fieldName: \"employeeArName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"PERSON_EMPLOYEE_EN_NAME\",\r\n fieldName: \"employeeEnName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"PERSON_EMAIL\",\r\n fieldName: \"email\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"PERSON_MOBILE_NUMBER\",\r\n fieldName: \"mobileNumber\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n fieldLabel: \"PERSON_PASSWORD\",\r\n fieldName: \"password\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"PERSON_USERNAME\",\r\n fieldName: \"username\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"PERSON_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <OrganizationMembersWindow>\r\n <OrganizationMemberGrid selectedPerson={selectedPerson} />\r\n </OrganizationMembersWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalIcon: \"user\",\r\n modalTitle: \"Person Profile\",\r\n modalWidth: 300,\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"PERSON_PLURAL\"\r\n rowActions={[\r\n {\r\n icon: \"globe\",\r\n label: \"User Organizations\",\r\n actionFn: async (data) => {\r\n setSelectedPerson(data);\r\n setOrganizationMemberWindowState(true);\r\n },\r\n },\r\n ]}\r\n girdIcon=\"users\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"PERSON_EDIT\",\r\n preActionValidation: (data) => {\r\n if (\r\n data.refSource != undefined &&\r\n data.refSource != null &&\r\n data.refSource != \"\"\r\n ) {\r\n toast.error(\r\n \"This Person Was synced from other system therefore you can't modify this record\"\r\n );\r\n return false;\r\n }\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"PERSON_DELETE\",\r\n preActionValidation: (data) => {\r\n if (\r\n data.refSource != undefined &&\r\n data.refSource != null &&\r\n data.refSource != \"\"\r\n ) {\r\n toast.error(\r\n \"This Person Was synced from other system therefore you can't modify this record\"\r\n );\r\n return false;\r\n }\r\n return true;\r\n },\r\n }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default PersonGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport SystemApplicationModuleGrid from \"./SystemApplicationModuleGrid\";\r\nimport SystemApplicationAuthorityGrid from \"./SystemApplicationAuthorityGrid\";\r\nimport SystemApplicationRoleGrid from \"./SystemApplicationRoleGrid\";\r\nimport LookupGrid from \"../dev/LookupGrid\";\r\n\r\nconst SystemApplicationGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/systemapplication/all\",\r\n deleteById: \"api/v1/admin/systemapplication\",\r\n save: \"api/v1/admin/systemapplication\",\r\n findById: \"api/v1/admin/systemapplication\",\r\n setData: setData,\r\n });\r\n const {\r\n Window: ApplicationModulesWindow,\r\n setWindowState: setApplicationModulesWindowState,\r\n } = useWindow({\r\n windowTitle: \"System Application Modules\",\r\n windowIcon: \"layer-group\",\r\n });\r\n const {\r\n Window: ApplicationAuthoritiessWindow,\r\n setWindowState: setApplicationAuthoritiesWindowState,\r\n } = useWindow({\r\n windowTitle: \"System Application Authorities\",\r\n windowIcon: \"key\",\r\n });\r\n const {\r\n Window: ApplicationRolesWindow,\r\n setWindowState: setApplicationRolesWindowState,\r\n } = useWindow({\r\n windowTitle: \"System Application Roles\",\r\n windowIcon: \"tag\",\r\n });\r\n const {\r\n Window: ApplicationLookupsWindow,\r\n setWindowState: setApplicationLookupsWindowState,\r\n } = useWindow({\r\n windowTitle: \"System Application Lookups\",\r\n windowIcon: \"list-check\",\r\n });\r\n const [selectedRecord, setSelectedRecord] = useState<any>(null);\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_APPLICATION_CODE\",\r\n fieldName: \"applicationCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_APPLICATION_NAME\",\r\n fieldName: \"applicationName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_APPLICATION_DESCRIPTION\",\r\n fieldName: \"applicationDescription\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <ApplicationModulesWindow>\r\n <SystemApplicationModuleGrid selectedApplication={selectedRecord} />\r\n </ApplicationModulesWindow>\r\n <ApplicationAuthoritiessWindow>\r\n <SystemApplicationAuthorityGrid selectedApplication={selectedRecord} />\r\n </ApplicationAuthoritiessWindow>\r\n <ApplicationRolesWindow>\r\n <SystemApplicationRoleGrid selectedApplication={selectedRecord} />\r\n </ApplicationRolesWindow>\r\n <ApplicationLookupsWindow>\r\n <LookupGrid selectedApplication={selectedRecord} />\r\n </ApplicationLookupsWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n rowActions={[\r\n {\r\n icon: \"layer-group\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setApplicationModulesWindowState(true);\r\n },\r\n label: \"modules\",\r\n },\r\n {\r\n icon: \"key\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setApplicationAuthoritiesWindowState(true);\r\n },\r\n label: \"Authorities\",\r\n },\r\n {\r\n icon: \"tag\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setApplicationRolesWindowState(true);\r\n },\r\n label: \"Roles\",\r\n },\r\n {\r\n icon: \"list-check\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setApplicationLookupsWindowState(true);\r\n },\r\n label: \"Lookups\",\r\n },\r\n ]}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"SYSTEM_APPLICATION_PLURAL\"\r\n girdIcon=\"window-restore\"\r\n editAction={{ isEnabled: true, authority: \"SYSTEM_APPLICATION_EDIT\" }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"SYSTEM_APPLICATION_DELETE\",\r\n }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default SystemApplicationGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport {useApiActions} from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nconst SystemApplicationRoleAuthorityGrid: React.FC = () => {\r\n\tconst { t } = useTranslation();\r\n\tconst [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n \tfindAll: \"api/v1/admin/systemapplicationroleauthority/all\",\r\n \tdeleteById: \"api/v1/admin/systemapplicationroleauthority\",\r\n \tsave: \"api/v1/admin/systemapplicationroleauthority\",\r\n\t\tfindById: \"api/v1/admin/systemapplicationroleauthority\",\r\n \tsetData: setData,\r\n \t});\r\n\t\r\n\tconst formElements: Array<FormElementProps> = [\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n \t\t\t\ttype: \"field\",\r\n \t\t\t\tmode: \"props\",\r\n \t\t\t\tprops: {\r\n \t\t\t\tfieldLabel: \"SYSTEM_APPLICATION_ROLE_AUTHORITY_IS_ACTIVE\",\r\n \t\t\t\tfieldName: \"isActive\",\r\n \t\t\t\trequired: false,\r\n \t\t\t\tfieldType: \"checkbox\",\r\n \t\t\t\t},\r\n \t\t\t},\r\n\t\t\t\t\t \t\t\t \t\t\t \t\t\t \t\t\t \t\t\t \t\t\t\t\t\t \t\t\t{\r\n \t\t\t\ttype: \"field\",\r\n \t\t\t\tmode: \"props\",\r\n \t\t\t\tprops: {\r\n \t\t\t\tfieldLabel: \"SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_AUTHORITY_ID\",\r\n \t\t\t\tfieldName: \"systemApplicationAuthorityId\",\r\n \t\t\t\trequired: true,\r\n \t\t\t\tfieldType: \"text\",\r\n \t\t\t\t},\r\n \t\t\t},\t\t\t\r\n\t\t\t\t\t \t\t\t\t\t\t \t\t\t{\r\n \t\t\t\ttype: \"field\",\r\n \t\t\t\tmode: \"props\",\r\n \t\t\t\tprops: {\r\n \t\t\t\tfieldLabel: \"SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_ROLE_ID\",\r\n \t\t\t\tfieldName: \"systemApplicationRoleId\",\r\n \t\t\t\trequired: true,\r\n \t\t\t\tfieldType: \"text\",\r\n \t\t\t\t},\r\n \t\t\t},\t\t\t\r\n\t\t\t\t\t \t\t\t \t\t\t \t\t\t \t\t];\r\n\r\n\treturn (\r\n \t<TemplateGrid\r\n \t\tapiActions={apiActions}\r\n \t\tdata={data}\r\n \t\tsetData={setData}\r\n \t\teditMode={{ editMode: \"row\"}}\r\n \t\tformElements={formElements}\r\n\t\t\tkeyColumnName={\"id\"}\r\n \t\tgridTitle=\"SYSTEM_APPLICATION_ROLE_AUTHORITY_PLURAL\"\r\n \t\tgirdIcon=\"table-cells\"\r\n \t\teditAction={{ isEnabled: true, authority: \"SYSTEM_APPLICATION_ROLE_AUTHORITY_EDIT\" }}\r\n \t\tdeleteAction={{ isEnabled: true, authority: \"SYSTEM_APPLICATION_ROLE_AUTHORITY_DELETE\" }}\r\n \t/>\r\n );\r\n};\r\n\r\nexport default SystemApplicationRoleAuthorityGrid;\r\n","import { SystemRoute } from \"../types\";\r\nimport BluePrintGrid from \"../../components/administration/dev/BluePrintGrid\";\r\nimport DataQueryGrid from \"../../components/administration/dev/DataQueryGrid\";\r\nimport DatasourceConnectionGrid from \"../../components/administration/dev/DatasourceConnectionGrid\";\r\nimport EntityParameterGrid from \"../../components/administration/dev/EntityParameterGrid\";\r\n\r\nimport LookupGrid from \"../../components/administration/dev/LookupGrid\";\r\n\r\nimport ReportGrid from \"../../components/administration/dev/ReportGrid\";\r\nimport MailTemplateGrid from \"../../components/administration/dev/MailTemplateGrid\";\r\nimport MailSenderConfigGrid from \"../../components/administration/dev/MailSenderConfigGrid\";\r\nimport WorkflowDocumentGrid from \"../../components/administration/dev/WorkflowDocumentGrid\";\r\nimport WidgetGrid from \"../../components/administration/dev/WidgetGrid\";\r\nimport DashboardGrid from \"../../components/administration/dev/DashboardGrid\";\r\nimport DashboardRouteView from \"../../components/templates/visuals/DashboardRouteView\";\r\nimport WorkflowDocumentMailLogGrid from \"../../components/administration/dev/WorkflowDocumentMailLogGrid\";\r\nimport MailNotificationQueueGrid from \"../../components/administration/dev/MailNotificationQueueGrid\";\r\n\r\nexport const devRoutes: Array<SystemRoute> = [\r\n {\r\n path: \"dev/blueprints\",\r\n component: BluePrintGrid,\r\n authority: \"BLUE_PRINT_VIEW\",\r\n },\r\n {\r\n path: \"dev/dataqueries\",\r\n component: DataQueryGrid,\r\n authority: \"DATA_QUERY_VIEW\",\r\n },\r\n {\r\n path: \"dev/datasourceconnections\",\r\n component: DatasourceConnectionGrid,\r\n authority: \"DATASOURCE_CONNECTION_VIEW\",\r\n },\r\n {\r\n path: \"dev/entityparameters\",\r\n component: EntityParameterGrid,\r\n authority: \"ENTITY_PARAMETER_VIEW\",\r\n },\r\n {\r\n path: \"dev/lookups\",\r\n component: LookupGrid,\r\n authority: \"LOOKUP_VIEW\",\r\n },\r\n {\r\n path: \"dev/reports\",\r\n component: ReportGrid,\r\n authority: \"REPORT_VIEW\",\r\n },\r\n {\r\n path: \"dev/mailtemplates\",\r\n component: MailTemplateGrid,\r\n authority: \"MAILTEMPLATE_VIEW\",\r\n },\r\n {\r\n path: \"dev/mailsender/config\",\r\n component: MailSenderConfigGrid,\r\n authority: \"MAILTEMPLATE_VIEW\",\r\n },\r\n {\r\n path: \"dev/workflowdocuments\",\r\n component: WorkflowDocumentGrid,\r\n authority: \"WORKFLOW_DOCUMENT_VIEW\",\r\n },\r\n {\r\n path: \"dev/widgets\",\r\n component: WidgetGrid,\r\n authority: \"WIDGET_VIEW\",\r\n },\r\n {\r\n path: \"dev/dashboards\",\r\n component: DashboardGrid,\r\n authority: \"DASHBOARD_VIEW\",\r\n },\r\n {\r\n path: \"dashboard/:dashboardCode\",\r\n component: DashboardRouteView,\r\n },\r\n {\r\n path: \"dev/workflowdocumentmaillogs\",\r\n component: WorkflowDocumentMailLogGrid,\r\n },\r\n {\r\n path: \"dev/mailnotificationqueues\",\r\n component: MailNotificationQueueGrid,\r\n },\r\n];\r\n\r\n// import { devRoutes } from \"./devRoutes\";\r\n// [...devRoutes]\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\nconst BluePrintGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const SystemDataQueries = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataQueries.data\r\n );\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n commonStoreKey: \"SystemBluePrints\",\r\n deleteById: \"api/v1/dev/blueprint\",\r\n save: \"api/v1/dev/blueprint\",\r\n findById: \"api/v1/dev/blueprint\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"BLUE_PRINT_BLUE_PRINT_CODE\",\r\n fieldName: \"bluePrintCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"BLUE_PRINT_QUERY_ID\",\r\n fieldName: \"queryId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionDisplayField: \"queryName\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"row\", reloadAfterSave: true }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"BLUE_PRINT_PLURAL\")}\r\n girdIcon=\"table-cells\"\r\n editAction={{ isEnabled: true, authority: \"BLUE_PRINT_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"BLUE_PRINT_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default BluePrintGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useSelector } from \"react-redux\";\r\nimport DataQueryParametersForm from \"./DataQueryParametersForm\";\r\nimport DataQueryParameterGrid from \"./DataQueryParameterGrid\";\r\n\r\nconst DataQueryGrid: React.FC = () => {\r\n const [selectedRecord, setSelectedRecord] = useState<any>(null);\r\n const {\r\n Window: DataQueryParameterWindow,\r\n setWindowState: setDataQueryParameterWindow,\r\n } = useWindow({\r\n width: \"50%\",\r\n windowTitle: \"Data query parameters\",\r\n windowIcon: \"p\",\r\n });\r\n const SystemDataSources = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataSources.data\r\n );\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n commonStoreKey: \"SystemDataQueries\",\r\n deleteById: \"api/v1/dev/dataquery\",\r\n save: \"api/v1/dev/dataquery\",\r\n findById: \"api/v1/dev/dataquery\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_QUERY_NAME\",\r\n fieldName: \"queryName\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_USE_SYS_CON\",\r\n fieldName: \"useSysCon\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n if (value) {\r\n formActions.hideField(\"datasourceConId\");\r\n formManager.setValue(\"datasourceConId\", null);\r\n } else {\r\n formActions.showField(\"datasourceConId\");\r\n }\r\n },\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_DATASOURCE_CON_ID\",\r\n fieldName: \"datasourceConId\",\r\n required: false,\r\n options: SystemDataSources,\r\n optionDisplayField: \"connectionName\",\r\n optionValueField: \"id\",\r\n fieldType: \"combobox\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_QUERY_STR\",\r\n fieldName: \"queryStr\",\r\n formProps: { fieldHeight: 400 },\r\n gridProps: {\r\n hidden: true,\r\n },\r\n muiTextFieldProps: {\r\n multiline: true,\r\n rows: 4,\r\n },\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <DataQueryParameterWindow>\r\n <DataQueryParameterGrid selectedRecord={selectedRecord} />\r\n </DataQueryParameterWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n rowActions={[\r\n {\r\n label: \"Query Parameters\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setDataQueryParameterWindow(true);\r\n },\r\n icon: \"p\",\r\n },\r\n ]}\r\n data={data}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalTitle: \"System Query\",\r\n modalWidth: 600,\r\n modalIcon: \"file-code\",\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"DATA_QUERY_PLURAL\")}\r\n girdIcon=\"table-cells\"\r\n editAction={{ isEnabled: true, authority: \"DATA_QUERY_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"DATA_QUERY_DELETE\" }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default DataQueryGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useAxios } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { toast } from \"react-toastify\";\r\n\r\nconst DatasourceConnectionGrid: React.FC = () => {\r\n const { handleGetRequest } = useAxios();\r\n const SystemDataSourceType = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataSourceType.data\r\n );\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n deleteById: \"api/v1/dev/datasourceconnection\",\r\n save: \"api/v1/dev/datasourceconnection\",\r\n findById: \"api/v1/dev/datasourceconnection\",\r\n setData: setData,\r\n commonStoreKey: \"SystemDataSources\",\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ID\",\r\n fieldName: \"id\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATASOURCE_CONNECTION_CONNECTION_NAME\",\r\n fieldName: \"connectionName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATASOURCE_CONNECTION_DATASOURCE_TYPE\",\r\n fieldName: \"datasourceType\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemDataSourceType,\r\n optionValueField: \"value\",\r\n optionDisplayField: \"value\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATASOURCE_CONNECTION_DATASOURCE_URL\",\r\n fieldName: \"datasourceUrl\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATASOURCE_CONNECTION_DATASOURCE_USERNAME\",\r\n fieldName: \"datasourceUsername\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATASOURCE_CONNECTION_DATASOURCE_PASSWORD\",\r\n fieldName: \"datasourcePassword\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATASOURCE_CONNECTION_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalTitle: \"Datasource Connection\",\r\n modalIcon: \"plug\",\r\n modalWidth: 300,\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"DATASOURCE_CONNECTION_PLURAL\")}\r\n girdIcon=\"plug\"\r\n rowActions={[\r\n {\r\n icon: \"plug\",\r\n label: \"test connection\",\r\n actionFn: async (data) => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/dev/datasourceConnection/test\",\r\n showMask: true,\r\n parameters: {\r\n id: data.id,\r\n },\r\n // loadingMessage: \"checking datasource connectivity\",\r\n successCallBkFn: (response: any) => {\r\n toast.success(response.data);\r\n },\r\n });\r\n },\r\n },\r\n ]}\r\n editAction={{ isEnabled: true, authority: \"DATASOURCE_CONNECTION_EDIT\" }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"DATASOURCE_CONNECTION_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default DatasourceConnectionGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { DATE_FORMAT, DATE_TIME_FORMAT } from \"../../../util\";\r\n\r\nconst EntityParameterGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const SystemParameterTypes = useSelector(\r\n (state: any) => state.commonStores.stores.SystemParameterTypes.data\r\n );\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n commonStoreKey: \"SystemEntityParameters\",\r\n deleteById: \"api/v1/dev/entityparameter\",\r\n save: \"api/v1/dev/entityparameter\",\r\n findById: \"api/v1/dev/entityparameter\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_PARAMETER_CODE\",\r\n fieldName: \"parameterCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_PARAMETER_LABEL\",\r\n fieldName: \"parameterLabel\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_PARAMETER_TYPE\",\r\n fieldName: \"parameterType\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemParameterTypes,\r\n optionDisplayField: \"value\",\r\n optionValueField: \"value\",\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n if (value === \"combobox\") {\r\n formManager.setValue(\"parameterValueFormat\", null);\r\n formActions.showField(\"parameterDataQueryId\");\r\n formActions.showField(\"parameterDataset\");\r\n formActions.showField(\"parameterDisplayField\");\r\n formActions.showField(\"parameterValueField\");\r\n formActions.hideField(\"parameterValueFormat\");\r\n } else if (value === \"date\" || value === \"datetime\") {\r\n if (value === \"date\") {\r\n formManager.setValue(\"parameterValueFormat\", DATE_FORMAT);\r\n } else if (value === \"datetime\") {\r\n formManager.setValue(\"parameterValueFormat\", DATE_TIME_FORMAT);\r\n }\r\n formActions.hideField(\"parameterDataQueryId\");\r\n formActions.hideField(\"parameterDataset\");\r\n formActions.hideField(\"parameterDisplayField\");\r\n formActions.hideField(\"parameterValueField\");\r\n formActions.showField(\"parameterValueFormat\");\r\n } else {\r\n formManager.setValue(\"parameterValueFormat\", null);\r\n formActions.hideField(\"parameterDataQueryId\");\r\n formActions.hideField(\"parameterDataset\");\r\n formActions.hideField(\"parameterDisplayField\");\r\n formActions.hideField(\"parameterValueField\");\r\n formActions.hideField(\"parameterValueFormat\");\r\n }\r\n },\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID\",\r\n fieldName: \"parameterDataQueryId\",\r\n hidden: true,\r\n required: false,\r\n fieldType: \"text\",\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n if (value != null && value != \"\") {\r\n formManager.setValue(\"parameterDataset\", null);\r\n formActions.hideField(\"parameterDataset\");\r\n } else {\r\n formActions.showField(\"parameterDataset\");\r\n }\r\n },\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_PARAMETER_DATASET\",\r\n fieldName: \"parameterDataset\",\r\n hidden: true,\r\n required: false,\r\n fieldType: \"text\",\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n if (value != null && value != \"\") {\r\n formManager.setValue(\"parameterDataQueryId\", null);\r\n formActions.hideField(\"parameterDataQueryId\");\r\n } else {\r\n formActions.showField(\"parameterDataQueryId\");\r\n }\r\n },\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD\",\r\n fieldName: \"parameterDisplayField\",\r\n hidden: true,\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_PARAMETER_VALUE_FIELD\",\r\n fieldName: \"parameterValueField\",\r\n hidden: true,\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT\",\r\n fieldName: \"parameterValueFormat\",\r\n required: false,\r\n hidden: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalTitle: \"Entity Parameter\",\r\n modalIcon: \"p\",\r\n modalWidth: 300,\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"ENTITY_PARAMETER_PLURAL\")}\r\n girdIcon=\"p\"\r\n editAction={{ isEnabled: true, authority: \"ENTITY_PARAMETER_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"ENTITY_PARAMETER_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default EntityParameterGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\n\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { toast } from \"react-toastify\";\r\nimport MailRecipientGrid from \"./MailRecipientGrid\";\r\nimport MailBodyGrid from \"./MailBodyGrid\";\r\nimport MailAttachmentGrid from \"./MailAttachmentGrid\";\r\n\r\nconst MailTemplateGrid: React.FC = () => {\r\n const SystemDataQueries = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataQueries.data\r\n );\r\n const [selectedRecord, setSelectedRecord] = useState<any>(null);\r\n const {\r\n Window: MailRecipentsWindow,\r\n setWindowState: setMailRecipientsWindowState,\r\n } = useWindow({ windowTitle: \"Mail Receipents\", windowIcon: \"users\" });\r\n const { Window: MailBodiesWindow, setWindowState: setMailBodiesWindowState } =\r\n useWindow({\r\n windowTitle: \"Mail Bodies\",\r\n windowIcon: { prefix: \"fas\", iconName: \"envelope-open-text\" },\r\n });\r\n const {\r\n Window: MailAttachmentWindow,\r\n setWindowState: setMailAttachmentWindowState,\r\n } = useWindow({\r\n windowTitle: \"Mail Attachment\",\r\n windowIcon: \"paperclip\",\r\n width: 500,\r\n });\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n commonStoreKey: \"SystemMailTemplates\",\r\n deleteById: \"api/v1/dev/mailtemplate\",\r\n save: \"api/v1/dev/mailtemplate\",\r\n findById: \"api/v1/dev/mailtemplate\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_MAIL_TEMPLATE_CODE\",\r\n fieldName: \"mailTemplateCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_MAIL_TEMPLATE_NAME\",\r\n fieldName: \"mailTemplateName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"group\",\r\n props: {\r\n label: \"subject\",\r\n icon: \"users\",\r\n style: { padding: 1, border: \"0.5px dashed black\", margin: 1 },\r\n elements: [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_MAIL_SUBJECT\",\r\n fieldName: \"mailSubject\",\r\n required: true,\r\n fieldType: \"text\",\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID\",\r\n fieldName: \"subjectDataQueryId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionDisplayField: \"queryName\",\r\n optionValueField: \"id\",\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n ],\r\n },\r\n },\r\n\r\n {\r\n type: \"group\",\r\n props: {\r\n label: \"Recipients\",\r\n icon: \"users\",\r\n style: { padding: 1, border: \"0.5px dashed black\", margin: 1 },\r\n elements: [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel:\r\n \"To Recipient Query (must return list of objects with property email)\",\r\n fieldName: \"mailToDataQueryId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionDisplayField: \"queryName\",\r\n optionValueField: \"id\",\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel:\r\n \"CC Recipient Query (must return list of objects with property email)\",\r\n fieldName: \"mailCcDataQueryId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionDisplayField: \"queryName\",\r\n optionValueField: \"id\",\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n ],\r\n },\r\n },\r\n {\r\n type: \"group\",\r\n props: {\r\n label: \"Periodical Configuration\",\r\n icon: \"history\",\r\n style: { padding: 1, border: \"0.5px dashed black\", margin: 1 },\r\n elements: [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_PERIODICAL\",\r\n fieldName: \"periodical\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_PERIOD_TYPE\",\r\n fieldName: \"periodType\",\r\n options: [\r\n { value: \"Year\" },\r\n { value: \"Month\" },\r\n { value: \"Day\" },\r\n { value: \"Hour\" },\r\n { value: \"Minute\" },\r\n { value: \"Second\" },\r\n ],\r\n optionDisplayField: \"value\",\r\n optionValueField: \"value\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_PERIOD_VALUE\",\r\n fieldName: \"periodValue\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_START_SENDING_AT\",\r\n fieldName: \"startSendingAt\",\r\n required: false,\r\n fieldType: \"datetime\",\r\n },\r\n },\r\n ],\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <MailRecipentsWindow>\r\n <MailRecipientGrid\r\n selectedRecord={selectedRecord}\r\n callBkFn={() => {\r\n setMailRecipientsWindowState(false);\r\n }}\r\n />\r\n </MailRecipentsWindow>\r\n <MailBodiesWindow>\r\n <MailBodyGrid\r\n selectedRecord={selectedRecord}\r\n callBkFn={() => {\r\n setMailRecipientsWindowState(false);\r\n }}\r\n />\r\n </MailBodiesWindow>\r\n <MailAttachmentWindow>\r\n <MailAttachmentGrid\r\n selectedRecord={selectedRecord}\r\n callBkFn={() => {\r\n setMailAttachmentWindowState(false);\r\n }}\r\n />\r\n </MailAttachmentWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalWidth: 300,\r\n modalTitle: \"Mail Template\",\r\n modalIcon: \"envelope\",\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"MAIL_TEMPLATE_PLURAL\")}\r\n girdIcon=\"envelope\"\r\n rowActions={[\r\n {\r\n icon: \"users\",\r\n label: \"Recipients\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setMailRecipientsWindowState(true);\r\n },\r\n },\r\n {\r\n icon: { prefix: \"fas\", iconName: \"envelope-open-text\" },\r\n label: \"Mail Body\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setMailBodiesWindowState(true);\r\n },\r\n },\r\n {\r\n icon: \"paperclip\",\r\n label: \"Mail Attachments\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setMailAttachmentWindowState(true);\r\n },\r\n },\r\n ]}\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"MAIL_TEMPLATE_EDIT\",\r\n preActionValidation: (record) => {\r\n if (record?.periodical === true && !record?.periodType) {\r\n toast.error(\r\n \"You must specifiy the period type since this email is periodical\"\r\n );\r\n return false;\r\n }\r\n if (record?.periodical === true && !record?.periodValue) {\r\n toast.error(\r\n \"You must specifiy the period value since this email is periodical\"\r\n );\r\n return false;\r\n }\r\n if (record?.periodical === true && !record?.startSendingAt) {\r\n toast.error(\r\n \"You must specifiy the start sending time since this email is periodical\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"MAIL_TEMPLATE_DELETE\" }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default MailTemplateGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\nimport WorkflowDocumentStatusGrid from \"./WorkflowDocumentStatusGrid\";\r\nimport WorkflowDocumentActionGrid from \"./WorkflowDocumentActionGrid\";\r\n\r\nconst WorkflowDocumentGrid: React.FC = () => {\r\n const [selectedRecord, setSelectedRecord] = useState<any>(null);\r\n const {\r\n Window: WorkflowStatusWindow,\r\n setWindowState: setWorkflowStatusWindowState,\r\n } = useWindow({\r\n windowTitle: \"Document Status\",\r\n windowIcon: \"tag\",\r\n });\r\n const {\r\n Window: WorkflowActionWindow,\r\n setWindowState: setWorkflowActionWindowState,\r\n } = useWindow({\r\n windowTitle: \"Document Action\",\r\n windowIcon: \"stamp\",\r\n });\r\n const SystemOrganizations = useSelector(\r\n (state: any) => state.commonStores.stores.SystemOrganizations.data\r\n );\r\n const SystemReports = useSelector(\r\n (state: any) => state.commonStores.stores.SystemReports.data\r\n );\r\n const SystemDataSources = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataSources.data\r\n );\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/workflowdocument/all\",\r\n deleteById: \"api/v1/dev/workflowdocument\",\r\n save: \"api/v1/dev/workflowdocument\",\r\n findById: \"api/v1/dev/workflowdocument\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_ORG_CODE\",\r\n fieldName: \"orgCode\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemOrganizations,\r\n optionDisplayField: \"organizationCode\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_DOCUMENT_CODE\",\r\n fieldName: \"documentCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Workflow Document En Display Name\",\r\n fieldName: \"documentEnName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Workflow Document Ar Display Name\",\r\n fieldName: \"documentArName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Report To be Attached For The Document ( will be passed a parameter called doc_id)\",\r\n fieldName: \"documentReportId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemReports,\r\n optionDisplayField: \"reportName\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_APPROVAL_ALLOWED\",\r\n fieldName: \"mailApprovalAllowed\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"group\",\r\n props: {\r\n icon: \"bell\",\r\n style: { border: \"1px dashed black\", padding: 1, marginBottom: 1 },\r\n label: \"App Visual Notifications\",\r\n elements: [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_APP_NOTIFICATION_ICON\",\r\n fieldName: \"appNotificationIcon\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_APP_NOTIFICATION_STYLE\",\r\n fieldName: \"appNotificationStyle\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_APP_VIEW_ROUTE\",\r\n fieldName: \"appViewRoute\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n ],\r\n },\r\n },\r\n\r\n {\r\n type: \"group\",\r\n props: {\r\n icon: \"database\",\r\n style: { border: \"1px dashed black\", padding: 1, marginBottom: 1 },\r\n label: \"Related Document Database\",\r\n elements: [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_USE_SYSTEM_CON\",\r\n fieldName: \"useSystemCon\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n if (value) {\r\n formActions.hideField(\"documentConId\");\r\n formManager.setValue(\"documentConId\", null);\r\n } else {\r\n formActions.showField(\"documentConId\");\r\n }\r\n },\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_DOCUMENT_CON_ID\",\r\n fieldName: \"documentConId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataSources,\r\n optionDisplayField: \"connectionName\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_NAME\",\r\n fieldName: \"documentDatabaseName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_TABLE\",\r\n fieldName: \"documentDatabaseTable\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_DOCUMENT_ID_FIELD\",\r\n fieldName: \"documentIdField\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_DOCUMENT_STATUS_FIELD\",\r\n fieldName: \"documentStatusField\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_DOCUMENT_NUMBER_FIELD\",\r\n fieldName: \"documentNumberField\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n ],\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <WorkflowStatusWindow>\r\n <WorkflowDocumentStatusGrid selectedRecord={selectedRecord} />\r\n </WorkflowStatusWindow>\r\n <WorkflowActionWindow>\r\n <WorkflowDocumentActionGrid selectedRecord={selectedRecord} />\r\n </WorkflowActionWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n formLoadCallBk={(formActions, formManager, record) => {\r\n if (record.useSystemCon === true) {\r\n formActions.hideField(\"documentConId\");\r\n } else {\r\n formActions.showField(\"documentConId\");\r\n }\r\n }}\r\n data={data}\r\n setData={setData}\r\n rowActions={[\r\n {\r\n icon: \"tag\",\r\n label: \"Document States\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setWorkflowStatusWindowState(true);\r\n },\r\n },\r\n {\r\n icon: \"stamp\",\r\n label: \"Document Actions\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setWorkflowActionWindowState(true);\r\n },\r\n },\r\n ]}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalIcon: \"chart-diagram\",\r\n modalTitle: t(\"WORKFLOW_DOCUMENT_SINGULAR\"),\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"WORKFLOW_DOCUMENT_PLURAL\")}\r\n girdIcon=\"chart-diagram\"\r\n editAction={{ isEnabled: true, authority: \"WORKFLOW_DOCUMENT_EDIT\" }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_DELETE\",\r\n }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default WorkflowDocumentGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport DashboardWidgetGrid from \"./DashboardWidgetGrid\";\r\nimport { useNavigate } from \"react-router-dom\";\r\n\r\nconst DashboardGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [selectedRecord, setSelectedRecord] = useState<any>(null);\r\n const { Window: WidgetsWindows, setWindowState: setWidgetsWindowState } =\r\n useWindow({\r\n windowTitle: \"Dashboard Widgets\",\r\n windowIcon: \"chart-pie\",\r\n });\r\n const [data, setData] = useState([]);\r\n const navigate = useNavigate();\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/dashboard/all\",\r\n deleteById: \"api/v1/dev/dashboard\",\r\n save: \"api/v1/dev/dashboard\",\r\n findById: \"api/v1/dev/dashboard\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DASHBOARD_DASHBOARD_CODE\",\r\n fieldName: \"dashboardCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DASHBOARD_DASHBOARD_NAME\",\r\n fieldName: \"dashboardName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DASHBOARD_DASHBOARD_TITLE\",\r\n fieldName: \"dashboardTitle\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DASHBOARD_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <WidgetsWindows>\r\n <DashboardWidgetGrid selectedRecord={selectedRecord} />\r\n </WidgetsWindows>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n rowActions={[\r\n {\r\n label: \"Widgets\",\r\n icon: \"chart-pie\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setWidgetsWindowState(true);\r\n },\r\n },\r\n {\r\n label: \"View\",\r\n icon: \"eye\",\r\n actionFn: async (data) => {\r\n navigate(\"/dashboard/\" + data.dashboardCode);\r\n },\r\n },\r\n ]}\r\n gridTitle={t(\"DASHBOARD_PLURAL\")}\r\n girdIcon=\"square-poll-vertical\"\r\n editAction={{ isEnabled: true, authority: \"DASHBOARD_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"DASHBOARD_DELETE\" }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default DashboardGrid;\r\n","import { useParams } from \"react-router-dom\";\r\nimport DashboardViewer from \"./DashboardViewer\";\r\n\r\nconst DashboardRouteView: React.FC = () => {\r\n const { dashboardCode } = useParams();\r\n return <DashboardViewer dashboardCode={dashboardCode} />;\r\n};\r\n\r\nexport default DashboardRouteView;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\n\r\nconst WorkflowDocumentMailLogGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/workflowdocumentmaillog/all\",\r\n deleteById: \"api/v1/dev/workflowdocumentmaillog\",\r\n save: \"api/v1/dev/workflowdocumentmaillog\",\r\n findById: \"api/v1/dev/workflowdocumentmaillog\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_GRAPH_API_MSG_ID\",\r\n fieldName: \"graphApiMsgId\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_IS_PROCESSED\",\r\n fieldName: \"isProcessed\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_ACTION_CODE\",\r\n fieldName: \"mailActionCode\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_BODY_CONTENT\",\r\n fieldName: \"mailBodyContent\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_FROM\",\r\n fieldName: \"mailFrom\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_SUBJECT\",\r\n fieldName: \"mailSubject\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_MESSAGE\",\r\n fieldName: \"processMessage\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_TIME\",\r\n fieldName: \"processTime\",\r\n required: false,\r\n fieldType: \"datetime\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_REF_DOC_ID\",\r\n fieldName: \"refDocId\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_WORKFLOW_DOCUMENT_ID\",\r\n fieldName: \"workflowDocumentId\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_RECEIVE_TIME\",\r\n fieldName: \"mailReceiveTime\",\r\n required: false,\r\n fieldType: \"datetime\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL\")}\r\n girdIcon=\"table-cells\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_MAIL_LOG_EDIT\",\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_MAIL_LOG_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default WorkflowDocumentMailLogGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\nconst MailNotificationQueueGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/mailnotificationqueue/all\",\r\n deleteById: \"api/v1/dev/mailnotificationqueue\",\r\n save: \"api/v1/dev/mailnotificationqueue\",\r\n findById: \"api/v1/dev/mailnotificationqueue\",\r\n setData: setData,\r\n });\r\n const SystemMailTemplates = useSelector(\r\n (state: any) => state.commonStores.stores.SystemMailTemplates.data\r\n );\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID\",\r\n fieldName: \"mailTemplateId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemMailTemplates,\r\n optionDisplayField: \"mailTemplateName\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID\",\r\n fieldName: \"customMailAttachedReportId\",\r\n required: false,\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY\",\r\n fieldName: \"customMailBody\",\r\n required: false,\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT\",\r\n fieldName: \"customMailSubject\",\r\n required: false,\r\n hidden: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_CUSTOM_RECIPIENTS\",\r\n fieldName: \"customRecipients\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_IS_NOTIFIED\",\r\n fieldName: \"isNotified\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_NOTIFICATION_TIME\",\r\n fieldName: \"notificationTime\",\r\n required: false,\r\n fieldType: \"datetime\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_NOTIFICATION_MESSAGE\",\r\n fieldName: \"notificationMessage\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_MAIL_PARAMETERS\",\r\n fieldName: \"mailParameters\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n disableDefaultAction={true}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"none\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"MAIL_NOTIFICATION_QUEUE_PLURAL\")}\r\n girdIcon=\"table-cells\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"MAIL_NOTIFICATION_QUEUE_EDIT\",\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"MAIL_NOTIFICATION_QUEUE_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default MailNotificationQueueGrid;\r\n","import { Box } from \"@mui/material\";\r\nimport { useSession } from \"../hooks\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\n\r\ntype RouteWrapperProps = {\r\n authority?: string;\r\n children?: React.ReactNode;\r\n};\r\nconst RouteWrapper: React.FC<RouteWrapperProps> = (props) => {\r\n const { isUserAuthorized } = useSession();\r\n if (props?.authority && !isUserAuthorized(props.authority)) {\r\n return (\r\n <Box\r\n sx={{\r\n flex: 1,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n color: \"red\",\r\n }}\r\n >\r\n <h2>\r\n <FontAwesomeIcon\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n icon=\"cancel\"\r\n />\r\n You aren't authorized to access this page\r\n </h2>\r\n </Box>\r\n );\r\n }\r\n return <>{props.children}</>;\r\n};\r\n\r\nexport default RouteWrapper;\r\n","import { Box } from \"@mui/material\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { CacheProvider } from \"@emotion/react\";\r\nimport { Route, Routes } from \"react-router-dom\";\r\nimport { cacheLtr, cacheRtl } from \"../components/common/LayoutHandlers\";\r\nimport { SYSTEM_ROUTES } from \"../routes\";\r\nimport { SystemRoute } from \"../routes/types\";\r\nimport RouteWrapper from \"./RouteWrapper\";\r\nimport { useAxios, useLoadingMask, useSession } from \"../hooks\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { setStoreData } from \"../redux/features/common/CommonStoreSlice\";\r\n\r\nconst MainContent: React.FC = () => {\r\n const AppLayoutState = useSelector((state: any) => state.AppLayout);\r\n const AppInfo = useSelector((state: any) => state.AppInfo.value);\r\n const businessRoutes = useSelector(\r\n (state: any) => state.AppInfo.value.businessRoutes\r\n );\r\n const dispatch = useDispatch();\r\n const { show, hide } = useLoadingMask();\r\n const commonStores = useSelector((state: any) => state.commonStores);\r\n const [isAutoLoadLoaded, setAutoLoadLoaded] = useState<boolean>(false);\r\n const { isUserAuthorized } = useSession();\r\n const { handleGetRequest } = useAxios();\r\n const loadCommonStores = async () => {\r\n show(\"Loading ... please wait\");\r\n const stores = commonStores.stores;\r\n const storeKeys = commonStores.storeKeys;\r\n for (let storeKey of storeKeys) {\r\n if (\r\n (stores[storeKey]?.authority === undefined ||\r\n stores[storeKey]?.authority === null ||\r\n isUserAuthorized(stores[storeKey]?.authority)) &&\r\n stores[storeKey]?.url != \"\" &&\r\n stores[storeKey].autoLoad === true\r\n ) {\r\n await handleGetRequest({\r\n endPointURI: stores[storeKey].url,\r\n showMask: false,\r\n successCallBkFn: (response) => {\r\n dispatch(setStoreData({ storeKey, data: response.data }));\r\n },\r\n failureCallBkFn: () => {\r\n dispatch(setStoreData({ storeKey, data: [] }));\r\n },\r\n });\r\n }\r\n }\r\n hide();\r\n };\r\n\r\n useEffect(() => {\r\n if (commonStores?.storeKeys) {\r\n loadCommonStores();\r\n }\r\n }, [commonStores.storeKeys]);\r\n return (\r\n <CacheProvider\r\n value={AppLayoutState.appDirection === \"ltr\" ? cacheLtr : cacheRtl}\r\n >\r\n {/* {isAutoLoadLoaded ? ( */}\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n // alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n flex: 1,\r\n overflow: \"hidden\",\r\n padding: 3,\r\n }}\r\n >\r\n <Routes>\r\n {AppInfo.enableAdministrationModule\r\n ? SYSTEM_ROUTES.map((route: SystemRoute, index) => {\r\n return (\r\n <Route\r\n key={\"adm\" + index}\r\n path={route.path}\r\n element={\r\n <RouteWrapper authority={route.authority}>\r\n <route.component />\r\n </RouteWrapper>\r\n }\r\n />\r\n );\r\n })\r\n : null}\r\n {businessRoutes.map((route: SystemRoute, index) => {\r\n return (\r\n <Route\r\n key={\"bs\" + index}\r\n path={route.path}\r\n element={\r\n <RouteWrapper authority={route.authority}>\r\n <route.component />\r\n </RouteWrapper>\r\n }\r\n />\r\n );\r\n })}\r\n </Routes>\r\n </Box>\r\n {/* ) : (\r\n <></>\r\n )} */}\r\n </CacheProvider>\r\n );\r\n};\r\n\r\nexport default MainContent;\r\n","import { styled } from \"@mui/material/styles\";\r\nimport { grey } from \"@mui/material/colors\";\r\nimport SwipeableDrawer from \"@mui/material/SwipeableDrawer\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { Box, Typography } from \"@mui/material\";\r\nimport { AppLayoutActions } from \"../redux/features/common/AppLayoutSlice\";\r\nimport NavigationTree from \"./NavigationTree\";\r\nimport { setSideBarState } from \"../redux/features/common/SideBarSlice\";\r\n\r\nconst drawerBleeding = 56;\r\n\r\ninterface Props {\r\n /**\r\n * Injected by the documentation to work in an iframe.\r\n * You won't need it on your project.\r\n */\r\n window?: () => Window;\r\n}\r\n\r\nconst Puller = styled(\"div\")(({ theme }) => ({\r\n width: 30,\r\n height: 6,\r\n margin: 10,\r\n backgroundColor: grey[300],\r\n borderRadius: 3,\r\n // position: \"absolute\",\r\n top: 8,\r\n // left: \"calc(50% - 15px)\",\r\n ...theme.applyStyles(\"dark\", {\r\n backgroundColor: grey[900],\r\n }),\r\n}));\r\n\r\nexport default function MobileDrawer(props: Props) {\r\n const { window } = props;\r\n const SideBarState = useSelector((state: any) => state.SideBar);\r\n const AppInfo = useSelector((state: any) => state.AppInfo.value);\r\n const dispatch = useDispatch();\r\n const toggleDrawer = (newState: boolean) => {\r\n dispatch(setSideBarState(newState));\r\n };\r\n // This is used only for the example\r\n const container =\r\n window !== undefined ? () => window().document.body : undefined;\r\n\r\n return (\r\n <SwipeableDrawer\r\n container={container}\r\n anchor=\"bottom\"\r\n open={SideBarState.isOpened}\r\n onClose={() => {\r\n toggleDrawer(false);\r\n }}\r\n onOpen={() => {\r\n toggleDrawer(true);\r\n }}\r\n swipeAreaWidth={drawerBleeding}\r\n disableSwipeToOpen={false}\r\n ModalProps={{\r\n keepMounted: true,\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n height: \"100%\",\r\n overflow: \"hidden\",\r\n }}\r\n >\r\n <Puller />\r\n <Box\r\n sx={{\r\n flexGrow: 1,\r\n display: \"flex\",\r\n justifyContent: \"center\",\r\n width: \"99%\",\r\n overflowY: \"auto\",\r\n }}\r\n >\r\n <NavigationTree />\r\n </Box>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"space-around\",\r\n marginTop: 1,\r\n width: \"100%\",\r\n }}\r\n >\r\n <Typography sx={{ fontSize: 12 }} color=\"textDisabled\">\r\n {AppInfo.appName}\r\n </Typography>\r\n <Typography sx={{ fontSize: 12 }} color=\"textDisabled\">\r\n V.{AppInfo.appVersion}\r\n </Typography>\r\n </Box>\r\n </Box>\r\n </SwipeableDrawer>\r\n );\r\n}\r\n","import { useSelector } from \"react-redux\";\r\nimport { Backdrop, CircularProgress } from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nconst LoadingMask: React.FC = () => {\r\n const { t } = useTranslation();\r\n const loadingMask = useSelector((state: any) => state.loadingMask.value);\r\n const AppLayoutState = useSelector((state: any) => state.AppLayout);\r\n\r\n return (\r\n <Backdrop\r\n dir={AppLayoutState.appDirection}\r\n sx={{ color: \"#fff\", zIndex: (theme) => theme.zIndex.drawer + 1 }}\r\n open={loadingMask.isOpened}\r\n >\r\n <CircularProgress color=\"inherit\" />\r\n <div style={{ marginRight: 10, marginLeft: 10 }}>\r\n {loadingMask?.message || t(\"DEFAULT_LOADING_MESSAGE\")}\r\n </div>\r\n </Backdrop>\r\n );\r\n};\r\n\r\nexport default LoadingMask;\r\n","import {\r\n Box,\r\n Button,\r\n CircularProgress,\r\n createTheme,\r\n Paper,\r\n TextField,\r\n Typography,\r\n} from \"@mui/material\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { ThemeProvider } from \"@emotion/react\";\r\nimport { useEffect, useState } from \"react\";\r\nimport axios from \"axios\";\r\nimport { toast } from \"react-toastify\";\r\nimport { UserSessionActions } from \"../../redux/features/common/UserSessionSlice\";\r\nimport {\r\n DARK_THEME_INITIAL_MAIN_COLOR,\r\n DARK_THEME_INITIAL_SECANDARY_COLOR,\r\n} from \"../../util\";\r\n\r\nconst Login: React.FC = () => {\r\n const appInfo = useSelector((state: any) => state.AppInfo.value);\r\n const [username, setUsername] = useState(\"\");\r\n const [password, setPassword] = useState(\"\");\r\n const [isLoginInProcess, setIsLoginInProcess] = useState(false);\r\n const UserSessionState = useSelector((state: any) => state.UserSession.value);\r\n const dispatch = useDispatch();\r\n const handleLogin = async () => {\r\n if (username == null || username == \"\") {\r\n toast.error(\"username is required to proceed\");\r\n return;\r\n }\r\n if (password == null || password == \"\") {\r\n toast.error(\"password is required to proceed\");\r\n return;\r\n }\r\n setIsLoginInProcess(true);\r\n let response: any = null;\r\n try {\r\n response = await axios.post(\r\n `${appInfo.apiBaseUrl}/api/auth/login`,\r\n {\r\n username,\r\n password,\r\n },\r\n {\r\n withCredentials: true,\r\n }\r\n );\r\n if (response.data != null && response.data !== \"\") {\r\n setIsLoginInProcess(false);\r\n const UserSession = {\r\n ...response.data,\r\n isAuthenticated: true,\r\n };\r\n dispatch(UserSessionActions.setAuthenticated(UserSession));\r\n }\r\n } catch (e: any) {\r\n setIsLoginInProcess(false);\r\n toast.error(\r\n e?.response?.data ||\r\n \"failed to authenticate, contact your administrator\"\r\n );\r\n }\r\n };\r\n const userSession = useSelector((state: any) => state.UserSession.value);\r\n const loginTheme = createTheme({\r\n components: {\r\n MuiCssBaseline: {\r\n styleOverrides: `\r\n /* Custom Scrollbar */\r\n * {\r\n scrollbar-width: thin;\r\n scrollbar-color: ${\r\n appInfo.appTheme?.dark?.primaryColor ||\r\n DARK_THEME_INITIAL_MAIN_COLOR\r\n } #121212;\r\n }\r\n \r\n /* Webkit Browsers */\r\n *::-webkit-scrollbar {\r\n width: 12px;\r\n height: 10px;\r\n } \r\n `,\r\n },\r\n },\r\n palette: {\r\n mode: \"dark\",\r\n primary: {\r\n main:\r\n appInfo.appTheme?.dark?.primaryColor || DARK_THEME_INITIAL_MAIN_COLOR,\r\n },\r\n secondary: {\r\n main:\r\n appInfo.appTheme?.dark?.secondaryColor ||\r\n DARK_THEME_INITIAL_SECANDARY_COLOR,\r\n },\r\n },\r\n });\r\n const checkUserSession = async () => {\r\n if (appInfo?.apiBaseUrl) {\r\n if (userSession.isAuthenticated == null) {\r\n try {\r\n let response = await axios.get(\r\n `${appInfo.apiBaseUrl}/api/auth/userInfo`,\r\n {\r\n withCredentials: true,\r\n }\r\n );\r\n if (response != null && response.data != null) {\r\n const UserSession = {\r\n ...response.data,\r\n isAuthenticated: true,\r\n };\r\n dispatch(UserSessionActions.setAuthenticated(UserSession));\r\n } else {\r\n dispatch(UserSessionActions.setUnAuthenticated());\r\n }\r\n } catch (error) {\r\n dispatch(UserSessionActions.setUnAuthenticated());\r\n }\r\n }\r\n }\r\n };\r\n useEffect(() => {\r\n checkUserSession();\r\n }, [appInfo]);\r\n return (\r\n <ThemeProvider theme={loginTheme}>\r\n <Paper\r\n sx={{\r\n display: \"flex\",\r\n height: \"100vh\",\r\n width: \"100%\",\r\n borderRadius: 0,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n {UserSessionState.isAuthenticated == false ? (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <img src={appInfo?.appLogo} width={150} height={150} />\r\n <Typography sx={{ m: 1 }} variant=\"h4\" color=\"textSecondary\">\r\n {appInfo?.appName}\r\n </Typography>\r\n <Typography\r\n sx={{\r\n paddingRight: 1,\r\n width: \"100%\",\r\n textAlign: \"right\",\r\n fontSize: 10,\r\n }}\r\n variant=\"caption\"\r\n color=\"textSecondary\"\r\n >\r\n V.{appInfo.appVersion}\r\n </Typography>\r\n <TextField\r\n label=\"username\"\r\n sx={{ width: 300, m: 1 }}\r\n value={username}\r\n onChange={(event) => {\r\n setUsername(event.target.value);\r\n }}\r\n onKeyDown={(event) => {\r\n if (event.key === \"Enter\") {\r\n handleLogin();\r\n }\r\n }}\r\n />\r\n <TextField\r\n label=\"password\"\r\n sx={{ width: 300, m: 1 }}\r\n value={password}\r\n type=\"password\"\r\n onChange={(event) => {\r\n setPassword(event.target.value);\r\n }}\r\n onKeyDown={(event) => {\r\n if (event.key === \"Enter\") {\r\n handleLogin();\r\n }\r\n }}\r\n />\r\n <Button\r\n loading={isLoginInProcess}\r\n onClick={handleLogin}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n sx={{ m: 1 }}\r\n >\r\n login\r\n </Button>\r\n </Box>\r\n ) : (\r\n <>\r\n <CircularProgress sx={{ marginRight: 1 }} />\r\n <div>You will be redirected shortly ... please wait</div>\r\n </>\r\n )}\r\n </Paper>\r\n </ThemeProvider>\r\n );\r\n};\r\n\r\nexport default Login;\r\n","import { styled, useTheme } from \"@mui/material/styles\";\r\nimport CssBaseline from \"@mui/material/CssBaseline\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport TopBar from \"./TopBar\";\r\nimport { DrawerHeader } from \"./DrawerHeader\";\r\nimport SideBar from \"./SideBar\";\r\nimport MainContent from \"./MainContent\";\r\nimport { BrowserRouter } from \"react-router-dom\";\r\nimport MobileDrawer from \"./MobileDrawer\";\r\nimport { ToastContainer } from \"react-toastify\";\r\nimport { useEffect, useState } from \"react\";\r\nimport useLoadingMask from \"../hooks/useLoadingMask\";\r\nimport { useIsMobile } from \"../hooks/UseMobile\";\r\nimport useSession from \"../hooks/UseSession\";\r\nimport useAxios from \"../hooks/useAxios\";\r\nimport { DRAWER_WIDTH } from \"../redux/features/common/AppLayoutSlice\";\r\nimport { UserSessionProps } from \"../redux/features/common/UserSessionSlice\";\r\nimport LoadingMask from \"../components/common/LoadingMask\";\r\nimport Login from \"../components/common/Login\";\r\nimport { setStoreData } from \"../redux/features/common/CommonStoreSlice\";\r\n\r\nconst Main = styled(\"main\", {\r\n shouldForwardProp: (prop) => prop !== \"open\",\r\n})<{\r\n open?: boolean;\r\n}>(({ theme: any, open }) => {\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const theme = useTheme();\r\n const isMobile = useIsMobile();\r\n\r\n return {\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n overflow: \"hidden\",\r\n flexGrow: 1,\r\n width: !isMobile && open ? `calc(100% - ${DRAWER_WIDTH}px)` : \"100%\",\r\n direction: AppLayout.appDirection,\r\n justifyContent: \"flex-start\",\r\n transition:\r\n open === true\r\n ? theme.transitions.create([\"margin\", \"width\"], {\r\n easing: theme.transitions.easing.easeOut,\r\n duration: theme.transitions.duration.enteringScreen,\r\n })\r\n : theme.transitions.create([\"margin\", \"width\"], {\r\n easing: theme.transitions.easing.sharp,\r\n duration: theme.transitions.duration.leavingScreen,\r\n }),\r\n marginLeft:\r\n !isMobile && AppLayout.appDirection === \"ltr\" && open === true\r\n ? DRAWER_WIDTH + \"px\"\r\n : 0,\r\n marginRight:\r\n !isMobile && AppLayout.appDirection === \"rtl\" && open === true\r\n ? DRAWER_WIDTH + \"px\"\r\n : 0,\r\n };\r\n});\r\n\r\nexport default function Layout() {\r\n const SideBarState = useSelector((state: any) => state.SideBar);\r\n const isMobile = useIsMobile();\r\n const UserSession: UserSessionProps = useSelector(\r\n (state: any) => state.UserSession\r\n );\r\n return (\r\n <BrowserRouter>\r\n <ToastContainer draggable={true} position=\"bottom-center\" />\r\n <LoadingMask />\r\n {UserSession.value.isAuthenticated === true ? (\r\n <Main open={SideBarState.isOpened}>\r\n <CssBaseline />\r\n <TopBar />\r\n {!isMobile ? <SideBar /> : null}\r\n {isMobile ? <MobileDrawer /> : null}\r\n <DrawerHeader />\r\n <MainContent />\r\n </Main>\r\n ) : (\r\n <Login />\r\n )}\r\n </BrowserRouter>\r\n );\r\n}\r\n","import { createSlice, Reducer } from \"@reduxjs/toolkit\";\r\nimport { SystemRoute } from \"../../../routes/types\";\r\nimport { ExtendedTreeItemProps } from \"../../../navigationItems\";\r\nimport { StoreMetaData } from \"./CommonStoreSlice\";\r\n\r\nexport type AppInfo = {\r\n documentTitle: string | null;\r\n apiBaseUrl: string | null;\r\n appName: string | null;\r\n appVersion: string | null;\r\n appLogo: any | null;\r\n businessRoutes: Array<SystemRoute>;\r\n businessNavigationItems: Array<ExtendedTreeItemProps>;\r\n businessReduxReducers: { [key: string]: Reducer<any> };\r\n businessCommonStoresMetaData: { [key: string]: StoreMetaData };\r\n muiPremiumKey: string;\r\n enableAdministrationModule: boolean;\r\n appTheme?: {\r\n light: { primaryColor: string; secondaryColor: string };\r\n dark: { primaryColor: string; secondaryColor: string };\r\n };\r\n};\r\n\r\nexport type AppInfoProp = {\r\n value: AppInfo;\r\n};\r\n\r\nconst initialState: AppInfoProp = {\r\n value: {\r\n documentTitle: null,\r\n apiBaseUrl: null,\r\n appName: null,\r\n appVersion: null,\r\n appLogo: null,\r\n muiPremiumKey: null,\r\n enableAdministrationModule: false,\r\n businessRoutes: [],\r\n businessNavigationItems: [],\r\n businessReduxReducers: {},\r\n businessCommonStoresMetaData: {},\r\n appTheme: {\r\n light: { primaryColor: \"#37505C\", secondaryColor: \"#ff6d00\" },\r\n dark: { primaryColor: \"#ea690e\", secondaryColor: \"#74776B\" },\r\n },\r\n },\r\n};\r\n\r\nconst AppInfoSlice = createSlice({\r\n name: \"AppInfo\",\r\n initialState: initialState,\r\n reducers: {\r\n setAppInfo: (state, action) => {\r\n state.value = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const AppInfoActions = AppInfoSlice.actions;\r\nexport default AppInfoSlice.reducer;\r\n","import { CommonStores } from \"../common/CommonStoreSlice\";\r\n\r\nexport const ADMINISTRATION_STORES: CommonStores = {\r\n SystemDataSourceType: {\r\n autoLoad: false,\r\n data: [{ value: \"Mysql\" }, { value: \"Oracle\" }, { value: \"DB2\" }],\r\n url: \"\",\r\n },\r\n SystemParameterTypes: {\r\n autoLoad: false,\r\n url: \"\",\r\n data: [\r\n { value: \"text\" },\r\n { value: \"number\" },\r\n { value: \"date\" },\r\n { value: \"datetime\" },\r\n { value: \"combobox\" },\r\n { value: \"checkbox\" },\r\n { value: \"html\" },\r\n { value: \"lookup\" },\r\n ],\r\n },\r\n SystemReportTypes: {\r\n autoLoad: false,\r\n url: \"\",\r\n data: [{ value: \"Excel\" }, { value: \"Jasper\" }, { value: \"Blueprint\" }],\r\n },\r\n SystemWidgetTypes: {\r\n autoLoad: false,\r\n url: \"\",\r\n data: [\r\n { name: \"LineChart\" },\r\n { name: \"ColumnChart\" },\r\n { name: \"PieChart\" },\r\n { name: \"Card\" },\r\n { name: \"CircularProgress\" },\r\n { name: \"LinearProgress\" },\r\n ],\r\n },\r\n SystemMailRecipientTypes: {\r\n autoLoad: false,\r\n url: \"\",\r\n data: [{ name: \"To\" }, { name: \"CC\" }],\r\n },\r\n SystemOrganizations: {\r\n autoLoad: true,\r\n url: \"api/v1/admin/organization/all\",\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n data: [],\r\n },\r\n SystemOrganizationRanks: {\r\n autoLoad: true,\r\n url: \"api/v1/admin/organization/ranks/all\",\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n data: [],\r\n },\r\n SystemOrganizationUnits: {\r\n autoLoad: true,\r\n url: \"api/v1/admin/organization/units/all\",\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n data: [],\r\n },\r\n SystemDataSources: {\r\n autoLoad: true,\r\n data: [],\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n url: \"api/v1/dev/datasourceconnection/all\",\r\n },\r\n SystemDataQueries: {\r\n autoLoad: true,\r\n data: [],\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n url: \"api/v1/dev/dataquery/all\",\r\n },\r\n SystemBluePrints: {\r\n autoLoad: true,\r\n data: [],\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n url: \"api/v1/dev/blueprint/all\",\r\n },\r\n SystemReports: {\r\n autoLoad: true,\r\n data: [],\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n url: \"api/v1/dev/report/all\",\r\n },\r\n SystemEntityParameters: {\r\n autoLoad: true,\r\n data: [],\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n url: \"api/v1/dev/entityparameter/all\",\r\n },\r\n SystemMailTemplates: {\r\n autoLoad: true,\r\n data: [],\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n url: \"api/v1/dev/mailtemplate/all\",\r\n },\r\n SystemWidgets: {\r\n autoLoad: true,\r\n data: [],\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n url: \"api/v1/dev/widget/all\",\r\n },\r\n};\r\n","import { useDispatch, useSelector } from \"react-redux\";\r\nimport { createTheme, ThemeOptions } from \"@mui/material\";\r\nimport { ThemeProvider } from \"@emotion/react\";\r\nimport React, { useEffect } from \"react\";\r\nimport Layout from \"../layout/Layout\";\r\nimport { AppInfo, AppInfoActions } from \"../redux/features/common/AppInfoSlice\";\r\nimport { LicenseInfo } from \"@mui/x-license\";\r\nimport {\r\n DARK_THEME_INITIAL_MAIN_COLOR,\r\n DARK_THEME_INITIAL_SECANDARY_COLOR,\r\n LIGHT_THEME_INITIAL_MAIN_COLOR,\r\n LIGHT_THEME_INITIAL_SECANDARY_COLOR,\r\n} from \"../util\";\r\nimport { setStoresMetaData } from \"../redux/features/common/CommonStoreSlice\";\r\nimport { ADMINISTRATION_STORES } from \"../redux/features/administration/AdministrationStoresMetaData\";\r\n\r\nconst App: React.FC<AppInfo> = (props: AppInfo) => {\r\n const dispatch = useDispatch();\r\n LicenseInfo.setLicenseKey(props.muiPremiumKey);\r\n const LightThemeOptions: ThemeOptions = {\r\n components: {\r\n MuiCssBaseline: {\r\n styleOverrides: `\r\n /* Custom Scrollbar */\r\n * {\r\n scrollbar-width: thin;\r\n scrollbar-color: ${\r\n props.appTheme?.light?.primaryColor ||\r\n LIGHT_THEME_INITIAL_MAIN_COLOR\r\n } #ffffff;\r\n }\r\n \r\n /* Webkit Browsers */\r\n *::-webkit-scrollbar {\r\n width: 12px;\r\n height: 10px;\r\n } \r\n `,\r\n },\r\n },\r\n palette: {\r\n mode: \"light\",\r\n primary: {\r\n main:\r\n props.appTheme?.light?.primaryColor || LIGHT_THEME_INITIAL_MAIN_COLOR,\r\n },\r\n secondary: {\r\n main:\r\n props.appTheme?.light?.secondaryColor ||\r\n LIGHT_THEME_INITIAL_SECANDARY_COLOR,\r\n },\r\n background: {\r\n default: \"#f5f5f5\",\r\n paper: \"#f5f5f5\",\r\n },\r\n },\r\n };\r\n const DarkThemeOptions: ThemeOptions = {\r\n components: {\r\n MuiCssBaseline: {\r\n styleOverrides: `\r\n /* Custom Scrollbar */\r\n * {\r\n scrollbar-width: thin;\r\n scrollbar-color: ${\r\n props.appTheme?.dark?.primaryColor || DARK_THEME_INITIAL_MAIN_COLOR\r\n } #121212;\r\n }\r\n \r\n /* Webkit Browsers */\r\n *::-webkit-scrollbar {\r\n width: 12px;\r\n height: 10px;\r\n } \r\n `,\r\n },\r\n },\r\n palette: {\r\n mode: \"dark\",\r\n primary: {\r\n main:\r\n props.appTheme?.dark?.primaryColor || DARK_THEME_INITIAL_MAIN_COLOR,\r\n },\r\n secondary: {\r\n main:\r\n props.appTheme?.dark?.secondaryColor ||\r\n DARK_THEME_INITIAL_SECANDARY_COLOR,\r\n },\r\n },\r\n };\r\n\r\n let commonStores = {};\r\n if (props.enableAdministrationModule) {\r\n commonStores = { ...ADMINISTRATION_STORES };\r\n }\r\n if (props.businessCommonStoresMetaData) {\r\n commonStores = {\r\n ...commonStores,\r\n ...props.businessCommonStoresMetaData,\r\n };\r\n }\r\n dispatch(setStoresMetaData(commonStores));\r\n const AppLayoutState = useSelector((state: any) => state.AppLayout);\r\n let themeOptions = { ...LightThemeOptions };\r\n if (AppLayoutState.themeMode === \"dark\") {\r\n themeOptions = { ...DarkThemeOptions };\r\n }\r\n const theme = createTheme({\r\n direction: AppLayoutState.appDirection,\r\n ...themeOptions,\r\n });\r\n useEffect(() => {\r\n document.title = props.documentTitle;\r\n dispatch(AppInfoActions.setAppInfo(props));\r\n }, []);\r\n return (\r\n <ThemeProvider theme={theme}>\r\n <Layout />\r\n </ThemeProvider>\r\n );\r\n};\r\n\r\nexport default App;\r\n","import { Provider } from \"react-redux\";\r\nimport { library } from \"@fortawesome/fontawesome-svg-core\";\r\nimport { fab } from \"@fortawesome/free-brands-svg-icons\";\r\nimport { far } from \"@fortawesome/free-regular-svg-icons\";\r\nimport { fas } from \"@fortawesome/free-solid-svg-icons\";\r\nimport \"../styles/index.css\";\r\nimport \"react-toastify/dist/ReactToastify.css\";\r\nimport App from \"./App\";\r\nimport { AppInfo } from \"../redux/features/common/AppInfoSlice\";\r\nimport AppLayoutReducer from \"../redux/features/common/AppLayoutSlice\";\r\nimport UserSessionReducer from \"../redux/features/common/UserSessionSlice\";\r\nimport LoadingMaskReducer from \"../redux/features/common/LoadingMaskSlice\";\r\nimport CommonStoreReducer from \"../redux/features/common/CommonStoreSlice\";\r\nimport AppInfoReducer from \"../redux/features/common/AppInfoSlice\";\r\nimport SideBarReducer from \"../redux/features/common/SideBarSlice\";\r\nimport { configureStore } from \"@reduxjs/toolkit\";\r\n\r\nlibrary.add(fab);\r\nlibrary.add(far);\r\nlibrary.add(fas);\r\n\r\nexport const BaseApp: React.FC<AppInfo> = (props) => {\r\n const systemReducers = {\r\n AppLayout: AppLayoutReducer,\r\n UserSession: UserSessionReducer,\r\n loadingMask: LoadingMaskReducer,\r\n commonStores: CommonStoreReducer,\r\n SideBar: SideBarReducer,\r\n AppInfo: AppInfoReducer,\r\n ...props.businessReduxReducers,\r\n };\r\n const store = configureStore({\r\n reducer: systemReducers,\r\n });\r\n\r\n return (\r\n <Provider store={store}>\r\n <App {...props} />\r\n </Provider>\r\n );\r\n};\r\n"],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","useIsMobile","breakpoint","isMobile","setIsMobile","useState","window","innerWidth","useEffect","handleResize","addEventListener","removeEventListener","DRAWER_WIDTH","AppLayoutSlice","createSlice","name","themeMode","localStorage","getItem","appDirection","reducers","setThemeMode","state","action","payload","setAppDirection","AppLayoutActions","actions","AppLayoutReducer","reducer","loadingMaskSlice","value","isOpened","message","showLoadingMask","hideLoadingMask","LoadingMaskReducer","useLoadingMask","dispatch","useDispatch","show","hide","useAxios","mask","apiBaseUrl","useSelector","AppInfo","axiosInstance","axios","create","baseURL","timeout","withCredentials","defaults","interceptors","response","use","error","status","toast","autoClose","data","Blob","text","then","handleGetRequest","async","props","endPointURI","parameters","undefined","showMask","loadingMessage","get","params","successCallBkFn","failureCallBkFn","handlePostRequest","post","handleDeleteRequest","delete","HandleDownloadHTTPPostPDF","responseType","UserSessionSlice","isAuthenticated","authorities","setAuthenticated","setUnAuthenticated","UserSessionActions","UserSessionReducer","resources","en","translation","common","AdminLocalsEn","ar","adminLocalsAr","i18n","initReactI18next","init","lng","fallbackLng","useConfirmationWindow","open","setOpen","t","useTranslation","ConfirmationWindow","_jsxs","Dialog","_jsx","DialogTitle","title","DialogContent","children","DialogContentText","body","DialogActions","Button","variant","color","onClick","onConfirmationCallBk","autoFocus","useSession","UserSession","UserInfo","isUserAuthorized","authorityCode","grantedAuthority","authority","useWindow","windowState","setWindowState","Window","windowProps","Modal","sx","zIndex","theme","drawer","onClose","onCloseCallBack","Box","position","top","left","maxHeight","transform","height","width","minWidth","minHeight","overflow","bgcolor","display","flexDirection","alignItems","justifyContent","AppBar","Toolbar","FontAwesomeIcon","icon","windowIcon","marginRight","Typography","component","windowTitle","flexGrow","IconButton","Paper","padding","commonStoreSlice","initialState","stores","storeKeys","isAutoLoadLoaded","setStoresMetaData","Object","keys","setStoreData","storeKey","setAutoLoadLoaded","CommonStoreReducer","useApiActions","apiActionsProps","CommonStores","commonStores","session","reloadData","commonStoreKey","url","setData","findAll","loadRecordById","recordId","record","findById","findByIdParamName","saveRecord","savedRecord","save","deleteRecordById","result","deleteById","deleteByIdParamName","TemplateTextField","TextField","slotProps","inputLabel","shrink","label","_Fragment","not","a","b","filter","indexOf","intersection","TransferList","valueField","displayField","options","selectedOptions","setSelection","checked","setChecked","React","setLeft","right","setRight","leftFilterValue","setLeftFilterValue","rightFilterValue","setRightFilterValue","leftChecked","rightChecked","handleToggle","currentIndex","newChecked","push","splice","numberOfChecked","items","length","handleToggleAll","customList","unfilteredItems","side","option","toLocaleLowerCase","includes","Card","CardHeader","px","py","avatar","Checkbox","indeterminate","disabled","inputProps","subheader","fullWidth","onChange","event","target","Divider","List","dense","role","map","ListItemButton","cursor","ListItemIcon","tabIndex","disableRipple","ListItemText","id","primary","Grid2","container","spacing","margin","flex","direction","my","size","oldState","newState","concat","TemplateBarChart","BarChart","dataset","xAxis","dataKey","scaleType","valueLabel","series","labelField","split","TemplateDataCard","fontSize","fontWeight","TemplateGauge","Gauge","valueMax","total","TemplateLineChart","LineChart","LinearProgressWithLabel","mr","LinearProgress","Math","round","TemplateLineProgress","TemplatePieChart","chartData","index","PieChart","CheckBox","FormControlLabel","required","control","checkedValue","e","onChangeCallBack","unCheckedValue","ComboBox","AppLayoutState","AppLayout","Autocomplete","v","getValue","newValue","clearOnBlur","handleHomeEndKeys","getOptionLabel","renderOption","props1","slots","popper","Popper","renderInput","InputLabelProps","errorMessage","helperText","DATE_FORMAT","DATE_TIME_FORMAT","LIGHT_THEME_INITIAL_MAIN_COLOR","LIGHT_THEME_INITIAL_SECANDARY_COLOR","DARK_THEME_INITIAL_MAIN_COLOR","DARK_THEME_INITIAL_SECANDARY_COLOR","Datefield","LocalizationProvider","dateAdapter","AdapterMoment","DatePicker","moment","format","momentValue","isValid","textField","DatetimeField","DateTimePicker","formatMuiErrorMessage","code","args","URL","forEach","arg","searchParams","append","process","env","NODE_ENV","reactIsModule","exports","Symbol","for","c","d","f","g","h","k","l","m","n","p","q","r","w","x","y","z","u","$$typeof","A","reactIs_production_min","AsyncMode","ConcurrentMode","ContextConsumer","Element","ForwardRef","Fragment","Lazy","Portal","Profiler","StrictMode","Suspense","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isProfiler","isStrictMode","isSuspense","isValidElementType","typeOf","require$$0","hasSymbol","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_BLOCK_TYPE","REACT_FUNDAMENTAL_TYPE","REACT_RESPONDER_TYPE","REACT_SCOPE_TYPE","object","$$typeofType","ContextProvider","Memo","hasWarnedAboutDeprecatedIsAsyncMode","reactIs_development","console","isPortal","getOwnPropertySymbols","hasOwnProperty","prototype","propIsEnumerable","propertyIsEnumerable","objectAssign","assign","test1","String","getOwnPropertyNames","test2","i","fromCharCode","join","test3","letter","err","shouldUseNative","source","from","symbols","to","val","TypeError","toObject","s","arguments","key","call","ReactPropTypesSecret_1","has","Function","bind","printWarning","ReactPropTypesSecret","loggedTypeFailures","require$$1","Error","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","ex","stack","resetWarningCache","checkPropTypes_1","ReactIs","require$$2","require$$3","require$$4","emptyFunctionThatReturnsNull","factoryWithTypeCheckers","isValidElement","throwOnDirectAccess","ITERATOR_SYMBOL","iterator","ANONYMOUS","ReactPropTypes","array","createPrimitiveTypeChecker","bigint","bool","func","number","string","symbol","any","createChainableTypeChecker","arrayOf","typeChecker","propName","propFullName","PropTypeError","propValue","Array","isArray","getPropType","element","elementType","instanceOf","expectedClass","expectedClassName","constructor","node","isNode","objectOf","propType","oneOf","expectedValues","is","valuesString","JSON","stringify","getPreciseType","oneOfType","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","expectedTypes","checkerResult","expectedType","shape","shapeTypes","invalidValidatorError","exact","allKeys","this","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","isRequired","secret","cacheKey","chainedCheckType","every","iteratorFn","maybeIterable","getIteratorFn","step","entries","next","done","entry","RegExp","isSymbol","Date","PropTypes","emptyFunction","emptyFunctionWithReset","factoryWithThrowingShims","shim","getShim","propTypesModule","REACT_CONSUMER_TYPE","REACT_VIEW_TRANSITION_TYPE","REACT_CLIENT_REFERENCE","reactIs_production","SuspenseList","isSuspenseList","getModuleId","isPlainObject","item","getPrototypeOf","toStringTag","deepClone","output","deepmerge","clone","createBreakpoints","breakpoints","xs","sm","md","lg","xl","unit","other","sortedValues","breakpointsAsArray","sort","breakpoint1","breakpoint2","reduce","acc","obj","sortBreakpointsValues","up","down","between","start","end","endIndex","only","keyIndex","replace","borderRadius","responsivePropType","merge","defaultBreakpoints","defaultContainerQueries","containerQueries","containerName","handleBreakpoints","styleFromPropValue","themeBreakpoints","breakpointKeys","startsWith","some","match","containerKey","shorthand","matches","_formatErrorMessage","containerQuery","Number","isNaN","getContainerQuery","cssKey","capitalize","charAt","toUpperCase","slice","getPath","path","checkVars","vars","getStyleValue","themeMapping","propValueFinal","userValue","prop","cssProperty","themeKey","fn","propTypes","filterProps","properties","directions","aliases","marginX","marginY","paddingX","paddingY","getCssProperties","cache","memoize","property","dir","marginKeys","paddingKeys","spacingKeys","createUnaryUnit","defaultValue","themeSpacing","abs","isInteger","transformed","createUnarySpacing","transformer","resolveCssProperty","cssProperties","getStyleFromPropValue","compose","styles","handlers","borderTransform","createBorderStyle","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outline","outlineColor","gap","columnGap","rowGap","paletteTransform","sizingTransform","maxWidth","breakpointsValues","defaultSxConfig","backgroundColor","pt","pr","pb","pl","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd","mt","mb","ml","mx","marginTop","marginBottom","marginLeft","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd","displayPrint","textOverflow","visibility","whiteSpace","flexBasis","flexWrap","alignContent","order","flexShrink","alignSelf","justifyItems","justifySelf","gridColumn","gridRow","gridAutoFlow","gridAutoColumns","gridAutoRows","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea","bottom","boxShadow","boxSizing","font","fontFamily","fontStyle","letterSpacing","textTransform","lineHeight","textAlign","typography","styleFunctionSx","getThemeValue","config","unstable_sxConfig","traverse","sxInput","sxObject","emptyBreakpoints","breakpointsInput","breakpointsInOrder","createEmptyBreakpointObject","breakpointsKeys","styleKey","maybeFn","objects","union","Set","objectsHaveSameKeys","sorted","regex","sortContainerQueries","breakpointOutput","removeUnusedBreakpoints","unstable_createStyleFunctionSx","applyStyles","colorSchemes","getColorSchemeSelector","selector","palette","mode","useTheme","defaultTheme","contextTheme","useContext","ThemeContext","systemDefaultTheme","paletteInput","spacingInput","shapeInput","mui","argsInput","argument","createSpacing","muiTheme","components","themeInput","toContainerQuery","mediaQuery","attachCq","cssContainerQueries","unstable_sx","createTheme","extendSxProp","inSx","systemProps","otherProps","splitProps","finalSx","defaultGenerator","ClassNameGenerator","generate","configure","generator","reset","createClassNameGenerator","o","clsx","globalStateClasses","active","completed","expanded","focused","focusVisible","readOnly","selected","themeId","defaultClassName","generateClassName","BoxRoot","tag","stylesFactory","emStyled","styled","shouldForwardProp","forwardRef","inProps","useThemeWithoutDefault","className","as","createBox","globalStatePrefix","slot","globalStateClass","generateUtilityClass","generateUtilityClasses","root","hasDigitsOnly","str","test","isNumber","isNumeric","trim","capitalizeFirstLetter","isValidEmail","email","HtmlEditor","setValue","maxLength","customInlineFn","Style","contentState","stateFromHTML","editorState","setEditorState","EditorState","createWithContent","draftToHtml","convertToRaw","getCurrentContent","Editor","onEditorStateChange","newData","log","substring","handlePastedText","pastedText","currentContentLength","getPlainText","selectedTextLength","currentSelection","getSelection","isCollapsed","currentContent","startKey","getStartKey","endKey","getEndKey","isStartAndEndBlockAreTheSame","startSelectedTextLength","getBlockForKey","getLength","getStartOffset","endSelectedTextLength","getEndOffset","keyAfterEnd","getKeyAfter","currentKey","_getLengthOfSelectedText","alert","editorStyle","wrapperStyle","toolbarStyle","SystemLookupCombobox","setOptions","lookupType","loadLookupOptions","FormElementField","fieldInfo","formManager","formActions","formValues","fieldName","fieldType","hiddenFields","formProps","fieldSize","muiTextFieldProps","disabledFields","hidden","fieldLabel","onValueChangeCallBack","fieldHeight","formState","errors","toString","dateFormat","selectedRecord","optionDisplayField","optionValueField","FormAction","setConfirmationWindowState","confirmationMessage","actionFn","formActionProps","actionButtonVariant","actionButtonColor","preActionValidation","isConfirmationRequired","FormElementGroup","elements","generateDateTimeColumn","colDef","renderEditCell","api","setEditCellValue","field","valueParser","row","column","valueFormatter","generateComboColumn","valueGetter","renderCell","find","generateCheckBoxColumn","getElementFields","fields","childElement","getAllFields","constructValidationSchema","validationSchemaObj","required_error","invalid_type_error","optional","nullable","boolean","min","TemplateForm","initiallyHiddenFields","setHiddenFields","initialValues","setDisabledFields","formSchema","useForm","resolver","zodResolver","defaultValues","watch","pathParameters","useParams","formRouteRecordIdParamName","setFieldValue","fieldValue","hideField","oldValues","showField","disableField","enableField","idToLoad","recordIdToEdit","retrievedRecord","apiActions","formLoadCallBk","loadRecord","formElement","enabled","saveButtonSpecs","startIcon","handleSubmit","preSaveValidation","formSavedSuccessfullyCallBk","formCloseCallBk","cancelButtonSpecs","TemplateGridMultiRecordAction","rowAction","recordsToProcessActionOn","recordIdsToProcessActionOn","isActionAllowed","StyledQuickFilter","QuickFilter","StyledToolbarButton","ToolbarButton","ownerState","opacity","pointerEvents","transition","transitions","StyledTextField","overflowX","TemplateGridTopBar","isCreationAuthorized","templateProps","editAction","gridSelection","rowSelectionModel","keyColumnName","sRecords","sRecordIds","ids","selectedId","selectedRecords","selectedRecordIds","getGridSelection","editMode","handleCreateNewRecord","rowActions","gridActionProps","multiRecord","_createElement","gridLoadParametersValues","tBar","Tooltip","ColumnsPanelTrigger","render","GridViewColumnIcon","FilterPanelTrigger","Badge","badgeContent","filterCount","GridFilterListIcon","gridStateKey","clearGridState","orientation","flexItem","ExportExcel","MenuItem","QuickFilterTrigger","triggerProps","enterDelay","QuickFilterControl","controlProps","inputRef","placeholder","input","startAdornment","InputAdornment","endAdornment","QuickFilterClear","edge","TemplateGridRecordAction","iconStyle","getActionIconStyleForRecord","isActionVisibleForRecord","isActionDisabledForRecord","GridActionsCellItem","showInMenu","reloadGridAfterAction","currentNewRecordIndex","loadGridState","saved","parse","saveGridState","statePart","current","setItem","PIN_FIXED_COLUMNS","TemplateGrid","getLookupOptions","generateLookupGridColumn","useLookupGridColumn","generatedColumns","setGeneratedColumns","formElements","savedState","useMemo","gridProps","initialVisibilityState","columnVisibilityModel","existingFields","themeDirection","setColumnVisibilityModel","columnOrder","setColumnOrder","columnWidths","setColumnWidths","gridRowGroupingModel","setGridRowGroupingModel","columnGroupingModel","newLeft","pinnedColumns","newRight","setPinnedColumns","navigate","useNavigate","recordToDelete","setRecordToDelete","recordToEdit","setRecordToEdit","rowModesModel","setRowModesModel","adjustGridColumns","gridColumns","isDefaultEditable","columns","tableField","muiProps","editable","headerName","headerAlign","align","searchable","constructGridColumnsFromFields","setRowSelectionModel","validationSchema","isEditAllowed","isDeleteAllowed","deleteAction","setConfirmationWindowOpened","isNew","postActionCallBack","oldData","formModalHeight","formModalWidth","formModalMinHeight","formModalMinWidth","formModalIcon","formModalTitle","specs","modalHeight","modalWidth","modalMinHeight","modalMinWidth","modalIcon","modalTitle","FormWindow","setFormWindowState","actionColumn","isEnabled","getActions","disableDefaultAction","isInEditMode","GridRowModes","Edit","View","handleSaveRowClick","ignoreModifications","handleCancelRowEditClick","isEditActionVisibleForRecord","isActionEditDisabledForRecord","formRoute","handleEditRecord","isDeleteActionVisibleForRecord","isDeleteActionDisabledForRecord","structuredColumns","autoLoad","adjustedColumns","baseCols","col","fieldToCol","Map","Boolean","formComponent","editAuthorityKey","hideInfoBar","hideBackButton","girdIcon","gridTitle","gridLoadParameters","setGridLoadParametersValues","Accordion","defaultExpanded","AccordionSummary","expandIcon","GridExpandMoreIcon","AccordionDetails","DataGridPremium","toolbar","newRecord","oldRows","oldModel","removeItem","getRowId","showToolbar","rows","checkboxSelection","onRowModesModelChange","newModel","rowGroupingColumnMode","processRowUpdate","ZodError","validateRecord","requestObject","reloadAfterSave","onRowSelectionModelChange","gridSelectionModel","onColumnVisibilityModelChange","model","onColumnOrderChange","targetIndex","prevOrder","currentOrder","fromIndex","onColumnWidthChange","updatedWidths","rowGroupingModel","onRowGroupingModelChange","handleRowGroupChange","onPinnedColumnsChange","newPinedColumns","ChangeOrgForm","newOrgId","setNewOrgId","currentOrganization","userOrganizations","username","orgId","successChangeCallBackFn","SideBarSlice","toggleSideBarState","setSideBarState","SideBarReducer","MuiAppBar","easing","sharp","duration","leavingScreen","variants","easeOut","enteringScreen","TopBar","ChangeOrgWindow","setChangeOrgWindowState","SideBarState","SideBar","Avatar","src","appLogo","noWrap","appName","organizationEnName","organizationArName","prefix","iconName","language","nextLanguage","changeLanguage","rotation","DrawerHeader","mixins","findNavigationItemById","nodes","found","NavigationItems","actionPayload","DotIcon","verticalAlign","StyledTreeItemRoot","TreeItem2Root","grey","treeItemClasses","groupTransition","CustomTreeItemContent","TreeItem2Content","dark","main","content","alpha","contrastText","AnimatedCollapse","animated","Collapse","TransitionComponent","useSpring","in","StyledTreeItemLabelText","CustomLabel","expandable","appLayoutState","TreeItem2Label","isExpandable","reactChildren","CustomTreeItem","itemId","getRootProps","getContentProps","getIconContainerProps","getCheckboxProps","getLabelProps","getGroupTransitionProps","getDragAndDropOverlayProps","publicAPI","useTreeItem2","rootRef","TreeItem2Provider","TreeItem2IconContainer","TreeItem2Icon","TreeItem2Checkbox","TreeItem2DragAndDropOverlay","NavigationTree","filterData","mergedNavigationItems","enableAdministrationModule","businessNavigationItems","authoriedNavigationItems","RichTreeView","onItemClick","navigationItem","overflowY","Drawer","anchor","appVersion","cacheRtl","createCache","stylisPlugins","prefixer","rtlPlugin","cacheLtr","WidgetViewer","isWidgetLoading","setWidgetLoading","queryId","dataQueryId","parameterValues","getWidgetData","widgetType","verticalAxisField","spin","widgetTitle","horizontalAxisField","horizontalAxisLabel","DashboardViewer","dashboardInfo","setDashboardInfo","dashboardCode","dashboardName","dashboardTitle","dashboardParameters","widgets","dashboardParameterValues","setDashboardParameterValues","loadDashboardInfo","widget","OrganizationApplicationModuleGrid","systemApplicationModules","setSystemApplicationModules","getSystemApplicationModules","organizationId","selectedOrganization","OrganizationUnitTypeGrid","OrganizationUnitGrid","organizationUnitTypes","setOrganizationUnitTypes","getOrganizationUnitTypes","OrganizationRankGrid","OrgMemberRoleForm","setSelectedOptions","availableOptions","setAvailableOptions","orgMemberId","currentRoles","availableRoles","getOrgMemberRoles","success","closeModalFn","OrganizationMemberGrid","setSelectedRecord","OrganizationMemberRolesWindow","setOrganizationMemberRolesWindowState","SystemOrganizations","SystemOrganizationRanks","SystemOrganizationUnits","personId","selectedPerson","SystemApplicationModuleGrid","applicationId","selectedApplication","systemApplicationId","SystemApplicationAuthorityGrid","RoleAuthoritiesForm","availableAuthorities","setAvailableAuthorities","roleId","appId","selectedAuthorities","getRoleAuthorities","SystemApplicationRoleGrid","selectedRole","setSelectedRole","RoleaAuthoritiesWindow","setRoleAuthoritiesWindowState","LookupGrid","DataQueryParameterGrid","SystemEntityParameters","ReportParameterGrid","reportId","getGridColumnsFromRecord","ExcelReportViewer","reportData","setReportData","reloadReport","ReportViewer","blobUrl","setBlobUrl","setErrorMessage","excelReportData","setExcelReportData","reportViewerState","setReportViewerState","reportInfo","setReportInfo","reportParametersValues","setReportParametersValues","reportParametersElements","setReportParametersElements","getFormElementsFromReportParameters","reportParameters","reportParameter","parameterLabel","parameterCode","parameterType","mandatory","runReport","reportInfoProp","reportType","reportCode","resultMode","jasperOutPutFileType","contentDisposition","headers","filename","file","createObjectURL","blob","link","href","download","click","removeChild","revokeObjectURL","byPassParameterEntry","loadReportData","reportName","validationObject","Blueprint","useSysDatasource","isMandatory","isVisible","datasourceConId","reportBluePrintId","reportExcelDataQueryId","reportJasperName","reportJasperPath","Jasper","Excel","adjustFormAccordingToReportType","validationObjects","MailRecipientGrid","mailTemplateId","recipientMail","MailBodyGrid","SystemDataQueries","MailAttachmentGrid","SystemReports","Gmail","mailHost","mailPort","mailUsername","mailPassword","mailProtocol","isMailSmtpAuthEnabled","isMailStarttlsEnabled","isSmtpSSlEnabled","azureGraphApiClientId","azureGraphApiClientSecret","azureGraphApiTenantId","azureGraphApiScope","azureGraphApiEmailId","Azure","adjustFormAccordingToEngineType","WorkflowDocumentStatusGrid","workflowDocumentId","WorkflowDocumentActionMailGrid","SystemMailTemplates","actionId","documentActionId","WorkflowDocumentActionGrid","ActionMailsWindow","setActionMailWindowState","workflowStates","setWorkflowStates","loadWorkFlowDocumentStates","seriesKeys","verticalAxisLabel","ColumnChart","CircularProgress","adjustFormAccordingToWidgetType","DashboardWidgetGrid","SystemWidgets","dashboardId","SYSTEM_ROUTES","ApplicationModulesWindow","setApplicationWindowState","OrgUnitTypesWindow","setOrgUnitTypesWindowState","OrgUnitsWindow","setOrgUnitsWindowState","OrgRanksWindow","setOrgRanksWindowState","setSelectedPerson","OrganizationMembersWindow","setOrganizationMemberWindowState","refSource","setApplicationModulesWindowState","ApplicationAuthoritiessWindow","setApplicationAuthoritiesWindowState","ApplicationRolesWindow","setApplicationRolesWindowState","ApplicationLookupsWindow","setApplicationLookupsWindowState","DataQueryParameterWindow","setDataQueryParameterWindow","SystemDataSources","multiline","SystemDataSourceType","SystemParameterTypes","ReporTrialWindow","setReportTrialWindowState","ReportParameterWindow","setReportParameterWindowState","SystemBluePrints","MailRecipentsWindow","setMailRecipientsWindowState","MailBodiesWindow","setMailBodiesWindowState","MailAttachmentWindow","setMailAttachmentWindowState","callBkFn","periodical","periodType","periodValue","startSendingAt","mailEngine","WorkflowStatusWindow","setWorkflowStatusWindowState","WorkflowActionWindow","setWorkflowActionWindowState","useSystemCon","SystemWidgetTypes","WidgetsWindows","setWidgetsWindowState","RouteWrapper","MainContent","businessRoutes","loadCommonStores","CacheProvider","Routes","route","Route","Puller","MobileDrawer","toggleDrawer","SwipeableDrawer","onOpen","swipeAreaWidth","disableSwipeToOpen","ModalProps","keepMounted","LoadingMask","loadingMask","Backdrop","Login","appInfo","setUsername","password","setPassword","isLoginInProcess","setIsLoginInProcess","UserSessionState","handleLogin","userSession","loginTheme","MuiCssBaseline","styleOverrides","appTheme","primaryColor","secondary","secondaryColor","checkUserSession","ThemeProvider","onKeyDown","loading","Main","Layout","BrowserRouter","ToastContainer","draggable","CssBaseline","AppInfoSlice","documentTitle","muiPremiumKey","businessReduxReducers","businessCommonStoresMetaData","light","setAppInfo","AppInfoActions","AppInfoReducer","ADMINISTRATION_STORES","SystemReportTypes","SystemMailRecipientTypes","App","LicenseInfo","setLicenseKey","LightThemeOptions","background","default","paper","DarkThemeOptions","themeOptions","library","add","fab","far","fas","BaseApp","systemReducers","store","configureStore","Provider"],"mappings":"w1IAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAE,GAC9B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBU,CAqBxD,wTCvBae,GAAc,CAACC,EAAa,OACvC,MAAOC,EAAUC,GAAeC,EAASC,OAAOC,WAAaL,GAQ7D,OANAM,GAAU,KACR,MAAMC,EAAe,IAAML,EAAYE,OAAOC,WAAaL,GAE3D,OADAI,OAAOI,iBAAiB,SAAUD,GAC3B,IAAMH,OAAOK,oBAAoB,S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jD","x_google_ignoreList":[0,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74]}
1
+ {"version":3,"file":"index.mjs","sources":["../node_modules/style-inject/dist/style-inject.es.js","../src/hooks/UseMobile.tsx","../src/redux/features/common/AppLayoutSlice.ts","../src/redux/features/common/LoadingMaskSlice.ts","../src/hooks/useLoadingMask.tsx","../src/hooks/useAxios.tsx","../src/redux/features/common/UserSessionSlice.ts","../src/locales/english/index.ts","../src/locales/index.ts","../src/locales/arabic/index.ts","../src/locales/i18n.ts","../src/hooks/UseConfirmationWindow.tsx","../src/hooks/UseSession.tsx","../src/hooks/UseWindow.tsx","../src/redux/features/common/CommonStoreSlice.ts","../src/hooks/useApiActions.ts","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/TemplateTextField.tsx","../src/components/templates/TransferList.tsx","../src/components/templates/visuals/charts/TemplateBarChart.tsx","../src/components/templates/visuals/charts/TemplateDataCard.tsx","../src/components/templates/visuals/charts/TemplateGauge.tsx","../src/components/templates/visuals/charts/TemplateLineChart.tsx","../src/components/templates/visuals/charts/TemplateLineProgress.tsx","../src/components/templates/visuals/charts/TemplatePieChart.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/CheckBox.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/ComboBox.tsx","../src/util/constants.ts","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/Datefield.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/DatetimeField.tsx","../node_modules/@mui/system/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js","../node_modules/prop-types/node_modules/react-is/index.js","../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../node_modules/object-assign/index.js","../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/lib/has.js","../node_modules/prop-types/checkPropTypes.js","../node_modules/prop-types/factoryWithTypeCheckers.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js","../node_modules/react-is/cjs/react-is.production.js","../node_modules/react-is/cjs/react-is.development.js","../node_modules/react-is/index.js","../node_modules/@mui/system/node_modules/@mui/utils/esm/deepmerge/deepmerge.js","../node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.js","../node_modules/@mui/system/esm/createTheme/shape.js","../node_modules/@mui/system/esm/responsivePropType/responsivePropType.js","../node_modules/@mui/system/esm/merge/merge.js","../node_modules/@mui/system/esm/breakpoints/breakpoints.js","../node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js","../node_modules/@mui/system/node_modules/@mui/utils/esm/capitalize/capitalize.js","../node_modules/@mui/system/esm/style/style.js","../node_modules/@mui/system/esm/spacing/spacing.js","../node_modules/@mui/system/esm/memoize/memoize.js","../node_modules/@mui/system/esm/compose/compose.js","../node_modules/@mui/system/esm/borders/borders.js","../node_modules/@mui/system/esm/cssGrid/cssGrid.js","../node_modules/@mui/system/esm/palette/palette.js","../node_modules/@mui/system/esm/sizing/sizing.js","../node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js","../node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js","../node_modules/@mui/system/esm/createTheme/applyStyles.js","../node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js","../node_modules/@mui/system/esm/useTheme/useTheme.js","../node_modules/@mui/system/esm/createTheme/createTheme.js","../node_modules/@mui/system/esm/createTheme/createSpacing.js","../node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js","../node_modules/@mui/system/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js","../node_modules/clsx/dist/clsx.mjs","../node_modules/@mui/system/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js","../node_modules/@mui/system/esm/Box/boxClasses.js","../node_modules/@mui/system/esm/Box/Box.js","../node_modules/@mui/system/esm/createBox/createBox.js","../node_modules/@mui/styled-engine/esm/index.js","../node_modules/@mui/system/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js","../src/util/AppUtils.ts","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/HtmlEditor.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/SystemLookupCombobox.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementField.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormAction.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementGroup.tsx","../src/components/templates/DataEntryTemplates/TemplateDataGrid/DataGridColumnsUtil.tsx","../src/components/templates/DataEntryTemplates/DataEntryUtil.ts","../src/components/templates/DataEntryTemplates/TemplateDataForm/TemplateForm.tsx","../src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGridMultiRecordAction.tsx","../src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGridTopBar.tsx","../src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGridRecordAction.tsx","../src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid.tsx","../src/hooks/useLookupGridColumn.tsx","../src/components/common/ChangeOrgForm.tsx","../src/redux/features/common/SideBarSlice.ts","../src/layout/TopBar.tsx","../src/layout/DrawerHeader.tsx","../src/navigationItems/index.tsx","../src/navigationItems/Administration/index.tsx","../src/navigationItems/Administration/adminNavigationItems.tsx","../src/layout/NavigationTree.tsx","../src/layout/SideBar.tsx","../src/components/common/LayoutHandlers.tsx","../src/components/templates/visuals/WidgetViewer.tsx","../src/components/templates/visuals/DashboardViewer.tsx","../src/components/administration/admin/OrganizationApplicationModuleGrid.tsx","../src/components/administration/admin/OrganizationUnitTypeGrid.tsx","../src/components/administration/admin/OrganizationUnitGrid.tsx","../src/components/administration/admin/OrganizationRankGrid.tsx","../src/components/administration/admin/OrgMemberRoleForm.tsx","../src/components/administration/admin/OrganizationMemberGrid.tsx","../src/components/administration/admin/SystemApplicationModuleGrid.tsx","../src/components/administration/admin/SystemApplicationAuthorityGrid.tsx","../src/components/administration/admin/RoleAuthoritiesForm.tsx","../src/components/administration/admin/SystemApplicationRoleGrid.tsx","../src/components/administration/dev/LookupGrid.tsx","../src/components/administration/dev/DataQueryParameterGrid.tsx","../src/components/administration/dev/ReportParameterGrid.tsx","../src/components/templates/report/ExcelReportViewer.tsx","../src/components/templates/report/ReportViewer.tsx","../src/components/administration/dev/ReportGrid.tsx","../src/components/administration/dev/MailRecipientGrid.tsx","../src/components/administration/dev/MailBodyGrid.tsx","../src/components/administration/dev/MailAttachmentGrid.tsx","../src/components/administration/dev/MailSenderConfigGrid.tsx","../src/components/administration/dev/WorkflowDocumentStatusGrid.tsx","../src/components/administration/dev/WorkflowDocumentActionMailGrid.tsx","../src/components/administration/dev/WorkflowDocumentActionGrid.tsx","../src/components/administration/dev/WidgetGrid.tsx","../src/components/administration/dev/DashboardWidgetGrid.tsx","../src/routes/index.ts","../src/components/common/Home.tsx","../src/routes/administration/index.ts","../src/routes/administration/adminRoutes.tsx","../src/components/administration/admin/OrganizationGrid.tsx","../src/components/administration/admin/OrganizationMemberRoleGrid.tsx","../src/components/administration/admin/PersonGrid.tsx","../src/components/administration/admin/SystemApplicationGrid.tsx","../src/components/administration/admin/SystemApplicationRoleAuthorityGrid.tsx","../src/routes/administration/devRoutes.tsx","../src/components/administration/dev/BluePrintGrid.tsx","../src/components/administration/dev/DataQueryGrid.tsx","../src/components/administration/dev/DatasourceConnectionGrid.tsx","../src/components/administration/dev/EntityParameterGrid.tsx","../src/components/administration/dev/MailTemplateGrid.tsx","../src/components/administration/dev/WorkflowDocumentGrid.tsx","../src/components/administration/dev/DashboardGrid.tsx","../src/components/templates/visuals/DashboardRouteView.tsx","../src/components/administration/dev/WorkflowDocumentMailLogGrid.tsx","../src/components/administration/dev/MailNotificationQueueGrid.tsx","../src/layout/RouteWrapper.tsx","../src/layout/MainContent.tsx","../src/layout/MobileDrawer.tsx","../src/components/common/LoadingMask.tsx","../src/components/common/Login.tsx","../src/layout/Layout.tsx","../src/redux/features/common/AppInfoSlice.ts","../src/redux/features/administration/AdministrationStoresMetaData.ts","../src/components/App.tsx","../src/components/BaseApp.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import { useEffect, useState } from \"react\";\r\n\r\nexport const useIsMobile = (breakpoint = 768) => {\r\n const [isMobile, setIsMobile] = useState(window.innerWidth < breakpoint);\r\n\r\n useEffect(() => {\r\n const handleResize = () => setIsMobile(window.innerWidth < breakpoint);\r\n window.addEventListener(\"resize\", handleResize);\r\n return () => window.removeEventListener(\"resize\", handleResize);\r\n }, [breakpoint]);\r\n\r\n return isMobile;\r\n};\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\nexport const DRAWER_WIDTH = 350;\r\n\r\ninterface AppLayoutState {\r\n themeMode: \"light\" | \"dark\" | string;\r\n appDirection: \"ltr\" | \"rtl\";\r\n}\r\n\r\nconst initialState: AppLayoutState = {\r\n themeMode: localStorage.getItem(\"themeMode\") || \"light\",\r\n appDirection: localStorage.getItem(\"language\") == \"ar\" ? \"rtl\" : \"ltr\",\r\n};\r\n\r\nconst AppLayoutSlice = createSlice({\r\n name: \"AppLayout\",\r\n initialState,\r\n reducers: {\r\n setThemeMode: (state, action) => {\r\n state.themeMode = action.payload;\r\n },\r\n setAppDirection: (state, action) => {\r\n state.appDirection = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const AppLayoutActions = AppLayoutSlice.actions;\r\nexport default AppLayoutSlice.reducer;\r\n","import { createSlice, PayloadAction } from \"@reduxjs/toolkit\";\r\n\r\ninterface LoadingMaskStateValue {\r\n value: { isOpened: boolean; message?: string | null };\r\n}\r\n\r\nconst initialState: LoadingMaskStateValue = {\r\n value: { isOpened: false, message: null },\r\n};\r\n\r\nconst loadingMaskSlice = createSlice({\r\n name: \"loadingMask\",\r\n initialState,\r\n reducers: {\r\n showLoadingMask: (\r\n state,\r\n action: PayloadAction<string | null | undefined>\r\n ) => {\r\n state.value.isOpened = true;\r\n state.value.message = action.payload;\r\n },\r\n hideLoadingMask: (state) => {\r\n state.value.isOpened = false;\r\n state.value.message = null;\r\n },\r\n },\r\n});\r\n\r\nexport const { showLoadingMask, hideLoadingMask } = loadingMaskSlice.actions;\r\nexport default loadingMaskSlice.reducer;\r\n","import { useDispatch } from \"react-redux\";\r\nimport { hideLoadingMask, showLoadingMask } from \"../redux/features/common/LoadingMaskSlice\";\r\n\r\n\r\nconst useLoadingMask = () => {\r\n const dispatch = useDispatch();\r\n const show = (message?: string) => {\r\n dispatch(showLoadingMask(message));\r\n };\r\n const hide = () => {\r\n dispatch(hideLoadingMask());\r\n };\r\n return { show, hide };\r\n};\r\n\r\nexport default useLoadingMask;\r\n","import { toast } from \"react-toastify\";\r\nimport axios from \"axios\";\r\nimport { useSelector } from \"react-redux\";\r\nimport useLoadingMask from \"./useLoadingMask\";\r\n\r\nexport interface APIRequest {\r\n endPointURI: string;\r\n parameters?: any;\r\n data?: any;\r\n showMask?: Boolean;\r\n loadingMessage?: string;\r\n successCallBkFn?: Function;\r\n failureCallBkFn?: Function;\r\n}\r\n\r\nconst useAxios = () => {\r\n const mask = useLoadingMask();\r\n const apiBaseUrl = useSelector(\r\n (state: any) => state.AppInfo.value.apiBaseUrl\r\n );\r\n const axiosInstance = axios.create({\r\n baseURL: apiBaseUrl,\r\n timeout: 600000,\r\n withCredentials: true,\r\n });\r\n\r\n axiosInstance.defaults.withCredentials = true;\r\n axiosInstance.interceptors.response.use(\r\n (response: any) => {\r\n return response;\r\n },\r\n (error: any) => {\r\n if (\r\n error\r\n ? error.response\r\n ? error.response.status\r\n ? error.response.status === 401\r\n : false\r\n : false\r\n : false\r\n ) {\r\n toast.error(\"your session is now expired, you need to login again\", {\r\n autoClose: false,\r\n });\r\n } else if (\r\n error\r\n ? error.response\r\n ? error.response.status\r\n ? error.response.status === 403\r\n : false\r\n : false\r\n : false\r\n ) {\r\n toast.error(\"you aren't authorized to process this request\");\r\n } else if (\r\n error\r\n ? error.response\r\n ? error.response.status\r\n ? error.response.status === 500\r\n : false\r\n : false\r\n : false\r\n ) {\r\n if (error.response.data instanceof Blob) {\r\n const blob = error.response.data;\r\n blob.text().then((text) => {\r\n toast.error(text);\r\n });\r\n } else {\r\n toast.error(error.response.data);\r\n }\r\n } else {\r\n toast.error(\r\n \"failed to communicate with the server ... try again later\"\r\n );\r\n }\r\n return \"ERROR\";\r\n }\r\n );\r\n const handleGetRequest = async (\r\n props: APIRequest = { endPointURI: \"\", parameters: {} }\r\n ) => {\r\n if (\r\n props.showMask !== undefined &&\r\n props.showMask != null &&\r\n props.showMask === true\r\n ) {\r\n mask.show(props.loadingMessage);\r\n }\r\n const response: any = await axiosInstance.get(props.endPointURI, {\r\n params: { ...props.parameters },\r\n withCredentials: true,\r\n // withCredentials: true,\r\n });\r\n if (\r\n props.showMask !== undefined &&\r\n props.showMask != null &&\r\n props.showMask === true\r\n ) {\r\n mask.hide();\r\n }\r\n if (response !== \"ERROR\") {\r\n if (\r\n props.successCallBkFn !== undefined &&\r\n props.successCallBkFn != null\r\n ) {\r\n props.successCallBkFn(response);\r\n }\r\n return response;\r\n } else {\r\n if (\r\n props.failureCallBkFn !== undefined &&\r\n props.failureCallBkFn != null\r\n ) {\r\n props.failureCallBkFn(response);\r\n }\r\n return \"ERROR\";\r\n }\r\n };\r\n\r\n const HandleDownloadHTTPPostPDF = async (\r\n props: APIRequest = { endPointURI: \"\", parameters: {}, data: {} }\r\n ) => {\r\n if (\r\n props.showMask !== undefined &&\r\n props.showMask != null &&\r\n props.showMask === true\r\n ) {\r\n mask.show(props.loadingMessage);\r\n }\r\n const response: any = await axiosInstance.post(\r\n props.endPointURI,\r\n props.data,\r\n {\r\n responseType: \"blob\",\r\n }\r\n );\r\n if (\r\n props.showMask !== undefined &&\r\n props.showMask != null &&\r\n props.showMask === true\r\n ) {\r\n mask.hide();\r\n }\r\n if (response !== \"ERROR\") {\r\n if (\r\n props.successCallBkFn !== undefined &&\r\n props.successCallBkFn != null\r\n ) {\r\n props.successCallBkFn(response);\r\n }\r\n return response;\r\n } else {\r\n if (\r\n props.failureCallBkFn !== undefined &&\r\n props.failureCallBkFn != null\r\n ) {\r\n props.failureCallBkFn(response);\r\n }\r\n return \"ERROR\";\r\n }\r\n };\r\n const handlePostRequest = async (\r\n props: APIRequest = { endPointURI: \"\", parameters: {}, data: {} }\r\n ) => {\r\n if (\r\n props.showMask !== undefined &&\r\n props.showMask != null &&\r\n props.showMask === true\r\n ) {\r\n mask.show(props.loadingMessage);\r\n }\r\n let response: any = await axiosInstance.post(\r\n props.endPointURI,\r\n props.data,\r\n {\r\n params: props.parameters,\r\n }\r\n );\r\n if (\r\n props.showMask !== undefined &&\r\n props.showMask != null &&\r\n props.showMask === true\r\n ) {\r\n mask.hide();\r\n }\r\n if (response !== \"ERROR\") {\r\n if (\r\n props.successCallBkFn !== undefined &&\r\n props.successCallBkFn != null\r\n ) {\r\n props.successCallBkFn(response);\r\n }\r\n return response;\r\n } else {\r\n if (\r\n props.failureCallBkFn !== undefined &&\r\n props.failureCallBkFn != null\r\n ) {\r\n props.failureCallBkFn(response);\r\n }\r\n return \"ERROR\";\r\n }\r\n };\r\n const handleDeleteRequest = async (\r\n props: APIRequest = { endPointURI: \"\", parameters: {} }\r\n ) => {\r\n if (\r\n props.showMask !== undefined &&\r\n props.showMask != null &&\r\n props.showMask === true\r\n ) {\r\n mask.show(props.loadingMessage);\r\n }\r\n let response: any = await axiosInstance.delete(props.endPointURI, {\r\n params: {\r\n ...props.parameters,\r\n },\r\n });\r\n if (\r\n props.showMask !== undefined &&\r\n props.showMask != null &&\r\n props.showMask === true\r\n ) {\r\n mask.hide();\r\n }\r\n if (response !== \"ERROR\") {\r\n if (\r\n props.successCallBkFn !== undefined &&\r\n props.successCallBkFn != null\r\n ) {\r\n props.successCallBkFn(response);\r\n }\r\n return response;\r\n } else {\r\n if (\r\n props.failureCallBkFn !== undefined &&\r\n props.failureCallBkFn != null\r\n ) {\r\n props.failureCallBkFn(response);\r\n }\r\n return \"ERROR\";\r\n }\r\n };\r\n return {\r\n handleGetRequest,\r\n handlePostRequest,\r\n handleDeleteRequest,\r\n HandleDownloadHTTPPostPDF,\r\n };\r\n};\r\n\r\nexport default useAxios;\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\nexport interface OrganizationProps {\r\n organizationCode?: string;\r\n organizationName?: string;\r\n}\r\n\r\nexport interface UserSessionProps {\r\n value: {\r\n isAuthenticated: boolean | null;\r\n employeeNumber?: string;\r\n employeeName?: string;\r\n mobileNumber?: string;\r\n email?: string;\r\n isEmployeeArchived?: string;\r\n organizationCode?: string;\r\n organizationUnitId?: string;\r\n organizationUnitArName?: string;\r\n organizationUnitEnName?: string;\r\n organizationRankId?: string;\r\n rankCode?: string;\r\n rankName?: string;\r\n rankOrder?: string;\r\n currentOrganization?: any;\r\n userOrganizations?: Array<OrganizationProps>;\r\n authorities: Array<{ authority: string }>;\r\n };\r\n}\r\n\r\nconst initialState: UserSessionProps = {\r\n value: {\r\n isAuthenticated: null,\r\n authorities: [],\r\n },\r\n};\r\n\r\nconst UserSessionSlice = createSlice({\r\n name: \"UserSession\",\r\n initialState,\r\n reducers: {\r\n setAuthenticated: (state, action) => {\r\n state.value = action.payload;\r\n },\r\n setUnAuthenticated: (state) => {\r\n state.value = {\r\n isAuthenticated: false,\r\n authorities: [],\r\n };\r\n },\r\n },\r\n});\r\n\r\nexport const UserSessionActions = UserSessionSlice.actions;\r\nexport default UserSessionSlice.reducer;\r\n","import common from \"./common.json\";\r\nimport AdminLocalsEn from \"./adminLocalsEn.json\";\r\nimport devLocalsEn from \"./devLocalsEn.json\";\r\n\r\nexport const ENGLISH_TRANS = {\r\n ...common,\r\n ...AdminLocalsEn,\r\n ...devLocalsEn,\r\n};\r\n","import { ARABIC_TRANS } from \"./arabic\";\r\nimport { ENGLISH_TRANS } from \"./english\";\r\n\r\nconst resources = {\r\n en: { translation: ENGLISH_TRANS },\r\n ar: { translation: ARABIC_TRANS },\r\n};\r\n\r\nexport default resources;\r\n","import common from \"./common.json\";\r\nimport adminLocalsAr from \"./adminLocalsAr.json\";\r\nimport devLocalAr from \"./devLocalsAr.json\";\r\n\r\nexport const ARABIC_TRANS = {\r\n ...common,\r\n ...adminLocalsAr,\r\n ...devLocalAr,\r\n};\r\n","import i18n from \"i18next\";\r\nimport { initReactI18next } from \"react-i18next\";\r\nimport resources from \".\";\r\ni18n.use(initReactI18next).init({\r\n resources: resources, // Where we're gonna put translations' files\r\n lng: localStorage.getItem(\"language\") || \"en\", // Set the initial language of the App\r\n fallbackLng: \"en\",\r\n});\r\n\r\nexport const changeLanguage = (lng: string) => {\r\n i18n.changeLanguage(lng);\r\n localStorage.setItem(\"language\", lng); // Persist user choice\r\n};\r\n\r\nexport default i18n;\r\n","import {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogContentText,\r\n DialogTitle,\r\n} from \"@mui/material\";\r\nimport { useState } from \"react\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ninterface ConfirmationWindowProps {\r\n title: string;\r\n body: string;\r\n onConfirmationCallBk: () => void;\r\n}\r\n\r\nexport const useConfirmationWindow = (props: ConfirmationWindowProps) => {\r\n const [open, setOpen] = useState<boolean>(false);\r\n const { t } = useTranslation();\r\n const ConfirmationWindow: React.FC = () => {\r\n return (\r\n <Dialog open={open}>\r\n <DialogTitle>{props.title}</DialogTitle>\r\n <DialogContent>\r\n <DialogContentText>{props.body}</DialogContentText>\r\n </DialogContent>\r\n <DialogActions>\r\n <Button\r\n variant=\"contained\"\r\n color=\"primary\"\r\n onClick={() => {\r\n setOpen(false);\r\n }}\r\n >\r\n {t(\"NO_LABEL\")}\r\n </Button>\r\n <Button\r\n variant=\"contained\"\r\n color=\"error\"\r\n onClick={() => {\r\n props.onConfirmationCallBk();\r\n setOpen(false);\r\n }}\r\n autoFocus\r\n >\r\n {t(\"YES_LABEL\")}\r\n </Button>\r\n </DialogActions>\r\n </Dialog>\r\n );\r\n };\r\n return { ConfirmationWindow, open, setOpen };\r\n};\r\n","import { useSelector } from \"react-redux\";\r\n\r\nconst useSession = () => {\r\n const UserSession = useSelector((state: any) => state.UserSession);\r\n const UserInfo = UserSession.value;\r\n const isUserAuthorized = (authorityCode: string): boolean => {\r\n if (UserSession?.value?.authorities) {\r\n for (let grantedAuthority of UserSession.value.authorities) {\r\n if (\r\n grantedAuthority?.authority === \"DEVELOPMENT_ADMIN\" ||\r\n grantedAuthority?.authority === authorityCode\r\n ) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n };\r\n return { UserSession, isUserAuthorized, UserInfo };\r\n};\r\n\r\nexport default useSession;\r\n","import { useEffect, useState } from \"react\";\r\nimport {\r\n AppBar,\r\n Box,\r\n IconButton,\r\n Modal,\r\n Paper,\r\n Toolbar,\r\n Typography,\r\n} from \"@mui/material\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { IconProp } from \"@fortawesome/fontawesome-svg-core\";\r\n\r\nexport interface TemplateWindowProp {\r\n height?: any;\r\n width?: any;\r\n minWidth?: any;\r\n minHeight?: any;\r\n windowIcon?: IconProp;\r\n windowTitle?: string;\r\n onCloseCallBack?: any;\r\n}\r\n\r\ninterface WindowProps {\r\n children?: React.ReactNode;\r\n}\r\n\r\nexport const useWindow = (props: TemplateWindowProp) => {\r\n const [windowState, setWindowState] = useState(false);\r\n\r\n const Window: React.FC<WindowProps> = (windowProps: WindowProps) => {\r\n return (\r\n <Modal\r\n open={windowState}\r\n sx={{ zIndex: (theme) => theme.zIndex.drawer }}\r\n onClose={() => {\r\n if (!windowState && props?.onCloseCallBack) {\r\n props.onCloseCallBack();\r\n }\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n position: \"absolute\",\r\n top: \"50%\",\r\n left: \"50%\",\r\n maxHeight: \"90%\",\r\n transform: \"translate(-50%, -50%)\",\r\n height: props?.height || \"80%\",\r\n width: props?.width || \"90%\",\r\n minWidth: props.minWidth || 400,\r\n minHeight: props.minHeight || 200,\r\n overflow: \"hidden\",\r\n bgcolor: \"modalBackground.main\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n }}\r\n >\r\n <AppBar position=\"static\">\r\n <Toolbar variant=\"dense\">\r\n <FontAwesomeIcon\r\n icon={props?.windowIcon || \"window-maximize\"}\r\n style={{ marginRight: 5 }}\r\n />\r\n <Typography variant=\"h6\" color=\"inherit\" component=\"div\">\r\n {props?.windowTitle || \"window\"}\r\n </Typography>\r\n <div style={{ flexGrow: 1 }}></div>\r\n <IconButton\r\n onClick={() => {\r\n setWindowState(false);\r\n if (\r\n props.onCloseCallBack != undefined &&\r\n props.onCloseCallBack != null\r\n ) {\r\n props.onCloseCallBack();\r\n }\r\n }}\r\n color=\"secondary\"\r\n >\r\n <FontAwesomeIcon icon=\"xmark-square\" />\r\n </IconButton>\r\n </Toolbar>\r\n </AppBar>\r\n <Paper\r\n sx={{\r\n // flexGrow: 1,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n width: \"100%\",\r\n height: \"100%\",\r\n padding: 1,\r\n // justifyContent: \"center\",\r\n overflow: \"hidden\",\r\n }}\r\n >\r\n {windowProps?.children}\r\n </Paper>\r\n </Box>\r\n </Modal>\r\n );\r\n };\r\n return { windowState, setWindowState, Window };\r\n};\r\n","import { createSlice, PayloadAction } from \"@reduxjs/toolkit\";\r\n\r\nexport type CommonStores = {\r\n [key: string]: StoreMetaData;\r\n};\r\n\r\nexport interface CommonStoresInterface {\r\n stores: { [key: string]: StoreMetaData };\r\n storeKeys: Array<String>;\r\n isAutoLoadLoaded: boolean;\r\n}\r\n\r\ninterface setStoreDataProps {\r\n storeKey: string;\r\n data: Array<any>;\r\n}\r\n\r\nexport interface StoreMetaData {\r\n url: string;\r\n data: Array<any>;\r\n autoLoad: boolean;\r\n authority?: string;\r\n}\r\n\r\nexport const commonStoresInitialState: CommonStoresInterface = {\r\n stores: {},\r\n storeKeys: [],\r\n isAutoLoadLoaded: false,\r\n};\r\n\r\nconst commonStoreSlice = createSlice({\r\n name: \"loadingMask\",\r\n initialState: commonStoresInitialState,\r\n reducers: {\r\n setStoresMetaData: (state, action) => {\r\n state.stores = action.payload;\r\n state.storeKeys = Object.keys(action.payload);\r\n },\r\n setStoreData: (state, action: PayloadAction<setStoreDataProps>) => {\r\n state.stores[action.payload.storeKey].data = action.payload.data;\r\n },\r\n setAutoLoadLoaded: () => {\r\n state.isAutoLoadLoaded = true;\r\n },\r\n },\r\n});\r\n\r\nexport const { setStoreData, setStoresMetaData, setAutoLoadLoaded } =\r\n commonStoreSlice.actions;\r\nexport default commonStoreSlice.reducer;\r\n","import { useDispatch, useSelector } from \"react-redux\";\r\nimport useSession from \"./UseSession\";\r\nimport useAxios from \"./useAxios\";\r\nimport { setStoreData } from \"../redux/features/common/CommonStoreSlice\";\r\n\r\nexport type ApiActionsProps = {\r\n findAll?: string;\r\n commonStoreKey?: string;\r\n setData?: any;\r\n findById?: string;\r\n findByIdParamName?: string;\r\n save?: string;\r\n deleteById?: string;\r\n deleteByIdParamName?: string;\r\n};\r\n\r\nexport type ApiActions = {\r\n reloadData: (params?: any) => Promise<void>;\r\n saveRecord: (record: any) => Promise<any | null>;\r\n loadRecordById: (recordId: any) => Promise<any>;\r\n deleteRecordById: (recordId: any) => Promise<boolean>;\r\n};\r\n\r\nconst useApiActions: (apiActionsProps: ApiActionsProps) => ApiActions = (\r\n apiActionsProps: ApiActionsProps\r\n) => {\r\n const CommonStores = useSelector((state: any) => state.commonStores.stores);\r\n const dispatch = useDispatch();\r\n const session = useSession();\r\n const { handleGetRequest, handlePostRequest, handleDeleteRequest } =\r\n useAxios();\r\n const reloadData = async (params?: any) => {\r\n if (apiActionsProps?.commonStoreKey) {\r\n const storeKeys = Object.keys(CommonStores);\r\n for (const storeKey of storeKeys) {\r\n if (storeKey === apiActionsProps.commonStoreKey) {\r\n if (\r\n (CommonStores[storeKey]?.authority === undefined ||\r\n CommonStores[storeKey]?.authority === null ||\r\n session.isUserAuthorized(CommonStores[storeKey]?.authority)) &&\r\n CommonStores[storeKey]?.url != \"\"\r\n ) {\r\n await handleGetRequest({\r\n endPointURI: CommonStores[storeKey].url,\r\n showMask: false,\r\n successCallBkFn: (response: any) => {\r\n dispatch(setStoreData({ storeKey, data: response.data }));\r\n apiActionsProps.setData(response.data);\r\n },\r\n failureCallBkFn: () => {\r\n dispatch(setStoreData({ storeKey, data: [] }));\r\n apiActionsProps.setData([]);\r\n },\r\n });\r\n break;\r\n }\r\n }\r\n }\r\n } else if (apiActionsProps?.findAll) {\r\n await handleGetRequest({\r\n endPointURI: apiActionsProps.findAll,\r\n showMask: true,\r\n parameters: params || {},\r\n successCallBkFn: (response: any) => {\r\n apiActionsProps.setData(response.data);\r\n },\r\n });\r\n }\r\n };\r\n const saveRecord = async (record: any) => {\r\n let savedRecord = null;\r\n if (apiActionsProps?.save) {\r\n await handlePostRequest({\r\n endPointURI: apiActionsProps.save,\r\n data: record,\r\n showMask: true,\r\n successCallBkFn: (response: any) => {\r\n savedRecord = response.data;\r\n },\r\n });\r\n }\r\n return savedRecord;\r\n };\r\n const loadRecordById = async (recordId: any) => {\r\n let record: any = null;\r\n if (apiActionsProps?.findById) {\r\n const parameters: any = {};\r\n const keyParameterName = apiActionsProps?.findByIdParamName || \"id\";\r\n parameters[keyParameterName] = recordId;\r\n await handleGetRequest({\r\n endPointURI: apiActionsProps.findById,\r\n showMask: true,\r\n parameters,\r\n successCallBkFn: (response: any) => {\r\n record = response.data;\r\n },\r\n });\r\n }\r\n return record;\r\n };\r\n const deleteRecordById = async (recordId: any) => {\r\n let result = true;\r\n if (apiActionsProps?.deleteById) {\r\n const parameters: any = {};\r\n const keyParameterName = apiActionsProps?.deleteByIdParamName || \"id\";\r\n parameters[keyParameterName] = recordId;\r\n await handleDeleteRequest({\r\n endPointURI: apiActionsProps.deleteById,\r\n showMask: true,\r\n parameters,\r\n successCallBkFn: () => {\r\n result = true;\r\n },\r\n failureCallBkFn: () => {\r\n result = false;\r\n },\r\n });\r\n }\r\n return result;\r\n };\r\n return { reloadData, loadRecordById, saveRecord, deleteRecordById };\r\n};\r\n\r\nexport default useApiActions;\r\n","import { TextField, TextFieldProps } from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nconst TemplateTextField: React.FC<Omit<TextFieldProps, \"outlined\">> = (\r\n props\r\n) => {\r\n const { t } = useTranslation();\r\n return (\r\n <TextField\r\n {...props}\r\n slotProps={{ inputLabel: { shrink: true } }}\r\n label={<>{props?.label ? t(props.label) : \"\"}</>}\r\n />\r\n );\r\n};\r\n\r\nexport default TemplateTextField;\r\n","import * as React from \"react\";\r\nimport List from \"@mui/material/List\";\r\nimport Card from \"@mui/material/Card\";\r\nimport CardHeader from \"@mui/material/CardHeader\";\r\nimport ListItemText from \"@mui/material/ListItemText\";\r\nimport ListItemIcon from \"@mui/material/ListItemIcon\";\r\nimport Checkbox from \"@mui/material/Checkbox\";\r\nimport Button from \"@mui/material/Button\";\r\nimport Divider from \"@mui/material/Divider\";\r\nimport { Box, Grid2, ListItemButton } from \"@mui/material\";\r\nimport TemplateTextField from \"./DataEntryTemplates/TemplateDataForm/FormFields/TemplateTextField\";\r\n\r\nfunction not(a, b) {\r\n return a.filter((value) => b.indexOf(value) === -1);\r\n}\r\n\r\nfunction intersection(a, b) {\r\n return a.filter((value) => b.indexOf(value) !== -1);\r\n}\r\n\r\nfunction union(a, b) {\r\n return [...a, ...not(b, a)];\r\n}\r\n\r\nexport type TransferListProps = {\r\n valueField: string;\r\n displayField: string;\r\n options: Array<any>;\r\n selectedOptions: Array<any>;\r\n setSelection: any;\r\n};\r\n\r\nconst TransferList: React.FC<TransferListProps> = ({\r\n valueField = \"id\",\r\n displayField = \"name\",\r\n options = [],\r\n selectedOptions = [],\r\n setSelection,\r\n}) => {\r\n const [checked, setChecked] = React.useState([]);\r\n const [left, setLeft] = React.useState<Array<any>>([]);\r\n const [right, setRight] = React.useState<Array<any>>([]);\r\n const [leftFilterValue, setLeftFilterValue] = React.useState<string>(\"\");\r\n const [rightFilterValue, setRightFilterValue] = React.useState<string>(\"\");\r\n\r\n const leftChecked = intersection(checked, left);\r\n const rightChecked = intersection(checked, right);\r\n\r\n React.useEffect(() => {\r\n if (options) {\r\n setLeft([...options]);\r\n }\r\n }, [options]);\r\n React.useEffect(() => {\r\n if (selectedOptions) {\r\n setRight([...selectedOptions]);\r\n }\r\n }, [selectedOptions]);\r\n\r\n const handleToggle = (value) => () => {\r\n const currentIndex = checked.indexOf(value);\r\n const newChecked = [...checked];\r\n\r\n if (currentIndex === -1) {\r\n newChecked.push(value);\r\n } else {\r\n newChecked.splice(currentIndex, 1);\r\n }\r\n\r\n setChecked(newChecked);\r\n };\r\n\r\n const numberOfChecked = (items) => intersection(checked, items).length;\r\n\r\n const handleToggleAll = (items) => () => {\r\n if (numberOfChecked(items) === items.length) {\r\n setChecked(not(checked, items));\r\n } else {\r\n setChecked(union(checked, items));\r\n }\r\n };\r\n\r\n const handleCheckedRight = () => {\r\n setRight((oldState) => {\r\n let newState = right.concat(leftChecked);\r\n setSelection(newState);\r\n return newState;\r\n });\r\n setLeft(not(left, leftChecked));\r\n setChecked(not(checked, leftChecked));\r\n };\r\n\r\n const handleCheckedLeft = () => {\r\n setLeft(left.concat(rightChecked));\r\n setRight((oldState) => {\r\n let newState = not(right, rightChecked);\r\n setSelection(newState);\r\n return newState;\r\n });\r\n setChecked(not(checked, rightChecked));\r\n };\r\n\r\n const customList = (\r\n title: string,\r\n unfilteredItems: Array<any>,\r\n side: \"left\" | \"right\"\r\n ) => { \r\n const items = unfilteredItems.filter((option: any) => {\r\n \r\n if (option[displayField]) {\r\n const value: string = option[displayField];\r\n if (\r\n side === \"left\" &&\r\n value\r\n .toLocaleLowerCase()\r\n .includes(leftFilterValue.toLocaleLowerCase())\r\n ) {\r\n return true;\r\n } else if (\r\n side === \"right\" &&\r\n value\r\n .toLocaleLowerCase()\r\n .includes(rightFilterValue.toLocaleLowerCase())\r\n ) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n });\r\n return (\r\n <Card sx={{ height: \"100%\" }}>\r\n <CardHeader\r\n sx={{ px: 2, py: 1 }}\r\n avatar={\r\n <Checkbox\r\n onClick={handleToggleAll(items)}\r\n checked={\r\n numberOfChecked(items) === items.length && items.length !== 0\r\n }\r\n indeterminate={\r\n numberOfChecked(items) !== items.length &&\r\n numberOfChecked(items) !== 0\r\n }\r\n disabled={items.length === 0}\r\n inputProps={{\r\n \"aria-label\": \"all items selected\",\r\n }}\r\n />\r\n }\r\n title={title}\r\n subheader={`${numberOfChecked(unfilteredItems)} / ${\r\n unfilteredItems.length\r\n } Selected`}\r\n />\r\n <Box sx={{ width: \"100%\", padding: 1 }}>\r\n <TemplateTextField\r\n fullWidth\r\n label=\"search\"\r\n value={side === \"left\" ? leftFilterValue : rightFilterValue}\r\n onChange={(event) => {\r\n if (side === \"left\") {\r\n setLeftFilterValue(event.target.value);\r\n } else {\r\n setRightFilterValue(event.target.value);\r\n }\r\n }}\r\n />\r\n </Box>\r\n <Divider />\r\n <List\r\n sx={{\r\n width: \"100%\",\r\n height: \"100%\",\r\n bgcolor: \"secondary\",\r\n overflow: \"auto\",\r\n }}\r\n dense\r\n component=\"div\"\r\n role=\"list\"\r\n >\r\n {items.map((value) => {\r\n const labelId = `transfer-list-all-item-${value[valueField]}-label`;\r\n\r\n return (\r\n <ListItemButton\r\n key={value[valueField]}\r\n role=\"listitem\"\r\n onClick={handleToggle(value)}\r\n sx={{ cursor: \"pointer\" }}\r\n >\r\n <ListItemIcon>\r\n <Checkbox\r\n checked={checked.indexOf(value) !== -1}\r\n tabIndex={-1}\r\n disableRipple\r\n />\r\n </ListItemIcon>\r\n <ListItemText\r\n id={value[valueField]}\r\n primary={value[displayField]}\r\n />\r\n </ListItemButton>\r\n );\r\n })}\r\n </List>\r\n </Card>\r\n );\r\n };\r\n return (\r\n <Grid2\r\n container\r\n spacing={2}\r\n sx={{\r\n flexGrow: 1,\r\n overflow: \"auto\",\r\n margin: 1,\r\n display: \"flex\",\r\n width: \"100%\",\r\n }}\r\n justifyContent=\"center\"\r\n alignItems=\"center\"\r\n >\r\n <Grid2 sx={{ height: \"100%\", flex: 1 }}>\r\n {customList(\"Available Items\", left, \"left\")}\r\n </Grid2>\r\n <Grid2>\r\n <Grid2 container direction=\"column\" alignItems=\"center\">\r\n <Button\r\n sx={{ my: 0.5 }}\r\n variant=\"outlined\"\r\n size=\"small\"\r\n onClick={handleCheckedRight}\r\n disabled={leftChecked.length === 0}\r\n aria-label=\"move selected right\"\r\n >\r\n &gt;\r\n </Button>\r\n <Button\r\n sx={{ my: 0.5 }}\r\n variant=\"outlined\"\r\n size=\"small\"\r\n onClick={handleCheckedLeft}\r\n disabled={rightChecked.length === 0}\r\n aria-label=\"move selected left\"\r\n >\r\n &lt;\r\n </Button>\r\n </Grid2>\r\n </Grid2>\r\n <Grid2 sx={{ height: \"100%\", flex: 1 }}>\r\n {customList(\"Currently Selected\", right, \"right\")}\r\n </Grid2>\r\n </Grid2>\r\n );\r\n};\r\n\r\nexport default TransferList;\r\n","import { BarChart } from \"@mui/x-charts\";\r\nimport { WidgetProps } from \"../DashboardViewer\";\r\n\r\n\r\nconst TemplateBarChart: React.FC<WidgetProps> = (props) => {\r\n return (\r\n <BarChart\r\n dataset={props.data}\r\n xAxis={[\r\n {\r\n dataKey: props.valueField,\r\n scaleType: \"band\",\r\n label: props.valueLabel,\r\n },\r\n ]}\r\n series={props.labelField?.split(\",\").map((labelField) => {\r\n return { dataKey: labelField, label: labelField };\r\n })}\r\n />\r\n );\r\n};\r\n\r\nexport default TemplateBarChart;\r\n","import { Box, Paper, Typography } from \"@mui/material\";\r\nimport { SingleRecordWidgetProps } from \"../DashboardViewer\";\r\n\r\n\r\nconst TemplateDataCard: React.FC<SingleRecordWidgetProps> = (props: any) => {\r\n return (\r\n <Paper\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n height: 150,\r\n padding: 1,\r\n flexGrow: 1,\r\n justifyContent: \"center\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n width: \"100%\",\r\n justifyContent: \"space-evenly\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <div>{props.record[props.valueField]}</div>\r\n </Box>\r\n <Typography sx={{ fontSize: 16, fontWeight: \"bold\" }}>\r\n {props.record[props.labelField]}\r\n </Typography>\r\n </Paper>\r\n );\r\n};\r\n\r\nexport default TemplateDataCard;\r\n","import { Gauge } from \"@mui/x-charts\";\r\nimport { SingleRecordWidgetProps } from \"../DashboardViewer\";\r\nimport { Typography } from \"@mui/material\";\r\n\r\nconst TemplateGauge: React.FC<SingleRecordWidgetProps> = (props: any) => {\r\n return (\r\n <>\r\n <Typography sx={{ fontSize: 16, fontWeight: \"bold\" }}>\r\n {props.record[props.labelField]}\r\n </Typography>\r\n <Gauge\r\n width={200}\r\n height={200}\r\n value={props.record[props.valueField]}\r\n valueMax={props.total}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default TemplateGauge;\r\n","import { LineChart } from \"@mui/x-charts\";\r\nimport { WidgetProps } from \"../DashboardViewer\";\r\n\r\nconst TemplateLineChart: React.FC<WidgetProps> = (props) => {\r\n return (\r\n <LineChart\r\n dataset={props.data}\r\n xAxis={[\r\n {\r\n dataKey: props.valueField,\r\n scaleType: \"band\",\r\n label: props.valueLabel,\r\n },\r\n ]}\r\n series={props.labelField?.split(\",\").map((labelField) => {\r\n return { dataKey: labelField, label: labelField };\r\n })}\r\n />\r\n );\r\n};\r\n\r\nexport default TemplateLineChart;\r\n","import * as React from \"react\";\r\nimport LinearProgress, {\r\n LinearProgressProps,\r\n} from \"@mui/material/LinearProgress\";\r\nimport Typography from \"@mui/material/Typography\";\r\nimport Box from \"@mui/material/Box\";\r\nimport { SingleRecordWidgetProps } from \"../DashboardViewer\";\r\n\r\nfunction LinearProgressWithLabel(\r\n props: LinearProgressProps & { value: number }\r\n) {\r\n return (\r\n <Box sx={{ display: \"flex\", alignItems: \"center\" }}>\r\n <Box sx={{ width: \"100%\", mr: 1 }}>\r\n <LinearProgress variant=\"determinate\" {...props} />\r\n </Box>\r\n <Box sx={{ minWidth: 35 }}>\r\n <Typography\r\n variant=\"body2\"\r\n sx={{ color: \"text.secondary\" }}\r\n >{`${Math.round(props.value)}%`}</Typography>\r\n </Box>\r\n </Box>\r\n );\r\n}\r\n\r\nconst TemplateLineProgress: React.FC<SingleRecordWidgetProps> = (\r\n props: any\r\n) => {\r\n return (\r\n <Box sx={{ width: \"100%\" }}>\r\n <Typography sx={{ fontSize: 16, fontWeight: \"bold\" }}>\r\n {props.record[props.labelField]}\r\n </Typography>\r\n <LinearProgressWithLabel\r\n value={100 * (props.record[props.valueField] / props.total)}\r\n />\r\n </Box>\r\n );\r\n};\r\n\r\nexport default TemplateLineProgress;\r\n","import { PieChart } from \"@mui/x-charts/PieChart\";\r\nimport { WidgetProps } from \"../DashboardViewer\";\r\n\r\nconst TemplatePieChart: React.FC<WidgetProps> = (props) => {\r\n // construct data object\r\n const chartData = props.data.map((record: any, index: any) => {\r\n return {\r\n id: index,\r\n value: record[props.valueField],\r\n label: record[props.labelField] + \"\",\r\n };\r\n });\r\n return (\r\n <PieChart\r\n series={[\r\n {\r\n data: chartData,\r\n },\r\n ]}\r\n />\r\n );\r\n};\r\n\r\nexport default TemplatePieChart;\r\n","import { Checkbox, FormControlLabel } from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ninterface CheckBoxProps {\r\n value: any;\r\n disabled?: boolean;\r\n required?: boolean;\r\n label: string;\r\n checkedValue?: any;\r\n unCheckedValue?: any;\r\n onChangeCallBack: Function;\r\n sx?: any;\r\n}\r\n\r\nconst CheckBox: React.FC<CheckBoxProps> = (props) => {\r\n const { t } = useTranslation();\r\n return (\r\n <FormControlLabel\r\n sx={props.sx}\r\n disabled={props.disabled || false}\r\n required={props.required || false}\r\n control={\r\n <Checkbox\r\n checked={\r\n props?.checkedValue == props.value ||\r\n props.value === \"true\" ||\r\n props.value == \"1\"\r\n ? true\r\n : false\r\n }\r\n onChange={(e) => {\r\n if (\r\n props.onChangeCallBack !== undefined &&\r\n props.onChangeCallBack != null\r\n ) {\r\n if (e.target.checked) {\r\n if (\r\n props.checkedValue !== undefined &&\r\n props.checkedValue != null\r\n ) {\r\n props.onChangeCallBack(props.checkedValue);\r\n } else {\r\n props.onChangeCallBack(true);\r\n }\r\n } else {\r\n if (\r\n props.unCheckedValue !== undefined &&\r\n props.unCheckedValue != null\r\n ) {\r\n props.onChangeCallBack(props.unCheckedValue);\r\n } else {\r\n props.onChangeCallBack(false);\r\n }\r\n }\r\n }\r\n }}\r\n />\r\n }\r\n label={t(props.label)}\r\n />\r\n );\r\n};\r\n\r\nexport default CheckBox;\r\n","import { useSelector } from \"react-redux\";\r\nimport { Autocomplete, Popper, TextField } from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ninterface ComboBoxProps {\r\n value: any;\r\n onChangeCallBack: Function;\r\n label: string;\r\n disabled?: boolean;\r\n required?: boolean;\r\n options: Array<any>;\r\n errorMessage?: any;\r\n displayField: string;\r\n valueField: string;\r\n sx?: any;\r\n}\r\n\r\nconst ComboBox: React.FC<ComboBoxProps> = (props) => {\r\n const AppLayoutState = useSelector((state: any) => state.AppLayout);\r\n const { t } = useTranslation();\r\n const getValue = (v: string) => {\r\n for (let option of props.options) {\r\n if (option[props.valueField] == v) {\r\n return option;\r\n }\r\n }\r\n return null;\r\n };\r\n return (\r\n <Autocomplete\r\n sx={props.sx}\r\n value={getValue(props.value)}\r\n options={props.options}\r\n disabled={props.disabled}\r\n onChange={(event, newValue) => {\r\n if (\r\n props.onChangeCallBack !== undefined &&\r\n props.onChangeCallBack != null\r\n ) {\r\n if (newValue != null) {\r\n let v = newValue[props.valueField];\r\n props.onChangeCallBack(v, newValue);\r\n } else {\r\n props.onChangeCallBack(null, null);\r\n }\r\n }\r\n }}\r\n clearOnBlur\r\n handleHomeEndKeys\r\n getOptionLabel={(option) => {\r\n return option != null ? t(option[props.displayField]) : \"\";\r\n }}\r\n renderOption={(props1, option) => {\r\n return (\r\n <li {...props1}>\r\n {option != null ? t(option[props.displayField]) : \"\"}\r\n </li>\r\n );\r\n }}\r\n slots={{\r\n popper: (props: any) => (\r\n <Popper\r\n {...props}\r\n style={{ ...props.style, direction: AppLayoutState.appDirection }}\r\n />\r\n ),\r\n }}\r\n renderInput={(params) => {\r\n return (\r\n <TextField\r\n {...params}\r\n required={props.required || false}\r\n variant=\"outlined\"\r\n InputLabelProps={{ shrink: true }}\r\n label={t(props.label)}\r\n error={\r\n props.errorMessage != null && props.errorMessage !== undefined\r\n ? true\r\n : false\r\n }\r\n helperText={\r\n props.errorMessage != null && props.errorMessage !== undefined\r\n ? t(props.errorMessage)\r\n : \"\"\r\n }\r\n />\r\n );\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default ComboBox;\r\n","export const DATE_FORMAT = \"YYYY-MM-DD\";\r\nexport const DATE_TIME_FORMAT = \"YYYY-MM-DD HH:mm:ss\";\r\nexport const LIGHT_THEME_INITIAL_MAIN_COLOR = \"#37505C\";\r\nexport const LIGHT_THEME_INITIAL_SECANDARY_COLOR = \"#ff6d00\";\r\nexport const DARK_THEME_INITIAL_MAIN_COLOR = \"#ea690e\";\r\nexport const DARK_THEME_INITIAL_SECANDARY_COLOR = \"#74776B\";\r\n","import { DatePicker, LocalizationProvider } from \"@mui/x-date-pickers\";\r\nimport { AdapterMoment } from \"@mui/x-date-pickers/AdapterMoment\";\r\nimport moment from \"moment\";\r\nimport { DATE_FORMAT } from \"../../../../../util/constants\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ninterface DatefieldProps {\r\n value: string | null;\r\n label: string;\r\n disabled?: boolean;\r\n required?: boolean;\r\n sx?: any;\r\n format?: string;\r\n errorMessage?: any;\r\n onChangeCallBack: Function;\r\n [x: string | number | symbol]: unknown;\r\n}\r\n\r\nconst Datefield: React.FC<DatefieldProps> = (props) => {\r\n const { t } = useTranslation();\r\n return (\r\n <LocalizationProvider dateAdapter={AdapterMoment}>\r\n <DatePicker\r\n value={\r\n props.value != null && props.value !== undefined && props.value !== \"\"\r\n ? moment(props.value, props?.format || DATE_FORMAT)\r\n : null\r\n }\r\n sx={props.sx}\r\n label={t(props.label)}\r\n format={props?.format || DATE_FORMAT}\r\n disabled={props.disabled}\r\n onChange={(momentValue) => {\r\n let v = null;\r\n if (momentValue != null && momentValue.isValid()) {\r\n v = momentValue.format(props?.format || DATE_FORMAT);\r\n }\r\n if (\r\n props.onChangeCallBack !== undefined &&\r\n props.onChangeCallBack != null\r\n ) {\r\n props.onChangeCallBack(v);\r\n }\r\n }}\r\n slotProps={{\r\n textField: {\r\n InputLabelProps: { shrink: true },\r\n variant: \"outlined\",\r\n required: props.required,\r\n error:\r\n props.errorMessage !== undefined && props.errorMessage != null,\r\n helperText:\r\n props.errorMessage !== undefined && props.errorMessage != null ? (\r\n <>{t(props.errorMessage)}</>\r\n ) : (\r\n <></>\r\n ),\r\n },\r\n }}\r\n />\r\n </LocalizationProvider>\r\n );\r\n};\r\n\r\nexport default Datefield;\r\n","import { DateTimePicker, LocalizationProvider } from \"@mui/x-date-pickers\";\r\nimport { AdapterMoment } from \"@mui/x-date-pickers/AdapterMoment\";\r\nimport moment from \"moment\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { DATE_TIME_FORMAT } from \"../../../../../util/constants\";\r\n\r\ninterface DatetimeFieldProps {\r\n value: string | null;\r\n label: string;\r\n disabled?: boolean;\r\n required?: boolean;\r\n format?: string;\r\n sx?: any;\r\n errorMessage?: any;\r\n onChangeCallBack: Function;\r\n [x: string | number | symbol]: unknown;\r\n}\r\n\r\nconst DatetimeField: React.FC<DatetimeFieldProps> = (props) => {\r\n const { t } = useTranslation();\r\n return (\r\n <LocalizationProvider dateAdapter={AdapterMoment}>\r\n <DateTimePicker\r\n value={\r\n props.value != null && props.value !== undefined && props.value !== \"\"\r\n ? moment(props.value, props?.format || DATE_TIME_FORMAT)\r\n : null\r\n }\r\n label={t(props.label)}\r\n sx={props.sx}\r\n format={props?.format || DATE_TIME_FORMAT}\r\n disabled={props.disabled}\r\n onChange={(momentValue) => {\r\n let v = null;\r\n if (momentValue != null && momentValue.isValid()) {\r\n v = momentValue.format(props?.format || DATE_TIME_FORMAT);\r\n }\r\n if (\r\n props.onChangeCallBack !== undefined &&\r\n props.onChangeCallBack != null\r\n ) {\r\n props.onChangeCallBack(v);\r\n }\r\n }}\r\n slotProps={{\r\n textField: {\r\n variant: \"outlined\",\r\n required: props.required,\r\n error:\r\n props.errorMessage !== undefined && props.errorMessage != null,\r\n helperText:\r\n props.errorMessage !== undefined && props.errorMessage != null ? (\r\n <>{t(props.errorMessage)}</>\r\n ) : (\r\n <></>\r\n ),\r\n },\r\n }}\r\n />\r\n </LocalizationProvider>\r\n );\r\n};\r\n\r\nexport default DatetimeField;\r\n","/**\n * WARNING: Don't import this directly. It's imported by the code generated by\n * `@mui/interal-babel-plugin-minify-errors`. Make sure to always use string literals in `Error`\n * constructors to ensure the plugin works as expected. Supported patterns include:\n * throw new Error('My message');\n * throw new Error(`My message: ${foo}`);\n * throw new Error(`My message: ${foo}` + 'another string');\n * ...\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code, ...args) {\n const url = new URL(`https://mui.com/production-error/?code=${code}`);\n args.forEach(arg => url.searchParams.append('args[]', arg));\n return `Minified MUI error #${code}; visit ${url} for the full message.`;\n}","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * @license React\n * react-is.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\nSymbol.for(\"react.provider\");\nvar REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\nfunction typeOf(object) {\n if (\"object\" === typeof object && null !== object) {\n var $$typeof = object.$$typeof;\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n switch (((object = object.type), object)) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n case REACT_VIEW_TRANSITION_TYPE:\n return object;\n default:\n switch (((object = object && object.$$typeof), object)) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n return object;\n case REACT_CONSUMER_TYPE:\n return object;\n default:\n return $$typeof;\n }\n }\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n}\nexports.ContextConsumer = REACT_CONSUMER_TYPE;\nexports.ContextProvider = REACT_CONTEXT_TYPE;\nexports.Element = REACT_ELEMENT_TYPE;\nexports.ForwardRef = REACT_FORWARD_REF_TYPE;\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.Lazy = REACT_LAZY_TYPE;\nexports.Memo = REACT_MEMO_TYPE;\nexports.Portal = REACT_PORTAL_TYPE;\nexports.Profiler = REACT_PROFILER_TYPE;\nexports.StrictMode = REACT_STRICT_MODE_TYPE;\nexports.Suspense = REACT_SUSPENSE_TYPE;\nexports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nexports.isContextConsumer = function (object) {\n return typeOf(object) === REACT_CONSUMER_TYPE;\n};\nexports.isContextProvider = function (object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n};\nexports.isElement = function (object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n};\nexports.isForwardRef = function (object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n};\nexports.isFragment = function (object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n};\nexports.isLazy = function (object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n};\nexports.isMemo = function (object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n};\nexports.isPortal = function (object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n};\nexports.isProfiler = function (object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n};\nexports.isStrictMode = function (object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n};\nexports.isSuspense = function (object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n};\nexports.isSuspenseList = function (object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n};\nexports.isValidElementType = function (type) {\n return \"string\" === typeof type ||\n \"function\" === typeof type ||\n type === REACT_FRAGMENT_TYPE ||\n type === REACT_PROFILER_TYPE ||\n type === REACT_STRICT_MODE_TYPE ||\n type === REACT_SUSPENSE_TYPE ||\n type === REACT_SUSPENSE_LIST_TYPE ||\n (\"object\" === typeof type &&\n null !== type &&\n (type.$$typeof === REACT_LAZY_TYPE ||\n type.$$typeof === REACT_MEMO_TYPE ||\n type.$$typeof === REACT_CONTEXT_TYPE ||\n type.$$typeof === REACT_CONSUMER_TYPE ||\n type.$$typeof === REACT_FORWARD_REF_TYPE ||\n type.$$typeof === REACT_CLIENT_REFERENCE ||\n void 0 !== type.getModuleId))\n ? !0\n : !1;\n};\nexports.typeOf = typeOf;\n","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function typeOf(object) {\n if (\"object\" === typeof object && null !== object) {\n var $$typeof = object.$$typeof;\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n switch (((object = object.type), object)) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n case REACT_VIEW_TRANSITION_TYPE:\n return object;\n default:\n switch (((object = object && object.$$typeof), object)) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n return object;\n case REACT_CONSUMER_TYPE:\n return object;\n default:\n return $$typeof;\n }\n }\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n }\n var REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\n exports.ContextConsumer = REACT_CONSUMER_TYPE;\n exports.ContextProvider = REACT_CONTEXT_TYPE;\n exports.Element = REACT_ELEMENT_TYPE;\n exports.ForwardRef = REACT_FORWARD_REF_TYPE;\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.Lazy = REACT_LAZY_TYPE;\n exports.Memo = REACT_MEMO_TYPE;\n exports.Portal = REACT_PORTAL_TYPE;\n exports.Profiler = REACT_PROFILER_TYPE;\n exports.StrictMode = REACT_STRICT_MODE_TYPE;\n exports.Suspense = REACT_SUSPENSE_TYPE;\n exports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;\n exports.isContextConsumer = function (object) {\n return typeOf(object) === REACT_CONSUMER_TYPE;\n };\n exports.isContextProvider = function (object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n };\n exports.isElement = function (object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n };\n exports.isForwardRef = function (object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n };\n exports.isFragment = function (object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n };\n exports.isLazy = function (object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n };\n exports.isMemo = function (object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n };\n exports.isPortal = function (object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n };\n exports.isProfiler = function (object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n };\n exports.isStrictMode = function (object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n };\n exports.isSuspense = function (object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n };\n exports.isSuspenseList = function (object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n };\n exports.isValidElementType = function (type) {\n return \"string\" === typeof type ||\n \"function\" === typeof type ||\n type === REACT_FRAGMENT_TYPE ||\n type === REACT_PROFILER_TYPE ||\n type === REACT_STRICT_MODE_TYPE ||\n type === REACT_SUSPENSE_TYPE ||\n type === REACT_SUSPENSE_LIST_TYPE ||\n (\"object\" === typeof type &&\n null !== type &&\n (type.$$typeof === REACT_LAZY_TYPE ||\n type.$$typeof === REACT_MEMO_TYPE ||\n type.$$typeof === REACT_CONTEXT_TYPE ||\n type.$$typeof === REACT_CONSUMER_TYPE ||\n type.$$typeof === REACT_FORWARD_REF_TYPE ||\n type.$$typeof === REACT_CLIENT_REFERENCE ||\n void 0 !== type.getModuleId))\n ? !0\n : !1;\n };\n exports.typeOf = typeOf;\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import * as React from 'react';\nimport { isValidElementType } from 'react-is';\n\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n if (typeof item !== 'object' || item === null) {\n return false;\n }\n const prototype = Object.getPrototypeOf(item);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n if (/*#__PURE__*/React.isValidElement(source) || isValidElementType(source) || !isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\n\n/**\n * Merge objects deeply.\n * It will shallow copy React elements.\n *\n * If `options.clone` is set to `false` the source object will be merged directly into the target object.\n *\n * @example\n * ```ts\n * deepmerge({ a: { b: 1 }, d: 2 }, { a: { c: 2 }, d: 4 });\n * // => { a: { b: 1, c: 2 }, d: 4 }\n * ````\n *\n * @param target The target object.\n * @param source The source object.\n * @param options The merge options.\n * @param options.clone Set to `false` to merge the source object directly into the target object.\n * @returns The merged object.\n */\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? {\n ...target\n } : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n if (/*#__PURE__*/React.isValidElement(source[key]) || isValidElementType(source[key])) {\n output[key] = source[key];\n } else if (isPlainObject(source[key]) &&\n // Avoid prototype pollution\n Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","// Sorted ASC by size. That's important.\n// It can't be configured as it's used statically for propTypes.\nexport const breakpointKeys = ['xs', 'sm', 'md', 'lg', 'xl'];\nconst sortBreakpointsValues = values => {\n const breakpointsAsArray = Object.keys(values).map(key => ({\n key,\n val: values[key]\n })) || [];\n // Sort in ascending order\n breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);\n return breakpointsAsArray.reduce((acc, obj) => {\n return {\n ...acc,\n [obj.key]: obj.val\n };\n }, {});\n};\n\n// Keep in mind that @media is inclusive by the CSS specification.\nexport default function createBreakpoints(breakpoints) {\n const {\n // The breakpoint **start** at this value.\n // For instance with the first breakpoint xs: [xs, sm).\n values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n },\n unit = 'px',\n step = 5,\n ...other\n } = breakpoints;\n const sortedValues = sortBreakpointsValues(values);\n const keys = Object.keys(sortedValues);\n function up(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (min-width:${value}${unit})`;\n }\n function down(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (max-width:${value - step / 100}${unit})`;\n }\n function between(start, end) {\n const endIndex = keys.indexOf(end);\n return `@media (min-width:${typeof values[start] === 'number' ? values[start] : start}${unit}) and ` + `(max-width:${(endIndex !== -1 && typeof values[keys[endIndex]] === 'number' ? values[keys[endIndex]] : end) - step / 100}${unit})`;\n }\n function only(key) {\n if (keys.indexOf(key) + 1 < keys.length) {\n return between(key, keys[keys.indexOf(key) + 1]);\n }\n return up(key);\n }\n function not(key) {\n // handle first and last key separately, for better readability\n const keyIndex = keys.indexOf(key);\n if (keyIndex === 0) {\n return up(keys[1]);\n }\n if (keyIndex === keys.length - 1) {\n return down(keys[keyIndex]);\n }\n return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');\n }\n return {\n keys,\n values: sortedValues,\n up,\n down,\n between,\n only,\n not,\n unit,\n ...other\n };\n}","const shape = {\n borderRadius: 4\n};\nexport default shape;","import PropTypes from 'prop-types';\nconst responsivePropType = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) : {};\nexport default responsivePropType;","import deepmerge from '@mui/utils/deepmerge';\nfunction merge(acc, item) {\n if (!item) {\n return acc;\n }\n return deepmerge(acc, item, {\n clone: false // No need to clone deep, it's way faster.\n });\n}\nexport default merge;","import PropTypes from 'prop-types';\nimport deepmerge from '@mui/utils/deepmerge';\nimport merge from \"../merge/index.js\";\nimport { isCqShorthand, getContainerQuery } from \"../cssContainerQueries/index.js\";\n\n// The breakpoint **start** at this value.\n// For instance with the first breakpoint xs: [xs, sm[.\nexport const values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n};\nconst defaultBreakpoints = {\n // Sorted ASC by size. That's important.\n // It can't be configured as it's used statically for propTypes.\n keys: ['xs', 'sm', 'md', 'lg', 'xl'],\n up: key => `@media (min-width:${values[key]}px)`\n};\nconst defaultContainerQueries = {\n containerQueries: containerName => ({\n up: key => {\n let result = typeof key === 'number' ? key : values[key] || key;\n if (typeof result === 'number') {\n result = `${result}px`;\n }\n return containerName ? `@container ${containerName} (min-width:${result})` : `@container (min-width:${result})`;\n }\n })\n};\nexport function handleBreakpoints(props, propValue, styleFromPropValue) {\n const theme = props.theme || {};\n if (Array.isArray(propValue)) {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return propValue.reduce((acc, item, index) => {\n acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);\n return acc;\n }, {});\n }\n if (typeof propValue === 'object') {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return Object.keys(propValue).reduce((acc, breakpoint) => {\n if (isCqShorthand(themeBreakpoints.keys, breakpoint)) {\n const containerKey = getContainerQuery(theme.containerQueries ? theme : defaultContainerQueries, breakpoint);\n if (containerKey) {\n acc[containerKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n }\n }\n // key is breakpoint\n else if (Object.keys(themeBreakpoints.values || values).includes(breakpoint)) {\n const mediaKey = themeBreakpoints.up(breakpoint);\n acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n } else {\n const cssKey = breakpoint;\n acc[cssKey] = propValue[cssKey];\n }\n return acc;\n }, {});\n }\n const output = styleFromPropValue(propValue);\n return output;\n}\nfunction breakpoints(styleFunction) {\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const newStyleFunction = props => {\n const theme = props.theme || {};\n const base = styleFunction(props);\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n const extended = themeBreakpoints.keys.reduce((acc, key) => {\n if (props[key]) {\n acc = acc || {};\n acc[themeBreakpoints.up(key)] = styleFunction({\n theme,\n ...props[key]\n });\n }\n return acc;\n }, null);\n return merge(base, extended);\n };\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? {\n ...styleFunction.propTypes,\n xs: PropTypes.object,\n sm: PropTypes.object,\n md: PropTypes.object,\n lg: PropTypes.object,\n xl: PropTypes.object\n } : {};\n newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl', ...styleFunction.filterProps];\n return newStyleFunction;\n}\nexport function createEmptyBreakpointObject(breakpointsInput = {}) {\n const breakpointsInOrder = breakpointsInput.keys?.reduce((acc, key) => {\n const breakpointStyleKey = breakpointsInput.up(key);\n acc[breakpointStyleKey] = {};\n return acc;\n }, {});\n return breakpointsInOrder || {};\n}\nexport function removeUnusedBreakpoints(breakpointKeys, style) {\n return breakpointKeys.reduce((acc, key) => {\n const breakpointOutput = acc[key];\n const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0;\n if (isBreakpointUnused) {\n delete acc[key];\n }\n return acc;\n }, style);\n}\nexport function mergeBreakpointsInOrder(breakpointsInput, ...styles) {\n const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);\n const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});\n return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);\n}\n\n// compute base for responsive values; e.g.,\n// [1,2,3] => {xs: true, sm: true, md: true}\n// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}\nexport function computeBreakpointsBase(breakpointValues, themeBreakpoints) {\n // fixed value\n if (typeof breakpointValues !== 'object') {\n return {};\n }\n const base = {};\n const breakpointsKeys = Object.keys(themeBreakpoints);\n if (Array.isArray(breakpointValues)) {\n breakpointsKeys.forEach((breakpoint, i) => {\n if (i < breakpointValues.length) {\n base[breakpoint] = true;\n }\n });\n } else {\n breakpointsKeys.forEach(breakpoint => {\n if (breakpointValues[breakpoint] != null) {\n base[breakpoint] = true;\n }\n });\n }\n return base;\n}\nexport function resolveBreakpointValues({\n values: breakpointValues,\n breakpoints: themeBreakpoints,\n base: customBase\n}) {\n const base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints);\n const keys = Object.keys(base);\n if (keys.length === 0) {\n return breakpointValues;\n }\n let previous;\n return keys.reduce((acc, breakpoint, i) => {\n if (Array.isArray(breakpointValues)) {\n acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];\n previous = i;\n } else if (typeof breakpointValues === 'object') {\n acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous];\n previous = breakpoint;\n } else {\n acc[breakpoint] = breakpointValues;\n }\n return acc;\n }, {});\n}\nexport default breakpoints;","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/**\n * For using in `sx` prop to sort the breakpoint from low to high.\n * Note: this function does not work and will not support multiple units.\n * e.g. input: { '@container (min-width:300px)': '1rem', '@container (min-width:40rem)': '2rem' }\n * output: { '@container (min-width:40rem)': '2rem', '@container (min-width:300px)': '1rem' } // since 40 < 300 eventhough 40rem > 300px\n */\nexport function sortContainerQueries(theme, css) {\n if (!theme.containerQueries) {\n return css;\n }\n const sorted = Object.keys(css).filter(key => key.startsWith('@container')).sort((a, b) => {\n const regex = /min-width:\\s*([0-9.]+)/;\n return +(a.match(regex)?.[1] || 0) - +(b.match(regex)?.[1] || 0);\n });\n if (!sorted.length) {\n return css;\n }\n return sorted.reduce((acc, key) => {\n const value = css[key];\n delete acc[key];\n acc[key] = value;\n return acc;\n }, {\n ...css\n });\n}\nexport function isCqShorthand(breakpointKeys, value) {\n return value === '@' || value.startsWith('@') && (breakpointKeys.some(key => value.startsWith(`@${key}`)) || !!value.match(/^@\\d/));\n}\nexport function getContainerQuery(theme, shorthand) {\n const matches = shorthand.match(/^@([^/]+)?\\/?(.+)?$/);\n if (!matches) {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \\`@<breakpoint | number>\\` or \\`@<breakpoint | number>/<container>\\`.\\n` + 'For example, `@sm` or `@600` or `@40rem/sidebar`.' : _formatErrorMessage(18, `(${shorthand})`));\n }\n return null;\n }\n const [, containerQuery, containerName] = matches;\n const value = Number.isNaN(+containerQuery) ? containerQuery || 0 : +containerQuery;\n return theme.containerQueries(containerName).up(value);\n}\nexport default function cssContainerQueries(themeInput) {\n const toContainerQuery = (mediaQuery, name) => mediaQuery.replace('@media', name ? `@container ${name}` : '@container');\n function attachCq(node, name) {\n node.up = (...args) => toContainerQuery(themeInput.breakpoints.up(...args), name);\n node.down = (...args) => toContainerQuery(themeInput.breakpoints.down(...args), name);\n node.between = (...args) => toContainerQuery(themeInput.breakpoints.between(...args), name);\n node.only = (...args) => toContainerQuery(themeInput.breakpoints.only(...args), name);\n node.not = (...args) => {\n const result = toContainerQuery(themeInput.breakpoints.not(...args), name);\n if (result.includes('not all and')) {\n // `@container` does not work with `not all and`, so need to invert the logic\n return result.replace('not all and ', '').replace('min-width:', 'width<').replace('max-width:', 'width>').replace('and', 'or');\n }\n return result;\n };\n }\n const node = {};\n const containerQueries = name => {\n attachCq(node, name);\n return node;\n };\n attachCq(containerQueries);\n return {\n ...themeInput,\n containerQueries\n };\n}","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: `capitalize(string)` expects a string argument.' : _formatErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","import capitalize from '@mui/utils/capitalize';\nimport responsivePropType from \"../responsivePropType/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nexport function getPath(obj, path, checkVars = true) {\n if (!path || typeof path !== 'string') {\n return null;\n }\n\n // Check if CSS variables are used\n if (obj && obj.vars && checkVars) {\n const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);\n if (val != null) {\n return val;\n }\n }\n return path.split('.').reduce((acc, item) => {\n if (acc && acc[item] != null) {\n return acc[item];\n }\n return null;\n }, obj);\n}\nexport function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {\n let value;\n if (typeof themeMapping === 'function') {\n value = themeMapping(propValueFinal);\n } else if (Array.isArray(themeMapping)) {\n value = themeMapping[propValueFinal] || userValue;\n } else {\n value = getPath(themeMapping, propValueFinal) || userValue;\n }\n if (transform) {\n value = transform(value, userValue, themeMapping);\n }\n return value;\n}\nfunction style(options) {\n const {\n prop,\n cssProperty = options.prop,\n themeKey,\n transform\n } = options;\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n if (props[prop] == null) {\n return null;\n }\n const propValue = props[prop];\n const theme = props.theme;\n const themeMapping = getPath(theme, themeKey) || {};\n const styleFromPropValue = propValueFinal => {\n let value = getStyleValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, propValue, styleFromPropValue);\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? {\n [prop]: responsivePropType\n } : {};\n fn.filterProps = [prop];\n return fn;\n}\nexport default style;","import responsivePropType from \"../responsivePropType/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nimport { getPath } from \"../style/index.js\";\nimport merge from \"../merge/index.js\";\nimport memoize from \"../memoize/index.js\";\nconst properties = {\n m: 'margin',\n p: 'padding'\n};\nconst directions = {\n t: 'Top',\n r: 'Right',\n b: 'Bottom',\n l: 'Left',\n x: ['Left', 'Right'],\n y: ['Top', 'Bottom']\n};\nconst aliases = {\n marginX: 'mx',\n marginY: 'my',\n paddingX: 'px',\n paddingY: 'py'\n};\n\n// memoize() impact:\n// From 300,000 ops/sec\n// To 350,000 ops/sec\nconst getCssProperties = memoize(prop => {\n // It's not a shorthand notation.\n if (prop.length > 2) {\n if (aliases[prop]) {\n prop = aliases[prop];\n } else {\n return [prop];\n }\n }\n const [a, b] = prop.split('');\n const property = properties[a];\n const direction = directions[b] || '';\n return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];\n});\nexport const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];\nexport const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];\nconst spacingKeys = [...marginKeys, ...paddingKeys];\nexport function createUnaryUnit(theme, themeKey, defaultValue, propName) {\n const themeSpacing = getPath(theme, themeKey, true) ?? defaultValue;\n if (typeof themeSpacing === 'number' || typeof themeSpacing === 'string') {\n return val => {\n if (typeof val === 'string') {\n return val;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (typeof val !== 'number') {\n console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${val}.`);\n }\n }\n if (typeof themeSpacing === 'string') {\n if (themeSpacing.startsWith('var(') && val === 0) {\n return 0;\n }\n if (themeSpacing.startsWith('var(') && val === 1) {\n return themeSpacing;\n }\n return `calc(${val} * ${themeSpacing})`;\n }\n return themeSpacing * val;\n };\n }\n if (Array.isArray(themeSpacing)) {\n return val => {\n if (typeof val === 'string') {\n return val;\n }\n const abs = Math.abs(val);\n if (process.env.NODE_ENV !== 'production') {\n if (!Number.isInteger(abs)) {\n console.error([`MUI: The \\`theme.${themeKey}\\` array type cannot be combined with non integer values.` + `You should either use an integer value that can be used as index, or define the \\`theme.${themeKey}\\` as a number.`].join('\\n'));\n } else if (abs > themeSpacing.length - 1) {\n console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join('\\n'));\n }\n }\n const transformed = themeSpacing[abs];\n if (val >= 0) {\n return transformed;\n }\n if (typeof transformed === 'number') {\n return -transformed;\n }\n if (typeof transformed === 'string' && transformed.startsWith('var(')) {\n return `calc(-1 * ${transformed})`;\n }\n return `-${transformed}`;\n };\n }\n if (typeof themeSpacing === 'function') {\n return themeSpacing;\n }\n if (process.env.NODE_ENV !== 'production') {\n console.error([`MUI: The \\`theme.${themeKey}\\` value (${themeSpacing}) is invalid.`, 'It should be a number, an array or a function.'].join('\\n'));\n }\n return () => undefined;\n}\nexport function createUnarySpacing(theme) {\n return createUnaryUnit(theme, 'spacing', 8, 'spacing');\n}\nexport function getValue(transformer, propValue) {\n if (typeof propValue === 'string' || propValue == null) {\n return propValue;\n }\n return transformer(propValue);\n}\nexport function getStyleFromPropValue(cssProperties, transformer) {\n return propValue => cssProperties.reduce((acc, cssProperty) => {\n acc[cssProperty] = getValue(transformer, propValue);\n return acc;\n }, {});\n}\nfunction resolveCssProperty(props, keys, prop, transformer) {\n // Using a hash computation over an array iteration could be faster, but with only 28 items,\n // it's doesn't worth the bundle size.\n if (!keys.includes(prop)) {\n return null;\n }\n const cssProperties = getCssProperties(prop);\n const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);\n const propValue = props[prop];\n return handleBreakpoints(props, propValue, styleFromPropValue);\n}\nfunction style(props, keys) {\n const transformer = createUnarySpacing(props.theme);\n return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});\n}\nexport function margin(props) {\n return style(props, marginKeys);\n}\nmargin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nmargin.filterProps = marginKeys;\nexport function padding(props) {\n return style(props, paddingKeys);\n}\npadding.propTypes = process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\npadding.filterProps = paddingKeys;\nfunction spacing(props) {\n return style(props, spacingKeys);\n}\nspacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nspacing.filterProps = spacingKeys;\nexport default spacing;","export default function memoize(fn) {\n const cache = {};\n return arg => {\n if (cache[arg] === undefined) {\n cache[arg] = fn(arg);\n }\n return cache[arg];\n };\n}","import merge from \"../merge/index.js\";\nfunction compose(...styles) {\n const handlers = styles.reduce((acc, style) => {\n style.filterProps.forEach(prop => {\n acc[prop] = style;\n });\n return acc;\n }, {});\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n return Object.keys(props).reduce((acc, prop) => {\n if (handlers[prop]) {\n return merge(acc, handlers[prop](props));\n }\n return acc;\n }, {});\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce((acc, style) => Object.assign(acc, style.propTypes), {}) : {};\n fn.filterProps = styles.reduce((acc, style) => acc.concat(style.filterProps), []);\n return fn;\n}\nexport default compose;","import responsivePropType from \"../responsivePropType/index.js\";\nimport style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nimport { createUnaryUnit, getValue } from \"../spacing/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nexport function borderTransform(value) {\n if (typeof value !== 'number') {\n return value;\n }\n return `${value}px solid`;\n}\nfunction createBorderStyle(prop, transform) {\n return style({\n prop,\n themeKey: 'borders',\n transform\n });\n}\nexport const border = createBorderStyle('border', borderTransform);\nexport const borderTop = createBorderStyle('borderTop', borderTransform);\nexport const borderRight = createBorderStyle('borderRight', borderTransform);\nexport const borderBottom = createBorderStyle('borderBottom', borderTransform);\nexport const borderLeft = createBorderStyle('borderLeft', borderTransform);\nexport const borderColor = createBorderStyle('borderColor');\nexport const borderTopColor = createBorderStyle('borderTopColor');\nexport const borderRightColor = createBorderStyle('borderRightColor');\nexport const borderBottomColor = createBorderStyle('borderBottomColor');\nexport const borderLeftColor = createBorderStyle('borderLeftColor');\nexport const outline = createBorderStyle('outline', borderTransform);\nexport const outlineColor = createBorderStyle('outlineColor');\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const borderRadius = props => {\n if (props.borderRadius !== undefined && props.borderRadius !== null) {\n const transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');\n const styleFromPropValue = propValue => ({\n borderRadius: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.borderRadius, styleFromPropValue);\n }\n return null;\n};\nborderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {\n borderRadius: responsivePropType\n} : {};\nborderRadius.filterProps = ['borderRadius'];\nconst borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);\nexport default borders;","import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nimport { createUnaryUnit, getValue } from \"../spacing/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nimport responsivePropType from \"../responsivePropType/index.js\";\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const gap = props => {\n if (props.gap !== undefined && props.gap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'gap');\n const styleFromPropValue = propValue => ({\n gap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.gap, styleFromPropValue);\n }\n return null;\n};\ngap.propTypes = process.env.NODE_ENV !== 'production' ? {\n gap: responsivePropType\n} : {};\ngap.filterProps = ['gap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const columnGap = props => {\n if (props.columnGap !== undefined && props.columnGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'columnGap');\n const styleFromPropValue = propValue => ({\n columnGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.columnGap, styleFromPropValue);\n }\n return null;\n};\ncolumnGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n columnGap: responsivePropType\n} : {};\ncolumnGap.filterProps = ['columnGap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const rowGap = props => {\n if (props.rowGap !== undefined && props.rowGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'rowGap');\n const styleFromPropValue = propValue => ({\n rowGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.rowGap, styleFromPropValue);\n }\n return null;\n};\nrowGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n rowGap: responsivePropType\n} : {};\nrowGap.filterProps = ['rowGap'];\nexport const gridColumn = style({\n prop: 'gridColumn'\n});\nexport const gridRow = style({\n prop: 'gridRow'\n});\nexport const gridAutoFlow = style({\n prop: 'gridAutoFlow'\n});\nexport const gridAutoColumns = style({\n prop: 'gridAutoColumns'\n});\nexport const gridAutoRows = style({\n prop: 'gridAutoRows'\n});\nexport const gridTemplateColumns = style({\n prop: 'gridTemplateColumns'\n});\nexport const gridTemplateRows = style({\n prop: 'gridTemplateRows'\n});\nexport const gridTemplateAreas = style({\n prop: 'gridTemplateAreas'\n});\nexport const gridArea = style({\n prop: 'gridArea'\n});\nconst grid = compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);\nexport default grid;","import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nexport function paletteTransform(value, userValue) {\n if (userValue === 'grey') {\n return userValue;\n }\n return value;\n}\nexport const color = style({\n prop: 'color',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const bgcolor = style({\n prop: 'bgcolor',\n cssProperty: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const backgroundColor = style({\n prop: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nconst palette = compose(color, bgcolor, backgroundColor);\nexport default palette;","import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nimport { handleBreakpoints, values as breakpointsValues } from \"../breakpoints/index.js\";\nexport function sizingTransform(value) {\n return value <= 1 && value !== 0 ? `${value * 100}%` : value;\n}\nexport const width = style({\n prop: 'width',\n transform: sizingTransform\n});\nexport const maxWidth = props => {\n if (props.maxWidth !== undefined && props.maxWidth !== null) {\n const styleFromPropValue = propValue => {\n const breakpoint = props.theme?.breakpoints?.values?.[propValue] || breakpointsValues[propValue];\n if (!breakpoint) {\n return {\n maxWidth: sizingTransform(propValue)\n };\n }\n if (props.theme?.breakpoints?.unit !== 'px') {\n return {\n maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`\n };\n }\n return {\n maxWidth: breakpoint\n };\n };\n return handleBreakpoints(props, props.maxWidth, styleFromPropValue);\n }\n return null;\n};\nmaxWidth.filterProps = ['maxWidth'];\nexport const minWidth = style({\n prop: 'minWidth',\n transform: sizingTransform\n});\nexport const height = style({\n prop: 'height',\n transform: sizingTransform\n});\nexport const maxHeight = style({\n prop: 'maxHeight',\n transform: sizingTransform\n});\nexport const minHeight = style({\n prop: 'minHeight',\n transform: sizingTransform\n});\nexport const sizeWidth = style({\n prop: 'size',\n cssProperty: 'width',\n transform: sizingTransform\n});\nexport const sizeHeight = style({\n prop: 'size',\n cssProperty: 'height',\n transform: sizingTransform\n});\nexport const boxSizing = style({\n prop: 'boxSizing'\n});\nconst sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);\nexport default sizing;","import { padding, margin } from \"../spacing/index.js\";\nimport { borderRadius, borderTransform } from \"../borders/index.js\";\nimport { gap, rowGap, columnGap } from \"../cssGrid/index.js\";\nimport { paletteTransform } from \"../palette/index.js\";\nimport { maxWidth, sizingTransform } from \"../sizing/index.js\";\nconst defaultSxConfig = {\n // borders\n border: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderTop: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderRight: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderBottom: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderLeft: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderColor: {\n themeKey: 'palette'\n },\n borderTopColor: {\n themeKey: 'palette'\n },\n borderRightColor: {\n themeKey: 'palette'\n },\n borderBottomColor: {\n themeKey: 'palette'\n },\n borderLeftColor: {\n themeKey: 'palette'\n },\n outline: {\n themeKey: 'borders',\n transform: borderTransform\n },\n outlineColor: {\n themeKey: 'palette'\n },\n borderRadius: {\n themeKey: 'shape.borderRadius',\n style: borderRadius\n },\n // palette\n color: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n bgcolor: {\n themeKey: 'palette',\n cssProperty: 'backgroundColor',\n transform: paletteTransform\n },\n backgroundColor: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n // spacing\n p: {\n style: padding\n },\n pt: {\n style: padding\n },\n pr: {\n style: padding\n },\n pb: {\n style: padding\n },\n pl: {\n style: padding\n },\n px: {\n style: padding\n },\n py: {\n style: padding\n },\n padding: {\n style: padding\n },\n paddingTop: {\n style: padding\n },\n paddingRight: {\n style: padding\n },\n paddingBottom: {\n style: padding\n },\n paddingLeft: {\n style: padding\n },\n paddingX: {\n style: padding\n },\n paddingY: {\n style: padding\n },\n paddingInline: {\n style: padding\n },\n paddingInlineStart: {\n style: padding\n },\n paddingInlineEnd: {\n style: padding\n },\n paddingBlock: {\n style: padding\n },\n paddingBlockStart: {\n style: padding\n },\n paddingBlockEnd: {\n style: padding\n },\n m: {\n style: margin\n },\n mt: {\n style: margin\n },\n mr: {\n style: margin\n },\n mb: {\n style: margin\n },\n ml: {\n style: margin\n },\n mx: {\n style: margin\n },\n my: {\n style: margin\n },\n margin: {\n style: margin\n },\n marginTop: {\n style: margin\n },\n marginRight: {\n style: margin\n },\n marginBottom: {\n style: margin\n },\n marginLeft: {\n style: margin\n },\n marginX: {\n style: margin\n },\n marginY: {\n style: margin\n },\n marginInline: {\n style: margin\n },\n marginInlineStart: {\n style: margin\n },\n marginInlineEnd: {\n style: margin\n },\n marginBlock: {\n style: margin\n },\n marginBlockStart: {\n style: margin\n },\n marginBlockEnd: {\n style: margin\n },\n // display\n displayPrint: {\n cssProperty: false,\n transform: value => ({\n '@media print': {\n display: value\n }\n })\n },\n display: {},\n overflow: {},\n textOverflow: {},\n visibility: {},\n whiteSpace: {},\n // flexbox\n flexBasis: {},\n flexDirection: {},\n flexWrap: {},\n justifyContent: {},\n alignItems: {},\n alignContent: {},\n order: {},\n flex: {},\n flexGrow: {},\n flexShrink: {},\n alignSelf: {},\n justifyItems: {},\n justifySelf: {},\n // grid\n gap: {\n style: gap\n },\n rowGap: {\n style: rowGap\n },\n columnGap: {\n style: columnGap\n },\n gridColumn: {},\n gridRow: {},\n gridAutoFlow: {},\n gridAutoColumns: {},\n gridAutoRows: {},\n gridTemplateColumns: {},\n gridTemplateRows: {},\n gridTemplateAreas: {},\n gridArea: {},\n // positions\n position: {},\n zIndex: {\n themeKey: 'zIndex'\n },\n top: {},\n right: {},\n bottom: {},\n left: {},\n // shadows\n boxShadow: {\n themeKey: 'shadows'\n },\n // sizing\n width: {\n transform: sizingTransform\n },\n maxWidth: {\n style: maxWidth\n },\n minWidth: {\n transform: sizingTransform\n },\n height: {\n transform: sizingTransform\n },\n maxHeight: {\n transform: sizingTransform\n },\n minHeight: {\n transform: sizingTransform\n },\n boxSizing: {},\n // typography\n font: {\n themeKey: 'font'\n },\n fontFamily: {\n themeKey: 'typography'\n },\n fontSize: {\n themeKey: 'typography'\n },\n fontStyle: {\n themeKey: 'typography'\n },\n fontWeight: {\n themeKey: 'typography'\n },\n letterSpacing: {},\n textTransform: {},\n lineHeight: {},\n textAlign: {},\n typography: {\n cssProperty: false,\n themeKey: 'typography'\n }\n};\nexport default defaultSxConfig;","import capitalize from '@mui/utils/capitalize';\nimport merge from \"../merge/index.js\";\nimport { getPath, getStyleValue as getValue } from \"../style/index.js\";\nimport { handleBreakpoints, createEmptyBreakpointObject, removeUnusedBreakpoints } from \"../breakpoints/index.js\";\nimport { sortContainerQueries } from \"../cssContainerQueries/index.js\";\nimport defaultSxConfig from \"./defaultSxConfig.js\";\nfunction objectsHaveSameKeys(...objects) {\n const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);\n const union = new Set(allKeys);\n return objects.every(object => union.size === Object.keys(object).length);\n}\nfunction callIfFn(maybeFn, arg) {\n return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_createStyleFunctionSx() {\n function getThemeValue(prop, val, theme, config) {\n const props = {\n [prop]: val,\n theme\n };\n const options = config[prop];\n if (!options) {\n return {\n [prop]: val\n };\n }\n const {\n cssProperty = prop,\n themeKey,\n transform,\n style\n } = options;\n if (val == null) {\n return null;\n }\n\n // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123\n if (themeKey === 'typography' && val === 'inherit') {\n return {\n [prop]: val\n };\n }\n const themeMapping = getPath(theme, themeKey) || {};\n if (style) {\n return style(props);\n }\n const styleFromPropValue = propValueFinal => {\n let value = getValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, val, styleFromPropValue);\n }\n function styleFunctionSx(props) {\n const {\n sx,\n theme = {}\n } = props || {};\n if (!sx) {\n return null; // Emotion & styled-components will neglect null\n }\n const config = theme.unstable_sxConfig ?? defaultSxConfig;\n\n /*\n * Receive `sxInput` as object or callback\n * and then recursively check keys & values to create media query object styles.\n * (the result will be used in `styled`)\n */\n function traverse(sxInput) {\n let sxObject = sxInput;\n if (typeof sxInput === 'function') {\n sxObject = sxInput(theme);\n } else if (typeof sxInput !== 'object') {\n // value\n return sxInput;\n }\n if (!sxObject) {\n return null;\n }\n const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);\n const breakpointsKeys = Object.keys(emptyBreakpoints);\n let css = emptyBreakpoints;\n Object.keys(sxObject).forEach(styleKey => {\n const value = callIfFn(sxObject[styleKey], theme);\n if (value !== null && value !== undefined) {\n if (typeof value === 'object') {\n if (config[styleKey]) {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n } else {\n const breakpointsValues = handleBreakpoints({\n theme\n }, value, x => ({\n [styleKey]: x\n }));\n if (objectsHaveSameKeys(breakpointsValues, value)) {\n css[styleKey] = styleFunctionSx({\n sx: value,\n theme\n });\n } else {\n css = merge(css, breakpointsValues);\n }\n }\n } else {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n }\n }\n });\n return sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css));\n }\n return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);\n }\n return styleFunctionSx;\n}\nconst styleFunctionSx = unstable_createStyleFunctionSx();\nstyleFunctionSx.filterProps = ['sx'];\nexport default styleFunctionSx;","/**\n * A universal utility to style components with multiple color modes. Always use it from the theme object.\n * It works with:\n * - [Basic theme](https://mui.com/material-ui/customization/dark-mode/)\n * - [CSS theme variables](https://mui.com/material-ui/customization/css-theme-variables/overview/)\n * - Zero-runtime engine\n *\n * Tips: Use an array over object spread and place `theme.applyStyles()` last.\n *\n * With the styled function:\n * ✅ [{ background: '#e5e5e5' }, theme.applyStyles('dark', { background: '#1c1c1c' })]\n * 🚫 { background: '#e5e5e5', ...theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * With the sx prop:\n * ✅ [{ background: '#e5e5e5' }, theme => theme.applyStyles('dark', { background: '#1c1c1c' })]\n * 🚫 { background: '#e5e5e5', ...theme => theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * @example\n * 1. using with `styled`:\n * ```jsx\n * const Component = styled('div')(({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]);\n * ```\n *\n * @example\n * 2. using with `sx` prop:\n * ```jsx\n * <Box sx={[\n * { background: '#e5e5e5' },\n * theme => theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]}\n * />\n * ```\n *\n * @example\n * 3. theming a component:\n * ```jsx\n * extendTheme({\n * components: {\n * MuiButton: {\n * styleOverrides: {\n * root: ({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ],\n * },\n * }\n * }\n * })\n *```\n */\nexport default function applyStyles(key, styles) {\n // @ts-expect-error this is 'any' type\n const theme = this;\n if (theme.vars) {\n if (!theme.colorSchemes?.[key] || typeof theme.getColorSchemeSelector !== 'function') {\n return {};\n }\n // If CssVarsProvider is used as a provider, returns '*:where({selector}) &'\n let selector = theme.getColorSchemeSelector(key);\n if (selector === '&') {\n return styles;\n }\n if (selector.includes('data-') || selector.includes('.')) {\n // '*' is required as a workaround for Emotion issue (https://github.com/emotion-js/emotion/issues/2836)\n selector = `*:where(${selector.replace(/\\s*&$/, '')}) &`;\n }\n return {\n [selector]: styles\n };\n }\n if (theme.palette.mode === key) {\n return styles;\n }\n return {};\n}","'use client';\n\nimport * as React from 'react';\nimport { ThemeContext } from '@mui/styled-engine';\nfunction isObjectEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction useTheme(defaultTheme = null) {\n const contextTheme = React.useContext(ThemeContext);\n return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;\n}\nexport default useTheme;","'use client';\n\nimport createTheme from \"../createTheme/index.js\";\nimport useThemeWithoutDefault from \"../useThemeWithoutDefault/index.js\";\nexport const systemDefaultTheme = createTheme();\nfunction useTheme(defaultTheme = systemDefaultTheme) {\n return useThemeWithoutDefault(defaultTheme);\n}\nexport default useTheme;","import deepmerge from '@mui/utils/deepmerge';\nimport createBreakpoints from \"../createBreakpoints/createBreakpoints.js\";\nimport cssContainerQueries from \"../cssContainerQueries/index.js\";\nimport shape from \"./shape.js\";\nimport createSpacing from \"./createSpacing.js\";\nimport styleFunctionSx from \"../styleFunctionSx/styleFunctionSx.js\";\nimport defaultSxConfig from \"../styleFunctionSx/defaultSxConfig.js\";\nimport applyStyles from \"./applyStyles.js\";\nfunction createTheme(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput = {},\n palette: paletteInput = {},\n spacing: spacingInput,\n shape: shapeInput = {},\n ...other\n } = options;\n const breakpoints = createBreakpoints(breakpointsInput);\n const spacing = createSpacing(spacingInput);\n let muiTheme = deepmerge({\n breakpoints,\n direction: 'ltr',\n components: {},\n // Inject component definitions.\n palette: {\n mode: 'light',\n ...paletteInput\n },\n spacing,\n shape: {\n ...shape,\n ...shapeInput\n }\n }, other);\n muiTheme = cssContainerQueries(muiTheme);\n muiTheme.applyStyles = applyStyles;\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n muiTheme.unstable_sxConfig = {\n ...defaultSxConfig,\n ...other?.unstable_sxConfig\n };\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nexport default createTheme;","import { createUnarySpacing } from \"../spacing/index.js\";\n\n// The different signatures imply different meaning for their arguments that can't be expressed structurally.\n// We express the difference with variable names.\n\nexport default function createSpacing(spacingInput = 8,\n// Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.\n// Smaller components, such as icons, can align to a 4dp grid.\n// https://m2.material.io/design/layout/understanding-layout.html\ntransform = createUnarySpacing({\n spacing: spacingInput\n})) {\n // Already transformed.\n if (spacingInput.mui) {\n return spacingInput;\n }\n const spacing = (...argsInput) => {\n if (process.env.NODE_ENV !== 'production') {\n if (!(argsInput.length <= 4)) {\n console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`);\n }\n }\n const args = argsInput.length === 0 ? [1] : argsInput;\n return args.map(argument => {\n const output = transform(argument);\n return typeof output === 'number' ? `${output}px` : output;\n }).join(' ');\n };\n spacing.mui = true;\n return spacing;\n}","import { isPlainObject } from '@mui/utils/deepmerge';\nimport defaultSxConfig from \"./defaultSxConfig.js\";\nconst splitProps = props => {\n const result = {\n systemProps: {},\n otherProps: {}\n };\n const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;\n Object.keys(props).forEach(prop => {\n if (config[prop]) {\n result.systemProps[prop] = props[prop];\n } else {\n result.otherProps[prop] = props[prop];\n }\n });\n return result;\n};\nexport default function extendSxProp(props) {\n const {\n sx: inSx,\n ...other\n } = props;\n const {\n systemProps,\n otherProps\n } = splitProps(other);\n let finalSx;\n if (Array.isArray(inSx)) {\n finalSx = [systemProps, ...inSx];\n } else if (typeof inSx === 'function') {\n finalSx = (...args) => {\n const result = inSx(...args);\n if (!isPlainObject(result)) {\n return systemProps;\n }\n return {\n ...systemProps,\n ...result\n };\n };\n } else {\n finalSx = {\n ...systemProps,\n ...inSx\n };\n }\n return {\n ...otherProps,\n sx: finalSx\n };\n}","const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n let generate = defaultGenerator;\n return {\n configure(generator) {\n generate = generator;\n },\n generate(componentName) {\n return generate(componentName);\n },\n reset() {\n generate = defaultGenerator;\n }\n };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","import ClassNameGenerator from \"../ClassNameGenerator/index.js\";\nexport const globalStateClasses = {\n active: 'active',\n checked: 'checked',\n completed: 'completed',\n disabled: 'disabled',\n error: 'error',\n expanded: 'expanded',\n focused: 'focused',\n focusVisible: 'focusVisible',\n open: 'open',\n readOnly: 'readOnly',\n required: 'required',\n selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nconst boxClasses = generateUtilityClasses('MuiBox', ['root']);\nexport default boxClasses;","'use client';\n\nimport PropTypes from 'prop-types';\nimport ClassNameGenerator from '@mui/utils/ClassNameGenerator';\nimport createBox from \"../createBox/index.js\";\nimport boxClasses from \"./boxClasses.js\";\nconst Box = createBox({\n defaultClassName: boxClasses.root,\n generateClassName: ClassNameGenerator.generate\n});\nprocess.env.NODE_ENV !== \"production\" ? Box.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Box;","'use client';\n\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport styled from '@mui/styled-engine';\nimport styleFunctionSx, { extendSxProp } from \"../styleFunctionSx/index.js\";\nimport useTheme from \"../useTheme/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createBox(options = {}) {\n const {\n themeId,\n defaultTheme,\n defaultClassName = 'MuiBox-root',\n generateClassName\n } = options;\n const BoxRoot = styled('div', {\n shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'\n })(styleFunctionSx);\n const Box = /*#__PURE__*/React.forwardRef(function Box(inProps, ref) {\n const theme = useTheme(defaultTheme);\n const {\n className,\n component = 'div',\n ...other\n } = extendSxProp(inProps);\n return /*#__PURE__*/_jsx(BoxRoot, {\n as: component,\n ref: ref,\n className: clsx(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName),\n theme: themeId ? theme[themeId] || theme : theme,\n ...other\n });\n });\n return Box;\n}","/**\n * @mui/styled-engine v7.1.1\n *\n * @license MIT\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use client';\n\n/* eslint-disable no-underscore-dangle */\nimport emStyled from '@emotion/styled';\nimport { serializeStyles as emSerializeStyles } from '@emotion/serialize';\nexport default function styled(tag, options) {\n const stylesFactory = emStyled(tag, options);\n if (process.env.NODE_ENV !== 'production') {\n return (...styles) => {\n const component = typeof tag === 'string' ? `\"${tag}\"` : 'component';\n if (styles.length === 0) {\n console.error([`MUI: Seems like you called \\`styled(${component})()\\` without a \\`style\\` argument.`, 'You must provide a `styles` argument: `styled(\"div\")(styleYouForgotToPass)`.'].join('\\n'));\n } else if (styles.some(style => style === undefined)) {\n console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);\n }\n return stylesFactory(...styles);\n };\n }\n return stylesFactory;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function internal_mutateStyles(tag, processor) {\n // Emotion attaches all the styles as `__emotion_styles`.\n // Ref: https://github.com/emotion-js/emotion/blob/16d971d0da229596d6bcc39d282ba9753c9ee7cf/packages/styled/src/base.js#L186\n if (Array.isArray(tag.__emotion_styles)) {\n tag.__emotion_styles = processor(tag.__emotion_styles);\n }\n}\n\n// Emotion only accepts an array, but we want to avoid allocations\nconst wrapper = [];\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function internal_serializeStyles(styles) {\n wrapper[0] = styles;\n return emSerializeStyles(wrapper);\n}\nexport { ThemeContext, keyframes, css } from '@emotion/react';\nexport { default as StyledEngineProvider } from \"./StyledEngineProvider/index.js\";\nexport { default as GlobalStyles } from \"./GlobalStyles/index.js\";","import generateUtilityClass from \"../generateUtilityClass/index.js\";\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n });\n return result;\n}","export function hasDigitsOnly(str: string) {\r\n return /^\\d+$/.test(str);\r\n}\r\n\r\nexport function isNumber(value: any) {\r\n return typeof value === \"number\" && !isNaN(value);\r\n}\r\n\r\nexport function isNumeric(value: string) {\r\n return (\r\n typeof value === \"string\" && value.trim() !== \"\" && !isNaN(Number(value))\r\n );\r\n}\r\n\r\nexport function capitalizeFirstLetter(str: string) {\r\n if (!str) return \"\";\r\n return str.charAt(0).toUpperCase() + str.slice(1);\r\n}\r\n\r\nexport function isValidEmail(email) {\r\n const re = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\r\n return re.test(email);\r\n}\r\n","import { EditorState, convertToRaw } from \"draft-js\";\r\nimport { Editor } from \"react-draft-wysiwyg\";\r\nimport draftToHtml from \"draftjs-to-html\";\r\nimport { stateFromHTML } from \"draft-js-import-html\";\r\nimport { useState } from \"react\";\r\nimport \"react-draft-wysiwyg/dist/react-draft-wysiwyg.css\";\r\nimport { useEffect } from \"react\";\r\nimport { Box, Paper } from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ntype HtmlEditorProps = {\r\n label?: string;\r\n value: string;\r\n setValue: (v: any) => void;\r\n maxLength: number;\r\n errorMessage?: string;\r\n};\r\n\r\nconst HtmlEditor: React.FC<HtmlEditorProps> = ({\r\n label,\r\n errorMessage,\r\n value,\r\n setValue,\r\n maxLength,\r\n}) => {\r\n const { t } = useTranslation();\r\n const options = {\r\n customInlineFn: (element, { Style }) => {\r\n if (element.style.color) {\r\n return Style(\"color-\" + element.style.color);\r\n }\r\n },\r\n };\r\n\r\n let contentState = stateFromHTML(value, options);\r\n\r\n const [editorState, setEditorState] = useState(\r\n EditorState.createWithContent(contentState)\r\n );\r\n let onEditorStateChange = (editorState) => {\r\n let newData = draftToHtml(convertToRaw(editorState.getCurrentContent()));\r\n console.log(\"Text Length \" + newData.length);\r\n if (newData.length > maxLength) {\r\n let contentState = stateFromHTML(\r\n newData.substring(0, maxLength),\r\n options\r\n );\r\n setEditorState(EditorState.createWithContent(contentState));\r\n return;\r\n } else {\r\n setEditorState(editorState);\r\n }\r\n setValue(draftToHtml(convertToRaw(editorState.getCurrentContent())));\r\n };\r\n useEffect(() => {\r\n if (value != draftToHtml(convertToRaw(editorState.getCurrentContent()))) {\r\n setEditorState(\r\n EditorState.createWithContent(stateFromHTML(value, options))\r\n );\r\n }\r\n }, [value]);\r\n const _getLengthOfSelectedText = () => {\r\n const currentSelection = editorState.getSelection();\r\n const isCollapsed = currentSelection.isCollapsed();\r\n\r\n let length = 0;\r\n\r\n if (!isCollapsed) {\r\n const currentContent = editorState.getCurrentContent();\r\n const startKey = currentSelection.getStartKey();\r\n const endKey = currentSelection.getEndKey();\r\n const startBlock = currentContent.getBlockForKey(startKey);\r\n const isStartAndEndBlockAreTheSame = startKey === endKey;\r\n const startBlockTextLength = startBlock.getLength();\r\n const startSelectedTextLength =\r\n startBlockTextLength - currentSelection.getStartOffset();\r\n const endSelectedTextLength = currentSelection.getEndOffset();\r\n const keyAfterEnd = currentContent.getKeyAfter(endKey);\r\n if (isStartAndEndBlockAreTheSame) {\r\n length +=\r\n currentSelection.getEndOffset() - currentSelection.getStartOffset();\r\n } else {\r\n let currentKey = startKey;\r\n\r\n while (currentKey && currentKey !== keyAfterEnd) {\r\n if (currentKey === startKey) {\r\n length += startSelectedTextLength + 1;\r\n } else if (currentKey === endKey) {\r\n length += endSelectedTextLength;\r\n } else {\r\n length += currentContent.getBlockForKey(currentKey).getLength() + 1;\r\n }\r\n\r\n currentKey = currentContent.getKeyAfter(currentKey);\r\n }\r\n }\r\n }\r\n\r\n return length;\r\n };\r\n return (\r\n <Paper\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n padding: 1,\r\n }}\r\n >\r\n {label ? <Box>{t(label)}</Box> : <></>}\r\n <Editor\r\n editorState={editorState}\r\n onEditorStateChange={onEditorStateChange}\r\n handlePastedText={(pastedText) => {\r\n const currentContent = editorState.getCurrentContent();\r\n const currentContentLength = currentContent.getPlainText(\"\").length;\r\n const selectedTextLength = _getLengthOfSelectedText();\r\n\r\n if (\r\n currentContentLength + pastedText.length - selectedTextLength >\r\n maxLength\r\n ) {\r\n alert(\"max text length is \" + maxLength);\r\n return \"handled\";\r\n }\r\n }}\r\n editorStyle={{\r\n height: \"200px\", // 👈 set height of content area\r\n border: \"1px solid #F1F1F1\",\r\n padding: \"10px\",\r\n overflow: \"auto\", // scroll if needed\r\n }}\r\n wrapperStyle={{ marginBottom: \"1rem\" }}\r\n toolbarStyle={{ border: \"1px solid #ccc\" }}\r\n />\r\n {errorMessage ? (\r\n <Box sx={{ color: \"red\" }}>{t(errorMessage)}</Box>\r\n ) : (\r\n <></>\r\n )}\r\n </Paper>\r\n );\r\n};\r\n\r\nexport default HtmlEditor;\r\n","import { useEffect, useState } from \"react\";\r\nimport { useAxios, useSession } from \"../../../../../hooks\";\r\nimport ComboBox from \"./ComboBox\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype SystemLookupListProps = {\r\n lookupType: string;\r\n value: any;\r\n onChangeCallBack: Function;\r\n label: string;\r\n disabled?: boolean;\r\n required?: boolean;\r\n errorMessage?: any;\r\n sx?: any;\r\n};\r\n\r\nconst SystemLookupCombobox: React.FC<SystemLookupListProps> = (props) => {\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const session = useSession();\r\n const [options, setOptions] = useState<Array<any>>([]);\r\n const { handleGetRequest } = useAxios();\r\n\r\n const loadLookupOptions = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/dev/system/lookup\",\r\n showMask: true,\r\n parameters: { lookupType: props.lookupType },\r\n successCallBkFn: (response: any) => {\r\n setOptions(response.data);\r\n },\r\n failureCallBkFn: () => {\r\n setOptions([]);\r\n },\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n if (props.lookupType) {\r\n loadLookupOptions();\r\n }\r\n }, [props.lookupType, session.UserSession]);\r\n\r\n return (\r\n <ComboBox\r\n {...props}\r\n options={options}\r\n displayField={\r\n AppLayout.appDirection === \"ltr\" ? \"lookupEnDisplay\" : \"lookupArDisplay\"\r\n }\r\n valueField=\"lookupValue\"\r\n />\r\n );\r\n};\r\n\r\nexport default SystemLookupCombobox;\r\n","import { Grid2 } from \"@mui/material\";\r\nimport TemplateTextField from \"./FormFields/TemplateTextField\";\r\nimport Datefield from \"./FormFields/Datefield\";\r\nimport DatetimeField from \"./FormFields/DatetimeField\";\r\nimport ComboBox from \"./FormFields/ComboBox\";\r\nimport CheckBox from \"./FormFields/CheckBox\";\r\nimport { DATE_FORMAT, DATE_TIME_FORMAT } from \"../../../../util/constants\";\r\nimport { isNumeric } from \"../../../../util/AppUtils\";\r\nimport { FormElementFieldProps } from \"../DataEntryTypes\";\r\nimport HtmlEditor from \"./FormFields/HtmlEditor\";\r\nimport SystemLookupCombobox from \"./FormFields/SystemLookupCombobox\";\r\n\r\nconst FormElementField: React.FC<FormElementFieldProps> = (\r\n element: FormElementFieldProps\r\n) => {\r\n if (element?.fieldInfo) {\r\n const props = element.fieldInfo;\r\n const formManager = element?.formManager || null;\r\n const formActions = element?.formActions || null;\r\n const formValues = element?.formValues || null;\r\n const fieldName: any = element?.fieldInfo?.fieldName || null;\r\n const fieldType = element?.fieldInfo?.fieldType || null;\r\n if (!(props && formManager && formValues && fieldName && fieldType)) {\r\n return <></>;\r\n }\r\n return !element.hiddenFields.includes(fieldName) ? (\r\n <Grid2\r\n size={\r\n props?.formProps?.fieldSize || {\r\n lg: 12,\r\n md: 12,\r\n sm: 12,\r\n }\r\n }\r\n sx={{\r\n padding: 1,\r\n width: \"100%\",\r\n }}\r\n >\r\n {fieldType === \"text\" || fieldType === \"number\" ? (\r\n <TemplateTextField\r\n {...props.muiTextFieldProps}\r\n fullWidth\r\n type={fieldType}\r\n disabled={\r\n props?.disabled || element.disabledFields.includes(fieldName)\r\n ? true\r\n : false\r\n }\r\n hidden={props?.hidden || false}\r\n label={props?.fieldLabel}\r\n value={formValues[fieldName]}\r\n onChange={(event) => {\r\n let newValue = null;\r\n if (event.target.value != \"\") {\r\n if (fieldType === \"number\" && isNumeric(event.target.value)) {\r\n newValue = Number(event.target.value);\r\n } else {\r\n newValue = event.target.value;\r\n }\r\n }\r\n formManager.setValue(fieldName, newValue);\r\n if (props?.formProps?.onValueChangeCallBack) {\r\n props?.formProps?.onValueChangeCallBack(\r\n newValue,\r\n formManager,\r\n formActions\r\n );\r\n }\r\n }}\r\n sx={{\r\n \"& .MuiInputBase-root\": {\r\n height: `${props?.formProps?.fieldHeight}px` || undefined,\r\n },\r\n \"& .MuiInputBase-input\": {\r\n height: \"100% !important\", // forces full height usage\r\n },\r\n ...props?.formProps?.style,\r\n }}\r\n error={formManager.formState.errors[fieldName] != undefined}\r\n helperText={formManager?.formState?.errors[\r\n fieldName\r\n ]?.message?.toString()}\r\n />\r\n ) : props?.fieldType === \"date\" ? (\r\n <Datefield\r\n format={props?.dateFormat || DATE_FORMAT}\r\n sx={props?.formProps?.style || { width: \"100%\" }}\r\n disabled={\r\n props?.disabled || element.disabledFields.includes(fieldName)\r\n ? true\r\n : false\r\n }\r\n label={props?.fieldLabel}\r\n onChangeCallBack={(v: any) => {\r\n formManager.setValue(fieldName, v);\r\n if (props?.formProps?.onValueChangeCallBack) {\r\n props?.formProps?.onValueChangeCallBack(\r\n v,\r\n formManager,\r\n formActions\r\n );\r\n }\r\n }}\r\n value={formValues[fieldName]}\r\n error={formManager.formState.errors[fieldName] != undefined}\r\n errorMessage={formManager?.formState?.errors[\r\n fieldName\r\n ]?.message?.toString()}\r\n />\r\n ) : props?.fieldType === \"datetime\" ? (\r\n <DatetimeField\r\n format={props?.dateFormat || DATE_TIME_FORMAT}\r\n sx={props?.formProps?.style || { width: \"100%\" }}\r\n disabled={\r\n props?.disabled || element.disabledFields.includes(fieldName)\r\n ? true\r\n : false\r\n }\r\n label={props?.fieldLabel}\r\n onChangeCallBack={(v: any) => {\r\n formManager.setValue(fieldName, v);\r\n if (props?.formProps?.onValueChangeCallBack) {\r\n props?.formProps?.onValueChangeCallBack(\r\n v,\r\n formManager,\r\n formActions\r\n );\r\n }\r\n }}\r\n value={formValues[fieldName]}\r\n error={formManager.formState.errors[fieldName] != undefined}\r\n errorMessage={formManager?.formState?.errors[\r\n fieldName\r\n ]?.message?.toString()}\r\n />\r\n ) : props?.fieldType === \"checkbox\" ? (\r\n <CheckBox\r\n label={props?.fieldLabel}\r\n onChangeCallBack={(v: any) => {\r\n formManager.setValue(fieldName, v);\r\n if (props?.formProps?.onValueChangeCallBack) {\r\n props?.formProps?.onValueChangeCallBack(\r\n v,\r\n formManager,\r\n formActions\r\n );\r\n }\r\n }}\r\n value={formValues[fieldName]}\r\n checkedValue={props?.checkedValue || true}\r\n unCheckedValue={props?.unCheckedValue || false}\r\n disabled={\r\n props?.disabled || element.disabledFields.includes(fieldName)\r\n ? true\r\n : false\r\n }\r\n sx={props?.formProps?.style}\r\n />\r\n ) : props?.fieldType === \"combobox\" ? (\r\n <ComboBox\r\n sx={props?.formProps?.style || { width: \"100%\" }}\r\n label={props?.fieldLabel}\r\n disabled={\r\n props?.disabled || element.disabledFields.includes(fieldName)\r\n ? true\r\n : false\r\n }\r\n onChangeCallBack={(v: any, selectedRecord: any) => {\r\n let newValue = null;\r\n if (v) {\r\n newValue = v + \"\";\r\n }\r\n formManager.setValue(fieldName, newValue);\r\n if (props?.formProps?.onValueChangeCallBack) {\r\n props?.formProps?.onValueChangeCallBack(\r\n newValue,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n );\r\n }\r\n }}\r\n options={props?.options || []}\r\n displayField={props?.optionDisplayField || \"\"}\r\n valueField={props?.optionValueField || \"\"}\r\n value={formValues[fieldName]}\r\n errorMessage={formManager?.formState?.errors[\r\n fieldName\r\n ]?.message?.toString()}\r\n />\r\n ) : props?.fieldType === \"lookup\" ? (\r\n <SystemLookupCombobox\r\n sx={props?.formProps?.style || { width: \"100%\" }}\r\n label={props?.fieldLabel}\r\n disabled={\r\n props?.disabled || element.disabledFields.includes(fieldName)\r\n ? true\r\n : false\r\n }\r\n onChangeCallBack={(v: any, selectedRecord: any) => {\r\n let newValue = null;\r\n if (v) {\r\n newValue = v + \"\";\r\n }\r\n formManager.setValue(fieldName, newValue);\r\n if (props?.formProps?.onValueChangeCallBack) {\r\n props?.formProps?.onValueChangeCallBack(\r\n newValue,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n );\r\n }\r\n }}\r\n lookupType={props.lookupType}\r\n value={formValues[fieldName]}\r\n errorMessage={formManager?.formState?.errors[\r\n fieldName\r\n ]?.message?.toString()}\r\n />\r\n ) : props?.fieldType === \"html\" ? (\r\n <HtmlEditor\r\n label={props.fieldLabel}\r\n value={formValues[fieldName] || \"\"}\r\n errorMessage={formManager?.formState?.errors[\r\n fieldName\r\n ]?.message?.toString()}\r\n setValue={(v) => {\r\n formManager.setValue(fieldName, v);\r\n if (props?.formProps?.onValueChangeCallBack) {\r\n props?.formProps?.onValueChangeCallBack(\r\n v,\r\n formManager,\r\n formActions\r\n );\r\n }\r\n }}\r\n maxLength={4000}\r\n />\r\n ) : (\r\n <>Unknown field type</>\r\n )}\r\n </Grid2>\r\n ) : (\r\n <></>\r\n );\r\n } else {\r\n return <></>;\r\n }\r\n};\r\n\r\nexport default FormElementField;\r\n","import { Button } from \"@mui/material\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { RecordAction } from \"../DataEntryTypes\";\r\nimport useSession from \"../../../../hooks/UseSession\";\r\nimport { useConfirmationWindow } from \"../../../../hooks/UseConfirmationWindow\";\r\n\r\nconst FormAction: React.FC<RecordAction> = (action: RecordAction) => {\r\n const session = useSession();\r\n const { ConfirmationWindow, setOpen: setConfirmationWindowState } =\r\n useConfirmationWindow({\r\n body: action?.confirmationMessage || \"\",\r\n title: \"Confirmation\",\r\n onConfirmationCallBk: () => {\r\n action?.actionFn(action?.record);\r\n },\r\n });\r\n if (\r\n action?.authority === undefined ||\r\n action?.authority === null ||\r\n session.isUserAuthorized(action.authority)\r\n ) {\r\n return (\r\n <>\r\n <ConfirmationWindow />\r\n <Button\r\n variant={action?.formActionProps?.actionButtonVariant}\r\n color={action?.formActionProps?.actionButtonColor}\r\n onClick={() => {\r\n if (action?.actionFn) {\r\n if (action?.preActionValidation) {\r\n if (!action.preActionValidation(action.record)) {\r\n return;\r\n }\r\n }\r\n if (action?.isConfirmationRequired === true) {\r\n setConfirmationWindowState(true);\r\n } else {\r\n action?.actionFn(action.record);\r\n }\r\n }\r\n }}\r\n >\r\n {action?.icon ? (\r\n <FontAwesomeIcon\r\n icon={action.icon}\r\n style={{ marginRight: 5, marginLeft: 5 }}\r\n />\r\n ) : (\r\n <></>\r\n )}\r\n <div>{action?.label}</div>\r\n </Button>\r\n </>\r\n );\r\n } else {\r\n return <></>;\r\n }\r\n};\r\n\r\nexport default FormAction;\r\n","import { Grid2 } from \"@mui/material\";\r\nimport FormElementField from \"./FormElementField\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport FormAction from \"./FormAction\";\r\nimport {\r\n FormElementGroupProps,\r\n FormElementProps,\r\n RecordAction,\r\n} from \"../DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nconst FormElementGroup: React.FC<FormElementGroupProps> = (\r\n props: FormElementGroupProps\r\n) => {\r\n const { t } = useTranslation();\r\n return (\r\n <>\r\n <Grid2 container sx={props?.style} alignItems=\"flex-start\">\r\n {props?.label ? (\r\n <Grid2\r\n size={12}\r\n sx={{\r\n padding: 1,\r\n fontWeight: \"bold\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n }}\r\n >\r\n {props?.icon ? (\r\n <>\r\n <FontAwesomeIcon\r\n icon={props.icon}\r\n style={{ marginRight: 5, marginLeft: 5 }}\r\n />\r\n <div>{t(props.label)}</div>\r\n </>\r\n ) : (\r\n <>{t(props.label)}</>\r\n )}\r\n </Grid2>\r\n ) : (\r\n <></>\r\n )}\r\n {props?.elements\r\n ? props.elements.map((element: FormElementProps) => {\r\n if (element.type === \"group\") {\r\n return (\r\n <FormElementGroup\r\n {...element.props}\r\n formManager={props.formManager}\r\n formValues={props.formValues}\r\n formActions={props.formActions}\r\n hiddenFields={props.hiddenFields}\r\n disabledFields={props.disabledFields}\r\n />\r\n );\r\n } else if (element.type === \"field\" && element.mode === \"props\") {\r\n return (\r\n <FormElementField\r\n fieldInfo={element.props}\r\n formManager={props.formManager}\r\n formValues={props.formValues}\r\n formActions={props.formActions}\r\n hiddenFields={props.hiddenFields}\r\n disabledFields={props.disabledFields}\r\n />\r\n );\r\n } else if (element.type === \"field\" && element.mode === \"node\") {\r\n return (\r\n <Grid2\r\n size={\r\n element?.props?.formProps?.fieldSize || {\r\n lg: 3,\r\n md: 6,\r\n sm: 12,\r\n }\r\n }\r\n sx={{ padding: 1, width: \"100%\" }}\r\n >\r\n <element.node\r\n formManager={props.formManager}\r\n formValues={props.formValues}\r\n formActions={props.formActions}\r\n />\r\n </Grid2>\r\n );\r\n }\r\n })\r\n : null}\r\n\r\n {props?.actions ? (\r\n <Grid2 size={{ sm: 12 }} sx={{ padding: 1 }}>\r\n {props.actions.map((action: RecordAction) => {\r\n return <FormAction {...action} record={props.formValues} />;\r\n })}\r\n </Grid2>\r\n ) : (\r\n <></>\r\n )}\r\n </Grid2>\r\n </>\r\n );\r\n};\r\n\r\nexport default FormElementGroup;\r\n","import moment from \"moment\";\r\nimport { TemplateGridColDef } from \"../DataEntryTypes\";\r\nimport Datefield from \"../TemplateDataForm/FormFields/Datefield\";\r\nimport { DATE_FORMAT, DATE_TIME_FORMAT } from \"../../../../util/constants\";\r\nimport DatetimeField from \"../TemplateDataForm/FormFields/DatetimeField\";\r\nimport ComboBox from \"../TemplateDataForm/FormFields/ComboBox\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport CheckBox from \"../TemplateDataForm/FormFields/CheckBox\";\r\n\r\nexport const generateDateColumn: any = (colDef: TemplateGridColDef) => {\r\n const column: TemplateGridColDef = {\r\n ...colDef,\r\n type: \"string\",\r\n renderEditCell: (params: any) => {\r\n return (\r\n <Datefield\r\n sx={{ width: \"100%\" }}\r\n label=\"\"\r\n value={params.value}\r\n onChangeCallBack={(v: any) => {\r\n params.api.setEditCellValue({\r\n id: params.id,\r\n field: params.field,\r\n value: v,\r\n });\r\n }}\r\n />\r\n );\r\n },\r\n valueParser: (value: any, row: any, column: any) => {\r\n let v = null;\r\n if (value !== null) {\r\n v = moment(value).format(DATE_FORMAT);\r\n }\r\n return v;\r\n },\r\n valueFormatter: (value: any, row: any, column: any) => {\r\n return row[column.field];\r\n },\r\n };\r\n return column;\r\n};\r\n\r\nexport const generateDateTimeColumn: any = (colDef: TemplateGridColDef) => {\r\n const column: TemplateGridColDef = {\r\n ...colDef,\r\n type: \"string\",\r\n renderEditCell: (params: any) => {\r\n return (\r\n <DatetimeField\r\n sx={{ width: \"100%\" }}\r\n label=\"\"\r\n value={params.value}\r\n onChangeCallBack={(v: any) => {\r\n params.api.setEditCellValue({\r\n id: params.id,\r\n field: params.field,\r\n value: v,\r\n });\r\n }}\r\n />\r\n );\r\n },\r\n valueParser: (value: any, row: any, column: any) => {\r\n let v = null;\r\n if (value !== null) {\r\n v = moment(value).format(DATE_TIME_FORMAT);\r\n }\r\n return v;\r\n },\r\n valueFormatter: (value: any, row: any, column: any) => {\r\n return row[column.field];\r\n },\r\n };\r\n return column;\r\n};\r\n\r\ntype ComboBoxColumnProps = TemplateGridColDef & {\r\n lookupType?: string;\r\n options: Array<any>;\r\n displayField: string;\r\n valueField: string;\r\n};\r\nexport const generateComboColumn: (\r\n props: ComboBoxColumnProps\r\n) => TemplateGridColDef = (colDef: ComboBoxColumnProps) => {\r\n const column: TemplateGridColDef = {\r\n ...colDef,\r\n type: \"custom\",\r\n valueGetter: (value) => {\r\n if (value) {\r\n return value + \"\";\r\n }\r\n return value;\r\n },\r\n renderCell: (parameters: any) => {\r\n let record = null;\r\n try {\r\n record = parameters.colDef.options.find(\r\n (item: any) => item[parameters.colDef.valueField] == parameters.value\r\n );\r\n } catch (e) {}\r\n return (\r\n <div>\r\n {record != null\r\n ? record[parameters.colDef.displayField]\r\n : parameters.value}\r\n </div>\r\n );\r\n },\r\n\r\n renderEditCell: (params: any) => {\r\n return (\r\n <ComboBox\r\n {...params}\r\n sx={{ width: \"100%\" }}\r\n options={params.colDef.options}\r\n valueField={params.colDef.valueField}\r\n displayField={params.colDef.displayField}\r\n onChangeCallBack={(v: any, selectedRecord: any) => {\r\n if (v === null) {\r\n params.api.setEditCellValue({\r\n id: params.id,\r\n field: params.field,\r\n value: null,\r\n });\r\n }\r\n params.api.setEditCellValue({\r\n id: params.id,\r\n field: params.field,\r\n value: v + \"\",\r\n });\r\n }}\r\n />\r\n );\r\n },\r\n };\r\n return column;\r\n};\r\n\r\ntype CheckBoxColumnProps = TemplateGridColDef & {\r\n checkedValue?: string;\r\n unCheckedValue?: string;\r\n};\r\n\r\nexport const generateCheckBoxColumn: (\r\n props: CheckBoxColumnProps\r\n) => TemplateGridColDef = (colDef: CheckBoxColumnProps) => {\r\n return {\r\n ...colDef,\r\n type: \"custom\",\r\n valueGetter: (value) => {\r\n if (value == null || value == undefined) {\r\n return null;\r\n } else {\r\n return value;\r\n }\r\n },\r\n renderCell: (parameters: any) => {\r\n const value = parameters?.value;\r\n if (\r\n value === colDef.checkedValue ||\r\n value === \"true\" ||\r\n value === 1 ||\r\n value === true\r\n ) {\r\n return <FontAwesomeIcon icon=\"check\" color=\"green\" />;\r\n } else {\r\n return <FontAwesomeIcon icon=\"xmark\" color=\"red\" />;\r\n }\r\n },\r\n renderEditCell: (params: any) => {\r\n return (\r\n <CheckBox\r\n {...params}\r\n checkedValue={colDef?.checkedValue || true}\r\n unCheckedValue={colDef?.unCheckedValue || false}\r\n onChangeCallBack={(v: any) => {\r\n params.api.setEditCellValue({\r\n id: params.id,\r\n field: params.field,\r\n value: v,\r\n });\r\n }}\r\n />\r\n );\r\n },\r\n };\r\n};\r\n","import { GridRowSelectionModel } from \"@mui/x-data-grid-premium\";\r\nimport {\r\n FormElementProps,\r\n RecordFieldProps,\r\n TemplateGridColDef,\r\n} from \"./DataEntryTypes\";\r\nimport {\r\n generateCheckBoxColumn,\r\n generateComboColumn,\r\n generateDateColumn,\r\n generateDateTimeColumn,\r\n} from \"./TemplateDataGrid/DataGridColumnsUtil\";\r\nimport * as z from \"zod\";\r\nimport { TFunction } from \"i18next\";\r\n\r\nexport const getElementFields: (\r\n element: FormElementProps\r\n) => Array<RecordFieldProps> = (element: FormElementProps) => {\r\n const fields: Array<RecordFieldProps> = [];\r\n if (element.type === \"field\" && element.mode === \"props\" && element?.props) {\r\n fields.push(element.props);\r\n } else if (\r\n element.type === \"group\" &&\r\n element?.props &&\r\n element?.props?.elements\r\n ) {\r\n for (const childElement of element.props.elements) {\r\n fields.push(...getElementFields(childElement));\r\n }\r\n }\r\n return fields;\r\n};\r\n\r\nexport const getAllFields: (\r\n elements: Array<FormElementProps>\r\n) => Array<RecordFieldProps> = (elements: Array<FormElementProps>) => {\r\n const fields: Array<RecordFieldProps> = [];\r\n for (const element of elements) {\r\n fields.push(...getElementFields(element));\r\n }\r\n return fields;\r\n};\r\n\r\nexport const constructGridColumnsFromFields: (\r\n fields: Array<RecordFieldProps>,\r\n isDefaultEditable: boolean,\r\n t: TFunction<\"translation\", undefined>\r\n) => Array<TemplateGridColDef> = (fields, isDefaultEditable, t) => {\r\n const columns: Array<TemplateGridColDef> = [];\r\n\r\n for (const tableField of fields) {\r\n if (\r\n tableField?.fieldType === \"text\" ||\r\n tableField?.fieldType === \"number\"\r\n ) {\r\n const column: TemplateGridColDef = {\r\n ...tableField?.gridProps?.muiProps,\r\n editable:\r\n tableField?.gridProps?.muiProps?.editable != undefined\r\n ? tableField?.gridProps?.muiProps?.editable\r\n : isDefaultEditable,\r\n type: tableField?.fieldType == \"number\" ? \"number\" : \"string\",\r\n field: tableField?.fieldName,\r\n headerName: t(tableField?.fieldLabel || tableField?.fieldName),\r\n headerAlign: \"center\",\r\n align: \"center\",\r\n hidden: tableField?.hidden,\r\n searchable: tableField?.gridProps?.searchable,\r\n flex: 1,\r\n minWidth: 200,\r\n };\r\n\r\n columns.push(column);\r\n } else if (tableField?.fieldType === \"date\") {\r\n const column: TemplateGridColDef = generateDateColumn({\r\n ...tableField?.gridProps?.muiProps,\r\n editable:\r\n tableField?.gridProps?.muiProps?.editable != undefined\r\n ? tableField?.gridProps?.muiProps?.editable\r\n : isDefaultEditable,\r\n field: tableField?.fieldName,\r\n headerName: t(tableField?.fieldLabel || tableField?.fieldName),\r\n headerAlign: \"center\",\r\n align: \"center\",\r\n hidden: tableField?.hidden,\r\n searchable: tableField?.gridProps?.searchable,\r\n flex: 1,\r\n minWidth: 200,\r\n });\r\n columns.push(column);\r\n } else if (tableField?.fieldType === \"datetime\") {\r\n const column: TemplateGridColDef = generateDateTimeColumn({\r\n ...tableField?.gridProps?.muiProps,\r\n editable:\r\n tableField?.gridProps?.muiProps?.editable != undefined\r\n ? tableField?.gridProps?.muiProps?.editable\r\n : isDefaultEditable,\r\n field: tableField?.fieldName,\r\n headerName: t(tableField?.fieldLabel || tableField?.fieldName),\r\n headerAlign: \"center\",\r\n align: \"center\",\r\n hidden: tableField?.hidden,\r\n searchable: tableField?.gridProps?.searchable,\r\n flex: 1,\r\n minWidth: 200,\r\n });\r\n columns.push(column);\r\n } else if (tableField?.fieldType === \"checkbox\") {\r\n const column = generateCheckBoxColumn({\r\n ...tableField?.gridProps?.muiProps,\r\n editable:\r\n tableField?.gridProps?.muiProps?.editable != undefined\r\n ? tableField?.gridProps?.muiProps?.editable\r\n : isDefaultEditable,\r\n field: tableField?.fieldName,\r\n headerName: t(tableField?.fieldLabel || tableField?.fieldName),\r\n headerAlign: \"center\",\r\n align: \"center\",\r\n hidden: tableField?.hidden,\r\n searchable: tableField?.gridProps?.searchable,\r\n checkedValue: tableField?.checkedValue,\r\n unCheckedValue: tableField?.unCheckedValue,\r\n width: 150,\r\n });\r\n columns.push(column);\r\n } else if (tableField?.fieldType === \"combobox\") {\r\n const column: TemplateGridColDef = generateComboColumn({\r\n ...tableField?.gridProps?.muiProps,\r\n editable:\r\n tableField?.gridProps?.muiProps?.editable != undefined\r\n ? tableField?.gridProps?.muiProps?.editable\r\n : isDefaultEditable,\r\n field: tableField?.fieldName,\r\n headerName: t(tableField?.fieldLabel || tableField?.fieldName),\r\n headerAlign: \"center\",\r\n align: \"center\",\r\n hidden: tableField?.hidden,\r\n searchable: tableField?.gridProps?.searchable,\r\n valueField: tableField?.optionValueField || \"value\",\r\n displayField: tableField?.optionDisplayField || \"display\",\r\n options: tableField?.options || [],\r\n flex: 1,\r\n minWidth: 200,\r\n });\r\n columns.push(column);\r\n } else if (tableField?.fieldType === \"lookup\") {\r\n const column: TemplateGridColDef = generateComboColumn({\r\n ...tableField?.gridProps?.muiProps,\r\n editable:\r\n tableField?.gridProps?.muiProps?.editable != undefined\r\n ? tableField?.gridProps?.muiProps?.editable\r\n : isDefaultEditable,\r\n lookupType: tableField?.lookupType,\r\n field: tableField?.fieldName,\r\n headerName: t(tableField?.fieldLabel || tableField?.fieldName),\r\n headerAlign: \"center\",\r\n align: \"center\",\r\n hidden: tableField?.hidden,\r\n searchable: tableField?.gridProps?.searchable,\r\n valueField: tableField?.optionValueField || \"value\",\r\n displayField: tableField?.optionDisplayField || \"display\",\r\n options: tableField?.options || [],\r\n flex: 1,\r\n minWidth: 200,\r\n });\r\n columns.push(column);\r\n }\r\n }\r\n return columns;\r\n};\r\n\r\nexport const constructValidationSchema = (fields: Array<RecordFieldProps>) => {\r\n const validationSchemaObj: any = {};\r\n for (const field of fields) {\r\n if (field?.fieldName) {\r\n const fieldName = field.fieldName;\r\n if (field.fieldType === \"number\") {\r\n if (field?.required === true) {\r\n validationSchemaObj[fieldName] = z.number({\r\n required_error: \"This field is required\",\r\n invalid_type_error: \"This field must be a number\",\r\n });\r\n } else {\r\n validationSchemaObj[fieldName] = z.number().optional().nullable();\r\n }\r\n } else if (field.fieldType === \"checkbox\") {\r\n if (field?.required === true) {\r\n validationSchemaObj[fieldName] = z.boolean({\r\n required_error: \"This field is required\",\r\n });\r\n } else {\r\n validationSchemaObj[fieldName] = z.boolean().optional().nullable();\r\n }\r\n } else {\r\n if (field?.required === true) {\r\n validationSchemaObj[fieldName] = z\r\n .string({ message: \"This field is required\" })\r\n .min(1, \"This field is required\");\r\n } else {\r\n validationSchemaObj[fieldName] = z.string().optional().nullable();\r\n }\r\n }\r\n }\r\n }\r\n return validationSchemaObj;\r\n};\r\n\r\nexport type GridSelection = {\r\n selectedRecords: Array<any>;\r\n selectedRecordIds: Array<any>;\r\n};\r\n\r\nexport const getGridSelection: (\r\n rowSelectionModel: GridRowSelectionModel,\r\n data: Array<any>,\r\n keyColumnName: string\r\n) => GridSelection = (\r\n rowSelectionModel: GridRowSelectionModel,\r\n data: Array<any>,\r\n keyColumnName: string\r\n) => {\r\n const sRecords = [];\r\n const sRecordIds = [];\r\n if (\r\n rowSelectionModel.type === \"exclude\" &&\r\n rowSelectionModel.ids.size === 0\r\n ) {\r\n for (const record of data) {\r\n sRecords.push(record);\r\n sRecordIds.push(record[keyColumnName]);\r\n }\r\n } else {\r\n if (rowSelectionModel?.ids) {\r\n for (const selectedId of rowSelectionModel.ids) {\r\n const record = data.find((x) => x[keyColumnName] === selectedId);\r\n sRecords.push(record);\r\n sRecordIds.push(selectedId);\r\n }\r\n }\r\n }\r\n return { selectedRecords: sRecords, selectedRecordIds: sRecordIds };\r\n};\r\n","import { Box } from \"@mui/system\";\r\nimport React, { useEffect, useState } from \"react\";\r\nimport * as z from \"zod\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport { zodResolver } from \"@hookform/resolvers/zod\";\r\nimport { useParams } from \"react-router-dom\";\r\nimport { Button, Grid2 } from \"@mui/material\";\r\nimport { toast } from \"react-toastify\";\r\nimport FormElementGroup from \"./FormElementGroup\";\r\nimport FormElementField from \"./FormElementField\";\r\nimport FormAction from \"./FormAction\";\r\nimport { constructValidationSchema, getAllFields } from \"../DataEntryUtil\";\r\nimport {\r\n FormElementProps,\r\n RecordAction,\r\n TemplateFormProps,\r\n} from \"../DataEntryTypes\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nconst TemplateForm: React.FC<TemplateFormProps> = (\r\n props: TemplateFormProps\r\n) => {\r\n const { t } = useTranslation();\r\n const fields = getAllFields(props.elements);\r\n const initiallyHiddenFields = [];\r\n for (const field of fields) {\r\n if (field?.hidden) {\r\n initiallyHiddenFields.push(field.fieldName);\r\n }\r\n }\r\n const [hiddenFields, setHiddenFields] = useState<string[]>(\r\n initiallyHiddenFields\r\n );\r\n const initialValues: any = {};\r\n for (const element of props.elements) {\r\n if (\r\n element?.type === \"field\" &&\r\n element?.mode === \"props\" &&\r\n element?.props?.defaultValue\r\n ) {\r\n initialValues[element.props.fieldName] = element.props.defaultValue;\r\n }\r\n }\r\n const [disabledFields, setDisabledFields] = useState<string[]>([]);\r\n const formSchema = z.object(constructValidationSchema(fields));\r\n type FormData = z.infer<typeof formSchema>;\r\n const formManager = useForm<FormData>({\r\n resolver: zodResolver(formSchema),\r\n defaultValues: initialValues,\r\n });\r\n const formValues = formManager.watch();\r\n const pathParameters = useParams();\r\n const formRouteRecordIdParamName: any = props?.formRouteRecordIdParamName;\r\n\r\n const loadRecord = async () => {\r\n let idToLoad = null;\r\n if (props?.recordIdToEdit) {\r\n idToLoad = props.recordIdToEdit;\r\n } else if (\r\n formRouteRecordIdParamName &&\r\n pathParameters[formRouteRecordIdParamName]\r\n ) {\r\n idToLoad = pathParameters[formRouteRecordIdParamName];\r\n }\r\n if (idToLoad) {\r\n const retrievedRecord: any = await props.apiActions.loadRecordById(\r\n idToLoad\r\n );\r\n if (retrievedRecord) {\r\n formManager.reset({ ...retrievedRecord });\r\n if (props?.formLoadCallBk) {\r\n props?.formLoadCallBk(formActions, formManager, retrievedRecord);\r\n }\r\n for (const field of fields) {\r\n if (\r\n field?.fieldType === \"combobox\" &&\r\n retrievedRecord[field.fieldName]\r\n ) {\r\n formManager.setValue(\r\n field.fieldName,\r\n retrievedRecord[field.fieldName] + \"\"\r\n );\r\n }\r\n }\r\n }\r\n } else {\r\n formManager.reset({});\r\n }\r\n };\r\n\r\n const saveRecord = async (record: any) => {\r\n if (props?.preSaveValidation && !props.preSaveValidation(record)) {\r\n return;\r\n }\r\n if (record) {\r\n const savedRecord: any = await props.apiActions.saveRecord(record);\r\n if (savedRecord) {\r\n formManager.reset({ ...savedRecord });\r\n if (props?.formSavedSuccessfullyCallBk) {\r\n props.formSavedSuccessfullyCallBk(savedRecord);\r\n }\r\n if (props?.formCloseCallBk) {\r\n props.formCloseCallBk();\r\n }\r\n }\r\n }\r\n };\r\n\r\n const formActions = {\r\n setFieldValue: (fieldName: string, fieldValue: any) => {\r\n formManager.setValue(fieldName, fieldValue);\r\n },\r\n hideField: (fieldName: string) => {\r\n setHiddenFields((oldValues) => {\r\n const newValues = [...oldValues, fieldName];\r\n return newValues;\r\n });\r\n },\r\n showField: (fieldName: string) => {\r\n setHiddenFields((oldValues) => {\r\n const newValues = oldValues.filter((x) => x !== fieldName);\r\n return newValues;\r\n });\r\n },\r\n disableField: (fieldName: string) => {\r\n setDisabledFields((oldValues) => {\r\n const newValues = [...oldValues, fieldName];\r\n return newValues;\r\n });\r\n },\r\n enableField: (fieldName: string) => {\r\n setDisabledFields((oldValues) => {\r\n const newValues = oldValues.filter((x) => x !== fieldName);\r\n return newValues;\r\n });\r\n },\r\n };\r\n\r\n useEffect(() => {\r\n loadRecord();\r\n }, [props?.recordIdToEdit]);\r\n\r\n return (\r\n <>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flex: 1,\r\n width: \"100%\",\r\n height: \"fit-content\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n overflow: \"auto\",\r\n }}\r\n >\r\n <Grid2 sx={{ width: \"100%\" }} container>\r\n {props.elements.map((formElement: FormElementProps, index) => {\r\n if (formElement.type === \"group\") {\r\n return (\r\n <FormElementGroup\r\n key={index}\r\n {...formElement.props}\r\n formManager={formManager}\r\n formValues={formValues}\r\n formActions={formActions}\r\n hiddenFields={hiddenFields}\r\n disabledFields={disabledFields}\r\n />\r\n );\r\n } else if (\r\n formElement.type === \"field\" &&\r\n formElement.mode === \"props\"\r\n ) {\r\n return (\r\n <FormElementField\r\n key={index}\r\n fieldInfo={formElement.props}\r\n formManager={formManager}\r\n formValues={formValues}\r\n formActions={formActions}\r\n hiddenFields={hiddenFields}\r\n disabledFields={disabledFields}\r\n />\r\n );\r\n } else if (\r\n formElement.type === \"field\" &&\r\n formElement.mode === \"node\"\r\n ) {\r\n return (\r\n <Grid2\r\n key={index}\r\n size={\r\n formElement?.props?.formProps?.fieldSize || {\r\n lg: 3,\r\n md: 6,\r\n xs: 12,\r\n }\r\n }\r\n sx={{ padding: 1, width: \"100%\" }}\r\n >\r\n <formElement.node\r\n formManager={formManager}\r\n formValues={formValues}\r\n />\r\n </Grid2>\r\n );\r\n }\r\n })}\r\n </Grid2>\r\n </Box>\r\n\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n width: \"100%\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n }}\r\n >\r\n {props?.actions ? (\r\n props.actions.map((action: RecordAction) => {\r\n if (action?.formActionProps?.enabled === true) {\r\n return <FormAction {...action} record={formValues} />;\r\n } else {\r\n return <></>;\r\n }\r\n })\r\n ) : (\r\n <></>\r\n )}\r\n <div style={{ flex: 1 }}></div>\r\n <Button\r\n variant={\r\n props?.saveButtonSpecs?.actionButtonVariant\r\n ? props.saveButtonSpecs.actionButtonVariant\r\n : \"contained\"\r\n }\r\n sx={{ m: 1 }}\r\n startIcon={\r\n props?.saveButtonSpecs?.icon ? (\r\n <FontAwesomeIcon icon={props.saveButtonSpecs.icon} />\r\n ) : null\r\n }\r\n color={\r\n props?.saveButtonSpecs?.actionButtonColor\r\n ? props.saveButtonSpecs.actionButtonColor\r\n : \"primary\"\r\n }\r\n onClick={formManager.handleSubmit(\r\n (values) => {\r\n console.log(\"form values\", values);\r\n saveRecord(values);\r\n },\r\n (errors) => {\r\n toast.error(\r\n \"Form Data is not valid, make sure you have all field with valid data\"\r\n );\r\n console.log(\"form validation error\", errors);\r\n }\r\n )}\r\n >\r\n {t(props?.saveButtonSpecs?.label || \"SAVE_BTN_LABEL\")}\r\n </Button>\r\n <Button\r\n variant={\r\n props?.cancelButtonSpecs?.actionButtonVariant\r\n ? props.cancelButtonSpecs.actionButtonVariant\r\n : \"contained\"\r\n }\r\n startIcon={\r\n props?.cancelButtonSpecs?.icon ? (\r\n <FontAwesomeIcon icon={props.cancelButtonSpecs.icon} />\r\n ) : null\r\n }\r\n color={\r\n props?.cancelButtonSpecs?.actionButtonColor\r\n ? props.cancelButtonSpecs.actionButtonColor\r\n : \"error\"\r\n }\r\n sx={{ m: 1 }}\r\n onClick={() => {\r\n if (props?.formCloseCallBk) {\r\n props.formCloseCallBk();\r\n }\r\n formManager.reset(initialValues);\r\n }}\r\n >\r\n {t(props?.cancelButtonSpecs?.label || \"CANCEL_BTN_LABEL\")}\r\n </Button>\r\n </Box>\r\n </>\r\n );\r\n};\r\n\r\nexport default TemplateForm;\r\n","import { Button } from \"@mui/material\";\r\nimport { RecordAction } from \"../DataEntryTypes\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { toast } from \"react-toastify\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport useSession from \"../../../../hooks/UseSession\";\r\nimport { useConfirmationWindow } from \"../../../../hooks/UseConfirmationWindow\";\r\n\r\nconst TemplateGridMultiRecordAction: React.FC<RecordAction> = (\r\n rowAction: RecordAction\r\n) => {\r\n const { t } = useTranslation();\r\n const session = useSession();\r\n const { ConfirmationWindow, setOpen } = useConfirmationWindow({\r\n body: t(rowAction?.confirmationMessage || \"ACTION_CONFIRMATION\"),\r\n title: t(\"CONFIRMATION\"),\r\n onConfirmationCallBk: async () => {\r\n await rowAction?.actionFn(\r\n rowAction.recordsToProcessActionOn,\r\n rowAction.recordIdsToProcessActionOn\r\n );\r\n if (rowAction?.reloadData) {\r\n rowAction.reloadData();\r\n }\r\n },\r\n });\r\n let isActionAllowed = true;\r\n if (rowAction.authority) {\r\n isActionAllowed = session.isUserAuthorized(rowAction.authority);\r\n }\r\n\r\n if (isActionAllowed) {\r\n return (\r\n <>\r\n <ConfirmationWindow />\r\n <Button\r\n onClick={async () => {\r\n if (\r\n rowAction?.recordsToProcessActionOn &&\r\n rowAction?.recordsToProcessActionOn.length > 0\r\n ) {\r\n if (rowAction?.preActionValidation) {\r\n for (const record of rowAction.recordsToProcessActionOn) {\r\n if (!rowAction.preActionValidation(record)) {\r\n return;\r\n }\r\n }\r\n }\r\n if (rowAction?.isConfirmationRequired === true) {\r\n setOpen(true);\r\n } else {\r\n await rowAction.actionFn(\r\n rowAction.recordsToProcessActionOn,\r\n rowAction.recordIdsToProcessActionOn\r\n );\r\n if (rowAction?.reloadData) {\r\n rowAction.reloadData();\r\n }\r\n }\r\n } else {\r\n toast.error(t(\"AT_LEAST_ONE_RECORD_SELECTED_MESSAGE\"));\r\n }\r\n }}\r\n variant={\r\n rowAction?.label\r\n ? \"outlined\"\r\n : rowAction?.formActionProps?.actionButtonVariant\r\n ? rowAction.formActionProps.actionButtonVariant\r\n : \"text\"\r\n }\r\n size=\"small\"\r\n color={rowAction?.formActionProps?.actionButtonColor || \"primary\"}\r\n >\r\n {rowAction?.icon ? (\r\n <FontAwesomeIcon\r\n style={{ marginRight: 5, marginLeft: 5 }}\r\n icon={rowAction.icon}\r\n />\r\n ) : (\r\n <></>\r\n )}\r\n {rowAction?.label ? t(rowAction.label) : <></>}\r\n </Button>\r\n </>\r\n );\r\n }\r\n};\r\n\r\nexport default TemplateGridMultiRecordAction;\r\n","import {\r\n Badge,\r\n Box,\r\n Button,\r\n Divider,\r\n IconButton,\r\n InputAdornment,\r\n MenuItem,\r\n styled,\r\n TextField,\r\n Tooltip,\r\n} from \"@mui/material\";\r\nimport {\r\n Toolbar,\r\n ToolbarButton,\r\n ColumnsPanelTrigger,\r\n FilterPanelTrigger,\r\n QuickFilter,\r\n QuickFilterControl,\r\n QuickFilterClear,\r\n QuickFilterTrigger,\r\n GridViewColumnIcon,\r\n GridFilterListIcon,\r\n ExportExcel,\r\n} from \"@mui/x-data-grid-premium\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport TemplateGridMultiRecordAction from \"./TemplateGridMultiRecordAction\";\r\nimport { getGridSelection } from \"../DataEntryUtil\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { TemplateGridTopBarProps } from \"../DataEntryTypes\";\r\nimport useSession from \"../../../../hooks/UseSession\";\r\n\r\ntype OwnerState = {\r\n expanded: boolean;\r\n};\r\n\r\nconst StyledQuickFilter = styled(QuickFilter)({\r\n display: \"grid\",\r\n alignItems: \"center\",\r\n});\r\n\r\nconst StyledToolbarButton = styled(ToolbarButton)<{ ownerState: OwnerState }>(\r\n ({ theme, ownerState }) => ({\r\n gridArea: \"1 / 1\",\r\n width: \"min-content\",\r\n height: \"min-content\",\r\n zIndex: 1,\r\n opacity: ownerState.expanded ? 0 : 1,\r\n pointerEvents: ownerState.expanded ? \"none\" : \"auto\",\r\n transition: theme.transitions.create([\"opacity\"]),\r\n })\r\n);\r\n\r\nconst StyledTextField = styled(TextField)<{\r\n ownerState: OwnerState;\r\n}>(({ theme, ownerState }) => ({\r\n gridArea: \"1 / 1\",\r\n overflowX: \"clip\",\r\n width: ownerState.expanded ? 260 : \"var(--trigger-width)\",\r\n opacity: ownerState.expanded ? 1 : 0,\r\n transition: theme.transitions.create([\"width\", \"opacity\"]),\r\n}));\r\n\r\nconst TemplateGridTopBar: React.FC<TemplateGridTopBarProps> = (\r\n props: TemplateGridTopBarProps\r\n) => {\r\n const { t } = useTranslation();\r\n const session = useSession();\r\n const isCreationAuthorized = props?.templateProps?.editAction?.authority\r\n ? session.isUserAuthorized(props.templateProps.editAction.authority)\r\n : true;\r\n const isCreationEnabled = props?.templateProps?.disableDefaultAction || true;\r\n const gridSelection = getGridSelection(\r\n props?.templateProps?.rowSelectionModel || {\r\n ids: new Set(),\r\n type: \"include\",\r\n },\r\n props?.templateProps?.data || [],\r\n props?.templateProps?.keyColumnName || \"id\"\r\n );\r\n return (\r\n <Toolbar>\r\n {isCreationEnabled &&\r\n isCreationAuthorized &&\r\n props?.templateProps?.editMode?.editMode != \"none\" ? (\r\n <Button onClick={props?.handleCreateNewRecord}>\r\n <FontAwesomeIcon\r\n icon=\"add\"\r\n style={{ marginRight: 5, marginLeft: 5 }}\r\n />\r\n {t(\"ADD_BTN_LABEL\")}\r\n </Button>\r\n ) : (\r\n <></>\r\n )}\r\n {props?.templateProps?.rowActions ? (\r\n props.templateProps.rowActions.map((rowAction, index) =>\r\n rowAction?.gridActionProps?.multiRecord === true ? (\r\n <TemplateGridMultiRecordAction\r\n {...rowAction}\r\n key={index}\r\n reloadData={async () => {\r\n props.templateProps.apiActions.reloadData(\r\n props?.templateProps?.gridLoadParametersValues\r\n );\r\n }}\r\n recordIdsToProcessActionOn={gridSelection.selectedRecordIds}\r\n recordsToProcessActionOn={gridSelection.selectedRecords}\r\n />\r\n ) : null\r\n )\r\n ) : (\r\n <></>\r\n )}\r\n <Box sx={{ flex: 1, mx: 0.5 }}>{props?.templateProps?.tBar}</Box>\r\n\r\n <Tooltip title=\"Columns\">\r\n <ColumnsPanelTrigger render={<ToolbarButton />}>\r\n <GridViewColumnIcon fontSize=\"small\" />\r\n </ColumnsPanelTrigger>\r\n </Tooltip>\r\n\r\n <Tooltip title=\"Filters\">\r\n <FilterPanelTrigger\r\n render={(props, state) => (\r\n <ToolbarButton {...props} color=\"default\">\r\n <Badge\r\n badgeContent={state.filterCount}\r\n color=\"primary\"\r\n variant=\"dot\"\r\n >\r\n <GridFilterListIcon fontSize=\"small\" />\r\n </Badge>\r\n </ToolbarButton>\r\n )}\r\n />\r\n </Tooltip>\r\n\r\n {props?.templateProps?.gridStateKey ? (\r\n <Tooltip title={t(\"RESET_GRID_STATE\")}>\r\n <IconButton onClick={props?.clearGridState}>\r\n <FontAwesomeIcon icon=\"eraser\" />\r\n </IconButton>\r\n </Tooltip>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n <Divider\r\n orientation=\"vertical\"\r\n variant=\"middle\"\r\n flexItem\r\n sx={{ mx: 0.5 }}\r\n />\r\n\r\n <Tooltip title={t(\"EXPORT_EXECL_LABEL\")}>\r\n <ExportExcel render={<MenuItem />}>\r\n <FontAwesomeIcon icon=\"file-excel\" color=\"green\" />\r\n </ExportExcel>\r\n </Tooltip>\r\n\r\n <StyledQuickFilter>\r\n <QuickFilterTrigger\r\n render={(triggerProps, state) => (\r\n <Tooltip title={t(\"SEARCH_BTN_LABEL\")} enterDelay={0}>\r\n <StyledToolbarButton\r\n {...triggerProps}\r\n ownerState={{ expanded: state.expanded }}\r\n color=\"default\"\r\n aria-disabled={state.expanded}\r\n >\r\n <FontAwesomeIcon icon=\"search\" />\r\n </StyledToolbarButton>\r\n </Tooltip>\r\n )}\r\n />\r\n <QuickFilterControl\r\n render={({ ref, ...controlProps }, state) => (\r\n <StyledTextField\r\n {...controlProps}\r\n ownerState={{ expanded: state.expanded }}\r\n inputRef={ref}\r\n aria-label=\"Search\"\r\n placeholder={`${t(\"SEARCH_BTN_LABEL\")}...`}\r\n size=\"small\"\r\n slotProps={{\r\n input: {\r\n startAdornment: (\r\n <InputAdornment position=\"start\">\r\n <FontAwesomeIcon icon=\"search\" />\r\n </InputAdornment>\r\n ),\r\n endAdornment: state.value ? (\r\n <InputAdornment position=\"end\">\r\n <QuickFilterClear\r\n edge=\"end\"\r\n size=\"small\"\r\n aria-label=\"Clear search\"\r\n // material={{ sx: { marginRight: -0.75 } }}\r\n >\r\n <FontAwesomeIcon icon=\"xmark\" />\r\n </QuickFilterClear>\r\n </InputAdornment>\r\n ) : null,\r\n ...controlProps.slotProps?.input,\r\n },\r\n ...controlProps.slotProps,\r\n }}\r\n />\r\n )}\r\n />\r\n </StyledQuickFilter>\r\n\r\n <IconButton\r\n onClick={() => {\r\n props.templateProps.apiActions.reloadData(\r\n props?.templateProps?.gridLoadParametersValues\r\n );\r\n }}\r\n >\r\n <FontAwesomeIcon icon=\"refresh\" />\r\n </IconButton>\r\n </Toolbar>\r\n );\r\n};\r\n\r\nexport default TemplateGridTopBar;\r\n","import { Tooltip } from \"@mui/material\";\r\nimport { GridActionsCellItem } from \"@mui/x-data-grid-premium\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { RecordAction } from \"../DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport useSession from \"../../../../hooks/UseSession\";\r\nimport { useConfirmationWindow } from \"../../../../hooks/UseConfirmationWindow\";\r\n\r\nconst TemplateGridRecordAction: React.FC<RecordAction> = (\r\n rowAction: RecordAction\r\n) => {\r\n const { t } = useTranslation();\r\n const session = useSession();\r\n const { ConfirmationWindow, setOpen } = useConfirmationWindow({\r\n body: t(rowAction?.confirmationMessage || \"ACTION_CONFIRMATION\"),\r\n title: t(\"CONFIRMATION\"),\r\n onConfirmationCallBk: async () => {\r\n await rowAction?.actionFn(rowAction.record);\r\n if (rowAction?.reloadData) {\r\n rowAction.reloadData();\r\n }\r\n },\r\n });\r\n let isActionAllowed = true;\r\n if (rowAction.authority) {\r\n isActionAllowed = session.isUserAuthorized(rowAction.authority);\r\n }\r\n let iconStyle: any = {};\r\n if (rowAction?.getActionIconStyleForRecord) {\r\n iconStyle = rowAction.getActionIconStyleForRecord(rowAction.record);\r\n }\r\n let isActionVisibleForRecord = true;\r\n if (rowAction?.isActionVisibleForRecord) {\r\n isActionVisibleForRecord = rowAction?.isActionVisibleForRecord(\r\n rowAction.record\r\n );\r\n }\r\n let isActionDisabledForRecord = false;\r\n if (rowAction?.isActionDisabledForRecord) {\r\n isActionDisabledForRecord = rowAction.isActionDisabledForRecord(\r\n rowAction.record\r\n );\r\n }\r\n if (isActionAllowed && isActionVisibleForRecord) {\r\n return (\r\n <>\r\n <ConfirmationWindow />\r\n <GridActionsCellItem\r\n disabled={isActionDisabledForRecord}\r\n icon={\r\n <Tooltip title={rowAction?.label ? t(rowAction.label) : \"\"}>\r\n <FontAwesomeIcon\r\n icon={rowAction.icon}\r\n style={{\r\n ...iconStyle,\r\n color: isActionDisabledForRecord\r\n ? \"gray\"\r\n : iconStyle?.color != undefined\r\n ? iconStyle.color\r\n : undefined,\r\n }}\r\n />\r\n </Tooltip>\r\n }\r\n showInMenu={rowAction?.gridActionProps?.showInMenu || false}\r\n label={\"\"}\r\n className=\"textPrimary\"\r\n color=\"inherit\"\r\n onClick={async () => {\r\n if (!isActionDisabledForRecord) {\r\n if (rowAction?.preActionValidation) {\r\n if (!rowAction.preActionValidation(rowAction.record)) {\r\n return;\r\n }\r\n }\r\n if (rowAction?.isConfirmationRequired === true) {\r\n setOpen(true);\r\n } else {\r\n await rowAction.actionFn(rowAction.record);\r\n if (\r\n rowAction?.gridActionProps?.reloadGridAfterAction === true &&\r\n rowAction?.reloadData\r\n ) {\r\n rowAction.reloadData();\r\n }\r\n }\r\n }\r\n }}\r\n />\r\n </>\r\n );\r\n }\r\n};\r\n\r\nexport default TemplateGridRecordAction;\r\n","import {\r\n DataGridPremium,\r\n GridActionsCellItem,\r\n GridActionsCellItemProps,\r\n GridColumnOrderChangeParams,\r\n GridColumnResizeParams,\r\n GridColumnVisibilityModel,\r\n GridEventListener,\r\n GridExpandMoreIcon,\r\n GridPinnedColumnFields,\r\n GridRowGroupingModel,\r\n GridRowModes,\r\n GridRowModesModel,\r\n GridRowParams,\r\n GridRowSelectionModel,\r\n} from \"@mui/x-data-grid-premium\";\r\nimport { TemplateGridColDef, TemplateGridProps } from \"../DataEntryTypes\";\r\nimport TemplateGridTopBar from \"./TemplateGridTopBar\";\r\nimport { useNavigate } from \"react-router-dom\";\r\nimport React, { useEffect, useState } from \"react\";\r\nimport { z } from \"zod\";\r\nimport {\r\n constructGridColumnsFromFields,\r\n constructValidationSchema,\r\n getAllFields,\r\n} from \"../DataEntryUtil\";\r\nimport { toast } from \"react-toastify\";\r\nimport {\r\n Accordion,\r\n AccordionDetails,\r\n AccordionSummary,\r\n Box,\r\n Divider,\r\n IconButton,\r\n Tooltip,\r\n Typography,\r\n} from \"@mui/material\";\r\nimport { capitalizeFirstLetter, isNumber } from \"../../../../util/AppUtils\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport TemplateGridRecordAction from \"./TemplateGridRecordAction\";\r\nimport TemplateForm from \"../TemplateDataForm/TemplateForm\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport useSession from \"../../../../hooks/UseSession\";\r\nimport { useConfirmationWindow } from \"../../../../hooks/UseConfirmationWindow\";\r\nimport { useWindow } from \"../../../../hooks/UseWindow\";\r\nimport { useAxios } from \"../../../../hooks\";\r\nimport useLookupGridColumn from \"../../../../hooks/useLookupGridColumn\";\r\nimport { ContinuousColorLegend } from \"@mui/x-charts\";\r\nlet currentNewRecordIndex = -1;\r\n\r\ninterface GridState {\r\n columnVisibilityModel?: GridColumnVisibilityModel;\r\n columnOrder?: string[];\r\n columnWidths?: { [key: string]: number };\r\n columnGroupingModel?: GridRowGroupingModel;\r\n pinnedColumns?: GridPinnedColumnFields;\r\n}\r\n\r\nconst loadGridState = (gridStateKey: string): GridState => {\r\n try {\r\n const saved = localStorage.getItem(gridStateKey);\r\n return saved ? JSON.parse(saved) : {};\r\n } catch (e) {\r\n console.error(\"Failed to load grid state\", e);\r\n return {};\r\n }\r\n};\r\n\r\nconst saveGridState = (gridStateKey: string, statePart: GridState) => {\r\n const current = loadGridState(gridStateKey);\r\n localStorage.setItem(\r\n gridStateKey,\r\n JSON.stringify({ ...current, ...statePart })\r\n );\r\n};\r\n\r\nconst PIN_FIXED_COLUMNS = [\"__check__\", \"actions\"];\r\n\r\nconst TemplateGrid: React.FC<TemplateGridProps> = (props) => {\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const { getLookupOptions } = useLookupGridColumn();\r\n const [generatedColumns, setGeneratedColumns] = useState<\r\n Array<TemplateGridColDef>\r\n >([]);\r\n const { t } = useTranslation();\r\n const fields = getAllFields(props.formElements);\r\n const hiddenFields = [];\r\n const savedState = React.useMemo<GridState>(\r\n () => (props?.gridStateKey ? loadGridState(props.gridStateKey) : {}),\r\n []\r\n );\r\n for (const field of fields) {\r\n if (field?.gridProps?.hidden === true) {\r\n hiddenFields.push(field.fieldName);\r\n }\r\n }\r\n let initialVisibilityState: GridColumnVisibilityModel = {};\r\n if (savedState?.columnVisibilityModel) {\r\n initialVisibilityState = savedState.columnVisibilityModel;\r\n const existingFields = Object.keys(initialVisibilityState);\r\n for (const field of hiddenFields) {\r\n if (!existingFields.includes(field)) {\r\n initialVisibilityState[field] = false;\r\n }\r\n }\r\n } else {\r\n for (const field of hiddenFields) {\r\n initialVisibilityState[field] = false;\r\n }\r\n }\r\n\r\n const themeDirection = useSelector(\r\n (state: any) => state.AppLayout.appDirection\r\n );\r\n\r\n const clearGridState = () => {\r\n if (props?.gridStateKey) {\r\n localStorage.removeItem(props.gridStateKey);\r\n }\r\n setColumnVisibilityModel({});\r\n setColumnOrder([]);\r\n setColumnWidths({});\r\n setGridRowGroupingModel([]);\r\n setPinnedColumns({\r\n left: [...(themeDirection === \"ltr\" ? PIN_FIXED_COLUMNS : [])],\r\n right: [...(themeDirection === \"rtl\" ? PIN_FIXED_COLUMNS : [])],\r\n });\r\n };\r\n const [columnVisibilityModel, setColumnVisibilityModel] =\r\n React.useState<GridColumnVisibilityModel>(initialVisibilityState);\r\n const [columnOrder, setColumnOrder] = React.useState<string[]>(\r\n savedState.columnOrder || []\r\n );\r\n const [columnWidths, setColumnWidths] = React.useState<{\r\n [key: string]: number;\r\n }>(savedState.columnWidths || {});\r\n const [gridRowGroupingModel, setGridRowGroupingModel] =\r\n useState<GridRowGroupingModel>(savedState.columnGroupingModel || []);\r\n let newLeft = savedState?.pinnedColumns?.left || [];\r\n newLeft = newLeft.filter(\r\n (record: any) => !PIN_FIXED_COLUMNS.includes(record)\r\n );\r\n let newRight = savedState?.pinnedColumns?.right || [] || [];\r\n newRight = newRight.filter(\r\n (record: any) => !PIN_FIXED_COLUMNS.includes(record)\r\n );\r\n\r\n const [pinnedColumns, setPinnedColumns] = useState<GridPinnedColumnFields>({\r\n left: [...(themeDirection === \"ltr\" ? PIN_FIXED_COLUMNS : []), ...newLeft],\r\n right: [\r\n ...(themeDirection === \"rtl\" ? PIN_FIXED_COLUMNS : []),\r\n ...newRight,\r\n ],\r\n });\r\n\r\n const session = useSession();\r\n const navigate = useNavigate();\r\n const [recordToDelete, setRecordToDelete] = useState<any>(null);\r\n const [recordToEdit, setRecordToEdit] = useState<any>(null);\r\n const [rowModesModel, setRowModesModel] = useState<GridRowModesModel>({});\r\n const adjustGridColumns = async () => {\r\n let gridColumns = constructGridColumnsFromFields(\r\n fields,\r\n props?.editMode?.editMode === \"row\" || false,\r\n t\r\n );\r\n for (let gridColumn of gridColumns) {\r\n if (gridColumn?.lookupType) {\r\n gridColumn.displayField =\r\n AppLayout.appDirection === \"ltr\"\r\n ? \"lookupEnDisplay\"\r\n : \"lookupArDisplay\";\r\n gridColumn.options = await getLookupOptions(gridColumn.lookupType);\r\n gridColumn.valueField = \"lookupValue\";\r\n }\r\n } \r\n setGeneratedColumns(gridColumns);\r\n };\r\n const [rowSelectionModel, setRowSelectionModel] =\r\n useState<GridRowSelectionModel>({ ids: new Set(), type: \"include\" });\r\n let keyColumnName: string = \"id\";\r\n if (props?.keyColumnName) {\r\n keyColumnName = props?.keyColumnName;\r\n }\r\n const setData = props.setData;\r\n const validationSchema = z.object(constructValidationSchema(fields));\r\n let isEditAllowed = true;\r\n if (props?.editAction?.authority) {\r\n isEditAllowed = session.isUserAuthorized(props.editAction.authority);\r\n }\r\n let isDeleteAllowed = true;\r\n if (props?.deleteAction?.authority) {\r\n isDeleteAllowed = session.isUserAuthorized(props.deleteAction.authority);\r\n }\r\n\r\n const handleRowModesModelChange = (newModel: GridRowModesModel) => {\r\n setRowModesModel(newModel);\r\n };\r\n\r\n const handlePinnedColumnsChange = (newModel: GridPinnedColumnFields) => {\r\n let newLeft = newModel?.left || [];\r\n newLeft = newLeft.filter(\r\n (record: any) => !PIN_FIXED_COLUMNS.includes(record)\r\n );\r\n let newRight = newModel?.right || [];\r\n newRight = newRight.filter(\r\n (record: any) => !PIN_FIXED_COLUMNS.includes(record)\r\n );\r\n const newPinedColumns: GridPinnedColumnFields = {\r\n left: [\r\n ...(themeDirection === \"ltr\" ? PIN_FIXED_COLUMNS : []),\r\n ...newLeft,\r\n ],\r\n right: [\r\n ...(themeDirection === \"rtl\" ? PIN_FIXED_COLUMNS : []),\r\n ...newRight,\r\n ],\r\n };\r\n setPinnedColumns(newPinedColumns);\r\n if (props?.gridStateKey) {\r\n saveGridState(props.gridStateKey, { pinnedColumns: newPinedColumns });\r\n }\r\n };\r\n\r\n const handleDeleteRecord = async () => {\r\n let result = true;\r\n if (!(recordToDelete && recordToDelete?.isNew === true)) {\r\n result = await props.apiActions.deleteRecordById(\r\n recordToDelete[keyColumnName]\r\n );\r\n }\r\n if (result) {\r\n if (props?.deleteAction?.postActionCallBack) {\r\n await props.deleteAction.postActionCallBack(recordToDelete);\r\n }\r\n\r\n setData((oldData: any) => {\r\n const newData = oldData.filter(\r\n (record: any) =>\r\n record[keyColumnName] != recordToDelete[keyColumnName]\r\n );\r\n return newData;\r\n });\r\n }\r\n };\r\n\r\n const { ConfirmationWindow, setOpen: setConfirmationWindowOpened } =\r\n useConfirmationWindow({\r\n title: \"Confirmation\",\r\n body: \"Are you sure you want to delete this record ?\",\r\n onConfirmationCallBk: handleDeleteRecord,\r\n });\r\n\r\n let formModalHeight = undefined;\r\n let formModalWidth = undefined;\r\n let formModalMinHeight = undefined;\r\n let formModalMinWidth = undefined;\r\n let formModalIcon = undefined;\r\n let formModalTitle = undefined;\r\n\r\n if (props?.editMode?.editMode === \"modal\") {\r\n formModalHeight = props?.editMode?.specs?.modalHeight || \"fit-content\";\r\n formModalWidth = props?.editMode?.specs?.modalWidth || \"300\";\r\n formModalMinHeight = props?.editMode?.specs?.modalMinHeight;\r\n formModalMinWidth = props?.editMode?.specs?.modalMinWidth;\r\n formModalIcon = props?.editMode?.specs?.modalIcon || \"window\";\r\n formModalTitle = props?.editMode?.specs?.modalTitle || \"Record Form\";\r\n }\r\n\r\n const { Window: FormWindow, setWindowState: setFormWindowState } = useWindow({\r\n height: formModalHeight,\r\n minHeight: formModalMinHeight,\r\n minWidth: formModalMinWidth,\r\n onCloseCallBack: () => {\r\n props.apiActions.reloadData(props?.gridLoadParametersValues);\r\n },\r\n width: formModalWidth,\r\n windowIcon: formModalIcon,\r\n windowTitle: formModalTitle,\r\n });\r\n\r\n const handleCreateNewRecord = () => {\r\n if (props?.editMode?.editMode === \"form\") {\r\n navigate(props.editMode.specs.formRoute);\r\n } else if (props?.editMode?.editMode === \"modal\") {\r\n setRecordToEdit(null);\r\n setFormWindowState(true);\r\n } else if (props?.editMode?.editMode === \"row\") {\r\n currentNewRecordIndex = currentNewRecordIndex - 1;\r\n const newRecord: any = {};\r\n newRecord[keyColumnName] = currentNewRecordIndex;\r\n newRecord.isNew = true;\r\n for (const gridColumn of generatedColumns) {\r\n if (\r\n gridColumn?.type != \"actions\" &&\r\n gridColumn?.field != keyColumnName\r\n ) {\r\n if (gridColumn?.field) {\r\n newRecord[gridColumn.field] = null;\r\n }\r\n }\r\n }\r\n setData((oldRows: any) => [newRecord, ...oldRows]);\r\n setRowModesModel((oldModel: any) => ({\r\n ...oldModel,\r\n [currentNewRecordIndex]: { mode: GridRowModes.Edit },\r\n }));\r\n }\r\n };\r\n\r\n const handleEditRecord = async (record: any) => {\r\n if (record) {\r\n setRecordToEdit(record);\r\n if (props.editMode.editMode === \"form\") {\r\n navigate(props.editMode.specs.formRoute + \"/\" + record[keyColumnName]);\r\n } else if (props.editMode.editMode === \"modal\") {\r\n setFormWindowState(true);\r\n } else if (props?.editMode?.editMode === \"row\") {\r\n const id = record[keyColumnName];\r\n setRowModesModel({\r\n ...rowModesModel,\r\n [id]: { mode: GridRowModes.Edit },\r\n });\r\n }\r\n }\r\n };\r\n\r\n const validateRecord = (record: any) => {\r\n try {\r\n validationSchema.parse(record);\r\n } catch (err) {\r\n console.log(\"validateRecord err\", err);\r\n let errorMessage: any = null;\r\n if (err instanceof z.ZodError) {\r\n errorMessage = err.errors\r\n .map(\r\n (error) => \"Error in field (\" + error.path + \") : \" + error.message\r\n )\r\n .join(\",\");\r\n } else {\r\n errorMessage = \"invalid record data\";\r\n }\r\n return errorMessage;\r\n }\r\n };\r\n\r\n const handleSaveRowClick = (record: any) => {\r\n const id = record[keyColumnName];\r\n setRowModesModel({\r\n ...rowModesModel,\r\n [id]: { mode: GridRowModes.View },\r\n });\r\n };\r\n\r\n const processRowUpdate = async (record: any) => {\r\n if (props.editMode.editMode === \"row\") {\r\n let savedRecord: any = null;\r\n const errorMessage = validateRecord(record);\r\n if (errorMessage) {\r\n const errors = errorMessage.split(\",\");\r\n toast.error(\r\n <div style={{}}>\r\n {errors.map((error: any) => (\r\n <>\r\n <div>{error}</div>\r\n <Divider />\r\n </>\r\n ))}\r\n </div>\r\n );\r\n throw new Error(errorMessage);\r\n }\r\n if (props?.editAction?.preActionValidation) {\r\n if (!props.editAction.preActionValidation(record)) {\r\n throw new Error(\"error on the configured presave validation\");\r\n }\r\n }\r\n const requestObject: any = { ...record };\r\n if (\r\n record[keyColumnName] &&\r\n isNumber(record[keyColumnName]) &&\r\n Number(record[keyColumnName]) < 0\r\n ) {\r\n requestObject[keyColumnName] = null;\r\n }\r\n savedRecord = await props.apiActions.saveRecord(requestObject);\r\n if (savedRecord == null) {\r\n throw new Error(\r\n \"Failed to process your request, contact your administrator\"\r\n );\r\n }\r\n if (props?.editAction?.postActionCallBack) {\r\n await props.editAction.postActionCallBack(record);\r\n }\r\n if (record?.isNew === true) {\r\n setData((oldData: any) => {\r\n const newData = oldData.filter(\r\n (x: any) => x[keyColumnName] !== record[keyColumnName]\r\n );\r\n return [savedRecord, ...newData];\r\n });\r\n }\r\n if (\r\n props?.editMode?.reloadAfterSave === true &&\r\n props?.apiActions?.reloadData\r\n ) {\r\n props?.apiActions?.reloadData(props?.gridLoadParametersValues);\r\n }\r\n return savedRecord;\r\n }\r\n };\r\n\r\n const handleCancelRowEditClick = (record: any) => {\r\n const id = record[keyColumnName];\r\n if (id && isNumber(id) && id < 0) {\r\n setRowModesModel({\r\n ...rowModesModel,\r\n [id]: { mode: GridRowModes.View, ignoreModifications: true },\r\n });\r\n setData((oldData: any) => {\r\n const newData = oldData.filter(\r\n (record: any) => record[keyColumnName] != id\r\n );\r\n return newData;\r\n });\r\n } else {\r\n setRowModesModel({\r\n ...rowModesModel,\r\n [id]: { mode: GridRowModes.View, ignoreModifications: true },\r\n });\r\n }\r\n };\r\n\r\n const getActionColumnActions = (params: GridRowParams<any>) => {\r\n const record: any = params.row;\r\n const actions: Array<React.ReactElement<GridActionsCellItemProps>> = [];\r\n if (props?.editMode?.editMode != \"none\") {\r\n if (\r\n props?.disableDefaultAction === undefined ||\r\n !props.disableDefaultAction\r\n ) {\r\n const isInEditMode: boolean =\r\n rowModesModel[record[keyColumnName]]?.mode === GridRowModes.Edit;\r\n if (props.editMode.editMode === \"row\" && isInEditMode) {\r\n if (isEditAllowed) {\r\n actions.push(\r\n <GridActionsCellItem\r\n icon={<FontAwesomeIcon icon=\"save\" />}\r\n label={t(\"SAVE_BTN_LABEL\")}\r\n onClick={() => {\r\n handleSaveRowClick(record);\r\n }}\r\n />\r\n );\r\n actions.push(\r\n <GridActionsCellItem\r\n icon={<FontAwesomeIcon icon=\"cancel\" />}\r\n label={t(\"CANCEL_BTN_LABEL\")}\r\n onClick={() => {\r\n handleCancelRowEditClick(record);\r\n }}\r\n color=\"inherit\"\r\n />\r\n );\r\n }\r\n } else {\r\n if (props?.editAction && props?.editAction?.isEnabled === true) {\r\n let isEditActionVisibleForRecord = true;\r\n if (props?.editAction?.isActionVisibleForRecord) {\r\n isEditActionVisibleForRecord =\r\n props?.editAction?.isActionVisibleForRecord(record);\r\n }\r\n let isActionEditDisabledForRecord = false;\r\n if (props?.editAction?.isActionDisabledForRecord) {\r\n isActionEditDisabledForRecord =\r\n props?.editAction?.isActionDisabledForRecord(record);\r\n }\r\n if (isEditAllowed && isEditActionVisibleForRecord) {\r\n actions.push(\r\n <GridActionsCellItem\r\n disabled={isActionEditDisabledForRecord}\r\n icon={\r\n <Tooltip title={t(\"EDIT_BTN_LABEL\")}>\r\n <FontAwesomeIcon\r\n icon={\"edit\"}\r\n style={{\r\n color: isActionEditDisabledForRecord\r\n ? \"gray\"\r\n : undefined,\r\n }}\r\n />\r\n </Tooltip>\r\n }\r\n showInMenu={\r\n props?.editAction?.gridActionProps?.showInMenu || false\r\n }\r\n label={t(\"EDIT_BTN_LABEL\")}\r\n className=\"textPrimary\"\r\n color=\"inherit\"\r\n onClick={() => {\r\n if (isEditAllowed && !isActionEditDisabledForRecord) {\r\n handleEditRecord(record);\r\n }\r\n }}\r\n />\r\n );\r\n }\r\n }\r\n if (props?.deleteAction && props?.deleteAction?.isEnabled === true) {\r\n let isDeleteActionVisibleForRecord = true;\r\n if (props?.deleteAction?.isActionVisibleForRecord) {\r\n isDeleteActionVisibleForRecord =\r\n props?.deleteAction?.isActionVisibleForRecord(record);\r\n }\r\n let isDeleteActionDisabledForRecord = false;\r\n if (props?.deleteAction?.isActionDisabledForRecord) {\r\n isDeleteActionDisabledForRecord =\r\n props?.deleteAction?.isActionDisabledForRecord(record);\r\n }\r\n if (isDeleteAllowed && isDeleteActionVisibleForRecord) {\r\n actions.push(\r\n <GridActionsCellItem\r\n disabled={isDeleteActionDisabledForRecord}\r\n icon={\r\n <Tooltip title={t(\"DELETE_BTN_LABEL\")}>\r\n <FontAwesomeIcon\r\n icon={\"trash\"}\r\n style={{\r\n color: isDeleteActionDisabledForRecord\r\n ? \"gray\"\r\n : undefined,\r\n }}\r\n />\r\n </Tooltip>\r\n }\r\n showInMenu={\r\n props?.deleteAction?.gridActionProps?.showInMenu || false\r\n }\r\n label={t(\"DELETE_BTN_LABEL\")}\r\n className=\"textPrimary\"\r\n color=\"inherit\"\r\n onClick={() => {\r\n if (isDeleteAllowed && !isDeleteActionDisabledForRecord) {\r\n if (props?.deleteAction?.preActionValidation) {\r\n if (!props.deleteAction.preActionValidation(record)) {\r\n return;\r\n }\r\n }\r\n setRecordToDelete(record);\r\n setConfirmationWindowOpened(true);\r\n }\r\n }}\r\n />\r\n );\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if (props?.rowActions) {\r\n for (const rowAction of props.rowActions) {\r\n if (\r\n !(\r\n rowAction?.gridActionProps?.multiRecord &&\r\n rowAction?.gridActionProps?.multiRecord === true\r\n )\r\n ) {\r\n actions.push(\r\n <TemplateGridRecordAction\r\n {...rowAction}\r\n record={record}\r\n reloadData={async () => {\r\n props.apiActions.reloadData(props?.gridLoadParametersValues);\r\n }}\r\n />\r\n );\r\n }\r\n }\r\n }\r\n\r\n return actions;\r\n };\r\n\r\n const actionColumn: TemplateGridColDef = {\r\n type: \"actions\",\r\n field: \"actions\",\r\n headerName: \"\",\r\n headerAlign: \"center\",\r\n width:\r\n (props?.rowActions ? props.rowActions.length * 30 : 0) +\r\n (props?.editAction && props?.editAction?.isEnabled ? 30 : 0) +\r\n (props?.deleteAction && props?.deleteAction?.isEnabled ? 30 : 0),\r\n getActions: getActionColumnActions,\r\n };\r\n\r\n let structuredColumns: Array<TemplateGridColDef> = [];\r\n if (\r\n props?.disableDefaultAction === undefined ||\r\n !props.disableDefaultAction ||\r\n (props?.rowActions && props?.rowActions.length > 0)\r\n ) {\r\n structuredColumns.push(actionColumn);\r\n }\r\n\r\n structuredColumns = [...structuredColumns, ...generatedColumns];\r\n const handleRowSelection = (gridSelectionModel: GridRowSelectionModel) => {\r\n setRowSelectionModel(gridSelectionModel);\r\n };\r\n useEffect(() => {\r\n if (props?.autoLoad === undefined || props.autoLoad === true) {\r\n props.apiActions.reloadData(props?.gridLoadParametersValues);\r\n }\r\n adjustGridColumns();\r\n }, []);\r\n\r\n useEffect(() => {\r\n adjustGridColumns();\r\n }, [themeDirection, props.formElements]);\r\n\r\n const handleColumnVisibilityChange = (model: GridColumnVisibilityModel) => {\r\n setColumnVisibilityModel(model);\r\n if (props?.gridStateKey) {\r\n saveGridState(props.gridStateKey, { columnVisibilityModel: model });\r\n }\r\n };\r\n\r\n const handleColumnOrderChange: GridEventListener<\"columnOrderChange\"> = (\r\n params: GridColumnOrderChangeParams\r\n ) => {\r\n const { column, targetIndex } = params;\r\n setColumnOrder((prevOrder) => {\r\n const currentOrder = prevOrder.length\r\n ? [...prevOrder]\r\n : structuredColumns.map((col) => col.field);\r\n const fromIndex = currentOrder.indexOf(column.field);\r\n if (fromIndex === -1) return currentOrder;\r\n\r\n currentOrder.splice(fromIndex, 1); // remove\r\n currentOrder.splice(targetIndex, 0, column.field); // insert at new index\r\n\r\n if (props?.gridStateKey) {\r\n saveGridState(props.gridStateKey, { columnOrder: currentOrder });\r\n }\r\n\r\n return currentOrder;\r\n });\r\n };\r\n\r\n const handleRowGroupChange = (model: GridRowGroupingModel) => {\r\n setGridRowGroupingModel(model);\r\n if (props?.gridStateKey) {\r\n saveGridState(props.gridStateKey, { columnGroupingModel: model });\r\n }\r\n };\r\n\r\n const handleColumnWidthChange: GridEventListener<\"columnWidthChange\"> = (\r\n params: GridColumnResizeParams\r\n ) => {\r\n const updatedWidths = {\r\n ...columnWidths,\r\n [params.colDef.field]: params.width,\r\n };\r\n setColumnWidths(updatedWidths);\r\n if (props?.gridStateKey) {\r\n saveGridState(props.gridStateKey, { columnWidths: updatedWidths });\r\n }\r\n };\r\n\r\n const adjustedColumns: Array<TemplateGridColDef> = React.useMemo(() => {\r\n const baseCols = structuredColumns.map((col) => ({\r\n ...col,\r\n width: columnWidths[col.field] || col.width,\r\n }));\r\n\r\n // Reorder based on saved columnOrder\r\n if (columnOrder.length) {\r\n const fieldToCol = new Map(baseCols.map((col) => [col.field, col]));\r\n return columnOrder.map((field) => fieldToCol.get(field)!).filter(Boolean);\r\n }\r\n\r\n return baseCols;\r\n }, [columnOrder, columnWidths, structuredColumns]);\r\n return (\r\n <>\r\n <ConfirmationWindow />\r\n {props?.editMode?.editMode === \"modal\" ? (\r\n <FormWindow>\r\n {props?.editMode?.specs?.formComponent ? (\r\n <props.editMode.specs.formComponent\r\n recordIdToEdit={\r\n recordToEdit ? recordToEdit[keyColumnName] : undefined\r\n }\r\n formCloseCallBk={() => {\r\n setFormWindowState(false);\r\n props.apiActions.reloadData(props?.gridLoadParametersValues);\r\n }}\r\n />\r\n ) : (\r\n <TemplateForm\r\n formLoadCallBk={props.formLoadCallBk}\r\n recordIdToEdit={\r\n recordToEdit ? recordToEdit[keyColumnName] : undefined\r\n }\r\n formCloseCallBk={() => {\r\n setFormWindowState(false);\r\n props.apiActions.reloadData(props?.gridLoadParametersValues);\r\n }}\r\n elements={props.formElements}\r\n apiActions={props.apiActions}\r\n editAuthorityKey={props?.editAction?.authority}\r\n formSavedSuccessfullyCallBk={\r\n props?.editAction?.postActionCallBack\r\n }\r\n preSaveValidation={props?.editAction?.preActionValidation}\r\n actions={props?.rowActions}\r\n />\r\n )}\r\n </FormWindow>\r\n ) : (\r\n <></>\r\n )}\r\n {props?.hideInfoBar === undefined && !props?.hideInfoBar ? (\r\n <Box sx={{ display: \"flex\" }}>\r\n {props?.hideBackButton === undefined && !props?.hideBackButton ? (\r\n <IconButton\r\n onClick={() => {\r\n navigate(-1, { replace: true });\r\n }}\r\n >\r\n <FontAwesomeIcon icon=\"arrow-left\" />\r\n </IconButton>\r\n ) : (\r\n <></>\r\n )}\r\n <Box\r\n sx={{\r\n flex: 1,\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n {props?.girdIcon ? (\r\n <FontAwesomeIcon\r\n icon={props.girdIcon}\r\n style={{ marginRight: 5, marginLeft: 5 }}\r\n />\r\n ) : (\r\n <></>\r\n )}\r\n <Typography variant=\"h5\">\r\n {props?.gridTitle\r\n ? capitalizeFirstLetter(t(props?.gridTitle))\r\n : \"\"}\r\n </Typography>\r\n </Box>\r\n </Box>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n {props?.gridLoadParameters &&\r\n props?.gridLoadParameters.length > 0 &&\r\n props?.gridLoadParametersValues &&\r\n props?.setGridLoadParametersValues ? (\r\n <Accordion defaultExpanded sx={{ width: \"100%\" }}>\r\n <AccordionSummary expandIcon={<GridExpandMoreIcon />}>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n style={{ marginLeft: 5, marginRight: 5 }}\r\n icon=\"search\"\r\n />\r\n <Typography component=\"span\">Filters</Typography>\r\n </Box>\r\n </AccordionSummary>\r\n <AccordionDetails>\r\n <Box>\r\n <TemplateForm\r\n saveButtonSpecs={{\r\n label: t(\"SEARCH_BTN_LABEL\"),\r\n icon: \"search\",\r\n actionButtonVariant: \"outlined\",\r\n actionButtonColor: \"success\",\r\n }}\r\n cancelButtonSpecs={{\r\n label: t(\"RESET_BTN_LABEL\"),\r\n icon: \"eraser\",\r\n actionButtonVariant: \"outlined\",\r\n actionButtonColor: \"error\",\r\n }}\r\n apiActions={{\r\n deleteRecordById: async () => {\r\n return true;\r\n },\r\n saveRecord: async (params) => {\r\n if (params != undefined) {\r\n props.setGridLoadParametersValues(params);\r\n } else {\r\n props.setGridLoadParametersValues({});\r\n }\r\n props.apiActions.reloadData(params);\r\n },\r\n reloadData: async () => {},\r\n loadRecordById: async () => {},\r\n }}\r\n elements={props.gridLoadParameters}\r\n />\r\n </Box>\r\n </AccordionDetails>\r\n </Accordion>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n <DataGridPremium\r\n {...props?.muiProps}\r\n slots={{ toolbar: TemplateGridTopBar }}\r\n slotProps={{\r\n toolbar: {\r\n templateProps: {\r\n ...props,\r\n rowSelectionModel: rowSelectionModel,\r\n data: props?.data,\r\n },\r\n handleCreateNewRecord,\r\n clearGridState,\r\n } as any,\r\n }}\r\n getRowId={(record: any) => {\r\n return record[keyColumnName];\r\n }}\r\n showToolbar={true}\r\n rows={props?.data}\r\n columns={adjustedColumns}\r\n checkboxSelection\r\n editMode=\"row\"\r\n rowModesModel={\r\n props.editMode.editMode == \"row\" ? rowModesModel : undefined\r\n }\r\n onRowModesModelChange={\r\n props.editMode.editMode == \"row\"\r\n ? handleRowModesModelChange\r\n : undefined\r\n }\r\n rowGroupingColumnMode=\"multiple\"\r\n processRowUpdate={processRowUpdate}\r\n rowSelectionModel={rowSelectionModel}\r\n onRowSelectionModelChange={handleRowSelection}\r\n columnVisibilityModel={columnVisibilityModel}\r\n onColumnVisibilityModelChange={handleColumnVisibilityChange}\r\n onColumnOrderChange={handleColumnOrderChange}\r\n onColumnWidthChange={handleColumnWidthChange}\r\n rowGroupingModel={gridRowGroupingModel}\r\n onRowGroupingModelChange={(model: GridRowGroupingModel) => {\r\n handleRowGroupChange(model);\r\n }}\r\n pinnedColumns={pinnedColumns}\r\n onPinnedColumnsChange={handlePinnedColumnsChange}\r\n sx={{ width: \"100%\" }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default TemplateGrid;\r\n","import { useSelector } from \"react-redux\";\r\nimport { TemplateGridColDef } from \"../components\";\r\nimport useAxios from \"./useAxios\";\r\n\r\nconst useLookupGridColumn = () => {\r\n const { handleGetRequest } = useAxios();\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const getLookupOptions = async (lookupType: string) => {\r\n let options = [];\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/dev/system/lookup\",\r\n showMask: true,\r\n parameters: { lookupType },\r\n successCallBkFn: (response: any) => {\r\n options = response.data;\r\n },\r\n });\r\n return options;\r\n };\r\n const generateLookupGridColumn = async (props: TemplateGridColDef) => { \r\n let options = await getLookupOptions(props.lookupType);\r\n return {\r\n ...props,\r\n options,\r\n displayField:\r\n AppLayout.appDirection === \"ltr\"\r\n ? \"lookupEnDisplay\"\r\n : \"lookupArDisplay\",\r\n valueField: \"lookupValue\",\r\n };\r\n };\r\n return { generateLookupGridColumn, getLookupOptions };\r\n};\r\n\r\nexport default useLookupGridColumn;\r\n","import { useState } from \"react\";\r\nimport { useAxios, useSession } from \"../../hooks\";\r\nimport { ComboBox } from \"../templates\";\r\nimport { Box, Button } from \"@mui/material\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { UserSessionActions } from \"../../redux/features/common/UserSessionSlice\";\r\n\r\ntype ChangeOrgFormProps = {\r\n successChangeCallBackFn: () => void;\r\n};\r\n\r\nconst ChangeOrgForm: React.FC<ChangeOrgFormProps> = (props) => {\r\n const { UserSession } = useSession();\r\n const AppLayoutState = useSelector((state: any) => state.AppLayout);\r\n const dispatch = useDispatch();\r\n const { handlePostRequest } = useAxios();\r\n const [newOrgId, setNewOrgId] = useState(\r\n UserSession.value.currentOrganization.id\r\n );\r\n return (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n width: \"100%\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n padding: 1,\r\n }}\r\n >\r\n <ComboBox\r\n sx={{ width: \"100%\" }}\r\n displayField={\r\n AppLayoutState.appDirection === \"ltr\"\r\n ? \"organizationEnName\"\r\n : \"organizationArName\"\r\n }\r\n valueField=\"id\"\r\n label=\"\"\r\n options={UserSession.value.userOrganizations}\r\n value={newOrgId}\r\n onChangeCallBack={(value) => {\r\n setNewOrgId(value);\r\n }}\r\n />\r\n <Button\r\n sx={{ m: 1 }}\r\n variant=\"contained\"\r\n disabled={\r\n newOrgId == null ||\r\n newOrgId === UserSession.value.currentOrganization.id\r\n }\r\n onClick={async () => {\r\n await handlePostRequest({\r\n endPointURI: \"api/auth/changeCurrentOrg\",\r\n showMask: true,\r\n parameters: {\r\n username: UserSession.value.username,\r\n orgId: newOrgId,\r\n },\r\n data: {},\r\n successCallBkFn: (response) => {\r\n const UserSession = {\r\n ...response.data,\r\n isAuthenticated: true,\r\n };\r\n dispatch(UserSessionActions.setAuthenticated(UserSession));\r\n if (props.successChangeCallBackFn) {\r\n props.successChangeCallBackFn();\r\n }\r\n },\r\n });\r\n }}\r\n >\r\n Change Organization\r\n </Button>\r\n </Box>\r\n );\r\n};\r\n\r\nexport default ChangeOrgForm;\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\nexport const DRAWER_WIDTH = 350;\r\n\r\ninterface SideBarState {\r\n isOpened: boolean;\r\n}\r\n\r\nconst initialState: SideBarState = {\r\n isOpened: false,\r\n};\r\n\r\nconst SideBarSlice = createSlice({\r\n name: \"SideBar\",\r\n initialState,\r\n reducers: {\r\n toggleSideBarState: (state) => {\r\n debugger;\r\n state.isOpened = !state.isOpened;\r\n },\r\n setSideBarState: (state, action) => {\r\n debugger;\r\n state.isOpened = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const { toggleSideBarState, setSideBarState } = SideBarSlice.actions;\r\nexport default SideBarSlice.reducer;\r\n","import {\r\n Avatar,\r\n Box,\r\n IconButton,\r\n styled,\r\n Tooltip,\r\n Typography,\r\n} from \"@mui/material\";\r\nimport MuiAppBar, { AppBarProps as MuiAppBarProps } from \"@mui/material/AppBar\";\r\nimport Toolbar from \"@mui/material/Toolbar\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { useIsMobile } from \"../hooks/UseMobile\";\r\nimport {\r\n AppLayoutActions,\r\n DRAWER_WIDTH,\r\n} from \"../redux/features/common/AppLayoutSlice\";\r\nimport useAxios from \"../hooks/useAxios\";\r\nimport { UserSessionActions } from \"../redux/features/common/UserSessionSlice\";\r\nimport i18n, { changeLanguage } from \"../locales/i18n\";\r\nimport { useSession, useWindow } from \"../hooks\";\r\nimport ChangeOrgForm from \"../components/common/ChangeOrgForm\";\r\nimport { toggleSideBarState } from \"../redux/features/common/SideBarSlice\";\r\n\r\ninterface AppBarProps extends MuiAppBarProps {\r\n open?: boolean;\r\n}\r\n\r\nconst AppBar = styled(MuiAppBar, {\r\n shouldForwardProp: (prop) => prop !== \"open\",\r\n})<AppBarProps>(({ theme }) => {\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const isMobile = useIsMobile();\r\n return {\r\n transition: theme.transitions.create([\"margin\", \"width\"], {\r\n easing: theme.transitions.easing.sharp,\r\n duration: theme.transitions.duration.leavingScreen,\r\n }),\r\n variants: [\r\n {\r\n props: ({ open }) => open,\r\n style: {\r\n width: !isMobile ? `calc(100% - ${DRAWER_WIDTH}px)` : undefined,\r\n marginLeft:\r\n !isMobile && AppLayout.appDirection === \"ltr\"\r\n ? `${DRAWER_WIDTH}px`\r\n : undefined,\r\n marginRight:\r\n !isMobile && AppLayout.appDirection === \"rtl\"\r\n ? `${DRAWER_WIDTH}px`\r\n : undefined,\r\n transition: theme.transitions.create([\"margin\", \"width\"], {\r\n easing: theme.transitions.easing.easeOut,\r\n duration: theme.transitions.duration.enteringScreen,\r\n }),\r\n },\r\n },\r\n ],\r\n };\r\n});\r\n\r\nconst TopBar: React.FC = () => {\r\n const { Window: ChangeOrgWindow, setWindowState: setChangeOrgWindowState } =\r\n useWindow({\r\n windowTitle: \"Change Current Organization\",\r\n windowIcon: \"globe\",\r\n width: \"fit-content\",\r\n height: \"fit-content\",\r\n });\r\n const AppInfo = useSelector((state: any) => state.AppInfo.value);\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const SideBarState = useSelector((state: any) => state.SideBar);\r\n const { UserSession } = useSession();\r\n const currentOrganization = UserSession.value.currentOrganization;\r\n const { handleGetRequest } = useAxios();\r\n const isMobile = useIsMobile();\r\n const dispatch = useDispatch();\r\n const handleLogout = async () => {\r\n try {\r\n await handleGetRequest({ endPointURI: \"api/auth/logout\" });\r\n } catch (error) {\r\n console.log(\"logout error\", error);\r\n }\r\n dispatch(UserSessionActions.setUnAuthenticated());\r\n };\r\n const toggleSideBar = () => {\r\n dispatch(toggleSideBarState());\r\n };\r\n return (\r\n <>\r\n <ChangeOrgWindow>\r\n <ChangeOrgForm\r\n successChangeCallBackFn={() => {\r\n setChangeOrgWindowState(false);\r\n }}\r\n />\r\n </ChangeOrgWindow>\r\n <AppBar position=\"fixed\" open={SideBarState.isOpened}>\r\n <Toolbar>\r\n <IconButton\r\n color=\"inherit\"\r\n aria-label=\"open drawer\"\r\n onClick={toggleSideBar}\r\n edge=\"start\"\r\n sx={[\r\n {\r\n mr: AppLayout.appDirection === \"ltr\" ? 2 : undefined,\r\n ml: AppLayout.appDirection === \"rtl\" ? 2 : undefined,\r\n },\r\n SideBarState.isOpened && { display: \"none\" },\r\n ]}\r\n >\r\n <FontAwesomeIcon icon=\"bars\" />\r\n </IconButton>\r\n <Avatar\r\n src={AppInfo.appLogo}\r\n sx={{ marginRight: 1, marginLeft: 1 }}\r\n />\r\n <Typography variant=\"h6\" noWrap component=\"div\" sx={{ flex: 1 }}>\r\n {isMobile\r\n ? \"\"\r\n : `${AppInfo.appName} - ${\r\n AppLayout.appDirection === \"ltr\"\r\n ? currentOrganization?.organizationEnName\r\n : currentOrganization?.organizationArName\r\n }`}\r\n </Typography>\r\n <Tooltip\r\n title={\r\n AppLayout.themeMode === \"light\"\r\n ? \"Switch Theme to Dark\"\r\n : \"Switch Theme to Light\"\r\n }\r\n >\r\n <IconButton\r\n color=\"inherit\"\r\n onClick={() => {\r\n dispatch(\r\n AppLayoutActions.setThemeMode(\r\n AppLayout.themeMode === \"light\" ? \"dark\" : \"light\"\r\n )\r\n );\r\n localStorage.setItem(\r\n \"themeMode\",\r\n AppLayout.themeMode === \"light\" ? \"dark\" : \"light\"\r\n );\r\n }}\r\n >\r\n {AppLayout.themeMode === \"light\" ? (\r\n <FontAwesomeIcon icon=\"moon\" />\r\n ) : (\r\n <FontAwesomeIcon icon={{ prefix: \"far\", iconName: \"sun\" }} />\r\n )}\r\n </IconButton>\r\n </Tooltip>\r\n <Tooltip\r\n title={\r\n i18n.language === \"ar\"\r\n ? \"Change Language To English\"\r\n : \"Change Language To Arabic\"\r\n }\r\n >\r\n <IconButton\r\n color=\"inherit\"\r\n onClick={() => {\r\n let nextLanguage = i18n.language === \"ar\" ? \"en\" : \"ar\";\r\n changeLanguage(nextLanguage);\r\n dispatch(\r\n AppLayoutActions.setAppDirection(\r\n nextLanguage === \"ar\" ? \"rtl\" : \"ltr\"\r\n )\r\n );\r\n }}\r\n >\r\n <FontAwesomeIcon icon=\"language\" />\r\n </IconButton>\r\n </Tooltip>\r\n {UserSession.value?.userOrganizations &&\r\n UserSession.value?.userOrganizations.length > 1 ? (\r\n <Tooltip title=\"Change Current Organization\">\r\n <IconButton\r\n color=\"inherit\"\r\n onClick={() => {\r\n setChangeOrgWindowState(true);\r\n }}\r\n >\r\n <FontAwesomeIcon icon=\"globe\" />\r\n </IconButton>\r\n </Tooltip>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n <Avatar />\r\n <div style={{ marginLeft: 5, marginRight: 5 }}>\r\n {isMobile ? \"\" : UserSession.value?.username}\r\n </div>\r\n <IconButton color=\"inherit\" onClick={handleLogout}>\r\n <FontAwesomeIcon\r\n rotation={AppLayout.appDirection === \"rtl\" ? 180 : undefined}\r\n icon=\"arrow-right-from-bracket\"\r\n />\r\n </IconButton>\r\n </Toolbar>\r\n </AppBar>\r\n </>\r\n );\r\n};\r\n\r\nexport default TopBar;\r\n","import { styled } from \"@mui/material\";\r\n\r\nexport const DrawerHeader = styled(\"div\")(({ theme }) => ({\r\n display: \"flex\",\r\n alignItems: \"center\", \r\n // padding: theme.spacing(0, 1),\r\n // necessary for content to be below app bar\r\n ...theme.mixins.toolbar,\r\n justifyContent: \"flex-end\",\r\n}));\r\n","import { TreeViewBaseItem } from \"@mui/x-tree-view/models\";\r\nimport { AdministrationItems } from \"./Administration\";\r\nimport { IconProp } from \"@fortawesome/fontawesome-svg-core\";\r\n\r\nexport type ExtendedTreeItemProps = {\r\n icon: IconProp;\r\n id: string;\r\n label: string;\r\n action?: \"NAVIGATION\";\r\n authority?: string;\r\n actionPayload?: {\r\n path?: string;\r\n parameters?: object;\r\n };\r\n children?: ExtendedTreeItemProps[];\r\n};\r\n\r\nexport const findNavigationItemById = (\r\n id: string,\r\n nodes: ExtendedTreeItemProps[]\r\n): ExtendedTreeItemProps | undefined => {\r\n for (const node of nodes) {\r\n if (node.id === id) return node;\r\n if (node.children) {\r\n const found = findNavigationItemById(id, node.children);\r\n if (found) return found;\r\n }\r\n }\r\n return undefined;\r\n};\r\n\r\nexport const NavigationItems: TreeViewBaseItem<ExtendedTreeItemProps>[] = [\r\n ...AdministrationItems, \r\n];\r\n","import { TreeViewBaseItem } from \"@mui/x-tree-view/models\";\r\nimport { ExtendedTreeItemProps } from \"..\";\r\nimport { adminNavigationItems } from \"./adminNavigationItems\";\r\n\r\nexport const AdministrationItems: TreeViewBaseItem<ExtendedTreeItemProps>[] = [\r\n {\r\n id: \"home\",\r\n icon: \"home\",\r\n label: \"Home\",\r\n action: \"NAVIGATION\",\r\n actionPayload: {\r\n path: \"/\",\r\n },\r\n },\r\n ...adminNavigationItems,\r\n];\r\n","import { TreeViewBaseItem } from \"@mui/x-tree-view/models\";\r\nimport { ExtendedTreeItemProps } from \"..\";\r\n\r\nexport const adminNavigationItems: TreeViewBaseItem<ExtendedTreeItemProps>[] = [\r\n {\r\n id: \"system_admin\",\r\n label: \"System Administration\",\r\n authority: \"SYSTEM_ADMIN\",\r\n icon: \"cog\",\r\n children: [\r\n {\r\n id: \"development_admin.organization\",\r\n label: \"ORGANIZATION_PLURAL\",\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n icon: \"globe\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"admin/organizations\" },\r\n },\r\n {\r\n id: \"development_admin.SystemApplication\",\r\n label: \"SYSTEM_APPLICATION_PLURAL\",\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n icon: \"window-restore\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"admin/systemapplications\" },\r\n },\r\n {\r\n id: \"system_admin.Person\",\r\n label: \"PERSON_PLURAL\",\r\n icon: \"users\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"admin/persons\" },\r\n },\r\n {\r\n id: \"system_admin.devtools\",\r\n label: \"DEVELOPMENT_TOOLS\",\r\n icon: \"code\",\r\n children: [\r\n {\r\n id: \"system_admin.devtools.DatasourceConnection\",\r\n label: \"DATASOURCE_CONNECTION_PLURAL\",\r\n icon: \"plug\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/datasourceconnections\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.EntityParameter\",\r\n label: \"ENTITY_PARAMETER_PLURAL\",\r\n icon: \"p\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/entityparameters\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.DataQuery\",\r\n label: \"DATA_QUERY_PLURAL\",\r\n icon: \"file-code\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/dataqueries\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.Report\",\r\n label: \"REPORT_PLURAL\",\r\n icon: \"file\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/reports\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.MailConfig\",\r\n label: \"Mail Sender Config\",\r\n icon: { iconName: \"paper-plane\", prefix: \"fas\" },\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/mailsender/config\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.MailTemplate\",\r\n label: \"MAIL_TEMPLATE_PLURAL\",\r\n icon: \"envelope\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/mailtemplates\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.WorkflowDocument\",\r\n label: \"WORKFLOW_DOCUMENT_PLURAL\",\r\n icon: \"chart-diagram\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/workflowdocuments\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.Widget\",\r\n label: \"WIDGET_PLURAL\",\r\n icon: \"chart-pie\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/widgets\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.Dashboard\",\r\n label: \"DASHBOARD_PLURAL\",\r\n icon: \"square-poll-vertical\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/dashboards\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.BluePrint\",\r\n label: \"BLUE_PRINT_PLURAL\",\r\n icon: \"fingerprint\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/blueprints\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.Notification\",\r\n label: \"NOTIFICATION_PLURAL\",\r\n icon: \"bell\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/notifications\" },\r\n },\r\n ],\r\n },\r\n {\r\n id: \"system_admin.followup\",\r\n label: \"SYSTEM_MONITORING\",\r\n icon: \"tv\",\r\n children: [\r\n {\r\n id: \"system_admin.WorkflowDocumentMailLog\",\r\n label: \"Action Mail Logs\",\r\n icon: \"envelopes-bulk\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/workflowdocumentmaillogs\" },\r\n },\r\n {\r\n id: \"system_admin.MailNotificationQueue\",\r\n label: \"Mail Notification Queue\",\r\n icon: \"envelope-open-text\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/mailnotificationqueues\" },\r\n },\r\n {\r\n id: \"system_admin.NotificationQueue\",\r\n label: \"NOTIFICATION_QUEUE_PLURAL\",\r\n icon: \"bell\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/notificationqueues\" },\r\n },\r\n ],\r\n },\r\n ],\r\n },\r\n];\r\n","import * as React from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { animated, useSpring } from \"@react-spring/web\";\r\nimport { styled, alpha } from \"@mui/material/styles\";\r\nimport { TransitionProps } from \"@mui/material/transitions\";\r\nimport Box from \"@mui/material/Box\";\r\nimport Collapse from \"@mui/material/Collapse\";\r\nimport Typography from \"@mui/material/Typography\";\r\nimport { RichTreeView } from \"@mui/x-tree-view/RichTreeView\";\r\nimport { treeItemClasses } from \"@mui/x-tree-view/TreeItem\";\r\nimport {\r\n useTreeItem2,\r\n UseTreeItem2Parameters,\r\n} from \"@mui/x-tree-view/useTreeItem2\";\r\nimport {\r\n TreeItem2Checkbox,\r\n TreeItem2Content,\r\n TreeItem2IconContainer,\r\n TreeItem2Label,\r\n TreeItem2Root,\r\n} from \"@mui/x-tree-view/TreeItem2\";\r\nimport { TreeItem2Icon } from \"@mui/x-tree-view/TreeItem2Icon\";\r\nimport { TreeItem2Provider } from \"@mui/x-tree-view/TreeItem2Provider\";\r\nimport { TreeItem2DragAndDropOverlay } from \"@mui/x-tree-view/TreeItem2DragAndDropOverlay\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { useNavigate } from \"react-router-dom\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { RootState } from \"../redux/store\";\r\nimport { IconProp } from \"@fortawesome/fontawesome-svg-core\";\r\nimport { useIsMobile } from \"../hooks/UseMobile\";\r\nimport useSession from \"../hooks/UseSession\";\r\nimport { findNavigationItemById, NavigationItems } from \"../navigationItems\";\r\nimport { DRAWER_WIDTH } from \"../redux/features/common/AppLayoutSlice\";\r\n\r\nfunction DotIcon() {\r\n return (\r\n <Box\r\n sx={{\r\n width: 6,\r\n height: 6,\r\n borderRadius: \"70%\",\r\n bgcolor: \"warning.main\",\r\n display: \"inline-block\",\r\n verticalAlign: \"middle\",\r\n zIndex: 1,\r\n mx: 1,\r\n }}\r\n />\r\n );\r\n}\r\ndeclare module \"react\" {\r\n interface CSSProperties {\r\n \"--tree-view-color\"?: string;\r\n \"--tree-view-bg-color\"?: string;\r\n }\r\n}\r\n\r\nconst StyledTreeItemRoot = styled(TreeItem2Root)(({ theme }) => ({\r\n color: theme.palette.grey[400],\r\n position: \"relative\",\r\n [`& .${treeItemClasses.groupTransition}`]: {\r\n marginLeft: theme.spacing(2.5),\r\n },\r\n ...theme.applyStyles(\"light\", {\r\n color: theme.palette.grey[800],\r\n }),\r\n})) as unknown as typeof TreeItem2Root;\r\n\r\nconst CustomTreeItemContent = styled(TreeItem2Content)(({ theme }) => ({\r\n flexDirection: \"row-reverse\",\r\n borderRadius: theme.spacing(0.7),\r\n marginBottom: theme.spacing(0.5),\r\n marginTop: theme.spacing(0.5),\r\n padding: theme.spacing(0.5),\r\n paddingRight: theme.spacing(1),\r\n [`&.Mui-expanded `]: {\r\n \"&:not(.Mui-focused, .Mui-selected, .Mui-selected.Mui-focused) .labelIcon\":\r\n {\r\n color: theme.palette.primary.dark,\r\n ...theme.applyStyles(\"light\", {\r\n color: theme.palette.primary.main,\r\n }),\r\n },\r\n \"&::before\": {\r\n content: '\"\"',\r\n display: \"block\",\r\n position: \"absolute\",\r\n left: \"16px\",\r\n top: \"44px\",\r\n height: \"calc(100% - 48px)\",\r\n width: \"1.5px\",\r\n backgroundColor: theme.palette.grey[700],\r\n ...theme.applyStyles(\"light\", {\r\n backgroundColor: theme.palette.grey[300],\r\n }),\r\n },\r\n },\r\n \"&:hover\": {\r\n backgroundColor: alpha(theme.palette.primary.main, 0.1),\r\n color: \"white\",\r\n ...theme.applyStyles(\"light\", {\r\n color: theme.palette.primary.main,\r\n }),\r\n },\r\n [`&.Mui-focused, &.Mui-selected, &.Mui-selected.Mui-focused`]: {\r\n backgroundColor: theme.palette.primary.dark,\r\n color: theme.palette.primary.contrastText,\r\n ...theme.applyStyles(\"light\", {\r\n backgroundColor: theme.palette.primary.main,\r\n }),\r\n },\r\n}));\r\n\r\nconst AnimatedCollapse = animated(Collapse);\r\n\r\nfunction TransitionComponent(props: TransitionProps) {\r\n const style = useSpring({\r\n to: {\r\n opacity: props.in ? 1 : 0,\r\n transform: `translate3d(0,${props.in ? 0 : 20}px,0)`,\r\n },\r\n });\r\n\r\n return <AnimatedCollapse style={style} {...props} />;\r\n}\r\n\r\nconst StyledTreeItemLabelText = styled(Typography)({\r\n color: \"inherit\",\r\n fontWeight: 500,\r\n}) as unknown as typeof Typography;\r\n\r\ninterface CustomLabelProps {\r\n children: any;\r\n icon: IconProp;\r\n expandable?: boolean;\r\n}\r\n\r\nfunction CustomLabel({\r\n icon,\r\n expandable,\r\n children,\r\n ...other\r\n}: CustomLabelProps) {\r\n const { t } = useTranslation();\r\n const appLayoutState = useSelector((state: RootState) => state.AppLayout);\r\n return (\r\n <TreeItem2Label\r\n {...other}\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n padding: 1,\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n style={{\r\n marginRight: appLayoutState.appDirection === \"ltr\" ? 7 : undefined,\r\n marginLeft: appLayoutState.appDirection === \"rtl\" ? 7 : undefined,\r\n fontSize: \"1.2rem\",\r\n }}\r\n icon={icon}\r\n />\r\n <StyledTreeItemLabelText variant=\"body2\" sx={{ fontSize: 16 }}>\r\n {t(children)}\r\n </StyledTreeItemLabelText>\r\n {expandable && <DotIcon />}\r\n </TreeItem2Label>\r\n );\r\n}\r\n\r\nconst isExpandable = (reactChildren: React.ReactNode) => {\r\n if (Array.isArray(reactChildren)) {\r\n return reactChildren.length > 0 && reactChildren.some(isExpandable);\r\n }\r\n return Boolean(reactChildren);\r\n};\r\n\r\ninterface CustomTreeItemProps\r\n extends Omit<UseTreeItem2Parameters, \"rootRef\">,\r\n Omit<React.HTMLAttributes<HTMLLIElement>, \"onFocus\"> {}\r\n\r\nconst CustomTreeItem = React.forwardRef(function CustomTreeItem(\r\n props: CustomTreeItemProps,\r\n ref: React.Ref<HTMLLIElement>\r\n) {\r\n const { id, itemId, label, disabled, children, ...other } = props;\r\n const {\r\n getRootProps,\r\n getContentProps,\r\n getIconContainerProps,\r\n getCheckboxProps,\r\n getLabelProps,\r\n getGroupTransitionProps,\r\n getDragAndDropOverlayProps,\r\n status,\r\n publicAPI,\r\n } = useTreeItem2({ id, itemId, children, label, disabled, rootRef: ref });\r\n const item = publicAPI.getItem(itemId);\r\n const expandable = isExpandable(children);\r\n return (\r\n <TreeItem2Provider itemId={itemId}>\r\n <StyledTreeItemRoot {...getRootProps(other)}>\r\n <CustomTreeItemContent\r\n {...getContentProps({\r\n className: clsx(\"content\", {\r\n \"Mui-expanded\": status.expanded,\r\n \"Mui-selected\": status.selected,\r\n \"Mui-focused\": status.focused,\r\n \"Mui-disabled\": status.disabled,\r\n }),\r\n })}\r\n >\r\n <TreeItem2IconContainer {...getIconContainerProps()}>\r\n <TreeItem2Icon status={status} />\r\n </TreeItem2IconContainer>\r\n <TreeItem2Checkbox {...getCheckboxProps()} />\r\n <CustomLabel\r\n {...getLabelProps({\r\n icon: item?.icon || \"book\",\r\n expandable: expandable && status.expanded,\r\n })}\r\n />\r\n <TreeItem2DragAndDropOverlay {...getDragAndDropOverlayProps()} />\r\n </CustomTreeItemContent>\r\n {children && <TransitionComponent {...getGroupTransitionProps()} />}\r\n </StyledTreeItemRoot>\r\n </TreeItem2Provider>\r\n );\r\n});\r\n\r\nexport default function NavigationTree() {\r\n const navigate = useNavigate();\r\n const appLayoutState = useSelector((state: RootState) => state.AppLayout);\r\n const AppInfo = useSelector((state: RootState) => state.AppInfo.value);\r\n const dispatch = useDispatch();\r\n const isMobile = useIsMobile();\r\n const { isUserAuthorized } = useSession();\r\n const filterData = (data) => {\r\n return data\r\n .filter(\r\n (item: any) =>\r\n item.authority === undefined ||\r\n item.authority == null ||\r\n isUserAuthorized(item.authority)\r\n )\r\n .map((item: any) => {\r\n if (item.children) {\r\n item.children = filterData(item.children);\r\n }\r\n return item;\r\n });\r\n };\r\n\r\n const mergedNavigationItems = [];\r\n if (AppInfo.enableAdministrationModule) {\r\n mergedNavigationItems.push(...NavigationItems);\r\n }\r\n mergedNavigationItems.push(...AppInfo.businessNavigationItems);\r\n const authoriedNavigationItems = filterData(mergedNavigationItems);\r\n\r\n return (\r\n <RichTreeView\r\n items={authoriedNavigationItems}\r\n onItemClick={(event, itemId) => {\r\n const navigationItem = findNavigationItemById(\r\n itemId,\r\n mergedNavigationItems\r\n );\r\n if (\r\n navigationItem?.action === \"NAVIGATION\" &&\r\n navigationItem?.actionPayload != null &&\r\n (navigationItem.children === undefined ||\r\n navigationItem.children === null ||\r\n navigationItem.children.length == 0)\r\n ) {\r\n navigate(navigationItem?.actionPayload?.path || \"\");\r\n }\r\n }}\r\n sx={{\r\n height: \"fit-content\",\r\n flexGrow: 1,\r\n maxWidth: DRAWER_WIDTH,\r\n direction: appLayoutState.appDirection,\r\n maxHeight: isMobile ? 300 : undefined,\r\n overflowY: \"auto\",\r\n overflowX: \"auto\",\r\n }}\r\n slots={{ item: CustomTreeItem }}\r\n />\r\n );\r\n}\r\n","import Divider from \"@mui/material/Divider\";\r\nimport IconButton from \"@mui/material/IconButton\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport Drawer from \"@mui/material/Drawer\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { DrawerHeader } from \"./DrawerHeader\";\r\nimport { Box, Typography, useTheme } from \"@mui/material\";\r\nimport { DRAWER_WIDTH } from \"../redux/features/common/AppLayoutSlice\";\r\nimport NavigationTree from \"./NavigationTree\";\r\nimport { useSession } from \"../hooks\";\r\nimport { toggleSideBarState } from \"../redux/features/common/SideBarSlice\";\r\n\r\nconst SideBar: React.FC = () => {\r\n const AppInfo = useSelector((state: any) => state.AppInfo.value);\r\n const { UserSession } = useSession();\r\n const currentOrganization = UserSession.value.currentOrganization;\r\n const theme = useTheme();\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const SideBarState = useSelector((state: any) => state.SideBar);\r\n const dispatch = useDispatch();\r\n const toggleSideBar = () => {\r\n dispatch(toggleSideBarState());\r\n };\r\n return (\r\n <Drawer\r\n sx={{\r\n width: DRAWER_WIDTH,\r\n flexShrink: 0,\r\n \"& .MuiDrawer-paper\": {\r\n width: DRAWER_WIDTH,\r\n boxSizing: \"border-box\",\r\n },\r\n }}\r\n variant=\"persistent\"\r\n anchor={AppLayout.appDirection === \"ltr\" ? \"left\" : \"right\"}\r\n open={SideBarState.isOpened}\r\n >\r\n <DrawerHeader>\r\n <Box sx={{ width: \"100%\" }}>\r\n <Typography\r\n color=\"primary\"\r\n sx={{\r\n width: \"100%\",\r\n textAlign: \"center\",\r\n fontSize: 18,\r\n fontWeight: \"bold\",\r\n }}\r\n >\r\n System Content\r\n </Typography>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"space-around\",\r\n marginTop: 1,\r\n }}\r\n >\r\n <Typography sx={{ fontSize: 12 }} color=\"textDisabled\">\r\n {`${AppInfo.appName} - ${\r\n AppLayout.appDirection === \"ltr\"\r\n ? currentOrganization?.organizationEnName\r\n : currentOrganization?.organizationArName\r\n }`}\r\n </Typography>\r\n <Typography sx={{ fontSize: 12 }} color=\"textDisabled\">\r\n V.{AppInfo.appVersion}\r\n </Typography>\r\n </Box>\r\n </Box>\r\n <IconButton onClick={toggleSideBar}>\r\n {theme.direction === \"ltr\" ? (\r\n <FontAwesomeIcon icon=\"angle-left\" />\r\n ) : (\r\n <FontAwesomeIcon icon=\"angle-right\" />\r\n )}\r\n </IconButton>\r\n </DrawerHeader>\r\n <Divider />\r\n <NavigationTree />\r\n </Drawer>\r\n );\r\n};\r\n\r\nexport default SideBar;\r\n","import rtlPlugin from \"stylis-plugin-rtl\";\r\nimport { prefixer } from \"stylis\";\r\nimport createCache from \"@emotion/cache\";\r\n\r\nexport const cacheRtl = createCache({\r\n key: \"muirtl\",\r\n stylisPlugins: [prefixer, rtlPlugin],\r\n});\r\n\r\nexport const cacheLtr = createCache({\r\n key: \"mui\",\r\n});","import { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { WidgetType } from \"../../administration/dev/WidgetGrid\";\r\nimport { Backdrop, Box, CircularProgress, Grid2 } from \"@mui/material\";\r\nimport { useEffect, useState } from \"react\";\r\nimport LoadingMask from \"../../common/LoadingMask\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { useAxios } from \"../../../hooks\";\r\nimport TemplateLineChart from \"./charts/TemplateLineChart\";\r\nimport TemplateBarChart from \"./charts/TemplateBarChart\";\r\nimport TemplatePieChart from \"./charts/TemplatePieChart\";\r\nimport TemplateDataCard from \"./charts/TemplateDataCard\";\r\nimport TemplateGauge from \"./charts/TemplateGauge\";\r\nimport TemplateLineProgress from \"./charts/TemplateLineProgress\";\r\n\r\nexport type Widget = {\r\n widgetName: string;\r\n widgetDescription: string;\r\n title: string;\r\n icon: any;\r\n dataQueryId: number;\r\n widgetType: WidgetType;\r\n width: any;\r\n height: any;\r\n horizontalAxisField: any;\r\n horizontalAxisLabel: any;\r\n verticalAxisField: string;\r\n verticalAxisLabel: string;\r\n seriesKeys: any;\r\n parameterValues: {\r\n [key: string]: any;\r\n };\r\n};\r\n\r\nconst WidgetViewer: React.FC<Widget> = (props) => {\r\n const [isWidgetLoading, setWidgetLoading] = useState(true);\r\n const [data, setData] = useState([]);\r\n const { handleGetRequest } = useAxios();\r\n const getWidgetData = async () => {\r\n setWidgetLoading(true);\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/dev/query/result\",\r\n showMask: false,\r\n parameters: {\r\n queryId: props.dataQueryId,\r\n ...props.parameterValues,\r\n },\r\n successCallBkFn: (response) => {\r\n setWidgetLoading(false);\r\n setData(response.data);\r\n },\r\n failureCallBkFn: () => {\r\n setWidgetLoading(false);\r\n setData(null);\r\n },\r\n });\r\n };\r\n useEffect(() => {\r\n getWidgetData();\r\n }, [props.parameterValues]);\r\n\r\n let total = 0;\r\n if (data.length == 1) {\r\n total = 100;\r\n }\r\n if (\r\n props.widgetType === \"CircularProgress\" ||\r\n props.widgetType === \"LinearProgress\"\r\n ) {\r\n for (const record of data) {\r\n total += record[props.verticalAxisField];\r\n }\r\n }\r\n return (\r\n <>\r\n {props.widgetType === \"LineChart\" ||\r\n props.widgetType === \"PieChart\" ||\r\n props.widgetType === \"ColumnChart\" ? (\r\n <Box>\r\n <FontAwesomeIcon\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n icon={props?.icon || \"chart-pie\"}\r\n />\r\n {props?.title}\r\n </Box>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n <Box\r\n sx={{\r\n flex: 1,\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n width: \"100%\",\r\n }}\r\n >\r\n {isWidgetLoading ? (\r\n <>\r\n <FontAwesomeIcon\r\n icon={{ prefix: \"fas\", iconName: \"arrows-spin\" }}\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n spin\r\n size=\"2x\"\r\n />\r\n <div>Loading</div>\r\n </>\r\n ) : props.widgetType === \"ColumnChart\" ? (\r\n <TemplateBarChart\r\n data={data}\r\n widgetTitle={props.title}\r\n labelField={props.verticalAxisField}\r\n valueField={props.horizontalAxisField}\r\n valueLabel={props.horizontalAxisLabel}\r\n widgetType=\"Line\"\r\n />\r\n ) : props.widgetType === \"LineChart\" ? (\r\n <TemplateLineChart\r\n data={data}\r\n widgetTitle={props.title}\r\n labelField={props.verticalAxisField}\r\n valueField={props.horizontalAxisField}\r\n valueLabel={props.horizontalAxisLabel}\r\n widgetType=\"Line\"\r\n />\r\n ) : props.widgetType === \"PieChart\" ? (\r\n <TemplatePieChart\r\n data={data}\r\n widgetTitle={props.title}\r\n labelField={props.horizontalAxisField}\r\n valueField={props.verticalAxisField}\r\n widgetType=\"Line\"\r\n />\r\n ) : (\r\n <Grid2\r\n container\r\n sx={{\r\n width: \"100%\",\r\n alignItems: \"flex-start\",\r\n justifyContent: \"flex-start\",\r\n }}\r\n spacing={2}\r\n size={{ xs: 12 }}\r\n >\r\n <Grid2 size={{ xs: 12 }} sx={{ textAlign: \"center\" }}>\r\n {props.title}\r\n </Grid2>\r\n\r\n {data.map((record, index) => {\r\n if (props.widgetType === \"Card\") {\r\n return (\r\n <Grid2 size={{ md: 3, xs: 12 }}>\r\n <TemplateDataCard\r\n key={index}\r\n widgetTitle={\"\"}\r\n record={record}\r\n labelField={props.verticalAxisField}\r\n valueField={props.horizontalAxisField}\r\n />\r\n </Grid2>\r\n );\r\n } else if (props.widgetType === \"CircularProgress\") {\r\n return (\r\n <Grid2 size={{ md: 3, xs: 12 }}>\r\n <TemplateGauge\r\n key={index}\r\n widgetTitle={\"\"}\r\n record={record}\r\n labelField={props.horizontalAxisField}\r\n valueField={props.verticalAxisField}\r\n total={total}\r\n />\r\n </Grid2>\r\n );\r\n } else if (props.widgetType === \"LinearProgress\") {\r\n return (\r\n <Grid2 size={{ md: 3, xs: 12 }}>\r\n <TemplateLineProgress\r\n key={index}\r\n widgetTitle={\"\"}\r\n record={record}\r\n labelField={props.horizontalAxisField}\r\n valueField={props.verticalAxisField}\r\n total={total}\r\n />\r\n </Grid2>\r\n );\r\n }\r\n })}\r\n </Grid2>\r\n )}\r\n </Box>\r\n </>\r\n );\r\n};\r\n\r\nexport default WidgetViewer;\r\n","import { Box, Grid2, IconButton } from \"@mui/material\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { useAxios } from \"../../../hooks\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport WidgetViewer, { Widget } from \"./WidgetViewer\";\r\nimport { useNavigate } from \"react-router-dom\";\r\n\r\ntype DashboardViewerProps = {\r\n dashboardCode: string;\r\n parameters?: { [key: string]: any };\r\n};\r\n\r\nexport interface WidgetProps {\r\n widgetTitle?: string;\r\n widgetType: \"Line\" | \"Bar\" | \"Pie\" | \"Card\" | \"Gauge\" | \"Progress\";\r\n data: any;\r\n valueLabel?: string;\r\n valueField: string; //x-axis field in case of line/bar chart\r\n labelField: string; //y-axis field in case of line/bar chart, it can also be a comma separated string for multiple series\r\n}\r\n\r\nexport interface SingleRecordWidgetProps {\r\n widgetTitle?: string;\r\n record: object;\r\n valueField: string;\r\n labelField: string;\r\n total?: number;\r\n}\r\n\r\ntype DashboardInfo = {\r\n dashboardCode: string;\r\n dashboardName: string;\r\n dashboardTitle: string;\r\n widgets: Array<Widget>;\r\n dashboardParameters: Array<any>;\r\n};\r\n\r\nconst DashboardViewer: React.FC<DashboardViewerProps> = (props) => {\r\n const [dashboardInfo, setDashboardInfo] = useState<DashboardInfo>({\r\n dashboardCode: \"\",\r\n dashboardName: \"\",\r\n dashboardTitle: \"\",\r\n dashboardParameters: [],\r\n widgets: [],\r\n });\r\n const [dashboardParameterValues, setDashboardParameterValues] = useState<{\r\n [key: string]: any;\r\n }>(props?.parameters || {});\r\n const navigate = useNavigate();\r\n const { handleGetRequest, handlePostRequest } = useAxios();\r\n const loadDashboardInfo = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/dev/dashboard/metadata\",\r\n showMask: true,\r\n parameters: {\r\n dashboardCode: props.dashboardCode,\r\n },\r\n successCallBkFn: (response) => {\r\n setDashboardInfo(response.data);\r\n },\r\n failureCallBkFn: () => {\r\n setDashboardInfo(null);\r\n },\r\n });\r\n };\r\n useEffect(() => {\r\n if (props.dashboardCode) {\r\n loadDashboardInfo();\r\n }\r\n }, [props.dashboardCode, props.parameters]);\r\n return (\r\n <>\r\n {dashboardInfo ? (\r\n <>\r\n <Box\r\n sx={{\r\n fontSize: 20,\r\n fontWeight: \"bold\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <IconButton\r\n onClick={() => {\r\n navigate(-1, { replace: true });\r\n }}\r\n >\r\n <FontAwesomeIcon icon=\"arrow-left\" />\r\n </IconButton>\r\n <Box sx={{ flex: 1 }}></Box>\r\n <FontAwesomeIcon\r\n style={{ marginLeft: 10, marginRight: 10 }}\r\n icon={\"square-poll-vertical\"}\r\n />\r\n <Box>{dashboardInfo?.dashboardTitle}</Box>\r\n <Box sx={{ flex: 1 }}></Box>\r\n </Box>\r\n <Grid2\r\n container\r\n spacing={1}\r\n sx={{\r\n flexGrow: 1,\r\n overflowY: \"auto\",\r\n padding: 1,\r\n }}\r\n >\r\n {dashboardInfo?.widgets.map((widget, index) => {\r\n return (\r\n <Grid2\r\n key={index}\r\n sx={{\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n padding: 1,\r\n display: \"flex\",\r\n overflow: \"auto\",\r\n flexDirection:\r\n widget.widgetType != \"Card\" ? \"column\" : undefined,\r\n height: widget?.height || 300,\r\n }}\r\n size={{ md: widget?.width, sm: 12 }}\r\n >\r\n <WidgetViewer {...widget} />\r\n </Grid2>\r\n );\r\n })}\r\n </Grid2>\r\n </>\r\n ) : (\r\n <Box\r\n sx={{\r\n flex: 1,\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n fontSize: 24,\r\n fontWeight: \"bold\",\r\n }}\r\n >\r\n No Dashboard Found\r\n </Box>\r\n )}\r\n </>\r\n );\r\n};\r\n\r\nexport default DashboardViewer;\r\n","import { useEffect, useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useAxios } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ntype OrganizationApplicationModuleGridProps = {\r\n selectedOrganization: any;\r\n};\r\n\r\nconst OrganizationApplicationModuleGrid: React.FC<\r\n OrganizationApplicationModuleGridProps\r\n> = (props) => {\r\n const { t } = useTranslation();\r\n const { handleGetRequest } = useAxios();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/organizationapplicationmodule/all\",\r\n deleteById: \"api/v1/admin/organizationapplicationmodule\",\r\n save: \"api/v1/admin/organizationapplicationmodule\",\r\n findById: \"api/v1/admin/organizationapplicationmodule\",\r\n setData: setData,\r\n });\r\n const [systemApplicationModules, setSystemApplicationModules] = useState([]);\r\n\r\n const getSystemApplicationModules = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/admin/systemapplicationmodule/all\",\r\n showMask: true,\r\n successCallBkFn: (response: any) => {\r\n setSystemApplicationModules(response.data);\r\n },\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n getSystemApplicationModules();\r\n }, []);\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel:\r\n \"ORGANIZATION_APPLICATION_MODULE_SYSTEM_APPLICATION_MODULE_ID\",\r\n fieldName: \"systemApplicationModuleId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: systemApplicationModules,\r\n optionDisplayField: \"moduleName\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n fieldLabel: \"ORGANIZATION_APPLICATION_MODULE_ORGANIZATION_ID\",\r\n fieldName: \"organizationId\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_APPLICATION_MODULE_SUBSCRIPTION_DATE\",\r\n fieldName: \"subscriptionDate\",\r\n required: true,\r\n fieldType: \"date\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_APPLICATION_MODULE_EXPIRATION_DATE\",\r\n fieldName: \"expirationDate\",\r\n required: false,\r\n fieldType: \"date\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_APPLICATION_MODULE_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n gridLoadParametersValues={{\r\n organizationId: props?.selectedOrganization?.id,\r\n }}\r\n hideInfoBar={true}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"ORGANIZATION_APPLICATION_MODULE_PLURAL\"\r\n girdIcon=\"layer-group\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"ORGANIZATION_APPLICATION_MODULE_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.organizationId = props?.selectedOrganization?.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"ORGANIZATION_APPLICATION_MODULE_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default OrganizationApplicationModuleGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ntype OrganizationUnitTypeGridProps = {\r\n selectedOrganization: any;\r\n};\r\n\r\nconst OrganizationUnitTypeGrid: React.FC<OrganizationUnitTypeGridProps> = (\r\n props\r\n) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/organizationunittype/all\",\r\n deleteById: \"api/v1/admin/organizationunittype\",\r\n save: \"api/v1/admin/organizationunittype\",\r\n findById: \"api/v1/admin/organizationunittype\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_TYPE_ORGANIZATION_ID\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n fieldName: \"organizationId\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_TYPE_ORGANIZATION_UNIT_TYPE_ORDER\",\r\n fieldName: \"organizationUnitTypeOrder\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_TYPE_UNIT_TYPE_CODE\",\r\n fieldName: \"unitTypeCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_TYPE_UNIT_TYPE_AR_NAME\",\r\n fieldName: \"unitTypeArName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_TYPE_UNIT_TYPE_EN_NAME\",\r\n fieldName: \"unitTypeEnName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_TYPE_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{\r\n organizationId: props?.selectedOrganization?.id,\r\n }}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"ORGANIZATION_UNIT_TYPE_PLURAL\"\r\n girdIcon=\"tags\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"ORGANIZATION_UNIT_TYPE_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.organizationId = props?.selectedOrganization?.id;\t\t \r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"ORGANIZATION_UNIT_TYPE_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default OrganizationUnitTypeGrid;\r\n","import { useEffect, useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useAxios } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ntype OrganizationUnitGridProps = {\r\n selectedOrganization: any;\r\n};\r\n\r\nconst OrganizationUnitGrid: React.FC<OrganizationUnitGridProps> = (props) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/organizationunit/all\",\r\n deleteById: \"api/v1/admin/organizationunit\",\r\n save: \"api/v1/admin/organizationunit\",\r\n findById: \"api/v1/admin/organizationunit\",\r\n setData: setData,\r\n });\r\n const [organizationUnitTypes, setOrganizationUnitTypes] = useState([]);\r\n const { handleGetRequest } = useAxios();\r\n const getOrganizationUnitTypes = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/admin/organizationunittype/all\",\r\n showMask: true,\r\n parameters: {\r\n organizationId: props.selectedOrganization.id,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setOrganizationUnitTypes(response.data);\r\n },\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n getOrganizationUnitTypes();\r\n }, []);\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n fieldLabel: \"ORGANIZATION_UNIT_ORGANIZATION_ID\",\r\n fieldName: \"organizationId\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_ORGANIZATION_UNIT_TYPE_ID\",\r\n fieldName: \"organizationUnitTypeId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: organizationUnitTypes,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"unitTypeEnName\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME\",\r\n fieldName: \"organizationUnitArName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME\",\r\n fieldName: \"organizationUnitEnName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID\",\r\n fieldName: \"organizationUnitParentId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: data,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"organizationUnitEnName\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_UNIT_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{\r\n organizationId: props?.selectedOrganization?.id,\r\n }}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"ORGANIZATION_UNIT_PLURAL\"\r\n girdIcon=\"folder-tree\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"ORGANIZATION_UNIT_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.organizationId = props?.selectedOrganization?.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"ORGANIZATION_UNIT_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default OrganizationUnitGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ntype OrganizationRankGridProps = {\r\n selectedOrganization: any;\r\n};\r\n\r\nconst OrganizationRankGrid: React.FC<OrganizationRankGridProps> = (props) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/organizationrank/all\",\r\n deleteById: \"api/v1/admin/organizationrank\",\r\n save: \"api/v1/admin/organizationrank\",\r\n findById: \"api/v1/admin/organizationrank\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n fieldLabel: \"ORGANIZATION_RANK_ORGANIZATION_ID\",\r\n fieldName: \"organizationId\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_RANK_RANK_ORDER\",\r\n fieldName: \"rankOrder\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_RANK_RANK_CODE\",\r\n fieldName: \"rankCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_RANK_RANK_AR_NAME\",\r\n fieldName: \"rankArName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_RANK_RANK_EN_NAME\",\r\n fieldName: \"rankEnName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_RANK_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{\r\n organizationId: props?.selectedOrganization?.id,\r\n }}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"ORGANIZATION_RANK_PLURAL\"\r\n girdIcon=\"street-view\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"ORGANIZATION_RANK_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.organizationId = props?.selectedOrganization?.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"ORGANIZATION_RANK_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default OrganizationRankGrid;\r\n","import { useEffect, useState } from \"react\";\r\nimport TransferList from \"../../templates/TransferList\";\r\nimport { Box, Button } from \"@mui/material\";\r\nimport { toast } from \"react-toastify\";\r\nimport { useAxios } from \"../../../hooks\";\r\n\r\ntype OrgMemberRoleFormProps = {\r\n selectedRecord: any;\r\n closeModalFn: () => void;\r\n};\r\n\r\nconst OrgMemberRoleForm: React.FC<OrgMemberRoleFormProps> = (props) => {\r\n const [selectedOptions, setSelectedOptions] = useState([]);\r\n const [availableOptions, setAvailableOptions] = useState([]);\r\n const { handlePostRequest, handleGetRequest } = useAxios();\r\n\r\n const getOrgMemberRoles = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/admin/organization/member/roles\",\r\n showMask: true,\r\n parameters: {\r\n orgMemberId: props.selectedRecord.id,\r\n organizationId: props.selectedRecord.organizationId,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setSelectedOptions(response.data.currentRoles);\r\n setAvailableOptions(response.data.availableRoles);\r\n },\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n if (props.selectedRecord) {\r\n getOrgMemberRoles();\r\n }\r\n }, [props.selectedRecord]);\r\n const saveOrgMemberRoles = async () => {\r\n await handlePostRequest({\r\n endPointURI: \"api/v1/admin/organization/member/roles\",\r\n showMask: true,\r\n parameters: { orgMemberId: props.selectedRecord.id },\r\n data: selectedOptions,\r\n successCallBkFn: () => {\r\n toast.success(\"Your request has been proccesed successfully\");\r\n if (props.closeModalFn) {\r\n props.closeModalFn();\r\n }\r\n },\r\n });\r\n };\r\n return (\r\n <>\r\n <TransferList\r\n displayField=\"appRoleDisplay\"\r\n options={availableOptions}\r\n valueField=\"id\"\r\n selectedOptions={selectedOptions}\r\n setSelection={setSelectedOptions}\r\n />\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-end\",\r\n width: \"100%\",\r\n }}\r\n >\r\n <Button\r\n variant=\"contained\"\r\n onClick={saveOrgMemberRoles}\r\n sx={{ marginRight: 1, marginLeft: 1 }}\r\n >\r\n Save\r\n </Button>\r\n <Button variant=\"contained\" color=\"error\" onClick={props.closeModalFn}>\r\n Cancel\r\n </Button>\r\n </Box>\r\n </>\r\n );\r\n};\r\n\r\nexport default OrgMemberRoleForm;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useSelector } from \"react-redux\";\r\nimport OrgMemberRoleForm from \"./OrgMemberRoleForm\";\r\n\r\ntype OrganizationMemberGridProps = {\r\n selectedPerson: any;\r\n};\r\nconst OrganizationMemberGrid: React.FC<OrganizationMemberGridProps> = (\r\n props\r\n) => {\r\n const [selectedRecord, setSelectedRecord] = useState<any>(null);\r\n const {\r\n Window: OrganizationMemberRolesWindow,\r\n setWindowState: setOrganizationMemberRolesWindowState,\r\n } = useWindow({\r\n windowIcon: \"tag\",\r\n windowTitle: \"Organization Member Roles\",\r\n width: \"50%\",\r\n });\r\n const SystemOrganizations = useSelector(\r\n (state: any) => state.commonStores.stores.SystemOrganizations.data\r\n );\r\n const SystemOrganizationRanks = useSelector(\r\n (state: any) => state.commonStores.stores.SystemOrganizationRanks.data\r\n );\r\n const SystemOrganizationUnits = useSelector(\r\n (state: any) => state.commonStores.stores.SystemOrganizationUnits.data\r\n );\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/organizationmember/all\",\r\n deleteById: \"api/v1/admin/organizationmember\",\r\n save: \"api/v1/admin/organizationmember\",\r\n findById: \"api/v1/admin/organizationmember\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_MEMBER_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_MEMBER_IS_DEFAULT\",\r\n fieldName: \"isDefault\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_MEMBER_ORGANIZATION_ID\",\r\n fieldName: \"organizationId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemOrganizations,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"organizationEnName\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_MEMBER_ORGANIZATION_RANK_ID\",\r\n fieldName: \"organizationRankId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemOrganizationRanks,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"rankDisplay\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_MEMBER_ORGANIZATION_UNIT_ID\",\r\n fieldName: \"organizationUnitId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemOrganizationUnits,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"fullPath\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Membership number\",\r\n fieldName: \"organizationMembershipNumber\",\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n fieldLabel: \"ORGANIZATION_MEMBER_PERSON_ID\",\r\n fieldName: \"personId\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <OrganizationMemberRolesWindow>\r\n <OrgMemberRoleForm\r\n selectedRecord={selectedRecord}\r\n closeModalFn={() => {\r\n setOrganizationMemberRolesWindowState(false);\r\n }}\r\n />\r\n </OrganizationMemberRolesWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n hideInfoBar={true}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n rowActions={[\r\n {\r\n icon: \"tag\",\r\n label: \"Roles\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setOrganizationMemberRolesWindowState(true);\r\n },\r\n },\r\n ]}\r\n gridLoadParametersValues={{ personId: props.selectedPerson.id }}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"ORGANIZATION_MEMBER_PLURAL\"\r\n girdIcon=\"table-cells\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"ORGANIZATION_MEMBER_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.personId = props.selectedPerson.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"ORGANIZATION_MEMBER_DELETE\",\r\n }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default OrganizationMemberGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ntype SystemApplicationModuleGridProps = {\r\n selectedApplication: any;\r\n};\r\n\r\nconst SystemApplicationModuleGrid: React.FC<\r\n SystemApplicationModuleGridProps\r\n> = (props) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/systemapplicationmodule/application/all\",\r\n deleteById: \"api/v1/admin/systemapplicationmodule\",\r\n save: \"api/v1/admin/systemapplicationmodule\",\r\n findById: \"api/v1/admin/systemapplicationmodule\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_MODULE_MODULE_CODE\",\r\n fieldName: \"moduleCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_MODULE_MODULE_NAME\",\r\n fieldName: \"moduleName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_MODULE_MODULE_DESCRIPTION\",\r\n fieldName: \"moduleDescription\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_MODULE_SYSTEM_APPLICATION_ID\",\r\n fieldName: \"systemApplicationId\",\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n gridLoadParametersValues={{\r\n applicationId: props?.selectedApplication?.id,\r\n }}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n hideInfoBar={true}\r\n gridTitle=\"SYSTEM_APPLICATION_MODULE_PLURAL\"\r\n girdIcon=\"layer-group\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"SYSTEM_APPLICATION_MODULE_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.systemApplicationId = props?.selectedApplication?.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"SYSTEM_APPLICATION_MODULE_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default SystemApplicationModuleGrid;\r\n","import { useEffect, useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useAxios } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ntype SystemApplicationAuthorityGridProps = {\r\n selectedApplication: any;\r\n};\r\n\r\nconst SystemApplicationAuthorityGrid: React.FC<\r\n SystemApplicationAuthorityGridProps\r\n> = (props) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/systemapplicationauthority/all\",\r\n deleteById: \"api/v1/admin/systemapplicationauthority\",\r\n save: \"api/v1/admin/systemapplicationauthority\",\r\n findById: \"api/v1/admin/systemapplicationauthority\",\r\n setData: setData,\r\n });\r\n const [systemApplicationModules, setSystemApplicationModules] = useState([]);\r\n\r\n const { handleGetRequest } = useAxios();\r\n const getSystemApplicationModules = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/admin/systemapplicationmodule/application/all\",\r\n showMask: true,\r\n parameters: {\r\n applicationId: props.selectedApplication.id,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setSystemApplicationModules(response.data);\r\n },\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n getSystemApplicationModules();\r\n }, []);\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_AUTHORITY_SYSTEM_APPLICATION_ID\",\r\n fieldName: \"systemApplicationId\",\r\n required: false,\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_AUTHORITY_SYSTEM_MODULE_ID\",\r\n fieldName: \"systemModuleId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: systemApplicationModules,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"moduleName\",\r\n },\r\n },\r\n \r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_NAME\",\r\n fieldName: \"authorityName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_CODE\",\r\n fieldName: \"authorityCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_DESCRIPTION\",\r\n fieldName: \"authorityDescription\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_AUTHORITY_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{\r\n applicationId: props?.selectedApplication?.id,\r\n }}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"SYSTEM_APPLICATION_AUTHORITY_PLURAL\"\r\n girdIcon=\"key\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"SYSTEM_APPLICATION_AUTHORITY_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.systemApplicationId = props?.selectedApplication?.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"SYSTEM_APPLICATION_AUTHORITY_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default SystemApplicationAuthorityGrid;\r\n","import { useEffect, useState } from \"react\";\r\nimport TransferList from \"../../templates/TransferList\";\r\nimport { Box, Button } from \"@mui/material\";\r\nimport { toast } from \"react-toastify\";\r\nimport { useAxios } from \"../../../hooks\";\r\n\r\ntype RoleAuthoritiesFormProps = {\r\n roleId: number;\r\n appId: number;\r\n closeModalFn: () => void;\r\n};\r\n\r\nconst RoleAuthoritiesForm: React.FC<RoleAuthoritiesFormProps> = (props) => {\r\n const [selectedOptions, setSelectedOptions] = useState([]);\r\n const [availableAuthorities, setAvailableAuthorities] = useState([]);\r\n const { handlePostRequest, handleGetRequest } = useAxios();\r\n\r\n const getRoleAuthorities = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/admin/systemApplicationRoleAuthorities\",\r\n showMask: true,\r\n parameters: {\r\n appId: props.appId,\r\n roleId: props.roleId,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setSelectedOptions(response.data.selectedAuthorities);\r\n setAvailableAuthorities(response.data.availableAuthorities);\r\n },\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n if (props.roleId && props.appId) {\r\n getRoleAuthorities();\r\n }\r\n }, [props.roleId, props.appId]);\r\n const saveRoleAuthorities = async () => {\r\n await handlePostRequest({\r\n endPointURI: \"api/v1/admin/systemApplicationRoleAuthorities\",\r\n showMask: true,\r\n parameters: { roleId: props.roleId },\r\n data: selectedOptions,\r\n successCallBkFn: () => {\r\n toast.success(\"Your request has been proccesed successfully\");\r\n if (props.closeModalFn) {\r\n props.closeModalFn();\r\n }\r\n },\r\n });\r\n };\r\n return (\r\n <>\r\n <TransferList\r\n displayField=\"authorityName\"\r\n options={availableAuthorities}\r\n valueField=\"id\"\r\n selectedOptions={selectedOptions}\r\n setSelection={setSelectedOptions}\r\n />\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-end\",\r\n width: \"100%\",\r\n }}\r\n >\r\n <Button\r\n variant=\"contained\"\r\n onClick={saveRoleAuthorities}\r\n sx={{ marginRight: 1, marginLeft: 1 }}\r\n >\r\n Save\r\n </Button>\r\n <Button variant=\"contained\" color=\"error\" onClick={props.closeModalFn}>\r\n Cancel\r\n </Button>\r\n </Box>\r\n </>\r\n );\r\n};\r\n\r\nexport default RoleAuthoritiesForm;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport RoleAuthoritiesForm from \"./RoleAuthoritiesForm\";\r\n\r\ntype SystemApplicationRoleGridProps = {\r\n selectedApplication: any;\r\n};\r\n\r\nconst SystemApplicationRoleGrid: React.FC<SystemApplicationRoleGridProps> = (\r\n props\r\n) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const [selectedRole, setSelectedRole] = useState(null);\r\n const {\r\n Window: RoleaAuthoritiesWindow,\r\n setWindowState: setRoleAuthoritiesWindowState,\r\n } = useWindow({\r\n windowTitle: \"System Application Role Authorities\",\r\n windowIcon: \"key\",\r\n width: \"50%\",\r\n });\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/systemapplicationrole/all\",\r\n deleteById: \"api/v1/admin/systemapplicationrole\",\r\n save: \"api/v1/admin/systemapplicationrole\",\r\n findById: \"api/v1/admin/systemapplicationrole\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_ROLE_SYSTEM_APPLICATION_ID\",\r\n fieldName: \"systemApplicationId\",\r\n required: false,\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_ROLE_ROLE_NAME\",\r\n fieldName: \"roleName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_ROLE_ROLE_DESCRIPTION\",\r\n fieldName: \"roleDescription\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_ROLE_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <RoleaAuthoritiesWindow>\r\n <RoleAuthoritiesForm\r\n appId={props.selectedApplication.id}\r\n roleId={selectedRole?.id}\r\n closeModalFn={() => {\r\n setRoleAuthoritiesWindowState(false);\r\n }}\r\n />\r\n </RoleaAuthoritiesWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{\r\n applicationId: props?.selectedApplication?.id,\r\n }}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"SYSTEM_APPLICATION_ROLE_PLURAL\"\r\n girdIcon=\"tag\"\r\n rowActions={[\r\n {\r\n icon: \"key\",\r\n actionFn: async (data) => {\r\n setSelectedRole(data);\r\n setRoleAuthoritiesWindowState(true);\r\n },\r\n label: \"Authorities\",\r\n },\r\n ]}\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"SYSTEM_APPLICATION_ROLE_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.systemApplicationId = props?.selectedApplication?.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"SYSTEM_APPLICATION_ROLE_DELETE\",\r\n }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default SystemApplicationRoleGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype LookupGridProps = {\r\n selectedApplication: any;\r\n};\r\n\r\nconst LookupGrid: React.FC<LookupGridProps> = (props) => {\r\n const SystemOrganizations = useSelector(\r\n (state: any) => state.commonStores.stores.SystemOrganizations.data\r\n );\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/lookup/all\",\r\n deleteById: \"api/v1/dev/lookup\",\r\n save: \"api/v1/dev/lookup\",\r\n findById: \"api/v1/dev/lookup\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Organization\",\r\n fieldName: \"organizationId\",\r\n options: SystemOrganizations,\r\n optionDisplayField: \"organizationEnName\",\r\n optionValueField: \"id\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"LOOKUP_LOOKUP_TYPE\",\r\n fieldName: \"lookupType\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"LOOKUP_LOOKUP_AR_DISPLAY\",\r\n fieldName: \"lookupArDisplay\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"LOOKUP_LOOKUP_EN_DISPLAY\",\r\n fieldName: \"lookupEnDisplay\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"LOOKUP_LOOKUP_VALUE\",\r\n fieldName: \"lookupValue\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"LOOKUP_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"System Application\",\r\n fieldName: \"systemApplicationId\",\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{\r\n systemApplicationId: props.selectedApplication.id,\r\n }}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"LOOKUP_PLURAL\")}\r\n girdIcon=\"list-check\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"LOOKUP_EDIT\",\r\n preActionValidation: (data: any) => {\r\n data.systemApplicationId = props.selectedApplication.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"LOOKUP_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default LookupGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype DataQueryParameterGridProps = {\r\n selectedRecord: any;\r\n};\r\n\r\nconst DataQueryParameterGrid: React.FC<DataQueryParameterGridProps> = (\r\n props\r\n) => {\r\n const SystemEntityParameters = useSelector(\r\n (state: any) => state.commonStores.stores.SystemEntityParameters.data\r\n );\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/dataqueryparameter/all\",\r\n deleteById: \"api/v1/dev/dataqueryparameter\",\r\n save: \"api/v1/dev/dataqueryparameter\",\r\n findById: \"api/v1/dev/dataqueryparameter\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_PARAMETER_DATA_QUERY_ID\",\r\n fieldName: \"dataQueryId\",\r\n required: false,\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID\",\r\n fieldName: \"entityParameterId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemEntityParameters,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"parameterCode\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_PARAMETER_DEFAULT_VALUE\",\r\n fieldName: \"defaultValue\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_PARAMETER_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_PARAMETER_HIDDEN\",\r\n fieldName: \"hidden\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_PARAMETER_MANDATORY\",\r\n fieldName: \"mandatory\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n hideInfoBar={true}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridLoadParametersValues={{ dataQueryId: props.selectedRecord.id }}\r\n gridTitle={t(\"DATA_QUERY_PARAMETER_PLURAL\")}\r\n girdIcon=\"table-cells\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"DATA_QUERY_PARAMETER_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.dataQueryId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"DATA_QUERY_PARAMETER_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default DataQueryParameterGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype ReportParameterGridProps = {\r\n selectedRecord: any;\r\n};\r\n\r\nconst ReportParameterGrid: React.FC<ReportParameterGridProps> = (props) => {\r\n const { t } = useTranslation();\r\n const SystemEntityParameters = useSelector(\r\n (state: any) => state.commonStores.stores.SystemEntityParameters.data\r\n );\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/reportparameter/all\",\r\n deleteById: \"api/v1/dev/reportparameter\",\r\n save: \"api/v1/dev/reportparameter\",\r\n findById: \"api/v1/dev/reportparameter\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_PARAMETER_ENTITY_PARAMETER_ID\",\r\n fieldName: \"entityParameterId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemEntityParameters,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"parameterCode\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_PARAMETER_DEFAULT_VALUE\",\r\n fieldName: \"defaultValue\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_PARAMETER_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_PARAMETER_HIDDEN\",\r\n fieldName: \"hidden\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_PARAMETER_MANDATORY\",\r\n fieldName: \"mandatory\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_PARAMETER_REPORT_ID\",\r\n fieldName: \"reportId\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n setData={setData}\r\n gridLoadParametersValues={{ reportId: props.selectedRecord.id }}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"REPORT_PARAMETER_PLURAL\")}\r\n girdIcon=\"p\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"REPORT_PARAMETER_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.reportId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"REPORT_PARAMETER_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default ReportParameterGrid;\r\n","import { useEffect, useState } from \"react\";\r\nimport TemplateGrid from \"../DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../DataEntryTemplates/DataEntryTypes\";\r\n\r\ntype ExcelReportViewerProps = {\r\n reportData: Array<any>;\r\n setReportData: (data) => void;\r\n reloadReport: () => void;\r\n gridLoadParameters?: Array<FormElementProps>;\r\n gridLoadParametersValues?: { [key: string]: any };\r\n setGridLoadParametersValues?: any;\r\n};\r\n\r\nconst getGridColumnsFromRecord = (data: Array<any>) => {\r\n if (data.length === 0) {\r\n return [];\r\n }\r\n const formElements: Array<FormElementProps> = [];\r\n for (const key of Object.keys(data[0])) {\r\n const formElement: FormElementProps = {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: key,\r\n fieldName: key,\r\n fieldType: \"text\",\r\n },\r\n };\r\n formElements.push(formElement);\r\n }\r\n console.log(\"formElements\", formElements);\r\n return formElements;\r\n};\r\n\r\nconst ExcelReportViewer: React.FC<ExcelReportViewerProps> = (props) => {\r\n console.log(\"reportdata\", props.reportData);\r\n return (\r\n <TemplateGrid\r\n data={props.reportData}\r\n disableDefaultAction={true}\r\n setData={props.setReportData}\r\n formElements={getGridColumnsFromRecord(props.reportData)}\r\n gridLoadParameters={props.gridLoadParameters}\r\n gridLoadParametersValues={props.gridLoadParametersValues}\r\n setGridLoadParametersValues={props.setGridLoadParametersValues}\r\n editMode={{ editMode: \"none\" }}\r\n girdIcon={\"file-excel\"}\r\n gridTitle=\"Report\"\r\n autoLoad={true}\r\n hideInfoBar={true}\r\n apiActions={{\r\n deleteRecordById: async () => {\r\n return true;\r\n },\r\n loadRecordById: async () => {},\r\n reloadData: async () => {\r\n props.reloadReport();\r\n },\r\n saveRecord: async () => {},\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default ExcelReportViewer;\r\n","import { useEffect, useState } from \"react\";\r\nimport { useAxios, useWindow } from \"../../../hooks\";\r\nimport TemplateForm from \"../DataEntryTemplates/TemplateDataForm/TemplateForm\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { FormElementProps } from \"../DataEntryTemplates/DataEntryTypes\";\r\nimport {\r\n Accordion,\r\n AccordionDetails,\r\n AccordionSummary,\r\n Box,\r\n Icon,\r\n IconButton,\r\n Typography,\r\n} from \"@mui/material\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport ExcelReportViewer from \"./ExcelReportViewer\";\r\nimport { GridExpandMoreIcon } from \"@mui/x-data-grid-premium\";\r\n\r\ntype ReportViewerState =\r\n | \"ERROR\"\r\n | \"WAITING_REPORT_CODE\"\r\n | \"LOADING_METADATA\"\r\n | \"WAITING_PARAMETER_INPUT\"\r\n | \"WAITING_RESULT\"\r\n | \"SHOWING_RESULT\";\r\n\r\ntype ReportViewerProps = {\r\n reportCode: string;\r\n resultMode: \"Request\" | \"App\";\r\n reportParametersValues?: { [key: string]: any };\r\n byPassParameterEntry?: boolean;\r\n jasperOutPutFileType?: \"pdf\" | \"word\" | \"excel\";\r\n};\r\n\r\ntype ReportParameter = {\r\n parameterCode: string;\r\n parameterLabel: string;\r\n parameterValueFormat?: string;\r\n parameterValueField?: string;\r\n parameterDisplayField?: string;\r\n parameterDataset?: Array<any>;\r\n parameterDataQueryId?: number;\r\n hidden?: boolean;\r\n mandatory?: boolean;\r\n defaultValue?: any;\r\n parameterType:\r\n | \"text\"\r\n | \"number\"\r\n | \"date\"\r\n | \"datetime\"\r\n | \"combobox\"\r\n | \"checkbox\"\r\n | \"html\"\r\n | \"lookup\";\r\n};\r\n\r\nconst ReportViewer: React.FC<ReportViewerProps> = (props) => {\r\n const [blobUrl, setBlobUrl] = useState(null);\r\n const [errorMessage, setErrorMessage] = useState(null);\r\n const [excelReportData, setExcelReportData] = useState<Array<any>>([]);\r\n const [reportViewerState, setReportViewerState] = useState<ReportViewerState>(\r\n \"WAITING_REPORT_CODE\"\r\n );\r\n const { handleGetRequest, handlePostRequest, HandleDownloadHTTPPostPDF } =\r\n useAxios();\r\n const [reportInfo, setReportInfo] = useState<any>(null);\r\n const [reportParametersValues, setReportParametersValues] = useState<any>({\r\n ...props?.reportParametersValues,\r\n });\r\n const [reportParametersElements, setReportParametersElements] = useState<\r\n Array<FormElementProps>\r\n >([]);\r\n const { t } = useTranslation();\r\n\r\n const getFormElementsFromReportParameters = (\r\n reportParameters: Array<ReportParameter>\r\n ) => {\r\n const formElements: Array<FormElementProps> = [];\r\n for (const reportParameter of reportParameters) {\r\n const formElement: FormElementProps = {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: reportParameter?.parameterLabel,\r\n fieldName: reportParameter?.parameterCode,\r\n fieldType: reportParameter?.parameterType,\r\n hidden: reportParameter?.hidden,\r\n formProps: { fieldSize: { lg: 4, md: 6, sm: 12 } },\r\n required: reportParameter?.mandatory,\r\n defaultValue:\r\n reportParametersValues[reportParameter?.parameterCode] ||\r\n reportParameter?.defaultValue,\r\n },\r\n };\r\n formElements.push(formElement);\r\n }\r\n return formElements;\r\n };\r\n const loadReportData = async () => {\r\n setReportViewerState(\"LOADING_METADATA\");\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/dev/report/metadata\",\r\n showMask: true,\r\n parameters: { reportCode: props.reportCode },\r\n successCallBkFn: (response: any) => {\r\n setReportInfo(response.data);\r\n setReportParametersElements(\r\n getFormElementsFromReportParameters(response.data.reportParameters)\r\n );\r\n if (\r\n props?.byPassParameterEntry === true ||\r\n response.data.reportParameters.length == 0\r\n ) {\r\n runReport(response.data, reportParametersValues);\r\n setReportViewerState(\"WAITING_RESULT\");\r\n } else {\r\n setReportViewerState(\"WAITING_PARAMETER_INPUT\");\r\n }\r\n },\r\n failureCallBkFn: (response) => {\r\n setErrorMessage(\r\n \"Failed loading report metadata ... contact your administrator\"\r\n );\r\n setReportViewerState(\"ERROR\");\r\n },\r\n });\r\n };\r\n\r\n const runReport = async (reportInfoProp, params) => {\r\n setReportViewerState(\"WAITING_RESULT\");\r\n if (reportInfoProp?.reportType === \"Excel\") {\r\n await handlePostRequest({\r\n endPointURI: \"api/v1/dev/report/run\",\r\n showMask: true,\r\n data: {\r\n reportCode: props.reportCode,\r\n parameters: params,\r\n resultMode: props.resultMode,\r\n jasperOutPutFileType: props.jasperOutPutFileType,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setReportViewerState(\"SHOWING_RESULT\");\r\n setExcelReportData(response.data);\r\n },\r\n });\r\n } else if (reportInfoProp?.reportType) {\r\n await HandleDownloadHTTPPostPDF({\r\n endPointURI: \"api/v1/dev/report/run\",\r\n showMask: true,\r\n data: {\r\n reportCode: props.reportCode,\r\n parameters: params,\r\n resultMode: props.resultMode,\r\n jasperOutPutFileType: props.jasperOutPutFileType,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setReportViewerState(\"SHOWING_RESULT\");\r\n const contentDisposition = response.headers[\"content-disposition\"];\r\n let filename = \"downloaded_file\";\r\n if (\r\n contentDisposition &&\r\n contentDisposition.indexOf(\"filename=\") !== -1\r\n ) {\r\n const match = contentDisposition.match(/filename=\"?([^\"]+)\"?/);\r\n if (match && match[1]) filename = match[1];\r\n }\r\n if (filename.includes(\"pdf\")) {\r\n const file = new Blob([response.data], { type: \"application/pdf\" });\r\n const url = URL.createObjectURL(file);\r\n setBlobUrl(url);\r\n } else {\r\n const blob = new Blob([response.data], {\r\n type: response.headers[\"content-type\"],\r\n });\r\n // Create a temporary anchor element\r\n const url = window.URL.createObjectURL(blob);\r\n const link = document.createElement(\"a\");\r\n link.href = url;\r\n // Optional: Try to get filename from response headers\r\n\r\n link.download = filename;\r\n document.body.appendChild(link);\r\n link.click();\r\n\r\n // Clean up\r\n document.body.removeChild(link);\r\n window.URL.revokeObjectURL(url);\r\n }\r\n console.log(response);\r\n },\r\n failureCallBkFn: (response) => {\r\n setErrorMessage(\r\n \"Failed To run report ... contact your administrator\"\r\n );\r\n setReportViewerState(\"ERROR\");\r\n },\r\n });\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n if (props?.reportCode) {\r\n loadReportData();\r\n }\r\n }, [\r\n props.reportCode,\r\n props.byPassParameterEntry,\r\n props.reportParametersValues,\r\n props.jasperOutPutFileType,\r\n props.resultMode,\r\n ]);\r\n\r\n return (\r\n <>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n width: \"100%\",\r\n }}\r\n >\r\n <Box sx={{ flex: 1, textAlign: \"center\", marginBottom: 1 }}>\r\n <FontAwesomeIcon\r\n icon={\r\n reportInfo?.reportType === \"Excel\" ? \"file-excel\" : \"file-pdf\"\r\n }\r\n color={reportInfo?.reportType === \"Excel\" ? \"darkgreen\" : \"darkred\"}\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {reportInfo?.reportName}\r\n </Box>\r\n {reportInfo?.reportType != \"Excel\" ? (\r\n reportViewerState === \"SHOWING_RESULT\" ? (\r\n <>\r\n {props?.byPassParameterEntry === true ? (\r\n <></>\r\n ) : reportParametersElements.length > 0 ? (\r\n <IconButton\r\n onClick={() => {\r\n setReportParametersElements(\r\n getFormElementsFromReportParameters(\r\n reportInfo.reportParameters\r\n )\r\n );\r\n setReportViewerState(\"WAITING_PARAMETER_INPUT\");\r\n }}\r\n >\r\n <FontAwesomeIcon icon=\"filter\" />\r\n </IconButton>\r\n ) : (\r\n <></>\r\n )}\r\n <IconButton>\r\n <FontAwesomeIcon\r\n icon=\"refresh\"\r\n onClick={() => {\r\n runReport(reportInfo, reportParametersValues);\r\n }}\r\n />\r\n </IconButton>\r\n </>\r\n ) : (\r\n <></>\r\n )\r\n ) : (\r\n <></>\r\n )}\r\n </Box>\r\n <Box\r\n sx={{\r\n flexGrow: 1,\r\n width: \"100%\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n }}\r\n >\r\n {reportViewerState === \"WAITING_PARAMETER_INPUT\" &&\r\n reportInfo?.reportType != \"Excel\" ? (\r\n <Accordion defaultExpanded sx={{ width: \"100%\" }} expanded={true}>\r\n <AccordionSummary>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n style={{ marginLeft: 5, marginRight: 5 }}\r\n icon=\"search\"\r\n />\r\n <Typography component=\"span\">Filters</Typography>\r\n </Box>\r\n </AccordionSummary>\r\n <AccordionDetails>\r\n <Box>\r\n <TemplateForm\r\n saveButtonSpecs={{\r\n label: t(\"SHOW_REPORT_BTN_LABEL\"),\r\n icon: \"search\",\r\n actionButtonVariant: \"outlined\",\r\n actionButtonColor: \"success\",\r\n hidden: true,\r\n }}\r\n cancelButtonSpecs={{\r\n label: t(\"RESET_BTN_LABEL\"),\r\n icon: \"eraser\",\r\n actionButtonVariant: \"outlined\",\r\n actionButtonColor: \"error\",\r\n }}\r\n apiActions={{\r\n deleteRecordById: async () => {\r\n return true;\r\n },\r\n saveRecord: async (params) => {\r\n if (params != undefined) {\r\n setReportParametersValues(params);\r\n } else {\r\n setReportParametersValues({});\r\n }\r\n runReport(reportInfo, params);\r\n },\r\n reloadData: async () => {},\r\n loadRecordById: async () => {},\r\n }}\r\n elements={reportParametersElements}\r\n />\r\n </Box>\r\n </AccordionDetails>\r\n </Accordion>\r\n ) : reportViewerState === \"SHOWING_RESULT\" ||\r\n ((reportViewerState === \"WAITING_PARAMETER_INPUT\" ||\r\n reportViewerState === \"WAITING_RESULT\") &&\r\n reportInfo?.reportType === \"Excel\") ? (\r\n reportInfo?.reportType === \"Excel\" ? (\r\n <ExcelReportViewer\r\n reportData={excelReportData}\r\n setReportData={setExcelReportData}\r\n reloadReport={async () => {\r\n runReport(reportInfo, reportParametersValues);\r\n }}\r\n gridLoadParameters={reportParametersElements}\r\n gridLoadParametersValues={reportParametersValues}\r\n setGridLoadParametersValues={setReportParametersValues}\r\n />\r\n ) : (\r\n <iframe\r\n src={blobUrl}\r\n width=\"100%\"\r\n height=\"100%\"\r\n title=\"PDF Preview\"\r\n style={{ border: \"1px solid #ccc\", marginTop: \"20px\" }}\r\n ></iframe>\r\n )\r\n ) : reportViewerState === \"ERROR\" ? (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flex: 1,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n icon=\"circle-exclamation\"\r\n color=\"darkred\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {errorMessage}\r\n </Box>\r\n ) : (\r\n <></>\r\n )}\r\n </Box>\r\n </>\r\n );\r\n};\r\n\r\nexport default ReportViewer;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport {\r\n FormActionProps,\r\n FormElementProps,\r\n} from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { UseFormReturn } from \"react-hook-form\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { toast } from \"react-toastify\";\r\nimport ReportParametersForm from \"./ReportParametersForm\";\r\nimport ReportParameterGrid from \"./ReportParameterGrid\";\r\nimport ReportViewer from \"../../templates/report/ReportViewer\";\r\n\r\ntype ValidationCritria = {\r\n isVisible: boolean;\r\n isMandatory: boolean;\r\n};\r\n\r\nexport type ReportType = \"Jasper\" | \"Excel\" | \"Blueprint\";\r\n\r\ntype ReportValidationOptions = {\r\n useSysDatasource: ValidationCritria;\r\n datasourceConId: ValidationCritria;\r\n reportBluePrintId: ValidationCritria;\r\n reportExcelDataQueryId: ValidationCritria;\r\n reportJasperName: ValidationCritria;\r\n reportJasperPath: ValidationCritria;\r\n};\r\n\r\ntype validationObjectType = {\r\n [key in ReportType]: ReportValidationOptions;\r\n};\r\n\r\nconst validationObject: validationObjectType = {\r\n Blueprint: {\r\n useSysDatasource: { isMandatory: false, isVisible: false },\r\n datasourceConId: { isMandatory: false, isVisible: false },\r\n reportBluePrintId: { isMandatory: true, isVisible: true },\r\n reportExcelDataQueryId: { isMandatory: false, isVisible: false },\r\n reportJasperName: { isMandatory: false, isVisible: false },\r\n reportJasperPath: { isMandatory: false, isVisible: false },\r\n },\r\n Jasper: {\r\n useSysDatasource: { isMandatory: false, isVisible: true },\r\n datasourceConId: { isMandatory: false, isVisible: true },\r\n reportBluePrintId: { isMandatory: false, isVisible: false },\r\n reportExcelDataQueryId: { isMandatory: false, isVisible: false },\r\n reportJasperName: { isMandatory: true, isVisible: true },\r\n reportJasperPath: { isMandatory: true, isVisible: true },\r\n },\r\n Excel: {\r\n useSysDatasource: { isMandatory: false, isVisible: false },\r\n datasourceConId: { isMandatory: false, isVisible: false },\r\n reportBluePrintId: { isMandatory: false, isVisible: false },\r\n reportExcelDataQueryId: { isMandatory: true, isVisible: true },\r\n reportJasperName: { isMandatory: false, isVisible: false },\r\n reportJasperPath: { isMandatory: false, isVisible: false },\r\n },\r\n};\r\n\r\nconst adjustFormAccordingToReportType = (\r\n value: any,\r\n formActions: FormActionProps,\r\n formManager: UseFormReturn\r\n) => {\r\n if (value && validationObject[value]) {\r\n const validationObjects: ReportValidationOptions = validationObject[value];\r\n const fields = Object.keys(validationObjects);\r\n for (const field of fields) {\r\n const validationCritria: ValidationCritria = validationObjects[field];\r\n if (validationCritria.isVisible) {\r\n formActions.showField(field);\r\n } else {\r\n formActions.hideField(field);\r\n formManager.setValue(field, null);\r\n }\r\n }\r\n } else {\r\n formActions.hideField(\"useSysDatasource\");\r\n formActions.hideField(\"datasourceConId\");\r\n formActions.hideField(\"reportBluePrintId\");\r\n formActions.hideField(\"reportExcelDataQueryId\");\r\n formActions.hideField(\"reportJasperName\");\r\n formActions.hideField(\"reportJasperPath\");\r\n formManager.setValue(\"useSysDatasource\", null);\r\n formManager.setValue(\"datasourceConId\", null);\r\n formManager.setValue(\"reportBluePrintId\", null);\r\n formManager.setValue(\"reportExcelDataQueryId\", null);\r\n formManager.setValue(\"reportJasperName\", null);\r\n formManager.setValue(\"reportJasperPath\", null);\r\n }\r\n};\r\n\r\nconst ReportGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [selectedRecord, setSelectedRecord] = useState(null);\r\n const {\r\n Window: ReporTrialWindow,\r\n setWindowState: setReportTrialWindowState,\r\n } = useWindow({\r\n windowTitle: \"Report View\",\r\n windowIcon: \"eye\",\r\n width: \"80%\",\r\n });\r\n const {\r\n Window: ReportParameterWindow,\r\n setWindowState: setReportParameterWindowState,\r\n } = useWindow({\r\n windowTitle: \"Report Parameters\",\r\n windowIcon: \"p\",\r\n width: \"80%\",\r\n });\r\n const [data, setData] = useState([]);\r\n const SystemDataSources = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataSources.data\r\n );\r\n const SystemDataQueries = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataQueries.data\r\n );\r\n const SystemBluePrints = useSelector(\r\n (state: any) => state.commonStores.stores.SystemBluePrints.data\r\n );\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/report/all\",\r\n deleteById: \"api/v1/dev/report\",\r\n save: \"api/v1/dev/report\",\r\n findById: \"api/v1/dev/report\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_TYPE\",\r\n fieldName: \"reportType\",\r\n options: [\r\n { value: \"Excel\" },\r\n { value: \"Jasper\" },\r\n { value: \"Blueprint\" },\r\n ],\r\n optionDisplayField: \"value\",\r\n optionValueField: \"value\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n adjustFormAccordingToReportType(value, formActions, formManager);\r\n },\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_CODE\",\r\n fieldName: \"reportCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_NAME\",\r\n fieldName: \"reportName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_CATEGORY\",\r\n fieldName: \"reportCategory\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Authority Code\",\r\n fieldName: \"reportAuthorityCode\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_EXPORT_NAME\",\r\n fieldName: \"reportExportName\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_USE_SYS_DATASOURCE\",\r\n fieldName: \"useSysDatasource\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n if (value) {\r\n formActions.hideField(\"datasourceConId\");\r\n formManager.setValue(\"datasourceConId\", null);\r\n } else {\r\n formActions.showField(\"datasourceConId\");\r\n }\r\n },\r\n },\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_DATASOURCE_CON_ID\",\r\n fieldName: \"datasourceConId\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataSources,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"connectionName\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_BLUE_PRINT_ID\",\r\n fieldName: \"reportBluePrintId\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemBluePrints,\r\n optionDisplayField: \"bluePrintCode\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_EXCEL_DATA_QUERY_ID\",\r\n fieldName: \"reportExcelDataQueryId\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"queryName\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_JASPER_NAME\",\r\n fieldName: \"reportJasperName\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"REPORT_REPORT_JASPER_PATH\",\r\n fieldName: \"reportJasperPath\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Active\",\r\n fieldName: \"isActive\",\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <ReporTrialWindow>\r\n <ReportViewer\r\n reportCode={selectedRecord?.reportCode}\r\n resultMode=\"App\"\r\n />\r\n </ReporTrialWindow>\r\n <ReportParameterWindow>\r\n <ReportParameterGrid selectedRecord={selectedRecord} />\r\n </ReportParameterWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalTitle: \"Report\",\r\n modalIcon: \"file\",\r\n modalWidth: 300,\r\n },\r\n }}\r\n rowActions={[\r\n {\r\n icon: \"p\",\r\n label: \"Report Parameters\",\r\n isActionVisibleForRecord: (record) => {\r\n return record.reportType === \"Jasper\";\r\n },\r\n actionFn: async (data, recordIdsToProcessActionOn) => {\r\n setSelectedRecord(data);\r\n setReportParameterWindowState(true);\r\n },\r\n },\r\n {\r\n icon: \"eye\",\r\n label: \"View Report\",\r\n actionFn: async (data, recordIdsToProcessActionOn) => {\r\n setSelectedRecord(data);\r\n setReportTrialWindowState(true);\r\n },\r\n },\r\n ]}\r\n formLoadCallBk={(\r\n formActions: FormActionProps,\r\n formManager: UseFormReturn,\r\n record: any\r\n ) => {\r\n adjustFormAccordingToReportType(\r\n record.reportType,\r\n formActions,\r\n formManager\r\n );\r\n if (record?.useSysDatasource === true) {\r\n formActions.hideField(\"datasourceConId\");\r\n }\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"REPORT_PLURAL\")}\r\n girdIcon=\"table-cells\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"REPORT_EDIT\",\r\n preActionValidation: (record) => {\r\n if (\r\n record?.reportType === \"Jasper\" &&\r\n record?.useSysDatasource === false &&\r\n !record?.datasourceConId\r\n ) {\r\n toast.error(\"You must choose the datasource\");\r\n return false;\r\n }\r\n if (record?.reportType === \"Jasper\" && !record?.reportJasperName) {\r\n toast.error(\"You must enter the jasper report name\");\r\n return false;\r\n }\r\n if (record?.reportType === \"Jasper\" && !record?.reportJasperPath) {\r\n toast.error(\"You must enter the jasper report path\");\r\n return false;\r\n }\r\n if (\r\n record?.reportType === \"Blueprint\" &&\r\n !record?.reportBluePrintId\r\n ) {\r\n toast.error(\"You must choose the report blueprint\");\r\n return false;\r\n }\r\n if (\r\n record?.reportType === \"Excel\" &&\r\n !record?.reportExcelDataQueryId\r\n ) {\r\n toast.error(\"You must choose the report query\");\r\n return false;\r\n }\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"REPORT_DELETE\" }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default ReportGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { isValidEmail } from \"../../../util\";\r\nimport { toast } from \"react-toastify\";\r\n\r\ntype MailRecipientGridProps = {\r\n selectedRecord: any;\r\n callBkFn: () => void;\r\n};\r\n\r\nconst MailRecipientGrid: React.FC<MailRecipientGridProps> = (props) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/mailrecipient/all\",\r\n deleteById: \"api/v1/dev/mailrecipient\",\r\n save: \"api/v1/dev/mailrecipient\",\r\n findById: \"api/v1/dev/mailrecipient\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_RECIPIENT_MAIL_TEMPLATE_ID\",\r\n fieldName: \"mailTemplateId\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_RECIPIENT_RECIPIENT_TYPE\",\r\n fieldName: \"recipientType\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: [{ value: \"To\" }, { value: \"CC\" }],\r\n optionDisplayField: \"value\",\r\n optionValueField: \"value\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_RECIPIENT_RECIPIENT_MAIL\",\r\n fieldName: \"recipientMail\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_RECIPIENT_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{mailTemplateId:props.selectedRecord.id}}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"MAIL_RECIPIENT_PLURAL\")}\r\n girdIcon=\"users\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"MAIL_RECIPIENT_EDIT\",\r\n preActionValidation: (record) => {\r\n if (record?.recipientMail && !isValidEmail(record.recipientMail)) {\r\n toast.error(\"You must enter a valid email address\");\r\n return false;\r\n }\r\n record.mailTemplateId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"MAIL_RECIPIENT_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default MailRecipientGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype MailBodyGridProps = {\r\n selectedRecord: any;\r\n callBkFn: () => void;\r\n};\r\n\r\nconst MailBodyGrid: React.FC<MailBodyGridProps> = (props) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const SystemDataQueries = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataQueries.data\r\n );\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/mailbody/all\",\r\n deleteById: \"api/v1/dev/mailbody\",\r\n save: \"api/v1/dev/mailbody\",\r\n findById: \"api/v1/dev/mailbody\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n\t{\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_BODY_BODY_NAME\",\r\n fieldName: \"bodyName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_BODY_BODY_ORDER\",\r\n fieldName: \"bodyOrder\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_BODY_BODY_CONTENT\",\r\n fieldName: \"bodyContent\",\r\n required: true,\r\n fieldType: \"html\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID\",\r\n fieldName: \"bodyContentDataQueryId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionDisplayField: \"queryName\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_BODY_PRINT_FOR_EACH_RECORD\",\r\n fieldName: \"printForEachRecord\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_BODY_IS_MAIN\",\r\n fieldName: \"isMain\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_BODY_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_BODY_MAIL_TEMPLATE_ID\",\r\n fieldName: \"mailTemplateId\",\r\n required: false,\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n fieldType: \"number\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{ mailTemplateId: props.selectedRecord.id }}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalIcon: { prefix: \"fas\", iconName: \"envelope-open-text\" },\r\n modalTitle: \"Mail Body\",\r\n modalWidth: \"50%\",\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"MAIL_BODY_PLURAL\")}\r\n girdIcon={{ prefix: \"fas\", iconName: \"envelope-open-text\" }}\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"MAIL_BODY_EDIT\",\r\n preActionValidation: async (record) => {\r\n record.mailTemplateId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"MAIL_BODY_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default MailBodyGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype MailAttachmentGridProps = {\r\n selectedRecord: any;\r\n callBkFn: () => void;\r\n};\r\n\r\nconst MailAttachmentGrid: React.FC<MailAttachmentGridProps> = (props) => {\r\n const SystemReports = useSelector(\r\n (state: any) => state.commonStores.stores.SystemReports.data\r\n );\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/mailattachment/all\",\r\n deleteById: \"api/v1/dev/mailattachment\",\r\n save: \"api/v1/dev/mailattachment\",\r\n findById: \"api/v1/dev/mailattachment\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n options: SystemReports,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"reportName\",\r\n fieldLabel: \"REPORT_REPORT_NAME\",\r\n fieldName: \"reportId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_ATTACHMENT_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_ATTACHMENT_MAIL_TEMPLATE_ID\",\r\n fieldName: \"mailTemplateId\",\r\n required: false,\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n fieldType: \"number\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{ mailTemplateId: props.selectedRecord.id }}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"MAIL_ATTACHMENT_PLURAL\")}\r\n girdIcon=\"paperclip\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"MAIL_ATTACHMENT_EDIT\",\r\n preActionValidation: (record) => {\r\n record.mailTemplateId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"MAIL_ATTACHMENT_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default MailAttachmentGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport {\r\n FormActionProps,\r\n FormElementProps,\r\n} from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { UseFormReturn } from \"react-hook-form\";\r\n\r\ntype ValidationCritria = {\r\n isVisible: boolean;\r\n isMandatory: boolean;\r\n};\r\n\r\nexport type EngineType = \"Gmail\" | \"Azure\";\r\n\r\ntype ReportValidationOptions = {\r\n mailHost: ValidationCritria;\r\n mailPort: ValidationCritria;\r\n mailUsername: ValidationCritria;\r\n mailPassword: ValidationCritria; \r\n mailProtocol: ValidationCritria;\r\n isMailSmtpAuthEnabled: ValidationCritria;\r\n isMailStarttlsEnabled: ValidationCritria;\r\n isSmtpSSlEnabled: ValidationCritria;\r\n azureGraphApiClientId: ValidationCritria;\r\n azureGraphApiClientSecret: ValidationCritria;\r\n azureGraphApiTenantId: ValidationCritria;\r\n azureGraphApiScope: ValidationCritria;\r\n azureGraphApiEmailId: ValidationCritria;\r\n};\r\n\r\ntype validationObjectType = {\r\n [key in EngineType]: ReportValidationOptions;\r\n};\r\n\r\nconst validationObject: validationObjectType = {\r\n Gmail: {\r\n mailHost: { isMandatory: true, isVisible: true },\r\n mailPort: { isMandatory: true, isVisible: true },\r\n mailUsername: { isMandatory: true, isVisible: true },\r\n mailPassword: { isMandatory: true, isVisible: true }, \r\n mailProtocol: { isMandatory: true, isVisible: true },\r\n isMailSmtpAuthEnabled: { isMandatory: true, isVisible: true },\r\n isMailStarttlsEnabled: { isMandatory: true, isVisible: true },\r\n isSmtpSSlEnabled: { isMandatory: true, isVisible: true },\r\n azureGraphApiClientId: { isMandatory: false, isVisible: false },\r\n azureGraphApiClientSecret: { isMandatory: false, isVisible: false },\r\n azureGraphApiTenantId: { isMandatory: false, isVisible: false },\r\n azureGraphApiScope: { isMandatory: false, isVisible: false },\r\n azureGraphApiEmailId: { isMandatory: false, isVisible: false },\r\n },\r\n Azure: {\r\n mailHost: { isMandatory: false, isVisible: false },\r\n mailPort: { isMandatory: false, isVisible: false },\r\n mailUsername: { isMandatory: false, isVisible: false },\r\n mailPassword: { isMandatory: false, isVisible: false }, \r\n mailProtocol: { isMandatory: false, isVisible: false },\r\n isMailSmtpAuthEnabled: { isMandatory: false, isVisible: false },\r\n isMailStarttlsEnabled: { isMandatory: false, isVisible: false },\r\n isSmtpSSlEnabled: { isMandatory: false, isVisible: false },\r\n azureGraphApiClientId: { isMandatory: true, isVisible: true },\r\n azureGraphApiClientSecret: { isMandatory: true, isVisible: true },\r\n azureGraphApiTenantId: { isMandatory: true, isVisible: true },\r\n azureGraphApiScope: { isMandatory: true, isVisible: true },\r\n azureGraphApiEmailId: { isMandatory: true, isVisible: true },\r\n },\r\n};\r\n\r\nconst adjustFormAccordingToEngineType = (\r\n value: any,\r\n formActions: FormActionProps,\r\n formManager: UseFormReturn\r\n) => {\r\n if (value && validationObject[value]) {\r\n const validationObjects: ReportValidationOptions = validationObject[value];\r\n const fields = Object.keys(validationObjects);\r\n for (const field of fields) {\r\n const validationCritria: ValidationCritria = validationObjects[field];\r\n if (validationCritria.isVisible) {\r\n formActions.showField(field);\r\n } else {\r\n formActions.hideField(field);\r\n formManager.setValue(field, null);\r\n }\r\n }\r\n } else {\r\n formActions.hideField(\"mailHost\");\r\n formManager.setValue(\"mailHost\", null);\r\n formActions.hideField(\"mailPort\");\r\n formManager.setValue(\"mailPort\", null);\r\n formActions.hideField(\"mailUsername\");\r\n formManager.setValue(\"mailUsername\", null);\r\n formActions.hideField(\"mailPassword\");\r\n formManager.setValue(\"mailPassword\", null); \r\n formActions.hideField(\"mailProtocol\");\r\n formManager.setValue(\"mailProtocol\", null);\r\n formActions.hideField(\"isMailSmtpAuthEnabled\");\r\n formManager.setValue(\"isMailSmtpAuthEnabled\", null);\r\n formActions.hideField(\"isMailStarttlsEnabled\");\r\n formManager.setValue(\"isMailStarttlsEnabled\", null);\r\n formActions.hideField(\"isSmtpSSlEnabled\");\r\n formManager.setValue(\"isSmtpSSlEnabled\", null);\r\n formActions.hideField(\"azureGraphApiClientId\");\r\n formManager.setValue(\"azureGraphApiClientId\", null);\r\n formActions.hideField(\"azureGraphApiClientSecret\");\r\n formManager.setValue(\"azureGraphApiClientSecret\", null);\r\n formActions.hideField(\"azureGraphApiTenantId\");\r\n formManager.setValue(\"azureGraphApiTenantId\", null);\r\n formActions.hideField(\"azureGraphApiScope\");\r\n formManager.setValue(\"azureGraphApiScope\", null);\r\n formActions.hideField(\"azureGraphApiEmailId\");\r\n formManager.setValue(\"azureGraphApiEmailId\", null);\r\n }\r\n};\r\n\r\nconst MailSenderConfigGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/mailsenderconfig/all\",\r\n deleteById: \"api/v1/dev/mailsenderconfig\",\r\n save: \"api/v1/dev/mailsenderconfig\",\r\n findById: \"api/v1/dev/mailsenderconfig\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Name\",\r\n fieldName: \"configName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Engine\",\r\n fieldName: \"mailEngine\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: [{ value: \"Gmail\" }, { value: \"Azure\" }],\r\n optionDisplayField: \"value\",\r\n optionValueField: \"value\",\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n adjustFormAccordingToEngineType(value, formActions, formManager);\r\n },\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Hostname\",\r\n fieldName: \"mailHost\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"port\",\r\n fieldName: \"mailPort\",\r\n required: false,\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"username\",\r\n fieldName: \"mailUsername\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"password\",\r\n fieldName: \"mailPassword\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Workflow Approval Receive Email\",\r\n fieldName: \"workFlowApprovalReceiveEmail\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Protocol\",\r\n fieldName: \"mailProtocol\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Enable Smtp Auth\",\r\n fieldName: \"isMailSmtpAuthEnabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Enable Start TLS\",\r\n fieldName: \"isMailStarttlsEnabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Enable SSL\",\r\n fieldName: \"isSmtpSSlEnabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Azure Graph API Client Id\",\r\n fieldName: \"azureGraphApiClientId\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Azure Graph API Secret\",\r\n fieldName: \"azureGraphApiClientSecret\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Azure Graph API Tenant Id\",\r\n fieldName: \"azureGraphApiTenantId\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Azure Graph API Scope\",\r\n fieldName: \"azureGraphApiScope\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Azure Graph API Email Id\",\r\n fieldName: \"azureGraphApiEmailId\",\r\n required: false,\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Default\",\r\n fieldName: \"isDefault\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Active\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalIcon: { iconName: \"paper-plane\", prefix: \"fas\" },\r\n modalTitle: \"Mail Sender Configuration\",\r\n modalWidth: 300,\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"Mail Sender Configuration\")}\r\n girdIcon={{ iconName: \"paper-plane\", prefix: \"fas\" }}\r\n editAction={{ isEnabled: true, authority: \"MAIL_SENDER_CONFIG_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"MAIL_SENDER_CONFIG_DELETE\" }}\r\n formLoadCallBk={(\r\n formActions: FormActionProps,\r\n formManager: UseFormReturn,\r\n record: any\r\n ) => {\r\n adjustFormAccordingToEngineType(\r\n record.mailEngine,\r\n formActions,\r\n formManager\r\n );\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default MailSenderConfigGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype WorkflowDocumentStatusGridProps = {\r\n selectedRecord: any;\r\n};\r\n\r\nconst WorkflowDocumentStatusGrid: React.FC<WorkflowDocumentStatusGridProps> = (\r\n props\r\n) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/workflowdocumentstatus/all\",\r\n deleteById: \"api/v1/dev/workflowdocumentstatus\",\r\n save: \"api/v1/dev/workflowdocumentstatus\",\r\n findById: \"api/v1/dev/workflowdocumentstatus\",\r\n setData: setData,\r\n });\r\n const SystemDataQueries = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataQueries.data\r\n );\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_CODE\",\r\n fieldName: \"documentStatusCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Status Arabic Name\",\r\n fieldName: \"documentStatusArName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Status English Name\",\r\n fieldName: \"documentStatusEnName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_ORDER\",\r\n fieldName: \"documentStatusOrder\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_STATUS_IS_ZERO_STATE\",\r\n fieldName: \"isZeroState\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel:\r\n \"Next Actions Query (must return array of actions in table named workflow_document_action)\",\r\n fieldName: \"nextActionsQueryId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"queryName\",\r\n gridProps: { hidden: true },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel:\r\n \"Next Action Takers Query (must return array of persons in table named person)\",\r\n fieldName: \"nextActionTakersQueryId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"queryName\",\r\n gridProps: { hidden: true },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Next Action Takers Authority\",\r\n fieldName: \"nextActionTakersAuthority\",\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_STATUS_WORKFLOW_DOCUMENT_ID\",\r\n fieldName: \"workflowDocumentId\",\r\n required: false,\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_STATUS_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{\r\n workflowDocumentId: props.selectedRecord.id,\r\n }}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalIcon: \"tag\",\r\n modalTitle: \"Workflow Document Status\",\r\n modalWidth: 600,\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"WORKFLOW_DOCUMENT_STATUS_PLURAL\")}\r\n girdIcon=\"tags\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_STATUS_EDIT\",\r\n preActionValidation: (record) => {\r\n record.workflowDocumentId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_STATUS_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default WorkflowDocumentStatusGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype WorkflowDocumentActionMailGridProps = {\r\n selectedRecord: any;\r\n};\r\n\r\nconst WorkflowDocumentActionMailGrid: React.FC<\r\n WorkflowDocumentActionMailGridProps\r\n> = (props) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/workflowdocumentactionmail/all\",\r\n deleteById: \"api/v1/dev/workflowdocumentactionmail\",\r\n save: \"api/v1/dev/workflowdocumentactionmail\",\r\n findById: \"api/v1/dev/workflowdocumentactionmail\",\r\n setData: setData,\r\n });\r\n\r\n const SystemMailTemplates = useSelector(\r\n (state: any) => state.commonStores.stores.SystemMailTemplates.data\r\n );\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_ACTION_MAIL_DOCUMENT_ACTION_ID\",\r\n fieldName: \"documentActionId\",\r\n required: false,\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_ACTION_MAIL_MAIL_TEMPLATE_ID\",\r\n fieldName: \"mailTemplateId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemMailTemplates,\r\n optionDisplayField: \"mailTemplateName\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_ACTION_MAIL_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{ actionId: props.selectedRecord.id }}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"WORKFLOW_DOCUMENT_ACTION_MAIL_PLURAL\")}\r\n girdIcon=\"table-cells\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_ACTION_MAIL_EDIT\",\r\n preActionValidation: (record) => {\r\n record.documentActionId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_ACTION_MAIL_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default WorkflowDocumentActionMailGrid;\r\n","import { useEffect, useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions, useAxios, useWindow } from \"../../../hooks\";\r\nimport WorkflowDocumentActionMailGrid from \"./WorkflowDocumentActionMailGrid\";\r\n\r\ntype WorkflowDocumentActionGridProps = {\r\n selectedRecord: any;\r\n};\r\n\r\nconst WorkflowDocumentActionGrid: React.FC<WorkflowDocumentActionGridProps> = (\r\n props\r\n) => {\r\n const [selectedRecord, setSelectedRecord] = useState<any>(null);\r\n const {\r\n Window: ActionMailsWindow,\r\n setWindowState: setActionMailWindowState,\r\n } = useWindow({\r\n windowTitle: \"Action Mail Notification\",\r\n windowIcon: \"envelope\",\r\n width: \"50%\",\r\n });\r\n const { t } = useTranslation();\r\n const { handleGetRequest } = useAxios();\r\n const [workflowStates, setWorkflowStates] = useState<Array<any>>([]);\r\n const loadWorkFlowDocumentStates = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/dev/workflowdocumentstatus/all\",\r\n showMask: true,\r\n parameters: {\r\n workflowDocumentId: props.selectedRecord.id,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setWorkflowStates(response.data);\r\n },\r\n });\r\n };\r\n useEffect(() => {\r\n loadWorkFlowDocumentStates();\r\n }, [props.selectedRecord]);\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/workflowdocumentaction/all\",\r\n deleteById: \"api/v1/dev/workflowdocumentaction\",\r\n save: \"api/v1/dev/workflowdocumentaction\",\r\n findById: \"api/v1/dev/workflowdocumentaction\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_CODE\",\r\n fieldName: \"documentActionCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Action Arabic Name\",\r\n fieldName: \"documentActionArName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Action English Name\",\r\n fieldName: \"documentActionEnName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_ACTION_NEXT_DOCUMENT_STATUS_ID\",\r\n fieldName: \"nextDocumentStatusId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: workflowStates,\r\n optionDisplayField: \"documentStatusCode\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel:\r\n \"Post Action Endpoint ( system will call it with post method and parameters refDocumentId , workflowActionId)\",\r\n fieldName: \"postActionEndpoint\",\r\n required: false,\r\n fieldType: \"text\",\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel:\r\n \"Pre Action Endpoint ( system will call it with post method and parameters refDocumentId , workflowActionId)\",\r\n fieldName: \"preActionEndpoint\",\r\n required: false,\r\n fieldType: \"text\",\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_ACTION_REQUIRE_COMMENT\",\r\n fieldName: \"requireComment\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_ACTION_WORKFLOW_DOCUMENT_ID\",\r\n fieldName: \"workflowDocumentId\",\r\n required: false,\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <ActionMailsWindow>\r\n <WorkflowDocumentActionMailGrid selectedRecord={selectedRecord} />\r\n </ActionMailsWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n hideInfoBar={true}\r\n gridLoadParametersValues={{\r\n workflowDocumentId: props.selectedRecord.id,\r\n }}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalIcon: \"stamp\",\r\n modalTitle: \"Workflow Document Action\",\r\n modalWidth: 700,\r\n },\r\n }}\r\n rowActions={[\r\n {\r\n label: \"Action Mail Notifications\",\r\n icon: \"envelope\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setActionMailWindowState(true);\r\n },\r\n },\r\n ]}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"WORKFLOW_DOCUMENT_ACTION_PLURAL\")}\r\n girdIcon=\"stamp\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_ACTION_EDIT\",\r\n preActionValidation: (record) => {\r\n record.workflowDocumentId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_ACTION_DELETE\",\r\n }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default WorkflowDocumentActionGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport {\r\n FormActionProps,\r\n FormElementProps,\r\n} from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { UseFormReturn } from \"react-hook-form\";\r\n\r\ntype ValidationCritria = {\r\n isVisible: boolean;\r\n isMandatory: boolean;\r\n};\r\n\r\nexport type WidgetType =\r\n | \"LineChart\"\r\n | \"ColumnChart\"\r\n | \"PieChart\"\r\n | \"Card\"\r\n | \"CircularProgress\"\r\n | \"LinearProgress\";\r\n\r\ntype WidgetValidationOptions = {\r\n height: ValidationCritria;\r\n width: ValidationCritria;\r\n horizontalAxisField: ValidationCritria;\r\n horizontalAxisLabel: ValidationCritria;\r\n seriesKeys: ValidationCritria;\r\n verticalAxisField: ValidationCritria;\r\n verticalAxisLabel: ValidationCritria;\r\n};\r\n\r\ntype validationObjectType = {\r\n [key in WidgetType]: WidgetValidationOptions;\r\n};\r\n\r\nconst validationObject: validationObjectType = {\r\n LineChart: {\r\n height: { isMandatory: true, isVisible: true },\r\n width: { isMandatory: true, isVisible: true },\r\n horizontalAxisField: { isMandatory: true, isVisible: true },\r\n horizontalAxisLabel: { isMandatory: true, isVisible: true },\r\n seriesKeys: { isMandatory: false, isVisible: false },\r\n verticalAxisField: { isMandatory: true, isVisible: true },\r\n verticalAxisLabel: { isMandatory: true, isVisible: true },\r\n },\r\n ColumnChart: {\r\n height: { isMandatory: true, isVisible: true },\r\n width: { isMandatory: true, isVisible: true },\r\n horizontalAxisField: { isMandatory: true, isVisible: true },\r\n horizontalAxisLabel: { isMandatory: true, isVisible: true },\r\n seriesKeys: { isMandatory: false, isVisible: false },\r\n verticalAxisField: { isMandatory: true, isVisible: true },\r\n verticalAxisLabel: { isMandatory: true, isVisible: true },\r\n },\r\n PieChart: {\r\n height: { isMandatory: true, isVisible: true },\r\n width: { isMandatory: true, isVisible: true },\r\n horizontalAxisField: { isMandatory: true, isVisible: true },\r\n horizontalAxisLabel: { isMandatory: false, isVisible: false },\r\n seriesKeys: { isMandatory: false, isVisible: false },\r\n verticalAxisField: { isMandatory: true, isVisible: true },\r\n verticalAxisLabel: { isMandatory: false, isVisible: false },\r\n },\r\n Card: {\r\n height: { isMandatory: true, isVisible: true },\r\n width: { isMandatory: true, isVisible: true },\r\n horizontalAxisField: { isMandatory: true, isVisible: true },\r\n horizontalAxisLabel: { isMandatory: false, isVisible: false },\r\n seriesKeys: { isMandatory: false, isVisible: false },\r\n verticalAxisField: { isMandatory: true, isVisible: true },\r\n verticalAxisLabel: { isMandatory: false, isVisible: false },\r\n },\r\n CircularProgress: {\r\n height: { isMandatory: false, isVisible: false },\r\n width: { isMandatory: false, isVisible: false },\r\n horizontalAxisField: { isMandatory: false, isVisible: false },\r\n horizontalAxisLabel: { isMandatory: false, isVisible: false },\r\n seriesKeys: { isMandatory: false, isVisible: false },\r\n verticalAxisField: { isMandatory: false, isVisible: false },\r\n verticalAxisLabel: { isMandatory: false, isVisible: false },\r\n },\r\n LinearProgress: {\r\n height: { isMandatory: false, isVisible: false },\r\n width: { isMandatory: false, isVisible: false },\r\n horizontalAxisField: { isMandatory: false, isVisible: false },\r\n horizontalAxisLabel: { isMandatory: false, isVisible: false },\r\n seriesKeys: { isMandatory: false, isVisible: false },\r\n verticalAxisField: { isMandatory: false, isVisible: false },\r\n verticalAxisLabel: { isMandatory: false, isVisible: false },\r\n },\r\n};\r\n\r\nconst adjustFormAccordingToWidgetType = (\r\n value: any,\r\n formActions: FormActionProps,\r\n formManager: UseFormReturn\r\n) => {\r\n if (value && validationObject[value]) {\r\n const validationObjects: WidgetValidationOptions = validationObject[value];\r\n const fields = Object.keys(validationObjects);\r\n for (const field of fields) {\r\n const validationCritria: ValidationCritria = validationObjects[field];\r\n if (validationCritria.isVisible) {\r\n formActions.showField(field);\r\n } else {\r\n formActions.hideField(field);\r\n formManager.setValue(field, null);\r\n }\r\n }\r\n } else {\r\n formActions.hideField(\"height\");\r\n formManager.setValue(\"height\", null);\r\n formActions.hideField(\"width\");\r\n formManager.setValue(\"width\", null);\r\n formActions.hideField(\"horizontalAxisField\");\r\n formManager.setValue(\"horizontalAxisField\", null);\r\n formActions.hideField(\"horizontalAxisLabel\");\r\n formManager.setValue(\"horizontalAxisLabel\", null);\r\n formActions.hideField(\"seriesKeys\");\r\n formManager.setValue(\"seriesKeys\", null);\r\n formActions.hideField(\"verticalAxisField\");\r\n formManager.setValue(\"verticalAxisField\", null);\r\n formActions.hideField(\"verticalAxisLabel\");\r\n formManager.setValue(\"verticalAxisLabel\", null);\r\n }\r\n};\r\n\r\nconst WidgetGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const SystemDataQueries = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataQueries.data\r\n );\r\n const SystemWidgetTypes = useSelector(\r\n (state: any) => state.commonStores.stores.SystemWidgetTypes.data\r\n );\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n commonStoreKey: \"SystemWidgets\",\r\n deleteById: \"api/v1/dev/widget\",\r\n save: \"api/v1/dev/widget\",\r\n findById: \"api/v1/dev/widget\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_WIDGET_TYPE\",\r\n fieldName: \"widgetType\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemWidgetTypes,\r\n optionDisplayField: \"name\",\r\n optionValueField: \"name\",\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n adjustFormAccordingToWidgetType(value, formActions, formManager);\r\n },\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Query\",\r\n fieldName: \"dataQueryId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionDisplayField: \"queryName\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_WIDGET_NAME\",\r\n fieldName: \"widgetName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_ICON\",\r\n fieldName: \"icon\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_TITLE\",\r\n fieldName: \"title\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_WIDGET_DESCRIPTION\",\r\n fieldName: \"widgetDescription\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_HEIGHT\",\r\n fieldName: \"height\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_WIDTH\",\r\n fieldName: \"width\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: [\r\n { value: 1 },\r\n { value: 2 },\r\n { value: 3 },\r\n { value: 4 },\r\n { value: 5 },\r\n { value: 6 },\r\n { value: 7 },\r\n { value: 8 },\r\n { value: 9 },\r\n { value: 10 },\r\n { value: 11 },\r\n { value: 12 },\r\n ],\r\n optionDisplayField: \"value\",\r\n optionValueField: \"value\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"group\",\r\n props: {\r\n style: { padding: 1, border: \"1px solid black\", width: \"100%\" },\r\n label: \"Data Specs\",\r\n elements: [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_HORIZONTAL_AXIS_FIELD\",\r\n fieldName: \"horizontalAxisField\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_HORIZONTAL_AXIS_LABEL\",\r\n fieldName: \"horizontalAxisLabel\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_SERIES_KEYS\",\r\n fieldName: \"seriesKeys\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_VERTICAL_AXIS_FIELD\",\r\n fieldName: \"verticalAxisField\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WIDGET_VERTICAL_AXIS_LABEL\",\r\n fieldName: \"verticalAxisLabel\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n ],\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: { modalIcon: \"chart-pie\", modalTitle: \"Widget\" },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"WIDGET_PLURAL\")}\r\n girdIcon=\"chart-pie\"\r\n editAction={{ isEnabled: true, authority: \"WIDGET_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"WIDGET_DELETE\" }}\r\n formLoadCallBk={(\r\n formActions: FormActionProps,\r\n formManager: UseFormReturn,\r\n record: any\r\n ) => {\r\n adjustFormAccordingToWidgetType(\r\n record.widgetType,\r\n formActions,\r\n formManager\r\n );\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default WidgetGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\ntype DashboardWidgetGridProps = {\r\n selectedRecord: any;\r\n};\r\n\r\nconst DashboardWidgetGrid: React.FC<DashboardWidgetGridProps> = (props) => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const SystemWidgets = useSelector(\r\n (state: any) => state.commonStores.stores.SystemWidgets.data\r\n );\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/dashboardwidget/all\",\r\n deleteById: \"api/v1/dev/dashboardwidget\",\r\n save: \"api/v1/dev/dashboardwidget\",\r\n findById: \"api/v1/dev/dashboardwidget\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DASHBOARD_WIDGET_DASHBOARD_ID\",\r\n fieldName: \"dashboardId\",\r\n required: false,\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DASHBOARD_WIDGET_WIDGET_ID\",\r\n fieldName: \"widgetId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemWidgets,\r\n optionValueField: \"id\",\r\n optionDisplayField: \"widgetName\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DASHBOARD_WIDGET_WIDGET_ORDER\",\r\n fieldName: \"widgetOrder\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DASHBOARD_WIDGET_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n hideInfoBar={true}\r\n formElements={formElements}\r\n gridLoadParametersValues={{ dashboardId: props.selectedRecord.id }}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"DASHBOARD_WIDGET_PLURAL\")}\r\n girdIcon=\"table-cells\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"DASHBOARD_WIDGET_EDIT\",\r\n preActionValidation: async (data) => {\r\n data.dashboardId = props.selectedRecord.id;\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"DASHBOARD_WIDGET_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default DashboardWidgetGrid;\r\n","import Home from \"../components/common/Home\";\r\nimport { ADMINISTRATION_ROUTES } from \"./administration\";\r\nimport { SystemRoute } from \"./types\";\r\n\r\nexport const SYSTEM_ROUTES: Array<SystemRoute> = [\r\n {\r\n path: \"/\",\r\n component: Home,\r\n },\r\n ...ADMINISTRATION_ROUTES,\r\n];\r\n","import { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { Box } from \"@mui/material\";\r\nimport { TemplateForm } from \"../templates\";\r\nimport ReportViewer from \"../templates/report/ReportViewer\";\r\nimport WorkflowDocumentPanel from \"../templates/workflow/WorkflowDocumentPanel\";\r\nimport ExampleDashboard from \"../templates/visuals/ExampleDashboard\";\r\nimport DashboardViewer from \"../templates/visuals/DashboardViewer\";\r\n\r\nconst Home: React.FC = () => {\r\n return (\r\n <DashboardViewer dashboardCode=\"XX_TEMPLATE_DASHBOARD\" />\r\n // <Box\r\n // sx={{\r\n // display: \"flex\",\r\n // flexDirection: \"column\",\r\n // alignItems: \"center\",\r\n // justifyContent: \"center\",\r\n // flex: 1,\r\n // fontSize: 24,\r\n // fontWeight: \"bold\",\r\n // }}\r\n // >\r\n // <img src=\"logo.png\" style={{ margin: 5 }} />\r\n // <div>Welcome to Ezzsteel Flat Product Management System</div>\r\n // <div style={{ fontSize: 16 }}>\r\n // Use side menu [\r\n // <FontAwesomeIcon\r\n // icon=\"bars\"\r\n // style={{ marginLeft: 10, marginRight: 10 }}\r\n // />\r\n // ] to navigate to your authorized system modules\r\n // </div>\r\n // </Box>\r\n );\r\n};\r\n\r\nexport default Home;\r\n","import { SystemRoute } from \"../types\";\r\nimport { adminRoutes } from \"./adminRoutes\";\r\nimport { devRoutes } from \"./devRoutes\";\r\n\r\nexport const ADMINISTRATION_ROUTES: Array<SystemRoute> = [\r\n ...adminRoutes,\r\n ...devRoutes,\r\n];\r\n","import { SystemRoute } from \"../types\";\r\nimport OrganizationGrid from \"../../components/administration/admin/OrganizationGrid\";\r\nimport OrganizationMemberGrid from \"../../components/administration/admin/OrganizationMemberGrid\";\r\nimport OrganizationMemberRoleGrid from \"../../components/administration/admin/OrganizationMemberRoleGrid\";\r\nimport OrganizationRankGrid from \"../../components/administration/admin/OrganizationRankGrid\";\r\nimport OrganizationUnitGrid from \"../../components/administration/admin/OrganizationUnitGrid\";\r\nimport OrganizationUnitTypeGrid from \"../../components/administration/admin/OrganizationUnitTypeGrid\";\r\nimport PersonGrid from \"../../components/administration/admin/PersonGrid\";\r\nimport SystemApplicationGrid from \"../../components/administration/admin/SystemApplicationGrid\";\r\nimport SystemApplicationAuthorityGrid from \"../../components/administration/admin/SystemApplicationAuthorityGrid\";\r\nimport SystemApplicationModuleGrid from \"../../components/administration/admin/SystemApplicationModuleGrid\";\r\nimport SystemApplicationRoleGrid from \"../../components/administration/admin/SystemApplicationRoleGrid\";\r\nimport SystemApplicationRoleAuthorityGrid from \"../../components/administration/admin/SystemApplicationRoleAuthorityGrid\";\r\nexport const adminRoutes: Array<SystemRoute> = [\r\n {\r\n path: \"admin/organizations\",\r\n component: OrganizationGrid,\r\n authority: \"ORGANIZATION_VIEW\",\r\n },\r\n {\r\n path: \"admin/organizationmembers\",\r\n component: OrganizationMemberGrid,\r\n authority: \"ORGANIZATION_MEMBER_VIEW\",\r\n },\r\n {\r\n path: \"admin/organizationmemberroles\",\r\n component: OrganizationMemberRoleGrid,\r\n authority: \"ORGANIZATION_MEMBER_ROLE_VIEW\",\r\n },\r\n {\r\n path: \"admin/organizationranks\",\r\n component: OrganizationRankGrid,\r\n authority: \"ORGANIZATION_RANK_VIEW\",\r\n },\r\n {\r\n path: \"admin/organizationunits\",\r\n component: OrganizationUnitGrid,\r\n authority: \"ORGANIZATION_UNIT_VIEW\",\r\n },\r\n {\r\n path: \"admin/organizationunittypes\",\r\n component: OrganizationUnitTypeGrid,\r\n authority: \"ORGANIZATION_UNIT_TYPE_VIEW\",\r\n },\r\n {\r\n path: \"admin/persons\",\r\n component: PersonGrid,\r\n authority: \"PERSON_VIEW\",\r\n },\r\n {\r\n path: \"admin/systemapplications\",\r\n component: SystemApplicationGrid,\r\n authority: \"SYSTEM_APPLICATION_VIEW\",\r\n },\r\n {\r\n path: \"admin/systemapplicationauthorities\",\r\n component: SystemApplicationAuthorityGrid,\r\n authority: \"SYSTEM_APPLICATION_AUTHORITY_VIEW\",\r\n },\r\n {\r\n path: \"admin/systemapplicationmodules\",\r\n component: SystemApplicationModuleGrid,\r\n authority: \"SYSTEM_APPLICATION_MODULE_VIEW\",\r\n },\r\n {\r\n path: \"admin/systemapplicationroles\",\r\n component: SystemApplicationRoleGrid,\r\n authority: \"SYSTEM_APPLICATION_ROLE_VIEW\",\r\n },\r\n {\r\n path: \"admin/systemapplicationroleauthorities\",\r\n component: SystemApplicationRoleAuthorityGrid,\r\n authority: \"SYSTEM_APPLICATION_ROLE_AUTHORITY_VIEW\",\r\n },\r\n];\r\n\r\n// import { adminRoutes } from \"./adminRoutes\";\r\n// [...adminRoutes]\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport OrganizationApplicationModuleGrid from \"./OrganizationApplicationModuleGrid\";\r\nimport OrganizationUnitTypeGrid from \"./OrganizationUnitTypeGrid\";\r\nimport OrganizationUnitGrid from \"./OrganizationUnitGrid\";\r\nimport OrganizationRankGrid from \"./OrganizationRankGrid\";\r\n\r\nconst OrganizationGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/organization/all\",\r\n deleteById: \"api/v1/admin/organization\",\r\n save: \"api/v1/admin/organization\",\r\n findById: \"api/v1/admin/organization\",\r\n setData: setData,\r\n });\r\n const {\r\n Window: ApplicationModulesWindow,\r\n setWindowState: setApplicationWindowState,\r\n } = useWindow({\r\n windowTitle: \"Organization Subscriped Application Modules\",\r\n windowIcon: \"layer-group\",\r\n });\r\n const {\r\n Window: OrgUnitTypesWindow,\r\n setWindowState: setOrgUnitTypesWindowState,\r\n } = useWindow({\r\n windowTitle: \"Organization Unit Types\",\r\n windowIcon: \"tags\",\r\n });\r\n const { Window: OrgUnitsWindow, setWindowState: setOrgUnitsWindowState } =\r\n useWindow({\r\n windowTitle: \"Organization Units\",\r\n windowIcon: \"folder-tree\",\r\n });\r\n const { Window: OrgRanksWindow, setWindowState: setOrgRanksWindowState } =\r\n useWindow({\r\n windowTitle: \"Organization Ranks\",\r\n windowIcon: \"street-view\",\r\n });\r\n const [selectedRecord, setSelectedRecord] = useState<any>(null);\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_ORGANIZATION_CODE\",\r\n fieldName: \"organizationCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_ORGANIZATION_AR_NAME\",\r\n fieldName: \"organizationArName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_ORGANIZATION_EN_NAME\",\r\n fieldName: \"organizationEnName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ORGANIZATION_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type:'field',\r\n mode:'props',\r\n props:{\r\n fieldLabel:'Status',\r\n fieldName:'status',\r\n fieldType:'lookup',\r\n lookupType:'STATUS'\r\n }\r\n }\r\n ];\r\n\r\n return (\r\n <>\r\n <ApplicationModulesWindow>\r\n <OrganizationApplicationModuleGrid\r\n selectedOrganization={selectedRecord}\r\n />\r\n </ApplicationModulesWindow>\r\n <OrgUnitTypesWindow>\r\n <OrganizationUnitTypeGrid selectedOrganization={selectedRecord} />\r\n </OrgUnitTypesWindow>\r\n <OrgUnitsWindow>\r\n <OrganizationUnitGrid selectedOrganization={selectedRecord} />\r\n </OrgUnitsWindow>\r\n <OrgRanksWindow>\r\n <OrganizationRankGrid selectedOrganization={selectedRecord} />\r\n </OrgRanksWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n rowActions={[\r\n {\r\n icon: \"layer-group\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setApplicationWindowState(true);\r\n },\r\n label: \"modules\",\r\n },\r\n {\r\n icon: \"tags\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setOrgUnitTypesWindowState(true);\r\n },\r\n label: \"Organization Unit Types\",\r\n },\r\n {\r\n icon: \"folder-tree\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setOrgUnitsWindowState(true);\r\n },\r\n label: \"Organization Units\",\r\n },\r\n {\r\n icon: \"street-view\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setOrgRanksWindowState(true);\r\n },\r\n label: \"Organization Ranks\",\r\n },\r\n ]}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"ORGANIZATION_PLURAL\"\r\n girdIcon=\"globe\"\r\n editAction={{ isEnabled: true, authority: \"ORGANIZATION_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"ORGANIZATION_DELETE\" }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default OrganizationGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport {useApiActions} from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nconst OrganizationMemberRoleGrid: React.FC = () => {\r\n\tconst { t } = useTranslation();\r\n\tconst [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n \tfindAll: \"api/v1/admin/organizationmemberrole/all\",\r\n \tdeleteById: \"api/v1/admin/organizationmemberrole\",\r\n \tsave: \"api/v1/admin/organizationmemberrole\",\r\n\t\tfindById: \"api/v1/admin/organizationmemberrole\",\r\n \tsetData: setData,\r\n \t});\r\n\t\r\n\tconst formElements: Array<FormElementProps> = [\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n \t\t\t\ttype: \"field\",\r\n \t\t\t\tmode: \"props\",\r\n \t\t\t\tprops: {\r\n \t\t\t\tfieldLabel: \"ORGANIZATION_MEMBER_ROLE_IS_ACTIVE\",\r\n \t\t\t\tfieldName: \"isActive\",\r\n \t\t\t\trequired: false,\r\n \t\t\t\tfieldType: \"checkbox\",\r\n \t\t\t\t},\r\n \t\t\t},\r\n\t\t\t\t\t \t\t\t \t\t\t \t\t\t \t\t\t\t\t\t\t\t\t\t{\r\n \t\t\t\ttype: \"field\",\r\n \t\t\t\tmode: \"props\",\r\n \t\t\t\tprops: {\r\n \t\t\t\tfieldLabel: \"ORGANIZATION_MEMBER_ROLE_END_DATE\",\r\n \t\t\t\tfieldName: \"endDate\",\r\n \t\t\t\trequired: false,\r\n \t\t\t\tfieldType: \"datetime\",\r\n \t\t\t\t},\r\n \t\t\t},\r\n\t\t\t\t\t \t\t\t \t\t\t \t\t\t\t\t\t \t\t\t{\r\n \t\t\t\ttype: \"field\",\r\n \t\t\t\tmode: \"props\",\r\n \t\t\t\tprops: {\r\n \t\t\t\tfieldLabel: \"ORGANIZATION_MEMBER_ROLE_ORGANIZATION_MEMBER_ID\",\r\n \t\t\t\tfieldName: \"organizationMemberId\",\r\n \t\t\t\trequired: true,\r\n \t\t\t\tfieldType: \"text\",\r\n \t\t\t\t},\r\n \t\t\t},\t\t\t\r\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t{\r\n \t\t\t\ttype: \"field\",\r\n \t\t\t\tmode: \"props\",\r\n \t\t\t\tprops: {\r\n \t\t\t\tfieldLabel: \"ORGANIZATION_MEMBER_ROLE_START_DATE\",\r\n \t\t\t\tfieldName: \"startDate\",\r\n \t\t\t\trequired: false,\r\n \t\t\t\tfieldType: \"datetime\",\r\n \t\t\t\t},\r\n \t\t\t},\r\n\t\t\t\t\t \t\t\t\t\t\t \t\t\t{\r\n \t\t\t\ttype: \"field\",\r\n \t\t\t\tmode: \"props\",\r\n \t\t\t\tprops: {\r\n \t\t\t\tfieldLabel: \"ORGANIZATION_MEMBER_ROLE_SYSTEM_APPLICATION_ROLE_ID\",\r\n \t\t\t\tfieldName: \"systemApplicationRoleId\",\r\n \t\t\t\trequired: true,\r\n \t\t\t\tfieldType: \"text\",\r\n \t\t\t\t},\r\n \t\t\t},\t\t\t\r\n\t\t\t\t\t \t\t\t \t\t\t \t\t\t \t\t];\r\n\r\n\treturn (\r\n \t<TemplateGrid\r\n \t\tapiActions={apiActions}\r\n \t\tdata={data}\r\n \t\tsetData={setData}\r\n \t\teditMode={{ editMode: \"row\"}}\r\n \t\tformElements={formElements}\r\n\t\t\tkeyColumnName={\"id\"}\r\n \t\tgridTitle=\"ORGANIZATION_MEMBER_ROLE_PLURAL\"\r\n \t\tgirdIcon=\"table-cells\"\r\n \t\teditAction={{ isEnabled: true, authority: \"ORGANIZATION_MEMBER_ROLE_EDIT\" }}\r\n \t\tdeleteAction={{ isEnabled: true, authority: \"ORGANIZATION_MEMBER_ROLE_DELETE\" }}\r\n \t/>\r\n );\r\n};\r\n\r\nexport default OrganizationMemberRoleGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { toast } from \"react-toastify\";\r\nimport OrganizationMemberGrid from \"./OrganizationMemberGrid\";\r\n\r\nconst PersonGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [selectedPerson, setSelectedPerson] = useState<any>(null);\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/person/all\",\r\n deleteById: \"api/v1/admin/person\",\r\n save: \"api/v1/admin/person\",\r\n findById: \"api/v1/admin/person\",\r\n setData: setData,\r\n });\r\n const {\r\n Window: OrganizationMembersWindow,\r\n setWindowState: setOrganizationMemberWindowState,\r\n } = useWindow({\r\n windowTitle: \"Organizations Membership\",\r\n windowIcon: \"globe\",\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n hidden: true,\r\n fieldLabel: \"Ref Source\",\r\n fieldName: \"refSource\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n hidden: true,\r\n fieldLabel: \"PERSON_EMPLOYEE_NUMBER\",\r\n fieldName: \"refSyncNumber\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"PERSON_EMPLOYEE_AR_NAME\",\r\n fieldName: \"employeeArName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"PERSON_EMPLOYEE_EN_NAME\",\r\n fieldName: \"employeeEnName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"PERSON_EMAIL\",\r\n fieldName: \"email\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"PERSON_MOBILE_NUMBER\",\r\n fieldName: \"mobileNumber\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n hidden: true,\r\n gridProps: { hidden: true },\r\n fieldLabel: \"PERSON_PASSWORD\",\r\n fieldName: \"password\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"PERSON_USERNAME\",\r\n fieldName: \"username\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"PERSON_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <OrganizationMembersWindow>\r\n <OrganizationMemberGrid selectedPerson={selectedPerson} />\r\n </OrganizationMembersWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalIcon: \"user\",\r\n modalTitle: \"Person Profile\",\r\n modalWidth: 300,\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"PERSON_PLURAL\"\r\n rowActions={[\r\n {\r\n icon: \"globe\",\r\n label: \"User Organizations\",\r\n actionFn: async (data) => {\r\n setSelectedPerson(data);\r\n setOrganizationMemberWindowState(true);\r\n },\r\n },\r\n ]}\r\n girdIcon=\"users\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"PERSON_EDIT\",\r\n preActionValidation: (data) => {\r\n if (\r\n data.refSource != undefined &&\r\n data.refSource != null &&\r\n data.refSource != \"\"\r\n ) {\r\n toast.error(\r\n \"This Person Was synced from other system therefore you can't modify this record\"\r\n );\r\n return false;\r\n }\r\n return true;\r\n },\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"PERSON_DELETE\",\r\n preActionValidation: (data) => {\r\n if (\r\n data.refSource != undefined &&\r\n data.refSource != null &&\r\n data.refSource != \"\"\r\n ) {\r\n toast.error(\r\n \"This Person Was synced from other system therefore you can't modify this record\"\r\n );\r\n return false;\r\n }\r\n return true;\r\n },\r\n }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default PersonGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport SystemApplicationModuleGrid from \"./SystemApplicationModuleGrid\";\r\nimport SystemApplicationAuthorityGrid from \"./SystemApplicationAuthorityGrid\";\r\nimport SystemApplicationRoleGrid from \"./SystemApplicationRoleGrid\";\r\nimport LookupGrid from \"../dev/LookupGrid\";\r\n\r\nconst SystemApplicationGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/admin/systemapplication/all\",\r\n deleteById: \"api/v1/admin/systemapplication\",\r\n save: \"api/v1/admin/systemapplication\",\r\n findById: \"api/v1/admin/systemapplication\",\r\n setData: setData,\r\n });\r\n const {\r\n Window: ApplicationModulesWindow,\r\n setWindowState: setApplicationModulesWindowState,\r\n } = useWindow({\r\n windowTitle: \"System Application Modules\",\r\n windowIcon: \"layer-group\",\r\n });\r\n const {\r\n Window: ApplicationAuthoritiessWindow,\r\n setWindowState: setApplicationAuthoritiesWindowState,\r\n } = useWindow({\r\n windowTitle: \"System Application Authorities\",\r\n windowIcon: \"key\",\r\n });\r\n const {\r\n Window: ApplicationRolesWindow,\r\n setWindowState: setApplicationRolesWindowState,\r\n } = useWindow({\r\n windowTitle: \"System Application Roles\",\r\n windowIcon: \"tag\",\r\n });\r\n const {\r\n Window: ApplicationLookupsWindow,\r\n setWindowState: setApplicationLookupsWindowState,\r\n } = useWindow({\r\n windowTitle: \"System Application Lookups\",\r\n windowIcon: \"list-check\",\r\n });\r\n const [selectedRecord, setSelectedRecord] = useState<any>(null);\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_APPLICATION_CODE\",\r\n fieldName: \"applicationCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_APPLICATION_NAME\",\r\n fieldName: \"applicationName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_APPLICATION_DESCRIPTION\",\r\n fieldName: \"applicationDescription\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"SYSTEM_APPLICATION_IS_ACTIVE\",\r\n fieldName: \"isActive\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <ApplicationModulesWindow>\r\n <SystemApplicationModuleGrid selectedApplication={selectedRecord} />\r\n </ApplicationModulesWindow>\r\n <ApplicationAuthoritiessWindow>\r\n <SystemApplicationAuthorityGrid selectedApplication={selectedRecord} />\r\n </ApplicationAuthoritiessWindow>\r\n <ApplicationRolesWindow>\r\n <SystemApplicationRoleGrid selectedApplication={selectedRecord} />\r\n </ApplicationRolesWindow>\r\n <ApplicationLookupsWindow>\r\n <LookupGrid selectedApplication={selectedRecord} />\r\n </ApplicationLookupsWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n rowActions={[\r\n {\r\n icon: \"layer-group\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setApplicationModulesWindowState(true);\r\n },\r\n label: \"modules\",\r\n },\r\n {\r\n icon: \"key\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setApplicationAuthoritiesWindowState(true);\r\n },\r\n label: \"Authorities\",\r\n },\r\n {\r\n icon: \"tag\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setApplicationRolesWindowState(true);\r\n },\r\n label: \"Roles\",\r\n },\r\n {\r\n icon: \"list-check\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setApplicationLookupsWindowState(true);\r\n },\r\n label: \"Lookups\",\r\n },\r\n ]}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle=\"SYSTEM_APPLICATION_PLURAL\"\r\n girdIcon=\"window-restore\"\r\n editAction={{ isEnabled: true, authority: \"SYSTEM_APPLICATION_EDIT\" }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"SYSTEM_APPLICATION_DELETE\",\r\n }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default SystemApplicationGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport {useApiActions} from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nconst SystemApplicationRoleAuthorityGrid: React.FC = () => {\r\n\tconst { t } = useTranslation();\r\n\tconst [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n \tfindAll: \"api/v1/admin/systemapplicationroleauthority/all\",\r\n \tdeleteById: \"api/v1/admin/systemapplicationroleauthority\",\r\n \tsave: \"api/v1/admin/systemapplicationroleauthority\",\r\n\t\tfindById: \"api/v1/admin/systemapplicationroleauthority\",\r\n \tsetData: setData,\r\n \t});\r\n\t\r\n\tconst formElements: Array<FormElementProps> = [\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n \t\t\t\ttype: \"field\",\r\n \t\t\t\tmode: \"props\",\r\n \t\t\t\tprops: {\r\n \t\t\t\tfieldLabel: \"SYSTEM_APPLICATION_ROLE_AUTHORITY_IS_ACTIVE\",\r\n \t\t\t\tfieldName: \"isActive\",\r\n \t\t\t\trequired: false,\r\n \t\t\t\tfieldType: \"checkbox\",\r\n \t\t\t\t},\r\n \t\t\t},\r\n\t\t\t\t\t \t\t\t \t\t\t \t\t\t \t\t\t \t\t\t \t\t\t\t\t\t \t\t\t{\r\n \t\t\t\ttype: \"field\",\r\n \t\t\t\tmode: \"props\",\r\n \t\t\t\tprops: {\r\n \t\t\t\tfieldLabel: \"SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_AUTHORITY_ID\",\r\n \t\t\t\tfieldName: \"systemApplicationAuthorityId\",\r\n \t\t\t\trequired: true,\r\n \t\t\t\tfieldType: \"text\",\r\n \t\t\t\t},\r\n \t\t\t},\t\t\t\r\n\t\t\t\t\t \t\t\t\t\t\t \t\t\t{\r\n \t\t\t\ttype: \"field\",\r\n \t\t\t\tmode: \"props\",\r\n \t\t\t\tprops: {\r\n \t\t\t\tfieldLabel: \"SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_ROLE_ID\",\r\n \t\t\t\tfieldName: \"systemApplicationRoleId\",\r\n \t\t\t\trequired: true,\r\n \t\t\t\tfieldType: \"text\",\r\n \t\t\t\t},\r\n \t\t\t},\t\t\t\r\n\t\t\t\t\t \t\t\t \t\t\t \t\t\t \t\t];\r\n\r\n\treturn (\r\n \t<TemplateGrid\r\n \t\tapiActions={apiActions}\r\n \t\tdata={data}\r\n \t\tsetData={setData}\r\n \t\teditMode={{ editMode: \"row\"}}\r\n \t\tformElements={formElements}\r\n\t\t\tkeyColumnName={\"id\"}\r\n \t\tgridTitle=\"SYSTEM_APPLICATION_ROLE_AUTHORITY_PLURAL\"\r\n \t\tgirdIcon=\"table-cells\"\r\n \t\teditAction={{ isEnabled: true, authority: \"SYSTEM_APPLICATION_ROLE_AUTHORITY_EDIT\" }}\r\n \t\tdeleteAction={{ isEnabled: true, authority: \"SYSTEM_APPLICATION_ROLE_AUTHORITY_DELETE\" }}\r\n \t/>\r\n );\r\n};\r\n\r\nexport default SystemApplicationRoleAuthorityGrid;\r\n","import { SystemRoute } from \"../types\";\r\nimport BluePrintGrid from \"../../components/administration/dev/BluePrintGrid\";\r\nimport DataQueryGrid from \"../../components/administration/dev/DataQueryGrid\";\r\nimport DatasourceConnectionGrid from \"../../components/administration/dev/DatasourceConnectionGrid\";\r\nimport EntityParameterGrid from \"../../components/administration/dev/EntityParameterGrid\";\r\n\r\nimport LookupGrid from \"../../components/administration/dev/LookupGrid\";\r\n\r\nimport ReportGrid from \"../../components/administration/dev/ReportGrid\";\r\nimport MailTemplateGrid from \"../../components/administration/dev/MailTemplateGrid\";\r\nimport MailSenderConfigGrid from \"../../components/administration/dev/MailSenderConfigGrid\";\r\nimport WorkflowDocumentGrid from \"../../components/administration/dev/WorkflowDocumentGrid\";\r\nimport WidgetGrid from \"../../components/administration/dev/WidgetGrid\";\r\nimport DashboardGrid from \"../../components/administration/dev/DashboardGrid\";\r\nimport DashboardRouteView from \"../../components/templates/visuals/DashboardRouteView\";\r\nimport WorkflowDocumentMailLogGrid from \"../../components/administration/dev/WorkflowDocumentMailLogGrid\";\r\nimport MailNotificationQueueGrid from \"../../components/administration/dev/MailNotificationQueueGrid\";\r\n\r\nexport const devRoutes: Array<SystemRoute> = [\r\n {\r\n path: \"dev/blueprints\",\r\n component: BluePrintGrid,\r\n authority: \"BLUE_PRINT_VIEW\",\r\n },\r\n {\r\n path: \"dev/dataqueries\",\r\n component: DataQueryGrid,\r\n authority: \"DATA_QUERY_VIEW\",\r\n },\r\n {\r\n path: \"dev/datasourceconnections\",\r\n component: DatasourceConnectionGrid,\r\n authority: \"DATASOURCE_CONNECTION_VIEW\",\r\n },\r\n {\r\n path: \"dev/entityparameters\",\r\n component: EntityParameterGrid,\r\n authority: \"ENTITY_PARAMETER_VIEW\",\r\n },\r\n {\r\n path: \"dev/lookups\",\r\n component: LookupGrid,\r\n authority: \"LOOKUP_VIEW\",\r\n },\r\n {\r\n path: \"dev/reports\",\r\n component: ReportGrid,\r\n authority: \"REPORT_VIEW\",\r\n },\r\n {\r\n path: \"dev/mailtemplates\",\r\n component: MailTemplateGrid,\r\n authority: \"MAILTEMPLATE_VIEW\",\r\n },\r\n {\r\n path: \"dev/mailsender/config\",\r\n component: MailSenderConfigGrid,\r\n authority: \"MAILTEMPLATE_VIEW\",\r\n },\r\n {\r\n path: \"dev/workflowdocuments\",\r\n component: WorkflowDocumentGrid,\r\n authority: \"WORKFLOW_DOCUMENT_VIEW\",\r\n },\r\n {\r\n path: \"dev/widgets\",\r\n component: WidgetGrid,\r\n authority: \"WIDGET_VIEW\",\r\n },\r\n {\r\n path: \"dev/dashboards\",\r\n component: DashboardGrid,\r\n authority: \"DASHBOARD_VIEW\",\r\n },\r\n {\r\n path: \"dashboard/:dashboardCode\",\r\n component: DashboardRouteView,\r\n },\r\n {\r\n path: \"dev/workflowdocumentmaillogs\",\r\n component: WorkflowDocumentMailLogGrid,\r\n },\r\n {\r\n path: \"dev/mailnotificationqueues\",\r\n component: MailNotificationQueueGrid,\r\n },\r\n];\r\n\r\n// import { devRoutes } from \"./devRoutes\";\r\n// [...devRoutes]\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\nconst BluePrintGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const SystemDataQueries = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataQueries.data\r\n );\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n commonStoreKey: \"SystemBluePrints\",\r\n deleteById: \"api/v1/dev/blueprint\",\r\n save: \"api/v1/dev/blueprint\",\r\n findById: \"api/v1/dev/blueprint\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"BLUE_PRINT_BLUE_PRINT_CODE\",\r\n fieldName: \"bluePrintCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"BLUE_PRINT_QUERY_ID\",\r\n fieldName: \"queryId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionDisplayField: \"queryName\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"row\", reloadAfterSave: true }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"BLUE_PRINT_PLURAL\")}\r\n girdIcon=\"table-cells\"\r\n editAction={{ isEnabled: true, authority: \"BLUE_PRINT_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"BLUE_PRINT_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default BluePrintGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useSelector } from \"react-redux\";\r\nimport DataQueryParametersForm from \"./DataQueryParametersForm\";\r\nimport DataQueryParameterGrid from \"./DataQueryParameterGrid\";\r\n\r\nconst DataQueryGrid: React.FC = () => {\r\n const [selectedRecord, setSelectedRecord] = useState<any>(null);\r\n const {\r\n Window: DataQueryParameterWindow,\r\n setWindowState: setDataQueryParameterWindow,\r\n } = useWindow({\r\n width: \"50%\",\r\n windowTitle: \"Data query parameters\",\r\n windowIcon: \"p\",\r\n });\r\n const SystemDataSources = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataSources.data\r\n );\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n commonStoreKey: \"SystemDataQueries\",\r\n deleteById: \"api/v1/dev/dataquery\",\r\n save: \"api/v1/dev/dataquery\",\r\n findById: \"api/v1/dev/dataquery\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_QUERY_NAME\",\r\n fieldName: \"queryName\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_USE_SYS_CON\",\r\n fieldName: \"useSysCon\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n if (value) {\r\n formActions.hideField(\"datasourceConId\");\r\n formManager.setValue(\"datasourceConId\", null);\r\n } else {\r\n formActions.showField(\"datasourceConId\");\r\n }\r\n },\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_DATASOURCE_CON_ID\",\r\n fieldName: \"datasourceConId\",\r\n required: false,\r\n options: SystemDataSources,\r\n optionDisplayField: \"connectionName\",\r\n optionValueField: \"id\",\r\n fieldType: \"combobox\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATA_QUERY_QUERY_STR\",\r\n fieldName: \"queryStr\",\r\n formProps: { fieldHeight: 400 },\r\n gridProps: {\r\n hidden: true,\r\n },\r\n muiTextFieldProps: {\r\n multiline: true,\r\n rows: 4,\r\n },\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <DataQueryParameterWindow>\r\n <DataQueryParameterGrid selectedRecord={selectedRecord} />\r\n </DataQueryParameterWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n rowActions={[\r\n {\r\n label: \"Query Parameters\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setDataQueryParameterWindow(true);\r\n },\r\n icon: \"p\",\r\n },\r\n ]}\r\n data={data}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalTitle: \"System Query\",\r\n modalWidth: 600,\r\n modalIcon: \"file-code\",\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"DATA_QUERY_PLURAL\")}\r\n girdIcon=\"table-cells\"\r\n editAction={{ isEnabled: true, authority: \"DATA_QUERY_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"DATA_QUERY_DELETE\" }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default DataQueryGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions, useAxios } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { toast } from \"react-toastify\";\r\n\r\nconst DatasourceConnectionGrid: React.FC = () => {\r\n const { handleGetRequest } = useAxios();\r\n const SystemDataSourceType = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataSourceType.data\r\n );\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n deleteById: \"api/v1/dev/datasourceconnection\",\r\n save: \"api/v1/dev/datasourceconnection\",\r\n findById: \"api/v1/dev/datasourceconnection\",\r\n setData: setData,\r\n commonStoreKey: \"SystemDataSources\",\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ID\",\r\n fieldName: \"id\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATASOURCE_CONNECTION_CONNECTION_NAME\",\r\n fieldName: \"connectionName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATASOURCE_CONNECTION_DATASOURCE_TYPE\",\r\n fieldName: \"datasourceType\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemDataSourceType,\r\n optionValueField: \"value\",\r\n optionDisplayField: \"value\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATASOURCE_CONNECTION_DATASOURCE_URL\",\r\n fieldName: \"datasourceUrl\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATASOURCE_CONNECTION_DATASOURCE_USERNAME\",\r\n fieldName: \"datasourceUsername\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATASOURCE_CONNECTION_DATASOURCE_PASSWORD\",\r\n fieldName: \"datasourcePassword\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DATASOURCE_CONNECTION_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalTitle: \"Datasource Connection\",\r\n modalIcon: \"plug\",\r\n modalWidth: 300,\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"DATASOURCE_CONNECTION_PLURAL\")}\r\n girdIcon=\"plug\"\r\n rowActions={[\r\n {\r\n icon: \"plug\",\r\n label: \"test connection\",\r\n actionFn: async (data) => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/dev/datasourceConnection/test\",\r\n showMask: true,\r\n parameters: {\r\n id: data.id,\r\n },\r\n // loadingMessage: \"checking datasource connectivity\",\r\n successCallBkFn: (response: any) => {\r\n toast.success(response.data);\r\n },\r\n });\r\n },\r\n },\r\n ]}\r\n editAction={{ isEnabled: true, authority: \"DATASOURCE_CONNECTION_EDIT\" }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"DATASOURCE_CONNECTION_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default DatasourceConnectionGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { DATE_FORMAT, DATE_TIME_FORMAT } from \"../../../util\";\r\n\r\nconst EntityParameterGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const SystemParameterTypes = useSelector(\r\n (state: any) => state.commonStores.stores.SystemParameterTypes.data\r\n );\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n commonStoreKey: \"SystemEntityParameters\",\r\n deleteById: \"api/v1/dev/entityparameter\",\r\n save: \"api/v1/dev/entityparameter\",\r\n findById: \"api/v1/dev/entityparameter\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_PARAMETER_CODE\",\r\n fieldName: \"parameterCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_PARAMETER_LABEL\",\r\n fieldName: \"parameterLabel\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_PARAMETER_TYPE\",\r\n fieldName: \"parameterType\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemParameterTypes,\r\n optionDisplayField: \"value\",\r\n optionValueField: \"value\",\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n if (value === \"combobox\") {\r\n formManager.setValue(\"parameterValueFormat\", null);\r\n formActions.showField(\"parameterDataQueryId\");\r\n formActions.showField(\"parameterDataset\");\r\n formActions.showField(\"parameterDisplayField\");\r\n formActions.showField(\"parameterValueField\");\r\n formActions.hideField(\"parameterValueFormat\");\r\n } else if (value === \"date\" || value === \"datetime\") {\r\n if (value === \"date\") {\r\n formManager.setValue(\"parameterValueFormat\", DATE_FORMAT);\r\n } else if (value === \"datetime\") {\r\n formManager.setValue(\"parameterValueFormat\", DATE_TIME_FORMAT);\r\n }\r\n formActions.hideField(\"parameterDataQueryId\");\r\n formActions.hideField(\"parameterDataset\");\r\n formActions.hideField(\"parameterDisplayField\");\r\n formActions.hideField(\"parameterValueField\");\r\n formActions.showField(\"parameterValueFormat\");\r\n } else {\r\n formManager.setValue(\"parameterValueFormat\", null);\r\n formActions.hideField(\"parameterDataQueryId\");\r\n formActions.hideField(\"parameterDataset\");\r\n formActions.hideField(\"parameterDisplayField\");\r\n formActions.hideField(\"parameterValueField\");\r\n formActions.hideField(\"parameterValueFormat\");\r\n }\r\n },\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID\",\r\n fieldName: \"parameterDataQueryId\",\r\n hidden: true,\r\n required: false,\r\n fieldType: \"text\",\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n if (value != null && value != \"\") {\r\n formManager.setValue(\"parameterDataset\", null);\r\n formActions.hideField(\"parameterDataset\");\r\n } else {\r\n formActions.showField(\"parameterDataset\");\r\n }\r\n },\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_PARAMETER_DATASET\",\r\n fieldName: \"parameterDataset\",\r\n hidden: true,\r\n required: false,\r\n fieldType: \"text\",\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n if (value != null && value != \"\") {\r\n formManager.setValue(\"parameterDataQueryId\", null);\r\n formActions.hideField(\"parameterDataQueryId\");\r\n } else {\r\n formActions.showField(\"parameterDataQueryId\");\r\n }\r\n },\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD\",\r\n fieldName: \"parameterDisplayField\",\r\n hidden: true,\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_PARAMETER_VALUE_FIELD\",\r\n fieldName: \"parameterValueField\",\r\n hidden: true,\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT\",\r\n fieldName: \"parameterValueFormat\",\r\n required: false,\r\n hidden: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"ENTITY_PARAMETER_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalTitle: \"Entity Parameter\",\r\n modalIcon: \"p\",\r\n modalWidth: 300,\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"ENTITY_PARAMETER_PLURAL\")}\r\n girdIcon=\"p\"\r\n editAction={{ isEnabled: true, authority: \"ENTITY_PARAMETER_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"ENTITY_PARAMETER_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default EntityParameterGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\n\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { toast } from \"react-toastify\";\r\nimport MailRecipientGrid from \"./MailRecipientGrid\";\r\nimport MailBodyGrid from \"./MailBodyGrid\";\r\nimport MailAttachmentGrid from \"./MailAttachmentGrid\";\r\n\r\nconst MailTemplateGrid: React.FC = () => {\r\n const SystemDataQueries = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataQueries.data\r\n );\r\n const [selectedRecord, setSelectedRecord] = useState<any>(null);\r\n const {\r\n Window: MailRecipentsWindow,\r\n setWindowState: setMailRecipientsWindowState,\r\n } = useWindow({ windowTitle: \"Mail Receipents\", windowIcon: \"users\" });\r\n const { Window: MailBodiesWindow, setWindowState: setMailBodiesWindowState } =\r\n useWindow({\r\n windowTitle: \"Mail Bodies\",\r\n windowIcon: { prefix: \"fas\", iconName: \"envelope-open-text\" },\r\n });\r\n const {\r\n Window: MailAttachmentWindow,\r\n setWindowState: setMailAttachmentWindowState,\r\n } = useWindow({\r\n windowTitle: \"Mail Attachment\",\r\n windowIcon: \"paperclip\",\r\n width: 500,\r\n });\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n commonStoreKey: \"SystemMailTemplates\",\r\n deleteById: \"api/v1/dev/mailtemplate\",\r\n save: \"api/v1/dev/mailtemplate\",\r\n findById: \"api/v1/dev/mailtemplate\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_MAIL_TEMPLATE_CODE\",\r\n fieldName: \"mailTemplateCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_MAIL_TEMPLATE_NAME\",\r\n fieldName: \"mailTemplateName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"group\",\r\n props: {\r\n label: \"subject\",\r\n icon: \"users\",\r\n style: { padding: 1, border: \"0.5px dashed black\", margin: 1 },\r\n elements: [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_MAIL_SUBJECT\",\r\n fieldName: \"mailSubject\",\r\n required: true,\r\n fieldType: \"text\",\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID\",\r\n fieldName: \"subjectDataQueryId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionDisplayField: \"queryName\",\r\n optionValueField: \"id\",\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n ],\r\n },\r\n },\r\n\r\n {\r\n type: \"group\",\r\n props: {\r\n label: \"Recipients\",\r\n icon: \"users\",\r\n style: { padding: 1, border: \"0.5px dashed black\", margin: 1 },\r\n elements: [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel:\r\n \"To Recipient Query (must return list of objects with property email)\",\r\n fieldName: \"mailToDataQueryId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionDisplayField: \"queryName\",\r\n optionValueField: \"id\",\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel:\r\n \"CC Recipient Query (must return list of objects with property email)\",\r\n fieldName: \"mailCcDataQueryId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionDisplayField: \"queryName\",\r\n optionValueField: \"id\",\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n ],\r\n },\r\n },\r\n {\r\n type: \"group\",\r\n props: {\r\n label: \"Periodical Configuration\",\r\n icon: \"history\",\r\n style: { padding: 1, border: \"0.5px dashed black\", margin: 1 },\r\n elements: [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_PERIODICAL\",\r\n fieldName: \"periodical\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_PERIOD_TYPE\",\r\n fieldName: \"periodType\",\r\n options: [\r\n { value: \"Year\" },\r\n { value: \"Month\" },\r\n { value: \"Day\" },\r\n { value: \"Hour\" },\r\n { value: \"Minute\" },\r\n { value: \"Second\" },\r\n ],\r\n optionDisplayField: \"value\",\r\n optionValueField: \"value\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_PERIOD_VALUE\",\r\n fieldName: \"periodValue\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_TEMPLATE_START_SENDING_AT\",\r\n fieldName: \"startSendingAt\",\r\n required: false,\r\n fieldType: \"datetime\",\r\n },\r\n },\r\n ],\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <MailRecipentsWindow>\r\n <MailRecipientGrid\r\n selectedRecord={selectedRecord}\r\n callBkFn={() => {\r\n setMailRecipientsWindowState(false);\r\n }}\r\n />\r\n </MailRecipentsWindow>\r\n <MailBodiesWindow>\r\n <MailBodyGrid\r\n selectedRecord={selectedRecord}\r\n callBkFn={() => {\r\n setMailRecipientsWindowState(false);\r\n }}\r\n />\r\n </MailBodiesWindow>\r\n <MailAttachmentWindow>\r\n <MailAttachmentGrid\r\n selectedRecord={selectedRecord}\r\n callBkFn={() => {\r\n setMailAttachmentWindowState(false);\r\n }}\r\n />\r\n </MailAttachmentWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalWidth: 300,\r\n modalTitle: \"Mail Template\",\r\n modalIcon: \"envelope\",\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"MAIL_TEMPLATE_PLURAL\")}\r\n girdIcon=\"envelope\"\r\n rowActions={[\r\n {\r\n icon: \"users\",\r\n label: \"Recipients\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setMailRecipientsWindowState(true);\r\n },\r\n },\r\n {\r\n icon: { prefix: \"fas\", iconName: \"envelope-open-text\" },\r\n label: \"Mail Body\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setMailBodiesWindowState(true);\r\n },\r\n },\r\n {\r\n icon: \"paperclip\",\r\n label: \"Mail Attachments\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setMailAttachmentWindowState(true);\r\n },\r\n },\r\n ]}\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"MAIL_TEMPLATE_EDIT\",\r\n preActionValidation: (record) => {\r\n if (record?.periodical === true && !record?.periodType) {\r\n toast.error(\r\n \"You must specifiy the period type since this email is periodical\"\r\n );\r\n return false;\r\n }\r\n if (record?.periodical === true && !record?.periodValue) {\r\n toast.error(\r\n \"You must specifiy the period value since this email is periodical\"\r\n );\r\n return false;\r\n }\r\n if (record?.periodical === true && !record?.startSendingAt) {\r\n toast.error(\r\n \"You must specifiy the start sending time since this email is periodical\"\r\n );\r\n return false;\r\n }\r\n\r\n return true;\r\n },\r\n }}\r\n deleteAction={{ isEnabled: true, authority: \"MAIL_TEMPLATE_DELETE\" }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default MailTemplateGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\nimport WorkflowDocumentStatusGrid from \"./WorkflowDocumentStatusGrid\";\r\nimport WorkflowDocumentActionGrid from \"./WorkflowDocumentActionGrid\";\r\n\r\nconst WorkflowDocumentGrid: React.FC = () => {\r\n const [selectedRecord, setSelectedRecord] = useState<any>(null);\r\n const {\r\n Window: WorkflowStatusWindow,\r\n setWindowState: setWorkflowStatusWindowState,\r\n } = useWindow({\r\n windowTitle: \"Document Status\",\r\n windowIcon: \"tag\",\r\n });\r\n const {\r\n Window: WorkflowActionWindow,\r\n setWindowState: setWorkflowActionWindowState,\r\n } = useWindow({\r\n windowTitle: \"Document Action\",\r\n windowIcon: \"stamp\",\r\n });\r\n const SystemOrganizations = useSelector(\r\n (state: any) => state.commonStores.stores.SystemOrganizations.data\r\n );\r\n const SystemReports = useSelector(\r\n (state: any) => state.commonStores.stores.SystemReports.data\r\n );\r\n const SystemDataSources = useSelector(\r\n (state: any) => state.commonStores.stores.SystemDataSources.data\r\n );\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/workflowdocument/all\",\r\n deleteById: \"api/v1/dev/workflowdocument\",\r\n save: \"api/v1/dev/workflowdocument\",\r\n findById: \"api/v1/dev/workflowdocument\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_ORG_CODE\",\r\n fieldName: \"orgCode\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemOrganizations,\r\n optionDisplayField: \"organizationCode\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_DOCUMENT_CODE\",\r\n fieldName: \"documentCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Workflow Document En Display Name\",\r\n fieldName: \"documentEnName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Workflow Document Ar Display Name\",\r\n fieldName: \"documentArName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Report To be Attached For The Document ( will be passed a parameter called doc_id)\",\r\n fieldName: \"documentReportId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemReports,\r\n optionDisplayField: \"reportName\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_APPROVAL_ALLOWED\",\r\n fieldName: \"mailApprovalAllowed\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"group\",\r\n props: {\r\n icon: \"bell\",\r\n style: { border: \"1px dashed black\", padding: 1, marginBottom: 1 },\r\n label: \"App Visual Notifications\",\r\n elements: [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_APP_NOTIFICATION_ICON\",\r\n fieldName: \"appNotificationIcon\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_APP_NOTIFICATION_STYLE\",\r\n fieldName: \"appNotificationStyle\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_APP_VIEW_ROUTE\",\r\n fieldName: \"appViewRoute\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n ],\r\n },\r\n },\r\n\r\n {\r\n type: \"group\",\r\n props: {\r\n icon: \"database\",\r\n style: { border: \"1px dashed black\", padding: 1, marginBottom: 1 },\r\n label: \"Related Document Database\",\r\n elements: [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_USE_SYSTEM_CON\",\r\n fieldName: \"useSystemCon\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n formProps: {\r\n onValueChangeCallBack(\r\n value,\r\n formManager,\r\n formActions,\r\n selectedRecord\r\n ) {\r\n if (value) {\r\n formActions.hideField(\"documentConId\");\r\n formManager.setValue(\"documentConId\", null);\r\n } else {\r\n formActions.showField(\"documentConId\");\r\n }\r\n },\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_DOCUMENT_CON_ID\",\r\n fieldName: \"documentConId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataSources,\r\n optionDisplayField: \"connectionName\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_NAME\",\r\n fieldName: \"documentDatabaseName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_TABLE\",\r\n fieldName: \"documentDatabaseTable\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_DOCUMENT_ID_FIELD\",\r\n fieldName: \"documentIdField\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_DOCUMENT_STATUS_FIELD\",\r\n fieldName: \"documentStatusField\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_DOCUMENT_NUMBER_FIELD\",\r\n fieldName: \"documentNumberField\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n ],\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <WorkflowStatusWindow>\r\n <WorkflowDocumentStatusGrid selectedRecord={selectedRecord} />\r\n </WorkflowStatusWindow>\r\n <WorkflowActionWindow>\r\n <WorkflowDocumentActionGrid selectedRecord={selectedRecord} />\r\n </WorkflowActionWindow>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n formLoadCallBk={(formActions, formManager, record) => {\r\n if (record.useSystemCon === true) {\r\n formActions.hideField(\"documentConId\");\r\n } else {\r\n formActions.showField(\"documentConId\");\r\n }\r\n }}\r\n data={data}\r\n setData={setData}\r\n rowActions={[\r\n {\r\n icon: \"tag\",\r\n label: \"Document States\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setWorkflowStatusWindowState(true);\r\n },\r\n },\r\n {\r\n icon: \"stamp\",\r\n label: \"Document Actions\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setWorkflowActionWindowState(true);\r\n },\r\n },\r\n ]}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalIcon: \"chart-diagram\",\r\n modalTitle: t(\"WORKFLOW_DOCUMENT_SINGULAR\"),\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"WORKFLOW_DOCUMENT_PLURAL\")}\r\n girdIcon=\"chart-diagram\"\r\n editAction={{ isEnabled: true, authority: \"WORKFLOW_DOCUMENT_EDIT\" }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_DELETE\",\r\n }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default WorkflowDocumentGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions, useWindow } from \"../../../hooks\";\r\nimport DashboardWidgetGrid from \"./DashboardWidgetGrid\";\r\nimport { useNavigate } from \"react-router-dom\";\r\n\r\nconst DashboardGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [selectedRecord, setSelectedRecord] = useState<any>(null);\r\n const { Window: WidgetsWindows, setWindowState: setWidgetsWindowState } =\r\n useWindow({\r\n windowTitle: \"Dashboard Widgets\",\r\n windowIcon: \"chart-pie\",\r\n });\r\n const [data, setData] = useState([]);\r\n const navigate = useNavigate();\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/dashboard/all\",\r\n deleteById: \"api/v1/dev/dashboard\",\r\n save: \"api/v1/dev/dashboard\",\r\n findById: \"api/v1/dev/dashboard\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DASHBOARD_DASHBOARD_CODE\",\r\n fieldName: \"dashboardCode\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DASHBOARD_DASHBOARD_NAME\",\r\n fieldName: \"dashboardName\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DASHBOARD_DASHBOARD_TITLE\",\r\n fieldName: \"dashboardTitle\",\r\n required: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"DASHBOARD_ENABLED\",\r\n fieldName: \"enabled\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n <WidgetsWindows>\r\n <DashboardWidgetGrid selectedRecord={selectedRecord} />\r\n </WidgetsWindows>\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n rowActions={[\r\n {\r\n label: \"Widgets\",\r\n icon: \"chart-pie\",\r\n actionFn: async (data) => {\r\n setSelectedRecord(data);\r\n setWidgetsWindowState(true);\r\n },\r\n },\r\n {\r\n label: \"View\",\r\n icon: \"eye\",\r\n actionFn: async (data) => {\r\n navigate(\"/dashboard/\" + data.dashboardCode);\r\n },\r\n },\r\n ]}\r\n gridTitle={t(\"DASHBOARD_PLURAL\")}\r\n girdIcon=\"square-poll-vertical\"\r\n editAction={{ isEnabled: true, authority: \"DASHBOARD_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"DASHBOARD_DELETE\" }}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default DashboardGrid;\r\n","import { useParams } from \"react-router-dom\";\r\nimport DashboardViewer from \"./DashboardViewer\";\r\n\r\nconst DashboardRouteView: React.FC = () => {\r\n const { dashboardCode } = useParams();\r\n return <DashboardViewer dashboardCode={dashboardCode} />;\r\n};\r\n\r\nexport default DashboardRouteView;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\n\r\nconst WorkflowDocumentMailLogGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/workflowdocumentmaillog/all\",\r\n deleteById: \"api/v1/dev/workflowdocumentmaillog\",\r\n save: \"api/v1/dev/workflowdocumentmaillog\",\r\n findById: \"api/v1/dev/workflowdocumentmaillog\",\r\n setData: setData,\r\n });\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_GRAPH_API_MSG_ID\",\r\n fieldName: \"graphApiMsgId\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_IS_PROCESSED\",\r\n fieldName: \"isProcessed\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_ACTION_CODE\",\r\n fieldName: \"mailActionCode\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_BODY_CONTENT\",\r\n fieldName: \"mailBodyContent\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_FROM\",\r\n fieldName: \"mailFrom\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_SUBJECT\",\r\n fieldName: \"mailSubject\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_MESSAGE\",\r\n fieldName: \"processMessage\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_TIME\",\r\n fieldName: \"processTime\",\r\n required: false,\r\n fieldType: \"datetime\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_REF_DOC_ID\",\r\n fieldName: \"refDocId\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_WORKFLOW_DOCUMENT_ID\",\r\n fieldName: \"workflowDocumentId\",\r\n required: false,\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_RECEIVE_TIME\",\r\n fieldName: \"mailReceiveTime\",\r\n required: false,\r\n fieldType: \"datetime\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"row\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL\")}\r\n girdIcon=\"table-cells\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_MAIL_LOG_EDIT\",\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"WORKFLOW_DOCUMENT_MAIL_LOG_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default WorkflowDocumentMailLogGrid;\r\n","import { useState } from \"react\";\r\nimport TemplateGrid from \"../../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useApiActions } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\nconst MailNotificationQueueGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/mailnotificationqueue/all\",\r\n deleteById: \"api/v1/dev/mailnotificationqueue\",\r\n save: \"api/v1/dev/mailnotificationqueue\",\r\n findById: \"api/v1/dev/mailnotificationqueue\",\r\n setData: setData,\r\n });\r\n const SystemMailTemplates = useSelector(\r\n (state: any) => state.commonStores.stores.SystemMailTemplates.data\r\n );\r\n\r\n const formElements: Array<FormElementProps> = [\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"id\",\r\n fieldName: \"id\",\r\n fieldType: \"number\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createTime\",\r\n fieldName: \"createTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"createdBy\",\r\n fieldName: \"createdBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateBy\",\r\n fieldName: \"lastUpdateBy\",\r\n fieldType: \"text\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"lastUpdateTime\",\r\n fieldName: \"lastUpdateTime\",\r\n fieldType: \"datetime\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID\",\r\n fieldName: \"mailTemplateId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemMailTemplates,\r\n optionDisplayField: \"mailTemplateName\",\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID\",\r\n fieldName: \"customMailAttachedReportId\",\r\n required: false,\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n fieldType: \"number\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY\",\r\n fieldName: \"customMailBody\",\r\n required: false,\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT\",\r\n fieldName: \"customMailSubject\",\r\n required: false,\r\n hidden: true,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_CUSTOM_RECIPIENTS\",\r\n fieldName: \"customRecipients\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_IS_NOTIFIED\",\r\n fieldName: \"isNotified\",\r\n required: false,\r\n fieldType: \"checkbox\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_NOTIFICATION_TIME\",\r\n fieldName: \"notificationTime\",\r\n required: false,\r\n fieldType: \"datetime\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_NOTIFICATION_MESSAGE\",\r\n fieldName: \"notificationMessage\",\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"MAIL_NOTIFICATION_QUEUE_MAIL_PARAMETERS\",\r\n fieldName: \"mailParameters\",\r\n hidden: true,\r\n gridProps: {\r\n hidden: true,\r\n },\r\n required: false,\r\n fieldType: \"text\",\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <TemplateGrid\r\n apiActions={apiActions}\r\n disableDefaultAction={true}\r\n data={data}\r\n setData={setData}\r\n editMode={{ editMode: \"none\" }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"MAIL_NOTIFICATION_QUEUE_PLURAL\")}\r\n girdIcon=\"table-cells\"\r\n editAction={{\r\n isEnabled: true,\r\n authority: \"MAIL_NOTIFICATION_QUEUE_EDIT\",\r\n }}\r\n deleteAction={{\r\n isEnabled: true,\r\n authority: \"MAIL_NOTIFICATION_QUEUE_DELETE\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default MailNotificationQueueGrid;\r\n","import { Box } from \"@mui/material\";\r\nimport { useSession } from \"../hooks\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\n\r\ntype RouteWrapperProps = {\r\n authority?: string;\r\n children?: React.ReactNode;\r\n};\r\nconst RouteWrapper: React.FC<RouteWrapperProps> = (props) => {\r\n const { isUserAuthorized } = useSession();\r\n if (props?.authority && !isUserAuthorized(props.authority)) {\r\n return (\r\n <Box\r\n sx={{\r\n flex: 1,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n color: \"red\",\r\n }}\r\n >\r\n <h2>\r\n <FontAwesomeIcon\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n icon=\"cancel\"\r\n />\r\n You aren't authorized to access this page\r\n </h2>\r\n </Box>\r\n );\r\n }\r\n return <>{props.children}</>;\r\n};\r\n\r\nexport default RouteWrapper;\r\n","import { Box } from \"@mui/material\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { CacheProvider } from \"@emotion/react\";\r\nimport { Route, Routes } from \"react-router-dom\";\r\nimport { cacheLtr, cacheRtl } from \"../components/common/LayoutHandlers\";\r\nimport { SYSTEM_ROUTES } from \"../routes\";\r\nimport { SystemRoute } from \"../routes/types\";\r\nimport RouteWrapper from \"./RouteWrapper\";\r\nimport { useAxios, useLoadingMask, useSession } from \"../hooks\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { setStoreData } from \"../redux/features/common/CommonStoreSlice\";\r\n\r\nconst MainContent: React.FC = () => {\r\n const AppLayoutState = useSelector((state: any) => state.AppLayout);\r\n const AppInfo = useSelector((state: any) => state.AppInfo.value);\r\n const businessRoutes = useSelector(\r\n (state: any) => state.AppInfo.value.businessRoutes\r\n );\r\n const dispatch = useDispatch();\r\n const { show, hide } = useLoadingMask();\r\n const commonStores = useSelector((state: any) => state.commonStores);\r\n const [isAutoLoadLoaded, setAutoLoadLoaded] = useState<boolean>(false);\r\n const { isUserAuthorized } = useSession();\r\n const { handleGetRequest } = useAxios();\r\n const loadCommonStores = async () => {\r\n show(\"Loading ... please wait\");\r\n const stores = commonStores.stores;\r\n const storeKeys = commonStores.storeKeys;\r\n for (let storeKey of storeKeys) {\r\n if (\r\n (stores[storeKey]?.authority === undefined ||\r\n stores[storeKey]?.authority === null ||\r\n isUserAuthorized(stores[storeKey]?.authority)) &&\r\n stores[storeKey]?.url != \"\" &&\r\n stores[storeKey].autoLoad === true\r\n ) {\r\n await handleGetRequest({\r\n endPointURI: stores[storeKey].url,\r\n showMask: false,\r\n successCallBkFn: (response) => {\r\n dispatch(setStoreData({ storeKey, data: response.data }));\r\n },\r\n failureCallBkFn: () => {\r\n dispatch(setStoreData({ storeKey, data: [] }));\r\n },\r\n });\r\n }\r\n }\r\n hide();\r\n };\r\n\r\n useEffect(() => {\r\n if (commonStores?.storeKeys) {\r\n loadCommonStores();\r\n }\r\n }, [commonStores.storeKeys]);\r\n return (\r\n <CacheProvider\r\n value={AppLayoutState.appDirection === \"ltr\" ? cacheLtr : cacheRtl}\r\n >\r\n {/* {isAutoLoadLoaded ? ( */}\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n // alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n flex: 1,\r\n overflow: \"hidden\",\r\n padding: 3,\r\n }}\r\n >\r\n <Routes>\r\n {AppInfo.enableAdministrationModule\r\n ? SYSTEM_ROUTES.map((route: SystemRoute, index) => {\r\n return (\r\n <Route\r\n key={\"adm\" + index}\r\n path={route.path}\r\n element={\r\n <RouteWrapper authority={route.authority}>\r\n <route.component />\r\n </RouteWrapper>\r\n }\r\n />\r\n );\r\n })\r\n : null}\r\n {businessRoutes.map((route: SystemRoute, index) => {\r\n return (\r\n <Route\r\n key={\"bs\" + index}\r\n path={route.path}\r\n element={\r\n <RouteWrapper authority={route.authority}>\r\n <route.component />\r\n </RouteWrapper>\r\n }\r\n />\r\n );\r\n })}\r\n </Routes>\r\n </Box>\r\n {/* ) : (\r\n <></>\r\n )} */}\r\n </CacheProvider>\r\n );\r\n};\r\n\r\nexport default MainContent;\r\n","import { styled } from \"@mui/material/styles\";\r\nimport { grey } from \"@mui/material/colors\";\r\nimport SwipeableDrawer from \"@mui/material/SwipeableDrawer\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { Box, Typography } from \"@mui/material\";\r\nimport { AppLayoutActions } from \"../redux/features/common/AppLayoutSlice\";\r\nimport NavigationTree from \"./NavigationTree\";\r\nimport { setSideBarState } from \"../redux/features/common/SideBarSlice\";\r\n\r\nconst drawerBleeding = 56;\r\n\r\ninterface Props {\r\n /**\r\n * Injected by the documentation to work in an iframe.\r\n * You won't need it on your project.\r\n */\r\n window?: () => Window;\r\n}\r\n\r\nconst Puller = styled(\"div\")(({ theme }) => ({\r\n width: 30,\r\n height: 6,\r\n margin: 10,\r\n backgroundColor: grey[300],\r\n borderRadius: 3,\r\n // position: \"absolute\",\r\n top: 8,\r\n // left: \"calc(50% - 15px)\",\r\n ...theme.applyStyles(\"dark\", {\r\n backgroundColor: grey[900],\r\n }),\r\n}));\r\n\r\nexport default function MobileDrawer(props: Props) {\r\n const { window } = props;\r\n const SideBarState = useSelector((state: any) => state.SideBar);\r\n const AppInfo = useSelector((state: any) => state.AppInfo.value);\r\n const dispatch = useDispatch();\r\n const toggleDrawer = (newState: boolean) => {\r\n dispatch(setSideBarState(newState));\r\n };\r\n // This is used only for the example\r\n const container =\r\n window !== undefined ? () => window().document.body : undefined;\r\n\r\n return (\r\n <SwipeableDrawer\r\n container={container}\r\n anchor=\"bottom\"\r\n open={SideBarState.isOpened}\r\n onClose={() => {\r\n toggleDrawer(false);\r\n }}\r\n onOpen={() => {\r\n toggleDrawer(true);\r\n }}\r\n swipeAreaWidth={drawerBleeding}\r\n disableSwipeToOpen={false}\r\n ModalProps={{\r\n keepMounted: true,\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n height: \"100%\",\r\n overflow: \"hidden\",\r\n }}\r\n >\r\n <Puller />\r\n <Box\r\n sx={{\r\n flexGrow: 1,\r\n display: \"flex\",\r\n justifyContent: \"center\",\r\n width: \"99%\",\r\n overflowY: \"auto\",\r\n }}\r\n >\r\n <NavigationTree />\r\n </Box>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"space-around\",\r\n marginTop: 1,\r\n width: \"100%\",\r\n }}\r\n >\r\n <Typography sx={{ fontSize: 12 }} color=\"textDisabled\">\r\n {AppInfo.appName}\r\n </Typography>\r\n <Typography sx={{ fontSize: 12 }} color=\"textDisabled\">\r\n V.{AppInfo.appVersion}\r\n </Typography>\r\n </Box>\r\n </Box>\r\n </SwipeableDrawer>\r\n );\r\n}\r\n","import { useSelector } from \"react-redux\";\r\nimport { Backdrop, CircularProgress } from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nconst LoadingMask: React.FC = () => {\r\n const { t } = useTranslation();\r\n const loadingMask = useSelector((state: any) => state.loadingMask.value);\r\n const AppLayoutState = useSelector((state: any) => state.AppLayout);\r\n\r\n return (\r\n <Backdrop\r\n dir={AppLayoutState.appDirection}\r\n sx={{ color: \"#fff\", zIndex: (theme) => theme.zIndex.drawer + 1 }}\r\n open={loadingMask.isOpened}\r\n >\r\n <CircularProgress color=\"inherit\" />\r\n <div style={{ marginRight: 10, marginLeft: 10 }}>\r\n {loadingMask?.message || t(\"DEFAULT_LOADING_MESSAGE\")}\r\n </div>\r\n </Backdrop>\r\n );\r\n};\r\n\r\nexport default LoadingMask;\r\n","import {\r\n Box,\r\n Button,\r\n CircularProgress,\r\n createTheme,\r\n Paper,\r\n TextField,\r\n Typography,\r\n} from \"@mui/material\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { ThemeProvider } from \"@emotion/react\";\r\nimport { useEffect, useState } from \"react\";\r\nimport axios from \"axios\";\r\nimport { toast } from \"react-toastify\";\r\nimport { UserSessionActions } from \"../../redux/features/common/UserSessionSlice\";\r\nimport {\r\n DARK_THEME_INITIAL_MAIN_COLOR,\r\n DARK_THEME_INITIAL_SECANDARY_COLOR,\r\n} from \"../../util\";\r\n\r\nconst Login: React.FC = () => {\r\n const appInfo = useSelector((state: any) => state.AppInfo.value);\r\n const [username, setUsername] = useState(\"\");\r\n const [password, setPassword] = useState(\"\");\r\n const [isLoginInProcess, setIsLoginInProcess] = useState(false);\r\n const UserSessionState = useSelector((state: any) => state.UserSession.value);\r\n const dispatch = useDispatch();\r\n const handleLogin = async () => {\r\n if (username == null || username == \"\") {\r\n toast.error(\"username is required to proceed\");\r\n return;\r\n }\r\n if (password == null || password == \"\") {\r\n toast.error(\"password is required to proceed\");\r\n return;\r\n }\r\n setIsLoginInProcess(true);\r\n let response: any = null;\r\n try {\r\n response = await axios.post(\r\n `${appInfo.apiBaseUrl}/api/auth/login`,\r\n {\r\n username,\r\n password,\r\n },\r\n {\r\n withCredentials: true,\r\n }\r\n );\r\n if (response.data != null && response.data !== \"\") {\r\n setIsLoginInProcess(false);\r\n const UserSession = {\r\n ...response.data,\r\n isAuthenticated: true,\r\n };\r\n dispatch(UserSessionActions.setAuthenticated(UserSession));\r\n }\r\n } catch (e: any) {\r\n setIsLoginInProcess(false);\r\n toast.error(\r\n e?.response?.data ||\r\n \"failed to authenticate, contact your administrator\"\r\n );\r\n }\r\n };\r\n const userSession = useSelector((state: any) => state.UserSession.value);\r\n const loginTheme = createTheme({\r\n components: {\r\n MuiCssBaseline: {\r\n styleOverrides: `\r\n /* Custom Scrollbar */\r\n * {\r\n scrollbar-width: thin;\r\n scrollbar-color: ${\r\n appInfo.appTheme?.dark?.primaryColor ||\r\n DARK_THEME_INITIAL_MAIN_COLOR\r\n } #121212;\r\n }\r\n \r\n /* Webkit Browsers */\r\n *::-webkit-scrollbar {\r\n width: 12px;\r\n height: 10px;\r\n } \r\n `,\r\n },\r\n },\r\n palette: {\r\n mode: \"dark\",\r\n primary: {\r\n main:\r\n appInfo.appTheme?.dark?.primaryColor || DARK_THEME_INITIAL_MAIN_COLOR,\r\n },\r\n secondary: {\r\n main:\r\n appInfo.appTheme?.dark?.secondaryColor ||\r\n DARK_THEME_INITIAL_SECANDARY_COLOR,\r\n },\r\n },\r\n });\r\n const checkUserSession = async () => {\r\n if (appInfo?.apiBaseUrl) {\r\n if (userSession.isAuthenticated == null) {\r\n try {\r\n let response = await axios.get(\r\n `${appInfo.apiBaseUrl}/api/auth/userInfo`,\r\n {\r\n withCredentials: true,\r\n }\r\n );\r\n if (response != null && response.data != null) {\r\n const UserSession = {\r\n ...response.data,\r\n isAuthenticated: true,\r\n };\r\n dispatch(UserSessionActions.setAuthenticated(UserSession));\r\n } else {\r\n dispatch(UserSessionActions.setUnAuthenticated());\r\n }\r\n } catch (error) {\r\n dispatch(UserSessionActions.setUnAuthenticated());\r\n }\r\n }\r\n }\r\n };\r\n useEffect(() => {\r\n checkUserSession();\r\n }, [appInfo]);\r\n return (\r\n <ThemeProvider theme={loginTheme}>\r\n <Paper\r\n sx={{\r\n display: \"flex\",\r\n height: \"100vh\",\r\n width: \"100%\",\r\n borderRadius: 0,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n {UserSessionState.isAuthenticated == false ? (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <img src={appInfo?.appLogo} width={150} height={150} />\r\n <Typography sx={{ m: 1 }} variant=\"h4\" color=\"textSecondary\">\r\n {appInfo?.appName}\r\n </Typography>\r\n <Typography\r\n sx={{\r\n paddingRight: 1,\r\n width: \"100%\",\r\n textAlign: \"right\",\r\n fontSize: 10,\r\n }}\r\n variant=\"caption\"\r\n color=\"textSecondary\"\r\n >\r\n V.{appInfo.appVersion}\r\n </Typography>\r\n <TextField\r\n label=\"username\"\r\n sx={{ width: 300, m: 1 }}\r\n value={username}\r\n onChange={(event) => {\r\n setUsername(event.target.value);\r\n }}\r\n onKeyDown={(event) => {\r\n if (event.key === \"Enter\") {\r\n handleLogin();\r\n }\r\n }}\r\n />\r\n <TextField\r\n label=\"password\"\r\n sx={{ width: 300, m: 1 }}\r\n value={password}\r\n type=\"password\"\r\n onChange={(event) => {\r\n setPassword(event.target.value);\r\n }}\r\n onKeyDown={(event) => {\r\n if (event.key === \"Enter\") {\r\n handleLogin();\r\n }\r\n }}\r\n />\r\n <Button\r\n loading={isLoginInProcess}\r\n onClick={handleLogin}\r\n variant=\"contained\"\r\n color=\"primary\"\r\n sx={{ m: 1 }}\r\n >\r\n login\r\n </Button>\r\n </Box>\r\n ) : (\r\n <>\r\n <CircularProgress sx={{ marginRight: 1 }} />\r\n <div>You will be redirected shortly ... please wait</div>\r\n </>\r\n )}\r\n </Paper>\r\n </ThemeProvider>\r\n );\r\n};\r\n\r\nexport default Login;\r\n","import { styled, useTheme } from \"@mui/material/styles\";\r\nimport CssBaseline from \"@mui/material/CssBaseline\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport TopBar from \"./TopBar\";\r\nimport { DrawerHeader } from \"./DrawerHeader\";\r\nimport SideBar from \"./SideBar\";\r\nimport MainContent from \"./MainContent\";\r\nimport { BrowserRouter } from \"react-router-dom\";\r\nimport MobileDrawer from \"./MobileDrawer\";\r\nimport { ToastContainer } from \"react-toastify\";\r\nimport { useEffect, useState } from \"react\";\r\nimport useLoadingMask from \"../hooks/useLoadingMask\";\r\nimport { useIsMobile } from \"../hooks/UseMobile\";\r\nimport useSession from \"../hooks/UseSession\";\r\nimport useAxios from \"../hooks/useAxios\";\r\nimport { DRAWER_WIDTH } from \"../redux/features/common/AppLayoutSlice\";\r\nimport { UserSessionProps } from \"../redux/features/common/UserSessionSlice\";\r\nimport LoadingMask from \"../components/common/LoadingMask\";\r\nimport Login from \"../components/common/Login\";\r\nimport { setStoreData } from \"../redux/features/common/CommonStoreSlice\";\r\n\r\nconst Main = styled(\"main\", {\r\n shouldForwardProp: (prop) => prop !== \"open\",\r\n})<{\r\n open?: boolean;\r\n}>(({ theme: any, open }) => {\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const theme = useTheme();\r\n const isMobile = useIsMobile();\r\n\r\n return {\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n overflow: \"hidden\",\r\n flexGrow: 1,\r\n width: !isMobile && open ? `calc(100% - ${DRAWER_WIDTH}px)` : \"100%\",\r\n direction: AppLayout.appDirection,\r\n justifyContent: \"flex-start\",\r\n transition:\r\n open === true\r\n ? theme.transitions.create([\"margin\", \"width\"], {\r\n easing: theme.transitions.easing.easeOut,\r\n duration: theme.transitions.duration.enteringScreen,\r\n })\r\n : theme.transitions.create([\"margin\", \"width\"], {\r\n easing: theme.transitions.easing.sharp,\r\n duration: theme.transitions.duration.leavingScreen,\r\n }),\r\n marginLeft:\r\n !isMobile && AppLayout.appDirection === \"ltr\" && open === true\r\n ? DRAWER_WIDTH + \"px\"\r\n : 0,\r\n marginRight:\r\n !isMobile && AppLayout.appDirection === \"rtl\" && open === true\r\n ? DRAWER_WIDTH + \"px\"\r\n : 0,\r\n };\r\n});\r\n\r\nexport default function Layout() {\r\n const SideBarState = useSelector((state: any) => state.SideBar);\r\n const isMobile = useIsMobile();\r\n const UserSession: UserSessionProps = useSelector(\r\n (state: any) => state.UserSession\r\n );\r\n return (\r\n <BrowserRouter>\r\n <ToastContainer draggable={true} position=\"bottom-center\" />\r\n <LoadingMask />\r\n {UserSession.value.isAuthenticated === true ? (\r\n <Main open={SideBarState.isOpened}>\r\n <CssBaseline />\r\n <TopBar />\r\n {!isMobile ? <SideBar /> : null}\r\n {isMobile ? <MobileDrawer /> : null}\r\n <DrawerHeader />\r\n <MainContent />\r\n </Main>\r\n ) : (\r\n <Login />\r\n )}\r\n </BrowserRouter>\r\n );\r\n}\r\n","import { createSlice, Reducer } from \"@reduxjs/toolkit\";\r\nimport { SystemRoute } from \"../../../routes/types\";\r\nimport { ExtendedTreeItemProps } from \"../../../navigationItems\";\r\nimport { StoreMetaData } from \"./CommonStoreSlice\";\r\n\r\nexport type AppInfo = {\r\n documentTitle: string | null;\r\n apiBaseUrl: string | null;\r\n appName: string | null;\r\n appVersion: string | null;\r\n appLogo: any | null;\r\n businessRoutes: Array<SystemRoute>;\r\n businessNavigationItems: Array<ExtendedTreeItemProps>;\r\n businessReduxReducers: { [key: string]: Reducer<any> };\r\n businessCommonStoresMetaData: { [key: string]: StoreMetaData };\r\n muiPremiumKey: string;\r\n enableAdministrationModule: boolean;\r\n appTheme?: {\r\n light: { primaryColor: string; secondaryColor: string };\r\n dark: { primaryColor: string; secondaryColor: string };\r\n };\r\n};\r\n\r\nexport type AppInfoProp = {\r\n value: AppInfo;\r\n};\r\n\r\nconst initialState: AppInfoProp = {\r\n value: {\r\n documentTitle: null,\r\n apiBaseUrl: null,\r\n appName: null,\r\n appVersion: null,\r\n appLogo: null,\r\n muiPremiumKey: null,\r\n enableAdministrationModule: false,\r\n businessRoutes: [],\r\n businessNavigationItems: [],\r\n businessReduxReducers: {},\r\n businessCommonStoresMetaData: {},\r\n appTheme: {\r\n light: { primaryColor: \"#37505C\", secondaryColor: \"#ff6d00\" },\r\n dark: { primaryColor: \"#ea690e\", secondaryColor: \"#74776B\" },\r\n },\r\n },\r\n};\r\n\r\nconst AppInfoSlice = createSlice({\r\n name: \"AppInfo\",\r\n initialState: initialState,\r\n reducers: {\r\n setAppInfo: (state, action) => {\r\n state.value = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const AppInfoActions = AppInfoSlice.actions;\r\nexport default AppInfoSlice.reducer;\r\n","import { CommonStores } from \"../common/CommonStoreSlice\";\r\n\r\nexport const ADMINISTRATION_STORES: CommonStores = {\r\n SystemDataSourceType: {\r\n autoLoad: false,\r\n data: [{ value: \"Mysql\" }, { value: \"Oracle\" }, { value: \"DB2\" }],\r\n url: \"\",\r\n },\r\n SystemParameterTypes: {\r\n autoLoad: false,\r\n url: \"\",\r\n data: [\r\n { value: \"text\" },\r\n { value: \"number\" },\r\n { value: \"date\" },\r\n { value: \"datetime\" },\r\n { value: \"combobox\" },\r\n { value: \"checkbox\" },\r\n { value: \"html\" },\r\n { value: \"lookup\" },\r\n ],\r\n },\r\n SystemReportTypes: {\r\n autoLoad: false,\r\n url: \"\",\r\n data: [{ value: \"Excel\" }, { value: \"Jasper\" }, { value: \"Blueprint\" }],\r\n },\r\n SystemWidgetTypes: {\r\n autoLoad: false,\r\n url: \"\",\r\n data: [\r\n { name: \"LineChart\" },\r\n { name: \"ColumnChart\" },\r\n { name: \"PieChart\" },\r\n { name: \"Card\" },\r\n { name: \"CircularProgress\" },\r\n { name: \"LinearProgress\" },\r\n ],\r\n },\r\n SystemMailRecipientTypes: {\r\n autoLoad: false,\r\n url: \"\",\r\n data: [{ name: \"To\" }, { name: \"CC\" }],\r\n },\r\n SystemOrganizations: {\r\n autoLoad: true,\r\n url: \"api/v1/admin/organization/all\",\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n data: [],\r\n },\r\n SystemOrganizationRanks: {\r\n autoLoad: true,\r\n url: \"api/v1/admin/organization/ranks/all\",\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n data: [],\r\n },\r\n SystemOrganizationUnits: {\r\n autoLoad: true,\r\n url: \"api/v1/admin/organization/units/all\",\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n data: [],\r\n },\r\n SystemDataSources: {\r\n autoLoad: true,\r\n data: [],\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n url: \"api/v1/dev/datasourceconnection/all\",\r\n },\r\n SystemDataQueries: {\r\n autoLoad: true,\r\n data: [],\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n url: \"api/v1/dev/dataquery/all\",\r\n },\r\n SystemBluePrints: {\r\n autoLoad: true,\r\n data: [],\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n url: \"api/v1/dev/blueprint/all\",\r\n },\r\n SystemReports: {\r\n autoLoad: true,\r\n data: [],\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n url: \"api/v1/dev/report/all\",\r\n },\r\n SystemEntityParameters: {\r\n autoLoad: true,\r\n data: [],\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n url: \"api/v1/dev/entityparameter/all\",\r\n },\r\n SystemMailTemplates: {\r\n autoLoad: true,\r\n data: [],\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n url: \"api/v1/dev/mailtemplate/all\",\r\n },\r\n SystemWidgets: {\r\n autoLoad: true,\r\n data: [],\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n url: \"api/v1/dev/widget/all\",\r\n },\r\n};\r\n","import { useDispatch, useSelector } from \"react-redux\";\r\nimport { createTheme, ThemeOptions } from \"@mui/material\";\r\nimport { ThemeProvider } from \"@emotion/react\";\r\nimport React, { useEffect } from \"react\";\r\nimport Layout from \"../layout/Layout\";\r\nimport { AppInfo, AppInfoActions } from \"../redux/features/common/AppInfoSlice\";\r\nimport { LicenseInfo } from \"@mui/x-license\";\r\nimport {\r\n DARK_THEME_INITIAL_MAIN_COLOR,\r\n DARK_THEME_INITIAL_SECANDARY_COLOR,\r\n LIGHT_THEME_INITIAL_MAIN_COLOR,\r\n LIGHT_THEME_INITIAL_SECANDARY_COLOR,\r\n} from \"../util\";\r\nimport { setStoresMetaData } from \"../redux/features/common/CommonStoreSlice\";\r\nimport { ADMINISTRATION_STORES } from \"../redux/features/administration/AdministrationStoresMetaData\";\r\n\r\nconst App: React.FC<AppInfo> = (props: AppInfo) => {\r\n const dispatch = useDispatch();\r\n LicenseInfo.setLicenseKey(props.muiPremiumKey);\r\n const LightThemeOptions: ThemeOptions = {\r\n components: {\r\n MuiCssBaseline: {\r\n styleOverrides: `\r\n /* Custom Scrollbar */\r\n * {\r\n scrollbar-width: thin;\r\n scrollbar-color: ${\r\n props.appTheme?.light?.primaryColor ||\r\n LIGHT_THEME_INITIAL_MAIN_COLOR\r\n } #ffffff;\r\n }\r\n \r\n /* Webkit Browsers */\r\n *::-webkit-scrollbar {\r\n width: 12px;\r\n height: 10px;\r\n } \r\n `,\r\n },\r\n },\r\n palette: {\r\n mode: \"light\",\r\n primary: {\r\n main:\r\n props.appTheme?.light?.primaryColor || LIGHT_THEME_INITIAL_MAIN_COLOR,\r\n },\r\n secondary: {\r\n main:\r\n props.appTheme?.light?.secondaryColor ||\r\n LIGHT_THEME_INITIAL_SECANDARY_COLOR,\r\n },\r\n background: {\r\n default: \"#f5f5f5\",\r\n paper: \"#f5f5f5\",\r\n },\r\n },\r\n };\r\n const DarkThemeOptions: ThemeOptions = {\r\n components: {\r\n MuiCssBaseline: {\r\n styleOverrides: `\r\n /* Custom Scrollbar */\r\n * {\r\n scrollbar-width: thin;\r\n scrollbar-color: ${\r\n props.appTheme?.dark?.primaryColor || DARK_THEME_INITIAL_MAIN_COLOR\r\n } #121212;\r\n }\r\n \r\n /* Webkit Browsers */\r\n *::-webkit-scrollbar {\r\n width: 12px;\r\n height: 10px;\r\n } \r\n `,\r\n },\r\n },\r\n palette: {\r\n mode: \"dark\",\r\n primary: {\r\n main:\r\n props.appTheme?.dark?.primaryColor || DARK_THEME_INITIAL_MAIN_COLOR,\r\n },\r\n secondary: {\r\n main:\r\n props.appTheme?.dark?.secondaryColor ||\r\n DARK_THEME_INITIAL_SECANDARY_COLOR,\r\n },\r\n },\r\n };\r\n\r\n let commonStores = {};\r\n if (props.enableAdministrationModule) {\r\n commonStores = { ...ADMINISTRATION_STORES };\r\n }\r\n if (props.businessCommonStoresMetaData) {\r\n commonStores = {\r\n ...commonStores,\r\n ...props.businessCommonStoresMetaData,\r\n };\r\n }\r\n dispatch(setStoresMetaData(commonStores));\r\n const AppLayoutState = useSelector((state: any) => state.AppLayout);\r\n let themeOptions = { ...LightThemeOptions };\r\n if (AppLayoutState.themeMode === \"dark\") {\r\n themeOptions = { ...DarkThemeOptions };\r\n }\r\n const theme = createTheme({\r\n direction: AppLayoutState.appDirection,\r\n ...themeOptions,\r\n });\r\n useEffect(() => {\r\n document.title = props.documentTitle;\r\n dispatch(AppInfoActions.setAppInfo(props));\r\n }, []);\r\n return (\r\n <ThemeProvider theme={theme}>\r\n <Layout />\r\n </ThemeProvider>\r\n );\r\n};\r\n\r\nexport default App;\r\n","import { Provider } from \"react-redux\";\r\nimport { library } from \"@fortawesome/fontawesome-svg-core\";\r\nimport { fab } from \"@fortawesome/free-brands-svg-icons\";\r\nimport { far } from \"@fortawesome/free-regular-svg-icons\";\r\nimport { fas } from \"@fortawesome/free-solid-svg-icons\";\r\nimport \"../styles/index.css\";\r\nimport \"react-toastify/dist/ReactToastify.css\";\r\nimport App from \"./App\";\r\nimport { AppInfo } from \"../redux/features/common/AppInfoSlice\";\r\nimport AppLayoutReducer from \"../redux/features/common/AppLayoutSlice\";\r\nimport UserSessionReducer from \"../redux/features/common/UserSessionSlice\";\r\nimport LoadingMaskReducer from \"../redux/features/common/LoadingMaskSlice\";\r\nimport CommonStoreReducer from \"../redux/features/common/CommonStoreSlice\";\r\nimport AppInfoReducer from \"../redux/features/common/AppInfoSlice\";\r\nimport SideBarReducer from \"../redux/features/common/SideBarSlice\";\r\nimport { configureStore } from \"@reduxjs/toolkit\";\r\n\r\nlibrary.add(fab);\r\nlibrary.add(far);\r\nlibrary.add(fas);\r\n\r\nexport const BaseApp: React.FC<AppInfo> = (props) => {\r\n const systemReducers = {\r\n AppLayout: AppLayoutReducer,\r\n UserSession: UserSessionReducer,\r\n loadingMask: LoadingMaskReducer,\r\n commonStores: CommonStoreReducer,\r\n SideBar: SideBarReducer,\r\n AppInfo: AppInfoReducer,\r\n ...props.businessReduxReducers,\r\n };\r\n const store = configureStore({\r\n reducer: systemReducers,\r\n });\r\n\r\n return (\r\n <Provider store={store}>\r\n <App {...props} />\r\n </Provider>\r\n );\r\n};\r\n"],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","useIsMobile","breakpoint","isMobile","setIsMobile","useState","window","innerWidth","useEffect","handleResize","addEventListener","removeEventListener","DRAWER_WIDTH","AppLayoutSlice","createSlice","name","themeMode","localStorage","getItem","appDirection","reducers","setThemeMode","state","action","payload","setAppDirection","AppLayoutActions","actions","AppLayoutReducer","reducer","loadingMaskSlice","value","isOpened","message","showLoadingMask","hideLoadingMask","LoadingMaskReducer","useLoadingMask","dispatch","useDispatch","show","hide","useAxios","mask","apiBaseUrl","useSelector","AppInfo","axiosInstance","axios","create","baseURL","timeout","withCredentials","defaults","interceptors","response","use","error","status","toast","autoClose","data","Blob","text","then","handleGetRequest","async","props","endPointURI","parameters","undefined","showMask","loadingMessage","get","params","successCallBkFn","failureCallBkFn","handlePostRequest","post","handleDeleteRequest","delete","HandleDownloadHTTPPostPDF","responseType","UserSessionSlice","isAuthenticated","authorities","setAuthenticated","setUnAuthenticated","UserSessionActions","UserSessionReducer","resources","en","translation","common","AdminLocalsEn","ar","adminLocalsAr","i18n","initReactI18next","init","lng","fallbackLng","useConfirmationWindow","open","setOpen","t","useTranslation","ConfirmationWindow","_jsxs","Dialog","_jsx","DialogTitle","title","DialogContent","children","DialogContentText","body","DialogActions","Button","variant","color","onClick","onConfirmationCallBk","autoFocus","useSession","UserSession","UserInfo","isUserAuthorized","authorityCode","grantedAuthority","authority","useWindow","windowState","setWindowState","Window","windowProps","Modal","sx","zIndex","theme","drawer","onClose","onCloseCallBack","Box","position","top","left","maxHeight","transform","height","width","minWidth","minHeight","overflow","bgcolor","display","flexDirection","alignItems","justifyContent","AppBar","Toolbar","FontAwesomeIcon","icon","windowIcon","marginRight","Typography","component","windowTitle","flexGrow","IconButton","Paper","padding","commonStoreSlice","initialState","stores","storeKeys","isAutoLoadLoaded","setStoresMetaData","Object","keys","setStoreData","storeKey","setAutoLoadLoaded","CommonStoreReducer","useApiActions","apiActionsProps","CommonStores","commonStores","session","reloadData","commonStoreKey","url","setData","findAll","loadRecordById","recordId","record","findById","findByIdParamName","saveRecord","savedRecord","save","deleteRecordById","result","deleteById","deleteByIdParamName","TemplateTextField","TextField","slotProps","inputLabel","shrink","label","_Fragment","not","a","b","filter","indexOf","intersection","TransferList","valueField","displayField","options","selectedOptions","setSelection","checked","setChecked","React","setLeft","right","setRight","leftFilterValue","setLeftFilterValue","rightFilterValue","setRightFilterValue","leftChecked","rightChecked","handleToggle","currentIndex","newChecked","push","splice","numberOfChecked","items","length","handleToggleAll","customList","unfilteredItems","side","option","toLocaleLowerCase","includes","Card","CardHeader","px","py","avatar","Checkbox","indeterminate","disabled","inputProps","subheader","fullWidth","onChange","event","target","Divider","List","dense","role","map","ListItemButton","cursor","ListItemIcon","tabIndex","disableRipple","ListItemText","id","primary","Grid2","container","spacing","margin","flex","direction","my","size","oldState","newState","concat","TemplateBarChart","BarChart","dataset","xAxis","dataKey","scaleType","valueLabel","series","labelField","split","TemplateDataCard","fontSize","fontWeight","TemplateGauge","Gauge","valueMax","total","TemplateLineChart","LineChart","LinearProgressWithLabel","mr","LinearProgress","Math","round","TemplateLineProgress","TemplatePieChart","chartData","index","PieChart","CheckBox","FormControlLabel","required","control","checkedValue","e","onChangeCallBack","unCheckedValue","ComboBox","AppLayoutState","AppLayout","Autocomplete","v","getValue","newValue","clearOnBlur","handleHomeEndKeys","getOptionLabel","renderOption","props1","slots","popper","Popper","renderInput","InputLabelProps","errorMessage","helperText","DATE_FORMAT","DATE_TIME_FORMAT","LIGHT_THEME_INITIAL_MAIN_COLOR","LIGHT_THEME_INITIAL_SECANDARY_COLOR","DARK_THEME_INITIAL_MAIN_COLOR","DARK_THEME_INITIAL_SECANDARY_COLOR","Datefield","LocalizationProvider","dateAdapter","AdapterMoment","DatePicker","moment","format","momentValue","isValid","textField","DatetimeField","DateTimePicker","formatMuiErrorMessage","code","args","URL","forEach","arg","searchParams","append","process","env","NODE_ENV","reactIsModule","exports","Symbol","for","c","d","f","g","h","k","l","m","n","p","q","r","w","x","y","z","u","$$typeof","A","reactIs_production_min","AsyncMode","ConcurrentMode","ContextConsumer","Element","ForwardRef","Fragment","Lazy","Portal","Profiler","StrictMode","Suspense","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isProfiler","isStrictMode","isSuspense","isValidElementType","typeOf","require$$0","hasSymbol","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_BLOCK_TYPE","REACT_FUNDAMENTAL_TYPE","REACT_RESPONDER_TYPE","REACT_SCOPE_TYPE","object","$$typeofType","ContextProvider","Memo","hasWarnedAboutDeprecatedIsAsyncMode","reactIs_development","console","isPortal","getOwnPropertySymbols","hasOwnProperty","prototype","propIsEnumerable","propertyIsEnumerable","objectAssign","assign","test1","String","getOwnPropertyNames","test2","i","fromCharCode","join","test3","letter","err","shouldUseNative","source","from","symbols","to","val","TypeError","toObject","s","arguments","key","call","ReactPropTypesSecret_1","has","Function","bind","printWarning","ReactPropTypesSecret","loggedTypeFailures","require$$1","Error","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","ex","stack","resetWarningCache","checkPropTypes_1","ReactIs","require$$2","require$$3","require$$4","emptyFunctionThatReturnsNull","factoryWithTypeCheckers","isValidElement","throwOnDirectAccess","ITERATOR_SYMBOL","iterator","ANONYMOUS","ReactPropTypes","array","createPrimitiveTypeChecker","bigint","bool","func","number","string","symbol","any","createChainableTypeChecker","arrayOf","typeChecker","propName","propFullName","PropTypeError","propValue","Array","isArray","getPropType","element","elementType","instanceOf","expectedClass","expectedClassName","constructor","node","isNode","objectOf","propType","oneOf","expectedValues","is","valuesString","JSON","stringify","getPreciseType","oneOfType","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","expectedTypes","checkerResult","expectedType","shape","shapeTypes","invalidValidatorError","exact","allKeys","this","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","isRequired","secret","cacheKey","chainedCheckType","every","iteratorFn","maybeIterable","getIteratorFn","step","entries","next","done","entry","RegExp","isSymbol","Date","PropTypes","emptyFunction","emptyFunctionWithReset","factoryWithThrowingShims","shim","getShim","propTypesModule","REACT_CONSUMER_TYPE","REACT_VIEW_TRANSITION_TYPE","REACT_CLIENT_REFERENCE","reactIs_production","SuspenseList","isSuspenseList","getModuleId","isPlainObject","item","getPrototypeOf","toStringTag","deepClone","output","deepmerge","clone","createBreakpoints","breakpoints","xs","sm","md","lg","xl","unit","other","sortedValues","breakpointsAsArray","sort","breakpoint1","breakpoint2","reduce","acc","obj","sortBreakpointsValues","up","down","between","start","end","endIndex","only","keyIndex","replace","borderRadius","responsivePropType","merge","defaultBreakpoints","defaultContainerQueries","containerQueries","containerName","handleBreakpoints","styleFromPropValue","themeBreakpoints","breakpointKeys","startsWith","some","match","containerKey","shorthand","matches","_formatErrorMessage","containerQuery","Number","isNaN","getContainerQuery","cssKey","capitalize","charAt","toUpperCase","slice","getPath","path","checkVars","vars","getStyleValue","themeMapping","propValueFinal","userValue","prop","cssProperty","themeKey","fn","propTypes","filterProps","properties","directions","aliases","marginX","marginY","paddingX","paddingY","getCssProperties","cache","memoize","property","dir","marginKeys","paddingKeys","spacingKeys","createUnaryUnit","defaultValue","themeSpacing","abs","isInteger","transformed","createUnarySpacing","transformer","resolveCssProperty","cssProperties","getStyleFromPropValue","compose","styles","handlers","borderTransform","createBorderStyle","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outline","outlineColor","gap","columnGap","rowGap","paletteTransform","sizingTransform","maxWidth","breakpointsValues","defaultSxConfig","backgroundColor","pt","pr","pb","pl","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd","mt","mb","ml","mx","marginTop","marginBottom","marginLeft","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd","displayPrint","textOverflow","visibility","whiteSpace","flexBasis","flexWrap","alignContent","order","flexShrink","alignSelf","justifyItems","justifySelf","gridColumn","gridRow","gridAutoFlow","gridAutoColumns","gridAutoRows","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea","bottom","boxShadow","boxSizing","font","fontFamily","fontStyle","letterSpacing","textTransform","lineHeight","textAlign","typography","styleFunctionSx","getThemeValue","config","unstable_sxConfig","traverse","sxInput","sxObject","emptyBreakpoints","breakpointsInput","breakpointsInOrder","createEmptyBreakpointObject","breakpointsKeys","styleKey","maybeFn","objects","union","Set","objectsHaveSameKeys","sorted","regex","sortContainerQueries","breakpointOutput","removeUnusedBreakpoints","unstable_createStyleFunctionSx","applyStyles","colorSchemes","getColorSchemeSelector","selector","palette","mode","useTheme","defaultTheme","contextTheme","useContext","ThemeContext","systemDefaultTheme","paletteInput","spacingInput","shapeInput","mui","argsInput","argument","createSpacing","muiTheme","components","themeInput","toContainerQuery","mediaQuery","attachCq","cssContainerQueries","unstable_sx","createTheme","extendSxProp","inSx","systemProps","otherProps","splitProps","finalSx","defaultGenerator","ClassNameGenerator","generate","configure","generator","reset","createClassNameGenerator","o","clsx","globalStateClasses","active","completed","expanded","focused","focusVisible","readOnly","selected","themeId","defaultClassName","generateClassName","BoxRoot","tag","stylesFactory","emStyled","styled","shouldForwardProp","forwardRef","inProps","useThemeWithoutDefault","className","as","createBox","globalStatePrefix","slot","globalStateClass","generateUtilityClass","generateUtilityClasses","root","hasDigitsOnly","str","test","isNumber","isNumeric","trim","capitalizeFirstLetter","isValidEmail","email","HtmlEditor","setValue","maxLength","customInlineFn","Style","contentState","stateFromHTML","editorState","setEditorState","EditorState","createWithContent","draftToHtml","convertToRaw","getCurrentContent","Editor","onEditorStateChange","newData","log","substring","handlePastedText","pastedText","currentContentLength","getPlainText","selectedTextLength","currentSelection","getSelection","isCollapsed","currentContent","startKey","getStartKey","endKey","getEndKey","isStartAndEndBlockAreTheSame","startSelectedTextLength","getBlockForKey","getLength","getStartOffset","endSelectedTextLength","getEndOffset","keyAfterEnd","getKeyAfter","currentKey","_getLengthOfSelectedText","alert","editorStyle","wrapperStyle","toolbarStyle","SystemLookupCombobox","setOptions","lookupType","loadLookupOptions","FormElementField","fieldInfo","formManager","formActions","formValues","fieldName","fieldType","hiddenFields","formProps","fieldSize","muiTextFieldProps","disabledFields","hidden","fieldLabel","onValueChangeCallBack","fieldHeight","formState","errors","toString","dateFormat","selectedRecord","optionDisplayField","optionValueField","FormAction","setConfirmationWindowState","confirmationMessage","actionFn","formActionProps","actionButtonVariant","actionButtonColor","preActionValidation","isConfirmationRequired","FormElementGroup","elements","generateDateTimeColumn","colDef","renderEditCell","api","setEditCellValue","field","valueParser","row","column","valueFormatter","generateComboColumn","valueGetter","renderCell","find","generateCheckBoxColumn","getElementFields","fields","childElement","getAllFields","constructValidationSchema","validationSchemaObj","required_error","invalid_type_error","optional","nullable","boolean","min","TemplateForm","initiallyHiddenFields","setHiddenFields","initialValues","setDisabledFields","formSchema","useForm","resolver","zodResolver","defaultValues","watch","pathParameters","useParams","formRouteRecordIdParamName","setFieldValue","fieldValue","hideField","oldValues","showField","disableField","enableField","idToLoad","recordIdToEdit","retrievedRecord","apiActions","formLoadCallBk","loadRecord","formElement","enabled","saveButtonSpecs","startIcon","handleSubmit","preSaveValidation","formSavedSuccessfullyCallBk","formCloseCallBk","cancelButtonSpecs","TemplateGridMultiRecordAction","rowAction","recordsToProcessActionOn","recordIdsToProcessActionOn","isActionAllowed","StyledQuickFilter","QuickFilter","StyledToolbarButton","ToolbarButton","ownerState","opacity","pointerEvents","transition","transitions","StyledTextField","overflowX","TemplateGridTopBar","isCreationAuthorized","templateProps","editAction","gridSelection","rowSelectionModel","keyColumnName","sRecords","sRecordIds","ids","selectedId","selectedRecords","selectedRecordIds","getGridSelection","editMode","handleCreateNewRecord","rowActions","gridActionProps","multiRecord","_createElement","gridLoadParametersValues","tBar","Tooltip","ColumnsPanelTrigger","render","GridViewColumnIcon","FilterPanelTrigger","Badge","badgeContent","filterCount","GridFilterListIcon","gridStateKey","clearGridState","orientation","flexItem","ExportExcel","MenuItem","QuickFilterTrigger","triggerProps","enterDelay","QuickFilterControl","controlProps","inputRef","placeholder","input","startAdornment","InputAdornment","endAdornment","QuickFilterClear","edge","TemplateGridRecordAction","iconStyle","getActionIconStyleForRecord","isActionVisibleForRecord","isActionDisabledForRecord","GridActionsCellItem","showInMenu","reloadGridAfterAction","currentNewRecordIndex","loadGridState","saved","parse","saveGridState","statePart","current","setItem","PIN_FIXED_COLUMNS","TemplateGrid","getLookupOptions","generateLookupGridColumn","useLookupGridColumn","generatedColumns","setGeneratedColumns","formElements","savedState","useMemo","gridProps","initialVisibilityState","columnVisibilityModel","existingFields","themeDirection","setColumnVisibilityModel","columnOrder","setColumnOrder","columnWidths","setColumnWidths","gridRowGroupingModel","setGridRowGroupingModel","columnGroupingModel","newLeft","pinnedColumns","newRight","setPinnedColumns","navigate","useNavigate","recordToDelete","setRecordToDelete","recordToEdit","setRecordToEdit","rowModesModel","setRowModesModel","adjustGridColumns","gridColumns","isDefaultEditable","columns","tableField","muiProps","editable","headerName","headerAlign","align","searchable","constructGridColumnsFromFields","setRowSelectionModel","validationSchema","isEditAllowed","isDeleteAllowed","deleteAction","setConfirmationWindowOpened","isNew","postActionCallBack","oldData","formModalHeight","formModalWidth","formModalMinHeight","formModalMinWidth","formModalIcon","formModalTitle","specs","modalHeight","modalWidth","modalMinHeight","modalMinWidth","modalIcon","modalTitle","FormWindow","setFormWindowState","actionColumn","isEnabled","getActions","disableDefaultAction","isInEditMode","GridRowModes","Edit","View","handleSaveRowClick","ignoreModifications","handleCancelRowEditClick","isEditActionVisibleForRecord","isActionEditDisabledForRecord","formRoute","handleEditRecord","isDeleteActionVisibleForRecord","isDeleteActionDisabledForRecord","structuredColumns","autoLoad","adjustedColumns","baseCols","col","fieldToCol","Map","Boolean","formComponent","editAuthorityKey","hideInfoBar","hideBackButton","girdIcon","gridTitle","gridLoadParameters","setGridLoadParametersValues","Accordion","defaultExpanded","AccordionSummary","expandIcon","GridExpandMoreIcon","AccordionDetails","DataGridPremium","toolbar","newRecord","oldRows","oldModel","removeItem","getRowId","showToolbar","rows","checkboxSelection","onRowModesModelChange","newModel","rowGroupingColumnMode","processRowUpdate","ZodError","validateRecord","requestObject","reloadAfterSave","onRowSelectionModelChange","gridSelectionModel","onColumnVisibilityModelChange","model","onColumnOrderChange","targetIndex","prevOrder","currentOrder","fromIndex","onColumnWidthChange","updatedWidths","rowGroupingModel","onRowGroupingModelChange","handleRowGroupChange","onPinnedColumnsChange","newPinedColumns","ChangeOrgForm","newOrgId","setNewOrgId","currentOrganization","userOrganizations","username","orgId","successChangeCallBackFn","SideBarSlice","toggleSideBarState","setSideBarState","SideBarReducer","MuiAppBar","easing","sharp","duration","leavingScreen","variants","easeOut","enteringScreen","TopBar","ChangeOrgWindow","setChangeOrgWindowState","SideBarState","SideBar","Avatar","src","appLogo","noWrap","appName","organizationEnName","organizationArName","prefix","iconName","language","nextLanguage","changeLanguage","rotation","DrawerHeader","mixins","findNavigationItemById","nodes","found","NavigationItems","actionPayload","DotIcon","verticalAlign","StyledTreeItemRoot","TreeItem2Root","grey","treeItemClasses","groupTransition","CustomTreeItemContent","TreeItem2Content","dark","main","content","alpha","contrastText","AnimatedCollapse","animated","Collapse","TransitionComponent","useSpring","in","StyledTreeItemLabelText","CustomLabel","expandable","appLayoutState","TreeItem2Label","isExpandable","reactChildren","CustomTreeItem","itemId","getRootProps","getContentProps","getIconContainerProps","getCheckboxProps","getLabelProps","getGroupTransitionProps","getDragAndDropOverlayProps","publicAPI","useTreeItem2","rootRef","TreeItem2Provider","TreeItem2IconContainer","TreeItem2Icon","TreeItem2Checkbox","TreeItem2DragAndDropOverlay","NavigationTree","filterData","mergedNavigationItems","enableAdministrationModule","businessNavigationItems","authoriedNavigationItems","RichTreeView","onItemClick","navigationItem","overflowY","Drawer","anchor","appVersion","cacheRtl","createCache","stylisPlugins","prefixer","rtlPlugin","cacheLtr","WidgetViewer","isWidgetLoading","setWidgetLoading","queryId","dataQueryId","parameterValues","getWidgetData","widgetType","verticalAxisField","spin","widgetTitle","horizontalAxisField","horizontalAxisLabel","DashboardViewer","dashboardInfo","setDashboardInfo","dashboardCode","dashboardName","dashboardTitle","dashboardParameters","widgets","dashboardParameterValues","setDashboardParameterValues","loadDashboardInfo","widget","OrganizationApplicationModuleGrid","systemApplicationModules","setSystemApplicationModules","getSystemApplicationModules","organizationId","selectedOrganization","OrganizationUnitTypeGrid","OrganizationUnitGrid","organizationUnitTypes","setOrganizationUnitTypes","getOrganizationUnitTypes","OrganizationRankGrid","OrgMemberRoleForm","setSelectedOptions","availableOptions","setAvailableOptions","orgMemberId","currentRoles","availableRoles","getOrgMemberRoles","success","closeModalFn","OrganizationMemberGrid","setSelectedRecord","OrganizationMemberRolesWindow","setOrganizationMemberRolesWindowState","SystemOrganizations","SystemOrganizationRanks","SystemOrganizationUnits","personId","selectedPerson","SystemApplicationModuleGrid","applicationId","selectedApplication","systemApplicationId","SystemApplicationAuthorityGrid","RoleAuthoritiesForm","availableAuthorities","setAvailableAuthorities","roleId","appId","selectedAuthorities","getRoleAuthorities","SystemApplicationRoleGrid","selectedRole","setSelectedRole","RoleaAuthoritiesWindow","setRoleAuthoritiesWindowState","LookupGrid","DataQueryParameterGrid","SystemEntityParameters","ReportParameterGrid","reportId","getGridColumnsFromRecord","ExcelReportViewer","reportData","setReportData","reloadReport","ReportViewer","blobUrl","setBlobUrl","setErrorMessage","excelReportData","setExcelReportData","reportViewerState","setReportViewerState","reportInfo","setReportInfo","reportParametersValues","setReportParametersValues","reportParametersElements","setReportParametersElements","getFormElementsFromReportParameters","reportParameters","reportParameter","parameterLabel","parameterCode","parameterType","mandatory","runReport","reportInfoProp","reportType","reportCode","resultMode","jasperOutPutFileType","contentDisposition","headers","filename","file","createObjectURL","blob","link","href","download","click","removeChild","revokeObjectURL","byPassParameterEntry","loadReportData","reportName","validationObject","Blueprint","useSysDatasource","isMandatory","isVisible","datasourceConId","reportBluePrintId","reportExcelDataQueryId","reportJasperName","reportJasperPath","Jasper","Excel","adjustFormAccordingToReportType","validationObjects","MailRecipientGrid","mailTemplateId","recipientMail","MailBodyGrid","SystemDataQueries","MailAttachmentGrid","SystemReports","Gmail","mailHost","mailPort","mailUsername","mailPassword","mailProtocol","isMailSmtpAuthEnabled","isMailStarttlsEnabled","isSmtpSSlEnabled","azureGraphApiClientId","azureGraphApiClientSecret","azureGraphApiTenantId","azureGraphApiScope","azureGraphApiEmailId","Azure","adjustFormAccordingToEngineType","WorkflowDocumentStatusGrid","workflowDocumentId","WorkflowDocumentActionMailGrid","SystemMailTemplates","actionId","documentActionId","WorkflowDocumentActionGrid","ActionMailsWindow","setActionMailWindowState","workflowStates","setWorkflowStates","loadWorkFlowDocumentStates","seriesKeys","verticalAxisLabel","ColumnChart","CircularProgress","adjustFormAccordingToWidgetType","DashboardWidgetGrid","SystemWidgets","dashboardId","SYSTEM_ROUTES","ApplicationModulesWindow","setApplicationWindowState","OrgUnitTypesWindow","setOrgUnitTypesWindowState","OrgUnitsWindow","setOrgUnitsWindowState","OrgRanksWindow","setOrgRanksWindowState","setSelectedPerson","OrganizationMembersWindow","setOrganizationMemberWindowState","refSource","setApplicationModulesWindowState","ApplicationAuthoritiessWindow","setApplicationAuthoritiesWindowState","ApplicationRolesWindow","setApplicationRolesWindowState","ApplicationLookupsWindow","setApplicationLookupsWindowState","DataQueryParameterWindow","setDataQueryParameterWindow","SystemDataSources","multiline","SystemDataSourceType","SystemParameterTypes","ReporTrialWindow","setReportTrialWindowState","ReportParameterWindow","setReportParameterWindowState","SystemBluePrints","MailRecipentsWindow","setMailRecipientsWindowState","MailBodiesWindow","setMailBodiesWindowState","MailAttachmentWindow","setMailAttachmentWindowState","callBkFn","periodical","periodType","periodValue","startSendingAt","mailEngine","WorkflowStatusWindow","setWorkflowStatusWindowState","WorkflowActionWindow","setWorkflowActionWindowState","useSystemCon","SystemWidgetTypes","WidgetsWindows","setWidgetsWindowState","RouteWrapper","MainContent","businessRoutes","loadCommonStores","CacheProvider","Routes","route","Route","Puller","MobileDrawer","toggleDrawer","SwipeableDrawer","onOpen","swipeAreaWidth","disableSwipeToOpen","ModalProps","keepMounted","LoadingMask","loadingMask","Backdrop","Login","appInfo","setUsername","password","setPassword","isLoginInProcess","setIsLoginInProcess","UserSessionState","handleLogin","userSession","loginTheme","MuiCssBaseline","styleOverrides","appTheme","primaryColor","secondary","secondaryColor","checkUserSession","ThemeProvider","onKeyDown","loading","Main","Layout","BrowserRouter","ToastContainer","draggable","CssBaseline","AppInfoSlice","documentTitle","muiPremiumKey","businessReduxReducers","businessCommonStoresMetaData","light","setAppInfo","AppInfoActions","AppInfoReducer","ADMINISTRATION_STORES","SystemReportTypes","SystemMailRecipientTypes","App","LicenseInfo","setLicenseKey","LightThemeOptions","background","default","paper","DarkThemeOptions","themeOptions","library","add","fab","far","fas","BaseApp","systemReducers","store","configureStore","Provider"],"mappings":"63IAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAE,GAC9B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBU,CAqBxD,wTCvBae,GAAc,CAACC,EAAa,OACvC,MAAOC,EAAUC,GAAeC,EAASC,OAAOC,WAAaL,GAQ7D,OANAM,GAAU,KACR,MAAMC,EAAe,IAAML,EAAYE,OAAOC,WAAaL,GAE3D,OADAI,OAAOI,iBAAiB,SAAUD,GAC3B,IAAMH,OAAOK,oBAAo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AA3jD","x_google_ignoreList":[0,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74]}