flowcore-fn 2.9.9 → 3.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.js +6 -5
- package/dist/pkg-index.mjs +6 -5
- package/package.json +1 -1
package/dist/pkg-index.js
CHANGED
|
@@ -1908,8 +1908,8 @@ var workflowItems = [
|
|
|
1908
1908
|
{ name: "Workflow Transition", component: "workflowTransition", icon: import_react15.RiCornerDownRightLine }
|
|
1909
1909
|
];
|
|
1910
1910
|
var permissionItems = [
|
|
1911
|
-
{ name: "Task Permission", path: "/
|
|
1912
|
-
{ name: "Assignment Rule", path: "/
|
|
1911
|
+
{ name: "Task Permission", path: "/TaskPermissionPage", icon: import_react15.RiUserSettingsLine },
|
|
1912
|
+
{ name: "Assignment Rule", path: "/AssignmentRulePage", icon: import_react15.RiFileShieldLine }
|
|
1913
1913
|
];
|
|
1914
1914
|
var hierarchyItems = [
|
|
1915
1915
|
{ name: "Hierarchy Node", path: "/WorkflowType", icon: import_react15.RiNodeTree },
|
|
@@ -1935,7 +1935,7 @@ var trackingItems = [
|
|
|
1935
1935
|
{ name: "Audit Log", path: "/WorkflowType", icon: import_react15.RiShieldCheckLine },
|
|
1936
1936
|
{ name: "Movement History", path: "/WorkflowType", icon: import_react15.RiHistoryLine }
|
|
1937
1937
|
];
|
|
1938
|
-
function Sidebar({ isOpen, onToggle,
|
|
1938
|
+
function Sidebar({ isOpen, onToggle, childrens }) {
|
|
1939
1939
|
const router = (0, import_router.useRouter)();
|
|
1940
1940
|
const [workflowOpen, setWorkflowOpen] = (0, import_react14.useState)(false);
|
|
1941
1941
|
const [permissionOpen, setPermissionOpen] = (0, import_react14.useState)(false);
|
|
@@ -1977,8 +1977,9 @@ function Sidebar({ isOpen, onToggle, children }) {
|
|
|
1977
1977
|
const Icon = item.icon;
|
|
1978
1978
|
const handleClick = () => {
|
|
1979
1979
|
if (item.component) {
|
|
1980
|
+
router.push("/", void 0, { shallow: true });
|
|
1980
1981
|
setActiveComponent(item.component);
|
|
1981
|
-
} else {
|
|
1982
|
+
} else if (item.path) {
|
|
1982
1983
|
setActiveComponent(null);
|
|
1983
1984
|
router.push(item.path);
|
|
1984
1985
|
}
|
|
@@ -2011,7 +2012,7 @@ function Sidebar({ isOpen, onToggle, children }) {
|
|
|
2011
2012
|
case "workflowTransition":
|
|
2012
2013
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(WorkFlowTransition, {});
|
|
2013
2014
|
default:
|
|
2014
|
-
return
|
|
2015
|
+
return childrens;
|
|
2015
2016
|
}
|
|
2016
2017
|
};
|
|
2017
2018
|
const renderDropdown = (title, open, setOpen, items) => {
|
package/dist/pkg-index.mjs
CHANGED
|
@@ -1894,8 +1894,8 @@ var workflowItems = [
|
|
|
1894
1894
|
{ name: "Workflow Transition", component: "workflowTransition", icon: RiCornerDownRightLine }
|
|
1895
1895
|
];
|
|
1896
1896
|
var permissionItems = [
|
|
1897
|
-
{ name: "Task Permission", path: "/
|
|
1898
|
-
{ name: "Assignment Rule", path: "/
|
|
1897
|
+
{ name: "Task Permission", path: "/TaskPermissionPage", icon: RiUserSettingsLine },
|
|
1898
|
+
{ name: "Assignment Rule", path: "/AssignmentRulePage", icon: RiFileShieldLine }
|
|
1899
1899
|
];
|
|
1900
1900
|
var hierarchyItems = [
|
|
1901
1901
|
{ name: "Hierarchy Node", path: "/WorkflowType", icon: RiNodeTree },
|
|
@@ -1921,7 +1921,7 @@ var trackingItems = [
|
|
|
1921
1921
|
{ name: "Audit Log", path: "/WorkflowType", icon: RiShieldCheckLine },
|
|
1922
1922
|
{ name: "Movement History", path: "/WorkflowType", icon: RiHistoryLine }
|
|
1923
1923
|
];
|
|
1924
|
-
function Sidebar({ isOpen, onToggle,
|
|
1924
|
+
function Sidebar({ isOpen, onToggle, childrens }) {
|
|
1925
1925
|
const router = useRouter();
|
|
1926
1926
|
const [workflowOpen, setWorkflowOpen] = useState8(false);
|
|
1927
1927
|
const [permissionOpen, setPermissionOpen] = useState8(false);
|
|
@@ -1963,8 +1963,9 @@ function Sidebar({ isOpen, onToggle, children }) {
|
|
|
1963
1963
|
const Icon = item.icon;
|
|
1964
1964
|
const handleClick = () => {
|
|
1965
1965
|
if (item.component) {
|
|
1966
|
+
router.push("/", void 0, { shallow: true });
|
|
1966
1967
|
setActiveComponent(item.component);
|
|
1967
|
-
} else {
|
|
1968
|
+
} else if (item.path) {
|
|
1968
1969
|
setActiveComponent(null);
|
|
1969
1970
|
router.push(item.path);
|
|
1970
1971
|
}
|
|
@@ -1997,7 +1998,7 @@ function Sidebar({ isOpen, onToggle, children }) {
|
|
|
1997
1998
|
case "workflowTransition":
|
|
1998
1999
|
return /* @__PURE__ */ jsx15(WorkFlowTransition, {});
|
|
1999
2000
|
default:
|
|
2000
|
-
return
|
|
2001
|
+
return childrens;
|
|
2001
2002
|
}
|
|
2002
2003
|
};
|
|
2003
2004
|
const renderDropdown = (title, open, setOpen, items) => {
|