@owp/core 2.5.3 → 2.5.5

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.
Files changed (188) hide show
  1. package/dist/_virtual/index10.js +2 -2
  2. package/dist/_virtual/index12.js +2 -2
  3. package/dist/_virtual/index13.js +2 -2
  4. package/dist/_virtual/index14.js +2 -2
  5. package/dist/_virtual/index15.js +2 -2
  6. package/dist/_virtual/index16.js +4 -4
  7. package/dist/_virtual/index17.js +4 -4
  8. package/dist/_virtual/index18.js +4 -4
  9. package/dist/_virtual/index19.js +4 -4
  10. package/dist/_virtual/index5.js +2 -2
  11. package/dist/components/OwpMrtTable/OwpMrtTable.js +250 -258
  12. package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
  13. package/dist/components/OwpPageSkeleton/OwpPageSkeleton.js +4 -4
  14. package/dist/components/OwpSnackbarContent/OwpSnackbarContent.js +166 -0
  15. package/dist/components/OwpSnackbarContent/OwpSnackbarContent.js.map +1 -0
  16. package/dist/components/OwpTable/OwpDataTable.js +321 -327
  17. package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
  18. package/dist/components/OwpTable/OwpFieldTable.js +102 -58
  19. package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
  20. package/dist/components/OwpTable/OwpTable.js +158 -174
  21. package/dist/components/OwpTable/OwpTable.js.map +1 -1
  22. package/dist/components/OwpTable/internal/defaultTableStyle.js +50 -0
  23. package/dist/components/OwpTable/internal/defaultTableStyle.js.map +1 -0
  24. package/dist/components/OwpTable/internal/treeGridTableStyle.js +77 -0
  25. package/dist/components/OwpTable/internal/treeGridTableStyle.js.map +1 -0
  26. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +200 -253
  27. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  28. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +183 -124
  29. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  30. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +462 -0
  31. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -0
  32. package/dist/configs/defaultConfig.js +67 -44
  33. package/dist/configs/defaultConfig.js.map +1 -1
  34. package/dist/constants/gridTheme.js +60 -10
  35. package/dist/constants/gridTheme.js.map +1 -1
  36. package/dist/constants/tableTheme.js +16 -0
  37. package/dist/constants/tableTheme.js.map +1 -0
  38. package/dist/constants/treeGrid.js +44 -26
  39. package/dist/constants/treeGrid.js.map +1 -1
  40. package/dist/constants.js +21 -20
  41. package/dist/contexts/OwpAppProvider.js.map +1 -1
  42. package/dist/contexts/OwpUiProvider.js +59 -38
  43. package/dist/contexts/OwpUiProvider.js.map +1 -1
  44. package/dist/features/themePreview/components/ThemePreviewCanvas.js +492 -0
  45. package/dist/features/themePreview/components/ThemePreviewCanvas.js.map +1 -0
  46. package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +678 -0
  47. package/dist/features/themePreview/components/ThemePreviewCanvasSections.js.map +1 -0
  48. package/dist/features/themePreview/components/ThemePreviewColorField.js +301 -0
  49. package/dist/features/themePreview/components/ThemePreviewColorField.js.map +1 -0
  50. package/dist/features/themePreview/components/ThemePreviewControls.js +306 -0
  51. package/dist/features/themePreview/components/ThemePreviewControls.js.map +1 -0
  52. package/dist/features/themePreview/components/themePreviewCanvas.icons.js +17 -0
  53. package/dist/features/themePreview/components/themePreviewCanvas.icons.js.map +1 -0
  54. package/dist/features/themePreview/components/themePreviewCanvas.shared.js +296 -0
  55. package/dist/features/themePreview/components/themePreviewCanvas.shared.js.map +1 -0
  56. package/dist/features/themePreview/configs/grid.js +45 -0
  57. package/dist/features/themePreview/configs/grid.js.map +1 -0
  58. package/dist/features/themePreview/configs/presets.js +1106 -0
  59. package/dist/features/themePreview/configs/presets.js.map +1 -0
  60. package/dist/features/themePreview/configs/previewStorage.js +93 -0
  61. package/dist/features/themePreview/configs/previewStorage.js.map +1 -0
  62. package/dist/features/themePreview/configs/settings.js +148 -0
  63. package/dist/features/themePreview/configs/settings.js.map +1 -0
  64. package/dist/features/themePreview/configs/snackbar.js +39 -0
  65. package/dist/features/themePreview/configs/snackbar.js.map +1 -0
  66. package/dist/features/themePreview/configs/surface.js +10 -0
  67. package/dist/features/themePreview/configs/surface.js.map +1 -0
  68. package/dist/features/themePreview/configs/table.js +30 -0
  69. package/dist/features/themePreview/configs/table.js.map +1 -0
  70. package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js +43 -0
  71. package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js.map +1 -0
  72. package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js +43 -0
  73. package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js.map +1 -0
  74. package/dist/features/themePreview/dialogs/ThemePreviewDialog.js +429 -0
  75. package/dist/features/themePreview/dialogs/ThemePreviewDialog.js.map +1 -0
  76. package/dist/features/themePreview/hooks/useThemePreview.js +235 -0
  77. package/dist/features/themePreview/hooks/useThemePreview.js.map +1 -0
  78. package/dist/features/themePreview/utils/color.js +79 -0
  79. package/dist/features/themePreview/utils/color.js.map +1 -0
  80. package/dist/features/themePreview/utils/themePreviewDefinitions.js +526 -0
  81. package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -0
  82. package/dist/features/themePreview/utils/themePreviewExport.js +111 -0
  83. package/dist/features/themePreview/utils/themePreviewExport.js.map +1 -0
  84. package/dist/features/themePreview/utils/themePreviewSettings.js +211 -0
  85. package/dist/features/themePreview/utils/themePreviewSettings.js.map +1 -0
  86. package/dist/features/themePreview.js +75 -0
  87. package/dist/features/themePreview.js.map +1 -0
  88. package/dist/index.js +111 -110
  89. package/dist/layout/components/logo/Logo.js +49 -45
  90. package/dist/layout/components/logo/Logo.js.map +1 -1
  91. package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
  92. package/dist/layout/components/toggles/ThemePreviewToggle.js +51 -0
  93. package/dist/layout/components/toggles/ThemePreviewToggle.js.map +1 -0
  94. package/dist/layout/components/toolbar/ToolbarLayout.js +13 -10
  95. package/dist/layout/components/toolbar/ToolbarLayout.js.map +1 -1
  96. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/CheckCircleOutline.js +9 -0
  97. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/CheckCircleOutline.js.map +1 -0
  98. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DownloadOutlined.js +9 -0
  99. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DownloadOutlined.js.map +1 -0
  100. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ErrorOutline.js +9 -0
  101. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ErrorOutline.js.map +1 -0
  102. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/InfoOutlined.js +9 -0
  103. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/InfoOutlined.js.map +1 -0
  104. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/KeyboardArrowUpRounded.js +9 -0
  105. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/KeyboardArrowUpRounded.js.map +1 -0
  106. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/MenuRounded.js +9 -0
  107. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/MenuRounded.js.map +1 -0
  108. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/NotificationsNoneOutlined.js +9 -0
  109. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/NotificationsNoneOutlined.js.map +1 -0
  110. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/PaletteOutlined.js +25 -0
  111. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/PaletteOutlined.js.map +1 -0
  112. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/RestoreOutlined.js +9 -0
  113. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/RestoreOutlined.js.map +1 -0
  114. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SaveOutlined.js +9 -0
  115. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SaveOutlined.js.map +1 -0
  116. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SpaceDashboardOutlined.js +9 -0
  117. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SpaceDashboardOutlined.js.map +1 -0
  118. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/UploadFileOutlined.js +9 -0
  119. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/UploadFileOutlined.js.map +1 -0
  120. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/WarningAmberRounded.js +9 -0
  121. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/WarningAmberRounded.js.map +1 -0
  122. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  123. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
  124. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
  125. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
  126. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
  127. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
  128. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  129. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
  130. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
  131. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
  132. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
  133. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
  134. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
  135. package/dist/node_modules/.pnpm/react-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.js +1 -1
  136. package/dist/owp-app.css +1 -1
  137. package/dist/types/components/OwpSnackbarContent/OwpSnackbarContent.d.ts +2 -0
  138. package/dist/types/components/OwpTable/OwpTable.d.ts +3 -1
  139. package/dist/types/components/OwpTable/internal/defaultTableStyle.d.ts +49 -0
  140. package/dist/types/components/OwpTable/internal/treeGridTableStyle.d.ts +105 -0
  141. package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +2 -1
  142. package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +11 -2
  143. package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +20 -0
  144. package/dist/types/configs/defaultConfig.d.ts +22 -0
  145. package/dist/types/constants/gridTheme.d.ts +58 -0
  146. package/dist/types/constants/tableTheme.d.ts +18 -0
  147. package/dist/types/constants/treeGrid.d.ts +5 -0
  148. package/dist/types/contexts/OwpAppProvider.d.ts +2 -0
  149. package/dist/types/features/themePreview/components/ThemePreviewCanvas.d.ts +8 -0
  150. package/dist/types/features/themePreview/components/ThemePreviewCanvasSections.d.ts +82 -0
  151. package/dist/types/features/themePreview/components/ThemePreviewColorField.d.ts +10 -0
  152. package/dist/types/features/themePreview/components/ThemePreviewControls.d.ts +18 -0
  153. package/dist/types/features/themePreview/components/index.d.ts +3 -0
  154. package/dist/types/features/themePreview/components/themePreviewCanvas.icons.d.ts +3 -0
  155. package/dist/types/features/themePreview/components/themePreviewCanvas.shared.d.ts +121 -0
  156. package/dist/types/features/themePreview/configs/grid.d.ts +41 -0
  157. package/dist/types/features/themePreview/configs/index.d.ts +7 -0
  158. package/dist/types/features/themePreview/configs/presets.d.ts +1153 -0
  159. package/dist/types/features/themePreview/configs/previewStorage.d.ts +34 -0
  160. package/dist/types/features/themePreview/configs/settings.d.ts +271 -0
  161. package/dist/types/features/themePreview/configs/snackbar.d.ts +43 -0
  162. package/dist/types/features/themePreview/configs/surface.d.ts +6 -0
  163. package/dist/types/features/themePreview/configs/table.d.ts +47 -0
  164. package/dist/types/features/themePreview/dialogs/ThemePreviewDialog.d.ts +3 -0
  165. package/dist/types/features/themePreview/dialogs/index.d.ts +1 -0
  166. package/dist/types/features/themePreview/hooks/index.d.ts +1 -0
  167. package/dist/types/features/themePreview/hooks/useThemePreview.d.ts +60 -0
  168. package/dist/types/features/themePreview/index.d.ts +6 -0
  169. package/dist/types/features/themePreview/types/index.d.ts +1 -0
  170. package/dist/types/features/themePreview/types/themePreview.d.ts +44 -0
  171. package/dist/types/features/themePreview/utils/color.d.ts +14 -0
  172. package/dist/types/features/themePreview/utils/index.d.ts +4 -0
  173. package/dist/types/features/themePreview/utils/themePreviewDefinitions.d.ts +10 -0
  174. package/dist/types/features/themePreview/utils/themePreviewExport.d.ts +1091 -0
  175. package/dist/types/features/themePreview/utils/themePreviewSettings.d.ts +54 -0
  176. package/dist/types/layout/components/toggles/ThemePreviewToggle.d.ts +5 -0
  177. package/dist/types/types/OwpGridThemeTypes.d.ts +34 -0
  178. package/dist/types/types/OwpSettingsTypes.d.ts +9 -0
  179. package/dist/types/types/OwpTableThemeTypes.d.ts +16 -0
  180. package/dist/types/types/index.d.ts +3 -2
  181. package/dist/types/utils/treeGridUtil.d.ts +1 -0
  182. package/dist/utils/exceljsBrowser.js +45 -48
  183. package/dist/utils/exceljsBrowser.js.map +1 -1
  184. package/dist/utils/treeGridUtil.js +66 -66
  185. package/dist/utils/treeGridUtil.js.map +1 -1
  186. package/features/themePreview.d.ts +3 -0
  187. package/features/themePreview.js +1 -0
  188. package/package.json +2 -1
