@argusoft/medplat-form-engine 1.0.12 → 1.0.14
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.css +1 -1
- package/dist/index.js +52390 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
- package/dist/AccessRights-sgIhYR30-Dg6B4KJM.js +0 -1238
- package/dist/AccessRights-sgIhYR30-Dg6B4KJM.js.map +0 -1
- package/dist/AddEditQueryBuilder-BaZxS2Cm-emLM3Oli.js +0 -289
- package/dist/AddEditQueryBuilder-BaZxS2Cm-emLM3Oli.js.map +0 -1
- package/dist/AddEditQueryBuilder-BaZxS2Cm.css +0 -1
- package/dist/AddFeatures-DLbjDGei-Dg8WYww8.js +0 -212
- package/dist/AddFeatures-DLbjDGei-Dg8WYww8.js.map +0 -1
- package/dist/AddLabelModal-DE3ploGD-BV_K8Q7c.js +0 -734
- package/dist/AddLabelModal-DE3ploGD-BV_K8Q7c.js.map +0 -1
- package/dist/AddMenuConfiguration-QWfpcnuP-TAM2c68S.js +0 -5389
- package/dist/AddMenuConfiguration-QWfpcnuP-TAM2c68S.js.map +0 -1
- package/dist/AddMenuConfiguration-QWfpcnuP.css +0 -1
- package/dist/AddRoleDrawer-ZK1eejxI-xMb2iVGk.js +0 -453
- package/dist/AddRoleDrawer-ZK1eejxI-xMb2iVGk.js.map +0 -1
- package/dist/AppModal-BgZyfrd--CZPgx1UG.js +0 -428
- package/dist/AppModal-BgZyfrd--CZPgx1UG.js.map +0 -1
- package/dist/ChangePasswordModal-MV7g8tkA-D6c6QM4F.js +0 -176
- package/dist/ChangePasswordModal-MV7g8tkA-D6c6QM4F.js.map +0 -1
- package/dist/ConditionConfig-GDCXIg3C-COtWwHe3.js +0 -395
- package/dist/ConditionConfig-GDCXIg3C-COtWwHe3.js.map +0 -1
- package/dist/ConditionConfig-GDCXIg3C.css +0 -1
- package/dist/EntityManagement-D-x6Qzal-BE01iKNR.js +0 -50
- package/dist/EntityManagement-D-x6Qzal-BE01iKNR.js.map +0 -1
- package/dist/EventConfigurations-jGCJ4LqP-B_ftXinp.js +0 -384
- package/dist/EventConfigurations-jGCJ4LqP-B_ftXinp.js.map +0 -1
- package/dist/EventConfigurations-jGCJ4LqP.css +0 -1
- package/dist/EventsExceptionModal-BF6E1Np7-DHT7pQsx.js +0 -200
- package/dist/EventsExceptionModal-BF6E1Np7-DHT7pQsx.js.map +0 -1
- package/dist/EventsSkeleton-BN7_0IGs-BAnd1Vug.js +0 -74
- package/dist/EventsSkeleton-BN7_0IGs-BAnd1Vug.js.map +0 -1
- package/dist/FeatureMenu-BYSRoNm0-9p5IIVx2.js +0 -249
- package/dist/FeatureMenu-BYSRoNm0-9p5IIVx2.js.map +0 -1
- package/dist/Features-CKMmuqcs-ClXAzWGV.js +0 -11
- package/dist/Features-CKMmuqcs-ClXAzWGV.js.map +0 -1
- package/dist/FlywayQuery-Cx2sly6g-B1LLSyLE.js +0 -169
- package/dist/FlywayQuery-Cx2sly6g-B1LLSyLE.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-DZ8EqXlF-D645-PAk.js +0 -5162
- package/dist/ImmunizationConfigurationBase-DZ8EqXlF-D645-PAk.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-DZ8EqXlF.css +0 -1
- package/dist/ImmunizationConfigurationsList-CQnxWa09-DIujYt0W.js +0 -335
- package/dist/ImmunizationConfigurationsList-CQnxWa09-DIujYt0W.js.map +0 -1
- package/dist/ImmunizationSkeleton-D2tdv5k--B7SY-gnr.js +0 -186
- package/dist/ImmunizationSkeleton-D2tdv5k--B7SY-gnr.js.map +0 -1
- package/dist/LanguagesModal-rk6IGQwY-BaAI1s2W.js +0 -394
- package/dist/LanguagesModal-rk6IGQwY-BaAI1s2W.js.map +0 -1
- package/dist/ManageDynamicFeature-BKkCnQvF-CinU35NS.js +0 -4189
- package/dist/ManageDynamicFeature-BKkCnQvF-CinU35NS.js.map +0 -1
- package/dist/ManageEventConfiguration-BJxS2Su0-DBdaQcPo.js +0 -1017
- package/dist/ManageEventConfiguration-BJxS2Su0-DBdaQcPo.js.map +0 -1
- package/dist/ManageEventConfiguration-BJxS2Su0.css +0 -1
- package/dist/ManageNotification-B4prX-9Z-B4mRuGir.js +0 -6819
- package/dist/ManageNotification-B4prX-9Z-B4mRuGir.js.map +0 -1
- package/dist/ManageRole-BjIIXAlK-DY39p0FD.js +0 -728
- package/dist/ManageRole-BjIIXAlK-DY39p0FD.js.map +0 -1
- package/dist/ManageTranslation-BTxvSYKb-C2CZwkRN.js +0 -616
- package/dist/ManageTranslation-BTxvSYKb-C2CZwkRN.js.map +0 -1
- package/dist/ManageTranslation-BTxvSYKb.css +0 -1
- package/dist/ManageUser-PHiTNyF8-Bm4bYqvt.js +0 -2160
- package/dist/ManageUser-PHiTNyF8-Bm4bYqvt.js.map +0 -1
- package/dist/ManageUser-PHiTNyF8.css +0 -1
- package/dist/MedplatFormWrapper-CEXGoLC1.js +0 -44520
- package/dist/MedplatFormWrapper-CEXGoLC1.js.map +0 -1
- package/dist/MedplatFormWrapper.css +0 -1
- package/dist/MobileMenuManagement-DmQU5TTo-D7n_NP0X.js +0 -108
- package/dist/MobileMenuManagement-DmQU5TTo-D7n_NP0X.js.map +0 -1
- package/dist/MobileTypeEventConfigModal-ChhO_A4f-Dpq9010c.js +0 -783
- package/dist/MobileTypeEventConfigModal-ChhO_A4f-Dpq9010c.js.map +0 -1
- package/dist/NewServerManagement-5YcAtF-g-DHV6PFTR.js +0 -1002
- package/dist/NewServerManagement-5YcAtF-g-DHV6PFTR.js.map +0 -1
- package/dist/NotificationFlywayQuery-BY8Zzml_-C7G-28dx.js +0 -244
- package/dist/NotificationFlywayQuery-BY8Zzml_-C7G-28dx.js.map +0 -1
- package/dist/NotificationList-BkpOrCpM-B-vKDGd_.js +0 -400
- package/dist/NotificationList-BkpOrCpM-B-vKDGd_.js.map +0 -1
- package/dist/OtherTypeEventConfigModal-ZnCGWm9v-CsQiv68d.js +0 -1953
- package/dist/OtherTypeEventConfigModal-ZnCGWm9v-CsQiv68d.js.map +0 -1
- package/dist/QueryBuilder-Cus_mRwZ-DLXSM32i.js +0 -378
- package/dist/QueryBuilder-Cus_mRwZ-DLXSM32i.js.map +0 -1
- package/dist/QueryBuilder-Cus_mRwZ.css +0 -1
- package/dist/QueryManagement-DXA73N2j-BMDEgiCy.js +0 -671
- package/dist/QueryManagement-DXA73N2j-BMDEgiCy.js.map +0 -1
- package/dist/QueryManagement-DXA73N2j.css +0 -1
- package/dist/RoleManagement-v5Nyp1vr-BsTLfcMm.js +0 -416
- package/dist/RoleManagement-v5Nyp1vr-BsTLfcMm.js.map +0 -1
- package/dist/ServerSyncModal-uNjGCQJz--PJ3F3xg.js +0 -869
- package/dist/ServerSyncModal-uNjGCQJz--PJ3F3xg.js.map +0 -1
- package/dist/ShowFlywayQuery-DMsAbtOW-TT9XXzUi.js +0 -130
- package/dist/ShowFlywayQuery-DMsAbtOW-TT9XXzUi.js.map +0 -1
- package/dist/ShowFlywayQuery-DVRCd384-BypXcNWX.js +0 -259
- package/dist/ShowFlywayQuery-DVRCd384-BypXcNWX.js.map +0 -1
- package/dist/ShowQueryHistory-BDN0tzHg-17BxK88Z.js +0 -190
- package/dist/ShowQueryHistory-BDN0tzHg-17BxK88Z.js.map +0 -1
- package/dist/SubMenu-BHcSNSUF-eLmX3DkH.js +0 -187
- package/dist/SubMenu-BHcSNSUF-eLmX3DkH.js.map +0 -1
- package/dist/TableDetails-DzREeJkm-B-WEBbQz.js +0 -1508
- package/dist/TableDetails-DzREeJkm-B-WEBbQz.js.map +0 -1
- package/dist/TableList-B9hr05Hs-BIsMbnIV.js +0 -428
- package/dist/TableList-B9hr05Hs-BIsMbnIV.js.map +0 -1
- package/dist/TypeConfiguration-C-lk8Szs-qaofDyyM.js +0 -117
- package/dist/TypeConfiguration-C-lk8Szs-qaofDyyM.js.map +0 -1
- package/dist/UserList-BxB1tCwM-7YIwwGQ9.js +0 -13039
- package/dist/UserList-BxB1tCwM-7YIwwGQ9.js.map +0 -1
- package/dist/UserList-BxB1tCwM.css +0 -1
- package/dist/UserListSkeleton-cglK2SaU-B_Tj5gUp.js +0 -184
- package/dist/UserListSkeleton-cglK2SaU-B_Tj5gUp.js.map +0 -1
- package/dist/WidgetList-BSApErov-D05f9srr.js +0 -188
- package/dist/WidgetList-BSApErov-D05f9srr.js.map +0 -1
- package/dist/_commonjsHelpers-BItOPCY9-B9tZyK9c.js +0 -29
- package/dist/_commonjsHelpers-BItOPCY9-B9tZyK9c.js.map +0 -1
- package/dist/i18next-CTOWN_jH-BKKbdDel.js +0 -1389
- package/dist/i18next-CTOWN_jH-BKKbdDel.js.map +0 -1
- package/dist/index-B4r0wjBD.js +0 -563
- package/dist/index-B4r0wjBD.js.map +0 -1
- package/dist/index-CnfGzeaj.js +0 -542
- package/dist/index-CnfGzeaj.js.map +0 -1
- package/dist/manageImmunization-B4swS745-JldexHrO.js +0 -1204
- package/dist/manageImmunization-B4swS745-JldexHrO.js.map +0 -1
- package/dist/manageImmunization-B4swS745.css +0 -1
|
@@ -1,1508 +0,0 @@
|
|
|
1
|
-
import { jsxs as s, jsx as a, Fragment as W } from "react/jsx-runtime";
|
|
2
|
-
import { execute as oe } from "@/common/services/QueryBuilder";
|
|
3
|
-
import { showToast as R } from "@/common/toaster/toaster";
|
|
4
|
-
import { useDebounceFn as ia } from "@/hooks/useDebounceFn";
|
|
5
|
-
import sa from "@/views/custom-components/CustomConfirmationModal";
|
|
6
|
-
import da from "@/views/custom-components/CustomTextField";
|
|
7
|
-
import x from "@/common/fontAwesomeIcons/FontAwesomeIcons";
|
|
8
|
-
import { F as ie } from "./index-B4r0wjBD.js";
|
|
9
|
-
import { Paper as he, Typography as c, Tooltip as E, Button as P, FormControl as Y, RadioGroup as pe, FormControlLabel as L, Radio as B, Autocomplete as se, TextField as V, IconButton as O, InputAdornment as ye, Popover as ua, Checkbox as ca, TableContainer as ma, Table as ha, TableHead as pa, TableRow as J, TableCell as X, TableBody as _e, Modal as ya, Switch as fa } from "@mui/material";
|
|
10
|
-
import p from "@mui/material/Grid2";
|
|
11
|
-
import { Box as f } from "@mui/system";
|
|
12
|
-
import N from "prop-types";
|
|
13
|
-
import { useState as C, useEffect as fe } from "react";
|
|
14
|
-
import { useForm as ga, useWatch as ba, Controller as T } from "react-hook-form";
|
|
15
|
-
import { useSelector as xa } from "react-redux";
|
|
16
|
-
function va({
|
|
17
|
-
tableInfo: d,
|
|
18
|
-
table: w,
|
|
19
|
-
isEditMode: m,
|
|
20
|
-
updateEditMode: ge,
|
|
21
|
-
tableCompleteInfo: S,
|
|
22
|
-
reloadComponents: je,
|
|
23
|
-
isCreateTableMode: i,
|
|
24
|
-
isSyncTableMode: $,
|
|
25
|
-
updateCreateTableMode: be,
|
|
26
|
-
openDeleteModal: He,
|
|
27
|
-
setOpenDeleteModal: xe
|
|
28
|
-
}) {
|
|
29
|
-
var ve, Ce, we, Te, Ne, Se, ke, Ve, De;
|
|
30
|
-
const Ie = ["Document Master", "Form Configurator", "Form Media Record", "LMS"], Pe = (e) => (e == null ? void 0 : e.toUpperCase().replace(/ /g, "_")) || "", Ke = (e) => Ie.find((r) => Pe(r) === e) || "", Ue = (e) => {
|
|
31
|
-
var r;
|
|
32
|
-
return e != null && e.downloadType ? Ke(e.downloadType) || e.downloadType : (r = e == null ? void 0 : e.data) != null && r.downloadType ? Ke(e.data.downloadType) || e.data.downloadType : "";
|
|
33
|
-
}, Ge = (e) => {
|
|
34
|
-
var r;
|
|
35
|
-
const t = e == null ? void 0 : e.downloadUrl;
|
|
36
|
-
if (typeof t == "object" && t !== null) return t.apiEndpoint || "";
|
|
37
|
-
const l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.downloadUrl;
|
|
38
|
-
return typeof l == "object" && l !== null && l.apiEndpoint || "";
|
|
39
|
-
}, de = (e) => {
|
|
40
|
-
var r;
|
|
41
|
-
const t = e == null ? void 0 : e.downloadUrl;
|
|
42
|
-
if (typeof t == "object" && t !== null) return t.requestParameters || [];
|
|
43
|
-
const l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.downloadUrl;
|
|
44
|
-
return typeof l == "object" && l !== null ? l.requestParameters || [] : [];
|
|
45
|
-
}, [ze, Me] = C([]), [Re, Z] = C(!1), [Q, ee] = C(""), [Ye, Je] = C({}), [ae, F] = C(""), [v, D] = C([]), [_, q] = C([]), [g, re] = C(0), [j, ue] = C(0), [Ee, le] = C(null), [H, ne] = C(null), [te, Xe] = C({}), [K, z] = C(
|
|
46
|
-
i ? [] : de(d == null ? void 0 : d.mediaConfiguration)
|
|
47
|
-
), Le = !!Ee, Ze = Le ? "simple-popover" : void 0, Oe = ["TEXT", "INTEGER"], qe = xa((e) => e.Authenticate.user.id), I = {
|
|
48
|
-
selectedColumns: i ? [] : [...d.columnInfo],
|
|
49
|
-
modifiedOnQuery: i ? "" : d.modifiedOnQuery,
|
|
50
|
-
dataFetchQuery: i ? "" : d.selectQuery,
|
|
51
|
-
tableName: "",
|
|
52
|
-
createTableQuery: "",
|
|
53
|
-
syncByDefault: i ? null : (ve = d == null ? void 0 : d.syncByDefault) == null ? void 0 : ve.toString(),
|
|
54
|
-
primaryKey: i ? null : d.primaryKey ? d.primaryKey : null,
|
|
55
|
-
userData: i ? null : ((Ce = d == null ? void 0 : d.userData) == null ? void 0 : Ce.toString()) || null,
|
|
56
|
-
hasMedia: i ? null : ((we = d == null ? void 0 : d.hasMedia) == null ? void 0 : we.toString()) || null,
|
|
57
|
-
downloadType: i ? "" : Ue(d.mediaConfiguration),
|
|
58
|
-
apiEndpoint: i ? "" : Ge(d.mediaConfiguration),
|
|
59
|
-
requestParameters: i ? [] : de(d.mediaConfiguration),
|
|
60
|
-
directoryPath: i ? "" : ((Ne = (Te = d.mediaConfiguration) == null ? void 0 : Te.directoryPath) == null ? void 0 : Ne.split("/")[1]) || ((Ve = (ke = (Se = d.mediaConfiguration) == null ? void 0 : Se.data) == null ? void 0 : ke.directoryPath) == null ? void 0 : Ve.split("/")[1]) || ""
|
|
61
|
-
}, n = ga({
|
|
62
|
-
defaultValues: {
|
|
63
|
-
...I
|
|
64
|
-
},
|
|
65
|
-
mode: "onChange"
|
|
66
|
-
}), ea = !n.formState.isValid, A = n.watch("hasMedia"), Ae = n.watch("newColumnName"), We = n.watch("newColumnType");
|
|
67
|
-
n.register("requestParameters", {
|
|
68
|
-
validate: (e) => A !== "true" ? !0 : !e || e.length === 0 ? "At least one request parameter is required." : e.some((r) => {
|
|
69
|
-
var t, l;
|
|
70
|
-
return !((t = r.key) != null && t.trim()) || !((l = r.value) != null && l.trim());
|
|
71
|
-
}) ? "Each parameter must have both a key and a value filled." : !0
|
|
72
|
-
});
|
|
73
|
-
const aa = async (e) => {
|
|
74
|
-
var r;
|
|
75
|
-
const t = i ? n.getValues("createTableQuery") : await $e(
|
|
76
|
-
[...d.columnInfo],
|
|
77
|
-
e.selectedColumns,
|
|
78
|
-
d.primaryKey,
|
|
79
|
-
(r = e.primaryKey) == null ? void 0 : r.toString()
|
|
80
|
-
);
|
|
81
|
-
t ? (Je(() => e), ee(() => t), Qe(), Z(!0)) : Be(e, !1);
|
|
82
|
-
}, Be = async (e, r) => {
|
|
83
|
-
var t;
|
|
84
|
-
const l = {};
|
|
85
|
-
let o, u = e || Ye;
|
|
86
|
-
if (r || ee(""), Object.keys(u).length > 0) {
|
|
87
|
-
u.selectedColumns.forEach((y) => {
|
|
88
|
-
l[y.name] = y.type;
|
|
89
|
-
}), u.columns = JSON.stringify(l), u.primaryKey = (t = u.primaryKey) == null ? void 0 : t.toString();
|
|
90
|
-
let h = {
|
|
91
|
-
downloadType: Pe(u.downloadType),
|
|
92
|
-
downloadUrl: {
|
|
93
|
-
apiEndpoint: u.apiEndpoint || "",
|
|
94
|
-
requestParameters: K || []
|
|
95
|
-
},
|
|
96
|
-
directoryPath: "#directoryPath#/" + u.directoryPath + "/"
|
|
97
|
-
};
|
|
98
|
-
h = JSON.stringify(h), o = (await oe({
|
|
99
|
-
code: "update_mobile_entity",
|
|
100
|
-
parameters: {
|
|
101
|
-
tableName: i ? n.getValues("tableName") : w,
|
|
102
|
-
syncByDefault: u.syncByDefault === "true",
|
|
103
|
-
columnInfo: u.columns,
|
|
104
|
-
primaryKey: u.primaryKey,
|
|
105
|
-
modifiedOnQuery: u.modifiedOnQuery,
|
|
106
|
-
selectQuery: u.dataFetchQuery,
|
|
107
|
-
userData: u.userData === "true",
|
|
108
|
-
hasMedia: u.hasMedia === "true",
|
|
109
|
-
mediaConfiguration: u.hasMedia === "true" ? h : null,
|
|
110
|
-
modifiedBy: qe,
|
|
111
|
-
migrationScript: Q,
|
|
112
|
-
isUpdate: !0,
|
|
113
|
-
generateMigration: Q !== ""
|
|
114
|
-
}
|
|
115
|
-
}).catch((y) => {
|
|
116
|
-
R({ message: `Submission failure ${y}`, type: "error" });
|
|
117
|
-
})).data;
|
|
118
|
-
} else
|
|
119
|
-
o = (await oe({
|
|
120
|
-
code: "update_mobile_entity",
|
|
121
|
-
parameters: {
|
|
122
|
-
tableName: i ? n.getValues("tableName") : w,
|
|
123
|
-
syncByDefault: !1,
|
|
124
|
-
columnInfo: "",
|
|
125
|
-
primaryKey: "",
|
|
126
|
-
modifiedOnQuery: "",
|
|
127
|
-
selectQuery: "",
|
|
128
|
-
userData: null,
|
|
129
|
-
hasMedia: null,
|
|
130
|
-
mediaConfiguration: "",
|
|
131
|
-
modifiedBy: qe,
|
|
132
|
-
migrationScript: Q,
|
|
133
|
-
isUpdate: !1,
|
|
134
|
-
generateMigration: !0
|
|
135
|
-
}
|
|
136
|
-
}).catch((h) => {
|
|
137
|
-
R({ message: `Submission failure ${h}`, type: "error" });
|
|
138
|
-
})).data;
|
|
139
|
-
o != null && o.result && (ge(!1), be(!1), je((h) => !h), R({ message: "Table configuration saved successfully!", type: "success" })), Z(!1);
|
|
140
|
-
}, ra = () => {
|
|
141
|
-
Z(!1);
|
|
142
|
-
}, $e = async (e, r, t, l) => {
|
|
143
|
-
let o = "";
|
|
144
|
-
if (e.length > 0) {
|
|
145
|
-
let u = e.map((b) => b.name), h = r.map((b) => b.name), y = e.filter((b) => !h.includes(b.name)), M = r.filter((b) => !u.includes(b.name)), U = y.map((b) => `ALTER TABLE ${w} DROP COLUMN ${b.name};`).join(`
|
|
146
|
-
`), k = M.map((b) => `ALTER TABLE ${w} ADD COLUMN ${b.name} ${b.type};`).join(`
|
|
147
|
-
`);
|
|
148
|
-
return o += y.length > 0 ? `${U}
|
|
149
|
-
` : "", o += M.length > 0 ? `${k}` : "", o;
|
|
150
|
-
} else {
|
|
151
|
-
const u = i ? n.getValues("tableName") : w;
|
|
152
|
-
return o = `CREATE TABLE ${u} (
|
|
153
|
-
`, o += r.map((h) => `${h.name} ${h.type}`).join(`,
|
|
154
|
-
`), l && (o += `,
|
|
155
|
-
CONSTRAINT ${u}_pkey PRIMARY KEY (${l})`), o += ");", o;
|
|
156
|
-
}
|
|
157
|
-
}, Qe = async () => {
|
|
158
|
-
var e;
|
|
159
|
-
const r = (e = await oe({
|
|
160
|
-
code: "MFA_MIGRATION_MASTER_GET_LATEST_VERSIONS"
|
|
161
|
-
}).catch((t) => {
|
|
162
|
-
R({ message: `Failed to fetch migration versions ${t}`, type: "error" });
|
|
163
|
-
})) == null ? void 0 : e.data;
|
|
164
|
-
Xe(r == null ? void 0 : r.result[0]);
|
|
165
|
-
};
|
|
166
|
-
fe(() => {
|
|
167
|
-
if (F(""), ue(0), re(0), i && (Me([]), D([]), q([]), z([]), n.reset({
|
|
168
|
-
...I
|
|
169
|
-
}), setTimeout(() => n.trigger(), 0)), w && d && !i) {
|
|
170
|
-
Me(S !== void 0 ? () => S.columnInfo : () => d.columnInfo);
|
|
171
|
-
let e = S !== void 0 ? S.columnInfo.map((l) => l.name) : d.columnInfo.map((l) => l.name), r = {};
|
|
172
|
-
S !== void 0 ? S.columnInfo.forEach((l) => {
|
|
173
|
-
r[l.name] = l.type;
|
|
174
|
-
}) : d.columnInfo.forEach((l) => {
|
|
175
|
-
r[l.name] = l.type;
|
|
176
|
-
});
|
|
177
|
-
let t = {};
|
|
178
|
-
d.columnInfo.forEach((l) => {
|
|
179
|
-
t[l.name] = l.type;
|
|
180
|
-
}), d.columnInfo.map((l) => {
|
|
181
|
-
e.includes(l.name) || (l.onlyMobileDb = !0), t[l.name] !== r[l.name] && (l.isTypeChanged = !0), l.name === d.primaryKey && (l.isPrimaryKey = !0);
|
|
182
|
-
}), n.reset({
|
|
183
|
-
...I
|
|
184
|
-
}), setTimeout(() => n.trigger(), 0), z(de(d == null ? void 0 : d.mediaConfiguration)), D(
|
|
185
|
-
() => d.columnInfo.sort((l, o) => l.name === d.primaryKey ? (l.isPrimaryKey = !0, -1) : o.name === d.primaryKey ? (o.isPrimaryKey = !0, 1) : l.name.localeCompare(o.name))
|
|
186
|
-
), q(S !== void 0 ? () => {
|
|
187
|
-
const l = new Set(d.columnInfo.map((o) => o.name));
|
|
188
|
-
return S.columnInfo.map((o) => ({
|
|
189
|
-
...o,
|
|
190
|
-
isSynced: l.has(o.name)
|
|
191
|
-
})).sort((o, u) => o.name === d.primaryKey ? -1 : u.name === d.primaryKey ? 1 : o.name.localeCompare(u.name));
|
|
192
|
-
} : []);
|
|
193
|
-
}
|
|
194
|
-
}, [d, S, w, i]), fe(() => {
|
|
195
|
-
const e = ae.toLowerCase();
|
|
196
|
-
if (g === 0) {
|
|
197
|
-
const r = n.getValues("selectedColumns"), t = e ? r.filter((l) => l.name.toLowerCase().includes(e)) : r;
|
|
198
|
-
D(t);
|
|
199
|
-
} else {
|
|
200
|
-
const r = new Set(n.getValues("selectedColumns").map((l) => l.name)), t = e ? ze.filter((l) => l.name.toLowerCase().includes(e)).map((l) => ({
|
|
201
|
-
...l,
|
|
202
|
-
isSynced: r.has(l.name)
|
|
203
|
-
})) : ze.map((l) => ({
|
|
204
|
-
...l,
|
|
205
|
-
isSynced: r.has(l.name)
|
|
206
|
-
}));
|
|
207
|
-
q(t);
|
|
208
|
-
}
|
|
209
|
-
}, [ae, g]);
|
|
210
|
-
const Fe = ba({
|
|
211
|
-
control: n.control,
|
|
212
|
-
name: "tableName"
|
|
213
|
-
});
|
|
214
|
-
fe(() => {
|
|
215
|
-
i && n.getValues("selectedColumns").length > 0 && Fe && me(n.getValues("selectedColumns"));
|
|
216
|
-
}, [Fe]);
|
|
217
|
-
const la = (e) => {
|
|
218
|
-
ee(e);
|
|
219
|
-
}, na = () => {
|
|
220
|
-
m && ge(!m), i && be(!i), n.reset({
|
|
221
|
-
...I,
|
|
222
|
-
newColumnName: null,
|
|
223
|
-
newColumnType: null
|
|
224
|
-
}), z(I.requestParameters || []), D(I.selectedColumns || []);
|
|
225
|
-
const e = new Set((I.selectedColumns || []).map((r) => r.name));
|
|
226
|
-
q(
|
|
227
|
-
(I.allColumns || []).map((r) => ({
|
|
228
|
-
...r,
|
|
229
|
-
isSynced: e.has(r.name)
|
|
230
|
-
}))
|
|
231
|
-
);
|
|
232
|
-
}, ta = async () => {
|
|
233
|
-
var e, r, t;
|
|
234
|
-
xe(() => !1);
|
|
235
|
-
const l = await oe({
|
|
236
|
-
code: "DELETE_MOBILE_ENTITY",
|
|
237
|
-
parameters: {
|
|
238
|
-
tableName: w
|
|
239
|
-
}
|
|
240
|
-
}).catch((u) => {
|
|
241
|
-
R({ message: `Metadata deletion failure ${u}`, type: "error" });
|
|
242
|
-
});
|
|
243
|
-
(t = (r = (e = l == null ? void 0 : l.data) == null ? void 0 : e.result) == null ? void 0 : r[0]) != null && t.table_name && R({ message: `${w} deleted successfully!`, type: "success" });
|
|
244
|
-
let o = `DROP TABLE if exists ${w};`;
|
|
245
|
-
ee(() => o), Qe(), Z(!0);
|
|
246
|
-
}, oa = ia(async (e) => {
|
|
247
|
-
const r = /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e);
|
|
248
|
-
if (e.trim().length === 0) {
|
|
249
|
-
n.setError("newColumnName", {
|
|
250
|
-
type: "manual",
|
|
251
|
-
message: "*Column name is required. "
|
|
252
|
-
});
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
255
|
-
if (!r) {
|
|
256
|
-
n.setError("newColumnName", {
|
|
257
|
-
type: "manual",
|
|
258
|
-
message: "Must start with a letter/underscore and contain only letters, numbers, and underscores."
|
|
259
|
-
});
|
|
260
|
-
return;
|
|
261
|
-
}
|
|
262
|
-
_.some((t) => t.name === e) || v.some((t) => t.name === e) ? n.setError("newColumnName", {
|
|
263
|
-
type: "manual",
|
|
264
|
-
message: "Column name already exists in the table."
|
|
265
|
-
}) : n.clearErrors("newColumnName");
|
|
266
|
-
}, 500), ce = v.some((e) => e.isPrimaryKey === !0), me = async (e) => {
|
|
267
|
-
var r;
|
|
268
|
-
if (j !== 2 && i && ue(2), e.length === 0) {
|
|
269
|
-
n.setValue("createTableQuery", "", { shouldDirty: !0 });
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
const t = ((r = e.find((o) => o.isPrimaryKey)) == null ? void 0 : r.name) || "", l = await $e([], e, "", t);
|
|
273
|
-
n.setValue("createTableQuery", l, { shouldDirty: !0 });
|
|
274
|
-
};
|
|
275
|
-
return /* @__PURE__ */ s(
|
|
276
|
-
p,
|
|
277
|
-
{
|
|
278
|
-
size: 9,
|
|
279
|
-
sx: {
|
|
280
|
-
maxHeight: "88vh",
|
|
281
|
-
overflowY: "auto",
|
|
282
|
-
overflowX: "hidden"
|
|
283
|
-
},
|
|
284
|
-
children: [
|
|
285
|
-
/* @__PURE__ */ a(
|
|
286
|
-
he,
|
|
287
|
-
{
|
|
288
|
-
variant: "outlined",
|
|
289
|
-
sx: {
|
|
290
|
-
p: 2.5,
|
|
291
|
-
borderRadius: 2.5,
|
|
292
|
-
backgroundColor: "background.paper"
|
|
293
|
-
},
|
|
294
|
-
children: /* @__PURE__ */ s("form", { onSubmit: n.handleSubmit(aa), noValidate: !0, className: "w-full", children: [
|
|
295
|
-
/* @__PURE__ */ s(
|
|
296
|
-
f,
|
|
297
|
-
{
|
|
298
|
-
sx: {
|
|
299
|
-
display: "flex",
|
|
300
|
-
justifyContent: "space-between",
|
|
301
|
-
alignItems: "center",
|
|
302
|
-
mb: 2.5,
|
|
303
|
-
pb: 2,
|
|
304
|
-
borderBottom: "1px solid",
|
|
305
|
-
borderColor: "divider"
|
|
306
|
-
},
|
|
307
|
-
children: [
|
|
308
|
-
/* @__PURE__ */ s(f, { sx: { flex: 1 }, children: [
|
|
309
|
-
i ? /* @__PURE__ */ s(f, { sx: { maxWidth: 350 }, children: [
|
|
310
|
-
/* @__PURE__ */ a(c, { variant: "subtitle2", sx: { fontWeight: 600, mb: 0.5 }, children: "New Table" }),
|
|
311
|
-
/* @__PURE__ */ a(
|
|
312
|
-
da,
|
|
313
|
-
{
|
|
314
|
-
control: n.control,
|
|
315
|
-
id: "tableName",
|
|
316
|
-
name: "tableName",
|
|
317
|
-
errors: n.formState.errors,
|
|
318
|
-
label: "Table Name",
|
|
319
|
-
size: "small",
|
|
320
|
-
rules: {
|
|
321
|
-
required: {
|
|
322
|
-
value: !0,
|
|
323
|
-
message: "Please Enter the name"
|
|
324
|
-
},
|
|
325
|
-
pattern: {
|
|
326
|
-
value: /^[a-z0-9_]+$/,
|
|
327
|
-
message: "Only lowercase letters, numbers, and underscores are allowed"
|
|
328
|
-
},
|
|
329
|
-
validate: {}
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
)
|
|
333
|
-
] }) : /* @__PURE__ */ s(W, { children: [
|
|
334
|
-
/* @__PURE__ */ a(c, { variant: "h6", sx: { fontWeight: 700, color: "text.primary" }, children: w || "No Table Selected" }),
|
|
335
|
-
/* @__PURE__ */ a(c, { variant: "caption", color: "text.secondary", children: w ? "View and manage table configuration" : "Select a table from the list" })
|
|
336
|
-
] }),
|
|
337
|
-
/* @__PURE__ */ a(
|
|
338
|
-
sa,
|
|
339
|
-
{
|
|
340
|
-
description: "Do you want to drop this table?",
|
|
341
|
-
title: "CONFIRMATION",
|
|
342
|
-
open: He,
|
|
343
|
-
handleClick: ta,
|
|
344
|
-
handleClose: () => xe((e) => !e)
|
|
345
|
-
}
|
|
346
|
-
)
|
|
347
|
-
] }),
|
|
348
|
-
/* @__PURE__ */ s(f, { sx: { display: "flex", gap: 1 }, children: [
|
|
349
|
-
(m || i) && /* @__PURE__ */ a(E, { title: ce ? "" : "A primary key is required to proceed.", arrow: !0, placement: "bottom", children: /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(
|
|
350
|
-
P,
|
|
351
|
-
{
|
|
352
|
-
type: "submit",
|
|
353
|
-
variant: "contained",
|
|
354
|
-
size: "small",
|
|
355
|
-
sx: {
|
|
356
|
-
borderRadius: 2,
|
|
357
|
-
fontWeight: 600,
|
|
358
|
-
textTransform: "none",
|
|
359
|
-
boxShadow: "none",
|
|
360
|
-
px: 2.5
|
|
361
|
-
},
|
|
362
|
-
disabled: ea || !ce,
|
|
363
|
-
startIcon: /* @__PURE__ */ a(x, { iconName: "faCheck" }),
|
|
364
|
-
children: "Submit"
|
|
365
|
-
}
|
|
366
|
-
) }) }),
|
|
367
|
-
(m || i) && /* @__PURE__ */ a(
|
|
368
|
-
P,
|
|
369
|
-
{
|
|
370
|
-
type: "button",
|
|
371
|
-
variant: "outlined",
|
|
372
|
-
onClick: () => na(),
|
|
373
|
-
size: "small",
|
|
374
|
-
sx: {
|
|
375
|
-
borderRadius: 2,
|
|
376
|
-
fontWeight: 600,
|
|
377
|
-
textTransform: "none",
|
|
378
|
-
borderColor: "divider",
|
|
379
|
-
color: "text.secondary",
|
|
380
|
-
px: 2.5,
|
|
381
|
-
"&:hover": { backgroundColor: "action.hover", borderColor: "text.disabled" }
|
|
382
|
-
},
|
|
383
|
-
children: "Cancel"
|
|
384
|
-
}
|
|
385
|
-
)
|
|
386
|
-
] })
|
|
387
|
-
]
|
|
388
|
-
}
|
|
389
|
-
),
|
|
390
|
-
/* @__PURE__ */ s(p, { container: !0, spacing: 2, children: [
|
|
391
|
-
/* @__PURE__ */ s(p, { size: 7, children: [
|
|
392
|
-
/* @__PURE__ */ a(
|
|
393
|
-
f,
|
|
394
|
-
{
|
|
395
|
-
sx: {
|
|
396
|
-
display: "inline-flex",
|
|
397
|
-
gap: 0.75,
|
|
398
|
-
p: 0.75,
|
|
399
|
-
backgroundColor: "action.hover",
|
|
400
|
-
borderRadius: 2.5,
|
|
401
|
-
border: "1px solid",
|
|
402
|
-
borderColor: "divider",
|
|
403
|
-
mb: 2
|
|
404
|
-
},
|
|
405
|
-
children: [
|
|
406
|
-
{ value: 0, label: "Modified On Query", icon: "faClock" },
|
|
407
|
-
{ value: 1, label: "Data Fetch Query", icon: "faDatabase" },
|
|
408
|
-
...i ? [{ value: 2, label: "Create Table Query", icon: "faCode" }] : []
|
|
409
|
-
].map((e) => {
|
|
410
|
-
const r = j === e.value;
|
|
411
|
-
return /* @__PURE__ */ a(
|
|
412
|
-
P,
|
|
413
|
-
{
|
|
414
|
-
onClick: () => ue(e.value),
|
|
415
|
-
size: "small",
|
|
416
|
-
disableElevation: !0,
|
|
417
|
-
sx: {
|
|
418
|
-
px: 2,
|
|
419
|
-
py: 0.6,
|
|
420
|
-
borderRadius: 2,
|
|
421
|
-
textTransform: "none",
|
|
422
|
-
fontSize: "0.8rem",
|
|
423
|
-
fontWeight: r ? 700 : 500,
|
|
424
|
-
color: r ? "primary.dark" : "text.secondary",
|
|
425
|
-
backgroundColor: r ? "background.paper" : "transparent",
|
|
426
|
-
boxShadow: r ? "0px 2px 6px rgba(0,0,0,0.06)" : "none",
|
|
427
|
-
border: "1px solid",
|
|
428
|
-
borderColor: r ? "divider" : "transparent",
|
|
429
|
-
transition: "all 0.2s ease",
|
|
430
|
-
"&:hover": {
|
|
431
|
-
backgroundColor: r ? "background.paper" : "action.hover"
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
startIcon: /* @__PURE__ */ a(x, { iconName: e.icon }),
|
|
435
|
-
children: e.label
|
|
436
|
-
},
|
|
437
|
-
e.value
|
|
438
|
-
);
|
|
439
|
-
})
|
|
440
|
-
}
|
|
441
|
-
),
|
|
442
|
-
j === 0 && /* @__PURE__ */ s(p, { children: [
|
|
443
|
-
/* @__PURE__ */ a(c, { variant: "subtitle1", children: "Modified On Query:" }),
|
|
444
|
-
/* @__PURE__ */ a(
|
|
445
|
-
T,
|
|
446
|
-
{
|
|
447
|
-
name: "modifiedOnQuery",
|
|
448
|
-
control: n.control,
|
|
449
|
-
render: ({ field: e, fieldState: { error: r } }) => /* @__PURE__ */ s(W, { children: [
|
|
450
|
-
/* @__PURE__ */ a(
|
|
451
|
-
ie,
|
|
452
|
-
{
|
|
453
|
-
height: "35vh",
|
|
454
|
-
defaultLanguage: "sql",
|
|
455
|
-
theme: "vs-dark",
|
|
456
|
-
options: {
|
|
457
|
-
fontSize: 12,
|
|
458
|
-
minimap: { enabled: !1 },
|
|
459
|
-
automaticLayout: !0,
|
|
460
|
-
scrollBeyondLastLine: !1,
|
|
461
|
-
wordWrap: "on",
|
|
462
|
-
occurrencesHighlight: !1,
|
|
463
|
-
selectionHighlight: !1,
|
|
464
|
-
readOnly: !m && !i
|
|
465
|
-
},
|
|
466
|
-
value: e.value || "",
|
|
467
|
-
defaultValue: e.value || "",
|
|
468
|
-
onChange: e.onChange,
|
|
469
|
-
editorProps: { $blockScrolling: !0 }
|
|
470
|
-
}
|
|
471
|
-
),
|
|
472
|
-
(r == null ? void 0 : r.message) && /* @__PURE__ */ a(c, { variant: "subtitle1", color: "error", fontSize: "13px", className: "mt-1 ml-[13px]", children: r.message })
|
|
473
|
-
] })
|
|
474
|
-
}
|
|
475
|
-
)
|
|
476
|
-
] }),
|
|
477
|
-
j === 1 && /* @__PURE__ */ s(p, { children: [
|
|
478
|
-
/* @__PURE__ */ a(c, { variant: "subtitle1", children: "Data Fetch Query:" }),
|
|
479
|
-
/* @__PURE__ */ a(
|
|
480
|
-
T,
|
|
481
|
-
{
|
|
482
|
-
name: "dataFetchQuery",
|
|
483
|
-
control: n.control,
|
|
484
|
-
render: ({ field: e, fieldState: { error: r } }) => /* @__PURE__ */ s(W, { children: [
|
|
485
|
-
/* @__PURE__ */ a(
|
|
486
|
-
ie,
|
|
487
|
-
{
|
|
488
|
-
height: "35vh",
|
|
489
|
-
defaultLanguage: "sql",
|
|
490
|
-
theme: "vs-dark",
|
|
491
|
-
options: {
|
|
492
|
-
fontSize: 12,
|
|
493
|
-
minimap: { enabled: !1 },
|
|
494
|
-
automaticLayout: !0,
|
|
495
|
-
scrollBeyondLastLine: !1,
|
|
496
|
-
wordWrap: "on",
|
|
497
|
-
occurrencesHighlight: !1,
|
|
498
|
-
selectionHighlight: !1,
|
|
499
|
-
readOnly: !m && !i
|
|
500
|
-
},
|
|
501
|
-
value: e.value || "",
|
|
502
|
-
defaultValue: e.value || "",
|
|
503
|
-
onChange: e.onChange,
|
|
504
|
-
editorProps: { $blockScrolling: !0 }
|
|
505
|
-
}
|
|
506
|
-
),
|
|
507
|
-
(r == null ? void 0 : r.message) && /* @__PURE__ */ a(c, { variant: "subtitle1", color: "error", fontSize: "13px", className: "mt-1 ml-[13px]", children: r.message })
|
|
508
|
-
] })
|
|
509
|
-
}
|
|
510
|
-
)
|
|
511
|
-
] }),
|
|
512
|
-
j === 2 && /* @__PURE__ */ s(p, { children: [
|
|
513
|
-
/* @__PURE__ */ a(c, { variant: "subtitle1", children: "Create Table Query:" }),
|
|
514
|
-
/* @__PURE__ */ a(
|
|
515
|
-
T,
|
|
516
|
-
{
|
|
517
|
-
name: "createTableQuery",
|
|
518
|
-
control: n.control,
|
|
519
|
-
render: ({ field: e, fieldState: { error: r } }) => /* @__PURE__ */ s(W, { children: [
|
|
520
|
-
/* @__PURE__ */ a(
|
|
521
|
-
ie,
|
|
522
|
-
{
|
|
523
|
-
height: "35vh",
|
|
524
|
-
defaultLanguage: "sql",
|
|
525
|
-
theme: "vs-dark",
|
|
526
|
-
options: {
|
|
527
|
-
fontSize: 12,
|
|
528
|
-
minimap: { enabled: !1 },
|
|
529
|
-
automaticLayout: !0,
|
|
530
|
-
scrollBeyondLastLine: !1,
|
|
531
|
-
wordWrap: "on",
|
|
532
|
-
occurrencesHighlight: !1,
|
|
533
|
-
selectionHighlight: !1,
|
|
534
|
-
readOnly: !0
|
|
535
|
-
},
|
|
536
|
-
value: e.value || "",
|
|
537
|
-
defaultValue: e.value || "",
|
|
538
|
-
onChange: e.onChange,
|
|
539
|
-
editorProps: { $blockScrolling: !0 }
|
|
540
|
-
}
|
|
541
|
-
),
|
|
542
|
-
(r == null ? void 0 : r.message) && /* @__PURE__ */ a(c, { variant: "subtitle1", color: "error", fontSize: "13px", className: "mt-1 ml-[13px]", children: r.message })
|
|
543
|
-
] })
|
|
544
|
-
}
|
|
545
|
-
)
|
|
546
|
-
] }),
|
|
547
|
-
/* @__PURE__ */ s(he, { variant: "outlined", sx: { p: 2, mt: 2, borderRadius: 2, backgroundColor: "action.hover" }, children: [
|
|
548
|
-
/* @__PURE__ */ a(c, { variant: "subtitle2", sx: { fontWeight: 700, mb: 1.5, color: "text.primary" }, children: "Table Settings" }),
|
|
549
|
-
/* @__PURE__ */ s(p, { container: !0, spacing: 2, children: [
|
|
550
|
-
/* @__PURE__ */ s(p, { size: 6, xs: 12, children: [
|
|
551
|
-
/* @__PURE__ */ s(c, { variant: "body2", sx: { fontWeight: 600, mb: 0.5 }, children: [
|
|
552
|
-
"Data Scope ",
|
|
553
|
-
/* @__PURE__ */ a("span", { style: { color: "#ef4444" }, children: "*" })
|
|
554
|
-
] }),
|
|
555
|
-
/* @__PURE__ */ a(Y, { children: /* @__PURE__ */ a(
|
|
556
|
-
T,
|
|
557
|
-
{
|
|
558
|
-
name: "userData",
|
|
559
|
-
control: n.control,
|
|
560
|
-
rules: { required: "Required field." },
|
|
561
|
-
disabled: !m && !i,
|
|
562
|
-
defaultValue: d.userData !== void 0 && d.userData !== null ? String(d.userData) : "",
|
|
563
|
-
render: ({ field: e }) => /* @__PURE__ */ s(pe, { row: !0, ...e, value: e.value, children: [
|
|
564
|
-
/* @__PURE__ */ a(
|
|
565
|
-
L,
|
|
566
|
-
{
|
|
567
|
-
value: "true",
|
|
568
|
-
control: /* @__PURE__ */ a(B, { disabled: !m && !i, size: "small" }),
|
|
569
|
-
label: /* @__PURE__ */ a(c, { variant: "body2", children: "User" })
|
|
570
|
-
}
|
|
571
|
-
),
|
|
572
|
-
/* @__PURE__ */ a(
|
|
573
|
-
L,
|
|
574
|
-
{
|
|
575
|
-
value: "false",
|
|
576
|
-
control: /* @__PURE__ */ a(B, { disabled: !m && !i, size: "small" }),
|
|
577
|
-
label: /* @__PURE__ */ a(c, { variant: "body2", children: "System" })
|
|
578
|
-
}
|
|
579
|
-
)
|
|
580
|
-
] })
|
|
581
|
-
}
|
|
582
|
-
) })
|
|
583
|
-
] }),
|
|
584
|
-
/* @__PURE__ */ s(p, { size: 6, xs: 12, children: [
|
|
585
|
-
/* @__PURE__ */ s(c, { variant: "body2", sx: { fontWeight: 600, mb: 0.5 }, children: [
|
|
586
|
-
"Sync by Default ",
|
|
587
|
-
/* @__PURE__ */ a("span", { style: { color: "#ef4444" }, children: "*" })
|
|
588
|
-
] }),
|
|
589
|
-
/* @__PURE__ */ a(Y, { children: /* @__PURE__ */ a(
|
|
590
|
-
T,
|
|
591
|
-
{
|
|
592
|
-
name: "syncByDefault",
|
|
593
|
-
id: "syncByDefault",
|
|
594
|
-
control: n.control,
|
|
595
|
-
rules: { required: "Required field." },
|
|
596
|
-
disabled: !m && !i,
|
|
597
|
-
defaultValue: d.syncByDefault !== void 0 && d.syncByDefault !== null ? String(d.syncByDefault) : "",
|
|
598
|
-
render: ({ field: e }) => /* @__PURE__ */ s(pe, { row: !0, ...e, value: e.value, children: [
|
|
599
|
-
/* @__PURE__ */ a(
|
|
600
|
-
L,
|
|
601
|
-
{
|
|
602
|
-
value: "true",
|
|
603
|
-
control: /* @__PURE__ */ a(B, { disabled: !m && !i, size: "small" }),
|
|
604
|
-
label: /* @__PURE__ */ a(c, { variant: "body2", children: "Yes" })
|
|
605
|
-
}
|
|
606
|
-
),
|
|
607
|
-
/* @__PURE__ */ a(
|
|
608
|
-
L,
|
|
609
|
-
{
|
|
610
|
-
value: "false",
|
|
611
|
-
control: /* @__PURE__ */ a(B, { disabled: !m && !i, size: "small" }),
|
|
612
|
-
label: /* @__PURE__ */ a(c, { variant: "body2", children: "No" })
|
|
613
|
-
}
|
|
614
|
-
)
|
|
615
|
-
] })
|
|
616
|
-
}
|
|
617
|
-
) })
|
|
618
|
-
] }),
|
|
619
|
-
/* @__PURE__ */ s(p, { size: 6, xs: 12, children: [
|
|
620
|
-
/* @__PURE__ */ s(c, { variant: "body2", sx: { fontWeight: 600, mb: 0.5 }, children: [
|
|
621
|
-
"Has Media ",
|
|
622
|
-
/* @__PURE__ */ a("span", { style: { color: "#ef4444" }, children: "*" })
|
|
623
|
-
] }),
|
|
624
|
-
/* @__PURE__ */ a(Y, { children: /* @__PURE__ */ a(
|
|
625
|
-
T,
|
|
626
|
-
{
|
|
627
|
-
name: "hasMedia",
|
|
628
|
-
id: "hasMedia",
|
|
629
|
-
control: n.control,
|
|
630
|
-
rules: { required: "Required field." },
|
|
631
|
-
disabled: !m && !i,
|
|
632
|
-
defaultValue: d.hasMedia !== void 0 && d.hasMedia !== null ? String(d.hasMedia) : "",
|
|
633
|
-
render: ({ field: e }) => /* @__PURE__ */ s(pe, { row: !0, ...e, value: e.value, children: [
|
|
634
|
-
/* @__PURE__ */ a(
|
|
635
|
-
L,
|
|
636
|
-
{
|
|
637
|
-
value: "true",
|
|
638
|
-
control: /* @__PURE__ */ a(B, { disabled: !m && !i, size: "small" }),
|
|
639
|
-
label: /* @__PURE__ */ a(c, { variant: "body2", children: "Yes" })
|
|
640
|
-
}
|
|
641
|
-
),
|
|
642
|
-
/* @__PURE__ */ a(
|
|
643
|
-
L,
|
|
644
|
-
{
|
|
645
|
-
value: "false",
|
|
646
|
-
control: /* @__PURE__ */ a(B, { disabled: !m && !i, size: "small" }),
|
|
647
|
-
label: /* @__PURE__ */ a(c, { variant: "body2", children: "No" })
|
|
648
|
-
}
|
|
649
|
-
)
|
|
650
|
-
] })
|
|
651
|
-
}
|
|
652
|
-
) })
|
|
653
|
-
] })
|
|
654
|
-
] })
|
|
655
|
-
] }),
|
|
656
|
-
A === "true" && /* @__PURE__ */ s(W, { children: [
|
|
657
|
-
/* @__PURE__ */ a(c, { variant: "h6", className: "mt-2", sx: { fontWeight: 600, color: "#566A79" }, children: "Media Configuration:" }),
|
|
658
|
-
/* @__PURE__ */ s(p, { container: !0, spacing: 2, className: "mt-2", children: [
|
|
659
|
-
/* @__PURE__ */ s(p, { size: 6, xs: 12, children: [
|
|
660
|
-
/* @__PURE__ */ s(c, { variant: "subtitle2", sx: { mb: 0.5, fontWeight: 600 }, children: [
|
|
661
|
-
"Download Type",
|
|
662
|
-
/* @__PURE__ */ a("span", { style: { color: "red" }, children: "*" }),
|
|
663
|
-
":"
|
|
664
|
-
] }),
|
|
665
|
-
/* @__PURE__ */ a(
|
|
666
|
-
T,
|
|
667
|
-
{
|
|
668
|
-
name: "downloadType",
|
|
669
|
-
control: n.control,
|
|
670
|
-
rules: {
|
|
671
|
-
validate: (e) => A !== "true" || !!e || "Download Type is required."
|
|
672
|
-
},
|
|
673
|
-
render: ({ field: { onChange: e, value: r }, fieldState: { error: t } }) => /* @__PURE__ */ a(
|
|
674
|
-
se,
|
|
675
|
-
{
|
|
676
|
-
options: Ie,
|
|
677
|
-
value: r || null,
|
|
678
|
-
disabled: !m && !i,
|
|
679
|
-
onChange: (l, o) => e(o),
|
|
680
|
-
renderInput: (l) => /* @__PURE__ */ a(
|
|
681
|
-
V,
|
|
682
|
-
{
|
|
683
|
-
...l,
|
|
684
|
-
size: "small",
|
|
685
|
-
placeholder: "Select download type",
|
|
686
|
-
error: !!t,
|
|
687
|
-
helperText: t == null ? void 0 : t.message
|
|
688
|
-
}
|
|
689
|
-
)
|
|
690
|
-
}
|
|
691
|
-
)
|
|
692
|
-
}
|
|
693
|
-
)
|
|
694
|
-
] }),
|
|
695
|
-
/* @__PURE__ */ a(p, { size: 12, children: /* @__PURE__ */ s(
|
|
696
|
-
f,
|
|
697
|
-
{
|
|
698
|
-
sx: {
|
|
699
|
-
border: "1px solid #ddd",
|
|
700
|
-
borderRadius: "8px",
|
|
701
|
-
p: 2,
|
|
702
|
-
backgroundColor: "#fafafa"
|
|
703
|
-
},
|
|
704
|
-
children: [
|
|
705
|
-
/* @__PURE__ */ a(c, { variant: "subtitle1", sx: { fontWeight: 600, mb: 1.5, color: "#374151" }, children: "Download URL" }),
|
|
706
|
-
/* @__PURE__ */ s(c, { variant: "subtitle2", sx: { mb: 0.5, fontWeight: 600 }, children: [
|
|
707
|
-
"API Endpoint",
|
|
708
|
-
/* @__PURE__ */ a("span", { style: { color: "red" }, children: "*" }),
|
|
709
|
-
":"
|
|
710
|
-
] }),
|
|
711
|
-
/* @__PURE__ */ a(
|
|
712
|
-
T,
|
|
713
|
-
{
|
|
714
|
-
name: "apiEndpoint",
|
|
715
|
-
control: n.control,
|
|
716
|
-
rules: {
|
|
717
|
-
validate: (e) => A !== "true" || !!(e != null && e.trim()) || "API Endpoint is required."
|
|
718
|
-
},
|
|
719
|
-
render: ({ field: e, fieldState: { error: r } }) => /* @__PURE__ */ a(
|
|
720
|
-
V,
|
|
721
|
-
{
|
|
722
|
-
...e,
|
|
723
|
-
value: e.value || "",
|
|
724
|
-
size: "small",
|
|
725
|
-
variant: "outlined",
|
|
726
|
-
fullWidth: !0,
|
|
727
|
-
placeholder: "https://api.example.com/endpoint",
|
|
728
|
-
error: !!r,
|
|
729
|
-
helperText: r == null ? void 0 : r.message,
|
|
730
|
-
slotProps: { input: { readOnly: !m && !i } },
|
|
731
|
-
sx: { mb: 2 }
|
|
732
|
-
}
|
|
733
|
-
)
|
|
734
|
-
}
|
|
735
|
-
),
|
|
736
|
-
/* @__PURE__ */ s(f, { sx: { display: "flex", alignItems: "center", mb: 1 }, children: [
|
|
737
|
-
/* @__PURE__ */ s(c, { variant: "subtitle2", sx: { fontWeight: 600, color: "#374151", flex: 1 }, children: [
|
|
738
|
-
"Request Parameters",
|
|
739
|
-
/* @__PURE__ */ a("span", { style: { color: "red" }, children: "*" }),
|
|
740
|
-
":"
|
|
741
|
-
] }),
|
|
742
|
-
(m || i) && /* @__PURE__ */ a(E, { title: "Add parameter", arrow: !0, children: /* @__PURE__ */ a(
|
|
743
|
-
O,
|
|
744
|
-
{
|
|
745
|
-
size: "small",
|
|
746
|
-
onClick: () => {
|
|
747
|
-
const e = [...K, { key: "", value: "" }];
|
|
748
|
-
z(e), n.setValue("requestParameters", e, {
|
|
749
|
-
shouldDirty: !0,
|
|
750
|
-
shouldValidate: !0
|
|
751
|
-
});
|
|
752
|
-
},
|
|
753
|
-
sx: {
|
|
754
|
-
backgroundColor: "#566A79",
|
|
755
|
-
color: "white",
|
|
756
|
-
"&:hover": { backgroundColor: "#3d4f5c" },
|
|
757
|
-
borderRadius: "6px",
|
|
758
|
-
width: "28px",
|
|
759
|
-
height: "28px"
|
|
760
|
-
},
|
|
761
|
-
children: /* @__PURE__ */ a(x, { iconName: "faPlus", className: "text-[0.75rem]" })
|
|
762
|
-
}
|
|
763
|
-
) })
|
|
764
|
-
] }),
|
|
765
|
-
K.length === 0 && /* @__PURE__ */ a(c, { variant: "caption", sx: { color: "#9ca3af", fontStyle: "italic" }, children: "No request parameters added." }),
|
|
766
|
-
K.map((e, r) => /* @__PURE__ */ s(
|
|
767
|
-
f,
|
|
768
|
-
{
|
|
769
|
-
sx: {
|
|
770
|
-
display: "flex",
|
|
771
|
-
gap: 1,
|
|
772
|
-
alignItems: "flex-start",
|
|
773
|
-
mb: 1,
|
|
774
|
-
p: 1,
|
|
775
|
-
borderRadius: "6px",
|
|
776
|
-
backgroundColor: "#f0f4f8",
|
|
777
|
-
border: "1px solid #e2e8f0"
|
|
778
|
-
},
|
|
779
|
-
children: [
|
|
780
|
-
/* @__PURE__ */ a(
|
|
781
|
-
V,
|
|
782
|
-
{
|
|
783
|
-
size: "small",
|
|
784
|
-
label: "Key",
|
|
785
|
-
value: e.key,
|
|
786
|
-
placeholder: "parameterKey",
|
|
787
|
-
disabled: !m && !i,
|
|
788
|
-
onChange: (t) => {
|
|
789
|
-
const l = K.map(
|
|
790
|
-
(o, u) => u === r ? { ...o, key: t.target.value } : o
|
|
791
|
-
);
|
|
792
|
-
z(l), n.setValue("requestParameters", l, {
|
|
793
|
-
shouldDirty: !0,
|
|
794
|
-
shouldValidate: !0
|
|
795
|
-
});
|
|
796
|
-
},
|
|
797
|
-
sx: { flex: 1 }
|
|
798
|
-
}
|
|
799
|
-
),
|
|
800
|
-
/* @__PURE__ */ a(
|
|
801
|
-
se,
|
|
802
|
-
{
|
|
803
|
-
size: "small",
|
|
804
|
-
options: v.map((t) => t.name),
|
|
805
|
-
value: e.value || null,
|
|
806
|
-
disabled: !m && !i,
|
|
807
|
-
noOptionsText: v.length === 0 ? "No synced columns yet" : "No match",
|
|
808
|
-
onChange: (t, l) => {
|
|
809
|
-
const o = K.map(
|
|
810
|
-
(u, h) => h === r ? { ...u, value: l || "" } : u
|
|
811
|
-
);
|
|
812
|
-
z(o), n.setValue("requestParameters", o, {
|
|
813
|
-
shouldDirty: !0,
|
|
814
|
-
shouldValidate: !0
|
|
815
|
-
});
|
|
816
|
-
},
|
|
817
|
-
renderInput: (t) => /* @__PURE__ */ a(V, { ...t, label: "Value (Column)", placeholder: "Select column" }),
|
|
818
|
-
sx: { flex: 1 }
|
|
819
|
-
}
|
|
820
|
-
),
|
|
821
|
-
(m || i) && /* @__PURE__ */ a(E, { title: "Remove parameter", arrow: !0, children: /* @__PURE__ */ a(
|
|
822
|
-
O,
|
|
823
|
-
{
|
|
824
|
-
size: "small",
|
|
825
|
-
onClick: () => {
|
|
826
|
-
const t = K.filter((l, o) => o !== r);
|
|
827
|
-
z(t), n.setValue("requestParameters", t, {
|
|
828
|
-
shouldDirty: !0,
|
|
829
|
-
shouldValidate: !0
|
|
830
|
-
});
|
|
831
|
-
},
|
|
832
|
-
sx: { color: "#ef4444", alignSelf: "center" },
|
|
833
|
-
children: /* @__PURE__ */ a(x, { iconName: "faTrashCan", className: "text-[0.85rem]" })
|
|
834
|
-
}
|
|
835
|
-
) })
|
|
836
|
-
]
|
|
837
|
-
},
|
|
838
|
-
r
|
|
839
|
-
)),
|
|
840
|
-
n.formState.errors.requestParameters && /* @__PURE__ */ a(c, { variant: "caption", sx: { color: "#ef4444", mt: 0.5, display: "block" }, children: n.formState.errors.requestParameters.message })
|
|
841
|
-
]
|
|
842
|
-
}
|
|
843
|
-
) }),
|
|
844
|
-
/* @__PURE__ */ s(p, { size: 6, xs: 12, children: [
|
|
845
|
-
/* @__PURE__ */ s(c, { variant: "subtitle2", sx: { mb: 0.5, fontWeight: 600 }, children: [
|
|
846
|
-
"Directory Path",
|
|
847
|
-
/* @__PURE__ */ a("span", { style: { color: "red" }, children: "*" }),
|
|
848
|
-
":"
|
|
849
|
-
] }),
|
|
850
|
-
/* @__PURE__ */ a(
|
|
851
|
-
T,
|
|
852
|
-
{
|
|
853
|
-
name: "directoryPath",
|
|
854
|
-
control: n.control,
|
|
855
|
-
defaultValue: "",
|
|
856
|
-
rules: {
|
|
857
|
-
validate: (e) => A !== "true" || !!(e != null && e.trim()) && e.trim().length > 0 || "Directory Path is required."
|
|
858
|
-
},
|
|
859
|
-
render: ({ field: e, fieldState: { error: r } }) => /* @__PURE__ */ a(
|
|
860
|
-
V,
|
|
861
|
-
{
|
|
862
|
-
...e,
|
|
863
|
-
size: "small",
|
|
864
|
-
variant: "outlined",
|
|
865
|
-
fullWidth: !0,
|
|
866
|
-
error: !!r,
|
|
867
|
-
helperText: r == null ? void 0 : r.message,
|
|
868
|
-
slotProps: {
|
|
869
|
-
input: {
|
|
870
|
-
readOnly: !m && !i,
|
|
871
|
-
startAdornment: /* @__PURE__ */ a(ye, { position: "start", children: "#directoryPath#/" }),
|
|
872
|
-
endAdornment: /* @__PURE__ */ a(ye, { position: "end", children: "/" })
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
)
|
|
877
|
-
}
|
|
878
|
-
)
|
|
879
|
-
] })
|
|
880
|
-
] })
|
|
881
|
-
] })
|
|
882
|
-
] }),
|
|
883
|
-
/* @__PURE__ */ a(p, { size: 5, children: /* @__PURE__ */ s(he, { variant: "outlined", sx: { px: 2, borderRadius: 2.5, height: "100%", mb: 1 }, children: [
|
|
884
|
-
/* @__PURE__ */ s(
|
|
885
|
-
f,
|
|
886
|
-
{
|
|
887
|
-
sx: {
|
|
888
|
-
display: "flex",
|
|
889
|
-
justifyContent: "space-between",
|
|
890
|
-
alignItems: "center",
|
|
891
|
-
flexWrap: "wrap",
|
|
892
|
-
gap: 1,
|
|
893
|
-
pt: 1.5
|
|
894
|
-
},
|
|
895
|
-
children: [
|
|
896
|
-
/* @__PURE__ */ s(
|
|
897
|
-
f,
|
|
898
|
-
{
|
|
899
|
-
sx: {
|
|
900
|
-
display: "inline-flex",
|
|
901
|
-
gap: 0.5,
|
|
902
|
-
p: 0.5,
|
|
903
|
-
backgroundColor: "action.hover",
|
|
904
|
-
borderRadius: 2,
|
|
905
|
-
border: "1px solid",
|
|
906
|
-
borderColor: "divider",
|
|
907
|
-
mb: 1
|
|
908
|
-
},
|
|
909
|
-
children: [
|
|
910
|
-
!i && /* @__PURE__ */ a(
|
|
911
|
-
P,
|
|
912
|
-
{
|
|
913
|
-
size: "small",
|
|
914
|
-
onClick: () => {
|
|
915
|
-
re(0), F("");
|
|
916
|
-
},
|
|
917
|
-
sx: {
|
|
918
|
-
px: 1.5,
|
|
919
|
-
py: 0.4,
|
|
920
|
-
borderRadius: 1.5,
|
|
921
|
-
textTransform: "none",
|
|
922
|
-
fontSize: "0.78rem",
|
|
923
|
-
fontWeight: g === 0 ? 700 : 500,
|
|
924
|
-
color: g === 0 ? "primary.dark" : "text.secondary",
|
|
925
|
-
backgroundColor: g === 0 ? "background.paper" : "transparent",
|
|
926
|
-
boxShadow: g === 0 ? "0px 1px 4px rgba(0,0,0,0.06)" : "none",
|
|
927
|
-
border: "1px solid",
|
|
928
|
-
borderColor: g === 0 ? "divider" : "transparent",
|
|
929
|
-
"&:hover": { backgroundColor: g === 0 ? "background.paper" : "action.hover" }
|
|
930
|
-
},
|
|
931
|
-
children: "Synced Columns"
|
|
932
|
-
}
|
|
933
|
-
),
|
|
934
|
-
S !== void 0 && /* @__PURE__ */ a(
|
|
935
|
-
P,
|
|
936
|
-
{
|
|
937
|
-
size: "small",
|
|
938
|
-
onClick: () => {
|
|
939
|
-
re(1), F("");
|
|
940
|
-
},
|
|
941
|
-
sx: {
|
|
942
|
-
px: 1.5,
|
|
943
|
-
py: 0.4,
|
|
944
|
-
borderRadius: 1.5,
|
|
945
|
-
textTransform: "none",
|
|
946
|
-
fontSize: "0.78rem",
|
|
947
|
-
fontWeight: g === 1 ? 700 : 500,
|
|
948
|
-
color: g === 1 ? "primary.dark" : "text.secondary",
|
|
949
|
-
backgroundColor: g === 1 ? "background.paper" : "transparent",
|
|
950
|
-
boxShadow: g === 1 ? "0px 1px 4px rgba(0,0,0,0.06)" : "none",
|
|
951
|
-
border: "1px solid",
|
|
952
|
-
borderColor: g === 1 ? "divider" : "transparent",
|
|
953
|
-
"&:hover": { backgroundColor: g === 1 ? "background.paper" : "action.hover" }
|
|
954
|
-
},
|
|
955
|
-
children: i ? "Columns" : "DB Columns"
|
|
956
|
-
}
|
|
957
|
-
)
|
|
958
|
-
]
|
|
959
|
-
}
|
|
960
|
-
),
|
|
961
|
-
g === 0 && v.length > 0 && $ && /* @__PURE__ */ a(f, { sx: { minWidth: 200, marginLeft: 2 }, children: /* @__PURE__ */ a(
|
|
962
|
-
se,
|
|
963
|
-
{
|
|
964
|
-
size: "small",
|
|
965
|
-
options: v.map((e) => e.name),
|
|
966
|
-
value: n.getValues("primaryKey") || "",
|
|
967
|
-
readOnly: !m && !i,
|
|
968
|
-
onChange: (e, r) => {
|
|
969
|
-
const t = v.map((l) => ({
|
|
970
|
-
...l,
|
|
971
|
-
isPrimaryKey: l.name === r
|
|
972
|
-
}));
|
|
973
|
-
D(t), n.setValue("selectedColumns", t, { shouldDirty: !0 }), n.setValue("primaryKey", r);
|
|
974
|
-
},
|
|
975
|
-
renderInput: (e) => /* @__PURE__ */ a(V, { ...e, label: "Primary Key", placeholder: "Select column" }),
|
|
976
|
-
renderOption: (e, r) => /* @__PURE__ */ a("li", { ...e, children: /* @__PURE__ */ a(E, { title: r, placement: "left", arrow: !0, children: /* @__PURE__ */ a("span", { className: "truncate max-w-[250px]", children: r }) }) })
|
|
977
|
-
}
|
|
978
|
-
) }),
|
|
979
|
-
(i || m) && /* @__PURE__ */ a(
|
|
980
|
-
P,
|
|
981
|
-
{
|
|
982
|
-
id: "edit-button-anchor",
|
|
983
|
-
size: "small",
|
|
984
|
-
variant: "contained",
|
|
985
|
-
sx: {
|
|
986
|
-
borderRadius: 2,
|
|
987
|
-
fontWeight: 600,
|
|
988
|
-
textTransform: "none",
|
|
989
|
-
boxShadow: "none",
|
|
990
|
-
px: 1.5,
|
|
991
|
-
ml: 1
|
|
992
|
-
},
|
|
993
|
-
disabled: !!n.formState.errors.tableName,
|
|
994
|
-
onClick: async (e) => {
|
|
995
|
-
const r = e.currentTarget;
|
|
996
|
-
await n.trigger("tableName") && (ne(null), le(r));
|
|
997
|
-
},
|
|
998
|
-
startIcon: /* @__PURE__ */ a(x, { iconName: "faPlus" }),
|
|
999
|
-
children: "Column"
|
|
1000
|
-
}
|
|
1001
|
-
),
|
|
1002
|
-
(i || m) && /* @__PURE__ */ a(
|
|
1003
|
-
ua,
|
|
1004
|
-
{
|
|
1005
|
-
id: Ze,
|
|
1006
|
-
open: Le,
|
|
1007
|
-
anchorEl: Ee,
|
|
1008
|
-
onClose: async () => {
|
|
1009
|
-
le(null), n.setValue("newColumnName", ""), n.setValue("newColumnType", null), n.setValue("isPrimaryKey", !1), n.clearErrors(["newColumnName", "newColumnType"]), ne(null);
|
|
1010
|
-
},
|
|
1011
|
-
anchorOrigin: {
|
|
1012
|
-
vertical: "bottom",
|
|
1013
|
-
horizontal: "left"
|
|
1014
|
-
},
|
|
1015
|
-
children: /* @__PURE__ */ s(
|
|
1016
|
-
p,
|
|
1017
|
-
{
|
|
1018
|
-
container: !0,
|
|
1019
|
-
spacing: 1,
|
|
1020
|
-
sx: {
|
|
1021
|
-
p: 1,
|
|
1022
|
-
width: "200px",
|
|
1023
|
-
height: (De = n.getValues("selectedColumns")) != null && De.some((e) => e.isPrimaryKey) ? "180px" : "210px"
|
|
1024
|
-
},
|
|
1025
|
-
children: [
|
|
1026
|
-
/* @__PURE__ */ a(p, { size: 12, className: "h-fit", children: /* @__PURE__ */ a(Y, { fullWidth: !0, children: /* @__PURE__ */ a(
|
|
1027
|
-
T,
|
|
1028
|
-
{
|
|
1029
|
-
name: "newColumnName",
|
|
1030
|
-
id: "newColumnName",
|
|
1031
|
-
control: n.control,
|
|
1032
|
-
render: ({ field: { onChange: e, value: r, ...t }, fieldState: { error: l } }) => /* @__PURE__ */ a(
|
|
1033
|
-
V,
|
|
1034
|
-
{
|
|
1035
|
-
...t,
|
|
1036
|
-
value: (r == null ? void 0 : r.trim()) || "",
|
|
1037
|
-
variant: "outlined",
|
|
1038
|
-
fullWidth: !0,
|
|
1039
|
-
size: "small",
|
|
1040
|
-
error: !!l,
|
|
1041
|
-
helperText: l == null ? void 0 : l.message,
|
|
1042
|
-
label: "Column Name",
|
|
1043
|
-
sx: {
|
|
1044
|
-
"& .MuiInputLabel-root": {
|
|
1045
|
-
fontSize: "0.9rem"
|
|
1046
|
-
},
|
|
1047
|
-
margin: 0
|
|
1048
|
-
},
|
|
1049
|
-
onChange: (o) => {
|
|
1050
|
-
e(o.target.value), oa(o.target.value);
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
)
|
|
1054
|
-
}
|
|
1055
|
-
) }) }),
|
|
1056
|
-
/* @__PURE__ */ a(p, { size: 12, className: "h-fit", children: /* @__PURE__ */ a(Y, { fullWidth: !0, children: /* @__PURE__ */ a(
|
|
1057
|
-
T,
|
|
1058
|
-
{
|
|
1059
|
-
name: "newColumnType",
|
|
1060
|
-
id: "newColumnType",
|
|
1061
|
-
control: n.control,
|
|
1062
|
-
render: ({ field: { onChange: e, value: r }, fieldState: { error: t } }) => /* @__PURE__ */ a(
|
|
1063
|
-
se,
|
|
1064
|
-
{
|
|
1065
|
-
options: Oe || [],
|
|
1066
|
-
value: (r == null ? void 0 : r.trim()) || null,
|
|
1067
|
-
getOptionLabel: (l) => l,
|
|
1068
|
-
onChange: (l, o) => {
|
|
1069
|
-
e(o);
|
|
1070
|
-
},
|
|
1071
|
-
renderInput: (l) => /* @__PURE__ */ a(
|
|
1072
|
-
V,
|
|
1073
|
-
{
|
|
1074
|
-
...l,
|
|
1075
|
-
size: "small",
|
|
1076
|
-
error: !!t,
|
|
1077
|
-
helperText: t == null ? void 0 : t.message,
|
|
1078
|
-
sx: {
|
|
1079
|
-
"& .MuiInputLabel-root": {
|
|
1080
|
-
fontSize: "0.9rem"
|
|
1081
|
-
},
|
|
1082
|
-
m: 0
|
|
1083
|
-
},
|
|
1084
|
-
label: "Column Type",
|
|
1085
|
-
onChange: (o) => {
|
|
1086
|
-
e(o.target.value), n.setValue("newColumnType", o.target.value, {
|
|
1087
|
-
shouldDirty: !0
|
|
1088
|
-
});
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
)
|
|
1092
|
-
}
|
|
1093
|
-
)
|
|
1094
|
-
}
|
|
1095
|
-
) }) }),
|
|
1096
|
-
H === null && !n.getValues("selectedColumns").some((e) => e.isPrimaryKey) && /* @__PURE__ */ a(p, { size: 12, className: "h-fit", children: /* @__PURE__ */ a(
|
|
1097
|
-
L,
|
|
1098
|
-
{
|
|
1099
|
-
control: /* @__PURE__ */ a(
|
|
1100
|
-
T,
|
|
1101
|
-
{
|
|
1102
|
-
name: "isPrimaryKey",
|
|
1103
|
-
control: n.control,
|
|
1104
|
-
render: ({ field: { onChange: e, value: r } }) => /* @__PURE__ */ a(
|
|
1105
|
-
ca,
|
|
1106
|
-
{
|
|
1107
|
-
checked: r || !1,
|
|
1108
|
-
onChange: (t) => e(t.target.checked),
|
|
1109
|
-
sx: {
|
|
1110
|
-
margin: "0px"
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
)
|
|
1114
|
-
}
|
|
1115
|
-
),
|
|
1116
|
-
label: "Primary Key"
|
|
1117
|
-
}
|
|
1118
|
-
) }),
|
|
1119
|
-
/* @__PURE__ */ a(p, { children: /* @__PURE__ */ a(
|
|
1120
|
-
P,
|
|
1121
|
-
{
|
|
1122
|
-
size: "small",
|
|
1123
|
-
variant: "contained",
|
|
1124
|
-
disabled: !Ae || !We || Ae.trim() === "" || !Oe.includes(We.trim()),
|
|
1125
|
-
onClick: async () => {
|
|
1126
|
-
const e = n.getValues("isPrimaryKey"), r = n.getValues("newColumnName"), t = n.getValues("newColumnType"), l = n.getValues("selectedColumns").some((h) => h.isPrimaryKey);
|
|
1127
|
-
let o = [...n.getValues("selectedColumns")];
|
|
1128
|
-
if (H !== null)
|
|
1129
|
-
o[H] = {
|
|
1130
|
-
...o[H],
|
|
1131
|
-
name: r,
|
|
1132
|
-
type: t
|
|
1133
|
-
};
|
|
1134
|
-
else {
|
|
1135
|
-
if (o.some((y) => y.name === r)) {
|
|
1136
|
-
R({ message: "Column already exists", type: "error" });
|
|
1137
|
-
return;
|
|
1138
|
-
}
|
|
1139
|
-
const h = {
|
|
1140
|
-
name: r,
|
|
1141
|
-
type: t
|
|
1142
|
-
};
|
|
1143
|
-
!l && e && (n.setValue("primaryKey", r), h.isPrimaryKey = !0), o.push(h);
|
|
1144
|
-
}
|
|
1145
|
-
n.setValue("selectedColumns", o, {
|
|
1146
|
-
shouldDirty: !0
|
|
1147
|
-
});
|
|
1148
|
-
const u = [...o].sort((h, y) => h.isPrimaryKey ? -1 : y.isPrimaryKey ? 1 : h.name.localeCompare(y.name));
|
|
1149
|
-
D(u), i && await me(o), ne(null), le(null), g !== 0 && re(0), n.setValue("newColumnName", " "), n.setValue("newColumnType", " "), n.setValue("isPrimaryKey", null);
|
|
1150
|
-
},
|
|
1151
|
-
children: H !== null ? "Update" : "Add"
|
|
1152
|
-
}
|
|
1153
|
-
) })
|
|
1154
|
-
]
|
|
1155
|
-
}
|
|
1156
|
-
)
|
|
1157
|
-
}
|
|
1158
|
-
)
|
|
1159
|
-
]
|
|
1160
|
-
}
|
|
1161
|
-
),
|
|
1162
|
-
/* @__PURE__ */ a(
|
|
1163
|
-
ma,
|
|
1164
|
-
{
|
|
1165
|
-
sx: {
|
|
1166
|
-
maxHeight: A === "true" ? "112vh" : "59vh",
|
|
1167
|
-
border: "1px solid",
|
|
1168
|
-
borderColor: "divider",
|
|
1169
|
-
borderRadius: 2
|
|
1170
|
-
},
|
|
1171
|
-
children: /* @__PURE__ */ s(ha, { stickyHeader: !0, children: [
|
|
1172
|
-
/* @__PURE__ */ a(pa, { children: /* @__PURE__ */ a(J, { children: /* @__PURE__ */ s(X, { className: " px-3 ", sx: { backgroundColor: "white" }, children: [
|
|
1173
|
-
/* @__PURE__ */ a(
|
|
1174
|
-
V,
|
|
1175
|
-
{
|
|
1176
|
-
size: "small",
|
|
1177
|
-
placeholder: "Search Columns",
|
|
1178
|
-
variant: "outlined",
|
|
1179
|
-
value: ae,
|
|
1180
|
-
onChange: (e) => {
|
|
1181
|
-
F(e.target.value);
|
|
1182
|
-
},
|
|
1183
|
-
className: "w-full py-0.5 text-xs",
|
|
1184
|
-
InputProps: {
|
|
1185
|
-
startAdornment: /* @__PURE__ */ a(ye, { position: "start", children: /* @__PURE__ */ a(O, { children: /* @__PURE__ */ a(x, { iconName: "faMagnifyingGlass", className: "text-[1rem]" }) }) })
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
),
|
|
1189
|
-
!ce && /* @__PURE__ */ s(c, { variant: "body2", color: "info", className: "mb-0", children: [
|
|
1190
|
-
/* @__PURE__ */ a("span", { style: { color: "red" }, children: "*" }),
|
|
1191
|
-
" Select a primary key for the table before submitting."
|
|
1192
|
-
] })
|
|
1193
|
-
] }) }) }),
|
|
1194
|
-
g === 0 && /* @__PURE__ */ a(_e, { children: v.length ? v.map((e, r) => /* @__PURE__ */ a(
|
|
1195
|
-
J,
|
|
1196
|
-
{
|
|
1197
|
-
className: `border-b ${r === v.length - 1 ? "border-none" : "border-[#ccc]"}`,
|
|
1198
|
-
sx: {
|
|
1199
|
-
backgroundColor: e.onlyMobileDb ? "#d3ecc7" : e.isTypeChanged ? "rgba(255, 0, 0, 0.1)" : "#fff",
|
|
1200
|
-
"&:hover": {
|
|
1201
|
-
backgroundColor: e.onlyMobileDb ? "#d2f7c0" : e.isTypeChanged ? "#e79a9a" : "#e9f3ff"
|
|
1202
|
-
}
|
|
1203
|
-
},
|
|
1204
|
-
children: /* @__PURE__ */ s(X, { className: "p-2 px-4 flex justify-between", children: [
|
|
1205
|
-
/* @__PURE__ */ a(
|
|
1206
|
-
E,
|
|
1207
|
-
{
|
|
1208
|
-
title: e.onlyMobileDb ? "Column only present in mobile database" : e.isTypeChanged ? "Type changed" : "",
|
|
1209
|
-
placement: "top",
|
|
1210
|
-
arrow: !0,
|
|
1211
|
-
disableHoverListener: !(e.onlyMobileDb || e.isTypeChanged),
|
|
1212
|
-
children: /* @__PURE__ */ s(c, { variant: "caption", className: "w-full text-ellipsis cursor-pointer", children: [
|
|
1213
|
-
e.name,
|
|
1214
|
-
" (",
|
|
1215
|
-
e.type,
|
|
1216
|
-
")"
|
|
1217
|
-
] })
|
|
1218
|
-
}
|
|
1219
|
-
),
|
|
1220
|
-
/* @__PURE__ */ s(f, { display: "flex", alignItems: "center", children: [
|
|
1221
|
-
e.isPrimaryKey && /* @__PURE__ */ a(O, { sx: { height: "1.5rem", marginRight: 0, paddingRight: 1 }, children: /* @__PURE__ */ a(x, { iconName: "faKey", className: "text-[1rem] text-[#d3bb51]" }) }),
|
|
1222
|
-
(i || m) && /* @__PURE__ */ s(W, { children: [
|
|
1223
|
-
/* @__PURE__ */ s(
|
|
1224
|
-
E,
|
|
1225
|
-
{
|
|
1226
|
-
title: !i && e.isPrimaryKey && !$ ? "Deletion of primary key is not allowed." : "",
|
|
1227
|
-
arrow: !0,
|
|
1228
|
-
placement: "left",
|
|
1229
|
-
children: [
|
|
1230
|
-
" ",
|
|
1231
|
-
/* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(
|
|
1232
|
-
O,
|
|
1233
|
-
{
|
|
1234
|
-
sx: { height: "1.3rem", marginRight: "0" },
|
|
1235
|
-
disabled: !i && e.isPrimaryKey && !$,
|
|
1236
|
-
onClick: async () => {
|
|
1237
|
-
const t = n.getValues("selectedColumns");
|
|
1238
|
-
F("");
|
|
1239
|
-
const l = t.filter((h) => h.name !== e.name);
|
|
1240
|
-
n.setValue("selectedColumns", l, { shouldDirty: !0 });
|
|
1241
|
-
const o = ae.trim().toLowerCase(), u = o ? l.filter((h) => h.name.toLowerCase().includes(o)) : l;
|
|
1242
|
-
D(u), q(
|
|
1243
|
-
(h) => h.map((y) => y.name === e.name ? { ...y, isSynced: !1 } : y)
|
|
1244
|
-
), e.isPrimaryKey && n.setValue("primaryKey", ""), i && await me(l);
|
|
1245
|
-
},
|
|
1246
|
-
children: /* @__PURE__ */ a(
|
|
1247
|
-
x,
|
|
1248
|
-
{
|
|
1249
|
-
iconName: "faTrashCan",
|
|
1250
|
-
className: "text-[1rem] text-[#df5f5f]"
|
|
1251
|
-
}
|
|
1252
|
-
)
|
|
1253
|
-
}
|
|
1254
|
-
) })
|
|
1255
|
-
]
|
|
1256
|
-
}
|
|
1257
|
-
),
|
|
1258
|
-
i && /* @__PURE__ */ a(
|
|
1259
|
-
O,
|
|
1260
|
-
{
|
|
1261
|
-
sx: { height: "1.3rem", marginRight: "0", color: "success" },
|
|
1262
|
-
onClick: () => {
|
|
1263
|
-
const t = n.getValues("selectedColumns").findIndex((l) => l.name === e.name);
|
|
1264
|
-
ne(t), n.setValue("newColumnName", e.name), n.setValue("newColumnType", e.type), le(document.getElementById("edit-button-anchor") ?? null);
|
|
1265
|
-
},
|
|
1266
|
-
children: /* @__PURE__ */ a(x, { iconName: "faPen", className: "text-[1rem] text-[#4f4f4f]" })
|
|
1267
|
-
}
|
|
1268
|
-
)
|
|
1269
|
-
] })
|
|
1270
|
-
] })
|
|
1271
|
-
] })
|
|
1272
|
-
},
|
|
1273
|
-
r + 1
|
|
1274
|
-
)) : /* @__PURE__ */ a(J, { children: /* @__PURE__ */ a(X, { colSpan: 1, className: "p-2", children: /* @__PURE__ */ s(c, { variant: "body2", children: [
|
|
1275
|
-
" ",
|
|
1276
|
-
n.getValues("selectedColumns").length === 0 ? "There are no columns to display." : v.length === 0 ? "No columns for search query." : null
|
|
1277
|
-
] }) }) }) }),
|
|
1278
|
-
g === 1 && /* @__PURE__ */ a(_e, { children: _.length ? _.map((e, r) => {
|
|
1279
|
-
const t = e.name === d.primaryKey, l = e.isSynced || !1, o = /* @__PURE__ */ a(
|
|
1280
|
-
fa,
|
|
1281
|
-
{
|
|
1282
|
-
icon: /* @__PURE__ */ a(
|
|
1283
|
-
f,
|
|
1284
|
-
{
|
|
1285
|
-
sx: {
|
|
1286
|
-
backgroundColor: "#001e3c",
|
|
1287
|
-
borderRadius: "50%",
|
|
1288
|
-
width: 20,
|
|
1289
|
-
height: 20,
|
|
1290
|
-
display: "flex",
|
|
1291
|
-
alignItems: "center",
|
|
1292
|
-
justifyContent: "center"
|
|
1293
|
-
},
|
|
1294
|
-
children: /* @__PURE__ */ a(x, { iconName: "faBan", size: "sm", className: "pr-[0.4px]" })
|
|
1295
|
-
}
|
|
1296
|
-
),
|
|
1297
|
-
checkedIcon: /* @__PURE__ */ a(
|
|
1298
|
-
f,
|
|
1299
|
-
{
|
|
1300
|
-
sx: {
|
|
1301
|
-
backgroundColor: "#4caf50",
|
|
1302
|
-
borderRadius: "50%",
|
|
1303
|
-
width: 20,
|
|
1304
|
-
height: 20,
|
|
1305
|
-
display: "flex",
|
|
1306
|
-
alignItems: "center",
|
|
1307
|
-
justifyContent: "center"
|
|
1308
|
-
},
|
|
1309
|
-
children: /* @__PURE__ */ a(x, { iconName: "faRotate", className: "text-white text-xs" })
|
|
1310
|
-
}
|
|
1311
|
-
),
|
|
1312
|
-
checked: l,
|
|
1313
|
-
disabled: !m,
|
|
1314
|
-
onChange: (h) => {
|
|
1315
|
-
const y = h.target.checked;
|
|
1316
|
-
if (!y && m && !$ && !i && e.name === d.primaryKey)
|
|
1317
|
-
return;
|
|
1318
|
-
const M = [..._], U = {
|
|
1319
|
-
...M[r],
|
|
1320
|
-
isSynced: h.target.checked
|
|
1321
|
-
};
|
|
1322
|
-
M[r] = U, q(M);
|
|
1323
|
-
const k = [...v];
|
|
1324
|
-
if (y) {
|
|
1325
|
-
const b = v.some((G) => G.isPrimaryKey);
|
|
1326
|
-
e.name === d.primaryKey && !b ? (k.push({ ...U, isPrimaryKey: !0 }), n.setValue("primaryKey", e.name)) : k.push(U);
|
|
1327
|
-
} else {
|
|
1328
|
-
const b = k.findIndex((G) => G.name === M[r].name);
|
|
1329
|
-
if (b > -1) {
|
|
1330
|
-
const G = k[b].isPrimaryKey;
|
|
1331
|
-
k.splice(b, 1), G && n.setValue("primaryKey", "");
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
D(k), n.setValue("selectedColumns", k, { shouldDirty: !0 });
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
), u = /* @__PURE__ */ a(
|
|
1338
|
-
O,
|
|
1339
|
-
{
|
|
1340
|
-
sx: {
|
|
1341
|
-
height: "2rem",
|
|
1342
|
-
marginRight: m ? 1 : 0,
|
|
1343
|
-
paddingRight: m ? 1 : 0
|
|
1344
|
-
},
|
|
1345
|
-
children: /* @__PURE__ */ a(x, { iconName: "faKey", className: "text-lg text-[#d3bb51]" })
|
|
1346
|
-
}
|
|
1347
|
-
);
|
|
1348
|
-
return /* @__PURE__ */ a(
|
|
1349
|
-
J,
|
|
1350
|
-
{
|
|
1351
|
-
className: `border-b ${r === _.length - 1 ? "border-none" : "border-[#ccc]"}`,
|
|
1352
|
-
sx: { "&:hover": { backgroundColor: "#e9f3ff" } },
|
|
1353
|
-
children: /* @__PURE__ */ s(
|
|
1354
|
-
X,
|
|
1355
|
-
{
|
|
1356
|
-
sx: {
|
|
1357
|
-
p: 0,
|
|
1358
|
-
px: 2,
|
|
1359
|
-
display: "flex",
|
|
1360
|
-
justifyContent: "space-between",
|
|
1361
|
-
alignItems: "center"
|
|
1362
|
-
},
|
|
1363
|
-
children: [
|
|
1364
|
-
/* @__PURE__ */ s(
|
|
1365
|
-
c,
|
|
1366
|
-
{
|
|
1367
|
-
variant: "caption",
|
|
1368
|
-
className: "w-full text-ellipsis cursor-pointer align-content-center",
|
|
1369
|
-
children: [
|
|
1370
|
-
e.name,
|
|
1371
|
-
" (",
|
|
1372
|
-
e.type,
|
|
1373
|
-
")"
|
|
1374
|
-
]
|
|
1375
|
-
}
|
|
1376
|
-
),
|
|
1377
|
-
m ? t ? i ? u : /* @__PURE__ */ s(f, { sx: { display: "flex", alignItems: "center" }, children: [
|
|
1378
|
-
u,
|
|
1379
|
-
/* @__PURE__ */ a(
|
|
1380
|
-
E,
|
|
1381
|
-
{
|
|
1382
|
-
title: m && !$ && e.name === d.primaryKey ? "Primary key cannot be unsynced in edit mode." : "",
|
|
1383
|
-
arrow: !0,
|
|
1384
|
-
placement: "top",
|
|
1385
|
-
children: /* @__PURE__ */ a("span", { children: o })
|
|
1386
|
-
}
|
|
1387
|
-
)
|
|
1388
|
-
] }) : o : l ? /* @__PURE__ */ a(
|
|
1389
|
-
f,
|
|
1390
|
-
{
|
|
1391
|
-
sx: {
|
|
1392
|
-
backgroundColor: "#4caf50",
|
|
1393
|
-
borderRadius: "50%",
|
|
1394
|
-
width: 20,
|
|
1395
|
-
height: 20,
|
|
1396
|
-
display: "flex",
|
|
1397
|
-
alignItems: "center",
|
|
1398
|
-
justifyContent: "center",
|
|
1399
|
-
margin: "9px 0px"
|
|
1400
|
-
},
|
|
1401
|
-
children: /* @__PURE__ */ a(x, { iconName: "faRotate", className: "text-white text-xs" })
|
|
1402
|
-
}
|
|
1403
|
-
) : t ? u : /* @__PURE__ */ a(
|
|
1404
|
-
f,
|
|
1405
|
-
{
|
|
1406
|
-
sx: {
|
|
1407
|
-
backgroundColor: "#001e3c",
|
|
1408
|
-
borderRadius: "50%",
|
|
1409
|
-
width: 20,
|
|
1410
|
-
height: 20,
|
|
1411
|
-
display: "flex",
|
|
1412
|
-
alignItems: "center",
|
|
1413
|
-
justifyContent: "center",
|
|
1414
|
-
margin: "9px 0px"
|
|
1415
|
-
},
|
|
1416
|
-
children: /* @__PURE__ */ a(x, { iconName: "faBan", className: "text-white pl-[0.5px]" })
|
|
1417
|
-
}
|
|
1418
|
-
)
|
|
1419
|
-
]
|
|
1420
|
-
}
|
|
1421
|
-
)
|
|
1422
|
-
},
|
|
1423
|
-
r + 1
|
|
1424
|
-
);
|
|
1425
|
-
}) : /* @__PURE__ */ a(J, { children: /* @__PURE__ */ a(X, { colSpan: 1, className: "p-2", children: /* @__PURE__ */ a(c, { variant: "body2", children: "No columns for search query." }) }) }) })
|
|
1426
|
-
] })
|
|
1427
|
-
}
|
|
1428
|
-
)
|
|
1429
|
-
] }) })
|
|
1430
|
-
] })
|
|
1431
|
-
] })
|
|
1432
|
-
}
|
|
1433
|
-
),
|
|
1434
|
-
Re && /* @__PURE__ */ a(ya, { open: Re, onClose: ra, children: /* @__PURE__ */ s(f, { sx: { ...Ca }, children: [
|
|
1435
|
-
/* @__PURE__ */ s(f, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", mb: 2 }, children: [
|
|
1436
|
-
/* @__PURE__ */ a(c, { variant: "h6", children: "Generated Migration Script" }),
|
|
1437
|
-
/* @__PURE__ */ s(c, { variant: "body2", children: [
|
|
1438
|
-
"From : ",
|
|
1439
|
-
/* @__PURE__ */ s("strong", { children: [
|
|
1440
|
-
"v",
|
|
1441
|
-
te == null ? void 0 : te.from_version
|
|
1442
|
-
] }),
|
|
1443
|
-
" ",
|
|
1444
|
-
/* @__PURE__ */ a(x, { iconName: "faArrowRight", size: "sm", className: "m-[0.3rem 0.3rem 0 0.3rem]" }),
|
|
1445
|
-
" To :",
|
|
1446
|
-
" ",
|
|
1447
|
-
/* @__PURE__ */ s("strong", { children: [
|
|
1448
|
-
"v",
|
|
1449
|
-
te == null ? void 0 : te.to_version
|
|
1450
|
-
] })
|
|
1451
|
-
] })
|
|
1452
|
-
] }),
|
|
1453
|
-
/* @__PURE__ */ a(
|
|
1454
|
-
ie,
|
|
1455
|
-
{
|
|
1456
|
-
height: "50vh",
|
|
1457
|
-
defaultLanguage: "sql",
|
|
1458
|
-
theme: "light",
|
|
1459
|
-
options: {
|
|
1460
|
-
fontSize: 12,
|
|
1461
|
-
minimap: { enabled: !0 },
|
|
1462
|
-
automaticLayout: !0,
|
|
1463
|
-
scrollBeyondLastLine: !1,
|
|
1464
|
-
wordWrap: "on",
|
|
1465
|
-
occurrencesHighlight: !1,
|
|
1466
|
-
selectionHighlight: !1
|
|
1467
|
-
},
|
|
1468
|
-
value: Q || "",
|
|
1469
|
-
defaultValue: Q || "",
|
|
1470
|
-
onChange: la,
|
|
1471
|
-
editorProps: { $blockScrolling: !0 }
|
|
1472
|
-
}
|
|
1473
|
-
),
|
|
1474
|
-
/* @__PURE__ */ a(P, { variant: "contained", color: "primary", className: "mt-2", onClick: () => Be(null, !0), children: "OK" })
|
|
1475
|
-
] }) })
|
|
1476
|
-
]
|
|
1477
|
-
}
|
|
1478
|
-
);
|
|
1479
|
-
}
|
|
1480
|
-
const Ca = {
|
|
1481
|
-
position: "absolute",
|
|
1482
|
-
top: "50%",
|
|
1483
|
-
left: "50%",
|
|
1484
|
-
transform: "translate(-50%, -50%)",
|
|
1485
|
-
width: "50%",
|
|
1486
|
-
height: "70%",
|
|
1487
|
-
bgcolor: "background.paper",
|
|
1488
|
-
boxShadow: 24,
|
|
1489
|
-
padding: "15px",
|
|
1490
|
-
borderRadius: "8px"
|
|
1491
|
-
};
|
|
1492
|
-
va.propTypes = {
|
|
1493
|
-
tableInfo: N.any,
|
|
1494
|
-
table: N.any,
|
|
1495
|
-
isEditMode: N.bool,
|
|
1496
|
-
updateEditMode: N.any,
|
|
1497
|
-
tableCompleteInfo: N.any,
|
|
1498
|
-
reloadComponents: N.any,
|
|
1499
|
-
isCreateTableMode: N.bool,
|
|
1500
|
-
isSyncTableMode: N.bool,
|
|
1501
|
-
updateCreateTableMode: N.any,
|
|
1502
|
-
openDeleteModal: N.bool,
|
|
1503
|
-
setOpenDeleteModal: N.func
|
|
1504
|
-
};
|
|
1505
|
-
export {
|
|
1506
|
-
va as default
|
|
1507
|
-
};
|
|
1508
|
-
//# sourceMappingURL=TableDetails-DzREeJkm-B-WEBbQz.js.map
|