@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,73 +1,64 @@
1
- var wo = Object.defineProperty;
2
- var t = (o, e) => wo(o, "name", { value: e, configurable: !0 });
3
- import { jsx as s, jsxs as E, Fragment as I } 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 ho from "../../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/ArrowDropDownRounded.js";
5
- import Po from "../../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/UnfoldMoreRounded.js";
6
- import Mo from "@mui/material/GlobalStyles";
1
+ var Po = Object.defineProperty;
2
+ var t = (o, r) => Po(o, "name", { value: r, configurable: !0 });
3
+ import { jsx as s, jsxs as N, Fragment as I } 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 Mo from "../../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/ArrowDropDownRounded.js";
5
+ import Ro from "../../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/UnfoldMoreRounded.js";
6
+ import ho from "@mui/material/GlobalStyles";
7
7
  import { resolveOwpGridTheme as Bo } from "../../constants/gridTheme.js";
8
- import { getTreeGridFontFaceStyles as Ro, TREEGRID_FONT_FAMILY_STACK as U } from "../../constants/treeGrid.js";
9
- import { useGetCurrentLanguage as Ho } from "../../hooks/useCurrentLanguage.js";
10
- import { useGetCurrentSettings as Io } from "../../hooks/useOwpSettings.js";
11
- import { useOwpTranslation as ko } from "../../hooks/useOwpTranslation.js";
12
- import { clsx as zo } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
13
- import { MaterialReactTable as _, useMaterialReactTable as Fo, MRT_BottomToolbar as Go } from "../../node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/dist/index.esm.js";
14
- import { MRT_Localization_KO as Lo } from "../../node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/locales/ko/index.esm.js";
15
- import { useMemo as j } from "react";
16
- import { OwpTableTotalCount as Ao } from "../OwpTable/OwpTable.js";
17
- import { OwpMrtTableNoDataOverlay as Oo } from "./internal/OwpMrtTableNoDataOverlay.js";
18
- import Co from "./internal/OwpMrtTableTopToolbar.js";
19
- import { isArray as B } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
8
+ import { getTreeGridFontFaceStyles as Ho } from "../../constants/treeGrid.js";
9
+ import { useGetCurrentLanguage as Io } from "../../hooks/useCurrentLanguage.js";
10
+ import { useGetCurrentSettings as ko } from "../../hooks/useOwpSettings.js";
11
+ import { useOwpTranslation as zo } from "../../hooks/useOwpTranslation.js";
12
+ import { clsx as Fo } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
13
+ import { MaterialReactTable as U, useMaterialReactTable as Lo, MRT_BottomToolbar as Oo } from "../../node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/dist/index.esm.js";
14
+ import { MRT_Localization_KO as Do } from "../../node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/locales/ko/index.esm.js";
15
+ import { useMemo as $ } from "react";
16
+ import { TREEGRID_TABLE_BODY_BORDER_COLOR as x, TREEGRID_TABLE_HEADER_BORDER_COLOR as _, getTreeGridHeaderCellSx as Go, getTreeGridContainerSx as z, getTreeGridBodyRowSx as Ao, getTreeGridBodyCellSx as Eo, getTreeGridTypographySx as Co } from "../OwpTable/internal/treeGridTableStyle.js";
17
+ import { OwpTableTotalCount as Wo } from "../OwpTable/OwpTable.js";
18
+ import { OwpMrtTableNoDataOverlay as No } from "./internal/OwpMrtTableNoDataOverlay.js";
19
+ import $o from "./internal/OwpMrtTableTopToolbar.js";
20
+ import { isArray as h } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
20
21
  import { defaults as y } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/defaults.js";
