@asaleh37/ui-base 25.6.19-5 → 25.6.19-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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/layout/NavigationTree.tsx +5 -4
package/dist/index.mjs.map
CHANGED
|
@@ -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/redux/features/common/UserSessionSlice.ts","../src/hooks/useAxios.tsx","../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/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","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/SystemLookupCombobox.tsx","../src/components/templates/DataEntryTemplates/TemplateDataGrid/DataGridColumnsUtil.tsx","../src/components/templates/DataEntryTemplates/DataEntryUtil.ts","../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/FormElementField.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormAction.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementGroup.tsx","../src/components/templates/attachment/AttachmentImageViewer.tsx","../src/components/templates/attachment/AttachmentCard.tsx","../src/components/templates/attachment/AttachmentPanel.tsx","../src/components/templates/workflow/WorkflowDocumentTimeLine.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/templates/report/ExcelReportViewer.tsx","../src/components/templates/report/ReportViewer.tsx","../src/components/templates/workflow/WorkflowDocumentPanel.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/TemplateForm.tsx","../src/components/templates/workflow/WorkflowRouteComponent.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/visuals/WidgetViewer.tsx","../src/components/templates/visuals/DashboardViewer.tsx","../src/components/templates/visuals/DashboardRouteView.tsx","../src/components/common/ChangeOrgForm.tsx","../src/redux/features/common/SideBarSlice.ts","../src/hooks/useInterval.tsx","../src/components/common/NotificationItem.tsx","../src/layout/NotificationButton.tsx","../src/layout/TopBar.tsx","../src/locales/i18n.ts","../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/administration/admin/OrgMemberRoleForm.tsx","../src/components/administration/admin/OrganizationMemberGrid.tsx","../src/components/administration/admin/OrganizationRankGrid.tsx","../src/components/administration/admin/OrganizationUnitGrid.tsx","../src/components/administration/admin/OrganizationUnitTypeGrid.tsx","../src/components/administration/admin/SystemApplicationAuthorityGrid.tsx","../src/components/administration/admin/SystemApplicationModuleGrid.tsx","../src/components/administration/admin/RoleAuthoritiesForm.tsx","../src/components/administration/admin/SystemApplicationRoleGrid.tsx","../src/components/administration/dev/DataQueryParameterGrid.tsx","../src/components/administration/dev/LookupGrid.tsx","../src/components/administration/dev/ReportParameterGrid.tsx","../src/components/administration/dev/AttachmentConfigGrid.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/components/administration/admin/OrganizationApplicationModuleGrid.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/administration/dev/WorkflowDocumentMailLogGrid.tsx","../src/components/administration/dev/MailNotificationQueueGrid.tsx","../src/components/administration/dev/NotificationGrid.tsx","../src/components/common/MyNotificationsPanel.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/locales/english/index.ts","../src/locales/arabic/index.ts","../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 { 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 { toast } from \"react-toastify\";\r\nimport axios, { ResponseType } from \"axios\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport useLoadingMask from \"./useLoadingMask\";\r\nimport { UserSessionActions } from \"../redux/features/common/UserSessionSlice\";\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 headers?: any;\r\n responseType?: ResponseType;\r\n}\r\n\r\nexport interface UploadAttachmentRequest {\r\n endPointURI: string;\r\n showMask?: Boolean;\r\n parameters?: any;\r\n loadingMessage?: string;\r\n successCallBkFn?: Function;\r\n failureCallBkFn?: Function;\r\n files: FileList;\r\n}\r\n\r\nconst useAxios = () => {\r\n const mask = useLoadingMask();\r\n const dispatch = useDispatch();\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 dispatch(UserSessionActions.setUnAuthenticated());\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 (props: APIRequest) => {\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 headers: props.headers,\r\n responseType: props?.responseType,\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 (props: APIRequest) => {\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 responseType: props?.responseType,\r\n headers: props?.headers,\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 (props: APIRequest) => {\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 responseType: props?.responseType,\r\n headers: props?.headers,\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 handleUploadRequest = async (props: UploadAttachmentRequest) => {\r\n if (props.files === null || props.files.length === 0) {\r\n toast.error(\"You must add files to upload\");\r\n return \"ERROR\";\r\n }\r\n const formData = new FormData();\r\n for (const file of props.files) {\r\n formData.append(\"files\", file);\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(props.endPointURI, formData, {\r\n params: props?.parameters,\r\n headers: {\r\n \"Content-Type\": \"multipart/form-data\",\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 handleUploadRequest,\r\n };\r\n};\r\n\r\nexport default useAxios;\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 authorityCode === \"DEVELOPMENT_ADMIN\" &&\r\n (grantedAuthority?.authority === \"DEVELOPMENT_ADMIN\" ||\r\n grantedAuthority?.authority === \"ORGANIZATION_ADMIN\")\r\n ) {\r\n return true;\r\n } else if (\r\n authorityCode === \"ORGANIZATION_ADMIN\" &&\r\n grantedAuthority?.authority === \"ORGANIZATION_ADMIN\"\r\n ) {\r\n return true;\r\n } else if (\r\n authorityCode !== \"DEVELOPMENT_ADMIN\" &&\r\n authorityCode !== \"ORGANIZATION_ADMIN\"\r\n ) {\r\n if (\r\n grantedAuthority?.authority === \"ORGANIZATION_ADMIN\" ||\r\n grantedAuthority?.authority === \"DEVELOPMENT_ADMIN\" ||\r\n grantedAuthority?.authority === \"SYSTEM_ADMIN\" ||\r\n grantedAuthority?.authority === authorityCode\r\n ) {\r\n return true;\r\n }\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 type CommonStoresInterface = {\r\n stores: { [key: string]: StoreMetaData };\r\n storeKeys: Array<String>;\r\n};\r\n\r\ninterface setStoreDataProps {\r\n storeKey: string;\r\n data: Array<any>;\r\n}\r\n\r\nexport type 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};\r\n\r\nconst commonStoreSlice = createSlice({\r\n name: \"commonStores\",\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 },\r\n});\r\n\r\nexport const { setStoreData, setStoresMetaData } = 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 >\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 <\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 { 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","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/public/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 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 } else {\r\n const column: TemplateGridColDef = {\r\n field: tableField.fieldName,\r\n ...tableField?.gridProps?.muiProps,\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","/**\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\r\nexport function timeAgo(dateInput, appDirection: \"ltr\" | \"rtl\") {\r\n const date = new Date(dateInput);\r\n const now = new Date();\r\n const diffInSeconds = Math.floor((date - now) / 1000); // Note: future is positive\r\n const absDiff = Math.abs(diffInSeconds);\r\n\r\n const locale = appDirection === \"rtl\" ? \"ar\" : \"en\";\r\n\r\n const rtf = new Intl.RelativeTimeFormat(locale, { numeric: \"auto\" });\r\n\r\n const units = [\r\n { unit: \"year\", seconds: 31536000 },\r\n { unit: \"month\", seconds: 2592000 },\r\n { unit: \"week\", seconds: 604800 },\r\n { unit: \"day\", seconds: 86400 },\r\n { unit: \"hour\", seconds: 3600 },\r\n { unit: \"minute\", seconds: 60 },\r\n { unit: \"second\", seconds: 1 },\r\n ];\r\n\r\n for (const { unit, seconds } of units) {\r\n const delta = Math.floor(diffInSeconds / seconds);\r\n if (Math.abs(delta) > 1) {\r\n return rtf.format(delta, unit);\r\n }\r\n }\r\n\r\n return locale === \"ar\" ? \"الآن\" : \"just now\";\r\n}\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 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 ) : null}\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 { useState } from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { Avatar, SxProps } from \"@mui/material\";\r\n\r\ntype AttachmentImageViewerProps = {\r\n attachmentId?: number;\r\n attachmentCode?: string;\r\n refKey?: string;\r\n category?: string;\r\n showAsAvatar?: boolean;\r\n style?: SxProps;\r\n};\r\n\r\nconst AttachmentImageViewer: React.FC<AttachmentImageViewerProps> = (props) => {\r\n const apiBaseUrl = useSelector(\r\n (state: any) => state.AppInfo.value.apiBaseUrl\r\n );\r\n let imagePath = apiBaseUrl + \"/api/v1/attachment/\";\r\n if (props?.attachmentId) {\r\n imagePath += \"download?attachmentId=\" + props.attachmentId;\r\n } else {\r\n imagePath += `downloadImage?attachmentCode=${props.attachmentCode}&refKey=${props.refKey}`;\r\n if (props?.category) {\r\n imagePath += `&category=${props.category}`;\r\n }\r\n }\r\n const [imgSrc, setImgSrc] = useState(imagePath);\r\n return props?.showAsAvatar ? (\r\n <Avatar src={imgSrc} sx={props.style} />\r\n ) : (\r\n <img\r\n src={imgSrc}\r\n alt=\"image\"\r\n onError={() => setImgSrc(\"/no_image.png\")}\r\n style={{\r\n width: \"100%\",\r\n height: \"100%\",\r\n objectFit: \"cover\",\r\n display: \"block\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default AttachmentImageViewer;\r\n","import Card from \"@mui/material/Card\";\r\nimport CardActions from \"@mui/material/CardActions\";\r\nimport CardContent from \"@mui/material/CardContent\";\r\nimport CardMedia from \"@mui/material/CardMedia\";\r\nimport Button from \"@mui/material/Button\";\r\nimport Typography from \"@mui/material/Typography\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { IconButton, Tooltip } from \"@mui/material\";\r\nimport { useAxios, useConfirmationWindow, useSession } from \"../../../hooks\";\r\nimport AttachmentImageViewer from \"./AttachmentImageViewer\";\r\n\r\nexport type attachment = {\r\n attachmentCode: string;\r\n setAttachmentConfig: (props: any) => void;\r\n id: number;\r\n attachmentConfigId: number;\r\n attachmentSize: number;\r\n category: string;\r\n docType: string;\r\n fileName: string;\r\n refKey: string;\r\n allowDelete?: boolean;\r\n downloadAuthorityKey?: string;\r\n remark: string;\r\n};\r\n\r\nconst AttachmentCard: React.FC<attachment> = (props) => {\r\n const { handleGetRequest, handleDeleteRequest } = useAxios();\r\n const { isUserAuthorized } = useSession();\r\n let allowDownload = true;\r\n if (props?.downloadAuthorityKey) {\r\n allowDownload = isUserAuthorized(props.downloadAuthorityKey);\r\n }\r\n const handleDelete = async () => {\r\n await handleDeleteRequest({\r\n endPointURI: \"api/v1/attachment/archive\",\r\n parameters: {\r\n attachmentCode: props.attachmentCode,\r\n refKey: props.refKey,\r\n attachmentId: props.id,\r\n },\r\n successCallBkFn: (response) => {\r\n props.setAttachmentConfig(response.data);\r\n },\r\n showMask: true,\r\n });\r\n };\r\n const { ConfirmationWindow, setOpen } = useConfirmationWindow({\r\n title: \"Confirmation\",\r\n body: \"Are you sure you want to delete this attachment?\",\r\n onConfirmationCallBk: () => {\r\n handleDelete();\r\n },\r\n });\r\n\r\n const handleDownload = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/attachment/download\",\r\n parameters: {\r\n attachmentId: props.id,\r\n },\r\n showMask: true,\r\n responseType: \"blob\",\r\n successCallBkFn: (response) => {\r\n const url = window.URL.createObjectURL(new Blob([response.data]));\r\n const link = document.createElement(\"a\");\r\n link.href = url;\r\n link.setAttribute(\"download\", props.fileName);\r\n document.body.appendChild(link);\r\n link.click();\r\n link.remove();\r\n },\r\n });\r\n };\r\n\r\n return (\r\n <>\r\n <ConfirmationWindow />\r\n <Card sx={{ width: 300, border: \"0.5px solid gray\" }}>\r\n <CardMedia\r\n sx={{\r\n height: 140,\r\n width: 300,\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n {props?.docType.toLocaleLowerCase().includes(\"image\") ? (\r\n <AttachmentImageViewer attachmentId={props.id} />\r\n ) : (\r\n <FontAwesomeIcon icon=\"file\" size=\"3x\" />\r\n )}\r\n </CardMedia>\r\n <CardContent>\r\n <Typography gutterBottom variant=\"h6\" component=\"div\">\r\n {props.fileName}\r\n </Typography>\r\n <Typography variant=\"body2\" sx={{ color: \"text.secondary\" }}>\r\n {`File Size: ${props?.attachmentSize || \"unknown\"} kb`}\r\n </Typography>\r\n <Typography variant=\"body2\" sx={{ color: \"text.secondary\" }}>\r\n {`File Type: ${props?.category || \"NA\"}`}\r\n </Typography>\r\n <Typography variant=\"body2\" sx={{ color: \"text.secondary\" }}>\r\n {props.remark}\r\n </Typography>\r\n </CardContent>\r\n <CardActions>\r\n {props?.allowDelete ? (\r\n <IconButton\r\n size=\"small\"\r\n onClick={() => {\r\n setOpen(true);\r\n }}\r\n >\r\n <Tooltip title=\"Delete Attachment\">\r\n <FontAwesomeIcon icon=\"trash\" />\r\n </Tooltip>\r\n </IconButton>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n <div style={{ flex: 1 }}></div>\r\n {allowDownload ? (\r\n <IconButton size=\"small\" onClick={handleDownload}>\r\n <Tooltip title=\"Download Attachment\">\r\n <FontAwesomeIcon icon=\"download\" />\r\n </Tooltip>\r\n </IconButton>\r\n ) : (\r\n <></>\r\n )}\r\n </CardActions>\r\n </Card>\r\n </>\r\n );\r\n};\r\n\r\nexport default AttachmentCard;\r\n","import { useEffect, useState } from \"react\";\r\nimport { useAxios, useSession } from \"../../../hooks\";\r\nimport { toast } from \"react-toastify\";\r\nimport { Box, Button, Grid2, Paper } from \"@mui/material\";\r\nimport ComboBox from \"../DataEntryTemplates/TemplateDataForm/FormFields/ComboBox\";\r\nimport TemplateTextField from \"../DataEntryTemplates/TemplateDataForm/FormFields/TemplateTextField\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport AttachmentCard from \"./AttachmentCard\";\r\n\r\nexport type AttachmentPanelProps = {\r\n attachmentCode: string;\r\n enableAttachment?: boolean;\r\n refKey: string;\r\n};\r\n\r\ntype AttachmentConfig = {\r\n id: number;\r\n attachmentCode: string;\r\n uploadDirectory: string;\r\n storageType: \"FILE_SYSTEM\" | \"SFTP\";\r\n maxAllowedNumberOfFiles: number;\r\n isCategoryRequired?: boolean;\r\n attachmentCategories?: string;\r\n uploadAuthorityKey?: string;\r\n downloadAuthorityKey?: string;\r\n allowedFileTypes?: string;\r\n refKeyAttachments?: Array<any>;\r\n};\r\n\r\nconst AttachmentPanel: React.FC<AttachmentPanelProps> = (props) => {\r\n const { handleUploadRequest, handleGetRequest } = useAxios();\r\n const [files, setFiles] = useState<FileList | null>(null);\r\n const [attachmentCategories, setAttachmentCategories] = useState<\r\n Array<string>\r\n >([]);\r\n const [remark, setRemark] = useState(null);\r\n const [selectedCategory, setSelectedCategory] = useState(null);\r\n const [allowedTypes, setAllowedTypes] = useState<Array<string>>([]);\r\n const [attachmentConfig, setAttachmentConfig] =\r\n useState<AttachmentConfig>(null);\r\n\r\n const loadAttachmentConfig = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/attachment/info\",\r\n showMask: true,\r\n parameters: {\r\n attachmentCode: props.attachmentCode,\r\n refKey: props.refKey,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setAttachmentConfig(response.data);\r\n },\r\n });\r\n };\r\n\r\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\r\n if (e.target.files) {\r\n for (const file of e.target.files) {\r\n const fileExt = getFileExtension(file.name);\r\n if (allowedTypes.length > 0 && !allowedTypes.includes(fileExt)) {\r\n toast.error(fileExt + \" is not allowed\");\r\n return;\r\n }\r\n }\r\n }\r\n setFiles(e.target.files);\r\n };\r\n const { isUserAuthorized } = useSession();\r\n\r\n const handleUpload = async () => {\r\n let existingAttachments = attachmentConfig?.refKeyAttachments.length || 0;\r\n if (\r\n attachmentConfig?.maxAllowedNumberOfFiles &&\r\n files.length + existingAttachments >\r\n attachmentConfig.maxAllowedNumberOfFiles\r\n ) {\r\n toast.error(\r\n \"Maximum number of attachments is \" +\r\n attachmentConfig.maxAllowedNumberOfFiles\r\n );\r\n return;\r\n }\r\n if (\r\n attachmentConfig?.isCategoryRequired === true &&\r\n attachmentCategories.length > 0 &&\r\n (selectedCategory == null ||\r\n selectedCategory === undefined ||\r\n selectedCategory === \"\")\r\n ) {\r\n toast.error(\"You must selected document type to process your request\");\r\n return;\r\n }\r\n if (!files) {\r\n toast.error(\"You must add files to upload\");\r\n return;\r\n }\r\n await handleUploadRequest({\r\n endPointURI: \"api/v1/attachment/upload\",\r\n showMask: true,\r\n loadingMessage: \"Uploading files ... please wait\",\r\n parameters: {\r\n refKey: props.refKey,\r\n attachmentCode: props.attachmentCode,\r\n remark,\r\n category: selectedCategory,\r\n },\r\n files,\r\n successCallBkFn: (response) => {\r\n setAttachmentConfig(response.data);\r\n setFiles(null);\r\n setSelectedCategory(null);\r\n setRemark(null);\r\n toast.success(\"Your request has been process successfully\");\r\n },\r\n });\r\n };\r\n const getFileExtension = (name: string) => {\r\n return name.split(\".\").pop()?.toLowerCase() || \"\";\r\n };\r\n\r\n useEffect(() => {\r\n loadAttachmentConfig();\r\n }, [props.refKey, props.attachmentCode]);\r\n\r\n useEffect(() => {\r\n if (attachmentConfig?.allowedFileTypes) {\r\n setAllowedTypes(attachmentConfig.allowedFileTypes.split(\",\"));\r\n } else {\r\n setAllowedTypes([]);\r\n }\r\n if (attachmentConfig?.attachmentCategories) {\r\n const cats = [];\r\n for (const category of attachmentConfig.attachmentCategories.split(\",\")) {\r\n cats.push({ value: category });\r\n }\r\n setAttachmentCategories(cats);\r\n } else {\r\n setAttachmentCategories([]);\r\n }\r\n }, [attachmentConfig]);\r\n let showAttachments = true;\r\n if (\r\n attachmentConfig?.downloadAuthorityKey &&\r\n !isUserAuthorized(attachmentConfig?.downloadAuthorityKey)\r\n ) {\r\n showAttachments = false;\r\n }\r\n let allowUpload = true;\r\n if (props?.enableAttachment === false) {\r\n allowUpload = false;\r\n }\r\n if (\r\n attachmentConfig?.uploadAuthorityKey &&\r\n !isUserAuthorized(attachmentConfig.uploadAuthorityKey)\r\n ) {\r\n allowUpload = false;\r\n }\r\n\r\n return (\r\n <Paper\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n width: \"100%\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n overflow: \"hidden\",\r\n flexGrow: 1,\r\n }}\r\n >\r\n {allowUpload ? (\r\n <>\r\n {attachmentConfig?.maxAllowedNumberOfFiles === undefined ||\r\n attachmentConfig?.maxAllowedNumberOfFiles === null ||\r\n attachmentConfig?.maxAllowedNumberOfFiles >\r\n attachmentConfig.refKeyAttachments.length ? (\r\n <>\r\n <h3>\r\n <FontAwesomeIcon\r\n icon=\"paperclip\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n Attachment Uploader\r\n </h3>\r\n <input\r\n type=\"file\"\r\n style={{ margin: 20 }}\r\n accept={attachmentConfig?.allowedFileTypes}\r\n multiple\r\n onChange={handleChange}\r\n />\r\n {attachmentCategories.length > 0 ? (\r\n <ComboBox\r\n label=\"Attachment Type\"\r\n sx={{ width: 300, m: 1 }}\r\n options={attachmentCategories}\r\n displayField=\"value\"\r\n valueField=\"value\"\r\n value={selectedCategory}\r\n onChangeCallBack={(v) => {\r\n setSelectedCategory(v);\r\n }}\r\n />\r\n ) : (\r\n <></>\r\n )}\r\n\r\n <TemplateTextField\r\n label=\"Remark\"\r\n value={remark}\r\n onChange={(event) => setRemark(event.target.value)}\r\n multiline={true}\r\n sx={{ width: 300, m: 1 }}\r\n rows={3}\r\n />\r\n <Button sx={{ m: 1 }} variant=\"contained\" onClick={handleUpload}>\r\n Upload\r\n </Button>\r\n </>\r\n ) : (\r\n <></>\r\n )}\r\n </>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n {showAttachments && attachmentConfig?.refKeyAttachments?.length > 0 ? (\r\n <>\r\n <h3>\r\n <FontAwesomeIcon\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n icon=\"paperclip\"\r\n />\r\n Attachments\r\n </h3>\r\n <Grid2\r\n container\r\n spacing={2}\r\n sx={{ overflow: \"auto\", padding: 1, justifyContent: \"center\" }}\r\n >\r\n {attachmentConfig?.refKeyAttachments.map((refKeyAttachment) => {\r\n return (\r\n <Grid2\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 <AttachmentCard\r\n {...refKeyAttachment}\r\n attachmentCode={props.attachmentCode}\r\n setAttachmentConfig={setAttachmentConfig}\r\n downloadAuthorityKey={attachmentConfig.downloadAuthorityKey}\r\n allowDelete={allowUpload}\r\n />\r\n </Grid2>\r\n );\r\n })}\r\n </Grid2>\r\n </>\r\n ) : (\r\n <></>\r\n )}\r\n </Paper>\r\n );\r\n};\r\n\r\nexport default AttachmentPanel;\r\n","import Typography from \"@mui/material/Typography\";\r\nimport { workflowDocumentActionHistory } from \"./WorkflowDocumentPanel\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { Avatar, Box, Divider, Paper, Stack } from \"@mui/material\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport AttachmentImageViewer from \"../attachment/AttachmentImageViewer\";\r\n\r\ntype WorkflowDocumentTimeLineProp = {\r\n actionHistory: Array<workflowDocumentActionHistory>;\r\n};\r\n\r\nconst WorkflowDocumentTimeLine: React.FC<WorkflowDocumentTimeLineProp> = (\r\n props\r\n) => {\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const { t } = useTranslation();\r\n return (\r\n <Paper\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n flexGrow: 1,\r\n padding: 1,\r\n margin: 1,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n width: \"100%\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n fontSize: 18,\r\n fontWeight: \"bold\",\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n icon=\"history\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {t(\"WF_ACTION_HISTORY_LABEL\")}\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 overflowY: \"auto\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n }}\r\n >\r\n {props.actionHistory.map((actionHistoryRecord, index) => {\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 marginBottom: 2,\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flex: 1,\r\n flexDirection: \"column\",\r\n alignItems: \"flex-end\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <Box sx={{ marginBottom: 0.2 }}>\r\n {actionHistoryRecord.actionTime}\r\n </Box>\r\n <Typography>\r\n via {actionHistoryRecord.actionMethod}\r\n </Typography>\r\n </Box>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n position: \"relative\",\r\n marginRight: 2,\r\n marginLeft: 2,\r\n }}\r\n >\r\n <AttachmentImageViewer\r\n showAsAvatar={true}\r\n attachmentCode=\"EMPLOYEE_PHOTOS\"\r\n refKey={actionHistoryRecord?.personId + \"\" || \"0\"}\r\n style={{ m: 1, width: 70, height: 70 }}\r\n />\r\n {index !== props.actionHistory.length - 1 ? (\r\n <Box sx={{ marginTop: 11, position: \"absolute\" }}>|</Box>\r\n ) : (\r\n <></>\r\n )}\r\n </Box>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flex: 1,\r\n flexDirection: \"column\",\r\n alignItems: \"flex-start\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <Box sx={{ width: \"100%\" }}>\r\n {AppLayout.appDirection === \"ltr\"\r\n ? `${actionHistoryRecord?.documentActionEnName}`\r\n : `${actionHistoryRecord?.documentActionArName}`}\r\n {actionHistoryRecord?.actionComment\r\n ? \" - \" + actionHistoryRecord.actionComment\r\n : \"\"}\r\n </Box>\r\n <Box sx={{ width: \"100%\" }}>\r\n {AppLayout.appDirection === \"ltr\"\r\n ? `${actionHistoryRecord?.employeeEnName}`\r\n : `${actionHistoryRecord?.employeeArName}`}\r\n </Box>\r\n </Box>\r\n </Box>\r\n </>\r\n );\r\n })}\r\n </Box>\r\n </Paper>\r\n );\r\n};\r\n\r\nexport default WorkflowDocumentTimeLine;\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\nimport AttachmentPanel from \"../../attachment/AttachmentPanel\";\r\nimport WorkflowDocumentPanel from \"../../workflow/WorkflowDocumentPanel\";\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 { t } = useTranslation();\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const [selectedRecord, setSelectedRecord] = useState<any>({});\r\n const [attachmentPanelEnabledForRecord, setAttachmentPanelEnabledForRecord] =\r\n useState<boolean>(true);\r\n const { getLookupOptions } = useLookupGridColumn();\r\n const { Window: AttachmentWindow, setWindowState: setAttachmentWindowState } =\r\n useWindow({\r\n windowTitle: t(props.gridTitle) + \" Attachments\",\r\n windowIcon: \"paperclip\",\r\n width: \"fit-content\",\r\n height: \"fit-content\",\r\n minHeight: 500,\r\n minWidth: \"50%\",\r\n onCloseCallBack: () => {\r\n props?.apiActions?.reloadData(props.gridLoadParametersValues);\r\n },\r\n });\r\n const { Window: WorkFlowWindow, setWindowState: setWorkFlowWindowState } =\r\n useWindow({\r\n windowTitle: t(props.gridTitle) + \" Approvals\",\r\n windowIcon: \"stamp\",\r\n width: \"fit-content\",\r\n height: \"fit-content\",\r\n minHeight: 500,\r\n minWidth: \"80%\",\r\n onCloseCallBack: () => {\r\n props?.apiActions?.reloadData(props.gridLoadParametersValues);\r\n },\r\n });\r\n const [generatedColumns, setGeneratedColumns] = useState<\r\n Array<TemplateGridColDef>\r\n >([]);\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 (\r\n record[props?.keyColumnName || \"id\"] &&\r\n record[props?.keyColumnName || \"id\"] > 0 &&\r\n props?.attachment\r\n ) {\r\n actions?.push(\r\n <GridActionsCellItem\r\n icon={\r\n <Tooltip title={\"Attachments\"}>\r\n <FontAwesomeIcon icon={\"paperclip\"} />\r\n </Tooltip>\r\n }\r\n label={\"Attachments\"}\r\n className=\"textPrimary\"\r\n color=\"inherit\"\r\n onClick={() => {\r\n setSelectedRecord(record);\r\n if (props?.attachment?.enableAttachFn) {\r\n setAttachmentPanelEnabledForRecord(\r\n props.attachment.enableAttachFn(record)\r\n );\r\n } else {\r\n setAttachmentPanelEnabledForRecord(true);\r\n }\r\n setAttachmentWindowState(true);\r\n }}\r\n />\r\n );\r\n }\r\n if (\r\n record[props?.keyColumnName || \"id\"] &&\r\n record[props?.keyColumnName || \"id\"] > 0 &&\r\n props?.workFlowDocumentCode\r\n ) {\r\n actions?.push(\r\n <GridActionsCellItem\r\n icon={\r\n <Tooltip title={\"Approvals\"}>\r\n <FontAwesomeIcon icon={\"stamp\"} />\r\n </Tooltip>\r\n }\r\n label={\"Approvals\"}\r\n className=\"textPrimary\"\r\n color=\"inherit\"\r\n onClick={() => {\r\n setSelectedRecord(record);\r\n setWorkFlowWindowState(true);\r\n }}\r\n />\r\n );\r\n }\r\n if (\r\n record[props?.keyColumnName || \"id\"] &&\r\n record[props?.keyColumnName || \"id\"] > 0 &&\r\n props?.rowActions\r\n ) {\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 (props?.attachment ? 30 : 0) +\r\n (props?.workFlowDocumentCode ? 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 props.apiActions.reloadData(props?.gridLoadParametersValues);\r\n }, [session.UserInfo?.currentOrganization]);\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 keyColumnName={props.keyColumnName}\r\n attachment={props.attachment}\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 {props?.attachment ? (\r\n <AttachmentWindow>\r\n <AttachmentPanel\r\n attachmentCode={props.attachment.attachmentCode}\r\n refKey={selectedRecord[props?.keyColumnName || \"id\"]}\r\n enableAttachment={attachmentPanelEnabledForRecord}\r\n />\r\n </AttachmentWindow>\r\n ) : (\r\n <></>\r\n )}\r\n {props?.workFlowDocumentCode ? (\r\n <WorkFlowWindow>\r\n <WorkflowDocumentPanel\r\n workFlowDocumentCode={props.workFlowDocumentCode}\r\n refDocumentId={selectedRecord[props?.keyColumnName || \"id\"]}\r\n postActionCallBk={() => {\r\n debugger;\r\n setWorkFlowWindowState(false);\r\n props.apiActions.reloadData(props.gridLoadParametersValues);\r\n }}\r\n cancelActionCallBk={() => {\r\n setWorkFlowWindowState(false);\r\n props.apiActions.reloadData(props.gridLoadParametersValues);\r\n }}\r\n />\r\n </WorkFlowWindow>\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 onRowEditStop={(params, event) => {\r\n if (params.reason === \"rowFocusOut\") {\r\n event.defaultMuiPrevented = true;\r\n }\r\n }}\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/public/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 { 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 return formElements;\r\n};\r\n\r\nconst ExcelReportViewer: React.FC<ExcelReportViewerProps> = (props) => {\r\n const [data, setData] = useState([]);\r\n useEffect(() => {\r\n const newData = props.reportData.map((record, index) => {\r\n return { ...record, report_record_data_key: index };\r\n });\r\n setData(newData);\r\n }, [props.reportData]);\r\n return (\r\n <TemplateGrid\r\n data={data}\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 keyColumnName={\"report_record_data_key\"}\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/public/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/public/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/public/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 debugger;\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 },\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 { useEffect, useState } from \"react\";\r\nimport { useAxios, useSession, useWindow } from \"../../../hooks\";\r\nimport {\r\n Avatar,\r\n Box,\r\n Button,\r\n Divider,\r\n Grid2,\r\n IconButton,\r\n Paper,\r\n} from \"@mui/material\";\r\nimport TemplateTextField from \"../DataEntryTemplates/TemplateDataForm/FormFields/TemplateTextField\";\r\nimport ComboBox from \"../DataEntryTemplates/TemplateDataForm/FormFields/ComboBox\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport WorkflowDocumentTimeLine from \"./WorkflowDocumentTimeLine\";\r\nimport { toast } from \"react-toastify\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport ReportViewer from \"../report/ReportViewer\";\r\nimport AttachmentImageViewer from \"../attachment/AttachmentImageViewer\";\r\nimport { useNavigate } from \"react-router-dom\";\r\n\r\nexport type WorkflowDocumentPanelProps = {\r\n workFlowDocumentCode: string;\r\n refDocumentId: any;\r\n postActionCallBk?: () => void;\r\n cancelActionCallBk?: () => void;\r\n};\r\n\r\nexport type workflowDocumentAction = {\r\n id: number;\r\n document_action_code: string;\r\n document_action_ar_name: string;\r\n document_action_en_name: string;\r\n post_action_endpoint?: string;\r\n pre_action_endpoint?: string;\r\n next_document_status_id?: number;\r\n next_action_takers?: Array<person>;\r\n require_comment: any;\r\n};\r\n\r\nexport type person = {\r\n id: number;\r\n email: string;\r\n employeeArName: string;\r\n employeeEnName: string;\r\n mobileNumber: string;\r\n username: string;\r\n};\r\n\r\nexport type workflowDocumentActionHistory = {\r\n id: number;\r\n actionTime: string;\r\n actionMethod: string;\r\n actionComment: string;\r\n documentActionArName: string;\r\n documentActionEnName: string;\r\n employeeArName: string;\r\n employeeEnName: string;\r\n personId: number;\r\n};\r\n\r\ntype WorkflowDocumentInfo = {\r\n workflowDocument: any;\r\n referencedDocument: any;\r\n workflowDocumentReport: any;\r\n workflowDocumentStatus: any;\r\n actionsHistory: Array<workflowDocumentActionHistory>;\r\n nextActions: Array<workflowDocumentAction>;\r\n nextActionTakers: any;\r\n};\r\n\r\nconst WorkflowDocumentPanel: React.FC<WorkflowDocumentPanelProps> = (props) => {\r\n const navigate = useNavigate();\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const { isUserAuthorized, UserInfo } = useSession();\r\n const { handleGetRequest, handlePostRequest } = useAxios();\r\n const [action, setAction] = useState<workflowDocumentAction>(null);\r\n const [authorizedActions, setAuthorizedActions] = useState<\r\n Array<workflowDocumentAction>\r\n >([]);\r\n const { t } = useTranslation();\r\n const [actionComment, setActionComment] = useState(null);\r\n const [workflowDocumentInfo, setWorkflowDocumentInfo] =\r\n useState<WorkflowDocumentInfo>({\r\n referencedDocument: null,\r\n workflowDocumentReport: null,\r\n workflowDocument: null,\r\n workflowDocumentStatus: null,\r\n actionsHistory: [],\r\n nextActionTakers: null,\r\n nextActions: [],\r\n });\r\n const { Window: ReporTViewWindow, setWindowState: setReportViewWindowState } =\r\n useWindow({\r\n windowTitle:\r\n AppLayout.appDirection === \"ltr\"\r\n ? workflowDocumentInfo?.workflowDocument &&\r\n workflowDocumentInfo?.referencedDocument\r\n ? `${workflowDocumentInfo?.workflowDocument?.documentEnName} # ${\r\n workflowDocumentInfo?.referencedDocument[\r\n workflowDocumentInfo?.workflowDocument?.documentNumberField\r\n ]\r\n }`\r\n : \"Document\"\r\n : workflowDocumentInfo?.workflowDocument &&\r\n workflowDocumentInfo?.referencedDocument\r\n ? `${workflowDocumentInfo?.workflowDocument?.documentArName} # ${\r\n workflowDocumentInfo?.referencedDocument[\r\n workflowDocumentInfo?.workflowDocument?.documentNumberField\r\n ]\r\n }`\r\n : \"وثيقة\",\r\n windowIcon: \"eye\",\r\n width: \"80%\",\r\n });\r\n const loadWorkFlowDocumentInfo = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/public/workflow/doc/info\",\r\n showMask: true,\r\n parameters: {\r\n workflowDocumentCode: props.workFlowDocumentCode,\r\n refDocumentId: props.refDocumentId,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setWorkflowDocumentInfo(response.data);\r\n },\r\n failureCallBkFn: () => {\r\n setWorkflowDocumentInfo({\r\n referencedDocument: null,\r\n workflowDocumentReport: null,\r\n workflowDocument: null,\r\n workflowDocumentStatus: null,\r\n actionsHistory: [],\r\n nextActions: [],\r\n nextActionTakers: null,\r\n });\r\n },\r\n });\r\n };\r\n\r\n const validateBeforeProcessWorkflowDocumentAction = async () => {\r\n if (\r\n action === undefined ||\r\n action === null ||\r\n action?.id === undefined ||\r\n action?.id === null\r\n ) {\r\n toast.error(\"You must select action to process\");\r\n return;\r\n }\r\n if (\r\n (action.require_comment === true ||\r\n action.require_comment === 1 ||\r\n action.require_comment === \"true\") &&\r\n (actionComment === null || actionComment === \"\")\r\n ) {\r\n toast.error(\"You must enter comment for the action to be processed\");\r\n return;\r\n }\r\n if (action?.pre_action_endpoint) {\r\n await handlePostRequest({\r\n endPointURI: action.pre_action_endpoint,\r\n showMask: true,\r\n loadingMessage: \"Processing pre action validation ... please wait\",\r\n parameters: {\r\n refDocumentId: props.refDocumentId,\r\n actionId: action.id,\r\n },\r\n successCallBkFn: () => {\r\n processWorkflowDocumentAction();\r\n },\r\n });\r\n return;\r\n }\r\n processWorkflowDocumentAction();\r\n };\r\n const processWorkflowDocumentAction = async () => {\r\n await handlePostRequest({\r\n endPointURI: \"api/v1/public/workflow/doc/action\",\r\n showMask: true,\r\n data: {\r\n workflowDocumentId: workflowDocumentInfo?.workflowDocument?.id,\r\n refDocumentId: props.refDocumentId,\r\n actionId: action.id,\r\n refDocumentStatus:\r\n workflowDocumentInfo?.workflowDocumentStatus?.documentStatusCode,\r\n actionComment: actionComment,\r\n },\r\n successCallBkFn: async (response) => {\r\n if (action?.post_action_endpoint) {\r\n await handlePostRequest({\r\n endPointURI: action.post_action_endpoint,\r\n showMask: true,\r\n loadingMessage: \"Processing post action process ... please wait\",\r\n parameters: {\r\n refDocumentId: props.refDocumentId,\r\n actionId: action.id,\r\n },\r\n successCallBkFn: () => {\r\n loadWorkFlowDocumentInfo();\r\n if (props?.postActionCallBk) {\r\n props.postActionCallBk();\r\n }\r\n },\r\n });\r\n return;\r\n }\r\n loadWorkFlowDocumentInfo();\r\n },\r\n });\r\n };\r\n\r\n const adjustAuthorizedActions = () => {\r\n if (workflowDocumentInfo?.nextActions?.length > 0) {\r\n setAuthorizedActions(\r\n workflowDocumentInfo.nextActions.filter((action) => {\r\n if (\r\n !(\r\n workflowDocumentInfo?.workflowDocumentStatus\r\n ?.nextActionTakersAuthority ||\r\n workflowDocumentInfo?.nextActionTakers\r\n )\r\n ) {\r\n return true;\r\n }\r\n if (\r\n workflowDocumentInfo?.workflowDocumentStatus\r\n ?.nextActionTakersAuthority\r\n ) {\r\n if (\r\n isUserAuthorized(\r\n workflowDocumentInfo.workflowDocumentStatus\r\n .nextActionTakersAuthority\r\n )\r\n ) {\r\n return true;\r\n }\r\n }\r\n if (workflowDocumentInfo?.nextActionTakers) {\r\n for (const actionTaker of workflowDocumentInfo.nextActionTakers) {\r\n if (\r\n UserInfo?.username === actionTaker?.username ||\r\n UserInfo?.username === actionTaker?.USERNAME\r\n ) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n })\r\n );\r\n } else {\r\n setAuthorizedActions([]);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n if (props.refDocumentId && props.workFlowDocumentCode) {\r\n loadWorkFlowDocumentInfo();\r\n }\r\n }, [props.refDocumentId, props.workFlowDocumentCode]);\r\n\r\n useEffect(() => {\r\n if (workflowDocumentInfo?.nextActions) {\r\n adjustAuthorizedActions();\r\n } else {\r\n setAuthorizedActions([]);\r\n }\r\n }, [workflowDocumentInfo.nextActions, workflowDocumentInfo.nextActionTakers]);\r\n return (\r\n <>\r\n {workflowDocumentInfo?.workflowDocumentReport?.id ? (\r\n <ReporTViewWindow>\r\n <ReportViewer\r\n reportCode={\r\n workflowDocumentInfo?.workflowDocumentReport?.reportCode\r\n }\r\n resultMode=\"App\"\r\n byPassParameterEntry={true}\r\n reportParametersValues={{ doc_id: props.refDocumentId + \"\" }}\r\n />\r\n </ReporTViewWindow>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n {workflowDocumentInfo?.workflowDocument ? (\r\n <Box\r\n sx={{\r\n width: \"100%\",\r\n textAlign: \"center\",\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 icon=\"file\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {AppLayout.appDirection === \"ltr\"\r\n ? `${workflowDocumentInfo?.workflowDocument?.documentEnName} # ${\r\n workflowDocumentInfo?.referencedDocument[\r\n workflowDocumentInfo?.workflowDocument?.documentNumberField\r\n ]\r\n }`\r\n : `${workflowDocumentInfo?.workflowDocument?.documentArName} # ${\r\n workflowDocumentInfo?.referencedDocument[\r\n workflowDocumentInfo?.workflowDocument?.documentNumberField\r\n ]\r\n }`}\r\n {workflowDocumentInfo?.workflowDocumentStatus\r\n ? AppLayout.appDirection === \"ltr\"\r\n ? ` ( ${workflowDocumentInfo?.workflowDocumentStatus?.documentStatusEnName} )`\r\n : ` ( ${workflowDocumentInfo?.workflowDocumentStatus?.documentStatusArName} )`\r\n : \"\"}\r\n <Box sx={{ flex: 1 }}></Box>\r\n {workflowDocumentInfo?.workflowDocumentReport?.id ? (\r\n <Button\r\n onClick={() => {\r\n setReportViewWindowState(true);\r\n }}\r\n variant=\"outlined\"\r\n startIcon={<FontAwesomeIcon icon=\"eye\" />}\r\n >\r\n {t(\"VIEW_LABEL\")}\r\n </Button>\r\n ) : (\r\n <></>\r\n )}\r\n </Box>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n <Box\r\n sx={{\r\n flex: 1,\r\n width: \"100%\",\r\n overflow: \"hidden\",\r\n display: \"flex\",\r\n // flexDirection: \"column\",\r\n }}\r\n >\r\n {authorizedActions?.length > 0 ? (\r\n <Paper\r\n sx={{\r\n padding: 2,\r\n display: \"flex\",\r\n flex: 1,\r\n margin: 1,\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n overflow: \"hidden\",\r\n }}\r\n >\r\n <ComboBox\r\n sx={{ marginBottom: 2, width: 400 }}\r\n label={t(\"WE_AVAILABLE_ACTIONS_LABEL\")}\r\n displayField={\r\n AppLayout.appDirection === \"ltr\"\r\n ? \"document_action_en_name\"\r\n : \"document_action_ar_name\"\r\n }\r\n valueField={\"id\"}\r\n value={action?.id}\r\n options={authorizedActions}\r\n onChangeCallBack={(v, selectedRecord) => {\r\n setAction(selectedRecord);\r\n }}\r\n />\r\n {/* <ComboBox\r\n sx={{ marginBottom: 2, width: 400 }}\r\n label={t(\"WE_NEXT_APPROVER_LABEL\")}\r\n displayField={\r\n AppLayout.appDirection === \"ltr\"\r\n ? \"employeeEnName\"\r\n : \"employeeArName\"\r\n }\r\n valueField={\"id\"}\r\n value={nextActionTaker?.id}\r\n options={action?.nextActionTakers || []}\r\n onChangeCallBack={(v, selectedRecord) => {\r\n setNextActionTaker(selectedRecord);\r\n }}\r\n /> */}\r\n <TemplateTextField\r\n sx={{ width: 400 }}\r\n rows={3}\r\n value={actionComment}\r\n onChange={(event) => {\r\n setActionComment(event.target.value);\r\n }}\r\n multiline={true}\r\n label={t(\"WF_COMMENT_LABEL\")}\r\n />\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <Button\r\n color=\"success\"\r\n variant=\"contained\"\r\n sx={{ width: 200, m: 1 }}\r\n onClick={validateBeforeProcessWorkflowDocumentAction}\r\n >\r\n {t(\"WF_TAKE_ACTION_BTN_LABEL\")}\r\n </Button>\r\n {props?.cancelActionCallBk ? (\r\n <Button\r\n variant=\"contained\"\r\n sx={{ width: 200, m: 1 }}\r\n color=\"error\"\r\n onClick={() => {\r\n if (props?.cancelActionCallBk) {\r\n props.cancelActionCallBk();\r\n }\r\n }}\r\n >\r\n {t(\"WF_CANCEL_BTN_LABEL\")}\r\n </Button>\r\n ) : (\r\n <></>\r\n )}\r\n </Box>\r\n {workflowDocumentInfo?.nextActionTakers &&\r\n workflowDocumentInfo.nextActionTakers.length > 0 ? (\r\n <>\r\n <Divider\r\n variant=\"fullWidth\"\r\n flexItem\r\n sx={{ marginTop: 1, marginBottom: 1 }}\r\n >\r\n <Box\r\n sx={{\r\n width: \"100%\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n fontSize: 18,\r\n fontWeight: \"bold\",\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n icon=\"users\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />{\" \"}\r\n {t(\"WF_WAITING_FOR_LABEL\")}\r\n </Box>\r\n </Divider>\r\n\r\n <Box\r\n sx={{\r\n flex: 1,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n overflow: \"auto\",\r\n padding: 1,\r\n width: \"100%\",\r\n }}\r\n >\r\n {workflowDocumentInfo.nextActionTakers.map(\r\n (nextActionTaker: any) => {\r\n return (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n border: \"1px dotted black\",\r\n width: 400,\r\n marginBottom: 2,\r\n padding: 2,\r\n }}\r\n >\r\n <AttachmentImageViewer\r\n showAsAvatar={true}\r\n attachmentCode=\"EMPLOYEE_PHOTOS\"\r\n refKey={nextActionTaker?.id || \"0\"}\r\n style={{\r\n marginRight: 2,\r\n marginLeft: 2,\r\n width: 60,\r\n height: 60,\r\n }}\r\n />\r\n <Box\r\n sx={{\r\n flex: 2,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"flex-start\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <div>\r\n {AppLayout.appDirection === \"ltr\"\r\n ? nextActionTaker?.employee_en_name\r\n : nextActionTaker?.employee_ar_name}\r\n </div>\r\n <div>\r\n {nextActionTaker?.email ? (\r\n <>\r\n <FontAwesomeIcon\r\n icon=\"envelope\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {nextActionTaker?.email}\r\n </>\r\n ) : (\r\n <></>\r\n )}\r\n </div>\r\n <div>\r\n {nextActionTaker?.mobile_number ? (\r\n <>\r\n <FontAwesomeIcon\r\n icon=\"mobile\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {nextActionTaker?.mobile_number}\r\n </>\r\n ) : (\r\n <></>\r\n )}\r\n </div>\r\n </Box>\r\n </Box>\r\n );\r\n }\r\n )}\r\n </Box>\r\n </>\r\n ) : (\r\n <></>\r\n )}\r\n </Paper>\r\n ) : (\r\n <></>\r\n )}\r\n {workflowDocumentInfo?.actionsHistory.length > 0 ? (\r\n <WorkflowDocumentTimeLine\r\n actionHistory={workflowDocumentInfo.actionsHistory}\r\n />\r\n ) : (\r\n <Paper\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n flexGrow: 1,\r\n padding: 2,\r\n margin: 1,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n width: \"100%\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n fontSize: 18,\r\n fontWeight: \"bold\",\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n icon=\"history\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {t(\"WF_ACTION_HISTORY_LABEL\")}\r\n </Box>\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 No Action Log available\r\n </Box>\r\n </Paper>\r\n )}\r\n </Box>\r\n </>\r\n );\r\n};\r\n\r\nexport default WorkflowDocumentPanel;\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, Icon, IconButton, Tooltip } 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\nimport { useWindow } from \"../../../../hooks\";\r\nimport AttachmentPanel from \"../../attachment/AttachmentPanel\";\r\nimport WorkflowDocumentPanel from \"../../workflow/WorkflowDocumentPanel\";\r\n\r\nconst TemplateForm: React.FC<TemplateFormProps> = (\r\n props: TemplateFormProps\r\n) => {\r\n const { Window: AttachmentWindow, setWindowState: setAttachmentWindowState } =\r\n useWindow({\r\n windowTitle: \"Attachments\",\r\n windowIcon: \"paperclip\",\r\n width: \"fit-content\",\r\n height: \"fit-content\",\r\n minHeight: 500,\r\n minWidth: 400,\r\n });\r\n const { Window: WorkflowWindow, setWindowState: setWorkflowWindowState } =\r\n useWindow({\r\n windowTitle: \"Approvals\",\r\n windowIcon: \"stamp\",\r\n width: \"fit-content\",\r\n height: \"fit-content\",\r\n minHeight: 500,\r\n minWidth: 400,\r\n });\r\n const [attachmentPanelEnabledForRecord, setAttachmentPanelEnabledForRecord] =\r\n useState<boolean>(true);\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 useEffect(() => {\r\n if (props?.attachment && props?.attachment?.enableAttachFn) {\r\n setAttachmentPanelEnabledForRecord(\r\n props.attachment.enableAttachFn(formValues)\r\n );\r\n } else {\r\n setAttachmentPanelEnabledForRecord(true);\r\n }\r\n }, [formValues]);\r\n\r\n return (\r\n <>\r\n {props?.attachment ? (\r\n <AttachmentWindow>\r\n <AttachmentPanel\r\n attachmentCode={props.attachment.attachmentCode}\r\n refKey={formValues[props?.keyColumnName || \"id\"]}\r\n enableAttachment={attachmentPanelEnabledForRecord}\r\n />\r\n </AttachmentWindow>\r\n ) : (\r\n <></>\r\n )}\r\n {props?.workFlowDocumentCode ? (\r\n <WorkflowWindow>\r\n <WorkflowDocumentPanel\r\n workFlowDocumentCode={props.workFlowDocumentCode}\r\n refDocumentId={formValues[props?.keyColumnName || \"id\"]}\r\n postActionCallBk={() => {\r\n setWorkflowWindowState(false);\r\n loadRecord();\r\n }}\r\n cancelActionCallBk={() => {\r\n setWorkflowWindowState(false);\r\n }}\r\n />\r\n </WorkflowWindow>\r\n ) : (\r\n <></>\r\n )}\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 {formValues[props?.keyColumnName || \"id\"] ? (\r\n props?.attachment ? (\r\n <Tooltip title=\"Attachments\">\r\n <IconButton\r\n onClick={() => {\r\n setAttachmentWindowState(true);\r\n }}\r\n >\r\n <FontAwesomeIcon icon=\"paperclip\" />\r\n </IconButton>\r\n </Tooltip>\r\n ) : null\r\n ) : null}\r\n {formValues[props?.keyColumnName || \"id\"] ? (\r\n props?.workFlowDocumentCode ? (\r\n <Tooltip title=\"Approvals\">\r\n <IconButton\r\n onClick={() => {\r\n setWorkflowWindowState(true);\r\n }}\r\n >\r\n <FontAwesomeIcon icon=\"stamp\" />\r\n </IconButton>\r\n </Tooltip>\r\n ) : null\r\n ) : null}\r\n {props?.actions ? (\r\n formValues[props?.keyColumnName || \"id\"] ? (\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 ) : (\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 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 { useParams } from \"react-router-dom\";\r\nimport WorkflowDocumentPanel from \"./WorkflowDocumentPanel\";\r\n\r\nconst WorkflowRouteComponent: React.FC = () => {\r\n const { workflowDocumentCode, refDocumentId } = useParams();\r\n return (\r\n <WorkflowDocumentPanel\r\n workFlowDocumentCode={workflowDocumentCode}\r\n refDocumentId={refDocumentId}\r\n />\r\n );\r\n};\r\n\r\nexport default WorkflowRouteComponent;\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 { 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 { 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 { 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 state.isOpened = !state.isOpened;\r\n },\r\n setSideBarState: (state, action) => {\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 { useEffect, useRef } from \"react\";\r\n\r\nexport default function useInterval(\r\n callback: () => void,\r\n delay: number | null\r\n) {\r\n const savedCallback = useRef<() => void>(callback);\r\n\r\n // Remember the latest callback\r\n useEffect(() => {\r\n savedCallback.current = callback;\r\n }, [callback]);\r\n\r\n // Set up the interval\r\n useEffect(() => {\r\n if (delay === null) return;\r\n\r\n const tick = () => savedCallback.current?.();\r\n\r\n const id = setInterval(tick, delay);\r\n return () => clearInterval(id);\r\n }, [delay]);\r\n}\r\n","import { IconProp } from \"@fortawesome/fontawesome-svg-core\";\r\nimport { Box, Button, Divider, keyframes, Typography } from \"@mui/material\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { useNavigate } from \"react-router-dom\";\r\nimport { useAxios, useSession } from \"../../hooks\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { timeAgo } from \"../../util\";\r\n\r\nconst beatFade = keyframes`\r\n 0% { transform: scale(1); opacity: 1; }\r\n 25% { transform: scale(1); opacity: 0.6; }\r\n 50% { transform: scale(1); opacity: 1; }\r\n 75% { transform: scale(1); opacity: 0.6; }\r\n 100% { transform: scale(1); opacity: 1; }\r\n`;\r\n\r\nexport type Notification = {\r\n id: number;\r\n notificationIcon?: IconProp;\r\n notificationIconColor?: string;\r\n notificationEnText: string;\r\n notificationArText: string;\r\n notificationTextColor?: string;\r\n notificationAction?: \"NAVIGATION\";\r\n notificationActionPayload?: string;\r\n isNotified?: boolean;\r\n createTime: string;\r\n setOpen?: (state: boolean) => void;\r\n showDivider?: boolean;\r\n};\r\nconst NotificationItem: React.FC<Notification> = (notification) => {\r\n const navigate = useNavigate();\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const { handlePostRequest } = useAxios();\r\n const acknowledgeNotification = (notificationId) => {\r\n handlePostRequest({\r\n endPointURI: \"api/v1/public/notification/notified\",\r\n showMask: false,\r\n parameters: { notificationQueueId: notificationId },\r\n });\r\n };\r\n return (\r\n <>\r\n <Button\r\n fullWidth\r\n onClick={() => {\r\n if (\r\n notification?.notificationAction === \"NAVIGATION\" &&\r\n notification?.notificationActionPayload\r\n ) {\r\n navigate(notification.notificationActionPayload);\r\n }\r\n if (!notification?.isNotified) {\r\n acknowledgeNotification(notification.id);\r\n }\r\n if (notification?.setOpen) {\r\n notification.setOpen(false);\r\n }\r\n }}\r\n sx={{\r\n marginBottom: 1,\r\n justifyContent: \"flex-start\",\r\n alignItems: \"flex-start\",\r\n color: notification?.notificationTextColor,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n cursor: \"pointer\",\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n cursor: \"pointer\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n width: \"100%\",\r\n }}\r\n >\r\n {notification?.notificationIcon ? (\r\n <FontAwesomeIcon\r\n icon={notification.notificationIcon}\r\n style={{\r\n marginRight: 10,\r\n marginLeft: 10,\r\n color: notification?.notificationIconColor,\r\n }}\r\n />\r\n ) : (\r\n <></>\r\n )}\r\n {AppLayout.appDirection === \"ltr\"\r\n ? notification.notificationEnText\r\n : notification.notificationArText}\r\n <Box sx={{ flex: 1 }}></Box>\r\n {!notification?.isNotified ? (\r\n <Typography\r\n color=\"warning\"\r\n sx={{\r\n animation: `${beatFade} 2s infinite ease-in-out`,\r\n textTransform: \"none\",\r\n display: \"inline-block\",\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n icon=\"bell\"\r\n style={{ marginRight: 5, marginLeft: 5 }}\r\n />\r\n {AppLayout.appDirection === \"ltr\" ? \"New\" : \"جديد\"}\r\n </Typography>\r\n ) : (\r\n <></>\r\n )}\r\n </Box>\r\n <Box\r\n sx={{\r\n width: \"100%\",\r\n fontSize: 12,\r\n display: \"flex\",\r\n justifyContent: \"flex-end\",\r\n alignItems: \"center\",\r\n cursor: \"pointer\",\r\n }}\r\n >\r\n <Box sx={{ marginRight: 1, marginLeft: 1 }}>\r\n {timeAgo(notification.createTime, AppLayout.appDirection)}\r\n </Box>\r\n <Box sx={{ flex: 1 }}></Box>\r\n <Box sx={{ marginRight: 1, marginLeft: 1 }}>\r\n {notification.createTime}\r\n </Box>\r\n </Box>\r\n </Button>\r\n {notification?.showDivider ? <Divider flexItem /> : <></>}\r\n </>\r\n );\r\n};\r\n\r\nexport default NotificationItem;\r\n","import { IconProp } from \"@fortawesome/fontawesome-svg-core\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport {\r\n Badge,\r\n Box,\r\n Button,\r\n ClickAwayListener,\r\n Divider,\r\n Fade,\r\n IconButton,\r\n keyframes,\r\n Paper,\r\n Popper,\r\n PopperPlacementType,\r\n Typography,\r\n} from \"@mui/material\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { useNavigate } from \"react-router-dom\";\r\nimport { timeAgo } from \"../util\";\r\nimport useInterval from \"../hooks/useInterval\";\r\nimport { useAxios, useSession } from \"../hooks\";\r\nimport { toast } from \"react-toastify\";\r\nimport NotificationItem, {\r\n Notification,\r\n} from \"../components/common/NotificationItem\";\r\n\r\nexport const notificationsCheckIntervalSeconds = 1;\r\n\r\nconst NotificationButton: React.FC = () => {\r\n const { UserInfo } = useSession();\r\n const [anchorEl, setAnchorEl] = useState<HTMLButtonElement | null>(null);\r\n const { handleGetRequest, handlePostRequest } = useAxios();\r\n const navigate = useNavigate();\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const [open, setOpen] = useState(false);\r\n const [notifications, setNotifications] = useState<Array<Notification>>([]);\r\n const loadUseNotifications = () => {\r\n if (UserInfo.isAuthenticated === true) {\r\n handleGetRequest({\r\n endPointURI: \"api/v1/public/notifications/new\",\r\n showMask: false,\r\n successCallBkFn: (response: any) => {\r\n if (response.data.length > notifications.length) {\r\n toast.info(\r\n AppLayout.appDirection === \"ltr\"\r\n ? `You have new notifications`\r\n : `لديك اشعارات جديدة`,\r\n {\r\n autoClose: 3000,\r\n position:\r\n AppLayout.appDirection === \"ltr\"\r\n ? \"bottom-right\"\r\n : \"bottom-left\",\r\n closeOnClick: true,\r\n }\r\n );\r\n }\r\n setNotifications(response.data);\r\n },\r\n });\r\n }\r\n };\r\n\r\n useInterval(() => {\r\n loadUseNotifications();\r\n }, notificationsCheckIntervalSeconds * 1000);\r\n\r\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\r\n setAnchorEl(event.currentTarget);\r\n setOpen(!open);\r\n };\r\n return (\r\n <ClickAwayListener\r\n onClickAway={() => {\r\n setOpen(false);\r\n }}\r\n >\r\n <div style={{ cursor: \"pointer\" }}>\r\n <IconButton\r\n color=\"inherit\"\r\n onClick={handleClick}\r\n sx={{ marginRight: 1, marginLeft: 1 }}\r\n >\r\n <Badge\r\n anchorOrigin={{\r\n vertical: \"top\",\r\n horizontal: AppLayout.appDirection === \"ltr\" ? \"right\" : \"left\",\r\n }}\r\n badgeContent={\r\n notifications.filter(\r\n (notificaiton) =>\r\n notificaiton.isNotified === undefined ||\r\n notificaiton.isNotified === null\r\n ).length\r\n }\r\n color=\"error\"\r\n >\r\n <FontAwesomeIcon icon=\"bell\" />\r\n </Badge>\r\n </IconButton>\r\n\r\n <Popper\r\n // Note: The following zIndex style is specifically for documentation purposes and may not be necessary in your application.\r\n sx={{\r\n zIndex: 1200,\r\n width: \"fit-content\",\r\n minWidth: 350,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n }}\r\n open={open}\r\n anchorEl={anchorEl}\r\n dir={AppLayout.appDirection}\r\n placement={\"bottom\"}\r\n transition\r\n >\r\n {({ TransitionProps }) => (\r\n <Fade {...TransitionProps} timeout={350}>\r\n <Paper\r\n sx={{\r\n padding: 1,\r\n m: 1,\r\n maxHeight: 500,\r\n overflow: \"hidden\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n }}\r\n >\r\n <Divider variant=\"fullWidth\" flexItem>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n marginTop: 2,\r\n marginBottom: 1,\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n icon=\"bell\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {AppLayout.appDirection === \"ltr\"\r\n ? \"Notifications\"\r\n : \"الاشعارات\"}\r\n </Box>\r\n </Divider>\r\n {notifications.length == 0 ? (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n flex: 1,\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <Box>\r\n {AppLayout.appDirection === \"ltr\"\r\n ? \"You don't have any notifications\"\r\n : \"لا يوجد اشعارات\"}\r\n </Box>\r\n </Box>\r\n ) : (\r\n <></>\r\n )}\r\n <Box\r\n sx={{\r\n flex: 1,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n overflowY: \"auto\",\r\n }}\r\n >\r\n {notifications.map((notification, index) => {\r\n return (\r\n <NotificationItem\r\n {...notification}\r\n setOpen={setOpen}\r\n showDivider={index < notifications.length - 1}\r\n />\r\n );\r\n })}\r\n </Box>\r\n <Divider variant=\"fullWidth\" flexItem>\r\n <Button\r\n sx={{ textTransform: \"none\" }}\r\n onClick={() => {\r\n navigate(\"myNotifications\");\r\n }}\r\n >\r\n {AppLayout.appDirection === \"ltr\"\r\n ? \"Show Old Notifications\"\r\n : \"عرض الاشعارات القديمة\"}\r\n </Button>\r\n </Divider>\r\n </Paper>\r\n </Fade>\r\n )}\r\n </Popper>\r\n </div>\r\n </ClickAwayListener>\r\n );\r\n};\r\n\r\nexport default NotificationButton;\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\nimport AttachmentImageViewer from \"../components/templates/attachment/AttachmentImageViewer\";\r\nimport NotificationButton from \"./NotificationButton\";\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 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 <NotificationButton />\r\n <AttachmentImageViewer\r\n showAsAvatar={true}\r\n attachmentCode=\"EMPLOYEE_PHOTOS\"\r\n refKey={UserSession.value?.id + \"\"}\r\n />\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 i18n from \"i18next\";\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 { 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.organizations\",\r\n label: \"ORGANIZATION_PLURAL\",\r\n authority: \"ORGANIZATION_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: \"ORGANIZATION_ADMIN\",\r\n icon: \"window-restore\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"admin/systemapplications\" },\r\n },\r\n {\r\n id: \"development_admin.organization\",\r\n label: \"Organization Info\",\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n icon: \"globe\",\r\n children: [\r\n {\r\n id: \"development_admin.organization.modules\",\r\n label: \"Subscriped Modules\",\r\n icon: \"layer-group\",\r\n authority: \"ORGANIZATION_ADMIN\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"admin/org/apps\" },\r\n },\r\n {\r\n id: \"development_admin.organization.unitTypes\",\r\n label: \"Organization Unit Types\",\r\n icon: \"tags\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"admin/org/unit/types\" },\r\n },\r\n {\r\n id: \"development_admin.organization.units\",\r\n label: \"Organization Units\",\r\n icon: \"folder-tree\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"admin/org/units\" },\r\n },\r\n {\r\n id: \"development_admin.organization.ranks\",\r\n label: \"Organization Ranks\",\r\n icon: \"street-view\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"admin/org/ranks\" },\r\n },\r\n ],\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 authority: \"DEVELOPMENT_ADMIN\",\r\n icon: \"code\",\r\n children: [\r\n {\r\n id: \"system_admin.devtools.modules\",\r\n label: \"System Modules\",\r\n icon: \"layer-group\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/system/modules\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.authorities\",\r\n label: \"System Authorities\",\r\n icon: \"key\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/system/authorities\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.roles\",\r\n label: \"System Roles\",\r\n icon: \"tag\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/system/roles\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.lookups\",\r\n label: \"System Lookups\",\r\n icon: \"list-check\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/system/lookups\" },\r\n },\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.AttachmentConfig\",\r\n label: \"ATTACHMENT_CONFIG_PLURAL\",\r\n icon: \"paperclip\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/attachmentconfigs\" },\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 authority: \"SYSTEM_ADMIN\",\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 { 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: any) => 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: any) => state.AppLayout);\r\n const AppInfo = useSelector((state: any) => 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 console.log(\"filterDate\", data);\r\n const parentItems = [];\r\n for (let parentItem of data) {\r\n if (\r\n parentItem.authority === undefined ||\r\n parentItem.authority == null ||\r\n isUserAuthorized(parentItem.authority)\r\n ) {\r\n let newParentItem = structuredClone(parentItem);\r\n if (parentItem?.children) {\r\n newParentItem.children = filterData(parentItem.children);\r\n }\r\n parentItems.push(newParentItem);\r\n }\r\n }\r\n return parentItems;\r\n };\r\n\r\n const mergedNavigationItems = [];\r\n if (AppInfo.enableAdministrationModule) {\r\n mergedNavigationItems.push(structuredClone(NavigationItems));\r\n }\r\n mergedNavigationItems.push(structuredClone(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 { 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, useAxios } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { setStoreData } from \"../../../redux/features/common/CommonStoreSlice\";\r\n\r\nconst OrganizationRankGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/public/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 { handleGetRequest } = useAxios();\r\n const SystemOrganizationRanks = useSelector(\r\n (state: any) => state.commonStores.stores.SystemOrganizationRanks\r\n );\r\n const dispatch = useDispatch();\r\n const loadOrganizationRanks = async () => {\r\n await handleGetRequest({\r\n endPointURI: SystemOrganizationRanks.url,\r\n showMask: false,\r\n successCallBkFn: (response) => {\r\n dispatch(\r\n setStoreData({\r\n storeKey: \"SystemOrganizationRanks\",\r\n data: response.data,\r\n })\r\n );\r\n },\r\n failureCallBkFn: () => {\r\n dispatch(\r\n setStoreData({ storeKey: \"SystemOrganizationRanks\", data: [] })\r\n );\r\n },\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: \"number\",\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: \"number\",\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 setData={setData}\r\n editMode={{ editMode: \"row\", reloadAfterSave: true }}\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 postActionCallBack: () => {\r\n loadOrganizationRanks();\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 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 { useDispatch, useSelector } from \"react-redux\";\r\nimport { setStoreData } from \"../../../redux/features/common/CommonStoreSlice\";\r\n\r\nconst OrganizationUnitGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const { handleGetRequest } = useAxios();\r\n const SystemOrganizationUnits = useSelector(\r\n (state: any) => state.commonStores.stores.SystemOrganizationUnits\r\n );\r\n const dispatch = useDispatch();\r\n const loadOrganizationUnits = async () => {\r\n await handleGetRequest({\r\n endPointURI: SystemOrganizationUnits.url,\r\n showMask: false,\r\n successCallBkFn: (response) => {\r\n dispatch(\r\n setStoreData({\r\n storeKey: \"SystemOrganizationUnits\",\r\n data: response.data,\r\n })\r\n );\r\n },\r\n failureCallBkFn: () => {\r\n dispatch(\r\n setStoreData({ storeKey: \"SystemOrganizationUnits\", data: [] })\r\n );\r\n },\r\n });\r\n };\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/public/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\r\n const organizationUnitTypes = useSelector(\r\n (state: any) => state.commonStores.stores.SystemOrganizationUnitType.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 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: \"number\",\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 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 postActionCallBack: () => {\r\n loadOrganizationUnits();\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\nconst OrganizationUnitTypeGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n commonStoreKey: \"SystemOrganizationUnitType\",\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 setData={setData}\r\n editMode={{ editMode: \"row\", reloadAfterSave: true }}\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 }}\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\nconst SystemApplicationAuthorityGrid: React.FC = () => {\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 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 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 }}\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 { 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 SystemApplicationModuleGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n commonStoreKey: \"SystemApplicationModules\",\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 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 }}\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 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 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 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) {\r\n getRoleAuthorities();\r\n }\r\n }, [props.roleId]);\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\nconst SystemApplicationRoleGrid: React.FC = () => {\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 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 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 }}\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 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\nconst LookupGrid: React.FC = () => {\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 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 }}\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 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 { 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\nexport const storageTypes = [{ value: \"FILE_SYSTEM\" }, { value: \"SFTP\" }];\r\n\r\nconst AttachmentConfigGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/attachmentconfig/all\",\r\n deleteById: \"api/v1/dev/attachmentconfig\",\r\n save: \"api/v1/dev/attachmentconfig\",\r\n findById: \"api/v1/dev/attachmentconfig\",\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: \"ATTACHMENT_CONFIG_ATTACHMENT_CODE\",\r\n fieldName: \"attachmentCode\",\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: \"ATTACHMENT_CONFIG_RELATED_DATABASE_TABLE\",\r\n fieldName: \"relatedDatabaseTable\",\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: \"ATTACHMENT_CONFIG_STORAGE_TYPE\",\r\n fieldName: \"storageType\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: storageTypes,\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: \"Include App Code in attachment path\",\r\n fieldName: \"includeAppCodeInPath\",\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: \"ATTACHMENT_CONFIG_UPLOAD_DIRECTORY\",\r\n fieldName: \"uploadDirectory\",\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: \"ATTACHMENT_CONFIG_ALLOWED_FILE_TYPES\",\r\n fieldName: \"allowedFileTypes\",\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: \"ATTACHMENT_CONFIG_ATTACHMENT_CATEGORIES\",\r\n fieldName: \"attachmentCategories\",\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: \"Is Category Mandatory\",\r\n fieldName: \"isCategoryRequired\",\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: \"ATTACHMENT_CONFIG_MAX_ALLOWED_NUMBER_OF_FILES\",\r\n fieldName: \"maxAllowedNumberOfFiles\",\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: \"ATTACHMENT_CONFIG_DOWNLOAD_AUTHORITY_KEY\",\r\n fieldName: \"downloadAuthorityKey\",\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: \"ATTACHMENT_CONFIG_UPLOAD_AUTHORITY_KEY\",\r\n fieldName: \"uploadAuthorityKey\",\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 setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalIcon: \"paperclip\",\r\n modalTitle: \"Attachment Configuration\",\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"ATTACHMENT_CONFIG_PLURAL\")}\r\n girdIcon=\"paperclip\"\r\n editAction={{ isEnabled: true, authority: \"ATTACHMENT_CONFIG_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"ATTACHMENT_CONFIG_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default AttachmentConfigGrid;\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\nimport { storageTypes } from \"./AttachmentConfigGrid\";\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};\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 },\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 },\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 },\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 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 }\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: \"ATTACHMENT_CONFIG_STORAGE_TYPE\",\r\n fieldName: \"storageType\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: storageTypes,\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: \"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: \"Include App Code in attachment path\",\r\n fieldName: \"includeAppCodeInPath\",\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 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 attachment={{ attachmentCode: \"JASPER_REPORTS\" }}\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\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 {\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: \"text\",\r\n muiTextFieldProps: { multiline: true, rows: 6 },\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 DashboardViewer from \"../templates/visuals/DashboardViewer\";\r\nimport AttachmentPanel from \"../templates/attachment/AttachmentPanel\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\nconst Home: React.FC = () => {\r\n const AppInfo = useSelector((state: any) => state.AppInfo.value); \r\n return (\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\r\n src={AppInfo.appLogo}\r\n style={{ margin: 5, height: 200, width: 200 }}\r\n />\r\n <div>\r\n Welcome to {AppInfo.appName} v.{AppInfo.appVersion}\r\n </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\nimport OrganizationApplicationModuleGrid from \"../../components/administration/admin/OrganizationApplicationModuleGrid\";\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 path: \"admin/org/apps\",\r\n component: OrganizationApplicationModuleGrid,\r\n authority: \"ORGANIZATION_ADMIN\",\r\n },\r\n {\r\n path: \"admin/org/unit/types\",\r\n component: OrganizationUnitTypeGrid,\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n },\r\n {\r\n path: \"admin/org/units\",\r\n component: OrganizationUnitGrid,\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n },\r\n {\r\n path: \"admin/org/ranks\",\r\n component: OrganizationRankGrid,\r\n authority: \"DEVELOPMENT_ADMIN\",\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 commonStoreKey: \"SystemOrganizations\",\r\n deleteById: \"api/v1/org/admin/organization\",\r\n save: \"api/v1/org/admin/organization\",\r\n findById: \"api/v1/org/admin/organization\",\r\n setData: setData,\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_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\r\n return (\r\n <>\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=\"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\nimport { Box } from \"@mui/material\";\r\nimport AttachmentImageViewer from \"../../templates/attachment/AttachmentImageViewer\";\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/public/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 fieldLabel: \"\",\r\n fieldName: \"custom\",\r\n fieldType: \"custom\",\r\n gridProps: {\r\n muiProps: {\r\n align: \"center\",\r\n headerAlign: \"center\",\r\n renderCell: (params) => {\r\n return (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n height: \"100%\",\r\n }}\r\n >\r\n <AttachmentImageViewer\r\n showAsAvatar={true}\r\n attachmentCode=\"EMPLOYEE_PHOTOS\"\r\n refKey={params.id + \"\"}\r\n />\r\n </Box>\r\n );\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 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 attachment={{ attachmentCode: \"EMPLOYEE_PHOTOS\" }}\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\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/org/admin/systemapplication/all\",\r\n deleteById: \"api/v1/org/admin/systemapplication\",\r\n save: \"api/v1/org/admin/systemapplication\",\r\n findById: \"api/v1/org/admin/systemapplication\",\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_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 <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=\"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 { 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\nimport { useSelector } from \"react-redux\";\r\n\r\nconst OrganizationApplicationModuleGrid: React.FC = () => {\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/org/admin/organizationapplicationmodule/all\",\r\n deleteById: \"api/org/v1/admin/organizationapplicationmodule\",\r\n save: \"api/v1/org/admin/organizationapplicationmodule\",\r\n findById: \"api/org/v1/admin/organizationapplicationmodule\",\r\n setData: setData,\r\n });\r\n const SystemApplicationModules = useSelector(\r\n (state: any) => state.commonStores.stores.SystemApplicationModules.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:\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 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 }}\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 { 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\nimport SystemApplicationAuthorityGrid from \"../../components/administration/admin/SystemApplicationAuthorityGrid\";\r\nimport SystemApplicationRoleGrid from \"../../components/administration/admin/SystemApplicationRoleGrid\";\r\nimport SystemApplicationModuleGrid from \"../../components/administration/admin/SystemApplicationModuleGrid\";\r\nimport AttachmentConfigGrid from \"../../components/administration/dev/AttachmentConfigGrid\";\r\nimport NotificationGrid from \"../../components/administration/dev/NotificationGrid\";\r\nimport MyNotificationsPanel from \"../../components/common/MyNotificationsPanel\";\r\nimport WorkflowRouteComponent from \"../../components/templates/workflow/WorkflowRouteComponent\";\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 path: \"dev/system/authorities\",\r\n component: SystemApplicationAuthorityGrid,\r\n },\r\n {\r\n path: \"dev/system/roles\",\r\n component: SystemApplicationRoleGrid,\r\n },\r\n {\r\n path: \"dev/system/lookups\",\r\n component: LookupGrid,\r\n },\r\n {\r\n path: \"dev/system/modules\",\r\n component: SystemApplicationModuleGrid,\r\n },\r\n {\r\n path: \"dev/attachmentconfigs\",\r\n component: AttachmentConfigGrid,\r\n },\r\n {\r\n path: \"dev/notifications\",\r\n component: NotificationGrid,\r\n },\r\n {\r\n path: \"myNotifications\",\r\n component: MyNotificationsPanel,\r\n },\r\n {\r\n path: \"workflow/:workflowDocumentCode/:refDocumentId\",\r\n component: WorkflowRouteComponent,\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 SystemTimeIntervals = useSelector(\r\n (state: any) => state.commonStores.stores.SystemTimeIntervals.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: SystemTimeIntervals,\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 { 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, useAxios, useConfirmationWindow } 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 { handlePostRequest } = useAxios();\r\n\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 resendMail = async (id: any) => {\r\n await handlePostRequest({\r\n endPointURI: \"api/v1/public/mailNotification/resend\",\r\n showMask: true,\r\n parameters: {\r\n mailNotificationQueueId: id,\r\n },\r\n successCallBkFn: (response: any) => {\r\n apiActions.reloadData();\r\n },\r\n });\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 rowActions={[\r\n {\r\n actionFn: async (data) => {\r\n resendMail(data.id);\r\n },\r\n label: \"Resend\",\r\n icon: \"repeat\",\r\n confirmationMessage: \"Are you sure you want to resend this email ?\",\r\n isConfirmationRequired: true,\r\n },\r\n ]}\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 { 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 } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { Box } from \"@mui/material\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport useInterval from \"../../../hooks/useInterval\";\r\n\r\nconst NotificationGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const SystemTimeIntervals = useSelector(\r\n (state: any) => state.commonStores.stores.SystemTimeIntervals.data\r\n );\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/notification/all\",\r\n deleteById: \"api/v1/dev/notification\",\r\n save: \"api/v1/dev/notification\",\r\n findById: \"api/v1/dev/notification\",\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: \"NOTIFICATION_NOTIFICATION_CODE\",\r\n fieldName: \"notificationCode\",\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: \"Notification Data Query ( will be passed a parameter call last_run_time represents last check time)\",\r\n fieldName: \"notificationQueryId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionDisplayField: \"queryName\",\r\n gridProps: {\r\n hidden: true,\r\n },\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 \"Users to notify Query (must have username property in the result set)\",\r\n fieldName: \"usersToNotifyQueryId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionDisplayField: \"queryName\",\r\n gridProps: {\r\n hidden: true,\r\n },\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"NOTIFICATION_AUTHORITY_TO_NOTIFY\",\r\n fieldName: \"authorityToNotify\",\r\n required: false,\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: \"Interval Type\",\r\n fieldName: \"intervalType\",\r\n fieldType: \"combobox\",\r\n options: SystemTimeIntervals,\r\n gridProps: {\r\n hidden: true,\r\n },\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: \"Interval Value (minmum value 20 seconds)\",\r\n fieldName: \"intervalValue\",\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: \"Start Notifing Date\",\r\n fieldName: \"startNotificationFrom\",\r\n gridProps: {\r\n hidden: true,\r\n },\r\n fieldType: \"datetime\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"NOTIFICATION_SYSTEM_APPLICATION_ID\",\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 type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"NOTIFICATION_NOTIFICATION_ICON\",\r\n fieldName: \"notificationIcon\",\r\n required: true,\r\n fieldType: \"text\",\r\n gridProps: {\r\n muiProps: {\r\n renderCell: (params: any) => {\r\n return (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n color: params?.row?.notificationIconColor,\r\n justifyContent: \"center\",\r\n height: \"100%\",\r\n }}\r\n >\r\n {params?.row?.notificationIcon ? (\r\n <FontAwesomeIcon icon={params.row.notificationIcon} />\r\n ) : (\r\n <></>\r\n )}\r\n </Box>\r\n );\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: \"NOTIFICATION_NOTIFICATION_AR_TEXT\",\r\n fieldName: \"notificationArText\",\r\n required: true,\r\n fieldType: \"text\",\r\n gridProps: {\r\n muiProps: {\r\n renderCell: (params: any) => {\r\n return (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n color: params?.row?.notificationTextColor,\r\n justifyContent: \"center\",\r\n height: \"100%\",\r\n }}\r\n >\r\n {params?.row?.notificationArText}\r\n </Box>\r\n );\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: \"NOTIFICATION_NOTIFICATION_EN_TEXT\",\r\n fieldName: \"notificationEnText\",\r\n required: true,\r\n fieldType: \"text\",\r\n gridProps: {\r\n muiProps: {\r\n renderCell: (params: any) => {\r\n return (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n color: params?.row?.notificationTextColor,\r\n justifyContent: \"center\",\r\n height: \"100%\",\r\n }}\r\n >\r\n {params?.row?.notificationEnText}\r\n </Box>\r\n );\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: \"Last Runtime\",\r\n disabled: true,\r\n fieldName: \"lastIntervalRun\",\r\n fieldType: \"datetime\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Last Successful Runtime\",\r\n fieldName: \"lastSuccessfulRun\",\r\n disabled: true,\r\n fieldType: \"datetime\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Last Run Message\",\r\n fieldName: \"lastRunMessage\",\r\n disabled: 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: \"NOTIFICATION_NOTIFICATION_TEXT_COLOR\",\r\n fieldName: \"notificationTextColor\",\r\n required: false,\r\n gridProps: {\r\n hidden: true,\r\n },\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: \"NOTIFICATION_NOTIFICATION_ICON_COLOR\",\r\n fieldName: \"notificationIconColor\",\r\n required: false,\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: \"NOTIFICATION_NOTIFICATION_ACTION\",\r\n fieldName: \"notificationAction\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: [{ value: \"NAVIGATION\" }],\r\n optionDisplayField: \"value\",\r\n optionValueField: \"value\",\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 \"Action Payload (must be a rout in case of NAVIGATION with parameter values betweem @@)\",\r\n fieldName: \"notificationActionPayload\",\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 {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel:\r\n \"Organization Id Field on the Notification Query result set if it supports it\",\r\n fieldName: \"organizationIdField\",\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: \"NOTIFICATION_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 setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalIcon: \"bell\",\r\n modalTitle: \"System Notification\",\r\n modalWidth: \"300\",\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"NOTIFICATION_PLURAL\")}\r\n girdIcon=\"bell\"\r\n editAction={{ isEnabled: true, authority: \"NOTIFICATION_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"NOTIFICATION_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default NotificationGrid;\r\n","import { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { Box, Button } from \"@mui/material\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { useAxios, useSession } from \"../../hooks\";\r\nimport { useState } from \"react\";\r\nimport useInterval from \"../../hooks/useInterval\";\r\nimport { notificationsCheckIntervalSeconds } from \"../../layout/NotificationButton\";\r\nimport NotificationItem from \"./NotificationItem\";\r\n\r\nconst MyNotificationsPanel: React.FC = () => {\r\n const { UserInfo } = useSession();\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const { handleGetRequest, handlePostRequest } = useAxios();\r\n const [notifications, setNotifications] = useState<Array<Notification>>([]);\r\n\r\n const acknowledgeAllCurrentNotifications = async () => {\r\n await handlePostRequest({\r\n endPointURI: \"api/v1/public/notification/all/notified\",\r\n showMask: true,\r\n });\r\n };\r\n\r\n const archiveAllCurrentNotifications = async () => {\r\n await handlePostRequest({\r\n endPointURI: \"api/v1/public/notification/all/archive\",\r\n showMask: true,\r\n });\r\n };\r\n\r\n const loadUserNotifications = () => {\r\n if (UserInfo.isAuthenticated === true) {\r\n handleGetRequest({\r\n endPointURI: \"api/v1/public/notifications\",\r\n showMask: false,\r\n successCallBkFn: (response: any) => {\r\n setNotifications(response.data);\r\n },\r\n });\r\n }\r\n };\r\n useInterval(loadUserNotifications, notificationsCheckIntervalSeconds * 1000);\r\n return (\r\n <>\r\n <Box\r\n sx={{ display: \"flex\", alignItems: \"center\", justifyContent: \"center\" }}\r\n >\r\n <Box sx={{ flex: 1 }}></Box>\r\n <h3>\r\n <FontAwesomeIcon\r\n icon=\"bell\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {AppLayout.appDirection === \"ltr\" ? \"Notifications\" : \"الاشعارات\"}\r\n </h3>\r\n <Box sx={{ flex: 1 }}></Box>\r\n <Button\r\n sx={{ textTransform: \"none\" }}\r\n onClick={acknowledgeAllCurrentNotifications}\r\n >\r\n Mark All Read\r\n </Button>\r\n <Button\r\n color=\"error\"\r\n sx={{ textTransform: \"none\" }}\r\n onClick={archiveAllCurrentNotifications}\r\n >\r\n Delete All\r\n </Button>\r\n </Box>\r\n <Box\r\n sx={{\r\n flex: 1,\r\n width: \"100%\",\r\n display: \"flex\",\r\n overflowY: \"auto\",\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n flexGrow: 1,\r\n width: \"fit-content\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n overflowY: \"auto\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n }}\r\n >\r\n {notifications.map((notification: Notification, index) => {\r\n return (\r\n <NotificationItem\r\n {...notification}\r\n showDivider={index < notifications.length - 1}\r\n />\r\n );\r\n })}\r\n </Box>\r\n </Box>\r\n </>\r\n );\r\n};\r\n\r\nexport default MyNotificationsPanel;\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 { UserInfo } = useSession();\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 setAutoLoadLoaded(false);\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 setAutoLoadLoaded(true);\r\n hide();\r\n };\r\n\r\n useEffect(() => {\r\n if (commonStores?.storeKeys) {\r\n loadCommonStores();\r\n }\r\n }, [commonStores.storeKeys, UserInfo?.currentOrganization]);\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 const AppLayout = useSelector((state: any) => state.AppLayout);\r\n\r\n return (\r\n <BrowserRouter>\r\n <ToastContainer\r\n rtl={AppLayout.appDirection === \"rtl\"}\r\n draggable={true}\r\n position=\"bottom-center\"\r\n />\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 businessLocals?: {\r\n ar: { [key: string]: string };\r\n en: { [key: string]: string };\r\n };\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 SystemTimeIntervals: {\r\n autoLoad: false,\r\n url: \"\",\r\n data: [\r\n { value: \"second\" },\r\n { value: \"minute\" },\r\n { value: \"hour\" },\r\n { value: \"day\" },\r\n { value: \"week\" },\r\n { value: \"month\" },\r\n { value: \"year\" },\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/public/organization/all\",\r\n data: [],\r\n },\r\n SystemOrganizationRanks: {\r\n autoLoad: true,\r\n url: \"api/v1/public/organization/ranks/all\",\r\n data: [],\r\n },\r\n SystemOrganizationUnits: {\r\n autoLoad: true,\r\n url: \"api/v1/public/organization/units/all\",\r\n data: [],\r\n },\r\n SystemOrganizationUnitType: {\r\n autoLoad: true,\r\n url: \"api/v1/public/organizationunittype/all\",\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 SystemApplicationModules: {\r\n autoLoad: true,\r\n data: [],\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n url: \"api/v1/admin/systemapplicationmodule/application/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 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 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 { 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\nimport i18n from \"../locales/i18n\";\r\nimport { initReactI18next } from \"react-i18next\";\r\nimport { ENGLISH_TRANS } from \"../locales/english\";\r\nimport { ARABIC_TRANS } from \"../locales/arabic\";\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 const resources = {\r\n en: { translation: { ...ENGLISH_TRANS, ...props?.businessLocals?.en } },\r\n ar: { translation: { ...ARABIC_TRANS, ...props?.businessLocals?.ar } },\r\n };\r\n i18n.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 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","UserSessionSlice","isAuthenticated","authorities","setAuthenticated","setUnAuthenticated","UserSessionActions","UserSessionReducer","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","undefined","showMask","loadingMessage","get","endPointURI","params","parameters","headers","responseType","successCallBkFn","failureCallBkFn","handlePostRequest","post","handleDeleteRequest","delete","HandleDownloadHTTPPostPDF","handleUploadRequest","files","length","formData","FormData","file","append","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","setStoresMetaData","Object","keys","setStoreData","storeKey","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","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","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","SystemLookupCombobox","setOptions","lookupType","loadLookupOptions","generateDateTimeColumn","colDef","renderEditCell","api","setEditCellValue","field","valueParser","row","column","valueFormatter","generateComboColumn","valueGetter","renderCell","find","item","selectedRecord","generateCheckBoxColumn","getElementFields","element","fields","mode","elements","childElement","getAllFields","constructGridColumnsFromFields","isDefaultEditable","columns","tableField","fieldType","gridProps","muiProps","editable","fieldName","headerName","fieldLabel","headerAlign","align","hidden","searchable","optionValueField","optionDisplayField","constructValidationSchema","validationSchemaObj","z","number","required_error","invalid_type_error","optional","nullable","boolean","string","min","getGridSelection","rowSelectionModel","keyColumnName","sRecords","sRecordIds","ids","selectedId","x","selectedRecords","selectedRecordIds","formatMuiErrorMessage","code","args","URL","forEach","arg","searchParams","process","env","NODE_ENV","reactIsModule","exports","Symbol","for","c","d","f","g","h","k","l","m","n","p","q","r","w","y","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","split","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","symbol","any","createChainableTypeChecker","arrayOf","typeChecker","propName","propFullName","PropTypeError","propValue","Array","isArray","getPropType","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","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","index","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","Math","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","mr","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","fontSize","fontStyle","fontWeight","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","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","timeAgo","dateInput","date","now","diffInSeconds","floor","locale","rtf","Intl","RelativeTimeFormat","numeric","units","seconds","delta","FormElementField","fieldInfo","formManager","formActions","formValues","hiddenFields","formProps","fieldSize","muiTextFieldProps","disabledFields","setValue","onValueChangeCallBack","fieldHeight","formState","errors","toString","dateFormat","FormAction","setConfirmationWindowState","confirmationMessage","actionFn","formActionProps","actionButtonVariant","actionButtonColor","preActionValidation","isConfirmationRequired","FormElementGroup","AttachmentImageViewer","imagePath","attachmentId","attachmentCode","refKey","category","imgSrc","setImgSrc","showAsAvatar","Avatar","src","alt","onError","objectFit","AttachmentCard","allowDownload","downloadAuthorityKey","setAttachmentConfig","handleDelete","CardMedia","docType","CardContent","gutterBottom","fileName","attachmentSize","remark","CardActions","allowDelete","Tooltip","createObjectURL","link","href","setAttribute","click","remove","AttachmentPanel","setFiles","attachmentCategories","setAttachmentCategories","setRemark","selectedCategory","setSelectedCategory","allowedTypes","setAllowedTypes","attachmentConfig","getFileExtension","pop","toLowerCase","loadAttachmentConfig","allowedFileTypes","cats","showAttachments","allowUpload","enableAttachment","uploadAuthorityKey","maxAllowedNumberOfFiles","refKeyAttachments","accept","multiple","fileExt","multiline","rows","existingAttachments","isCategoryRequired","success","refKeyAttachment","WorkflowDocumentTimeLine","overflowY","actionHistory","actionHistoryRecord","actionTime","actionMethod","personId","documentActionEnName","documentActionArName","actionComment","employeeEnName","employeeArName","TemplateGridMultiRecordAction","rowAction","recordsToProcessActionOn","recordIdsToProcessActionOn","isActionAllowed","StyledQuickFilter","QuickFilter","StyledToolbarButton","ToolbarButton","ownerState","opacity","pointerEvents","transition","transitions","StyledTextField","overflowX","TemplateGridTopBar","isCreationAuthorized","templateProps","editAction","gridSelection","editMode","handleCreateNewRecord","rowActions","gridActionProps","multiRecord","_createElement","apiActions","gridLoadParametersValues","tBar","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","setSelectedRecord","attachmentPanelEnabledForRecord","setAttachmentPanelEnabledForRecord","getLookupOptions","generateLookupGridColumn","useLookupGridColumn","AttachmentWindow","setAttachmentWindowState","gridTitle","WorkFlowWindow","setWorkFlowWindowState","generatedColumns","setGeneratedColumns","formElements","savedState","useMemo","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","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","attachment","workFlowDocumentCode","getActions","disableDefaultAction","isInEditMode","GridRowModes","Edit","View","handleSaveRowClick","ignoreModifications","newData","handleCancelRowEditClick","isEditActionVisibleForRecord","isActionEditDisabledForRecord","formRoute","handleEditRecord","isDeleteActionVisibleForRecord","isDeleteActionDisabledForRecord","enableAttachFn","structuredColumns","autoLoad","currentOrganization","adjustedColumns","baseCols","col","fieldToCol","Map","Boolean","formComponent","recordIdToEdit","formCloseCallBk","TemplateForm","formLoadCallBk","editAuthorityKey","formSavedSuccessfullyCallBk","preSaveValidation","hideInfoBar","hideBackButton","girdIcon","gridLoadParameters","setGridLoadParametersValues","Accordion","defaultExpanded","AccordionSummary","expandIcon","GridExpandMoreIcon","AccordionDetails","saveButtonSpecs","cancelButtonSpecs","WorkflowDocumentPanel","refDocumentId","postActionCallBk","cancelActionCallBk","DataGridPremium","toolbar","newRecord","oldRows","oldModel","removeItem","getRowId","showToolbar","checkboxSelection","onRowEditStop","reason","defaultMuiPrevented","onRowModesModelChange","newModel","rowGroupingColumnMode","processRowUpdate","log","ZodError","validateRecord","requestObject","reloadAfterSave","onRowSelectionModelChange","gridSelectionModel","onColumnVisibilityModelChange","model","onColumnOrderChange","targetIndex","prevOrder","currentOrder","fromIndex","onColumnWidthChange","updatedWidths","rowGroupingModel","onRowGroupingModelChange","handleRowGroupChange","onPinnedColumnsChange","newPinedColumns","getGridColumnsFromRecord","formElement","ExcelReportViewer","reportData","report_record_data_key","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","filename","blob","download","removeChild","revokeObjectURL","byPassParameterEntry","loadReportData","reportName","setAction","authorizedActions","setAuthorizedActions","setActionComment","workflowDocumentInfo","setWorkflowDocumentInfo","referencedDocument","workflowDocumentReport","workflowDocument","workflowDocumentStatus","actionsHistory","nextActionTakers","nextActions","ReporTViewWindow","setReportViewWindowState","documentEnName","documentNumberField","documentArName","loadWorkFlowDocumentInfo","workflowDocumentCode","processWorkflowDocumentAction","workflowDocumentId","actionId","refDocumentStatus","documentStatusCode","post_action_endpoint","nextActionTakersAuthority","actionTaker","username","USERNAME","doc_id","documentStatusEnName","documentStatusArName","startIcon","require_comment","pre_action_endpoint","nextActionTaker","employee_en_name","employee_ar_name","mobile_number","WorkflowWindow","setWorkflowWindowState","initiallyHiddenFields","setHiddenFields","initialValues","setDisabledFields","formSchema","useForm","resolver","zodResolver","defaultValues","watch","pathParameters","useParams","formRouteRecordIdParamName","loadRecord","idToLoad","retrievedRecord","setFieldValue","fieldValue","hideField","oldValues","showField","disableField","enableField","enabled","handleSubmit","WorkflowRouteComponent","TemplateBarChart","BarChart","dataset","xAxis","dataKey","scaleType","valueLabel","series","labelField","TemplateDataCard","TemplateGauge","Gauge","valueMax","total","TemplateLineChart","LineChart","LinearProgressWithLabel","LinearProgress","round","TemplateLineProgress","TemplatePieChart","chartData","PieChart","WidgetViewer","isWidgetLoading","setWidgetLoading","queryId","dataQueryId","parameterValues","getWidgetData","widgetType","verticalAxisField","prefix","iconName","spin","widgetTitle","horizontalAxisField","horizontalAxisLabel","DashboardViewer","dashboardInfo","setDashboardInfo","dashboardCode","dashboardName","dashboardTitle","dashboardParameters","widgets","dashboardParameterValues","setDashboardParameterValues","loadDashboardInfo","widget","DashboardRouteView","ChangeOrgForm","newOrgId","setNewOrgId","userOrganizations","orgId","successChangeCallBackFn","SideBarSlice","toggleSideBarState","setSideBarState","SideBarReducer","useInterval","callback","delay","savedCallback","useRef","setInterval","clearInterval","beatFade","keyframes","NotificationItem","notification","notificationId","notificationAction","notificationActionPayload","isNotified","notificationQueueId","notificationTextColor","notificationIcon","notificationIconColor","notificationEnText","notificationArText","animation","createTime","showDivider","NotificationButton","anchorEl","setAnchorEl","notifications","setNotifications","info","closeOnClick","notificationsCheckIntervalSeconds","ClickAwayListener","onClickAway","currentTarget","anchorOrigin","vertical","horizontal","notificaiton","placement","TransitionProps","Fade","MuiAppBar","easing","sharp","duration","leavingScreen","variants","easeOut","enteringScreen","TopBar","ChangeOrgWindow","setChangeOrgWindowState","SideBarState","SideBar","appLogo","noWrap","appName","organizationEnName","organizationArName","i18n","language","nextLanguage","lng","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","parentItems","parentItem","newParentItem","structuredClone","mergedNavigationItems","enableAdministrationModule","businessNavigationItems","authoriedNavigationItems","RichTreeView","onItemClick","navigationItem","Drawer","anchor","appVersion","cacheRtl","createCache","stylisPlugins","prefixer","rtlPlugin","cacheLtr","OrgMemberRoleForm","setSelectedOptions","availableOptions","setAvailableOptions","orgMemberId","organizationId","currentRoles","availableRoles","getOrgMemberRoles","closeModalFn","OrganizationMemberGrid","OrganizationMemberRolesWindow","setOrganizationMemberRolesWindowState","SystemOrganizations","SystemOrganizationRanks","SystemOrganizationUnits","selectedPerson","OrganizationRankGrid","loadOrganizationRanks","OrganizationUnitGrid","organizationUnitTypes","SystemOrganizationUnitType","loadOrganizationUnits","OrganizationUnitTypeGrid","SystemApplicationAuthorityGrid","systemApplicationModules","setSystemApplicationModules","getSystemApplicationModules","SystemApplicationModuleGrid","RoleAuthoritiesForm","availableAuthorities","setAvailableAuthorities","roleId","selectedAuthorities","getRoleAuthorities","SystemApplicationRoleGrid","selectedRole","setSelectedRole","RoleaAuthoritiesWindow","setRoleAuthoritiesWindowState","DataQueryParameterGrid","SystemEntityParameters","LookupGrid","ReportParameterGrid","reportId","storageTypes","validationObject","Blueprint","useSysDatasource","isMandatory","isVisible","datasourceConId","reportBluePrintId","reportExcelDataQueryId","reportJasperName","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","WorkflowDocumentActionMailGrid","SystemMailTemplates","documentActionId","WorkflowDocumentActionGrid","ActionMailsWindow","setActionMailWindowState","workflowStates","setWorkflowStates","loadWorkFlowDocumentStates","seriesKeys","verticalAxisLabel","ColumnChart","CircularProgress","adjustFormAccordingToWidgetType","DashboardWidgetGrid","SystemWidgets","dashboardId","SYSTEM_ROUTES","setSelectedPerson","OrganizationMembersWindow","setOrganizationMemberWindowState","refSource","SystemApplicationModules","DataQueryParameterWindow","setDataQueryParameterWindow","SystemDataSources","SystemDataSourceType","SystemParameterTypes","ReporTrialWindow","setReportTrialWindowState","ReportParameterWindow","setReportParameterWindowState","SystemBluePrints","SystemTimeIntervals","MailRecipentsWindow","setMailRecipientsWindowState","MailBodiesWindow","setMailBodiesWindowState","MailAttachmentWindow","setMailAttachmentWindowState","callBkFn","periodical","periodType","periodValue","startSendingAt","mailEngine","WorkflowStatusWindow","setWorkflowStatusWindowState","WorkflowActionWindow","setWorkflowActionWindowState","useSystemCon","SystemWidgetTypes","WidgetsWindows","setWidgetsWindowState","mailNotificationQueueId","resendMail","RouteWrapper","MainContent","businessRoutes","isAutoLoadLoaded","setAutoLoadLoaded","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","rtl","draggable","CssBaseline","AppInfoSlice","documentTitle","muiPremiumKey","businessReduxReducers","businessCommonStoresMetaData","light","setAppInfo","AppInfoActions","AppInfoReducer","ADMINISTRATION_STORES","SystemReportTypes","SystemMailRecipientTypes","App","LicenseInfo","setLicenseKey","LightThemeOptions","background","default","paper","DarkThemeOptions","themeOptions","ENGLISH_TRANS","common","AdminLocalsEn","ARABIC_TRANS","adminLocalsAr","library","add","fab","far","fas","BaseApp","systemReducers","store","configureStore","resources","en","translation","businessLocals","ar","initReactI18next","init","fallbackLng","Provider"],"mappings":"i0IAAA,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,SAAUF,KACjD,CAACP,IAEGC,GCTIS,GAAe,IAYtBC,GAAiBC,GAAY,CACjCC,KAAM,yBAN6B,CACnCC,UAAWC,aAAaC,QAAQ,cAAgB,QAChDC,aAAkD,MAApCF,aAAaC,QAAQ,YAAsB,MAAQ,OAMjEE,SAAU,CACRC,aAAc,CAACC,EAAOC,KACpBD,EAAMN,UAAYO,EAAOC,SAE3BC,gBAAiB,CAACH,EAAOC,KACvBD,EA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D,SAAAJ,EAAC0oD,GAAQ,IAAA1qD","x_google_ignoreList":[0,22,23,24,25,26,27,28,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]}
|
|
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/redux/features/common/UserSessionSlice.ts","../src/hooks/useAxios.tsx","../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/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","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/SystemLookupCombobox.tsx","../src/components/templates/DataEntryTemplates/TemplateDataGrid/DataGridColumnsUtil.tsx","../src/components/templates/DataEntryTemplates/DataEntryUtil.ts","../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/FormElementField.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormAction.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementGroup.tsx","../src/components/templates/attachment/AttachmentImageViewer.tsx","../src/components/templates/attachment/AttachmentCard.tsx","../src/components/templates/attachment/AttachmentPanel.tsx","../src/components/templates/workflow/WorkflowDocumentTimeLine.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/templates/report/ExcelReportViewer.tsx","../src/components/templates/report/ReportViewer.tsx","../src/components/templates/workflow/WorkflowDocumentPanel.tsx","../src/components/templates/DataEntryTemplates/TemplateDataForm/TemplateForm.tsx","../src/components/templates/workflow/WorkflowRouteComponent.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/visuals/WidgetViewer.tsx","../src/components/templates/visuals/DashboardViewer.tsx","../src/components/templates/visuals/DashboardRouteView.tsx","../src/components/common/ChangeOrgForm.tsx","../src/redux/features/common/SideBarSlice.ts","../src/hooks/useInterval.tsx","../src/components/common/NotificationItem.tsx","../src/layout/NotificationButton.tsx","../src/layout/TopBar.tsx","../src/locales/i18n.ts","../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/administration/admin/OrgMemberRoleForm.tsx","../src/components/administration/admin/OrganizationMemberGrid.tsx","../src/components/administration/admin/OrganizationRankGrid.tsx","../src/components/administration/admin/OrganizationUnitGrid.tsx","../src/components/administration/admin/OrganizationUnitTypeGrid.tsx","../src/components/administration/admin/SystemApplicationAuthorityGrid.tsx","../src/components/administration/admin/SystemApplicationModuleGrid.tsx","../src/components/administration/admin/RoleAuthoritiesForm.tsx","../src/components/administration/admin/SystemApplicationRoleGrid.tsx","../src/components/administration/dev/DataQueryParameterGrid.tsx","../src/components/administration/dev/LookupGrid.tsx","../src/components/administration/dev/ReportParameterGrid.tsx","../src/components/administration/dev/AttachmentConfigGrid.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/components/administration/admin/OrganizationApplicationModuleGrid.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/administration/dev/WorkflowDocumentMailLogGrid.tsx","../src/components/administration/dev/MailNotificationQueueGrid.tsx","../src/components/administration/dev/NotificationGrid.tsx","../src/components/common/MyNotificationsPanel.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/locales/english/index.ts","../src/locales/arabic/index.ts","../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 { 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 { toast } from \"react-toastify\";\r\nimport axios, { ResponseType } from \"axios\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport useLoadingMask from \"./useLoadingMask\";\r\nimport { UserSessionActions } from \"../redux/features/common/UserSessionSlice\";\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 headers?: any;\r\n responseType?: ResponseType;\r\n}\r\n\r\nexport interface UploadAttachmentRequest {\r\n endPointURI: string;\r\n showMask?: Boolean;\r\n parameters?: any;\r\n loadingMessage?: string;\r\n successCallBkFn?: Function;\r\n failureCallBkFn?: Function;\r\n files: FileList;\r\n}\r\n\r\nconst useAxios = () => {\r\n const mask = useLoadingMask();\r\n const dispatch = useDispatch();\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 dispatch(UserSessionActions.setUnAuthenticated());\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 (props: APIRequest) => {\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 headers: props.headers,\r\n responseType: props?.responseType,\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 (props: APIRequest) => {\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 responseType: props?.responseType,\r\n headers: props?.headers,\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 (props: APIRequest) => {\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 responseType: props?.responseType,\r\n headers: props?.headers,\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 handleUploadRequest = async (props: UploadAttachmentRequest) => {\r\n if (props.files === null || props.files.length === 0) {\r\n toast.error(\"You must add files to upload\");\r\n return \"ERROR\";\r\n }\r\n const formData = new FormData();\r\n for (const file of props.files) {\r\n formData.append(\"files\", file);\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(props.endPointURI, formData, {\r\n params: props?.parameters,\r\n headers: {\r\n \"Content-Type\": \"multipart/form-data\",\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 handleUploadRequest,\r\n };\r\n};\r\n\r\nexport default useAxios;\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 authorityCode === \"DEVELOPMENT_ADMIN\" &&\r\n (grantedAuthority?.authority === \"DEVELOPMENT_ADMIN\" ||\r\n grantedAuthority?.authority === \"ORGANIZATION_ADMIN\")\r\n ) {\r\n return true;\r\n } else if (\r\n authorityCode === \"ORGANIZATION_ADMIN\" &&\r\n grantedAuthority?.authority === \"ORGANIZATION_ADMIN\"\r\n ) {\r\n return true;\r\n } else if (\r\n authorityCode !== \"DEVELOPMENT_ADMIN\" &&\r\n authorityCode !== \"ORGANIZATION_ADMIN\"\r\n ) {\r\n if (\r\n grantedAuthority?.authority === \"ORGANIZATION_ADMIN\" ||\r\n grantedAuthority?.authority === \"DEVELOPMENT_ADMIN\" ||\r\n grantedAuthority?.authority === \"SYSTEM_ADMIN\" ||\r\n grantedAuthority?.authority === authorityCode\r\n ) {\r\n return true;\r\n }\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 type CommonStoresInterface = {\r\n stores: { [key: string]: StoreMetaData };\r\n storeKeys: Array<String>;\r\n};\r\n\r\ninterface setStoreDataProps {\r\n storeKey: string;\r\n data: Array<any>;\r\n}\r\n\r\nexport type 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};\r\n\r\nconst commonStoreSlice = createSlice({\r\n name: \"commonStores\",\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 },\r\n});\r\n\r\nexport const { setStoreData, setStoresMetaData } = 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 >\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 <\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 { 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","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/public/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 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 } else {\r\n const column: TemplateGridColDef = {\r\n field: tableField.fieldName,\r\n ...tableField?.gridProps?.muiProps,\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","/**\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\r\nexport function timeAgo(dateInput, appDirection: \"ltr\" | \"rtl\") {\r\n const date = new Date(dateInput);\r\n const now = new Date();\r\n const diffInSeconds = Math.floor((date - now) / 1000); // Note: future is positive\r\n const absDiff = Math.abs(diffInSeconds);\r\n\r\n const locale = appDirection === \"rtl\" ? \"ar\" : \"en\";\r\n\r\n const rtf = new Intl.RelativeTimeFormat(locale, { numeric: \"auto\" });\r\n\r\n const units = [\r\n { unit: \"year\", seconds: 31536000 },\r\n { unit: \"month\", seconds: 2592000 },\r\n { unit: \"week\", seconds: 604800 },\r\n { unit: \"day\", seconds: 86400 },\r\n { unit: \"hour\", seconds: 3600 },\r\n { unit: \"minute\", seconds: 60 },\r\n { unit: \"second\", seconds: 1 },\r\n ];\r\n\r\n for (const { unit, seconds } of units) {\r\n const delta = Math.floor(diffInSeconds / seconds);\r\n if (Math.abs(delta) > 1) {\r\n return rtf.format(delta, unit);\r\n }\r\n }\r\n\r\n return locale === \"ar\" ? \"الآن\" : \"just now\";\r\n}\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 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 ) : null}\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 { useState } from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { Avatar, SxProps } from \"@mui/material\";\r\n\r\ntype AttachmentImageViewerProps = {\r\n attachmentId?: number;\r\n attachmentCode?: string;\r\n refKey?: string;\r\n category?: string;\r\n showAsAvatar?: boolean;\r\n style?: SxProps;\r\n};\r\n\r\nconst AttachmentImageViewer: React.FC<AttachmentImageViewerProps> = (props) => {\r\n const apiBaseUrl = useSelector(\r\n (state: any) => state.AppInfo.value.apiBaseUrl\r\n );\r\n let imagePath = apiBaseUrl + \"/api/v1/attachment/\";\r\n if (props?.attachmentId) {\r\n imagePath += \"download?attachmentId=\" + props.attachmentId;\r\n } else {\r\n imagePath += `downloadImage?attachmentCode=${props.attachmentCode}&refKey=${props.refKey}`;\r\n if (props?.category) {\r\n imagePath += `&category=${props.category}`;\r\n }\r\n }\r\n const [imgSrc, setImgSrc] = useState(imagePath);\r\n return props?.showAsAvatar ? (\r\n <Avatar src={imgSrc} sx={props.style} />\r\n ) : (\r\n <img\r\n src={imgSrc}\r\n alt=\"image\"\r\n onError={() => setImgSrc(\"/no_image.png\")}\r\n style={{\r\n width: \"100%\",\r\n height: \"100%\",\r\n objectFit: \"cover\",\r\n display: \"block\",\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default AttachmentImageViewer;\r\n","import Card from \"@mui/material/Card\";\r\nimport CardActions from \"@mui/material/CardActions\";\r\nimport CardContent from \"@mui/material/CardContent\";\r\nimport CardMedia from \"@mui/material/CardMedia\";\r\nimport Button from \"@mui/material/Button\";\r\nimport Typography from \"@mui/material/Typography\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { IconButton, Tooltip } from \"@mui/material\";\r\nimport { useAxios, useConfirmationWindow, useSession } from \"../../../hooks\";\r\nimport AttachmentImageViewer from \"./AttachmentImageViewer\";\r\n\r\nexport type attachment = {\r\n attachmentCode: string;\r\n setAttachmentConfig: (props: any) => void;\r\n id: number;\r\n attachmentConfigId: number;\r\n attachmentSize: number;\r\n category: string;\r\n docType: string;\r\n fileName: string;\r\n refKey: string;\r\n allowDelete?: boolean;\r\n downloadAuthorityKey?: string;\r\n remark: string;\r\n};\r\n\r\nconst AttachmentCard: React.FC<attachment> = (props) => {\r\n const { handleGetRequest, handleDeleteRequest } = useAxios();\r\n const { isUserAuthorized } = useSession();\r\n let allowDownload = true;\r\n if (props?.downloadAuthorityKey) {\r\n allowDownload = isUserAuthorized(props.downloadAuthorityKey);\r\n }\r\n const handleDelete = async () => {\r\n await handleDeleteRequest({\r\n endPointURI: \"api/v1/attachment/archive\",\r\n parameters: {\r\n attachmentCode: props.attachmentCode,\r\n refKey: props.refKey,\r\n attachmentId: props.id,\r\n },\r\n successCallBkFn: (response) => {\r\n props.setAttachmentConfig(response.data);\r\n },\r\n showMask: true,\r\n });\r\n };\r\n const { ConfirmationWindow, setOpen } = useConfirmationWindow({\r\n title: \"Confirmation\",\r\n body: \"Are you sure you want to delete this attachment?\",\r\n onConfirmationCallBk: () => {\r\n handleDelete();\r\n },\r\n });\r\n\r\n const handleDownload = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/attachment/download\",\r\n parameters: {\r\n attachmentId: props.id,\r\n },\r\n showMask: true,\r\n responseType: \"blob\",\r\n successCallBkFn: (response) => {\r\n const url = window.URL.createObjectURL(new Blob([response.data]));\r\n const link = document.createElement(\"a\");\r\n link.href = url;\r\n link.setAttribute(\"download\", props.fileName);\r\n document.body.appendChild(link);\r\n link.click();\r\n link.remove();\r\n },\r\n });\r\n };\r\n\r\n return (\r\n <>\r\n <ConfirmationWindow />\r\n <Card sx={{ width: 300, border: \"0.5px solid gray\" }}>\r\n <CardMedia\r\n sx={{\r\n height: 140,\r\n width: 300,\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n {props?.docType.toLocaleLowerCase().includes(\"image\") ? (\r\n <AttachmentImageViewer attachmentId={props.id} />\r\n ) : (\r\n <FontAwesomeIcon icon=\"file\" size=\"3x\" />\r\n )}\r\n </CardMedia>\r\n <CardContent>\r\n <Typography gutterBottom variant=\"h6\" component=\"div\">\r\n {props.fileName}\r\n </Typography>\r\n <Typography variant=\"body2\" sx={{ color: \"text.secondary\" }}>\r\n {`File Size: ${props?.attachmentSize || \"unknown\"} kb`}\r\n </Typography>\r\n <Typography variant=\"body2\" sx={{ color: \"text.secondary\" }}>\r\n {`File Type: ${props?.category || \"NA\"}`}\r\n </Typography>\r\n <Typography variant=\"body2\" sx={{ color: \"text.secondary\" }}>\r\n {props.remark}\r\n </Typography>\r\n </CardContent>\r\n <CardActions>\r\n {props?.allowDelete ? (\r\n <IconButton\r\n size=\"small\"\r\n onClick={() => {\r\n setOpen(true);\r\n }}\r\n >\r\n <Tooltip title=\"Delete Attachment\">\r\n <FontAwesomeIcon icon=\"trash\" />\r\n </Tooltip>\r\n </IconButton>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n <div style={{ flex: 1 }}></div>\r\n {allowDownload ? (\r\n <IconButton size=\"small\" onClick={handleDownload}>\r\n <Tooltip title=\"Download Attachment\">\r\n <FontAwesomeIcon icon=\"download\" />\r\n </Tooltip>\r\n </IconButton>\r\n ) : (\r\n <></>\r\n )}\r\n </CardActions>\r\n </Card>\r\n </>\r\n );\r\n};\r\n\r\nexport default AttachmentCard;\r\n","import { useEffect, useState } from \"react\";\r\nimport { useAxios, useSession } from \"../../../hooks\";\r\nimport { toast } from \"react-toastify\";\r\nimport { Box, Button, Grid2, Paper } from \"@mui/material\";\r\nimport ComboBox from \"../DataEntryTemplates/TemplateDataForm/FormFields/ComboBox\";\r\nimport TemplateTextField from \"../DataEntryTemplates/TemplateDataForm/FormFields/TemplateTextField\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport AttachmentCard from \"./AttachmentCard\";\r\n\r\nexport type AttachmentPanelProps = {\r\n attachmentCode: string;\r\n enableAttachment?: boolean;\r\n refKey: string;\r\n};\r\n\r\ntype AttachmentConfig = {\r\n id: number;\r\n attachmentCode: string;\r\n uploadDirectory: string;\r\n storageType: \"FILE_SYSTEM\" | \"SFTP\";\r\n maxAllowedNumberOfFiles: number;\r\n isCategoryRequired?: boolean;\r\n attachmentCategories?: string;\r\n uploadAuthorityKey?: string;\r\n downloadAuthorityKey?: string;\r\n allowedFileTypes?: string;\r\n refKeyAttachments?: Array<any>;\r\n};\r\n\r\nconst AttachmentPanel: React.FC<AttachmentPanelProps> = (props) => {\r\n const { handleUploadRequest, handleGetRequest } = useAxios();\r\n const [files, setFiles] = useState<FileList | null>(null);\r\n const [attachmentCategories, setAttachmentCategories] = useState<\r\n Array<string>\r\n >([]);\r\n const [remark, setRemark] = useState(null);\r\n const [selectedCategory, setSelectedCategory] = useState(null);\r\n const [allowedTypes, setAllowedTypes] = useState<Array<string>>([]);\r\n const [attachmentConfig, setAttachmentConfig] =\r\n useState<AttachmentConfig>(null);\r\n\r\n const loadAttachmentConfig = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/attachment/info\",\r\n showMask: true,\r\n parameters: {\r\n attachmentCode: props.attachmentCode,\r\n refKey: props.refKey,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setAttachmentConfig(response.data);\r\n },\r\n });\r\n };\r\n\r\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\r\n if (e.target.files) {\r\n for (const file of e.target.files) {\r\n const fileExt = getFileExtension(file.name);\r\n if (allowedTypes.length > 0 && !allowedTypes.includes(fileExt)) {\r\n toast.error(fileExt + \" is not allowed\");\r\n return;\r\n }\r\n }\r\n }\r\n setFiles(e.target.files);\r\n };\r\n const { isUserAuthorized } = useSession();\r\n\r\n const handleUpload = async () => {\r\n let existingAttachments = attachmentConfig?.refKeyAttachments.length || 0;\r\n if (\r\n attachmentConfig?.maxAllowedNumberOfFiles &&\r\n files.length + existingAttachments >\r\n attachmentConfig.maxAllowedNumberOfFiles\r\n ) {\r\n toast.error(\r\n \"Maximum number of attachments is \" +\r\n attachmentConfig.maxAllowedNumberOfFiles\r\n );\r\n return;\r\n }\r\n if (\r\n attachmentConfig?.isCategoryRequired === true &&\r\n attachmentCategories.length > 0 &&\r\n (selectedCategory == null ||\r\n selectedCategory === undefined ||\r\n selectedCategory === \"\")\r\n ) {\r\n toast.error(\"You must selected document type to process your request\");\r\n return;\r\n }\r\n if (!files) {\r\n toast.error(\"You must add files to upload\");\r\n return;\r\n }\r\n await handleUploadRequest({\r\n endPointURI: \"api/v1/attachment/upload\",\r\n showMask: true,\r\n loadingMessage: \"Uploading files ... please wait\",\r\n parameters: {\r\n refKey: props.refKey,\r\n attachmentCode: props.attachmentCode,\r\n remark,\r\n category: selectedCategory,\r\n },\r\n files,\r\n successCallBkFn: (response) => {\r\n setAttachmentConfig(response.data);\r\n setFiles(null);\r\n setSelectedCategory(null);\r\n setRemark(null);\r\n toast.success(\"Your request has been process successfully\");\r\n },\r\n });\r\n };\r\n const getFileExtension = (name: string) => {\r\n return name.split(\".\").pop()?.toLowerCase() || \"\";\r\n };\r\n\r\n useEffect(() => {\r\n loadAttachmentConfig();\r\n }, [props.refKey, props.attachmentCode]);\r\n\r\n useEffect(() => {\r\n if (attachmentConfig?.allowedFileTypes) {\r\n setAllowedTypes(attachmentConfig.allowedFileTypes.split(\",\"));\r\n } else {\r\n setAllowedTypes([]);\r\n }\r\n if (attachmentConfig?.attachmentCategories) {\r\n const cats = [];\r\n for (const category of attachmentConfig.attachmentCategories.split(\",\")) {\r\n cats.push({ value: category });\r\n }\r\n setAttachmentCategories(cats);\r\n } else {\r\n setAttachmentCategories([]);\r\n }\r\n }, [attachmentConfig]);\r\n let showAttachments = true;\r\n if (\r\n attachmentConfig?.downloadAuthorityKey &&\r\n !isUserAuthorized(attachmentConfig?.downloadAuthorityKey)\r\n ) {\r\n showAttachments = false;\r\n }\r\n let allowUpload = true;\r\n if (props?.enableAttachment === false) {\r\n allowUpload = false;\r\n }\r\n if (\r\n attachmentConfig?.uploadAuthorityKey &&\r\n !isUserAuthorized(attachmentConfig.uploadAuthorityKey)\r\n ) {\r\n allowUpload = false;\r\n }\r\n\r\n return (\r\n <Paper\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n width: \"100%\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n overflow: \"hidden\",\r\n flexGrow: 1,\r\n }}\r\n >\r\n {allowUpload ? (\r\n <>\r\n {attachmentConfig?.maxAllowedNumberOfFiles === undefined ||\r\n attachmentConfig?.maxAllowedNumberOfFiles === null ||\r\n attachmentConfig?.maxAllowedNumberOfFiles >\r\n attachmentConfig.refKeyAttachments.length ? (\r\n <>\r\n <h3>\r\n <FontAwesomeIcon\r\n icon=\"paperclip\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n Attachment Uploader\r\n </h3>\r\n <input\r\n type=\"file\"\r\n style={{ margin: 20 }}\r\n accept={attachmentConfig?.allowedFileTypes}\r\n multiple\r\n onChange={handleChange}\r\n />\r\n {attachmentCategories.length > 0 ? (\r\n <ComboBox\r\n label=\"Attachment Type\"\r\n sx={{ width: 300, m: 1 }}\r\n options={attachmentCategories}\r\n displayField=\"value\"\r\n valueField=\"value\"\r\n value={selectedCategory}\r\n onChangeCallBack={(v) => {\r\n setSelectedCategory(v);\r\n }}\r\n />\r\n ) : (\r\n <></>\r\n )}\r\n\r\n <TemplateTextField\r\n label=\"Remark\"\r\n value={remark}\r\n onChange={(event) => setRemark(event.target.value)}\r\n multiline={true}\r\n sx={{ width: 300, m: 1 }}\r\n rows={3}\r\n />\r\n <Button sx={{ m: 1 }} variant=\"contained\" onClick={handleUpload}>\r\n Upload\r\n </Button>\r\n </>\r\n ) : (\r\n <></>\r\n )}\r\n </>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n {showAttachments && attachmentConfig?.refKeyAttachments?.length > 0 ? (\r\n <>\r\n <h3>\r\n <FontAwesomeIcon\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n icon=\"paperclip\"\r\n />\r\n Attachments\r\n </h3>\r\n <Grid2\r\n container\r\n spacing={2}\r\n sx={{ overflow: \"auto\", padding: 1, justifyContent: \"center\" }}\r\n >\r\n {attachmentConfig?.refKeyAttachments.map((refKeyAttachment) => {\r\n return (\r\n <Grid2\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 <AttachmentCard\r\n {...refKeyAttachment}\r\n attachmentCode={props.attachmentCode}\r\n setAttachmentConfig={setAttachmentConfig}\r\n downloadAuthorityKey={attachmentConfig.downloadAuthorityKey}\r\n allowDelete={allowUpload}\r\n />\r\n </Grid2>\r\n );\r\n })}\r\n </Grid2>\r\n </>\r\n ) : (\r\n <></>\r\n )}\r\n </Paper>\r\n );\r\n};\r\n\r\nexport default AttachmentPanel;\r\n","import Typography from \"@mui/material/Typography\";\r\nimport { workflowDocumentActionHistory } from \"./WorkflowDocumentPanel\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { Avatar, Box, Divider, Paper, Stack } from \"@mui/material\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport AttachmentImageViewer from \"../attachment/AttachmentImageViewer\";\r\n\r\ntype WorkflowDocumentTimeLineProp = {\r\n actionHistory: Array<workflowDocumentActionHistory>;\r\n};\r\n\r\nconst WorkflowDocumentTimeLine: React.FC<WorkflowDocumentTimeLineProp> = (\r\n props\r\n) => {\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const { t } = useTranslation();\r\n return (\r\n <Paper\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n flexGrow: 1,\r\n padding: 1,\r\n margin: 1,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n width: \"100%\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n fontSize: 18,\r\n fontWeight: \"bold\",\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n icon=\"history\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {t(\"WF_ACTION_HISTORY_LABEL\")}\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 overflowY: \"auto\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n }}\r\n >\r\n {props.actionHistory.map((actionHistoryRecord, index) => {\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 marginBottom: 2,\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flex: 1,\r\n flexDirection: \"column\",\r\n alignItems: \"flex-end\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <Box sx={{ marginBottom: 0.2 }}>\r\n {actionHistoryRecord.actionTime}\r\n </Box>\r\n <Typography>\r\n via {actionHistoryRecord.actionMethod}\r\n </Typography>\r\n </Box>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n position: \"relative\",\r\n marginRight: 2,\r\n marginLeft: 2,\r\n }}\r\n >\r\n <AttachmentImageViewer\r\n showAsAvatar={true}\r\n attachmentCode=\"EMPLOYEE_PHOTOS\"\r\n refKey={actionHistoryRecord?.personId + \"\" || \"0\"}\r\n style={{ m: 1, width: 70, height: 70 }}\r\n />\r\n {index !== props.actionHistory.length - 1 ? (\r\n <Box sx={{ marginTop: 11, position: \"absolute\" }}>|</Box>\r\n ) : (\r\n <></>\r\n )}\r\n </Box>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n flex: 1,\r\n flexDirection: \"column\",\r\n alignItems: \"flex-start\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <Box sx={{ width: \"100%\" }}>\r\n {AppLayout.appDirection === \"ltr\"\r\n ? `${actionHistoryRecord?.documentActionEnName}`\r\n : `${actionHistoryRecord?.documentActionArName}`}\r\n {actionHistoryRecord?.actionComment\r\n ? \" - \" + actionHistoryRecord.actionComment\r\n : \"\"}\r\n </Box>\r\n <Box sx={{ width: \"100%\" }}>\r\n {AppLayout.appDirection === \"ltr\"\r\n ? `${actionHistoryRecord?.employeeEnName}`\r\n : `${actionHistoryRecord?.employeeArName}`}\r\n </Box>\r\n </Box>\r\n </Box>\r\n </>\r\n );\r\n })}\r\n </Box>\r\n </Paper>\r\n );\r\n};\r\n\r\nexport default WorkflowDocumentTimeLine;\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\nimport AttachmentPanel from \"../../attachment/AttachmentPanel\";\r\nimport WorkflowDocumentPanel from \"../../workflow/WorkflowDocumentPanel\";\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 { t } = useTranslation();\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const [selectedRecord, setSelectedRecord] = useState<any>({});\r\n const [attachmentPanelEnabledForRecord, setAttachmentPanelEnabledForRecord] =\r\n useState<boolean>(true);\r\n const { getLookupOptions } = useLookupGridColumn();\r\n const { Window: AttachmentWindow, setWindowState: setAttachmentWindowState } =\r\n useWindow({\r\n windowTitle: t(props.gridTitle) + \" Attachments\",\r\n windowIcon: \"paperclip\",\r\n width: \"fit-content\",\r\n height: \"fit-content\",\r\n minHeight: 500,\r\n minWidth: \"50%\",\r\n onCloseCallBack: () => {\r\n props?.apiActions?.reloadData(props.gridLoadParametersValues);\r\n },\r\n });\r\n const { Window: WorkFlowWindow, setWindowState: setWorkFlowWindowState } =\r\n useWindow({\r\n windowTitle: t(props.gridTitle) + \" Approvals\",\r\n windowIcon: \"stamp\",\r\n width: \"fit-content\",\r\n height: \"fit-content\",\r\n minHeight: 500,\r\n minWidth: \"80%\",\r\n onCloseCallBack: () => {\r\n props?.apiActions?.reloadData(props.gridLoadParametersValues);\r\n },\r\n });\r\n const [generatedColumns, setGeneratedColumns] = useState<\r\n Array<TemplateGridColDef>\r\n >([]);\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 (\r\n record[props?.keyColumnName || \"id\"] &&\r\n record[props?.keyColumnName || \"id\"] > 0 &&\r\n props?.attachment\r\n ) {\r\n actions?.push(\r\n <GridActionsCellItem\r\n icon={\r\n <Tooltip title={\"Attachments\"}>\r\n <FontAwesomeIcon icon={\"paperclip\"} />\r\n </Tooltip>\r\n }\r\n label={\"Attachments\"}\r\n className=\"textPrimary\"\r\n color=\"inherit\"\r\n onClick={() => {\r\n setSelectedRecord(record);\r\n if (props?.attachment?.enableAttachFn) {\r\n setAttachmentPanelEnabledForRecord(\r\n props.attachment.enableAttachFn(record)\r\n );\r\n } else {\r\n setAttachmentPanelEnabledForRecord(true);\r\n }\r\n setAttachmentWindowState(true);\r\n }}\r\n />\r\n );\r\n }\r\n if (\r\n record[props?.keyColumnName || \"id\"] &&\r\n record[props?.keyColumnName || \"id\"] > 0 &&\r\n props?.workFlowDocumentCode\r\n ) {\r\n actions?.push(\r\n <GridActionsCellItem\r\n icon={\r\n <Tooltip title={\"Approvals\"}>\r\n <FontAwesomeIcon icon={\"stamp\"} />\r\n </Tooltip>\r\n }\r\n label={\"Approvals\"}\r\n className=\"textPrimary\"\r\n color=\"inherit\"\r\n onClick={() => {\r\n setSelectedRecord(record);\r\n setWorkFlowWindowState(true);\r\n }}\r\n />\r\n );\r\n }\r\n if (\r\n record[props?.keyColumnName || \"id\"] &&\r\n record[props?.keyColumnName || \"id\"] > 0 &&\r\n props?.rowActions\r\n ) {\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 (props?.attachment ? 30 : 0) +\r\n (props?.workFlowDocumentCode ? 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 props.apiActions.reloadData(props?.gridLoadParametersValues);\r\n }, [session.UserInfo?.currentOrganization]);\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 keyColumnName={props.keyColumnName}\r\n attachment={props.attachment}\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 {props?.attachment ? (\r\n <AttachmentWindow>\r\n <AttachmentPanel\r\n attachmentCode={props.attachment.attachmentCode}\r\n refKey={selectedRecord[props?.keyColumnName || \"id\"]}\r\n enableAttachment={attachmentPanelEnabledForRecord}\r\n />\r\n </AttachmentWindow>\r\n ) : (\r\n <></>\r\n )}\r\n {props?.workFlowDocumentCode ? (\r\n <WorkFlowWindow>\r\n <WorkflowDocumentPanel\r\n workFlowDocumentCode={props.workFlowDocumentCode}\r\n refDocumentId={selectedRecord[props?.keyColumnName || \"id\"]}\r\n postActionCallBk={() => {\r\n debugger;\r\n setWorkFlowWindowState(false);\r\n props.apiActions.reloadData(props.gridLoadParametersValues);\r\n }}\r\n cancelActionCallBk={() => {\r\n setWorkFlowWindowState(false);\r\n props.apiActions.reloadData(props.gridLoadParametersValues);\r\n }}\r\n />\r\n </WorkFlowWindow>\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 onRowEditStop={(params, event) => {\r\n if (params.reason === \"rowFocusOut\") {\r\n event.defaultMuiPrevented = true;\r\n }\r\n }}\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/public/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 { 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 return formElements;\r\n};\r\n\r\nconst ExcelReportViewer: React.FC<ExcelReportViewerProps> = (props) => {\r\n const [data, setData] = useState([]);\r\n useEffect(() => {\r\n const newData = props.reportData.map((record, index) => {\r\n return { ...record, report_record_data_key: index };\r\n });\r\n setData(newData);\r\n }, [props.reportData]);\r\n return (\r\n <TemplateGrid\r\n data={data}\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 keyColumnName={\"report_record_data_key\"}\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/public/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/public/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/public/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 debugger;\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 },\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 { useEffect, useState } from \"react\";\r\nimport { useAxios, useSession, useWindow } from \"../../../hooks\";\r\nimport {\r\n Avatar,\r\n Box,\r\n Button,\r\n Divider,\r\n Grid2,\r\n IconButton,\r\n Paper,\r\n} from \"@mui/material\";\r\nimport TemplateTextField from \"../DataEntryTemplates/TemplateDataForm/FormFields/TemplateTextField\";\r\nimport ComboBox from \"../DataEntryTemplates/TemplateDataForm/FormFields/ComboBox\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport WorkflowDocumentTimeLine from \"./WorkflowDocumentTimeLine\";\r\nimport { toast } from \"react-toastify\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport ReportViewer from \"../report/ReportViewer\";\r\nimport AttachmentImageViewer from \"../attachment/AttachmentImageViewer\";\r\nimport { useNavigate } from \"react-router-dom\";\r\n\r\nexport type WorkflowDocumentPanelProps = {\r\n workFlowDocumentCode: string;\r\n refDocumentId: any;\r\n postActionCallBk?: () => void;\r\n cancelActionCallBk?: () => void;\r\n};\r\n\r\nexport type workflowDocumentAction = {\r\n id: number;\r\n document_action_code: string;\r\n document_action_ar_name: string;\r\n document_action_en_name: string;\r\n post_action_endpoint?: string;\r\n pre_action_endpoint?: string;\r\n next_document_status_id?: number;\r\n next_action_takers?: Array<person>;\r\n require_comment: any;\r\n};\r\n\r\nexport type person = {\r\n id: number;\r\n email: string;\r\n employeeArName: string;\r\n employeeEnName: string;\r\n mobileNumber: string;\r\n username: string;\r\n};\r\n\r\nexport type workflowDocumentActionHistory = {\r\n id: number;\r\n actionTime: string;\r\n actionMethod: string;\r\n actionComment: string;\r\n documentActionArName: string;\r\n documentActionEnName: string;\r\n employeeArName: string;\r\n employeeEnName: string;\r\n personId: number;\r\n};\r\n\r\ntype WorkflowDocumentInfo = {\r\n workflowDocument: any;\r\n referencedDocument: any;\r\n workflowDocumentReport: any;\r\n workflowDocumentStatus: any;\r\n actionsHistory: Array<workflowDocumentActionHistory>;\r\n nextActions: Array<workflowDocumentAction>;\r\n nextActionTakers: any;\r\n};\r\n\r\nconst WorkflowDocumentPanel: React.FC<WorkflowDocumentPanelProps> = (props) => {\r\n const navigate = useNavigate();\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const { isUserAuthorized, UserInfo } = useSession();\r\n const { handleGetRequest, handlePostRequest } = useAxios();\r\n const [action, setAction] = useState<workflowDocumentAction>(null);\r\n const [authorizedActions, setAuthorizedActions] = useState<\r\n Array<workflowDocumentAction>\r\n >([]);\r\n const { t } = useTranslation();\r\n const [actionComment, setActionComment] = useState(null);\r\n const [workflowDocumentInfo, setWorkflowDocumentInfo] =\r\n useState<WorkflowDocumentInfo>({\r\n referencedDocument: null,\r\n workflowDocumentReport: null,\r\n workflowDocument: null,\r\n workflowDocumentStatus: null,\r\n actionsHistory: [],\r\n nextActionTakers: null,\r\n nextActions: [],\r\n });\r\n const { Window: ReporTViewWindow, setWindowState: setReportViewWindowState } =\r\n useWindow({\r\n windowTitle:\r\n AppLayout.appDirection === \"ltr\"\r\n ? workflowDocumentInfo?.workflowDocument &&\r\n workflowDocumentInfo?.referencedDocument\r\n ? `${workflowDocumentInfo?.workflowDocument?.documentEnName} # ${\r\n workflowDocumentInfo?.referencedDocument[\r\n workflowDocumentInfo?.workflowDocument?.documentNumberField\r\n ]\r\n }`\r\n : \"Document\"\r\n : workflowDocumentInfo?.workflowDocument &&\r\n workflowDocumentInfo?.referencedDocument\r\n ? `${workflowDocumentInfo?.workflowDocument?.documentArName} # ${\r\n workflowDocumentInfo?.referencedDocument[\r\n workflowDocumentInfo?.workflowDocument?.documentNumberField\r\n ]\r\n }`\r\n : \"وثيقة\",\r\n windowIcon: \"eye\",\r\n width: \"80%\",\r\n });\r\n const loadWorkFlowDocumentInfo = async () => {\r\n await handleGetRequest({\r\n endPointURI: \"api/v1/public/workflow/doc/info\",\r\n showMask: true,\r\n parameters: {\r\n workflowDocumentCode: props.workFlowDocumentCode,\r\n refDocumentId: props.refDocumentId,\r\n },\r\n successCallBkFn: (response: any) => {\r\n setWorkflowDocumentInfo(response.data);\r\n },\r\n failureCallBkFn: () => {\r\n setWorkflowDocumentInfo({\r\n referencedDocument: null,\r\n workflowDocumentReport: null,\r\n workflowDocument: null,\r\n workflowDocumentStatus: null,\r\n actionsHistory: [],\r\n nextActions: [],\r\n nextActionTakers: null,\r\n });\r\n },\r\n });\r\n };\r\n\r\n const validateBeforeProcessWorkflowDocumentAction = async () => {\r\n if (\r\n action === undefined ||\r\n action === null ||\r\n action?.id === undefined ||\r\n action?.id === null\r\n ) {\r\n toast.error(\"You must select action to process\");\r\n return;\r\n }\r\n if (\r\n (action.require_comment === true ||\r\n action.require_comment === 1 ||\r\n action.require_comment === \"true\") &&\r\n (actionComment === null || actionComment === \"\")\r\n ) {\r\n toast.error(\"You must enter comment for the action to be processed\");\r\n return;\r\n }\r\n if (action?.pre_action_endpoint) {\r\n await handlePostRequest({\r\n endPointURI: action.pre_action_endpoint,\r\n showMask: true,\r\n loadingMessage: \"Processing pre action validation ... please wait\",\r\n parameters: {\r\n refDocumentId: props.refDocumentId,\r\n actionId: action.id,\r\n },\r\n successCallBkFn: () => {\r\n processWorkflowDocumentAction();\r\n },\r\n });\r\n return;\r\n }\r\n processWorkflowDocumentAction();\r\n };\r\n const processWorkflowDocumentAction = async () => {\r\n await handlePostRequest({\r\n endPointURI: \"api/v1/public/workflow/doc/action\",\r\n showMask: true,\r\n data: {\r\n workflowDocumentId: workflowDocumentInfo?.workflowDocument?.id,\r\n refDocumentId: props.refDocumentId,\r\n actionId: action.id,\r\n refDocumentStatus:\r\n workflowDocumentInfo?.workflowDocumentStatus?.documentStatusCode,\r\n actionComment: actionComment,\r\n },\r\n successCallBkFn: async (response) => {\r\n if (action?.post_action_endpoint) {\r\n await handlePostRequest({\r\n endPointURI: action.post_action_endpoint,\r\n showMask: true,\r\n loadingMessage: \"Processing post action process ... please wait\",\r\n parameters: {\r\n refDocumentId: props.refDocumentId,\r\n actionId: action.id,\r\n },\r\n successCallBkFn: () => {\r\n loadWorkFlowDocumentInfo();\r\n if (props?.postActionCallBk) {\r\n props.postActionCallBk();\r\n }\r\n },\r\n });\r\n return;\r\n }\r\n loadWorkFlowDocumentInfo();\r\n },\r\n });\r\n };\r\n\r\n const adjustAuthorizedActions = () => {\r\n if (workflowDocumentInfo?.nextActions?.length > 0) {\r\n setAuthorizedActions(\r\n workflowDocumentInfo.nextActions.filter((action) => {\r\n if (\r\n !(\r\n workflowDocumentInfo?.workflowDocumentStatus\r\n ?.nextActionTakersAuthority ||\r\n workflowDocumentInfo?.nextActionTakers\r\n )\r\n ) {\r\n return true;\r\n }\r\n if (\r\n workflowDocumentInfo?.workflowDocumentStatus\r\n ?.nextActionTakersAuthority\r\n ) {\r\n if (\r\n isUserAuthorized(\r\n workflowDocumentInfo.workflowDocumentStatus\r\n .nextActionTakersAuthority\r\n )\r\n ) {\r\n return true;\r\n }\r\n }\r\n if (workflowDocumentInfo?.nextActionTakers) {\r\n for (const actionTaker of workflowDocumentInfo.nextActionTakers) {\r\n if (\r\n UserInfo?.username === actionTaker?.username ||\r\n UserInfo?.username === actionTaker?.USERNAME\r\n ) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n })\r\n );\r\n } else {\r\n setAuthorizedActions([]);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n if (props.refDocumentId && props.workFlowDocumentCode) {\r\n loadWorkFlowDocumentInfo();\r\n }\r\n }, [props.refDocumentId, props.workFlowDocumentCode]);\r\n\r\n useEffect(() => {\r\n if (workflowDocumentInfo?.nextActions) {\r\n adjustAuthorizedActions();\r\n } else {\r\n setAuthorizedActions([]);\r\n }\r\n }, [workflowDocumentInfo.nextActions, workflowDocumentInfo.nextActionTakers]);\r\n return (\r\n <>\r\n {workflowDocumentInfo?.workflowDocumentReport?.id ? (\r\n <ReporTViewWindow>\r\n <ReportViewer\r\n reportCode={\r\n workflowDocumentInfo?.workflowDocumentReport?.reportCode\r\n }\r\n resultMode=\"App\"\r\n byPassParameterEntry={true}\r\n reportParametersValues={{ doc_id: props.refDocumentId + \"\" }}\r\n />\r\n </ReporTViewWindow>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n {workflowDocumentInfo?.workflowDocument ? (\r\n <Box\r\n sx={{\r\n width: \"100%\",\r\n textAlign: \"center\",\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 icon=\"file\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {AppLayout.appDirection === \"ltr\"\r\n ? `${workflowDocumentInfo?.workflowDocument?.documentEnName} # ${\r\n workflowDocumentInfo?.referencedDocument[\r\n workflowDocumentInfo?.workflowDocument?.documentNumberField\r\n ]\r\n }`\r\n : `${workflowDocumentInfo?.workflowDocument?.documentArName} # ${\r\n workflowDocumentInfo?.referencedDocument[\r\n workflowDocumentInfo?.workflowDocument?.documentNumberField\r\n ]\r\n }`}\r\n {workflowDocumentInfo?.workflowDocumentStatus\r\n ? AppLayout.appDirection === \"ltr\"\r\n ? ` ( ${workflowDocumentInfo?.workflowDocumentStatus?.documentStatusEnName} )`\r\n : ` ( ${workflowDocumentInfo?.workflowDocumentStatus?.documentStatusArName} )`\r\n : \"\"}\r\n <Box sx={{ flex: 1 }}></Box>\r\n {workflowDocumentInfo?.workflowDocumentReport?.id ? (\r\n <Button\r\n onClick={() => {\r\n setReportViewWindowState(true);\r\n }}\r\n variant=\"outlined\"\r\n startIcon={<FontAwesomeIcon icon=\"eye\" />}\r\n >\r\n {t(\"VIEW_LABEL\")}\r\n </Button>\r\n ) : (\r\n <></>\r\n )}\r\n </Box>\r\n ) : (\r\n <></>\r\n )}\r\n\r\n <Box\r\n sx={{\r\n flex: 1,\r\n width: \"100%\",\r\n overflow: \"hidden\",\r\n display: \"flex\",\r\n // flexDirection: \"column\",\r\n }}\r\n >\r\n {authorizedActions?.length > 0 ? (\r\n <Paper\r\n sx={{\r\n padding: 2,\r\n display: \"flex\",\r\n flex: 1,\r\n margin: 1,\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n overflow: \"hidden\",\r\n }}\r\n >\r\n <ComboBox\r\n sx={{ marginBottom: 2, width: 400 }}\r\n label={t(\"WE_AVAILABLE_ACTIONS_LABEL\")}\r\n displayField={\r\n AppLayout.appDirection === \"ltr\"\r\n ? \"document_action_en_name\"\r\n : \"document_action_ar_name\"\r\n }\r\n valueField={\"id\"}\r\n value={action?.id}\r\n options={authorizedActions}\r\n onChangeCallBack={(v, selectedRecord) => {\r\n setAction(selectedRecord);\r\n }}\r\n />\r\n {/* <ComboBox\r\n sx={{ marginBottom: 2, width: 400 }}\r\n label={t(\"WE_NEXT_APPROVER_LABEL\")}\r\n displayField={\r\n AppLayout.appDirection === \"ltr\"\r\n ? \"employeeEnName\"\r\n : \"employeeArName\"\r\n }\r\n valueField={\"id\"}\r\n value={nextActionTaker?.id}\r\n options={action?.nextActionTakers || []}\r\n onChangeCallBack={(v, selectedRecord) => {\r\n setNextActionTaker(selectedRecord);\r\n }}\r\n /> */}\r\n <TemplateTextField\r\n sx={{ width: 400 }}\r\n rows={3}\r\n value={actionComment}\r\n onChange={(event) => {\r\n setActionComment(event.target.value);\r\n }}\r\n multiline={true}\r\n label={t(\"WF_COMMENT_LABEL\")}\r\n />\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <Button\r\n color=\"success\"\r\n variant=\"contained\"\r\n sx={{ width: 200, m: 1 }}\r\n onClick={validateBeforeProcessWorkflowDocumentAction}\r\n >\r\n {t(\"WF_TAKE_ACTION_BTN_LABEL\")}\r\n </Button>\r\n {props?.cancelActionCallBk ? (\r\n <Button\r\n variant=\"contained\"\r\n sx={{ width: 200, m: 1 }}\r\n color=\"error\"\r\n onClick={() => {\r\n if (props?.cancelActionCallBk) {\r\n props.cancelActionCallBk();\r\n }\r\n }}\r\n >\r\n {t(\"WF_CANCEL_BTN_LABEL\")}\r\n </Button>\r\n ) : (\r\n <></>\r\n )}\r\n </Box>\r\n {workflowDocumentInfo?.nextActionTakers &&\r\n workflowDocumentInfo.nextActionTakers.length > 0 ? (\r\n <>\r\n <Divider\r\n variant=\"fullWidth\"\r\n flexItem\r\n sx={{ marginTop: 1, marginBottom: 1 }}\r\n >\r\n <Box\r\n sx={{\r\n width: \"100%\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n fontSize: 18,\r\n fontWeight: \"bold\",\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n icon=\"users\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />{\" \"}\r\n {t(\"WF_WAITING_FOR_LABEL\")}\r\n </Box>\r\n </Divider>\r\n\r\n <Box\r\n sx={{\r\n flex: 1,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n overflow: \"auto\",\r\n padding: 1,\r\n width: \"100%\",\r\n }}\r\n >\r\n {workflowDocumentInfo.nextActionTakers.map(\r\n (nextActionTaker: any) => {\r\n return (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n border: \"1px dotted black\",\r\n width: 400,\r\n marginBottom: 2,\r\n padding: 2,\r\n }}\r\n >\r\n <AttachmentImageViewer\r\n showAsAvatar={true}\r\n attachmentCode=\"EMPLOYEE_PHOTOS\"\r\n refKey={nextActionTaker?.id || \"0\"}\r\n style={{\r\n marginRight: 2,\r\n marginLeft: 2,\r\n width: 60,\r\n height: 60,\r\n }}\r\n />\r\n <Box\r\n sx={{\r\n flex: 2,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"flex-start\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <div>\r\n {AppLayout.appDirection === \"ltr\"\r\n ? nextActionTaker?.employee_en_name\r\n : nextActionTaker?.employee_ar_name}\r\n </div>\r\n <div>\r\n {nextActionTaker?.email ? (\r\n <>\r\n <FontAwesomeIcon\r\n icon=\"envelope\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {nextActionTaker?.email}\r\n </>\r\n ) : (\r\n <></>\r\n )}\r\n </div>\r\n <div>\r\n {nextActionTaker?.mobile_number ? (\r\n <>\r\n <FontAwesomeIcon\r\n icon=\"mobile\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {nextActionTaker?.mobile_number}\r\n </>\r\n ) : (\r\n <></>\r\n )}\r\n </div>\r\n </Box>\r\n </Box>\r\n );\r\n }\r\n )}\r\n </Box>\r\n </>\r\n ) : (\r\n <></>\r\n )}\r\n </Paper>\r\n ) : (\r\n <></>\r\n )}\r\n {workflowDocumentInfo?.actionsHistory.length > 0 ? (\r\n <WorkflowDocumentTimeLine\r\n actionHistory={workflowDocumentInfo.actionsHistory}\r\n />\r\n ) : (\r\n <Paper\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n flexGrow: 1,\r\n padding: 2,\r\n margin: 1,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n width: \"100%\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n fontSize: 18,\r\n fontWeight: \"bold\",\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n icon=\"history\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {t(\"WF_ACTION_HISTORY_LABEL\")}\r\n </Box>\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 No Action Log available\r\n </Box>\r\n </Paper>\r\n )}\r\n </Box>\r\n </>\r\n );\r\n};\r\n\r\nexport default WorkflowDocumentPanel;\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, Icon, IconButton, Tooltip } 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\nimport { useWindow } from \"../../../../hooks\";\r\nimport AttachmentPanel from \"../../attachment/AttachmentPanel\";\r\nimport WorkflowDocumentPanel from \"../../workflow/WorkflowDocumentPanel\";\r\n\r\nconst TemplateForm: React.FC<TemplateFormProps> = (\r\n props: TemplateFormProps\r\n) => {\r\n const { Window: AttachmentWindow, setWindowState: setAttachmentWindowState } =\r\n useWindow({\r\n windowTitle: \"Attachments\",\r\n windowIcon: \"paperclip\",\r\n width: \"fit-content\",\r\n height: \"fit-content\",\r\n minHeight: 500,\r\n minWidth: 400,\r\n });\r\n const { Window: WorkflowWindow, setWindowState: setWorkflowWindowState } =\r\n useWindow({\r\n windowTitle: \"Approvals\",\r\n windowIcon: \"stamp\",\r\n width: \"fit-content\",\r\n height: \"fit-content\",\r\n minHeight: 500,\r\n minWidth: 400,\r\n });\r\n const [attachmentPanelEnabledForRecord, setAttachmentPanelEnabledForRecord] =\r\n useState<boolean>(true);\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 useEffect(() => {\r\n if (props?.attachment && props?.attachment?.enableAttachFn) {\r\n setAttachmentPanelEnabledForRecord(\r\n props.attachment.enableAttachFn(formValues)\r\n );\r\n } else {\r\n setAttachmentPanelEnabledForRecord(true);\r\n }\r\n }, [formValues]);\r\n\r\n return (\r\n <>\r\n {props?.attachment ? (\r\n <AttachmentWindow>\r\n <AttachmentPanel\r\n attachmentCode={props.attachment.attachmentCode}\r\n refKey={formValues[props?.keyColumnName || \"id\"]}\r\n enableAttachment={attachmentPanelEnabledForRecord}\r\n />\r\n </AttachmentWindow>\r\n ) : (\r\n <></>\r\n )}\r\n {props?.workFlowDocumentCode ? (\r\n <WorkflowWindow>\r\n <WorkflowDocumentPanel\r\n workFlowDocumentCode={props.workFlowDocumentCode}\r\n refDocumentId={formValues[props?.keyColumnName || \"id\"]}\r\n postActionCallBk={() => {\r\n setWorkflowWindowState(false);\r\n loadRecord();\r\n }}\r\n cancelActionCallBk={() => {\r\n setWorkflowWindowState(false);\r\n }}\r\n />\r\n </WorkflowWindow>\r\n ) : (\r\n <></>\r\n )}\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 {formValues[props?.keyColumnName || \"id\"] ? (\r\n props?.attachment ? (\r\n <Tooltip title=\"Attachments\">\r\n <IconButton\r\n onClick={() => {\r\n setAttachmentWindowState(true);\r\n }}\r\n >\r\n <FontAwesomeIcon icon=\"paperclip\" />\r\n </IconButton>\r\n </Tooltip>\r\n ) : null\r\n ) : null}\r\n {formValues[props?.keyColumnName || \"id\"] ? (\r\n props?.workFlowDocumentCode ? (\r\n <Tooltip title=\"Approvals\">\r\n <IconButton\r\n onClick={() => {\r\n setWorkflowWindowState(true);\r\n }}\r\n >\r\n <FontAwesomeIcon icon=\"stamp\" />\r\n </IconButton>\r\n </Tooltip>\r\n ) : null\r\n ) : null}\r\n {props?.actions ? (\r\n formValues[props?.keyColumnName || \"id\"] ? (\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 ) : (\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 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 { useParams } from \"react-router-dom\";\r\nimport WorkflowDocumentPanel from \"./WorkflowDocumentPanel\";\r\n\r\nconst WorkflowRouteComponent: React.FC = () => {\r\n const { workflowDocumentCode, refDocumentId } = useParams();\r\n return (\r\n <WorkflowDocumentPanel\r\n workFlowDocumentCode={workflowDocumentCode}\r\n refDocumentId={refDocumentId}\r\n />\r\n );\r\n};\r\n\r\nexport default WorkflowRouteComponent;\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 { 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 { 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 { 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 state.isOpened = !state.isOpened;\r\n },\r\n setSideBarState: (state, action) => {\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 { useEffect, useRef } from \"react\";\r\n\r\nexport default function useInterval(\r\n callback: () => void,\r\n delay: number | null\r\n) {\r\n const savedCallback = useRef<() => void>(callback);\r\n\r\n // Remember the latest callback\r\n useEffect(() => {\r\n savedCallback.current = callback;\r\n }, [callback]);\r\n\r\n // Set up the interval\r\n useEffect(() => {\r\n if (delay === null) return;\r\n\r\n const tick = () => savedCallback.current?.();\r\n\r\n const id = setInterval(tick, delay);\r\n return () => clearInterval(id);\r\n }, [delay]);\r\n}\r\n","import { IconProp } from \"@fortawesome/fontawesome-svg-core\";\r\nimport { Box, Button, Divider, keyframes, Typography } from \"@mui/material\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { useNavigate } from \"react-router-dom\";\r\nimport { useAxios, useSession } from \"../../hooks\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { timeAgo } from \"../../util\";\r\n\r\nconst beatFade = keyframes`\r\n 0% { transform: scale(1); opacity: 1; }\r\n 25% { transform: scale(1); opacity: 0.6; }\r\n 50% { transform: scale(1); opacity: 1; }\r\n 75% { transform: scale(1); opacity: 0.6; }\r\n 100% { transform: scale(1); opacity: 1; }\r\n`;\r\n\r\nexport type Notification = {\r\n id: number;\r\n notificationIcon?: IconProp;\r\n notificationIconColor?: string;\r\n notificationEnText: string;\r\n notificationArText: string;\r\n notificationTextColor?: string;\r\n notificationAction?: \"NAVIGATION\";\r\n notificationActionPayload?: string;\r\n isNotified?: boolean;\r\n createTime: string;\r\n setOpen?: (state: boolean) => void;\r\n showDivider?: boolean;\r\n};\r\nconst NotificationItem: React.FC<Notification> = (notification) => {\r\n const navigate = useNavigate();\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const { handlePostRequest } = useAxios();\r\n const acknowledgeNotification = (notificationId) => {\r\n handlePostRequest({\r\n endPointURI: \"api/v1/public/notification/notified\",\r\n showMask: false,\r\n parameters: { notificationQueueId: notificationId },\r\n });\r\n };\r\n return (\r\n <>\r\n <Button\r\n fullWidth\r\n onClick={() => {\r\n if (\r\n notification?.notificationAction === \"NAVIGATION\" &&\r\n notification?.notificationActionPayload\r\n ) {\r\n navigate(notification.notificationActionPayload);\r\n }\r\n if (!notification?.isNotified) {\r\n acknowledgeNotification(notification.id);\r\n }\r\n if (notification?.setOpen) {\r\n notification.setOpen(false);\r\n }\r\n }}\r\n sx={{\r\n marginBottom: 1,\r\n justifyContent: \"flex-start\",\r\n alignItems: \"flex-start\",\r\n color: notification?.notificationTextColor,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n cursor: \"pointer\",\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n cursor: \"pointer\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n width: \"100%\",\r\n }}\r\n >\r\n {notification?.notificationIcon ? (\r\n <FontAwesomeIcon\r\n icon={notification.notificationIcon}\r\n style={{\r\n marginRight: 10,\r\n marginLeft: 10,\r\n color: notification?.notificationIconColor,\r\n }}\r\n />\r\n ) : (\r\n <></>\r\n )}\r\n {AppLayout.appDirection === \"ltr\"\r\n ? notification.notificationEnText\r\n : notification.notificationArText}\r\n <Box sx={{ flex: 1 }}></Box>\r\n {!notification?.isNotified ? (\r\n <Typography\r\n color=\"warning\"\r\n sx={{\r\n animation: `${beatFade} 2s infinite ease-in-out`,\r\n textTransform: \"none\",\r\n display: \"inline-block\",\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n icon=\"bell\"\r\n style={{ marginRight: 5, marginLeft: 5 }}\r\n />\r\n {AppLayout.appDirection === \"ltr\" ? \"New\" : \"جديد\"}\r\n </Typography>\r\n ) : (\r\n <></>\r\n )}\r\n </Box>\r\n <Box\r\n sx={{\r\n width: \"100%\",\r\n fontSize: 12,\r\n display: \"flex\",\r\n justifyContent: \"flex-end\",\r\n alignItems: \"center\",\r\n cursor: \"pointer\",\r\n }}\r\n >\r\n <Box sx={{ marginRight: 1, marginLeft: 1 }}>\r\n {timeAgo(notification.createTime, AppLayout.appDirection)}\r\n </Box>\r\n <Box sx={{ flex: 1 }}></Box>\r\n <Box sx={{ marginRight: 1, marginLeft: 1 }}>\r\n {notification.createTime}\r\n </Box>\r\n </Box>\r\n </Button>\r\n {notification?.showDivider ? <Divider flexItem /> : <></>}\r\n </>\r\n );\r\n};\r\n\r\nexport default NotificationItem;\r\n","import { IconProp } from \"@fortawesome/fontawesome-svg-core\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport {\r\n Badge,\r\n Box,\r\n Button,\r\n ClickAwayListener,\r\n Divider,\r\n Fade,\r\n IconButton,\r\n keyframes,\r\n Paper,\r\n Popper,\r\n PopperPlacementType,\r\n Typography,\r\n} from \"@mui/material\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { useNavigate } from \"react-router-dom\";\r\nimport { timeAgo } from \"../util\";\r\nimport useInterval from \"../hooks/useInterval\";\r\nimport { useAxios, useSession } from \"../hooks\";\r\nimport { toast } from \"react-toastify\";\r\nimport NotificationItem, {\r\n Notification,\r\n} from \"../components/common/NotificationItem\";\r\n\r\nexport const notificationsCheckIntervalSeconds = 1;\r\n\r\nconst NotificationButton: React.FC = () => {\r\n const { UserInfo } = useSession();\r\n const [anchorEl, setAnchorEl] = useState<HTMLButtonElement | null>(null);\r\n const { handleGetRequest, handlePostRequest } = useAxios();\r\n const navigate = useNavigate();\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const [open, setOpen] = useState(false);\r\n const [notifications, setNotifications] = useState<Array<Notification>>([]);\r\n const loadUseNotifications = () => {\r\n if (UserInfo.isAuthenticated === true) {\r\n handleGetRequest({\r\n endPointURI: \"api/v1/public/notifications/new\",\r\n showMask: false,\r\n successCallBkFn: (response: any) => {\r\n if (response.data.length > notifications.length) {\r\n toast.info(\r\n AppLayout.appDirection === \"ltr\"\r\n ? `You have new notifications`\r\n : `لديك اشعارات جديدة`,\r\n {\r\n autoClose: 3000,\r\n position:\r\n AppLayout.appDirection === \"ltr\"\r\n ? \"bottom-right\"\r\n : \"bottom-left\",\r\n closeOnClick: true,\r\n }\r\n );\r\n }\r\n setNotifications(response.data);\r\n },\r\n });\r\n }\r\n };\r\n\r\n useInterval(() => {\r\n loadUseNotifications();\r\n }, notificationsCheckIntervalSeconds * 1000);\r\n\r\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\r\n setAnchorEl(event.currentTarget);\r\n setOpen(!open);\r\n };\r\n return (\r\n <ClickAwayListener\r\n onClickAway={() => {\r\n setOpen(false);\r\n }}\r\n >\r\n <div style={{ cursor: \"pointer\" }}>\r\n <IconButton\r\n color=\"inherit\"\r\n onClick={handleClick}\r\n sx={{ marginRight: 1, marginLeft: 1 }}\r\n >\r\n <Badge\r\n anchorOrigin={{\r\n vertical: \"top\",\r\n horizontal: AppLayout.appDirection === \"ltr\" ? \"right\" : \"left\",\r\n }}\r\n badgeContent={\r\n notifications.filter(\r\n (notificaiton) =>\r\n notificaiton.isNotified === undefined ||\r\n notificaiton.isNotified === null\r\n ).length\r\n }\r\n color=\"error\"\r\n >\r\n <FontAwesomeIcon icon=\"bell\" />\r\n </Badge>\r\n </IconButton>\r\n\r\n <Popper\r\n // Note: The following zIndex style is specifically for documentation purposes and may not be necessary in your application.\r\n sx={{\r\n zIndex: 1200,\r\n width: \"fit-content\",\r\n minWidth: 350,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n }}\r\n open={open}\r\n anchorEl={anchorEl}\r\n dir={AppLayout.appDirection}\r\n placement={\"bottom\"}\r\n transition\r\n >\r\n {({ TransitionProps }) => (\r\n <Fade {...TransitionProps} timeout={350}>\r\n <Paper\r\n sx={{\r\n padding: 1,\r\n m: 1,\r\n maxHeight: 500,\r\n overflow: \"hidden\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n }}\r\n >\r\n <Divider variant=\"fullWidth\" flexItem>\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n marginTop: 2,\r\n marginBottom: 1,\r\n }}\r\n >\r\n <FontAwesomeIcon\r\n icon=\"bell\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {AppLayout.appDirection === \"ltr\"\r\n ? \"Notifications\"\r\n : \"الاشعارات\"}\r\n </Box>\r\n </Divider>\r\n {notifications.length == 0 ? (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n flex: 1,\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <Box>\r\n {AppLayout.appDirection === \"ltr\"\r\n ? \"You don't have any notifications\"\r\n : \"لا يوجد اشعارات\"}\r\n </Box>\r\n </Box>\r\n ) : (\r\n <></>\r\n )}\r\n <Box\r\n sx={{\r\n flex: 1,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n overflowY: \"auto\",\r\n }}\r\n >\r\n {notifications.map((notification, index) => {\r\n return (\r\n <NotificationItem\r\n {...notification}\r\n setOpen={setOpen}\r\n showDivider={index < notifications.length - 1}\r\n />\r\n );\r\n })}\r\n </Box>\r\n <Divider variant=\"fullWidth\" flexItem>\r\n <Button\r\n sx={{ textTransform: \"none\" }}\r\n onClick={() => {\r\n navigate(\"myNotifications\");\r\n }}\r\n >\r\n {AppLayout.appDirection === \"ltr\"\r\n ? \"Show Old Notifications\"\r\n : \"عرض الاشعارات القديمة\"}\r\n </Button>\r\n </Divider>\r\n </Paper>\r\n </Fade>\r\n )}\r\n </Popper>\r\n </div>\r\n </ClickAwayListener>\r\n );\r\n};\r\n\r\nexport default NotificationButton;\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\nimport AttachmentImageViewer from \"../components/templates/attachment/AttachmentImageViewer\";\r\nimport NotificationButton from \"./NotificationButton\";\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 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 <NotificationButton />\r\n <AttachmentImageViewer\r\n showAsAvatar={true}\r\n attachmentCode=\"EMPLOYEE_PHOTOS\"\r\n refKey={UserSession.value?.id + \"\"}\r\n />\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 i18n from \"i18next\";\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 { 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.organizations\",\r\n label: \"ORGANIZATION_PLURAL\",\r\n authority: \"ORGANIZATION_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: \"ORGANIZATION_ADMIN\",\r\n icon: \"window-restore\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"admin/systemapplications\" },\r\n },\r\n {\r\n id: \"development_admin.organization\",\r\n label: \"Organization Info\",\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n icon: \"globe\",\r\n children: [\r\n {\r\n id: \"development_admin.organization.modules\",\r\n label: \"Subscriped Modules\",\r\n icon: \"layer-group\",\r\n authority: \"ORGANIZATION_ADMIN\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"admin/org/apps\" },\r\n },\r\n {\r\n id: \"development_admin.organization.unitTypes\",\r\n label: \"Organization Unit Types\",\r\n icon: \"tags\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"admin/org/unit/types\" },\r\n },\r\n {\r\n id: \"development_admin.organization.units\",\r\n label: \"Organization Units\",\r\n icon: \"folder-tree\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"admin/org/units\" },\r\n },\r\n {\r\n id: \"development_admin.organization.ranks\",\r\n label: \"Organization Ranks\",\r\n icon: \"street-view\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"admin/org/ranks\" },\r\n },\r\n ],\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 authority: \"DEVELOPMENT_ADMIN\",\r\n icon: \"code\",\r\n children: [\r\n {\r\n id: \"system_admin.devtools.modules\",\r\n label: \"System Modules\",\r\n icon: \"layer-group\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/system/modules\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.authorities\",\r\n label: \"System Authorities\",\r\n icon: \"key\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/system/authorities\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.roles\",\r\n label: \"System Roles\",\r\n icon: \"tag\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/system/roles\" },\r\n },\r\n {\r\n id: \"system_admin.devtools.lookups\",\r\n label: \"System Lookups\",\r\n icon: \"list-check\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/system/lookups\" },\r\n },\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.AttachmentConfig\",\r\n label: \"ATTACHMENT_CONFIG_PLURAL\",\r\n icon: \"paperclip\",\r\n action: \"NAVIGATION\",\r\n actionPayload: { path: \"dev/attachmentconfigs\" },\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 authority: \"SYSTEM_ADMIN\",\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 { 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: any) => 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: any) => state.AppLayout);\r\n const AppInfo = useSelector((state: any) => 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 const parentItems = [];\r\n for (let parentItem of data) {\r\n if (\r\n parentItem.authority === undefined ||\r\n parentItem.authority == null ||\r\n isUserAuthorized(parentItem.authority)\r\n ) {\r\n let newParentItem = structuredClone(parentItem);\r\n if (parentItem?.children) {\r\n newParentItem.children = filterData(parentItem.children);\r\n }\r\n parentItems.push(newParentItem);\r\n }\r\n }\r\n return parentItems;\r\n };\r\n\r\n const mergedNavigationItems = [];\r\n if (AppInfo.enableAdministrationModule) {\r\n mergedNavigationItems.push(...structuredClone(NavigationItems));\r\n }\r\n mergedNavigationItems.push(\r\n ...structuredClone(AppInfo.businessNavigationItems)\r\n );\r\n const authoriedNavigationItems = filterData(mergedNavigationItems);\r\n console.log(\"authoriedNavigationItems\", authoriedNavigationItems);\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 { 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, useAxios } from \"../../../hooks\";\r\nimport { FormElementProps } from \"../../templates/DataEntryTemplates/DataEntryTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { setStoreData } from \"../../../redux/features/common/CommonStoreSlice\";\r\n\r\nconst OrganizationRankGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/public/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 { handleGetRequest } = useAxios();\r\n const SystemOrganizationRanks = useSelector(\r\n (state: any) => state.commonStores.stores.SystemOrganizationRanks\r\n );\r\n const dispatch = useDispatch();\r\n const loadOrganizationRanks = async () => {\r\n await handleGetRequest({\r\n endPointURI: SystemOrganizationRanks.url,\r\n showMask: false,\r\n successCallBkFn: (response) => {\r\n dispatch(\r\n setStoreData({\r\n storeKey: \"SystemOrganizationRanks\",\r\n data: response.data,\r\n })\r\n );\r\n },\r\n failureCallBkFn: () => {\r\n dispatch(\r\n setStoreData({ storeKey: \"SystemOrganizationRanks\", data: [] })\r\n );\r\n },\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: \"number\",\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: \"number\",\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 setData={setData}\r\n editMode={{ editMode: \"row\", reloadAfterSave: true }}\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 postActionCallBack: () => {\r\n loadOrganizationRanks();\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 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 { useDispatch, useSelector } from \"react-redux\";\r\nimport { setStoreData } from \"../../../redux/features/common/CommonStoreSlice\";\r\n\r\nconst OrganizationUnitGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const { handleGetRequest } = useAxios();\r\n const SystemOrganizationUnits = useSelector(\r\n (state: any) => state.commonStores.stores.SystemOrganizationUnits\r\n );\r\n const dispatch = useDispatch();\r\n const loadOrganizationUnits = async () => {\r\n await handleGetRequest({\r\n endPointURI: SystemOrganizationUnits.url,\r\n showMask: false,\r\n successCallBkFn: (response) => {\r\n dispatch(\r\n setStoreData({\r\n storeKey: \"SystemOrganizationUnits\",\r\n data: response.data,\r\n })\r\n );\r\n },\r\n failureCallBkFn: () => {\r\n dispatch(\r\n setStoreData({ storeKey: \"SystemOrganizationUnits\", data: [] })\r\n );\r\n },\r\n });\r\n };\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/public/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\r\n const organizationUnitTypes = useSelector(\r\n (state: any) => state.commonStores.stores.SystemOrganizationUnitType.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 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: \"number\",\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 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 postActionCallBack: () => {\r\n loadOrganizationUnits();\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\nconst OrganizationUnitTypeGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n commonStoreKey: \"SystemOrganizationUnitType\",\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 setData={setData}\r\n editMode={{ editMode: \"row\", reloadAfterSave: true }}\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 }}\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\nconst SystemApplicationAuthorityGrid: React.FC = () => {\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 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 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 }}\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 { 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 SystemApplicationModuleGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n commonStoreKey: \"SystemApplicationModules\",\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 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 }}\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 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 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 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) {\r\n getRoleAuthorities();\r\n }\r\n }, [props.roleId]);\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\nconst SystemApplicationRoleGrid: React.FC = () => {\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 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 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 }}\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 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\nconst LookupGrid: React.FC = () => {\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 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 }}\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 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 { 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\nexport const storageTypes = [{ value: \"FILE_SYSTEM\" }, { value: \"SFTP\" }];\r\n\r\nconst AttachmentConfigGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const apiActions = useApiActions({\r\n findAll: \"api/v1/dev/attachmentconfig/all\",\r\n deleteById: \"api/v1/dev/attachmentconfig\",\r\n save: \"api/v1/dev/attachmentconfig\",\r\n findById: \"api/v1/dev/attachmentconfig\",\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: \"ATTACHMENT_CONFIG_ATTACHMENT_CODE\",\r\n fieldName: \"attachmentCode\",\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: \"ATTACHMENT_CONFIG_RELATED_DATABASE_TABLE\",\r\n fieldName: \"relatedDatabaseTable\",\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: \"ATTACHMENT_CONFIG_STORAGE_TYPE\",\r\n fieldName: \"storageType\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: storageTypes,\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: \"Include App Code in attachment path\",\r\n fieldName: \"includeAppCodeInPath\",\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: \"ATTACHMENT_CONFIG_UPLOAD_DIRECTORY\",\r\n fieldName: \"uploadDirectory\",\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: \"ATTACHMENT_CONFIG_ALLOWED_FILE_TYPES\",\r\n fieldName: \"allowedFileTypes\",\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: \"ATTACHMENT_CONFIG_ATTACHMENT_CATEGORIES\",\r\n fieldName: \"attachmentCategories\",\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: \"Is Category Mandatory\",\r\n fieldName: \"isCategoryRequired\",\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: \"ATTACHMENT_CONFIG_MAX_ALLOWED_NUMBER_OF_FILES\",\r\n fieldName: \"maxAllowedNumberOfFiles\",\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: \"ATTACHMENT_CONFIG_DOWNLOAD_AUTHORITY_KEY\",\r\n fieldName: \"downloadAuthorityKey\",\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: \"ATTACHMENT_CONFIG_UPLOAD_AUTHORITY_KEY\",\r\n fieldName: \"uploadAuthorityKey\",\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 setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalIcon: \"paperclip\",\r\n modalTitle: \"Attachment Configuration\",\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"ATTACHMENT_CONFIG_PLURAL\")}\r\n girdIcon=\"paperclip\"\r\n editAction={{ isEnabled: true, authority: \"ATTACHMENT_CONFIG_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"ATTACHMENT_CONFIG_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default AttachmentConfigGrid;\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\nimport { storageTypes } from \"./AttachmentConfigGrid\";\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};\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 },\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 },\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 },\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 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 }\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: \"ATTACHMENT_CONFIG_STORAGE_TYPE\",\r\n fieldName: \"storageType\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: storageTypes,\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: \"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: \"Include App Code in attachment path\",\r\n fieldName: \"includeAppCodeInPath\",\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 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 attachment={{ attachmentCode: \"JASPER_REPORTS\" }}\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\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 {\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: \"text\",\r\n muiTextFieldProps: { multiline: true, rows: 6 },\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 DashboardViewer from \"../templates/visuals/DashboardViewer\";\r\nimport AttachmentPanel from \"../templates/attachment/AttachmentPanel\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\nconst Home: React.FC = () => {\r\n const AppInfo = useSelector((state: any) => state.AppInfo.value); \r\n return (\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\r\n src={AppInfo.appLogo}\r\n style={{ margin: 5, height: 200, width: 200 }}\r\n />\r\n <div>\r\n Welcome to {AppInfo.appName} v.{AppInfo.appVersion}\r\n </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\nimport OrganizationApplicationModuleGrid from \"../../components/administration/admin/OrganizationApplicationModuleGrid\";\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 path: \"admin/org/apps\",\r\n component: OrganizationApplicationModuleGrid,\r\n authority: \"ORGANIZATION_ADMIN\",\r\n },\r\n {\r\n path: \"admin/org/unit/types\",\r\n component: OrganizationUnitTypeGrid,\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n },\r\n {\r\n path: \"admin/org/units\",\r\n component: OrganizationUnitGrid,\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n },\r\n {\r\n path: \"admin/org/ranks\",\r\n component: OrganizationRankGrid,\r\n authority: \"DEVELOPMENT_ADMIN\",\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 commonStoreKey: \"SystemOrganizations\",\r\n deleteById: \"api/v1/org/admin/organization\",\r\n save: \"api/v1/org/admin/organization\",\r\n findById: \"api/v1/org/admin/organization\",\r\n setData: setData,\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_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\r\n return (\r\n <>\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=\"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\nimport { Box } from \"@mui/material\";\r\nimport AttachmentImageViewer from \"../../templates/attachment/AttachmentImageViewer\";\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/public/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 fieldLabel: \"\",\r\n fieldName: \"custom\",\r\n fieldType: \"custom\",\r\n gridProps: {\r\n muiProps: {\r\n align: \"center\",\r\n headerAlign: \"center\",\r\n renderCell: (params) => {\r\n return (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n height: \"100%\",\r\n }}\r\n >\r\n <AttachmentImageViewer\r\n showAsAvatar={true}\r\n attachmentCode=\"EMPLOYEE_PHOTOS\"\r\n refKey={params.id + \"\"}\r\n />\r\n </Box>\r\n );\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 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 attachment={{ attachmentCode: \"EMPLOYEE_PHOTOS\" }}\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\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/org/admin/systemapplication/all\",\r\n deleteById: \"api/v1/org/admin/systemapplication\",\r\n save: \"api/v1/org/admin/systemapplication\",\r\n findById: \"api/v1/org/admin/systemapplication\",\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_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 <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=\"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 { 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\nimport { useSelector } from \"react-redux\";\r\n\r\nconst OrganizationApplicationModuleGrid: React.FC = () => {\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/org/admin/organizationapplicationmodule/all\",\r\n deleteById: \"api/org/v1/admin/organizationapplicationmodule\",\r\n save: \"api/v1/org/admin/organizationapplicationmodule\",\r\n findById: \"api/org/v1/admin/organizationapplicationmodule\",\r\n setData: setData,\r\n });\r\n const SystemApplicationModules = useSelector(\r\n (state: any) => state.commonStores.stores.SystemApplicationModules.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:\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 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 }}\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 { 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\nimport SystemApplicationAuthorityGrid from \"../../components/administration/admin/SystemApplicationAuthorityGrid\";\r\nimport SystemApplicationRoleGrid from \"../../components/administration/admin/SystemApplicationRoleGrid\";\r\nimport SystemApplicationModuleGrid from \"../../components/administration/admin/SystemApplicationModuleGrid\";\r\nimport AttachmentConfigGrid from \"../../components/administration/dev/AttachmentConfigGrid\";\r\nimport NotificationGrid from \"../../components/administration/dev/NotificationGrid\";\r\nimport MyNotificationsPanel from \"../../components/common/MyNotificationsPanel\";\r\nimport WorkflowRouteComponent from \"../../components/templates/workflow/WorkflowRouteComponent\";\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 path: \"dev/system/authorities\",\r\n component: SystemApplicationAuthorityGrid,\r\n },\r\n {\r\n path: \"dev/system/roles\",\r\n component: SystemApplicationRoleGrid,\r\n },\r\n {\r\n path: \"dev/system/lookups\",\r\n component: LookupGrid,\r\n },\r\n {\r\n path: \"dev/system/modules\",\r\n component: SystemApplicationModuleGrid,\r\n },\r\n {\r\n path: \"dev/attachmentconfigs\",\r\n component: AttachmentConfigGrid,\r\n },\r\n {\r\n path: \"dev/notifications\",\r\n component: NotificationGrid,\r\n },\r\n {\r\n path: \"myNotifications\",\r\n component: MyNotificationsPanel,\r\n },\r\n {\r\n path: \"workflow/:workflowDocumentCode/:refDocumentId\",\r\n component: WorkflowRouteComponent,\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 SystemTimeIntervals = useSelector(\r\n (state: any) => state.commonStores.stores.SystemTimeIntervals.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: SystemTimeIntervals,\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 { 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, useAxios, useConfirmationWindow } 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 { handlePostRequest } = useAxios();\r\n\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 resendMail = async (id: any) => {\r\n await handlePostRequest({\r\n endPointURI: \"api/v1/public/mailNotification/resend\",\r\n showMask: true,\r\n parameters: {\r\n mailNotificationQueueId: id,\r\n },\r\n successCallBkFn: (response: any) => {\r\n apiActions.reloadData();\r\n },\r\n });\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 rowActions={[\r\n {\r\n actionFn: async (data) => {\r\n resendMail(data.id);\r\n },\r\n label: \"Resend\",\r\n icon: \"repeat\",\r\n confirmationMessage: \"Are you sure you want to resend this email ?\",\r\n isConfirmationRequired: true,\r\n },\r\n ]}\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 { 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 } from \"../../../hooks\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { Box } from \"@mui/material\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport useInterval from \"../../../hooks/useInterval\";\r\n\r\nconst NotificationGrid: React.FC = () => {\r\n const { t } = useTranslation();\r\n const [data, setData] = useState([]);\r\n const SystemTimeIntervals = useSelector(\r\n (state: any) => state.commonStores.stores.SystemTimeIntervals.data\r\n );\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/notification/all\",\r\n deleteById: \"api/v1/dev/notification\",\r\n save: \"api/v1/dev/notification\",\r\n findById: \"api/v1/dev/notification\",\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: \"NOTIFICATION_NOTIFICATION_CODE\",\r\n fieldName: \"notificationCode\",\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: \"Notification Data Query ( will be passed a parameter call last_run_time represents last check time)\",\r\n fieldName: \"notificationQueryId\",\r\n required: true,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionDisplayField: \"queryName\",\r\n gridProps: {\r\n hidden: true,\r\n },\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 \"Users to notify Query (must have username property in the result set)\",\r\n fieldName: \"usersToNotifyQueryId\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: SystemDataQueries,\r\n optionDisplayField: \"queryName\",\r\n gridProps: {\r\n hidden: true,\r\n },\r\n optionValueField: \"id\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"NOTIFICATION_AUTHORITY_TO_NOTIFY\",\r\n fieldName: \"authorityToNotify\",\r\n required: false,\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: \"Interval Type\",\r\n fieldName: \"intervalType\",\r\n fieldType: \"combobox\",\r\n options: SystemTimeIntervals,\r\n gridProps: {\r\n hidden: true,\r\n },\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: \"Interval Value (minmum value 20 seconds)\",\r\n fieldName: \"intervalValue\",\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: \"Start Notifing Date\",\r\n fieldName: \"startNotificationFrom\",\r\n gridProps: {\r\n hidden: true,\r\n },\r\n fieldType: \"datetime\",\r\n },\r\n },\r\n\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"NOTIFICATION_SYSTEM_APPLICATION_ID\",\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 type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"NOTIFICATION_NOTIFICATION_ICON\",\r\n fieldName: \"notificationIcon\",\r\n required: true,\r\n fieldType: \"text\",\r\n gridProps: {\r\n muiProps: {\r\n renderCell: (params: any) => {\r\n return (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n color: params?.row?.notificationIconColor,\r\n justifyContent: \"center\",\r\n height: \"100%\",\r\n }}\r\n >\r\n {params?.row?.notificationIcon ? (\r\n <FontAwesomeIcon icon={params.row.notificationIcon} />\r\n ) : (\r\n <></>\r\n )}\r\n </Box>\r\n );\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: \"NOTIFICATION_NOTIFICATION_AR_TEXT\",\r\n fieldName: \"notificationArText\",\r\n required: true,\r\n fieldType: \"text\",\r\n gridProps: {\r\n muiProps: {\r\n renderCell: (params: any) => {\r\n return (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n color: params?.row?.notificationTextColor,\r\n justifyContent: \"center\",\r\n height: \"100%\",\r\n }}\r\n >\r\n {params?.row?.notificationArText}\r\n </Box>\r\n );\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: \"NOTIFICATION_NOTIFICATION_EN_TEXT\",\r\n fieldName: \"notificationEnText\",\r\n required: true,\r\n fieldType: \"text\",\r\n gridProps: {\r\n muiProps: {\r\n renderCell: (params: any) => {\r\n return (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n color: params?.row?.notificationTextColor,\r\n justifyContent: \"center\",\r\n height: \"100%\",\r\n }}\r\n >\r\n {params?.row?.notificationEnText}\r\n </Box>\r\n );\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: \"Last Runtime\",\r\n disabled: true,\r\n fieldName: \"lastIntervalRun\",\r\n fieldType: \"datetime\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Last Successful Runtime\",\r\n fieldName: \"lastSuccessfulRun\",\r\n disabled: true,\r\n fieldType: \"datetime\",\r\n },\r\n },\r\n {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel: \"Last Run Message\",\r\n fieldName: \"lastRunMessage\",\r\n disabled: 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: \"NOTIFICATION_NOTIFICATION_TEXT_COLOR\",\r\n fieldName: \"notificationTextColor\",\r\n required: false,\r\n gridProps: {\r\n hidden: true,\r\n },\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: \"NOTIFICATION_NOTIFICATION_ICON_COLOR\",\r\n fieldName: \"notificationIconColor\",\r\n required: false,\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: \"NOTIFICATION_NOTIFICATION_ACTION\",\r\n fieldName: \"notificationAction\",\r\n required: false,\r\n fieldType: \"combobox\",\r\n options: [{ value: \"NAVIGATION\" }],\r\n optionDisplayField: \"value\",\r\n optionValueField: \"value\",\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 \"Action Payload (must be a rout in case of NAVIGATION with parameter values betweem @@)\",\r\n fieldName: \"notificationActionPayload\",\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 {\r\n type: \"field\",\r\n mode: \"props\",\r\n props: {\r\n fieldLabel:\r\n \"Organization Id Field on the Notification Query result set if it supports it\",\r\n fieldName: \"organizationIdField\",\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: \"NOTIFICATION_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 setData={setData}\r\n editMode={{\r\n editMode: \"modal\",\r\n specs: {\r\n modalIcon: \"bell\",\r\n modalTitle: \"System Notification\",\r\n modalWidth: \"300\",\r\n },\r\n }}\r\n formElements={formElements}\r\n keyColumnName={\"id\"}\r\n gridTitle={t(\"NOTIFICATION_PLURAL\")}\r\n girdIcon=\"bell\"\r\n editAction={{ isEnabled: true, authority: \"NOTIFICATION_EDIT\" }}\r\n deleteAction={{ isEnabled: true, authority: \"NOTIFICATION_DELETE\" }}\r\n />\r\n );\r\n};\r\n\r\nexport default NotificationGrid;\r\n","import { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { Box, Button } from \"@mui/material\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { useAxios, useSession } from \"../../hooks\";\r\nimport { useState } from \"react\";\r\nimport useInterval from \"../../hooks/useInterval\";\r\nimport { notificationsCheckIntervalSeconds } from \"../../layout/NotificationButton\";\r\nimport NotificationItem from \"./NotificationItem\";\r\n\r\nconst MyNotificationsPanel: React.FC = () => {\r\n const { UserInfo } = useSession();\r\n const AppLayout = useSelector((state: any) => state.AppLayout);\r\n const { handleGetRequest, handlePostRequest } = useAxios();\r\n const [notifications, setNotifications] = useState<Array<Notification>>([]);\r\n\r\n const acknowledgeAllCurrentNotifications = async () => {\r\n await handlePostRequest({\r\n endPointURI: \"api/v1/public/notification/all/notified\",\r\n showMask: true,\r\n });\r\n };\r\n\r\n const archiveAllCurrentNotifications = async () => {\r\n await handlePostRequest({\r\n endPointURI: \"api/v1/public/notification/all/archive\",\r\n showMask: true,\r\n });\r\n };\r\n\r\n const loadUserNotifications = () => {\r\n if (UserInfo.isAuthenticated === true) {\r\n handleGetRequest({\r\n endPointURI: \"api/v1/public/notifications\",\r\n showMask: false,\r\n successCallBkFn: (response: any) => {\r\n setNotifications(response.data);\r\n },\r\n });\r\n }\r\n };\r\n useInterval(loadUserNotifications, notificationsCheckIntervalSeconds * 1000);\r\n return (\r\n <>\r\n <Box\r\n sx={{ display: \"flex\", alignItems: \"center\", justifyContent: \"center\" }}\r\n >\r\n <Box sx={{ flex: 1 }}></Box>\r\n <h3>\r\n <FontAwesomeIcon\r\n icon=\"bell\"\r\n style={{ marginRight: 10, marginLeft: 10 }}\r\n />\r\n {AppLayout.appDirection === \"ltr\" ? \"Notifications\" : \"الاشعارات\"}\r\n </h3>\r\n <Box sx={{ flex: 1 }}></Box>\r\n <Button\r\n sx={{ textTransform: \"none\" }}\r\n onClick={acknowledgeAllCurrentNotifications}\r\n >\r\n Mark All Read\r\n </Button>\r\n <Button\r\n color=\"error\"\r\n sx={{ textTransform: \"none\" }}\r\n onClick={archiveAllCurrentNotifications}\r\n >\r\n Delete All\r\n </Button>\r\n </Box>\r\n <Box\r\n sx={{\r\n flex: 1,\r\n width: \"100%\",\r\n display: \"flex\",\r\n overflowY: \"auto\",\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n flexGrow: 1,\r\n width: \"fit-content\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n overflowY: \"auto\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n }}\r\n >\r\n {notifications.map((notification: Notification, index) => {\r\n return (\r\n <NotificationItem\r\n {...notification}\r\n showDivider={index < notifications.length - 1}\r\n />\r\n );\r\n })}\r\n </Box>\r\n </Box>\r\n </>\r\n );\r\n};\r\n\r\nexport default MyNotificationsPanel;\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 { UserInfo } = useSession();\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 setAutoLoadLoaded(false);\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 setAutoLoadLoaded(true);\r\n hide();\r\n };\r\n\r\n useEffect(() => {\r\n if (commonStores?.storeKeys) {\r\n loadCommonStores();\r\n }\r\n }, [commonStores.storeKeys, UserInfo?.currentOrganization]);\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 const AppLayout = useSelector((state: any) => state.AppLayout);\r\n\r\n return (\r\n <BrowserRouter>\r\n <ToastContainer\r\n rtl={AppLayout.appDirection === \"rtl\"}\r\n draggable={true}\r\n position=\"bottom-center\"\r\n />\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 businessLocals?: {\r\n ar: { [key: string]: string };\r\n en: { [key: string]: string };\r\n };\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 SystemTimeIntervals: {\r\n autoLoad: false,\r\n url: \"\",\r\n data: [\r\n { value: \"second\" },\r\n { value: \"minute\" },\r\n { value: \"hour\" },\r\n { value: \"day\" },\r\n { value: \"week\" },\r\n { value: \"month\" },\r\n { value: \"year\" },\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/public/organization/all\",\r\n data: [],\r\n },\r\n SystemOrganizationRanks: {\r\n autoLoad: true,\r\n url: \"api/v1/public/organization/ranks/all\",\r\n data: [],\r\n },\r\n SystemOrganizationUnits: {\r\n autoLoad: true,\r\n url: \"api/v1/public/organization/units/all\",\r\n data: [],\r\n },\r\n SystemOrganizationUnitType: {\r\n autoLoad: true,\r\n url: \"api/v1/public/organizationunittype/all\",\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 SystemApplicationModules: {\r\n autoLoad: true,\r\n data: [],\r\n authority: \"DEVELOPMENT_ADMIN\",\r\n url: \"api/v1/admin/systemapplicationmodule/application/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 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 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 { 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\nimport i18n from \"../locales/i18n\";\r\nimport { initReactI18next } from \"react-i18next\";\r\nimport { ENGLISH_TRANS } from \"../locales/english\";\r\nimport { ARABIC_TRANS } from \"../locales/arabic\";\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 const resources = {\r\n en: { translation: { ...ENGLISH_TRANS, ...props?.businessLocals?.en } },\r\n ar: { translation: { ...ARABIC_TRANS, ...props?.businessLocals?.ar } },\r\n };\r\n i18n.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 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","UserSessionSlice","isAuthenticated","authorities","setAuthenticated","setUnAuthenticated","UserSessionActions","UserSessionReducer","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","undefined","showMask","loadingMessage","get","endPointURI","params","parameters","headers","responseType","successCallBkFn","failureCallBkFn","handlePostRequest","post","handleDeleteRequest","delete","HandleDownloadHTTPPostPDF","handleUploadRequest","files","length","formData","FormData","file","append","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","setStoresMetaData","Object","keys","setStoreData","storeKey","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","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","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","SystemLookupCombobox","setOptions","lookupType","loadLookupOptions","generateDateTimeColumn","colDef","renderEditCell","api","setEditCellValue","field","valueParser","row","column","valueFormatter","generateComboColumn","valueGetter","renderCell","find","item","selectedRecord","generateCheckBoxColumn","getElementFields","element","fields","mode","elements","childElement","getAllFields","constructGridColumnsFromFields","isDefaultEditable","columns","tableField","fieldType","gridProps","muiProps","editable","fieldName","headerName","fieldLabel","headerAlign","align","hidden","searchable","optionValueField","optionDisplayField","constructValidationSchema","validationSchemaObj","z","number","required_error","invalid_type_error","optional","nullable","boolean","string","min","getGridSelection","rowSelectionModel","keyColumnName","sRecords","sRecordIds","ids","selectedId","x","selectedRecords","selectedRecordIds","formatMuiErrorMessage","code","args","URL","forEach","arg","searchParams","process","env","NODE_ENV","reactIsModule","exports","Symbol","for","c","d","f","g","h","k","l","m","n","p","q","r","w","y","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","split","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","symbol","any","createChainableTypeChecker","arrayOf","typeChecker","propName","propFullName","PropTypeError","propValue","Array","isArray","getPropType","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","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","index","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","Math","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","mr","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","fontSize","fontStyle","fontWeight","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","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","timeAgo","dateInput","date","now","diffInSeconds","floor","locale","rtf","Intl","RelativeTimeFormat","numeric","units","seconds","delta","FormElementField","fieldInfo","formManager","formActions","formValues","hiddenFields","formProps","fieldSize","muiTextFieldProps","disabledFields","setValue","onValueChangeCallBack","fieldHeight","formState","errors","toString","dateFormat","FormAction","setConfirmationWindowState","confirmationMessage","actionFn","formActionProps","actionButtonVariant","actionButtonColor","preActionValidation","isConfirmationRequired","FormElementGroup","AttachmentImageViewer","imagePath","attachmentId","attachmentCode","refKey","category","imgSrc","setImgSrc","showAsAvatar","Avatar","src","alt","onError","objectFit","AttachmentCard","allowDownload","downloadAuthorityKey","setAttachmentConfig","handleDelete","CardMedia","docType","CardContent","gutterBottom","fileName","attachmentSize","remark","CardActions","allowDelete","Tooltip","createObjectURL","link","href","setAttribute","click","remove","AttachmentPanel","setFiles","attachmentCategories","setAttachmentCategories","setRemark","selectedCategory","setSelectedCategory","allowedTypes","setAllowedTypes","attachmentConfig","getFileExtension","pop","toLowerCase","loadAttachmentConfig","allowedFileTypes","cats","showAttachments","allowUpload","enableAttachment","uploadAuthorityKey","maxAllowedNumberOfFiles","refKeyAttachments","accept","multiple","fileExt","multiline","rows","existingAttachments","isCategoryRequired","success","refKeyAttachment","WorkflowDocumentTimeLine","overflowY","actionHistory","actionHistoryRecord","actionTime","actionMethod","personId","documentActionEnName","documentActionArName","actionComment","employeeEnName","employeeArName","TemplateGridMultiRecordAction","rowAction","recordsToProcessActionOn","recordIdsToProcessActionOn","isActionAllowed","StyledQuickFilter","QuickFilter","StyledToolbarButton","ToolbarButton","ownerState","opacity","pointerEvents","transition","transitions","StyledTextField","overflowX","TemplateGridTopBar","isCreationAuthorized","templateProps","editAction","gridSelection","editMode","handleCreateNewRecord","rowActions","gridActionProps","multiRecord","_createElement","apiActions","gridLoadParametersValues","tBar","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","setSelectedRecord","attachmentPanelEnabledForRecord","setAttachmentPanelEnabledForRecord","getLookupOptions","generateLookupGridColumn","useLookupGridColumn","AttachmentWindow","setAttachmentWindowState","gridTitle","WorkFlowWindow","setWorkFlowWindowState","generatedColumns","setGeneratedColumns","formElements","savedState","useMemo","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","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","attachment","workFlowDocumentCode","getActions","disableDefaultAction","isInEditMode","GridRowModes","Edit","View","handleSaveRowClick","ignoreModifications","newData","handleCancelRowEditClick","isEditActionVisibleForRecord","isActionEditDisabledForRecord","formRoute","handleEditRecord","isDeleteActionVisibleForRecord","isDeleteActionDisabledForRecord","enableAttachFn","structuredColumns","autoLoad","currentOrganization","adjustedColumns","baseCols","col","fieldToCol","Map","Boolean","formComponent","recordIdToEdit","formCloseCallBk","TemplateForm","formLoadCallBk","editAuthorityKey","formSavedSuccessfullyCallBk","preSaveValidation","hideInfoBar","hideBackButton","girdIcon","gridLoadParameters","setGridLoadParametersValues","Accordion","defaultExpanded","AccordionSummary","expandIcon","GridExpandMoreIcon","AccordionDetails","saveButtonSpecs","cancelButtonSpecs","WorkflowDocumentPanel","refDocumentId","postActionCallBk","cancelActionCallBk","DataGridPremium","toolbar","newRecord","oldRows","oldModel","removeItem","getRowId","showToolbar","checkboxSelection","onRowEditStop","reason","defaultMuiPrevented","onRowModesModelChange","newModel","rowGroupingColumnMode","processRowUpdate","log","ZodError","validateRecord","requestObject","reloadAfterSave","onRowSelectionModelChange","gridSelectionModel","onColumnVisibilityModelChange","model","onColumnOrderChange","targetIndex","prevOrder","currentOrder","fromIndex","onColumnWidthChange","updatedWidths","rowGroupingModel","onRowGroupingModelChange","handleRowGroupChange","onPinnedColumnsChange","newPinedColumns","getGridColumnsFromRecord","formElement","ExcelReportViewer","reportData","report_record_data_key","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","filename","blob","download","removeChild","revokeObjectURL","byPassParameterEntry","loadReportData","reportName","setAction","authorizedActions","setAuthorizedActions","setActionComment","workflowDocumentInfo","setWorkflowDocumentInfo","referencedDocument","workflowDocumentReport","workflowDocument","workflowDocumentStatus","actionsHistory","nextActionTakers","nextActions","ReporTViewWindow","setReportViewWindowState","documentEnName","documentNumberField","documentArName","loadWorkFlowDocumentInfo","workflowDocumentCode","processWorkflowDocumentAction","workflowDocumentId","actionId","refDocumentStatus","documentStatusCode","post_action_endpoint","nextActionTakersAuthority","actionTaker","username","USERNAME","doc_id","documentStatusEnName","documentStatusArName","startIcon","require_comment","pre_action_endpoint","nextActionTaker","employee_en_name","employee_ar_name","mobile_number","WorkflowWindow","setWorkflowWindowState","initiallyHiddenFields","setHiddenFields","initialValues","setDisabledFields","formSchema","useForm","resolver","zodResolver","defaultValues","watch","pathParameters","useParams","formRouteRecordIdParamName","loadRecord","idToLoad","retrievedRecord","setFieldValue","fieldValue","hideField","oldValues","showField","disableField","enableField","enabled","handleSubmit","WorkflowRouteComponent","TemplateBarChart","BarChart","dataset","xAxis","dataKey","scaleType","valueLabel","series","labelField","TemplateDataCard","TemplateGauge","Gauge","valueMax","total","TemplateLineChart","LineChart","LinearProgressWithLabel","LinearProgress","round","TemplateLineProgress","TemplatePieChart","chartData","PieChart","WidgetViewer","isWidgetLoading","setWidgetLoading","queryId","dataQueryId","parameterValues","getWidgetData","widgetType","verticalAxisField","prefix","iconName","spin","widgetTitle","horizontalAxisField","horizontalAxisLabel","DashboardViewer","dashboardInfo","setDashboardInfo","dashboardCode","dashboardName","dashboardTitle","dashboardParameters","widgets","dashboardParameterValues","setDashboardParameterValues","loadDashboardInfo","widget","DashboardRouteView","ChangeOrgForm","newOrgId","setNewOrgId","userOrganizations","orgId","successChangeCallBackFn","SideBarSlice","toggleSideBarState","setSideBarState","SideBarReducer","useInterval","callback","delay","savedCallback","useRef","setInterval","clearInterval","beatFade","keyframes","NotificationItem","notification","notificationId","notificationAction","notificationActionPayload","isNotified","notificationQueueId","notificationTextColor","notificationIcon","notificationIconColor","notificationEnText","notificationArText","animation","createTime","showDivider","NotificationButton","anchorEl","setAnchorEl","notifications","setNotifications","info","closeOnClick","notificationsCheckIntervalSeconds","ClickAwayListener","onClickAway","currentTarget","anchorOrigin","vertical","horizontal","notificaiton","placement","TransitionProps","Fade","MuiAppBar","easing","sharp","duration","leavingScreen","variants","easeOut","enteringScreen","TopBar","ChangeOrgWindow","setChangeOrgWindowState","SideBarState","SideBar","appLogo","noWrap","appName","organizationEnName","organizationArName","i18n","language","nextLanguage","lng","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","parentItems","parentItem","newParentItem","structuredClone","mergedNavigationItems","enableAdministrationModule","businessNavigationItems","authoriedNavigationItems","RichTreeView","onItemClick","navigationItem","Drawer","anchor","appVersion","cacheRtl","createCache","stylisPlugins","prefixer","rtlPlugin","cacheLtr","OrgMemberRoleForm","setSelectedOptions","availableOptions","setAvailableOptions","orgMemberId","organizationId","currentRoles","availableRoles","getOrgMemberRoles","closeModalFn","OrganizationMemberGrid","OrganizationMemberRolesWindow","setOrganizationMemberRolesWindowState","SystemOrganizations","SystemOrganizationRanks","SystemOrganizationUnits","selectedPerson","OrganizationRankGrid","loadOrganizationRanks","OrganizationUnitGrid","organizationUnitTypes","SystemOrganizationUnitType","loadOrganizationUnits","OrganizationUnitTypeGrid","SystemApplicationAuthorityGrid","systemApplicationModules","setSystemApplicationModules","getSystemApplicationModules","SystemApplicationModuleGrid","RoleAuthoritiesForm","availableAuthorities","setAvailableAuthorities","roleId","selectedAuthorities","getRoleAuthorities","SystemApplicationRoleGrid","selectedRole","setSelectedRole","RoleaAuthoritiesWindow","setRoleAuthoritiesWindowState","DataQueryParameterGrid","SystemEntityParameters","LookupGrid","ReportParameterGrid","reportId","storageTypes","validationObject","Blueprint","useSysDatasource","isMandatory","isVisible","datasourceConId","reportBluePrintId","reportExcelDataQueryId","reportJasperName","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","WorkflowDocumentActionMailGrid","SystemMailTemplates","documentActionId","WorkflowDocumentActionGrid","ActionMailsWindow","setActionMailWindowState","workflowStates","setWorkflowStates","loadWorkFlowDocumentStates","seriesKeys","verticalAxisLabel","ColumnChart","CircularProgress","adjustFormAccordingToWidgetType","DashboardWidgetGrid","SystemWidgets","dashboardId","SYSTEM_ROUTES","setSelectedPerson","OrganizationMembersWindow","setOrganizationMemberWindowState","refSource","SystemApplicationModules","DataQueryParameterWindow","setDataQueryParameterWindow","SystemDataSources","SystemDataSourceType","SystemParameterTypes","ReporTrialWindow","setReportTrialWindowState","ReportParameterWindow","setReportParameterWindowState","SystemBluePrints","SystemTimeIntervals","MailRecipentsWindow","setMailRecipientsWindowState","MailBodiesWindow","setMailBodiesWindowState","MailAttachmentWindow","setMailAttachmentWindowState","callBkFn","periodical","periodType","periodValue","startSendingAt","mailEngine","WorkflowStatusWindow","setWorkflowStatusWindowState","WorkflowActionWindow","setWorkflowActionWindowState","useSystemCon","SystemWidgetTypes","WidgetsWindows","setWidgetsWindowState","mailNotificationQueueId","resendMail","RouteWrapper","MainContent","businessRoutes","isAutoLoadLoaded","setAutoLoadLoaded","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","rtl","draggable","CssBaseline","AppInfoSlice","documentTitle","muiPremiumKey","businessReduxReducers","businessCommonStoresMetaData","light","setAppInfo","AppInfoActions","AppInfoReducer","ADMINISTRATION_STORES","SystemReportTypes","SystemMailRecipientTypes","App","LicenseInfo","setLicenseKey","LightThemeOptions","background","default","paper","DarkThemeOptions","themeOptions","ENGLISH_TRANS","common","AdminLocalsEn","ARABIC_TRANS","adminLocalsAr","library","add","fab","far","fas","BaseApp","systemReducers","store","configureStore","resources","en","translation","businessLocals","ar","initReactI18next","init","fallbackLng","Provider"],"mappings":"i0IAAA,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,SAAUF,KACjD,CAACP,IAEGC,GCTIS,GAAe,IAYtBC,GAAiBC,GAAY,CACjCC,KAAM,yBAN6B,CACnCC,UAAWC,aAAaC,QAAQ,cAAgB,QAChDC,aAAkD,MAApCF,aAAaC,QAAQ,YAAsB,MAAQ,OAMjEE,SAAU,CACRC,aAAc,CAACC,EAAOC,KACpBD,EAAMN,UAAYO,EAAOC,SAE3BC,gBAAiB,CAACH,EAAOC,KACvBD,EAAMH,aAAeI,EAAOC,YAKrBE,GAAmBb,GAAec,QAC/C,IAAeC,GAAAf,GAAegB,QCtB9B,MAIMC,GAAmB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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]}
|