@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":"OwpTable.js","sources":["../../../src/components/OwpTable/OwpTable.tsx"],"sourcesContent":["import { Divider, styled, Typography, type SxProps, type Theme } from '@mui/material';\nimport clsx from 'clsx';\nimport GlobalStyles from '@mui/material/GlobalStyles';\nimport Paper from '@mui/material/Paper';\nimport Table, { type TableProps } from '@mui/material/Table';\nimport TableBody from '@mui/material/TableBody';\nimport TableCell from '@mui/material/TableCell';\nimport TableContainer, { type TableContainerProps } from '@mui/material/TableContainer';\nimport TableHead from '@mui/material/TableHead';\nimport TableRow from '@mui/material/TableRow';\nimport { isArray, isEmpty, isNumber } from 'es-toolkit/compat';\nimport { type ReactNode, useMemo } from 'react';\n\ntype OwpTableCellValue = string | number;\ntype OwpTableHeaderRow = Record<string, OwpTableCellValue>;\ntype OwpTableRowData = Record<string, unknown>;\n\nconst getTableColumnKeys = (row?: Record<string, unknown>) => {\n if (!row) {\n return [];\n }\n\n return Object.keys(row).filter((keyName) => !keyName.includes('Span'));\n};\n\nconst getTableCellSx = (row: Record<string, unknown>, keyName: string) => {\n return (row[`${keyName}Sx`] as SxProps<Theme>) ?? {};\n};\n\nconst getTableCellSpan = (\n row: Record<string, unknown>,\n keyName: string,\n spanType: 'ColSpan' | 'RowSpan',\n) => {\n return (row[`${keyName}${spanType}`] as number | undefined) ?? undefined;\n};\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\nconst treeGridContainerSx = {\n border: 0,\n borderRadius: 0,\n overflow: 'visible',\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\nconst treeGridFontSx = {\n fontFamily: 'RobotoLight, sans-serif',\n fontSize: '14px',\n fontWeight: 'normal',\n lineHeight: '16px',\n} as const;\n\ninterface StyledTableProps extends TableProps {\n canBodyFullHeight?: boolean;\n canUseTreeGridStyle?: boolean;\n containerProps?: TableContainerProps;\n footerSlot?: ReactNode;\n tableLayout?: 'auto' | 'fixed';\n title?: string;\n children: ReactNode;\n}\n\ntype StyledTableInnerProps = Pick<StyledTableProps, 'canBodyFullHeight' | 'canUseTreeGridStyle'>;\n\n/**\n * 총 row 수 표시 영역\n * @param totalCount 전체 row 수\n */\nexport function OwpTableTotalCount({ totalCount }: { totalCount?: number }) {\n return (\n <>\n <Divider />\n <Typography className=\"w-full py-8 pr-12\" align=\"right\">\n 전체: {isNumber(totalCount) ? totalCount.toLocaleString() : 0} 건\n </Typography>\n </>\n );\n}\n\n/**\n * StyledTable 스타일 컴포넌트\n * @param canBodyFullHeight body full height 사용 여부\n * @param canUseTreeGridStyle TreeGrid 스타일 사용 여부\n * @param children 하위 콘텐츠\n * @param containerProps containerProps props\n * @param footerSlot footer 영역\n * @param tableLayout tableLayout 값\n */\nexport const StyledTable = ({\n canBodyFullHeight,\n canUseTreeGridStyle,\n children,\n className,\n containerProps,\n footerSlot,\n tableLayout,\n ...tableProps\n}: StyledTableProps) => {\n return (\n <>\n {canUseTreeGridStyle && <GlobalStyles styles={treeGridFontFaceStyles} />}\n <TableContainer\n component={Paper}\n variant=\"outlined\"\n {...containerProps}\n sx={mergeSx(\n canUseTreeGridStyle && treeGridContainerSx,\n canBodyFullHeight && { height: '100%' },\n containerProps?.sx,\n )}\n >\n <StyledTableInner\n {...tableProps}\n canBodyFullHeight={canBodyFullHeight}\n canUseTreeGridStyle={canUseTreeGridStyle}\n className={clsx(\n canBodyFullHeight && 'h-full',\n tableLayout === 'fixed' ? 'table-fixed' : tableLayout === 'auto' ? 'table-auto' : '',\n className,\n )}\n >\n {children}\n </StyledTableInner>\n {footerSlot}\n </TableContainer>\n </>\n );\n};\n\nconst StyledTableInner = styled(Table, {\n shouldForwardProp: (prop) => prop !== 'canBodyFullHeight' && prop !== 'canUseTreeGridStyle',\n})<StyledTableInnerProps>(({ theme, canBodyFullHeight, canUseTreeGridStyle }) => ({\n ...(canBodyFullHeight && {\n height: '100%',\n }),\n ...(canBodyFullHeight && {\n '& .MuiTableBody-root': {\n height: '100%',\n },\n '& .MuiTableBody-root > .MuiTableRow-root': {\n height: '100%',\n },\n }),\n '& .MuiTableCell-root': canUseTreeGridStyle\n ? {\n boxSizing: 'border-box',\n ...treeGridFontSx,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n verticalAlign: 'middle',\n whiteSpace: 'nowrap',\n }\n : {\n fontSize: '1.7rem',\n padding: '7px 10px',\n borderLeft: 'none',\n borderRight: 'none',\n },\n ...(!canUseTreeGridStyle && {\n '& .MuiTableRow-root > .MuiTableCell-root + .MuiTableCell-root': {\n borderLeft: `1px solid ${theme.palette.divider}`,\n },\n }),\n '& th': canUseTreeGridStyle\n ? {\n ...treeGridFontSx,\n backgroundColor: '#586980',\n borderTop: '1px solid #6F7F94',\n borderBottom: '1px solid #6F7F94',\n borderLeft: 0,\n borderRight: '1px solid #6F7F94',\n color: 'white',\n height: 33,\n minHeight: 33,\n padding: '7px 2px 6px 10px',\n '&:first-of-type': {\n borderLeft: '1px solid #6F7F94',\n },\n }\n : {\n backgroundColor: theme.palette.grey[200],\n fontWeight: 600,\n },\n '& td': canUseTreeGridStyle\n ? {\n borderBottom: '1px solid #CDD8E4',\n borderLeft: 0,\n borderRight: '1px solid #CDD8E4',\n color: '#111112',\n padding: '7px 10px 6px',\n '&:first-of-type': {\n borderLeft: '1px solid #CDD8E4',\n },\n }\n : {},\n ...(canUseTreeGridStyle && {\n '& tbody > tr:first-of-type > th:first-of-type': {\n borderTopLeftRadius: 'inherit',\n },\n '& tbody > tr:first-of-type > td:last-of-type': {\n borderTopRightRadius: 'inherit',\n },\n }),\n}));\n\nexport const StyledTableRow = styled(TableRow)`\n /* &:last-child th,\n &:last-child td {\n border-bottom: 0;\n } */\n`;\n\ninterface OwpTableProps<T> extends Omit<StyledTableProps, 'children'> {\n canTotalCountRow?: boolean;\n headers: OwpTableHeaderRow | OwpTableHeaderRow[];\n rows: T[];\n totalCount?: number;\n}\n\n/**\n * OwpTable 컴포넌트\n * @param canTotalCountRow 전체 row 수 표시 여부\n * @param headers headers 값\n * @param rows 행 데이터 목록\n * @param totalCount 전체 row 수\n */\nexport function OwpTable<T>({\n canTotalCountRow = false,\n headers,\n rows,\n totalCount,\n ...restTableProps\n}: OwpTableProps<T>) {\n const resolvedHeaderRows = useMemo(\n () => (isArray(headers) ? headers : isEmpty(headers) ? [] : [headers]),\n [headers],\n );\n const commonKeyListData = useMemo(\n () => getTableColumnKeys(isArray(headers) ? headers[0] : headers),\n [headers],\n );\n\n return (\n <StyledTable\n {...restTableProps}\n footerSlot={\n canTotalCountRow ? (\n <OwpTableTotalCount totalCount={typeof totalCount === 'undefined' ? rows.length : totalCount} />\n ) : undefined\n }\n className={clsx(restTableProps.tableLayout && 'w-full', restTableProps.className)}\n >\n <TableHead>\n {resolvedHeaderRows.map((headerData, index) => (\n <StyledTableRow key={`table-header-${index}`}>\n {getTableColumnKeys(headerData).map((keyName) => (\n <TableCell\n key={`table-header-${index}-${keyName}`}\n className=\"whitespace-pre-wrap\"\n sx={getTableCellSx(headerData, keyName)}\n colSpan={getTableCellSpan(headerData, keyName, 'ColSpan')}\n rowSpan={getTableCellSpan(headerData, keyName, 'RowSpan')}\n align=\"center\"\n >\n {headerData[keyName]}\n </TableCell>\n ))}\n </StyledTableRow>\n ))}\n </TableHead>\n <TableBody>\n {rows.map((row, index) => {\n const currentRow = row as OwpTableRowData;\n\n return (\n <StyledTableRow key={`table-row-${index}`}>\n {commonKeyListData.map((keyName) => (\n <TableCell\n key={`table-row-cell-${index}-${keyName}`}\n className=\"whitespace-pre-wrap h-64\"\n sx={getTableCellSx(currentRow, keyName)}\n align=\"center\"\n >\n {currentRow[keyName] as ReactNode}\n </TableCell>\n ))}\n </StyledTableRow>\n );\n })}\n </TableBody>\n </StyledTable>\n );\n}\n"],"names":["getTableColumnKeys","__name","row","keyName","getTableCellSx","getTableCellSpan","spanType","mergeSx","styles","acc","style","isArray","treeGridContainerSx","treeGridFontFaceStyles","treeGridFontSx","OwpTableTotalCount","totalCount","jsxs","Fragment","jsx","Divider","Typography","isNumber","StyledTable","canBodyFullHeight","canUseTreeGridStyle","children","className","containerProps","footerSlot","tableLayout","tableProps","GlobalStyles","TableContainer","Paper","StyledTableInner","clsx","styled","Table","prop","theme","StyledTableRow","TableRow","OwpTable","canTotalCountRow","headers","rows","restTableProps","resolvedHeaderRows","useMemo","isEmpty","commonKeyListData","TableHead","headerData","index","TableCell","TableBody","currentRow"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,MAAMA,IAAqB,gBAAAC,EAAA,CAACC,MACrBA,IAIE,OAAO,KAAKA,CAAG,EAAE,OAAO,CAACC,MAAY,CAACA,EAAQ,SAAS,MAAM,CAAC,IAH5D,CAAA,GAFgB,uBAQrBC,IAAiB,gBAAAH,EAAA,CAACC,GAA8BC,MAC5CD,EAAI,GAAGC,CAAO,IAAI,KAAwB,CAAA,GAD7B,mBAIjBE,IAAmB,gBAAAJ,EAAA,CACvBC,GACAC,GACAG,MAEQJ,EAAI,GAAGC,CAAO,GAAGG,CAAQ,EAAE,KAA4B,QALxC,qBAQnBC,IAAU,gBAAAN,EAAA,IAAIO,MAClBA,EAAO,OAA2D,CAACC,GAAKC,MACjEA,IAIE,CAAC,GAAGD,GAAK,GAAIE,EAAQD,CAAK,IAAIA,IAAQ,CAACA,CAAK,CAAE,IAH5CD,GAIR,EAAE,GAPS,YASVG,IAAsB;AAAA,EAC1B,QAAQ;AAAA,EACR,cAAc;AAAA,EACd,UAAU;AACZ,GAEMC,IAAyB;AAAA,EAC7B,cAAc;AAAA,IACZ,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,KAAK;AAAA,EAAA;AAET,GAEMC,IAAiB;AAAA,EACrB,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,YAAY;A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SAAS;AAAA,YACxD,SAASE,EAAiBgD,GAAYlD,GAAS,SAAS;AAAA,YACxD,OAAM;AAAA,YAEL,YAAWA,CAAO;AAAA,UAAA;AAAA,UAPd,gBAAgBmD,CAAK,IAAInD,CAAO;AAAA,QAAA,CASxC,EAAA,GAZkB,gBAAgBmD,CAAK,EAa1C,CACD,EAAA,CACH;AAAA,0BACCE,GAAA,EACE,UAAAV,EAAK,IAAI,CAAC5C,GAAKoD,MAAU;AACxB,gBAAMG,IAAavD;AAEnB,iBACE,gBAAAiB,EAACsB,GAAA,EACE,UAAAU,EAAkB,IAAI,CAAChD,MACtB,gBAAAgB;AAAA,YAACoC;AAAA,YAAA;AAAA,cAEC,WAAU;AAAA,cACV,IAAInD,EAAeqD,GAAYtD,CAAO;AAAA,cACtC,OAAM;AAAA,cAEL,YAAWA,CAAO;AAAA,YAAA;AAAA,YALd,kBAAkBmD,CAAK,IAAInD,CAAO;AAAA,UAAA,CAO1C,KAVkB,aAAamD,CAAK,EAWvC;AAAA,QAEJ,CAAC,EAAA,CACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;AAlEgBrD,EAAA0C,IAAA;"}
|
|
1
|
+
{"version":3,"file":"OwpTable.js","sources":["../../../src/components/OwpTable/OwpTable.tsx"],"sourcesContent":["import {\n getTreeGridFontFaceStyles,\n TREEGRID_FONT_FAMILY_STACK,\n} from '@/constants/treeGrid';\nimport { Divider, styled, Typography, type SxProps, type Theme } from '@mui/material';\nimport clsx from 'clsx';\nimport GlobalStyles from '@mui/material/GlobalStyles';\nimport Paper from '@mui/material/Paper';\nimport Table, { type TableProps } from '@mui/material/Table';\nimport TableBody from '@mui/material/TableBody';\nimport TableCell from '@mui/material/TableCell';\nimport TableContainer, { type TableContainerProps } from '@mui/material/TableContainer';\nimport TableHead from '@mui/material/TableHead';\nimport TableRow from '@mui/material/TableRow';\nimport { isArray, isEmpty, isNumber } from 'es-toolkit/compat';\nimport { type ReactNode, useMemo } from 'react';\n\ntype OwpTableCellValue = string | number;\ntype OwpTableHeaderRow = Record<string, OwpTableCellValue>;\ntype OwpTableRowData = Record<string, unknown>;\n\nconst getTableColumnKeys = (row?: Record<string, unknown>) => {\n if (!row) {\n return [];\n }\n\n return Object.keys(row).filter((keyName) => !keyName.includes('Span'));\n};\n\nconst getTableCellSx = (row: Record<string, unknown>, keyName: string) => {\n return (row[`${keyName}Sx`] as SxProps<Theme>) ?? {};\n};\n\nconst getTableCellSpan = (\n row: Record<string, unknown>,\n keyName: string,\n spanType: 'ColSpan' | 'RowSpan',\n) => {\n return (row[`${keyName}${spanType}`] as number | undefined) ?? undefined;\n};\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\nconst treeGridContainerSx = {\n border: 0,\n borderRadius: 0,\n overflow: 'visible',\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\ninterface StyledTableProps extends TableProps {\n canBodyFullHeight?: boolean;\n canUseTreeGridStyle?: boolean;\n containerProps?: TableContainerProps;\n footerSlot?: ReactNode;\n tableLayout?: 'auto' | 'fixed';\n title?: string;\n children: ReactNode;\n}\n\ntype StyledTableInnerProps = Pick<StyledTableProps, 'canBodyFullHeight' | 'canUseTreeGridStyle'>;\n\n/**\n * 총 row 수 표시 영역\n * @param totalCount 전체 row 수\n */\nexport function OwpTableTotalCount({ totalCount }: { totalCount?: number }) {\n return (\n <>\n <Divider />\n <Typography className=\"w-full py-8 pr-12\" align=\"right\">\n 전체: {isNumber(totalCount) ? totalCount.toLocaleString() : 0} 건\n </Typography>\n </>\n );\n}\n\n/**\n * StyledTable 스타일 컴포넌트\n * @param canBodyFullHeight body full height 사용 여부\n * @param canUseTreeGridStyle TreeGrid 스타일 사용 여부\n * @param children 하위 콘텐츠\n * @param containerProps containerProps props\n * @param footerSlot footer 영역\n * @param tableLayout tableLayout 값\n */\nexport const StyledTable = ({\n canBodyFullHeight,\n canUseTreeGridStyle,\n children,\n className,\n containerProps,\n footerSlot,\n tableLayout,\n ...tableProps\n}: StyledTableProps) => {\n return (\n <>\n {canUseTreeGridStyle && <GlobalStyles styles={getTreeGridFontFaceStyles()} />}\n <TableContainer\n component={Paper}\n variant=\"outlined\"\n {...containerProps}\n sx={mergeSx(\n canUseTreeGridStyle && treeGridContainerSx,\n canBodyFullHeight && { height: '100%' },\n containerProps?.sx,\n )}\n >\n <StyledTableInner\n {...tableProps}\n canBodyFullHeight={canBodyFullHeight}\n canUseTreeGridStyle={canUseTreeGridStyle}\n className={clsx(\n canBodyFullHeight && 'h-full',\n tableLayout === 'fixed' ? 'table-fixed' : tableLayout === 'auto' ? 'table-auto' : '',\n className,\n )}\n >\n {children}\n </StyledTableInner>\n {footerSlot}\n </TableContainer>\n </>\n );\n};\n\nconst StyledTableInner = styled(Table, {\n shouldForwardProp: (prop) => prop !== 'canBodyFullHeight' && prop !== 'canUseTreeGridStyle',\n})<StyledTableInnerProps>(({ theme, canBodyFullHeight, canUseTreeGridStyle }) => ({\n ...(canBodyFullHeight && {\n height: '100%',\n }),\n ...(canBodyFullHeight && {\n '& .MuiTableBody-root': {\n height: '100%',\n },\n '& .MuiTableBody-root > .MuiTableRow-root': {\n height: '100%',\n },\n }),\n '& .MuiTableCell-root': canUseTreeGridStyle\n ? {\n boxSizing: 'border-box',\n ...treeGridFontSx,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n verticalAlign: 'middle',\n whiteSpace: 'nowrap',\n }\n : {\n fontSize: '1.7rem',\n padding: '7px 10px',\n borderLeft: 'none',\n borderRight: 'none',\n },\n ...(!canUseTreeGridStyle && {\n '& .MuiTableRow-root > .MuiTableCell-root + .MuiTableCell-root': {\n borderLeft: `1px solid ${theme.palette.divider}`,\n },\n }),\n '& th': canUseTreeGridStyle\n ? {\n ...treeGridFontSx,\n backgroundColor: '#586980',\n borderTop: '1px solid #6F7F94',\n borderBottom: '1px solid #6F7F94',\n borderLeft: 0,\n borderRight: '1px solid #6F7F94',\n color: 'white',\n height: 33,\n minHeight: 33,\n padding: '7px 2px 6px 10px',\n '&:first-of-type': {\n borderLeft: '1px solid #6F7F94',\n },\n }\n : {\n backgroundColor: theme.palette.grey[200],\n fontWeight: 600,\n },\n '& td': canUseTreeGridStyle\n ? {\n borderBottom: '1px solid #CDD8E4',\n borderLeft: 0,\n borderRight: '1px solid #CDD8E4',\n color: '#111112',\n padding: '7px 10px 6px',\n '&:first-of-type': {\n borderLeft: '1px solid #CDD8E4',\n },\n }\n : {},\n ...(canUseTreeGridStyle && {\n '& tbody > tr:first-of-type > th:first-of-type': {\n borderTopLeftRadius: 'inherit',\n },\n '& tbody > tr:first-of-type > td:last-of-type': {\n borderTopRightRadius: 'inherit',\n },\n }),\n}));\n\nexport const StyledTableRow = styled(TableRow)`\n /* &:last-child th,\n &:last-child td {\n border-bottom: 0;\n } */\n`;\n\ninterface OwpTableProps<T> extends Omit<StyledTableProps, 'children'> {\n canTotalCountRow?: boolean;\n headers: OwpTableHeaderRow | OwpTableHeaderRow[];\n rows: T[];\n totalCount?: number;\n}\n\n/**\n * OwpTable 컴포넌트\n * @param canTotalCountRow 전체 row 수 표시 여부\n * @param headers headers 값\n * @param rows 행 데이터 목록\n * @param totalCount 전체 row 수\n */\nexport function OwpTable<T>({\n canTotalCountRow = false,\n headers,\n rows,\n totalCount,\n ...restTableProps\n}: OwpTableProps<T>) {\n const resolvedHeaderRows = useMemo(\n () => (isArray(headers) ? headers : isEmpty(headers) ? [] : [headers]),\n [headers],\n );\n const commonKeyListData = useMemo(\n () => getTableColumnKeys(isArray(headers) ? headers[0] : headers),\n [headers],\n );\n\n return (\n <StyledTable\n {...restTableProps}\n footerSlot={\n canTotalCountRow ? (\n <OwpTableTotalCount totalCount={typeof totalCount === 'undefined' ? rows.length : totalCount} />\n ) : undefined\n }\n className={clsx(restTableProps.tableLayout && 'w-full', restTableProps.className)}\n >\n <TableHead>\n {resolvedHeaderRows.map((headerData, index) => (\n <StyledTableRow key={`table-header-${index}`}>\n {getTableColumnKeys(headerData).map((keyName) => (\n <TableCell\n key={`table-header-${index}-${keyName}`}\n className=\"whitespace-pre-wrap\"\n sx={getTableCellSx(headerData, keyName)}\n colSpan={getTableCellSpan(headerData, keyName, 'ColSpan')}\n rowSpan={getTableCellSpan(headerData, keyName, 'RowSpan')}\n align=\"center\"\n >\n {headerData[keyName]}\n </TableCell>\n ))}\n </StyledTableRow>\n ))}\n </TableHead>\n <TableBody>\n {rows.map((row, index) => {\n const currentRow = row as OwpTableRowData;\n\n return (\n <StyledTableRow key={`table-row-${index}`}>\n {commonKeyListData.map((keyName) => (\n <TableCell\n key={`table-row-cell-${index}-${keyName}`}\n className=\"whitespace-pre-wrap h-64\"\n sx={getTableCellSx(currentRow, keyName)}\n align=\"center\"\n >\n {currentRow[keyName] as ReactNode}\n </TableCell>\n ))}\n </StyledTableRow>\n );\n })}\n </TableBody>\n </StyledTable>\n );\n}\n"],"names":["getTableColumnKeys","__name","row","keyName","getTableCellSx","getTableCellSpan","spanType","mergeSx","styles","acc","style","isArray","treeGridContainerSx","treeGridFontSx","TREEGRID_FONT_FAMILY_STACK","OwpTableTotalCount","totalCount","jsxs","Fragment","jsx","Divider","Typography","isNumber","StyledTable","canBodyFullHeight","canUseTreeGridStyle","children","className","containerProps","footerSlot","tableLayout","tableProps","GlobalStyles","getTreeGridFontFaceStyles","TableContainer","Paper","StyledTableInner","clsx","styled","Table","prop","theme","StyledTableRow","TableRow","OwpTable","canTotalCountRow","headers","rows","restTableProps","resolvedHeaderRows","useMemo","isEmpty","commonKeyListData","TableHead","headerData","index","TableCell","TableBody","currentRow"],"mappings":";;;;;;;;;;;;;;;;;;AAqBA,MAAMA,IAAqB,gBAAAC,EAAA,C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pD,CAAO;AAAA,UAAA,CAO1C,KAVkB,aAAaoD,CAAK,EAWvC;AAAA,QAEJ,CAAC,EAAA,CACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;AAlEgBtD,EAAA2C,IAAA;"}
|
|
@@ -1,106 +1,157 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { FormHelperText as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useId as
|
|
9
|
-
import "
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
var z = Object.defineProperty;
|
|
2
|
+
var i = (e, r) => z(e, "name", { value: r, configurable: !0 });
|
|
3
|
+
import { jsxs as E, jsx as M } 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 { FormHelperText as j } from "@mui/material";
|
|
5
|
+
import y from "@mui/material/FormControl";
|
|
6
|
+
import b from "@mui/material/Input";
|
|
7
|
+
import A from "@mui/material/InputLabel";
|
|
8
|
+
import { useId as H, forwardRef as L, useRef as s, useEffect as p } from "react";
|
|
9
|
+
import { InputMask as P } from "imask";
|
|
10
|
+
function $(e, r) {
|
|
11
|
+
if (typeof e == "function") {
|
|
12
|
+
e(r);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
e && (e.current = r);
|
|
16
|
+
}
|
|
17
|
+
i($, "assignInputRef");
|
|
18
|
+
function T({
|
|
19
|
+
mask: e,
|
|
20
|
+
definitions: r
|
|
21
|
+
}) {
|
|
22
|
+
return {
|
|
23
|
+
mask: e,
|
|
24
|
+
definitions: r,
|
|
25
|
+
overwrite: !0
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
i(T, "buildTextMaskOptions");
|
|
29
|
+
const q = L(/* @__PURE__ */ i(function(r, h) {
|
|
30
|
+
const {
|
|
31
|
+
onMaskChange: c,
|
|
32
|
+
mask: a,
|
|
33
|
+
definitions: l,
|
|
34
|
+
name: f,
|
|
35
|
+
value: o,
|
|
36
|
+
defaultValue: d,
|
|
37
|
+
ownerState: O,
|
|
38
|
+
as: C,
|
|
39
|
+
onChange: R,
|
|
40
|
+
...V
|
|
41
|
+
} = r, k = s(null), u = s(null), g = s(c), v = s(f), x = s(T({ mask: a, definitions: l })), m = s(o !== void 0 ? o : d);
|
|
42
|
+
p(() => {
|
|
43
|
+
g.current = c;
|
|
44
|
+
}, [c]), p(() => {
|
|
45
|
+
v.current = f;
|
|
46
|
+
}, [f]), p(() => {
|
|
47
|
+
const n = k.current;
|
|
48
|
+
if (!n)
|
|
49
|
+
return;
|
|
50
|
+
const t = new P(
|
|
51
|
+
n,
|
|
52
|
+
x.current
|
|
53
|
+
), S = /* @__PURE__ */ i(() => {
|
|
54
|
+
g.current({
|
|
55
|
+
target: {
|
|
56
|
+
name: v.current ?? n.name ?? "",
|
|
57
|
+
value: t.value
|
|
58
|
+
},
|
|
59
|
+
unmaskedValue: t.unmaskedValue
|
|
60
|
+
});
|
|
61
|
+
}, "emitMaskChange");
|
|
62
|
+
if (t.on("accept", S), u.current = t, m.current !== void 0) {
|
|
63
|
+
const F = m.current == null ? "" : String(m.current);
|
|
64
|
+
t.value !== F && (t.value = F);
|
|
65
|
+
}
|
|
66
|
+
return () => {
|
|
67
|
+
t.off("accept", S), t.destroy(), u.current === t && (u.current = null);
|
|
68
|
+
};
|
|
69
|
+
}, []), p(() => {
|
|
70
|
+
const n = u.current;
|
|
71
|
+
n && n.updateOptions(T({ mask: a, definitions: l }));
|
|
72
|
+
}, [a, l]), p(() => {
|
|
73
|
+
const n = u.current;
|
|
74
|
+
if (!n || o === void 0)
|
|
75
|
+
return;
|
|
76
|
+
const t = o == null ? "" : String(o);
|
|
77
|
+
n.value !== t && (n.value = t);
|
|
78
|
+
}, [o]);
|
|
79
|
+
const I = o !== void 0 ? o : d, w = I == null ? "" : String(I);
|
|
80
|
+
return /* @__PURE__ */ M(
|
|
81
|
+
"input",
|
|
23
82
|
{
|
|
24
|
-
...
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
target: {
|
|
31
|
-
name: s ?? "",
|
|
32
|
-
value: String(d ?? "")
|
|
33
|
-
},
|
|
34
|
-
unmaskedValue: f.unmaskedValue
|
|
35
|
-
});
|
|
36
|
-
}, "onAccept"),
|
|
37
|
-
overwrite: !0
|
|
83
|
+
...V,
|
|
84
|
+
defaultValue: w,
|
|
85
|
+
onChange: R,
|
|
86
|
+
ref: /* @__PURE__ */ i((n) => {
|
|
87
|
+
k.current = n, $(h, n);
|
|
88
|
+
}, "ref")
|
|
38
89
|
}
|
|
39
90
|
);
|
|
40
91
|
}, "TextMaskCustom2"));
|
|
41
|
-
function
|
|
42
|
-
className:
|
|
43
|
-
sx:
|
|
44
|
-
id:
|
|
45
|
-
name:
|
|
46
|
-
label:
|
|
47
|
-
value:
|
|
48
|
-
defaultValue:
|
|
49
|
-
color:
|
|
50
|
-
onChange:
|
|
51
|
-
error:
|
|
52
|
-
helperText:
|
|
53
|
-
mask:
|
|
54
|
-
definitions:
|
|
55
|
-
variant:
|
|
56
|
-
fullWidth:
|
|
57
|
-
disabled:
|
|
58
|
-
required:
|
|
59
|
-
placeholder:
|
|
60
|
-
autoFocus:
|
|
61
|
-
inputProps:
|
|
62
|
-
inputRef:
|
|
92
|
+
function W({
|
|
93
|
+
className: e,
|
|
94
|
+
sx: r,
|
|
95
|
+
id: h,
|
|
96
|
+
name: c,
|
|
97
|
+
label: a,
|
|
98
|
+
value: l,
|
|
99
|
+
defaultValue: f,
|
|
100
|
+
color: o,
|
|
101
|
+
onChange: d,
|
|
102
|
+
error: O,
|
|
103
|
+
helperText: C,
|
|
104
|
+
mask: R,
|
|
105
|
+
definitions: V,
|
|
106
|
+
variant: k,
|
|
107
|
+
fullWidth: u,
|
|
108
|
+
disabled: g,
|
|
109
|
+
required: v,
|
|
110
|
+
placeholder: x,
|
|
111
|
+
autoFocus: m,
|
|
112
|
+
inputProps: I,
|
|
113
|
+
inputRef: w
|
|
63
114
|
}) {
|
|
64
|
-
const
|
|
65
|
-
return /* @__PURE__ */
|
|
66
|
-
|
|
115
|
+
const n = H(), t = h ?? `text-mask-input-${n}`;
|
|
116
|
+
return /* @__PURE__ */ E(
|
|
117
|
+
y,
|
|
67
118
|
{
|
|
68
|
-
color:
|
|
69
|
-
variant:
|
|
70
|
-
fullWidth:
|
|
71
|
-
error:
|
|
72
|
-
disabled:
|
|
73
|
-
required:
|
|
119
|
+
color: o,
|
|
120
|
+
variant: k,
|
|
121
|
+
fullWidth: u,
|
|
122
|
+
error: O,
|
|
123
|
+
disabled: g,
|
|
124
|
+
required: v,
|
|
74
125
|
children: [
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
|
|
126
|
+
a ? /* @__PURE__ */ M(A, { htmlFor: t, children: a }) : null,
|
|
127
|
+
/* @__PURE__ */ M(
|
|
128
|
+
b,
|
|
78
129
|
{
|
|
79
|
-
className:
|
|
80
|
-
sx:
|
|
81
|
-
value:
|
|
82
|
-
defaultValue:
|
|
83
|
-
name:
|
|
84
|
-
id:
|
|
85
|
-
placeholder:
|
|
86
|
-
autoFocus:
|
|
87
|
-
inputRef:
|
|
88
|
-
inputComponent:
|
|
130
|
+
className: e,
|
|
131
|
+
sx: r,
|
|
132
|
+
value: l,
|
|
133
|
+
defaultValue: f,
|
|
134
|
+
name: c,
|
|
135
|
+
id: t,
|
|
136
|
+
placeholder: x,
|
|
137
|
+
autoFocus: m,
|
|
138
|
+
inputRef: w,
|
|
139
|
+
inputComponent: q,
|
|
89
140
|
inputProps: {
|
|
90
|
-
...
|
|
91
|
-
onMaskChange:
|
|
92
|
-
mask:
|
|
93
|
-
definitions:
|
|
141
|
+
...I,
|
|
142
|
+
onMaskChange: d,
|
|
143
|
+
mask: R,
|
|
144
|
+
definitions: V
|
|
94
145
|
}
|
|
95
146
|
}
|
|
96
147
|
),
|
|
97
|
-
/* @__PURE__ */
|
|
148
|
+
C ? /* @__PURE__ */ M(j, { children: C }) : null
|
|
98
149
|
]
|
|
99
150
|
}
|
|
100
151
|
);
|
|
101
152
|
}
|
|
102
|
-
|
|
153
|
+
i(W, "OwpTextMaskField");
|
|
103
154
|
export {
|
|
104
|
-
|
|
155
|
+
W as OwpTextMaskField
|
|
105
156
|
};
|
|
106
157
|
//# sourceMappingURL=OwpTextMaskField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwpTextMaskField.js","sources":["../../../src/components/OwpTextField/OwpTextMaskField.tsx"],"sourcesContent":["import { FormHelperText } from '@mui/material';\nimport FormControl from '@mui/material/FormControl';\nimport type { FormControlProps } from '@mui/material/FormControl';\nimport Input from '@mui/material/Input';\nimport type { InputProps as MuiInputProps } from '@mui/material/Input';\nimport type { InputBaseComponentProps } from '@mui/material/InputBase';\nimport InputLabel from '@mui/material/InputLabel';\nimport { forwardRef, type ReactNode, useId } from 'react';\nimport { IMaskInput } from 'react-imask';\n\ntype TextMaskFieldChangeEvent = {\n target: { name: string; value: string };\n unmaskedValue: string;\n};\n\ninterface CustomProps {\n onMaskChange: (event: TextMaskFieldChangeEvent) => void;\n name?: string;\n mask: string;\n definitions?: Record<string, unknown>;\n}\n\ntype OwpTextMaskFieldProps = Omit<MuiInputProps, 'onChange' | 'inputComponent'> &\n Omit<CustomProps, 'onMaskChange'> & {\n label?: ReactNode;\n helperText?: ReactNode;\n variant?: FormControlProps['variant'];\n onChange: CustomProps['onMaskChange'];\n };\n\n/** 마스크 입력 어댑터 */\ntype TextMaskCustomProps = InputBaseComponentProps & CustomProps;\n\nconst TextMaskCustom = forwardRef<HTMLInputElement, TextMaskCustomProps>(function TextMaskCustom(\n props,\n ref,\n) {\n const { onMaskChange, mask, definitions, name, ...other } = props;\n const { onChange: ignoredOnChange, ...imaskInputProps } = other;\n\n void ignoredOnChange;\n\n return (\n <IMaskInput\n {...imaskInputProps}\n mask={mask}\n definitions={definitions}\n inputRef={ref}\n onAccept={(value, maskRef) => {\n onMaskChange({\n target: {\n name: name ?? '',\n value: String(value ?? ''),\n },\n unmaskedValue: maskRef.unmaskedValue,\n });\n }}\n overwrite\n />\n );\n});\n\n/**\n * 마스크 텍스트 입력 필드\n * @param mask 입력 마스크 문자열\n * @param definitions 사용자 정의 마스크 정의\n * @param onChange 마스크 변경 이벤트 핸들러\n */\nexport function OwpTextMaskField({\n className,\n sx,\n id: idProp,\n name,\n label,\n value,\n defaultValue,\n color,\n onChange,\n error,\n helperText,\n mask,\n definitions,\n variant,\n fullWidth,\n disabled,\n required,\n placeholder,\n autoFocus,\n inputProps,\n inputRef,\n}: OwpTextMaskFieldProps) {\n const generatedId = useId();\n const id = idProp ?? `text-mask-input-${generatedId}`;\n\n return (\n <FormControl\n color={color}\n variant={variant}\n fullWidth={fullWidth}\n error={error}\n disabled={disabled}\n required={required}\n >\n <InputLabel htmlFor={id}>{label}</InputLabel>\n <Input\n className={className}\n sx={sx}\n value={value}\n defaultValue={defaultValue}\n name={name}\n id={id}\n placeholder={placeholder}\n autoFocus={autoFocus}\n inputRef={inputRef}\n inputComponent={TextMaskCustom}\n inputProps={{\n ...inputProps,\n onMaskChange: onChange,\n mask,\n definitions,\n }}\n />\n <FormHelperText>{helperText}</FormHelperText>\n </FormControl>\n );\n}\n"],"names":["TextMaskCustom","forwardRef","__name","props","ref","onMaskChange","mask","definitions","name","other","ignoredOnChange","imaskInputProps","jsx","IMaskInput","value","maskRef","OwpTextMaskField","className","sx","idProp","label","defaultValue","color","onChange","error","helperText","variant","fullWidth","disabled","required","placeholder","autoFocus","inputProps","inputRef","generatedId","useId","id","jsxs","FormControl","InputLabel","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;AAAA,MACA,UAAAI;AAAA,MACA,UAAAC;AAAA,MAEA,UAAA;AAAA,QAAA,gBAAAjB,EAAC2B,GAAA,EAAW,SAASH,GAAK,UAAAhB,GAAM;AAAA,QAChC,gBAAAR;AAAA,UAAC4B;AAAA,UAAA;AAAA,YACC,WAAAvB;AAAA,YACA,IAAAC;AAAA,YACA,OAAAJ;AAAA,YACA,cAAAO;AAAA,YACA,MAAAb;AAAA,YACA,IAAA4B;AAAA,YACA,aAAAN;AAAA,YACA,WAAAC;AAAA,YACA,UAAAE;AAAA,YACA,gBAAgBjC;AAAA,YAChB,YAAY;AAAA,cACV,GAAGgC;AAAA,cACH,cAAcT;AAAA,cACd,MAAAjB;AAAA,cACA,aAAAC;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,QAEF,gBAAAK,EAAC6B,KAAgB,UAAAhB,EAAA,CAAW;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGlC;AAzDgBvB,EAAAc,GAAA;"}
|
|
1
|
+
{"version":3,"file":"OwpTextMaskField.js","sources":["../../../src/components/OwpTextField/OwpTextMaskField.tsx"],"sourcesContent":["import { FormHelperText } from '@mui/material';\nimport FormControl from '@mui/material/FormControl';\nimport type { FormControlProps } from '@mui/material/FormControl';\nimport Input from '@mui/material/Input';\nimport type { InputProps as MuiInputProps } from '@mui/material/Input';\nimport type { InputBaseComponentProps } from '@mui/material/InputBase';\nimport InputLabel from '@mui/material/InputLabel';\nimport {\n forwardRef,\n type ForwardedRef,\n type ReactNode,\n useEffect,\n useId,\n useRef,\n} from 'react';\nimport { InputMask as IMaskInput, type Definitions, type FactoryOpts } from 'imask';\n\ntype TextMaskFieldChangeEvent = {\n target: { name: string; value: string };\n unmaskedValue: string;\n};\n\ntype TextMaskValue = FactoryOpts['mask'];\n\ninterface CustomProps {\n onMaskChange: (event: TextMaskFieldChangeEvent) => void;\n name?: string;\n mask: TextMaskValue;\n definitions?: Definitions;\n}\n\ntype OwpTextMaskFieldProps = Omit<MuiInputProps, 'onChange' | 'inputComponent'> &\n Omit<CustomProps, 'onMaskChange'> & {\n label?: ReactNode;\n helperText?: ReactNode;\n variant?: FormControlProps['variant'];\n onChange: CustomProps['onMaskChange'];\n };\n\n/** 마스크 입력 어댑터 */\ntype TextMaskCustomProps = InputBaseComponentProps & CustomProps;\n\ntype TextMaskOptions = FactoryOpts & {\n definitions?: Definitions;\n overwrite: true;\n};\n\n/** ref 전달 정규화 */\nfunction assignInputRef<T>(ref: ForwardedRef<T>, value: T | null) {\n if (typeof ref === 'function') {\n ref(value);\n return;\n }\n\n if (ref) {\n ref.current = value;\n }\n}\n\n/** 마스크 옵션 생성 */\nfunction buildTextMaskOptions({\n mask,\n definitions,\n}: Pick<CustomProps, 'mask' | 'definitions'>): TextMaskOptions {\n return {\n mask,\n definitions,\n overwrite: true,\n } as TextMaskOptions;\n}\n\nconst TextMaskCustom = forwardRef<HTMLInputElement, TextMaskCustomProps>(function TextMaskCustom(\n props,\n ref,\n) {\n const {\n onMaskChange,\n mask,\n definitions,\n name,\n value,\n defaultValue,\n ownerState: ignoredOwnerState,\n as: ignoredAs,\n onChange,\n ...other\n } = props;\n const inputElementRef = useRef<HTMLInputElement | null>(null);\n const maskRef = useRef<IMaskInput<FactoryOpts> | null>(null);\n const onMaskChangeRef = useRef(onMaskChange);\n const nameRef = useRef(name);\n const initialMaskOptionsRef = useRef(buildTextMaskOptions({ mask, definitions }));\n const initialValueRef = useRef(value !== undefined ? value : defaultValue);\n\n void ignoredOwnerState;\n void ignoredAs;\n\n useEffect(() => {\n onMaskChangeRef.current = onMaskChange;\n }, [onMaskChange]);\n\n useEffect(() => {\n nameRef.current = name;\n }, [name]);\n\n useEffect(() => {\n const inputElement = inputElementRef.current;\n\n if (!inputElement) {\n return;\n }\n\n const maskInstance = new IMaskInput(\n inputElement,\n initialMaskOptionsRef.current as FactoryOpts,\n );\n const emitMaskChange = () => {\n onMaskChangeRef.current({\n target: {\n name: nameRef.current ?? inputElement.name ?? '',\n value: maskInstance.value,\n },\n unmaskedValue: maskInstance.unmaskedValue,\n });\n };\n\n maskInstance.on('accept', emitMaskChange);\n maskRef.current = maskInstance;\n\n if (initialValueRef.current !== undefined) {\n const normalizedInitialValue =\n initialValueRef.current == null ? '' : String(initialValueRef.current);\n\n if (maskInstance.value !== normalizedInitialValue) {\n maskInstance.value = normalizedInitialValue;\n }\n }\n\n return () => {\n maskInstance.off('accept', emitMaskChange);\n maskInstance.destroy();\n\n if (maskRef.current === maskInstance) {\n maskRef.current = null;\n }\n };\n }, []);\n\n useEffect(() => {\n const maskInstance = maskRef.current;\n\n if (!maskInstance) {\n return;\n }\n\n maskInstance.updateOptions(buildTextMaskOptions({ mask, definitions }) as FactoryOpts);\n }, [mask, definitions]);\n\n useEffect(() => {\n const maskInstance = maskRef.current;\n\n if (!maskInstance || value === undefined) {\n return;\n }\n\n const normalizedValue = value == null ? '' : String(value);\n\n if (maskInstance.value !== normalizedValue) {\n maskInstance.value = normalizedValue;\n }\n }, [value]);\n\n const initialValue = value !== undefined ? value : defaultValue;\n const normalizedInitialValue = initialValue == null ? '' : String(initialValue);\n\n return (\n <input\n {...other}\n defaultValue={normalizedInitialValue}\n onChange={onChange}\n ref={(element) => {\n inputElementRef.current = element;\n assignInputRef(ref, element);\n }}\n />\n );\n});\n\n/**\n * 마스크 텍스트 입력 필드\n * @param mask 입력 마스크 정의\n * @param definitions 사용자 정의 마스크 정의\n * @param onChange 마스크 변경 이벤트 핸들러\n */\nexport function OwpTextMaskField({\n className,\n sx,\n id: idProp,\n name,\n label,\n value,\n defaultValue,\n color,\n onChange,\n error,\n helperText,\n mask,\n definitions,\n variant,\n fullWidth,\n disabled,\n required,\n placeholder,\n autoFocus,\n inputProps,\n inputRef,\n}: OwpTextMaskFieldProps) {\n const generatedId = useId();\n const id = idProp ?? `text-mask-input-${generatedId}`;\n\n return (\n <FormControl\n color={color}\n variant={variant}\n fullWidth={fullWidth}\n error={error}\n disabled={disabled}\n required={required}\n >\n {label ? <InputLabel htmlFor={id}>{label}</InputLabel> : null}\n <Input\n className={className}\n sx={sx}\n value={value}\n defaultValue={defaultValue}\n name={name}\n id={id}\n placeholder={placeholder}\n autoFocus={autoFocus}\n inputRef={inputRef}\n inputComponent={TextMaskCustom}\n inputProps={{\n ...inputProps,\n onMaskChange: onChange,\n mask,\n definitions,\n }}\n />\n {helperText ? <FormHelperText>{helperText}</FormHelperText> : null}\n </FormControl>\n );\n}\n"],"names":["assignInputRef","ref","value","__name","buildTextMaskOptions","mask","definitions","TextMaskCustom","forwardRef","props","onMaskChange","name","defaultValue","ignoredOwnerState","ignoredAs","onChange","other","inputElementRef","useRef","maskRef","onMaskChangeRef","nameRef","initialMaskOptionsRef","initialValueRef","useEffect","inputElement","maskInstance","IMaskInput","emitMaskChange","normalizedInitialValue","normalizedValue","initialValue","jsx","element","OwpTextMaskField","className","sx","idProp","label","color","error","helperText","variant","fullWidth","disabled","required","placeholder","autoFocus","inputProps","inputRef","generatedId","useId","id","jsxs","FormControl","InputLabel","Input","FormHelperText"],"mappings":";;;;;;;;;AAgDA,SAASA,EAAkBC,GAAsBC,GAAiB;AAChE,MAAI,OAAOD,KAAQ,YAAY;AAC7B,IAAAA,EAAIC,CAAK;AACT;AAAA,EACF;AAEA,EAAID,MACFA,EAAI,UAAUC;AAElB;AATSC,EAAAH,GAAA;AAYT,SAASI,EAAqB;AAAA,EAC5B,MAAAC;AAAA,EACA,aAAAC;AACF,GAA+D;AAC7D,SAAO;AAAA,IACL,MAAAD;AAAA,IACA,aAAAC;AAAA,IACA,WAAW;AAAA,EAAA;AAEf;AATSH,EAAAC,GAAA;AAWT,MAAMG,IAAiBC,EAAkD,gBAAAL,EAAA,SACvEM,GACAR,GACA;AACA,QAAM;AAAA,IACJ,cAAAS;AAAA,IACA,MAAAL;AAAA,IACA,aAAAC;AAAA,IACA,MAAAK;AAAA,IACA,OAAAT;AAAA,IACA,cAAAU;AAAA,IACA,YAAYC;AAAA,IACZ,IAAIC;AAAA,IACJ,U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EnD,SACE,gBAAAG;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAAf;AAAA,MACA,SAAAG;AAAA,MACA,WAAAC;AAAA,MACA,OAAAH;AAAA,MACA,UAAAI;AAAA,MACA,UAAAC;AAAA,MAEC,UAAA;AAAA,QAAAP,IAAQ,gBAAAN,EAACuB,GAAA,EAAW,SAASH,GAAK,aAAM,IAAgB;AAAA,QACzD,gBAAApB;AAAA,UAACwB;AAAA,UAAA;AAAA,YACC,WAAArB;AAAA,YACA,IAAAC;AAAA,YACA,OAAAlC;AAAA,YACA,cAAAU;AAAA,YACA,MAAAD;AAAA,YACA,IAAAyC;AAAA,YACA,aAAAN;AAAA,YACA,WAAAC;AAAA,YACA,UAAAE;AAAA,YACA,gBAAgB1C;AAAA,YAChB,YAAY;AAAA,cACV,GAAGyC;AAAA,cACH,cAAcjC;AAAA,cACd,MAAAV;AAAA,cACA,aAAAC;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,QAEDmC,IAAa,gBAAAT,EAACyB,GAAA,EAAgB,UAAAhB,EAAA,CAAW,IAAoB;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGpE;AAzDgBtC,EAAA+B,GAAA;"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
var r = Object.defineProperty;
|
|
2
2
|
var n = (e, i) => r(e, "name", { value: i, configurable: !0 });
|
|
3
3
|
import { jsx as o } from "../../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
|
|
4
|
-
import p from "
|
|
5
|
-
import
|
|
4
|
+
import { TREEGRID_FONT_FAMILY_STACK as p } from "../../../constants/treeGrid.js";
|
|
5
|
+
import l from "@mui/material/Typography";
|
|
6
|
+
import { TREE_GRID_NO_DATA_OVERLAY_Z_INDEX as f } from "./hooks/useOwpTreeGridOverlayFrame.js";
|
|
6
7
|
const c = /* @__PURE__ */ n(({
|
|
7
8
|
visible: e,
|
|
8
9
|
message: i,
|
|
@@ -17,18 +18,18 @@ const c = /* @__PURE__ */ n(({
|
|
|
17
18
|
top: t.top,
|
|
18
19
|
width: t.width,
|
|
19
20
|
height: t.height,
|
|
20
|
-
zIndex:
|
|
21
|
+
zIndex: f,
|
|
21
22
|
display: "flex",
|
|
22
23
|
alignItems: "center",
|
|
23
24
|
justifyContent: "center",
|
|
24
25
|
pointerEvents: "none"
|
|
25
26
|
},
|
|
26
27
|
children: /* @__PURE__ */ o(
|
|
27
|
-
|
|
28
|
+
l,
|
|
28
29
|
{
|
|
29
30
|
sx: {
|
|
30
31
|
color: "#111112",
|
|
31
|
-
fontFamily:
|
|
32
|
+
fontFamily: p,
|
|
32
33
|
fontSize: "14px",
|
|
33
34
|
lineHeight: "16px",
|
|
34
35
|
letterSpacing: "0.04em"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwpTreeGridNoDataOverlay.js","sources":["../../../../src/components/OwpTreeGrid/internal/OwpTreeGridNoDataOverlay.tsx"],"sourcesContent":["import Typography from '@mui/material/Typography';\nimport {\n type OwpTreeGridOverlayFrame,\n TREE_GRID_NO_DATA_OVERLAY_Z_INDEX,\n} from './hooks/useOwpTreeGridOverlayFrame';\n\ntype OwpTreeGridNoDataOverlayProps = {\n visible: boolean;\n message: string;\n overlayFrame: OwpTreeGridOverlayFrame;\n};\n\n/**\n * TreeGrid no-data overlay\n * @param visible overlay visibility\n * @param message no-data message\n * @param overlayFrame overlay frame\n */\nconst OwpTreeGridNoDataOverlay = ({\n visible,\n message,\n overlayFrame,\n}: OwpTreeGridNoDataOverlayProps) => {\n if (!visible) {\n return null;\n }\n\n return (\n <div\n aria-hidden=\"true\"\n style={{\n position: 'absolute',\n left: overlayFrame.left,\n top: overlayFrame.top,\n width: overlayFrame.width,\n height: overlayFrame.height,\n zIndex: TREE_GRID_NO_DATA_OVERLAY_Z_INDEX,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n pointerEvents: 'none',\n }}\n >\n <Typography\n sx={{\n color: '#111112',\n fontFamily:
|
|
1
|
+
{"version":3,"file":"OwpTreeGridNoDataOverlay.js","sources":["../../../../src/components/OwpTreeGrid/internal/OwpTreeGridNoDataOverlay.tsx"],"sourcesContent":["import { TREEGRID_FONT_FAMILY_STACK } from '@/constants/treeGrid';\nimport Typography from '@mui/material/Typography';\nimport {\n type OwpTreeGridOverlayFrame,\n TREE_GRID_NO_DATA_OVERLAY_Z_INDEX,\n} from './hooks/useOwpTreeGridOverlayFrame';\n\ntype OwpTreeGridNoDataOverlayProps = {\n visible: boolean;\n message: string;\n overlayFrame: OwpTreeGridOverlayFrame;\n};\n\n/**\n * TreeGrid no-data overlay\n * @param visible overlay visibility\n * @param message no-data message\n * @param overlayFrame overlay frame\n */\nconst OwpTreeGridNoDataOverlay = ({\n visible,\n message,\n overlayFrame,\n}: OwpTreeGridNoDataOverlayProps) => {\n if (!visible) {\n return null;\n }\n\n return (\n <div\n aria-hidden=\"true\"\n style={{\n position: 'absolute',\n left: overlayFrame.left,\n top: overlayFrame.top,\n width: overlayFrame.width,\n height: overlayFrame.height,\n zIndex: TREE_GRID_NO_DATA_OVERLAY_Z_INDEX,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n pointerEvents: 'none',\n }}\n >\n <Typography\n sx={{\n color: '#111112',\n fontFamily: TREEGRID_FONT_FAMILY_STACK,\n fontSize: '14px',\n lineHeight: '16px',\n letterSpacing: '0.04em',\n }}\n >\n {message}\n </Typography>\n </div>\n );\n};\n\nexport { OwpTreeGridNoDataOverlay };\n"],"names":["OwpTreeGridNoDataOverlay","__name","visible","message","overlayFrame","jsx","TREE_GRID_NO_DATA_OVERLAY_Z_INDEX","Typography","TREEGRID_FONT_FAMILY_STACK"],"mappings":";;;;;;AAmBA,MAAMA,IAA2B,gBAAAC,EAAA,CAAC;AAAA,EAChC,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,cAAAC;AACF,MACOF,IAKH,gBAAAG;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,eAAY;AAAA,IACZ,OAAO;AAAA,MACL,UAAU;AAAA,MACV,MAAMD,EAAa;AAAA,MACnB,KAAKA,EAAa;AAAA,MAClB,OAAOA,EAAa;AAAA,MACpB,QAAQA,EAAa;AAAA,MACrB,QAAQE;AAAA,MACR,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,gBAAgB;AAAA,MAChB,eAAe;AAAA,IAAA;AAAA,IAGjB,UAAA,gBAAAD;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,IAAI;AAAA,UACF,OAAO;AAAA,UACP,YAAYC;AAAA,UACZ,UAAU;AAAA,UACV,YAAY;AAAA,UACZ,eAAe;AAAA,QAAA;AAAA,QAGhB,UAAAL;AAAA,MAAA;AAAA,IAAA;AAAA,EACH;AAAA,IA7BK,MANsB;"}
|