@argusoft/medplat-core 1.0.10 → 1.0.12
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-D6bNg8bx.js +66 -0
- package/dist/index-D6bNg8bx.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +99455 -445
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
- package/dist/AccessRights-sgIhYR30.js +0 -1238
- package/dist/AccessRights-sgIhYR30.js.map +0 -1
- package/dist/AddEditQueryBuilder-BaZxS2Cm.js +0 -289
- package/dist/AddEditQueryBuilder-BaZxS2Cm.js.map +0 -1
- package/dist/AddEditQueryBuilder.css +0 -1
- package/dist/AddFeatures-DLbjDGei.js +0 -212
- package/dist/AddFeatures-DLbjDGei.js.map +0 -1
- package/dist/AddLabelModal-DE3ploGD.js +0 -734
- package/dist/AddLabelModal-DE3ploGD.js.map +0 -1
- package/dist/AddMenuConfiguration-QWfpcnuP.js +0 -2237
- package/dist/AddMenuConfiguration-QWfpcnuP.js.map +0 -1
- package/dist/AddMenuConfiguration.css +0 -1
- package/dist/AddRoleDrawer-ZK1eejxI.js +0 -453
- package/dist/AddRoleDrawer-ZK1eejxI.js.map +0 -1
- package/dist/AppModal-BgZyfrd-.js +0 -428
- package/dist/AppModal-BgZyfrd-.js.map +0 -1
- package/dist/ChangePasswordModal-MV7g8tkA.js +0 -176
- package/dist/ChangePasswordModal-MV7g8tkA.js.map +0 -1
- package/dist/ConditionConfig-GDCXIg3C.js +0 -395
- package/dist/ConditionConfig-GDCXIg3C.js.map +0 -1
- package/dist/ConditionConfig.css +0 -1
- package/dist/EntityManagement-D-x6Qzal.js +0 -50
- package/dist/EntityManagement-D-x6Qzal.js.map +0 -1
- package/dist/EventConfigurations-jGCJ4LqP.js +0 -384
- package/dist/EventConfigurations-jGCJ4LqP.js.map +0 -1
- package/dist/EventConfigurations.css +0 -1
- package/dist/EventsExceptionModal-BF6E1Np7.js +0 -200
- package/dist/EventsExceptionModal-BF6E1Np7.js.map +0 -1
- package/dist/EventsSkeleton-BN7_0IGs.js +0 -74
- package/dist/EventsSkeleton-BN7_0IGs.js.map +0 -1
- package/dist/FeatureMenu-BYSRoNm0.js +0 -249
- package/dist/FeatureMenu-BYSRoNm0.js.map +0 -1
- package/dist/Features-CKMmuqcs.js +0 -11
- package/dist/Features-CKMmuqcs.js.map +0 -1
- package/dist/FlywayQuery-Cx2sly6g.js +0 -169
- package/dist/FlywayQuery-Cx2sly6g.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-DZ8EqXlF.js +0 -5166
- package/dist/ImmunizationConfigurationBase-DZ8EqXlF.js.map +0 -1
- package/dist/ImmunizationConfigurationBase.css +0 -1
- package/dist/ImmunizationConfigurationsList-CQnxWa09.js +0 -335
- package/dist/ImmunizationConfigurationsList-CQnxWa09.js.map +0 -1
- package/dist/ImmunizationSkeleton-D2tdv5k-.js +0 -186
- package/dist/ImmunizationSkeleton-D2tdv5k-.js.map +0 -1
- package/dist/LanguagesModal-rk6IGQwY.js +0 -394
- package/dist/LanguagesModal-rk6IGQwY.js.map +0 -1
- package/dist/ManageDynamicFeature-BKkCnQvF.js +0 -4189
- package/dist/ManageDynamicFeature-BKkCnQvF.js.map +0 -1
- package/dist/ManageEventConfiguration-BJxS2Su0.js +0 -1017
- package/dist/ManageEventConfiguration-BJxS2Su0.js.map +0 -1
- package/dist/ManageEventConfiguration.css +0 -1
- package/dist/ManageNotification-B4prX-9Z.js +0 -6819
- package/dist/ManageNotification-B4prX-9Z.js.map +0 -1
- package/dist/ManageRole-BjIIXAlK.js +0 -728
- package/dist/ManageRole-BjIIXAlK.js.map +0 -1
- package/dist/ManageTranslation-BTxvSYKb.js +0 -616
- package/dist/ManageTranslation-BTxvSYKb.js.map +0 -1
- package/dist/ManageTranslation.css +0 -1
- package/dist/ManageUser-PHiTNyF8.js +0 -2160
- package/dist/ManageUser-PHiTNyF8.js.map +0 -1
- package/dist/ManageUser.css +0 -1
- package/dist/MobileMenuManagement-DmQU5TTo.js +0 -108
- package/dist/MobileMenuManagement-DmQU5TTo.js.map +0 -1
- package/dist/MobileTypeEventConfigModal-ChhO_A4f.js +0 -783
- package/dist/MobileTypeEventConfigModal-ChhO_A4f.js.map +0 -1
- package/dist/NewServerManagement-5YcAtF-g.js +0 -1002
- package/dist/NewServerManagement-5YcAtF-g.js.map +0 -1
- package/dist/NotificationFlywayQuery-BY8Zzml_.js +0 -244
- package/dist/NotificationFlywayQuery-BY8Zzml_.js.map +0 -1
- package/dist/NotificationList-BkpOrCpM.js +0 -400
- package/dist/NotificationList-BkpOrCpM.js.map +0 -1
- package/dist/OtherTypeEventConfigModal-ZnCGWm9v.js +0 -1953
- package/dist/OtherTypeEventConfigModal-ZnCGWm9v.js.map +0 -1
- package/dist/QueryBuilder-Cus_mRwZ.js +0 -378
- package/dist/QueryBuilder-Cus_mRwZ.js.map +0 -1
- package/dist/QueryBuilder.css +0 -1
- package/dist/QueryManagement-DXA73N2j.js +0 -671
- package/dist/QueryManagement-DXA73N2j.js.map +0 -1
- package/dist/QueryManagement.css +0 -1
- package/dist/RoleManagement-v5Nyp1vr.js +0 -416
- package/dist/RoleManagement-v5Nyp1vr.js.map +0 -1
- package/dist/ServerSyncModal-uNjGCQJz.js +0 -869
- package/dist/ServerSyncModal-uNjGCQJz.js.map +0 -1
- package/dist/ShowFlywayQuery-DMsAbtOW.js +0 -130
- package/dist/ShowFlywayQuery-DMsAbtOW.js.map +0 -1
- package/dist/ShowFlywayQuery-DVRCd384.js +0 -259
- package/dist/ShowFlywayQuery-DVRCd384.js.map +0 -1
- package/dist/ShowQueryHistory-BDN0tzHg.js +0 -190
- package/dist/ShowQueryHistory-BDN0tzHg.js.map +0 -1
- package/dist/SubMenu-BHcSNSUF.js +0 -187
- package/dist/SubMenu-BHcSNSUF.js.map +0 -1
- package/dist/TableDetails-DzREeJkm.js +0 -1508
- package/dist/TableDetails-DzREeJkm.js.map +0 -1
- package/dist/TableList-B9hr05Hs.js +0 -428
- package/dist/TableList-B9hr05Hs.js.map +0 -1
- package/dist/TypeConfiguration-C-lk8Szs.js +0 -117
- package/dist/TypeConfiguration-C-lk8Szs.js.map +0 -1
- package/dist/UserList-BxB1tCwM.js +0 -13042
- package/dist/UserList-BxB1tCwM.js.map +0 -1
- package/dist/UserList.css +0 -1
- package/dist/UserListSkeleton-cglK2SaU.js +0 -184
- package/dist/UserListSkeleton-cglK2SaU.js.map +0 -1
- package/dist/WidgetList-BSApErov.js +0 -188
- package/dist/WidgetList-BSApErov.js.map +0 -1
- package/dist/_commonjsHelpers-BItOPCY9.js +0 -29
- package/dist/_commonjsHelpers-BItOPCY9.js.map +0 -1
- package/dist/i18next-CTOWN_jH.js +0 -1394
- package/dist/i18next-CTOWN_jH.js.map +0 -1
- package/dist/manageImmunization-B4swS745.js +0 -1204
- package/dist/manageImmunization-B4swS745.js.map +0 -1
- package/dist/manageImmunization.css +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EventsExceptionModal-BF6E1Np7.js","sources":["../src/views/Events/EventsExceptionModal.jsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Button, IconButton, Modal, Stack, Typography } from \"@mui/material\";\nimport Grid from \"@mui/material/Grid2\";\nimport { execute } from \"@/common/services/GlobalApis\";\nimport { showToast } from \"@/common/toaster/toaster\";\nimport { useTranslateProvider } from \"@/common/languageTranslator/TranslationContext\";\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\nimport { faXmark } from \"@fortawesome/free-solid-svg-icons\";\nimport { EventExceptionModalSkeleton } from \"./Skeletons/EventsSkeleton\";\n\n/**\n * Modal component for displaying event exceptions.\n *\n * @module EventsExceptionModal\n * @function\n *\n * @param {Object} props - The component props.\n * @param {number} props.id - The identifier for the event configuration.\n * @param {string} props.title - The title of the modal.\n * @param {boolean} props.open - A flag indicating if the modal is open.\n * @param {function} props.handleClose - Callback function to close the modal.\n */\nfunction EventsExceptionModal({ id, title, open, handleClose, dataTestId }) {\n const { translate } = useTranslateProvider();\n\n const [eventException, setEventException] = useState(null);\n const [isLoading, setIsLoading] = useState(false);\n useEffect(() => {\n if (id) {\n loadInitialData(id);\n }\n }, [id]);\n\n /**\n * Loads initial event exception data based on the provided ID.\n *\n * @async\n * @function loadInitialData\n * @param {number} id - The ID of the event configuration to retrieve exceptions for.\n * @throws Will show a toast message on error.\n */\n const loadInitialData = async (id) => {\n try {\n setIsLoading(true);\n const resposne = await execute(\n {\n code: \"event_config_retrieve_exceptions_by_config_id\",\n parameters: {\n configId: Number(id),\n },\n },\n { showLoader: false }\n );\n setIsLoading(false);\n const result = resposne?.data?.result;\n if (result?.length > 0) {\n setEventException(result[0]);\n } else {\n setEventException(null);\n }\n } catch {\n showToast({ message: \"Error in Showing Exception\", type: \"error\" });\n }\n };\n return (\n <Modal\n open={open}\n onClose={handleClose}\n sx={{\n \"& .MuiBackdrop-root\": {\n backgroundColor: \"rgba(0, 0, 0, 0.1)\", // Set the modal overlay background color to transparent\n },\n }}\n data-testid={dataTestId}\n >\n <Grid\n container\n className=\"absolute top-[5%] left-[11%] w-[80%] bg-white shadow-md max-h-[80vh] overflow-y-auto\"\n data-testid=\"eventsexceptionmodal-grid-container\"\n >\n <Grid\n className=\"manageeventconfiguration-modal-header p-2.5 px-5 flex justify-between border-b w-full\"\n data-testid=\"eventsexceptionmodal-header\"\n >\n <Typography\n variant=\"body1\"\n className=\"font-medium text-lg text-customBlue\"\n data-testid=\"eventsexceptionmodal-title\"\n >\n {title}\n </Typography>\n <IconButton\n size=\"small\"\n onClick={handleClose}\n data-testid=\"eventsexceptionmodal-close-button\"\n >\n <FontAwesomeIcon icon={faXmark} />\n </IconButton>\n </Grid>\n <Grid\n item\n className=\"border-b border-gray-300 w-full p-2.5\"\n data-testid=\"eventsexceptionmodal-content\"\n >\n <EventExceptionModalSkeleton isLoading={isLoading}>\n {eventException && !isLoading && (\n <>\n <Typography\n variant=\"h6\"\n data-testid=\"eventsexceptionmodal-exception-header\"\n className=\"text-customBlue\">\n <strong>{translate(\"Exception\")}:</strong>\n </Typography>\n <pre\n className=\"whitespace-pre-wrap break-words m-0\"\n data-testid=\"eventsexceptionmodal-exception-string\"\n >\n {eventException?.exceptionString}\n </pre>\n\n {eventException?.systemTriggerOn && (\n <Typography\n variant=\"body1\"\n className=\"mt-2\"\n data-testid=\"eventsexceptionmodal-triggered-on\"\n >\n <strong>{translate(\"Triggered On\")}:</strong>{\" \"}\n {new Date(eventException?.systemTriggerOn).toLocaleString()}\n </Typography>\n )}\n\n {eventException?.processedOn && (\n <Typography\n variant=\"body1\"\n data-testid=\"eventsexceptionmodal-processed-on\"\n >\n <strong>{translate(\"Processed On\")}:</strong>{\" \"}\n {new Date(eventException?.processedOn).toLocaleString()}\n </Typography>\n )}\n </>\n )}\n {!eventException && !isLoading && (\n <Typography\n variant=\"body1\"\n className=\"m-1\"\n data-testid=\"eventsexceptionmodal-no-exception\"\n >\n {translate(\"No Exception Occurred\")}\n </Typography>\n )}\n </EventExceptionModalSkeleton>\n </Grid>\n <Grid\n item\n className=\"border-b border-gray-300 pb-[1px] pr-2.5 w-full\"\n data-testid=\"eventsexceptionmodal-footer\"\n >\n <Stack\n direction=\"row\"\n spacing={2}\n justifyContent=\"flex-end\"\n mt={1}\n mb={1}\n >\n <Grid>\n <Button\n variant=\"contained\"\n color=\"secondary\"\n className=\"ml-2\"\n onClick={handleClose}\n data-testid=\"eventsexceptionmodal-close-button-action\"\n >\n <Typography variant=\"body2\">{translate(\"Close\")}</Typography>\n </Button>\n </Grid>\n </Stack>\n </Grid>\n </Grid>\n </Modal>\n );\n}\n\nexport default EventsExceptionModal;\n\nEventsExceptionModal.propTypes = {\n open: PropTypes.any,\n handleClose: PropTypes.any,\n id: PropTypes.any,\n title: PropTypes.any,\n dataTestId: PropTypes.any,\n};\n"],"names":["EventsExceptionModal","id","title","open","handleClose","dataTestId","translate","useTranslateProvider","eventException","setEventException","useState","isLoading","setIsLoading","useEffect","loadInitialData","resposne","execute","result","_a","showToast","jsx","Modal","jsxs","Grid","Typography","IconButton","FontAwesomeIcon","faXmark","EventExceptionModalSkeleton","Fragment","Stack","Button","PropTypes"],"mappings":";;;;;;;;;;;AAuBA,SAASA,EAAqB,EAAE,IAAAC,GAAI,OAAAC,GAAO,MAAAC,GAAM,aAAAC,GAAa,YAAAC,KAAc;AAC1E,QAAM,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAEhB,CAACC,GAAgBC,CAAiB,IAAIC,EAAS,IAAI,GACnD,CAACC,GAAWC,CAAY,IAAIF,EAAS,EAAK;AAChD,EAAAG,EAAU,MAAM;AACd,IAAIZ,KACFa,EAAgBb,CAAE;AAAA,EAEtB,GAAG,CAACA,CAAE,CAAC;AAUP,QAAMa,IAAkB,OAAOb,MAAO;;AACpC,QAAI;AACF,MAAAW,EAAa,EAAI;AACjB,YAAMG,IAAW,MAAMC;AAAA,QACrB;AAAA,UACE,MAAM;AAAA,UACN,YAAY;AAAA,YACV,UAAU,OAAOf,CAAE;AAAA,UAAA;AAAA,QACrB;AAAA,QAEF,EAAE,YAAY,GAAA;AAAA,MAAM;AAEtB,MAAAW,EAAa,EAAK;AAClB,YAAMK,KAASC,IAAAH,KAAA,gBAAAA,EAAU,SAAV,gBAAAG,EAAgB;AAC/B,OAAID,KAAA,gBAAAA,EAAQ,UAAS,IACnBR,EAAkBQ,EAAO,CAAC,CAAC,IAE3BR,EAAkB,IAAI;AAAA,IAE1B,QAAQ;AACN,MAAAU,EAAU,EAAE,SAAS,8BAA8B,MAAM,SAAS;AAAA,IACpE;AAAA,EACF;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAlB;AAAA,MACA,SAASC;AAAA,MACT,IAAI;AAAA,QACF,uBAAuB;AAAA,UACrB,iBAAiB;AAAA;AAAA,QAAA;AAAA,MACnB;AAAA,MAEF,eAAaC;AAAA,MAEb,UAAA,gBAAAiB;AAAA,QAACC;AAAA,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UAAA,gBAAAH;AAAA,sBAACW;AAAA,sBAAA;AAAA,wBACC,SAAQ;AAAA,wBACR,OAAM;AAAA,wBACN,WAAU;AAAA,wBACV,SAAS3B;AAAA,wBACT,eAAY;AAAA,wBAEZ,4BAACoB,GAAA,EAAW,SAAQ,SAAS,UAAAlB,EAAU,OAAO,EAAA,CAAE;AAAA,sBAAA;AAAA,oBAAA,EAClD,CACF;AAAA,kBAAA;AAAA,gBAAA;AAAA,cACF;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN;AAIAN,EAAqB,YAAY;AAAA,EAC/B,MAAMgC,EAAU;AAAA,EAChB,aAAaA,EAAU;AAAA,EACvB,IAAIA,EAAU;AAAA,EACd,OAAOA,EAAU;AAAA,EACjB,YAAYA,EAAU;AACxB;"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { api as n } from "@/common/interceptors/AxiosInterceptor";
|
|
2
|
-
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import l from "prop-types";
|
|
4
|
-
import "react";
|
|
5
|
-
import { useSelector as t } from "react-redux";
|
|
6
|
-
import { getUseSkeleton as i } from "@/store/reducers/SkeletonReducer";
|
|
7
|
-
const f = (a = !0) => n.get(`/eventconfig?isActive=${a}`, { isActive: a }), h = (a) => n.put("/eventconfig", a, {
|
|
8
|
-
headers: {
|
|
9
|
-
"Content-Type": "application/json;charset=UTF-8",
|
|
10
|
-
Title: "Login"
|
|
11
|
-
}
|
|
12
|
-
}), y = (a) => n.get(`/eventconfig/run/${a}`), N = () => n.get("/eventconfig/manualevents"), b = (a) => n.post("/eventconfig", a), w = (a) => n.get(`eventconfig/${a}`), S = (a) => n.get("/form", a), k = () => t(i) ? /* @__PURE__ */ s("div", { className: "flex flex-col gap-2", children: [
|
|
13
|
-
/* @__PURE__ */ s("div", { className: "flex justify-between gap-2 mb-[10px]", children: [
|
|
14
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]" }),
|
|
15
|
-
/* @__PURE__ */ s("div", { className: "flex space-x-2", children: [
|
|
16
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]" }),
|
|
17
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]" }),
|
|
18
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]" }),
|
|
19
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]" })
|
|
20
|
-
] })
|
|
21
|
-
] }),
|
|
22
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-full h-100" })
|
|
23
|
-
] }) : null, m = ({ children: a, isLoading: r }) => !t(i) || !r ? a : /* @__PURE__ */ s("div", { className: "my-6", children: [
|
|
24
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[250px] h-[40px] ml-5" }),
|
|
25
|
-
/* @__PURE__ */ s("div", { className: "flex gap-10 flex-wrap p-5", children: [
|
|
26
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[45%] h-[40px]" }),
|
|
27
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[45%] h-[120px]" }),
|
|
28
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[45%] h-[40px]" })
|
|
29
|
-
] }),
|
|
30
|
-
/* @__PURE__ */ s("div", { className: "flex flex-col p-5", children: [
|
|
31
|
-
/* @__PURE__ */ s("div", { className: "flex justify-between", children: [
|
|
32
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[150px] h-[40px]" }),
|
|
33
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[90px] h-[40px]" })
|
|
34
|
-
] }),
|
|
35
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[40px] mt-10" })
|
|
36
|
-
] }),
|
|
37
|
-
/* @__PURE__ */ s("div", { className: "flex justify-end gap-5 pr-5", children: [
|
|
38
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[90px] h-[40px]" }),
|
|
39
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[90px] h-[40px]" })
|
|
40
|
-
] })
|
|
41
|
-
] });
|
|
42
|
-
m.propTypes = {
|
|
43
|
-
children: l.any,
|
|
44
|
-
isLoading: l.any
|
|
45
|
-
};
|
|
46
|
-
const o = ({ children: a, isLoading: r }) => !t(i) || !r ? a : /* @__PURE__ */ s("div", { className: "w-full h-[220px] flex flex-col justify-between animate-pulse", children: [
|
|
47
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[28px] w-[180px] mb-4" }),
|
|
48
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[80px] w-full mb-4" }),
|
|
49
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 mb-2", children: [
|
|
50
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[20px] w-[140px]" }),
|
|
51
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[20px] w-[180px]" })
|
|
52
|
-
] }),
|
|
53
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row space-x-4", children: [
|
|
54
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[20px] w-[140px]" }),
|
|
55
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[20px] w-[180px]" })
|
|
56
|
-
] })
|
|
57
|
-
] });
|
|
58
|
-
o.propTypes = {
|
|
59
|
-
children: l.any,
|
|
60
|
-
isLoading: l.any
|
|
61
|
-
};
|
|
62
|
-
export {
|
|
63
|
-
k as E,
|
|
64
|
-
m as M,
|
|
65
|
-
y as a,
|
|
66
|
-
S as b,
|
|
67
|
-
N as c,
|
|
68
|
-
w as d,
|
|
69
|
-
o as e,
|
|
70
|
-
f as r,
|
|
71
|
-
b as s,
|
|
72
|
-
h as t
|
|
73
|
-
};
|
|
74
|
-
//# sourceMappingURL=EventsSkeleton-BN7_0IGs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EventsSkeleton-BN7_0IGs.js","sources":["../src/services/EventConfig.js","../src/views/Events/Skeletons/EventsSkeleton.jsx"],"sourcesContent":["import { api } from \"@/common/interceptors/AxiosInterceptor\";\n\nexport const retrieveAll = (isActive = true) =>\n api.get(`/eventconfig?isActive=${isActive}`, { isActive: isActive });\n\nexport const toggleState = (data) =>\n api.put(`/eventconfig`, data, {\n headers: {\n \"Content-Type\": \"application/json;charset=UTF-8\",\n Title: \"Login\",\n },\n });\n\nexport const runEvent = (uuid) => api.get(`/eventconfig/run/${uuid}`);\n\nexport const retrieveManualEvents = () => api.get(`/eventconfig/manualevents`);\n\nexport const saveOrUpdate = (data) => api.post(\"/eventconfig\", data);\n\nexport const retrieveByUUID = (id) => api.get(`eventconfig/${id}`);\n\nexport const retrieveAllForm = (data) => api.get(`/form`, data);\n","import PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { getUseSkeleton } from \"@/store/reducers/SkeletonReducer\";\n\nexport const EventConfigurationSkeleton = () => {\n const useSkeleton = useSelector(getUseSkeleton);\n if (!useSkeleton) {\n return null;\n }\n return (\n <div className=\"flex flex-col gap-2\">\n <div className=\"flex justify-between gap-2 mb-[10px]\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]\"></div>\n <div className=\"flex space-x-2\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]\"></div>\n </div>\n </div>\n\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-full h-100\"></div>\n </div>\n );\n};\n\nexport const ManageEventConfigurationSkeleton = ({ children, isLoading }) => {\n const useSkeleton = useSelector(getUseSkeleton);\n if (!useSkeleton) {\n return children;\n }\n if (!isLoading) return children;\n\n return (\n <div className=\"my-6\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[250px] h-[40px] ml-5\"></div>\n <div className=\"flex gap-10 flex-wrap p-5\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[45%] h-[40px]\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[45%] h-[120px]\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[45%] h-[40px]\"></div>\n </div>\n <div className=\"flex flex-col p-5\">\n <div className=\"flex justify-between\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[150px] h-[40px]\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[90px] h-[40px]\"></div>\n </div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm h-[40px] mt-10\"></div>\n </div>\n <div className=\"flex justify-end gap-5 pr-5\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[90px] h-[40px]\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[90px] h-[40px]\"></div>\n </div>\n </div>\n );\n};\n\nManageEventConfigurationSkeleton.propTypes = {\n children: PropTypes.any,\n isLoading: PropTypes.any,\n};\n\nexport const EventExceptionModalSkeleton = ({ children, isLoading }) => {\n const useSkeleton = useSelector(getUseSkeleton);\n if (!useSkeleton) {\n return children;\n }\n if (!isLoading) return children;\n\n return (\n <div className=\"w-full h-[220px] flex flex-col justify-between animate-pulse\">\n <div className=\"bg-gray-300 rounded-sm h-[28px] w-[180px] mb-4\"></div>\n <div className=\"bg-gray-300 rounded-sm h-[80px] w-full mb-4\"></div>\n <div className=\"flex flex-row space-x-4 mb-2\">\n <div className=\"bg-gray-300 rounded-sm h-[20px] w-[140px]\"></div>\n <div className=\"bg-gray-300 rounded-sm h-[20px] w-[180px]\"></div>\n </div>\n <div className=\"flex flex-row space-x-4\">\n <div className=\"bg-gray-300 rounded-sm h-[20px] w-[140px]\"></div>\n <div className=\"bg-gray-300 rounded-sm h-[20px] w-[180px]\"></div>\n </div>\n </div>\n );\n};\n\nEventExceptionModalSkeleton.propTypes = {\n children: PropTypes.any,\n isLoading: PropTypes.any,\n};\n"],"names":["retrieveAll","isActive","api","toggleState","data","runEvent","uuid","retrieveManualEvents","saveOrUpdate","retrieveByUUID","id","retrieveAllForm","EventConfigurationSkeleton","useSelector","getUseSkeleton","jsxs","jsx","ManageEventConfigurationSkeleton","children","isLoading","PropTypes","EventExceptionModalSkeleton"],"mappings":";;;;;;AAEY,MAACA,IAAc,CAACC,IAAW,OACrCC,EAAI,IAAI,yBAAyBD,CAAQ,IAAI,EAAE,UAAUA,EAAQ,CAAE,GAExDE,IAAc,CAACC,MAC1BF,EAAI,IAAI,gBAAgBE,GAAM;AAAA,EAC5B,SAAS;AAAA,IACP,gBAAgB;AAAA,IAChB,OAAO;AAAA,EACb;AACA,CAAG,GAEUC,IAAW,CAACC,MAASJ,EAAI,IAAI,oBAAoBI,CAAI,EAAE,GAEvDC,IAAuB,MAAML,EAAI,IAAI,2BAA2B,GAEhEM,IAAe,CAACJ,MAASF,EAAI,KAAK,gBAAgBE,CAAI,GAEtDK,IAAiB,CAACC,MAAOR,EAAI,IAAI,eAAeQ,CAAE,EAAE,GAEpDC,IAAkB,CAACP,MAASF,EAAI,IAAI,SAASE,CAAI,GChBjDQ,IAA6B,MACpBC,EAAYC,CAAc,IAK5C,gBAAAC,EAAC,OAAA,EAAI,WAAU,uBACb,UAAA;AAAA,EAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,wCACb,UAAA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AAsD;AAAA,EAAA,GACvE;AAAA,EACA,gBAAAD,EAAC,OAAA,EAAI,WAAU,+BACb,UAAA;AAAA,IAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,yDAAA,CAAyD;AAAA,IACxE,gBAAAA,EAAC,OAAA,EAAI,WAAU,yDAAA,CAAyD;AAAA,EAAA,EAAA,CAC1E;AAAA,GACF;AAIJC,EAAiC,YAAY;AAAA,EAC3C,UAAUG,EAAU;AAAA,EACpB,WAAWA,EAAU;AACvB;AAEO,MAAMC,IAA8B,CAAC,EAAE,UAAAH,GAAU,WAAAC,QAElD,CADgBN,EAAYC,CAAc,KAI1C,CAACK,IAAkBD,IAGrB,gBAAAH,EAAC,OAAA,EAAI,WAAU,gEACb,UAAA;AAAA,EAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,iDAAA,CAAiD;AAAA,EAChE,gBAAAA,EAAC,OAAA,EAAI,WAAU,8CAAA,CAA8C;AAAA,EAC7D,gBAAAD,EAAC,OAAA,EAAI,WAAU,gCACb,UAAA;AAAA,IAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,4CAAA,CAA4C;AAAA,IAC3D,gBAAAA,EAAC,OAAA,EAAI,WAAU,4CAAA,CAA4C;AAAA,EAAA,GAC7D;AAAA,EACA,gBAAAD,EAAC,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,IAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,4CAAA,CAA4C;AAAA,IAC3D,gBAAAA,EAAC,OAAA,EAAI,WAAU,4CAAA,CAA4C;AAAA,EAAA,EAAA,CAC7D;AAAA,GACF;AAIJK,EAA4B,YAAY;AAAA,EACtC,UAAUD,EAAU;AAAA,EACpB,WAAWA,EAAU;AACvB;"}
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as s, Fragment as J } from "react/jsx-runtime";
|
|
2
|
-
import { useState as b, useMemo as y, useCallback as _, useEffect as K, Suspense as j, startTransition as Q, lazy as L } from "react";
|
|
3
|
-
import { useTranslateProvider as W } from "@/common/languageTranslator/TranslationContext";
|
|
4
|
-
import { g as X } from "./Features-CKMmuqcs.js";
|
|
5
|
-
import { showToast as Y } from "@/common/toaster/toaster";
|
|
6
|
-
import Z from "@/hooks/useTrackEvent";
|
|
7
|
-
import { useTheme as ee, Card as ae, Tabs as te, Tab as se, Button as D, Typography as G } from "@mui/material";
|
|
8
|
-
import d from "@mui/material/Grid2";
|
|
9
|
-
import { useSelector as u, useDispatch as ne } from "react-redux";
|
|
10
|
-
import { useNavigate as re } from "react-router-dom";
|
|
11
|
-
import { Box as le } from "@mui/system";
|
|
12
|
-
import { FontAwesomeIcon as oe } from "@fortawesome/react-fontawesome";
|
|
13
|
-
import { faGear as ue } from "@fortawesome/free-solid-svg-icons";
|
|
14
|
-
import p from "prop-types";
|
|
15
|
-
import { getUseSkeleton as w } from "@/store/reducers/SkeletonReducer";
|
|
16
|
-
import { setSubMenuFeatureVal as ie, setSubMenuGroupName as me, setSubMenuId as ce } from "@/store/reducers/FeatureReducer";
|
|
17
|
-
const v = ({ children: r, isLoading: l }) => !u(w) || !l ? r : /* @__PURE__ */ e("div", { className: "flex flex-col mt-6", children: /* @__PURE__ */ s("div", { className: "w-full justify-between flex-wrap flex flex-row", children: [
|
|
18
|
-
/* @__PURE__ */ s("div", { className: "flex-wrap flex flex-row", children: [
|
|
19
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2" }),
|
|
20
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2" }),
|
|
21
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2" }),
|
|
22
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2" }),
|
|
23
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2" })
|
|
24
|
-
] }),
|
|
25
|
-
/* @__PURE__ */ s("div", { className: "flex", children: [
|
|
26
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[32px] w-[120px] m-0.5" }),
|
|
27
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[32px] w-[130px] m-0.5" }),
|
|
28
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[32px] w-[100px] m-0.5" })
|
|
29
|
-
] })
|
|
30
|
-
] }) });
|
|
31
|
-
v.propTypes = {
|
|
32
|
-
children: p.any,
|
|
33
|
-
isLoading: p.any
|
|
34
|
-
};
|
|
35
|
-
p.any, p.any;
|
|
36
|
-
const de = ({ children: r, isLoading: l }) => !u(w) || !l ? r : /* @__PURE__ */ s("div", { className: "w-full p-2", children: [
|
|
37
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[40px] w-full mb-2" }),
|
|
38
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[60px] w-full mb-2" }),
|
|
39
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[280px] w-full" })
|
|
40
|
-
] });
|
|
41
|
-
de.propTypes = {
|
|
42
|
-
children: p.any,
|
|
43
|
-
isLoading: p.any
|
|
44
|
-
};
|
|
45
|
-
const pe = L(() => import("./AccessRights-sgIhYR30.js")), fe = L(() => import("./SubMenu-BHcSNSUF.js"));
|
|
46
|
-
function xe() {
|
|
47
|
-
const r = u(w), l = ee(), f = ne(), [S, P] = b([]), [o, R] = b(0), i = u((a) => {
|
|
48
|
-
var t;
|
|
49
|
-
return (t = a == null ? void 0 : a.FeatureReducer) == null ? void 0 : t.subMenuId;
|
|
50
|
-
}), M = u(
|
|
51
|
-
(a) => {
|
|
52
|
-
var t;
|
|
53
|
-
return (t = a == null ? void 0 : a.FeatureReducer) == null ? void 0 : t.subMenuGroupName;
|
|
54
|
-
}
|
|
55
|
-
), $ = u(
|
|
56
|
-
(a) => {
|
|
57
|
-
var t;
|
|
58
|
-
return (t = a == null ? void 0 : a.FeatureReducer) == null ? void 0 : t.subMenuFeatureVal;
|
|
59
|
-
}
|
|
60
|
-
), g = re(), { user: h } = u((a) => a.Authenticate), { translate: m } = W(), [c, N] = b(!1), k = Z(), [F, B] = b({}), I = (h == null ? void 0 : h.features) || {}, n = y(
|
|
61
|
-
() => Object.keys(I).filter((a) => a !== "mch"),
|
|
62
|
-
[I]
|
|
63
|
-
), T = l.palette.mode === "dark" ? l.palette.divider : l.palette.grey[200], E = _((a, t) => {
|
|
64
|
-
R(t);
|
|
65
|
-
}, []), V = _(() => {
|
|
66
|
-
k("button_click", {
|
|
67
|
-
button_name: "featuremenu-add-button",
|
|
68
|
-
button_type: "navigate",
|
|
69
|
-
button_id: "featuremenu-add-button"
|
|
70
|
-
}), g("addDynamicFeature");
|
|
71
|
-
}, [g, k]);
|
|
72
|
-
K(() => {
|
|
73
|
-
(async () => {
|
|
74
|
-
var t, C;
|
|
75
|
-
if (!(!n.length || o >= n.length))
|
|
76
|
-
try {
|
|
77
|
-
N(!0);
|
|
78
|
-
const { data: x } = await X(n[o]), A = x.sort((q, H) => {
|
|
79
|
-
var z;
|
|
80
|
-
return (z = q.name) == null ? void 0 : z.localeCompare(H.name);
|
|
81
|
-
});
|
|
82
|
-
Q(() => {
|
|
83
|
-
P(A), A.length > 0, N(!1);
|
|
84
|
-
});
|
|
85
|
-
} catch (x) {
|
|
86
|
-
Y({
|
|
87
|
-
message: `Error : ${(C = (t = x == null ? void 0 : x.response) == null ? void 0 : t.data) == null ? void 0 : C.message}`,
|
|
88
|
-
type: "error"
|
|
89
|
-
}), N(!1);
|
|
90
|
-
}
|
|
91
|
-
})();
|
|
92
|
-
}, [o, n]);
|
|
93
|
-
const O = y(
|
|
94
|
-
() => /* @__PURE__ */ e(j, { fallback: /* @__PURE__ */ e(v, {}), children: /* @__PURE__ */ e(
|
|
95
|
-
fe,
|
|
96
|
-
{
|
|
97
|
-
"data-testid": "featuremenu-submenu",
|
|
98
|
-
data: S,
|
|
99
|
-
subMenuId: i,
|
|
100
|
-
setSubMenuId: (a) => {
|
|
101
|
-
f(ce(a));
|
|
102
|
-
},
|
|
103
|
-
setSubMenuGroupName: (a) => {
|
|
104
|
-
f(me(a));
|
|
105
|
-
},
|
|
106
|
-
setSubMenuFeatureVal: (a) => {
|
|
107
|
-
f(ie(a));
|
|
108
|
-
},
|
|
109
|
-
type: n[o],
|
|
110
|
-
isLoading: c,
|
|
111
|
-
isNewAPI: F,
|
|
112
|
-
subMenuGroupName: M
|
|
113
|
-
}
|
|
114
|
-
) }),
|
|
115
|
-
[S, i, o, c, n, F]
|
|
116
|
-
), U = y(
|
|
117
|
-
() => /* @__PURE__ */ e(
|
|
118
|
-
j,
|
|
119
|
-
{
|
|
120
|
-
fallback: /* @__PURE__ */ e("div", { className: "p-2 text-sm text-gray-500", children: "Loading Access Rights..." }),
|
|
121
|
-
children: /* @__PURE__ */ e(
|
|
122
|
-
pe,
|
|
123
|
-
{
|
|
124
|
-
"data-testid": "featuremenu-access-rights",
|
|
125
|
-
subMenuId: i,
|
|
126
|
-
subMenuGroupName: M,
|
|
127
|
-
subMenuFeatureVal: $,
|
|
128
|
-
selectedTab: n[o],
|
|
129
|
-
parentLoading: c,
|
|
130
|
-
onNewAPIChange: B
|
|
131
|
-
}
|
|
132
|
-
)
|
|
133
|
-
}
|
|
134
|
-
),
|
|
135
|
-
[i, c]
|
|
136
|
-
);
|
|
137
|
-
return /* @__PURE__ */ s(ae, { variant: "elevation", className: "p-3 mt-6 flex flex-col shadow-2xl", children: [
|
|
138
|
-
/* @__PURE__ */ e(v, { isLoading: c, children: /* @__PURE__ */ s(d, { className: "w-full justify-between flex-wrap flex flex-row", children: [
|
|
139
|
-
/* @__PURE__ */ e(d, { className: "flex-wrap flex flex-row", children: /* @__PURE__ */ e(
|
|
140
|
-
te,
|
|
141
|
-
{
|
|
142
|
-
value: o,
|
|
143
|
-
onChange: E,
|
|
144
|
-
variant: "scrollable",
|
|
145
|
-
scrollButtons: "auto",
|
|
146
|
-
children: n.map((a, t) => /* @__PURE__ */ e(
|
|
147
|
-
se,
|
|
148
|
-
{
|
|
149
|
-
label: a.toUpperCase(),
|
|
150
|
-
"data-testid": `featuremenu-button-${t}`,
|
|
151
|
-
id: `feature-tab-${t}`
|
|
152
|
-
},
|
|
153
|
-
a
|
|
154
|
-
))
|
|
155
|
-
}
|
|
156
|
-
) }),
|
|
157
|
-
/* @__PURE__ */ s(d, { className: "flex gap-2 items-center ml-auto", children: [
|
|
158
|
-
/* @__PURE__ */ s(
|
|
159
|
-
D,
|
|
160
|
-
{
|
|
161
|
-
size: "small",
|
|
162
|
-
className: "mb-1 ml-0.5",
|
|
163
|
-
variant: "contained",
|
|
164
|
-
onClick: () => g("/ui/medplat/report/all/groups"),
|
|
165
|
-
sx: {
|
|
166
|
-
mt: { xs: "15px", md: "0px" }
|
|
167
|
-
},
|
|
168
|
-
children: [
|
|
169
|
-
m("Manage"),
|
|
170
|
-
" ",
|
|
171
|
-
m("Menu"),
|
|
172
|
-
" ",
|
|
173
|
-
m("Group")
|
|
174
|
-
]
|
|
175
|
-
}
|
|
176
|
-
),
|
|
177
|
-
/* @__PURE__ */ s(
|
|
178
|
-
D,
|
|
179
|
-
{
|
|
180
|
-
size: "small",
|
|
181
|
-
"data-testid": "featuremenu-add-button",
|
|
182
|
-
className: "mb-1 ml-0.5",
|
|
183
|
-
variant: "contained",
|
|
184
|
-
onClick: V,
|
|
185
|
-
sx: {
|
|
186
|
-
mt: { xs: "15px", md: "0px" }
|
|
187
|
-
},
|
|
188
|
-
children: [
|
|
189
|
-
m("Add"),
|
|
190
|
-
" ",
|
|
191
|
-
m("Feature")
|
|
192
|
-
]
|
|
193
|
-
}
|
|
194
|
-
)
|
|
195
|
-
] })
|
|
196
|
-
] }) }),
|
|
197
|
-
/* @__PURE__ */ s(d, { container: !0, spacing: 2, className: "w-full py-3 rounded-sm", children: [
|
|
198
|
-
/* @__PURE__ */ e(
|
|
199
|
-
d,
|
|
200
|
-
{
|
|
201
|
-
size: { xs: 12, sm: 12, md: 3 },
|
|
202
|
-
className: "flex",
|
|
203
|
-
sx: { border: `1px solid ${T}` },
|
|
204
|
-
children: O
|
|
205
|
-
}
|
|
206
|
-
),
|
|
207
|
-
/* @__PURE__ */ s(
|
|
208
|
-
d,
|
|
209
|
-
{
|
|
210
|
-
size: { xs: 12, sm: 12, md: 9 },
|
|
211
|
-
className: "flex flex-col",
|
|
212
|
-
sx: { border: `1px solid ${T}` },
|
|
213
|
-
children: [
|
|
214
|
-
c && r ? /* @__PURE__ */ e("div", { className: "flex flex-col p-2", children: /* @__PURE__ */ e("div", { className: "bg-slate-200 dark:bg-slate-800 animate-pulse rounded-sm h-[30px] w-[180px]" }) }) : /* @__PURE__ */ s(le, { className: "flex items-center p-2", children: [
|
|
215
|
-
/* @__PURE__ */ e(oe, { icon: ue, size: "lg", className: "mr-2" }),
|
|
216
|
-
/* @__PURE__ */ e(G, { variant: "body2", className: "font-bold font-sans pt-1", children: m("Access Rights") })
|
|
217
|
-
] }),
|
|
218
|
-
i && U,
|
|
219
|
-
!i && /* @__PURE__ */ e(J, { children: /* @__PURE__ */ e(
|
|
220
|
-
G,
|
|
221
|
-
{
|
|
222
|
-
variant: "body2",
|
|
223
|
-
className: "p-2",
|
|
224
|
-
"data-testid": "featuremenu-no-feature-selected",
|
|
225
|
-
sx: {
|
|
226
|
-
textAlign: "center",
|
|
227
|
-
position: "relative",
|
|
228
|
-
top: "10%",
|
|
229
|
-
fontSize: "25px",
|
|
230
|
-
color: "grey"
|
|
231
|
-
},
|
|
232
|
-
children: "Please select a feature!"
|
|
233
|
-
}
|
|
234
|
-
) })
|
|
235
|
-
]
|
|
236
|
-
}
|
|
237
|
-
)
|
|
238
|
-
] })
|
|
239
|
-
] });
|
|
240
|
-
}
|
|
241
|
-
const _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
242
|
-
__proto__: null,
|
|
243
|
-
default: xe
|
|
244
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
245
|
-
export {
|
|
246
|
-
_e as F,
|
|
247
|
-
de as S
|
|
248
|
-
};
|
|
249
|
-
//# sourceMappingURL=FeatureMenu-BYSRoNm0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureMenu-BYSRoNm0.js","sources":["../src/views/Features/Skeletons/FeatureSkeletons.jsx","../src/views/Features/FeatureMenu.jsx"],"sourcesContent":["import PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { getUseSkeleton } from \"@/store/reducers/SkeletonReducer\";\n\nexport const FeatureMenuSkeleton = ({ children, isLoading }) => {\n const useSkeleton = useSelector(getUseSkeleton);\n if (!useSkeleton) {\n return children;\n }\n if (!isLoading) return children;\n return (\n <div className=\"flex flex-col mt-6\">\n <div className=\"w-full justify-between flex-wrap flex flex-row\">\n <div className=\"flex-wrap flex flex-row\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2\"></div>\n </div>\n\n <div className=\"flex\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm h-[32px] w-[120px] m-0.5\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm h-[32px] w-[130px] m-0.5\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm h-[32px] w-[100px] m-0.5\"></div>\n </div>\n </div>\n </div>\n );\n};\n\nFeatureMenuSkeleton.propTypes = {\n children: PropTypes.any,\n isLoading: PropTypes.any,\n};\n\nexport const ManageFeatureSkeleton = ({ children, isLoading }) => {\n const useSkeleton = useSelector(getUseSkeleton);\n if (!useSkeleton) {\n return children;\n }\n if (!isLoading) return children;\n\n return (\n <div className=\"mt-8 ml-4\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[150px] h-[35px]\"></div>\n <div className=\"flex flex-col gap-4 my-3\">\n <div className=\"flex justify-between w-[870px]\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[520px] h-[40px]\"></div>\n </div>\n <div className=\"flex justify-between w-[870px]\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[520px] h-[40px]\"></div>\n </div>\n <div className=\"flex justify-between w-[870px]\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[200px] h-[40px]\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[30px] h-[40px]\"></div>\n </div>\n <div className=\"flex justify-between w-[870px]\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[520px] h-[40px] ml-8\"></div>\n </div>\n </div>\n <div className=\"flex justify-end gap-5 m-7\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[64px] h-[40px]\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[64px] h-[40px]\"></div>\n </div>\n </div>\n );\n};\n\nManageFeatureSkeleton.propTypes = {\n children: PropTypes.any,\n isLoading: PropTypes.any,\n};\n\nexport const SubMenuSkeleton = ({ children, isLoading }) => {\n const useSkeleton = useSelector(getUseSkeleton);\n if (!useSkeleton) {\n return children;\n }\n if (!isLoading) return children;\n\n return (\n <div className=\"w-full p-2\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm h-[40px] w-full mb-2\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm h-[60px] w-full mb-2\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm h-[280px] w-full\"></div>\n </div>\n );\n};\n\nSubMenuSkeleton.propTypes = {\n children: PropTypes.any,\n isLoading: PropTypes.any,\n};\n","import React, {\n lazy,\n Suspense,\n useEffect,\n useMemo,\n useState,\n startTransition,\n useCallback,\n} from \"react\";\nimport { useTranslateProvider } from \"@/common/languageTranslator/TranslationContext\";\nimport { getFeatureName } from \"../../services/Features\";\nimport { showToast } from \"@/common/toaster/toaster\";\nimport useTrackEvent from \"@/hooks/useTrackEvent\";\nconst AccessRights = lazy(() => import(\"./AccessRights\"));\nconst SubMenu = lazy(() => import(\"./SubMenu\"));\nimport { Button, Card, Tab, Tabs, Typography, useTheme } from \"@mui/material\";\nimport Grid from \"@mui/material/Grid2\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { useNavigate } from \"react-router-dom\";\nimport { Box } from \"@mui/system\";\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\nimport { faGear } from \"@fortawesome/free-solid-svg-icons\";\nimport { FeatureMenuSkeleton } from \"./Skeletons/FeatureSkeletons\";\nimport {\n setSubMenuId,\n setSubMenuGroupName,\n setSubMenuFeatureVal,\n} from \"@/store/reducers/FeatureReducer\";\nimport { getUseSkeleton } from \"@/store/reducers/SkeletonReducer\";\n\n/**\n * The `FeatureMenu` component renders a menu or list of features in the application.\n * @module FeatureMenu\n * @returns {JSX.Element} The rendered `FeatureMenu` component.\n */\n\nexport default function FeatureMenu() {\n const useSkeleton = useSelector(getUseSkeleton);\n const theme = useTheme();\n const dispatch = useDispatch();\n const [Data, setData] = useState([]);\n const [selectedId, setSelectedId] = useState(0);\n const subMenuId = useSelector((state) => {\n return state?.FeatureReducer?.subMenuId;\n });\n const subMenuGroupName = useSelector(\n (state) => state?.FeatureReducer?.subMenuGroupName,\n );\n const subMenuFeatureVal = useSelector(\n (state) => state?.FeatureReducer?.subMenuFeatureVal,\n );\n const navigate = useNavigate();\n const { user } = useSelector((state) => state.Authenticate);\n const { translate } = useTranslateProvider();\n const [isLoading, setIsLoading] = useState(false);\n const trackEvent = useTrackEvent();\n const [isNewAPI, setIsNewAPI] = useState({});\n const features = user?.features || {};\n const featureNames = useMemo(\n () => Object.keys(features).filter((key) => key !== \"mch\"),\n [features],\n );\n const panelBorderColor =\n theme.palette.mode === \"dark\" ? theme.palette.divider : theme.palette.grey[200];\n\n // 🧠 handle tab switch\n const handleTabChange = useCallback((e, newValue) => {\n setSelectedId(newValue);\n }, []);\n\n /**\n * Navigates to the '/ui/addfeature' route when called.\n * @function handleClick\n * @returns {void} This function does not return a value.\n */\n\n const handleFeature = useCallback(() => {\n trackEvent(\"button_click\", {\n button_name: \"featuremenu-add-button\",\n button_type: \"navigate\",\n button_id: \"featuremenu-add-button\",\n });\n navigate(\"addDynamicFeature\");\n }, [navigate, trackEvent]);\n\n // 📦 fetch feature data\n /**\n * Effect hook that runs when `selectedId` changes to load and set initial feature data.\n * @effect\n * @returns {void} This effect does not return a value.\n */\n useEffect(() => {\n const loadInitialData = async () => {\n if (!featureNames.length || selectedId >= featureNames.length) return;\n\n try {\n setIsLoading(true);\n const { data } = await getFeatureName(featureNames[selectedId]);\n const filterData = data.sort((a, b) => a.name?.localeCompare(b.name));\n startTransition(() => {\n setData(filterData);\n if (filterData.length > 0) {\n // prohibiting the feature to be selected if it is not available\n // dispatch(setSubMenuId(filterData[0].id));\n // dispatch(setSubMenuFeatureVal(filterData[0].isNewFeature));\n }\n setIsLoading(false);\n });\n } catch (error) {\n showToast({\n message: `Error : ${error?.response?.data?.message}`,\n type: \"error\",\n });\n setIsLoading(false);\n }\n };\n\n loadInitialData();\n }, [selectedId, featureNames]);\n\n // 🧠 Memoized SubMenu\n const SubMenuContent = useMemo(\n () => (\n <Suspense fallback={<FeatureMenuSkeleton />}>\n <SubMenu\n data-testid=\"featuremenu-submenu\"\n data={Data}\n subMenuId={subMenuId}\n setSubMenuId={(id) => {\n dispatch(setSubMenuId(id));\n }}\n setSubMenuGroupName={(name) => {\n dispatch(setSubMenuGroupName(name));\n }}\n setSubMenuFeatureVal={(val) => {\n dispatch(setSubMenuFeatureVal(val));\n }}\n type={featureNames[selectedId]}\n isLoading={isLoading}\n isNewAPI={isNewAPI}\n subMenuGroupName={subMenuGroupName}\n />\n </Suspense>\n ),\n [Data, subMenuId, selectedId, isLoading, featureNames, isNewAPI],\n );\n\n // 🧠 Memoized AccessRights\n const AccessRightsContent = useMemo(\n () => (\n <Suspense\n fallback={\n <div className=\"p-2 text-sm text-gray-500\">\n Loading Access Rights...\n </div>\n }\n >\n <AccessRights\n data-testid=\"featuremenu-access-rights\"\n subMenuId={subMenuId}\n subMenuGroupName={subMenuGroupName}\n subMenuFeatureVal={subMenuFeatureVal}\n selectedTab={featureNames[selectedId]}\n parentLoading={isLoading}\n onNewAPIChange={setIsNewAPI}\n />\n </Suspense>\n ),\n [subMenuId, isLoading],\n );\n\n return (\n <Card variant=\"elevation\" className=\"p-3 mt-6 flex flex-col shadow-2xl\">\n <FeatureMenuSkeleton isLoading={isLoading}>\n <Grid className=\"w-full justify-between flex-wrap flex flex-row\">\n <Grid className=\"flex-wrap flex flex-row\">\n <Tabs\n value={selectedId}\n onChange={handleTabChange}\n variant=\"scrollable\"\n scrollButtons=\"auto\"\n >\n {featureNames.map((feat, index) => (\n <Tab\n key={feat}\n label={feat.toUpperCase()}\n data-testid={`featuremenu-button-${index}`}\n id={`feature-tab-${index}`}\n />\n ))}\n </Tabs>\n </Grid>\n <Grid className=\"flex gap-2 items-center ml-auto\">\n <Button\n size=\"small\"\n className=\"mb-1 ml-0.5\"\n variant=\"contained\"\n onClick={() => navigate(\"/ui/medplat/report/all/groups\")}\n sx={{\n mt: { xs: \"15px\", md: \"0px\" },\n }}\n >\n {translate(\"Manage\")} {translate(\"Menu\")} {translate(\"Group\")}\n </Button>\n <Button\n size=\"small\"\n data-testid=\"featuremenu-add-button\"\n className=\"mb-1 ml-0.5\"\n variant=\"contained\"\n onClick={handleFeature}\n sx={{\n mt: { xs: \"15px\", md: \"0px\" },\n }}\n >\n {translate(\"Add\")} {translate(\"Feature\")}\n </Button>\n </Grid>\n </Grid>\n </FeatureMenuSkeleton>\n\n <Grid container spacing={2} className=\"w-full py-3 rounded-sm\">\n <Grid\n size={{ xs: 12, sm: 12, md: 3 }}\n className=\"flex\"\n sx={{ border: `1px solid ${panelBorderColor}` }}\n >\n {SubMenuContent}\n </Grid>\n\n <Grid\n size={{ xs: 12, sm: 12, md: 9 }}\n className=\"flex flex-col\"\n sx={{ border: `1px solid ${panelBorderColor}` }}\n >\n {isLoading && useSkeleton ? (\n <div className=\"flex flex-col p-2\">\n <div className=\"bg-slate-200 dark:bg-slate-800 animate-pulse rounded-sm h-[30px] w-[180px]\" />\n </div>\n ) : (\n <Box className=\"flex items-center p-2\">\n <FontAwesomeIcon icon={faGear} size=\"lg\" className=\"mr-2\" />\n <Typography variant=\"body2\" className=\"font-bold font-sans pt-1\">\n {translate(\"Access Rights\")}\n </Typography>\n </Box>\n )}\n {subMenuId && AccessRightsContent}\n {!subMenuId && (\n <>\n <Typography\n variant=\"body2\"\n className=\"p-2\"\n data-testid=\"featuremenu-no-feature-selected\"\n sx={{\n textAlign: \"center\",\n position: \"relative\",\n top: \"10%\",\n fontSize: \"25px\",\n color: \"grey\",\n }}\n >\n Please select a feature!\n </Typography>\n </>\n )}\n </Grid>\n </Grid>\n </Card>\n );\n}\n"],"names":["FeatureMenuSkeleton","children","isLoading","useSelector","getUseSkeleton","jsxs","jsx","PropTypes","SubMenuSkeleton","AccessRights","lazy","SubMenu","FeatureMenu","useSkeleton","theme","useTheme","dispatch","useDispatch","Data","setData","useState","selectedId","setSelectedId","subMenuId","state","_a","subMenuGroupName","subMenuFeatureVal","navigate","useNavigate","user","translate","useTranslateProvider","setIsLoading","trackEvent","useTrackEvent","isNewAPI","setIsNewAPI","features","featureNames","useMemo","key","panelBorderColor","handleTabChange","useCallback","e","newValue","handleFeature","useEffect","data","getFeatureName","filterData","a","b","startTransition","error","showToast","_b","SubMenuContent","Suspense","id","setSubMenuId","name","setSubMenuGroupName","val","setSubMenuFeatureVal","AccessRightsContent","Card","Grid","Tabs","feat","index","Tab","Button","Box","FontAwesomeIcon","faGear","Typography","Fragment"],"mappings":";;;;;;;;;;;;;;;;AAKO,MAAMA,IAAsB,CAAC,EAAE,UAAAC,GAAU,WAAAC,QAE1C,CADgBC,EAAYC,CAAc,KAI1C,CAACF,IAAkBD,sBAEpB,OAAA,EAAI,WAAU,sBACb,UAAA,gBAAAI,EAAC,OAAA,EAAI,WAAU,kDACb,UAAA;AAAA,EAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,IAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,mEAAA,CAAmE;AAAA,IAClF,gBAAAA,EAAC,OAAA,EAAI,WAAU,mEAAA,CAAmE;AAAA,IAClF,gBAAAA,EAAC,OAAA,EAAI,WAAU,mEAAA,CAAmE;AAAA,IAClF,gBAAAA,EAAC,OAAA,EAAI,WAAU,mEAAA,CAAmE;AAAA,IAClF,gBAAAA,EAAC,OAAA,EAAI,WAAU,mEAAA,CAAmE;AAAA,EAAA,GACpF;AAAA,EAEA,gBAAAD,EAAC,OAAA,EAAI,WAAU,QACb,UAAA;AAAA,IAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,gEAAA,CAAgE;AAAA,IAC/E,gBAAAA,EAAC,OAAA,EAAI,WAAU,gEAAA,CAAgE;AAAA,IAC/E,gBAAAA,EAAC,OAAA,EAAI,WAAU,gEAAA,CAAgE;AAAA,EAAA,EAAA,CACjF;AAAA,EAAA,CACF,EAAA,CACF;AAIJN,EAAoB,YAAY;AAAA,EAC9B,UAAUO,EAAU;AAAA,EACpB,WAAWA,EAAU;AACvB;AAuCYA,EAAU,KACT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AA,gBACV,eAAY;AAAA,gBACZ,IAAI;AAAA,kBACF,WAAW;AAAA,kBACX,UAAU;AAAA,kBACV,KAAK;AAAA,kBACL,UAAU;AAAA,kBACV,OAAO;AAAA,gBAAA;AAAA,gBAEV,UAAA;AAAA,cAAA;AAAA,YAAA,EAED,CACF;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAEJ,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;;;;;"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { api as t } from "@/common/interceptors/AxiosInterceptor";
|
|
2
|
-
const s = (e) => t.get(`menuconfig/configtypes/${e}`), u = (e) => t.get(`menuconfig/configtypesV2/${e}`), a = (e) => t.get(`/menuconfig/${e}`), m = (e) => t.delete(`/menuconfig/usermenuitem/${e}`), g = (e) => t.post("/menuconfig/updateusermenuitem", { ...e, showLoader: !1 }), c = (e, n) => t.post(`/menuconfig/menuitem?menuConfigId=${e}`, { ...n });
|
|
3
|
-
export {
|
|
4
|
-
u as a,
|
|
5
|
-
s as b,
|
|
6
|
-
m as d,
|
|
7
|
-
a as g,
|
|
8
|
-
c as p,
|
|
9
|
-
g as u
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=Features-CKMmuqcs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Features-CKMmuqcs.js","sources":["../src/services/Features.js"],"sourcesContent":["import { api } from \"@/common/interceptors/AxiosInterceptor\";\n\nexport const getFeatureData = (id) => api.get(`menuconfig/configtypes/${id}`);\n\nexport const getFeatureDataV2 = (id) =>\n api.get(`menuconfig/configtypesV2/${id}`);\n\nexport const postFeature = (params) =>\n api.post(\"/resource/getdata\", { ...params });\n\nexport const getFeatureName = (params) => api.get(`/menuconfig/${params}`);\n\nexport const deleteUserMenuItem = (id) =>\n api.delete(`/menuconfig/usermenuitem/${id}`);\n\nexport const updateUserMenuItem = (params) =>\n api.post(`/menuconfig/updateusermenuitem`, { ...params, showLoader: false });\n\nexport const updateUserMenuItems = (id, params) =>\n api.post(`/menuconfig/updateusermenuitems?menuConfigId=${id}`, params);\n\nexport const postMenuItem = (id, params) =>\n api.post(`/menuconfig/menuitem?menuConfigId=${id}`, { ...params });\n"],"names":["getFeatureData","id","api","getFeatureDataV2","getFeatureName","params","deleteUserMenuItem","updateUserMenuItem","postMenuItem"],"mappings":";AAEY,MAACA,IAAiB,CAACC,MAAOC,EAAI,IAAI,0BAA0BD,CAAE,EAAE,GAE/DE,IAAmB,CAACF,MAC/BC,EAAI,IAAI,4BAA4BD,CAAE,EAAE,GAK7BG,IAAiB,CAACC,MAAWH,EAAI,IAAI,eAAeG,CAAM,EAAE,GAE5DC,IAAqB,CAACL,MACjCC,EAAI,OAAO,4BAA4BD,CAAE,EAAE,GAEhCM,IAAqB,CAACF,MACjCH,EAAI,KAAK,kCAAkC,EAAE,GAAGG,GAAQ,YAAY,GAAK,CAAE,GAKhEG,IAAe,CAACP,GAAII,MAC/BH,EAAI,KAAK,qCAAqCD,CAAE,IAAI,EAAE,GAAGI,EAAM,CAAE;"}
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslateProvider as h } from "@/common/languageTranslator/TranslationContext";
|
|
3
|
-
import { showToast as v } from "@/common/toaster/toaster";
|
|
4
|
-
import U from "@/hooks/useTrackEvent";
|
|
5
|
-
import { generateUUID as k } from "@/utils/UUIDgenerator";
|
|
6
|
-
import { faXmark as T } from "@fortawesome/free-solid-svg-icons";
|
|
7
|
-
import { FontAwesomeIcon as N } from "@fortawesome/react-fontawesome";
|
|
8
|
-
import { Modal as I, Typography as x, IconButton as q, TextField as C, Stack as D, Button as c } from "@mui/material";
|
|
9
|
-
import a from "@mui/material/Grid2";
|
|
10
|
-
import m from "prop-types";
|
|
11
|
-
import { useState as S, useEffect as E } from "react";
|
|
12
|
-
function j({ open: f, handleClose: l, data: t, type: d }) {
|
|
13
|
-
const [n, b] = S({}), p = k(), { translate: i } = h(), g = U();
|
|
14
|
-
E(() => {
|
|
15
|
-
let e = {};
|
|
16
|
-
t != null && t.featureJson && (t == null ? void 0 : t.featureJson) != null ? e.featureJson = t == null ? void 0 : t.featureJson : e.featureJson = null;
|
|
17
|
-
let u = "";
|
|
18
|
-
e.groupName = t == null ? void 0 : t.groupName, e.menuName = t == null ? void 0 : t.name, e.subgroupName = t == null ? void 0 : t.subgroupName, e.navigationState = t == null ? void 0 : t.navigationState, e.menuType = d, e.uuid = p, e.groupName && e.groupName != null ? (u = "select id from menu_group mg where group_name = '" + e.groupName + "'", e.groupUUID = p) : (u = null, e.groupUUID = null);
|
|
19
|
-
let o;
|
|
20
|
-
e.subgroupName && e.subgroupName != null ? (o = "select sub_group_id from menu_config mc where menu_name = '" + e.subgroupName + "'", e.subgroupUUID = p) : (o = null, e.subgroupUUID = null), e.text = "insert into menu_config (feature_json, group_id, active, is_dynamic_report, menu_name, navigation_state, sub_group_id,", e.text += `
|
|
21
|
-
`, e.text += 'menu_type,"uuid", group_name_uuid, sub_group_uuid)', e.text += `
|
|
22
|
-
`, e.text += "values(", e.featureJson != null ? e.text += "'" + e.featureJson + "'" : e.text += "null", e.text += `
|
|
23
|
-
`, e.text += ",", u != null ? e.text += "(" + u + ")" : e.text += "null", e.text += ",", e.text += "true, false,", e.text += "'" + e.menuName + "'", e.text += ",", e.text += `
|
|
24
|
-
`, e.text += "'" + e.navigationState + "'", e.text += ",", o != null ? e.text += "(" + o + ")" : e.text += "null", e.text += ",", e.text += "'" + e.menuType + "'", e.text += ",", e.text += "'" + e.uuid + "'", e.text += ",", e.groupUUID != null ? e.text += "'" + e.groupUUID + "'" : e.text += "null", e.text += ",", e.subgroupUUID != null ? e.text += "'" + e.subgroupUUID + "'" : e.text += "null", e.text += ")", e.text += `
|
|
25
|
-
`, e.text += "on conflict(navigation_state,active) do update", e.text += `
|
|
26
|
-
`, e.text += "SET feature_json = excluded.feature_json,", e.text += `
|
|
27
|
-
`, e.text += " group_id= excluded.group_id,", e.text += `
|
|
28
|
-
`, e.text += " menu_name = excluded.menu_name,", e.text += `
|
|
29
|
-
`, e.text += " sub_group_id= excluded.sub_group_id,", e.text += `
|
|
30
|
-
`, e.text += " menu_type= excluded.menu_type;", b((w) => ({ ...w, queryText: e.text }));
|
|
31
|
-
}, []);
|
|
32
|
-
const y = () => {
|
|
33
|
-
const e = new Blob([n == null ? void 0 : n.queryText], { type: "text/plain" }), u = (e.size / 1024).toFixed(2), o = document.createElement("a");
|
|
34
|
-
o.href = URL.createObjectURL(e), o.download = "V" + (/* @__PURE__ */ new Date()).getTime() + "__CREATED_OR_UPDATED_feature_" + d + ".sql", document.body.appendChild(o), o.click(), document.body.removeChild(o), g("file_download", {
|
|
35
|
-
file_type: "sql",
|
|
36
|
-
file_name: o.download,
|
|
37
|
-
file_size: `${u} KB`,
|
|
38
|
-
download_status: "success"
|
|
39
|
-
}), l();
|
|
40
|
-
}, _ = () => {
|
|
41
|
-
navigator.clipboard.writeText(n == null ? void 0 : n.queryText).then(
|
|
42
|
-
() => {
|
|
43
|
-
v({
|
|
44
|
-
message: "Query copied",
|
|
45
|
-
type: "success"
|
|
46
|
-
});
|
|
47
|
-
},
|
|
48
|
-
(e) => {
|
|
49
|
-
console.error("Could not copy text: ", e);
|
|
50
|
-
}
|
|
51
|
-
), l();
|
|
52
|
-
};
|
|
53
|
-
return /* @__PURE__ */ r(
|
|
54
|
-
I,
|
|
55
|
-
{
|
|
56
|
-
"data-testid": "flywayquery-modal",
|
|
57
|
-
open: f,
|
|
58
|
-
onClose: l,
|
|
59
|
-
sx: {
|
|
60
|
-
"& .MuiBackdrop-root": {
|
|
61
|
-
backgroundColor: "rgba(0, 0, 0, 0.1)"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
children: /* @__PURE__ */ s(
|
|
65
|
-
a,
|
|
66
|
-
{
|
|
67
|
-
container: !0,
|
|
68
|
-
className: "flex flex-col absolute top-[5%] left-1/2 transform -translate-x-1/2 w-[99%] max-w-full sm:max-w-[600px] md:max-w-[750px] lg:max-w-[900px] bg-[var(--color-background2)] shadow-md border border-slate-300 dark:border-slate-700 overflow-y-auto max-h-[90vh]",
|
|
69
|
-
children: [
|
|
70
|
-
/* @__PURE__ */ s(a, { className: "flex justify-between items-center p-[5px_10px] bg-slate-200 dark:bg-slate-800 border-b border-slate-300 dark:border-slate-700", children: [
|
|
71
|
-
/* @__PURE__ */ r(x, { variant: "body1", className: "font-bold text-customBlue", children: i("FLYWAY QUERY") }),
|
|
72
|
-
/* @__PURE__ */ r(
|
|
73
|
-
q,
|
|
74
|
-
{
|
|
75
|
-
size: "small",
|
|
76
|
-
onClick: l,
|
|
77
|
-
"data-testid": "flywayquery-close-button",
|
|
78
|
-
children: /* @__PURE__ */ r(N, { icon: T })
|
|
79
|
-
}
|
|
80
|
-
)
|
|
81
|
-
] }),
|
|
82
|
-
/* @__PURE__ */ r(a, { className: "border-b border-slate-200 dark:border-slate-800 p-2.5 ", children: /* @__PURE__ */ r(
|
|
83
|
-
C,
|
|
84
|
-
{
|
|
85
|
-
multiline: !0,
|
|
86
|
-
rows: 10,
|
|
87
|
-
variant: "outlined",
|
|
88
|
-
fullWidth: !0,
|
|
89
|
-
value: n == null ? void 0 : n.queryText,
|
|
90
|
-
sx: {
|
|
91
|
-
"& .MuiInputBase-input": {
|
|
92
|
-
fontSize: "14px"
|
|
93
|
-
},
|
|
94
|
-
"& .MuiOutlinedInput-root": {
|
|
95
|
-
borderRadius: "5px"
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
slotProps: {
|
|
99
|
-
input: {
|
|
100
|
-
readOnly: !0
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
"data-testid": "flywayquery-textfield-query-display"
|
|
104
|
-
}
|
|
105
|
-
) }),
|
|
106
|
-
/* @__PURE__ */ r(a, { className: "border-b border-slate-200 dark:border-slate-800 pb-[1px] pr-2.5 ", children: /* @__PURE__ */ s(
|
|
107
|
-
D,
|
|
108
|
-
{
|
|
109
|
-
direction: "row",
|
|
110
|
-
spacing: 2,
|
|
111
|
-
justifyContent: "flex-end",
|
|
112
|
-
mt: 1,
|
|
113
|
-
mb: 1,
|
|
114
|
-
children: [
|
|
115
|
-
/* @__PURE__ */ r(
|
|
116
|
-
c,
|
|
117
|
-
{
|
|
118
|
-
"data-testid": "flywayquery-download-button",
|
|
119
|
-
variant: "contained",
|
|
120
|
-
color: "primary",
|
|
121
|
-
size: "small",
|
|
122
|
-
onClick: y,
|
|
123
|
-
children: i("Download")
|
|
124
|
-
}
|
|
125
|
-
),
|
|
126
|
-
/* @__PURE__ */ r(
|
|
127
|
-
c,
|
|
128
|
-
{
|
|
129
|
-
"data-testid": "flywayquery-copy-button",
|
|
130
|
-
variant: "contained",
|
|
131
|
-
size: "small",
|
|
132
|
-
color: "primary",
|
|
133
|
-
onClick: _,
|
|
134
|
-
children: i("Copy")
|
|
135
|
-
}
|
|
136
|
-
),
|
|
137
|
-
/* @__PURE__ */ r(
|
|
138
|
-
c,
|
|
139
|
-
{
|
|
140
|
-
"data-testid": "flywayquery-close-button-action",
|
|
141
|
-
variant: "contained",
|
|
142
|
-
size: "small",
|
|
143
|
-
color: "secondary",
|
|
144
|
-
onClick: l,
|
|
145
|
-
children: /* @__PURE__ */ s(x, { variant: "body2", children: [
|
|
146
|
-
i("Close"),
|
|
147
|
-
" "
|
|
148
|
-
] })
|
|
149
|
-
}
|
|
150
|
-
)
|
|
151
|
-
]
|
|
152
|
-
}
|
|
153
|
-
) })
|
|
154
|
-
]
|
|
155
|
-
}
|
|
156
|
-
)
|
|
157
|
-
}
|
|
158
|
-
);
|
|
159
|
-
}
|
|
160
|
-
j.propTypes = {
|
|
161
|
-
open: m.any,
|
|
162
|
-
handleClose: m.any,
|
|
163
|
-
data: m.any,
|
|
164
|
-
type: m.any
|
|
165
|
-
};
|
|
166
|
-
export {
|
|
167
|
-
j as default
|
|
168
|
-
};
|
|
169
|
-
//# sourceMappingURL=FlywayQuery-Cx2sly6g.js.map
|