flowcore-fn 10.4.3 → 10.4.4
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 +6 -0
- package/dist/pkg-index.js +35 -27
- package/dist/pkg-index.mjs +35 -27
- package/package.json +1 -1
package/dist/pkg-index.css
CHANGED
|
@@ -1137,6 +1137,12 @@
|
|
|
1137
1137
|
.fc\:animate-spin {
|
|
1138
1138
|
animation: var(--fc-animate-spin);
|
|
1139
1139
|
}
|
|
1140
|
+
.fc\:cursor-default {
|
|
1141
|
+
cursor: default;
|
|
1142
|
+
}
|
|
1143
|
+
.fc\:cursor-help {
|
|
1144
|
+
cursor: help;
|
|
1145
|
+
}
|
|
1140
1146
|
.fc\:cursor-not-allowed {
|
|
1141
1147
|
cursor: not-allowed;
|
|
1142
1148
|
}
|
package/dist/pkg-index.js
CHANGED
|
@@ -25816,6 +25816,7 @@ function ReviewHeaderBar({
|
|
|
25816
25816
|
activeStepName,
|
|
25817
25817
|
assignedSteps = [],
|
|
25818
25818
|
onSelectWorkflowStepId,
|
|
25819
|
+
onSwitchAssignedStep,
|
|
25819
25820
|
refreshKey,
|
|
25820
25821
|
userName: propUserName,
|
|
25821
25822
|
workflowSteps = [],
|
|
@@ -26195,7 +26196,8 @@ function ReviewHeaderBar({
|
|
|
26195
26196
|
role: "menuitemradio",
|
|
26196
26197
|
"aria-checked": isSelected,
|
|
26197
26198
|
onClick: () => {
|
|
26198
|
-
|
|
26199
|
+
const handler = onSwitchAssignedStep != null ? onSwitchAssignedStep : onSelectWorkflowStepId;
|
|
26200
|
+
if (handler && stepId != null) handler(Number(stepId));
|
|
26199
26201
|
setRoleDropdownOpen(false);
|
|
26200
26202
|
},
|
|
26201
26203
|
className: `fc:flex fc:w-full fc:items-center fc:gap-3 fc:rounded-xl fc:border fc:px-3 fc:py-2.5 fc:text-left fc:transition-colors ${isSelected ? "fc:border-blue-200 fc:bg-blue-50/80" : "fc:border-transparent fc:bg-white hover:fc:border-slate-200 hover:fc:bg-slate-50"}`,
|
|
@@ -29853,6 +29855,7 @@ function ReviewApplication({
|
|
|
29853
29855
|
activeStepName,
|
|
29854
29856
|
assignedSteps,
|
|
29855
29857
|
onSelectWorkflowStepId: handleSelectWorkflowStepId,
|
|
29858
|
+
onSwitchAssignedStep: onSelectWorkflowStepId,
|
|
29856
29859
|
refreshKey,
|
|
29857
29860
|
userName,
|
|
29858
29861
|
workflowSteps,
|
|
@@ -30024,7 +30027,7 @@ var normalizeMyFile = (file) => {
|
|
|
30024
30027
|
};
|
|
30025
30028
|
function InboxMain({
|
|
30026
30029
|
initialTab = "myFiles",
|
|
30027
|
-
initialView = "
|
|
30030
|
+
initialView = "table",
|
|
30028
30031
|
allowedTabs,
|
|
30029
30032
|
title,
|
|
30030
30033
|
subtitle,
|
|
@@ -30040,7 +30043,7 @@ function InboxMain({
|
|
|
30040
30043
|
const [activeTab, setActiveTab] = (0, import_react125.useState)(
|
|
30041
30044
|
allowedTabs && allowedTabs.length > 0 && !allowedTabs.includes(initialTab) ? allowedTabs[0] : initialTab
|
|
30042
30045
|
);
|
|
30043
|
-
const [viewMode, setViewMode] = (0, import_react125.useState)(initialView);
|
|
30046
|
+
const [viewMode, setViewMode] = (0, import_react125.useState)(() => initialTab === "totalFiles" ? "table" : initialView);
|
|
30044
30047
|
const [reviewingFile, setReviewingFile] = (0, import_react125.useState)(null);
|
|
30045
30048
|
(0, import_react125.useEffect)(() => {
|
|
30046
30049
|
if (allowedTabs && allowedTabs.length > 0 && !allowedTabs.includes(activeTab)) {
|
|
@@ -30050,8 +30053,13 @@ function InboxMain({
|
|
|
30050
30053
|
}
|
|
30051
30054
|
}, [initialTab, allowedTabs]);
|
|
30052
30055
|
(0, import_react125.useEffect)(() => {
|
|
30053
|
-
if (
|
|
30054
|
-
|
|
30056
|
+
if (activeTab === "totalFiles") {
|
|
30057
|
+
setViewMode("table");
|
|
30058
|
+
setReviewingFile(null);
|
|
30059
|
+
} else if (initialView) {
|
|
30060
|
+
setViewMode(initialView);
|
|
30061
|
+
}
|
|
30062
|
+
}, [initialView, activeTab]);
|
|
30055
30063
|
const hookProfile = useUserProfile();
|
|
30056
30064
|
const userName = propUserName || extractName(propUser) || hookProfile.userName;
|
|
30057
30065
|
const userInitial = userName ? userName.trim().split(/\s+/).filter(Boolean).map((part) => part.charAt(0)).join("").slice(0, 2).toUpperCase() : hookProfile.initial || "U";
|
|
@@ -30362,6 +30370,8 @@ function InboxMain({
|
|
|
30362
30370
|
setCurrentPage(1);
|
|
30363
30371
|
setSearchQuery("");
|
|
30364
30372
|
setPriorityFilter("all");
|
|
30373
|
+
setViewMode("table");
|
|
30374
|
+
setReviewingFile(null);
|
|
30365
30375
|
};
|
|
30366
30376
|
const handleSort = (column) => {
|
|
30367
30377
|
if (sortColumn === column) {
|
|
@@ -30569,7 +30579,7 @@ function InboxMain({
|
|
|
30569
30579
|
[allowedTabs]
|
|
30570
30580
|
);
|
|
30571
30581
|
const showTabBar = visibleTabs.length > 1;
|
|
30572
|
-
if (viewMode === "review") {
|
|
30582
|
+
if (viewMode === "review" && activeTab !== "totalFiles") {
|
|
30573
30583
|
return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
30574
30584
|
ReviewApplication,
|
|
30575
30585
|
{
|
|
@@ -30578,10 +30588,16 @@ function InboxMain({
|
|
|
30578
30588
|
activeStepName: activeRoleDetails == null ? void 0 : activeRoleDetails.stepName,
|
|
30579
30589
|
assignedSteps,
|
|
30580
30590
|
onSelectWorkflowStepId: (id) => {
|
|
30591
|
+
setActiveWorkflowStepId(id);
|
|
30592
|
+
setCurrentPage(1);
|
|
30593
|
+
setViewMode("table");
|
|
30594
|
+
setReviewingFile(null);
|
|
30595
|
+
setRefreshKey((prev) => prev + 1);
|
|
30581
30596
|
},
|
|
30582
30597
|
onBackToInbox: () => {
|
|
30583
30598
|
setViewMode("table");
|
|
30584
30599
|
setReviewingFile(null);
|
|
30600
|
+
setRefreshKey((prev) => prev + 1);
|
|
30585
30601
|
},
|
|
30586
30602
|
onSubmitAction: handleActionSubmit,
|
|
30587
30603
|
refreshKey,
|
|
@@ -30685,6 +30701,7 @@ function InboxMain({
|
|
|
30685
30701
|
onClick: () => {
|
|
30686
30702
|
setActiveWorkflowStepId(step.workflowStepId);
|
|
30687
30703
|
setCurrentPage(1);
|
|
30704
|
+
setRefreshKey((prev) => prev + 1);
|
|
30688
30705
|
setRoleDropdownOpen(false);
|
|
30689
30706
|
},
|
|
30690
30707
|
className: `fc:flex fc:w-full fc:items-center fc:gap-3 fc:rounded-xl fc:border fc:px-3 fc:py-3 fc:text-left fc:transition-colors ${isSelected ? "fc:border-blue-200 fc:bg-blue-50/80" : "fc:border-transparent fc:bg-white hover:fc:border-slate-200 hover:fc:bg-slate-50"}`,
|
|
@@ -31180,15 +31197,11 @@ function InboxMain({
|
|
|
31180
31197
|
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("td", { className: "fc:sticky fc:left-12 fc:z-10 fc:bg-white group-hover:fc:bg-slate-50 fc:px-4 fc:py-3 fc:align-middle fc:whitespace-nowrap fc:border-r fc:border-slate-100 fc:shadow-[4px_0_6px_-2px_rgba(0,0,0,0.05)]", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
|
|
31181
31198
|
"div",
|
|
31182
31199
|
{
|
|
31183
|
-
onClick: () => {
|
|
31184
|
-
setReviewingFile(row);
|
|
31185
|
-
setViewMode("review");
|
|
31186
|
-
},
|
|
31187
31200
|
onMouseEnter: hasHiddenDynamicColumns ? (e) => handleFileMouseEnter(row, e) : void 0,
|
|
31188
31201
|
onMouseLeave: hasHiddenDynamicColumns ? handleFileMouseLeave : void 0,
|
|
31189
|
-
className: `fc:inline-flex fc:items-center fc:gap-1.5 fc:px-2.5 fc:py-1 fc:rounded-lg fc:
|
|
31202
|
+
className: `fc:inline-flex fc:items-center fc:gap-1.5 fc:px-2.5 fc:py-1 fc:rounded-lg fc:transition-all ${hasHiddenDynamicColumns ? "fc:bg-blue-50 hover:fc:bg-blue-100/90 fc:border fc:border-blue-200/90 hover:fc:border-blue-300 fc:text-blue-700 fc:cursor-help" : "fc:bg-blue-50 fc:border fc:border-blue-100/90 fc:text-blue-600 fc:cursor-default"}`,
|
|
31190
31203
|
children: [
|
|
31191
|
-
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: "fc:text-xs fc:font-extrabold
|
|
31204
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: "fc:text-xs fc:font-extrabold", children: row.fileNumber }),
|
|
31192
31205
|
hasHiddenDynamicColumns && /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("span", { className: "fc:inline-flex fc:items-center fc:gap-0.5 fc:px-1.5 fc:py-0.2 fc:rounded fc:bg-amber-100/90 fc:text-amber-800 fc:text-[9px] fc:font-black fc:border fc:border-amber-200/80", children: [
|
|
31193
31206
|
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_react126.RiEyeOffLine, { size: 10 }),
|
|
31194
31207
|
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { children: hiddenDynamicColumns.length })
|
|
@@ -31245,17 +31258,7 @@ function InboxMain({
|
|
|
31245
31258
|
overflowWrap: "anywhere"
|
|
31246
31259
|
},
|
|
31247
31260
|
className: "fc:whitespace-normal",
|
|
31248
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
31249
|
-
"p",
|
|
31250
|
-
{
|
|
31251
|
-
onClick: () => {
|
|
31252
|
-
setReviewingFile(row);
|
|
31253
|
-
setViewMode("review");
|
|
31254
|
-
},
|
|
31255
|
-
className: "fc:text-xs fc:font-semibold fc:text-slate-800 hover:fc:text-blue-600 fc:cursor-pointer fc:leading-relaxed",
|
|
31256
|
-
children: row.subject
|
|
31257
|
-
}
|
|
31258
|
-
)
|
|
31261
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: "fc:text-xs fc:font-semibold fc:text-slate-800 fc:leading-relaxed", children: row.subject })
|
|
31259
31262
|
}
|
|
31260
31263
|
)
|
|
31261
31264
|
}
|
|
@@ -32754,6 +32757,7 @@ function Sidebar({ isOpen, onToggle, childrens, sidebar, sidebarConfig, user, us
|
|
|
32754
32757
|
if (inboxItem) return inboxItem.component;
|
|
32755
32758
|
return all.length > 0 ? all[0].component : null;
|
|
32756
32759
|
});
|
|
32760
|
+
const [componentKey, setComponentKey] = (0, import_react137.useState)(0);
|
|
32757
32761
|
const [workflowOpen, setWorkflowOpen] = (0, import_react137.useState)(false);
|
|
32758
32762
|
const [permissionOpen, setPermissionOpen] = (0, import_react137.useState)(false);
|
|
32759
32763
|
const [hierarchyOpen, setHierarchyOpen] = (0, import_react137.useState)(false);
|
|
@@ -32786,7 +32790,11 @@ function Sidebar({ isOpen, onToggle, childrens, sidebar, sidebarConfig, user, us
|
|
|
32786
32790
|
const handleClick = () => {
|
|
32787
32791
|
if (item.component) {
|
|
32788
32792
|
router.push("/flowCore", void 0, { shallow: true });
|
|
32789
|
-
|
|
32793
|
+
if (activeComponent === item.component) {
|
|
32794
|
+
setComponentKey((k) => k + 1);
|
|
32795
|
+
} else {
|
|
32796
|
+
setActiveComponent(item.component);
|
|
32797
|
+
}
|
|
32790
32798
|
}
|
|
32791
32799
|
};
|
|
32792
32800
|
const isActive = activeComponent === item.component;
|
|
@@ -32830,13 +32838,13 @@ function Sidebar({ isOpen, onToggle, childrens, sidebar, sidebarConfig, user, us
|
|
|
32830
32838
|
case "InboxMain":
|
|
32831
32839
|
case "MyFilesMain":
|
|
32832
32840
|
case "InboxMain_myFiles":
|
|
32833
|
-
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(MyFilesMain, { userName, user });
|
|
32841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(MyFilesMain, { userName, user }, componentKey);
|
|
32834
32842
|
case "UnclaimedFilesMain":
|
|
32835
32843
|
case "InboxMain_unclaimed":
|
|
32836
|
-
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(UnclaimedFilesMain, { userName, user });
|
|
32844
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(UnclaimedFilesMain, { userName, user }, componentKey);
|
|
32837
32845
|
case "CompletedFilesMain":
|
|
32838
32846
|
case "InboxMain_completed":
|
|
32839
|
-
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(CompletedFilesMain, { userName, user });
|
|
32847
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(CompletedFilesMain, { userName, user }, componentKey);
|
|
32840
32848
|
case "TrackApplicationMain":
|
|
32841
32849
|
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(TrackApplicationMain, {});
|
|
32842
32850
|
case "module":
|
package/dist/pkg-index.mjs
CHANGED
|
@@ -25839,6 +25839,7 @@ function ReviewHeaderBar({
|
|
|
25839
25839
|
activeStepName,
|
|
25840
25840
|
assignedSteps = [],
|
|
25841
25841
|
onSelectWorkflowStepId,
|
|
25842
|
+
onSwitchAssignedStep,
|
|
25842
25843
|
refreshKey,
|
|
25843
25844
|
userName: propUserName,
|
|
25844
25845
|
workflowSteps = [],
|
|
@@ -26218,7 +26219,8 @@ function ReviewHeaderBar({
|
|
|
26218
26219
|
role: "menuitemradio",
|
|
26219
26220
|
"aria-checked": isSelected,
|
|
26220
26221
|
onClick: () => {
|
|
26221
|
-
|
|
26222
|
+
const handler = onSwitchAssignedStep != null ? onSwitchAssignedStep : onSelectWorkflowStepId;
|
|
26223
|
+
if (handler && stepId != null) handler(Number(stepId));
|
|
26222
26224
|
setRoleDropdownOpen(false);
|
|
26223
26225
|
},
|
|
26224
26226
|
className: `fc:flex fc:w-full fc:items-center fc:gap-3 fc:rounded-xl fc:border fc:px-3 fc:py-2.5 fc:text-left fc:transition-colors ${isSelected ? "fc:border-blue-200 fc:bg-blue-50/80" : "fc:border-transparent fc:bg-white hover:fc:border-slate-200 hover:fc:bg-slate-50"}`,
|
|
@@ -29907,6 +29909,7 @@ function ReviewApplication({
|
|
|
29907
29909
|
activeStepName,
|
|
29908
29910
|
assignedSteps,
|
|
29909
29911
|
onSelectWorkflowStepId: handleSelectWorkflowStepId,
|
|
29912
|
+
onSwitchAssignedStep: onSelectWorkflowStepId,
|
|
29910
29913
|
refreshKey,
|
|
29911
29914
|
userName,
|
|
29912
29915
|
workflowSteps,
|
|
@@ -30078,7 +30081,7 @@ var normalizeMyFile = (file) => {
|
|
|
30078
30081
|
};
|
|
30079
30082
|
function InboxMain({
|
|
30080
30083
|
initialTab = "myFiles",
|
|
30081
|
-
initialView = "
|
|
30084
|
+
initialView = "table",
|
|
30082
30085
|
allowedTabs,
|
|
30083
30086
|
title,
|
|
30084
30087
|
subtitle,
|
|
@@ -30094,7 +30097,7 @@ function InboxMain({
|
|
|
30094
30097
|
const [activeTab, setActiveTab] = useState82(
|
|
30095
30098
|
allowedTabs && allowedTabs.length > 0 && !allowedTabs.includes(initialTab) ? allowedTabs[0] : initialTab
|
|
30096
30099
|
);
|
|
30097
|
-
const [viewMode, setViewMode] = useState82(initialView);
|
|
30100
|
+
const [viewMode, setViewMode] = useState82(() => initialTab === "totalFiles" ? "table" : initialView);
|
|
30098
30101
|
const [reviewingFile, setReviewingFile] = useState82(null);
|
|
30099
30102
|
useEffect62(() => {
|
|
30100
30103
|
if (allowedTabs && allowedTabs.length > 0 && !allowedTabs.includes(activeTab)) {
|
|
@@ -30104,8 +30107,13 @@ function InboxMain({
|
|
|
30104
30107
|
}
|
|
30105
30108
|
}, [initialTab, allowedTabs]);
|
|
30106
30109
|
useEffect62(() => {
|
|
30107
|
-
if (
|
|
30108
|
-
|
|
30110
|
+
if (activeTab === "totalFiles") {
|
|
30111
|
+
setViewMode("table");
|
|
30112
|
+
setReviewingFile(null);
|
|
30113
|
+
} else if (initialView) {
|
|
30114
|
+
setViewMode(initialView);
|
|
30115
|
+
}
|
|
30116
|
+
}, [initialView, activeTab]);
|
|
30109
30117
|
const hookProfile = useUserProfile();
|
|
30110
30118
|
const userName = propUserName || extractName(propUser) || hookProfile.userName;
|
|
30111
30119
|
const userInitial = userName ? userName.trim().split(/\s+/).filter(Boolean).map((part) => part.charAt(0)).join("").slice(0, 2).toUpperCase() : hookProfile.initial || "U";
|
|
@@ -30416,6 +30424,8 @@ function InboxMain({
|
|
|
30416
30424
|
setCurrentPage(1);
|
|
30417
30425
|
setSearchQuery("");
|
|
30418
30426
|
setPriorityFilter("all");
|
|
30427
|
+
setViewMode("table");
|
|
30428
|
+
setReviewingFile(null);
|
|
30419
30429
|
};
|
|
30420
30430
|
const handleSort = (column) => {
|
|
30421
30431
|
if (sortColumn === column) {
|
|
@@ -30623,7 +30633,7 @@ function InboxMain({
|
|
|
30623
30633
|
[allowedTabs]
|
|
30624
30634
|
);
|
|
30625
30635
|
const showTabBar = visibleTabs.length > 1;
|
|
30626
|
-
if (viewMode === "review") {
|
|
30636
|
+
if (viewMode === "review" && activeTab !== "totalFiles") {
|
|
30627
30637
|
return /* @__PURE__ */ jsx110(
|
|
30628
30638
|
ReviewApplication,
|
|
30629
30639
|
{
|
|
@@ -30632,10 +30642,16 @@ function InboxMain({
|
|
|
30632
30642
|
activeStepName: activeRoleDetails == null ? void 0 : activeRoleDetails.stepName,
|
|
30633
30643
|
assignedSteps,
|
|
30634
30644
|
onSelectWorkflowStepId: (id) => {
|
|
30645
|
+
setActiveWorkflowStepId(id);
|
|
30646
|
+
setCurrentPage(1);
|
|
30647
|
+
setViewMode("table");
|
|
30648
|
+
setReviewingFile(null);
|
|
30649
|
+
setRefreshKey((prev) => prev + 1);
|
|
30635
30650
|
},
|
|
30636
30651
|
onBackToInbox: () => {
|
|
30637
30652
|
setViewMode("table");
|
|
30638
30653
|
setReviewingFile(null);
|
|
30654
|
+
setRefreshKey((prev) => prev + 1);
|
|
30639
30655
|
},
|
|
30640
30656
|
onSubmitAction: handleActionSubmit,
|
|
30641
30657
|
refreshKey,
|
|
@@ -30739,6 +30755,7 @@ function InboxMain({
|
|
|
30739
30755
|
onClick: () => {
|
|
30740
30756
|
setActiveWorkflowStepId(step.workflowStepId);
|
|
30741
30757
|
setCurrentPage(1);
|
|
30758
|
+
setRefreshKey((prev) => prev + 1);
|
|
30742
30759
|
setRoleDropdownOpen(false);
|
|
30743
30760
|
},
|
|
30744
30761
|
className: `fc:flex fc:w-full fc:items-center fc:gap-3 fc:rounded-xl fc:border fc:px-3 fc:py-3 fc:text-left fc:transition-colors ${isSelected ? "fc:border-blue-200 fc:bg-blue-50/80" : "fc:border-transparent fc:bg-white hover:fc:border-slate-200 hover:fc:bg-slate-50"}`,
|
|
@@ -31234,15 +31251,11 @@ function InboxMain({
|
|
|
31234
31251
|
/* @__PURE__ */ jsx110("td", { className: "fc:sticky fc:left-12 fc:z-10 fc:bg-white group-hover:fc:bg-slate-50 fc:px-4 fc:py-3 fc:align-middle fc:whitespace-nowrap fc:border-r fc:border-slate-100 fc:shadow-[4px_0_6px_-2px_rgba(0,0,0,0.05)]", children: /* @__PURE__ */ jsxs108(
|
|
31235
31252
|
"div",
|
|
31236
31253
|
{
|
|
31237
|
-
onClick: () => {
|
|
31238
|
-
setReviewingFile(row);
|
|
31239
|
-
setViewMode("review");
|
|
31240
|
-
},
|
|
31241
31254
|
onMouseEnter: hasHiddenDynamicColumns ? (e) => handleFileMouseEnter(row, e) : void 0,
|
|
31242
31255
|
onMouseLeave: hasHiddenDynamicColumns ? handleFileMouseLeave : void 0,
|
|
31243
|
-
className: `fc:inline-flex fc:items-center fc:gap-1.5 fc:px-2.5 fc:py-1 fc:rounded-lg fc:
|
|
31256
|
+
className: `fc:inline-flex fc:items-center fc:gap-1.5 fc:px-2.5 fc:py-1 fc:rounded-lg fc:transition-all ${hasHiddenDynamicColumns ? "fc:bg-blue-50 hover:fc:bg-blue-100/90 fc:border fc:border-blue-200/90 hover:fc:border-blue-300 fc:text-blue-700 fc:cursor-help" : "fc:bg-blue-50 fc:border fc:border-blue-100/90 fc:text-blue-600 fc:cursor-default"}`,
|
|
31244
31257
|
children: [
|
|
31245
|
-
/* @__PURE__ */ jsx110("span", { className: "fc:text-xs fc:font-extrabold
|
|
31258
|
+
/* @__PURE__ */ jsx110("span", { className: "fc:text-xs fc:font-extrabold", children: row.fileNumber }),
|
|
31246
31259
|
hasHiddenDynamicColumns && /* @__PURE__ */ jsxs108("span", { className: "fc:inline-flex fc:items-center fc:gap-0.5 fc:px-1.5 fc:py-0.2 fc:rounded fc:bg-amber-100/90 fc:text-amber-800 fc:text-[9px] fc:font-black fc:border fc:border-amber-200/80", children: [
|
|
31247
31260
|
/* @__PURE__ */ jsx110(RiEyeOffLine, { size: 10 }),
|
|
31248
31261
|
/* @__PURE__ */ jsx110("span", { children: hiddenDynamicColumns.length })
|
|
@@ -31299,17 +31312,7 @@ function InboxMain({
|
|
|
31299
31312
|
overflowWrap: "anywhere"
|
|
31300
31313
|
},
|
|
31301
31314
|
className: "fc:whitespace-normal",
|
|
31302
|
-
children: /* @__PURE__ */ jsx110(
|
|
31303
|
-
"p",
|
|
31304
|
-
{
|
|
31305
|
-
onClick: () => {
|
|
31306
|
-
setReviewingFile(row);
|
|
31307
|
-
setViewMode("review");
|
|
31308
|
-
},
|
|
31309
|
-
className: "fc:text-xs fc:font-semibold fc:text-slate-800 hover:fc:text-blue-600 fc:cursor-pointer fc:leading-relaxed",
|
|
31310
|
-
children: row.subject
|
|
31311
|
-
}
|
|
31312
|
-
)
|
|
31315
|
+
children: /* @__PURE__ */ jsx110("p", { className: "fc:text-xs fc:font-semibold fc:text-slate-800 fc:leading-relaxed", children: row.subject })
|
|
31313
31316
|
}
|
|
31314
31317
|
)
|
|
31315
31318
|
}
|
|
@@ -32837,6 +32840,7 @@ function Sidebar({ isOpen, onToggle, childrens, sidebar, sidebarConfig, user, us
|
|
|
32837
32840
|
if (inboxItem) return inboxItem.component;
|
|
32838
32841
|
return all.length > 0 ? all[0].component : null;
|
|
32839
32842
|
});
|
|
32843
|
+
const [componentKey, setComponentKey] = useState84(0);
|
|
32840
32844
|
const [workflowOpen, setWorkflowOpen] = useState84(false);
|
|
32841
32845
|
const [permissionOpen, setPermissionOpen] = useState84(false);
|
|
32842
32846
|
const [hierarchyOpen, setHierarchyOpen] = useState84(false);
|
|
@@ -32869,7 +32873,11 @@ function Sidebar({ isOpen, onToggle, childrens, sidebar, sidebarConfig, user, us
|
|
|
32869
32873
|
const handleClick = () => {
|
|
32870
32874
|
if (item.component) {
|
|
32871
32875
|
router.push("/flowCore", void 0, { shallow: true });
|
|
32872
|
-
|
|
32876
|
+
if (activeComponent === item.component) {
|
|
32877
|
+
setComponentKey((k) => k + 1);
|
|
32878
|
+
} else {
|
|
32879
|
+
setActiveComponent(item.component);
|
|
32880
|
+
}
|
|
32873
32881
|
}
|
|
32874
32882
|
};
|
|
32875
32883
|
const isActive = activeComponent === item.component;
|
|
@@ -32913,13 +32921,13 @@ function Sidebar({ isOpen, onToggle, childrens, sidebar, sidebarConfig, user, us
|
|
|
32913
32921
|
case "InboxMain":
|
|
32914
32922
|
case "MyFilesMain":
|
|
32915
32923
|
case "InboxMain_myFiles":
|
|
32916
|
-
return /* @__PURE__ */ jsx116(MyFilesMain, { userName, user });
|
|
32924
|
+
return /* @__PURE__ */ jsx116(MyFilesMain, { userName, user }, componentKey);
|
|
32917
32925
|
case "UnclaimedFilesMain":
|
|
32918
32926
|
case "InboxMain_unclaimed":
|
|
32919
|
-
return /* @__PURE__ */ jsx116(UnclaimedFilesMain, { userName, user });
|
|
32927
|
+
return /* @__PURE__ */ jsx116(UnclaimedFilesMain, { userName, user }, componentKey);
|
|
32920
32928
|
case "CompletedFilesMain":
|
|
32921
32929
|
case "InboxMain_completed":
|
|
32922
|
-
return /* @__PURE__ */ jsx116(CompletedFilesMain, { userName, user });
|
|
32930
|
+
return /* @__PURE__ */ jsx116(CompletedFilesMain, { userName, user }, componentKey);
|
|
32923
32931
|
case "TrackApplicationMain":
|
|
32924
32932
|
return /* @__PURE__ */ jsx116(TrackApplicationMain, {});
|
|
32925
32933
|
case "module":
|