@@ -1,78 +1,56 @@
1
- var Ft = Object.defineProperty;
2
- var n = (t, o) => Ft(t, "name", { value: o, configurable: !0 });
3
- import { jsxs as z, jsx as a } 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 { resolveOwpGridTheme as $t } from "../../constants/gridTheme.js";
5
- import { getTreeGridFontFaceStyles as It, TREEGRID_FONT_FAMILY_STACK as Nt } from "../../constants/treeGrid.js";
6
- import { useGetCurrentSettings as Mt } from "../../hooks/useOwpSettings.js";
7
- import { TextField as yt, Divider as Ht, Typography as Z } from "@mui/material";
8
- import ft, { checkboxClasses as Dt } from "@mui/material/Checkbox";
9
- import { grey as F } from "@mui/material/colors";
10
- import Et from "@mui/material/GlobalStyles";
11
- import Ot from "@mui/material/Paper";
12
- import zt from "@mui/material/Table";
13
- import Bt from "@mui/material/TableBody";
14
- import B from "@mui/material/TableCell";
15
- import Ct from "@mui/material/TableContainer";
16
- import Wt from "@mui/material/TableHead";
17
- import bt from "@mui/material/TableRow";
18
- import Vt from "@mui/material/TableSortLabel";
19
- import { useState as J, useRef as _t, useMemo as y, useEffect as dt } from "react";
20
- import { uniqueId as qt } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/util/uniqueId.js";
21
- import { isEmpty as Pt } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
22
- import { isEqual as Q } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
23
- import { OwpNumberField as Tt } from "../OwpNumberField/OwpNumberField.js";
24
- import { isNumber as H } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isNumber.js";
25
- import { isArray as xt } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
26
- import { isBoolean as ut } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isBoolean.js";
27
- const ct = {
28
- bgcolor: "#586980",
1
+ var It = Object.defineProperty;
2
+ var n = (t, e) => It(t, "name", { value: e, configurable: !0 });
3
+ import { jsxs as M, jsx as l } 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 { resolveOwpGridTheme as Ft } from "../../constants/gridTheme.js";
5
+ import { resolveOwpTableTheme as St } from "../../constants/tableTheme.js";
6
+ import { getTreeGridFontFaceStyles as Ct } from "../../constants/treeGrid.js";
7
+ import { useGetCurrentSettings as Nt } from "../../hooks/useOwpSettings.js";
8
+ import { TextField as zt, Divider as Mt, Typography as rt } from "@mui/material";
9
+ import kt, { checkboxClasses as Vt } from "@mui/material/Checkbox";
10
+ import { grey as At } from "@mui/material/colors";
11
+ import qt from "@mui/material/GlobalStyles";
12
+ import Pt from "@mui/material/Paper";
13
+ import jt from "@mui/material/Table";
14
+ import Wt from "@mui/material/TableBody";
15
+ import V from "@mui/material/TableCell";
16
+ import Zt from "@mui/material/TableContainer";
17
+ import yt from "@mui/material/TableHead";
18
+ import $t from "@mui/material/TableRow";
19
+ import Kt from "@mui/material/TableSortLabel";
20
+ import { useTheme as Yt } from "@mui/material/styles";
21
+ import { useState as Q, useRef as Jt, useMemo as O, useEffect as bt } from "react";
22
+ import { TREEGRID_TABLE_BODY_BORDER_COLOR as Qt, getTreeGridBodyCellSx as X, getTreeGridBodyRowSx as Xt, getTreeGridContainerSx as G, getTreeGridHeaderCellSx as gt, TREEGRID_TABLE_HEADER_BORDER_COLOR as Gt } from "./internal/treeGridTableStyle.js";
23
+ import { getDefaultTableCellSx as Ut, getDefaultTableHeaderCellSx as te, defaultTableSortLabelSx as ee, getDefaultTableHeaderLabelSx as ht, defaultStyledTableTheme as oe } from "./internal/defaultTableStyle.js";
24
+ import { uniqueId as re } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/util/uniqueId.js";
25
+ import { isEmpty as ie } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
26
+ import { isEqual as U } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
27
+ import { OwpNumberField as ne } from "../OwpNumberField/OwpNumberField.js";
28
+ import { isNumber as S } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isNumber.js";
29
+ import { isArray as Et } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
30
+ import { isBoolean as pt } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isBoolean.js";
31
+ const xt = /* @__PURE__ */ n((t, e) => ({
32
+ ...te(t, e),
33
+ borderBottom: `1px solid ${st}`,
29
34
  borderTopLeftRadius: "inherit",
30
35
  borderTopRightRadius: "inherit"
31
- }, mt = {
32
- borderRight: `1px solid ${F.A200}`
33
- }, X = {
34
- borderRight: `1px solid ${F[400]}`
35
- }, jt = {
36
- "&.MuiTableSortLabel-root": {
37
- color: F.A100
38
- },
39
- "&.MuiTableSortLabel-root:hover": {
40
- color: F.A100
41
- },
42
- "&.Mui-active": {
43
- color: F.A100
44
- },
45
- "& .MuiTableSortLabel-icon": {
46
- color: `${F.A100} !important`
47
- }
48
- }, g = {
36
+ }), "defaultHeadCellsSx"), Rt = {
37
+ borderRight: `1px solid ${Gt}`
38
+ }, st = At[400], tt = {
39
+ borderRight: `1px solid ${st}`
40
+ }, et = {
41
+ borderRight: `1px solid ${Qt}`
42
+ }, ot = /* @__PURE__ */ n((t) => ({
43
+ ...Ut(t)
44
+ }), "getDefaultTableBodyCellSx"), vt = {
45
+ borderRight: `1px solid ${st}`
46
+ }, f = {
49
47
  borderRadius: 0
50
- }, Kt = {
48
+ }, se = {
51
49
  "& > th, & > td": {
52
50
  borderBottomLeftRadius: 0,
53
51
  borderBottomRightRadius: 0
54
52
  }
55
- }, vt = /* @__PURE__ */ n((t) => ({
56
- fontFamily: Nt,
57
- fontSize: t,
58
- fontWeight: "normal",
59
- lineHeight: "16px",
60
- boxSizing: "border-box",
61
- overflow: "hidden",
62
- textOverflow: "ellipsis",
63
- verticalAlign: "middle",
64
- whiteSpace: "nowrap"
65
- }), "getTreeGridCellBaseSx"), lt = /* @__PURE__ */ n((t) => ({
66
- ...vt(t.header.fontSize),
67
- bgcolor: t.header.backgroundColor,
68
- borderBottom: "1px solid #6F7F94",
69
- borderRight: "1px solid #6F7F94",
70
- color: t.header.color,
71
- fontWeight: t.header.fontWeight,
72
- height: t.header.height,
73
- minHeight: t.header.height,
74
- p: "7px 2px 6px 10px"
75
- }), "getTreeGridHeaderCellSx"), Yt = {
53
+ }, ae = {
76
54
  "&.MuiTableSortLabel-root": {
77
55
  color: "inherit",
78
56
  display: "flex",
@@ -99,16 +77,10 @@ const ct = {
99
77
  position: "absolute",
100
78
  right: 0
101
79
  }
102
- }, G = /* @__PURE__ */ n((t) => ({
103
- ...vt(t.cell.fontSize),
104
- borderBottom: "1px solid #CDD8E4",
105
- borderRight: "1px solid #CDD8E4",
106
- color: "#111112",
107
- p: "7px 10px 6px"
108
- }), "getTreeGridBodyCellSx"), m = /* @__PURE__ */ n((...t) => t.reduce((o, i) => i ? [...o, ...xt(i) ? i : [i]] : o, []), "mergeSx"), Jt = /* @__PURE__ */ n((t) => {
109
- if (!(!H(t) || t < 1))
80
+ }, c = /* @__PURE__ */ n((...t) => t.reduce((e, i) => i ? [...e, ...Et(i) ? i : [i]] : e, []), "mergeSx"), de = /* @__PURE__ */ n((t) => {
81
+ if (!(!S(t) || t < 1))
110
82
  return t;
111
- }, "getFixedRowCount"), Qt = /* @__PURE__ */ n((t) => Array.from({ length: t }, () => ({})), "createEmptyRows"), U = /* @__PURE__ */ n((t, o) => {
83
+ }, "getFixedRowCount"), ue = /* @__PURE__ */ n((t) => Array.from({ length: t }, () => ({})), "createEmptyRows"), it = /* @__PURE__ */ n((t, e) => {
112
84
  switch (t) {
113
85
  case "center":
114
86
  case "right":
@@ -117,377 +89,396 @@ const ct = {
117
89
  case "justify":
118
90
  return t;
119
91
  default:
120
- return o;
92
+ return e;
121
93
  }
122
- }, "getTableCellAlign"), C = /* @__PURE__ */ n((t, o) => {
123
- if (o)
124
- return t == null ? void 0 : t[o];
125
- }, "getRowValue"), ht = /* @__PURE__ */ n((t) => {
126
- if (typeof t == "string" || H(t))
94
+ }, "getTableCellAlign"), q = /* @__PURE__ */ n((t, e) => {
95
+ if (e)
96
+ return t == null ? void 0 : t[e];
97
+ }, "getRowValue"), Lt = /* @__PURE__ */ n((t) => {
98
+ if (typeof t == "string" || S(t))
127
99
  return t;
128
100
  }, "getComparableValue");
129
- function gt(t, o, i) {
130
- const c = ht(C(t, i)), l = ht(C(o, i));
131
- return l == null && c == null ? 0 : l == null ? -1 : c == null ? 1 : l < c ? -1 : l > c ? 1 : 0;
101
+ function wt(t, e, i) {
102
+ const u = Lt(q(t, i)), b = Lt(q(e, i));
103
+ return b == null && u == null ? 0 : b == null ? -1 : u == null ? 1 : b < u ? -1 : b > u ? 1 : 0;
132
104
  }
133
- n(gt, "descendingComparator");
134
- function Xt(t, o) {
135
- return t === "desc" ? (i, c) => gt(i, c, o) : (i, c) => -gt(i, c, o);
105
+ n(wt, "descendingComparator");
106
+ function me(t, e) {
107
+ return t === "desc" ? (i, u) => wt(i, u, e) : (i, u) => -wt(i, u, e);
136
108
  }
137
- n(Xt, "getComparator");
138
- const tt = /* @__PURE__ */ n((t, o) => {
139
- if (o)
140
- return C(t, o);
141
- }, "getRowRangeValue"), Gt = /* @__PURE__ */ n((t, o) => {
142
- var c, l, f, v;
143
- if (!(o.inputLabel ?? o.rangeKey))
109
+ n(me, "getComparator");
110
+ const nt = /* @__PURE__ */ n((t, e) => {
111
+ if (e)
112
+ return q(t, e);
113
+ }, "getRowRangeValue"), le = /* @__PURE__ */ n((t, e) => {
114
+ var u, b, L, w;
115
+ if (!(e.inputLabel ?? e.rangeKey))
144
116
  return "";
145
- const i = tt(t, o.rangeKey);
146
- return `${(c = o.rangeLabel) != null && c.start ? `${(l = o.rangeLabel) == null ? void 0 : l.start}: ` : ""}${i == null ? void 0 : i.start} ~ ${(f = o.rangeLabel) != null && f.end ? `${(v = o.rangeLabel) == null ? void 0 : v.end}: ` : ""}${i == null ? void 0 : i.end}`;
147
- }, "getRangeLabel"), Zt = /* @__PURE__ */ n((t, o) => {
148
- const i = C(t, "index");
149
- return H(i) ? i : o;
150
- }, "getRowTabIndex"), pt = /* @__PURE__ */ n((t, o) => ({
117
+ const i = nt(t, e.rangeKey);
118
+ return `${(u = e.rangeLabel) != null && u.start ? `${(b = e.rangeLabel) == null ? void 0 : b.start}: ` : ""}${i == null ? void 0 : i.start} ~ ${(L = e.rangeLabel) != null && L.end ? `${(w = e.rangeLabel) == null ? void 0 : w.end}: ` : ""}${i == null ? void 0 : i.end}`;
119
+ }, "getRangeLabel"), ce = /* @__PURE__ */ n((t, e) => {
120
+ const i = q(t, "index");
121
+ return S(i) ? i : e;
122
+ }, "getRowTabIndex"), Tt = /* @__PURE__ */ n((t, e) => ({
151
123
  "& input": {
152
- fontSize: o,
124
+ fontSize: e,
153
125
  textAlign: t ?? "center"
154
126
  },
155
127
  "& .MuiInputBase-input": {
156
- fontSize: o
128
+ fontSize: e
157
129
  },
158
130
  height: 34
159
131
  }), "getEditableCellSx");
160
- function Ut(t) {
161
- const {
162
- sx: o,
163
- headCells: i,
164
- onSelectAllClick: c,
165
- order: l,
166
- orderBy: f,
167
- numSelected: v,
168
- rowCount: $,
169
- onRequestSort: W,
170
- canCheckbox: j,
171
- canUseOrderBy: h = !0,
172
- canTableRadiusZero: s,
173
- canUseTreeGridStyle: p,
174
- gridTheme: k
175
- } = t, R = /* @__PURE__ */ n((r) => (L) => {
176
- W(L, r);
132
+ function fe(t) {
133
+ const e = Yt(), {
134
+ sx: i,
135
+ headCells: u,
136
+ onSelectAllClick: b,
137
+ order: L,
138
+ orderBy: w,
139
+ numSelected: D,
140
+ rowCount: B,
141
+ onRequestSort: K,
142
+ canCheckbox: P,
143
+ canUseOrderBy: o = !0,
144
+ canTableRadiusZero: $,
145
+ canUseTreeGridStyle: m,
146
+ gridTheme: x,
147
+ tableTheme: g
148
+ } = t, _ = /* @__PURE__ */ n((s) => (T) => {
149
+ K(T, s);
177
150
  }, "createSortHandler");
178
- return /* @__PURE__ */ a(Wt, { sx: m(s && g), children: /* @__PURE__ */ z(
179
- bt,
151
+ return /* @__PURE__ */ l(yt, { sx: c($ && f), children: /* @__PURE__ */ M(
152
+ $t,
180
153
  {
181
- sx: m(
182
- p && { height: k.header.height },
183
- s && g
154
+ sx: c(
155
+ m && { height: x.header.height },
156
+ $ && f
184
157
  ),
185
158
  children: [
186
- j && /* @__PURE__ */ a(
187
- B,
159
+ P && /* @__PURE__ */ l(
160
+ V,
188
161
  {
189
162
  padding: "checkbox",
190
- className: "text-white",
191
- sx: m(
163
+ sx: c(
192
164
  {
193
- ...ct,
194
- ...mt
165
+ ...xt(g, e.palette.grey[200])
195
166
  },
196
- p && lt(k),
197
- s && g,
198
- o
167
+ !m && vt,
168
+ m && Rt,
169
+ m && gt(x),
170
+ $ && f,
171
+ i
199
172
  ),
200
- children: /* @__PURE__ */ a(
201
- ft,
173
+ children: /* @__PURE__ */ l(
174
+ kt,
202
175
  {
203
176
  color: "default",
204
- sx: m(
177
+ sx: c(
205
178
  {
206
- [`&, &.${Dt.checked}`]: {
207
- color: F[50]
208
- }
179
+ [`&, &.${Vt.checked}`]: m ? { color: At[50] } : { color: "inherit" }
209
180
  },
210
- p && { p: 0 }
181
+ m && { p: 0 }
211
182
  ),
212
- indeterminate: v > 0 && v < $,
213
- checked: $ > 0 && v === $,
214
- onChange: c
183
+ indeterminate: D > 0 && D < B,
184
+ checked: B > 0 && D === B,
185
+ onChange: b
215
186
  }
216
187
  )
217
188
  }
218
189
  ),
219
- i.map((r, L) => /* @__PURE__ */ a(
220
- B,
190
+ u.map((s, T) => /* @__PURE__ */ l(
191
+ V,
221
192
  {
222
- className: p ? void 0 : "pl-20",
223
- align: U(r.align, "center"),
224
- padding: r.enablePadding ? "normal" : "none",
225
- sortDirection: f === r.id ? l : !1,
226
- sx: m(
193
+ className: m ? void 0 : "pl-20",
194
+ align: it(s.align, "center"),
195
+ padding: s.enablePadding ? "normal" : "none",
196
+ sortDirection: w === s.id ? L : !1,
197
+ sx: c(
227
198
  {
228
- ...ct,
229
- ...i.length - 1 !== L && mt
199
+ ...xt(g, e.palette.grey[200])
230
200
  },
231
- p && lt(k),
232
- s && g,
233
- o,
234
- p && (r == null ? void 0 : r.sx)
201
+ !m && u.length - 1 !== T && vt,
202
+ m && u.length - 1 !== T && Rt,
203
+ m && gt(x),
204
+ $ && f,
205
+ i,
206
+ m && (s == null ? void 0 : s.sx)
235
207
  ),
236
- children: h ? /* @__PURE__ */ a(
237
- Vt,
208
+ children: o ? /* @__PURE__ */ l(
209
+ Kt,
238
210
  {
239
- sx: p ? Yt : jt,
240
- active: f === r.id,
241
- direction: f === r.id ? l : "asc",
242
- onClick: R(r.id),
243
- children: p ? r.label : /* @__PURE__ */ a(Z, { className: "text-white text-lg font-medium", sx: r == null ? void 0 : r.sx, children: r.label })
211
+ sx: m ? ae : ee,
212
+ active: w === s.id,
213
+ direction: w === s.id ? L : "asc",
214
+ onClick: _(s.id),
215
+ children: m ? s.label : /* @__PURE__ */ l(rt, { sx: c(ht(g), s == null ? void 0 : s.sx), children: s.label })
244
216
  }
245
- ) : p ? r.label : /* @__PURE__ */ a(Z, { className: "text-white text-lg font-medium", sx: r == null ? void 0 : r.sx, children: r.label })
217
+ ) : m ? s.label : /* @__PURE__ */ l(rt, { sx: c(ht(g), s == null ? void 0 : s.sx), children: s.label })
246
218
  },
247
- r.id
219
+ s.id
248
220
  ))
249
221
  ]
250
222
  }
251
223
  ) });
252
224
  }
253
- n(Ut, "DataTableHead");
254
- function Fo({
225
+ n(fe, "DataTableHead");
226
+ function je({
255
227
  className: t,
256
- sx: o,
228
+ sx: e,
257
229
  headSx: i,
258
- headCells: c,
259
- rows: l,
260
- selected: f,
261
- canCheckbox: v,
262
- canTotalCountRow: $,
263
- canSelectingSingle: W,
264
- canUseOrderBy: j = !0,
265
- canTableRadiusZero: h = !1,
266
- canUseTreeGridStyle: s = !1,
267
- fixedRowCount: p,
268
- onSelect: k,
269
- onBlur: R
230
+ headCells: u,
231
+ rows: b,
232
+ selected: L,
233
+ canCheckbox: w,
234
+ canTotalCountRow: D,
235
+ canSelectingSingle: B,
236
+ canUseOrderBy: K = !0,
237
+ canTableRadiusZero: P,
238
+ canUseTreeGridStyle: o = !1,
239
+ fixedRowCount: $,
240
+ onSelect: m,
241
+ onBlur: x
270
242
  }) {
271
- const r = Mt(), [L, wt] = J("asc"), [V, Rt] = J(""), [_, D] = J([]), Lt = _t(qt("owp-data-table")), b = y(() => Jt(p), [p]), E = y(() => {
272
- const d = xt(l) ? l : [];
273
- return b ? d.slice(0, b) : d;
274
- }, [l, b]), q = y(() => c ?? [], [c]), I = y(
243
+ const g = Nt(), [_, s] = Q("asc"), [T, Ot] = Q(""), [j, C] = Q([]), Dt = Jt(re("owp-data-table")), R = O(() => de($), [$]), N = O(() => {
244
+ const a = Et(b) ? b : [];
245
+ return R ? a.slice(0, R) : a;
246
+ }, [b, R]), W = O(() => u ?? [], [u]), v = O(
247
+ () => {
248
+ var a, d;
249
+ return Ft((d = (a = g == null ? void 0 : g.theme) == null ? void 0 : a.main) == null ? void 0 : d.grid);
250
+ },
251
+ [g]
252
+ ), H = O(
275
253
  () => {
276
- var d, u;
277
- return $t((u = (d = r == null ? void 0 : r.theme) == null ? void 0 : d.main) == null ? void 0 : u.grid);
254
+ var a, d;
255
+ return St((d = (a = g == null ? void 0 : g.theme) == null ? void 0 : a.main) == null ? void 0 : d.table, oe);
278
256
  },
279
- [r]
280
- ), ot = ut(v) ? v : !0, et = ut($) ? $ : !0;
281
- dt(() => {
282
- Pt(f) || D(f);
283
- }, [f]), dt(() => {
284
- k == null || k(_);
285
- }, [_]);
286
- const kt = /* @__PURE__ */ n((d, u) => {
287
- wt(V === u && L === "asc" ? "desc" : "asc"), Rt(u);
288
- }, "handleRequestSort"), At = /* @__PURE__ */ n((d) => {
289
- if (d.target.checked) {
290
- D(E);
257
+ [g]
258
+ ), h = o ? P !== !1 : !!P, at = pt(w) ? w : !0, dt = pt(D) ? D : !0;
259
+ bt(() => {
260
+ ie(L) || C(L);
261
+ }, [L]), bt(() => {
262
+ m == null || m(j);
263
+ }, [j]);
264
+ const Bt = /* @__PURE__ */ n((a, d) => {
265
+ s(T === d && _ === "asc" ? "desc" : "asc"), Ot(d);
266
+ }, "handleRequestSort"), _t = /* @__PURE__ */ n((a) => {
267
+ if (a.target.checked) {
268
+ C(N);
291
269
  return;
292
270
  }
293
- D([]);
294
- }, "handleSelectAllClick"), St = /* @__PURE__ */ n((d, u) => {
295
- if (W) {
296
- D([u]);
271
+ C([]);
272
+ }, "handleSelectAllClick"), Ht = /* @__PURE__ */ n((a, d) => {
273
+ if (B) {
274
+ C([d]);
297
275
  return;
298
276
  }
299
- D((x) => !!x.find((A) => Q(A, u)) ? x == null ? void 0 : x.filter((A) => !Q(A, u)) : [...x, u]);
300
- }, "handleClick"), N = y(
301
- () => [...E].sort(Xt(L, V)),
302
- [L, V, E]
303
- ), rt = y(() => !b || N.length >= b ? N : [...N, ...Qt(b - N.length)], [b, N]);
304
- return /* @__PURE__ */ z(
305
- Ot,
277
+ C((p) => !!p.find((A) => U(A, d)) ? p == null ? void 0 : p.filter((A) => !U(A, d)) : [...p, d]);
278
+ }, "handleClick"), I = O(
279
+ () => [...N].sort(me(_, T)),
280
+ [_, T, N]
281
+ ), ut = O(() => !R || I.length >= R ? I : [...I, ...ue(R - I.length)], [R, I]);
282
+ return /* @__PURE__ */ M(
283
+ Pt,
306
284
  {
307
285
  className: t,
308
- sx: m({ width: "100%" }, h && g),
286
+ sx: c(
287
+ { width: "100%" },
288
+ o && G(v),
289
+ h && f
290
+ ),
309
291
  children: [
310
- s && /* @__PURE__ */ a(Et, { styles: It() }),
311
- /* @__PURE__ */ a(
312
- Ct,
292
+ o && /* @__PURE__ */ l(qt, { styles: Ct() }),
293
+ /* @__PURE__ */ l(
294
+ Zt,
313
295
  {
314
- sx: m(
315
- { height: b ? "auto" : 500, borderRadius: 2 },
316
- b && { overflowY: "hidden" },
317
- h && g,
318
- o
296
+ sx: c(
297
+ { height: R ? "auto" : 500, borderRadius: 2 },
298
+ o && G(v),
299
+ R && { overflowY: "hidden" },
300
+ h && f,
301
+ e
319
302
  ),
320
- children: /* @__PURE__ */ z(
321
- zt,
303
+ children: /* @__PURE__ */ M(
304
+ jt,
322
305
  {
323
- stickyHeader: !s,
324
- sx: m({ minWidth: 200 }, h && g),
306
+ stickyHeader: !o,
307
+ sx: c({ minWidth: 200 }, h && f),
325
308
  "aria-labelledby": "owp-data-table",
326
309
  children: [
327
- /* @__PURE__ */ a(
328
- Ut,
310
+ /* @__PURE__ */ l(
311
+ fe,
329
312
  {
330
313
  sx: i,
331
- headCells: q,
332
- gridTheme: I,
333
- numSelected: _.length,
334
- order: L,
335
- orderBy: V,
336
- onSelectAllClick: At,
337
- canCheckbox: !W && ot,
338
- canUseOrderBy: j,
314
+ headCells: W,
315
+ gridTheme: v,
316
+ tableTheme: H,
317
+ numSelected: j.length,
318
+ order: _,
319
+ orderBy: T,
320
+ onSelectAllClick: _t,
321
+ canCheckbox: !B && at,
322
+ canUseOrderBy: K,
339
323
  canTableRadiusZero: h,
340
- canUseTreeGridStyle: s,
341
- onRequestSort: kt,
342
- rowCount: E.length
324
+ canUseTreeGridStyle: o,
325
+ onRequestSort: Bt,
326
+ rowCount: N.length
343
327
  }
344
328
  ),
345
- /* @__PURE__ */ a(Bt, { sx: m(h && g), children: rt.map((d, u) => {
346
- const x = _.some((e) => Q(e, d)), it = rt.length - 1 === u, A = b ? u >= N.length : !1, K = `${Lt.current}-${u}`;
347
- return /* @__PURE__ */ z(
348
- bt,
329
+ /* @__PURE__ */ l(Wt, { sx: c(h && f), children: ut.map((a, d) => {
330
+ const p = j.some((r) => U(r, a)), mt = ut.length - 1 === d, A = R ? d >= I.length : !1, Y = `${Dt.current}-${d}`;
331
+ return /* @__PURE__ */ M(
332
+ $t,
349
333
  {
350
334
  hover: !0,
351
- role: s ? void 0 : "checkbox",
352
- "aria-checked": s ? void 0 : x,
335
+ role: o ? void 0 : "checkbox",
336
+ "aria-checked": o ? void 0 : p,
353
337
  tabIndex: -1,
354
- selected: x,
355
- sx: m(
338
+ selected: p,
339
+ sx: c(
356
340
  { cursor: A ? "default" : "pointer" },
357
- s && { height: 30 },
358
- h && g,
359
- h && it && Kt
341
+ o && Xt(v, {
342
+ canHover: !A,
343
+ selected: p
344
+ }),
345
+ o && { height: 30 },
346
+ h && f,
347
+ h && mt && se
360
348
  ),
361
349
  children: [
362
- ot && /* @__PURE__ */ a(
363
- B,
350
+ at && /* @__PURE__ */ l(
351
+ V,
364
352
  {
365
353
  padding: "checkbox",
366
- onClick: /* @__PURE__ */ n((e) => {
367
- A || St(e, d);
354
+ onClick: /* @__PURE__ */ n((r) => {
355
+ A || Ht(r, a);
368
356
  }, "onClick"),
369
- sx: m(
370
- X,
371
- s && G(I),
372
- h && g
357
+ sx: c(
358
+ !o && ot(H),
359
+ o && X(v),
360
+ o ? et : tt,
361
+ h && f
373
362
  ),
374
- children: /* @__PURE__ */ a(
375
- ft,
363
+ children: /* @__PURE__ */ l(
364
+ kt,
376
365
  {
377
366
  color: "default",
378
- checked: x,
367
+ checked: p,
379
368
  disabled: A,
380
- sx: m(s && { p: 0 })
369
+ sx: c(o && { p: 0 })
381
370
  }
382
371
  )
383
372
  }
384
373
  ),
385
- q.map((e, Y) => {
386
- const nt = `${K}-row-${u}-cell-${Y}`, st = Gt(d, e), P = Zt(d, u), T = C(d, String(e == null ? void 0 : e.id));
387
- return Y === 0 ? /* @__PURE__ */ a(
388
- B,
374
+ W.map((r, J) => {
375
+ const lt = `${Y}-row-${d}-cell-${J}`, ct = le(a, r), Z = ce(a, d), y = q(a, String(r == null ? void 0 : r.id));
376
+ return J === 0 ? /* @__PURE__ */ l(
377
+ V,
389
378
  {
390
- className: s ? void 0 : "px-4",
391
- component: s ? "td" : "th",
392
- id: K,
393
- scope: s ? void 0 : "row",
379
+ className: o ? void 0 : "px-4",
380
+ component: o ? "td" : "th",
381
+ id: Y,
382
+ scope: o ? void 0 : "row",
394
383
  padding: "none",
395
- role: s ? "cell" : void 0,
396
- align: U(e.valueAlign, "left"),
397
- sx: m(
398
- q.length > 1 && X,
399
- s && G(I),
400
- h && g
384
+ role: o ? "cell" : void 0,
385
+ align: it(r.valueAlign, "left"),
386
+ sx: c(
387
+ !o && ot(H),
388
+ o && X(v),
389
+ W.length > 1 && (o ? et : tt),
390
+ h && f
401
391
  ),
402
- children: T
392
+ children: y
403
393
  },
404
- nt
405
- ) : /* @__PURE__ */ a(
406
- B,
394
+ lt
395
+ ) : /* @__PURE__ */ l(
396
+ V,
407
397
  {
408
- className: s ? void 0 : "px-4",
409
- role: s ? "cell" : void 0,
410
- align: U(e.valueAlign, "left"),
411
- sx: m(
412
- q.length - 1 !== Y && X,
413
- s && G(I),
414
- h && g
398
+ className: o ? void 0 : "px-4",
399
+ role: o ? "cell" : void 0,
400
+ align: it(r.valueAlign, "left"),
401
+ sx: c(
402
+ !o && ot(H),
403
+ o && X(v),
404
+ W.length - 1 !== J && (o ? et : tt),
405
+ h && f
415
406
  ),
416
- children: e != null && e.canTextField ? (e == null ? void 0 : e.textFieldType) === "number" ? /* @__PURE__ */ a(
417
- Tt,
407
+ children: r != null && r.canTextField ? (r == null ? void 0 : r.textFieldType) === "number" ? /* @__PURE__ */ l(
408
+ ne,
418
409
  {
419
410
  variant: "standard",
420
411
  decimalScale: 2,
421
- label: st,
412
+ label: ct,
422
413
  fullWidth: !0,
423
414
  size: "small",
424
- sx: pt(
425
- e == null ? void 0 : e.valueAlign,
426
- s ? I.cell.fontSize : void 0
415
+ sx: Tt(
416
+ r == null ? void 0 : r.valueAlign,
417
+ o ? v.cell.fontSize : H.cell.fontSize
427
418
  ),
428
419
  slotProps: {
429
420
  input: {
430
- tabIndex: P
421
+ tabIndex: Z
431
422
  },
432
423
  inputLabel: {
433
424
  shrink: !0
434
425
  }
435
426
  },
436
- isAllowed: /* @__PURE__ */ n((w) => {
437
- var O;
438
- const { floatValue: M } = w, S = (O = tt(d, e == null ? void 0 : e.rangeKey)) == null ? void 0 : O.end;
439
- return H(M) && H(S) ? M <= S : !0;
427
+ isAllowed: /* @__PURE__ */ n((k) => {
428
+ var z;
429
+ const { floatValue: F } = k, E = (z = nt(a, r == null ? void 0 : r.rangeKey)) == null ? void 0 : z.end;
430
+ return S(F) && S(E) ? F <= E : !0;
440
431
  }, "isAllowed"),
441
- value: T,
442
- onBlur: /* @__PURE__ */ n((w) => {
443
- var O, at;
444
- const M = (O = tt(d, e == null ? void 0 : e.rangeKey)) == null ? void 0 : O.start, S = (at = w.target.value) == null ? void 0 : at.replace(/,/g, "");
445
- R == null || R(
432
+ value: y,
433
+ onBlur: /* @__PURE__ */ n((k) => {
434
+ var z, ft;
435
+ const F = (z = nt(a, r == null ? void 0 : r.rangeKey)) == null ? void 0 : z.start, E = (ft = k.target.value) == null ? void 0 : ft.replace(/,/g, "");
436
+ x == null || x(
446
437
  {
447
- ...w,
438
+ ...k,
448
439
  target: {
449
- ...w.target,
450
- value: H(M) && S !== "" ? Number(M > Number(S) ? M : S) : S
440
+ ...k.target,
441
+ value: S(F) && E !== "" ? Number(F > Number(E) ? F : E) : E
451
442
  }
452
443
  },
453
- P
444
+ Z
454
445
  );
455
446
  }, "onBlur")
456
447
  }
457
- ) : /* @__PURE__ */ a(
458
- yt,
448
+ ) : /* @__PURE__ */ l(
449
+ zt,
459
450
  {
460
451
  variant: "standard",
461
- label: st,
452
+ label: ct,
462
453
  fullWidth: !0,
463
454
  size: "small",
464
- sx: pt(
465
- e == null ? void 0 : e.valueAlign,
466
- s ? I.cell.fontSize : void 0
455
+ sx: Tt(
456
+ r == null ? void 0 : r.valueAlign,
457
+ o ? v.cell.fontSize : H.cell.fontSize
467
458
  ),
468
459
  slotProps: {
469
460
  input: {
470
- tabIndex: P
461
+ tabIndex: Z
471
462
  },
472
463
  inputLabel: {
473
464
  shrink: !0
474
465
  }
475
466
  },
476
- type: (e == null ? void 0 : e.textFieldType) ?? "text",
477
- defaultValue: T,
478
- onBlur: /* @__PURE__ */ n((w) => R == null ? void 0 : R(
479
- { ...w, target: { ...w.target, value: w.target.value } },
480
- P
467
+ type: (r == null ? void 0 : r.textFieldType) ?? "text",
468
+ defaultValue: y,
469
+ onBlur: /* @__PURE__ */ n((k) => x == null ? void 0 : x(
470
+ { ...k, target: { ...k.target, value: k.target.value } },
471
+ Z
481
472
  ), "onBlur")
482
473
  }
483
- ) : T
474
+ ) : y
484
475
  },
485
- nt
476
+ lt
486
477
  );
487
478
  })
488
479
  ]
489
480
  },
490
- `${K}-row-${u}`
481
+ `${Y}-row-${d}`
491
482
  );
492
483
  }) })
493
484
  ]
@@ -495,16 +486,19 @@ function Fo({
495
486
  )
496
487
  }
497
488
  ),
498
- et && /* @__PURE__ */ a(Ht, { sx: m(h && g) }),
499
- et && /* @__PURE__ */ z(
500
- Z,
489
+ dt && /* @__PURE__ */ l(Mt, { sx: c(h && f) }),
490
+ dt && /* @__PURE__ */ M(
491
+ rt,
501
492
  {
502
493
  className: "w-full py-8 pr-12",
503
494
  align: "right",
504
- sx: m(h && g),
495
+ sx: c(
496
+ o && G(v),
497
+ h && f
498
+ ),
505
499
  children: [
506
500
  "전체: ",
507
- E.length.toLocaleString(),
501
+ N.length.toLocaleString(),
508
502
  " 건"
509
503
  ]
510
504
  }
@@ -513,8 +507,8 @@ function Fo({
513
507
  }
514
508
  );
515
509
  }
516
- n(Fo, "OwpDataTable");
510
+ n(je, "OwpDataTable");
517
511
  export {
518
- Fo as OwpDataTable
512
+ je as OwpDataTable
519
513
  };
520
514
  //# sourceMappingURL=OwpDataTable.js.map