@owp/core 2.4.1 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/fonts/material-design-icons/MaterialIconsOutlined-Regular.woff2 +0 -0
- package/assets/fonts/material-design-icons/MaterialIconsOutlined.css +36 -0
- package/assets/fonts/pretendard/pretendard-subset.css +98 -0
- package/assets/fonts/pretendard/woff-subset/Pretendard-Black.subset.woff +0 -0
- package/assets/fonts/pretendard/woff-subset/Pretendard-Bold.subset.woff +0 -0
- package/assets/fonts/pretendard/woff-subset/Pretendard-ExtraBold.subset.woff +0 -0
- package/assets/fonts/pretendard/woff-subset/Pretendard-ExtraLight.subset.woff +0 -0
- package/assets/fonts/pretendard/woff-subset/Pretendard-Light.subset.woff +0 -0
- package/assets/fonts/pretendard/woff-subset/Pretendard-Medium.subset.woff +0 -0
- package/assets/fonts/pretendard/woff-subset/Pretendard-Regular.subset.woff +0 -0
- package/assets/fonts/pretendard/woff-subset/Pretendard-SemiBold.subset.woff +0 -0
- package/assets/fonts/pretendard/woff-subset/Pretendard-Thin.subset.woff +0 -0
- package/assets/fonts/pretendard/woff2-subset/Pretendard-Black.subset.woff2 +0 -0
- package/assets/fonts/pretendard/woff2-subset/Pretendard-Bold.subset.woff2 +0 -0
- package/assets/fonts/pretendard/woff2-subset/Pretendard-ExtraBold.subset.woff2 +0 -0
- package/assets/fonts/pretendard/woff2-subset/Pretendard-ExtraLight.subset.woff2 +0 -0
- package/assets/fonts/pretendard/woff2-subset/Pretendard-Light.subset.woff2 +0 -0
- package/assets/fonts/pretendard/woff2-subset/Pretendard-Medium.subset.woff2 +0 -0
- package/assets/fonts/pretendard/woff2-subset/Pretendard-Regular.subset.woff2 +0 -0
- package/assets/fonts/pretendard/woff2-subset/Pretendard-SemiBold.subset.woff2 +0 -0
- package/assets/fonts/pretendard/woff2-subset/Pretendard-Thin.subset.woff2 +0 -0
- package/assets/icons/feather.svg +1314 -0
- package/assets/icons/heroicons-outline.svg +1 -0
- package/assets/icons/heroicons-solid.svg +1 -0
- package/assets/icons/material-outline.svg +3586 -0
- package/assets/icons/material-solid.svg +3586 -0
- package/assets/icons/material-twotone.svg +3586 -0
- package/assets/icons/owp_sb.svg +35 -0
- package/dist/_virtual/_virtual_owp-exceljs-browser-source.js +5 -0
- package/dist/_virtual/_virtual_owp-exceljs-browser-source.js.map +1 -0
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/components/OwpMrtTable/OwpMrtTable.js +98 -104
- package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
- package/dist/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.js +10 -9
- package/dist/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.js.map +1 -1
- package/dist/components/OwpTable/OwpDataTable.js +171 -177
- package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
- package/dist/components/OwpTable/OwpTable.js +62 -68
- package/dist/components/OwpTable/OwpTable.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/OwpTreeGridNoDataOverlay.js +6 -5
- package/dist/components/OwpTreeGrid/internal/OwpTreeGridNoDataOverlay.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +66 -69
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/constants/treeGrid.js +36 -5
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/constants.js +25 -19
- package/dist/contexts/OwpAppProvider.js.map +1 -1
- package/dist/hooks/useLogoSrc.js +9 -9
- package/dist/hooks/useLogoSrc.js.map +1 -1
- package/dist/hooks/useNavigationActiveRouteRemount.js +38 -0
- package/dist/hooks/useNavigationActiveRouteRemount.js.map +1 -0
- package/dist/layout/Layout.js +37 -36
- package/dist/layout/Layout.js.map +1 -1
- package/dist/layout/components/navigation/vertical/types/NavVerticalCollapse.js +61 -51
- package/dist/layout/components/navigation/vertical/types/NavVerticalCollapse.js.map +1 -1
- package/dist/layout/components/navigation/vertical/types/NavVerticalGroup.js +35 -27
- package/dist/layout/components/navigation/vertical/types/NavVerticalGroup.js.map +1 -1
- package/dist/layout/components/navigation/vertical/types/NavVerticalItem.js +34 -27
- package/dist/layout/components/navigation/vertical/types/NavVerticalItem.js.map +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +1 -1
- package/dist/types/constants/treeGrid.d.ts +12 -0
- package/dist/types/contexts/OwpAppProvider.d.ts +1 -0
- package/dist/types/hooks/useNavigationActiveRouteRemount.d.ts +14 -0
- package/dist/types/utils/exceljsBrowser.d.ts +1 -3
- package/dist/utils/exceljsBrowser.js +64 -7
- package/dist/utils/exceljsBrowser.js.map +1 -1
- package/fixed-images/flags/EN.svg +11 -0
- package/fixed-images/flags/KR.svg +27 -0
- package/fixed-images/logo/owp/owp_sb.svg +35 -0
- package/package.json +5 -1
- package/treegrid/Compatible/Borders/Backgrounds.gif +0 -0
- package/treegrid/Compatible/Borders/BackgroundsRight.gif +0 -0
- package/treegrid/Compatible/Borders/Bool.gif +0 -0
- package/treegrid/Compatible/Borders/BoolSpace.gif +0 -0
- package/treegrid/Compatible/Borders/Button.gif +0 -0
- package/treegrid/Compatible/Borders/Dependencies.gif +0 -0
- package/treegrid/Compatible/Borders/FastPanel1.gif +0 -0
- package/treegrid/Compatible/Borders/FastPanel2.gif +0 -0
- package/treegrid/Compatible/Borders/Filter.gif +0 -0
- package/treegrid/Compatible/Borders/Gantt.css +1228 -0
- package/treegrid/Compatible/Borders/Gantt.gif +0 -0
- package/treegrid/Compatible/Borders/GanttLineA.gif +0 -0
- package/treegrid/Compatible/Borders/GanttLineB.gif +0 -0
- package/treegrid/Compatible/Borders/GanttLineC.gif +0 -0
- package/treegrid/Compatible/Borders/GanttLineD.gif +0 -0
- package/treegrid/Compatible/Borders/Grid.css +2762 -0
- package/treegrid/Compatible/Borders/HScroll.png +0 -0
- package/treegrid/Compatible/Borders/Menu.gif +0 -0
- package/treegrid/Compatible/Borders/Pager.gif +0 -0
- package/treegrid/Compatible/Borders/Pager.png +0 -0
- package/treegrid/Compatible/Borders/Panel.gif +0 -0
- package/treegrid/Compatible/Borders/Sort.gif +0 -0
- package/treegrid/Compatible/Borders/Toolbar.gif +0 -0
- package/treegrid/Compatible/Borders/Toolbar.png +0 -0
- package/treegrid/Compatible/Borders/ToolbarGantt.gif +0 -0
- package/treegrid/Compatible/Borders/ToolbarGantt.png +0 -0
- package/treegrid/Compatible/Borders/ToolbarSheet.gif +0 -0
- package/treegrid/Compatible/Borders/ToolbarSheet.png +0 -0
- package/treegrid/Compatible/Borders/ToolbarSheetWide.gif +0 -0
- package/treegrid/Compatible/Borders/ToolbarSheetWide.png +0 -0
- package/treegrid/Compatible/Borders/Tree.gif +0 -0
- package/treegrid/Compatible/Borders/TreeBottom.gif +0 -0
- package/treegrid/Compatible/Borders/TreeMiddle.gif +0 -0
- package/treegrid/Compatible/Borders/TreeNCollapse.gif +0 -0
- package/treegrid/Compatible/Borders/TreeNDrag0.gif +0 -0
- package/treegrid/Compatible/Borders/TreeNDrag1.gif +0 -0
- package/treegrid/Compatible/Borders/TreeNDrag2.gif +0 -0
- package/treegrid/Compatible/Borders/TreeNDrag3.gif +0 -0
- package/treegrid/Compatible/Borders/TreeNExpand.gif +0 -0
- package/treegrid/Compatible/Borders/TreeNWait.gif +0 -0
- package/treegrid/Compatible/Borders/TreeRev.gif +0 -0
- package/treegrid/Compatible/Borders/TreeRevBottom.gif +0 -0
- package/treegrid/Compatible/Borders/TreeRevMiddle.gif +0 -0
- package/treegrid/Compatible/Borders/VScroll.gif +0 -0
- package/treegrid/Compatible/Colors/BackgroundsBlue.gif +0 -0
- package/treegrid/Compatible/Colors/BackgroundsBottom.gif +0 -0
- package/treegrid/Compatible/Colors/BackgroundsGantt.gif +0 -0
- package/treegrid/Compatible/Colors/BackgroundsHeader.gif +0 -0
- package/treegrid/Compatible/Colors/BackgroundsMain.gif +0 -0
- package/treegrid/Compatible/Colors/BackgroundsMiddle.gif +0 -0
- package/treegrid/Compatible/Colors/BackgroundsTop.gif +0 -0
- package/treegrid/Compatible/Colors/BackgroundsYellow.gif +0 -0
- package/treegrid/Compatible/Colors/Bool.gif +0 -0
- package/treegrid/Compatible/Colors/Button.gif +0 -0
- package/treegrid/Compatible/Colors/Dependencies.gif +0 -0
- package/treegrid/Compatible/Colors/FastPanel1.gif +0 -0
- package/treegrid/Compatible/Colors/FastPanel2.gif +0 -0
- package/treegrid/Compatible/Colors/Filter.gif +0 -0
- package/treegrid/Compatible/Colors/Gantt.css +1228 -0
- package/treegrid/Compatible/Colors/Gantt.gif +0 -0
- package/treegrid/Compatible/Colors/GanttLineA.gif +0 -0
- package/treegrid/Compatible/Colors/GanttLineB.gif +0 -0
- package/treegrid/Compatible/Colors/GanttLineC.gif +0 -0
- package/treegrid/Compatible/Colors/GanttLineD.gif +0 -0
- package/treegrid/Compatible/Colors/Grid.css +2768 -0
- package/treegrid/Compatible/Colors/HScroll.png +0 -0
- package/treegrid/Compatible/Colors/Menu.gif +0 -0
- package/treegrid/Compatible/Colors/Pager.gif +0 -0
- package/treegrid/Compatible/Colors/Panel.gif +0 -0
- package/treegrid/Compatible/Colors/Sort.gif +0 -0
- package/treegrid/Compatible/Colors/Toolbar.gif +0 -0
- package/treegrid/Compatible/Colors/ToolbarGantt.gif +0 -0
- package/treegrid/Compatible/Colors/ToolbarSheet.gif +0 -0
- package/treegrid/Compatible/Colors/ToolbarSheetWide.gif +0 -0
- package/treegrid/Compatible/Colors/Tree.gif +0 -0
- package/treegrid/Compatible/Colors/TreeBottom.gif +0 -0
- package/treegrid/Compatible/Colors/TreeMiddle.gif +0 -0
- package/treegrid/Compatible/Colors/TreeNCollapse.gif +0 -0
- package/treegrid/Compatible/Colors/TreeNDrag0.gif +0 -0
- package/treegrid/Compatible/Colors/TreeNDrag1.gif +0 -0
- package/treegrid/Compatible/Colors/TreeNDrag2.gif +0 -0
- package/treegrid/Compatible/Colors/TreeNDrag3.gif +0 -0
- package/treegrid/Compatible/Colors/TreeNExpand.gif +0 -0
- package/treegrid/Compatible/Colors/TreeNWait.gif +0 -0
- package/treegrid/Compatible/Colors/TreeRev.gif +0 -0
- package/treegrid/Compatible/Colors/TreeRevBottom.gif +0 -0
- package/treegrid/Compatible/Colors/TreeRevMiddle.gif +0 -0
- package/treegrid/Compatible/Colors/VScroll.gif +0 -0
- package/treegrid/Compatible/ExtJS/Backgrounds.gif +0 -0
- package/treegrid/Compatible/ExtJS/BackgroundsFill.gif +0 -0
- package/treegrid/Compatible/ExtJS/Bool.gif +0 -0
- package/treegrid/Compatible/ExtJS/Button.gif +0 -0
- package/treegrid/Compatible/ExtJS/Dependencies.gif +0 -0
- package/treegrid/Compatible/ExtJS/FastPanel1.gif +0 -0
- package/treegrid/Compatible/ExtJS/FastPanel2.gif +0 -0
- package/treegrid/Compatible/ExtJS/Filter.gif +0 -0
- package/treegrid/Compatible/ExtJS/Gantt.css +1233 -0
- package/treegrid/Compatible/ExtJS/Gantt.gif +0 -0
- package/treegrid/Compatible/ExtJS/GanttLineA.gif +0 -0
- package/treegrid/Compatible/ExtJS/GanttLineB.gif +0 -0
- package/treegrid/Compatible/ExtJS/GanttLineC.gif +0 -0
- package/treegrid/Compatible/ExtJS/GanttLineD.gif +0 -0
- package/treegrid/Compatible/ExtJS/Grid.css +2764 -0
- package/treegrid/Compatible/ExtJS/HScroll.png +0 -0
- package/treegrid/Compatible/ExtJS/Menu.gif +0 -0
- package/treegrid/Compatible/ExtJS/Pager.gif +0 -0
- package/treegrid/Compatible/ExtJS/Panel.gif +0 -0
- package/treegrid/Compatible/ExtJS/Sort.gif +0 -0
- package/treegrid/Compatible/ExtJS/Toolbar.gif +0 -0
- package/treegrid/Compatible/ExtJS/ToolbarGantt.gif +0 -0
- package/treegrid/Compatible/ExtJS/ToolbarSheet.gif +0 -0
- package/treegrid/Compatible/ExtJS/ToolbarSheetWide.gif +0 -0
- package/treegrid/Compatible/ExtJS/Tree.gif +0 -0
- package/treegrid/Compatible/ExtJS/TreeBottom.gif +0 -0
- package/treegrid/Compatible/ExtJS/TreeMiddle.gif +0 -0
- package/treegrid/Compatible/ExtJS/TreeNCollapse.gif +0 -0
- package/treegrid/Compatible/ExtJS/TreeNDrag0.gif +0 -0
- package/treegrid/Compatible/ExtJS/TreeNDrag1.gif +0 -0
- package/treegrid/Compatible/ExtJS/TreeNDrag2.gif +0 -0
- package/treegrid/Compatible/ExtJS/TreeNDrag3.gif +0 -0
- package/treegrid/Compatible/ExtJS/TreeNExpand.gif +0 -0
- package/treegrid/Compatible/ExtJS/TreeNWait.gif +0 -0
- package/treegrid/Compatible/ExtJS/TreeRev.gif +0 -0
- package/treegrid/Compatible/ExtJS/TreeRevBottom.gif +0 -0
- package/treegrid/Compatible/ExtJS/TreeRevMiddle.gif +0 -0
- package/treegrid/Compatible/ExtJS/VScroll.gif +0 -0
- package/treegrid/Compatible/Gradient/Backgrounds.gif +0 -0
- package/treegrid/Compatible/Gradient/BackgroundsGantt.gif +0 -0
- package/treegrid/Compatible/Gradient/BackgroundsRight.gif +0 -0
- package/treegrid/Compatible/Gradient/Bool.gif +0 -0
- package/treegrid/Compatible/Gradient/BoolSpace.gif +0 -0
- package/treegrid/Compatible/Gradient/Button.gif +0 -0
- package/treegrid/Compatible/Gradient/Dependencies.gif +0 -0
- package/treegrid/Compatible/Gradient/FastPanel1.gif +0 -0
- package/treegrid/Compatible/Gradient/FastPanel2.gif +0 -0
- package/treegrid/Compatible/Gradient/Filter.gif +0 -0
- package/treegrid/Compatible/Gradient/Gantt.css +1234 -0
- package/treegrid/Compatible/Gradient/Gantt.gif +0 -0
- package/treegrid/Compatible/Gradient/GanttLineA.gif +0 -0
- package/treegrid/Compatible/Gradient/GanttLineB.gif +0 -0
- package/treegrid/Compatible/Gradient/GanttLineC.gif +0 -0
- package/treegrid/Compatible/Gradient/GanttLineD.gif +0 -0
- package/treegrid/Compatible/Gradient/Grid.css +2835 -0
- package/treegrid/Compatible/Gradient/HScroll.png +0 -0
- package/treegrid/Compatible/Gradient/Menu.gif +0 -0
- package/treegrid/Compatible/Gradient/Pager.gif +0 -0
- package/treegrid/Compatible/Gradient/Pager.png +0 -0
- package/treegrid/Compatible/Gradient/Panel.gif +0 -0
- package/treegrid/Compatible/Gradient/Sort.gif +0 -0
- package/treegrid/Compatible/Gradient/Toolbar.gif +0 -0
- package/treegrid/Compatible/Gradient/Toolbar.png +0 -0
- package/treegrid/Compatible/Gradient/ToolbarGantt.gif +0 -0
- package/treegrid/Compatible/Gradient/ToolbarGantt.png +0 -0
- package/treegrid/Compatible/Gradient/ToolbarSheet.gif +0 -0
- package/treegrid/Compatible/Gradient/ToolbarSheet.png +0 -0
- package/treegrid/Compatible/Gradient/ToolbarSheetWide.gif +0 -0
- package/treegrid/Compatible/Gradient/ToolbarSheetWide.png +0 -0
- package/treegrid/Compatible/Gradient/Tree.gif +0 -0
- package/treegrid/Compatible/Gradient/TreeBottom.gif +0 -0
- package/treegrid/Compatible/Gradient/TreeMiddle.gif +0 -0
- package/treegrid/Compatible/Gradient/TreeNCollapse.gif +0 -0
- package/treegrid/Compatible/Gradient/TreeNDrag0.gif +0 -0
- package/treegrid/Compatible/Gradient/TreeNDrag1.gif +0 -0
- package/treegrid/Compatible/Gradient/TreeNDrag2.gif +0 -0
- package/treegrid/Compatible/Gradient/TreeNDrag3.gif +0 -0
- package/treegrid/Compatible/Gradient/TreeNExpand.gif +0 -0
- package/treegrid/Compatible/Gradient/TreeNWait.gif +0 -0
- package/treegrid/Compatible/Gradient/TreeRev.gif +0 -0
- package/treegrid/Compatible/Gradient/TreeRevBottom.gif +0 -0
- package/treegrid/Compatible/Gradient/TreeRevMiddle.gif +0 -0
- package/treegrid/Compatible/Gradient/VScroll.gif +0 -0
- package/treegrid/Compatible/Info.txt +3 -0
- package/treegrid/Compatible/Light/Backgrounds.gif +0 -0
- package/treegrid/Compatible/Light/Bool.gif +0 -0
- package/treegrid/Compatible/Light/Button.gif +0 -0
- package/treegrid/Compatible/Light/Dependencies.gif +0 -0
- package/treegrid/Compatible/Light/FastPanel1.gif +0 -0
- package/treegrid/Compatible/Light/FastPanel2.gif +0 -0
- package/treegrid/Compatible/Light/Filter.gif +0 -0
- package/treegrid/Compatible/Light/Gantt.css +1230 -0
- package/treegrid/Compatible/Light/Gantt.gif +0 -0
- package/treegrid/Compatible/Light/GanttLineA.gif +0 -0
- package/treegrid/Compatible/Light/GanttLineB.gif +0 -0
- package/treegrid/Compatible/Light/GanttLineC.gif +0 -0
- package/treegrid/Compatible/Light/GanttLineD.gif +0 -0
- package/treegrid/Compatible/Light/Grid.css +2769 -0
- package/treegrid/Compatible/Light/HScroll.png +0 -0
- package/treegrid/Compatible/Light/Menu.gif +0 -0
- package/treegrid/Compatible/Light/Pager.gif +0 -0
- package/treegrid/Compatible/Light/Panel.gif +0 -0
- package/treegrid/Compatible/Light/Sort.gif +0 -0
- package/treegrid/Compatible/Light/Toolbar.gif +0 -0
- package/treegrid/Compatible/Light/ToolbarGantt.gif +0 -0
- package/treegrid/Compatible/Light/ToolbarSheet.gif +0 -0
- package/treegrid/Compatible/Light/ToolbarSheetWide.gif +0 -0
- package/treegrid/Compatible/Light/Tree.gif +0 -0
- package/treegrid/Compatible/Light/TreeBottom.gif +0 -0
- package/treegrid/Compatible/Light/TreeMiddle.gif +0 -0
- package/treegrid/Compatible/Light/TreeNCollapse.gif +0 -0
- package/treegrid/Compatible/Light/TreeNDrag0.gif +0 -0
- package/treegrid/Compatible/Light/TreeNDrag1.gif +0 -0
- package/treegrid/Compatible/Light/TreeNDrag2.gif +0 -0
- package/treegrid/Compatible/Light/TreeNDrag3.gif +0 -0
- package/treegrid/Compatible/Light/TreeNExpand.gif +0 -0
- package/treegrid/Compatible/Light/TreeNWait.gif +0 -0
- package/treegrid/Compatible/Light/TreeRev.gif +0 -0
- package/treegrid/Compatible/Light/TreeRevBottom.gif +0 -0
- package/treegrid/Compatible/Light/TreeRevMiddle.gif +0 -0
- package/treegrid/Compatible/Light/VScroll.gif +0 -0
- package/treegrid/Compatible/Office/Backgrounds.gif +0 -0
- package/treegrid/Compatible/Office/Bool.gif +0 -0
- package/treegrid/Compatible/Office/Button.gif +0 -0
- package/treegrid/Compatible/Office/Dependencies.gif +0 -0
- package/treegrid/Compatible/Office/FastPanel1.gif +0 -0
- package/treegrid/Compatible/Office/FastPanel2.gif +0 -0
- package/treegrid/Compatible/Office/Filter.gif +0 -0
- package/treegrid/Compatible/Office/Gantt.css +1228 -0
- package/treegrid/Compatible/Office/Gantt.gif +0 -0
- package/treegrid/Compatible/Office/GanttLineA.gif +0 -0
- package/treegrid/Compatible/Office/GanttLineB.gif +0 -0
- package/treegrid/Compatible/Office/GanttLineC.gif +0 -0
- package/treegrid/Compatible/Office/GanttLineD.gif +0 -0
- package/treegrid/Compatible/Office/Grid.css +2770 -0
- package/treegrid/Compatible/Office/HScroll.png +0 -0
- package/treegrid/Compatible/Office/Menu.gif +0 -0
- package/treegrid/Compatible/Office/Pager.gif +0 -0
- package/treegrid/Compatible/Office/Panel.gif +0 -0
- package/treegrid/Compatible/Office/Sort.gif +0 -0
- package/treegrid/Compatible/Office/Toolbar.gif +0 -0
- package/treegrid/Compatible/Office/ToolbarGantt.gif +0 -0
- package/treegrid/Compatible/Office/ToolbarSheet.gif +0 -0
- package/treegrid/Compatible/Office/ToolbarSheetWide.gif +0 -0
- package/treegrid/Compatible/Office/Tree.gif +0 -0
- package/treegrid/Compatible/Office/TreeBottom.gif +0 -0
- package/treegrid/Compatible/Office/TreeMiddle.gif +0 -0
- package/treegrid/Compatible/Office/TreeNCollapse.gif +0 -0
- package/treegrid/Compatible/Office/TreeNDrag0.gif +0 -0
- package/treegrid/Compatible/Office/TreeNDrag1.gif +0 -0
- package/treegrid/Compatible/Office/TreeNDrag2.gif +0 -0
- package/treegrid/Compatible/Office/TreeNDrag3.gif +0 -0
- package/treegrid/Compatible/Office/TreeNExpand.gif +0 -0
- package/treegrid/Compatible/Office/TreeNWait.gif +0 -0
- package/treegrid/Compatible/Office/TreeRev.gif +0 -0
- package/treegrid/Compatible/Office/TreeRevBottom.gif +0 -0
- package/treegrid/Compatible/Office/TreeRevMiddle.gif +0 -0
- package/treegrid/Compatible/Office/VScroll.gif +0 -0
- package/treegrid/Compatible/Plain/Backgrounds.gif +0 -0
- package/treegrid/Compatible/Plain/Bool.gif +0 -0
- package/treegrid/Compatible/Plain/Button.gif +0 -0
- package/treegrid/Compatible/Plain/Dependencies.gif +0 -0
- package/treegrid/Compatible/Plain/FastPanel1.gif +0 -0
- package/treegrid/Compatible/Plain/FastPanel2.gif +0 -0
- package/treegrid/Compatible/Plain/Filter.gif +0 -0
- package/treegrid/Compatible/Plain/Gantt.css +1233 -0
- package/treegrid/Compatible/Plain/Gantt.gif +0 -0
- package/treegrid/Compatible/Plain/GanttLineA.gif +0 -0
- package/treegrid/Compatible/Plain/GanttLineB.gif +0 -0
- package/treegrid/Compatible/Plain/GanttLineC.gif +0 -0
- package/treegrid/Compatible/Plain/GanttLineD.gif +0 -0
- package/treegrid/Compatible/Plain/Grid.css +2767 -0
- package/treegrid/Compatible/Plain/HScroll.png +0 -0
- package/treegrid/Compatible/Plain/Menu.gif +0 -0
- package/treegrid/Compatible/Plain/Pager.gif +0 -0
- package/treegrid/Compatible/Plain/Pager.png +0 -0
- package/treegrid/Compatible/Plain/Panel.gif +0 -0
- package/treegrid/Compatible/Plain/Sort.gif +0 -0
- package/treegrid/Compatible/Plain/Toolbar.gif +0 -0
- package/treegrid/Compatible/Plain/Toolbar.png +0 -0
- package/treegrid/Compatible/Plain/ToolbarGantt.gif +0 -0
- package/treegrid/Compatible/Plain/ToolbarGantt.png +0 -0
- package/treegrid/Compatible/Plain/ToolbarSheet.gif +0 -0
- package/treegrid/Compatible/Plain/ToolbarSheet.png +0 -0
- package/treegrid/Compatible/Plain/ToolbarSheetWide.gif +0 -0
- package/treegrid/Compatible/Plain/ToolbarSheetWide.png +0 -0
- package/treegrid/Compatible/Plain/Tree.gif +0 -0
- package/treegrid/Compatible/Plain/TreeBottom.gif +0 -0
- package/treegrid/Compatible/Plain/TreeMiddle.gif +0 -0
- package/treegrid/Compatible/Plain/TreeNCollapse.gif +0 -0
- package/treegrid/Compatible/Plain/TreeNDrag0.gif +0 -0
- package/treegrid/Compatible/Plain/TreeNDrag1.gif +0 -0
- package/treegrid/Compatible/Plain/TreeNDrag2.gif +0 -0
- package/treegrid/Compatible/Plain/TreeNDrag3.gif +0 -0
- package/treegrid/Compatible/Plain/TreeNExpand.gif +0 -0
- package/treegrid/Compatible/Plain/TreeNWait.gif +0 -0
- package/treegrid/Compatible/Plain/TreeRev.gif +0 -0
- package/treegrid/Compatible/Plain/TreeRevBottom.gif +0 -0
- package/treegrid/Compatible/Plain/TreeRevMiddle.gif +0 -0
- package/treegrid/Compatible/Plain/VScroll.gif +0 -0
- package/treegrid/Compatible/Query/Backgrounds.gif +0 -0
- package/treegrid/Compatible/Query/BackgroundsGantt.gif +0 -0
- package/treegrid/Compatible/Query/Bool.gif +0 -0
- package/treegrid/Compatible/Query/Button.gif +0 -0
- package/treegrid/Compatible/Query/Dependencies.gif +0 -0
- package/treegrid/Compatible/Query/FastPanel1.gif +0 -0
- package/treegrid/Compatible/Query/FastPanel2.gif +0 -0
- package/treegrid/Compatible/Query/Filter.gif +0 -0
- package/treegrid/Compatible/Query/Gantt.css +1234 -0
- package/treegrid/Compatible/Query/Gantt.gif +0 -0
- package/treegrid/Compatible/Query/GanttLineA.gif +0 -0
- package/treegrid/Compatible/Query/GanttLineB.gif +0 -0
- package/treegrid/Compatible/Query/GanttLineC.gif +0 -0
- package/treegrid/Compatible/Query/GanttLineD.gif +0 -0
- package/treegrid/Compatible/Query/Grid.css +2772 -0
- package/treegrid/Compatible/Query/HScroll.png +0 -0
- package/treegrid/Compatible/Query/Menu.gif +0 -0
- package/treegrid/Compatible/Query/Pager.gif +0 -0
- package/treegrid/Compatible/Query/Panel.gif +0 -0
- package/treegrid/Compatible/Query/Sort.gif +0 -0
- package/treegrid/Compatible/Query/Toolbar.gif +0 -0
- package/treegrid/Compatible/Query/ToolbarGantt.gif +0 -0
- package/treegrid/Compatible/Query/ToolbarSheet.gif +0 -0
- package/treegrid/Compatible/Query/ToolbarSheetWide.gif +0 -0
- package/treegrid/Compatible/Query/Tree.gif +0 -0
- package/treegrid/Compatible/Query/TreeBottom.gif +0 -0
- package/treegrid/Compatible/Query/TreeMiddle.gif +0 -0
- package/treegrid/Compatible/Query/TreeNCollapse.gif +0 -0
- package/treegrid/Compatible/Query/TreeNDrag0.gif +0 -0
- package/treegrid/Compatible/Query/TreeNDrag1.gif +0 -0
- package/treegrid/Compatible/Query/TreeNDrag2.gif +0 -0
- package/treegrid/Compatible/Query/TreeNDrag3.gif +0 -0
- package/treegrid/Compatible/Query/TreeNExpand.gif +0 -0
- package/treegrid/Compatible/Query/TreeNWait.gif +0 -0
- package/treegrid/Compatible/Query/TreeRev.gif +0 -0
- package/treegrid/Compatible/Query/TreeRevBottom.gif +0 -0
- package/treegrid/Compatible/Query/TreeRevMiddle.gif +0 -0
- package/treegrid/Compatible/Query/VScroll.gif +0 -0
- package/treegrid/Compatible/Relief/Backgrounds.gif +0 -0
- package/treegrid/Compatible/Relief/Bool.gif +0 -0
- package/treegrid/Compatible/Relief/Button.gif +0 -0
- package/treegrid/Compatible/Relief/Dependencies.gif +0 -0
- package/treegrid/Compatible/Relief/FastPanel1.gif +0 -0
- package/treegrid/Compatible/Relief/FastPanel2.gif +0 -0
- package/treegrid/Compatible/Relief/Filter.gif +0 -0
- package/treegrid/Compatible/Relief/Gantt.css +1228 -0
- package/treegrid/Compatible/Relief/Gantt.gif +0 -0
- package/treegrid/Compatible/Relief/GanttLineA.gif +0 -0
- package/treegrid/Compatible/Relief/GanttLineB.gif +0 -0
- package/treegrid/Compatible/Relief/GanttLineC.gif +0 -0
- package/treegrid/Compatible/Relief/GanttLineD.gif +0 -0
- package/treegrid/Compatible/Relief/Grid.css +2773 -0
- package/treegrid/Compatible/Relief/HScroll.png +0 -0
- package/treegrid/Compatible/Relief/Menu.gif +0 -0
- package/treegrid/Compatible/Relief/Pager.gif +0 -0
- package/treegrid/Compatible/Relief/Panel.gif +0 -0
- package/treegrid/Compatible/Relief/Sort.gif +0 -0
- package/treegrid/Compatible/Relief/Toolbar.gif +0 -0
- package/treegrid/Compatible/Relief/ToolbarGantt.gif +0 -0
- package/treegrid/Compatible/Relief/ToolbarSheet.gif +0 -0
- package/treegrid/Compatible/Relief/ToolbarSheetWide.gif +0 -0
- package/treegrid/Compatible/Relief/Tree.gif +0 -0
- package/treegrid/Compatible/Relief/TreeBottom.gif +0 -0
- package/treegrid/Compatible/Relief/TreeMiddle.gif +0 -0
- package/treegrid/Compatible/Relief/TreeNCollapse.gif +0 -0
- package/treegrid/Compatible/Relief/TreeNDrag0.gif +0 -0
- package/treegrid/Compatible/Relief/TreeNDrag1.gif +0 -0
- package/treegrid/Compatible/Relief/TreeNDrag2.gif +0 -0
- package/treegrid/Compatible/Relief/TreeNDrag3.gif +0 -0
- package/treegrid/Compatible/Relief/TreeNExpand.gif +0 -0
- package/treegrid/Compatible/Relief/TreeNWait.gif +0 -0
- package/treegrid/Compatible/Relief/TreeRev.gif +0 -0
- package/treegrid/Compatible/Relief/TreeRevBottom.gif +0 -0
- package/treegrid/Compatible/Relief/TreeRevMiddle.gif +0 -0
- package/treegrid/Compatible/Relief/VScroll.gif +0 -0
- package/treegrid/Compatible/Round/Backgrounds.gif +0 -0
- package/treegrid/Compatible/Round/Bool.gif +0 -0
- package/treegrid/Compatible/Round/Button.gif +0 -0
- package/treegrid/Compatible/Round/Dependencies.gif +0 -0
- package/treegrid/Compatible/Round/FastPanel1.gif +0 -0
- package/treegrid/Compatible/Round/FastPanel2.gif +0 -0
- package/treegrid/Compatible/Round/Filter.gif +0 -0
- package/treegrid/Compatible/Round/Gantt.css +1233 -0
- package/treegrid/Compatible/Round/Gantt.gif +0 -0
- package/treegrid/Compatible/Round/GanttLineA.gif +0 -0
- package/treegrid/Compatible/Round/GanttLineB.gif +0 -0
- package/treegrid/Compatible/Round/GanttLineC.gif +0 -0
- package/treegrid/Compatible/Round/GanttLineD.gif +0 -0
- package/treegrid/Compatible/Round/Grid.css +2767 -0
- package/treegrid/Compatible/Round/HScroll.png +0 -0
- package/treegrid/Compatible/Round/Menu.gif +0 -0
- package/treegrid/Compatible/Round/Pager.gif +0 -0
- package/treegrid/Compatible/Round/Panel.gif +0 -0
- package/treegrid/Compatible/Round/Sort.gif +0 -0
- package/treegrid/Compatible/Round/Toolbar.gif +0 -0
- package/treegrid/Compatible/Round/ToolbarGantt.gif +0 -0
- package/treegrid/Compatible/Round/ToolbarSheet.gif +0 -0
- package/treegrid/Compatible/Round/ToolbarSheetWide.gif +0 -0
- package/treegrid/Compatible/Round/Tree.gif +0 -0
- package/treegrid/Compatible/Round/TreeBottom.gif +0 -0
- package/treegrid/Compatible/Round/TreeMiddle.gif +0 -0
- package/treegrid/Compatible/Round/TreeNCollapse.gif +0 -0
- package/treegrid/Compatible/Round/TreeNDrag0.gif +0 -0
- package/treegrid/Compatible/Round/TreeNDrag1.gif +0 -0
- package/treegrid/Compatible/Round/TreeNDrag2.gif +0 -0
- package/treegrid/Compatible/Round/TreeNDrag3.gif +0 -0
- package/treegrid/Compatible/Round/TreeNExpand.gif +0 -0
- package/treegrid/Compatible/Round/TreeNWait.gif +0 -0
- package/treegrid/Compatible/Round/TreeRev.gif +0 -0
- package/treegrid/Compatible/Round/TreeRevBottom.gif +0 -0
- package/treegrid/Compatible/Round/TreeRevMiddle.gif +0 -0
- package/treegrid/Compatible/Round/VScroll.gif +0 -0
- package/treegrid/Compatible/Sharp/ArrowDropDown.png +0 -0
- package/treegrid/Compatible/Sharp/Bool.gif +0 -0
- package/treegrid/Compatible/Sharp/BoolSpace.gif +0 -0
- package/treegrid/Compatible/Sharp/Button.gif +0 -0
- package/treegrid/Compatible/Sharp/ButtonSpace.gif +0 -0
- package/treegrid/Compatible/Sharp/Dependencies.gif +0 -0
- package/treegrid/Compatible/Sharp/FastPanel1.gif +0 -0
- package/treegrid/Compatible/Sharp/FastPanel2.gif +0 -0
- package/treegrid/Compatible/Sharp/Filter.gif +0 -0
- package/treegrid/Compatible/Sharp/Gantt.css +1232 -0
- package/treegrid/Compatible/Sharp/Gantt.gif +0 -0
- package/treegrid/Compatible/Sharp/GanttLineA.gif +0 -0
- package/treegrid/Compatible/Sharp/GanttLineB.gif +0 -0
- package/treegrid/Compatible/Sharp/GanttLineC.gif +0 -0
- package/treegrid/Compatible/Sharp/GanttLineD.gif +0 -0
- package/treegrid/Compatible/Sharp/Grid.css +2773 -0
- package/treegrid/Compatible/Sharp/HScroll.png +0 -0
- package/treegrid/Compatible/Sharp/Menu.gif +0 -0
- package/treegrid/Compatible/Sharp/Pager.png +0 -0
- package/treegrid/Compatible/Sharp/Panel.gif +0 -0
- package/treegrid/Compatible/Sharp/Roboto-Regular.ttf +0 -0
- package/treegrid/Compatible/Sharp/Sort.gif +0 -0
- package/treegrid/Compatible/Sharp/Toolbar.png +0 -0
- package/treegrid/Compatible/Sharp/ToolbarGantt.png +0 -0
- package/treegrid/Compatible/Sharp/ToolbarSheet.png +0 -0
- package/treegrid/Compatible/Sharp/ToolbarSheetWide.png +0 -0
- package/treegrid/Compatible/Sharp/Tree.gif +0 -0
- package/treegrid/Compatible/Sharp/TreeBottom.gif +0 -0
- package/treegrid/Compatible/Sharp/TreeMiddle.gif +0 -0
- package/treegrid/Compatible/Sharp/TreeNCollapse.gif +0 -0
- package/treegrid/Compatible/Sharp/TreeNDrag0.gif +0 -0
- package/treegrid/Compatible/Sharp/TreeNDrag1.gif +0 -0
- package/treegrid/Compatible/Sharp/TreeNDrag2.gif +0 -0
- package/treegrid/Compatible/Sharp/TreeNDrag3.gif +0 -0
- package/treegrid/Compatible/Sharp/TreeNExpand.gif +0 -0
- package/treegrid/Compatible/Sharp/TreeNWait.gif +0 -0
- package/treegrid/Compatible/Sharp/VScroll.gif +0 -0
- package/treegrid/Defaults.xml +728 -0
- package/treegrid/Ding.wav +0 -0
- package/treegrid/Drag.cur +0 -0
- package/treegrid/External/jszip.license.txt +10 -0
- package/treegrid/External/jszip.min.js +15 -0
- package/treegrid/External/jszip.min.sync.js +14 -0
- package/treegrid/GridE.js +45 -0
- package/treegrid/GridEOnDemand.js +53 -0
- package/treegrid/Help.html +536 -0
- package/treegrid/NoDrag.cur +0 -0
- package/treegrid/Styles/BlackGantt.css +887 -0
- package/treegrid/Styles/BlackGrid.css +1940 -0
- package/treegrid/Styles/Info.txt +6 -0
- package/treegrid/Styles/MaterialGantt.css +845 -0
- package/treegrid/Styles/MaterialGrid.css +1978 -0
- package/treegrid/Styles/Roboto-Light.ttf +0 -0
- package/treegrid/Styles/Roboto-Regular.ttf +0 -0
- package/treegrid/Styles/StandardGantt.css +891 -0
- package/treegrid/Styles/StandardGrid.css +1923 -0
- package/treegrid/Styles/TurqGantt.css +880 -0
- package/treegrid/Styles/TurqGrid.css +1980 -0
- package/treegrid/Styles/WhiteGantt.css +1021 -0
- package/treegrid/Styles/WhiteGrid.css +1911 -0
- package/treegrid/TextEN.xml +1785 -0
- package/treegrid/TextKR.xml +176 -0
- package/treegrid-global.d.ts +3294 -4904
- package/vite/owpCoreAssetsPlugin.cjs +117 -0
- package/vite/owpCoreAssetsPlugin.mjs +13 -0
- package/vite/owpCoreFixedImagesPlugin.cjs +31 -0
- package/vite/owpCoreFixedImagesPlugin.mjs +10 -0
- package/vite/staticAssetPlugin.cjs +179 -0
- package/vite/treeGridAssetsPlugin.cjs +82 -0
- package/vite/treeGridAssetsPlugin.mjs +11 -0
package/dist/layout/Layout.js
CHANGED
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
var
|
|
2
|
-
var r = (
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import b from "
|
|
11
|
-
import L from "./components/layouts/
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
var u = Object.defineProperty;
|
|
2
|
+
var r = (i, a) => u(i, "name", { value: a, configurable: !0 });
|
|
3
|
+
import { jsxs as e, jsx as t } from "../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
|
|
4
|
+
import { useNavigationActiveRouteRemountKey as p } from "../hooks/useNavigationActiveRouteRemount.js";
|
|
5
|
+
import { useGetCurrentLayoutConfig as d } from "../hooks/useOwpSettings.js";
|
|
6
|
+
import { LinearProgress as x } from "@mui/material";
|
|
7
|
+
import { styled as y } from "@mui/material/styles";
|
|
8
|
+
import { useIsFetching as h, useIsMutating as g } from "@tanstack/react-query";
|
|
9
|
+
import { memo as v } from "react";
|
|
10
|
+
import { Outlet as b } from "react-router-dom";
|
|
11
|
+
import L from "./components/layouts/FooterLayout.js";
|
|
12
|
+
import w from "./components/layouts/LeftSideLayout.js";
|
|
13
|
+
import n from "./components/layouts/NavbarWrapperLayout.js";
|
|
14
|
+
import N from "./components/toolbar/ToolbarLayout.js";
|
|
15
|
+
import { OwpSuspense as R } from "../components/OwpSuspense/OwpSuspense.js";
|
|
16
|
+
const W = y("div")(({ config: i }) => ({
|
|
17
|
+
...i.mode === "boxed" && {
|
|
17
18
|
clipPath: "inset(0)",
|
|
18
|
-
maxWidth:
|
|
19
|
+
maxWidth: i.containerWidth,
|
|
19
20
|
marginLeft: "auto",
|
|
20
21
|
marginRight: "auto",
|
|
21
22
|
boxShadow: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"
|
|
22
23
|
},
|
|
23
|
-
...
|
|
24
|
+
...i.mode === "container" && {
|
|
24
25
|
"& .container": {
|
|
25
|
-
maxWidth:
|
|
26
|
+
maxWidth: i.containerWidth,
|
|
26
27
|
width: "100%",
|
|
27
28
|
marginLeft: "auto",
|
|
28
29
|
marginRight: "auto"
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
}));
|
|
32
|
-
function
|
|
33
|
-
const { children:
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
o.leftSidePanel.display && /* @__PURE__ */ t(
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
o.navbar.display && o.navbar.position === "left" && /* @__PURE__ */ t(
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
o.toolbar.display && /* @__PURE__ */ t(
|
|
40
|
-
!!(
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */ t(
|
|
43
|
-
|
|
33
|
+
function C(i) {
|
|
34
|
+
const { children: a, layoutConfig: l } = i, m = d(), s = p(), o = l ?? m, f = h(), c = g();
|
|
35
|
+
return /* @__PURE__ */ e(W, { id: "owp-layout", config: o, className: "flex w-full", children: [
|
|
36
|
+
o.leftSidePanel.display && /* @__PURE__ */ t(w, {}),
|
|
37
|
+
/* @__PURE__ */ e("div", { className: "flex min-w-0 flex-auto", children: [
|
|
38
|
+
o.navbar.display && o.navbar.position === "left" && /* @__PURE__ */ t(n, {}),
|
|
39
|
+
/* @__PURE__ */ e("main", { id: "owp-main", className: "relative z-10 flex min-h-full min-w-0 flex-auto flex-col", children: [
|
|
40
|
+
o.toolbar.display && /* @__PURE__ */ t(N, { className: o.toolbar.style === "fixed" ? "sticky top-0" : "" }),
|
|
41
|
+
!!(f || c) && /* @__PURE__ */ t("div", { className: "fixed top-0 left-0 z-30 w-full", children: /* @__PURE__ */ t(x, { color: "secondary" }) }),
|
|
42
|
+
/* @__PURE__ */ e("div", { className: "relative z-10 flex min-h-0 flex-auto flex-col", children: [
|
|
43
|
+
/* @__PURE__ */ t(R, { children: /* @__PURE__ */ t(b, {}, s) }),
|
|
44
|
+
a
|
|
44
45
|
] }),
|
|
45
|
-
o.footer.display && /* @__PURE__ */ t(
|
|
46
|
+
o.footer.display && /* @__PURE__ */ t(L, { className: o.footer.style === "fixed" ? "sticky bottom-0" : "" })
|
|
46
47
|
] }),
|
|
47
|
-
o.navbar.display && o.navbar.position === "right" && /* @__PURE__ */ t(
|
|
48
|
+
o.navbar.display && o.navbar.position === "right" && /* @__PURE__ */ t(n, {})
|
|
48
49
|
] })
|
|
49
50
|
] });
|
|
50
51
|
}
|
|
51
|
-
r(
|
|
52
|
-
const
|
|
52
|
+
r(C, "Layout");
|
|
53
|
+
const $ = v(C);
|
|
53
54
|
export {
|
|
54
|
-
|
|
55
|
+
$ as default
|
|
55
56
|
};
|
|
56
57
|
//# sourceMappingURL=Layout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.js","sources":["../../src/layout/Layout.tsx"],"sourcesContent":["import { LayoutConfigDefaultsType } from '@/configs/layoutConfig';\nimport { OwpSuspense } from '@/components/OwpSuspense';\nimport { useGetCurrentLayoutConfig } from '@/hooks/useOwpSettings';\nimport { LinearProgress } from '@mui/material';\nimport { styled } from '@mui/material/styles';\nimport { useIsFetching, useIsMutating } from '@tanstack/react-query';\nimport { memo, ReactNode } from 'react';\nimport { Outlet } from 'react-router-dom';\nimport FooterLayout from './components/layouts/FooterLayout';\nimport LeftSideLayout from './components/layouts/LeftSideLayout';\nimport NavbarWrapperLayout from './components/layouts/NavbarWrapperLayout';\nimport ToolbarLayout from './components/toolbar/ToolbarLayout';\n\nconst Root = styled('div')(({ config }: { config: LayoutConfigDefaultsType }) => ({\n ...(config.mode === 'boxed' && {\n clipPath: 'inset(0)',\n maxWidth: config.containerWidth,\n marginLeft: 'auto',\n marginRight: 'auto',\n boxShadow: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',\n }),\n ...(config.mode === 'container' && {\n '& .container': {\n maxWidth: config.containerWidth,\n width: '100%',\n marginLeft: 'auto',\n marginRight: 'auto',\n },\n }),\n}));\n\ntype LayoutProps = {\n layoutConfig?: LayoutConfigDefaultsType;\n children?: ReactNode;\n};\n\n/**\n * The layout.\n */\nfunction Layout(props: LayoutProps) {\n const { children, layoutConfig } = props;\n const currentLayoutConfig = useGetCurrentLayoutConfig() as LayoutConfigDefaultsType;\n const config = layoutConfig ?? currentLayoutConfig;\n const isFetching = useIsFetching();\n const isMutating = useIsMutating();\n\n return (\n <Root id=\"owp-layout\" config={config} className=\"flex w-full\">\n {config.leftSidePanel.display && <LeftSideLayout />}\n\n <div className=\"flex min-w-0 flex-auto\">\n {config.navbar.display && config.navbar.position === 'left' && <NavbarWrapperLayout />}\n\n <main id=\"owp-main\" className=\"relative z-10 flex min-h-full min-w-0 flex-auto flex-col\">\n {config.toolbar.display && (\n <ToolbarLayout className={config.toolbar.style === 'fixed' ? 'sticky top-0' : ''} />\n )}\n {Boolean(isFetching || isMutating) && (\n <div className=\"fixed top-0 left-0 z-30 w-full\">\n <LinearProgress color=\"secondary\" />\n </div>\n )}\n\n <div className=\"relative z-10 flex min-h-0 flex-auto flex-col\">\n <OwpSuspense>\n <Outlet />\n </OwpSuspense>\n {children}\n </div>\n\n {config.footer.display && (\n <FooterLayout className={config.footer.style === 'fixed' ? 'sticky bottom-0' : ''} />\n )}\n </main>\n\n {config.navbar.display && config.navbar.position === 'right' && <NavbarWrapperLayout />}\n </div>\n </Root>\n );\n}\n\nexport default memo(Layout);\n"],"names":["Root","styled","config","Layout","props","children","layoutConfig","currentLayoutConfig","useGetCurrentLayoutConfig","isFetching","useIsFetching","isMutating","useIsMutating","jsx","LeftSideLayout","jsxs","NavbarWrapperLayout","ToolbarLayout","LinearProgress","OwpSuspense","Outlet","FooterLayout","__name","Layout$1","memo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Layout.js","sources":["../../src/layout/Layout.tsx"],"sourcesContent":["import { LayoutConfigDefaultsType } from '@/configs/layoutConfig';\nimport { OwpSuspense } from '@/components/OwpSuspense';\nimport { useNavigationActiveRouteRemountKey } from '@/hooks/useNavigationActiveRouteRemount';\nimport { useGetCurrentLayoutConfig } from '@/hooks/useOwpSettings';\nimport { LinearProgress } from '@mui/material';\nimport { styled } from '@mui/material/styles';\nimport { useIsFetching, useIsMutating } from '@tanstack/react-query';\nimport { memo, ReactNode } from 'react';\nimport { Outlet } from 'react-router-dom';\nimport FooterLayout from './components/layouts/FooterLayout';\nimport LeftSideLayout from './components/layouts/LeftSideLayout';\nimport NavbarWrapperLayout from './components/layouts/NavbarWrapperLayout';\nimport ToolbarLayout from './components/toolbar/ToolbarLayout';\n\nconst Root = styled('div')(({ config }: { config: LayoutConfigDefaultsType }) => ({\n ...(config.mode === 'boxed' && {\n clipPath: 'inset(0)',\n maxWidth: config.containerWidth,\n marginLeft: 'auto',\n marginRight: 'auto',\n boxShadow: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',\n }),\n ...(config.mode === 'container' && {\n '& .container': {\n maxWidth: config.containerWidth,\n width: '100%',\n marginLeft: 'auto',\n marginRight: 'auto',\n },\n }),\n}));\n\ntype LayoutProps = {\n layoutConfig?: LayoutConfigDefaultsType;\n children?: ReactNode;\n};\n\n/**\n * The layout.\n */\nfunction Layout(props: LayoutProps) {\n const { children, layoutConfig } = props;\n const currentLayoutConfig = useGetCurrentLayoutConfig() as LayoutConfigDefaultsType;\n const navigationActiveRouteRemountKey = useNavigationActiveRouteRemountKey();\n const config = layoutConfig ?? currentLayoutConfig;\n const isFetching = useIsFetching();\n const isMutating = useIsMutating();\n\n return (\n <Root id=\"owp-layout\" config={config} className=\"flex w-full\">\n {config.leftSidePanel.display && <LeftSideLayout />}\n\n <div className=\"flex min-w-0 flex-auto\">\n {config.navbar.display && config.navbar.position === 'left' && <NavbarWrapperLayout />}\n\n <main id=\"owp-main\" className=\"relative z-10 flex min-h-full min-w-0 flex-auto flex-col\">\n {config.toolbar.display && (\n <ToolbarLayout className={config.toolbar.style === 'fixed' ? 'sticky top-0' : ''} />\n )}\n {Boolean(isFetching || isMutating) && (\n <div className=\"fixed top-0 left-0 z-30 w-full\">\n <LinearProgress color=\"secondary\" />\n </div>\n )}\n\n <div className=\"relative z-10 flex min-h-0 flex-auto flex-col\">\n <OwpSuspense>\n <Outlet key={navigationActiveRouteRemountKey} />\n </OwpSuspense>\n {children}\n </div>\n\n {config.footer.display && (\n <FooterLayout className={config.footer.style === 'fixed' ? 'sticky bottom-0' : ''} />\n )}\n </main>\n\n {config.navbar.display && config.navbar.position === 'right' && <NavbarWrapperLayout />}\n </div>\n </Root>\n );\n}\n\nexport default memo(Layout);\n"],"names":["Root","styled","config","Layout","props","children","layoutConfig","currentLayoutConfig","useGetCurrentLayoutConfig","navigationActiveRouteRemountKey","useNavigationActiveRouteRemountKey","isFetching","useIsFetching","isMutating","useIsMutating","jsx","LeftSideLayout","jsxs","NavbarWrapperLayout","ToolbarLayout","LinearProgress","OwpSuspense","Outlet","FooterLayout","__name","Layout$1","memo"],"mappings":";;;;;;;;;;;;;;;AAcA,MAAMA,IAAOC,EAAO,KAAK,EAAE,CAAC,EAAE,QAAAC,SAAoD;AAAA,EAChF,GAAIA,EAAO,SAAS,WAAW;AAAA,IAC7B,UAAU;AAAA,IACV,UAAUA,EAAO;AAAA,IACjB,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,WAAW;AAAA,EAAA;AAAA,EAEb,GAAIA,EAAO,SAAS,eAAe;AAAA,IACjC,gBAAgB;AAAA,MACd,UAAUA,EAAO;AAAA,MACjB,OAAO;AAAA,MACP,YAAY;AAAA,MACZ,aAAa;AAAA,IAAA;AAAA,EACf;AAEJ,EAAE;AAUF,SAASC,EAAOC,GAAoB;AAClC,QAAM,EAAE,UAAAC,GAAU,cAAAC,EAAA,IAAiBF,GAC7BG,IAAsBC,EAAA,GACtBC,IAAkCC,EAAA,GAClCR,IAASI,KAAgBC,GACzBI,IAAaC,EAAA,GACbC,IAAaC,EAAA;AAEnB,2BACGd,GAAA,EAAK,IAAG,cAAa,QAAAE,GAAgB,WAAU,eAC7C,UAAA;AAAA,IAAAA,EAAO,cAAc,WAAW,gBAAAa,EAACC,GAAA,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var R = Object.defineProperty;
|
|
2
|
+
var s = (n, t) => R(n, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { jsxs as g, jsx as o } from "../../../../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
|
|
4
|
+
import { useNavigationActiveRouteRemount as L } from "../../../../../hooks/useNavigationActiveRouteRemount.js";
|
|
5
|
+
import O from "../../../../../components/OwpNavLinkAdapter/OwpNavLinkAdapter.js";
|
|
6
|
+
import { ListItemButton as z } from "@mui/material";
|
|
7
|
+
import B from "@mui/material/Collapse";
|
|
8
|
+
import H from "@mui/material/IconButton";
|
|
9
|
+
import S from "@mui/material/List";
|
|
10
|
+
import k from "@mui/material/ListItemText";
|
|
11
|
+
import { styled as P, alpha as A } from "@mui/material/styles";
|
|
12
|
+
import { clsx as u } from "../../../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
13
|
+
import { useState as C, useEffect as D } from "react";
|
|
14
|
+
import { NavBadge as W } from "../../NavBadge.js";
|
|
15
|
+
import { NavItem as j } from "../../NavItem.js";
|
|
16
|
+
import { OwpSvgIcon as x } from "../../../../../components/OwpSvgIcon/OwpSvgIcon.js";
|
|
17
|
+
const M = P(S)(({ theme: n, ...t }) => ({
|
|
17
18
|
padding: 0,
|
|
18
19
|
"&.open": {},
|
|
19
20
|
"& > .owp-list-item": {
|
|
@@ -25,9 +26,9 @@ const P = B(R)(({ theme: o, ...t }) => ({
|
|
|
25
26
|
paddingLeft: t.itempadding > 80 ? 80 : t.itempadding,
|
|
26
27
|
paddingTop: 10,
|
|
27
28
|
paddingBottom: 10,
|
|
28
|
-
color:
|
|
29
|
+
color: A(n.palette.text.primary, 0.7),
|
|
29
30
|
"&:hover": {
|
|
30
|
-
color:
|
|
31
|
+
color: n.palette.text.primary
|
|
31
32
|
},
|
|
32
33
|
"& > .owp-list-item-icon": {
|
|
33
34
|
marginRight: 16,
|
|
@@ -42,32 +43,41 @@ const P = B(R)(({ theme: o, ...t }) => ({
|
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
}));
|
|
45
|
-
function
|
|
46
|
-
const { item: t, nestedLevel:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
function _(n) {
|
|
47
|
+
const { item: t, nestedLevel: l = 0, onItemClick: i, checkPermission: d, openedCollapseIds: r } = n, { remountRoute: v, shouldRemountRouteOnClick: w } = L(
|
|
48
|
+
t.url || void 0
|
|
49
|
+
), a = (r == null ? void 0 : r.has(t.id)) ?? !1, [y, m] = C(a), p = a || y, N = l > 0 ? 38 + l * 16 : 16;
|
|
50
|
+
D(() => {
|
|
51
|
+
a && m(!0);
|
|
52
|
+
}, [a]);
|
|
53
|
+
const h = t.url ? O : "li";
|
|
54
|
+
let f = {};
|
|
55
|
+
if (typeof h != "string" && (f = {
|
|
53
56
|
disabled: t.disabled,
|
|
54
57
|
to: t.url,
|
|
55
58
|
end: t.end,
|
|
56
59
|
role: "button"
|
|
57
|
-
}),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
}), d && !(t != null && t.hasPermission))
|
|
61
|
+
return null;
|
|
62
|
+
const b = /* @__PURE__ */ s((e) => {
|
|
63
|
+
if (w) {
|
|
64
|
+
e.preventDefault(), v(), i == null || i(t);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
m((c) => !c), i == null || i(t);
|
|
68
|
+
}, "handleClick");
|
|
69
|
+
return /* @__PURE__ */ g(M, { className: u(p && "open"), itempadding: N, sx: t.sx, children: [
|
|
70
|
+
/* @__PURE__ */ g(
|
|
71
|
+
z,
|
|
60
72
|
{
|
|
61
|
-
component:
|
|
73
|
+
component: h,
|
|
62
74
|
className: "owp-list-item",
|
|
63
|
-
onClick:
|
|
64
|
-
|
|
65
|
-
}, "onClick"),
|
|
66
|
-
...d,
|
|
75
|
+
onClick: b,
|
|
76
|
+
...f,
|
|
67
77
|
children: [
|
|
68
|
-
t.icon && /* @__PURE__ */
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
|
|
78
|
+
t.icon && /* @__PURE__ */ o(x, { className: u("owp-list-item-icon shrink-0", t.iconClass), color: "action", children: t.icon }),
|
|
79
|
+
/* @__PURE__ */ o(
|
|
80
|
+
k,
|
|
71
81
|
{
|
|
72
82
|
className: "owp-list-item-text",
|
|
73
83
|
primary: t.title,
|
|
@@ -94,37 +104,37 @@ function Q(o) {
|
|
|
94
104
|
}
|
|
95
105
|
}
|
|
96
106
|
),
|
|
97
|
-
t.badge && /* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
|
|
107
|
+
t.badge && /* @__PURE__ */ o(W, { className: "mx-4", badge: t.badge }),
|
|
108
|
+
/* @__PURE__ */ o(
|
|
109
|
+
H,
|
|
100
110
|
{
|
|
101
111
|
disableRipple: !0,
|
|
102
112
|
className: "-mx-12 h-20 w-20 p-0 hover:bg-transparent focus:bg-transparent",
|
|
103
|
-
onClick: /* @__PURE__ */
|
|
104
|
-
e.preventDefault(), e.stopPropagation(),
|
|
113
|
+
onClick: /* @__PURE__ */ s((e) => {
|
|
114
|
+
e.preventDefault(), e.stopPropagation(), m((c) => !c);
|
|
105
115
|
}, "onClick"),
|
|
106
|
-
children: /* @__PURE__ */
|
|
116
|
+
children: /* @__PURE__ */ o(x, { size: 13, className: "arrow-icon", color: "inherit", children: p ? "heroicons-solid:chevron-down" : "heroicons-solid:chevron-right" })
|
|
107
117
|
}
|
|
108
118
|
)
|
|
109
119
|
]
|
|
110
120
|
}
|
|
111
121
|
),
|
|
112
|
-
t.children && /* @__PURE__ */
|
|
113
|
-
|
|
122
|
+
t.children && /* @__PURE__ */ o(B, { in: p, className: "collapse-children", children: t.children.map((e) => /* @__PURE__ */ o(
|
|
123
|
+
j,
|
|
114
124
|
{
|
|
115
125
|
type: `vertical-${e.type}`,
|
|
116
126
|
item: e,
|
|
117
|
-
nestedLevel:
|
|
118
|
-
onItemClick:
|
|
119
|
-
checkPermission:
|
|
120
|
-
openedCollapseIds:
|
|
127
|
+
nestedLevel: l + 1,
|
|
128
|
+
onItemClick: i,
|
|
129
|
+
checkPermission: d,
|
|
130
|
+
openedCollapseIds: r
|
|
121
131
|
},
|
|
122
132
|
e.id
|
|
123
133
|
)) })
|
|
124
134
|
] });
|
|
125
135
|
}
|
|
126
|
-
|
|
136
|
+
s(_, "NavVerticalCollapse");
|
|
127
137
|
export {
|
|
128
|
-
|
|
138
|
+
_ as NavVerticalCollapse
|
|
129
139
|
};
|
|
130
140
|
//# sourceMappingURL=NavVerticalCollapse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavVerticalCollapse.js","sources":["../../../../../../src/layout/components/navigation/vertical/types/NavVerticalCollapse.tsx"],"sourcesContent":["import NavLinkAdapter from '@/components/OwpNavLinkAdapter';\nimport { OwpSvgIcon as SvgIcon } from '@/components/OwpSvgIcon';\nimport { ListItemButton } from '@mui/material';\nimport Collapse from '@mui/material/Collapse';\nimport IconButton from '@mui/material/IconButton';\nimport List, { ListProps } from '@mui/material/List';\nimport ListItemText from '@mui/material/ListItemText';\nimport { alpha, styled } from '@mui/material/styles';\nimport clsx from 'clsx';\nimport { useEffect, useState } from 'react';\nimport { NavBadge } from '../../NavBadge';\nimport { NavItem, NavItemComponentProps } from '../../NavItem';\n\ntype ListComponentProps = ListProps & {\n itempadding: number;\n};\n\nconst Root = styled(List)<ListComponentProps>(({ theme, ...props }) => ({\n padding: 0,\n '&.open': {},\n '& > .owp-list-item': {\n minHeight: 36,\n width: '100%',\n borderRadius: '8px',\n margin: '0 0 4px 0',\n paddingRight: 16,\n paddingLeft: props.itempadding > 80 ? 80 : props.itempadding,\n paddingTop: 10,\n paddingBottom: 10,\n color: alpha(theme.palette.text.primary, 0.7),\n '&:hover': {\n color: theme.palette.text.primary,\n },\n '& > .owp-list-item-icon': {\n marginRight: 16,\n width: 22,\n height: 22,\n minWidth: 22,\n minHeight: 22,\n fontSize: 22,\n lineHeight: '22px',\n textAlign: 'center',\n color: 'inherit',\n },\n },\n}));\n\n/**\n * NavVerticalCollapse component used for vertical navigation items with collapsible children.\n */\nfunction NavVerticalCollapse(props: NavItemComponentProps) {\n const { item, nestedLevel = 0, onItemClick, checkPermission, openedCollapseIds } = props;\n\n const isRouteOpened = openedCollapseIds?.has(item.id) ?? false;\n const [manualOpen, setManualOpen] = useState(isRouteOpened);\n const open = isRouteOpened || manualOpen;\n\n const itempadding = nestedLevel > 0 ? 38 + nestedLevel * 16 : 16;\n\n useEffect(() => {\n if (isRouteOpened) {\n setManualOpen(true);\n }\n }, [isRouteOpened]);\n\n const component = item.url ? NavLinkAdapter : 'li';\n\n let itemProps = {};\n\n if (typeof component !== 'string') {\n itemProps = {\n disabled: item.disabled,\n to: item.url,\n end: item.end,\n role: 'button',\n };\n }\n\n if (checkPermission && !item?.hasPermission) {\n return null;\n }\n\n return (\n <Root className={clsx(open && 'open')} itempadding={itempadding} sx={item.sx}>\n <ListItemButton\n component={component}\n className=\"owp-list-item\"\n onClick={
|
|
1
|
+
{"version":3,"file":"NavVerticalCollapse.js","sources":["../../../../../../src/layout/components/navigation/vertical/types/NavVerticalCollapse.tsx"],"sourcesContent":["import { useNavigationActiveRouteRemount } from '@/hooks/useNavigationActiveRouteRemount';\nimport NavLinkAdapter from '@/components/OwpNavLinkAdapter';\nimport { OwpSvgIcon as SvgIcon } from '@/components/OwpSvgIcon';\nimport { ListItemButton } from '@mui/material';\nimport Collapse from '@mui/material/Collapse';\nimport IconButton from '@mui/material/IconButton';\nimport List, { ListProps } from '@mui/material/List';\nimport ListItemText from '@mui/material/ListItemText';\nimport { alpha, styled } from '@mui/material/styles';\nimport clsx from 'clsx';\nimport { type MouseEvent, useEffect, useState } from 'react';\nimport { NavBadge } from '../../NavBadge';\nimport { NavItem, NavItemComponentProps } from '../../NavItem';\n\ntype ListComponentProps = ListProps & {\n itempadding: number;\n};\n\nconst Root = styled(List)<ListComponentProps>(({ theme, ...props }) => ({\n padding: 0,\n '&.open': {},\n '& > .owp-list-item': {\n minHeight: 36,\n width: '100%',\n borderRadius: '8px',\n margin: '0 0 4px 0',\n paddingRight: 16,\n paddingLeft: props.itempadding > 80 ? 80 : props.itempadding,\n paddingTop: 10,\n paddingBottom: 10,\n color: alpha(theme.palette.text.primary, 0.7),\n '&:hover': {\n color: theme.palette.text.primary,\n },\n '& > .owp-list-item-icon': {\n marginRight: 16,\n width: 22,\n height: 22,\n minWidth: 22,\n minHeight: 22,\n fontSize: 22,\n lineHeight: '22px',\n textAlign: 'center',\n color: 'inherit',\n },\n },\n}));\n\n/**\n * NavVerticalCollapse component used for vertical navigation items with collapsible children.\n */\nfunction NavVerticalCollapse(props: NavItemComponentProps) {\n const { item, nestedLevel = 0, onItemClick, checkPermission, openedCollapseIds } = props;\n const { remountRoute, shouldRemountRouteOnClick } = useNavigationActiveRouteRemount(\n item.url || undefined,\n );\n\n const isRouteOpened = openedCollapseIds?.has(item.id) ?? false;\n const [manualOpen, setManualOpen] = useState(isRouteOpened);\n const open = isRouteOpened || manualOpen;\n\n const itempadding = nestedLevel > 0 ? 38 + nestedLevel * 16 : 16;\n\n useEffect(() => {\n if (isRouteOpened) {\n setManualOpen(true);\n }\n }, [isRouteOpened]);\n\n const component = item.url ? NavLinkAdapter : 'li';\n\n let itemProps = {};\n\n if (typeof component !== 'string') {\n itemProps = {\n disabled: item.disabled,\n to: item.url,\n end: item.end,\n role: 'button',\n };\n }\n\n if (checkPermission && !item?.hasPermission) {\n return null;\n }\n\n const handleClick = (event: MouseEvent<HTMLElement>) => {\n if (shouldRemountRouteOnClick) {\n event.preventDefault();\n remountRoute();\n onItemClick?.(item);\n return;\n }\n\n setManualOpen((previousOpen) => !previousOpen);\n onItemClick?.(item);\n };\n\n return (\n <Root className={clsx(open && 'open')} itempadding={itempadding} sx={item.sx}>\n <ListItemButton\n component={component}\n className=\"owp-list-item\"\n onClick={handleClick}\n {...itemProps}\n >\n {item.icon && (\n <SvgIcon className={clsx('owp-list-item-icon shrink-0', item.iconClass)} color=\"action\">\n {item.icon}\n </SvgIcon>\n )}\n\n <ListItemText\n className=\"owp-list-item-text\"\n primary={item.title}\n secondary={item.subtitle}\n sx={{\n my: 0,\n display: 'flex',\n flexDirection: 'column',\n gap: 0.25,\n '& .owp-list-item-text-primary': {\n fontSize: 15,\n fontWeight: 600,\n lineHeight: 1.4,\n },\n '& .owp-list-item-text-secondary': {\n fontSize: 14,\n fontWeight: 500,\n lineHeight: 1.4,\n },\n }}\n classes={{\n primary: 'owp-list-item-text-primary truncate',\n secondary: 'owp-list-item-text-secondary truncate',\n }}\n />\n\n {item.badge && <NavBadge className=\"mx-4\" badge={item.badge} />}\n\n <IconButton\n disableRipple\n className=\"-mx-12 h-20 w-20 p-0 hover:bg-transparent focus:bg-transparent\"\n onClick={(ev) => {\n ev.preventDefault();\n ev.stopPropagation();\n setManualOpen((previousOpen) => !previousOpen);\n }}\n >\n <SvgIcon size={13} className=\"arrow-icon\" color=\"inherit\">\n {open ? 'heroicons-solid:chevron-down' : 'heroicons-solid:chevron-right'}\n </SvgIcon>\n </IconButton>\n </ListItemButton>\n\n {item.children && (\n <Collapse in={open} className=\"collapse-children\">\n {item.children.map((_item) => (\n <NavItem\n key={_item.id}\n type={`vertical-${_item.type}`}\n item={_item}\n nestedLevel={nestedLevel + 1}\n onItemClick={onItemClick}\n checkPermission={checkPermission}\n openedCollapseIds={openedCollapseIds}\n />\n ))}\n </Collapse>\n )}\n </Root>\n );\n}\n\nexport { NavVerticalCollapse };\n"],"names":["Root","styled","List","theme","props","alpha","NavVerticalCollapse","item","nestedLevel","onItemClick","checkPermission","openedCollapseIds","remountRoute","shouldRemountRouteOnClick","useNavigationActiveRouteRemount","isRouteOpened","manualOpen","setManualOpen","useState","open","itempadding","useEffect","component","NavLinkAdapter","itemProps","handleClick","__name","event","previousOpen","jsxs","clsx","ListItemButton","jsx","S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value: e, configurable: !0 });
|
|
3
|
+
import { jsxs as h, jsx as a, Fragment as y } from "../../../../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
|
|
4
|
+
import { useNavigationActiveRouteRemount as v } from "../../../../../hooks/useNavigationActiveRouteRemount.js";
|
|
5
|
+
import b from "../../../../../components/OwpNavLinkAdapter/OwpNavLinkAdapter.js";
|
|
6
|
+
import { ListItemText as R, ListItem as L } from "@mui/material";
|
|
7
|
+
import { styled as N, alpha as S } from "@mui/material/styles";
|
|
8
|
+
import { clsx as T } from "../../../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
9
|
+
import { NavItem as k } from "../../NavItem.js";
|
|
10
|
+
const I = N(L)(({ theme: i, ...e }) => ({
|
|
10
11
|
minHeight: 36,
|
|
11
12
|
width: "100%",
|
|
12
13
|
borderRadius: "8px",
|
|
@@ -18,37 +19,44 @@ const v = b(y)(({ theme: i, ...e }) => ({
|
|
|
18
19
|
paddingLeft: e.itempadding > 80 ? 80 : e.itempadding,
|
|
19
20
|
paddingTop: 10,
|
|
20
21
|
paddingBottom: 10,
|
|
21
|
-
color:
|
|
22
|
+
color: S(i.palette.text.primary, 0.7),
|
|
22
23
|
fontWeight: 600,
|
|
23
24
|
letterSpacing: "0.025em"
|
|
24
25
|
}));
|
|
25
|
-
function
|
|
26
|
+
function D(i) {
|
|
26
27
|
var d;
|
|
27
|
-
const { item: e, nestedLevel: n = 0, onItemClick:
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
const { item: e, nestedLevel: n = 0, onItemClick: o, checkPermission: s, openedCollapseIds: m } = i, { remountRoute: c, shouldRemountRouteOnClick: u } = v(
|
|
29
|
+
e.url || void 0
|
|
30
|
+
), f = n > 0 ? 38 + n * 16 : 16, l = e.url ? b : "li";
|
|
31
|
+
let p = {};
|
|
32
|
+
if (typeof l != "string" && (p = {
|
|
30
33
|
disabled: e.disabled,
|
|
31
34
|
to: e.url,
|
|
32
35
|
end: e.end,
|
|
33
36
|
role: "button"
|
|
34
|
-
}), s && !(e != null && e.hasPermission)
|
|
37
|
+
}), s && !(e != null && e.hasPermission))
|
|
38
|
+
return null;
|
|
39
|
+
const g = /* @__PURE__ */ r((t) => {
|
|
40
|
+
u && (t.preventDefault(), c()), o == null || o(e);
|
|
41
|
+
}, "handleClick");
|
|
42
|
+
return /* @__PURE__ */ h(y, { children: [
|
|
35
43
|
/* @__PURE__ */ a(
|
|
36
|
-
|
|
44
|
+
I,
|
|
37
45
|
{
|
|
38
|
-
component:
|
|
39
|
-
itempadding:
|
|
40
|
-
className:
|
|
46
|
+
component: l,
|
|
47
|
+
itempadding: f,
|
|
48
|
+
className: T(
|
|
41
49
|
"owp-list-subheader flex items-center py-10",
|
|
42
50
|
e.url ? "" : "cursor-default"
|
|
43
51
|
),
|
|
44
|
-
onClick:
|
|
52
|
+
onClick: g,
|
|
45
53
|
sx: e.sx,
|
|
46
|
-
...
|
|
54
|
+
...p,
|
|
47
55
|
children: /* @__PURE__ */ a(
|
|
48
|
-
|
|
56
|
+
R,
|
|
49
57
|
{
|
|
50
58
|
className: "owp-list-subheader-text",
|
|
51
|
-
sx: /* @__PURE__ */
|
|
59
|
+
sx: /* @__PURE__ */ r((t) => ({
|
|
52
60
|
margin: 0,
|
|
53
61
|
display: "flex",
|
|
54
62
|
flexDirection: "column",
|
|
@@ -79,12 +87,12 @@ function W(i) {
|
|
|
79
87
|
}
|
|
80
88
|
),
|
|
81
89
|
(d = e.children) == null ? void 0 : d.map((t) => /* @__PURE__ */ a(
|
|
82
|
-
|
|
90
|
+
k,
|
|
83
91
|
{
|
|
84
92
|
type: `vertical-${t.type}`,
|
|
85
93
|
item: t,
|
|
86
94
|
nestedLevel: n,
|
|
87
|
-
onItemClick:
|
|
95
|
+
onItemClick: o,
|
|
88
96
|
checkPermission: s,
|
|
89
97
|
openedCollapseIds: m
|
|
90
98
|
},
|
|
@@ -92,8 +100,8 @@ function W(i) {
|
|
|
92
100
|
))
|
|
93
101
|
] });
|
|
94
102
|
}
|
|
95
|
-
|
|
103
|
+
r(D, "NavVerticalGroup");
|
|
96
104
|
export {
|
|
97
|
-
|
|
105
|
+
D as NavVerticalGroup
|
|
98
106
|
};
|
|
99
107
|
//# sourceMappingURL=NavVerticalGroup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavVerticalGroup.js","sources":["../../../../../../src/layout/components/navigation/vertical/types/NavVerticalGroup.tsx"],"sourcesContent":["import NavLinkAdapter from '@/components/OwpNavLinkAdapter';\nimport { ListItem, ListItemButtonProps, ListItemText } from '@mui/material';\nimport { alpha, styled } from '@mui/material/styles';\nimport clsx from 'clsx';\nimport { NavItem, NavItemComponentProps } from '../../NavItem';\n\ntype ListItemButtonComponentProps = ListItemButtonProps & {\n itempadding: number;\n};\n\nconst Root = styled(ListItem)<ListItemButtonComponentProps>(({ theme, ...props }) => ({\n minHeight: 36,\n width: '100%',\n borderRadius: '8px',\n margin: '28px 0 0 0',\n '&:first-of-type': {\n marginTop: 0,\n },\n paddingRight: 16,\n paddingLeft: props.itempadding > 80 ? 80 : props.itempadding,\n paddingTop: 10,\n paddingBottom: 10,\n color: alpha(theme.palette.text.primary, 0.7),\n fontWeight: 600,\n letterSpacing: '0.025em',\n}));\n\n/**\n * NavVerticalGroup renders a group of navigation items in a vertical layout.\n */\nfunction NavVerticalGroup(props: NavItemComponentProps) {\n const { item, nestedLevel = 0, onItemClick, checkPermission, openedCollapseIds } = props;\n\n const itempadding = nestedLevel > 0 ? 38 + nestedLevel * 16 : 16;\n\n const component = item.url ? NavLinkAdapter : 'li';\n\n let itemProps = {};\n\n if (typeof component !== 'string') {\n itemProps = {\n disabled: item.disabled,\n to: item.url,\n end: item.end,\n role: 'button',\n };\n }\n\n if (checkPermission && !item?.hasPermission) {\n return null;\n }\n\n return (\n <>\n <Root\n component={component}\n itempadding={itempadding}\n className={clsx(\n 'owp-list-subheader flex items-center py-10',\n !item.url ? 'cursor-default' : '',\n )}\n onClick={
|
|
1
|
+
{"version":3,"file":"NavVerticalGroup.js","sources":["../../../../../../src/layout/components/navigation/vertical/types/NavVerticalGroup.tsx"],"sourcesContent":["import { useNavigationActiveRouteRemount } from '@/hooks/useNavigationActiveRouteRemount';\nimport NavLinkAdapter from '@/components/OwpNavLinkAdapter';\nimport { ListItem, ListItemButtonProps, ListItemText } from '@mui/material';\nimport { alpha, styled } from '@mui/material/styles';\nimport clsx from 'clsx';\nimport type { MouseEvent } from 'react';\nimport { NavItem, NavItemComponentProps } from '../../NavItem';\n\ntype ListItemButtonComponentProps = ListItemButtonProps & {\n itempadding: number;\n};\n\nconst Root = styled(ListItem)<ListItemButtonComponentProps>(({ theme, ...props }) => ({\n minHeight: 36,\n width: '100%',\n borderRadius: '8px',\n margin: '28px 0 0 0',\n '&:first-of-type': {\n marginTop: 0,\n },\n paddingRight: 16,\n paddingLeft: props.itempadding > 80 ? 80 : props.itempadding,\n paddingTop: 10,\n paddingBottom: 10,\n color: alpha(theme.palette.text.primary, 0.7),\n fontWeight: 600,\n letterSpacing: '0.025em',\n}));\n\n/**\n * NavVerticalGroup renders a group of navigation items in a vertical layout.\n */\nfunction NavVerticalGroup(props: NavItemComponentProps) {\n const { item, nestedLevel = 0, onItemClick, checkPermission, openedCollapseIds } = props;\n const { remountRoute, shouldRemountRouteOnClick } = useNavigationActiveRouteRemount(\n item.url || undefined,\n );\n\n const itempadding = nestedLevel > 0 ? 38 + nestedLevel * 16 : 16;\n\n const component = item.url ? NavLinkAdapter : 'li';\n\n let itemProps = {};\n\n if (typeof component !== 'string') {\n itemProps = {\n disabled: item.disabled,\n to: item.url,\n end: item.end,\n role: 'button',\n };\n }\n\n if (checkPermission && !item?.hasPermission) {\n return null;\n }\n\n const handleClick = (event: MouseEvent<HTMLElement>) => {\n if (shouldRemountRouteOnClick) {\n event.preventDefault();\n remountRoute();\n }\n\n onItemClick?.(item);\n };\n\n return (\n <>\n <Root\n component={component}\n itempadding={itempadding}\n className={clsx(\n 'owp-list-subheader flex items-center py-10',\n !item.url ? 'cursor-default' : '',\n )}\n onClick={handleClick}\n sx={item.sx}\n {...itemProps}\n >\n <ListItemText\n className=\"owp-list-subheader-text\"\n sx={(theme) => ({\n margin: 0,\n display: 'flex',\n flexDirection: 'column',\n gap: theme.spacing(0.25),\n '& > .MuiListItemText-primary': {\n fontSize: 12,\n color: 'secondary.main',\n fontWeight: 600,\n textTransform: 'uppercase',\n letterSpacing: '.05em',\n lineHeight: '20px',\n ...theme.applyStyles('dark', {\n color: 'secondary.light',\n }),\n },\n '& > .MuiListItemText-secondary': {\n fontSize: 11,\n color: 'text.disabled',\n letterSpacing: '.06px',\n fontWeight: 500,\n lineHeight: '1.5',\n },\n })}\n primary={item.title}\n secondary={item.subtitle}\n />\n </Root>\n {item.children?.map((_item) => (\n <NavItem\n key={_item.id}\n type={`vertical-${_item.type}`}\n item={_item}\n nestedLevel={nestedLevel}\n onItemClick={onItemClick}\n checkPermission={checkPermission}\n openedCollapseIds={openedCollapseIds}\n />\n ))}\n </>\n );\n}\n\nexport { NavVerticalGroup };\n"],"names":["Root","styled","ListItem","theme","props","alpha","NavVerticalGroup","item","nestedLevel","onItemClick","checkPermission","openedCollapseIds","remountRoute","shouldRemountRouteOnClick","useNavigationActiveRouteRemount","itempadding","component","NavLinkAdapter","itemProps","handleClick","__name","event","jsxs","Fragment","jsx","clsx","ListItemText","_a","_item","NavItem"],"mappings":";;;;;;;;;AAYA,MAAMA,IAAOC,EAAOC,CAAQ,EAAgC,CAAC,EAAE,OAAAC,GAAO,GAAGC,SAAa;AAAA,EACpF,WAAW;AAAA,EACX,OAAO;AAAA,EACP,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,mBAAmB;AAAA,IACjB,WAAW;AAAA,EAAA;AAAA,EAEb,cAAc;AAAA,EACd,aAAaA,EAAM,cAAc,KAAK,KAAKA,EAAM;AAAA,EACjD,Y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QAAQ,IAAI;AAAA,cACvB,gCAAgC;AAAA,gBAC9B,UAAU;AAAA,gBACV,OAAO;AAAA,gBACP,YAAY;AAAA,gBACZ,eAAe;AAAA,gBACf,eAAe;AAAA,gBACf,YAAY;AAAA,gBACZ,GAAGA,EAAM,YAAY,QAAQ;AAAA,kBAC3B,OAAO;AAAA,gBAAA,CACR;AAAA,cAAA;AAAA,cAEH,kCAAkC;AAAA,gBAChC,UAAU;AAAA,gBACV,OAAO;AAAA,gBACP,eAAe;AAAA,gBACf,YAAY;AAAA,gBACZ,YAAY;AAAA,cAAA;AAAA,YACd,IAtBE;AAAA,YAwBJ,SAASI,EAAK;AAAA,YACd,WAAWA,EAAK;AAAA,UAAA;AAAA,QAAA;AAAA,MAClB;AAAA,IAAA;AAAA,KAEDoB,IAAApB,EAAK,aAAL,gBAAAoB,EAAe,IAAI,CAACC,MACnB,gBAAAJ;AAAA,MAACK;AAAA,MAAA;AAAA,QAEC,MAAM,YAAYD,EAAM,IAAI;AAAA,QAC5B,MAAMA;AAAA,QACN,aAAApB;AAAA,QACA,aAAAC;AAAA,QACA,iBAAAC;AAAA,QACA,mBAAAC;AAAA,MAAA;AAAA,MANKiB,EAAM;AAAA,IAAA;AAAA,EAQd,GACH;AAEJ;AA1FSR,EAAAd,GAAA;"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var o = (i, t) =>
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var o = (i, t) => f(i, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { jsxs as h, jsx as r } from "../../../../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
|
|
4
|
+
import { useNavigationActiveRouteRemount as y } from "../../../../../hooks/useNavigationActiveRouteRemount.js";
|
|
5
|
+
import w from "../../../../../components/OwpNavLinkAdapter/OwpNavLinkAdapter.js";
|
|
6
|
+
import { ListItemButton as v } from "@mui/material";
|
|
7
|
+
import b from "@mui/material/ListItemText";
|
|
8
|
+
import { styled as R, alpha as s } from "@mui/material/styles";
|
|
8
9
|
import { clsx as l } from "../../../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
9
|
-
import { NavBadge as
|
|
10
|
-
import { OwpSvgIcon as
|
|
11
|
-
const
|
|
10
|
+
import { NavBadge as N } from "../../NavBadge.js";
|
|
11
|
+
import { OwpSvgIcon as k } from "../../../../../components/OwpSvgIcon/OwpSvgIcon.js";
|
|
12
|
+
const L = R(v)(({ theme: i, ...t }) => ({
|
|
12
13
|
minHeight: 36,
|
|
13
14
|
width: "100%",
|
|
14
15
|
borderRadius: "8px",
|
|
@@ -17,7 +18,7 @@ const b = u(f)(({ theme: i, ...t }) => ({
|
|
|
17
18
|
paddingLeft: t.itempadding > 80 ? 80 : t.itempadding,
|
|
18
19
|
paddingTop: 10,
|
|
19
20
|
paddingBottom: 10,
|
|
20
|
-
color:
|
|
21
|
+
color: s(i.palette.text.primary, 0.7),
|
|
21
22
|
cursor: "pointer",
|
|
22
23
|
textDecoration: "none!important",
|
|
23
24
|
"&:hover": {
|
|
@@ -25,8 +26,7 @@ const b = u(f)(({ theme: i, ...t }) => ({
|
|
|
25
26
|
},
|
|
26
27
|
"&.active": {
|
|
27
28
|
color: i.palette.secondary.main,
|
|
28
|
-
backgroundColor:
|
|
29
|
-
pointerEvents: "none",
|
|
29
|
+
backgroundColor: s(i.palette.secondary.main, 0.2),
|
|
30
30
|
transition: "border-radius .15s cubic-bezier(0.4,0.0,0.2,1)",
|
|
31
31
|
"& > .owp-list-item-text-primary": {
|
|
32
32
|
color: "inherit"
|
|
@@ -48,27 +48,34 @@ const b = u(f)(({ theme: i, ...t }) => ({
|
|
|
48
48
|
},
|
|
49
49
|
"& > .owp-list-item-text": {}
|
|
50
50
|
}));
|
|
51
|
-
function
|
|
52
|
-
const { item: t, nestedLevel: n = 0, onItemClick: e, checkPermission:
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
function j(i) {
|
|
52
|
+
const { item: t, nestedLevel: n = 0, onItemClick: e, checkPermission: c } = i, { remountRoute: d, shouldRemountRouteOnClick: p } = y(
|
|
53
|
+
t.url || void 0
|
|
54
|
+
), g = n > 0 ? 38 + n * 16 : 16, a = t.url ? w : "li";
|
|
55
|
+
let m = {};
|
|
56
|
+
if (typeof a != "string" && (m = {
|
|
55
57
|
disabled: t.disabled,
|
|
56
58
|
to: t.url || "",
|
|
57
59
|
end: t.end,
|
|
58
60
|
role: "button"
|
|
59
|
-
}),
|
|
60
|
-
|
|
61
|
+
}), c && !(t != null && t.hasPermission))
|
|
62
|
+
return null;
|
|
63
|
+
const u = /* @__PURE__ */ o((x) => {
|
|
64
|
+
p && (x.preventDefault(), d()), e == null || e(t);
|
|
65
|
+
}, "handleClick");
|
|
66
|
+
return /* @__PURE__ */ h(
|
|
67
|
+
L,
|
|
61
68
|
{
|
|
62
69
|
component: a,
|
|
63
70
|
className: l("owp-list-item", t.active && "active"),
|
|
64
|
-
onClick:
|
|
65
|
-
itempadding:
|
|
71
|
+
onClick: u,
|
|
72
|
+
itempadding: g,
|
|
66
73
|
sx: t.sx,
|
|
67
|
-
...
|
|
74
|
+
...m,
|
|
68
75
|
children: [
|
|
69
|
-
t.icon && /* @__PURE__ */ r(
|
|
76
|
+
t.icon && /* @__PURE__ */ r(k, { className: l("owp-list-item-icon shrink-0", t.iconClass), color: "action", children: t.icon }),
|
|
70
77
|
/* @__PURE__ */ r(
|
|
71
|
-
|
|
78
|
+
b,
|
|
72
79
|
{
|
|
73
80
|
className: "owp-list-item-text",
|
|
74
81
|
primary: t.title,
|
|
@@ -91,13 +98,13 @@ function P(i) {
|
|
|
91
98
|
}
|
|
92
99
|
}
|
|
93
100
|
),
|
|
94
|
-
t.badge && /* @__PURE__ */ r(
|
|
101
|
+
t.badge && /* @__PURE__ */ r(N, { badge: t.badge })
|
|
95
102
|
]
|
|
96
103
|
}
|
|
97
104
|
);
|
|
98
105
|
}
|
|
99
|
-
o(
|
|
106
|
+
o(j, "NavVerticalItem");
|
|
100
107
|
export {
|
|
101
|
-
|
|
108
|
+
j as NavVerticalItem
|
|
102
109
|
};
|
|
103
110
|
//# sourceMappingURL=NavVerticalItem.js.map
|