@owp/core 2.4.0 → 2.5.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/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/index17.js +5 -2
- package/dist/_virtual/index17.js.map +1 -1
- package/dist/_virtual/index18.js +4 -4
- package/dist/_virtual/index19.js +4 -4
- package/dist/_virtual/index20.js +2 -5
- package/dist/_virtual/index20.js.map +1 -1
- package/dist/_virtual/index5.js +2 -2
- package/dist/components/OwpCommonCode/OwpCommonCodeRadioGroup.js +38 -38
- package/dist/components/OwpCommonCode/OwpCommonCodeRadioGroup.js.map +1 -1
- package/dist/components/OwpFieldHelperText/OwpFieldHelperText.js +34 -0
- package/dist/components/OwpFieldHelperText/OwpFieldHelperText.js.map +1 -0
- 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/OwpRequiredHelperText/OwpRequiredHelperText.js +38 -0
- package/dist/components/OwpRequiredHelperText/OwpRequiredHelperText.js.map +1 -0
- package/dist/components/OwpTable/OwpDataTable.js +171 -177
- package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
- package/dist/components/OwpTable/OwpFieldTable.js +99 -0
- package/dist/components/OwpTable/OwpFieldTable.js.map +1 -0
- package/dist/components/OwpTable/OwpTable.js +62 -68
- package/dist/components/OwpTable/OwpTable.js.map +1 -1
- package/dist/components/OwpTextField/OwpTextMaskField.js +138 -87
- package/dist/components/OwpTextField/OwpTextMaskField.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/useCurrentUserSeq.js +20 -6
- package/dist/hooks/useCurrentUserSeq.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/hooks.js +50 -49
- package/dist/index.js +74 -70
- package/dist/index.js.map +1 -1
- 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/layout/components/toggles/NavigationSearchToggle.js +3 -3
- 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/constants.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/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
- package/dist/owp-app.css +1 -1
- package/dist/types/components/OwpFieldHelperText/OwpFieldHelperText.d.ts +14 -0
- package/dist/types/components/OwpFieldHelperText/index.d.ts +2 -0
- package/dist/types/components/OwpRequiredHelperText/OwpRequiredHelperText.d.ts +18 -0
- package/dist/types/components/OwpRequiredHelperText/index.d.ts +2 -0
- package/dist/types/components/OwpTable/{OwpVerticalTable.d.ts → OwpFieldTable.d.ts} +9 -8
- package/dist/types/components/OwpTable/index.d.ts +1 -1
- package/dist/types/components/OwpTextField/OwpTextMaskField.d.ts +5 -3
- 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/useCurrentUserSeq.d.ts +11 -2
- package/dist/types/hooks/useNavigationActiveRouteRemount.d.ts +14 -0
- package/dist/types/index.d.ts +3 -1
- 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 +6 -2
- 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/Defaults.xml_.xml +718 -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/Text.xml +176 -0
- package/treegrid/TextEN.xml +1785 -0
- package/treegrid/TextKR.xml +176 -0
- package/treegrid/orgDefaults.xml +715 -0
- package/treegrid-global.d.ts +3294 -4904
- package/vite/owpCoreAssetsPlugin.cjs +120 -0
- package/vite/owpCoreAssetsPlugin.mjs +14 -0
- package/vite/owpCoreFixedImagesPlugin.cjs +33 -0
- package/vite/owpCoreFixedImagesPlugin.mjs +11 -0
- package/vite/staticAssetPlugin.cjs +187 -0
- package/vite/treeGridAssetsPlugin.cjs +88 -0
- package/vite/treeGridAssetsPlugin.mjs +12 -0
- package/dist/components/OwpTable/OwpVerticalTable.js +0 -96
- package/dist/components/OwpTable/OwpVerticalTable.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +0 -39
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/html-contenteditable-mask-element.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/html-input-mask-element.js +0 -36
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/html-input-mask-element.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/html-mask-element.js +0 -52
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/html-mask-element.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/input-history.js +0 -35
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/input-history.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/input.js +0 -227
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/input.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/mask-element.js +0 -48
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/mask-element.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/action-details.js +0 -56
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/action-details.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/change-details.js +0 -41
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/change-details.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/continuous-tail-details.js +0 -47
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/continuous-tail-details.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/holder.js +0 -10
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/holder.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/utils.js +0 -76
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/utils.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/index.js +0 -51
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/index.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/base.js +0 -257
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/base.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/date.js +0 -121
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/date.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/dynamic.js +0 -227
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/dynamic.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/enum.js +0 -74
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/enum.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/factory.js +0 -52
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/factory.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/function.js +0 -28
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/function.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/number.js +0 -217
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/number.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +0 -108
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern/chunk-tail-details.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern/cursor.js +0 -105
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern/cursor.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern/fixed-definition.js +0 -107
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern/fixed-definition.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern/input-definition.js +0 -138
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern/input-definition.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern.js +0 -327
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pipe.js +0 -28
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pipe.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/range.js +0 -83
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/range.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/regexp.js +0 -26
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/regexp.js.map +0 -1
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/repeat.js +0 -109
- package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/repeat.js.map +0 -1
- package/dist/node_modules/.pnpm/react-imask@7.6.1_react@19.2.4/node_modules/react-imask/esm/input.js +0 -28
- package/dist/node_modules/.pnpm/react-imask@7.6.1_react@19.2.4/node_modules/react-imask/esm/input.js.map +0 -1
- package/dist/node_modules/.pnpm/react-imask@7.6.1_react@19.2.4/node_modules/react-imask/esm/mixin.js +0 -136
- package/dist/node_modules/.pnpm/react-imask@7.6.1_react@19.2.4/node_modules/react-imask/esm/mixin.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwpDataTable.js","sources":["../../../src/components/OwpTable/OwpDataTable.tsx"],"sourcesContent":["import { Divider, TextField, Typography, TypographyProps } from '@mui/material';\nimport Checkbox, { checkboxClasses } from '@mui/material/Checkbox';\nimport { grey } from '@mui/material/colors';\nimport GlobalStyles from '@mui/material/GlobalStyles';\nimport Paper from '@mui/material/Paper';\nimport Table from '@mui/material/Table';\nimport TableBody from '@mui/material/TableBody';\nimport TableCell, { TableCellProps } from '@mui/material/TableCell';\nimport TableContainer, { TableContainerProps } from '@mui/material/TableContainer';\nimport TableHead from '@mui/material/TableHead';\nimport TableRow from '@mui/material/TableRow';\nimport TableSortLabel from '@mui/material/TableSortLabel';\nimport { SxProps, Theme } from '@mui/material/styles';\nimport { isArray, isBoolean, isEmpty, isEqual, isNumber, uniqueId } from 'es-toolkit/compat';\nimport { ChangeEvent, MouseEvent, ReactNode, useEffect, useMemo, useRef, useState } from 'react';\nimport { OwpNumberField } from '../OwpNumberField';\n\ntype Row = object;\ntype TableCellAlign = NonNullable<TableCellProps['align']>;\n\ninterface HeadCell {\n enablePadding?: boolean;\n id: string;\n label: string;\n sx?: TypographyProps['sx'];\n inputLabel?: string;\n rangeKey?: string;\n rangeLabel?: { start: string; end: string };\n align?: string;\n valueAlign?: string;\n canTextField?: boolean;\n textFieldType?: string;\n}\n\ninterface DataTableHeadProps {\n sx?: TableCellProps['sx'];\n headCells: HeadCell[];\n numSelected: number;\n onRequestSort: (event: MouseEvent<unknown>, property: string) => void;\n onSelectAllClick: (event: ChangeEvent<HTMLInputElement>) => void;\n order: Order;\n orderBy: string;\n rowCount: number;\n canCheckbox?: boolean;\n canUseOrderBy?: boolean;\n canTableRadiusZero?: boolean;\n canUseTreeGridStyle?: boolean;\n}\n\ninterface OwpDataTableProps<T extends Row = Row> {\n className?: string;\n sx?: TableContainerProps['sx'];\n headSx?: TableCellProps['sx'];\n headCells: HeadCell[];\n rows?: T[];\n canCheckbox?: boolean;\n canTotalCountRow?: boolean;\n selected?: T[];\n onSelect?: (rows: T[] | []) => void;\n onBlur?: (evt: OwpDataTableBlurEvent, dataIndex: number) => void;\n canSelectingSingle?: boolean;\n canUseOrderBy?: boolean;\n canTableRadiusZero?: boolean;\n canUseTreeGridStyle?: boolean;\n fixedRowCount?: number;\n}\n\nconst defaultHeadCellsSx = {\n bgcolor: '#586980',\n borderTopLeftRadius: 'inherit',\n borderTopRightRadius: 'inherit',\n} as const;\n\nconst headerBorderRight = {\n borderRight: `1px solid ${grey['A200']}`,\n};\n\nconst rowBorderRight = {\n borderRight: `1px solid ${grey[400]}`,\n};\n\nconst defaultSortLabelSx = {\n '&.MuiTableSortLabel-root': {\n color: grey['A100'],\n },\n '&.MuiTableSortLabel-root:hover': {\n color: grey['A100'],\n },\n '&.Mui-active': {\n color: grey['A100'],\n },\n '& .MuiTableSortLabel-icon': {\n color: `${grey['A100']} !important`,\n },\n} as const;\n\nconst tableRadiusZeroSx = {\n borderRadius: 0,\n} as const;\n\nconst lastRowRadiusZeroSx = {\n '& > th, & > td': {\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 0,\n },\n} as const;\n\nconst treeGridFontSx = {\n fontFamily: 'RobotoLight, sans-serif',\n fontSize: '14px',\n fontWeight: 'normal',\n lineHeight: '16px',\n} as const;\n\nconst treeGridCellBaseSx = {\n ...treeGridFontSx,\n boxSizing: 'border-box',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n verticalAlign: 'middle',\n whiteSpace: 'nowrap',\n} as const;\n\nconst treeGridHeaderCellSx = {\n ...treeGridCellBaseSx,\n bgcolor: '#586980',\n borderBottom: '1px solid #6F7F94',\n borderRight: '1px solid #6F7F94',\n color: 'white',\n height: 33,\n minHeight: 33,\n p: '7px 2px 6px 10px',\n} as const;\n\nconst treeGridSortLabelSx = {\n '&.MuiTableSortLabel-root': {\n color: 'inherit',\n display: 'flex',\n fontFamily: 'inherit',\n fontSize: 'inherit',\n fontWeight: 'inherit',\n justifyContent: 'center',\n lineHeight: 'inherit',\n overflow: 'hidden',\n position: 'relative',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n width: '100%',\n },\n '&.MuiTableSortLabel-root:hover': {\n color: 'inherit',\n },\n '&.Mui-active': {\n color: 'inherit',\n },\n '& .MuiTableSortLabel-icon': {\n color: 'currentColor !important',\n margin: 0,\n position: 'absolute',\n right: 0,\n },\n} as const;\n\nconst treeGridBodyCellSx = {\n ...treeGridCellBaseSx,\n borderBottom: '1px solid #CDD8E4',\n borderRight: '1px solid #CDD8E4',\n color: '#111112',\n p: '7px 10px 6px',\n} as const;\n\nconst treeGridFontFaceStyles = {\n '@font-face': {\n fontFamily: 'RobotoLight',\n fontStyle: 'normal',\n fontWeight: 'normal',\n src: \"url('/assets/vendors/Grid/Styles/Roboto-Light.ttf') format('truetype')\",\n },\n} as const;\n\n/**\n * sx 병합 유틸\n * @param styles 병합 대상 sx 목록\n */\nconst mergeSx = (...styles: Array<SxProps<Theme> | undefined | false>): SxProps<Theme> =>\n styles.reduce<Array<Exclude<SxProps<Theme>, readonly unknown[]>>>((acc, style) => {\n if (!style) {\n return acc;\n }\n\n return [...acc, ...(isArray(style) ? style : [style])];\n }, []) as SxProps<Theme>;\n\n/**\n * 고정 row 수 계산\n * @param fixedRowCount 고정 row 수\n */\nconst getFixedRowCount = (fixedRowCount?: number) => {\n if (!isNumber(fixedRowCount) || fixedRowCount < 1) {\n return undefined;\n }\n\n return fixedRowCount;\n};\n\n/**\n * 빈 row 목록 생성\n * @param count 생성 수\n */\nconst createEmptyRows = (count: number) => Array.from({ length: count }, () => ({}) as Row);\n\n/**\n * TableCell align 정규화\n * @param align align 값\n * @param fallback 기본 align 값\n */\nconst getTableCellAlign = (align: string | undefined, fallback: TableCellAlign): TableCellAlign => {\n switch (align) {\n case 'center':\n case 'right':\n case 'left':\n case 'inherit':\n case 'justify':\n return align;\n default:\n return fallback;\n }\n};\n\n/**\n * row 값 조회\n * @param row row 값\n * @param key 조회 key\n */\nconst getRowValue = (row: Row, key?: string) => {\n if (!key) {\n return undefined;\n }\n\n return (row as Record<string, unknown>)?.[key];\n};\n\nconst getComparableValue = (value: unknown) => {\n if (typeof value === 'string' || isNumber(value)) {\n return value;\n }\n\n return undefined;\n};\n\nfunction descendingComparator(a: Row, b: Row, orderBy: string) {\n const aValue = getComparableValue(getRowValue(a, orderBy));\n const bValue = getComparableValue(getRowValue(b, orderBy));\n\n if (bValue == null && aValue == null) {\n return 0;\n }\n if (bValue == null) {\n return -1;\n }\n if (aValue == null) {\n return 1;\n }\n if (bValue < aValue) {\n return -1;\n }\n if (bValue > aValue) {\n return 1;\n }\n return 0;\n}\n\ntype Order = 'asc' | 'desc';\ntype OwpDataTableBlurEvent = Record<string, unknown> & {\n target: {\n value: string | number | undefined;\n };\n};\n\nfunction getComparator(order: Order, orderBy: string): (a: Row, b: Row) => number {\n return order === 'desc'\n ? (a, b) => descendingComparator(a, b, orderBy)\n : (a, b) => -descendingComparator(a, b, orderBy);\n}\n\ntype RowRangeValue = {\n start?: string | number;\n end?: string | number;\n};\n\nconst getRowRangeValue = (row: Row, rangeKey?: string) => {\n if (!rangeKey) {\n return undefined;\n }\n\n return getRowValue(row, rangeKey) as RowRangeValue | undefined;\n};\n\nconst getRangeLabel = (row: Row, cell: HeadCell) => {\n if (!(cell.inputLabel ?? cell.rangeKey)) {\n return '';\n }\n\n const rangeValue = getRowRangeValue(row, cell.rangeKey);\n\n return `${cell.rangeLabel?.start ? `${cell.rangeLabel?.start}: ` : ''}${rangeValue?.start} ~ ${cell.rangeLabel?.end ? `${cell.rangeLabel?.end}: ` : ''}${rangeValue?.end}`;\n};\n\nconst getRowTabIndex = (row: Row, fallbackIndex: number) => {\n const rowIndex = getRowValue(row, 'index');\n\n return isNumber(rowIndex) ? rowIndex : fallbackIndex;\n};\n\nconst getEditableCellSx = (valueAlign?: HeadCell['valueAlign']) => ({\n '& input': {\n textAlign: valueAlign ?? 'center',\n },\n height: 34,\n});\n\nfunction DataTableHead(props: DataTableHeadProps) {\n const {\n sx,\n headCells,\n onSelectAllClick,\n order,\n orderBy,\n numSelected,\n rowCount,\n onRequestSort,\n canCheckbox,\n canUseOrderBy = true,\n canTableRadiusZero,\n canUseTreeGridStyle,\n } = props;\n const createSortHandler = (property: string) => (event: MouseEvent<unknown>) => {\n onRequestSort(event, property);\n };\n\n return (\n <TableHead sx={mergeSx(canTableRadiusZero && tableRadiusZeroSx)}>\n <TableRow\n sx={mergeSx(canUseTreeGridStyle && { height: 33 }, canTableRadiusZero && tableRadiusZeroSx)}\n >\n {canCheckbox && (\n <TableCell\n padding=\"checkbox\"\n className=\"text-white\"\n sx={mergeSx(\n {\n ...defaultHeadCellsSx,\n ...headerBorderRight,\n },\n canUseTreeGridStyle && treeGridHeaderCellSx,\n canTableRadiusZero && tableRadiusZeroSx,\n sx,\n )}\n >\n <Checkbox\n color=\"default\"\n sx={mergeSx(\n {\n [`&, &.${checkboxClasses.checked}`]: {\n color: grey[50],\n },\n },\n canUseTreeGridStyle && { p: 0 },\n )}\n indeterminate={numSelected > 0 && numSelected < rowCount}\n checked={rowCount > 0 && numSelected === rowCount}\n onChange={onSelectAllClick}\n />\n </TableCell>\n )}\n {headCells.map((headCell, index) => (\n <TableCell\n className={canUseTreeGridStyle ? undefined : 'pl-20'}\n key={headCell.id}\n align={getTableCellAlign(headCell.align, 'center')}\n padding={headCell.enablePadding ? 'normal' : 'none'}\n sortDirection={orderBy === headCell.id ? order : false}\n sx={mergeSx(\n {\n ...defaultHeadCellsSx,\n ...(headCells.length - 1 !== index && headerBorderRight),\n },\n canUseTreeGridStyle && treeGridHeaderCellSx,\n canTableRadiusZero && tableRadiusZeroSx,\n sx,\n canUseTreeGridStyle && headCell?.sx,\n )}\n >\n {canUseOrderBy ? (\n <TableSortLabel\n sx={canUseTreeGridStyle ? treeGridSortLabelSx : defaultSortLabelSx}\n active={orderBy === headCell.id}\n direction={orderBy === headCell.id ? order : 'asc'}\n onClick={createSortHandler(headCell.id)}\n >\n {canUseTreeGridStyle ? (\n headCell.label\n ) : (\n <Typography className=\"text-white text-lg font-medium\" sx={headCell?.sx}>\n {headCell.label}\n </Typography>\n )}\n </TableSortLabel>\n ) : canUseTreeGridStyle ? (\n headCell.label\n ) : (\n <Typography className=\"text-white text-lg font-medium\" sx={headCell?.sx}>\n {headCell.label}\n </Typography>\n )}\n </TableCell>\n ))}\n </TableRow>\n </TableHead>\n );\n}\n\n/**\n * OwpDataTable 컴포넌트\n * @param className CSS 클래스명\n * @param sx sx 값\n * @param headSx headSx 값\n * @param headCells headCells 값\n * @param rows 행 데이터 목록\n * @param selected selected 값\n * @param canTableRadiusZero 테이블 radius 0 사용 여부\n * @param canUseTreeGridStyle TreeGrid 스타일 사용 여부\n * @param fixedRowCount 고정 row 수\n */\nexport function OwpDataTable<T extends Row = Row>({\n className,\n sx,\n headSx,\n headCells,\n rows,\n selected,\n canCheckbox,\n canTotalCountRow,\n canSelectingSingle,\n canUseOrderBy = true,\n canTableRadiusZero = false,\n canUseTreeGridStyle = false,\n fixedRowCount,\n onSelect,\n onBlur,\n}: OwpDataTableProps<T>) {\n const [order, setOrder] = useState<Order>('asc');\n const [orderBy, setOrderBy] = useState<string>('');\n const [selectedRows, setSelectedRows] = useState<T[] | []>([]);\n const tableIdRef = useRef(uniqueId('owp-data-table'));\n const useFixedRowCount = useMemo(() => getFixedRowCount(fixedRowCount), [fixedRowCount]);\n const resolvedRows = useMemo(() => {\n const nextRows = isArray(rows) ? rows : [];\n\n return useFixedRowCount ? nextRows.slice(0, useFixedRowCount) : nextRows;\n }, [rows, useFixedRowCount]);\n const resolvedHeadCells = useMemo(() => headCells ?? [], [headCells]);\n const useCheckBox = isBoolean(canCheckbox) ? canCheckbox : true;\n const useTotalCountRow = isBoolean(canTotalCountRow) ? canTotalCountRow : true;\n\n useEffect(() => {\n if (!isEmpty(selected)) {\n setSelectedRows(selected);\n }\n }, [selected]);\n\n useEffect(() => {\n onSelect?.(selectedRows);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [selectedRows]);\n\n const handleRequestSort = (_: MouseEvent<unknown>, property: string) => {\n const isAsc = orderBy === property && order === 'asc';\n setOrder(isAsc ? 'desc' : 'asc');\n setOrderBy(property);\n };\n\n const handleSelectAllClick = (event: ChangeEvent<HTMLInputElement>) => {\n if (event.target.checked) {\n setSelectedRows(resolvedRows);\n return;\n }\n setSelectedRows([]);\n };\n\n const handleClick = (_: MouseEvent<unknown>, row: T) => {\n if (canSelectingSingle) {\n setSelectedRows([row]);\n return;\n }\n setSelectedRows((prev: T[]) => {\n const isIncluded = !!prev.find((item) => isEqual(item, row));\n return isIncluded ? prev?.filter((item: T) => !isEqual(item, row)) : [...prev, row];\n });\n };\n\n const visibleRows = useMemo(\n () => [...resolvedRows].sort(getComparator(order, orderBy)),\n [order, orderBy, resolvedRows],\n );\n const displayRows = useMemo(() => {\n if (!useFixedRowCount || visibleRows.length >= useFixedRowCount) {\n return visibleRows;\n }\n\n return [...visibleRows, ...createEmptyRows(useFixedRowCount - visibleRows.length)];\n }, [useFixedRowCount, visibleRows]);\n\n return (\n <Paper\n className={className}\n sx={mergeSx({ width: '100%' }, canTableRadiusZero && tableRadiusZeroSx)}\n >\n {canUseTreeGridStyle && <GlobalStyles styles={treeGridFontFaceStyles} />}\n <TableContainer\n sx={mergeSx(\n { height: useFixedRowCount ? 'auto' : 500, borderRadius: 2 },\n useFixedRowCount && { overflowY: 'hidden' },\n canTableRadiusZero && tableRadiusZeroSx,\n sx,\n )}\n >\n <Table\n stickyHeader={!canUseTreeGridStyle}\n sx={mergeSx({ minWidth: 200 }, canTableRadiusZero && tableRadiusZeroSx)}\n aria-labelledby=\"owp-data-table\"\n >\n <DataTableHead\n sx={headSx}\n headCells={resolvedHeadCells}\n numSelected={selectedRows.length}\n order={order}\n orderBy={orderBy}\n onSelectAllClick={handleSelectAllClick}\n canCheckbox={!canSelectingSingle && useCheckBox}\n canUseOrderBy={canUseOrderBy}\n canTableRadiusZero={canTableRadiusZero}\n canUseTreeGridStyle={canUseTreeGridStyle}\n onRequestSort={handleRequestSort}\n rowCount={resolvedRows.length}\n />\n <TableBody sx={mergeSx(canTableRadiusZero && tableRadiusZeroSx)}>\n {displayRows.map((row, index) => {\n const isItemSelected = selectedRows.some((item) => isEqual(item, row));\n const isLastRow = displayRows.length - 1 === index;\n const isPlaceholderRow = useFixedRowCount ? index >= visibleRows.length : false;\n const labelId = `${tableIdRef.current}-${index}`;\n\n return (\n <TableRow\n hover\n role={canUseTreeGridStyle ? undefined : 'checkbox'}\n aria-checked={canUseTreeGridStyle ? undefined : isItemSelected}\n tabIndex={-1}\n key={`${labelId}-row-${index}`}\n selected={isItemSelected}\n sx={mergeSx(\n { cursor: isPlaceholderRow ? 'default' : 'pointer' },\n canUseTreeGridStyle && { height: 30 },\n canTableRadiusZero && tableRadiusZeroSx,\n canTableRadiusZero && isLastRow && lastRowRadiusZeroSx,\n )}\n >\n {useCheckBox && (\n <TableCell\n padding=\"checkbox\"\n onClick={(event) => {\n if (!isPlaceholderRow) {\n handleClick(event, row as T);\n }\n }}\n sx={mergeSx(\n rowBorderRight,\n canUseTreeGridStyle && treeGridBodyCellSx,\n canTableRadiusZero && tableRadiusZeroSx,\n )}\n >\n <Checkbox\n color=\"default\"\n checked={isItemSelected}\n disabled={isPlaceholderRow}\n sx={mergeSx(canUseTreeGridStyle && { p: 0 })}\n />\n </TableCell>\n )}\n {resolvedHeadCells.map((cell, cellIndex) => {\n const _key = `${labelId}-row-${index}-cell-${cellIndex}`;\n const rangeLabel = getRangeLabel(row, cell);\n const rowTabIndex = getRowTabIndex(row, index);\n const cellValue = getRowValue(row, String(cell?.id));\n if (cellIndex === 0) {\n return (\n <TableCell\n className={canUseTreeGridStyle ? undefined : 'px-4'}\n key={_key}\n component={canUseTreeGridStyle ? 'td' : 'th'}\n id={labelId}\n scope={canUseTreeGridStyle ? undefined : 'row'}\n padding=\"none\"\n role={canUseTreeGridStyle ? 'cell' : undefined}\n align={getTableCellAlign(cell.valueAlign, 'left')}\n sx={mergeSx(\n resolvedHeadCells.length > 1 && rowBorderRight,\n canUseTreeGridStyle && treeGridBodyCellSx,\n canTableRadiusZero && tableRadiusZeroSx,\n )}\n >\n {cellValue as ReactNode}\n </TableCell>\n );\n }\n\n return (\n <TableCell\n className={canUseTreeGridStyle ? undefined : 'px-4'}\n key={_key}\n role={canUseTreeGridStyle ? 'cell' : undefined}\n align={getTableCellAlign(cell.valueAlign, 'left')}\n sx={mergeSx(\n resolvedHeadCells.length - 1 !== cellIndex && rowBorderRight,\n canUseTreeGridStyle && treeGridBodyCellSx,\n canTableRadiusZero && tableRadiusZeroSx,\n )}\n >\n {cell?.canTextField ? (\n cell?.textFieldType === 'number' ? (\n <OwpNumberField\n variant=\"standard\"\n decimalScale={2}\n label={rangeLabel}\n fullWidth\n size=\"small\"\n sx={getEditableCellSx(cell?.valueAlign)}\n slotProps={{\n input: {\n tabIndex: rowTabIndex,\n },\n inputLabel: {\n shrink: true,\n },\n }}\n isAllowed={(values) => {\n const { floatValue } = values;\n const end = getRowRangeValue(row, cell?.rangeKey)?.end;\n\n if (isNumber(floatValue) && isNumber(end)) {\n return floatValue <= end;\n }\n\n return true;\n }}\n value={cellValue as string | number | undefined}\n onBlur={(evt) => {\n const start = getRowRangeValue(row, cell?.rangeKey)?.start;\n const nextValue = evt.target.value?.replace(/,/g, '');\n\n onBlur?.(\n {\n ...evt,\n target: {\n ...evt.target,\n value:\n isNumber(start) && nextValue !== ''\n ? Number(start > Number(nextValue) ? start : nextValue)\n : nextValue,\n },\n },\n rowTabIndex,\n );\n }}\n />\n ) : (\n <TextField\n variant=\"standard\"\n label={rangeLabel}\n fullWidth\n size=\"small\"\n sx={getEditableCellSx(cell?.valueAlign)}\n slotProps={{\n input: {\n tabIndex: rowTabIndex,\n },\n inputLabel: {\n shrink: true,\n },\n }}\n type={cell?.textFieldType ?? 'text'}\n defaultValue={\n cellValue as string | number | readonly string[] | undefined\n }\n onBlur={(evt) =>\n onBlur?.(\n { ...evt, target: { ...evt.target, value: evt.target.value } },\n rowTabIndex,\n )\n }\n />\n )\n ) : (\n (cellValue as ReactNode)\n )}\n </TableCell>\n );\n })}\n </TableRow>\n );\n })}\n </TableBody>\n </Table>\n </TableContainer>\n {useTotalCountRow && <Divider sx={mergeSx(canTableRadiusZero && tableRadiusZeroSx)} />}\n {useTotalCountRow && (\n <Typography\n className=\"w-full py-8 pr-12\"\n align=\"right\"\n sx={mergeSx(canTableRadiusZero && tableRadiusZeroSx)}\n >\n 전체: {resolvedRows.length.toLocaleString()} 건\n </Typography>\n )}\n </Paper>\n );\n}\n"],"names":["defaultHeadCellsSx","headerBorderRight","grey","rowBorderRight","defaultSortLabelSx","tableRadiusZeroSx","lastRowRadiusZeroSx","treeGridFontSx","treeGridCellBaseSx","treeGridHeaderCellSx","treeGridSortLabelSx","treeGridBodyCellSx","treeGridFontFaceStyles","mergeSx","__name","styles","acc","style","isArray","getFixedRowCount","fixedRowCount","isNumber","createEmptyRows","count","getTableCellAlign","align","fallback","getRowValue","row","key","getComparableValue","value","descendingComparator","a","b","orderBy","aValue","bValue","getComparator","order","getRowRangeValue","rangeKey","getRangeLabel","cell","rangeValue","_a","_b","_c","_d","getRowTabIndex","fallbackIndex","rowIndex","getEditableCellSx","valueAlign","DataTableHead","props","sx","headCells","onSelectAllClick","numSelected","rowCount","onRequestSort","canCheckbox","canUseOrderBy","canTableRadiusZero","canUseTreeGridStyle","createSortHandler","property","event","TableHead","jsxs","TableRow","jsx","TableCell","Checkbox","checkboxClasses","headCell","index","TableSortLabel","Typography","OwpDataTable","className","headSx","rows","selected","canTotalCountRow","canSelectingSingle","onSelect","onBlur","setOrder","useState","setOrderBy","selectedRows","setSelectedRows","tableIdRef","useRef","uniqueId","useFixedRowCount","useMemo","resolvedRows","nextRows","resolvedHeadCells","useCheckBox","isBoolean","useTotalCountRow","useEffect","isEmpty","handleRequestSort","_","handleSelectAllClick","handleClick","prev","item","isEqual","visibleRows","displayRows","Paper","GlobalStyles","TableContainer","Table","TableBody","isItemSelected","isLastRow","isPlaceholderRow","labelId","cellIndex","_key","rangeLabel","rowTabIndex","cellValue","OwpNumberField","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A,uCAHI;AAAA,kCAIN;AAAA,gCAAA,IAKLC;AAAA,8BAAA;AAAA,8BApFEH;AAAA,4BAAA;AAAA,0BAwFX,CAAC;AAAA,wBAAA;AAAA,sBAAA;AAAA,sBArJI,GAAGF,CAAO,QAAQ/C,CAAK;AAAA,oBAAA;AAAA,kBAwJlC,CAAC,EAAA,CACH;AAAA,gBAAA;AAAA,cAAA;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,QAED2B,MAAoB,gBAAAhC,EAACkE,IAAA,EAAQ,IAAI7H,EAAQmD,KAAsB3D,CAAiB,GAAG;AAAA,QACnFmG,MACC,gBAAAlC;AAAA,UAACS;AAAA,UAAA;AAAA,YACC,WAAU;AAAA,YACV,OAAM;AAAA,YACN,IAAIlE,EAAQmD,KAAsB3D,CAAiB;AAAA,YACpD,UAAA;AAAA,cAAA;AAAA,cACM8F,EAAa,OAAO,eAAA;AAAA,cAAiB;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MAC5C;AAAA,IAAA;AAAA,EAAA;AAIR;AArSgBrF,EAAAkE,IAAA;"}
|
|
1
|
+
{"version":3,"file":"OwpDataTable.js","sources":["../../../src/components/OwpTable/OwpDataTable.tsx"],"sourcesContent":["import {\n getTreeGridFontFaceStyles,\n TREEGRID_FONT_FAMILY_STACK,\n} from '@/constants/treeGrid';\nimport { Divider, TextField, Typography, TypographyProps } from '@mui/material';\nimport Checkbox, { checkboxClasses } from '@mui/material/Checkbox';\nimport { grey } from '@mui/material/colors';\nimport GlobalStyles from '@mui/material/GlobalStyles';\nimport Paper from '@mui/material/Paper';\nimport Table from '@mui/material/Table';\nimport TableBody from '@mui/material/TableBody';\nimport TableCell, { TableCellProps } from '@mui/material/TableCell';\nimport TableContainer, { TableContainerProps } from '@mui/material/TableContainer';\nimport TableHead from '@mui/material/TableHead';\nimport TableRow from '@mui/material/TableRow';\nimport TableSortLabel from '@mui/material/TableSortLabel';\nimport { SxProps, Theme } from '@mui/material/styles';\nimport { isArray, isBoolean, isEmpty, isEqual, isNumber, uniqueId } from 'es-toolkit/compat';\nimport { ChangeEvent, MouseEvent, ReactNode, useEffect, useMemo, useRef, useState } from 'react';\nimport { OwpNumberField } from '../OwpNumberField';\n\ntype Row = object;\ntype TableCellAlign = NonNullable<TableCellProps['align']>;\n\ninterface HeadCell {\n enablePadding?: boolean;\n id: string;\n label: string;\n sx?: TypographyProps['sx'];\n inputLabel?: string;\n rangeKey?: string;\n rangeLabel?: { start: string; end: string };\n align?: string;\n valueAlign?: string;\n canTextField?: boolean;\n textFieldType?: string;\n}\n\ninterface DataTableHeadProps {\n sx?: TableCellProps['sx'];\n headCells: HeadCell[];\n numSelected: number;\n onRequestSort: (event: MouseEvent<unknown>, property: string) => void;\n onSelectAllClick: (event: ChangeEvent<HTMLInputElement>) => void;\n order: Order;\n orderBy: string;\n rowCount: number;\n canCheckbox?: boolean;\n canUseOrderBy?: boolean;\n canTableRadiusZero?: boolean;\n canUseTreeGridStyle?: boolean;\n}\n\ninterface OwpDataTableProps<T extends Row = Row> {\n className?: string;\n sx?: TableContainerProps['sx'];\n headSx?: TableCellProps['sx'];\n headCells: HeadCell[];\n rows?: T[];\n canCheckbox?: boolean;\n canTotalCountRow?: boolean;\n selected?: T[];\n onSelect?: (rows: T[] | []) => void;\n onBlur?: (evt: OwpDataTableBlurEvent, dataIndex: number) => void;\n canSelectingSingle?: boolean;\n canUseOrderBy?: boolean;\n canTableRadiusZero?: boolean;\n canUseTreeGridStyle?: boolean;\n fixedRowCount?: number;\n}\n\nconst defaultHeadCellsSx = {\n bgcolor: '#586980',\n borderTopLeftRadius: 'inherit',\n borderTopRightRadius: 'inherit',\n} as const;\n\nconst headerBorderRight = {\n borderRight: `1px solid ${grey['A200']}`,\n};\n\nconst rowBorderRight = {\n borderRight: `1px solid ${grey[400]}`,\n};\n\nconst defaultSortLabelSx = {\n '&.MuiTableSortLabel-root': {\n color: grey['A100'],\n },\n '&.MuiTableSortLabel-root:hover': {\n color: grey['A100'],\n },\n '&.Mui-active': {\n color: grey['A100'],\n },\n '& .MuiTableSortLabel-icon': {\n color: `${grey['A100']} !important`,\n },\n} as const;\n\nconst tableRadiusZeroSx = {\n borderRadius: 0,\n} as const;\n\nconst lastRowRadiusZeroSx = {\n '& > th, & > td': {\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 0,\n },\n} as const;\n\nconst treeGridFontSx = {\n fontFamily: TREEGRID_FONT_FAMILY_STACK,\n fontSize: '14px',\n fontWeight: 'normal',\n lineHeight: '16px',\n} as const;\n\nconst treeGridCellBaseSx = {\n ...treeGridFontSx,\n boxSizing: 'border-box',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n verticalAlign: 'middle',\n whiteSpace: 'nowrap',\n} as const;\n\nconst treeGridHeaderCellSx = {\n ...treeGridCellBaseSx,\n bgcolor: '#586980',\n borderBottom: '1px solid #6F7F94',\n borderRight: '1px solid #6F7F94',\n color: 'white',\n height: 33,\n minHeight: 33,\n p: '7px 2px 6px 10px',\n} as const;\n\nconst treeGridSortLabelSx = {\n '&.MuiTableSortLabel-root': {\n color: 'inherit',\n display: 'flex',\n fontFamily: 'inherit',\n fontSize: 'inherit',\n fontWeight: 'inherit',\n justifyContent: 'center',\n lineHeight: 'inherit',\n overflow: 'hidden',\n position: 'relative',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n width: '100%',\n },\n '&.MuiTableSortLabel-root:hover': {\n color: 'inherit',\n },\n '&.Mui-active': {\n color: 'inherit',\n },\n '& .MuiTableSortLabel-icon': {\n color: 'currentColor !important',\n margin: 0,\n position: 'absolute',\n right: 0,\n },\n} as const;\n\nconst treeGridBodyCellSx = {\n ...treeGridCellBaseSx,\n borderBottom: '1px solid #CDD8E4',\n borderRight: '1px solid #CDD8E4',\n color: '#111112',\n p: '7px 10px 6px',\n} as const;\n\n/**\n * sx 병합 유틸\n * @param styles 병합 대상 sx 목록\n */\nconst mergeSx = (...styles: Array<SxProps<Theme> | undefined | false>): SxProps<Theme> =>\n styles.reduce<Array<Exclude<SxProps<Theme>, readonly unknown[]>>>((acc, style) => {\n if (!style) {\n return acc;\n }\n\n return [...acc, ...(isArray(style) ? style : [style])];\n }, []) as SxProps<Theme>;\n\n/**\n * 고정 row 수 계산\n * @param fixedRowCount 고정 row 수\n */\nconst getFixedRowCount = (fixedRowCount?: number) => {\n if (!isNumber(fixedRowCount) || fixedRowCount < 1) {\n return undefined;\n }\n\n return fixedRowCount;\n};\n\n/**\n * 빈 row 목록 생성\n * @param count 생성 수\n */\nconst createEmptyRows = (count: number) => Array.from({ length: count }, () => ({}) as Row);\n\n/**\n * TableCell align 정규화\n * @param align align 값\n * @param fallback 기본 align 값\n */\nconst getTableCellAlign = (align: string | undefined, fallback: TableCellAlign): TableCellAlign => {\n switch (align) {\n case 'center':\n case 'right':\n case 'left':\n case 'inherit':\n case 'justify':\n return align;\n default:\n return fallback;\n }\n};\n\n/**\n * row 값 조회\n * @param row row 값\n * @param key 조회 key\n */\nconst getRowValue = (row: Row, key?: string) => {\n if (!key) {\n return undefined;\n }\n\n return (row as Record<string, unknown>)?.[key];\n};\n\nconst getComparableValue = (value: unknown) => {\n if (typeof value === 'string' || isNumber(value)) {\n return value;\n }\n\n return undefined;\n};\n\nfunction descendingComparator(a: Row, b: Row, orderBy: string) {\n const aValue = getComparableValue(getRowValue(a, orderBy));\n const bValue = getComparableValue(getRowValue(b, orderBy));\n\n if (bValue == null && aValue == null) {\n return 0;\n }\n if (bValue == null) {\n return -1;\n }\n if (aValue == null) {\n return 1;\n }\n if (bValue < aValue) {\n return -1;\n }\n if (bValue > aValue) {\n return 1;\n }\n return 0;\n}\n\ntype Order = 'asc' | 'desc';\ntype OwpDataTableBlurEvent = Record<string, unknown> & {\n target: {\n value: string | number | undefined;\n };\n};\n\nfunction getComparator(order: Order, orderBy: string): (a: Row, b: Row) => number {\n return order === 'desc'\n ? (a, b) => descendingComparator(a, b, orderBy)\n : (a, b) => -descendingComparator(a, b, orderBy);\n}\n\ntype RowRangeValue = {\n start?: string | number;\n end?: string | number;\n};\n\nconst getRowRangeValue = (row: Row, rangeKey?: string) => {\n if (!rangeKey) {\n return undefined;\n }\n\n return getRowValue(row, rangeKey) as RowRangeValue | undefined;\n};\n\nconst getRangeLabel = (row: Row, cell: HeadCell) => {\n if (!(cell.inputLabel ?? cell.rangeKey)) {\n return '';\n }\n\n const rangeValue = getRowRangeValue(row, cell.rangeKey);\n\n return `${cell.rangeLabel?.start ? `${cell.rangeLabel?.start}: ` : ''}${rangeValue?.start} ~ ${cell.rangeLabel?.end ? `${cell.rangeLabel?.end}: ` : ''}${rangeValue?.end}`;\n};\n\nconst getRowTabIndex = (row: Row, fallbackIndex: number) => {\n const rowIndex = getRowValue(row, 'index');\n\n return isNumber(rowIndex) ? rowIndex : fallbackIndex;\n};\n\nconst getEditableCellSx = (valueAlign?: HeadCell['valueAlign']) => ({\n '& input': {\n textAlign: valueAlign ?? 'center',\n },\n height: 34,\n});\n\nfunction DataTableHead(props: DataTableHeadProps) {\n const {\n sx,\n headCells,\n onSelectAllClick,\n order,\n orderBy,\n numSelected,\n rowCount,\n onRequestSort,\n canCheckbox,\n canUseOrderBy = true,\n canTableRadiusZero,\n canUseTreeGridStyle,\n } = props;\n const createSortHandler = (property: string) => (event: MouseEvent<unknown>) => {\n onRequestSort(event, property);\n };\n\n return (\n <TableHead sx={mergeSx(canTableRadiusZero && tableRadiusZeroSx)}>\n <TableRow\n sx={mergeSx(canUseTreeGridStyle && { height: 33 }, canTableRadiusZero && tableRadiusZeroSx)}\n >\n {canCheckbox && (\n <TableCell\n padding=\"checkbox\"\n className=\"text-white\"\n sx={mergeSx(\n {\n ...defaultHeadCellsSx,\n ...headerBorderRight,\n },\n canUseTreeGridStyle && treeGridHeaderCellSx,\n canTableRadiusZero && tableRadiusZeroSx,\n sx,\n )}\n >\n <Checkbox\n color=\"default\"\n sx={mergeSx(\n {\n [`&, &.${checkboxClasses.checked}`]: {\n color: grey[50],\n },\n },\n canUseTreeGridStyle && { p: 0 },\n )}\n indeterminate={numSelected > 0 && numSelected < rowCount}\n checked={rowCount > 0 && numSelected === rowCount}\n onChange={onSelectAllClick}\n />\n </TableCell>\n )}\n {headCells.map((headCell, index) => (\n <TableCell\n className={canUseTreeGridStyle ? undefined : 'pl-20'}\n key={headCell.id}\n align={getTableCellAlign(headCell.align, 'center')}\n padding={headCell.enablePadding ? 'normal' : 'none'}\n sortDirection={orderBy === headCell.id ? order : false}\n sx={mergeSx(\n {\n ...defaultHeadCellsSx,\n ...(headCells.length - 1 !== index && headerBorderRight),\n },\n canUseTreeGridStyle && treeGridHeaderCellSx,\n canTableRadiusZero && tableRadiusZeroSx,\n sx,\n canUseTreeGridStyle && headCell?.sx,\n )}\n >\n {canUseOrderBy ? (\n <TableSortLabel\n sx={canUseTreeGridStyle ? treeGridSortLabelSx : defaultSortLabelSx}\n active={orderBy === headCell.id}\n direction={orderBy === headCell.id ? order : 'asc'}\n onClick={createSortHandler(headCell.id)}\n >\n {canUseTreeGridStyle ? (\n headCell.label\n ) : (\n <Typography className=\"text-white text-lg font-medium\" sx={headCell?.sx}>\n {headCell.label}\n </Typography>\n )}\n </TableSortLabel>\n ) : canUseTreeGridStyle ? (\n headCell.label\n ) : (\n <Typography className=\"text-white text-lg font-medium\" sx={headCell?.sx}>\n {headCell.label}\n </Typography>\n )}\n </TableCell>\n ))}\n </TableRow>\n </TableHead>\n );\n}\n\n/**\n * OwpDataTable 컴포넌트\n * @param className CSS 클래스명\n * @param sx sx 값\n * @param headSx headSx 값\n * @param headCells headCells 값\n * @param rows 행 데이터 목록\n * @param selected selected 값\n * @param canTableRadiusZero 테이블 radius 0 사용 여부\n * @param canUseTreeGridStyle TreeGrid 스타일 사용 여부\n * @param fixedRowCount 고정 row 수\n */\nexport function OwpDataTable<T extends Row = Row>({\n className,\n sx,\n headSx,\n headCells,\n rows,\n selected,\n canCheckbox,\n canTotalCountRow,\n canSelectingSingle,\n canUseOrderBy = true,\n canTableRadiusZero = false,\n canUseTreeGridStyle = false,\n fixedRowCount,\n onSelect,\n onBlur,\n}: OwpDataTableProps<T>) {\n const [order, setOrder] = useState<Order>('asc');\n const [orderBy, setOrderBy] = useState<string>('');\n const [selectedRows, setSelectedRows] = useState<T[] | []>([]);\n const tableIdRef = useRef(uniqueId('owp-data-table'));\n const useFixedRowCount = useMemo(() => getFixedRowCount(fixedRowCount), [fixedRowCount]);\n const resolvedRows = useMemo(() => {\n const nextRows = isArray(rows) ? rows : [];\n\n return useFixedRowCount ? nextRows.slice(0, useFixedRowCount) : nextRows;\n }, [rows, useFixedRowCount]);\n const resolvedHeadCells = useMemo(() => headCells ?? [], [headCells]);\n const useCheckBox = isBoolean(canCheckbox) ? canCheckbox : true;\n const useTotalCountRow = isBoolean(canTotalCountRow) ? canTotalCountRow : true;\n\n useEffect(() => {\n if (!isEmpty(selected)) {\n setSelectedRows(selected);\n }\n }, [selected]);\n\n useEffect(() => {\n onSelect?.(selectedRows);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [selectedRows]);\n\n const handleRequestSort = (_: MouseEvent<unknown>, property: string) => {\n const isAsc = orderBy === property && order === 'asc';\n setOrder(isAsc ? 'desc' : 'asc');\n setOrderBy(property);\n };\n\n const handleSelectAllClick = (event: ChangeEvent<HTMLInputElement>) => {\n if (event.target.checked) {\n setSelectedRows(resolvedRows);\n return;\n }\n setSelectedRows([]);\n };\n\n const handleClick = (_: MouseEvent<unknown>, row: T) => {\n if (canSelectingSingle) {\n setSelectedRows([row]);\n return;\n }\n setSelectedRows((prev: T[]) => {\n const isIncluded = !!prev.find((item) => isEqual(item, row));\n return isIncluded ? prev?.filter((item: T) => !isEqual(item, row)) : [...prev, row];\n });\n };\n\n const visibleRows = useMemo(\n () => [...resolvedRows].sort(getComparator(order, orderBy)),\n [order, orderBy, resolvedRows],\n );\n const displayRows = useMemo(() => {\n if (!useFixedRowCount || visibleRows.length >= useFixedRowCount) {\n return visibleRows;\n }\n\n return [...visibleRows, ...createEmptyRows(useFixedRowCount - visibleRows.length)];\n }, [useFixedRowCount, visibleRows]);\n\n return (\n <Paper\n className={className}\n sx={mergeSx({ width: '100%' }, canTableRadiusZero && tableRadiusZeroSx)}\n >\n {canUseTreeGridStyle && <GlobalStyles styles={getTreeGridFontFaceStyles()} />}\n <TableContainer\n sx={mergeSx(\n { height: useFixedRowCount ? 'auto' : 500, borderRadius: 2 },\n useFixedRowCount && { overflowY: 'hidden' },\n canTableRadiusZero && tableRadiusZeroSx,\n sx,\n )}\n >\n <Table\n stickyHeader={!canUseTreeGridStyle}\n sx={mergeSx({ minWidth: 200 }, canTableRadiusZero && tableRadiusZeroSx)}\n aria-labelledby=\"owp-data-table\"\n >\n <DataTableHead\n sx={headSx}\n headCells={resolvedHeadCells}\n numSelected={selectedRows.length}\n order={order}\n orderBy={orderBy}\n onSelectAllClick={handleSelectAllClick}\n canCheckbox={!canSelectingSingle && useCheckBox}\n canUseOrderBy={canUseOrderBy}\n canTableRadiusZero={canTableRadiusZero}\n canUseTreeGridStyle={canUseTreeGridStyle}\n onRequestSort={handleRequestSort}\n rowCount={resolvedRows.length}\n />\n <TableBody sx={mergeSx(canTableRadiusZero && tableRadiusZeroSx)}>\n {displayRows.map((row, index) => {\n const isItemSelected = selectedRows.some((item) => isEqual(item, row));\n const isLastRow = displayRows.length - 1 === index;\n const isPlaceholderRow = useFixedRowCount ? index >= visibleRows.length : false;\n const labelId = `${tableIdRef.current}-${index}`;\n\n return (\n <TableRow\n hover\n role={canUseTreeGridStyle ? undefined : 'checkbox'}\n aria-checked={canUseTreeGridStyle ? undefined : isItemSelected}\n tabIndex={-1}\n key={`${labelId}-row-${index}`}\n selected={isItemSelected}\n sx={mergeSx(\n { cursor: isPlaceholderRow ? 'default' : 'pointer' },\n canUseTreeGridStyle && { height: 30 },\n canTableRadiusZero && tableRadiusZeroSx,\n canTableRadiusZero && isLastRow && lastRowRadiusZeroSx,\n )}\n >\n {useCheckBox && (\n <TableCell\n padding=\"checkbox\"\n onClick={(event) => {\n if (!isPlaceholderRow) {\n handleClick(event, row as T);\n }\n }}\n sx={mergeSx(\n rowBorderRight,\n canUseTreeGridStyle && treeGridBodyCellSx,\n canTableRadiusZero && tableRadiusZeroSx,\n )}\n >\n <Checkbox\n color=\"default\"\n checked={isItemSelected}\n disabled={isPlaceholderRow}\n sx={mergeSx(canUseTreeGridStyle && { p: 0 })}\n />\n </TableCell>\n )}\n {resolvedHeadCells.map((cell, cellIndex) => {\n const _key = `${labelId}-row-${index}-cell-${cellIndex}`;\n const rangeLabel = getRangeLabel(row, cell);\n const rowTabIndex = getRowTabIndex(row, index);\n const cellValue = getRowValue(row, String(cell?.id));\n if (cellIndex === 0) {\n return (\n <TableCell\n className={canUseTreeGridStyle ? undefined : 'px-4'}\n key={_key}\n component={canUseTreeGridStyle ? 'td' : 'th'}\n id={labelId}\n scope={canUseTreeGridStyle ? undefined : 'row'}\n padding=\"none\"\n role={canUseTreeGridStyle ? 'cell' : undefined}\n align={getTableCellAlign(cell.valueAlign, 'left')}\n sx={mergeSx(\n resolvedHeadCells.length > 1 && rowBorderRight,\n canUseTreeGridStyle && treeGridBodyCellSx,\n canTableRadiusZero && tableRadiusZeroSx,\n )}\n >\n {cellValue as ReactNode}\n </TableCell>\n );\n }\n\n return (\n <TableCell\n className={canUseTreeGridStyle ? undefined : 'px-4'}\n key={_key}\n role={canUseTreeGridStyle ? 'cell' : undefined}\n align={getTableCellAlign(cell.valueAlign, 'left')}\n sx={mergeSx(\n resolvedHeadCells.length - 1 !== cellIndex && rowBorderRight,\n canUseTreeGridStyle && treeGridBodyCellSx,\n canTableRadiusZero && tableRadiusZeroSx,\n )}\n >\n {cell?.canTextField ? (\n cell?.textFieldType === 'number' ? (\n <OwpNumberField\n variant=\"standard\"\n decimalScale={2}\n label={rangeLabel}\n fullWidth\n size=\"small\"\n sx={getEditableCellSx(cell?.valueAlign)}\n slotProps={{\n input: {\n tabIndex: rowTabIndex,\n },\n inputLabel: {\n shrink: true,\n },\n }}\n isAllowed={(values) => {\n const { floatValue } = values;\n const end = getRowRangeValue(row, cell?.rangeKey)?.end;\n\n if (isNumber(floatValue) && isNumber(end)) {\n return floatValue <= end;\n }\n\n return true;\n }}\n value={cellValue as string | number | undefined}\n onBlur={(evt) => {\n const start = getRowRangeValue(row, cell?.rangeKey)?.start;\n const nextValue = evt.target.value?.replace(/,/g, '');\n\n onBlur?.(\n {\n ...evt,\n target: {\n ...evt.target,\n value:\n isNumber(start) && nextValue !== ''\n ? Number(start > Number(nextValue) ? start : nextValue)\n : nextValue,\n },\n },\n rowTabIndex,\n );\n }}\n />\n ) : (\n <TextField\n variant=\"standard\"\n label={rangeLabel}\n fullWidth\n size=\"small\"\n sx={getEditableCellSx(cell?.valueAlign)}\n slotProps={{\n input: {\n tabIndex: rowTabIndex,\n },\n inputLabel: {\n shrink: true,\n },\n }}\n type={cell?.textFieldType ?? 'text'}\n defaultValue={\n cellValue as string | number | readonly string[] | undefined\n }\n onBlur={(evt) =>\n onBlur?.(\n { ...evt, target: { ...evt.target, value: evt.target.value } },\n rowTabIndex,\n )\n }\n />\n )\n ) : (\n (cellValue as ReactNode)\n )}\n </TableCell>\n );\n })}\n </TableRow>\n );\n })}\n </TableBody>\n </Table>\n </TableContainer>\n {useTotalCountRow && <Divider sx={mergeSx(canTableRadiusZero && tableRadiusZeroSx)} />}\n {useTotalCountRow && (\n <Typography\n className=\"w-full py-8 pr-12\"\n align=\"right\"\n sx={mergeSx(canTableRadiusZero && tableRadiusZeroSx)}\n >\n 전체: {resolvedRows.length.toLocaleString()} 건\n </Typography>\n )}\n </Paper>\n );\n}\n"],"names":["defaultHeadCellsSx","headerBorderRight","grey","rowBorderRight","defaultSortLabelSx","tableRadiusZeroSx","lastRowRadiusZeroSx","treeGridFontSx","TREEGRID_FONT_FAMILY_STACK","treeGridCellBaseSx","treeGridHeaderCellSx","treeGridSortLabelSx","treeGridBodyCellSx","mergeSx","__name","styles","acc","style","isArray","getFixedRowCount","fixedRowCount","isNumber","createEmptyRows","count","getTableCellAlign","align","fallback","getRowValue","row","key","getComparableValue","value","descendingComparator","a","b","orderBy","aValue","bValue","getComparator","order","getRowRangeValue","rangeKey","getRangeLabel","cell","rangeValue","_a","_b","_c","_d","getRowTabIndex","fallbackIndex","rowIndex","getEditableCellSx","valueAlign","DataTableHead","props","sx","headCells","onSelectAllClick","numSelected","rowCount","onRequestSort","canCheckbox","canUseOrderBy","canTableRadiusZero","canUseTreeGridStyle","createSortHandler","property","event","TableHead","jsxs","TableRow","jsx","TableCell","Checkbox","checkboxClasses","headCell","index","TableSortLabel","Typography","OwpDataTable","className","headSx","rows","selected","canTotalCountRow","canSelectingSingle","onSelect","onBlur","setOrder","useState","setOrderBy","selectedRows","setSelectedRows","tableIdRef","useRef","uniqueId","useFixedRowCount","useMemo","resolvedRows","nextRows","resolvedHeadCells","useCheckBox","isBoolean","useTotalCountRow","useEffect","isEmpty","handleRequestSort","_","handleSelectAllClick","handleClick","prev","item","isEqual","visibleRows","displayRows","Paper","GlobalStyles","getTreeGridFontFaceStyles","TableContainer","Table","TableBody","isItemSelected","isLastRow","isPlaceholderRow","labelId","cellIndex","_key","rangeLabel","rowTabIndex","cellValue","OwpNumberField","values","floatValue","end","evt","start","nextValue","TextField","Divider"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAuEA,MAAMA,KAAqB;AAAA,EACzB,SAAS;AAAA,EACT,qBAAqB;AAAA,EACrB,sBAAsB;AACxB,GAEMC,KAAoB;AAAA,EACxB,aAAa,aAAaC,EAAK,IAAO;AACxC,GAEMC,IAAiB;AAAA,EACrB,aAAa,aAAaD,EAAK,GAAG,CAAC;AACrC,GAEME,KAAqB;AAAA,EACzB,4BAA4B;AAAA,IAC1B,OAAOF,EAAK;AAAA,EAAM;AAAA,EAEpB,kCAAkC;AAAA,IAChC,OAAOA,EAAK;AAAA,EAAM;AAAA,EAEpB,gBAAgB;AAAA,IACd,OAAOA,EAAK;AAAA,EAAM;AAAA,EAEpB,6BAA6B;AAAA,IAC3B,OA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;AAAA,IAAA;AAAA,EAAA;AAIR;AArSgBrF,EAAAkE,IAAA;"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
var x = Object.defineProperty;
|
|
2
|
+
var n = (e, t) => x(e, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { jsxs as a, jsx as m, Fragment as D } 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 { TableCell as d, TableBody as F, Checkbox as T } from "@mui/material";
|
|
5
|
+
import { clsx as N } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
6
|
+
import S from "dayjs";
|
|
7
|
+
import { Fragment as H } from "react";
|
|
8
|
+
import { StyledTableRow as M, StyledTable as k } from "./OwpTable.js";
|
|
9
|
+
import { isNaN as l } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isNaN.js";
|
|
10
|
+
import { toNumber as y } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/util/toNumber.js";
|
|
11
|
+
const E = 28, R = {
|
|
12
|
+
"&&": {
|
|
13
|
+
fontFamily: "inherit",
|
|
14
|
+
fontSize: "1.7rem",
|
|
15
|
+
fontWeight: 600,
|
|
16
|
+
lineHeight: "normal",
|
|
17
|
+
minHeight: "unset",
|
|
18
|
+
padding: "7px 10px"
|
|
19
|
+
}
|
|
20
|
+
}, $ = {
|
|
21
|
+
borderRadius: 0,
|
|
22
|
+
overflow: "visible"
|
|
23
|
+
}, u = {
|
|
24
|
+
borderTop: "1px solid #CDD8E4"
|
|
25
|
+
}, c = /* @__PURE__ */ n((e) => /* @__PURE__ */ a(D, { children: [
|
|
26
|
+
e,
|
|
27
|
+
/* @__PURE__ */ m("span", { className: "ml-4 text-red-600", children: "*" })
|
|
28
|
+
] }), "getRequiredTitle"), j = /* @__PURE__ */ n((e, t) => e == null ? void 0 : e[t], "getFieldTableValue"), z = /* @__PURE__ */ n((e, t) => typeof t == "function" ? t(e) : l(y(e)) ? e === "Y" : !!Number(e), "getCheckboxChecked"), B = /* @__PURE__ */ n((e) => e.withTime ? "YYYY-MM-DD HH:mm" : e.withTimeAndSec ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD", "getDateFormat"), L = /* @__PURE__ */ n((e, t, s) => {
|
|
29
|
+
const i = j(t, e.key);
|
|
30
|
+
return typeof e.render == "function" ? e.render() : e.useCheckbox ? /* @__PURE__ */ m(
|
|
31
|
+
T,
|
|
32
|
+
{
|
|
33
|
+
checked: z(i, e.validate),
|
|
34
|
+
sx: { "& .MuiSvgIcon-root": { fontSize: (s == null ? void 0 : s.fontSize) ?? E } }
|
|
35
|
+
}
|
|
36
|
+
) : e.useDate ? i && S(i).format(B(e)) : e.disableLocaleString ? i : i == null ? void 0 : i.toLocaleString();
|
|
37
|
+
}, "renderFieldTableCellValue");
|
|
38
|
+
function Z({
|
|
39
|
+
layout: e,
|
|
40
|
+
titleWidth: t,
|
|
41
|
+
titleSx: s,
|
|
42
|
+
treeGridTitleCellSx: i,
|
|
43
|
+
cellSx: f,
|
|
44
|
+
data: h,
|
|
45
|
+
colGroupSlot: b,
|
|
46
|
+
className: w,
|
|
47
|
+
tableLayout: g = "fixed",
|
|
48
|
+
canUseTreeGridStyle: o = !1
|
|
49
|
+
}) {
|
|
50
|
+
return /* @__PURE__ */ a(
|
|
51
|
+
k,
|
|
52
|
+
{
|
|
53
|
+
canUseTreeGridStyle: o,
|
|
54
|
+
className: N("w-full", w),
|
|
55
|
+
containerProps: { sx: o ? $ : void 0 },
|
|
56
|
+
tableLayout: g,
|
|
57
|
+
children: [
|
|
58
|
+
b,
|
|
59
|
+
/* @__PURE__ */ m(F, { children: e.map((Y, p) => /* @__PURE__ */ m(M, { children: Y.map((r, C) => /* @__PURE__ */ a(H, { children: [
|
|
60
|
+
/* @__PURE__ */ m(
|
|
61
|
+
d,
|
|
62
|
+
{
|
|
63
|
+
component: "th",
|
|
64
|
+
className: "whitespace-pre-wrap",
|
|
65
|
+
width: t ?? 200,
|
|
66
|
+
sx: {
|
|
67
|
+
...o ? R : {},
|
|
68
|
+
...o ? i ?? {} : {},
|
|
69
|
+
...o && p === 0 ? u : {},
|
|
70
|
+
...s ?? {}
|
|
71
|
+
},
|
|
72
|
+
rowSpan: r == null ? void 0 : r.rowSpan,
|
|
73
|
+
children: r.required ? c(r.title) : r.title
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
/* @__PURE__ */ m(
|
|
77
|
+
d,
|
|
78
|
+
{
|
|
79
|
+
className: "whitespace-pre-wrap",
|
|
80
|
+
sx: {
|
|
81
|
+
...o && p === 0 ? u : {},
|
|
82
|
+
...f ?? {}
|
|
83
|
+
},
|
|
84
|
+
style: (r == null ? void 0 : r.style) ?? {},
|
|
85
|
+
colSpan: r == null ? void 0 : r.colSpan,
|
|
86
|
+
rowSpan: r == null ? void 0 : r.rowSpan,
|
|
87
|
+
children: L(r, h, f)
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
] }, `owp-field-cell-${p}-${C}`)) }, `owp-field-col-${p}`)) })
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
n(Z, "OwpFieldTable");
|
|
96
|
+
export {
|
|
97
|
+
Z as OwpFieldTable
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=OwpFieldTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OwpFieldTable.js","sources":["../../../src/components/OwpTable/OwpFieldTable.tsx"],"sourcesContent":["import { Checkbox, TableBody, TableCell, type TableCellProps } from '@mui/material';\nimport clsx from 'clsx';\nimport dayjs from 'dayjs';\nimport { isNaN, toNumber } from 'es-toolkit/compat';\nimport { Fragment, type CSSProperties, type ReactNode } from 'react';\nimport { StyledTable, StyledTableRow } from './OwpTable';\n\ntype OwpFieldTableCell = {\n title: string;\n key: string;\n required?: boolean;\n disableLocaleString?: boolean;\n useDate?: boolean;\n withTime?: boolean;\n withTimeAndSec?: boolean;\n useCheckbox?: boolean;\n colSpan?: number;\n rowSpan?: number;\n style?: CSSProperties;\n render?: () => ReactNode;\n validate?: (v?: number | string) => boolean;\n};\n\ntype OwpFieldTableValue = string | number | '';\ntype OwpFieldTableDataRecord = Record<string, OwpFieldTableValue | undefined>;\n\ninterface OwpFieldTableProps {\n layout: OwpFieldTableCell[][];\n data?: OwpFieldTableDataRecord;\n titleSx?: TableCellProps['sx'];\n treeGridTitleCellSx?: TableCellProps['sx'] & CSSProperties;\n cellSx?: TableCellProps['sx'] & CSSProperties;\n titleWidth?: number | string;\n colGroupSlot?: ReactNode;\n className?: string;\n tableLayout?: 'auto' | 'fixed';\n canUseTreeGridStyle?: boolean;\n}\n\nconst DEFAULT_CHECKBOX_FONT_SIZE = 28;\n\nconst defaultTreeGridTitleCellSx = {\n '&&': {\n fontFamily: 'inherit',\n fontSize: '1.7rem',\n fontWeight: 600,\n lineHeight: 'normal',\n minHeight: 'unset',\n padding: '7px 10px',\n },\n} as const;\n\nconst treeGridContainerSx = {\n borderRadius: 0,\n overflow: 'visible',\n} as const;\n\nconst treeGridFirstRowCellSx = {\n borderTop: '1px solid #CDD8E4',\n} as const;\n\n/** 필수 헤더 타이틀 */\nconst getRequiredTitle = (title: string) => (\n <>\n {title}\n <span className=\"ml-4 text-red-600\">*</span>\n </>\n);\n\nconst getFieldTableValue = (data: OwpFieldTableProps['data'], key: string) => {\n return data?.[key];\n};\n\nconst getCheckboxChecked = (\n value: OwpFieldTableValue | undefined,\n validate?: OwpFieldTableCell['validate'],\n) => {\n if (typeof validate === 'function') {\n return validate(value);\n }\n\n if (isNaN(toNumber(value))) {\n return value === 'Y';\n }\n\n return Boolean(Number(value));\n};\n\nconst getDateFormat = (cell: OwpFieldTableCell) => {\n if (cell.withTime) {\n return 'YYYY-MM-DD HH:mm';\n }\n\n if (cell.withTimeAndSec) {\n return 'YYYY-MM-DD HH:mm:ss';\n }\n\n return 'YYYY-MM-DD';\n};\n\nconst renderFieldTableCellValue = (\n cell: OwpFieldTableCell,\n data: OwpFieldTableProps['data'],\n cellSx?: OwpFieldTableProps['cellSx'],\n): ReactNode => {\n const value = getFieldTableValue(data, cell.key);\n\n if (typeof cell.render === 'function') {\n return cell.render();\n }\n\n if (cell.useCheckbox) {\n return (\n <Checkbox\n checked={getCheckboxChecked(value, cell.validate)}\n sx={{ '& .MuiSvgIcon-root': { fontSize: cellSx?.fontSize ?? DEFAULT_CHECKBOX_FONT_SIZE } }}\n />\n );\n }\n\n if (cell.useDate) {\n return value ? dayjs(value).format(getDateFormat(cell)) : value;\n }\n\n if (cell.disableLocaleString) {\n return value;\n }\n\n return value?.toLocaleString();\n};\n\n/**\n * OwpFieldTable 컴포넌트\n * @param layout layout 값\n * @param titleWidth titleWidth 값\n * @param titleSx titleSx 값\n * @param treeGridTitleCellSx TreeGrid title cell sx 값\n * @param cellSx cellSx 값\n * @param data 데이터\n * @param colGroupSlot colGroupSlot 값\n * @param className className 값\n * @param tableLayout tableLayout 값\n * @param canUseTreeGridStyle TreeGrid 스타일 사용 여부\n */\nexport function OwpFieldTable({\n layout,\n titleWidth,\n titleSx,\n treeGridTitleCellSx,\n cellSx,\n data,\n colGroupSlot,\n className,\n tableLayout = 'fixed',\n canUseTreeGridStyle = false,\n}: OwpFieldTableProps) {\n return (\n <StyledTable\n canUseTreeGridStyle={canUseTreeGridStyle}\n className={clsx('w-full', className)}\n containerProps={{ sx: canUseTreeGridStyle ? treeGridContainerSx : undefined }}\n tableLayout={tableLayout}\n >\n {colGroupSlot}\n <TableBody>\n {layout.map((cols, rowIndex) => (\n <StyledTableRow key={`owp-field-col-${rowIndex}`}>\n {cols.map((col, colIndex) => (\n <Fragment key={`owp-field-cell-${rowIndex}-${colIndex}`}>\n <TableCell\n component=\"th\"\n className=\"whitespace-pre-wrap\"\n width={titleWidth ?? 200}\n sx={{\n ...(canUseTreeGridStyle ? defaultTreeGridTitleCellSx : {}),\n ...(canUseTreeGridStyle ? (treeGridTitleCellSx ?? {}) : {}),\n ...(canUseTreeGridStyle && rowIndex === 0 ? treeGridFirstRowCellSx : {}),\n ...(titleSx ?? {}),\n }}\n rowSpan={col?.rowSpan}\n >\n {col.required ? getRequiredTitle(col.title) : col.title}\n </TableCell>\n <TableCell\n className=\"whitespace-pre-wrap\"\n sx={{\n ...(canUseTreeGridStyle && rowIndex === 0 ? treeGridFirstRowCellSx : {}),\n ...(cellSx ?? {}),\n }}\n style={col?.style ?? {}}\n colSpan={col?.colSpan}\n rowSpan={col?.rowSpan}\n >\n {renderFieldTableCellValue(col, data, cellSx)}\n </TableCell>\n </Fragment>\n ))}\n </StyledTableRow>\n ))}\n </TableBody>\n </StyledTable>\n );\n}\n"],"names":["DEFAULT_CHECKBOX_FONT_SIZE","defaultTreeGridTitleCellSx","treeGridContainerSx","treeGridFirstRowCellSx","getRequiredTitle","__name","title","jsxs","Fragment","jsx","getFieldTableValue","data","key","getCheckboxChecked","value","validate","isNaN","toNumber","getDateFormat","cell","renderFieldTableCellValue","cellSx","Checkbox","dayjs","OwpFieldTable","layout","titleWidth","titleSx","treeGridTitleCellSx","colGroupSlot","className","tableLayout","canUseTreeGridStyle","StyledTable","clsx","TableBody","cols","rowIndex","StyledTableRow","col","colIndex","TableCell"],"mappings":";;;;;;;;;;AAuCA,MAAMA,IAA6B,IAE7BC,IAA6B;AAAA,EACjC,MAAM;AAAA,IACJ,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,SAAS;AAAA,EAAA;AAEb,GAEMC,IAAsB;AAAA,EAC1B,cAAc;AAAA,EACd,UAAU;AACZ,GAEMC,IAAyB;AAAA,EAC7B,WAAW;AACb,GAGMC,IAAmB,gBAAAC,EAAA,CAACC,MACxB,gBAAAC,EAAAC,GAAA,EACG,UAAA;AAAA,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AAQ,EA+B9C,CACD,EAAA,CACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;AA1DgBhC,EAAAmB,GAAA;"}
|
|
@@ -1,78 +1,72 @@
|
|
|
1
|
-
var
|
|
2
|
-
var l = (t, o) =>
|
|
3
|
-
import { jsxs as f, jsx as e, Fragment as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import D from "@mui/material/
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import j from "@mui/material/
|
|
13
|
-
import z from "@mui/material/
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
1
|
+
var y = Object.defineProperty;
|
|
2
|
+
var l = (t, o) => y(t, "name", { value: o, configurable: !0 });
|
|
3
|
+
import { jsxs as f, jsx as e, Fragment as C } 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 { getTreeGridFontFaceStyles as v, TREEGRID_FONT_FAMILY_STACK as L } from "../../constants/treeGrid.js";
|
|
5
|
+
import { Typography as $, styled as R, Divider as M } from "@mui/material";
|
|
6
|
+
import { clsx as F } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
7
|
+
import E from "@mui/material/GlobalStyles";
|
|
8
|
+
import D from "@mui/material/Paper";
|
|
9
|
+
import O from "@mui/material/Table";
|
|
10
|
+
import A from "@mui/material/TableBody";
|
|
11
|
+
import u from "@mui/material/TableCell";
|
|
12
|
+
import j from "@mui/material/TableContainer";
|
|
13
|
+
import z from "@mui/material/TableHead";
|
|
14
|
+
import B from "@mui/material/TableRow";
|
|
15
|
+
import { useMemo as x } from "react";
|
|
16
|
+
import { isNumber as I } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isNumber.js";
|
|
16
17
|
import { isArray as c } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
|
|
17
|
-
import { isEmpty as
|
|
18
|
-
const
|
|
18
|
+
import { isEmpty as K } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
|
|
19
|
+
const h = /* @__PURE__ */ l((t) => t ? Object.keys(t).filter((o) => !o.includes("Span")) : [], "getTableColumnKeys"), g = /* @__PURE__ */ l((t, o) => t[`${o}Sx`] ?? {}, "getTableCellSx"), w = /* @__PURE__ */ l((t, o, r) => t[`${o}${r}`] ?? void 0, "getTableCellSpan"), _ = /* @__PURE__ */ l((...t) => t.reduce((o, r) => r ? [...o, ...c(r) ? r : [r]] : o, []), "mergeSx"), H = {
|
|
19
20
|
border: 0,
|
|
20
21
|
borderRadius: 0,
|
|
21
22
|
overflow: "visible"
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
fontFamily: "RobotoLight",
|
|
25
|
-
fontStyle: "normal",
|
|
26
|
-
fontWeight: "normal",
|
|
27
|
-
src: "url('/assets/vendors/Grid/Styles/Roboto-Light.ttf') format('truetype')"
|
|
28
|
-
}
|
|
29
|
-
}, S = {
|
|
30
|
-
fontFamily: "RobotoLight, sans-serif",
|
|
23
|
+
}, T = {
|
|
24
|
+
fontFamily: L,
|
|
31
25
|
fontSize: "14px",
|
|
32
26
|
fontWeight: "normal",
|
|
33
27
|
lineHeight: "16px"
|
|
34
28
|
};
|
|
35
|
-
function
|
|
36
|
-
return /* @__PURE__ */ f(
|
|
37
|
-
/* @__PURE__ */ e(
|
|
38
|
-
/* @__PURE__ */ f(
|
|
29
|
+
function N({ totalCount: t }) {
|
|
30
|
+
return /* @__PURE__ */ f(C, { children: [
|
|
31
|
+
/* @__PURE__ */ e(M, {}),
|
|
32
|
+
/* @__PURE__ */ f($, { className: "w-full py-8 pr-12", align: "right", children: [
|
|
39
33
|
"전체: ",
|
|
40
|
-
|
|
34
|
+
I(t) ? t.toLocaleString() : 0,
|
|
41
35
|
" 건"
|
|
42
36
|
] })
|
|
43
37
|
] });
|
|
44
38
|
}
|
|
45
|
-
l(
|
|
46
|
-
const
|
|
39
|
+
l(N, "OwpTableTotalCount");
|
|
40
|
+
const W = /* @__PURE__ */ l(({
|
|
47
41
|
canBodyFullHeight: t,
|
|
48
42
|
canUseTreeGridStyle: o,
|
|
49
43
|
children: r,
|
|
50
44
|
className: a,
|
|
51
45
|
containerProps: n,
|
|
52
|
-
footerSlot:
|
|
46
|
+
footerSlot: m,
|
|
53
47
|
tableLayout: b,
|
|
54
48
|
...i
|
|
55
|
-
}) => /* @__PURE__ */ f(
|
|
56
|
-
o && /* @__PURE__ */ e(
|
|
49
|
+
}) => /* @__PURE__ */ f(C, { children: [
|
|
50
|
+
o && /* @__PURE__ */ e(E, { styles: v() }),
|
|
57
51
|
/* @__PURE__ */ f(
|
|
58
|
-
|
|
52
|
+
j,
|
|
59
53
|
{
|
|
60
|
-
component:
|
|
54
|
+
component: D,
|
|
61
55
|
variant: "outlined",
|
|
62
56
|
...n,
|
|
63
|
-
sx:
|
|
57
|
+
sx: _(
|
|
64
58
|
o && H,
|
|
65
59
|
t && { height: "100%" },
|
|
66
60
|
n == null ? void 0 : n.sx
|
|
67
61
|
),
|
|
68
62
|
children: [
|
|
69
63
|
/* @__PURE__ */ e(
|
|
70
|
-
|
|
64
|
+
Y,
|
|
71
65
|
{
|
|
72
66
|
...i,
|
|
73
67
|
canBodyFullHeight: t,
|
|
74
68
|
canUseTreeGridStyle: o,
|
|
75
|
-
className:
|
|
69
|
+
className: F(
|
|
76
70
|
t && "h-full",
|
|
77
71
|
b === "fixed" ? "table-fixed" : b === "auto" ? "table-auto" : "",
|
|
78
72
|
a
|
|
@@ -80,11 +74,11 @@ const N = /* @__PURE__ */ l(({
|
|
|
80
74
|
children: r
|
|
81
75
|
}
|
|
82
76
|
),
|
|
83
|
-
|
|
77
|
+
m
|
|
84
78
|
]
|
|
85
79
|
}
|
|
86
80
|
)
|
|
87
|
-
] }), "StyledTable"),
|
|
81
|
+
] }), "StyledTable"), Y = R(O, {
|
|
88
82
|
shouldForwardProp: /* @__PURE__ */ l((t) => t !== "canBodyFullHeight" && t !== "canUseTreeGridStyle", "shouldForwardProp")
|
|
89
83
|
})(({ theme: t, canBodyFullHeight: o, canUseTreeGridStyle: r }) => ({
|
|
90
84
|
...o && {
|
|
@@ -100,7 +94,7 @@ const N = /* @__PURE__ */ l(({
|
|
|
100
94
|
},
|
|
101
95
|
"& .MuiTableCell-root": r ? {
|
|
102
96
|
boxSizing: "border-box",
|
|
103
|
-
...
|
|
97
|
+
...T,
|
|
104
98
|
overflow: "hidden",
|
|
105
99
|
textOverflow: "ellipsis",
|
|
106
100
|
verticalAlign: "middle",
|
|
@@ -117,7 +111,7 @@ const N = /* @__PURE__ */ l(({
|
|
|
117
111
|
}
|
|
118
112
|
},
|
|
119
113
|
"& th": r ? {
|
|
120
|
-
...
|
|
114
|
+
...T,
|
|
121
115
|
backgroundColor: "#586980",
|
|
122
116
|
borderTop: "1px solid #6F7F94",
|
|
123
117
|
borderBottom: "1px solid #6F7F94",
|
|
@@ -152,38 +146,38 @@ const N = /* @__PURE__ */ l(({
|
|
|
152
146
|
borderTopRightRadius: "inherit"
|
|
153
147
|
}
|
|
154
148
|
}
|
|
155
|
-
})),
|
|
149
|
+
})), S = R(B)`
|
|
156
150
|
/* &:last-child th,
|
|
157
151
|
&:last-child td {
|
|
158
152
|
border-bottom: 0;
|
|
159
153
|
} */
|
|
160
154
|
`;
|
|
161
|
-
function
|
|
155
|
+
function po({
|
|
162
156
|
canTotalCountRow: t = !1,
|
|
163
157
|
headers: o,
|
|
164
158
|
rows: r,
|
|
165
159
|
totalCount: a,
|
|
166
160
|
...n
|
|
167
161
|
}) {
|
|
168
|
-
const
|
|
169
|
-
() => c(o) ? o :
|
|
162
|
+
const m = x(
|
|
163
|
+
() => c(o) ? o : K(o) ? [] : [o],
|
|
170
164
|
[o]
|
|
171
|
-
), b =
|
|
172
|
-
() =>
|
|
165
|
+
), b = x(
|
|
166
|
+
() => h(c(o) ? o[0] : o),
|
|
173
167
|
[o]
|
|
174
168
|
);
|
|
175
169
|
return /* @__PURE__ */ f(
|
|
176
|
-
|
|
170
|
+
W,
|
|
177
171
|
{
|
|
178
172
|
...n,
|
|
179
|
-
footerSlot: t ? /* @__PURE__ */ e(
|
|
180
|
-
className:
|
|
173
|
+
footerSlot: t ? /* @__PURE__ */ e(N, { totalCount: typeof a > "u" ? r.length : a }) : void 0,
|
|
174
|
+
className: F(n.tableLayout && "w-full", n.className),
|
|
181
175
|
children: [
|
|
182
|
-
/* @__PURE__ */ e(
|
|
183
|
-
|
|
176
|
+
/* @__PURE__ */ e(z, { children: m.map((i, d) => /* @__PURE__ */ e(S, { children: h(i).map((p) => /* @__PURE__ */ e(
|
|
177
|
+
u,
|
|
184
178
|
{
|
|
185
179
|
className: "whitespace-pre-wrap",
|
|
186
|
-
sx:
|
|
180
|
+
sx: g(i, p),
|
|
187
181
|
colSpan: w(i, p, "ColSpan"),
|
|
188
182
|
rowSpan: w(i, p, "RowSpan"),
|
|
189
183
|
align: "center",
|
|
@@ -191,28 +185,28 @@ function lo({
|
|
|
191
185
|
},
|
|
192
186
|
`table-header-${d}-${p}`
|
|
193
187
|
)) }, `table-header-${d}`)) }),
|
|
194
|
-
/* @__PURE__ */ e(
|
|
188
|
+
/* @__PURE__ */ e(A, { children: r.map((i, d) => {
|
|
195
189
|
const p = i;
|
|
196
|
-
return /* @__PURE__ */ e(
|
|
197
|
-
|
|
190
|
+
return /* @__PURE__ */ e(S, { children: b.map((s) => /* @__PURE__ */ e(
|
|
191
|
+
u,
|
|
198
192
|
{
|
|
199
193
|
className: "whitespace-pre-wrap h-64",
|
|
200
|
-
sx:
|
|
194
|
+
sx: g(p, s),
|
|
201
195
|
align: "center",
|
|
202
|
-
children: p[
|
|
196
|
+
children: p[s]
|
|
203
197
|
},
|
|
204
|
-
`table-row-cell-${d}-${
|
|
198
|
+
`table-row-cell-${d}-${s}`
|
|
205
199
|
)) }, `table-row-${d}`);
|
|
206
200
|
}) })
|
|
207
201
|
]
|
|
208
202
|
}
|
|
209
203
|
);
|
|
210
204
|
}
|
|
211
|
-
l(
|
|
205
|
+
l(po, "OwpTable");
|
|
212
206
|
export {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
207
|
+
po as OwpTable,
|
|
208
|
+
N as OwpTableTotalCount,
|
|
209
|
+
W as StyledTable,
|
|
210
|
+
S as StyledTableRow
|
|
217
211
|
};
|
|
218
212
|
//# sourceMappingURL=OwpTable.js.map
|