21
- import { isNumber as Do } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isNumber.js";
22
- import { OwpSvgIcon as d } from "../OwpSvgIcon/OwpSvgIcon.js";
23
- const z = "#586980", Wo = "#cbd5e1", w = {
24
- color: "#ffffff",
25
- fontFamily: U,
26
- fontSize: "14px",
27
- fontWeight: "normal",
28
- lineHeight: "16px"
29
- }, No = /* @__PURE__ */ t((o) => ({
30
- ...w,
31
- color: (o == null ? void 0 : o.color) ?? w.color,
32
- fontSize: (o == null ? void 0 : o.fontSize) ?? w.fontSize,
33
- fontWeight: (o == null ? void 0 : o.fontWeight) ?? w.fontWeight
34
- }), "getResolvedTreeGridHeaderTextSx"), Eo = /* @__PURE__ */ t((o) => ({
35
- fontFamily: U,
36
- fontSize: o,
37
- fontWeight: "normal",
38
- lineHeight: "16px"
39
- }), "getTreeGridBodyTextSx"), jo = /* @__PURE__ */ t((o) => ({
22
+ import { isNumber as _o } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isNumber.js";
23
+ import { OwpSvgIcon as c } from "../OwpSvgIcon/OwpSvgIcon.js";
24
+ const yo = "#cbd5e1", jo = /* @__PURE__ */ t((o, r) => ({
25
+ ...Co(
26
+ (r == null ? void 0 : r.fontSize) ?? o.header.fontSize,
27
+ (r == null ? void 0 : r.fontWeight) ?? o.header.fontWeight
28
+ ),
29
+ color: (r == null ? void 0 : r.color) ?? o.header.color
30
+ }), "getResolvedTreeGridHeaderTextSx"), Vo = /* @__PURE__ */ t((o) => ({
40
31
  color: o == null ? void 0 : o.color,
41
32
  fontSize: o == null ? void 0 : o.fontSize,
42
33
  fontWeight: o == null ? void 0 : o.fontWeight
43
- }), "getHeaderCellTextStyleSx"), $ = /* @__PURE__ */ t((o) => o != null && o.height ? {
34
+ }), "getHeaderCellTextStyleSx"), K = /* @__PURE__ */ t((o) => o != null && o.height ? {
44
35
  height: o.height,
45
36
  minHeight: o.height
46
37
  } : void 0, "getHeaderCellHeightStyleSx"), F = /* @__PURE__ */ t((o) => o != null && o.backgroundColor ? `${o.backgroundColor} !important` : void 0, "getHeaderCellBackgroundColor"), q = /* @__PURE__ */ t((o) => {
47
- const e = F(o), r = jo(o), a = $(o), c = o != null && o.height ? "100%" : void 0;
38
+ const r = F(o), e = Vo(o), a = K(o), u = o != null && o.height ? "100%" : void 0;
48
39
  return {
49
- ...r,
40
+ ...e,
50
41
  ...a,
51
- backgroundColor: e,
42
+ backgroundColor: r,
52
43
  "& .Mui-TableHeadCell-Content": {
53
- ...r,
44
+ ...e,
54
45
  ...a,
55
46
  alignItems: "center",
56
- backgroundColor: e,
47
+ backgroundColor: r,
57
48
  display: "flex"
58
49
  },
59
50
  "& .Mui-TableHeadCell-Content-Labels": {
60
51
  alignItems: "center",
61
- backgroundColor: e,
52
+ backgroundColor: r,
62
53
  display: "flex",
63
54
  height: o != null && o.height ? "100%" : void 0
64
55
  },
65
56
  "& .Mui-TableHeadCell-Content-Wrapper": {
66
- ...r,
57
+ ...e,
67
58
  alignItems: "center",
68
- backgroundColor: e,
59
+ backgroundColor: r,
69
60
  display: "flex",
70
- minHeight: c
61
+ minHeight: u
71
62
  },
72
63
  "& .MuiTableSortLabel-root": {
73
64
  color: o == null ? void 0 : o.color
@@ -82,151 +73,145 @@ const z = "#586980", Wo = "#cbd5e1", w = {
82
73
  color: o != null && o.color ? `${o.color} !important` : void 0
83
74
  }
84
75
  };
85
- }, "getHeaderCellOverrideSx"), yo = /* @__PURE__ */ t((...o) => {
86
- const e = o.flatMap((r) => r ? B(r) ? r : [r] : []);
87
- if (e.length !== 0)
88
- return (r) => e.reduce((a, c) => {
89
- const l = typeof c == "function" ? c(r) : c;
90
- return !l || B(l) ? a : {
76
+ }, "getHeaderCellOverrideSx"), Uo = /* @__PURE__ */ t((...o) => {
77
+ const r = o.flatMap((e) => e ? h(e) ? e : [e] : []);
78
+ if (r.length !== 0)
79
+ return (e) => r.reduce((a, u) => {
80
+ const l = typeof u == "function" ? u(e) : u;
81
+ return !l || h(l) ? a : {
91
82
  ...a,
92
83
  ...l
93
84
  };
94
85
  }, {});
95
- }, "mergeSxValues"), Vo = /* @__PURE__ */ t((o, e) => typeof o == "function" ? o(e) : o, "resolvePropValue"), Ko = /* @__PURE__ */ t((...o) => {
96
- const e = o.filter(Boolean), r = e.reduce((l, p) => ({
86
+ }, "mergeSxValues"), Ko = /* @__PURE__ */ t((o, r) => typeof o == "function" ? o(r) : o, "resolvePropValue"), qo = /* @__PURE__ */ t((...o) => {
87
+ const r = o.filter(Boolean), e = r.reduce((l, f) => ({
97
88
  ...l,
98
- ...p
99
- }), {}), a = zo(e.map((l) => l.className)), c = yo(...e.map((l) => l.sx));
100
- return a && (r.className = a), c && (r.sx = c), r;
101
- }, "mergeComponentProps"), b = /* @__PURE__ */ t((o, ...e) => Ko(
102
- ...e.map((r) => Vo(r, o))
103
- ), "mergeResolvedProps"), Uo = {
104
- ArrowDownwardIcon: /* @__PURE__ */ t((o) => /* @__PURE__ */ s(d, { size: 20, ...o, children: "heroicons-outline:arrow-down-circle" }), "ArrowDownwardIcon"),
105
- ClearAllIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(d, { size: 20, children: "heroicons-outline:adjustments-horizontal" }), "ClearAllIcon"),
106
- DensityLargeIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(d, { size: 20, children: "heroicons-outline:bars-3-bottom-left" }), "DensityLargeIcon"),
107
- DensityMediumIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(d, { size: 20, children: "heroicons-outline:bars-3" }), "DensityMediumIcon"),
108
- DensitySmallIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(d, { size: 20, children: "heroicons-outline:bars-2" }), "DensitySmallIcon"),
109
- DragHandleIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(d, { className: "rotate-45", size: 14, children: "heroicons-outline:arrows-pointing-out" }), "DragHandleIcon"),
110
- FilterListIcon: /* @__PURE__ */ t((o) => /* @__PURE__ */ s(d, { size: 16, ...o, children: "heroicons-outline:funnel" }), "FilterListIcon"),
111
- FilterListOffIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(d, { size: 20, children: "heroicons-outline:funnel" }), "FilterListOffIcon"),
112
- FullscreenExitIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(d, { size: 20, children: "heroicons-outline:arrows-pointing-in" }), "FullscreenExitIcon"),
113
- FullscreenIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(d, { size: 20, children: "heroicons-outline:arrows-pointing-out" }), "FullscreenIcon"),
114
- SearchIcon: /* @__PURE__ */ t((o) => /* @__PURE__ */ s(d, { color: "action", size: 20, ...o, children: "heroicons-outline:magnifying-glass" }), "SearchIcon"),
115
- SearchOffIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(d, { size: 20, children: "heroicons-outline:magnifying-glass" }), "SearchOffIcon"),
116
- ViewColumnIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(d, { size: 20, children: "heroicons-outline:view-columns" }), "ViewColumnIcon"),
117
- MoreVertIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(d, { size: 20, children: "heroicons-outline:ellipsis-vertical" }), "MoreVertIcon"),
118
- MoreHorizIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(d, { size: 20, children: "heroicons-outline:ellipsis-horizontal" }), "MoreHorizIcon"),
119
- SortIcon: /* @__PURE__ */ t((o) => /* @__PURE__ */ s(d, { size: 20, ...o, children: "heroicons-outline:arrows-up-down" }), "SortIcon"),
120
- PushPinIcon: /* @__PURE__ */ t((o) => /* @__PURE__ */ s(d, { size: 20, ...o, children: "heroicons-outline:bookmark" }), "PushPinIcon"),
121
- VisibilityOffIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(d, { size: 20, children: "heroicons-outline:eye-slash" }), "VisibilityOffIcon")
122
- }, _o = /* @__PURE__ */ t((o) => /* @__PURE__ */ s(ho, { fontSize: "small", ...o }), "TreeGridArrowDownwardIcon"), $o = /* @__PURE__ */ t((o) => {
123
- const { direction: e, ...r } = o;
124
- return /* @__PURE__ */ s(Po, { fontSize: "small", ...r });
125
- }, "TreeGridSyncAltIcon"), qo = {
126
- ArrowDownwardIcon: _o,
127
- SyncAltIcon: $o
128
- }, Xo = {
89
+ ...f
90
+ }), {}), a = Fo(r.map((l) => l.className)), u = Uo(...r.map((l) => l.sx));
91
+ return a && (e.className = a), u && (e.sx = u), e;
92
+ }, "mergeComponentProps"), p = /* @__PURE__ */ t((o, ...r) => qo(
93
+ ...r.map((e) => Ko(e, o))
94
+ ), "mergeResolvedProps"), Xo = {
95
+ ArrowDownwardIcon: /* @__PURE__ */ t((o) => /* @__PURE__ */ s(c, { size: 20, ...o, children: "heroicons-outline:arrow-down-circle" }), "ArrowDownwardIcon"),
96
+ ClearAllIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(c, { size: 20, children: "heroicons-outline:adjustments-horizontal" }), "ClearAllIcon"),
97
+ DensityLargeIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(c, { size: 20, children: "heroicons-outline:bars-3-bottom-left" }), "DensityLargeIcon"),
98
+ DensityMediumIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(c, { size: 20, children: "heroicons-outline:bars-3" }), "DensityMediumIcon"),
99
+ DensitySmallIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(c, { size: 20, children: "heroicons-outline:bars-2" }), "DensitySmallIcon"),
100
+ DragHandleIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(c, { className: "rotate-45", size: 14, children: "heroicons-outline:arrows-pointing-out" }), "DragHandleIcon"),
101
+ FilterListIcon: /* @__PURE__ */ t((o) => /* @__PURE__ */ s(c, { size: 16, ...o, children: "heroicons-outline:funnel" }), "FilterListIcon"),
102
+ FilterListOffIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(c, { size: 20, children: "heroicons-outline:funnel" }), "FilterListOffIcon"),
103
+ FullscreenExitIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(c, { size: 20, children: "heroicons-outline:arrows-pointing-in" }), "FullscreenExitIcon"),
104
+ FullscreenIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(c, { size: 20, children: "heroicons-outline:arrows-pointing-out" }), "FullscreenIcon"),
105
+ SearchIcon: /* @__PURE__ */ t((o) => /* @__PURE__ */ s(c, { color: "action", size: 20, ...o, children: "heroicons-outline:magnifying-glass" }), "SearchIcon"),
106
+ SearchOffIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(c, { size: 20, children: "heroicons-outline:magnifying-glass" }), "SearchOffIcon"),
107
+ ViewColumnIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(c, { size: 20, children: "heroicons-outline:view-columns" }), "ViewColumnIcon"),
108
+ MoreVertIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(c, { size: 20, children: "heroicons-outline:ellipsis-vertical" }), "MoreVertIcon"),
109
+ MoreHorizIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(c, { size: 20, children: "heroicons-outline:ellipsis-horizontal" }), "MoreHorizIcon"),
110
+ SortIcon: /* @__PURE__ */ t((o) => /* @__PURE__ */ s(c, { size: 20, ...o, children: "heroicons-outline:arrows-up-down" }), "SortIcon"),
111
+ PushPinIcon: /* @__PURE__ */ t((o) => /* @__PURE__ */ s(c, { size: 20, ...o, children: "heroicons-outline:bookmark" }), "PushPinIcon"),
112
+ VisibilityOffIcon: /* @__PURE__ */ t(() => /* @__PURE__ */ s(c, { size: 20, children: "heroicons-outline:eye-slash" }), "VisibilityOffIcon")
113
+ }, Yo = /* @__PURE__ */ t((o) => /* @__PURE__ */ s(Mo, { fontSize: "small", ...o }), "TreeGridArrowDownwardIcon"), Jo = /* @__PURE__ */ t((o) => {
114
+ const { direction: r, ...e } = o;
115
+ return /* @__PURE__ */ s(Ro, { fontSize: "small", ...e });
116
+ }, "TreeGridSyncAltIcon"), Qo = {
117
+ ArrowDownwardIcon: Yo,
118
+ SyncAltIcon: Jo
119
+ }, Zo = {
129
120
  className: "flex items-center min-h-56 h-56"
130
- }, Yo = {
121
+ }, So = {
131
122
  elevation: 0,
132
123
  square: !0,
133
124
  className: "flex flex-col flex-auto h-full"
134
- }, Jo = {
125
+ }, ot = /* @__PURE__ */ t((o) => ({
135
126
  sx: {
127
+ ...z(o),
136
128
  display: "flex",
137
129
  height: "100%",
138
130
  flexDirection: "column",
139
- border: "1px solid",
140
- borderColor: "divider",
131
+ border: `1px solid ${x}`,
141
132
  borderRadius: 0,
142
133
  boxShadow: "none"
143
134
  }
144
- }, Qo = {
135
+ }), "getTreeGridPaperProps"), tt = {
145
136
  sx: {
146
137
  border: 0
147
138
  }
148
- }, Zo = {
139
+ }, et = /* @__PURE__ */ t(() => ({
149
140
  sx: {
150
- borderTop: "1px solid",
151
- borderRight: "1px solid",
152
- borderLeft: "1px solid",
153
- borderColor: "divider"
141
+ borderTop: `1px solid ${x}`,
142
+ borderRight: `1px solid ${x}`,
143
+ borderLeft: `1px solid ${x}`
154
144
  }
155
- }, So = {
145
+ }), "getTotalCountFooterBorderlessContainerProps"), rt = {
156
146
  className: "flex-auto"
157
- }, ot = {
147
+ }, it = {
158
148
  square: !1,
159
149
  sx: {
160
150
  borderRadius: 2,
161
151
  overflow: "hidden"
162
152
  }
163
- }, tt = {
153
+ }, nt = {
164
154
  sx: {
165
155
  borderRadius: "inherit"
166
156
  }
167
- }, x = 40, X = {
168
- width: x,
169
- minWidth: x,
170
- maxWidth: x
171
- }, et = {
157
+ }, w = 40, X = {
158
+ width: w,
159
+ minWidth: w,
160
+ maxWidth: w
161
+ }, st = {
172
162
  sx: {
173
163
  flex: 1,
174
164
  minHeight: 0,
175
165
  overflowX: "hidden",
176
166
  overflowY: "auto"
177
167
  }
178
- }, rt = {
168
+ }, at = /* @__PURE__ */ t((o) => ({
179
169
  sx: {
180
- backgroundColor: z,
170
+ backgroundColor: o == null ? void 0 : o.backgroundColor,
181
171
  boxShadow: "none"
182
172
  }
183
- }, V = {
173
+ }), "getTreeGridHeadRowProps"), j = {
184
174
  className: "w-48"
185
- }, K = {
175
+ }, V = {
186
176
  sx: {
187
177
  display: "flex",
188
178
  m: 0,
189
179
  mx: "auto"
190
180
  }
191
- }, it = {
181
+ }, lt = /* @__PURE__ */ t((o) => ({
192
182
  sx: {
183
+ ...z(o),
193
184
  borderSpacing: 0,
194
185
  width: "100%",
195
186
  tableLayout: "fixed",
196
187
  "& .MuiTableHead-root .MuiTableCell-root": {
197
- ...w,
198
- backgroundColor: z,
199
- borderTop: "1px solid",
188
+ ...Go(o),
200
189
  py: 0.75,
201
- borderRight: "1px solid",
202
- borderBottom: "1px solid",
203
- borderColor: "divider",
204
190
  wordBreak: "keep-all"
205
191
  },
206
192
  "& .MuiTableHead-root .MuiTableRow-root:first-of-type .MuiTableCell-root:first-of-type": {
207
- borderLeft: "1px solid",
208
- borderColor: "divider"
193
+ borderLeft: `1px solid ${_}`
209
194
  },
210
195
  "& .MuiTableHead-root .MuiTableRow-root:first-of-type .MuiTableCell-root:last-of-type": {
211
- borderRight: "1px solid",
212
- borderColor: "divider"
196
+ borderRight: `1px solid ${_}`
213
197
  },
214
198
  "& .MuiTableHead-root .MuiIconButton-root": {
215
199
  display: "none"
216
200
  },
217
201
  "& .MuiTableBody-root .MuiTableCell-root": {
202
+ backgroundColor: o.row.backgroundColor,
203
+ color: o.body.color,
218
204
  p: 0,
219
205
  verticalAlign: "middle",
220
- borderRight: "1px solid",
221
- borderBottom: "1px solid",
222
- borderColor: "divider",
206
+ borderRight: `1px solid ${x}`,
207
+ borderBottom: `1px solid ${x}`,
223
208
  overflowWrap: "anywhere"
224
209
  },
225
210
  "& .MuiTableBody-root .MuiTableCell-root:last-of-type": {
226
211
  borderRight: "none"
227
212
  }
228
213
  }
229
- }, nt = {
214
+ }), "getTreeGridTableProps"), ct = {
230
215
  sx: {
231
216
  "& .MuiTableHead-root .MuiTableCell-root": {
232
217
  borderTop: "none"
@@ -242,18 +227,18 @@ const z = "#586980", Wo = "#cbd5e1", w = {
242
227
  borderRight: "none"
243
228
  }
244
229
  }
245
- }, st = {
230
+ }, ut = {
246
231
  sx: {
247
232
  "& .MuiTableBody-root .MuiTableRow-root:last-of-type .MuiTableCell-root": {
248
233
  borderBottom: "none"
249
234
  }
250
235
  }
251
- }, at = /* @__PURE__ */ t(({
236
+ }, dt = /* @__PURE__ */ t(({
252
237
  row: o,
253
- table: e
238
+ table: r
254
239
  }) => {
255
- const { density: r } = e.getState();
256
- return r === "compact" ? {
240
+ const { density: e } = r.getState();
241
+ return e === "compact" ? {
257
242
  sx: {
258
243
  backgroundColor: "initial",
259
244
  opacity: 1,
@@ -265,11 +250,11 @@ const z = "#586980", Wo = "#cbd5e1", w = {
265
250
  backgroundColor: "initial",
266
251
  opacity: 1,
267
252
  boxShadow: "none",
268
- height: o.getIsPinned() ? `${r === "comfortable" ? 53 : 69}px` : void 0
253
+ height: o.getIsPinned() ? `${e === "comfortable" ? 53 : 69}px` : void 0
269
254
  }
270
255
  };
271
- }, "getDefaultBodyRowProps"), lt = /* @__PURE__ */ t(({ column: o }, e) => {
272
- const r = F(e);
256
+ }, "getDefaultBodyRowProps"), bt = /* @__PURE__ */ t(({ column: o }, r) => {
257
+ const e = F(r);
273
258
  return {
274
259
  sx: {
275
260
  "& .Mui-TableHeadCell-Content-Labels": {
@@ -287,22 +272,22 @@ const z = "#586980", Wo = "#cbd5e1", w = {
287
272
  color: /* @__PURE__ */ t((a) => a.palette.text.disabled, "color"),
288
273
  fontSize: 11
289
274
  },
290
- ...q(e),
291
- backgroundColor: /* @__PURE__ */ t((a) => r ?? (o.getIsPinned() ? a.palette.background.paper : "inherit"), "backgroundColor")
275
+ ...q(r),
276
+ backgroundColor: /* @__PURE__ */ t((a) => e ?? (o.getIsPinned() ? a.palette.background.paper : "inherit"), "backgroundColor")
292
277
  }
293
278
  };
294
- }, "getDefaultHeadCellProps"), ct = /* @__PURE__ */ t(({ column: o }, e) => {
295
- const r = o.id === "mrt-row-select", a = No(e), c = (e == null ? void 0 : e.color) ?? Wo, l = $(e), p = e != null && e.height ? "100%" : void 0;
279
+ }, "getDefaultHeadCellProps"), pt = /* @__PURE__ */ t(({ column: o }, r, e) => {
280
+ const a = o.id === "mrt-row-select", u = jo(r, e), l = (e == null ? void 0 : e.color) ?? yo, f = K(e), i = e != null && e.height ? "100%" : void 0;
296
281
  return {
297
282
  align: "center",
298
283
  sx: {
299
- ...r ? X : {},
300
- ...a,
284
+ ...a ? X : {},
285
+ ...u,
301
286
  ...q(e),
302
- backgroundColor: F(e) ?? z,
287
+ backgroundColor: F(e),
303
288
  "& .Mui-TableHeadCell-Content": {
304
- ...a,
305
- ...l,
289
+ ...u,
290
+ ...f,
306
291
  alignItems: "center",
307
292
  backgroundColor: "inherit",
308
293
  display: "flex",
@@ -321,21 +306,21 @@ const z = "#586980", Wo = "#cbd5e1", w = {
321
306
  overflow: "hidden",
322
307
  position: "relative",
323
308
  pl: 0,
324
- pr: r ? 0 : "24px",
309
+ pr: a ? 0 : "24px",
325
310
  height: e != null && e.height ? "100%" : void 0,
326
311
  width: "100%"
327
312
  },
328
313
  "& .Mui-TableHeadCell-Content-Wrapper": {
329
- ...a,
314
+ ...u,
330
315
  alignItems: "center",
331
316
  backgroundColor: "inherit",
332
317
  display: "flex",
333
- minHeight: p,
318
+ minHeight: i,
334
319
  overflow: "hidden",
335
320
  textOverflow: "ellipsis",
336
321
  whiteSpace: "nowrap"
337
322
  },
338
- "&& .MuiBadge-root": r ? void 0 : {
323
+ "&& .MuiBadge-root": a ? void 0 : {
339
324
  alignItems: "center",
340
325
  display: "inline-flex",
341
326
  justifyContent: "center",
@@ -348,7 +333,7 @@ const z = "#586980", Wo = "#cbd5e1", w = {
348
333
  },
349
334
  "&& .MuiTableSortLabel-root": {
350
335
  alignItems: "center",
351
- color: c,
336
+ color: l,
352
337
  display: "inline-flex",
353
338
  justifyContent: "center",
354
339
  minWidth: "16px",
@@ -357,33 +342,33 @@ const z = "#586980", Wo = "#cbd5e1", w = {
357
342
  width: "16px"
358
343
  },
359
344
  "&& .MuiTableSortLabel-root:hover": {
360
- color: c
345
+ color: l
361
346
  },
362
347
  "&& .MuiTableSortLabel-root.Mui-active": {
363
- color: c
348
+ color: l
364
349
  },
365
350
  "&& .MuiTableSortLabel-icon": {
366
- color: `${c} !important`,
351
+ color: `${l} !important`,
367
352
  display: "block",
368
353
  fontSize: "18px",
369
354
  margin: 0,
370
355
  opacity: "1 !important",
371
356
  overflow: "visible"
372
357
  },
373
- "& .MuiButtonBase-root": r ? {
358
+ "& .MuiButtonBase-root": a ? {
374
359
  display: "flex",
375
360
  margin: "0 auto"
376
361
  } : void 0
377
362
  }
378
363
  };
379
- }, "getTreeGridHeadCellProps"), dt = /* @__PURE__ */ t(({ column: o }, e) => {
380
- const r = Eo(e);
381
- return o.id !== "mrt-row-select" ? {
382
- sx: r
364
+ }, "getTreeGridHeadCellProps"), ft = /* @__PURE__ */ t(({ column: o }, r) => {
365
+ const e = { ...Eo(r) };
366
+ return Reflect.deleteProperty(e, "padding"), Reflect.deleteProperty(e, "borderBottom"), Reflect.deleteProperty(e, "borderLeft"), Reflect.deleteProperty(e, "borderRight"), o.id !== "mrt-row-select" ? {
367
+ sx: e
383
368
  } : {
384
369
  align: "center",
385
370
  sx: {
386
- ...r,
371
+ ...e,
387
372
  ...X,
388
373
  "& > .MuiButtonBase-root, & .MuiButtonBase-root": {
389
374
  display: "flex",
@@ -396,41 +381,41 @@ const z = "#586980", Wo = "#cbd5e1", w = {
396
381
  "tbody td textarea",
397
382
  'tbody td [contenteditable="true"]',
398
383
  'tbody td [role="combobox"]'
399
- ].join(", "), Y = /* @__PURE__ */ t((o) => o.tabIndex < 0 || o.getAttribute("aria-disabled") === "true" || o.getAttribute("aria-readonly") === "true" || (o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement) && (o.disabled || o.readOnly) || o instanceof HTMLSelectElement && o.disabled || o instanceof HTMLInputElement && ["button", "checkbox", "file", "hidden", "radio", "reset", "submit"].includes(o.type) ? !1 : o.getClientRects().length > 0, "isTabNavigableTableBodyField"), ut = /* @__PURE__ */ t((o) => {
384
+ ].join(", "), Y = /* @__PURE__ */ t((o) => o.tabIndex < 0 || o.getAttribute("aria-disabled") === "true" || o.getAttribute("aria-readonly") === "true" || (o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement) && (o.disabled || o.readOnly) || o instanceof HTMLSelectElement && o.disabled || o instanceof HTMLInputElement && ["button", "checkbox", "file", "hidden", "radio", "reset", "submit"].includes(o.type) ? !1 : o.getClientRects().length > 0, "isTabNavigableTableBodyField"), mt = /* @__PURE__ */ t((o) => {
400
385
  if (!(o instanceof Element))
401
386
  return null;
402
- const e = o.matches(k) ? o : o.closest(k);
403
- return e instanceof HTMLElement && Y(e) ? e : null;
404
- }, "getCurrentTableBodyField"), bt = /* @__PURE__ */ t((o) => {
387
+ const r = o.matches(k) ? o : o.closest(k);
388
+ return r instanceof HTMLElement && Y(r) ? r : null;
389
+ }, "getCurrentTableBodyField"), gt = /* @__PURE__ */ t((o) => {
405
390
  if (o.key !== "Tab" || o.altKey || o.ctrlKey || o.metaKey)
406
391
  return;
407
- const e = ut(o.target);
408
- if (!e)
409
- return;
410
- const r = e.closest("table");
392
+ const r = mt(o.target);
411
393
  if (!r)
412
394
  return;
395
+ const e = r.closest("table");
396
+ if (!e)
397
+ return;
413
398
  const a = Array.from(
414
- r.querySelectorAll(k)
415
- ).filter(Y), c = a.indexOf(e);
416
- if (c < 0)
399
+ e.querySelectorAll(k)
400
+ ).filter(Y), u = a.indexOf(r);
401
+ if (u < 0)
417
402
  return;
418
- const l = a[c + (o.shiftKey ? -1 : 1)];
403
+ const l = a[u + (o.shiftKey ? -1 : 1)];
419
404
  l && (o.preventDefault(), queueMicrotask(() => {
420
405
  document.contains(l) && l.focus();
421
406
  }));
422
407
  }, "handleTableBodyFieldTabNavigation");
423
- function pt(o) {
424
- const { t: e } = ko(), r = Io(), {
408
+ function Tt(o) {
409
+ const { t: r } = zo(), e = ko(), {
425
410
  canHideTotalCountFooterBorder: a = !1,
426
- canUseNoDataOverlay: c = !1,
411
+ canUseNoDataOverlay: u = !1,
427
412
  canUseTableRadius: l = !1,
428
- canTotalCountRow: p = !0,
413
+ canTotalCountRow: f = !0,
429
414
  canUseTreeGridStyle: i = !0,
430
415
  columns: J,
431
- data: h,
432
- headerCellStyle: u,
433
- totalCount: G,
416
+ data: P,
417
+ headerCellStyle: d,
418
+ totalCount: L,
434
419
  ...Q
435
420
  } = o, {
436
421
  icons: Z,
@@ -446,31 +431,31 @@ function pt(o) {
446
431
  muiTableHeadRowProps: ao,
447
432
  muiTablePaperProps: lo,
448
433
  muiTableProps: co,
449
- renderBottomToolbar: P,
434
+ renderBottomToolbar: M,
450
435
  renderEmptyRowsFallback: uo,
451
436
  ...bo
452
- } = Q, L = B(h) ? h : [], m = j(
437
+ } = Q, O = h(P) ? P : [], b = $(
453
438
  () => {
454
- var n, f;
455
- return Bo((f = (n = r == null ? void 0 : r.theme) == null ? void 0 : n.main) == null ? void 0 : f.grid);
439
+ var n, m;
440
+ return Bo((m = (n = e == null ? void 0 : e.theme) == null ? void 0 : n.main) == null ? void 0 : m.grid);
456
441
  },
457
- [r]
458
- ), g = j(() => i ? {
459
- backgroundColor: (u == null ? void 0 : u.backgroundColor) ?? m.header.backgroundColor,
460
- color: (u == null ? void 0 : u.color) ?? m.header.color,
461
- fontSize: (u == null ? void 0 : u.fontSize) ?? m.header.fontSize,
462
- fontWeight: (u == null ? void 0 : u.fontWeight) ?? m.header.fontWeight,
463
- height: (u == null ? void 0 : u.height) ?? m.header.height
464
- } : u, [i, u, m]), po = B(h) && h.length === 0, A = p && (i || a), O = i || c, M = i && l, C = i ? {
442
+ [e]
443
+ ), g = $(() => i ? {
444
+ backgroundColor: (d == null ? void 0 : d.backgroundColor) ?? b.header.backgroundColor,
445
+ color: (d == null ? void 0 : d.color) ?? b.header.color,
446
+ fontSize: (d == null ? void 0 : d.fontSize) ?? b.header.fontSize,
447
+ fontWeight: (d == null ? void 0 : d.fontWeight) ?? b.header.fontWeight,
448
+ height: (d == null ? void 0 : d.height) ?? b.header.height
449
+ } : d, [i, d, b]), po = h(P) && P.length === 0, D = f && (i || a), G = i || u, R = i && l, A = i ? {
465
450
  ...v ?? {},
466
451
  "mrt-row-select": {
467
452
  header: "",
468
- size: x,
469
- minSize: x,
470
- maxSize: x,
453
+ size: w,
454
+ minSize: w,
455
+ maxSize: w,
471
456
  ...(v == null ? void 0 : v["mrt-row-select"]) ?? {}
472
457
  }
473
- } : v, D = y(
458
+ } : v, E = y(
474
459
  { ...S ?? {} },
475
460
  {
476
461
  density: i ? "compact" : "spacious",
@@ -485,15 +470,15 @@ function pt(o) {
485
470
  },
486
471
  enableFullScreenToggle: !1
487
472
  }
488
- ), R = y(
473
+ ), B = y(
489
474
  {
490
475
  ...bo,
491
- displayColumnDefOptions: C,
492
- initialState: D
476
+ displayColumnDefOptions: A,
477
+ initialState: E
493
478
  },
494
479
  {
495
- displayColumnDefOptions: C,
496
- initialState: D,
480
+ displayColumnDefOptions: A,
481
+ initialState: E,
497
482
  layoutMode: i ? "semantic" : void 0,
498
483
  enablePagination: i ? !1 : void 0,
499
484
  enableBottomToolbar: i ? !1 : void 0,
@@ -550,126 +535,133 @@ function pt(o) {
550
535
  pinnedRowBackgroundColor: n.palette.background.paper,
551
536
  pinnedColumnBackgroundColor: n.palette.background.paper
552
537
  }), "mrtTheme"),
553
- renderTopToolbar: /* @__PURE__ */ t((n) => /* @__PURE__ */ s(Co, { ...n }), "renderTopToolbar")
538
+ renderTopToolbar: /* @__PURE__ */ t((n) => /* @__PURE__ */ s($o, { ...n }), "renderTopToolbar")
554
539
  }
555
- ), W = R.enableBottomToolbar !== !1, fo = Do(G) ? G : L.length, mo = M && !p && !W, go = /* @__PURE__ */ t((n) => W ? typeof P == "function" ? P({ table: n }) : P ?? /* @__PURE__ */ s(Go, { table: n }) : null, "renderBaseBottomToolbar"), To = /* @__PURE__ */ t((n) => {
556
- const f = b(
540
+ ), C = B.enableBottomToolbar !== !1, fo = _o(L) ? L : O.length, mo = R && !f && !C, go = /* @__PURE__ */ t((n) => C ? typeof M == "function" ? M({ table: n }) : M ?? /* @__PURE__ */ s(Oo, { table: n }) : null, "renderBaseBottomToolbar"), To = /* @__PURE__ */ t((n) => {
541
+ const m = p(
557
542
  n,
558
- i ? (T) => dt(T, m.cell.fontSize) : void 0,
543
+ i ? (T) => ft(T, b) : void 0,
559
544
  ro
560
- ), { onKeyDownCapture: H, ...vo } = f;
545
+ ), { onKeyDownCapture: H, ...vo } = m;
561
546
  return {
562
547
  ...vo,
563
548
  onKeyDownCapture: /* @__PURE__ */ t((T) => {
564
- H == null || H(T), !(T.defaultPrevented || T.isPropagationStopped()) && bt(T);
549
+ H == null || H(T), !(T.defaultPrevented || T.isPropagationStopped()) && gt(T);
565
550
  }, "onKeyDownCapture")
566
551
  };
567
- }, "getResolvedBodyCellProps"), xo = /* @__PURE__ */ t(() => {
552
+ }, "getResolvedBodyCellProps"), xo = /* @__PURE__ */ t((n) => p(
553
+ n,
554
+ dt,
555
+ i ? () => ({
556
+ sx: Ao(b, {
557
+ canHover: !0,
558
+ selected: n.row.getIsSelected()
559
+ })
560
+ }) : void 0,
561
+ io
562
+ ), "getResolvedBodyRowProps"), wo = /* @__PURE__ */ t(() => {
568
563
  if (g != null && g.backgroundColor)
569
564
  return {
570
565
  sx: {
571
566
  backgroundColor: `${g.backgroundColor} !important`
572
567
  }
573
568
  };
574
- }, "getResolvedHeadRowProps"), N = Fo({
575
- ...R,
569
+ }, "getResolvedHeadRowProps"), W = Lo({
570
+ ...B,
576
571
  columns: J,
577
- data: L,
578
- enableBottomToolbar: p ? !0 : R.enableBottomToolbar,
572
+ data: O,
573
+ enableBottomToolbar: f ? !0 : B.enableBottomToolbar,
579
574
  icons: {
580
- ...Uo,
581
- ...i ? qo : {},
575
+ ...Xo,
576
+ ...i ? Qo : {},
582
577
  ...Z ?? {}
583
578
  },
584
- muiBottomToolbarProps: /* @__PURE__ */ t((n) => b(
579
+ muiBottomToolbarProps: /* @__PURE__ */ t((n) => p(
585
580
  n,
586
- Xo,
581
+ Zo,
587
582
  oo
588
583
  ), "muiBottomToolbarProps"),
589
- muiSelectAllCheckboxProps: /* @__PURE__ */ t((n) => b(
584
+ muiSelectAllCheckboxProps: /* @__PURE__ */ t((n) => p(
590
585
  n,
591
- V,
592
- i ? K : void 0,
586
+ j,
587
+ i ? V : void 0,
593
588
  to
594
589
  ), "muiSelectAllCheckboxProps"),
595
- muiSelectCheckboxProps: /* @__PURE__ */ t((n) => b(
590
+ muiSelectCheckboxProps: /* @__PURE__ */ t((n) => p(
596
591
  n,
597
- V,
598
- i ? K : void 0,
592
+ j,
593
+ i ? V : void 0,
599
594
  eo
600
595
  ), "muiSelectCheckboxProps"),
601
596
  muiTableBodyCellProps: /* @__PURE__ */ t((n) => To(n), "muiTableBodyCellProps"),
602
- muiTableBodyRowProps: /* @__PURE__ */ t((n) => b(
597
+ muiTableBodyRowProps: /* @__PURE__ */ t((n) => xo(n), "muiTableBodyRowProps"),
598
+ muiTableContainerProps: /* @__PURE__ */ t((n) => p(
603
599
  n,
604
- at,
605
- io
606
- ), "muiTableBodyRowProps"),
607
- muiTableContainerProps: /* @__PURE__ */ t((n) => b(
608
- n,
609
- So,
610
- i ? et : void 0,
611
- l ? tt : void 0,
600
+ rt,
601
+ i ? st : void 0,
602
+ i ? { sx: z(b) } : void 0,
603
+ l ? nt : void 0,
612
604
  no,
613
- A && !M ? Zo : void 0
605
+ D && !R ? et() : void 0
614
606
  ), "muiTableContainerProps"),
615
- muiTableHeadRowProps: /* @__PURE__ */ t((n) => b(
607
+ muiTableHeadRowProps: /* @__PURE__ */ t((n) => p(
616
608
  n,
617
- i ? rt : void 0,
618
- xo(),
609
+ i ? at(g) : void 0,
610
+ wo(),
619
611
  ao
620
612
  ), "muiTableHeadRowProps"),
621
- muiTableHeadCellProps: /* @__PURE__ */ t((n) => b(
613
+ muiTableHeadCellProps: /* @__PURE__ */ t((n) => p(
622
614
  n,
623
- (f) => lt(f, g),
624
- i ? (f) => ct(f, g) : void 0,
615
+ (m) => bt(m, g),
616
+ i ? (m) => pt(m, b, g) : void 0,
625
617
  so
626
618
  ), "muiTableHeadCellProps"),
627
- muiTablePaperProps: /* @__PURE__ */ t((n) => b(
619
+ muiTablePaperProps: /* @__PURE__ */ t((n) => p(
628
620
  n,
629
- Yo,
630
- i ? Jo : void 0,
631
- l ? ot : void 0,
621
+ So,
622
+ i ? ot(b) : void 0,
623
+ l ? it : void 0,
632
624
  lo,
633
- A && !M ? Qo : void 0
625
+ D && !R ? tt : void 0
634
626
  ), "muiTablePaperProps"),
635
- muiTableProps: /* @__PURE__ */ t((n) => b(
627
+ muiTableProps: /* @__PURE__ */ t((n) => p(
636
628
  n,
637
- i ? it : void 0,
638
- M ? nt : void 0,
639
- mo ? st : void 0,
629
+ i ? lt(b) : void 0,
630
+ R ? ct : void 0,
631
+ mo ? ut : void 0,
640
632
  co
641
633
  ), "muiTableProps"),
642
- renderBottomToolbar: p ? ({ table: n }) => /* @__PURE__ */ E(I, { children: [
634
+ renderBottomToolbar: f ? ({ table: n }) => /* @__PURE__ */ N(I, { children: [
643
635
  go(n),
644
- /* @__PURE__ */ s(Ao, { totalCount: fo })
645
- ] }) : P,
646
- renderEmptyRowsFallback: O ? () => /* @__PURE__ */ s(I, {}) : uo
636
+ /* @__PURE__ */ s(Wo, { totalCount: fo })
637
+ ] }) : M,
638
+ renderEmptyRowsFallback: G ? () => /* @__PURE__ */ s(I, {}) : uo
647
639
  });
648
- return /* @__PURE__ */ E(I, { children: [
649
- i && /* @__PURE__ */ s(Mo, { styles: Ro() }),
650
- /* @__PURE__ */ s(_, { table: N }),
651
- O && /* @__PURE__ */ s(
652
- Oo,
640
+ return /* @__PURE__ */ N(I, { children: [
641
+ i && /* @__PURE__ */ s(ho, { styles: Ho() }),
642
+ /* @__PURE__ */ s(U, { table: W }),
643
+ G && /* @__PURE__ */ s(
644
+ No,
653
645
  {
654
646
  visible: po,
655
- message: e("Message.조회된 결과가 없습니다."),
656
- table: N
647
+ message: r("Message.조회된 결과가 없습니다."),
648
+ table: W
657
649
  }
658
650
  )
659
651
  ] });
660
652
  }
661
- t(pt, "DataTable");
662
- const ft = /* @__PURE__ */ t((o) => "table" in o && o.table !== void 0, "hasTableInstance"), Wt = /* @__PURE__ */ t((o) => {
663
- const e = Ho();
664
- return ft(o) ? /* @__PURE__ */ s(_, { table: o.table }) : /* @__PURE__ */ s(
665
- pt,
653
+ t(Tt, "DataTable");
654
+ const xt = /* @__PURE__ */ t((o) => "table" in o && o.table !== void 0, "hasTableInstance"), yt = /* @__PURE__ */ t((o) => {
655
+ const r = Io();
656
+ return xt(o) ? /* @__PURE__ */ s(U, { table: o.table }) : /* @__PURE__ */ s(
657
+ Tt,
666
658
  {
667
659
  ...o,
668
- localization: o.localization ?? (e.id === "kr" ? Lo : void 0)
660
+ localization: o.localization ?? (r.id === "kr" ? Do : void 0)
669
661
  }
670
662
  );
671
663
  }, "OwpMrtTable");
672
664
  export {
673
- Wt as OwpMrtTable
665
+ yt as OwpMrtTable
674
666
  };
675
667
  //# sourceMappingURL=OwpMrtTable.js.map