@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,304 +1,251 @@
1
- var je = Object.defineProperty;
2
- var d = (e, n) => je(e, "name", { value: n, configurable: !0 });
3
- import { jsxs as ke, 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 qe } from "../../constants/gridTheme.js";
5
- import { useGetCurrentSettings as Ye } from "../../hooks/useOwpSettings.js";
6
- import { useOwpTranslation as Qe } from "../../hooks/useOwpTranslation.js";
7
- import { useGetCurrentLanguage as Xe } from "../../hooks/useCurrentLanguage.js";
8
- import { TREE_GRID_BODY_ROWS_CHANGED_EVENT as Be } from "../../utils/treeGridBodyRowsEvent.js";
9
- import { getTreeGridPerfTimestamp as X, countTreeGridPerf as He, logTreeGridPerf as Se, measureTreeGridPerf as xe } from "./internal/utils/perf.js";
10
- import { useRef as r, useState as J, useMemo as Je, useEffect as _, useLayoutEffect as Ke } from "react";
11
- import Ze from "@mui/material/GlobalStyles";
12
- import { useOwpTreeGridOverlayFrame as Ue } from "./internal/hooks/useOwpTreeGridOverlayFrame.js";
13
- import { bindTreeGridEvents as er, getTreeGridBodyDataCount as K, buildTreeGridInitializationOptions as rr, hasTreeGridDisplayDataRows as Le, replaceTreeGridBodyData as tr, TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS as or } from "./internal/treeGridRuntime.js";
14
- import { applyTreeGridLayoutToGrid as nr } from "./internal/treeGridLayout.js";
15
- import { OwpTreeGridLoadingOverlay as ir } from "./internal/OwpTreeGridLoadingOverlay.js";
16
- import { OwpTreeGridNoDataOverlay as sr } from "./internal/OwpTreeGridNoDataOverlay.js";
17
- import { resolveTreeGridColumnEditRuleLookup as _e, createTreeGridColumnEditRulesState as ar, syncTreeGridColumnEditRules as dr } from "./internal/treeGridColumnEditRules.js";
18
- import { isEmpty as O } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
19
- import { delay as ur } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/delay.js";
20
- import { isEqual as Oe } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
21
- import { omit as lr } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/omit.js";
22
- const cr = [
23
- "TS",
24
- "TW",
25
- "TB",
26
- "TM",
27
- "TT",
28
- "CF",
29
- "CL",
30
- "CO",
31
- "CG",
32
- "CB",
33
- "CQ",
34
- "CE",
35
- "CS",
36
- "CR",
37
- "CP",
38
- "CC"
39
- ], Ae = "owp-tree-grid-theme", Me = /* @__PURE__ */ d((e) => typeof e == "number" ? `${e}px` : e, "toTreeGridCssValue"), Z = /* @__PURE__ */ d(({
40
- rowSuffix: e,
41
- suffixes: n,
42
- withChildren: M = !1
43
- }) => cr.flatMap((w) => n.flatMap((A) => {
44
- const E = `.${Ae}`, h = e ? ` .${w}${e}` : "", f = `${E}${h} .${w}${A}`;
45
- return M ? [f, `${f} *`] : [f];
46
- })).join(", "), "createTreeGridSelectors"), fr = Z({
47
- suffixes: ["Main"],
48
- withChildren: !0
49
- }), pr = Z({
50
- rowSuffix: "HeaderRow",
51
- suffixes: ["CellHeader", "CellIndex", "GanttHeaderBase", "LevelButton"],
52
- withChildren: !0
53
- }), mr = Z({
54
- rowSuffix: "HeaderRow",
55
- suffixes: [
56
- "CellHeader",
57
- "CellIndex",
58
- "EditHeaderInput",
59
- "EditHeaderTextarea",
60
- "ColorFocusedCellHeader",
61
- "ColorHoveredCellHeader",
62
- "ColorHoveredCellIndex",
63
- "HeaderFocus",
64
- "HeaderDrag"
65
- ]
66
- }), Rr = {
67
- [fr]: {
68
- fontSize: "var(--owp-tree-grid-cell-font-size, 13px)",
69
- fontWeight: "normal",
70
- lineHeight: "16px"
71
- },
72
- [pr]: {
73
- color: "var(--owp-tree-grid-header-color, #ffffff) !important",
74
- fontSize: "var(--owp-tree-grid-header-font-size, 14px) !important",
75
- fontWeight: "var(--owp-tree-grid-header-font-weight, normal) !important",
76
- lineHeight: "16px"
77
- },
78
- [mr]: {
79
- backgroundColor: "var(--owp-tree-grid-header-background-color, #586980) !important",
80
- color: "var(--owp-tree-grid-header-color, #ffffff) !important"
81
- }
82
- }, Pr = /* @__PURE__ */ d(({
83
- id: e = "treeGridWrapper",
84
- containerStyle: n,
85
- containerClassName: M,
86
- className: w,
87
- style: A,
88
- height: E = "100%",
89
- width: h = "100%",
90
- layoutUrl: f,
91
- dataUrl: Pe,
92
- layoutOverrides: P,
93
- data: i,
1
+ var Ze = Object.defineProperty;
2
+ var a = (r, l) => Ze(r, "name", { value: l, configurable: !0 });
3
+ import { jsxs as $e, 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 er } from "../../constants/gridTheme.js";
5
+ import { resolveTreeGridColorNumber as _, TREEGRID_INPUT_CELL_COLOR as he, TREEGRID_CELL_HIGHLIGHT_COLOR as He } from "../../constants/treeGrid.js";
6
+ import { useGetCurrentSettings as rr } from "../../hooks/useOwpSettings.js";
7
+ import { useOwpTranslation as tr } from "../../hooks/useOwpTranslation.js";
8
+ import { useGetCurrentLanguage as or } from "../../hooks/useCurrentLanguage.js";
9
+ import { TREE_GRID_BODY_ROWS_CHANGED_EVENT as Ae } from "../../utils/treeGridBodyRowsEvent.js";
10
+ import { getTreeGridPerfTimestamp as z, countTreeGridPerf as ke, logTreeGridPerf as Pe, measureTreeGridPerf as Se } from "./internal/utils/perf.js";
11
+ import { useRef as e, useState as Y, useMemo as nr, useEffect as O, useLayoutEffect as ir } from "react";
12
+ import sr from "@mui/material/GlobalStyles";
13
+ import { useOwpTreeGridOverlayFrame as ur } from "./internal/hooks/useOwpTreeGridOverlayFrame.js";
14
+ import { bindTreeGridEvents as lr, getTreeGridBodyDataCount as J, buildTreeGridInitializationOptions as ar, hasTreeGridDisplayDataRows as Ne, replaceTreeGridBodyData as cr, TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS as dr } from "./internal/treeGridRuntime.js";
15
+ import { applyTreeGridLayoutToGrid as fr } from "./internal/treeGridLayout.js";
16
+ import { OwpTreeGridLoadingOverlay as mr } from "./internal/OwpTreeGridLoadingOverlay.js";
17
+ import { OwpTreeGridNoDataOverlay as pr } from "./internal/OwpTreeGridNoDataOverlay.js";
18
+ import { resolveTreeGridColumnEditRuleLookup as Me, createTreeGridColumnEditRulesState as Rr, syncTreeGridColumnEditRules as Tr } from "./internal/treeGridColumnEditRules.js";
19
+ import { createTreeGridThemeContainerStyle as yr, TREE_GRID_THEME_WRAPPER_CLASS as Gr, treeGridThemeStyles as gr } from "./internal/treeGridTheme.js";
20
+ import { isEmpty as w } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
21
+ import { delay as vr } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/delay.js";
22
+ import { isEqual as xe } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
23
+ import { omit as Cr } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/omit.js";
24
+ const zr = /* @__PURE__ */ a(({
25
+ id: r = "treeGridWrapper",
26
+ containerStyle: l,
27
+ containerClassName: Ve,
28
+ className: je,
29
+ style: qe,
30
+ height: K = "100%",
31
+ width: Q = "100%",
32
+ layoutUrl: We,
33
+ layoutData: Fe,
34
+ dataUrl: ze,
35
+ layoutOverrides: h,
36
+ data: o,
94
37
  useDataUrl: U,
95
- onSelect: ee,
96
- onRowClick: re,
97
- onRowAdd: te,
98
- onRowDelete: oe,
99
- onRowUndelete: ne,
100
- onRowChange: ie,
101
- onClickButton: se,
102
- onSave: ae,
103
- onReady: de,
104
- onAfterValueChanged: ue,
105
- columnEditRules: p,
106
- highlightEditableCells: le = !0,
107
- highlightChangedCells: ce = !0,
108
- loading: ze,
109
- showLoading: s = !0
38
+ onSelect: X,
39
+ onRowClick: Z,
40
+ onRowAdd: $,
41
+ onRowDelete: ee,
42
+ onRowUndelete: re,
43
+ onRowChange: te,
44
+ onClickButton: oe,
45
+ onSave: ne,
46
+ onReady: ie,
47
+ onAfterValueChanged: se,
48
+ columnEditRules: m,
49
+ highlightEditableCells: ue = !0,
50
+ highlightChangedCells: le = !0,
51
+ loading: Ye,
52
+ showLoading: n = !0
110
53
  }) => {
111
- const { t: z } = Qe(), D = Ye(), a = r(null), fe = r(null), pe = r(null), N = r(null), V = r(P), me = r(i), $ = r(
112
- p
113
- ), W = r(
114
- _e(p, {
115
- hourMinuteInvalidText: z("Message.시간은 HH:mm 형식으로 입력해주세요.")
54
+ var De, Be;
55
+ const { t: H } = tr(), A = rr(), k = (Be = (De = A == null ? void 0 : A.theme) == null ? void 0 : De.main) == null ? void 0 : Be.grid, i = e(null), ae = e(null), ce = e(null), P = e(null), S = e(h), de = e(o), N = e(
56
+ m
57
+ ), M = e(
58
+ Me(m, {
59
+ hourMinuteInvalidText: H("Message.시간은 HH:mm 형식으로 입력해주세요.")
116
60
  })
117
- ), Re = r({
118
- onSelect: ee,
119
- onRowClick: re,
120
- onRowAdd: te,
121
- onRowDelete: oe,
122
- onRowUndelete: ne,
123
- onRowChange: ie,
124
- onClickButton: se,
125
- onSave: ae,
126
- onReady: de,
127
- onAfterValueChanged: ue
128
- }), m = r(void 0), F = r(!1), b = r(void 0), I = r(void 0), B = r(
61
+ ), fe = e({
62
+ onSelect: X,
63
+ onRowClick: Z,
64
+ onRowAdd: $,
65
+ onRowDelete: ee,
66
+ onRowUndelete: re,
67
+ onRowChange: te,
68
+ onClickButton: oe,
69
+ onSave: ne,
70
+ onReady: ie,
71
+ onAfterValueChanged: se
72
+ }), p = e(void 0), x = e(!1), C = e(void 0), E = e(void 0), b = e(
129
73
  void 0
130
- ), Te = r(ar()), Ne = r(!1), R = r(0), u = r(null), T = r(void 0), y = r(void 0), ye = r(le), ge = r(ce), [j, Ve] = J(!1), [$e, g] = J(!1), [We, ve] = J(!1), H = Xe(), v = Je(
131
- () => {
132
- var t, o;
133
- return qe((o = (t = D == null ? void 0 : D.theme) == null ? void 0 : t.main) == null ? void 0 : o.grid);
134
- },
135
- [D]
136
- ), Ge = r(H.id), Fe = s && i !== void 0 && j && I.current !== i, k = s && ze === !0 || s && ($e || Fe), q = !k && i !== void 0 && O(i) && !We, Ce = /* @__PURE__ */ d((t) => {
137
- ve(Le(t));
74
+ ), me = e(Rr()), Je = e(!1), R = e(0), c = e(null), T = e(void 0), y = e(void 0), pe = e(ue), Re = e(le), [V, Ke] = Y(!1), [Qe, G] = Y(!1), [Ue, Te] = Y(!1), D = or(), s = nr(
75
+ () => er(k),
76
+ [k]
77
+ ), ye = e(
78
+ _(s.editable.backgroundColor) ?? _(he)
79
+ ), Ge = e(
80
+ s.changed.backgroundColor ?? He
81
+ ), ge = e(s.state.selectedCellBackgroundColor), ve = e(s.state.hoverCellBackgroundColor), Ce = e(D.id), Xe = n && o !== void 0 && V && E.current !== o, j = n && Ye === !0 || n && (Qe || Xe), q = !j && o !== void 0 && w(o) && !Ue, Ee = /* @__PURE__ */ a((t) => {
82
+ Te(Ne(t));
138
83
  }, "syncHasDisplayDataRows");
139
- V.current = P, me.current = i, $.current = p, W.current = _e(p, {
140
- hourMinuteInvalidText: z("Message.시간은 HH:mm 형식으로 입력해주세요.")
141
- }), ye.current = le, ge.current = ce, Re.current = {
142
- onSelect: ee,
143
- onRowClick: re,
144
- onRowAdd: te,
145
- onRowDelete: oe,
146
- onRowUndelete: ne,
147
- onRowChange: ie,
148
- onClickButton: se,
149
- onSave: ae,
150
- onReady: de,
151
- onAfterValueChanged: ue
84
+ S.current = h, de.current = o, N.current = m, M.current = Me(m, {
85
+ hourMinuteInvalidText: H("Message.시간은 HH:mm 형식으로 입력해주세요.")
86
+ }), pe.current = ue, Re.current = le, ye.current = _(s.editable.backgroundColor) ?? _(he), Ge.current = s.changed.backgroundColor ?? He, ge.current = s.state.selectedCellBackgroundColor, ve.current = s.state.hoverCellBackgroundColor, fe.current = {
87
+ onSelect: X,
88
+ onRowClick: Z,
89
+ onRowAdd: $,
90
+ onRowDelete: ee,
91
+ onRowUndelete: re,
92
+ onRowChange: te,
93
+ onClickButton: oe,
94
+ onSave: ne,
95
+ onReady: ie,
96
+ onAfterValueChanged: se
152
97
  };
153
- const we = Ue({
154
- visible: k || q,
155
- containerRef: fe,
156
- treeGridInstanceRef: a,
157
- debugId: e
158
- }), S = /* @__PURE__ */ d(() => {
98
+ const be = ur({
99
+ visible: j || q,
100
+ containerRef: ae,
101
+ treeGridInstanceRef: i,
102
+ debugId: r
103
+ }), B = /* @__PURE__ */ a(() => {
159
104
  T.current !== void 0 && (window.clearTimeout(T.current), T.current = void 0);
160
- }, "clearBindingLoadingHideTimeout"), Y = /* @__PURE__ */ d(() => {
105
+ }, "clearBindingLoadingHideTimeout"), W = /* @__PURE__ */ a(() => {
161
106
  y.current !== void 0 && (window.clearTimeout(y.current), y.current = void 0);
162
107
  }, "clearBodyReloadStartTimeout");
163
- _(() => {
164
- const t = /* @__PURE__ */ d((o) => {
165
- var l;
166
- ((l = o.detail) == null ? void 0 : l.gridId) === e && ve(Le(a.current));
108
+ O(() => {
109
+ const t = /* @__PURE__ */ a((u) => {
110
+ var d;
111
+ ((d = u.detail) == null ? void 0 : d.gridId) === r && Te(Ne(i.current));
167
112
  }, "handleBodyRowsChanged");
168
- return window.addEventListener(Be, t), () => {
169
- window.removeEventListener(Be, t);
113
+ return window.addEventListener(Ae, t), () => {
114
+ window.removeEventListener(Ae, t);
170
115
  };
171
- }, [e]), _(() => {
172
- s || (Y(), S(), u.current = null, g(!1));
173
- }, [s]), _(() => {
116
+ }, [r]), O(() => {
117
+ n || (W(), B(), c.current = null, G(!1));
118
+ }, [n]), O(() => {
174
119
  var t;
175
- if (H.id !== Ge.current && !O(a.current) && ((t = a.current) == null || t.Dispose(), a.current = null, Ge.current = H.id), !!O(a.current))
176
- return er({
177
- id: e,
178
- latestEventHandlersRef: Re,
179
- highlightEditableCellsRef: ye,
180
- highlightChangedCellsRef: ge,
181
- treeGridInstanceRef: a,
182
- treeGridInitStartedAtRef: pe,
183
- latestLayoutOverridesRef: V,
184
- appliedLayoutOverridesRef: b,
185
- appliedBodyDataPropRef: I,
186
- latestColumnEditRulesRef: $,
187
- latestColumnEditRuleLookupRef: W,
188
- appliedColumnEditRulesRef: B,
189
- columnEditRulesStateRef: Te,
190
- hasAppliedInitialLayoutRef: Ne,
191
- syncHasDisplayDataRows: Ce,
192
- setIsTreeGridReady: Ve
193
- }), pe.current = X(), He(e, "init"), Se(e, "TreeGrid init start", {
120
+ if (D.id !== Ce.current && !w(i.current) && ((t = i.current) == null || t.Dispose(), i.current = null, Ce.current = D.id), !!w(i.current))
121
+ return lr({
122
+ id: r,
123
+ latestEventHandlersRef: fe,
124
+ highlightEditableCellsRef: pe,
125
+ highlightChangedCellsRef: Re,
126
+ editableCellBackgroundColorValueRef: ye,
127
+ changedCellBackgroundColorRef: Ge,
128
+ selectedCellBackgroundColorRef: ge,
129
+ hoverCellBackgroundColorRef: ve,
130
+ treeGridInstanceRef: i,
131
+ treeGridInitStartedAtRef: ce,
132
+ latestLayoutOverridesRef: S,
133
+ appliedLayoutOverridesRef: C,
134
+ appliedBodyDataPropRef: E,
135
+ latestColumnEditRulesRef: N,
136
+ latestColumnEditRuleLookupRef: M,
137
+ appliedColumnEditRulesRef: b,
138
+ columnEditRulesStateRef: me,
139
+ hasAppliedInitialLayoutRef: Je,
140
+ syncHasDisplayDataRows: Ee,
141
+ setIsTreeGridReady: Ke
142
+ }), ce.current = z(), ke(r, "init"), Pe(r, "TreeGrid init start", {
194
143
  useDataUrl: !!U,
195
- bodyRowCount: K(i)
144
+ bodyRowCount: J(o)
196
145
  }), window.TreeGrid(
197
- rr({
198
- id: e,
199
- layoutUrl: f,
200
- dataUrl: Pe,
201
- bodyData: i,
146
+ ar({
147
+ id: r,
148
+ layoutUrl: We,
149
+ layoutData: Fe,
150
+ dataUrl: ze,
151
+ bodyData: o,
202
152
  useDataUrl: U,
203
- width: h,
204
- height: E,
205
- languageId: H.id
153
+ width: Q,
154
+ height: K,
155
+ languageId: D.id
206
156
  }),
207
- e,
208
- e
157
+ r,
158
+ r
209
159
  ), () => {
210
- ur(() => {
211
- var o;
212
- (o = a.current) == null || o.Dispose();
160
+ vr(() => {
161
+ var u;
162
+ (u = i.current) == null || u.Dispose();
213
163
  }, 200);
214
164
  };
215
- }, []), Ke(() => {
216
- const t = a.current, o = V.current, G = me.current, l = $.current;
217
- if (O(t) || !j)
165
+ }, []), ir(() => {
166
+ const t = i.current, u = S.current, g = de.current, d = N.current;
167
+ if (w(t) || !V)
218
168
  return;
219
- const Ee = b.current !== o && !Oe(b.current, o), x = I.current !== G && (!F.current || m.current !== G), he = B.current !== l && !Oe(B.current, l);
220
- if (!(!Ee && !x && !he)) {
221
- if (Ee) {
222
- const c = X();
223
- nr(t, o, x), b.current = o, xe(e, "apply layout", c, {
224
- disableBodyReload: !!x
169
+ const Ie = C.current !== u && !xe(C.current, u), I = E.current !== g && (!x.current || p.current !== g), Le = b.current !== d && !xe(b.current, d);
170
+ if (!(!Ie && !I && !Le)) {
171
+ if (Ie) {
172
+ const f = z();
173
+ fr(t, u, I), C.current = u, Se(r, "apply layout", f, {
174
+ disableBodyReload: !!I
225
175
  });
226
176
  }
227
- if (x) {
228
- const c = R.current + 1, De = /* @__PURE__ */ d(() => {
229
- const C = m.current;
230
- y.current = void 0, N.current = X(), He(e, "reload"), Se(e, "ReloadBody start", {
231
- bodyRowCount: K(C)
232
- }), tr(t, C, () => {
233
- if (R.current !== c)
177
+ if (I) {
178
+ const f = R.current + 1, _e = /* @__PURE__ */ a(() => {
179
+ const v = p.current;
180
+ y.current = void 0, P.current = z(), ke(r, "reload"), Pe(r, "ReloadBody start", {
181
+ bodyRowCount: J(v)
182
+ }), cr(t, v, () => {
183
+ if (R.current !== f)
234
184
  return;
235
- I.current = C, Ce(t), xe(e, "ReloadBody end", N.current, {
236
- bodyRowCount: K(C)
237
- }), N.current = null, m.current === C && (m.current = void 0, F.current = !1);
238
- const be = u.current;
239
- if (!s || be === null) {
240
- u.current = null, g(!1);
185
+ E.current = v, Ee(t), Se(r, "ReloadBody end", P.current, {
186
+ bodyRowCount: J(v)
187
+ }), P.current = null, p.current === v && (p.current = void 0, x.current = !1);
188
+ const Oe = c.current;
189
+ if (!n || Oe === null) {
190
+ c.current = null, G(!1);
241
191
  return;
242
192
  }
243
- const Ie = Math.max(
193
+ const we = Math.max(
244
194
  0,
245
- or - (Date.now() - be)
195
+ dr - (Date.now() - Oe)
246
196
  );
247
- if (S(), Ie === 0) {
248
- u.current = null, g(!1);
197
+ if (B(), we === 0) {
198
+ c.current = null, G(!1);
249
199
  return;
250
200
  }
251
201
  T.current = window.setTimeout(() => {
252
- R.current === c && (T.current = void 0, u.current = null, g(!1));
253
- }, Ie);
202
+ R.current === f && (T.current = void 0, c.current = null, G(!1));
203
+ }, we);
254
204
  });
255
205
  }, "runBodyReload");
256
- R.current = c, m.current = G, F.current = !0, s && G !== void 0 ? (Y(), S(), u.current = Date.now(), g(!0), y.current = window.setTimeout(() => {
257
- R.current === c && De();
258
- }, 0)) : De();
206
+ R.current = f, p.current = g, x.current = !0, n && g !== void 0 ? (W(), B(), c.current = Date.now(), G(!0), y.current = window.setTimeout(() => {
207
+ R.current === f && _e();
208
+ }, 0)) : _e();
259
209
  }
260
- he && (dr(
210
+ Le && (Tr(
261
211
  t,
262
- W.current,
263
- Te.current
264
- ), B.current = l);
212
+ M.current,
213
+ me.current
214
+ ), b.current = d);
265
215
  }
266
- }, [j, P, i, p, s, e]), _(() => () => {
267
- Y(), S();
216
+ }, [V, h, o, m, n, r]), O(() => () => {
217
+ W(), B();
268
218
  }, []);
269
- const Q = {
270
- height: E,
271
- width: h,
272
- "--owp-tree-grid-header-background-color": v.header.backgroundColor,
273
- "--owp-tree-grid-header-color": v.header.color,
274
- "--owp-tree-grid-header-font-size": Me(v.header.fontSize),
275
- "--owp-tree-grid-header-font-weight": String(v.header.fontWeight),
276
- "--owp-tree-grid-cell-font-size": Me(v.cell.fontSize),
277
- ...n
278
- };
279
- return (s || q) && (Q.position = n != null && n.position && n.position !== "static" ? n.position : "relative", Q.isolation = "isolate"), /* @__PURE__ */ ke(
219
+ const F = yr({
220
+ width: Q,
221
+ height: K,
222
+ treeGridTheme: s,
223
+ gridThemeConfig: k,
224
+ containerStyle: l
225
+ });
226
+ return (n || q) && (F.position = l != null && l.position && l.position !== "static" ? l.position : "relative", F.isolation = "isolate"), /* @__PURE__ */ $e(
280
227
  "div",
281
228
  {
282
- ref: fe,
283
- className: [Ae, M].filter(Boolean).join(" "),
284
- style: Q,
229
+ ref: ae,
230
+ className: [Gr, Ve].filter(Boolean).join(" "),
231
+ style: F,
285
232
  children: [
286
- /* @__PURE__ */ L(Ze, { styles: Rr }),
287
- /* @__PURE__ */ L("div", { id: e, className: w, style: lr(A, ["height", "width"]) }),
233
+ /* @__PURE__ */ L(sr, { styles: gr }),
234
+ /* @__PURE__ */ L("div", { id: r, className: je, style: Cr(qe, ["height", "width"]) }),
288
235
  /* @__PURE__ */ L(
289
- sr,
236
+ pr,
290
237
  {
291
238
  visible: q,
292
- message: z("Message.조회된 결과가 없습니다."),
293
- overlayFrame: we
239
+ message: H("Message.조회된 결과가 없습니다."),
240
+ overlayFrame: be
294
241
  }
295
242
  ),
296
- /* @__PURE__ */ L(ir, { visible: k, overlayFrame: we })
243
+ /* @__PURE__ */ L(mr, { visible: j, overlayFrame: be })
297
244
  ]
298
245
  }
299
246
  );
300
247
  }, "OwpTreeGrid");
301
248
  export {
302
- Pr as OwpTreeGrid
249
+ zr as OwpTreeGrid
303
250
  };
304
251
  //# sourceMappingURL=OwpTreeGrid.js.map