flowcore-fn 6.2.0 → 7.0.0
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.css +1628 -2
- package/dist/pkg-index.js +298 -317
- package/dist/pkg-index.mjs +296 -314
- package/package.json +3 -11
package/dist/pkg-index.js
CHANGED
|
@@ -44,29 +44,33 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
44
44
|
));
|
|
45
45
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
46
46
|
|
|
47
|
-
//
|
|
47
|
+
// src/pkg-index.jsx
|
|
48
48
|
var pkg_index_exports = {};
|
|
49
49
|
__export(pkg_index_exports, {
|
|
50
50
|
Layout: () => Layout_default,
|
|
51
|
-
Sidebar: () => Sidebar
|
|
52
|
-
WorkflowPage: () => WorkflowPage
|
|
51
|
+
Sidebar: () => Sidebar
|
|
53
52
|
});
|
|
54
53
|
module.exports = __toCommonJS(pkg_index_exports);
|
|
55
54
|
|
|
56
|
-
//
|
|
55
|
+
// src/components/Sidebar.jsx
|
|
56
|
+
var import_react36 = require("react");
|
|
57
|
+
var import_react37 = require("@remixicon/react");
|
|
58
|
+
var import_router = require("next/router");
|
|
59
|
+
|
|
60
|
+
// src/pages/WorkflowPage.js
|
|
57
61
|
var import_react6 = __toESM(require("react"));
|
|
58
62
|
|
|
59
|
-
//
|
|
63
|
+
// src/components/Workflow/SearchBar.jsx
|
|
60
64
|
var import_react = __toESM(require("react"));
|
|
61
65
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
62
66
|
function SearchBar() {
|
|
63
67
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "fc:relative fc:max-w-sm fc:w-full", children: [
|
|
64
68
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "fc:absolute fc:inset-y-0 fc:left-0 fc:flex fc:items-center fc:pl-3.5 fc:pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { className: "fc:w-4.5 fc:h-4.5 fc:text-slate-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }),
|
|
65
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", { type: "text", placeholder: "Search workflow name or code...", className: "fc:w-full fc:pl-10 fc:pr-4 fc:py-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-sm fc:bg-slate-50/50 focus:fc:outline-none focus:fc:ring-4 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:text-slate-700 fc:placeholder-slate-400 fc:transition-all fc:shadow-sm" })
|
|
69
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", { type: "text", placeholder: "Search workflow name or code...", className: "fc:w-full fc:pl-10 fc:pr-4 fc:py-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-sm fc:bg-slate-50/50 focus:fc:fc:outline-none focus:fc:fc:ring-4 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:text-slate-700 fc:placeholder-slate-400 fc:transition-all fc:shadow-sm" })
|
|
66
70
|
] });
|
|
67
71
|
}
|
|
68
72
|
|
|
69
|
-
//
|
|
73
|
+
// src/components/Workflow/WorkflowTable.jsx
|
|
70
74
|
var import_react2 = __toESM(require("react"));
|
|
71
75
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
72
76
|
function WorkflowTable({
|
|
@@ -209,45 +213,45 @@ function WorkflowTable({
|
|
|
209
213
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "fc:w-full fc:border fc:border-slate-200 fc:rounded-2xl fc:overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "fc:max-h-[420px] fc:overflow-y-auto fc:overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("table", { className: "fc:w-full fc:text-left fc:border-collapse fc:bg-white", children: [
|
|
210
214
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("thead", { className: "fc:sticky fc:top-0 fc:z-10 fc:bg-slate-50 fc:shadow-[0_1px_0_0_rgba(226,232,240,1)]", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("tr", { className: "fc:bg-slate-50/70 fc:border-b fc:border-slate-200 fc:text-xs fc:font-bold fc:uppercase fc:tracking-wider fc:text-slate-500 fc:shadow-sm", children: [
|
|
211
215
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("th", { className: "fc:bg-slate-50 fc:py-4.5 fc:px-5 fc:w-20 fc:text-center", children: "S.No" }),
|
|
212
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("th", { onClick: () => handleSort("name"), className: "fc:bg-slate-50 fc:py-4.5 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:text-slate-900", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-1", children: [
|
|
216
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("th", { onClick: () => handleSort("name"), className: "fc:bg-slate-50 fc:py-4.5 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-1", children: [
|
|
213
217
|
"Workflow Name",
|
|
214
218
|
getSortIcon("name")
|
|
215
219
|
] }) }),
|
|
216
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("th", { "bg-slate-50": true, onClick: () => handleSort("code"), className: "fc:py-4.5 fc:px-5 fc:cursor-pointer fc:select-none hover:fc:text-slate-900", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-1", children: [
|
|
220
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("th", { "bg-slate-50": true, onClick: () => handleSort("code"), className: "fc:py-4.5 fc:px-5 fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-1", children: [
|
|
217
221
|
"Workflow Code",
|
|
218
222
|
getSortIcon("code")
|
|
219
223
|
] }) }),
|
|
220
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("th", { "bg-slate-50": true, onClick: () => handleSort("type"), className: "fc:py-4.5 fc:px-5 fc:cursor-pointer fc:select-none hover:fc:text-slate-900", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-1", children: [
|
|
224
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("th", { "bg-slate-50": true, onClick: () => handleSort("type"), className: "fc:py-4.5 fc:px-5 fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-1", children: [
|
|
221
225
|
"Workflow Type",
|
|
222
226
|
getSortIcon("type")
|
|
223
227
|
] }) }),
|
|
224
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("th", { "bg-slate-50": true, onClick: () => handleSort("version"), className: "fc:py-4.5 fc:px-5 fc:text-center fc:cursor-pointer fc:select-none hover:fc:text-slate-900", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "fc:flex fc:justify-center fc:items-center fc:gap-1", children: [
|
|
228
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("th", { "bg-slate-50": true, onClick: () => handleSort("version"), className: "fc:py-4.5 fc:px-5 fc:text-center fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "fc:flex fc:justify-center fc:items-center fc:gap-1", children: [
|
|
225
229
|
"Version",
|
|
226
230
|
getSortIcon("version")
|
|
227
231
|
] }) }),
|
|
228
232
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("th", { "bg-slate-50": true, className: "fc:py-4.5 fc:px-5 fc:text-center", children: "Published" }),
|
|
229
233
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("th", { "bg-slate-50": true, className: "fc:py-4.5 fc:px-5 fc:text-center", children: "Status" })
|
|
230
234
|
] }) }),
|
|
231
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-sm fc:text-slate-600", children: visibleData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("tr", { className: "hover:fc:bg-slate-50/50 fc:transition-colors", children: [
|
|
235
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-sm fc:text-slate-600", children: visibleData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("tr", { className: "hover:fc:fc:bg-slate-50/50 fc:transition-colors", children: [
|
|
232
236
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center fc:font-medium fc:text-slate-400", children: startIndex + index + 1 }),
|
|
233
237
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("td", { className: "fc:py-4 fc:px-5 fc:font-bold fc:text-slate-900 fc:text-[14px]", children: item.name }),
|
|
234
238
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500", children: item.code }),
|
|
235
239
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500", children: item.type }),
|
|
236
240
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center fc:font-semibold fc:text-slate-700", children: item.version }),
|
|
237
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: `px-2.5 py-1 rounded-md text-xs font-medium
|
|
238
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "fc:flex fc:justify-center fc:items-center", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", { type: "button", onClick: () => toggleSwitch(item.id), className: `relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out outline-none
|
|
241
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: `fc:px-2.5 fc:py-1 fc:rounded-md fc:text-xs fc:font-medium${item.published ? "bg-green-50 text-green-700 border border-green-200" : "bg-red-50 text-red-700 border border-red-200"}`, children: item.published ? "\u2713 Yes" : "\u2715 No" }) }),
|
|
242
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "fc:flex fc:justify-center fc:items-center", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", { type: "button", onClick: () => toggleSwitch(item.id), className: `fc:relative fc:inline-flex fc:h-6 fc:w-11 fc:flex-shrink-0 fc:cursor-pointer fc:rounded-full fc:border-2 fc:border-transparent fc:transition-colors fc:duration-200 fc:ease-in-out fc:outline-none${item.status ? "bg-blue-600" : "bg-slate-200"}`, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: `fc:pointer-events-none fc:inline-block fc:h-5 fc:w-5 fc:transform fc:rounded-full fc:bg-white fc:shadow fc:ring-0 fc:transition fc:duration-200 fc:ease-in-out${item.status ? "translate-x-5" : "translate-x-0"}` }) }) }) })
|
|
239
243
|
] }, item.id)) })
|
|
240
244
|
] }) }) }),
|
|
241
245
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-end fc:gap-1 fc:text-[13px] fc:text-slate-700 fc:font-normal fc:mt-4 fc:bg-slate-50/50 fc:p-3 fc:rounded-xl fc:border fc:border-slate-100", children: [
|
|
242
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:text-slate-900 fc:transition-colors fc:mr-2", children: "\u2039 Prev" }),
|
|
243
|
-
[1, 2, 3, 4].map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `px-3 py-1 text-center rounded transition-all min-w-[28px]
|
|
244
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, 7)), className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:text-slate-900 fc:transition-colors fc:ml-2", children: "Next \u203A" }),
|
|
245
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", { onClick: () => setCurrentPage(7), className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:text-slate-900 fc:transition-colors", children: "Last" })
|
|
246
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:transition-colors fc:mr-2", children: "\u2039 Prev" }),
|
|
247
|
+
[1, 2, 3, 4].map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `fc:px-3 fc:py-1 fc:text-center fc:rounded fc:transition-all fc:min-w-[28px]${currentPage === pageNumber ? "bg-blue-600 text-white font-medium shadow-sm" : "text-slate-600 hover:bg-slate-100"}`, children: pageNumber }, pageNumber)),
|
|
248
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, 7)), className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:transition-colors fc:ml-2", children: "Next \u203A" }),
|
|
249
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", { onClick: () => setCurrentPage(7), className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:transition-colors", children: "Last" })
|
|
246
250
|
] })
|
|
247
251
|
] });
|
|
248
252
|
}
|
|
249
253
|
|
|
250
|
-
//
|
|
254
|
+
// src/components/Workflow/AddWorkflowModal.jsx
|
|
251
255
|
var import_react3 = __toESM(require("react"));
|
|
252
256
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
253
257
|
function AddWorkflowModal({
|
|
@@ -266,7 +270,7 @@ function AddWorkflowModal({
|
|
|
266
270
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "fc:text-xs fc:text-slate-400 fc:mt-0.5", children: "Create a new workflow and configure its details" })
|
|
267
271
|
] })
|
|
268
272
|
] }),
|
|
269
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:text-slate-600 hover:fc:bg-slate-100 fc:p-2 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
|
|
273
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:fc:text-slate-600 hover:fc:fc:bg-slate-100 fc:p-2 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
|
|
270
274
|
] }),
|
|
271
275
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "fc:p-8 fc:space-y-8 fc:overflow-y-auto fc:max-h-[calc(92vh-170px)] fc:bg-slate-50/30", children: [
|
|
272
276
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "fc:bg-white fc:p-6 fc:rounded-2xl fc:border fc:border-slate-100/80 fc:shadow-sm fc:space-y-5", children: [
|
|
@@ -274,13 +278,13 @@ function AddWorkflowModal({
|
|
|
274
278
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "\u{1F4CB}" }),
|
|
275
279
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "Workflow Information" })
|
|
276
280
|
] }),
|
|
277
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-5", children: [
|
|
281
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-5", children: [
|
|
278
282
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
279
283
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1.5", children: [
|
|
280
284
|
"Workflow Type ",
|
|
281
285
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
282
286
|
] }),
|
|
283
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("select", { className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500", children: [
|
|
287
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("select", { className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-indigo-500/10 focus:fc:fc:border-indigo-500", children: [
|
|
284
288
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("option", { value: "", children: "Select workflow type" }),
|
|
285
289
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("option", { value: "petition", children: "Petition" }),
|
|
286
290
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("option", { value: "building", children: "Building Permission" }),
|
|
@@ -293,7 +297,7 @@ function AddWorkflowModal({
|
|
|
293
297
|
"Workflow Code ",
|
|
294
298
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
295
299
|
] }),
|
|
296
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("input", { type: "text", placeholder: "Enter workflow code", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500" }),
|
|
300
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("input", { type: "text", placeholder: "Enter workflow code", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-indigo-500/10 focus:fc:fc:border-indigo-500" }),
|
|
297
301
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "fc:text-[10px] fc:text-slate-400 fc:mt-1", children: "Unique code for this workflow (e.g., PET-001)" })
|
|
298
302
|
] })
|
|
299
303
|
] }),
|
|
@@ -302,16 +306,16 @@ function AddWorkflowModal({
|
|
|
302
306
|
"Workflow Name ",
|
|
303
307
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
304
308
|
] }),
|
|
305
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("input", { type: "text", placeholder: "Enter workflow name", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500" }),
|
|
309
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("input", { type: "text", placeholder: "Enter workflow name", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-indigo-500/10 focus:fc:fc:border-indigo-500" }),
|
|
306
310
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "fc:text-[10px] fc:text-slate-400 fc:mt-1", children: "Enter a descriptive name for this workflow" })
|
|
307
311
|
] }),
|
|
308
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-5", children: [
|
|
312
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-5", children: [
|
|
309
313
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
310
314
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1.5", children: [
|
|
311
315
|
"Version ",
|
|
312
316
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
313
317
|
] }),
|
|
314
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("input", { type: "text", defaultValue: "1", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500" }),
|
|
318
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("input", { type: "text", defaultValue: "1", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-indigo-500/10 focus:fc:fc:border-indigo-500" }),
|
|
315
319
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "fc:text-[10px] fc:text-slate-400 fc:mt-1", children: "Workflow version number" })
|
|
316
320
|
] }),
|
|
317
321
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
@@ -319,7 +323,7 @@ function AddWorkflowModal({
|
|
|
319
323
|
"Published ",
|
|
320
324
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
321
325
|
] }),
|
|
322
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("select", { className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500", children: [
|
|
326
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("select", { className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-indigo-500/10 focus:fc:fc:border-indigo-500", children: [
|
|
323
327
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("option", { value: "false", children: "No" }),
|
|
324
328
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("option", { value: "true", children: "Yes" })
|
|
325
329
|
] }),
|
|
@@ -332,7 +336,7 @@ function AddWorkflowModal({
|
|
|
332
336
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700", children: "Description" }),
|
|
333
337
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "fc:text-[10px] fc:text-slate-400", children: "0 / 500" })
|
|
334
338
|
] }),
|
|
335
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("textarea", { rows: 3, placeholder: "Enter workflow description (optional)", className: "fc:w-full fc:p-3 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:resize-none focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500" }),
|
|
339
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("textarea", { rows: 3, placeholder: "Enter workflow description (optional)", className: "fc:w-full fc:p-3 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:resize-none focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-indigo-500/10 focus:fc:fc:border-indigo-500" }),
|
|
336
340
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "fc:text-[10px] fc:text-slate-400", children: "Provide additional information about this workflow" })
|
|
337
341
|
] }),
|
|
338
342
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "fc:bg-white fc:p-6 fc:rounded-2xl fc:border fc:border-slate-100/80 fc:shadow-sm fc:space-y-5", children: [
|
|
@@ -340,13 +344,13 @@ function AddWorkflowModal({
|
|
|
340
344
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "\u2699\uFE0F" }),
|
|
341
345
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "Status & Settings" })
|
|
342
346
|
] }),
|
|
343
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-5", children: [
|
|
347
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-5", children: [
|
|
344
348
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
345
349
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1.5", children: [
|
|
346
350
|
"Status ",
|
|
347
351
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
348
352
|
] }),
|
|
349
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("select", { className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500", children: [
|
|
353
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("select", { className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-indigo-500/10 focus:fc:fc:border-indigo-500", children: [
|
|
350
354
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("option", { value: "active", children: "Active" }),
|
|
351
355
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("option", { value: "inactive", children: "Inactive" })
|
|
352
356
|
] }),
|
|
@@ -354,7 +358,7 @@ function AddWorkflowModal({
|
|
|
354
358
|
] }),
|
|
355
359
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
356
360
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1.5", children: "Default Priority" }),
|
|
357
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("select", { className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500", children: [
|
|
361
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("select", { className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-indigo-500/10 focus:fc:fc:border-indigo-500", children: [
|
|
358
362
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("option", { value: "medium", children: "Medium" }),
|
|
359
363
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("option", { value: "high", children: "High" }),
|
|
360
364
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("option", { value: "low", children: "Low" })
|
|
@@ -368,7 +372,7 @@ function AddWorkflowModal({
|
|
|
368
372
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "\u{1F6E0}\uFE0F" }),
|
|
369
373
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "Additional Settings" })
|
|
370
374
|
] }),
|
|
371
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-3 fc:gap-4", children: [
|
|
375
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-3 fc:gap-4", children: [
|
|
372
376
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-between fc:p-4 fc:bg-slate-50/50 fc:border fc:border-slate-100 fc:rounded-2xl", children: [
|
|
373
377
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-3", children: [
|
|
374
378
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "fc:w-8 fc:h-8 fc:rounded-lg fc:bg-indigo-50 fc:text-indigo-600 fc:flex fc:items-center fc:justify-center fc:text-sm", children: "\u23F1\uFE0F" }),
|
|
@@ -379,7 +383,7 @@ function AddWorkflowModal({
|
|
|
379
383
|
] }),
|
|
380
384
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("label", { className: "fc:relative fc:inline-flex fc:items-center fc:cursor-pointer", children: [
|
|
381
385
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("input", { type: "checkbox", defaultChecked: true, className: "fc:sr-only fc:peer" }),
|
|
382
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "fc:w-8 fc:h-4.5 fc:bg-slate-200 peer-focus:fc:outline-none fc:rounded-full fc:peer peer-checked:after:fc:translate-x-full peer-checked:after:fc:border-white after:fc:content-[''] after:fc:absolute after:fc:top-[2px] after:fc:left-[2px] after:fc:bg-white after:fc:border-slate-300 after:fc:border after:fc:rounded-full after:fc:h-3.5 after:fc:w-3.5 after:fc:transition-all peer-checked:fc:bg-indigo-600" })
|
|
386
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "fc:w-8 fc:h-4.5 fc:bg-slate-200 peer-focus:fc:fc:outline-none fc:rounded-full fc:peer peer-checked:after:fc:fc:translate-x-full peer-checked:after:fc:fc:border-white after:fc:fc:content-[''] after:fc:fc:absolute after:fc:fc:top-[2px] after:fc:fc:left-[2px] after:fc:fc:bg-white after:fc:fc:border-slate-300 after:fc:fc:border after:fc:fc:rounded-full after:fc:fc:h-3.5 after:fc:fc:w-3.5 after:fc:fc:transition-all peer-checked:fc:fc:bg-indigo-600" })
|
|
383
387
|
] })
|
|
384
388
|
] }),
|
|
385
389
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-between fc:p-4 fc:bg-slate-50/50 fc:border fc:border-slate-100 fc:rounded-2xl", children: [
|
|
@@ -392,7 +396,7 @@ function AddWorkflowModal({
|
|
|
392
396
|
] }),
|
|
393
397
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("label", { className: "fc:relative fc:inline-flex fc:items-center fc:cursor-pointer", children: [
|
|
394
398
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("input", { type: "checkbox", defaultChecked: true, className: "fc:sr-only fc:peer" }),
|
|
395
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "fc:w-8 fc:h-4.5 fc:bg-slate-200 peer-focus:fc:outline-none fc:rounded-full fc:peer peer-checked:after:fc:translate-x-full peer-checked:after:fc:border-white after:fc:content-[''] after:fc:absolute after:fc:top-[2px] after:fc:left-[2px] after:fc:bg-white after:fc:border-slate-300 after:fc:border after:fc:rounded-full after:fc:h-3.5 after:fc:w-3.5 after:fc:transition-all peer-checked:fc:bg-indigo-600" })
|
|
399
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "fc:w-8 fc:h-4.5 fc:bg-slate-200 peer-focus:fc:fc:outline-none fc:rounded-full fc:peer peer-checked:after:fc:fc:translate-x-full peer-checked:after:fc:fc:border-white after:fc:fc:content-[''] after:fc:fc:absolute after:fc:fc:top-[2px] after:fc:fc:left-[2px] after:fc:fc:bg-white after:fc:fc:border-slate-300 after:fc:fc:border after:fc:fc:rounded-full after:fc:fc:h-3.5 after:fc:fc:w-3.5 after:fc:fc:transition-all peer-checked:fc:fc:bg-indigo-600" })
|
|
396
400
|
] })
|
|
397
401
|
] }),
|
|
398
402
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-between fc:p-4 fc:bg-slate-50/50 fc:border fc:border-slate-100 fc:rounded-2xl", children: [
|
|
@@ -405,25 +409,25 @@ function AddWorkflowModal({
|
|
|
405
409
|
] }),
|
|
406
410
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("label", { className: "fc:relative fc:inline-flex fc:items-center fc:cursor-pointer", children: [
|
|
407
411
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("input", { type: "checkbox", className: "fc:sr-only fc:peer" }),
|
|
408
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "fc:w-8 fc:h-4.5 fc:bg-slate-200 peer-focus:fc:outline-none fc:rounded-full fc:peer peer-checked:after:fc:translate-x-full peer-checked:after:fc:border-white after:fc:content-[''] after:fc:absolute after:fc:top-[2px] after:fc:left-[2px] after:fc:bg-white after:fc:border-slate-300 after:fc:border after:fc:rounded-full after:fc:h-3.5 after:fc:w-3.5 after:fc:transition-all peer-checked:fc:bg-indigo-600" })
|
|
412
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "fc:w-8 fc:h-4.5 fc:bg-slate-200 peer-focus:fc:fc:outline-none fc:rounded-full fc:peer peer-checked:after:fc:fc:translate-x-full peer-checked:after:fc:fc:border-white after:fc:fc:content-[''] after:fc:fc:absolute after:fc:fc:top-[2px] after:fc:fc:left-[2px] after:fc:fc:bg-white after:fc:fc:border-slate-300 after:fc:fc:border after:fc:fc:rounded-full after:fc:fc:h-3.5 after:fc:fc:w-3.5 after:fc:fc:transition-all peer-checked:fc:fc:bg-indigo-600" })
|
|
409
413
|
] })
|
|
410
414
|
] })
|
|
411
415
|
] })
|
|
412
416
|
] })
|
|
413
417
|
] }),
|
|
414
418
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "fc:p-5 fc:bg-white fc:border-t fc:border-slate-100 fc:flex fc:items-center fc:justify-end fc:gap-3 fc:px-8", children: [
|
|
415
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { onClick: onClose, className: "fc:px-6 fc:py-2.5 fc:border fc:border-slate-200 fc:text-slate-600 fc:text-xs fc:font-bold fc:rounded-xl hover:fc:bg-slate-50 fc:transition-all fc:flex fc:items-center fc:gap-1.5", children: "\u2715 Cancel" }),
|
|
416
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { type: "button", className: "fc:px-6 fc:py-2.5 fc:bg-indigo-600 hover:fc:bg-indigo-700 fc:text-white fc:text-xs fc:font-bold fc:rounded-xl fc:shadow-md fc:shadow-indigo-500/10 fc:transition-all fc:flex fc:items-center fc:gap-1.5", children: "\u{1F4BE} Save Workflow" })
|
|
419
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { onClick: onClose, className: "fc:px-6 fc:py-2.5 fc:border fc:border-slate-200 fc:text-slate-600 fc:text-xs fc:font-bold fc:rounded-xl hover:fc:fc:bg-slate-50 fc:transition-all fc:flex fc:items-center fc:gap-1.5", children: "\u2715 Cancel" }),
|
|
420
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { type: "button", className: "fc:px-6 fc:py-2.5 fc:bg-indigo-600 hover:fc:fc:bg-indigo-700 fc:text-white fc:text-xs fc:font-bold fc:rounded-xl fc:shadow-md fc:shadow-indigo-500/10 fc:transition-all fc:flex fc:items-center fc:gap-1.5", children: "\u{1F4BE} Save Workflow" })
|
|
417
421
|
] })
|
|
418
422
|
] })
|
|
419
423
|
] });
|
|
420
424
|
}
|
|
421
425
|
|
|
422
|
-
//
|
|
426
|
+
// src/components/Workflow/AddButton.jsx
|
|
423
427
|
var import_react4 = __toESM(require("react"));
|
|
424
428
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
425
429
|
|
|
426
|
-
//
|
|
430
|
+
// src/components/Common/commonheader.js
|
|
427
431
|
var import_react5 = __toESM(require("react"));
|
|
428
432
|
var import_link = __toESM(require("next/link"));
|
|
429
433
|
var import_lucide_react = require("lucide-react");
|
|
@@ -440,25 +444,25 @@ function CommonHeader({
|
|
|
440
444
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "fc:absolute fc:-bottom-10 fc:-left-10 fc:h-32 fc:w-32 fc:rounded-full fc:bg-cyan-200/20 fc:blur-3xl" }),
|
|
441
445
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "fc:relative fc:flex fc:items-center fc:justify-between fc:px-6 fc:py-4", children: [
|
|
442
446
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-4", children: [
|
|
443
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "fc:flex fc:h-12 fc:w-12 fc:items-center fc:justify-center fc:rounded-xl fc:bg-gradient-to-br fc:from-blue-600 fc:to-indigo-600 fc:text-white fc:shadow-lg fc:transition-all fc:duration-300 hover:fc:scale-110 hover:fc:rotate-6", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react.FolderKanban, { size: 22 }) }),
|
|
447
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "fc:flex fc:h-12 fc:w-12 fc:items-center fc:justify-center fc:rounded-xl fc:bg-gradient-to-br fc:from-blue-600 fc:to-indigo-600 fc:text-white fc:shadow-lg fc:transition-all fc:duration-300 hover:fc:fc:scale-110 hover:fc:fc:rotate-6", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react.FolderKanban, { size: 22 }) }),
|
|
444
448
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { children: [
|
|
445
449
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("h1", { className: "fc:text-2xl fc:font-bold fc:text-slate-800 fc:tracking-tight", children: title }),
|
|
446
450
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "fc:mt-2 fc:flex fc:items-center fc:gap-2 fc:flex-wrap", children: [
|
|
447
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-1 fc:rounded-full fc:bg-slate-100 fc:px-3 fc:py-1 fc:text-xs fc:font-medium fc:text-slate-600 fc:transition-all fc:duration-300 hover:fc:bg-blue-50 hover:fc:text-blue-600", children: [
|
|
451
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-1 fc:rounded-full fc:bg-slate-100 fc:px-3 fc:py-1 fc:text-xs fc:font-medium fc:text-slate-600 fc:transition-all fc:duration-300 hover:fc:fc:bg-blue-50 hover:fc:fc:text-blue-600", children: [
|
|
448
452
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react.Home, { size: 13 }),
|
|
449
453
|
"Home"
|
|
450
454
|
] }),
|
|
451
455
|
breadcrumbs.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_react5.default.Fragment, { children: [
|
|
452
456
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react.ChevronRight, { size: 15, className: "fc:text-slate-300" }),
|
|
453
|
-
index === breadcrumbs.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "fc:rounded-full fc:bg-blue-600 fc:px-3 fc:py-1 fc:text-xs fc:font-semibold fc:text-white fc:shadow-md", children: item.label }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_link.default, { href: item.href, className: "fc:rounded-full fc:bg-slate-100 fc:px-3 fc:py-1 fc:text-xs fc:font-medium fc:text-slate-600 fc:transition-all fc:duration-300 hover:fc:-translate-y-0.5 hover:fc:bg-blue-50 hover:fc:text-blue-600", children: item.label })
|
|
457
|
+
index === breadcrumbs.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "fc:rounded-full fc:bg-blue-600 fc:px-3 fc:py-1 fc:text-xs fc:font-semibold fc:text-white fc:shadow-md", children: item.label }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_link.default, { href: item.href, className: "fc:rounded-full fc:bg-slate-100 fc:px-3 fc:py-1 fc:text-xs fc:font-medium fc:text-slate-600 fc:transition-all fc:duration-300 hover:fc:fc:-translate-y-0.5 hover:fc:fc:bg-blue-50 hover:fc:fc:text-blue-600", children: item.label })
|
|
454
458
|
] }, index))
|
|
455
459
|
] })
|
|
456
460
|
] })
|
|
457
461
|
] }),
|
|
458
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("button", { onClick: onButtonClick, className: "fc:group fc:relative fc:overflow-hidden fc:rounded-xl fc:bg-gradient-to-r fc:from-blue-600 fc:to-indigo-600 fc:px-5 fc:py-2.5 fc:text-sm fc:font-semibold fc:text-white fc:shadow-lg fc:transition-all fc:duration-300 hover:fc:-translate-y-0.5 hover:fc:shadow-xl hover:fc:shadow-blue-500/30 active:fc:scale-95", children: [
|
|
459
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "fc:absolute fc:inset-0 fc:-translate-x-full fc:skew-x-12 fc:bg-white/20 fc:transition-transform fc:duration-1000 group-hover:fc:translate-x-[250%]" }),
|
|
462
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("button", { onClick: onButtonClick, className: "fc:group fc:relative fc:overflow-hidden fc:rounded-xl fc:bg-gradient-to-r fc:from-blue-600 fc:to-indigo-600 fc:px-5 fc:py-2.5 fc:text-sm fc:font-semibold fc:text-white fc:shadow-lg fc:transition-all fc:duration-300 hover:fc:fc:-translate-y-0.5 hover:fc:fc:shadow-xl hover:fc:fc:shadow-blue-500/30 active:fc:fc:scale-95", children: [
|
|
463
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "fc:absolute fc:inset-0 fc:-translate-x-full fc:skew-x-12 fc:bg-white/20 fc:transition-transform fc:duration-1000 group-hover:fc:fc:translate-x-[250%]" }),
|
|
460
464
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "fc:relative fc:flex fc:items-center fc:gap-2", children: [
|
|
461
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react.Plus, { size: 18, className: "fc:transition-transform fc:duration-300 group-hover:fc:rotate-90" }),
|
|
465
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react.Plus, { size: 18, className: "fc:transition-transform fc:duration-300 group-hover:fc:fc:rotate-90" }),
|
|
462
466
|
buttonText
|
|
463
467
|
] })
|
|
464
468
|
] })
|
|
@@ -466,7 +470,7 @@ function CommonHeader({
|
|
|
466
470
|
] });
|
|
467
471
|
}
|
|
468
472
|
|
|
469
|
-
//
|
|
473
|
+
// src/pages/WorkflowPage.js
|
|
470
474
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
471
475
|
function WorkflowPage() {
|
|
472
476
|
const [modalOpen, setModalOpen] = (0, import_react6.useState)(false);
|
|
@@ -499,15 +503,10 @@ function WorkflowPage() {
|
|
|
499
503
|
] });
|
|
500
504
|
}
|
|
501
505
|
|
|
502
|
-
//
|
|
503
|
-
var import_react36 = require("react");
|
|
504
|
-
var import_react37 = require("@remixicon/react");
|
|
505
|
-
var import_router = require("next/router");
|
|
506
|
-
|
|
507
|
-
// out/src/components/WorkflowType/WorkflowTypeMains.js
|
|
506
|
+
// src/components/WorkflowType/WorkflowTypeMains.js
|
|
508
507
|
var import_react12 = __toESM(require("react"));
|
|
509
508
|
|
|
510
|
-
//
|
|
509
|
+
// src/components/WorkflowType/SearchBar.jsx
|
|
511
510
|
var import_react7 = __toESM(require("react"));
|
|
512
511
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
513
512
|
function SearchBar2({
|
|
@@ -523,18 +522,18 @@ function SearchBar2({
|
|
|
523
522
|
};
|
|
524
523
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "fc:relative fc:w-full", children: [
|
|
525
524
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "fc:absolute fc:inset-y-0 fc:left-0 fc:pl-3 fc:flex fc:items-center fc:pointer-events-none fc:text-slate-400", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("svg", { className: "fc:w-4 fc:h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }),
|
|
526
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("input", { type: "text", value: searchQuery || "", onChange: handleChange, placeholder: "Search workflow name or code...", className: "fc:w-full fc:pl-9 fc:pr-4 fc:py-2 fc:bg-white fc:border fc:border-slate-200 fc:rounded-xl fc:text-sm fc:text-slate-800 fc:placeholder-slate-400 fc:outline-none focus:fc:border-blue-500 focus:fc:ring-1 focus:fc:ring-blue-500 fc:transition-all fc:shadow-sm" }),
|
|
525
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("input", { type: "text", value: searchQuery || "", onChange: handleChange, placeholder: "Search workflow name or code...", className: "fc:w-full fc:pl-9 fc:pr-4 fc:py-2 fc:bg-white fc:border fc:border-slate-200 fc:rounded-xl fc:text-sm fc:text-slate-800 fc:placeholder-slate-400 fc:outline-none focus:fc:fc:border-blue-500 focus:fc:fc:ring-1 focus:fc:fc:ring-blue-500 fc:transition-all fc:shadow-sm" }),
|
|
527
526
|
searchQuery && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { onClick: () => {
|
|
528
527
|
setSearchQuery("");
|
|
529
528
|
if (setCurrentPage) setCurrentPage(1);
|
|
530
|
-
}, className: "fc:absolute fc:inset-y-0 fc:right-0 fc:pr-3 fc:flex fc:items-center fc:text-slate-400 hover:fc:text-slate-600", children: "\u2715" })
|
|
529
|
+
}, className: "fc:absolute fc:inset-y-0 fc:right-0 fc:pr-3 fc:flex fc:items-center fc:text-slate-400 hover:fc:fc:text-slate-600", children: "\u2715" })
|
|
531
530
|
] });
|
|
532
531
|
}
|
|
533
532
|
|
|
534
|
-
//
|
|
533
|
+
// src/components/WorkflowType/WorkflowTypeTable.jsx
|
|
535
534
|
var import_react10 = __toESM(require("react"));
|
|
536
535
|
|
|
537
|
-
//
|
|
536
|
+
// src/components/WorkflowType/DeleteWorkflowType.jsx
|
|
538
537
|
var import_react8 = __toESM(require("react"));
|
|
539
538
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
540
539
|
var DeleteWorkflowType = ({
|
|
@@ -545,7 +544,7 @@ var DeleteWorkflowType = ({
|
|
|
545
544
|
}) => {
|
|
546
545
|
if (!isOpen) return null;
|
|
547
546
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "fc:fixed fc:inset-0 fc:z-50 fc:flex fc:items-center fc:justify-center fc:bg-black/40 fc:backdrop-blur-sm fc:p-4 fc:animate-in fc:fade-in fc:duration-200", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "fc:relative fc:w-full fc:max-w-md fc:bg-white fc:rounded-3xl fc:shadow-2xl fc:border fc:border-gray-100 fc:overflow-hidden", children: [
|
|
548
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { type: "button", onClick: onClose, className: "fc:absolute fc:top-4 fc:right-4 fc:z-10 fc:flex fc:items-center fc:justify-center fc:w-8 fc:h-8 fc:rounded-full fc:text-gray-400 hover:fc:text-gray-600 hover:fc:bg-gray-100 fc:transition", children: "\u2715" }),
|
|
547
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { type: "button", onClick: onClose, className: "fc:absolute fc:top-4 fc:right-4 fc:z-10 fc:flex fc:items-center fc:justify-center fc:w-8 fc:h-8 fc:rounded-full fc:text-gray-400 hover:fc:fc:text-gray-600 hover:fc:fc:bg-gray-100 fc:transition", children: "\u2715" }),
|
|
549
548
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "fc:p-8 fc:text-center", children: [
|
|
550
549
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "fc:mx-auto fc:mb-4 fc:flex fc:h-14 fc:w-14 fc:items-center fc:justify-center fc:rounded-2xl fc:bg-red-50 fc:border fc:border-red-100 fc:text-red-500 fc:shadow-inner", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "fc:text-2xl", children: "\u26A0\uFE0F" }) }),
|
|
551
550
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { className: "fc:text-xl fc:font-bold fc:text-gray-900 fc:tracking-tight fc:mb-2", children: "Delete Configuration" }),
|
|
@@ -560,18 +559,18 @@ var DeleteWorkflowType = ({
|
|
|
560
559
|
"? This action cannot be undone."
|
|
561
560
|
] }),
|
|
562
561
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-3", children: [
|
|
563
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { type: "button", onClick: onClose, className: "fc:w-1/2 fc:py-2.5 fc:px-4 fc:text-sm fc:font-semibold fc:text-gray-700 fc:bg-gray-100 hover:fc:bg-gray-200 fc:rounded-xl fc:transition", children: "Cancel" }),
|
|
562
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { type: "button", onClick: onClose, className: "fc:w-1/2 fc:py-2.5 fc:px-4 fc:text-sm fc:font-semibold fc:text-gray-700 fc:bg-gray-100 hover:fc:fc:bg-gray-200 fc:rounded-xl fc:transition", children: "Cancel" }),
|
|
564
563
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { type: "button", onClick: () => {
|
|
565
564
|
onConfirm(itemData);
|
|
566
565
|
onClose();
|
|
567
|
-
}, className: "fc:w-1/2 fc:py-2.5 fc:px-4 fc:text-sm fc:font-semibold fc:text-white fc:bg-red-600 hover:fc:bg-red-700 fc:rounded-xl fc:shadow-md fc:shadow-red-500/20 fc:transition", children: "Delete" })
|
|
566
|
+
}, className: "fc:w-1/2 fc:py-2.5 fc:px-4 fc:text-sm fc:font-semibold fc:text-white fc:bg-red-600 hover:fc:fc:bg-red-700 fc:rounded-xl fc:shadow-md fc:shadow-red-500/20 fc:transition", children: "Delete" })
|
|
568
567
|
] })
|
|
569
568
|
] })
|
|
570
569
|
] }) });
|
|
571
570
|
};
|
|
572
571
|
var DeleteWorkflowType_default = DeleteWorkflowType;
|
|
573
572
|
|
|
574
|
-
//
|
|
573
|
+
// src/components/WorkflowType/EditWorkflowType.jsx
|
|
575
574
|
var import_react9 = __toESM(require("react"));
|
|
576
575
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
577
576
|
var EditWorkflowType = ({
|
|
@@ -617,35 +616,35 @@ var EditWorkflowType = ({
|
|
|
617
616
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "fc:fixed fc:inset-0 fc:z-50 fc:flex fc:items-center fc:justify-center fc:bg-black/40 fc:backdrop-blur-sm fc:p-4 fc:animate-in fc:fade-in fc:duration-200", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "fc:relative fc:w-full fc:max-w-md fc:bg-white fc:rounded-3xl fc:shadow-2xl fc:border fc:border-gray-100 fc:overflow-hidden", children: [
|
|
618
617
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-between fc:px-6 fc:py-4 fc:border-b fc:border-gray-100", children: [
|
|
619
618
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("h3", { className: "fc:text-lg fc:font-bold fc:text-gray-900", children: "Edit Workflow Type" }),
|
|
620
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { onClick: onClose, className: "fc:text-gray-400 hover:fc:text-gray-600 fc:w-8 fc:h-8 fc:rounded-full fc:flex fc:items-center fc:justify-center fc:transition", children: "\u2715" })
|
|
619
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { onClick: onClose, className: "fc:text-gray-400 hover:fc:fc:text-gray-600 fc:w-8 fc:h-8 fc:rounded-full fc:flex fc:items-center fc:justify-center fc:transition", children: "\u2715" })
|
|
621
620
|
] }),
|
|
622
621
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("form", { onSubmit: handleSubmit, className: "fc:p-6 fc:space-y-4", children: [
|
|
623
622
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { children: [
|
|
624
623
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { className: "fc:block fc:text-xs fc:font-semibold fc:text-gray-700 fc:uppercase fc:tracking-wider fc:mb-1", children: "Workflow Type Code" }),
|
|
625
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("input", { type: "text", name: "workflowTypeCode", value: formData.workflowTypeCode, onChange: handleChange, className: "fc:w-full fc:rounded-xl fc:border fc:border-gray-200 fc:bg-gray-50 fc:px-3.5 fc:py-2 fc:text-sm fc:text-gray-900 focus:fc:bg-white focus:fc:border-blue-500 focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-blue-500/20 fc:transition", required: true })
|
|
624
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("input", { type: "text", name: "workflowTypeCode", value: formData.workflowTypeCode, onChange: handleChange, className: "fc:w-full fc:rounded-xl fc:border fc:border-gray-200 fc:bg-gray-50 fc:px-3.5 fc:py-2 fc:text-sm fc:text-gray-900 focus:fc:fc:bg-white focus:fc:fc:border-blue-500 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/20 fc:transition", required: true })
|
|
626
625
|
] }),
|
|
627
626
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { children: [
|
|
628
627
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { className: "fc:block fc:text-xs fc:font-semibold fc:text-gray-700 fc:uppercase fc:tracking-wider fc:mb-1", children: "Workflow Type Name" }),
|
|
629
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("input", { type: "text", name: "workflowTypeName", value: formData.workflowTypeName, onChange: handleChange, className: "fc:w-full fc:rounded-xl fc:border fc:border-gray-200 fc:bg-gray-50 fc:px-3.5 fc:py-2 fc:text-sm fc:text-gray-900 focus:fc:bg-white focus:fc:border-blue-500 focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-blue-500/20 fc:transition", required: true })
|
|
628
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("input", { type: "text", name: "workflowTypeName", value: formData.workflowTypeName, onChange: handleChange, className: "fc:w-full fc:rounded-xl fc:border fc:border-gray-200 fc:bg-gray-50 fc:px-3.5 fc:py-2 fc:text-sm fc:text-gray-900 focus:fc:fc:bg-white focus:fc:fc:border-blue-500 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/20 fc:transition", required: true })
|
|
630
629
|
] }),
|
|
631
630
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { children: [
|
|
632
631
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { className: "fc:block fc:text-xs fc:font-semibold fc:text-gray-700 fc:uppercase fc:tracking-wider fc:mb-1", children: "Description" }),
|
|
633
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("textarea", { name: "description", value: formData.description, onChange: handleChange, rows: "3", className: "fc:w-full fc:rounded-xl fc:border fc:border-gray-200 fc:bg-gray-50 fc:px-3.5 fc:py-2 fc:text-sm fc:text-gray-900 focus:fc:bg-white focus:fc:border-blue-500 focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-blue-500/20 fc:transition fc:resize-none" })
|
|
632
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("textarea", { name: "description", value: formData.description, onChange: handleChange, rows: "3", className: "fc:w-full fc:rounded-xl fc:border fc:border-gray-200 fc:bg-gray-50 fc:px-3.5 fc:py-2 fc:text-sm fc:text-gray-900 focus:fc:fc:bg-white focus:fc:fc:border-blue-500 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/20 fc:transition fc:resize-none" })
|
|
634
633
|
] }),
|
|
635
634
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "fc:flex fc:items-center fc:pt-1", children: [
|
|
636
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("input", { type: "checkbox", id: "isActive", name: "isActive", checked: formData.isActive, onChange: handleChange, className: "fc:h-4 fc:w-4 fc:rounded fc:border-gray-300 fc:text-blue-600 focus:fc:ring-blue-500 fc:cursor-pointer" }),
|
|
635
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("input", { type: "checkbox", id: "isActive", name: "isActive", checked: formData.isActive, onChange: handleChange, className: "fc:h-4 fc:w-4 fc:rounded fc:border-gray-300 fc:text-blue-600 focus:fc:fc:ring-blue-500 fc:cursor-pointer" }),
|
|
637
636
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { htmlFor: "isActive", className: "fc:ml-2 fc:text-sm fc:font-medium fc:text-gray-700 fc:cursor-pointer", children: "Is Active" })
|
|
638
637
|
] }),
|
|
639
638
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-end fc:gap-3 fc:pt-4 fc:border-t fc:border-gray-100", children: [
|
|
640
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { type: "button", onClick: onClose, className: "fc:py-2 fc:px-4 fc:text-sm fc:font-semibold fc:text-gray-700 fc:bg-gray-100 hover:fc:bg-gray-200 fc:rounded-xl fc:transition", children: "Cancel" }),
|
|
641
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { type: "submit", className: "fc:py-2 fc:px-5 fc:text-sm fc:font-semibold fc:text-white fc:bg-blue-600 hover:fc:bg-blue-700 fc:rounded-xl fc:shadow-md fc:shadow-blue-500/20 fc:transition", children: "Update" })
|
|
639
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { type: "button", onClick: onClose, className: "fc:py-2 fc:px-4 fc:text-sm fc:font-semibold fc:text-gray-700 fc:bg-gray-100 hover:fc:fc:bg-gray-200 fc:rounded-xl fc:transition", children: "Cancel" }),
|
|
640
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { type: "submit", className: "fc:py-2 fc:px-5 fc:text-sm fc:font-semibold fc:text-white fc:bg-blue-600 hover:fc:fc:bg-blue-700 fc:rounded-xl fc:shadow-md fc:shadow-blue-500/20 fc:transition", children: "Update" })
|
|
642
641
|
] })
|
|
643
642
|
] })
|
|
644
643
|
] }) });
|
|
645
644
|
};
|
|
646
645
|
var EditWorkflowType_default = EditWorkflowType;
|
|
647
646
|
|
|
648
|
-
//
|
|
647
|
+
// src/components/WorkflowType/WorkflowTypeTable.jsx
|
|
649
648
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
650
649
|
function WorkflowTypeTable({
|
|
651
650
|
pageSize,
|
|
@@ -957,49 +956,49 @@ function WorkflowTypeTable({
|
|
|
957
956
|
"ID ",
|
|
958
957
|
sortKey === "workflowTypeId" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
959
958
|
] }),
|
|
960
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("th", { onClick: () => handleSort("workflowTypeCode"), className: "fc:py-3 fc:px-3 fc:text-xs fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50 fc:w-[16%]", children: [
|
|
959
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("th", { onClick: () => handleSort("workflowTypeCode"), className: "fc:py-3 fc:px-3 fc:text-xs fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:w-[16%]", children: [
|
|
961
960
|
"Code ",
|
|
962
961
|
sortKey === "workflowTypeCode" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
963
962
|
] }),
|
|
964
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("th", { onClick: () => handleSort("workflowTypeName"), className: "fc:py-3 fc:px-3 fc:text-xs fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50 fc:w-[20%]", children: [
|
|
963
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("th", { onClick: () => handleSort("workflowTypeName"), className: "fc:py-3 fc:px-3 fc:text-xs fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:w-[20%]", children: [
|
|
965
964
|
"Name ",
|
|
966
965
|
sortKey === "workflowTypeName" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
967
966
|
] }),
|
|
968
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("th", { onClick: () => handleSort("description"), className: "fc:py-3 fc:px-3 fc:text-xs fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50 fc:w-[22%]", children: [
|
|
967
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("th", { onClick: () => handleSort("description"), className: "fc:py-3 fc:px-3 fc:text-xs fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:w-[22%]", children: [
|
|
969
968
|
"Description ",
|
|
970
969
|
sortKey === "description" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
971
970
|
] }),
|
|
972
971
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("th", { className: "fc:py-3 fc:px-2 fc:text-xs fc:bg-slate-50 fc:text-center fc:w-[12%]", children: "Status" }),
|
|
973
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("th", { onClick: () => handleSort("createdOn"), className: "fc:py-3 fc:px-2 fc:text-xs fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50 fc:text-center fc:w-[12%]", children: [
|
|
972
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("th", { onClick: () => handleSort("createdOn"), className: "fc:py-3 fc:px-2 fc:text-xs fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:text-center fc:w-[12%]", children: [
|
|
974
973
|
"Created On ",
|
|
975
974
|
sortKey === "createdOn" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
976
975
|
] }),
|
|
977
976
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("th", { className: "fc:py-3 fc:px-2 fc:text-xs fc:bg-slate-50 fc:text-center fc:w-[12%]", children: "Action" })
|
|
978
977
|
] }) }),
|
|
979
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-xs fc:text-slate-600", children: visibleData.map((item) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("tr", { className: "hover:fc:bg-slate-50/50 fc:transition-colors", children: [
|
|
978
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-xs fc:text-slate-600", children: visibleData.map((item) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("tr", { className: "hover:fc:fc:bg-slate-50/50 fc:transition-colors", children: [
|
|
980
979
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("td", { className: "fc:py-3 fc:px-2 fc:text-center fc:font-medium fc:text-slate-500", children: item.workflowTypeId }),
|
|
981
980
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("td", { className: "fc:py-3 fc:px-3 fc:font-mono fc:text-xs fc:text-slate-700 fc:font-bold fc:break-words", children: item.workflowTypeCode }),
|
|
982
981
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("td", { className: "fc:py-3 fc:px-3 fc:font-bold fc:text-slate-900 fc:text-xs fc:break-words", children: item.workflowTypeName }),
|
|
983
982
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("td", { className: "fc:py-3 fc:px-3 fc:text-slate-500 fc:text-xs fc:break-words", children: item.description }),
|
|
984
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("td", { className: "fc:py-3 fc:px-2 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: `px-2 py-1 text-[11px] font-semibold rounded-full inline-block
|
|
983
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("td", { className: "fc:py-3 fc:px-2 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: `fc:px-2 fc:py-1 fc:text-[11px] fc:font-semibold fc:rounded-full fc:inline-block${item.isActive ? "bg-emerald-100/70 text-emerald-700 border border-emerald-200" : "bg-rose-100/70 text-rose-700 border border-rose-200"}`, children: item.isActive ? "Active" : "Inactive" }) }),
|
|
985
984
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("td", { className: "fc:py-3 fc:px-2 fc:text-center fc:text-slate-500 fc:text-[11px] fc:font-mono", children: item.createdOn }),
|
|
986
985
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("td", { className: "fc:py-3 fc:px-2 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-center fc:gap-2", children: [
|
|
987
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", { onClick: () => handleEdit(item), className: "fc:px-3 fc:py-1 fc:bg-blue-100/70 hover:fc:bg-blue-200/80 fc:text-blue-600 fc:font-semibold fc:text-xs fc:rounded-lg fc:transition-all fc:duration-150 fc:cursor-pointer", children: "Edit" }),
|
|
988
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", { onClick: () => handleDelete(item), className: "fc:px-3 fc:py-1 fc:bg-rose-100/70 hover:fc:bg-rose-200/80 fc:text-rose-600 fc:font-semibold fc:text-xs fc:rounded-lg fc:transition-all fc:duration-150 fc:cursor-pointer", children: "Delete" })
|
|
986
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", { onClick: () => handleEdit(item), className: "fc:px-3 fc:py-1 fc:bg-blue-100/70 hover:fc:fc:bg-blue-200/80 fc:text-blue-600 fc:font-semibold fc:text-xs fc:rounded-lg fc:transition-all fc:duration-150 fc:cursor-pointer", children: "Edit" }),
|
|
987
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", { onClick: () => handleDelete(item), className: "fc:px-3 fc:py-1 fc:bg-rose-100/70 hover:fc:fc:bg-rose-200/80 fc:text-rose-600 fc:font-semibold fc:text-xs fc:rounded-lg fc:transition-all fc:duration-150 fc:cursor-pointer", children: "Delete" })
|
|
989
988
|
] }) })
|
|
990
989
|
] }, item.workflowTypeId)) })
|
|
991
990
|
] }) }),
|
|
992
991
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-end fc:gap-1 fc:text-[13px] fc:text-slate-700 fc:font-normal fc:mt-4 fc:bg-slate-50/50 fc:p-3 fc:rounded-xl fc:border fc:border-slate-100", children: [
|
|
993
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), disabled: currentPage === 1, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:text-slate-900 fc:mr-2 disabled:fc:opacity-40 fc:cursor-pointer", children: "\
|
|
994
|
-
pageNumbers.map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `px-3 py-1 text-center rounded transition-all min-w-[28px] cursor-pointer
|
|
995
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, totalPages)), disabled: currentPage === totalPages, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:text-slate-900 fc:ml-2 disabled:fc:opacity-40 fc:cursor-pointer", children: "Next\u203A" })
|
|
992
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), disabled: currentPage === 1, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:mr-2 disabled:fc:fc:opacity-40 fc:cursor-pointer", children: "\u2039 Prev" }),
|
|
993
|
+
pageNumbers.map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `fc:px-3 fc:py-1 fc:text-center fc:rounded fc:transition-all fc:min-w-[28px] fc:cursor-pointer${currentPage === pageNumber ? "bg-blue-600 text-white font-medium shadow-sm" : "text-slate-600 hover:bg-slate-100"}`, children: pageNumber }, pageNumber)),
|
|
994
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, totalPages)), disabled: currentPage === totalPages, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:ml-2 disabled:fc:fc:opacity-40 fc:cursor-pointer", children: "Next \u203A" })
|
|
996
995
|
] }),
|
|
997
996
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(EditWorkflowType_default, { isOpen: isEditOpen, onClose: () => setIsEditOpen(false), selectedData: selectedItem, onSave: handleSaveEdit }),
|
|
998
997
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DeleteWorkflowType_default, { isOpen: isDeleteOpen, onClose: () => setIsDeleteOpen(false), itemData: selectedItem, onConfirm: handleConfirmDelete })
|
|
999
998
|
] });
|
|
1000
999
|
}
|
|
1001
1000
|
|
|
1002
|
-
//
|
|
1001
|
+
// src/components/WorkflowType/AddWorkflowTypeModal.jsx
|
|
1003
1002
|
var import_react11 = __toESM(require("react"));
|
|
1004
1003
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1005
1004
|
var AddWorkflowTypeModal = ({
|
|
@@ -1099,7 +1098,7 @@ var AddWorkflowTypeModal = ({
|
|
|
1099
1098
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "fc:text-xs fc:text-gray-400", children: "Create a new workflow and configure its details" })
|
|
1100
1099
|
] })
|
|
1101
1100
|
] }),
|
|
1102
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("button", { onClick: onClose, className: "fc:text-gray-400 hover:fc:text-gray-600 fc:transition fc:text-xl fc:font-medium", children: "\u2715" })
|
|
1101
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("button", { onClick: onClose, className: "fc:text-gray-400 hover:fc:fc:text-gray-600 fc:transition fc:text-xl fc:font-medium", children: "\u2715" })
|
|
1103
1102
|
] }),
|
|
1104
1103
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("form", { onSubmit: handleSubmit, className: "fc:p-6 fc:space-y-6", children: [
|
|
1105
1104
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "fc:bg-gray-50/70 fc:rounded-xl fc:p-5 fc:border fc:border-gray-100", children: [
|
|
@@ -1107,13 +1106,13 @@ var AddWorkflowTypeModal = ({
|
|
|
1107
1106
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: "\u{1F4CB}" }),
|
|
1108
1107
|
" Workflow Information"
|
|
1109
1108
|
] }),
|
|
1110
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-5", children: [
|
|
1109
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-5", children: [
|
|
1111
1110
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { children: [
|
|
1112
1111
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("label", { className: "fc:block fc:text-xs fc:font-semibold fc:text-gray-700 fc:mb-1.5", children: [
|
|
1113
1112
|
"Workflow Type ",
|
|
1114
1113
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
1115
1114
|
] }),
|
|
1116
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("select", { name: "workflowTypeId", value: formData.workflowTypeId, onChange: handleChange, className: `w-full px-3 py-2.5 text-sm bg-white border rounded-lg focus:ring-2 focus:ring-blue-500/20 focus:border-[#2563eb] outline-none transition
|
|
1115
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("select", { name: "workflowTypeId", value: formData.workflowTypeId, onChange: handleChange, className: `fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:rounded-lg focus:fc:ring-2 focus:fc:ring-blue-500/20 focus:fc:border-[#2563eb] fc:outline-none fc:transition${errors.workflowTypeId ? "border-red-500" : "border-gray-200"}`, children: [
|
|
1117
1116
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("option", { value: "", children: "Select workflow type" }),
|
|
1118
1117
|
workflowTypeOptions.map((item) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("option", { value: item.workflowTypeId, children: item.workflowTypeName }, item.workflowTypeId))
|
|
1119
1118
|
] }),
|
|
@@ -1125,16 +1124,16 @@ var AddWorkflowTypeModal = ({
|
|
|
1125
1124
|
"Workflow Code ",
|
|
1126
1125
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
1127
1126
|
] }),
|
|
1128
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("input", { type: "text", name: "workflowCode", placeholder: "Enter workflow code", value: formData.workflowCode, onChange: handleChange, className: `w-full px-3 py-2.5 text-sm bg-white border rounded-lg focus:ring-2 focus:ring-blue-500/20 focus:border-[#2563eb] outline-none transition
|
|
1127
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("input", { type: "text", name: "workflowCode", placeholder: "Enter workflow code", value: formData.workflowCode, onChange: handleChange, className: `fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:rounded-lg focus:fc:ring-2 focus:fc:ring-blue-500/20 focus:fc:border-[#2563eb] fc:outline-none fc:transition${errors.workflowCode ? "border-red-500" : "border-gray-200"}` }),
|
|
1129
1128
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "fc:text-[11px] fc:text-red-400 fc:mt-1", children: "Unique code for this workflow (e.g., PET-001)" }),
|
|
1130
1129
|
errors.workflowCode && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "fc:text-xs fc:text-red-500", children: errors.workflowCode })
|
|
1131
1130
|
] }),
|
|
1132
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "md:fc:col-span-2", children: [
|
|
1131
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "md:fc:fc:col-span-2", children: [
|
|
1133
1132
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("label", { className: "fc:block fc:text-xs fc:font-semibold fc:text-gray-700 fc:mb-1.5", children: [
|
|
1134
1133
|
"Workflow Name ",
|
|
1135
1134
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
1136
1135
|
] }),
|
|
1137
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("input", { type: "text", name: "workflowName", placeholder: "Enter workflow name", value: formData.workflowName, onChange: handleChange, className: `w-full px-3 py-2.5 text-sm bg-white border rounded-lg focus:ring-2 focus:ring-blue-500/20 focus:border-[#2563eb] outline-none transition
|
|
1136
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("input", { type: "text", name: "workflowName", placeholder: "Enter workflow name", value: formData.workflowName, onChange: handleChange, className: `fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:rounded-lg focus:fc:ring-2 focus:fc:ring-blue-500/20 focus:fc:border-[#2563eb] fc:outline-none fc:transition${errors.workflowName ? "border-red-500" : "border-gray-200"}` }),
|
|
1138
1137
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "fc:text-[11px] fc:text-red-400 fc:mt-1", children: "Enter a descriptive name for this workflow" }),
|
|
1139
1138
|
errors.workflowName && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "fc:text-xs fc:text-red-500", children: errors.workflowName })
|
|
1140
1139
|
] }),
|
|
@@ -1151,13 +1150,13 @@ var AddWorkflowTypeModal = ({
|
|
|
1151
1150
|
"Published ",
|
|
1152
1151
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
1153
1152
|
] }),
|
|
1154
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("select", { name: "isPublished", value: formData.isPublished, onChange: handleChange, className: "fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:border-gray-200 fc:rounded-lg focus:fc:ring-2 focus:fc:ring-blue-500/20 focus:fc:border-[#2563eb] fc:outline-none fc:transition", children: [
|
|
1153
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("select", { name: "isPublished", value: formData.isPublished, onChange: handleChange, className: "fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:border-gray-200 fc:rounded-lg focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/20 focus:fc:fc:border-[#2563eb] fc:outline-none fc:transition", children: [
|
|
1155
1154
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("option", { value: "No", children: "No" }),
|
|
1156
1155
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("option", { value: "Yes", children: "Yes" })
|
|
1157
1156
|
] }),
|
|
1158
1157
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "fc:text-[11px] fc:text-red-400 fc:mt-1", children: "Make workflow active for use" })
|
|
1159
1158
|
] }),
|
|
1160
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "md:fc:col-span-2", children: [
|
|
1159
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "md:fc:fc:col-span-2", children: [
|
|
1161
1160
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:mb-1.5", children: [
|
|
1162
1161
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { className: "fc:block fc:text-xs fc:font-semibold fc:text-gray-700", children: "Description" }),
|
|
1163
1162
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "fc:text-[11px] fc:text-gray-400", children: [
|
|
@@ -1165,13 +1164,13 @@ var AddWorkflowTypeModal = ({
|
|
|
1165
1164
|
" / 500"
|
|
1166
1165
|
] })
|
|
1167
1166
|
] }),
|
|
1168
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("textarea", { name: "description", rows: "3", placeholder: "Enter detailed description...", value: formData.description, onChange: handleChange, className: "fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:border-gray-200 fc:rounded-lg focus:fc:ring-2 focus:fc:ring-blue-500/20 focus:fc:border-[#2563eb] fc:outline-none fc:resize-none fc:transition" })
|
|
1167
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("textarea", { name: "description", rows: "3", placeholder: "Enter detailed description...", value: formData.description, onChange: handleChange, className: "fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:border-gray-200 fc:rounded-lg focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/20 focus:fc:fc:border-[#2563eb] fc:outline-none fc:resize-none fc:transition" })
|
|
1169
1168
|
] })
|
|
1170
1169
|
] })
|
|
1171
1170
|
] }),
|
|
1172
1171
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "fc:flex fc:justify-end fc:items-center fc:gap-3 fc:pt-2", children: [
|
|
1173
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("button", { type: "button", onClick: onClose, className: "fc:px-5 fc:py-2.5 fc:text-sm fc:font-medium fc:text-gray-600 fc:bg-gray-100 hover:fc:bg-gray-200 fc:rounded-xl fc:transition", children: "Cancel" }),
|
|
1174
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("button", { type: "submit", className: "fc:px-6 fc:py-2.5 fc:text-sm fc:font-semibold fc:text-white fc:bg-[#2563eb] hover:fc:bg-[#1d4ed8] active:fc:scale-95 fc:rounded-xl fc:shadow-md fc:transition-all fc:flex fc:items-center fc:gap-2", children: "Save Workflow" })
|
|
1172
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("button", { type: "button", onClick: onClose, className: "fc:px-5 fc:py-2.5 fc:text-sm fc:font-medium fc:text-gray-600 fc:bg-gray-100 hover:fc:fc:bg-gray-200 fc:rounded-xl fc:transition", children: "Cancel" }),
|
|
1173
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("button", { type: "submit", className: "fc:px-6 fc:py-2.5 fc:text-sm fc:font-semibold fc:text-white fc:bg-[#2563eb] hover:fc:fc:bg-[#1d4ed8] active:fc:fc:scale-95 fc:rounded-xl fc:shadow-md fc:transition-all fc:flex fc:items-center fc:gap-2", children: "Save Workflow" })
|
|
1175
1174
|
] })
|
|
1176
1175
|
] })
|
|
1177
1176
|
] }) })
|
|
@@ -1179,7 +1178,7 @@ var AddWorkflowTypeModal = ({
|
|
|
1179
1178
|
};
|
|
1180
1179
|
var AddWorkflowTypeModal_default = AddWorkflowTypeModal;
|
|
1181
1180
|
|
|
1182
|
-
//
|
|
1181
|
+
// src/components/WorkflowType/WorkflowTypeMains.js
|
|
1183
1182
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1184
1183
|
function WorkflowTypeMains() {
|
|
1185
1184
|
const [modalOpen, setModalOpen] = (0, import_react12.useState)(false);
|
|
@@ -1208,7 +1207,7 @@ function WorkflowTypeMains() {
|
|
|
1208
1207
|
const handleConfirmDelete = (itemToDelete) => {
|
|
1209
1208
|
console.log("Deleted Item:", itemToDelete);
|
|
1210
1209
|
};
|
|
1211
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "fc:h-screen fc:overflow-hidden fc:bg-slate-50 fc:p-4 md:fc:p-6", children: [
|
|
1210
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "fc:h-screen fc:overflow-hidden fc:bg-slate-50 fc:p-4 md:fc:fc:p-6", children: [
|
|
1212
1211
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CommonHeader, { title: "Workflow Type", breadcrumbs: [{
|
|
1213
1212
|
label: "Dashboard",
|
|
1214
1213
|
href: "/dashboard"
|
|
@@ -1237,30 +1236,30 @@ function WorkflowTypeMains() {
|
|
|
1237
1236
|
] });
|
|
1238
1237
|
}
|
|
1239
1238
|
|
|
1240
|
-
//
|
|
1239
|
+
// src/components/WorkflowStep/main.js
|
|
1241
1240
|
var import_react15 = __toESM(require("react"));
|
|
1242
1241
|
|
|
1243
|
-
//
|
|
1242
|
+
// src/components/Common/footer.js
|
|
1244
1243
|
var import_react13 = __toESM(require("react"));
|
|
1245
1244
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1246
1245
|
function Footer() {
|
|
1247
1246
|
return /* @__PURE__ */ (0, import_jsx_runtime13.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: [
|
|
1248
1247
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "fc:text-sm fc:text-slate-500", children: "Showing 1 to 5 entries" }),
|
|
1249
1248
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-2", children: [
|
|
1250
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("button", { className: "fc:px-2 fc:py-1 fc:text-[15px] fc:border fc:border-slate-200 fc:rounded-lg fc:bg-white fc:text-slate-600 fc:shadow-sm fc:transition-all fc:duration-200 hover:fc:bg-blue-600 hover:fc:text-white hover:fc:border-blue-600", children: "\u2039 Prev" }),
|
|
1251
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("button", { className: "fc:w-7 fc:h-7 fc:text-[15px] fc:border fc:border-slate-200 fc:rounded-lg fc:bg-white fc:text-slate-600 fc:shadow-sm fc:transition-all fc:duration-200 hover:fc:bg-blue-600 hover:fc:text-white hover:fc:border-blue-600", children: "1" }),
|
|
1252
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("button", { className: "fc:w-7 fc:h-7 fc:text-[15px] fc:border fc:border-slate-200 fc:rounded-lg fc:bg-white fc:text-slate-600 fc:shadow-sm fc:transition-all fc:duration-200 hover:fc:bg-blue-600 hover:fc:text-white hover:fc:border-blue-600", children: "2" }),
|
|
1253
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("button", { className: "fc:w-7 fc:h-7 fc:text-[15px] fc:border fc:border-slate-200 fc:rounded-lg fc:bg-white fc:text-slate-600 fc:shadow-sm fc:transition-all fc:duration-200 hover:fc:bg-blue-600 hover:fc:text-white hover:fc:border-blue-600", children: "3" }),
|
|
1254
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("button", { className: "fc:w-7 fc:h-7 fc:text-[15px] fc:border fc:border-slate-200 fc:rounded-lg fc:bg-white fc:text-slate-600 fc:shadow-sm fc:transition-all fc:duration-200 hover:fc:bg-blue-600 hover:fc:text-white hover:fc:border-blue-600", children: "4" }),
|
|
1255
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("button", { className: "fc:px-2 fc:py-1 fc:text-[15px] fc:border fc:border-slate-200 fc:rounded-lg fc:bg-white fc:text-slate-600 fc:shadow-sm fc:transition-all fc:duration-200 hover:fc:bg-blue-600 hover:fc:text-white hover:fc:border-blue-600", children: "Next \u203A" })
|
|
1249
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("button", { className: "fc:px-2 fc:py-1 fc:text-[15px] fc:border fc:border-slate-200 fc:rounded-lg fc:bg-white fc:text-slate-600 fc:shadow-sm fc:transition-all fc:duration-200 hover:fc:fc:bg-blue-600 hover:fc:fc:text-white hover:fc:fc:border-blue-600", children: "\u2039 Prev" }),
|
|
1250
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("button", { className: "fc:w-7 fc:h-7 fc:text-[15px] fc:border fc:border-slate-200 fc:rounded-lg fc:bg-white fc:text-slate-600 fc:shadow-sm fc:transition-all fc:duration-200 hover:fc:fc:bg-blue-600 hover:fc:fc:text-white hover:fc:fc:border-blue-600", children: "1" }),
|
|
1251
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("button", { className: "fc:w-7 fc:h-7 fc:text-[15px] fc:border fc:border-slate-200 fc:rounded-lg fc:bg-white fc:text-slate-600 fc:shadow-sm fc:transition-all fc:duration-200 hover:fc:fc:bg-blue-600 hover:fc:fc:text-white hover:fc:fc:border-blue-600", children: "2" }),
|
|
1252
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("button", { className: "fc:w-7 fc:h-7 fc:text-[15px] fc:border fc:border-slate-200 fc:rounded-lg fc:bg-white fc:text-slate-600 fc:shadow-sm fc:transition-all fc:duration-200 hover:fc:fc:bg-blue-600 hover:fc:fc:text-white hover:fc:fc:border-blue-600", children: "3" }),
|
|
1253
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("button", { className: "fc:w-7 fc:h-7 fc:text-[15px] fc:border fc:border-slate-200 fc:rounded-lg fc:bg-white fc:text-slate-600 fc:shadow-sm fc:transition-all fc:duration-200 hover:fc:fc:bg-blue-600 hover:fc:fc:text-white hover:fc:fc:border-blue-600", children: "4" }),
|
|
1254
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("button", { className: "fc:px-2 fc:py-1 fc:text-[15px] fc:border fc:border-slate-200 fc:rounded-lg fc:bg-white fc:text-slate-600 fc:shadow-sm fc:transition-all fc:duration-200 hover:fc:fc:bg-blue-600 hover:fc:fc:text-white hover:fc:fc:border-blue-600", children: "Next \u203A" })
|
|
1256
1255
|
] })
|
|
1257
1256
|
] });
|
|
1258
1257
|
}
|
|
1259
1258
|
|
|
1260
|
-
//
|
|
1259
|
+
// src/components/WorkflowStep/main.js
|
|
1261
1260
|
var import_link2 = __toESM(require("next/link"));
|
|
1262
1261
|
|
|
1263
|
-
//
|
|
1262
|
+
// src/components/WorkflowStep/AddWorkflowStepModal.js
|
|
1264
1263
|
var import_react14 = __toESM(require("react"));
|
|
1265
1264
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1266
1265
|
function AddWorkflowStepModal({
|
|
@@ -1301,7 +1300,7 @@ function AddWorkflowStepModal({
|
|
|
1301
1300
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "fc:text-xs fc:text-slate-400 fc:mt-0.5", children: "Create a new workflow step and configure its SLA details" })
|
|
1302
1301
|
] })
|
|
1303
1302
|
] }),
|
|
1304
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:text-slate-600 hover:fc:bg-slate-100 fc:p-2 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
|
|
1303
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:fc:text-slate-600 hover:fc:fc:bg-slate-100 fc:p-2 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
|
|
1305
1304
|
] }),
|
|
1306
1305
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "fc:p-8 fc:space-y-8 fc:overflow-y-auto fc:max-h-[calc(92vh-170px)] fc:bg-slate-50/30", children: [
|
|
1307
1306
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "fc:bg-white fc:p-6 fc:rounded-2xl fc:border fc:border-slate-100/80 fc:shadow-sm fc:space-y-5", children: [
|
|
@@ -1309,7 +1308,7 @@ function AddWorkflowStepModal({
|
|
|
1309
1308
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: "\u{1F4CB}" }),
|
|
1310
1309
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: "Workflow Step Information" })
|
|
1311
1310
|
] }),
|
|
1312
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-5", children: [
|
|
1311
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-5", children: [
|
|
1313
1312
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { children: [
|
|
1314
1313
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1.5", children: [
|
|
1315
1314
|
"Workflow ",
|
|
@@ -1322,7 +1321,7 @@ function AddWorkflowStepModal({
|
|
|
1322
1321
|
setErrors(__spreadProps(__spreadValues({}, errors), {
|
|
1323
1322
|
workflow: ""
|
|
1324
1323
|
}));
|
|
1325
|
-
}, className: `w-full p-2.5 rounded-xl text-xs bg-white focus:outline-none focus:ring-2 focus:ring-indigo-500/10 focus:border-indigo-500
|
|
1324
|
+
}, className: `fc:w-full fc:p-2.5 fc:rounded-xl fc:text-xs fc:bg-white focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500${errors.workflow ? "border border-red-500" : "border border-slate-200 text-slate-400"}`, children: [
|
|
1326
1325
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("option", { value: "", children: "Select workflow" }),
|
|
1327
1326
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("option", { value: "petition", children: "Petition Workflow" }),
|
|
1328
1327
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("option", { value: "building", children: "Building Workflow" })
|
|
@@ -1341,11 +1340,11 @@ function AddWorkflowStepModal({
|
|
|
1341
1340
|
setErrors(__spreadProps(__spreadValues({}, errors), {
|
|
1342
1341
|
stepCode: ""
|
|
1343
1342
|
}));
|
|
1344
|
-
}, className: `w-full p-2.5 rounded-xl text-xs focus:outline-none focus:ring-2 focus:ring-indigo-500/10 focus:border-indigo-500 text-slate-700
|
|
1343
|
+
}, className: `fc:w-full fc:p-2.5 fc:rounded-xl fc:text-xs focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500 fc:text-slate-700${errors.stepCode ? "border border-red-500" : "border border-slate-200"}` }),
|
|
1345
1344
|
errors.stepCode && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "fc:text-red-500 fc:text-[11px] fc:mt-1", children: errors.stepCode })
|
|
1346
1345
|
] })
|
|
1347
1346
|
] }),
|
|
1348
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-5", children: [
|
|
1347
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-5", children: [
|
|
1349
1348
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { children: [
|
|
1350
1349
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1.5", children: [
|
|
1351
1350
|
"Step Name ",
|
|
@@ -1358,7 +1357,7 @@ function AddWorkflowStepModal({
|
|
|
1358
1357
|
setErrors(__spreadProps(__spreadValues({}, errors), {
|
|
1359
1358
|
stepName: ""
|
|
1360
1359
|
}));
|
|
1361
|
-
}, className: `w-full p-2.5 rounded-xl text-xs focus:outline-none focus:ring-2 focus:ring-indigo-500/10 focus:border-indigo-500 text-slate-700
|
|
1360
|
+
}, className: `fc:w-full fc:p-2.5 fc:rounded-xl fc:text-xs focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500 fc:text-slate-700${errors.stepName ? "border border-red-500" : "border border-slate-200"}` }),
|
|
1362
1361
|
errors.stepName && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "fc:text-red-500 fc:text-[11px] fc:mt-1", children: errors.stepName })
|
|
1363
1362
|
] }),
|
|
1364
1363
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { children: [
|
|
@@ -1373,11 +1372,11 @@ function AddWorkflowStepModal({
|
|
|
1373
1372
|
setErrors(__spreadProps(__spreadValues({}, errors), {
|
|
1374
1373
|
sequenceNo: ""
|
|
1375
1374
|
}));
|
|
1376
|
-
}, className: `w-full p-2.5 rounded-xl text-xs focus:outline-none focus:ring-2 focus:ring-indigo-500/10 focus:border-indigo-500 text-slate-700
|
|
1375
|
+
}, className: `fc:w-full fc:p-2.5 fc:rounded-xl fc:text-xs focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500 fc:text-slate-700${errors.sequenceNo ? "border border-red-500" : "border border-slate-200"}` }),
|
|
1377
1376
|
errors.sequenceNo && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "fc:text-red-500 fc:text-[11px] fc:mt-1", children: errors.sequenceNo })
|
|
1378
1377
|
] })
|
|
1379
1378
|
] }),
|
|
1380
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-5", children: [
|
|
1379
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-5", children: [
|
|
1381
1380
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { children: [
|
|
1382
1381
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1.5", children: [
|
|
1383
1382
|
"SLA Type ",
|
|
@@ -1390,7 +1389,7 @@ function AddWorkflowStepModal({
|
|
|
1390
1389
|
setErrors(__spreadProps(__spreadValues({}, errors), {
|
|
1391
1390
|
slaType: ""
|
|
1392
1391
|
}));
|
|
1393
|
-
}, className: `w-full p-2.5 rounded-xl text-xs bg-white focus:outline-none focus:ring-2 focus:ring-indigo-500/10 focus:border-indigo-500
|
|
1392
|
+
}, className: `fc:w-full fc:p-2.5 fc:rounded-xl fc:text-xs fc:bg-white focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500${errors.slaType ? "border border-red-500" : "border border-slate-200 text-slate-400"}`, children: [
|
|
1394
1393
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("option", { value: "", children: "Select SLA type" }),
|
|
1395
1394
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("option", { value: "hours", children: "Hours" }),
|
|
1396
1395
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("option", { value: "days", children: "Days" })
|
|
@@ -1409,11 +1408,11 @@ function AddWorkflowStepModal({
|
|
|
1409
1408
|
setErrors(__spreadProps(__spreadValues({}, errors), {
|
|
1410
1409
|
slaValue: ""
|
|
1411
1410
|
}));
|
|
1412
|
-
}, className: `w-full p-2.5 rounded-xl text-xs focus:outline-none focus:ring-2 focus:ring-indigo-500/10 focus:border-indigo-500 text-slate-700
|
|
1411
|
+
}, className: `fc:w-full fc:p-2.5 fc:rounded-xl fc:text-xs focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500 fc:text-slate-700${errors.slaValue ? "border border-red-500" : "border border-slate-200"}` }),
|
|
1413
1412
|
errors.slaValue && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "fc:text-red-500 fc:text-[11px] fc:mt-1", children: errors.slaValue })
|
|
1414
1413
|
] })
|
|
1415
1414
|
] }),
|
|
1416
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-5", children: [
|
|
1415
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-5", children: [
|
|
1417
1416
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { children: [
|
|
1418
1417
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1.5", children: [
|
|
1419
1418
|
"Reminder Before ",
|
|
@@ -1426,7 +1425,7 @@ function AddWorkflowStepModal({
|
|
|
1426
1425
|
setErrors(__spreadProps(__spreadValues({}, errors), {
|
|
1427
1426
|
reminderBefore: ""
|
|
1428
1427
|
}));
|
|
1429
|
-
}, className: `w-full p-2.5 rounded-xl text-xs focus:outline-none focus:ring-2 focus:ring-indigo-500/10 focus:border-indigo-500 text-slate-700
|
|
1428
|
+
}, className: `fc:w-full fc:p-2.5 fc:rounded-xl fc:text-xs focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500 fc:text-slate-700${errors.reminderBefore ? "border border-red-500" : "border border-slate-200"}` }),
|
|
1430
1429
|
errors.reminderBefore && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "fc:text-red-500 fc:text-[11px] fc:mt-1", children: errors.reminderBefore })
|
|
1431
1430
|
] }),
|
|
1432
1431
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { children: [
|
|
@@ -1441,7 +1440,7 @@ function AddWorkflowStepModal({
|
|
|
1441
1440
|
setErrors(__spreadProps(__spreadValues({}, errors), {
|
|
1442
1441
|
escalationAfter: ""
|
|
1443
1442
|
}));
|
|
1444
|
-
}, className: `w-full p-2.5 rounded-xl text-xs focus:outline-none focus:ring-2 focus:ring-indigo-500/10 focus:border-indigo-500 text-slate-700
|
|
1443
|
+
}, className: `fc:w-full fc:p-2.5 fc:rounded-xl fc:text-xs focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500 fc:text-slate-700${errors.escalationAfter ? "border border-red-500" : "border border-slate-200"}` }),
|
|
1445
1444
|
errors.escalationAfter && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "fc:text-red-500 fc:text-[11px] fc:mt-1", children: errors.escalationAfter })
|
|
1446
1445
|
] })
|
|
1447
1446
|
] })
|
|
@@ -1451,7 +1450,7 @@ function AddWorkflowStepModal({
|
|
|
1451
1450
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: "\u2699\uFE0F" }),
|
|
1452
1451
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: "Status & Settings" })
|
|
1453
1452
|
] }),
|
|
1454
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-5", children: [
|
|
1453
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-5", children: [
|
|
1455
1454
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-between fc:p-4 fc:bg-slate-50/50 fc:border fc:border-slate-100 fc:rounded-2xl", children: [
|
|
1456
1455
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-3", children: [
|
|
1457
1456
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "fc:w-8 fc:h-8 fc:rounded-lg fc:bg-indigo-50 fc:text-indigo-600 fc:flex fc:items-center fc:justify-center fc:text-sm", children: "\u23F0" }),
|
|
@@ -1462,7 +1461,7 @@ function AddWorkflowStepModal({
|
|
|
1462
1461
|
] }),
|
|
1463
1462
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { className: "fc:relative fc:inline-flex fc:items-center fc:cursor-pointer", children: [
|
|
1464
1463
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("input", { type: "checkbox", defaultChecked: true, className: "fc:sr-only fc:peer" }),
|
|
1465
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "fc:w-8 fc:h-4.5 fc:bg-slate-200 peer-focus:fc:outline-none fc:rounded-full fc:peer peer-checked:after:fc:translate-x-full peer-checked:after:fc:border-white after:fc:content-[''] after:fc:absolute after:fc:top-[2px] after:fc:left-[2px] after:fc:bg-white after:fc:border-slate-300 after:fc:border after:fc:rounded-full after:fc:h-3.5 after:fc:w-3.5 after:fc:transition-all peer-checked:fc:bg-indigo-600" })
|
|
1464
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "fc:w-8 fc:h-4.5 fc:bg-slate-200 peer-focus:fc:fc:outline-none fc:rounded-full fc:peer peer-checked:after:fc:fc:translate-x-full peer-checked:after:fc:fc:border-white after:fc:fc:content-[''] after:fc:fc:absolute after:fc:fc:top-[2px] after:fc:fc:left-[2px] after:fc:fc:bg-white after:fc:fc:border-slate-300 after:fc:fc:border after:fc:fc:rounded-full after:fc:fc:h-3.5 after:fc:fc:w-3.5 after:fc:fc:transition-all peer-checked:fc:fc:bg-indigo-600" })
|
|
1466
1465
|
] })
|
|
1467
1466
|
] }),
|
|
1468
1467
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-between fc:p-4 fc:bg-slate-50/50 fc:border fc:border-slate-100 fc:rounded-2xl", children: [
|
|
@@ -1475,7 +1474,7 @@ function AddWorkflowStepModal({
|
|
|
1475
1474
|
] }),
|
|
1476
1475
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { className: "fc:relative fc:inline-flex fc:items-center fc:cursor-pointer", children: [
|
|
1477
1476
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("input", { type: "checkbox", defaultChecked: true, className: "fc:sr-only fc:peer" }),
|
|
1478
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "fc:w-8 fc:h-4.5 fc:bg-slate-200 peer-focus:fc:outline-none fc:rounded-full fc:peer peer-checked:after:fc:translate-x-full peer-checked:after:fc:border-white after:fc:content-[''] after:fc:absolute after:fc:top-[2px] after:fc:left-[2px] after:fc:bg-white after:fc:border-slate-300 after:fc:border after:fc:rounded-full after:fc:h-3.5 after:fc:w-3.5 after:fc:transition-all peer-checked:fc:bg-indigo-600 fc:text-slate-800" })
|
|
1477
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "fc:w-8 fc:h-4.5 fc:bg-slate-200 peer-focus:fc:fc:outline-none fc:rounded-full fc:peer peer-checked:after:fc:fc:translate-x-full peer-checked:after:fc:fc:border-white after:fc:fc:content-[''] after:fc:fc:absolute after:fc:fc:top-[2px] after:fc:fc:left-[2px] after:fc:fc:bg-white after:fc:fc:border-slate-300 after:fc:fc:border after:fc:fc:rounded-full after:fc:fc:h-3.5 after:fc:fc:w-3.5 after:fc:fc:transition-all peer-checked:fc:fc:bg-indigo-600 fc:text-slate-800" })
|
|
1479
1478
|
] })
|
|
1480
1479
|
] })
|
|
1481
1480
|
] }),
|
|
@@ -1483,11 +1482,11 @@ function AddWorkflowStepModal({
|
|
|
1483
1482
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-3", children: "Status" }),
|
|
1484
1483
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-6", children: [
|
|
1485
1484
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { className: "fc:flex fc:items-center fc:gap-2 fc:text-xs fc:text-slate-700 fc:font-medium", children: [
|
|
1486
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("input", { type: "radio", name: "status", defaultChecked: true, className: "fc:text-indigo-600 focus:fc:ring-indigo-500" }),
|
|
1485
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("input", { type: "radio", name: "status", defaultChecked: true, className: "fc:text-indigo-600 focus:fc:fc:ring-indigo-500" }),
|
|
1487
1486
|
"Active"
|
|
1488
1487
|
] }),
|
|
1489
1488
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { className: "fc:flex fc:items-center fc:gap-2 fc:text-xs fc:text-slate-700 fc:font-medium", children: [
|
|
1490
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("input", { type: "radio", name: "status", className: "fc:text-indigo-600 focus:fc:ring-indigo-500" }),
|
|
1489
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("input", { type: "radio", name: "status", className: "fc:text-indigo-600 focus:fc:fc:ring-indigo-500" }),
|
|
1491
1490
|
"Inactive"
|
|
1492
1491
|
] })
|
|
1493
1492
|
] }),
|
|
@@ -1496,18 +1495,18 @@ function AddWorkflowStepModal({
|
|
|
1496
1495
|
] })
|
|
1497
1496
|
] }),
|
|
1498
1497
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "fc:p-5 fc:bg-white fc:border-t fc:border-slate-100 fc:flex fc:items-center fc:justify-end fc:gap-3 fc:px-8", children: [
|
|
1499
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { onClick: onClose, className: "fc:px-6 fc:py-2.5 fc:border fc:border-slate-200 fc:text-slate-600 fc:text-xs fc:font-bold fc:rounded-xl hover:fc:bg-slate-50 fc:transition-all fc:flex fc:items-center fc:gap-1.5", children: "\u2715 Cancel" }),
|
|
1498
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { onClick: onClose, className: "fc:px-6 fc:py-2.5 fc:border fc:border-slate-200 fc:text-slate-600 fc:text-xs fc:font-bold fc:rounded-xl hover:fc:fc:bg-slate-50 fc:transition-all fc:flex fc:items-center fc:gap-1.5", children: "\u2715 Cancel" }),
|
|
1500
1499
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { type: "button", onClick: () => {
|
|
1501
1500
|
if (validateForm()) {
|
|
1502
1501
|
console.log("Form Submitted");
|
|
1503
1502
|
}
|
|
1504
|
-
}, className: "fc:px-6 fc:py-2.5 fc:bg-indigo-600 hover:fc:bg-indigo-700 fc:text-white fc:text-xs fc:font-bold fc:rounded-xl fc:shadow-md fc:shadow-indigo-500/10 fc:transition-all fc:flex fc:items-center fc:gap-1.5", children: "\u{1F4BE} Save Workflow Step" })
|
|
1503
|
+
}, className: "fc:px-6 fc:py-2.5 fc:bg-indigo-600 hover:fc:fc:bg-indigo-700 fc:text-white fc:text-xs fc:font-bold fc:rounded-xl fc:shadow-md fc:shadow-indigo-500/10 fc:transition-all fc:flex fc:items-center fc:gap-1.5", children: "\u{1F4BE} Save Workflow Step" })
|
|
1505
1504
|
] })
|
|
1506
1505
|
] })
|
|
1507
1506
|
] });
|
|
1508
1507
|
}
|
|
1509
1508
|
|
|
1510
|
-
//
|
|
1509
|
+
// src/components/WorkflowStep/main.js
|
|
1511
1510
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1512
1511
|
var workflowSteps = [{
|
|
1513
1512
|
workflowStepId: 1,
|
|
@@ -1663,9 +1662,9 @@ function WorkflowStep() {
|
|
|
1663
1662
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:flex-wrap fc:gap-3", children: [
|
|
1664
1663
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "fc:relative fc:max-w-xs fc:w-full", children: [
|
|
1665
1664
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "fc:absolute fc:inset-y-0 fc:left-0 fc:flex fc:items-center fc:pl-3.5 fc:pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("svg", { className: "fc:w-4 fc:h-5 fc:text-slate-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }),
|
|
1666
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("input", { type: "text", placeholder: "Search workflow name or code...", className: "fc:w-full fc:pl-10 fc:pr-4 fc:py-2.5 fc:shadow-md fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:text-[14px] fc:text-bold fc:bg-slate-50/50 focus:fc:outline-none focus:fc:ring-4 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:text-slate-700 fc:placeholder-slate-400 fc:transition-all" })
|
|
1665
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("input", { type: "text", placeholder: "Search workflow name or code...", className: "fc:w-full fc:pl-10 fc:pr-4 fc:py-2.5 fc:shadow-md fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:text-[14px] fc:text-bold fc:bg-slate-50/50 focus:fc:fc:outline-none focus:fc:fc:ring-4 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:text-slate-700 fc:placeholder-slate-400 fc:transition-all" })
|
|
1667
1666
|
] }),
|
|
1668
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "fc:flex fc:items-center fc:gap-2 fc:text-xs fc:text-slate-500 fc:font-semibold", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("select", { value: pageSize, onChange: (e) => setPageSize(Number(e.target.value)), className: "fc:inline-flex fc:items-center fc:px-4 fc:py-2 fc:rounded-xl fc:bg-white fc:text-slate-700 fc:text-[14px] fc:font-semibold fc:border fc:border-slate-200 focus:fc:outline-none fc:cursor-pointer fc:shadow-md", children: [
|
|
1667
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "fc:flex fc:items-center fc:gap-2 fc:text-xs fc:text-slate-500 fc:font-semibold", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("select", { value: pageSize, onChange: (e) => setPageSize(Number(e.target.value)), className: "fc:inline-flex fc:items-center fc:px-4 fc:py-2 fc:rounded-xl fc:bg-white fc:text-slate-700 fc:text-[14px] fc:font-semibold fc:border fc:border-slate-200 focus:fc:fc:outline-none fc:cursor-pointer fc:shadow-md", children: [
|
|
1669
1668
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("option", { value: 5, children: "5 Rows" }),
|
|
1670
1669
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("option", { value: 10, children: "10 Rows" }),
|
|
1671
1670
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("option", { value: 25, children: "25 Rows" })
|
|
@@ -1705,11 +1704,11 @@ function WorkflowStep() {
|
|
|
1705
1704
|
}, {
|
|
1706
1705
|
label: "Exclude Holidays",
|
|
1707
1706
|
key: "excludeHolidays"
|
|
1708
|
-
}].map((column) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("th", { onClick: () => handleSort(column.key), className: "fc:px-6 fc:py-4 fc:text-left fc:text-xs fc:font-bold fc:text-slate-500 fc:uppercase fc:tracking-wider fc:cursor-pointer fc:select-none hover:fc:bg-slate-100 fc:transition-colors", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-center fc:gap-1.5", children: [
|
|
1707
|
+
}].map((column) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("th", { onClick: () => handleSort(column.key), className: "fc:px-6 fc:py-4 fc:text-left fc:text-xs fc:font-bold fc:text-slate-500 fc:uppercase fc:tracking-wider fc:cursor-pointer fc:select-none hover:fc:fc:bg-slate-100 fc:transition-colors", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-center fc:gap-1.5", children: [
|
|
1709
1708
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "fc:truncate", children: column.label }),
|
|
1710
1709
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "fc:text-slate-300 fc:text-[10px]", children: sortConfig.key === column.key ? sortConfig.direction === "asc" ? "\u25B2" : "\u25BC" : "\u2195" })
|
|
1711
1710
|
] }) }, column.key)) }) }),
|
|
1712
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("tbody", { children: workflowSteps.slice(0, pageSize).map((item) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("tr", { className: "hover:fc:bg-slate-50/80 fc:transition-colors fc:border-b fc:border-slate-100 last:fc:border-0", children: [
|
|
1711
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("tbody", { children: workflowSteps.slice(0, pageSize).map((item) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("tr", { className: "hover:fc:fc:bg-slate-50/80 fc:transition-colors fc:border-b fc:border-slate-100 last:fc:fc:border-0", children: [
|
|
1713
1712
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("td", { className: "fc:px-6 fc:py-4 fc:text-center fc:text-align fc:center fc:text-[14px] fc:text-slate-600 fc:font-bold", children: item.workflowStepId }),
|
|
1714
1713
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("td", { className: "fc:px-6 fc:py-4 fc:text-center fc:text-align fc:center fc:text-[14px] fc:text-slate-600 fc:font-bold", children: item.workflowId }),
|
|
1715
1714
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("td", { className: "fc:px-2 fc:py-4 fc:text-center fc:text-[14px]", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "fc:inline-flex fc:items-center fc:px-2 fc:py-0.5 fc:rounded-md fc:bg-slate-100 fc:text-slate-600 fc:text-xs fc:font-bold fc:border fc:border-slate-200 fc:truncate", children: item.stepCode }) }),
|
|
@@ -1730,11 +1729,11 @@ function WorkflowStep() {
|
|
|
1730
1729
|
] });
|
|
1731
1730
|
}
|
|
1732
1731
|
|
|
1733
|
-
//
|
|
1732
|
+
// src/components/WorkFlowTransition/Transitiontable.js
|
|
1734
1733
|
var import_react17 = __toESM(require("react"));
|
|
1735
1734
|
var import_link3 = __toESM(require("next/link"));
|
|
1736
1735
|
|
|
1737
|
-
//
|
|
1736
|
+
// src/components/WorkFlowTransition/AddWorkFlowTransitionModal.js
|
|
1738
1737
|
var import_react16 = __toESM(require("react"));
|
|
1739
1738
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1740
1739
|
function AddWorkTransitionStepModal({
|
|
@@ -1774,7 +1773,7 @@ function AddWorkTransitionStepModal({
|
|
|
1774
1773
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "fc:text-xs fc:text-slate-400 fc:mt-0.5", children: "Create a new workflowTransition and configure its details" })
|
|
1775
1774
|
] })
|
|
1776
1775
|
] }),
|
|
1777
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:text-slate-600 hover:fc:bg-slate-100 fc:p-2 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
|
|
1776
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:fc:text-slate-600 hover:fc:fc:bg-slate-100 fc:p-2 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
|
|
1778
1777
|
] }),
|
|
1779
1778
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "fc:p-8 fc:space-y-8 fc:overflow-y-auto fc:max-h-[calc(92vh-170px)] fc:bg-slate-50/30", children: [
|
|
1780
1779
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "fc:bg-white fc:p-6 fc:rounded-2xl fc:border fc:border-slate-100/80 fc:shadow-sm fc:space-y-5", children: [
|
|
@@ -1782,7 +1781,7 @@ function AddWorkTransitionStepModal({
|
|
|
1782
1781
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children: "\u{1F4CB}" }),
|
|
1783
1782
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children: "WorkflowTransition Information" })
|
|
1784
1783
|
] }),
|
|
1785
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-5", children: [
|
|
1784
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-5", children: [
|
|
1786
1785
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { children: [
|
|
1787
1786
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1.5", children: [
|
|
1788
1787
|
"Workflow ",
|
|
@@ -1795,7 +1794,7 @@ function AddWorkTransitionStepModal({
|
|
|
1795
1794
|
setErrors(__spreadProps(__spreadValues({}, errors), {
|
|
1796
1795
|
workflow: ""
|
|
1797
1796
|
}));
|
|
1798
|
-
}, className: `w-full p-2.5 rounded-xl text-xs bg-white focus:outline-none focus:ring-2 focus:ring-indigo-500/10 focus:border-indigo-500
|
|
1797
|
+
}, className: `fc:w-full fc:p-2.5 fc:rounded-xl fc:text-xs fc:bg-white focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500${errors.workflow ? "border border-red-500" : "border border-slate-200 text-slate-400"}`, children: [
|
|
1799
1798
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("option", { value: "", children: "Select Workflow" }),
|
|
1800
1799
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("option", { value: "building", children: "Building Permission" }),
|
|
1801
1800
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("option", { value: "trade", children: "Trade License" })
|
|
@@ -1814,7 +1813,7 @@ function AddWorkTransitionStepModal({
|
|
|
1814
1813
|
setErrors(__spreadProps(__spreadValues({}, errors), {
|
|
1815
1814
|
fromStep: ""
|
|
1816
1815
|
}));
|
|
1817
|
-
}, className: `w-full p-2.5 rounded-xl text-xs bg-white focus:outline-none focus:ring-2 focus:ring-indigo-500/10 focus:border-indigo-500
|
|
1816
|
+
}, className: `fc:w-full fc:p-2.5 fc:rounded-xl fc:text-xs fc:bg-white focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500${errors.fromStep ? "border border-red-500" : "border border-slate-200 text-slate-400"}`, children: [
|
|
1818
1817
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("option", { value: "", children: "Select From Step" }),
|
|
1819
1818
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("option", { value: "scrutiny", children: "Scrutiny" }),
|
|
1820
1819
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("option", { value: "inspection", children: "Inspection" })
|
|
@@ -1822,7 +1821,7 @@ function AddWorkTransitionStepModal({
|
|
|
1822
1821
|
errors.fromStep && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "fc:text-red-500 fc:text-[11px] fc:mt-1", children: errors.fromStep })
|
|
1823
1822
|
] })
|
|
1824
1823
|
] }),
|
|
1825
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-5", children: [
|
|
1824
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-5", children: [
|
|
1826
1825
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { children: [
|
|
1827
1826
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1.5", children: [
|
|
1828
1827
|
"To Step ",
|
|
@@ -1835,7 +1834,7 @@ function AddWorkTransitionStepModal({
|
|
|
1835
1834
|
setErrors(__spreadProps(__spreadValues({}, errors), {
|
|
1836
1835
|
toStep: ""
|
|
1837
1836
|
}));
|
|
1838
|
-
}, className: `w-full p-2.5 rounded-xl text-xs bg-white focus:outline-none focus:ring-2 focus:ring-indigo-500/10 focus:border-indigo-500
|
|
1837
|
+
}, className: `fc:w-full fc:p-2.5 fc:rounded-xl fc:text-xs fc:bg-white focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500${errors.toStep ? "border border-red-500" : "border border-slate-200 text-slate-400"}`, children: [
|
|
1839
1838
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("option", { value: "", children: "Select To Step" }),
|
|
1840
1839
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("option", { value: "approval", children: "Approval" }),
|
|
1841
1840
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("option", { value: "completed", children: "Completed" })
|
|
@@ -1854,11 +1853,11 @@ function AddWorkTransitionStepModal({
|
|
|
1854
1853
|
setErrors(__spreadProps(__spreadValues({}, errors), {
|
|
1855
1854
|
actionCode: ""
|
|
1856
1855
|
}));
|
|
1857
|
-
}, className: `w-full p-2.5 rounded-xl text-xs focus:outline-none focus:ring-2 focus:ring-indigo-500/10 focus:border-indigo-500 text-slate-700
|
|
1856
|
+
}, className: `fc:w-full fc:p-2.5 fc:rounded-xl fc:text-xs focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500 fc:text-slate-700${errors.actionCode ? "border border-red-500" : "border border-slate-200"}` }),
|
|
1858
1857
|
errors.actionCode && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "fc:text-red-500 fc:text-[11px] fc:mt-1", children: errors.actionCode })
|
|
1859
1858
|
] })
|
|
1860
1859
|
] }),
|
|
1861
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-5", children: [
|
|
1860
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-5", children: [
|
|
1862
1861
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { children: [
|
|
1863
1862
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1.5", children: [
|
|
1864
1863
|
"Action Name ",
|
|
@@ -1871,7 +1870,7 @@ function AddWorkTransitionStepModal({
|
|
|
1871
1870
|
setErrors(__spreadProps(__spreadValues({}, errors), {
|
|
1872
1871
|
actionName: ""
|
|
1873
1872
|
}));
|
|
1874
|
-
}, className: `w-full p-2.5 rounded-xl text-xs focus:outline-none focus:ring-2 focus:ring-indigo-500/10 focus:border-indigo-500 text-slate-700
|
|
1873
|
+
}, className: `fc:w-full fc:p-2.5 fc:rounded-xl fc:text-xs focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500 fc:text-slate-700${errors.actionName ? "border border-red-500" : "border border-slate-200"}` }),
|
|
1875
1874
|
errors.actionName && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "fc:text-red-500 fc:text-[11px] fc:mt-1", children: errors.actionName })
|
|
1876
1875
|
] }),
|
|
1877
1876
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { children: [
|
|
@@ -1886,7 +1885,7 @@ function AddWorkTransitionStepModal({
|
|
|
1886
1885
|
setErrors(__spreadProps(__spreadValues({}, errors), {
|
|
1887
1886
|
sequenceNo: ""
|
|
1888
1887
|
}));
|
|
1889
|
-
}, className: `w-full p-2.5 rounded-xl text-xs focus:outline-none focus:ring-2 focus:ring-indigo-500/10 focus:border-indigo-500 text-slate-700
|
|
1888
|
+
}, className: `fc:w-full fc:p-2.5 fc:rounded-xl fc:text-xs focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500 fc:text-slate-700${errors.sequenceNo ? "border border-red-500" : "border border-slate-200"}` }),
|
|
1890
1889
|
errors.sequenceNo && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "fc:text-red-500 fc:text-[11px] fc:mt-1", children: errors.sequenceNo })
|
|
1891
1890
|
] })
|
|
1892
1891
|
] })
|
|
@@ -1896,7 +1895,7 @@ function AddWorkTransitionStepModal({
|
|
|
1896
1895
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children: "\u2699\uFE0F" }),
|
|
1897
1896
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children: "Status & Settings" })
|
|
1898
1897
|
] }),
|
|
1899
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-5", children: [
|
|
1898
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-5", children: [
|
|
1900
1899
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-between fc:p-4 fc:bg-slate-50/50 fc:border fc:border-slate-100 fc:rounded-2xl", children: [
|
|
1901
1900
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-3", children: [
|
|
1902
1901
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "fc:w-8 fc:h-8 fc:rounded-lg fc:bg-indigo-50 fc:text-indigo-600 fc:flex fc:items-center fc:justify-center fc:text-sm", children: "\u{1F4CC}" }),
|
|
@@ -1909,7 +1908,7 @@ function AddWorkTransitionStepModal({
|
|
|
1909
1908
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("input", { type: "checkbox", checked: formData.isDefault, onChange: (e) => setFormData(__spreadProps(__spreadValues({}, formData), {
|
|
1910
1909
|
isDefault: e.target.checked
|
|
1911
1910
|
})), className: "fc:sr-only fc:peer" }),
|
|
1912
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "fc:w-8 fc:h-4.5 fc:bg-slate-200 peer-focus:fc:outline-none fc:rounded-full fc:peer peer-checked:after:fc:translate-x-full peer-checked:after:fc:border-white after:fc:content-[''] after:fc:absolute after:fc:top-[2px] after:fc:left-[2px] after:fc:bg-white after:fc:border-slate-300 after:fc:border after:fc:rounded-full after:fc:h-3.5 after:fc:w-3.5 after:fc:transition-all peer-checked:fc:bg-indigo-600" })
|
|
1911
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "fc:w-8 fc:h-4.5 fc:bg-slate-200 peer-focus:fc:fc:outline-none fc:rounded-full fc:peer peer-checked:after:fc:fc:translate-x-full peer-checked:after:fc:fc:border-white after:fc:fc:content-[''] after:fc:fc:absolute after:fc:fc:top-[2px] after:fc:fc:left-[2px] after:fc:fc:bg-white after:fc:fc:border-slate-300 after:fc:fc:border after:fc:fc:rounded-full after:fc:fc:h-3.5 after:fc:fc:w-3.5 after:fc:fc:transition-all peer-checked:fc:fc:bg-indigo-600" })
|
|
1913
1912
|
] })
|
|
1914
1913
|
] }),
|
|
1915
1914
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-between fc:p-4 fc:bg-slate-50/50 fc:border fc:border-slate-100 fc:rounded-2xl", children: [
|
|
@@ -1924,7 +1923,7 @@ function AddWorkTransitionStepModal({
|
|
|
1924
1923
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("input", { type: "checkbox", checked: formData.requireComment, onChange: (e) => setFormData(__spreadProps(__spreadValues({}, formData), {
|
|
1925
1924
|
requireComment: e.target.checked
|
|
1926
1925
|
})), className: "fc:sr-only fc:peer" }),
|
|
1927
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "fc:w-8 fc:h-4.5 fc:bg-slate-200 peer-focus:fc:outline-none fc:rounded-full fc:peer peer-checked:after:fc:translate-x-full peer-checked:after:fc:border-white after:fc:content-[''] after:fc:absolute after:fc:top-[2px] after:fc:left-[2px] after:fc:bg-white after:fc:border-slate-300 after:fc:border after:fc:rounded-full after:fc:h-3.5 after:fc:w-3.5 after:fc:transition-all peer-checked:fc:bg-indigo-600" })
|
|
1926
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "fc:w-8 fc:h-4.5 fc:bg-slate-200 peer-focus:fc:fc:outline-none fc:rounded-full fc:peer peer-checked:after:fc:fc:translate-x-full peer-checked:after:fc:fc:border-white after:fc:fc:content-[''] after:fc:fc:absolute after:fc:fc:top-[2px] after:fc:fc:left-[2px] after:fc:fc:bg-white after:fc:fc:border-slate-300 after:fc:fc:border after:fc:fc:rounded-full after:fc:fc:h-3.5 after:fc:fc:w-3.5 after:fc:fc:transition-all peer-checked:fc:fc:bg-indigo-600" })
|
|
1928
1927
|
] })
|
|
1929
1928
|
] })
|
|
1930
1929
|
] }),
|
|
@@ -1934,13 +1933,13 @@ function AddWorkTransitionStepModal({
|
|
|
1934
1933
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("label", { className: "fc:flex fc:items-center fc:gap-2 fc:text-xs fc:text-slate-700 fc:font-medium fc:cursor-pointer", children: [
|
|
1935
1934
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("input", { type: "radio", name: "status", value: "active", checked: formData.status === "active", onChange: (e) => setFormData(__spreadProps(__spreadValues({}, formData), {
|
|
1936
1935
|
status: e.target.value
|
|
1937
|
-
})), className: "fc:text-indigo-600 focus:fc:ring-indigo-500" }),
|
|
1936
|
+
})), className: "fc:text-indigo-600 focus:fc:fc:ring-indigo-500" }),
|
|
1938
1937
|
"Active"
|
|
1939
1938
|
] }),
|
|
1940
1939
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("label", { className: "fc:flex fc:items-center fc:gap-2 fc:text-xs fc:text-slate-700 fc:font-medium fc:cursor-pointer", children: [
|
|
1941
1940
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("input", { type: "radio", name: "status", value: "inactive", checked: formData.status === "inactive", onChange: (e) => setFormData(__spreadProps(__spreadValues({}, formData), {
|
|
1942
1941
|
status: e.target.value
|
|
1943
|
-
})), className: "fc:text-indigo-600 focus:fc:ring-indigo-500" }),
|
|
1942
|
+
})), className: "fc:text-indigo-600 focus:fc:fc:ring-indigo-500" }),
|
|
1944
1943
|
"Inactive"
|
|
1945
1944
|
] })
|
|
1946
1945
|
] }),
|
|
@@ -1949,18 +1948,18 @@ function AddWorkTransitionStepModal({
|
|
|
1949
1948
|
] })
|
|
1950
1949
|
] }),
|
|
1951
1950
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "fc:p-5 fc:bg-white fc:border-t fc:border-slate-100 fc:flex fc:items-center fc:justify-end fc:gap-3 fc:px-8", children: [
|
|
1952
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("button", { onClick: onClose, className: "fc:px-6 fc:py-2.5 fc:border fc:border-slate-200 fc:text-slate-600 fc:text-xs fc:font-bold fc:rounded-xl hover:fc:bg-slate-50 fc:transition-all fc:flex fc:items-center fc:gap-1.5", children: "\u2715 Cancel" }),
|
|
1951
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("button", { onClick: onClose, className: "fc:px-6 fc:py-2.5 fc:border fc:border-slate-200 fc:text-slate-600 fc:text-xs fc:font-bold fc:rounded-xl hover:fc:fc:bg-slate-50 fc:transition-all fc:flex fc:items-center fc:gap-1.5", children: "\u2715 Cancel" }),
|
|
1953
1952
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("button", { type: "button", onClick: () => {
|
|
1954
1953
|
if (validateForm()) {
|
|
1955
1954
|
console.log("Form Submitted Successfully:", formData);
|
|
1956
1955
|
}
|
|
1957
|
-
}, className: "fc:px-6 fc:py-2.5 fc:bg-indigo-600 hover:fc:bg-indigo-700 fc:text-white fc:text-xs fc:font-bold fc:rounded-xl fc:shadow-md fc:shadow-indigo-500/10 fc:transition-all fc:flex fc:items-center fc:gap-1.5", children: "\u{1F4BE} Save Transition" })
|
|
1956
|
+
}, className: "fc:px-6 fc:py-2.5 fc:bg-indigo-600 hover:fc:fc:bg-indigo-700 fc:text-white fc:text-xs fc:font-bold fc:rounded-xl fc:shadow-md fc:shadow-indigo-500/10 fc:transition-all fc:flex fc:items-center fc:gap-1.5", children: "\u{1F4BE} Save Transition" })
|
|
1958
1957
|
] })
|
|
1959
1958
|
] })
|
|
1960
1959
|
] });
|
|
1961
1960
|
}
|
|
1962
1961
|
|
|
1963
|
-
//
|
|
1962
|
+
// src/components/WorkFlowTransition/Transitiontable.js
|
|
1964
1963
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1965
1964
|
var WorkflowTransition = [{
|
|
1966
1965
|
TransitionId: 1,
|
|
@@ -2066,9 +2065,9 @@ function WorkFlowTransition() {
|
|
|
2066
2065
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:flex-wrap fc:gap-3", children: [
|
|
2067
2066
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "fc:relative fc:max-w-xs fc:w-full", children: [
|
|
2068
2067
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "fc:absolute fc:inset-y-0 fc:left-0 fc:flex fc:items-center fc:pl-3.5 fc:pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("svg", { className: "fc:w-4 fc:h-5 fc:text-slate-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }),
|
|
2069
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("input", { type: "text", placeholder: "Search workflow name or code...", className: "fc:w-full fc:pl-10 fc:pr-4 fc:py-2.5 fc:shadow-md fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:text-[14px] fc:text-bold fc:bg-slate-50/50 focus:fc:outline-none focus:fc:ring-4 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:text-slate-700 fc:placeholder-slate-400 fc:transition-all" })
|
|
2068
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("input", { type: "text", placeholder: "Search workflow name or code...", className: "fc:w-full fc:pl-10 fc:pr-4 fc:py-2.5 fc:shadow-md fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:text-[14px] fc:text-bold fc:bg-slate-50/50 focus:fc:fc:outline-none focus:fc:fc:ring-4 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:text-slate-700 fc:placeholder-slate-400 fc:transition-all" })
|
|
2070
2069
|
] }),
|
|
2071
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "fc:flex fc:items-center fc:gap-2 fc:text-xs fc:text-slate-500 fc:font-semibold", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("select", { value: pageSize, onChange: (e) => setPageSize(Number(e.target.value)), className: "fc:inline-flex fc:items-center fc:px-4 fc:py-2 fc:rounded-xl fc:bg-white fc:text-slate-700 fc:text-[14px] fc:font-semibold fc:border fc:border-slate-200 focus:fc:outline-none fc:cursor-pointer fc:shadow-md", children: [
|
|
2070
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "fc:flex fc:items-center fc:gap-2 fc:text-xs fc:text-slate-500 fc:font-semibold", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("select", { value: pageSize, onChange: (e) => setPageSize(Number(e.target.value)), className: "fc:inline-flex fc:items-center fc:px-4 fc:py-2 fc:rounded-xl fc:bg-white fc:text-slate-700 fc:text-[14px] fc:font-semibold fc:border fc:border-slate-200 focus:fc:fc:outline-none fc:cursor-pointer fc:shadow-md", children: [
|
|
2072
2071
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("option", { value: 5, children: "5 Rows" }),
|
|
2073
2072
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("option", { value: 10, children: "10 Rows" }),
|
|
2074
2073
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("option", { value: 25, children: "25 Rows" })
|
|
@@ -2094,19 +2093,17 @@ function WorkFlowTransition() {
|
|
|
2094
2093
|
}, {
|
|
2095
2094
|
label: "ActionName",
|
|
2096
2095
|
key: "ActionName"
|
|
2097
|
-
}].map((column) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("th", { onClick: () => handleSort(column.key), className: "fc:px-6 fc:py-4 fc:text-left fc:text-xs fc:font-bold fc:text-slate-500 fc:uppercase fc:tracking-wider fc:cursor-pointer fc:select-none hover:fc:bg-slate-100 fc:transition-colors", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-center fc:gap-2", children: [
|
|
2096
|
+
}].map((column) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("th", { onClick: () => handleSort(column.key), className: "fc:px-6 fc:py-4 fc:text-left fc:text-xs fc:font-bold fc:text-slate-500 fc:uppercase fc:tracking-wider fc:cursor-pointer fc:select-none hover:fc:fc:bg-slate-100 fc:transition-colors", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-center fc:gap-2", children: [
|
|
2098
2097
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: column.label }),
|
|
2099
2098
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "fc:text-gray-400 fc:text-xs", children: sortConfig.key === column.key ? sortConfig.direction === "asc" ? "\u25B2" : "\u25BC" : "\u2195" })
|
|
2100
2099
|
] }) }, column.key)) }) }),
|
|
2101
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("tbody", { children: WorkflowTransition.slice(0, pageSize).map((item) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tr", { className: "hover:fc:bg-slate-50/80 fc:transition-colors fc:border-b fc:border-slate-100 last:fc:border-0", children: [
|
|
2100
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("tbody", { children: WorkflowTransition.slice(0, pageSize).map((item) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tr", { className: "hover:fc:fc:bg-slate-50/80 fc:transition-colors fc:border-b fc:border-slate-100 last:fc:fc:border-0", children: [
|
|
2102
2101
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "fc:px-6 fc:p-4 fc:text-center fc:text-[14px] fc:text-slate-600 fc:font-bold", children: item.TransitionId }),
|
|
2103
2102
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "fc:px-6 fc:py-4 fc:text-center fc:text-[14px] fc:text-slate-600 fc:font-bold", children: item.workflowId }),
|
|
2104
2103
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "fc:px-6 fc:py-4 fc:text-center fc:text-[14px] fc:text-slate-600 fc:font-bold", children: item.FromStepId }),
|
|
2105
2104
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "fc:px-6 fc:py-4 fc:text-center fc:text-align fc:center fc:text-[14px] fc:text-slate-600 fc:font-bold", children: item.ToStepId }),
|
|
2106
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "fc:px-6 fc:py-4 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: `inline-flex items-center rounded-full px-3 py-1 text-xs font-semibold
|
|
2107
|
-
|
|
2108
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "fc:px-6 fc:py-4 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: `inline-flex items-center rounded-full px-3 py-1 text-xs font-semibold
|
|
2109
|
-
${item.ActionName === "APPROVE" ? "bg-green-100 text-green-700" : "bg-red-100 text-red-700"}`, children: item.ActionName }) })
|
|
2105
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "fc:px-6 fc:py-4 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: `fc:inline-flex fc:items-center fc:rounded-full fc:px-3 fc:py-1 fc:text-xs fc:font-semibold${item.ActionCode === "APPROVE" ? "bg-green-100 text-green-700" : "bg-red-100 text-red-700"}`, children: item.ActionCode }) }),
|
|
2106
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "fc:px-6 fc:py-4 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: `fc:inline-flex fc:items-center fc:rounded-full fc:px-3 fc:py-1 fc:text-xs fc:font-semibold${item.ActionName === "APPROVE" ? "bg-green-100 text-green-700" : "bg-red-100 text-red-700"}`, children: item.ActionName }) })
|
|
2110
2107
|
] }, item.TransitionId)) })
|
|
2111
2108
|
] }) }),
|
|
2112
2109
|
" "
|
|
@@ -2122,10 +2119,10 @@ function WorkFlowTransition() {
|
|
|
2122
2119
|
] });
|
|
2123
2120
|
}
|
|
2124
2121
|
|
|
2125
|
-
//
|
|
2122
|
+
// src/components/user-hierarchy-node-mapping/user_hierarchy_mapping_main.jsx
|
|
2126
2123
|
var import_react21 = __toESM(require("react"));
|
|
2127
2124
|
|
|
2128
|
-
//
|
|
2125
|
+
// src/components/user-hierarchy-node-mapping/adduserhierarchynode.jsx
|
|
2129
2126
|
var import_react18 = __toESM(require("react"));
|
|
2130
2127
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
2131
2128
|
function AddUserHierarchyNodeMappingModal({
|
|
@@ -2144,7 +2141,7 @@ function AddUserHierarchyNodeMappingModal({
|
|
|
2144
2141
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "fc:text-xs fc:text-slate-400 fc:mt-0.5", children: "Map a consumer user to a hierarchy node" })
|
|
2145
2142
|
] })
|
|
2146
2143
|
] }),
|
|
2147
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:text-slate-600 hover:fc:bg-slate-100 fc:p-2 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
|
|
2144
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:fc:text-slate-600 hover:fc:fc:bg-slate-100 fc:p-2 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
|
|
2148
2145
|
] }),
|
|
2149
2146
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "fc:p-8 fc:space-y-8 fc:overflow-y-auto fc:max-h-[calc(92vh-170px)] fc:bg-slate-50/30", children: [
|
|
2150
2147
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "fc:bg-white fc:p-6 fc:rounded-2xl fc:border fc:border-slate-100/80 fc:shadow-sm fc:space-y-5", children: [
|
|
@@ -2152,13 +2149,13 @@ function AddUserHierarchyNodeMappingModal({
|
|
|
2152
2149
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: "\u{1F4CB}" }),
|
|
2153
2150
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: "Mapping Information" })
|
|
2154
2151
|
] }),
|
|
2155
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-5", children: [
|
|
2152
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-5", children: [
|
|
2156
2153
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { children: [
|
|
2157
2154
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1.5", children: [
|
|
2158
2155
|
"Mapping ID ",
|
|
2159
2156
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
2160
2157
|
] }),
|
|
2161
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", { type: "text", placeholder: "Enter mapping ID", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:text-slate-700 fc:bg-white focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500" }),
|
|
2158
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", { type: "text", placeholder: "Enter mapping ID", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:text-slate-700 fc:bg-white focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-indigo-500/10 focus:fc:fc:border-indigo-500" }),
|
|
2162
2159
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "fc:text-[10px] fc:text-slate-400 fc:mt-1", children: "Enter the unique mapping ID" })
|
|
2163
2160
|
] }),
|
|
2164
2161
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { children: [
|
|
@@ -2166,7 +2163,7 @@ function AddUserHierarchyNodeMappingModal({
|
|
|
2166
2163
|
"External User ID ",
|
|
2167
2164
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
2168
2165
|
] }),
|
|
2169
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", { type: "text", placeholder: "Enter external user ID", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:text-slate-700 fc:bg-white focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500" }),
|
|
2166
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", { type: "text", placeholder: "Enter external user ID", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:text-slate-700 fc:bg-white focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-indigo-500/10 focus:fc:fc:border-indigo-500" }),
|
|
2170
2167
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "fc:text-[10px] fc:text-slate-400 fc:mt-1", children: "Enter the consumer user ID" })
|
|
2171
2168
|
] })
|
|
2172
2169
|
] }),
|
|
@@ -2175,16 +2172,16 @@ function AddUserHierarchyNodeMappingModal({
|
|
|
2175
2172
|
"Hierarchy Node ID ",
|
|
2176
2173
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
2177
2174
|
] }),
|
|
2178
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", { type: "text", placeholder: "Enter hierarchy node ID", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500" }),
|
|
2175
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", { type: "text", placeholder: "Enter hierarchy node ID", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-indigo-500/10 focus:fc:fc:border-indigo-500" }),
|
|
2179
2176
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "fc:text-[10px] fc:text-slate-400 fc:mt-1", children: "Enter the hierarchy node assigned to the user" })
|
|
2180
2177
|
] }),
|
|
2181
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-5", children: [
|
|
2178
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-5", children: [
|
|
2182
2179
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { children: [
|
|
2183
2180
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1.5", children: [
|
|
2184
2181
|
"Role Code ",
|
|
2185
2182
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
2186
2183
|
] }),
|
|
2187
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", { type: "text", placeholder: "Enter role code", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500" }),
|
|
2184
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", { type: "text", placeholder: "Enter role code", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-indigo-500/10 focus:fc:fc:border-indigo-500" }),
|
|
2188
2185
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "fc:text-[10px] fc:text-slate-400 fc:mt-1", children: "Enter the user role code, for example DEO or RO" })
|
|
2189
2186
|
] }),
|
|
2190
2187
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { children: [
|
|
@@ -2192,7 +2189,7 @@ function AddUserHierarchyNodeMappingModal({
|
|
|
2192
2189
|
"Is Primary ",
|
|
2193
2190
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
2194
2191
|
] }),
|
|
2195
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("select", { className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500", children: [
|
|
2192
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("select", { className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-indigo-500/10 focus:fc:fc:border-indigo-500", children: [
|
|
2196
2193
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("option", { value: "", children: "Select primary status" }),
|
|
2197
2194
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("option", { value: "true", children: "Yes" }),
|
|
2198
2195
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("option", { value: "false", children: "No" })
|
|
@@ -2206,32 +2203,32 @@ function AddUserHierarchyNodeMappingModal({
|
|
|
2206
2203
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: "\u{1F4C5}" }),
|
|
2207
2204
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: "Effective Dates" })
|
|
2208
2205
|
] }),
|
|
2209
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-5", children: [
|
|
2206
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-5", children: [
|
|
2210
2207
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { children: [
|
|
2211
2208
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1.5", children: [
|
|
2212
2209
|
"Effective From ",
|
|
2213
2210
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
2214
2211
|
] }),
|
|
2215
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", { type: "date", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:text-slate-700 focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500" }),
|
|
2212
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", { type: "date", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:text-slate-700 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-indigo-500/10 focus:fc:fc:border-indigo-500" }),
|
|
2216
2213
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "fc:text-[10px] fc:text-slate-400 fc:mt-1", children: "Select the date from which this mapping is effective" })
|
|
2217
2214
|
] }),
|
|
2218
2215
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { children: [
|
|
2219
2216
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1.5", children: "Effective To" }),
|
|
2220
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", { type: "date", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:text-slate-700 focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-indigo-500/10 focus:fc:border-indigo-500" }),
|
|
2217
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", { type: "date", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:text-slate-700 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-indigo-500/10 focus:fc:fc:border-indigo-500" }),
|
|
2221
2218
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "fc:text-[10px] fc:text-slate-400 fc:mt-1", children: "Select the date until which this mapping is effective" })
|
|
2222
2219
|
] })
|
|
2223
2220
|
] })
|
|
2224
2221
|
] })
|
|
2225
2222
|
] }),
|
|
2226
2223
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "fc:p-5 fc:bg-white fc:border-t fc:border-slate-100 fc:flex fc:items-center fc:justify-end fc:gap-3 fc:px-8", children: [
|
|
2227
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("button", { onClick: onClose, className: "fc:px-6 fc:py-2.5 fc:border fc:border-slate-200 fc:text-slate-600 fc:text-xs fc:font-bold fc:rounded-xl hover:fc:bg-slate-50 fc:transition-all fc:flex fc:items-center fc:gap-1.5", children: "\u2715 Cancel" }),
|
|
2228
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("button", { type: "button", className: "fc:px-6 fc:py-2.5 fc:bg-indigo-600 hover:fc:bg-indigo-700 fc:text-white fc:text-xs fc:font-bold fc:rounded-xl fc:shadow-md fc:shadow-indigo-500/10 fc:transition-all fc:flex fc:items-center fc:gap-1.5", children: "\u{1F4BE} Save Mapping" })
|
|
2224
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("button", { onClick: onClose, className: "fc:px-6 fc:py-2.5 fc:border fc:border-slate-200 fc:text-slate-600 fc:text-xs fc:font-bold fc:rounded-xl hover:fc:fc:bg-slate-50 fc:transition-all fc:flex fc:items-center fc:gap-1.5", children: "\u2715 Cancel" }),
|
|
2225
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("button", { type: "button", className: "fc:px-6 fc:py-2.5 fc:bg-indigo-600 hover:fc:fc:bg-indigo-700 fc:text-white fc:text-xs fc:font-bold fc:rounded-xl fc:shadow-md fc:shadow-indigo-500/10 fc:transition-all fc:flex fc:items-center fc:gap-1.5", children: "\u{1F4BE} Save Mapping" })
|
|
2229
2226
|
] })
|
|
2230
2227
|
] })
|
|
2231
2228
|
] });
|
|
2232
2229
|
}
|
|
2233
2230
|
|
|
2234
|
-
//
|
|
2231
|
+
// src/components/user-hierarchy-node-mapping/searchbar.jsx
|
|
2235
2232
|
var import_react19 = __toESM(require("react"));
|
|
2236
2233
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
2237
2234
|
function MappingSearchBar({
|
|
@@ -2247,15 +2244,15 @@ function MappingSearchBar({
|
|
|
2247
2244
|
};
|
|
2248
2245
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "fc:relative fc:w-full", children: [
|
|
2249
2246
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "fc:absolute fc:inset-y-0 fc:left-0 fc:pl-3 fc:flex fc:items-center fc:pointer-events-none fc:text-slate-400", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("svg", { className: "fc:w-4 fc:h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }),
|
|
2250
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("input", { type: "text", value: searchQuery || "", onChange: handleChange, placeholder: "Search mappings...", className: "fc:w-full fc:pl-9 fc:pr-4 fc:py-2 fc:bg-white fc:border fc:border-slate-200 fc:rounded-xl fc:text-sm fc:text-slate-800 fc:placeholder-slate-400 fc:outline-none focus:fc:border-blue-500 focus:fc:ring-1 focus:fc:ring-blue-500 fc:transition-all fc:shadow-sm" }),
|
|
2247
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("input", { type: "text", value: searchQuery || "", onChange: handleChange, placeholder: "Search mappings...", className: "fc:w-full fc:pl-9 fc:pr-4 fc:py-2 fc:bg-white fc:border fc:border-slate-200 fc:rounded-xl fc:text-sm fc:text-slate-800 fc:placeholder-slate-400 fc:outline-none focus:fc:fc:border-blue-500 focus:fc:fc:ring-1 focus:fc:fc:ring-blue-500 fc:transition-all fc:shadow-sm" }),
|
|
2251
2248
|
searchQuery && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("button", { onClick: () => {
|
|
2252
2249
|
setSearchQuery("");
|
|
2253
2250
|
if (setCurrentPage) setCurrentPage(1);
|
|
2254
|
-
}, className: "fc:absolute fc:inset-y-0 fc:right-0 fc:pr-3 fc:flex fc:items-center fc:text-slate-400 hover:fc:text-slate-600", children: "\u2715" })
|
|
2251
|
+
}, className: "fc:absolute fc:inset-y-0 fc:right-0 fc:pr-3 fc:flex fc:items-center fc:text-slate-400 hover:fc:fc:text-slate-600", children: "\u2715" })
|
|
2255
2252
|
] });
|
|
2256
2253
|
}
|
|
2257
2254
|
|
|
2258
|
-
//
|
|
2255
|
+
// src/components/user-hierarchy-node-mapping/userhierarchynodetable.jsx
|
|
2259
2256
|
var import_react20 = __toESM(require("react"));
|
|
2260
2257
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
2261
2258
|
function UserHierarchyNodeMappingTable({
|
|
@@ -2552,22 +2549,22 @@ function UserHierarchyNodeMappingTable({
|
|
|
2552
2549
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "fc:w-full fc:overflow-x-hidden fc:border fc:border-slate-200 fc:rounded-2xl fc:shadow-sm fc:max-h-[420px] fc:overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("table", { className: "fc:w-full fc:text-left fc:border-collapse fc:bg-white fc:table-fixed", children: [
|
|
2553
2550
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("thead", { className: "fc:sticky fc:top-0 fc:z-10 fc:bg-slate-50 fc:shadow-[0_1px_0_0_rgba(226,232,240,1)]", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("tr", { className: "fc:text-xs fc:font-bold fc:uppercase fc:tracking-wider fc:text-slate-500", children: [
|
|
2554
2551
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("th", { className: "fc:py-4 fc:px-3 fc:w-16 fc:text-center fc:bg-slate-50", children: "S.NO" }),
|
|
2555
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("th", { onClick: () => handleSort("mappingId"), className: "fc:py-4 fc:px-3 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
|
|
2552
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("th", { onClick: () => handleSort("mappingId"), className: "fc:py-4 fc:px-3 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
|
|
2556
2553
|
"MAPPING ID",
|
|
2557
2554
|
" ",
|
|
2558
2555
|
sortKey === "mappingId" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
2559
2556
|
] }),
|
|
2560
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("th", { onClick: () => handleSort("externalUserId"), className: "fc:py-4 fc:px-3 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50 fc:text-center fc:break-words", children: [
|
|
2557
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("th", { onClick: () => handleSort("externalUserId"), className: "fc:py-4 fc:px-3 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:text-center fc:break-words", children: [
|
|
2561
2558
|
"EXTERNAL USER ID",
|
|
2562
2559
|
" ",
|
|
2563
2560
|
sortKey === "externalUserId" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
2564
2561
|
] }),
|
|
2565
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("th", { onClick: () => handleSort("hierarchyNodeId"), className: "fc:py-4 fc:px-3 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50 fc:text-center fc:break-words", children: [
|
|
2562
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("th", { onClick: () => handleSort("hierarchyNodeId"), className: "fc:py-4 fc:px-3 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:text-center fc:break-words", children: [
|
|
2566
2563
|
"HIERARCHY NODE ID",
|
|
2567
2564
|
" ",
|
|
2568
2565
|
sortKey === "hierarchyNodeId" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
2569
2566
|
] }),
|
|
2570
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("th", { onClick: () => handleSort("roleCode"), className: "fc:py-4 fc:px-3 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
|
|
2567
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("th", { onClick: () => handleSort("roleCode"), className: "fc:py-4 fc:px-3 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
|
|
2571
2568
|
"ROLE CODE",
|
|
2572
2569
|
" ",
|
|
2573
2570
|
sortKey === "roleCode" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
@@ -2577,27 +2574,27 @@ function UserHierarchyNodeMappingTable({
|
|
|
2577
2574
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("th", { className: "fc:py-4 fc:px-3 fc:text-sm fc:bg-slate-50 fc:break-words fc:text-center", children: "EFFECTIVE TO" }),
|
|
2578
2575
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("th", { className: "fc:py-4 fc:px-5 fc:text-sm fc:bg-slate-50 fc:text-center fc:whitespace-nowrap", children: "STATUS" })
|
|
2579
2576
|
] }) }),
|
|
2580
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-sm fc:text-slate-600", children: visibleData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("tr", { className: "hover:fc:bg-slate-50/50 fc:transition-colors", children: [
|
|
2577
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-sm fc:text-slate-600", children: visibleData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("tr", { className: "hover:fc:fc:bg-slate-50/50 fc:transition-colors", children: [
|
|
2581
2578
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", { className: "fc:py-4 fc:px-4 fc:text-center fc:font-medium fc:text-slate-400", children: startIndex + index + 1 }),
|
|
2582
2579
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", { className: "fc:py-4 fc:px-5 fc:font-bold fc:text-slate-900 fc:text-[14px] fc:whitespace-nowrap", children: item.mappingId }),
|
|
2583
2580
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500 fc:font-mono fc:text-xs fc:whitespace-nowrap", children: item.externalUserId }),
|
|
2584
2581
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-600 fc:font-medium fc:whitespace-nowrap", children: item.hierarchyNodeId }),
|
|
2585
2582
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", { className: "fc:py-4 fc:px-5 fc:font-bold fc:text-slate-800 fc:text-center fc:whitespace-nowrap", children: item.roleCode }),
|
|
2586
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center fc:whitespace-nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: `px-2 py-0.5 text-xs font-semibold rounded
|
|
2583
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center fc:whitespace-nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: `fc:px-2 fc:py-0.5 fc:text-xs fc:font-semibold fc:rounded${item.isPrimary ? "bg-emerald-50 text-emerald-600 border border-emerald-200" : "bg-rose-50 text-rose-600 border border-rose-200"}`, children: item.isPrimary ? "\u2713 Yes" : "\u2715 No" }) }),
|
|
2587
2584
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center fc:whitespace-nowrap", children: item.effectiveFrom }),
|
|
2588
2585
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center fc:whitespace-nowrap", children: item.effectiveTo }),
|
|
2589
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center fc:whitespace-nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", { onClick: () => toggleStatus(item.id), className: `relative inline-flex h-5.5 w-10 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out outline-none
|
|
2586
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center fc:whitespace-nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", { onClick: () => toggleStatus(item.id), className: `fc:relative fc:inline-flex fc:h-5.5 fc:w-10 fc:shrink-0 fc:cursor-pointer fc:rounded-full fc:border-2 fc:border-transparent fc:transition-colors fc:duration-200 fc:ease-in-out fc:outline-none${item.status ? "bg-blue-600" : "bg-slate-200"}`, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: `fc:pointer-events-none fc:inline-block fc:h-4.5 fc:w-4.5 fc:transform fc:rounded-full fc:bg-white fc:shadow fc:ring-0 fc:transition fc:duration-200 fc:ease-in-out${item.status ? "translate-x-4.5" : "translate-x-0"}` }) }) })
|
|
2590
2587
|
] }, item.id)) })
|
|
2591
2588
|
] }) }),
|
|
2592
2589
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-end fc:gap-1 fc:text-[13px] fc:text-slate-700 fc:font-normal fc:mt-4 fc:bg-slate-50/50 fc:p-3 fc:rounded-xl fc:border fc:border-slate-100", children: [
|
|
2593
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), disabled: currentPage === 1, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:text-slate-900 fc:mr-2 disabled:fc:opacity-40", children: "\u2039 Prev" }),
|
|
2594
|
-
pageNumbers.map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `px-3 py-1 text-center rounded transition-all min-w-[28px]
|
|
2595
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, totalPages)), disabled: currentPage === totalPages, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:text-slate-900 fc:ml-2 disabled:fc:opacity-40", children: "Next \u203A" })
|
|
2590
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), disabled: currentPage === 1, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:mr-2 disabled:fc:fc:opacity-40", children: "\u2039 Prev" }),
|
|
2591
|
+
pageNumbers.map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `fc:px-3 fc:py-1 fc:text-center fc:rounded fc:transition-all fc:min-w-[28px]${currentPage === pageNumber ? "bg-blue-600 text-white font-medium shadow-sm" : "text-slate-600 hover:bg-slate-100"}`, children: pageNumber }, pageNumber)),
|
|
2592
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, totalPages)), disabled: currentPage === totalPages, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:ml-2 disabled:fc:fc:opacity-40", children: "Next \u203A" })
|
|
2596
2593
|
] })
|
|
2597
2594
|
] });
|
|
2598
2595
|
}
|
|
2599
2596
|
|
|
2600
|
-
//
|
|
2597
|
+
// src/components/user-hierarchy-node-mapping/user_hierarchy_mapping_main.jsx
|
|
2601
2598
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
2602
2599
|
function User_hierarchy_mapping_main() {
|
|
2603
2600
|
const [modalOpen, setModalOpen] = (0, import_react21.useState)(false);
|
|
@@ -2609,7 +2606,7 @@ function User_hierarchy_mapping_main() {
|
|
|
2609
2606
|
setPageSize(Number(e.target.value));
|
|
2610
2607
|
setCurrentPage(1);
|
|
2611
2608
|
};
|
|
2612
|
-
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "fc:min-h-screen fc:bg-slate-50 fc:p-4 md:fc:p-6", children: [
|
|
2609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "fc:min-h-screen fc:bg-slate-50 fc:p-4 md:fc:fc:p-6", children: [
|
|
2613
2610
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "fc:w-full fc:space-y-5", children: [
|
|
2614
2611
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CommonHeader, { title: "User Hierarchy Node Mapping", breadcrumbs: [{
|
|
2615
2612
|
label: "Dashboard",
|
|
@@ -2641,10 +2638,10 @@ function User_hierarchy_mapping_main() {
|
|
|
2641
2638
|
] });
|
|
2642
2639
|
}
|
|
2643
2640
|
|
|
2644
|
-
//
|
|
2641
|
+
// src/components/DocumentConfiguration/DocumentConfigurationmain.jsx
|
|
2645
2642
|
var import_react27 = __toESM(require("react"));
|
|
2646
2643
|
|
|
2647
|
-
//
|
|
2644
|
+
// src/components/DocumentConfiguration/SearchBar.jsx
|
|
2648
2645
|
var import_react22 = __toESM(require("react"));
|
|
2649
2646
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2650
2647
|
function SearchBar3({
|
|
@@ -2657,14 +2654,14 @@ function SearchBar3({
|
|
|
2657
2654
|
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("input", { type: "text", value: searchQuery, onChange: (e) => {
|
|
2658
2655
|
setSearchQuery(e.target.value);
|
|
2659
2656
|
setCurrentPage(1);
|
|
2660
|
-
}, placeholder: "Search document name...", className: "fc:w-full fc:pl-10 fc:pr-4 fc:py-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-sm fc:bg-slate-50/50 focus:fc:outline-none focus:fc:ring-4 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:text-slate-700 fc:placeholder-slate-400 fc:transition-all fc:shadow-sm" })
|
|
2657
|
+
}, placeholder: "Search document name...", className: "fc:w-full fc:pl-10 fc:pr-4 fc:py-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-sm fc:bg-slate-50/50 focus:fc:fc:outline-none focus:fc:fc:ring-4 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:text-slate-700 fc:placeholder-slate-400 fc:transition-all fc:shadow-sm" })
|
|
2661
2658
|
] });
|
|
2662
2659
|
}
|
|
2663
2660
|
|
|
2664
|
-
//
|
|
2661
|
+
// src/components/DocumentConfiguration/DocumentConfigurationTable.jsx
|
|
2665
2662
|
var import_react25 = __toESM(require("react"));
|
|
2666
2663
|
|
|
2667
|
-
//
|
|
2664
|
+
// src/components/DocumentConfiguration/edit.jsx
|
|
2668
2665
|
var import_react23 = __toESM(require("react"));
|
|
2669
2666
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2670
2667
|
function EditDocumentConfiguration({
|
|
@@ -2743,16 +2740,16 @@ function EditDocumentConfiguration({
|
|
|
2743
2740
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "fc:text-xs fc:text-gray-400", children: "Update document parameters and validation settings" })
|
|
2744
2741
|
] })
|
|
2745
2742
|
] }),
|
|
2746
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("button", { onClick: onClose, className: "fc:text-gray-400 hover:fc:text-gray-600 fc:transition fc:text-xl fc:font-medium", children: "\u2715" })
|
|
2743
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("button", { onClick: onClose, className: "fc:text-gray-400 hover:fc:fc:text-gray-600 fc:transition fc:text-xl fc:font-medium", children: "\u2715" })
|
|
2747
2744
|
] }),
|
|
2748
2745
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("form", { onSubmit: handleSubmit, className: "fc:p-6 fc:space-y-5", children: [
|
|
2749
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "fc:bg-gray-50/70 fc:rounded-xl fc:p-5 fc:border fc:border-gray-100", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-4", children: [
|
|
2750
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "md:fc:col-span-2", children: [
|
|
2746
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "fc:bg-gray-50/70 fc:rounded-xl fc:p-5 fc:border fc:border-gray-100", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
|
|
2747
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "md:fc:fc:col-span-2", children: [
|
|
2751
2748
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: "fc:block fc:text-xs fc:font-semibold fc:text-gray-700 fc:mb-1.5", children: [
|
|
2752
2749
|
"Document Name ",
|
|
2753
2750
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
2754
2751
|
] }),
|
|
2755
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "text", name: "docName", placeholder: "e.g. Identity Proof", value: formData.docName, onChange: handleChange, className: `w-full px-3 py-2.5 text-sm bg-white border rounded-lg focus:ring-2 focus:ring-blue-500/20 focus:border-[#2563eb] outline-none transition
|
|
2752
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "text", name: "docName", placeholder: "e.g. Identity Proof", value: formData.docName, onChange: handleChange, className: `fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:rounded-lg focus:fc:ring-2 focus:fc:ring-blue-500/20 focus:fc:border-[#2563eb] fc:outline-none fc:transition${errors.docName ? "border-red-500" : "border-gray-200"}` }),
|
|
2756
2753
|
errors.docName && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "fc:text-xs fc:text-red-500", children: errors.docName })
|
|
2757
2754
|
] }),
|
|
2758
2755
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { children: [
|
|
@@ -2760,7 +2757,7 @@ function EditDocumentConfiguration({
|
|
|
2760
2757
|
"Workflow Step ID ",
|
|
2761
2758
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
2762
2759
|
] }),
|
|
2763
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "text", name: "stepId", placeholder: "e.g. 1", value: formData.stepId, onChange: handleChange, className: `w-full px-3 py-2.5 text-sm bg-white border rounded-lg focus:ring-2 focus:ring-blue-500/20 focus:border-[#2563eb] outline-none transition
|
|
2760
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "text", name: "stepId", placeholder: "e.g. 1", value: formData.stepId, onChange: handleChange, className: `fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:rounded-lg focus:fc:ring-2 focus:fc:ring-blue-500/20 focus:fc:border-[#2563eb] fc:outline-none fc:transition${errors.stepId ? "border-red-500" : "border-gray-200"}` }),
|
|
2764
2761
|
errors.stepId && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "fc:text-xs fc:text-red-500", children: errors.stepId })
|
|
2765
2762
|
] }),
|
|
2766
2763
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { children: [
|
|
@@ -2768,7 +2765,7 @@ function EditDocumentConfiguration({
|
|
|
2768
2765
|
"Allowed Extensions ",
|
|
2769
2766
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
2770
2767
|
] }),
|
|
2771
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "text", name: "extensions", placeholder: "e.g. pdf, jpg, png", value: formData.extensions, onChange: handleChange, className: `w-full px-3 py-2.5 text-sm bg-white border rounded-lg focus:ring-2 focus:ring-blue-500/20 focus:border-[#2563eb] outline-none transition
|
|
2768
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "text", name: "extensions", placeholder: "e.g. pdf, jpg, png", value: formData.extensions, onChange: handleChange, className: `fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:rounded-lg focus:fc:ring-2 focus:fc:ring-blue-500/20 focus:fc:border-[#2563eb] fc:outline-none fc:transition${errors.extensions ? "border-red-500" : "border-gray-200"}` }),
|
|
2772
2769
|
errors.extensions && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "fc:text-xs fc:text-red-500", children: errors.extensions })
|
|
2773
2770
|
] }),
|
|
2774
2771
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { children: [
|
|
@@ -2777,7 +2774,7 @@ function EditDocumentConfiguration({
|
|
|
2777
2774
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
2778
2775
|
] }),
|
|
2779
2776
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fc:flex fc:gap-2", children: [
|
|
2780
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "number", name: "maxSizeNum", placeholder: "10", value: formData.maxSizeNum, onChange: handleChange, className: `w-full px-3 py-2.5 text-sm bg-white border rounded-lg focus:ring-2 focus:ring-blue-500/20 focus:border-[#2563eb] outline-none transition
|
|
2777
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "number", name: "maxSizeNum", placeholder: "10", value: formData.maxSizeNum, onChange: handleChange, className: `fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:rounded-lg focus:fc:ring-2 focus:fc:ring-blue-500/20 focus:fc:border-[#2563eb] fc:outline-none fc:transition${errors.maxSizeNum ? "border-red-500" : "border-gray-200"}` }),
|
|
2781
2778
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("select", { name: "maxSizeUnit", value: formData.maxSizeUnit, onChange: handleChange, className: "fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:border-gray-200 fc:rounded-lg fc:outline-none", children: [
|
|
2782
2779
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: "MB", children: "MB" }),
|
|
2783
2780
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: "KB", children: "KB" })
|
|
@@ -2786,19 +2783,19 @@ function EditDocumentConfiguration({
|
|
|
2786
2783
|
errors.maxSizeNum && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "fc:text-xs fc:text-red-500", children: errors.maxSizeNum })
|
|
2787
2784
|
] }),
|
|
2788
2785
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-2 fc:pt-6", children: [
|
|
2789
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "checkbox", id: "isMandatory", name: "isMandatory", checked: formData.isMandatory, onChange: handleChange, className: "fc:w-4 fc:h-4 fc:text-[#2563eb] fc:rounded fc:border-gray-300 focus:fc:ring-[#2563eb]" }),
|
|
2786
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "checkbox", id: "isMandatory", name: "isMandatory", checked: formData.isMandatory, onChange: handleChange, className: "fc:w-4 fc:h-4 fc:text-[#2563eb] fc:rounded fc:border-gray-300 focus:fc:fc:ring-[#2563eb]" }),
|
|
2790
2787
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("label", { htmlFor: "isMandatory", className: "fc:text-sm fc:font-medium fc:text-gray-700 fc:cursor-pointer", children: "Is Mandatory" })
|
|
2791
2788
|
] })
|
|
2792
2789
|
] }) }),
|
|
2793
2790
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fc:flex fc:justify-end fc:items-center fc:gap-3 fc:pt-2", children: [
|
|
2794
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("button", { type: "button", onClick: onClose, className: "fc:px-5 fc:py-2.5 fc:text-sm fc:font-medium fc:text-gray-600 fc:bg-gray-100 hover:fc:bg-gray-200 fc:rounded-xl fc:transition", children: "Cancel" }),
|
|
2795
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("button", { type: "submit", className: "fc:px-6 fc:py-2.5 fc:text-sm fc:font-semibold fc:text-white fc:bg-[#2563eb] hover:fc:bg-[#1d4ed8] active:fc:scale-95 fc:rounded-xl fc:shadow-md fc:transition-all fc:flex fc:items-center fc:gap-2", children: "Save Document" })
|
|
2791
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("button", { type: "button", onClick: onClose, className: "fc:px-5 fc:py-2.5 fc:text-sm fc:font-medium fc:text-gray-600 fc:bg-gray-100 hover:fc:fc:bg-gray-200 fc:rounded-xl fc:transition", children: "Cancel" }),
|
|
2792
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("button", { type: "submit", className: "fc:px-6 fc:py-2.5 fc:text-sm fc:font-semibold fc:text-white fc:bg-[#2563eb] hover:fc:fc:bg-[#1d4ed8] active:fc:fc:scale-95 fc:rounded-xl fc:shadow-md fc:transition-all fc:flex fc:items-center fc:gap-2", children: "Save Document" })
|
|
2796
2793
|
] })
|
|
2797
2794
|
] })
|
|
2798
2795
|
] }) });
|
|
2799
2796
|
}
|
|
2800
2797
|
|
|
2801
|
-
//
|
|
2798
|
+
// src/components/DocumentConfiguration/delete.jsx
|
|
2802
2799
|
var import_react24 = __toESM(require("react"));
|
|
2803
2800
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
2804
2801
|
function DeleteDocumentConfiguration({
|
|
@@ -2817,7 +2814,7 @@ function DeleteDocumentConfiguration({
|
|
|
2817
2814
|
return (
|
|
2818
2815
|
// Backdrop blur & darker backdrop for better focus
|
|
2819
2816
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "fc:fixed fc:inset-0 fc:z-50 fc:flex fc:items-center fc:justify-center fc:bg-black/40 fc:backdrop-blur-sm fc:p-4 fc:animate-in fc:fade-in fc:duration-200", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "fc:relative fc:w-full fc:max-w-md fc:bg-white fc:rounded-3xl fc:shadow-2xl fc:border fc:border-gray-100 fc:overflow-hidden fc:transform fc:transition-all fc:scale-100", children: [
|
|
2820
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("button", { onClick: onClose, className: "fc:absolute fc:top-4 fc:right-4 fc:z-10 fc:flex fc:items-center fc:justify-center fc:w-8 fc:h-8 fc:rounded-full fc:text-gray-400 hover:fc:text-gray-600 hover:fc:bg-gray-100 fc:transition-colors", "aria-label": "Close", children: "\u2715" }),
|
|
2817
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("button", { onClick: onClose, className: "fc:absolute fc:top-4 fc:right-4 fc:z-10 fc:flex fc:items-center fc:justify-center fc:w-8 fc:h-8 fc:rounded-full fc:text-gray-400 hover:fc:fc:text-gray-600 hover:fc:fc:bg-gray-100 fc:transition-colors", "aria-label": "Close", children: "\u2715" }),
|
|
2821
2818
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "fc:p-8 fc:text-center", children: [
|
|
2822
2819
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "fc:mx-auto fc:mb-4 fc:flex fc:h-14 fc:w-14 fc:items-center fc:justify-center fc:rounded-2xl fc:bg-red-50 fc:border fc:border-red-100 fc:text-red-500 fc:shadow-inner", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "fc:text-2xl", children: "\u26A0\uFE0F" }) }),
|
|
2823
2820
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("h3", { className: "fc:text-xl fc:font-bold fc:text-gray-900 fc:tracking-tight fc:mb-2", children: "Delete Configuration" }),
|
|
@@ -2832,15 +2829,15 @@ function DeleteDocumentConfiguration({
|
|
|
2832
2829
|
"? This action cannot be undone."
|
|
2833
2830
|
] }),
|
|
2834
2831
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-3", children: [
|
|
2835
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("button", { type: "button", onClick: onClose, className: "fc:w-1/2 fc:py-2.5 fc:px-4 fc:text-sm fc:font-semibold fc:text-gray-700 fc:bg-gray-100 hover:fc:bg-gray-200 active:fc:bg-gray-300 fc:rounded-xl fc:transition-all fc:duration-150 focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-gray-300", children: "Cancel" }),
|
|
2836
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("button", { type: "button", onClick: handleDelete, className: "fc:w-1/2 fc:py-2.5 fc:px-4 fc:text-sm fc:font-semibold fc:text-white fc:bg-red-600 hover:fc:bg-red-700 active:fc:bg-red-800 fc:rounded-xl fc:shadow-md hover:fc:shadow-lg fc:shadow-red-500/20 fc:transition-all fc:duration-150 focus:fc:outline-none focus:fc:ring-2 focus:fc:ring-red-500 focus:fc:ring-offset-2", children: "Delete" })
|
|
2832
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("button", { type: "button", onClick: onClose, className: "fc:w-1/2 fc:py-2.5 fc:px-4 fc:text-sm fc:font-semibold fc:text-gray-700 fc:bg-gray-100 hover:fc:fc:bg-gray-200 active:fc:fc:bg-gray-300 fc:rounded-xl fc:transition-all fc:duration-150 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-gray-300", children: "Cancel" }),
|
|
2833
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("button", { type: "button", onClick: handleDelete, className: "fc:w-1/2 fc:py-2.5 fc:px-4 fc:text-sm fc:font-semibold fc:text-white fc:bg-red-600 hover:fc:fc:bg-red-700 active:fc:fc:bg-red-800 fc:rounded-xl fc:shadow-md hover:fc:fc:shadow-lg fc:shadow-red-500/20 fc:transition-all fc:duration-150 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-red-500 focus:fc:fc:ring-offset-2", children: "Delete" })
|
|
2837
2834
|
] })
|
|
2838
2835
|
] })
|
|
2839
2836
|
] }) })
|
|
2840
2837
|
);
|
|
2841
2838
|
}
|
|
2842
2839
|
|
|
2843
|
-
//
|
|
2840
|
+
// src/components/DocumentConfiguration/DocumentConfigurationTable.jsx
|
|
2844
2841
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
2845
2842
|
function DocumentConfigTable({
|
|
2846
2843
|
pageSize,
|
|
@@ -3078,46 +3075,46 @@ function DocumentConfigTable({
|
|
|
3078
3075
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "fc:w-full fc:overflow-x-auto fc:border fc:border-slate-200 fc:rounded-2xl fc:shadow-sm fc:max-h-[420px] fc:overflow-y-auto fc:custom-scrollbar", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("table", { className: "fc:w-full fc:text-left fc:border-collapse fc:bg-white fc:table-fixed fc:min-w-[1050px]", children: [
|
|
3079
3076
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("thead", { className: "fc:sticky fc:top-0 fc:z-10 fc:bg-slate-50 fc:shadow-[0_1px_0_0_rgba(226,232,240,1)]", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "fc:text-xs fc:font-bold fc:tracking-wider fc:text-slate-500", children: [
|
|
3080
3077
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("th", { className: "fc:py-4 fc:px-5 fc:w-20 fc:text-center fc:bg-slate-50", children: "S.No" }),
|
|
3081
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("th", { onClick: () => handleSort("docName"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50 fc:w-60", children: [
|
|
3078
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("th", { onClick: () => handleSort("docName"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:w-60", children: [
|
|
3082
3079
|
"Document Name ",
|
|
3083
3080
|
sortKey === "docName" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
3084
3081
|
] }),
|
|
3085
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("th", { onClick: () => handleSort("stepId"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50 fc:text-center fc:w-40", children: [
|
|
3082
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("th", { onClick: () => handleSort("stepId"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:text-center fc:w-40", children: [
|
|
3086
3083
|
"Workflow Step ID ",
|
|
3087
3084
|
sortKey === "stepId" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
3088
3085
|
] }),
|
|
3089
3086
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("th", { className: "fc:py-4 fc:px-5 fc:text-sm fc:bg-slate-50", children: "Allowed Extensions" }),
|
|
3090
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("th", { onClick: () => handleSort("maxSize"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50", children: [
|
|
3087
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("th", { onClick: () => handleSort("maxSize"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50", children: [
|
|
3091
3088
|
"Max Size (MB) ",
|
|
3092
3089
|
sortKey === "maxSize" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
3093
3090
|
] }),
|
|
3094
3091
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("th", { className: "fc:py-4 fc:px-5 fc:text-sm fc:bg-slate-50 fc:text-center fc:w-32", children: "Is Mandatory" }),
|
|
3095
3092
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("th", { className: "fc:py-4 fc:px-5 fc:text-sm fc:bg-slate-50 fc:text-center fc:w-36", children: "Action" })
|
|
3096
3093
|
] }) }),
|
|
3097
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-sm fc:text-slate-600", children: visibleData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "hover:fc:bg-slate-50/50 fc:transition-colors", children: [
|
|
3094
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-sm fc:text-slate-600", children: visibleData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "hover:fc:fc:bg-slate-50/50 fc:transition-colors", children: [
|
|
3098
3095
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center fc:font-medium fc:text-slate-400", children: startIndex + index + 1 }),
|
|
3099
3096
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "fc:py-4 fc:px-5 fc:font-bold fc:text-slate-900 fc:text-[14px]", children: item.docName }),
|
|
3100
3097
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-600 fc:text-center fc:font-semibold", children: item.stepId }),
|
|
3101
3098
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500 fc:font-mono fc:text-xs", children: item.extensions }),
|
|
3102
3099
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-900 fc:font-bold", children: item.maxSize }),
|
|
3103
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => toggleMandatory(item.id), className: `relative inline-flex h-5.5 w-10 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out outline-none
|
|
3100
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => toggleMandatory(item.id), className: `fc:relative fc:inline-flex fc:h-5.5 fc:w-10 fc:shrink-0 fc:cursor-pointer fc:rounded-full fc:border-2 fc:border-transparent fc:transition-colors fc:duration-200 fc:ease-in-out fc:outline-none${item.isMandatory ? "bg-[#2563eb]" : "bg-slate-200"}`, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: `fc:pointer-events-none fc:inline-block fc:h-4.5 fc:w-4.5 fc:transform fc:rounded-full fc:bg-white fc:shadow fc:ring-0 fc:transition fc:duration-200 fc:ease-in-out${item.isMandatory ? "translate-x-4.5" : "translate-x-0"}` }) }) }),
|
|
3104
3101
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "fc:py-3 fc:px-2 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-center fc:gap-2", children: [
|
|
3105
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => handleEdit(item), className: "fc:px-3 fc:py-1 fc:bg-blue-100/70 hover:fc:bg-blue-200/80 fc:text-blue-600 fc:font-semibold fc:text-xs fc:rounded-lg fc:transition-all fc:duration-150 fc:cursor-pointer", children: "Edit" }),
|
|
3106
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => handleDelete(item), className: "fc:px-3 fc:py-1 fc:bg-rose-100/70 hover:fc:bg-rose-200/80 fc:text-rose-600 fc:font-semibold fc:text-xs fc:rounded-lg fc:transition-all fc:duration-150 fc:cursor-pointer", children: "Delete" })
|
|
3102
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => handleEdit(item), className: "fc:px-3 fc:py-1 fc:bg-blue-100/70 hover:fc:fc:bg-blue-200/80 fc:text-blue-600 fc:font-semibold fc:text-xs fc:rounded-lg fc:transition-all fc:duration-150 fc:cursor-pointer", children: "Edit" }),
|
|
3103
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => handleDelete(item), className: "fc:px-3 fc:py-1 fc:bg-rose-100/70 hover:fc:fc:bg-rose-200/80 fc:text-rose-600 fc:font-semibold fc:text-xs fc:rounded-lg fc:transition-all fc:duration-150 fc:cursor-pointer", children: "Delete" })
|
|
3107
3104
|
] }) })
|
|
3108
3105
|
] }, item.id)) })
|
|
3109
3106
|
] }) }),
|
|
3110
3107
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-end fc:gap-1 fc:text-[13px] fc:text-slate-700 fc:font-normal fc:mt-4 fc:bg-slate-50/50 fc:p-3 fc:rounded-xl fc:border fc:border-slate-100", children: [
|
|
3111
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), disabled: currentPage === 1, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:text-slate-900 fc:mr-2 disabled:fc:opacity-40", children: "\u2039 Prev" }),
|
|
3112
|
-
pageNumbers.map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `px-3 py-1 text-center rounded transition-all min-w-[28px]
|
|
3113
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, totalPages)), disabled: currentPage === totalPages, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:text-slate-900 fc:ml-2 disabled:fc:opacity-40", children: "Next \u203A" })
|
|
3108
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), disabled: currentPage === 1, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:mr-2 disabled:fc:fc:opacity-40", children: "\u2039 Prev" }),
|
|
3109
|
+
pageNumbers.map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `fc:px-3 fc:py-1 fc:text-center fc:rounded fc:transition-all fc:min-w-[28px]${currentPage === pageNumber ? "bg-[#2563eb] text-white font-medium shadow-sm" : "text-slate-600 hover:bg-slate-100"}`, children: pageNumber }, pageNumber)),
|
|
3110
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, totalPages)), disabled: currentPage === totalPages, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:ml-2 disabled:fc:fc:opacity-40", children: "Next \u203A" })
|
|
3114
3111
|
] }),
|
|
3115
3112
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(EditDocumentConfiguration, { isOpen: isEditOpen, onClose: () => setIsEditOpen(false), initialData: selectedItem, onSave: handleSaveEdit }),
|
|
3116
3113
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DeleteDocumentConfiguration, { isOpen: isDeleteOpen, onClose: () => setIsDeleteOpen(false), documentData: selectedItem, onConfirm: handleConfirmDelete })
|
|
3117
3114
|
] });
|
|
3118
3115
|
}
|
|
3119
3116
|
|
|
3120
|
-
//
|
|
3117
|
+
// src/components/DocumentConfiguration/AddDocumentConfigurationModal.jsx
|
|
3121
3118
|
var import_react26 = __toESM(require("react"));
|
|
3122
3119
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
3123
3120
|
function AddDocumentConfigModal({
|
|
@@ -3134,7 +3131,7 @@ function AddDocumentConfigModal({
|
|
|
3134
3131
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("h2", { className: "fc:text-lg fc:font-extrabold fc:text-slate-800", children: "Add Document Configuration" }),
|
|
3135
3132
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "fc:text-[11px] fc:text-slate-400 fc:mt-0.5", children: "Configure rule specifications for node file processing" })
|
|
3136
3133
|
] }),
|
|
3137
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:text-slate-600 fc:p-1.5 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
|
|
3134
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:fc:text-slate-600 fc:p-1.5 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
|
|
3138
3135
|
] }),
|
|
3139
3136
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "fc:p-6 fc:space-y-5 fc:overflow-y-auto fc:bg-slate-50/30", children: [
|
|
3140
3137
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { children: [
|
|
@@ -3142,16 +3139,16 @@ function AddDocumentConfigModal({
|
|
|
3142
3139
|
"Document Name ",
|
|
3143
3140
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
3144
3141
|
] }),
|
|
3145
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("input", { type: "text", placeholder: "e.g. Identity Proof", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:ring-2 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:outline-none fc:bg-white" }),
|
|
3142
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("input", { type: "text", placeholder: "e.g. Identity Proof", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
|
|
3146
3143
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "fc:text-[9px] fc:text-red-500 fc:mt-0.5", children: "Label name of the required document" })
|
|
3147
3144
|
] }),
|
|
3148
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-4", children: [
|
|
3145
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
|
|
3149
3146
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { children: [
|
|
3150
3147
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: [
|
|
3151
3148
|
"Workflow Step ID ",
|
|
3152
3149
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
3153
3150
|
] }),
|
|
3154
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("input", { type: "number", placeholder: "e.g. 1", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:ring-2 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:outline-none fc:bg-white" }),
|
|
3151
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("input", { type: "number", placeholder: "e.g. 1", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
|
|
3155
3152
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "fc:text-[9px] fc:text-red-500 fc:mt-0.5", children: "Numeric step sequence handler" })
|
|
3156
3153
|
] }),
|
|
3157
3154
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { children: [
|
|
@@ -3160,7 +3157,7 @@ function AddDocumentConfigModal({
|
|
|
3160
3157
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "fc:text-red-500", children: "*" }),
|
|
3161
3158
|
" "
|
|
3162
3159
|
] }),
|
|
3163
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("input", { type: "text", placeholder: "e.g. 10 MB", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:ring-2 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:outline-none fc:bg-white" }),
|
|
3160
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("input", { type: "text", placeholder: "e.g. 10 MB", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
|
|
3164
3161
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "fc:text-[9px] fc:text-red-500 fc:mt-0.5", children: "Maximum upload limits permissible" })
|
|
3165
3162
|
] })
|
|
3166
3163
|
] }),
|
|
@@ -3169,7 +3166,7 @@ function AddDocumentConfigModal({
|
|
|
3169
3166
|
"Allowed Extensions ",
|
|
3170
3167
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "fc:text-red-500", children: "*" })
|
|
3171
3168
|
] }),
|
|
3172
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("input", { type: "text", placeholder: "e.g. pdf, jpg, png", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:ring-2 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:outline-none fc:bg-white" }),
|
|
3169
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("input", { type: "text", placeholder: "e.g. pdf, jpg, png", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
|
|
3173
3170
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "fc:text-[9px] fc:text-red-500 fc:mt-0.5", children: "Comma-separated standard format extensions" })
|
|
3174
3171
|
] }),
|
|
3175
3172
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-between fc:p-3.5 fc:bg-white fc:border fc:border-slate-200 fc:rounded-2xl fc:shadow-sm", children: [
|
|
@@ -3177,18 +3174,18 @@ function AddDocumentConfigModal({
|
|
|
3177
3174
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-800", children: "Is Mandatory File Field" }),
|
|
3178
3175
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "fc:text-[10px] fc:text-red-500 fc:mt-0.5", children: "Check if user cannot bypass without uploading this file" })
|
|
3179
3176
|
] }),
|
|
3180
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("button", { type: "button", onClick: () => setIsMandatory(!isMandatory), className: `relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out outline-none
|
|
3177
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("button", { type: "button", onClick: () => setIsMandatory(!isMandatory), className: `fc:relative fc:inline-flex fc:h-6 fc:w-11 fc:shrink-0 fc:cursor-pointer fc:rounded-full fc:border-2 fc:border-transparent fc:transition-colors fc:duration-200 fc:ease-in-out fc:outline-none${isMandatory ? "bg-blue-600" : "bg-slate-200"}`, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: `fc:pointer-events-none fc:inline-block fc:h-5 fc:w-5 fc:transform fc:rounded-full fc:bg-white fc:shadow fc:ring-0 fc:transition fc:duration-200 fc:ease-in-out${isMandatory ? "translate-x-5" : "translate-x-0"}` }) })
|
|
3181
3178
|
] })
|
|
3182
3179
|
] }),
|
|
3183
3180
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "fc:flex fc:justify-end fc:gap-3 fc:px-8 fc:py-4 fc:border-t fc:border-slate-100 fc:bg-white", children: [
|
|
3184
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("button", { onClick: onClose, className: "fc:px-4 fc:py-2 fc:text-xs fc:font-bold fc:text-slate-500 hover:fc:text-slate-700 fc:transition-colors", children: "\u2715 Cancel" }),
|
|
3185
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("button", { className: "fc:px-5 fc:py-2 fc:text-xs fc:font-bold fc:text-white fc:bg-blue-600 hover:fc:bg-blue-700 fc:rounded-xl fc:transition-all fc:shadow-sm", children: "Save Rules" })
|
|
3181
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("button", { onClick: onClose, className: "fc:px-4 fc:py-2 fc:text-xs fc:font-bold fc:text-slate-500 hover:fc:fc:text-slate-700 fc:transition-colors", children: "\u2715 Cancel" }),
|
|
3182
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("button", { className: "fc:px-5 fc:py-2 fc:text-xs fc:font-bold fc:text-white fc:bg-blue-600 hover:fc:fc:bg-blue-700 fc:rounded-xl fc:transition-all fc:shadow-sm", children: "Save Rules" })
|
|
3186
3183
|
] })
|
|
3187
3184
|
] })
|
|
3188
3185
|
] });
|
|
3189
3186
|
}
|
|
3190
3187
|
|
|
3191
|
-
//
|
|
3188
|
+
// src/components/DocumentConfiguration/DocumentConfigurationmain.jsx
|
|
3192
3189
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3193
3190
|
function DocumentConfigurationmain() {
|
|
3194
3191
|
const [modalOpen, setModalOpen] = (0, import_react27.useState)(false);
|
|
@@ -3200,7 +3197,7 @@ function DocumentConfigurationmain() {
|
|
|
3200
3197
|
setPageSize(Number(e.target.value));
|
|
3201
3198
|
setCurrentPage(1);
|
|
3202
3199
|
};
|
|
3203
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "fc:h-screen fc:overflow-hidden fc:bg-slate-50 fc:p-4 md:fc:p-6", children: [
|
|
3200
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "fc:h-screen fc:overflow-hidden fc:bg-slate-50 fc:p-4 md:fc:fc:p-6", children: [
|
|
3204
3201
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CommonHeader, { title: "Document Configuration", breadcrumbs: [{
|
|
3205
3202
|
label: "Dashboard",
|
|
3206
3203
|
href: "/dashboard"
|
|
@@ -3230,10 +3227,10 @@ function DocumentConfigurationmain() {
|
|
|
3230
3227
|
] });
|
|
3231
3228
|
}
|
|
3232
3229
|
|
|
3233
|
-
//
|
|
3230
|
+
// src/components/AuditLog/AuditLogmain.jsx
|
|
3234
3231
|
var import_react31 = __toESM(require("react"));
|
|
3235
3232
|
|
|
3236
|
-
//
|
|
3233
|
+
// src/components/AuditLog/SearchBar.jsx
|
|
3237
3234
|
var import_react28 = __toESM(require("react"));
|
|
3238
3235
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
3239
3236
|
function SearchBar4({
|
|
@@ -3246,11 +3243,11 @@ function SearchBar4({
|
|
|
3246
3243
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("input", { type: "text", value: searchQuery, onChange: (e) => {
|
|
3247
3244
|
setSearchQuery(e.target.value);
|
|
3248
3245
|
setCurrentPage(1);
|
|
3249
|
-
}, placeholder: "Search user or action...", className: "fc:w-full fc:pl-10 fc:pr-4 fc:py-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-sm fc:bg-slate-50/50 focus:fc:outline-none focus:fc:ring-4 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:text-slate-700 fc:placeholder-slate-400 fc:transition-all fc:shadow-sm" })
|
|
3246
|
+
}, placeholder: "Search user or action...", className: "fc:w-full fc:pl-10 fc:pr-4 fc:py-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-sm fc:bg-slate-50/50 focus:fc:fc:outline-none focus:fc:fc:ring-4 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:text-slate-700 fc:placeholder-slate-400 fc:transition-all fc:shadow-sm" })
|
|
3250
3247
|
] });
|
|
3251
3248
|
}
|
|
3252
3249
|
|
|
3253
|
-
//
|
|
3250
|
+
// src/components/AuditLog/AuditLogTable.jsx
|
|
3254
3251
|
var import_react29 = __toESM(require("react"));
|
|
3255
3252
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3256
3253
|
function AuditLogTable({
|
|
@@ -3506,47 +3503,47 @@ function AuditLogTable({
|
|
|
3506
3503
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "fc:w-full fc:overflow-x-auto fc:border fc:border-slate-200 fc:rounded-2xl fc:shadow-sm fc:max-h-[420px] fc:overflow-y-auto fc:custom-scrollbar", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("table", { className: "fc:w-full fc:text-left fc:border-collapse fc:bg-white fc:table-auto", children: [
|
|
3507
3504
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("thead", { className: "fc:sticky fc:top-0 fc:z-10 fc:bg-slate-50 fc:shadow-[0_1px_0_0_rgba(226,232,240,1)]", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("tr", { className: "fc:text-xs fc:font-bold fc:tracking-wider fc:text-slate-500", children: [
|
|
3508
3505
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("th", { className: "fc:py-4 fc:px-4 fc:w-16 fc:text-center fc:bg-slate-50", children: "S.No" }),
|
|
3509
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("th", { onClick: () => handleSort("logId"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
|
|
3506
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("th", { onClick: () => handleSort("logId"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
|
|
3510
3507
|
"Log ID ",
|
|
3511
3508
|
sortKey === "logId" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
3512
3509
|
] }),
|
|
3513
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("th", { onClick: () => handleSort("user"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
|
|
3510
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("th", { onClick: () => handleSort("user"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
|
|
3514
3511
|
"User Name ",
|
|
3515
3512
|
sortKey === "user" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
3516
3513
|
] }),
|
|
3517
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("th", { onClick: () => handleSort("action"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
|
|
3514
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("th", { onClick: () => handleSort("action"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
|
|
3518
3515
|
"Action ",
|
|
3519
3516
|
sortKey === "action" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
3520
3517
|
] }),
|
|
3521
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("th", { onClick: () => handleSort("section"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
|
|
3518
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("th", { onClick: () => handleSort("section"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
|
|
3522
3519
|
"Section Modules ",
|
|
3523
3520
|
sortKey === "section" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
3524
3521
|
] }),
|
|
3525
3522
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("th", { className: "fc:py-4 fc:px-5 fc:text-sm fc:bg-slate-50 fc:whitespace-nowrap", children: "IP Address" }),
|
|
3526
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("th", { onClick: () => handleSort("time"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
|
|
3523
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("th", { onClick: () => handleSort("time"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
|
|
3527
3524
|
"Timestamp ",
|
|
3528
3525
|
sortKey === "time" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
3529
3526
|
] })
|
|
3530
3527
|
] }) }),
|
|
3531
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-sm fc:text-slate-600", children: visibleData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("tr", { className: "hover:fc:bg-slate-50/50 fc:transition-colors", children: [
|
|
3528
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-sm fc:text-slate-600", children: visibleData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("tr", { className: "hover:fc:fc:bg-slate-50/50 fc:transition-colors", children: [
|
|
3532
3529
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("td", { className: "fc:py-4 fc:px-4 fc:text-center fc:font-medium fc:text-slate-400", children: startIndex + index + 1 }),
|
|
3533
3530
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("td", { className: "fc:py-4 fc:px-5 fc:font-bold fc:text-slate-900 fc:text-[14px] fc:whitespace-nowrap", children: item.logId }),
|
|
3534
3531
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-900 fc:font-semibold fc:whitespace-nowrap", children: item.user }),
|
|
3535
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("td", { className: "fc:py-4 fc:px-5 fc:whitespace-nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: `px-2.5 py-1 text-[11px] font-bold rounded-md tracking-wide
|
|
3532
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("td", { className: "fc:py-4 fc:px-5 fc:whitespace-nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: `fc:px-2.5 fc:py-1 fc:text-[11px] fc:font-bold fc:rounded-md fc:tracking-wide${getActionBadge(item.action)}`, children: item.action }) }),
|
|
3536
3533
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500 fc:font-medium fc:whitespace-nowrap", children: item.section }),
|
|
3537
3534
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500 fc:font-mono fc:text-xs fc:whitespace-nowrap", children: item.ip }),
|
|
3538
3535
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500 fc:font-medium fc:whitespace-nowrap", children: item.time })
|
|
3539
3536
|
] }, item.id)) })
|
|
3540
3537
|
] }) }),
|
|
3541
3538
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-end fc:gap-1 fc:text-[13px] fc:text-slate-700 fc:font-normal fc:mt-4 fc:bg-slate-50/50 fc:p-3 fc:rounded-xl fc:border fc:border-slate-100", children: [
|
|
3542
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), disabled: currentPage === 1, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:text-slate-900 fc:mr-2 disabled:fc:opacity-40", children: "\u2039 Prev" }),
|
|
3543
|
-
pageNumbers.map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `px-3 py-1 text-center rounded transition-all min-w-[28px]
|
|
3544
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, totalPages)), disabled: currentPage === totalPages, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:text-slate-900 fc:ml-2 disabled:fc:opacity-40", children: "Next \u203A" })
|
|
3539
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), disabled: currentPage === 1, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:mr-2 disabled:fc:fc:opacity-40", children: "\u2039 Prev" }),
|
|
3540
|
+
pageNumbers.map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `fc:px-3 fc:py-1 fc:text-center fc:rounded fc:transition-all fc:min-w-[28px]${currentPage === pageNumber ? "bg-blue-600 text-white font-medium shadow-sm" : "text-slate-600 hover:bg-slate-100"}`, children: pageNumber }, pageNumber)),
|
|
3541
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, totalPages)), disabled: currentPage === totalPages, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:ml-2 disabled:fc:fc:opacity-40", children: "Next \u203A" })
|
|
3545
3542
|
] })
|
|
3546
3543
|
] });
|
|
3547
3544
|
}
|
|
3548
3545
|
|
|
3549
|
-
//
|
|
3546
|
+
// src/components/AuditLog/AddAuditLogModal.jsx
|
|
3550
3547
|
var import_react30 = __toESM(require("react"));
|
|
3551
3548
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3552
3549
|
function AddAuditLogModal({
|
|
@@ -3562,25 +3559,25 @@ function AddAuditLogModal({
|
|
|
3562
3559
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h2", { className: "fc:text-lg fc:font-extrabold fc:text-slate-800", children: "Add Audit Entry" }),
|
|
3563
3560
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "fc:text-[11px] fc:text-slate-400 fc:mt-0.5", children: "Manually insert security audit trail incident" })
|
|
3564
3561
|
] }),
|
|
3565
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:text-slate-600 fc:p-1.5 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
|
|
3562
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:fc:text-slate-600 fc:p-1.5 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
|
|
3566
3563
|
] }),
|
|
3567
3564
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "fc:p-6 fc:space-y-5 fc:overflow-y-auto fc:bg-slate-50/30", children: [
|
|
3568
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-4", children: [
|
|
3565
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
|
|
3569
3566
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
|
|
3570
3567
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Log ID *" }),
|
|
3571
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", { type: "text", placeholder: "e.g. AUD-926", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:ring-2 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:outline-none fc:bg-white" }),
|
|
3568
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", { type: "text", placeholder: "e.g. AUD-926", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
|
|
3572
3569
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Unique tracking ledger key code" })
|
|
3573
3570
|
] }),
|
|
3574
3571
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
|
|
3575
3572
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "User Name *" }),
|
|
3576
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", { type: "text", placeholder: "e.g. Amit Sharma", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:ring-2 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:outline-none fc:bg-white" }),
|
|
3573
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", { type: "text", placeholder: "e.g. Amit Sharma", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
|
|
3577
3574
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Profile designation handling agent" })
|
|
3578
3575
|
] })
|
|
3579
3576
|
] }),
|
|
3580
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-4", children: [
|
|
3577
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
|
|
3581
3578
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
|
|
3582
3579
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Action Type *" }),
|
|
3583
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("select", { className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:border-blue-500 fc:outline-none", children: [
|
|
3580
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("select", { className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:fc:border-blue-500 fc:outline-none", children: [
|
|
3584
3581
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("option", { value: "CREATE", children: "CREATE" }),
|
|
3585
3582
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("option", { value: "UPDATE", children: "UPDATE" }),
|
|
3586
3583
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("option", { value: "DELETE", children: "DELETE" }),
|
|
@@ -3590,37 +3587,37 @@ function AddAuditLogModal({
|
|
|
3590
3587
|
] }),
|
|
3591
3588
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
|
|
3592
3589
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "IP Address *" }),
|
|
3593
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", { type: "text", placeholder: "e.g. 192.168.1.45", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:ring-2 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:outline-none fc:bg-white" }),
|
|
3590
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", { type: "text", placeholder: "e.g. 192.168.1.45", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
|
|
3594
3591
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Terminal remote system IP node" })
|
|
3595
3592
|
] })
|
|
3596
3593
|
] }),
|
|
3597
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-4", children: [
|
|
3594
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
|
|
3598
3595
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
|
|
3599
3596
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Section Module *" }),
|
|
3600
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", { type: "text", placeholder: "e.g. Document Config", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:ring-2 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:outline-none fc:bg-white" }),
|
|
3597
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", { type: "text", placeholder: "e.g. Document Config", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
|
|
3601
3598
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Target segment modified in configuration" })
|
|
3602
3599
|
] }),
|
|
3603
3600
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
|
|
3604
3601
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Timestamp *" }),
|
|
3605
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", { type: "datetime-local", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:placeholder-slate-400 fc:text-slate-700 focus:fc:border-blue-500 fc:outline-none" }),
|
|
3602
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", { type: "datetime-local", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:border-blue-500 fc:outline-none" }),
|
|
3606
3603
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Precise server localized execution record date" })
|
|
3607
3604
|
] })
|
|
3608
3605
|
] }),
|
|
3609
3606
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
|
|
3610
3607
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Meta Details / Changes Summary" }),
|
|
3611
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("textarea", { rows: 2, placeholder: "Enter technical trace logs or query payload metadata...", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 fc:resize-none focus:fc:border-blue-500 fc:outline-none" }),
|
|
3608
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("textarea", { rows: 2, placeholder: "Enter technical trace logs or query payload metadata...", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 fc:resize-none focus:fc:fc:border-blue-500 fc:outline-none" }),
|
|
3612
3609
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Log data state differential dumps if required" })
|
|
3613
3610
|
] })
|
|
3614
3611
|
] }),
|
|
3615
3612
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "fc:flex fc:justify-end fc:gap-3 fc:px-8 fc:py-4 fc:border-t fc:border-slate-100 fc:bg-white", children: [
|
|
3616
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { onClick: onClose, className: "fc:px-4 fc:py-2 fc:text-xs fc:font-bold fc:text-slate-500 hover:fc:text-slate-700 fc:transition-colors", children: "\u2715 Cancel" }),
|
|
3617
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { className: "fc:px-5 fc:py-2 fc:text-xs fc:font-bold fc:text-white fc:bg-blue-600 hover:fc:bg-blue-700 fc:rounded-xl fc:transition-all fc:shadow-sm", children: "Commit Entry" })
|
|
3613
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { onClick: onClose, className: "fc:px-4 fc:py-2 fc:text-xs fc:font-bold fc:text-slate-500 hover:fc:fc:text-slate-700 fc:transition-colors", children: "\u2715 Cancel" }),
|
|
3614
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { className: "fc:px-5 fc:py-2 fc:text-xs fc:font-bold fc:text-white fc:bg-blue-600 hover:fc:fc:bg-blue-700 fc:rounded-xl fc:transition-all fc:shadow-sm", children: "Commit Entry" })
|
|
3618
3615
|
] })
|
|
3619
3616
|
] })
|
|
3620
3617
|
] });
|
|
3621
3618
|
}
|
|
3622
3619
|
|
|
3623
|
-
//
|
|
3620
|
+
// src/components/AuditLog/AuditLogmain.jsx
|
|
3624
3621
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3625
3622
|
function AuditLogmain() {
|
|
3626
3623
|
const [modalOpen, setModalOpen] = (0, import_react31.useState)(false);
|
|
@@ -3632,7 +3629,7 @@ function AuditLogmain() {
|
|
|
3632
3629
|
setPageSize(Number(e.target.value));
|
|
3633
3630
|
setCurrentPage(1);
|
|
3634
3631
|
};
|
|
3635
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "fc:h-screen fc:overflow-hidden fc:bg-slate-50 fc:p-4 md:fc:p-6", children: [
|
|
3632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "fc:h-screen fc:overflow-hidden fc:bg-slate-50 fc:p-4 md:fc:fc:p-6", children: [
|
|
3636
3633
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CommonHeader, { title: "Audit Log", breadcrumbs: [{
|
|
3637
3634
|
label: "Dashboard",
|
|
3638
3635
|
href: "/dashboard"
|
|
@@ -3662,10 +3659,10 @@ function AuditLogmain() {
|
|
|
3662
3659
|
] });
|
|
3663
3660
|
}
|
|
3664
3661
|
|
|
3665
|
-
//
|
|
3662
|
+
// src/components/MovementHistory/MovementHistorymain.jsx
|
|
3666
3663
|
var import_react35 = __toESM(require("react"));
|
|
3667
3664
|
|
|
3668
|
-
//
|
|
3665
|
+
// src/components/MovementHistory/SearchBar.jsx
|
|
3669
3666
|
var import_react32 = __toESM(require("react"));
|
|
3670
3667
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
3671
3668
|
function SearchBar5({
|
|
@@ -3678,11 +3675,11 @@ function SearchBar5({
|
|
|
3678
3675
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("input", { type: "text", value: searchQuery, onChange: (e) => {
|
|
3679
3676
|
setSearchQuery(e.target.value);
|
|
3680
3677
|
setCurrentPage(1);
|
|
3681
|
-
}, placeholder: "Instance or Action...", className: "fc:w-full fc:pl-10 fc:pr-4 fc:py-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-sm fc:bg-slate-50/50 focus:fc:outline-none focus:fc:ring-4 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:text-slate-700 fc:placeholder-slate-400 fc:transition-all fc:shadow-sm" })
|
|
3678
|
+
}, placeholder: "Instance or Action...", className: "fc:w-full fc:pl-10 fc:pr-4 fc:py-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-sm fc:bg-slate-50/50 focus:fc:fc:outline-none focus:fc:fc:ring-4 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:text-slate-700 fc:placeholder-slate-400 fc:transition-all fc:shadow-sm" })
|
|
3682
3679
|
] });
|
|
3683
3680
|
}
|
|
3684
3681
|
|
|
3685
|
-
//
|
|
3682
|
+
// src/components/MovementHistory/MovementHistoryTable.jsx
|
|
3686
3683
|
var import_react33 = __toESM(require("react"));
|
|
3687
3684
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3688
3685
|
function MovementHistoryTable({
|
|
@@ -3938,50 +3935,50 @@ function MovementHistoryTable({
|
|
|
3938
3935
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "fc:w-full fc:overflow-x-auto fc:border fc:border-slate-200 fc:rounded-2xl fc:shadow-sm fc:max-h-[400px] fc:overflow-y-auto fc:custom-scrollbar", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("table", { className: "fc:w-full fc:text-left fc:border-collapse fc:bg-white fc:table-fixed fc:min-w-[900px]", children: [
|
|
3939
3936
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("thead", { className: "fc:sticky fc:top-0 fc:z-10 fc:bg-slate-50 fc:shadow-[0_1px_0_0_rgba(226,232,240,1)]", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("tr", { className: "fc:text-xs fc:font-bold fc:tracking-wider fc:text-slate-500", children: [
|
|
3940
3937
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("th", { className: "fc:py-4 fc:px-5 fc:w-20 fc:text-center fc:bg-slate-50", children: "S.No" }),
|
|
3941
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("movementHistoryId"), className: "fc:py-4 fc:px-5 fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50 fc:w-44", children: [
|
|
3938
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("movementHistoryId"), className: "fc:py-4 fc:px-5 fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:w-44", children: [
|
|
3942
3939
|
"Movement History ID ",
|
|
3943
3940
|
sortKey === "movementHistoryId" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
3944
3941
|
] }),
|
|
3945
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("name"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50 fc:w-56", children: [
|
|
3942
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("name"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:w-56", children: [
|
|
3946
3943
|
"Name ",
|
|
3947
3944
|
sortKey === "name" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
3948
3945
|
] }),
|
|
3949
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("fileInstanceId"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50", children: [
|
|
3946
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("fileInstanceId"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50", children: [
|
|
3950
3947
|
"File Instance ID ",
|
|
3951
3948
|
sortKey === "fileInstanceId" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
3952
3949
|
] }),
|
|
3953
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("fromStepId"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50", children: [
|
|
3950
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("fromStepId"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50", children: [
|
|
3954
3951
|
"FromStepID ",
|
|
3955
3952
|
sortKey === "fromStepId" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
3956
3953
|
] }),
|
|
3957
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("toStepId"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50", children: [
|
|
3954
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("toStepId"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50", children: [
|
|
3958
3955
|
"ToStepID ",
|
|
3959
3956
|
sortKey === "toStepId" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
3960
3957
|
] }),
|
|
3961
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("movedOn"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:text-slate-900 fc:bg-slate-50", children: [
|
|
3958
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("movedOn"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50", children: [
|
|
3962
3959
|
"ActionCode ",
|
|
3963
3960
|
sortKey === "movedOn" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
|
|
3964
3961
|
] })
|
|
3965
3962
|
] }) }),
|
|
3966
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-sm fc:text-slate-600", children: visibleData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("tr", { className: "hover:fc:bg-slate-50/50 fc:transition-colors", children: [
|
|
3963
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-sm fc:text-slate-600", children: visibleData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("tr", { className: "hover:fc:fc:bg-slate-50/50 fc:transition-colors", children: [
|
|
3967
3964
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center fc:font-medium fc:text-slate-400 fc:w-20", children: startIndex + index + 1 }),
|
|
3968
3965
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("td", { className: "fc:py-4 fc:px-5 fc:font-bold fc:text-slate-900 fc:text-[14px]", children: item.movementHistoryId }),
|
|
3969
3966
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-900 fc:font-medium fc:truncate", children: item.name }),
|
|
3970
3967
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500", children: item.fileInstanceId }),
|
|
3971
3968
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500", children: item.fromStepId }),
|
|
3972
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("td", { className: "fc:py-4 fc:px-5 fc:font-semibold fc:text-slate-700", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: `px-2.5 py-1 text-[11px] font-bold rounded-md
|
|
3969
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("td", { className: "fc:py-4 fc:px-5 fc:font-semibold fc:text-slate-700", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: `fc:px-2.5 fc:py-1 fc:text-[11px] fc:font-bold fc:rounded-md${getActionBadgeColor(item.toStepId)}`, children: item.toStepId }) }),
|
|
3973
3970
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500", children: item.movedOn })
|
|
3974
3971
|
] }, item.id)) })
|
|
3975
3972
|
] }) }),
|
|
3976
3973
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-end fc:gap-1 fc:text-[13px] fc:text-slate-700 fc:font-normal fc:mt-4 fc:bg-slate-50/50 fc:p-3 fc:rounded-xl fc:border fc:border-slate-100", children: [
|
|
3977
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), disabled: currentPage === 1, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:text-slate-900 fc:mr-2 disabled:fc:opacity-40", children: "\u2039 Prev" }),
|
|
3978
|
-
pageNumbers.map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `px-3 py-1 text-center rounded transition-all min-w-[28px]
|
|
3979
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, totalPages)), disabled: currentPage === totalPages, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:text-slate-900 fc:ml-2 disabled:fc:opacity-40", children: "Next \u203A" })
|
|
3974
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), disabled: currentPage === 1, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:mr-2 disabled:fc:fc:opacity-40", children: "\u2039 Prev" }),
|
|
3975
|
+
pageNumbers.map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `fc:px-3 fc:py-1 fc:text-center fc:rounded fc:transition-all fc:min-w-[28px]${currentPage === pageNumber ? "bg-blue-600 text-white font-medium shadow-sm" : "text-slate-600 hover:bg-slate-100"}`, children: pageNumber }, pageNumber)),
|
|
3976
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, totalPages)), disabled: currentPage === totalPages, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:ml-2 disabled:fc:fc:opacity-40", children: "Next \u203A" })
|
|
3980
3977
|
] })
|
|
3981
3978
|
] });
|
|
3982
3979
|
}
|
|
3983
3980
|
|
|
3984
|
-
//
|
|
3981
|
+
// src/components/MovementHistory/AddMovementHistoryModal.jsx
|
|
3985
3982
|
var import_react34 = __toESM(require("react"));
|
|
3986
3983
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3987
3984
|
function AddMovementHistoryModal({
|
|
@@ -3997,37 +3994,37 @@ function AddMovementHistoryModal({
|
|
|
3997
3994
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h2", { className: "fc:text-lg fc:font-extrabold fc:text-slate-800", children: "Add Movement History" }),
|
|
3998
3995
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "fc:text-[11px] fc:text-slate-400 fc:mt-0.5", children: "Create a new movement audit trail entry" })
|
|
3999
3996
|
] }),
|
|
4000
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:text-slate-600 fc:p-1.5 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
|
|
3997
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:fc:text-slate-600 fc:p-1.5 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
|
|
4001
3998
|
] }),
|
|
4002
3999
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fc:p-6 fc:space-y-5 fc:overflow-y-auto fc:bg-slate-50/30", children: [
|
|
4003
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-4", children: [
|
|
4000
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
|
|
4004
4001
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
|
|
4005
4002
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Movement History ID *" }),
|
|
4006
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "text", placeholder: "e.g. 21", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:ring-2 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:outline-none" }),
|
|
4003
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "text", placeholder: "e.g. 21", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none" }),
|
|
4007
4004
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Unique primary key for history record" })
|
|
4008
4005
|
] }),
|
|
4009
4006
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
|
|
4010
4007
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "File Instance ID *" }),
|
|
4011
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "text", placeholder: "e.g. 101", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:ring-2 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:outline-none" }),
|
|
4008
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "text", placeholder: "e.g. 101", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none" }),
|
|
4012
4009
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Associated unique document/transaction ID" })
|
|
4013
4010
|
] })
|
|
4014
4011
|
] }),
|
|
4015
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-4", children: [
|
|
4012
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
|
|
4016
4013
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
|
|
4017
4014
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "From Step ID *" }),
|
|
4018
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "text", placeholder: "e.g. 1", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:ring-2 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:outline-none" }),
|
|
4015
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "text", placeholder: "e.g. 1", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none" }),
|
|
4019
4016
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Starting step workflow node" })
|
|
4020
4017
|
] }),
|
|
4021
4018
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
|
|
4022
4019
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "To Step ID *" }),
|
|
4023
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "text", placeholder: "e.g. 2", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:ring-2 focus:fc:ring-blue-500/10 focus:fc:border-blue-500 fc:outline-none" }),
|
|
4020
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "text", placeholder: "e.g. 2", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none" }),
|
|
4024
4021
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Destination target step node" })
|
|
4025
4022
|
] })
|
|
4026
4023
|
] }),
|
|
4027
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:grid-cols-2 fc:gap-4", children: [
|
|
4024
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
|
|
4028
4025
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
|
|
4029
4026
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Action Code *" }),
|
|
4030
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("select", { className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:border-blue-500 fc:outline-none", children: [
|
|
4027
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("select", { className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:fc:border-blue-500 fc:outline-none", children: [
|
|
4031
4028
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "APPROVE", children: "APPROVE" }),
|
|
4032
4029
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "RETURN", children: "RETURN" }),
|
|
4033
4030
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "FORWARD", children: "FORWARD" }),
|
|
@@ -4037,25 +4034,25 @@ function AddMovementHistoryModal({
|
|
|
4037
4034
|
] }),
|
|
4038
4035
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
|
|
4039
4036
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Moved On *" }),
|
|
4040
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "date", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:border-blue-500 fc:outline-none" }),
|
|
4037
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "date", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:fc:border-blue-500 fc:outline-none" }),
|
|
4041
4038
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Movement record date timestamp" })
|
|
4042
4039
|
] })
|
|
4043
4040
|
] }),
|
|
4044
4041
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
|
|
4045
4042
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Movement Comments / Remarks" }),
|
|
4046
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("textarea", { rows: 2, placeholder: "Enter audit remarks or transaction notes...", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 fc:resize-none focus:fc:border-blue-500 fc:outline-none" }),
|
|
4043
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("textarea", { rows: 2, placeholder: "Enter audit remarks or transaction notes...", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 fc:resize-none focus:fc:fc:border-blue-500 fc:outline-none" }),
|
|
4047
4044
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Optional workflow remarks for documentation" })
|
|
4048
4045
|
] })
|
|
4049
4046
|
] }),
|
|
4050
4047
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fc:flex fc:justify-end fc:gap-3 fc:px-8 fc:py-4 fc:border-t fc:border-slate-100 fc:bg-white", children: [
|
|
4051
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("button", { onClick: onClose, className: "fc:px-4 fc:py-2 fc:text-xs fc:font-bold fc:text-slate-500 hover:fc:text-slate-700 fc:transition-colors", children: "\u2715 Cancel" }),
|
|
4052
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("button", { className: "fc:px-5 fc:py-2 fc:text-xs fc:font-bold fc:text-white fc:bg-blue-600 hover:fc:bg-blue-700 fc:rounded-xl fc:transition-all fc:shadow-sm", children: "Save Record" })
|
|
4048
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("button", { onClick: onClose, className: "fc:px-4 fc:py-2 fc:text-xs fc:font-bold fc:text-slate-500 hover:fc:fc:text-slate-700 fc:transition-colors", children: "\u2715 Cancel" }),
|
|
4049
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("button", { className: "fc:px-5 fc:py-2 fc:text-xs fc:font-bold fc:text-white fc:bg-blue-600 hover:fc:fc:bg-blue-700 fc:rounded-xl fc:transition-all fc:shadow-sm", children: "Save Record" })
|
|
4053
4050
|
] })
|
|
4054
4051
|
] })
|
|
4055
4052
|
] });
|
|
4056
4053
|
}
|
|
4057
4054
|
|
|
4058
|
-
//
|
|
4055
|
+
// src/components/MovementHistory/MovementHistorymain.jsx
|
|
4059
4056
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
4060
4057
|
function MovementHistorymain() {
|
|
4061
4058
|
const [modalOpen, setModalOpen] = (0, import_react35.useState)(false);
|
|
@@ -4067,7 +4064,7 @@ function MovementHistorymain() {
|
|
|
4067
4064
|
setPageSize(Number(e.target.value));
|
|
4068
4065
|
setCurrentPage(1);
|
|
4069
4066
|
};
|
|
4070
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "fc:h-screen fc:overflow-hidden fc:bg-slate-50 fc:p-4 md:fc:p-6", children: [
|
|
4067
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "fc:h-screen fc:overflow-hidden fc:bg-slate-50 fc:p-4 md:fc:fc:p-6", children: [
|
|
4071
4068
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CommonHeader, { title: "Movement History", breadcrumbs: [{
|
|
4072
4069
|
label: "Dashboard",
|
|
4073
4070
|
href: "/dashboard"
|
|
@@ -4097,7 +4094,7 @@ function MovementHistorymain() {
|
|
|
4097
4094
|
] });
|
|
4098
4095
|
}
|
|
4099
4096
|
|
|
4100
|
-
//
|
|
4097
|
+
// src/components/Sidebar.jsx
|
|
4101
4098
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
4102
4099
|
var workflowItems = [
|
|
4103
4100
|
// Menu Name // component or page-Use function name
|
|
@@ -4206,12 +4203,7 @@ function Sidebar({
|
|
|
4206
4203
|
const [activeComponent, setActiveComponent] = (0, import_react36.useState)("workflowType");
|
|
4207
4204
|
const renderMenuItemold = (item) => {
|
|
4208
4205
|
const Icon = item.icon;
|
|
4209
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("button", { type: "button", className: `
|
|
4210
|
-
flex h-[48px] w-full items-center gap-[8px]
|
|
4211
|
-
rounded-[9px] px-[8px]
|
|
4212
|
-
text-left transition-colors duration-150
|
|
4213
|
-
${router.pathname === item.path ? "bg-blue-50 text-blue-600" : "text-[#344261] hover:bg-[#F6F8FC]"}
|
|
4214
|
-
`, onClick: () => router.push(item.path), children: [
|
|
4206
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.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: [
|
|
4215
4207
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "fc:flex fc:h-[20px] fc:w-[20px] fc:shrink-0 fc:items-center fc:justify-center fc:rounded-[6px] fc:text-[#405170]", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Icon, { size: 17 }) }),
|
|
4216
4208
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "fc:flex-1 fc:whitespace-nowrap fc:text-[13px] fc:font-medium fc:leading-[20px]", children: item.name })
|
|
4217
4209
|
] }, item.name);
|
|
@@ -4229,11 +4221,7 @@ function Sidebar({
|
|
|
4229
4221
|
router.push(item.path);
|
|
4230
4222
|
}
|
|
4231
4223
|
};
|
|
4232
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("button", { onClick: handleClick, className: `
|
|
4233
|
-
flex h-[48px] w-full min-w-0 items-center gap-[6px]
|
|
4234
|
-
rounded-[9px] px-[6px]
|
|
4235
|
-
${item.component ? activeComponent === item.component ? "bg-blue-50 text-blue-600" : "text-[#344261] hover:bg-[#F6F8FC]" : router.pathname === item.path ? "bg-blue-50 text-blue-600" : "text-[#344261] hover:bg-[#F6F8FC]"}
|
|
4236
|
-
`, children: [
|
|
4224
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("button", { onClick: handleClick, className: `fc:flex fc:h-[48px] fc:w-full fc:min-w-0 fc:items-center fc:gap-[6px] fc:rounded-[9px] fc:px-[6px]${item.component ? activeComponent === item.component ? "bg-blue-50 text-blue-600" : "text-[#344261] hover:bg-[#F6F8FC]" : router.pathname === item.path ? "bg-blue-50 text-blue-600" : "text-[#344261] hover:bg-[#F6F8FC]"}`, children: [
|
|
4237
4225
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Icon, { size: 16 }),
|
|
4238
4226
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "fc:min-w-0 fc:flex-1 fc:whitespace-nowrap fc:text-[13px] fc:font-medium fc:leading-[20px]", children: item.name })
|
|
4239
4227
|
] }, item.name);
|
|
@@ -4262,7 +4250,7 @@ function Sidebar({
|
|
|
4262
4250
|
};
|
|
4263
4251
|
const renderDropdown = (title, open, setOpen, items, HeadingIcon) => {
|
|
4264
4252
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "fc:mb-2", children: [
|
|
4265
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("button", { type: "button", onClick: () => setOpen(!open), className: "fc:flex fc:h-[50px] fc:w-full fc:items-center fc:justify-between fc:rounded-[9px] fc:px-[17px] fc:text-left fc:text-[#344261] fc:transition-colors fc:duration-150 hover:fc:bg-[#F6F8FC]", children: [
|
|
4253
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("button", { type: "button", onClick: () => setOpen(!open), className: "fc:flex fc:h-[50px] fc:w-full fc:items-center fc:justify-between fc:rounded-[9px] fc:px-[17px] fc:text-left fc:text-[#344261] fc:transition-colors fc:duration-150 hover:fc:fc:bg-[#F6F8FC]", children: [
|
|
4266
4254
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-[8px]", children: [
|
|
4267
4255
|
HeadingIcon && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(HeadingIcon, { size: 18, className: "fc:text-[#405170] fc:shrink-0" }),
|
|
4268
4256
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "fc:text-[16px] fc:font-semibold", children: title })
|
|
@@ -4273,13 +4261,7 @@ function Sidebar({
|
|
|
4273
4261
|
] });
|
|
4274
4262
|
};
|
|
4275
4263
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
|
|
4276
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("aside", { className: `
|
|
4277
|
-
flex h-screen flex-col overflow-hidden
|
|
4278
|
-
border-r border-[#E5E9F1] bg-white
|
|
4279
|
-
font-sans text-[#273657]
|
|
4280
|
-
transition-all duration-300 ease-in-out
|
|
4281
|
-
${isOpen ? "w-[285px] min-w-[285px] translate-x-0 opacity-100" : "w-0 min-w-0 -translate-x-full opacity-0"}
|
|
4282
|
-
`, children: [
|
|
4264
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("aside", { className: `fc:flex fc:h-screen fc:flex-col fc:overflow-hidden fc:border-r fc:border-[#E5E9F1] fc:bg-white fc:font-sans fc:text-[#273657] fc:transition-all fc:duration-300 fc:ease-in-out${isOpen ? "w-[285px] min-w-[285px] translate-x-0 opacity-100" : "w-0 min-w-0 -translate-x-full opacity-0"}`, children: [
|
|
4283
4265
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("header", { className: "fc:flex fc:h-[84px] fc:items-center fc:justify-between fc:border-b fc:border-[#EDF0F5] fc:px-[14px]", children: [
|
|
4284
4266
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-2", children: [
|
|
4285
4267
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("svg", { width: "36", height: "42", viewBox: "0 0 48 56", fill: "none", children: [
|
|
@@ -4293,7 +4275,7 @@ function Sidebar({
|
|
|
4293
4275
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "fc:text-[12px] fc:text-[#344261]", children: "Workflow Engine" })
|
|
4294
4276
|
] })
|
|
4295
4277
|
] }),
|
|
4296
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.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:bg-gray-100", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react37.RiMenuLine, { size: 18 }) })
|
|
4278
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.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_runtime36.jsx)(import_react37.RiMenuLine, { size: 18 }) })
|
|
4297
4279
|
] }),
|
|
4298
4280
|
/* @__PURE__ */ (0, import_jsx_runtime36.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: [
|
|
4299
4281
|
/* @__PURE__ */ (0, import_jsx_runtime36.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" }),
|
|
@@ -4311,17 +4293,17 @@ function Sidebar({
|
|
|
4311
4293
|
renderDropdown("Communication", communicationOpen, setCommunicationOpen, communicationItems, import_react37.RiMessage2Line)
|
|
4312
4294
|
] })
|
|
4313
4295
|
] }),
|
|
4314
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "fc:shrink-0 fc:bg-white fc:px-[27px] fc:pb-[34px] fc:pt-[18px]", children: /* @__PURE__ */ (0, import_jsx_runtime36.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:bg-[#F7F8FC] fc:transition", children: [
|
|
4296
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "fc:shrink-0 fc:bg-white fc:px-[27px] fc:pb-[34px] fc:pt-[18px]", children: /* @__PURE__ */ (0, import_jsx_runtime36.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: [
|
|
4315
4297
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react37.RiSettings4Line, { size: 20 }),
|
|
4316
4298
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { children: "Settings" })
|
|
4317
4299
|
] }) })
|
|
4318
4300
|
] }),
|
|
4319
4301
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "fc:flex-1 fc:overflow-auto fc:bg-[#F5F7FB]", children: renderContent() }),
|
|
4320
|
-
!isOpen && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("button", { type: "button", onClick: onToggle, "aria-label": "Open sidebar", className: "fc:fixed fc:left-[20px] 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-[#F3F5F9]", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react37.RiMenuLine, { size: 18 }) })
|
|
4302
|
+
!isOpen && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("button", { type: "button", onClick: onToggle, "aria-label": "Open sidebar", className: "fc:fixed fc:left-[20px] 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:fc:bg-[#F3F5F9]", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react37.RiMenuLine, { size: 18 }) })
|
|
4321
4303
|
] });
|
|
4322
4304
|
}
|
|
4323
4305
|
|
|
4324
|
-
//
|
|
4306
|
+
// src/components/Layout.jsx
|
|
4325
4307
|
var import_react38 = require("react");
|
|
4326
4308
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
4327
4309
|
var Layout = ({
|
|
@@ -4334,6 +4316,5 @@ var Layout_default = Layout;
|
|
|
4334
4316
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4335
4317
|
0 && (module.exports = {
|
|
4336
4318
|
Layout,
|
|
4337
|
-
Sidebar
|
|
4338
|
-
WorkflowPage
|
|
4319
|
+
Sidebar
|
|
4339
4320
|
});
|