flowcore-fn 9.2.9 → 9.3.1
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/pkg-index.js +496 -431
- package/dist/pkg-index.mjs +161 -96
- package/package.json +1 -1
package/dist/pkg-index.js
CHANGED
|
@@ -55,12 +55,62 @@ __export(pkg_index_exports, {
|
|
|
55
55
|
module.exports = __toCommonJS(pkg_index_exports);
|
|
56
56
|
|
|
57
57
|
// src/components/Sidebar.jsx
|
|
58
|
-
var
|
|
59
|
-
var
|
|
58
|
+
var import_react86 = require("react");
|
|
59
|
+
var import_react87 = require("@remixicon/react");
|
|
60
60
|
var import_router = require("next/router");
|
|
61
61
|
|
|
62
62
|
// src/components/workflow/WorkflowMain.jsx
|
|
63
63
|
var import_react9 = __toESM(require("react"));
|
|
64
|
+
var import_react10 = require("react");
|
|
65
|
+
var import_sweetalert2 = __toESM(require("sweetalert2"));
|
|
66
|
+
|
|
67
|
+
// src/components/Service/ApiEndpointsProvider.js
|
|
68
|
+
var STORAGE_KEY = "FLOWCORE_API_ENDPOINTS";
|
|
69
|
+
var apiEndpoints = null;
|
|
70
|
+
var ApiEndpointsProvider = ({ apiEndpoints: endpoints }) => {
|
|
71
|
+
if (typeof window !== "undefined" && endpoints) {
|
|
72
|
+
apiEndpoints = endpoints;
|
|
73
|
+
sessionStorage.setItem(
|
|
74
|
+
STORAGE_KEY,
|
|
75
|
+
JSON.stringify(endpoints)
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
return null;
|
|
79
|
+
};
|
|
80
|
+
var getApiEndpoints = () => {
|
|
81
|
+
if (apiEndpoints) {
|
|
82
|
+
return apiEndpoints;
|
|
83
|
+
}
|
|
84
|
+
if (typeof window !== "undefined") {
|
|
85
|
+
const data = sessionStorage.getItem(STORAGE_KEY);
|
|
86
|
+
if (data) {
|
|
87
|
+
apiEndpoints = JSON.parse(data);
|
|
88
|
+
return apiEndpoints;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
throw new Error(
|
|
92
|
+
"Api Endpoints not initialized. Please render <ApiEndpointsProvider apiEndpoints={ApiEndPoints} /> once before using FlowCore."
|
|
93
|
+
);
|
|
94
|
+
};
|
|
95
|
+
var ApiEndpointsProvider_default = ApiEndpointsProvider;
|
|
96
|
+
|
|
97
|
+
// src/components/Service/ApiServicepackage.js
|
|
98
|
+
var apiService = null;
|
|
99
|
+
var ApiServicepackage = ({ apiService: service }) => {
|
|
100
|
+
if (service) {
|
|
101
|
+
apiService = service;
|
|
102
|
+
}
|
|
103
|
+
return null;
|
|
104
|
+
};
|
|
105
|
+
var getApiService = () => {
|
|
106
|
+
if (apiService) {
|
|
107
|
+
return apiService;
|
|
108
|
+
}
|
|
109
|
+
throw new Error(
|
|
110
|
+
"ApiService not initialized. Please render <ApiServicepackage apiService={ApiService} /> once before using FlowCore."
|
|
111
|
+
);
|
|
112
|
+
};
|
|
113
|
+
var ApiServicepackage_default = ApiServicepackage;
|
|
64
114
|
|
|
65
115
|
// src/components/workflow/SearchBar.jsx
|
|
66
116
|
var import_react = __toESM(require("react"));
|
|
@@ -306,7 +356,7 @@ function DeleteModal({
|
|
|
306
356
|
|
|
307
357
|
// src/components/workflow/WorkflowTable.jsx
|
|
308
358
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
309
|
-
function WorkflowTable({ pageSize, searchQuery }) {
|
|
359
|
+
function WorkflowTable({ pageSize, searchQuery, apiData }) {
|
|
310
360
|
const initialData = [
|
|
311
361
|
{
|
|
312
362
|
id: "1",
|
|
@@ -417,7 +467,10 @@ function WorkflowTable({ pageSize, searchQuery }) {
|
|
|
417
467
|
status: true
|
|
418
468
|
}
|
|
419
469
|
];
|
|
420
|
-
const [data, setData] = (0, import_react4.useState)(initialData);
|
|
470
|
+
const [data, setData] = (0, import_react4.useState)(apiData || initialData);
|
|
471
|
+
import_react4.default.useEffect(() => {
|
|
472
|
+
if (apiData) setData(apiData);
|
|
473
|
+
}, [apiData]);
|
|
421
474
|
const filteredData = data.filter(
|
|
422
475
|
(item) => item.name.toLowerCase().includes((searchQuery || "").toLowerCase()) || item.code.toLowerCase().includes((searchQuery || "").toLowerCase())
|
|
423
476
|
);
|
|
@@ -982,6 +1035,25 @@ function Workflow() {
|
|
|
982
1035
|
const [modalOpen, setModalOpen] = (0, import_react9.useState)(false);
|
|
983
1036
|
const [pageSize, setPageSize] = (0, import_react9.useState)(10);
|
|
984
1037
|
const [searchQuery, setSearchQuery] = (0, import_react9.useState)("");
|
|
1038
|
+
const [apiData, setApiData] = (0, import_react9.useState)([]);
|
|
1039
|
+
(0, import_react10.useEffect)(() => {
|
|
1040
|
+
(async () => {
|
|
1041
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1042
|
+
try {
|
|
1043
|
+
const endpoint = (_c = (_b = (_a = getApiEndpoints()) == null ? void 0 : _a.flowCore) == null ? void 0 : _b.workflow) == null ? void 0 : _c.getList;
|
|
1044
|
+
if (!endpoint) throw Error("Workflow list endpoint is not configured.");
|
|
1045
|
+
const result = await getApiService().get(endpoint);
|
|
1046
|
+
const value = ((_d = result == null ? void 0 : result.data) == null ? void 0 : _d.data) || ((_e = result == null ? void 0 : result.data) == null ? void 0 : _e.result) || (result == null ? void 0 : result.data) || result;
|
|
1047
|
+
const rows = Array.isArray(value) ? value : (value == null ? void 0 : value.items) || (value == null ? void 0 : value.records) || [];
|
|
1048
|
+
setApiData(rows.map((item) => {
|
|
1049
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i, _j;
|
|
1050
|
+
return __spreadProps(__spreadValues({}, item), { id: (_b2 = (_a2 = item.id) != null ? _a2 : item.workflowId) != null ? _b2 : item.WorkflowId, name: (_d2 = (_c2 = item.name) != null ? _c2 : item.workflowName) != null ? _d2 : item.WorkflowName, code: (_f2 = (_e2 = item.code) != null ? _e2 : item.workflowCode) != null ? _f2 : item.WorkflowCode, type: (_h = (_g2 = item.type) != null ? _g2 : item.workflowTypeName) != null ? _h : item.WorkflowTypeName, status: (_j = (_i = item.status) != null ? _i : item.isActive) != null ? _j : item.IsActive });
|
|
1051
|
+
}));
|
|
1052
|
+
} catch (error) {
|
|
1053
|
+
await import_sweetalert2.default.fire("Error", ((_g = (_f = error == null ? void 0 : error.response) == null ? void 0 : _f.data) == null ? void 0 : _g.message) || (error == null ? void 0 : error.message) || "Unable to load workflows.", "error");
|
|
1054
|
+
}
|
|
1055
|
+
})();
|
|
1056
|
+
}, [refreshKey]);
|
|
985
1057
|
const tableRef = (0, import_react9.useRef)(null);
|
|
986
1058
|
const handleRefresh = () => {
|
|
987
1059
|
console.log("Table data refreshed!");
|
|
@@ -1047,6 +1119,7 @@ function Workflow() {
|
|
|
1047
1119
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "fc:flex-1 fc:overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { ref: tableRef, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1048
1120
|
WorkflowTable,
|
|
1049
1121
|
{
|
|
1122
|
+
apiData,
|
|
1050
1123
|
pageSize,
|
|
1051
1124
|
searchQuery
|
|
1052
1125
|
},
|
|
@@ -1065,10 +1138,11 @@ function Workflow() {
|
|
|
1065
1138
|
}
|
|
1066
1139
|
|
|
1067
1140
|
// src/components/workflow-type/WorkflowTypeMains.js
|
|
1068
|
-
var
|
|
1141
|
+
var import_react16 = __toESM(require("react"));
|
|
1142
|
+
var import_sweetalert23 = __toESM(require("sweetalert2"));
|
|
1069
1143
|
|
|
1070
1144
|
// src/components/workflow-type/SearchBar.jsx
|
|
1071
|
-
var
|
|
1145
|
+
var import_react11 = __toESM(require("react"));
|
|
1072
1146
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1073
1147
|
function SearchBar2({
|
|
1074
1148
|
searchQuery,
|
|
@@ -1092,10 +1166,10 @@ function SearchBar2({
|
|
|
1092
1166
|
}
|
|
1093
1167
|
|
|
1094
1168
|
// src/components/workflow-type/WorkflowTypeTable.jsx
|
|
1095
|
-
var
|
|
1169
|
+
var import_react14 = __toESM(require("react"));
|
|
1096
1170
|
|
|
1097
1171
|
// src/components/workflow-type/DeleteWorkflowType.jsx
|
|
1098
|
-
var
|
|
1172
|
+
var import_react12 = __toESM(require("react"));
|
|
1099
1173
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1100
1174
|
var DeleteWorkflowType = ({
|
|
1101
1175
|
isOpen,
|
|
@@ -1132,7 +1206,7 @@ var DeleteWorkflowType = ({
|
|
|
1132
1206
|
var DeleteWorkflowType_default = DeleteWorkflowType;
|
|
1133
1207
|
|
|
1134
1208
|
// src/components/workflow-type/EditWorkflowType.jsx
|
|
1135
|
-
var
|
|
1209
|
+
var import_react13 = __toESM(require("react"));
|
|
1136
1210
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1137
1211
|
var EditWorkflowType = ({
|
|
1138
1212
|
isOpen,
|
|
@@ -1140,13 +1214,13 @@ var EditWorkflowType = ({
|
|
|
1140
1214
|
onSave,
|
|
1141
1215
|
selectedData
|
|
1142
1216
|
}) => {
|
|
1143
|
-
const [formData, setFormData] = (0,
|
|
1217
|
+
const [formData, setFormData] = (0, import_react13.useState)({
|
|
1144
1218
|
workflowTypeCode: "",
|
|
1145
1219
|
workflowTypeName: "",
|
|
1146
1220
|
description: "",
|
|
1147
1221
|
isActive: true
|
|
1148
1222
|
});
|
|
1149
|
-
(0,
|
|
1223
|
+
(0, import_react13.useEffect)(() => {
|
|
1150
1224
|
var _a, _b;
|
|
1151
1225
|
if (selectedData) {
|
|
1152
1226
|
setFormData({
|
|
@@ -1212,7 +1286,8 @@ function WorkflowTypeTable({
|
|
|
1212
1286
|
searchQuery = "",
|
|
1213
1287
|
currentPage,
|
|
1214
1288
|
setCurrentPage,
|
|
1215
|
-
setTotalEntries
|
|
1289
|
+
setTotalEntries,
|
|
1290
|
+
apiData
|
|
1216
1291
|
}) {
|
|
1217
1292
|
const initialData = [{
|
|
1218
1293
|
workflowTypeId: 1,
|
|
@@ -1465,12 +1540,15 @@ function WorkflowTypeTable({
|
|
|
1465
1540
|
updatedOn: "2026-01-29",
|
|
1466
1541
|
updatedBy: "Officer"
|
|
1467
1542
|
}];
|
|
1468
|
-
const [data, setData] = (0,
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
const [
|
|
1473
|
-
const [
|
|
1543
|
+
const [data, setData] = (0, import_react14.useState)(apiData || initialData);
|
|
1544
|
+
(0, import_react14.useEffect)(() => {
|
|
1545
|
+
if (apiData) setData(apiData);
|
|
1546
|
+
}, [apiData]);
|
|
1547
|
+
const [sortOrder, setSortOrder] = (0, import_react14.useState)("asc");
|
|
1548
|
+
const [sortKey, setSortKey] = (0, import_react14.useState)("workflowTypeId");
|
|
1549
|
+
const [selectedItem, setSelectedItem] = (0, import_react14.useState)(null);
|
|
1550
|
+
const [isEditOpen, setIsEditOpen] = (0, import_react14.useState)(false);
|
|
1551
|
+
const [isDeleteOpen, setIsDeleteOpen] = (0, import_react14.useState)(false);
|
|
1474
1552
|
const handleSort = (columnKey) => {
|
|
1475
1553
|
const isAsc = sortKey === columnKey && sortOrder === "asc";
|
|
1476
1554
|
setSortOrder(isAsc ? "desc" : "asc");
|
|
@@ -1486,7 +1564,7 @@ function WorkflowTypeTable({
|
|
|
1486
1564
|
const query = (searchQuery || "").toLowerCase();
|
|
1487
1565
|
return item.workflowTypeName.toLowerCase().includes(query) || item.workflowTypeCode.toLowerCase().includes(query) || item.description.toLowerCase().includes(query);
|
|
1488
1566
|
});
|
|
1489
|
-
(0,
|
|
1567
|
+
(0, import_react14.useEffect)(() => {
|
|
1490
1568
|
if (setTotalEntries) setTotalEntries(filteredData.length);
|
|
1491
1569
|
}, [filteredData.length, setTotalEntries]);
|
|
1492
1570
|
const totalPages = Math.ceil(filteredData.length / pageSize) || 1;
|
|
@@ -1560,57 +1638,8 @@ function WorkflowTypeTable({
|
|
|
1560
1638
|
}
|
|
1561
1639
|
|
|
1562
1640
|
// src/components/workflow-type/AddWorkflowTypeModal.jsx
|
|
1563
|
-
var
|
|
1564
|
-
|
|
1565
|
-
// src/components/Service/ApiEndpointsProvider.js
|
|
1566
|
-
var STORAGE_KEY = "FLOWCORE_API_ENDPOINTS";
|
|
1567
|
-
var apiEndpoints = null;
|
|
1568
|
-
var ApiEndpointsProvider = ({ apiEndpoints: endpoints }) => {
|
|
1569
|
-
if (typeof window !== "undefined" && endpoints) {
|
|
1570
|
-
apiEndpoints = endpoints;
|
|
1571
|
-
sessionStorage.setItem(
|
|
1572
|
-
STORAGE_KEY,
|
|
1573
|
-
JSON.stringify(endpoints)
|
|
1574
|
-
);
|
|
1575
|
-
}
|
|
1576
|
-
return null;
|
|
1577
|
-
};
|
|
1578
|
-
var getApiEndpoints = () => {
|
|
1579
|
-
if (apiEndpoints) {
|
|
1580
|
-
return apiEndpoints;
|
|
1581
|
-
}
|
|
1582
|
-
if (typeof window !== "undefined") {
|
|
1583
|
-
const data = sessionStorage.getItem(STORAGE_KEY);
|
|
1584
|
-
if (data) {
|
|
1585
|
-
apiEndpoints = JSON.parse(data);
|
|
1586
|
-
return apiEndpoints;
|
|
1587
|
-
}
|
|
1588
|
-
}
|
|
1589
|
-
throw new Error(
|
|
1590
|
-
"Api Endpoints not initialized. Please render <ApiEndpointsProvider apiEndpoints={ApiEndPoints} /> once before using FlowCore."
|
|
1591
|
-
);
|
|
1592
|
-
};
|
|
1593
|
-
var ApiEndpointsProvider_default = ApiEndpointsProvider;
|
|
1594
|
-
|
|
1595
|
-
// src/components/Service/ApiServicepackage.js
|
|
1596
|
-
var apiService = null;
|
|
1597
|
-
var ApiServicepackage = ({ apiService: service }) => {
|
|
1598
|
-
if (service) {
|
|
1599
|
-
apiService = service;
|
|
1600
|
-
}
|
|
1601
|
-
return null;
|
|
1602
|
-
};
|
|
1603
|
-
var getApiService = () => {
|
|
1604
|
-
if (apiService) {
|
|
1605
|
-
return apiService;
|
|
1606
|
-
}
|
|
1607
|
-
throw new Error(
|
|
1608
|
-
"ApiService not initialized. Please render <ApiServicepackage apiService={ApiService} /> once before using FlowCore."
|
|
1609
|
-
);
|
|
1610
|
-
};
|
|
1611
|
-
var ApiServicepackage_default = ApiServicepackage;
|
|
1612
|
-
|
|
1613
|
-
// src/components/workflow-type/AddWorkflowTypeModal.jsx
|
|
1641
|
+
var import_react15 = __toESM(require("react"));
|
|
1642
|
+
var import_sweetalert22 = __toESM(require("sweetalert2"));
|
|
1614
1643
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1615
1644
|
var initialFormData = {
|
|
1616
1645
|
workflowTypeCode: "",
|
|
@@ -1619,12 +1648,12 @@ var initialFormData = {
|
|
|
1619
1648
|
createdBy: ""
|
|
1620
1649
|
};
|
|
1621
1650
|
var AddWorkflowTypeModal = ({ isOpen, onClose, onSave, createdBy = "" }) => {
|
|
1622
|
-
const [formData, setFormData] = (0,
|
|
1651
|
+
const [formData, setFormData] = (0, import_react15.useState)(__spreadProps(__spreadValues({}, initialFormData), {
|
|
1623
1652
|
createdBy
|
|
1624
1653
|
}));
|
|
1625
|
-
const [errors, setErrors] = (0,
|
|
1626
|
-
const [isSubmitting, setIsSubmitting] = (0,
|
|
1627
|
-
const [submitError, setSubmitError] = (0,
|
|
1654
|
+
const [errors, setErrors] = (0, import_react15.useState)({});
|
|
1655
|
+
const [isSubmitting, setIsSubmitting] = (0, import_react15.useState)(false);
|
|
1656
|
+
const [submitError, setSubmitError] = (0, import_react15.useState)("");
|
|
1628
1657
|
const handleChange = ({ target: { name, value } }) => {
|
|
1629
1658
|
if (name === "description" && value.length > 500) return;
|
|
1630
1659
|
setFormData((previous) => __spreadProps(__spreadValues({}, previous), { [name]: value }));
|
|
@@ -1656,7 +1685,7 @@ var AddWorkflowTypeModal = ({ isOpen, onClose, onSave, createdBy = "" }) => {
|
|
|
1656
1685
|
setIsSubmitting(true);
|
|
1657
1686
|
setSubmitError("");
|
|
1658
1687
|
const endpoints = getApiEndpoints();
|
|
1659
|
-
const endpoint = (_b = (_a = endpoints == null ? void 0 : endpoints.flowCore) == null ? void 0 : _a.
|
|
1688
|
+
const endpoint = (_b = (_a = endpoints == null ? void 0 : endpoints.flowCore) == null ? void 0 : _a.workflowType) == null ? void 0 : _b.create;
|
|
1660
1689
|
if (!endpoint) throw new Error("Create workflow type endpoint is not configured.");
|
|
1661
1690
|
const response = await getApiService().post(endpoint, payload);
|
|
1662
1691
|
await (onSave == null ? void 0 : onSave((_c = response == null ? void 0 : response.data) != null ? _c : response));
|
|
@@ -1664,9 +1693,9 @@ var AddWorkflowTypeModal = ({ isOpen, onClose, onSave, createdBy = "" }) => {
|
|
|
1664
1693
|
setErrors({});
|
|
1665
1694
|
onClose();
|
|
1666
1695
|
} catch (error) {
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
);
|
|
1696
|
+
const message = ((_e = (_d = error == null ? void 0 : error.response) == null ? void 0 : _d.data) == null ? void 0 : _e.message) || (error == null ? void 0 : error.message) || "Unable to create workflow type. Please try again.";
|
|
1697
|
+
setSubmitError(message);
|
|
1698
|
+
await import_sweetalert22.default.fire("Error", message, "error");
|
|
1670
1699
|
} finally {
|
|
1671
1700
|
setIsSubmitting(false);
|
|
1672
1701
|
}
|
|
@@ -1714,20 +1743,35 @@ var AddWorkflowTypeModal_default = AddWorkflowTypeModal;
|
|
|
1714
1743
|
// src/components/workflow-type/WorkflowTypeMains.js
|
|
1715
1744
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1716
1745
|
function WorkflowTypeMains() {
|
|
1717
|
-
const [refreshkey, setRefreshKey] = (0,
|
|
1746
|
+
const [refreshkey, setRefreshKey] = (0, import_react16.useState)(0);
|
|
1718
1747
|
const handleRefresh = () => {
|
|
1719
1748
|
console.log("Table data refreshed!");
|
|
1720
1749
|
setRefreshKey((prev) => prev + 1);
|
|
1721
1750
|
};
|
|
1722
|
-
const tableRef = (0,
|
|
1723
|
-
const [modalOpen, setModalOpen] = (0,
|
|
1724
|
-
const [pageSize, setPageSize] = (0,
|
|
1725
|
-
const [searchQuery, setSearchQuery] = (0,
|
|
1726
|
-
const [currentPage, setCurrentPage] = (0,
|
|
1727
|
-
const [totalEntries, setTotalEntries] = (0,
|
|
1728
|
-
const [isEditOpen, setIsEditOpen] = (0,
|
|
1729
|
-
const [isDeleteOpen, setIsDeleteOpen] = (0,
|
|
1730
|
-
const [selectedItem, setSelectedItem] = (0,
|
|
1751
|
+
const tableRef = (0, import_react16.useRef)(null);
|
|
1752
|
+
const [modalOpen, setModalOpen] = (0, import_react16.useState)(false);
|
|
1753
|
+
const [pageSize, setPageSize] = (0, import_react16.useState)(10);
|
|
1754
|
+
const [searchQuery, setSearchQuery] = (0, import_react16.useState)("");
|
|
1755
|
+
const [currentPage, setCurrentPage] = (0, import_react16.useState)(1);
|
|
1756
|
+
const [totalEntries, setTotalEntries] = (0, import_react16.useState)(0);
|
|
1757
|
+
const [isEditOpen, setIsEditOpen] = (0, import_react16.useState)(false);
|
|
1758
|
+
const [isDeleteOpen, setIsDeleteOpen] = (0, import_react16.useState)(false);
|
|
1759
|
+
const [selectedItem, setSelectedItem] = (0, import_react16.useState)(null);
|
|
1760
|
+
const [apiData, setApiData] = (0, import_react16.useState)([]);
|
|
1761
|
+
(0, import_react16.useEffect)(() => {
|
|
1762
|
+
(async () => {
|
|
1763
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1764
|
+
try {
|
|
1765
|
+
const endpoint = (_c = (_b = (_a = getApiEndpoints()) == null ? void 0 : _a.flowCore) == null ? void 0 : _b.workflowType) == null ? void 0 : _c.getList;
|
|
1766
|
+
if (!endpoint) throw new Error("Workflow type list endpoint is not configured.");
|
|
1767
|
+
const result = await getApiService().get(endpoint);
|
|
1768
|
+
const value = ((_d = result == null ? void 0 : result.data) == null ? void 0 : _d.data) || ((_e = result == null ? void 0 : result.data) == null ? void 0 : _e.result) || (result == null ? void 0 : result.data) || result;
|
|
1769
|
+
setApiData(Array.isArray(value) ? value : (value == null ? void 0 : value.items) || (value == null ? void 0 : value.records) || []);
|
|
1770
|
+
} catch (error) {
|
|
1771
|
+
await import_sweetalert23.default.fire("Error", ((_g = (_f = error == null ? void 0 : error.response) == null ? void 0 : _f.data) == null ? void 0 : _g.message) || (error == null ? void 0 : error.message) || "Unable to load workflow types.", "error");
|
|
1772
|
+
}
|
|
1773
|
+
})();
|
|
1774
|
+
}, [refreshkey]);
|
|
1731
1775
|
const handlePageSizeChange = (e) => {
|
|
1732
1776
|
setPageSize(Number(e.target.value));
|
|
1733
1777
|
setCurrentPage(1);
|
|
@@ -1772,7 +1816,7 @@ function WorkflowTypeMains() {
|
|
|
1772
1816
|
] })
|
|
1773
1817
|
] }),
|
|
1774
1818
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { ref: tableRef, children: [
|
|
1775
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(WorkflowTypeTable, { pageSize, searchQuery, currentPage, setCurrentPage, setTotalEntries, onEdit: handleEdit, onDelete: handleDelete }, refreshkey),
|
|
1819
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(WorkflowTypeTable, { apiData, pageSize, searchQuery, currentPage, setCurrentPage, setTotalEntries, onEdit: handleEdit, onDelete: handleDelete }, refreshkey),
|
|
1776
1820
|
" "
|
|
1777
1821
|
] })
|
|
1778
1822
|
] }) }),
|
|
@@ -1783,10 +1827,10 @@ function WorkflowTypeMains() {
|
|
|
1783
1827
|
}
|
|
1784
1828
|
|
|
1785
1829
|
// src/components/WorkflowStep/main.js
|
|
1786
|
-
var
|
|
1830
|
+
var import_react19 = __toESM(require("react"));
|
|
1787
1831
|
|
|
1788
1832
|
// src/components/Common/footer.js
|
|
1789
|
-
var
|
|
1833
|
+
var import_react17 = __toESM(require("react"));
|
|
1790
1834
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1791
1835
|
function Footer() {
|
|
1792
1836
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:px-6 fc:py-4 fc:sticky fc:bottom-0 fc:z-10 fc:border-t fc:border-gray-200 fc:rounded-xl fc:bg-slate-50/50 fc:shadow-md", children: [
|
|
@@ -1806,10 +1850,10 @@ function Footer() {
|
|
|
1806
1850
|
var import_link2 = __toESM(require("next/link"));
|
|
1807
1851
|
|
|
1808
1852
|
// src/components/WorkflowStep/AddWorkflowStepModal.js
|
|
1809
|
-
var
|
|
1853
|
+
var import_react18 = __toESM(require("react"));
|
|
1810
1854
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1811
1855
|
function AddWorkflowStepModal({ onClose }) {
|
|
1812
|
-
const [formData, setFormData] = (0,
|
|
1856
|
+
const [formData, setFormData] = (0, import_react18.useState)({
|
|
1813
1857
|
workflow: "",
|
|
1814
1858
|
stepCode: "",
|
|
1815
1859
|
stepName: "",
|
|
@@ -1822,7 +1866,7 @@ function AddWorkflowStepModal({ onClose }) {
|
|
|
1822
1866
|
excludeHolidays: true,
|
|
1823
1867
|
status: "active"
|
|
1824
1868
|
});
|
|
1825
|
-
const [errors, setErrors] = (0,
|
|
1869
|
+
const [errors, setErrors] = (0, import_react18.useState)({});
|
|
1826
1870
|
const handleChange = (field, value) => {
|
|
1827
1871
|
setFormData((prev) => __spreadProps(__spreadValues({}, prev), { [field]: value }));
|
|
1828
1872
|
if (errors[field]) {
|
|
@@ -2298,10 +2342,10 @@ function WorkflowStep() {
|
|
|
2298
2342
|
const handleDownload = () => {
|
|
2299
2343
|
console.log("Download clicked");
|
|
2300
2344
|
};
|
|
2301
|
-
const tableRef = (0,
|
|
2302
|
-
const [showModal, setShowModal] = (0,
|
|
2303
|
-
const [pageSize, setPageSize] = (0,
|
|
2304
|
-
const [sortConfig, setSortConfig] = (0,
|
|
2345
|
+
const tableRef = (0, import_react19.useRef)(null);
|
|
2346
|
+
const [showModal, setShowModal] = (0, import_react19.useState)(false);
|
|
2347
|
+
const [pageSize, setPageSize] = (0, import_react19.useState)(5);
|
|
2348
|
+
const [sortConfig, setSortConfig] = (0, import_react19.useState)({
|
|
2305
2349
|
key: "",
|
|
2306
2350
|
direction: "asc"
|
|
2307
2351
|
});
|
|
@@ -2403,14 +2447,14 @@ function WorkflowStep() {
|
|
|
2403
2447
|
}
|
|
2404
2448
|
|
|
2405
2449
|
// src/components/WorkFlowTransition/Transitiontable.js
|
|
2406
|
-
var
|
|
2450
|
+
var import_react21 = __toESM(require("react"));
|
|
2407
2451
|
var import_link3 = __toESM(require("next/link"));
|
|
2408
2452
|
|
|
2409
2453
|
// src/components/WorkFlowTransition/AddWorkFlowTransitionModal.js
|
|
2410
|
-
var
|
|
2454
|
+
var import_react20 = __toESM(require("react"));
|
|
2411
2455
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
2412
2456
|
function AddWorkTransitionStepModal({ onClose, onSubmit }) {
|
|
2413
|
-
const [formData, setFormData] = (0,
|
|
2457
|
+
const [formData, setFormData] = (0, import_react20.useState)({
|
|
2414
2458
|
workflow: "",
|
|
2415
2459
|
fromStep: "",
|
|
2416
2460
|
toStep: "",
|
|
@@ -2421,7 +2465,7 @@ function AddWorkTransitionStepModal({ onClose, onSubmit }) {
|
|
|
2421
2465
|
requireComment: false,
|
|
2422
2466
|
status: "active"
|
|
2423
2467
|
});
|
|
2424
|
-
const [errors, setErrors] = (0,
|
|
2468
|
+
const [errors, setErrors] = (0, import_react20.useState)({});
|
|
2425
2469
|
const validateForm = () => {
|
|
2426
2470
|
const newErrors = {};
|
|
2427
2471
|
if (!formData.workflow) newErrors.workflow = "Workflow is required.";
|
|
@@ -2852,10 +2896,10 @@ function WorkFlowTransition() {
|
|
|
2852
2896
|
const handleDownload = () => {
|
|
2853
2897
|
console.log("Download clicked");
|
|
2854
2898
|
};
|
|
2855
|
-
const tableRef = (0,
|
|
2856
|
-
const [showModal, setShowModal] = (0,
|
|
2857
|
-
const [pageSize, setPageSize] = (0,
|
|
2858
|
-
const [sortConfig, setSortConfig] = (0,
|
|
2899
|
+
const tableRef = (0, import_react21.useRef)(null);
|
|
2900
|
+
const [showModal, setShowModal] = (0, import_react21.useState)(false);
|
|
2901
|
+
const [pageSize, setPageSize] = (0, import_react21.useState)(5);
|
|
2902
|
+
const [sortConfig, setSortConfig] = (0, import_react21.useState)({
|
|
2859
2903
|
key: "",
|
|
2860
2904
|
direction: "asc"
|
|
2861
2905
|
});
|
|
@@ -2944,10 +2988,10 @@ function WorkFlowTransition() {
|
|
|
2944
2988
|
}
|
|
2945
2989
|
|
|
2946
2990
|
// src/components/user-hierarchy-node-mapping/user_hierarachy_node_main.jsx
|
|
2947
|
-
var
|
|
2991
|
+
var import_react27 = __toESM(require("react"));
|
|
2948
2992
|
|
|
2949
2993
|
// src/components/user-hierarchy-node-mapping/adduserhierarchynode.jsx
|
|
2950
|
-
var
|
|
2994
|
+
var import_react22 = __toESM(require("react"));
|
|
2951
2995
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
2952
2996
|
function AddUserHierarchyNodeMappingModal({
|
|
2953
2997
|
isOpen,
|
|
@@ -3053,7 +3097,7 @@ function AddUserHierarchyNodeMappingModal({
|
|
|
3053
3097
|
}
|
|
3054
3098
|
|
|
3055
3099
|
// src/components/user-hierarchy-node-mapping/searchbar.jsx
|
|
3056
|
-
var
|
|
3100
|
+
var import_react23 = __toESM(require("react"));
|
|
3057
3101
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
3058
3102
|
function MappingSearchBar({
|
|
3059
3103
|
searchQuery,
|
|
@@ -3077,10 +3121,10 @@ function MappingSearchBar({
|
|
|
3077
3121
|
}
|
|
3078
3122
|
|
|
3079
3123
|
// src/components/user-hierarchy-node-mapping/userhierarchynodetable.jsx
|
|
3080
|
-
var
|
|
3124
|
+
var import_react26 = __toESM(require("react"));
|
|
3081
3125
|
|
|
3082
3126
|
// src/components/user-hierarchy-node-mapping/edit-mapping.jsx
|
|
3083
|
-
var
|
|
3127
|
+
var import_react24 = __toESM(require("react"));
|
|
3084
3128
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
3085
3129
|
function EditUserHierarchyNodeMappingModal({
|
|
3086
3130
|
isOpen,
|
|
@@ -3088,14 +3132,14 @@ function EditUserHierarchyNodeMappingModal({
|
|
|
3088
3132
|
selectedMapping,
|
|
3089
3133
|
onSave
|
|
3090
3134
|
}) {
|
|
3091
|
-
const [formData, setFormData] = (0,
|
|
3135
|
+
const [formData, setFormData] = (0, import_react24.useState)({
|
|
3092
3136
|
hierarchyNodeId: "",
|
|
3093
3137
|
roleCode: "",
|
|
3094
3138
|
isPrimary: "",
|
|
3095
3139
|
effectiveFrom: "",
|
|
3096
3140
|
effectiveTo: ""
|
|
3097
3141
|
});
|
|
3098
|
-
(0,
|
|
3142
|
+
(0, import_react24.useEffect)(() => {
|
|
3099
3143
|
if (selectedMapping) {
|
|
3100
3144
|
setFormData({
|
|
3101
3145
|
hierarchyNodeId: selectedMapping.hierarchyNodeId || "",
|
|
@@ -3276,7 +3320,7 @@ function EditUserHierarchyNodeMappingModal({
|
|
|
3276
3320
|
}
|
|
3277
3321
|
|
|
3278
3322
|
// src/components/user-hierarchy-node-mapping/delete-mapping.jsx
|
|
3279
|
-
var
|
|
3323
|
+
var import_react25 = __toESM(require("react"));
|
|
3280
3324
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
3281
3325
|
function DeleteUserHierarchyNodeMappingModal({
|
|
3282
3326
|
isOpen,
|
|
@@ -3581,9 +3625,9 @@ function UserHierarchyNodeMappingTable({
|
|
|
3581
3625
|
effectiveTo: "",
|
|
3582
3626
|
status: true
|
|
3583
3627
|
}];
|
|
3584
|
-
const [data, setData] = (0,
|
|
3585
|
-
const [sortOrder, setSortOrder] = (0,
|
|
3586
|
-
const [sortKey, setSortKey] = (0,
|
|
3628
|
+
const [data, setData] = (0, import_react26.useState)(initialData);
|
|
3629
|
+
const [sortOrder, setSortOrder] = (0, import_react26.useState)("asc");
|
|
3630
|
+
const [sortKey, setSortKey] = (0, import_react26.useState)("mappingId");
|
|
3587
3631
|
const handleSort = (columnKey) => {
|
|
3588
3632
|
const isAsc = sortKey === columnKey && sortOrder === "asc";
|
|
3589
3633
|
setSortOrder(isAsc ? "desc" : "asc");
|
|
@@ -3599,7 +3643,7 @@ function UserHierarchyNodeMappingTable({
|
|
|
3599
3643
|
const query = (searchQuery || "").toLowerCase();
|
|
3600
3644
|
return String(item.mappingId).toLowerCase().includes(query) || String(item.externalUserId).toLowerCase().includes(query) || String(item.hierarchyNodeId).toLowerCase().includes(query) || item.roleCode.toLowerCase().includes(query);
|
|
3601
3645
|
});
|
|
3602
|
-
(0,
|
|
3646
|
+
(0, import_react26.useEffect)(() => {
|
|
3603
3647
|
if (setTotalEntries) setTotalEntries(filteredData.length);
|
|
3604
3648
|
}, [filteredData.length, setTotalEntries]);
|
|
3605
3649
|
const totalPages = Math.ceil(filteredData.length / pageSize) || 1;
|
|
@@ -3608,9 +3652,9 @@ function UserHierarchyNodeMappingTable({
|
|
|
3608
3652
|
const pageNumbers = Array.from({
|
|
3609
3653
|
length: totalPages
|
|
3610
3654
|
}, (_, i) => i + 1);
|
|
3611
|
-
const [showEditPopup, setShowEditPopup] = (0,
|
|
3612
|
-
const [showDeletePopup, setShowDeletePopup] = (0,
|
|
3613
|
-
const [selectedItem, setSelectedItem] = (0,
|
|
3655
|
+
const [showEditPopup, setShowEditPopup] = (0, import_react26.useState)(false);
|
|
3656
|
+
const [showDeletePopup, setShowDeletePopup] = (0, import_react26.useState)(false);
|
|
3657
|
+
const [selectedItem, setSelectedItem] = (0, import_react26.useState)(null);
|
|
3614
3658
|
const openEditPopup = (item) => {
|
|
3615
3659
|
setSelectedItem(item);
|
|
3616
3660
|
setShowEditPopup(true);
|
|
@@ -3720,17 +3764,17 @@ function UserHierarchyNodeMappingTable({
|
|
|
3720
3764
|
// src/components/user-hierarchy-node-mapping/user_hierarachy_node_main.jsx
|
|
3721
3765
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
3722
3766
|
function User_hierarchy_mapping_main() {
|
|
3723
|
-
const [refreshkey, setRefreshKey] = (0,
|
|
3767
|
+
const [refreshkey, setRefreshKey] = (0, import_react27.useState)(0);
|
|
3724
3768
|
const handleRefresh = () => {
|
|
3725
3769
|
console.log("Table data refreshed!");
|
|
3726
3770
|
setRefreshKey((prev) => prev + 1);
|
|
3727
3771
|
};
|
|
3728
|
-
const tableRef = (0,
|
|
3729
|
-
const [modalOpen, setModalOpen] = (0,
|
|
3730
|
-
const [pageSize, setPageSize] = (0,
|
|
3731
|
-
const [searchQuery, setSearchQuery] = (0,
|
|
3732
|
-
const [currentPage, setCurrentPage] = (0,
|
|
3733
|
-
const [totalEntries, setTotalEntries] = (0,
|
|
3772
|
+
const tableRef = (0, import_react27.useRef)(null);
|
|
3773
|
+
const [modalOpen, setModalOpen] = (0, import_react27.useState)(false);
|
|
3774
|
+
const [pageSize, setPageSize] = (0, import_react27.useState)(10);
|
|
3775
|
+
const [searchQuery, setSearchQuery] = (0, import_react27.useState)("");
|
|
3776
|
+
const [currentPage, setCurrentPage] = (0, import_react27.useState)(1);
|
|
3777
|
+
const [totalEntries, setTotalEntries] = (0, import_react27.useState)(0);
|
|
3734
3778
|
const handlePageSizeChange = (e) => {
|
|
3735
3779
|
setPageSize(Number(e.target.value));
|
|
3736
3780
|
setCurrentPage(1);
|
|
@@ -3772,10 +3816,10 @@ function User_hierarchy_mapping_main() {
|
|
|
3772
3816
|
}
|
|
3773
3817
|
|
|
3774
3818
|
// src/components/document-configuration/DocumentConfigurationmain.jsx
|
|
3775
|
-
var
|
|
3819
|
+
var import_react33 = __toESM(require("react"));
|
|
3776
3820
|
|
|
3777
3821
|
// src/components/document-configuration/SearchBar.jsx
|
|
3778
|
-
var
|
|
3822
|
+
var import_react28 = __toESM(require("react"));
|
|
3779
3823
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3780
3824
|
function SearchBar3({
|
|
3781
3825
|
searchQuery,
|
|
@@ -3792,10 +3836,10 @@ function SearchBar3({
|
|
|
3792
3836
|
}
|
|
3793
3837
|
|
|
3794
3838
|
// src/components/document-configuration/DocumentConfigurationTable.jsx
|
|
3795
|
-
var
|
|
3839
|
+
var import_react31 = __toESM(require("react"));
|
|
3796
3840
|
|
|
3797
3841
|
// src/components/document-configuration/Edit.jsx
|
|
3798
|
-
var
|
|
3842
|
+
var import_react29 = __toESM(require("react"));
|
|
3799
3843
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
3800
3844
|
function EditDocumentConfiguration({
|
|
3801
3845
|
isOpen,
|
|
@@ -3803,7 +3847,7 @@ function EditDocumentConfiguration({
|
|
|
3803
3847
|
initialData,
|
|
3804
3848
|
onSave
|
|
3805
3849
|
}) {
|
|
3806
|
-
const [formData, setFormData] = (0,
|
|
3850
|
+
const [formData, setFormData] = (0, import_react29.useState)({
|
|
3807
3851
|
docName: "",
|
|
3808
3852
|
stepId: "",
|
|
3809
3853
|
extensions: "",
|
|
@@ -3812,8 +3856,8 @@ function EditDocumentConfiguration({
|
|
|
3812
3856
|
isMandatory: false,
|
|
3813
3857
|
status: "Active"
|
|
3814
3858
|
});
|
|
3815
|
-
const [errors, setErrors] = (0,
|
|
3816
|
-
(0,
|
|
3859
|
+
const [errors, setErrors] = (0, import_react29.useState)({});
|
|
3860
|
+
(0, import_react29.useEffect)(() => {
|
|
3817
3861
|
if (initialData) {
|
|
3818
3862
|
const sizeParts = (initialData.maxSize || "10 MB").split(" ");
|
|
3819
3863
|
setFormData({
|
|
@@ -3945,7 +3989,7 @@ function EditDocumentConfiguration({
|
|
|
3945
3989
|
}
|
|
3946
3990
|
|
|
3947
3991
|
// src/components/document-configuration/Delete.jsx
|
|
3948
|
-
var
|
|
3992
|
+
var import_react30 = __toESM(require("react"));
|
|
3949
3993
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3950
3994
|
function DeleteDocumentConfiguration({
|
|
3951
3995
|
isOpen,
|
|
@@ -4222,12 +4266,12 @@ function DocumentConfigTable({
|
|
|
4222
4266
|
status: "Active"
|
|
4223
4267
|
}
|
|
4224
4268
|
];
|
|
4225
|
-
const [data, setData] = (0,
|
|
4226
|
-
const [sortOrder, setSortOrder] = (0,
|
|
4227
|
-
const [sortKey, setSortKey] = (0,
|
|
4228
|
-
const [isEditOpen, setIsEditOpen] = (0,
|
|
4229
|
-
const [isDeleteOpen, setIsDeleteOpen] = (0,
|
|
4230
|
-
const [selectedItem, setSelectedItem] = (0,
|
|
4269
|
+
const [data, setData] = (0, import_react31.useState)(initialData);
|
|
4270
|
+
const [sortOrder, setSortOrder] = (0, import_react31.useState)("asc");
|
|
4271
|
+
const [sortKey, setSortKey] = (0, import_react31.useState)("docName");
|
|
4272
|
+
const [isEditOpen, setIsEditOpen] = (0, import_react31.useState)(false);
|
|
4273
|
+
const [isDeleteOpen, setIsDeleteOpen] = (0, import_react31.useState)(false);
|
|
4274
|
+
const [selectedItem, setSelectedItem] = (0, import_react31.useState)(null);
|
|
4231
4275
|
const handleSort = (columnKey) => {
|
|
4232
4276
|
const isAsc = sortKey === columnKey && sortOrder === "asc";
|
|
4233
4277
|
setSortOrder(isAsc ? "desc" : "asc");
|
|
@@ -4243,7 +4287,7 @@ function DocumentConfigTable({
|
|
|
4243
4287
|
const query = (searchQuery || "").toLowerCase();
|
|
4244
4288
|
return item.docName.toLowerCase().includes(query) || item.extensions.toLowerCase().includes(query) || item.stepId.toLowerCase().includes(query);
|
|
4245
4289
|
});
|
|
4246
|
-
(0,
|
|
4290
|
+
(0, import_react31.useEffect)(() => {
|
|
4247
4291
|
if (setTotalEntries) setTotalEntries(filteredData.length);
|
|
4248
4292
|
}, [filteredData.length, setTotalEntries]);
|
|
4249
4293
|
const totalPages = Math.ceil(filteredData.length / pageSize) || 1;
|
|
@@ -4449,19 +4493,19 @@ function DocumentConfigTable({
|
|
|
4449
4493
|
}
|
|
4450
4494
|
|
|
4451
4495
|
// src/components/document-configuration/AddDocumentConfigurationModal.jsx
|
|
4452
|
-
var
|
|
4496
|
+
var import_react32 = __toESM(require("react"));
|
|
4453
4497
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
4454
4498
|
function AddDocumentConfigModal({
|
|
4455
4499
|
isOpen,
|
|
4456
4500
|
onClose
|
|
4457
4501
|
}) {
|
|
4458
|
-
const [isMandatory, setIsMandatory] = (0,
|
|
4459
|
-
const [status, setStatus] = (0,
|
|
4460
|
-
const [documentName, setDocumentName] = (0,
|
|
4461
|
-
const [stepId, setStepId] = (0,
|
|
4462
|
-
const [maxSize, setMaxSize] = (0,
|
|
4463
|
-
const [allowedExtensions, setAllowedExtensions] = (0,
|
|
4464
|
-
const [errors, setErrors] = (0,
|
|
4502
|
+
const [isMandatory, setIsMandatory] = (0, import_react32.useState)(false);
|
|
4503
|
+
const [status, setStatus] = (0, import_react32.useState)("Active");
|
|
4504
|
+
const [documentName, setDocumentName] = (0, import_react32.useState)("");
|
|
4505
|
+
const [stepId, setStepId] = (0, import_react32.useState)("");
|
|
4506
|
+
const [maxSize, setMaxSize] = (0, import_react32.useState)("");
|
|
4507
|
+
const [allowedExtensions, setAllowedExtensions] = (0, import_react32.useState)("");
|
|
4508
|
+
const [errors, setErrors] = (0, import_react32.useState)({});
|
|
4465
4509
|
const handleSave = () => {
|
|
4466
4510
|
let newErrors = {};
|
|
4467
4511
|
if (!documentName.trim()) {
|
|
@@ -4594,17 +4638,17 @@ function AddDocumentConfigModal({
|
|
|
4594
4638
|
// src/components/document-configuration/DocumentConfigurationmain.jsx
|
|
4595
4639
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
4596
4640
|
function DocumentConfigurationmain() {
|
|
4597
|
-
const [refreshkey, setRefreshKey] = (0,
|
|
4641
|
+
const [refreshkey, setRefreshKey] = (0, import_react33.useState)(0);
|
|
4598
4642
|
const handleRefresh = () => {
|
|
4599
4643
|
console.log("Table data refreshed!");
|
|
4600
4644
|
setRefreshKey((prev) => prev + 1);
|
|
4601
4645
|
};
|
|
4602
|
-
const tableRef = (0,
|
|
4603
|
-
const [modalOpen, setModalOpen] = (0,
|
|
4604
|
-
const [pageSize, setPageSize] = (0,
|
|
4605
|
-
const [searchQuery, setSearchQuery] = (0,
|
|
4606
|
-
const [currentPage, setCurrentPage] = (0,
|
|
4607
|
-
const [totalEntries, setTotalEntries] = (0,
|
|
4646
|
+
const tableRef = (0, import_react33.useRef)(null);
|
|
4647
|
+
const [modalOpen, setModalOpen] = (0, import_react33.useState)(false);
|
|
4648
|
+
const [pageSize, setPageSize] = (0, import_react33.useState)(10);
|
|
4649
|
+
const [searchQuery, setSearchQuery] = (0, import_react33.useState)("");
|
|
4650
|
+
const [currentPage, setCurrentPage] = (0, import_react33.useState)(1);
|
|
4651
|
+
const [totalEntries, setTotalEntries] = (0, import_react33.useState)(0);
|
|
4608
4652
|
const handlePageSizeChange = (e) => {
|
|
4609
4653
|
setPageSize(Number(e.target.value));
|
|
4610
4654
|
setCurrentPage(1);
|
|
@@ -4644,10 +4688,10 @@ function DocumentConfigurationmain() {
|
|
|
4644
4688
|
}
|
|
4645
4689
|
|
|
4646
4690
|
// src/components/audit-log/AuditLogmain.jsx
|
|
4647
|
-
var
|
|
4691
|
+
var import_react37 = __toESM(require("react"));
|
|
4648
4692
|
|
|
4649
4693
|
// src/components/audit-log/SearchBar.jsx
|
|
4650
|
-
var
|
|
4694
|
+
var import_react34 = __toESM(require("react"));
|
|
4651
4695
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
4652
4696
|
function SearchBar4({
|
|
4653
4697
|
searchQuery,
|
|
@@ -4664,7 +4708,7 @@ function SearchBar4({
|
|
|
4664
4708
|
}
|
|
4665
4709
|
|
|
4666
4710
|
// src/components/audit-log/AuditLogTable.jsx
|
|
4667
|
-
var
|
|
4711
|
+
var import_react35 = __toESM(require("react"));
|
|
4668
4712
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
4669
4713
|
function AuditLogTable({
|
|
4670
4714
|
pageSize,
|
|
@@ -4874,9 +4918,9 @@ function AuditLogTable({
|
|
|
4874
4918
|
ip: "192.168.1.45",
|
|
4875
4919
|
time: "2026-07-17 15:55"
|
|
4876
4920
|
}];
|
|
4877
|
-
const [data, setData] = (0,
|
|
4878
|
-
const [sortOrder, setSortOrder] = (0,
|
|
4879
|
-
const [sortKey, setSortKey] = (0,
|
|
4921
|
+
const [data, setData] = (0, import_react35.useState)(initialData);
|
|
4922
|
+
const [sortOrder, setSortOrder] = (0, import_react35.useState)("asc");
|
|
4923
|
+
const [sortKey, setSortKey] = (0, import_react35.useState)("logId");
|
|
4880
4924
|
const handleSort = (columnKey) => {
|
|
4881
4925
|
const isAsc = sortKey === columnKey && sortOrder === "asc";
|
|
4882
4926
|
setSortOrder(isAsc ? "desc" : "asc");
|
|
@@ -4892,7 +4936,7 @@ function AuditLogTable({
|
|
|
4892
4936
|
const query = (searchQuery || "").toLowerCase();
|
|
4893
4937
|
return item.logId.toLowerCase().includes(query) || item.user.toLowerCase().includes(query) || item.section.toLowerCase().includes(query) || item.action.toLowerCase().includes(query);
|
|
4894
4938
|
});
|
|
4895
|
-
(0,
|
|
4939
|
+
(0, import_react35.useEffect)(() => {
|
|
4896
4940
|
if (setTotalEntries) setTotalEntries(filteredData.length);
|
|
4897
4941
|
}, [filteredData.length, setTotalEntries]);
|
|
4898
4942
|
const totalPages = Math.ceil(filteredData.length / pageSize) || 1;
|
|
@@ -4960,19 +5004,19 @@ function AuditLogTable({
|
|
|
4960
5004
|
}
|
|
4961
5005
|
|
|
4962
5006
|
// src/components/audit-log/AddAuditLogModal.jsx
|
|
4963
|
-
var
|
|
5007
|
+
var import_react36 = __toESM(require("react"));
|
|
4964
5008
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
4965
5009
|
function AddAuditLogModal({
|
|
4966
5010
|
isOpen,
|
|
4967
5011
|
onClose
|
|
4968
5012
|
}) {
|
|
4969
|
-
const [logId, setLogId] = (0,
|
|
4970
|
-
const [userName, setUserName] = (0,
|
|
4971
|
-
const [actionType, setActionType] = (0,
|
|
4972
|
-
const [ipAddress, setIpAddress] = (0,
|
|
4973
|
-
const [sectionModule, setSectionModule] = (0,
|
|
4974
|
-
const [timestamp, setTimestamp] = (0,
|
|
4975
|
-
const [errors, setErrors] = (0,
|
|
5013
|
+
const [logId, setLogId] = (0, import_react36.useState)("");
|
|
5014
|
+
const [userName, setUserName] = (0, import_react36.useState)("");
|
|
5015
|
+
const [actionType, setActionType] = (0, import_react36.useState)("");
|
|
5016
|
+
const [ipAddress, setIpAddress] = (0, import_react36.useState)("");
|
|
5017
|
+
const [sectionModule, setSectionModule] = (0, import_react36.useState)("");
|
|
5018
|
+
const [timestamp, setTimestamp] = (0, import_react36.useState)("");
|
|
5019
|
+
const [errors, setErrors] = (0, import_react36.useState)({});
|
|
4976
5020
|
const handleCommit = () => {
|
|
4977
5021
|
let newErrors = {};
|
|
4978
5022
|
if (!logId.trim()) newErrors.logId = "Log ID is required";
|
|
@@ -5091,17 +5135,17 @@ function AddAuditLogModal({
|
|
|
5091
5135
|
// src/components/audit-log/AuditLogmain.jsx
|
|
5092
5136
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
5093
5137
|
function AuditLogmain() {
|
|
5094
|
-
const [refreshkey, setRefreshKey] = (0,
|
|
5138
|
+
const [refreshkey, setRefreshKey] = (0, import_react37.useState)(0);
|
|
5095
5139
|
const handleRefresh = () => {
|
|
5096
5140
|
console.log("Table data refreshed!");
|
|
5097
5141
|
setRefreshKey((prev) => prev + 1);
|
|
5098
5142
|
};
|
|
5099
|
-
const tableRef = (0,
|
|
5100
|
-
const [modalOpen, setModalOpen] = (0,
|
|
5101
|
-
const [pageSize, setPageSize] = (0,
|
|
5102
|
-
const [searchQuery, setSearchQuery] = (0,
|
|
5103
|
-
const [currentPage, setCurrentPage] = (0,
|
|
5104
|
-
const [totalEntries, setTotalEntries] = (0,
|
|
5143
|
+
const tableRef = (0, import_react37.useRef)(null);
|
|
5144
|
+
const [modalOpen, setModalOpen] = (0, import_react37.useState)(false);
|
|
5145
|
+
const [pageSize, setPageSize] = (0, import_react37.useState)(10);
|
|
5146
|
+
const [searchQuery, setSearchQuery] = (0, import_react37.useState)("");
|
|
5147
|
+
const [currentPage, setCurrentPage] = (0, import_react37.useState)(1);
|
|
5148
|
+
const [totalEntries, setTotalEntries] = (0, import_react37.useState)(0);
|
|
5105
5149
|
const handlePageSizeChange = (e) => {
|
|
5106
5150
|
setPageSize(Number(e.target.value));
|
|
5107
5151
|
setCurrentPage(1);
|
|
@@ -5160,10 +5204,10 @@ function AuditLogmain() {
|
|
|
5160
5204
|
}
|
|
5161
5205
|
|
|
5162
5206
|
// src/components/movement-history/MovementHistorymain.jsx
|
|
5163
|
-
var
|
|
5207
|
+
var import_react41 = __toESM(require("react"));
|
|
5164
5208
|
|
|
5165
5209
|
// src/components/movement-history/SearchBar.jsx
|
|
5166
|
-
var
|
|
5210
|
+
var import_react38 = __toESM(require("react"));
|
|
5167
5211
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
5168
5212
|
function SearchBar5({
|
|
5169
5213
|
searchQuery,
|
|
@@ -5180,7 +5224,7 @@ function SearchBar5({
|
|
|
5180
5224
|
}
|
|
5181
5225
|
|
|
5182
5226
|
// src/components/movement-history/MovementHistoryTable.jsx
|
|
5183
|
-
var
|
|
5227
|
+
var import_react39 = __toESM(require("react"));
|
|
5184
5228
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
5185
5229
|
function MovementHistoryTable({
|
|
5186
5230
|
pageSize,
|
|
@@ -5390,9 +5434,9 @@ function MovementHistoryTable({
|
|
|
5390
5434
|
toStepId: "APPROVE",
|
|
5391
5435
|
movedOn: "2026-02-12"
|
|
5392
5436
|
}];
|
|
5393
|
-
const [data, setData] = (0,
|
|
5394
|
-
const [sortOrder, setSortOrder] = (0,
|
|
5395
|
-
const [sortKey, setSortKey] = (0,
|
|
5437
|
+
const [data, setData] = (0, import_react39.useState)(initialData);
|
|
5438
|
+
const [sortOrder, setSortOrder] = (0, import_react39.useState)("asc");
|
|
5439
|
+
const [sortKey, setSortKey] = (0, import_react39.useState)("movementHistoryId");
|
|
5396
5440
|
const handleSort = (columnKey) => {
|
|
5397
5441
|
const isAsc = sortKey === columnKey && sortOrder === "asc";
|
|
5398
5442
|
setSortOrder(isAsc ? "desc" : "asc");
|
|
@@ -5408,7 +5452,7 @@ function MovementHistoryTable({
|
|
|
5408
5452
|
const query = (searchQuery || "").toLowerCase();
|
|
5409
5453
|
return item.movementHistoryId.toLowerCase().includes(query) || item.name.toLowerCase().includes(query) || item.toStepId.toLowerCase().includes(query);
|
|
5410
5454
|
});
|
|
5411
|
-
(0,
|
|
5455
|
+
(0, import_react39.useEffect)(() => {
|
|
5412
5456
|
if (setTotalEntries) setTotalEntries(filteredData.length);
|
|
5413
5457
|
}, [filteredData.length, setTotalEntries]);
|
|
5414
5458
|
const totalPages = Math.ceil(filteredData.length / pageSize) || 1;
|
|
@@ -5479,19 +5523,19 @@ function MovementHistoryTable({
|
|
|
5479
5523
|
}
|
|
5480
5524
|
|
|
5481
5525
|
// src/components/movement-history/AddMovementHistoryModal.jsx
|
|
5482
|
-
var
|
|
5526
|
+
var import_react40 = __toESM(require("react"));
|
|
5483
5527
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
5484
5528
|
function AddMovementHistoryModal({
|
|
5485
5529
|
isOpen,
|
|
5486
5530
|
onClose
|
|
5487
5531
|
}) {
|
|
5488
|
-
const [movementHistoryId, setMovementHistoryId] = (0,
|
|
5489
|
-
const [fileInstanceId, setFileInstanceId] = (0,
|
|
5490
|
-
const [fromStepId, setFromStepId] = (0,
|
|
5491
|
-
const [toStepId, setToStepId] = (0,
|
|
5492
|
-
const [actionCode, setActionCode] = (0,
|
|
5493
|
-
const [movedOn, setMovedOn] = (0,
|
|
5494
|
-
const [errors, setErrors] = (0,
|
|
5532
|
+
const [movementHistoryId, setMovementHistoryId] = (0, import_react40.useState)("");
|
|
5533
|
+
const [fileInstanceId, setFileInstanceId] = (0, import_react40.useState)("");
|
|
5534
|
+
const [fromStepId, setFromStepId] = (0, import_react40.useState)("");
|
|
5535
|
+
const [toStepId, setToStepId] = (0, import_react40.useState)("");
|
|
5536
|
+
const [actionCode, setActionCode] = (0, import_react40.useState)("");
|
|
5537
|
+
const [movedOn, setMovedOn] = (0, import_react40.useState)("");
|
|
5538
|
+
const [errors, setErrors] = (0, import_react40.useState)({});
|
|
5495
5539
|
const handleSaveRecord = () => {
|
|
5496
5540
|
let newErrors = {};
|
|
5497
5541
|
if (!movementHistoryId.toString().trim()) newErrors.movementHistoryId = "Movement History ID is required";
|
|
@@ -5606,17 +5650,17 @@ function AddMovementHistoryModal({
|
|
|
5606
5650
|
// src/components/movement-history/MovementHistorymain.jsx
|
|
5607
5651
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
5608
5652
|
function MovementHistorymain() {
|
|
5609
|
-
const [refreshkey, setRefreshKey] = (0,
|
|
5653
|
+
const [refreshkey, setRefreshKey] = (0, import_react41.useState)(0);
|
|
5610
5654
|
const handleRefresh = () => {
|
|
5611
5655
|
console.log("Table data refreshed!");
|
|
5612
5656
|
setRefreshKey((prev) => prev + 1);
|
|
5613
5657
|
};
|
|
5614
|
-
const tableRef = (0,
|
|
5615
|
-
const [modalOpen, setModalOpen] = (0,
|
|
5616
|
-
const [pageSize, setPageSize] = (0,
|
|
5617
|
-
const [searchQuery, setSearchQuery] = (0,
|
|
5618
|
-
const [currentPage, setCurrentPage] = (0,
|
|
5619
|
-
const [totalEntries, setTotalEntries] = (0,
|
|
5658
|
+
const tableRef = (0, import_react41.useRef)(null);
|
|
5659
|
+
const [modalOpen, setModalOpen] = (0, import_react41.useState)(false);
|
|
5660
|
+
const [pageSize, setPageSize] = (0, import_react41.useState)(10);
|
|
5661
|
+
const [searchQuery, setSearchQuery] = (0, import_react41.useState)("");
|
|
5662
|
+
const [currentPage, setCurrentPage] = (0, import_react41.useState)(1);
|
|
5663
|
+
const [totalEntries, setTotalEntries] = (0, import_react41.useState)(0);
|
|
5620
5664
|
const handlePageSizeChange = (e) => {
|
|
5621
5665
|
setPageSize(Number(e.target.value));
|
|
5622
5666
|
setCurrentPage(1);
|
|
@@ -5659,10 +5703,10 @@ function MovementHistorymain() {
|
|
|
5659
5703
|
}
|
|
5660
5704
|
|
|
5661
5705
|
// src/components/task-permission/TaskPermissionMain.jsx
|
|
5662
|
-
var
|
|
5706
|
+
var import_react45 = __toESM(require("react"));
|
|
5663
5707
|
|
|
5664
5708
|
// src/components/task-permission/SearchBar.js
|
|
5665
|
-
var
|
|
5709
|
+
var import_react42 = __toESM(require("react"));
|
|
5666
5710
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
5667
5711
|
function SearchBar6({
|
|
5668
5712
|
searchTerm,
|
|
@@ -5690,7 +5734,7 @@ function SearchBar6({
|
|
|
5690
5734
|
}
|
|
5691
5735
|
|
|
5692
5736
|
// src/components/task-permission/Table.js
|
|
5693
|
-
var
|
|
5737
|
+
var import_react43 = __toESM(require("react"));
|
|
5694
5738
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
5695
5739
|
function Table({
|
|
5696
5740
|
pageSize,
|
|
@@ -5875,12 +5919,12 @@ function Table({
|
|
|
5875
5919
|
permissionType: "Write",
|
|
5876
5920
|
isStatusEnabled: true
|
|
5877
5921
|
}];
|
|
5878
|
-
const [data, setData] = (0,
|
|
5879
|
-
const [sortOrder, setSortOrder] = (0,
|
|
5880
|
-
const [sortKey, setSortKey] = (0,
|
|
5881
|
-
const [selectedItem, setSelectedItem] = (0,
|
|
5882
|
-
const [isEditModalOpen, setIsEditModalOpen] = (0,
|
|
5883
|
-
const [isDeleteModalOpen, setIsDeleteModalOpen] = (0,
|
|
5922
|
+
const [data, setData] = (0, import_react43.useState)(initialData);
|
|
5923
|
+
const [sortOrder, setSortOrder] = (0, import_react43.useState)("asc");
|
|
5924
|
+
const [sortKey, setSortKey] = (0, import_react43.useState)("taskId");
|
|
5925
|
+
const [selectedItem, setSelectedItem] = (0, import_react43.useState)(null);
|
|
5926
|
+
const [isEditModalOpen, setIsEditModalOpen] = (0, import_react43.useState)(false);
|
|
5927
|
+
const [isDeleteModalOpen, setIsDeleteModalOpen] = (0, import_react43.useState)(false);
|
|
5884
5928
|
const handleEdit = (item) => {
|
|
5885
5929
|
setSelectedItem(item);
|
|
5886
5930
|
setIsEditModalOpen(true);
|
|
@@ -5937,7 +5981,7 @@ function Table({
|
|
|
5937
5981
|
}
|
|
5938
5982
|
return item.taskId && item.taskId.toString().toLowerCase().includes(query) || item.role && item.role.toLowerCase().includes(query) || item.taskName && item.taskName.toLowerCase().includes(query) || item.permissionType && item.permissionType.toLowerCase().includes(query);
|
|
5939
5983
|
});
|
|
5940
|
-
(0,
|
|
5984
|
+
(0, import_react43.useEffect)(() => {
|
|
5941
5985
|
if (setTotalEntries) setTotalEntries(filteredData.length);
|
|
5942
5986
|
}, [filteredData.length, setTotalEntries]);
|
|
5943
5987
|
const totalPages = Math.ceil(filteredData.length / pageSize) || 1;
|
|
@@ -6060,7 +6104,7 @@ function Table({
|
|
|
6060
6104
|
}
|
|
6061
6105
|
|
|
6062
6106
|
// src/components/task-permission/Popup.js
|
|
6063
|
-
var
|
|
6107
|
+
var import_react44 = __toESM(require("react"));
|
|
6064
6108
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
6065
6109
|
function Popup({
|
|
6066
6110
|
isOpen,
|
|
@@ -6068,13 +6112,13 @@ function Popup({
|
|
|
6068
6112
|
onSave
|
|
6069
6113
|
}) {
|
|
6070
6114
|
if (!isOpen) return null;
|
|
6071
|
-
const [stepName, setStepName] = (0,
|
|
6072
|
-
const [stepCode, setStepCode] = (0,
|
|
6073
|
-
const [workflow, setWorkflow] = (0,
|
|
6074
|
-
const [canView, setCanView] = (0,
|
|
6075
|
-
const [canEdit, setCanEdit] = (0,
|
|
6076
|
-
const [canApprove, setCanApprove] = (0,
|
|
6077
|
-
const [canReject, setCanReject] = (0,
|
|
6115
|
+
const [stepName, setStepName] = (0, import_react44.useState)("");
|
|
6116
|
+
const [stepCode, setStepCode] = (0, import_react44.useState)("");
|
|
6117
|
+
const [workflow, setWorkflow] = (0, import_react44.useState)("");
|
|
6118
|
+
const [canView, setCanView] = (0, import_react44.useState)(false);
|
|
6119
|
+
const [canEdit, setCanEdit] = (0, import_react44.useState)(false);
|
|
6120
|
+
const [canApprove, setCanApprove] = (0, import_react44.useState)(false);
|
|
6121
|
+
const [canReject, setCanReject] = (0, import_react44.useState)(false);
|
|
6078
6122
|
const handleSubmit = (e) => {
|
|
6079
6123
|
e.preventDefault();
|
|
6080
6124
|
if (!stepName || !stepCode || !workflow) {
|
|
@@ -6191,17 +6235,17 @@ function Popup({
|
|
|
6191
6235
|
// src/components/task-permission/TaskPermissionMain.jsx
|
|
6192
6236
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
6193
6237
|
function TaskPermissionMain() {
|
|
6194
|
-
const [refreshkey, setRefreshKey] = (0,
|
|
6238
|
+
const [refreshkey, setRefreshKey] = (0, import_react45.useState)(0);
|
|
6195
6239
|
const handleRefresh = () => {
|
|
6196
6240
|
console.log("Table data refreshed!");
|
|
6197
6241
|
setRefreshKey((prev) => prev + 1);
|
|
6198
6242
|
};
|
|
6199
|
-
const tableRef = (0,
|
|
6200
|
-
const [showModal, setShowModal] = (0,
|
|
6201
|
-
const [pageSize, setPageSize] = (0,
|
|
6202
|
-
const [searchQuery, setSearchQuery] = (0,
|
|
6203
|
-
const [currentPage, setCurrentPage] = (0,
|
|
6204
|
-
const [totalEntries, setTotalEntries] = (0,
|
|
6243
|
+
const tableRef = (0, import_react45.useRef)(null);
|
|
6244
|
+
const [showModal, setShowModal] = (0, import_react45.useState)(false);
|
|
6245
|
+
const [pageSize, setPageSize] = (0, import_react45.useState)(10);
|
|
6246
|
+
const [searchQuery, setSearchQuery] = (0, import_react45.useState)("");
|
|
6247
|
+
const [currentPage, setCurrentPage] = (0, import_react45.useState)(1);
|
|
6248
|
+
const [totalEntries, setTotalEntries] = (0, import_react45.useState)(0);
|
|
6205
6249
|
const handlePageSizeChange = (e) => {
|
|
6206
6250
|
setPageSize(Number(e.target.value));
|
|
6207
6251
|
setCurrentPage(1);
|
|
@@ -6243,10 +6287,10 @@ function TaskPermissionMain() {
|
|
|
6243
6287
|
}
|
|
6244
6288
|
|
|
6245
6289
|
// src/components/Workflow-Setting/WorkflowSettingMain.jsx
|
|
6246
|
-
var
|
|
6290
|
+
var import_react49 = __toESM(require("react"));
|
|
6247
6291
|
|
|
6248
6292
|
// src/components/Workflow-Setting/SearchBar.js
|
|
6249
|
-
var
|
|
6293
|
+
var import_react46 = __toESM(require("react"));
|
|
6250
6294
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
6251
6295
|
function SearchBar7({
|
|
6252
6296
|
searchTerm,
|
|
@@ -6274,7 +6318,7 @@ function SearchBar7({
|
|
|
6274
6318
|
}
|
|
6275
6319
|
|
|
6276
6320
|
// src/components/Workflow-Setting/Table.js
|
|
6277
|
-
var
|
|
6321
|
+
var import_react47 = __toESM(require("react"));
|
|
6278
6322
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
6279
6323
|
function Table2({
|
|
6280
6324
|
pageSize,
|
|
@@ -6459,12 +6503,12 @@ function Table2({
|
|
|
6459
6503
|
SLA: "2 Hours",
|
|
6460
6504
|
isActive: true
|
|
6461
6505
|
}];
|
|
6462
|
-
const [data, setData] = (0,
|
|
6463
|
-
const [sortOrder, setSortOrder] = (0,
|
|
6464
|
-
const [sortKey, setSortKey] = (0,
|
|
6465
|
-
const [selectedItem, setSelectedItem] = (0,
|
|
6466
|
-
const [isEditModalOpen, setIsEditModalOpen] = (0,
|
|
6467
|
-
const [isDeleteModalOpen, setIsDeleteModalOpen] = (0,
|
|
6506
|
+
const [data, setData] = (0, import_react47.useState)(initialData);
|
|
6507
|
+
const [sortOrder, setSortOrder] = (0, import_react47.useState)("asc");
|
|
6508
|
+
const [sortKey, setSortKey] = (0, import_react47.useState)("settingId");
|
|
6509
|
+
const [selectedItem, setSelectedItem] = (0, import_react47.useState)(null);
|
|
6510
|
+
const [isEditModalOpen, setIsEditModalOpen] = (0, import_react47.useState)(false);
|
|
6511
|
+
const [isDeleteModalOpen, setIsDeleteModalOpen] = (0, import_react47.useState)(false);
|
|
6468
6512
|
const handleEdit = (item) => {
|
|
6469
6513
|
setSelectedItem(item);
|
|
6470
6514
|
setIsEditModalOpen(true);
|
|
@@ -6521,7 +6565,7 @@ function Table2({
|
|
|
6521
6565
|
}
|
|
6522
6566
|
return item.settingId && item.settingId.toString().toLowerCase().includes(query) || item.moduleName && item.moduleName.toLowerCase().includes(query) || item.executionOrder && item.executionOrder.toString().toLowerCase().includes(query) || item.SLA && item.SLA.toLowerCase().includes(query);
|
|
6523
6567
|
});
|
|
6524
|
-
(0,
|
|
6568
|
+
(0, import_react47.useEffect)(() => {
|
|
6525
6569
|
if (setTotalEntries) setTotalEntries(filteredData.length);
|
|
6526
6570
|
}, [filteredData.length, setTotalEntries]);
|
|
6527
6571
|
const totalPages = Math.ceil(filteredData.length / pageSize) || 1;
|
|
@@ -6654,7 +6698,7 @@ function Table2({
|
|
|
6654
6698
|
}
|
|
6655
6699
|
|
|
6656
6700
|
// src/components/Workflow-Setting/Popup.js
|
|
6657
|
-
var
|
|
6701
|
+
var import_react48 = __toESM(require("react"));
|
|
6658
6702
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
6659
6703
|
function Popup2({
|
|
6660
6704
|
isOpen,
|
|
@@ -6662,8 +6706,8 @@ function Popup2({
|
|
|
6662
6706
|
onSave
|
|
6663
6707
|
}) {
|
|
6664
6708
|
if (!isOpen) return null;
|
|
6665
|
-
const [settingKey, setSettingKey] = (0,
|
|
6666
|
-
const [settingValue, setSettingValue] = (0,
|
|
6709
|
+
const [settingKey, setSettingKey] = (0, import_react48.useState)("");
|
|
6710
|
+
const [settingValue, setSettingValue] = (0, import_react48.useState)("");
|
|
6667
6711
|
const handleSubmit = (e) => {
|
|
6668
6712
|
e.preventDefault();
|
|
6669
6713
|
if (!settingKey || !settingValue) {
|
|
@@ -6714,17 +6758,17 @@ function Popup2({
|
|
|
6714
6758
|
// src/components/Workflow-Setting/WorkflowSettingMain.jsx
|
|
6715
6759
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
6716
6760
|
function WorkflowSettingMain() {
|
|
6717
|
-
const [refreshkey, setRefreshKey] = (0,
|
|
6761
|
+
const [refreshkey, setRefreshKey] = (0, import_react49.useState)(0);
|
|
6718
6762
|
const handleRefresh = () => {
|
|
6719
6763
|
console.log("Table data refreshed!");
|
|
6720
6764
|
setRefreshKey((prev) => prev + 1);
|
|
6721
6765
|
};
|
|
6722
|
-
const tableRef = (0,
|
|
6723
|
-
const [showModal, setShowModal] = (0,
|
|
6724
|
-
const [pageSize, setPageSize] = (0,
|
|
6725
|
-
const [searchQuery, setSearchQuery] = (0,
|
|
6726
|
-
const [currentPage, setCurrentPage] = (0,
|
|
6727
|
-
const [totalEntries, setTotalEntries] = (0,
|
|
6766
|
+
const tableRef = (0, import_react49.useRef)(null);
|
|
6767
|
+
const [showModal, setShowModal] = (0, import_react49.useState)(false);
|
|
6768
|
+
const [pageSize, setPageSize] = (0, import_react49.useState)(10);
|
|
6769
|
+
const [searchQuery, setSearchQuery] = (0, import_react49.useState)("");
|
|
6770
|
+
const [currentPage, setCurrentPage] = (0, import_react49.useState)(1);
|
|
6771
|
+
const [totalEntries, setTotalEntries] = (0, import_react49.useState)(0);
|
|
6728
6772
|
const handlePageSizeChange = (e) => {
|
|
6729
6773
|
setPageSize(Number(e.target.value));
|
|
6730
6774
|
setCurrentPage(1);
|
|
@@ -6766,10 +6810,10 @@ function WorkflowSettingMain() {
|
|
|
6766
6810
|
}
|
|
6767
6811
|
|
|
6768
6812
|
// src/components/notification/NotificationMain.jsx
|
|
6769
|
-
var
|
|
6813
|
+
var import_react53 = __toESM(require("react"));
|
|
6770
6814
|
|
|
6771
6815
|
// src/components/notification/SearchBar.js
|
|
6772
|
-
var
|
|
6816
|
+
var import_react50 = __toESM(require("react"));
|
|
6773
6817
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
6774
6818
|
function SearchBar8({
|
|
6775
6819
|
searchTerm,
|
|
@@ -6797,7 +6841,7 @@ function SearchBar8({
|
|
|
6797
6841
|
}
|
|
6798
6842
|
|
|
6799
6843
|
// src/components/notification/Table.js
|
|
6800
|
-
var
|
|
6844
|
+
var import_react51 = __toESM(require("react"));
|
|
6801
6845
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
6802
6846
|
function Table3({
|
|
6803
6847
|
pageSize,
|
|
@@ -6982,12 +7026,12 @@ function Table3({
|
|
|
6982
7026
|
recipientGroup: "Risk Assessment",
|
|
6983
7027
|
isMuted: false
|
|
6984
7028
|
}];
|
|
6985
|
-
const [data, setData] = (0,
|
|
6986
|
-
const [sortOrder, setSortOrder] = (0,
|
|
6987
|
-
const [sortKey, setSortKey] = (0,
|
|
6988
|
-
const [selectedItem, setSelectedItem] = (0,
|
|
6989
|
-
const [isEditModalOpen, setIsEditModalOpen] = (0,
|
|
6990
|
-
const [isDeleteModalOpen, setIsDeleteModalOpen] = (0,
|
|
7029
|
+
const [data, setData] = (0, import_react51.useState)(initialData);
|
|
7030
|
+
const [sortOrder, setSortOrder] = (0, import_react51.useState)("asc");
|
|
7031
|
+
const [sortKey, setSortKey] = (0, import_react51.useState)("notificationId");
|
|
7032
|
+
const [selectedItem, setSelectedItem] = (0, import_react51.useState)(null);
|
|
7033
|
+
const [isEditModalOpen, setIsEditModalOpen] = (0, import_react51.useState)(false);
|
|
7034
|
+
const [isDeleteModalOpen, setIsDeleteModalOpen] = (0, import_react51.useState)(false);
|
|
6991
7035
|
const handleEdit = (item) => {
|
|
6992
7036
|
setSelectedItem(item);
|
|
6993
7037
|
setIsEditModalOpen(true);
|
|
@@ -7044,7 +7088,7 @@ function Table3({
|
|
|
7044
7088
|
}
|
|
7045
7089
|
return item.notificationId && item.notificationId.toString().toLowerCase().includes(query) || item.eventTrigger && item.eventTrigger.toLowerCase().includes(query) || item.channelType && item.channelType.toLowerCase().includes(query) || item.recipientGroup && item.recipientGroup.toLowerCase().includes(query);
|
|
7046
7090
|
});
|
|
7047
|
-
(0,
|
|
7091
|
+
(0, import_react51.useEffect)(() => {
|
|
7048
7092
|
if (setTotalEntries) setTotalEntries(filteredData.length);
|
|
7049
7093
|
}, [filteredData.length, setTotalEntries]);
|
|
7050
7094
|
const totalPages = Math.ceil(filteredData.length / pageSize) || 1;
|
|
@@ -7172,7 +7216,7 @@ function Table3({
|
|
|
7172
7216
|
}
|
|
7173
7217
|
|
|
7174
7218
|
// src/components/notification/Popup.js
|
|
7175
|
-
var
|
|
7219
|
+
var import_react52 = __toESM(require("react"));
|
|
7176
7220
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
7177
7221
|
function Popup3({
|
|
7178
7222
|
isOpen,
|
|
@@ -7180,10 +7224,10 @@ function Popup3({
|
|
|
7180
7224
|
onSave
|
|
7181
7225
|
}) {
|
|
7182
7226
|
if (!isOpen) return null;
|
|
7183
|
-
const [fileInstanceId, setFileInstanceId] = (0,
|
|
7184
|
-
const [userId, setUserId] = (0,
|
|
7185
|
-
const [type, setType] = (0,
|
|
7186
|
-
const [message, setMessage] = (0,
|
|
7227
|
+
const [fileInstanceId, setFileInstanceId] = (0, import_react52.useState)("");
|
|
7228
|
+
const [userId, setUserId] = (0, import_react52.useState)("");
|
|
7229
|
+
const [type, setType] = (0, import_react52.useState)("");
|
|
7230
|
+
const [message, setMessage] = (0, import_react52.useState)("");
|
|
7187
7231
|
const handleSubmit = (e) => {
|
|
7188
7232
|
e.preventDefault();
|
|
7189
7233
|
if (!fileInstanceId || !userId || !type || !message) {
|
|
@@ -7254,17 +7298,17 @@ function Popup3({
|
|
|
7254
7298
|
// src/components/notification/NotificationMain.jsx
|
|
7255
7299
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
7256
7300
|
function NotificationMain() {
|
|
7257
|
-
const [refreshkey, setRefreshKey] = (0,
|
|
7301
|
+
const [refreshkey, setRefreshKey] = (0, import_react53.useState)(0);
|
|
7258
7302
|
const handleRefresh = () => {
|
|
7259
7303
|
console.log("Table data refreshed!");
|
|
7260
7304
|
setRefreshKey((prev) => prev + 1);
|
|
7261
7305
|
};
|
|
7262
|
-
const tableRef = (0,
|
|
7263
|
-
const [showModal, setShowModal] = (0,
|
|
7264
|
-
const [pageSize, setPageSize] = (0,
|
|
7265
|
-
const [searchQuery, setSearchQuery] = (0,
|
|
7266
|
-
const [currentPage, setCurrentPage] = (0,
|
|
7267
|
-
const [totalEntries, setTotalEntries] = (0,
|
|
7306
|
+
const tableRef = (0, import_react53.useRef)(null);
|
|
7307
|
+
const [showModal, setShowModal] = (0, import_react53.useState)(false);
|
|
7308
|
+
const [pageSize, setPageSize] = (0, import_react53.useState)(10);
|
|
7309
|
+
const [searchQuery, setSearchQuery] = (0, import_react53.useState)("");
|
|
7310
|
+
const [currentPage, setCurrentPage] = (0, import_react53.useState)(1);
|
|
7311
|
+
const [totalEntries, setTotalEntries] = (0, import_react53.useState)(0);
|
|
7268
7312
|
const handlePageSizeChange = (e) => {
|
|
7269
7313
|
setPageSize(Number(e.target.value));
|
|
7270
7314
|
setCurrentPage(1);
|
|
@@ -7303,10 +7347,10 @@ function NotificationMain() {
|
|
|
7303
7347
|
}
|
|
7304
7348
|
|
|
7305
7349
|
// src/components/task-instance/task_instance_main.jsx
|
|
7306
|
-
var
|
|
7350
|
+
var import_react59 = __toESM(require("react"));
|
|
7307
7351
|
|
|
7308
7352
|
// src/components/task-instance/searchbartaskinstance.jsx
|
|
7309
|
-
var
|
|
7353
|
+
var import_react54 = __toESM(require("react"));
|
|
7310
7354
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
7311
7355
|
function TaskInstanceSearchBar({
|
|
7312
7356
|
searchQuery,
|
|
@@ -7330,10 +7374,10 @@ function TaskInstanceSearchBar({
|
|
|
7330
7374
|
}
|
|
7331
7375
|
|
|
7332
7376
|
// src/components/task-instance/taskinstancetable.jsx
|
|
7333
|
-
var
|
|
7377
|
+
var import_react57 = __toESM(require("react"));
|
|
7334
7378
|
|
|
7335
7379
|
// src/components/task-instance/edit-instance.jsx
|
|
7336
|
-
var
|
|
7380
|
+
var import_react55 = __toESM(require("react"));
|
|
7337
7381
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
7338
7382
|
function EditTaskInstanceModal({
|
|
7339
7383
|
isOpen,
|
|
@@ -7341,7 +7385,7 @@ function EditTaskInstanceModal({
|
|
|
7341
7385
|
selectedTask,
|
|
7342
7386
|
onSave
|
|
7343
7387
|
}) {
|
|
7344
|
-
const [formData, setFormData] = (0,
|
|
7388
|
+
const [formData, setFormData] = (0, import_react55.useState)({
|
|
7345
7389
|
assignedUserId: "",
|
|
7346
7390
|
status: "",
|
|
7347
7391
|
dueDate: "",
|
|
@@ -7349,7 +7393,7 @@ function EditTaskInstanceModal({
|
|
|
7349
7393
|
escalatedOn: "",
|
|
7350
7394
|
slaStatus: ""
|
|
7351
7395
|
});
|
|
7352
|
-
(0,
|
|
7396
|
+
(0, import_react55.useEffect)(() => {
|
|
7353
7397
|
if (selectedTask) {
|
|
7354
7398
|
setFormData({
|
|
7355
7399
|
assignedUserId: selectedTask.assignedUserId || selectedTask.assigned_user_id || "",
|
|
@@ -7547,7 +7591,7 @@ function EditTaskInstanceModal({
|
|
|
7547
7591
|
}
|
|
7548
7592
|
|
|
7549
7593
|
// src/components/task-instance/delete-instance.jsx
|
|
7550
|
-
var
|
|
7594
|
+
var import_react56 = __toESM(require("react"));
|
|
7551
7595
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
7552
7596
|
function DeleteInstanceModal({
|
|
7553
7597
|
isOpen,
|
|
@@ -7852,9 +7896,9 @@ function TaskInstanceTable({
|
|
|
7852
7896
|
reminderSentOn: "2026-08-06",
|
|
7853
7897
|
escalatedOn: ""
|
|
7854
7898
|
}];
|
|
7855
|
-
const [data, setData] = (0,
|
|
7856
|
-
const [sortOrder, setSortOrder] = (0,
|
|
7857
|
-
const [sortKey, setSortKey] = (0,
|
|
7899
|
+
const [data, setData] = (0, import_react57.useState)(initialData);
|
|
7900
|
+
const [sortOrder, setSortOrder] = (0, import_react57.useState)("asc");
|
|
7901
|
+
const [sortKey, setSortKey] = (0, import_react57.useState)("taskInstanceId");
|
|
7858
7902
|
const handleSort = (columnKey) => {
|
|
7859
7903
|
const isAsc = sortKey === columnKey && sortOrder === "asc";
|
|
7860
7904
|
setSortOrder(isAsc ? "desc" : "asc");
|
|
@@ -7870,7 +7914,7 @@ function TaskInstanceTable({
|
|
|
7870
7914
|
const query = (searchQuery || "").toLowerCase();
|
|
7871
7915
|
return String(item.taskInstanceId).includes(query) || String(item.fileInstanceId).includes(query) || String(item.workflowStepId).includes(query) || String(item.assignedUserId).includes(query) || item.status.toLowerCase().includes(query);
|
|
7872
7916
|
});
|
|
7873
|
-
(0,
|
|
7917
|
+
(0, import_react57.useEffect)(() => {
|
|
7874
7918
|
if (setTotalEntries) setTotalEntries(filteredData.length);
|
|
7875
7919
|
}, [filteredData.length, setTotalEntries]);
|
|
7876
7920
|
const totalPages = Math.ceil(filteredData.length / pageSize) || 1;
|
|
@@ -7879,9 +7923,9 @@ function TaskInstanceTable({
|
|
|
7879
7923
|
const pageNumbers = Array.from({
|
|
7880
7924
|
length: totalPages
|
|
7881
7925
|
}, (_, i) => i + 1);
|
|
7882
|
-
const [showEditPopup, setShowEditPopup] = (0,
|
|
7883
|
-
const [showDeletePopup, setShowDeletePopup] = (0,
|
|
7884
|
-
const [selectedItem, setSelectedItem] = (0,
|
|
7926
|
+
const [showEditPopup, setShowEditPopup] = (0, import_react57.useState)(false);
|
|
7927
|
+
const [showDeletePopup, setShowDeletePopup] = (0, import_react57.useState)(false);
|
|
7928
|
+
const [selectedItem, setSelectedItem] = (0, import_react57.useState)(null);
|
|
7885
7929
|
const openEditPopup = (item) => {
|
|
7886
7930
|
setSelectedItem(item);
|
|
7887
7931
|
setShowEditPopup(true);
|
|
@@ -8002,7 +8046,7 @@ function TaskInstanceTable({
|
|
|
8002
8046
|
}
|
|
8003
8047
|
|
|
8004
8048
|
// src/components/task-instance/addtaskinstance.jsx
|
|
8005
|
-
var
|
|
8049
|
+
var import_react58 = __toESM(require("react"));
|
|
8006
8050
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
8007
8051
|
function AddTaskInstanceModal({
|
|
8008
8052
|
isOpen,
|
|
@@ -8135,17 +8179,17 @@ function AddTaskInstanceModal({
|
|
|
8135
8179
|
// src/components/task-instance/task_instance_main.jsx
|
|
8136
8180
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
8137
8181
|
function Task_instance_main() {
|
|
8138
|
-
const [refreshkey, setRefreshKey] = (0,
|
|
8182
|
+
const [refreshkey, setRefreshKey] = (0, import_react59.useState)(0);
|
|
8139
8183
|
const handleRefresh = () => {
|
|
8140
8184
|
console.log("Table data refreshed!");
|
|
8141
8185
|
setRefreshKey((prev) => prev + 1);
|
|
8142
8186
|
};
|
|
8143
|
-
const [modalOpen, setModalOpen] = (0,
|
|
8144
|
-
const [pageSize, setPageSize] = (0,
|
|
8145
|
-
const [searchQuery, setSearchQuery] = (0,
|
|
8146
|
-
const tableRef = (0,
|
|
8147
|
-
const [currentPage, setCurrentPage] = (0,
|
|
8148
|
-
const [totalEntries, setTotalEntries] = (0,
|
|
8187
|
+
const [modalOpen, setModalOpen] = (0, import_react59.useState)(false);
|
|
8188
|
+
const [pageSize, setPageSize] = (0, import_react59.useState)(10);
|
|
8189
|
+
const [searchQuery, setSearchQuery] = (0, import_react59.useState)("");
|
|
8190
|
+
const tableRef = (0, import_react59.useRef)(null);
|
|
8191
|
+
const [currentPage, setCurrentPage] = (0, import_react59.useState)(1);
|
|
8192
|
+
const [totalEntries, setTotalEntries] = (0, import_react59.useState)(0);
|
|
8149
8193
|
const handlePageSizeChange = (e) => {
|
|
8150
8194
|
setPageSize(Number(e.target.value));
|
|
8151
8195
|
setCurrentPage(1);
|
|
@@ -8212,10 +8256,10 @@ function Task_instance_main() {
|
|
|
8212
8256
|
}
|
|
8213
8257
|
|
|
8214
8258
|
// src/components/comment/comment_main.jsx
|
|
8215
|
-
var
|
|
8259
|
+
var import_react63 = __toESM(require("react"));
|
|
8216
8260
|
|
|
8217
8261
|
// src/components/comment/searchbarcomment.jsx
|
|
8218
|
-
var
|
|
8262
|
+
var import_react60 = __toESM(require("react"));
|
|
8219
8263
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
8220
8264
|
function CommentSearchBar({
|
|
8221
8265
|
searchQuery,
|
|
@@ -8239,7 +8283,7 @@ function CommentSearchBar({
|
|
|
8239
8283
|
}
|
|
8240
8284
|
|
|
8241
8285
|
// src/components/comment/commenttable.jsx
|
|
8242
|
-
var
|
|
8286
|
+
var import_react61 = __toESM(require("react"));
|
|
8243
8287
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
8244
8288
|
function CommentTable({
|
|
8245
8289
|
pageSize,
|
|
@@ -8449,9 +8493,9 @@ function CommentTable({
|
|
|
8449
8493
|
createdOn: "08 Aug 2026",
|
|
8450
8494
|
status: true
|
|
8451
8495
|
}];
|
|
8452
|
-
const [data, setData] = (0,
|
|
8453
|
-
const [sortOrder, setSortOrder] = (0,
|
|
8454
|
-
const [sortKey, setSortKey] = (0,
|
|
8496
|
+
const [data, setData] = (0, import_react61.useState)(initialData);
|
|
8497
|
+
const [sortOrder, setSortOrder] = (0, import_react61.useState)("asc");
|
|
8498
|
+
const [sortKey, setSortKey] = (0, import_react61.useState)("commentId");
|
|
8455
8499
|
const handleSort = (columnKey) => {
|
|
8456
8500
|
const isAsc = sortKey === columnKey && sortOrder === "asc";
|
|
8457
8501
|
setSortOrder(isAsc ? "desc" : "asc");
|
|
@@ -8467,7 +8511,7 @@ function CommentTable({
|
|
|
8467
8511
|
const query = (searchQuery || "").toLowerCase();
|
|
8468
8512
|
return String(item.commentId).toLowerCase().includes(query) || String(item.taskInstanceId).toLowerCase().includes(query) || item.comment.toLowerCase().includes(query) || String(item.commentedBy).toLowerCase().includes(query);
|
|
8469
8513
|
});
|
|
8470
|
-
(0,
|
|
8514
|
+
(0, import_react61.useEffect)(() => {
|
|
8471
8515
|
if (setTotalEntries) setTotalEntries(filteredData.length);
|
|
8472
8516
|
}, [filteredData.length, setTotalEntries]);
|
|
8473
8517
|
const totalPages = Math.ceil(filteredData.length / pageSize) || 1;
|
|
@@ -8523,15 +8567,15 @@ function CommentTable({
|
|
|
8523
8567
|
}
|
|
8524
8568
|
|
|
8525
8569
|
// src/components/comment/addcomment.jsx
|
|
8526
|
-
var
|
|
8570
|
+
var import_react62 = __toESM(require("react"));
|
|
8527
8571
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
8528
8572
|
function AddCommentModal({
|
|
8529
8573
|
isOpen,
|
|
8530
8574
|
onClose
|
|
8531
8575
|
}) {
|
|
8532
|
-
const [allowEdit, setAllowEdit] = (0,
|
|
8533
|
-
const [pinComment, setPinComment] = (0,
|
|
8534
|
-
const [sendNotification, setSendNotification] = (0,
|
|
8576
|
+
const [allowEdit, setAllowEdit] = (0, import_react62.useState)(true);
|
|
8577
|
+
const [pinComment, setPinComment] = (0, import_react62.useState)(true);
|
|
8578
|
+
const [sendNotification, setSendNotification] = (0, import_react62.useState)(false);
|
|
8535
8579
|
if (!isOpen) return null;
|
|
8536
8580
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "fc:fixed fc:inset-0 fc:z-50 fc:flex fc:items-center fc:justify-center fc:p-4", children: [
|
|
8537
8581
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "fc:fixed fc:inset-0 fc:bg-slate-900/50 fc:backdrop-blur-sm fc:transition-opacity fc:duration-200", onClick: onClose }),
|
|
@@ -8728,12 +8772,12 @@ function AddCommentModal({
|
|
|
8728
8772
|
// src/components/comment/comment_main.jsx
|
|
8729
8773
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
8730
8774
|
function Comment_main() {
|
|
8731
|
-
const [modalOpen, setModalOpen] = (0,
|
|
8732
|
-
const [pageSize, setPageSize] = (0,
|
|
8733
|
-
const [searchQuery, setSearchQuery] = (0,
|
|
8734
|
-
const [currentPage, setCurrentPage] = (0,
|
|
8735
|
-
const [totalEntries, setTotalEntries] = (0,
|
|
8736
|
-
const tableRef = (0,
|
|
8775
|
+
const [modalOpen, setModalOpen] = (0, import_react63.useState)(false);
|
|
8776
|
+
const [pageSize, setPageSize] = (0, import_react63.useState)(10);
|
|
8777
|
+
const [searchQuery, setSearchQuery] = (0, import_react63.useState)("");
|
|
8778
|
+
const [currentPage, setCurrentPage] = (0, import_react63.useState)(1);
|
|
8779
|
+
const [totalEntries, setTotalEntries] = (0, import_react63.useState)(0);
|
|
8780
|
+
const tableRef = (0, import_react63.useRef)(null);
|
|
8737
8781
|
const handlePageSizeChange = (e) => {
|
|
8738
8782
|
setPageSize(Number(e.target.value));
|
|
8739
8783
|
setCurrentPage(1);
|
|
@@ -8802,10 +8846,11 @@ function Comment_main() {
|
|
|
8802
8846
|
}
|
|
8803
8847
|
|
|
8804
8848
|
// src/components/hierarchy-node/HierarchyNodeMain.jsx
|
|
8805
|
-
var
|
|
8849
|
+
var import_react69 = __toESM(require("react"));
|
|
8850
|
+
var import_sweetalert24 = __toESM(require("sweetalert2"));
|
|
8806
8851
|
|
|
8807
8852
|
// src/components/hierarchy-node/SearchBar.jsx
|
|
8808
|
-
var
|
|
8853
|
+
var import_react64 = __toESM(require("react"));
|
|
8809
8854
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
8810
8855
|
function SearchBar9({ searchQuery, setSearchQuery }) {
|
|
8811
8856
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "fc:relative fc:max-w-sm fc:w-full", children: [
|
|
@@ -8841,10 +8886,10 @@ function SearchBar9({ searchQuery, setSearchQuery }) {
|
|
|
8841
8886
|
}
|
|
8842
8887
|
|
|
8843
8888
|
// src/components/hierarchy-node/HierarchyTable.jsx
|
|
8844
|
-
var
|
|
8889
|
+
var import_react67 = __toESM(require("react"));
|
|
8845
8890
|
|
|
8846
8891
|
// src/components/hierarchy-node/AddEditModal.jsx
|
|
8847
|
-
var
|
|
8892
|
+
var import_react65 = __toESM(require("react"));
|
|
8848
8893
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
8849
8894
|
function AddEditModal2({
|
|
8850
8895
|
isOpen,
|
|
@@ -8852,7 +8897,7 @@ function AddEditModal2({
|
|
|
8852
8897
|
onSave,
|
|
8853
8898
|
editData
|
|
8854
8899
|
}) {
|
|
8855
|
-
const [formData, setFormData] = (0,
|
|
8900
|
+
const [formData, setFormData] = (0, import_react65.useState)({
|
|
8856
8901
|
hierarchyNodeId: "",
|
|
8857
8902
|
parentHierarchyNodeId: "",
|
|
8858
8903
|
hierarchyLevel: "",
|
|
@@ -8862,7 +8907,7 @@ function AddEditModal2({
|
|
|
8862
8907
|
externalEntityId: "",
|
|
8863
8908
|
isActive: true
|
|
8864
8909
|
});
|
|
8865
|
-
(0,
|
|
8910
|
+
(0, import_react65.useEffect)(() => {
|
|
8866
8911
|
if (editData) {
|
|
8867
8912
|
setFormData(editData);
|
|
8868
8913
|
}
|
|
@@ -9005,7 +9050,7 @@ function AddEditModal2({
|
|
|
9005
9050
|
}
|
|
9006
9051
|
|
|
9007
9052
|
// src/components/hierarchy-node/DeleteModal.jsx
|
|
9008
|
-
var
|
|
9053
|
+
var import_react66 = __toESM(require("react"));
|
|
9009
9054
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
9010
9055
|
function DeleteModal2({
|
|
9011
9056
|
isOpen,
|
|
@@ -9066,6 +9111,7 @@ function DeleteModal2({
|
|
|
9066
9111
|
// src/components/hierarchy-node/HierarchyTable.jsx
|
|
9067
9112
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
9068
9113
|
function HierarchyTable({
|
|
9114
|
+
apiData,
|
|
9069
9115
|
pageSize,
|
|
9070
9116
|
searchQuery
|
|
9071
9117
|
}) {
|
|
@@ -9160,24 +9206,27 @@ function HierarchyTable({
|
|
|
9160
9206
|
externalEntityId: 1010,
|
|
9161
9207
|
isActive: true
|
|
9162
9208
|
}];
|
|
9163
|
-
const [currentPage, setCurrentPage] = (0,
|
|
9209
|
+
const [currentPage, setCurrentPage] = (0, import_react67.useState)(1);
|
|
9164
9210
|
;
|
|
9165
|
-
const [data, setData] = (0,
|
|
9211
|
+
const [data, setData] = (0, import_react67.useState)(apiData || hierarchyData);
|
|
9212
|
+
(0, import_react67.useEffect)(() => {
|
|
9213
|
+
if (apiData) setData(apiData);
|
|
9214
|
+
}, [apiData]);
|
|
9166
9215
|
const filteredData = data.filter(
|
|
9167
9216
|
(item) => (item.nodeName || "").toLowerCase().includes((searchQuery || "").toLowerCase()) || (item.nodeType || "").toLowerCase().includes((searchQuery || "").toLowerCase()) || String(item.hierarchyNodeId).includes(searchQuery || "")
|
|
9168
9217
|
);
|
|
9169
|
-
const [sortColumn, setSortColumn] = (0,
|
|
9170
|
-
const [sortDirection, setSortDirection] = (0,
|
|
9218
|
+
const [sortColumn, setSortColumn] = (0, import_react67.useState)("");
|
|
9219
|
+
const [sortDirection, setSortDirection] = (0, import_react67.useState)("asc");
|
|
9171
9220
|
const totalPages = Math.ceil(filteredData.length / pageSize) || 1;
|
|
9172
9221
|
const startIndex = (currentPage - 1) * pageSize;
|
|
9173
9222
|
const visibleData = filteredData.slice(
|
|
9174
9223
|
startIndex,
|
|
9175
9224
|
startIndex + pageSize
|
|
9176
9225
|
);
|
|
9177
|
-
const [editOpen, setEditOpen] = (0,
|
|
9178
|
-
const [deleteOpen, setDeleteOpen] = (0,
|
|
9179
|
-
const [selectedNode, setSelectedNode] = (0,
|
|
9180
|
-
(0,
|
|
9226
|
+
const [editOpen, setEditOpen] = (0, import_react67.useState)(false);
|
|
9227
|
+
const [deleteOpen, setDeleteOpen] = (0, import_react67.useState)(false);
|
|
9228
|
+
const [selectedNode, setSelectedNode] = (0, import_react67.useState)(null);
|
|
9229
|
+
(0, import_react67.useEffect)(() => {
|
|
9181
9230
|
setCurrentPage(1);
|
|
9182
9231
|
}, [searchQuery, pageSize]);
|
|
9183
9232
|
const handleSort = (column) => {
|
|
@@ -9350,7 +9399,7 @@ function HierarchyTable({
|
|
|
9350
9399
|
}
|
|
9351
9400
|
|
|
9352
9401
|
// src/components/hierarchy-node/AddHierarchyNodeModal.jsx
|
|
9353
|
-
var
|
|
9402
|
+
var import_react68 = __toESM(require("react"));
|
|
9354
9403
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
9355
9404
|
function AddHierarchyNodeModal({
|
|
9356
9405
|
isOpen,
|
|
@@ -9456,10 +9505,25 @@ function AddHierarchyNodeModal({
|
|
|
9456
9505
|
// src/components/hierarchy-node/HierarchyNodeMain.jsx
|
|
9457
9506
|
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
9458
9507
|
function HierarchyNodeMain() {
|
|
9459
|
-
const [modalOpen, setModalOpen] = (0,
|
|
9460
|
-
const [pageSize, setPageSize] = (0,
|
|
9461
|
-
const tableRef = (0,
|
|
9462
|
-
const [searchQuery, setSearchQuery] = (0,
|
|
9508
|
+
const [modalOpen, setModalOpen] = (0, import_react69.useState)(false);
|
|
9509
|
+
const [pageSize, setPageSize] = (0, import_react69.useState)(5);
|
|
9510
|
+
const tableRef = (0, import_react69.useRef)(null);
|
|
9511
|
+
const [searchQuery, setSearchQuery] = (0, import_react69.useState)("");
|
|
9512
|
+
const [apiData, setApiData] = (0, import_react69.useState)([]);
|
|
9513
|
+
(0, import_react69.useEffect)(() => {
|
|
9514
|
+
(async () => {
|
|
9515
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
9516
|
+
try {
|
|
9517
|
+
const endpoint = (_c = (_b = (_a = getApiEndpoints()) == null ? void 0 : _a.flowCore) == null ? void 0 : _b.hierarchyNode) == null ? void 0 : _c.getList;
|
|
9518
|
+
if (!endpoint) throw Error("Hierarchy node list endpoint is not configured.");
|
|
9519
|
+
const result = await getApiService().get(endpoint);
|
|
9520
|
+
const value = ((_d = result == null ? void 0 : result.data) == null ? void 0 : _d.data) || ((_e = result == null ? void 0 : result.data) == null ? void 0 : _e.result) || (result == null ? void 0 : result.data) || result;
|
|
9521
|
+
setApiData(Array.isArray(value) ? value : (value == null ? void 0 : value.items) || (value == null ? void 0 : value.records) || []);
|
|
9522
|
+
} catch (error) {
|
|
9523
|
+
await import_sweetalert24.default.fire("Error", ((_g = (_f = error == null ? void 0 : error.response) == null ? void 0 : _f.data) == null ? void 0 : _g.message) || (error == null ? void 0 : error.message) || "Unable to load hierarchy nodes.", "error");
|
|
9524
|
+
}
|
|
9525
|
+
})();
|
|
9526
|
+
}, [modalOpen]);
|
|
9463
9527
|
const handleRefresh = () => {
|
|
9464
9528
|
console.log("Refresh clicked");
|
|
9465
9529
|
};
|
|
@@ -9510,6 +9574,7 @@ function HierarchyNodeMain() {
|
|
|
9510
9574
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { ref: tableRef, className: "fc:flex-1 fc:overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
9511
9575
|
HierarchyTable,
|
|
9512
9576
|
{
|
|
9577
|
+
apiData,
|
|
9513
9578
|
pageSize,
|
|
9514
9579
|
searchQuery
|
|
9515
9580
|
}
|
|
@@ -9521,10 +9586,10 @@ function HierarchyNodeMain() {
|
|
|
9521
9586
|
}
|
|
9522
9587
|
|
|
9523
9588
|
// src/components/file-pool/FilePoolMain.jsx
|
|
9524
|
-
var
|
|
9589
|
+
var import_react73 = __toESM(require("react"));
|
|
9525
9590
|
|
|
9526
9591
|
// src/components/file-pool/SearchBar.jsx
|
|
9527
|
-
var
|
|
9592
|
+
var import_react70 = __toESM(require("react"));
|
|
9528
9593
|
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
9529
9594
|
function SearchBar10() {
|
|
9530
9595
|
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "fc:relative fc:w-full fc:max-w-sm", children: [
|
|
@@ -9534,7 +9599,7 @@ function SearchBar10() {
|
|
|
9534
9599
|
}
|
|
9535
9600
|
|
|
9536
9601
|
// src/components/file-pool/FilePoolTable.jsx
|
|
9537
|
-
var
|
|
9602
|
+
var import_react71 = __toESM(require("react"));
|
|
9538
9603
|
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
9539
9604
|
function FilePoolTable({
|
|
9540
9605
|
pageSize
|
|
@@ -9610,10 +9675,10 @@ function FilePoolTable({
|
|
|
9610
9675
|
addedOn: "10-07-2026",
|
|
9611
9676
|
pulledOn: "-"
|
|
9612
9677
|
}];
|
|
9613
|
-
const [currentPage, setCurrentPage] = (0,
|
|
9614
|
-
const [data, setData] = (0,
|
|
9615
|
-
const [sortColumn, setSortColumn] = (0,
|
|
9616
|
-
const [sortDirection, setSortDirection] = (0,
|
|
9678
|
+
const [currentPage, setCurrentPage] = (0, import_react71.useState)(1);
|
|
9679
|
+
const [data, setData] = (0, import_react71.useState)(filePoolData);
|
|
9680
|
+
const [sortColumn, setSortColumn] = (0, import_react71.useState)("");
|
|
9681
|
+
const [sortDirection, setSortDirection] = (0, import_react71.useState)("asc");
|
|
9617
9682
|
const totalPages = Math.ceil(data.length / pageSize) || 1;
|
|
9618
9683
|
const startIndex = (currentPage - 1) * pageSize;
|
|
9619
9684
|
const currentData = data.slice(startIndex, startIndex + pageSize);
|
|
@@ -9696,7 +9761,7 @@ function FilePoolTable({
|
|
|
9696
9761
|
}
|
|
9697
9762
|
|
|
9698
9763
|
// src/components/file-pool/AddFilePoolModal.jsx
|
|
9699
|
-
var
|
|
9764
|
+
var import_react72 = __toESM(require("react"));
|
|
9700
9765
|
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
9701
9766
|
function AddFilePoolModal({
|
|
9702
9767
|
isOpen,
|
|
@@ -9769,9 +9834,9 @@ function AddFilePoolModal({
|
|
|
9769
9834
|
// src/components/file-pool/FilePoolMain.jsx
|
|
9770
9835
|
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
9771
9836
|
function FilePoolMain() {
|
|
9772
|
-
const [modalOpen, setModalOpen] = (0,
|
|
9773
|
-
const [pageSize, setPageSize] = (0,
|
|
9774
|
-
const tableRef = (0,
|
|
9837
|
+
const [modalOpen, setModalOpen] = (0, import_react73.useState)(false);
|
|
9838
|
+
const [pageSize, setPageSize] = (0, import_react73.useState)(5);
|
|
9839
|
+
const tableRef = (0, import_react73.useRef)(null);
|
|
9775
9840
|
const handleRefresh = () => {
|
|
9776
9841
|
console.log("Refresh clicked");
|
|
9777
9842
|
};
|
|
@@ -9821,10 +9886,10 @@ function FilePoolMain() {
|
|
|
9821
9886
|
}
|
|
9822
9887
|
|
|
9823
9888
|
// src/components/uploaded-document/UploadedDocumentMain.jsx
|
|
9824
|
-
var
|
|
9889
|
+
var import_react77 = __toESM(require("react"));
|
|
9825
9890
|
|
|
9826
9891
|
// src/components/uploaded-document/SearchBar.jsx
|
|
9827
|
-
var
|
|
9892
|
+
var import_react74 = __toESM(require("react"));
|
|
9828
9893
|
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
9829
9894
|
function SearchBar11() {
|
|
9830
9895
|
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "fc:relative fc:w-full fc:max-w-sm", children: [
|
|
@@ -9834,7 +9899,7 @@ function SearchBar11() {
|
|
|
9834
9899
|
}
|
|
9835
9900
|
|
|
9836
9901
|
// src/components/uploaded-document/UploadedDocumentTable.jsx
|
|
9837
|
-
var
|
|
9902
|
+
var import_react75 = __toESM(require("react"));
|
|
9838
9903
|
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
9839
9904
|
function UploadedDocumentTable({
|
|
9840
9905
|
pageSize
|
|
@@ -9910,10 +9975,10 @@ function UploadedDocumentTable({
|
|
|
9910
9975
|
storagePath: "/uploads/certificate.pdf",
|
|
9911
9976
|
uploadedBy: "Admin"
|
|
9912
9977
|
}];
|
|
9913
|
-
const [data, setData] = (0,
|
|
9914
|
-
const [currentPage, setCurrentPage] = (0,
|
|
9915
|
-
const [sortColumn, setSortColumn] = (0,
|
|
9916
|
-
const [sortDirection, setSortDirection] = (0,
|
|
9978
|
+
const [data, setData] = (0, import_react75.useState)(uploadedDocuments);
|
|
9979
|
+
const [currentPage, setCurrentPage] = (0, import_react75.useState)(1);
|
|
9980
|
+
const [sortColumn, setSortColumn] = (0, import_react75.useState)("");
|
|
9981
|
+
const [sortDirection, setSortDirection] = (0, import_react75.useState)("asc");
|
|
9917
9982
|
const totalPages = Math.ceil(data.length / pageSize) || 1;
|
|
9918
9983
|
const startIndex = (currentPage - 1) * pageSize;
|
|
9919
9984
|
const currentData = data.slice(startIndex, startIndex + pageSize);
|
|
@@ -9997,7 +10062,7 @@ function UploadedDocumentTable({
|
|
|
9997
10062
|
}
|
|
9998
10063
|
|
|
9999
10064
|
// src/components/uploaded-document/AddUploadedDocumentModal.jsx
|
|
10000
|
-
var
|
|
10065
|
+
var import_react76 = __toESM(require("react"));
|
|
10001
10066
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
10002
10067
|
function AddUploadedDocumentModal({
|
|
10003
10068
|
isOpen,
|
|
@@ -10113,9 +10178,9 @@ function AddUploadedDocumentModal({
|
|
|
10113
10178
|
// src/components/uploaded-document/UploadedDocumentMain.jsx
|
|
10114
10179
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
10115
10180
|
function UploadedDocumentMain() {
|
|
10116
|
-
const [modalOpen, setModalOpen] = (0,
|
|
10117
|
-
const [pageSize, setPageSize] = (0,
|
|
10118
|
-
const tableRef = (0,
|
|
10181
|
+
const [modalOpen, setModalOpen] = (0, import_react77.useState)(false);
|
|
10182
|
+
const [pageSize, setPageSize] = (0, import_react77.useState)(5);
|
|
10183
|
+
const tableRef = (0, import_react77.useRef)(null);
|
|
10119
10184
|
const handleRefresh = () => {
|
|
10120
10185
|
console.log("Refresh clicked");
|
|
10121
10186
|
};
|
|
@@ -10165,14 +10230,14 @@ function UploadedDocumentMain() {
|
|
|
10165
10230
|
}
|
|
10166
10231
|
|
|
10167
10232
|
// src/components/BuisnessEntity/BusinessEntitymain.js
|
|
10168
|
-
var
|
|
10233
|
+
var import_react79 = __toESM(require("react"));
|
|
10169
10234
|
var import_link4 = __toESM(require("next/link"));
|
|
10170
10235
|
|
|
10171
10236
|
// src/components/BuisnessEntity/AddBusinessEntityModal.js
|
|
10172
|
-
var
|
|
10237
|
+
var import_react78 = __toESM(require("react"));
|
|
10173
10238
|
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
10174
10239
|
function AddBusinessEntityModal({ onClose }) {
|
|
10175
|
-
const [formData, setFormData] = (0,
|
|
10240
|
+
const [formData, setFormData] = (0, import_react78.useState)({
|
|
10176
10241
|
entityType: "",
|
|
10177
10242
|
entityKey: "",
|
|
10178
10243
|
displayNumber: "",
|
|
@@ -10181,7 +10246,7 @@ function AddBusinessEntityModal({ onClose }) {
|
|
|
10181
10246
|
isVisible: true,
|
|
10182
10247
|
status: "Active"
|
|
10183
10248
|
});
|
|
10184
|
-
const [errors, setErrors] = (0,
|
|
10249
|
+
const [errors, setErrors] = (0, import_react78.useState)({});
|
|
10185
10250
|
const handleChange = (field, value) => {
|
|
10186
10251
|
setFormData((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
10187
10252
|
[field]: value
|
|
@@ -10556,10 +10621,10 @@ function BusinessEntity() {
|
|
|
10556
10621
|
const handleDownload = () => {
|
|
10557
10622
|
console.log("Download clicked");
|
|
10558
10623
|
};
|
|
10559
|
-
const tableRef = (0,
|
|
10560
|
-
const [showModal, setShowModal] = (0,
|
|
10561
|
-
const [pageSize, setPageSize] = (0,
|
|
10562
|
-
const [sortConfig, setSortConfig] = (0,
|
|
10624
|
+
const tableRef = (0, import_react79.useRef)(null);
|
|
10625
|
+
const [showModal, setShowModal] = (0, import_react79.useState)(false);
|
|
10626
|
+
const [pageSize, setPageSize] = (0, import_react79.useState)(5);
|
|
10627
|
+
const [sortConfig, setSortConfig] = (0, import_react79.useState)({
|
|
10563
10628
|
key: "",
|
|
10564
10629
|
direction: "asc"
|
|
10565
10630
|
});
|
|
@@ -10637,14 +10702,14 @@ function BusinessEntity() {
|
|
|
10637
10702
|
}
|
|
10638
10703
|
|
|
10639
10704
|
// src/components/FileInstance/FileInstancemain.js
|
|
10640
|
-
var
|
|
10705
|
+
var import_react81 = __toESM(require("react"));
|
|
10641
10706
|
var import_link5 = __toESM(require("next/link"));
|
|
10642
10707
|
|
|
10643
10708
|
// src/components/FileInstance/AddWorkFlowFileInstanceModal.js
|
|
10644
|
-
var
|
|
10709
|
+
var import_react80 = __toESM(require("react"));
|
|
10645
10710
|
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
10646
10711
|
function AddFileInstanceModal({ onClose }) {
|
|
10647
|
-
const [formData, setFormData] = (0,
|
|
10712
|
+
const [formData, setFormData] = (0, import_react80.useState)({
|
|
10648
10713
|
workflow: "",
|
|
10649
10714
|
businessEntityType: "",
|
|
10650
10715
|
businessEntity: "",
|
|
@@ -10654,7 +10719,7 @@ function AddFileInstanceModal({ onClose }) {
|
|
|
10654
10719
|
status: "Pending",
|
|
10655
10720
|
priority: "High"
|
|
10656
10721
|
});
|
|
10657
|
-
const [errors, setErrors] = (0,
|
|
10722
|
+
const [errors, setErrors] = (0, import_react80.useState)({});
|
|
10658
10723
|
const validateForm = () => {
|
|
10659
10724
|
const newErrors = {};
|
|
10660
10725
|
if (!formData.workflow) newErrors.workflow = "Workflow is required.";
|
|
@@ -11065,10 +11130,10 @@ function FileInstance() {
|
|
|
11065
11130
|
const handleDownload = () => {
|
|
11066
11131
|
console.log("Download clicked");
|
|
11067
11132
|
};
|
|
11068
|
-
const tableRef = (0,
|
|
11069
|
-
const [showModal, setShowModal] = (0,
|
|
11070
|
-
const [pageSize, setPageSize] = (0,
|
|
11071
|
-
const [sortConfig, setSortConfig] = (0,
|
|
11133
|
+
const tableRef = (0, import_react81.useRef)(null);
|
|
11134
|
+
const [showModal, setShowModal] = (0, import_react81.useState)(false);
|
|
11135
|
+
const [pageSize, setPageSize] = (0, import_react81.useState)(5);
|
|
11136
|
+
const [sortConfig, setSortConfig] = (0, import_react81.useState)({
|
|
11072
11137
|
key: "",
|
|
11073
11138
|
direction: "asc"
|
|
11074
11139
|
});
|
|
@@ -11176,10 +11241,10 @@ function FileInstance() {
|
|
|
11176
11241
|
}
|
|
11177
11242
|
|
|
11178
11243
|
// src/components/assignment-rule/AssignmentRuleMain.jsx
|
|
11179
|
-
var
|
|
11244
|
+
var import_react85 = __toESM(require("react"));
|
|
11180
11245
|
|
|
11181
11246
|
// src/components/assignment-rule/SearchBar.js
|
|
11182
|
-
var
|
|
11247
|
+
var import_react82 = __toESM(require("react"));
|
|
11183
11248
|
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
11184
11249
|
function SearchBar12({
|
|
11185
11250
|
searchQuery,
|
|
@@ -11199,7 +11264,7 @@ function SearchBar12({
|
|
|
11199
11264
|
}
|
|
11200
11265
|
|
|
11201
11266
|
// src/components/assignment-rule/Table.js
|
|
11202
|
-
var
|
|
11267
|
+
var import_react83 = __toESM(require("react"));
|
|
11203
11268
|
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
11204
11269
|
function Table4({
|
|
11205
11270
|
pageSize,
|
|
@@ -11307,12 +11372,12 @@ function Table4({
|
|
|
11307
11372
|
dynamicFunctionId: "4",
|
|
11308
11373
|
isPoolEnabled: true
|
|
11309
11374
|
}];
|
|
11310
|
-
const [data, setData] = (0,
|
|
11311
|
-
const [sortOrder, setSortOrder] = (0,
|
|
11312
|
-
const [sortKey, setSortKey] = (0,
|
|
11313
|
-
const [selectedItem, setSelectedItem] = (0,
|
|
11314
|
-
const [isEditModalOpen, setIsEditModalOpen] = (0,
|
|
11315
|
-
const [isDeleteModalOpen, setIsDeleteModalOpen] = (0,
|
|
11375
|
+
const [data, setData] = (0, import_react83.useState)(initialData);
|
|
11376
|
+
const [sortOrder, setSortOrder] = (0, import_react83.useState)("asc");
|
|
11377
|
+
const [sortKey, setSortKey] = (0, import_react83.useState)("workflowStepId");
|
|
11378
|
+
const [selectedItem, setSelectedItem] = (0, import_react83.useState)(null);
|
|
11379
|
+
const [isEditModalOpen, setIsEditModalOpen] = (0, import_react83.useState)(false);
|
|
11380
|
+
const [isDeleteModalOpen, setIsDeleteModalOpen] = (0, import_react83.useState)(false);
|
|
11316
11381
|
const handleEdit = (item) => {
|
|
11317
11382
|
setSelectedItem(item);
|
|
11318
11383
|
setIsEditModalOpen(true);
|
|
@@ -11365,7 +11430,7 @@ function Table4({
|
|
|
11365
11430
|
const query = searchQuery.toLowerCase().trim();
|
|
11366
11431
|
return item.workflowStepId && item.workflowStepId.toString().toLowerCase().includes(query) || item.assignmentType && item.assignmentType.toLowerCase().includes(query) || item.hierarchyNodeType && item.hierarchyNodeType.toLowerCase().includes(query) || item.dynamicFunctionId && item.dynamicFunctionId.toString().toLowerCase().includes(query);
|
|
11367
11432
|
});
|
|
11368
|
-
(0,
|
|
11433
|
+
(0, import_react83.useEffect)(() => {
|
|
11369
11434
|
if (setTotalEntries) setTotalEntries(filteredData.length);
|
|
11370
11435
|
}, [filteredData.length, setTotalEntries]);
|
|
11371
11436
|
const totalPages = Math.ceil(filteredData.length / pageSize) || 1;
|
|
@@ -11491,7 +11556,7 @@ function Table4({
|
|
|
11491
11556
|
}
|
|
11492
11557
|
|
|
11493
11558
|
// src/components/assignment-rule/Popup.js
|
|
11494
|
-
var
|
|
11559
|
+
var import_react84 = __toESM(require("react"));
|
|
11495
11560
|
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
11496
11561
|
function Popup4({
|
|
11497
11562
|
isOpen,
|
|
@@ -11499,11 +11564,11 @@ function Popup4({
|
|
|
11499
11564
|
onSave
|
|
11500
11565
|
}) {
|
|
11501
11566
|
if (!isOpen) return null;
|
|
11502
|
-
const [workflowStepId, setWorkflowStepId] = (0,
|
|
11503
|
-
const [assignmentType, setAssignmentType] = (0,
|
|
11504
|
-
const [hierarchyNodeType, setHierarchyNodeType] = (0,
|
|
11505
|
-
const [dynamicFunctionId, setDynamicFunctionId] = (0,
|
|
11506
|
-
const [isPoolEnabled, setIsPoolEnabled] = (0,
|
|
11567
|
+
const [workflowStepId, setWorkflowStepId] = (0, import_react84.useState)("");
|
|
11568
|
+
const [assignmentType, setAssignmentType] = (0, import_react84.useState)("");
|
|
11569
|
+
const [hierarchyNodeType, setHierarchyNodeType] = (0, import_react84.useState)("");
|
|
11570
|
+
const [dynamicFunctionId, setDynamicFunctionId] = (0, import_react84.useState)("");
|
|
11571
|
+
const [isPoolEnabled, setIsPoolEnabled] = (0, import_react84.useState)(false);
|
|
11507
11572
|
const handleSubmit = (e) => {
|
|
11508
11573
|
e.preventDefault();
|
|
11509
11574
|
if (!workflowStepId || !assignmentType || !hierarchyNodeType) {
|
|
@@ -11580,17 +11645,17 @@ function Popup4({
|
|
|
11580
11645
|
// src/components/assignment-rule/AssignmentRuleMain.jsx
|
|
11581
11646
|
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
11582
11647
|
function AssignmentRuleMain() {
|
|
11583
|
-
const [refreshkey, setRefreshKey] = (0,
|
|
11648
|
+
const [refreshkey, setRefreshKey] = (0, import_react85.useState)(0);
|
|
11584
11649
|
const handleRefresh = () => {
|
|
11585
11650
|
console.log("Table data refreshed!");
|
|
11586
11651
|
setRefreshKey((prev) => prev + 1);
|
|
11587
11652
|
};
|
|
11588
|
-
const tableRef = (0,
|
|
11589
|
-
const [showModal, setShowModal] = (0,
|
|
11590
|
-
const [pageSize, setPageSize] = (0,
|
|
11591
|
-
const [searchQuery, setSearchQuery] = (0,
|
|
11592
|
-
const [currentPage, setCurrentPage] = (0,
|
|
11593
|
-
const [totalEntries, setTotalEntries] = (0,
|
|
11653
|
+
const tableRef = (0, import_react85.useRef)(null);
|
|
11654
|
+
const [showModal, setShowModal] = (0, import_react85.useState)(false);
|
|
11655
|
+
const [pageSize, setPageSize] = (0, import_react85.useState)(10);
|
|
11656
|
+
const [searchQuery, setSearchQuery] = (0, import_react85.useState)("");
|
|
11657
|
+
const [currentPage, setCurrentPage] = (0, import_react85.useState)(1);
|
|
11658
|
+
const [totalEntries, setTotalEntries] = (0, import_react85.useState)(0);
|
|
11594
11659
|
const handlePageSizeChange = (e) => {
|
|
11595
11660
|
setPageSize(Number(e.target.value));
|
|
11596
11661
|
setCurrentPage(1);
|
|
@@ -11641,90 +11706,90 @@ var workflowItems = [
|
|
|
11641
11706
|
{
|
|
11642
11707
|
name: "Workflow Type",
|
|
11643
11708
|
component: "workflowType",
|
|
11644
|
-
icon:
|
|
11709
|
+
icon: import_react87.RiGitMergeLine
|
|
11645
11710
|
},
|
|
11646
11711
|
{
|
|
11647
11712
|
name: "Workflow",
|
|
11648
11713
|
component: "workflow",
|
|
11649
|
-
icon:
|
|
11714
|
+
icon: import_react87.RiNodeTree
|
|
11650
11715
|
},
|
|
11651
11716
|
{
|
|
11652
11717
|
name: "Workflow Step",
|
|
11653
11718
|
component: "workflowStep",
|
|
11654
|
-
icon:
|
|
11719
|
+
icon: import_react87.RiGitBranchLine
|
|
11655
11720
|
},
|
|
11656
11721
|
{
|
|
11657
11722
|
name: "Workflow Transition",
|
|
11658
11723
|
component: "workflowTransition",
|
|
11659
|
-
icon:
|
|
11724
|
+
icon: import_react87.RiCornerDownRightLine
|
|
11660
11725
|
}
|
|
11661
11726
|
];
|
|
11662
11727
|
var permissionItems = [{
|
|
11663
11728
|
name: "Task Permission",
|
|
11664
11729
|
component: "Task_permission_main",
|
|
11665
|
-
icon:
|
|
11730
|
+
icon: import_react87.RiUserSettingsLine
|
|
11666
11731
|
}, {
|
|
11667
11732
|
name: "Assignment Rule",
|
|
11668
11733
|
component: "AssignmentRuleMain",
|
|
11669
|
-
icon:
|
|
11734
|
+
icon: import_react87.RiFileShieldLine
|
|
11670
11735
|
}];
|
|
11671
11736
|
var hierarchyItems = [{
|
|
11672
11737
|
name: "Hierarchy Node",
|
|
11673
11738
|
component: "HierarchyNodeMain",
|
|
11674
|
-
icon:
|
|
11739
|
+
icon: import_react87.RiNodeTree
|
|
11675
11740
|
}, {
|
|
11676
11741
|
name: "User Hierarchy Mapping",
|
|
11677
11742
|
component: "User_hierarchy_mapping_main",
|
|
11678
|
-
icon:
|
|
11743
|
+
icon: import_react87.RiUserSharedLine
|
|
11679
11744
|
}, {
|
|
11680
11745
|
name: "Workflow Settings",
|
|
11681
11746
|
component: "WorkflowSettingMain",
|
|
11682
|
-
icon:
|
|
11747
|
+
icon: import_react87.RiSettings4Line
|
|
11683
11748
|
}];
|
|
11684
11749
|
var documentItems = [{
|
|
11685
11750
|
name: "Document Configuration",
|
|
11686
11751
|
component: "DocumentConfigurationmain",
|
|
11687
|
-
icon:
|
|
11752
|
+
icon: import_react87.RiFileSettingsLine
|
|
11688
11753
|
}];
|
|
11689
11754
|
var fileItems = [{
|
|
11690
11755
|
name: "File Instance",
|
|
11691
11756
|
component: "FileInstanceMain",
|
|
11692
|
-
icon:
|
|
11757
|
+
icon: import_react87.RiFileList3Line
|
|
11693
11758
|
}, {
|
|
11694
11759
|
name: "Business Entity",
|
|
11695
11760
|
component: "BusinessEntitymain",
|
|
11696
|
-
icon:
|
|
11761
|
+
icon: import_react87.RiFileList3Line
|
|
11697
11762
|
}, {
|
|
11698
11763
|
name: "File Pool",
|
|
11699
11764
|
component: "FilePoolMain",
|
|
11700
|
-
icon:
|
|
11765
|
+
icon: import_react87.RiDatabase2Line
|
|
11701
11766
|
}, {
|
|
11702
11767
|
name: "Uploaded Document",
|
|
11703
11768
|
component: "UploadedDocumentMain",
|
|
11704
|
-
icon:
|
|
11769
|
+
icon: import_react87.RiFileUploadLine
|
|
11705
11770
|
}];
|
|
11706
11771
|
var communicationItems = [{
|
|
11707
11772
|
name: "Notification",
|
|
11708
11773
|
component: "Notification_main",
|
|
11709
|
-
icon:
|
|
11774
|
+
icon: import_react87.RiNotification4Line
|
|
11710
11775
|
}, {
|
|
11711
11776
|
name: "Comment",
|
|
11712
11777
|
component: "Comment_main",
|
|
11713
|
-
icon:
|
|
11778
|
+
icon: import_react87.RiChat3Line
|
|
11714
11779
|
}];
|
|
11715
11780
|
var taskItems = [{
|
|
11716
11781
|
name: "Task Instance",
|
|
11717
11782
|
component: "TaskInstanceMain",
|
|
11718
|
-
icon:
|
|
11783
|
+
icon: import_react87.RiCheckboxMultipleLine
|
|
11719
11784
|
}];
|
|
11720
11785
|
var trackingItems = [{
|
|
11721
11786
|
name: "Audit Log",
|
|
11722
11787
|
component: "AuditLogmain",
|
|
11723
|
-
icon:
|
|
11788
|
+
icon: import_react87.RiShieldCheckLine
|
|
11724
11789
|
}, {
|
|
11725
11790
|
name: "Movement History",
|
|
11726
11791
|
component: "MovementHistorymain",
|
|
11727
|
-
icon:
|
|
11792
|
+
icon: import_react87.RiHistoryLine
|
|
11728
11793
|
}];
|
|
11729
11794
|
function Sidebar({
|
|
11730
11795
|
isOpen,
|
|
@@ -11732,15 +11797,15 @@ function Sidebar({
|
|
|
11732
11797
|
childrens
|
|
11733
11798
|
}) {
|
|
11734
11799
|
const router = (0, import_router.useRouter)();
|
|
11735
|
-
const [workflowOpen, setWorkflowOpen] = (0,
|
|
11736
|
-
const [permissionOpen, setPermissionOpen] = (0,
|
|
11737
|
-
const [hierarchyOpen, setHierarchyOpen] = (0,
|
|
11738
|
-
const [documentOpen, setDocumentOpen] = (0,
|
|
11739
|
-
const [filesOpen, setFilesOpen] = (0,
|
|
11740
|
-
const [tasksOpen, setTasksOpen] = (0,
|
|
11741
|
-
const [trackingOpen, setTrackingOpen] = (0,
|
|
11742
|
-
const [communicationOpen, setCommunicationOpen] = (0,
|
|
11743
|
-
const [activeComponent, setActiveComponent] = (0,
|
|
11800
|
+
const [workflowOpen, setWorkflowOpen] = (0, import_react86.useState)(false);
|
|
11801
|
+
const [permissionOpen, setPermissionOpen] = (0, import_react86.useState)(false);
|
|
11802
|
+
const [hierarchyOpen, setHierarchyOpen] = (0, import_react86.useState)(false);
|
|
11803
|
+
const [documentOpen, setDocumentOpen] = (0, import_react86.useState)(false);
|
|
11804
|
+
const [filesOpen, setFilesOpen] = (0, import_react86.useState)(false);
|
|
11805
|
+
const [tasksOpen, setTasksOpen] = (0, import_react86.useState)(false);
|
|
11806
|
+
const [trackingOpen, setTrackingOpen] = (0, import_react86.useState)(false);
|
|
11807
|
+
const [communicationOpen, setCommunicationOpen] = (0, import_react86.useState)(false);
|
|
11808
|
+
const [activeComponent, setActiveComponent] = (0, import_react86.useState)("workflowType");
|
|
11744
11809
|
const renderMenuItemold = (item) => {
|
|
11745
11810
|
const Icon = item.icon;
|
|
11746
11811
|
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("button", { type: "button", className: `fc:flex fc:h-[48px] fc:w-full fc:items-center fc:gap-[8px] fc:rounded-[9px] fc:px-[8px] fc:text-left fc:transition-colors fc:duration-150${router.pathname === item.path ? "bg-blue-50 text-blue-600" : "text-[#344261] hover:bg-[#F6F8FC]"}`, onClick: () => router.push(item.path), children: [
|
|
@@ -11817,7 +11882,7 @@ function Sidebar({
|
|
|
11817
11882
|
HeadingIcon && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(HeadingIcon, { size: 18, className: "fc:text-[#405170] fc:shrink-0" }),
|
|
11818
11883
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "fc:text-[16px] fc:font-semibold", children: title })
|
|
11819
11884
|
] }),
|
|
11820
|
-
open ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
11885
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react87.RiArrowDownSLine, { size: 18 }) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react87.RiArrowRightSLine, { size: 18 })
|
|
11821
11886
|
] }),
|
|
11822
11887
|
open && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "fc:ml-[2px] fc:border-l fc:border-[#E5E9F1] fc:pl-[2px]", children: items.map(renderMenuItem) })
|
|
11823
11888
|
] });
|
|
@@ -11837,39 +11902,39 @@ function Sidebar({
|
|
|
11837
11902
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: "fc:text-[12px] fc:text-[#344261]", children: "Workflow Engine" })
|
|
11838
11903
|
] })
|
|
11839
11904
|
] }),
|
|
11840
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("button", { type: "button", onClick: onToggle, className: "fc:flex fc:h-8 fc:w-8 fc:items-center fc:justify-center fc:rounded-lg hover:fc:fc:bg-gray-100", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
11905
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("button", { type: "button", onClick: onToggle, className: "fc:flex fc:h-8 fc:w-8 fc:items-center fc:justify-center fc:rounded-lg hover:fc:fc:bg-gray-100", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react87.RiMenuLine, { size: 18 }) })
|
|
11841
11906
|
] }),
|
|
11842
11907
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "fc:min-h-0 fc:flex-1 fc:overflow-y-auto fc:overflow-x-hidden fc:px-[27px] fc:pb-[30px] fc:pt-[31px]", children: [
|
|
11843
11908
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: "fc:mb-[19px] fc:ml-[15px] fc:text-[14px] fc:font-bold fc:uppercase fc:leading-[20px] fc:tracking-[0.2px] fc:text-[#3C4D74]", children: "Configuration Masters" }),
|
|
11844
11909
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "fc:flex fc:flex-col fc:gap-[3px]", children: [
|
|
11845
|
-
renderDropdown("Workflow", workflowOpen, setWorkflowOpen, workflowItems,
|
|
11846
|
-
renderDropdown("Permissions", permissionOpen, setPermissionOpen, permissionItems,
|
|
11847
|
-
renderDropdown("Documents", documentOpen, setDocumentOpen, documentItems,
|
|
11848
|
-
renderDropdown("Hierarchy", hierarchyOpen, setHierarchyOpen, hierarchyItems,
|
|
11910
|
+
renderDropdown("Workflow", workflowOpen, setWorkflowOpen, workflowItems, import_react87.RiNodeTree),
|
|
11911
|
+
renderDropdown("Permissions", permissionOpen, setPermissionOpen, permissionItems, import_react87.RiShieldUserLine),
|
|
11912
|
+
renderDropdown("Documents", documentOpen, setDocumentOpen, documentItems, import_react87.RiFileSettingsLine),
|
|
11913
|
+
renderDropdown("Hierarchy", hierarchyOpen, setHierarchyOpen, hierarchyItems, import_react87.RiNodeTree)
|
|
11849
11914
|
] }),
|
|
11850
11915
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: "fc:mb-[19px] fc:ml-[15px] fc:mt-[39px] fc:text-[14px] fc:font-bold fc:uppercase fc:leading-[20px] fc:tracking-[0.2px] fc:text-[#3C4D74]", children: "Runtime" }),
|
|
11851
11916
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "fc:flex fc:flex-col fc:gap-[3px]", children: [
|
|
11852
|
-
renderDropdown("Files", filesOpen, setFilesOpen, fileItems,
|
|
11853
|
-
renderDropdown("Tasks", tasksOpen, setTasksOpen, taskItems,
|
|
11854
|
-
renderDropdown("Tracking", trackingOpen, setTrackingOpen, trackingItems,
|
|
11855
|
-
renderDropdown("Communication", communicationOpen, setCommunicationOpen, communicationItems,
|
|
11917
|
+
renderDropdown("Files", filesOpen, setFilesOpen, fileItems, import_react87.RiFolder3Line),
|
|
11918
|
+
renderDropdown("Tasks", tasksOpen, setTasksOpen, taskItems, import_react87.RiCheckboxCircleLine),
|
|
11919
|
+
renderDropdown("Tracking", trackingOpen, setTrackingOpen, trackingItems, import_react87.RiRouteLine),
|
|
11920
|
+
renderDropdown("Communication", communicationOpen, setCommunicationOpen, communicationItems, import_react87.RiMessage2Line)
|
|
11856
11921
|
] })
|
|
11857
11922
|
] }),
|
|
11858
11923
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "fc:shrink-0 fc:bg-white fc:px-[27px] fc:pb-[34px] fc:pt-[18px]", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("button", { type: "button", className: "fc:flex fc:h-[66px] fc:w-full fc:items-center fc:gap-[18px] fc:rounded-[10px] fc:border fc:border-[#E1E5ED] fc:bg-white fc:px-[23px] fc:text-left fc:text-[16px] fc:font-semibold fc:text-[#2D3A58] fc:shadow-sm hover:fc:fc:bg-[#F7F8FC] fc:transition", children: [
|
|
11859
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
11924
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react87.RiSettings4Line, { size: 20 }),
|
|
11860
11925
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { children: "Settings" })
|
|
11861
11926
|
] }) })
|
|
11862
11927
|
] }),
|
|
11863
11928
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "fc:flex-1 fc:overflow-auto fc:bg-[#F5F7FB]", children: renderContent() }),
|
|
11864
|
-
!isOpen && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("button", { type: "button", onClick: onToggle, "aria-label": "Open sidebar", className: "fc:fixed fc:left-[px] fc:top-[30px] fc:z-[100] fc:flex fc:h-[46px] fc:w-[46px] fc:items-center fc:justify-center fc:rounded-[9px] fc:border fc:border-[#E1E5ED] fc:bg-white fc:text-[#344261] fc:shadow-[0_2px_8px_rgba(0,0,0,0.08)] fc:transition-colors hover:fc:bg-gray-100", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
11929
|
+
!isOpen && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("button", { type: "button", onClick: onToggle, "aria-label": "Open sidebar", className: "fc:fixed fc:left-[px] fc:top-[30px] fc:z-[100] fc:flex fc:h-[46px] fc:w-[46px] fc:items-center fc:justify-center fc:rounded-[9px] fc:border fc:border-[#E1E5ED] fc:bg-white fc:text-[#344261] fc:shadow-[0_2px_8px_rgba(0,0,0,0.08)] fc:transition-colors hover:fc:bg-gray-100", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react87.RiMenuLine, { size: 18 }) })
|
|
11865
11930
|
] });
|
|
11866
11931
|
}
|
|
11867
11932
|
|
|
11868
11933
|
// src/components/Layout.jsx
|
|
11869
|
-
var
|
|
11934
|
+
var import_react88 = require("react");
|
|
11870
11935
|
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
11871
11936
|
var Layout = ({ children }) => {
|
|
11872
|
-
const [isOpen, setIsOpen] = (0,
|
|
11937
|
+
const [isOpen, setIsOpen] = (0, import_react88.useState)(true);
|
|
11873
11938
|
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "flowcore fc:flex fc:min-h-screen", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
11874
11939
|
Sidebar,
|
|
11875
11940
|
{
|