@owp/core 2.5.61 → 2.5.63

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 (226) hide show
  1. package/dist/_virtual/index10.js +2 -2
  2. package/dist/_virtual/index11.js +2 -2
  3. package/dist/_virtual/index12.js +2 -2
  4. package/dist/_virtual/index13.js +2 -2
  5. package/dist/_virtual/index15.js +2 -2
  6. package/dist/_virtual/index17.js +2 -5
  7. package/dist/_virtual/index17.js.map +1 -1
  8. package/dist/_virtual/index18.js +4 -4
  9. package/dist/_virtual/index19.js +4 -4
  10. package/dist/_virtual/index20.js +5 -2
  11. package/dist/_virtual/index20.js.map +1 -1
  12. package/dist/_virtual/index3.js +2 -2
  13. package/dist/_virtual/index4.js +2 -2
  14. package/dist/_virtual/index5.js +2 -2
  15. package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js +73 -33
  16. package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js.map +1 -1
  17. package/dist/components/OwpPageCarded/OwpPageCarded.js +10 -10
  18. package/dist/components/OwpPageCarded/OwpPageCarded.js.map +1 -1
  19. package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebar.js +5 -5
  20. package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebar.js.map +1 -1
  21. package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebarContent.js +1 -1
  22. package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebarContent.js.map +1 -1
  23. package/dist/components/OwpPageContent/OwpPageContent.js +3 -3
  24. package/dist/components/OwpPageContent/OwpPageContent.js.map +1 -1
  25. package/dist/components/{OwpPageTitle/OwpPageTitle.js → OwpPageContent/internal/PageTitle.js} +7 -7
  26. package/dist/components/OwpPageContent/internal/PageTitle.js.map +1 -0
  27. package/dist/components/OwpTable/OwpDataTable.js +98 -98
  28. package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
  29. package/dist/components/OwpTable/OwpFieldTable.js +70 -68
  30. package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
  31. package/dist/components/OwpTable/internal/OwpTableBase.js +47 -38
  32. package/dist/components/OwpTable/internal/OwpTableBase.js.map +1 -1
  33. package/dist/components/OwpTable/internal/defaultTableStyle.js +11 -8
  34. package/dist/components/OwpTable/internal/defaultTableStyle.js.map +1 -1
  35. package/dist/components/OwpTextField/OwpBarcodeInputField.js +50 -0
  36. package/dist/components/OwpTextField/OwpBarcodeInputField.js.map +1 -0
  37. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +301 -284
  38. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  39. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +811 -745
  40. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  41. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +631 -580
  42. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  43. package/dist/components/{OwpHidden/OwpHidden.js → internal/Hidden.js} +9 -9
  44. package/dist/components/internal/Hidden.js.map +1 -0
  45. package/dist/components/{OwpScrollbars/OwpScrollbars.js → internal/Scrollbars.js} +6 -6
  46. package/dist/components/internal/Scrollbars.js.map +1 -0
  47. package/dist/configs/defaultConfig.js +248 -159
  48. package/dist/configs/defaultConfig.js.map +1 -1
  49. package/dist/constants/gridTheme.js +85 -61
  50. package/dist/constants/gridTheme.js.map +1 -1
  51. package/dist/constants/tableTheme.js.map +1 -1
  52. package/dist/constants/treeGrid.js +57 -54
  53. package/dist/constants/treeGrid.js.map +1 -1
  54. package/dist/constants.js +50 -47
  55. package/dist/contexts/OwpDialogsContext.js.map +1 -0
  56. package/dist/{components/OwpDialogsProvider → contexts}/OwpDialogsProvider.js +3 -3
  57. package/dist/contexts/OwpDialogsProvider.js.map +1 -0
  58. package/dist/{components/OwpStyleProvider → contexts}/OwpStyleProvider.js +2 -2
  59. package/dist/contexts/OwpStyleProvider.js.map +1 -0
  60. package/dist/contexts/OwpUiProvider.js +22 -22
  61. package/dist/contexts/OwpUiProvider.js.map +1 -1
  62. package/dist/{components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.js → contexts/internal/AutoLogoutDialog.js} +4 -4
  63. package/dist/contexts/internal/AutoLogoutDialog.js.map +1 -0
  64. package/dist/{components/OwpPageLockLoading/OwpPageLockLoading.js → contexts/internal/PageLockLoading.js} +11 -11
  65. package/dist/contexts/internal/PageLockLoading.js.map +1 -0
  66. package/dist/{components/OwpSnackbarContent/OwpSnackbarContent.js → contexts/internal/SnackbarContent.js} +26 -26
  67. package/dist/contexts/internal/SnackbarContent.js.map +1 -0
  68. package/dist/contexts.js +10 -6
  69. package/dist/contexts.js.map +1 -1
  70. package/dist/features/themePreview/components/ThemePreviewCanvas.js +270 -256
  71. package/dist/features/themePreview/components/ThemePreviewCanvas.js.map +1 -1
  72. package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +195 -191
  73. package/dist/features/themePreview/components/ThemePreviewCanvasSections.js.map +1 -1
  74. package/dist/features/themePreview/components/ThemePreviewColorField.js +185 -188
  75. package/dist/features/themePreview/components/ThemePreviewColorField.js.map +1 -1
  76. package/dist/features/themePreview/components/ThemePreviewControls.js +213 -206
  77. package/dist/features/themePreview/components/ThemePreviewControls.js.map +1 -1
  78. package/dist/features/themePreview/components/themePreviewCanvas.shared.js +238 -148
  79. package/dist/features/themePreview/components/themePreviewCanvas.shared.js.map +1 -1
  80. package/dist/features/themePreview/configs/grid.js +3 -59
  81. package/dist/features/themePreview/configs/grid.js.map +1 -1
  82. package/dist/features/themePreview/configs/presets.js +90 -52
  83. package/dist/features/themePreview/configs/presets.js.map +1 -1
  84. package/dist/features/themePreview/configs/settings.js +51 -27
  85. package/dist/features/themePreview/configs/settings.js.map +1 -1
  86. package/dist/features/themePreview/configs/table.js +8 -5
  87. package/dist/features/themePreview/configs/table.js.map +1 -1
  88. package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js +26 -11
  89. package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js.map +1 -1
  90. package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js +25 -11
  91. package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js.map +1 -1
  92. package/dist/features/themePreview/dialogs/ThemePreviewDialog.js +250 -209
  93. package/dist/features/themePreview/dialogs/ThemePreviewDialog.js.map +1 -1
  94. package/dist/features/themePreview/hooks/useThemePreview.js +373 -274
  95. package/dist/features/themePreview/hooks/useThemePreview.js.map +1 -1
  96. package/dist/features/themePreview/utils/themePreviewDefinitions.js +79 -63
  97. package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
  98. package/dist/features/themePreview/utils/themePreviewExport.js +1 -1
  99. package/dist/features/themePreview/utils/themePreviewSettings.js +258 -170
  100. package/dist/features/themePreview/utils/themePreviewSettings.js.map +1 -1
  101. package/dist/hooks/useOwpDialogs.js +1 -1
  102. package/dist/index.js +89 -107
  103. package/dist/index.js.map +1 -1
  104. package/dist/layout/Layout.js +18 -18
  105. package/dist/layout/Layout.js.map +1 -1
  106. package/dist/layout/components/navbar/style/NavbarStyle.js +1 -1
  107. package/dist/layout/components/navbar/style/NavbarStyle.js.map +1 -1
  108. package/dist/layout/components/navbar/style/NavbarStyleContent.js +11 -11
  109. package/dist/layout/components/navbar/style/NavbarStyleContent.js.map +1 -1
  110. package/dist/{components/OwpNavLinkAdapter/OwpNavLinkAdapter.js → layout/components/navigation/internal/NavLinkAdapter.js} +25 -25
  111. package/dist/layout/components/navigation/internal/NavLinkAdapter.js.map +1 -0
  112. package/dist/layout/components/navigation/vertical/types/NavVerticalCollapse.js +15 -15
  113. package/dist/layout/components/navigation/vertical/types/NavVerticalGroup.js +6 -6
  114. package/dist/layout/components/navigation/vertical/types/NavVerticalItem.js +4 -4
  115. package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
  116. package/dist/layout/components/toolbar/ToolbarLayout.js +29 -29
  117. package/dist/layout/components/toolbar/ToolbarLayout.js.map +1 -1
  118. package/dist/{components/OwpPageBreadcrumb/OwpPageBreadcrumb.js → layout/components/toolbar/internal/PageBreadcrumb.js} +9 -9
  119. package/dist/layout/components/toolbar/internal/PageBreadcrumb.js.map +1 -0
  120. package/dist/{components/OwpPageSkeleton/OwpPageSkeleton.js → layout/internal/PageSkeleton.js} +9 -9
  121. package/dist/layout/internal/PageSkeleton.js.map +1 -0
  122. package/dist/{components/OwpSuspense/OwpSuspense.js → layout/internal/Suspense.js} +37 -37
  123. package/dist/layout/internal/Suspense.js.map +1 -0
  124. package/dist/node_modules/.pnpm/inko@1.1.1/node_modules/inko/index.js +1 -1
  125. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
  126. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
  127. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
  128. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
  129. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
  130. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
  131. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
  132. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  133. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
  134. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
  135. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
  136. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/index.js +1 -1
  137. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
  138. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
  139. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  140. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
  141. package/dist/owp-app.css +1 -1
  142. package/dist/types/components/{OwpPageTitle/OwpPageTitle.d.ts → OwpPageContent/internal/PageTitle.d.ts} +3 -3
  143. package/dist/types/components/OwpTable/internal/defaultTableStyle.d.ts +5 -2
  144. package/dist/types/components/OwpTextField/OwpBarcodeInputField.d.ts +15 -0
  145. package/dist/types/components/OwpTextField/index.d.ts +1 -0
  146. package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +9 -1
  147. package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +8 -1
  148. package/dist/types/components/{OwpHidden/OwpHidden.d.ts → internal/Hidden.d.ts} +4 -4
  149. package/dist/types/components/{OwpScrollbars/OwpScrollbars.d.ts → internal/Scrollbars.d.ts} +7 -7
  150. package/dist/types/configs/defaultConfig.d.ts +4 -4
  151. package/dist/types/constants/gridTheme.d.ts +24 -0
  152. package/dist/types/constants/tableTheme.d.ts +1 -0
  153. package/dist/types/constants/treeGrid.d.ts +8 -2
  154. package/dist/types/contexts/index.d.ts +2 -0
  155. package/dist/types/{components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.d.ts → contexts/internal/AutoLogoutDialog.d.ts} +2 -2
  156. package/dist/types/contexts/internal/PageLockLoading.d.ts +7 -0
  157. package/dist/types/contexts/internal/SnackbarContent.d.ts +3 -0
  158. package/dist/types/features/themePreview/components/ThemePreviewColorField.d.ts +4 -5
  159. package/dist/types/features/themePreview/components/themePreviewCanvas.shared.d.ts +38 -2
  160. package/dist/types/features/themePreview/configs/grid.d.ts +14 -0
  161. package/dist/types/features/themePreview/configs/presets.d.ts +4 -2
  162. package/dist/types/features/themePreview/configs/settings.d.ts +40 -0
  163. package/dist/types/features/themePreview/configs/table.d.ts +2 -0
  164. package/dist/types/features/themePreview/hooks/useThemePreview.d.ts +2 -0
  165. package/dist/types/hooks/usePageLockLoading.d.ts +3 -3
  166. package/dist/types/index.d.ts +1 -10
  167. package/dist/types/{components/OwpNavLinkAdapter/OwpNavLinkAdapter.d.ts → layout/components/navigation/internal/NavLinkAdapter.d.ts} +3 -3
  168. package/dist/types/layout/internal/PageSkeleton.d.ts +6 -0
  169. package/dist/types/layout/internal/Suspense.d.ts +13 -0
  170. package/dist/types/types/OwpGridThemeTypes.d.ts +30 -1
  171. package/dist/types/types/OwpMuiThemeTypes.d.ts +16 -0
  172. package/dist/types/types/OwpTableThemeTypes.d.ts +2 -0
  173. package/dist/types/types/PageLockLoadingTypes.d.ts +9 -0
  174. package/dist/types/types/index.d.ts +1 -0
  175. package/dist/utils/treeGridUtil.js +44 -38
  176. package/dist/utils/treeGridUtil.js.map +1 -1
  177. package/package.json +1 -1
  178. package/dist/components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.js.map +0 -1
  179. package/dist/components/OwpBarcodeInput/OwpBarcodeInputField.js +0 -38
  180. package/dist/components/OwpBarcodeInput/OwpBarcodeInputField.js.map +0 -1
  181. package/dist/components/OwpDialogsProvider/OwpDialogsContext.js.map +0 -1
  182. package/dist/components/OwpDialogsProvider/OwpDialogsProvider.js.map +0 -1
  183. package/dist/components/OwpHidden/OwpHidden.js.map +0 -1
  184. package/dist/components/OwpNavLinkAdapter/OwpNavLinkAdapter.js.map +0 -1
  185. package/dist/components/OwpPageBreadcrumb/OwpPageBreadcrumb.js.map +0 -1
  186. package/dist/components/OwpPageLockLoading/OwpPageLockLoading.js.map +0 -1
  187. package/dist/components/OwpPageSkeleton/OwpPageSkeleton.js.map +0 -1
  188. package/dist/components/OwpPageTitle/OwpPageTitle.js.map +0 -1
  189. package/dist/components/OwpScrollbars/OwpScrollbars.js.map +0 -1
  190. package/dist/components/OwpSnackbarContent/OwpSnackbarContent.js.map +0 -1
  191. package/dist/components/OwpStyleProvider/OwpStyleProvider.js.map +0 -1
  192. package/dist/components/OwpSuspense/OwpSuspense.js.map +0 -1
  193. package/dist/components/OwpZoomImageSlider/OwpZoomImageSlider.js +0 -66
  194. package/dist/components/OwpZoomImageSlider/OwpZoomImageSlider.js.map +0 -1
  195. package/dist/components/OwpZoomImageSlider/internal/ZoomImage.js +0 -49
  196. package/dist/components/OwpZoomImageSlider/internal/ZoomImage.js.map +0 -1
  197. 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/ArrowBackIosNew.js +0 -9
  198. 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/ArrowBackIosNew.js.map +0 -1
  199. 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/ArrowForwardIos.js +0 -9
  200. 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/ArrowForwardIos.js.map +0 -1
  201. package/dist/types/components/OwpAutoLogoutDialog/index.d.ts +0 -1
  202. package/dist/types/components/OwpBarcodeInput/OwpBarcodeInput.d.ts +0 -1
  203. package/dist/types/components/OwpBarcodeInput/OwpBarcodeInputField.d.ts +0 -7
  204. package/dist/types/components/OwpBarcodeInput/index.d.ts +0 -1
  205. package/dist/types/components/OwpDialogsProvider/index.d.ts +0 -1
  206. package/dist/types/components/OwpHidden/index.d.ts +0 -2
  207. package/dist/types/components/OwpNavLinkAdapter/index.d.ts +0 -2
  208. package/dist/types/components/OwpPageBreadcrumb/index.d.ts +0 -2
  209. package/dist/types/components/OwpPageLockLoading/OwpPageLockLoading.d.ts +0 -15
  210. package/dist/types/components/OwpPageLockLoading/index.d.ts +0 -1
  211. package/dist/types/components/OwpPageSkeleton/OwpPageSkeleton.d.ts +0 -6
  212. package/dist/types/components/OwpPageSkeleton/index.d.ts +0 -1
  213. package/dist/types/components/OwpPageTitle/index.d.ts +0 -1
  214. package/dist/types/components/OwpScrollbars/index.d.ts +0 -1
  215. package/dist/types/components/OwpSnackbarContent/OwpSnackbarContent.d.ts +0 -3
  216. package/dist/types/components/OwpStyleProvider/index.d.ts +0 -2
  217. package/dist/types/components/OwpSuspense/OwpSuspense.d.ts +0 -16
  218. package/dist/types/components/OwpSuspense/index.d.ts +0 -1
  219. package/dist/types/components/OwpZoomImageSlider/OwpZoomImageSlider.d.ts +0 -20
  220. package/dist/types/components/OwpZoomImageSlider/index.d.ts +0 -1
  221. package/dist/types/components/OwpZoomImageSlider/internal/ZoomImage.d.ts +0 -7
  222. /package/dist/{components/OwpDialogsProvider → contexts}/OwpDialogsContext.js +0 -0
  223. /package/dist/types/{components/OwpDialogsProvider → contexts}/OwpDialogsContext.d.ts +0 -0
  224. /package/dist/types/{components/OwpDialogsProvider → contexts}/OwpDialogsProvider.d.ts +0 -0
  225. /package/dist/types/{components/OwpStyleProvider → contexts}/OwpStyleProvider.d.ts +0 -0
  226. /package/dist/types/{components/OwpPageBreadcrumb/OwpPageBreadcrumb.d.ts → layout/components/toolbar/internal/PageBreadcrumb.d.ts} +0 -0
@@ -1,430 +1,447 @@
1
- var Zr = Object.defineProperty;
2
- var l = (e, s) => Zr(e, "name", { value: s, configurable: !0 });
3
- import { jsxs as et, jsx 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 { resolveOwpGridTheme as rt } from "../../constants/gridTheme.js";
5
- import { DEFAULT_TABLE_RADIUS as tt } from "../../constants/table.js";
6
- import { resolveTreeGridColorNumber as Q, TREEGRID_INPUT_CELL_COLOR as Er, TREEGRID_CELL_HIGHLIGHT_COLOR as Cr } from "../../constants/treeGrid.js";
7
- import { useGetCurrentSettings as ot } from "../../hooks/useOwpSettings.js";
8
- import { useOwpTranslation as nt } from "../../hooks/useOwpTranslation.js";
9
- import { useGetCurrentLanguage as it } from "../../hooks/internal/useCurrentLanguage.js";
10
- import { useConfirm as lt } from "../../hooks/useConfirm.js";
11
- import { TREE_GRID_BODY_ROWS_CHANGED_EVENT as Gr } from "../../utils/internal/treeGridBodyRowsEvent.js";
12
- import { getTreeGridPerfTimestamp as Re, countTreeGridPerf as vr, logTreeGridPerf as hr, measureTreeGridPerf as Br } from "./internal/utils/perf.js";
13
- import { useMemo as yr, useRef as r, useState as O, useEffect as h, useLayoutEffect as ct } from "react";
14
- import { useOwpTreeGridDatePickerEditor as at } from "./internal/hooks/useOwpTreeGridDatePickerEditor.js";
15
- import { useOwpTreeGridErrorTooltip as st } from "./internal/hooks/useOwpTreeGridErrorTooltip.js";
16
- import { useOwpTreeGridAddedRowBoxOverlay as dt } from "./internal/hooks/useOwpTreeGridAddedRowBoxOverlay.js";
17
- import { useOwpTreeGridOverlayFrame as ut } from "./internal/hooks/useOwpTreeGridOverlayFrame.js";
18
- import { useOwpTreeGridScrollRenderLoading as ft } from "./internal/hooks/useOwpTreeGridScrollRenderLoading.js";
19
- import { hasTreeGridExplicitEnterMode as Lr, TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS as Dr, bindTreeGridEvents as mt, getTreeGridBodyDataCount as Te, buildTreeGridInitializationOptions as Rt, hasTreeGridDisplayDataRows as pe, replaceTreeGridBodyData as Tt, syncTreeGridChangedCellHighlight as pt, captureTreeGridChangeBaselines as gt } from "./internal/treeGridRuntime.js";
20
- import { applyTreeGridLayoutToGrid as Et } from "./internal/treeGridLayout.js";
21
- import { OwpTreeGridAddedRowBoxOverlay as Ct } from "./internal/OwpTreeGridAddedRowBoxOverlay.js";
22
- import { OwpTreeGridGlobalStyles as Gt } from "./internal/OwpTreeGridGlobalStyles.js";
23
- import { OwpTreeGridLoadingOverlay as vt } from "./internal/OwpTreeGridLoadingOverlay.js";
24
- import { OwpTreeGridNoDataOverlay as ht } from "./internal/OwpTreeGridNoDataOverlay.js";
25
- import { OwpTreeGridScrollLoadingOverlay as Bt } from "./internal/OwpTreeGridScrollLoadingOverlay.js";
26
- import { createTreeGridThemeContainerStyle as yt, TREE_GRID_THEME_WRAPPER_CLASS as Lt, TREE_GRID_THEME_TABLE_RADIUS_CLASS as Dt } from "./internal/treeGridTheme.js";
27
- import { isEmpty as wr } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
28
- import { isEqual as wt } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
29
- import { omit as bt } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/omit.js";
30
- import { isPlainObject as _t } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js";
31
- const It = "NumberToString(count(4),',0')", Ot = ["Formula", "FormulaFormula"], St = 33, At = 50, kt = Object.prototype.hasOwnProperty, Pt = /* @__PURE__ */ l((e) => !!e && typeof e.Dispose == "function", "isTreeGridInstance"), br = /* @__PURE__ */ l((e) => JSON.stringify(e) ?? '""', "toTreeGridFormulaStringLiteral"), Ft = /* @__PURE__ */ l((e, s) => `${br(
1
+ var nt = Object.defineProperty;
2
+ var c = (e, s) => nt(e, "name", { value: s, configurable: !0 });
3
+ import { jsxs as it, jsx 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 { resolveOwpGridTheme as ct } from "../../constants/gridTheme.js";
5
+ import { DEFAULT_TABLE_RADIUS as lt } from "../../constants/table.js";
6
+ import { resolveTreeGridColorNumber as Q, TREEGRID_INPUT_CELL_COLOR as vr, TREEGRID_CELL_HIGHLIGHT_COLOR as hr } from "../../constants/treeGrid.js";
7
+ import { useGetCurrentSettings as at } from "../../hooks/useOwpSettings.js";
8
+ import { useOwpTranslation as st } from "../../hooks/useOwpTranslation.js";
9
+ import { useGetCurrentLanguage as dt } from "../../hooks/internal/useCurrentLanguage.js";
10
+ import { useConfirm as ut } from "../../hooks/useConfirm.js";
11
+ import { TREE_GRID_BODY_ROWS_CHANGED_EVENT as _r } from "../../utils/internal/treeGridBodyRowsEvent.js";
12
+ import { getTreeGridPerfTimestamp as Re, countTreeGridPerf as Lr, logTreeGridPerf as wr, measureTreeGridPerf as Dr } from "./internal/utils/perf.js";
13
+ import { useMemo as yr, useRef as r, useState as O, useEffect as p, useLayoutEffect as ft } from "react";
14
+ import { useOwpTreeGridDatePickerEditor as mt } from "./internal/hooks/useOwpTreeGridDatePickerEditor.js";
15
+ import { useOwpTreeGridErrorTooltip as Rt } from "./internal/hooks/useOwpTreeGridErrorTooltip.js";
16
+ import { useOwpTreeGridAddedRowBoxOverlay as Ct } from "./internal/hooks/useOwpTreeGridAddedRowBoxOverlay.js";
17
+ import { useOwpTreeGridOverlayFrame as Tt } from "./internal/hooks/useOwpTreeGridOverlayFrame.js";
18
+ import { useOwpTreeGridScrollRenderLoading as gt } from "./internal/hooks/useOwpTreeGridScrollRenderLoading.js";
19
+ import { hasTreeGridExplicitEnterMode as br, TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS as Ir, bindTreeGridEvents as Et, getTreeGridBodyDataCount as Ce, buildTreeGridInitializationOptions as pt, hasTreeGridDisplayDataRows as Te, replaceTreeGridBodyData as Bt, syncTreeGridChangedCellHighlight as Gt, captureTreeGridChangeBaselines as vt } from "./internal/treeGridRuntime.js";
20
+ import { applyTreeGridLayoutToGrid as ht } from "./internal/treeGridLayout.js";
21
+ import { OwpTreeGridAddedRowBoxOverlay as _t } from "./internal/OwpTreeGridAddedRowBoxOverlay.js";
22
+ import { OwpTreeGridGlobalStyles as Lt } from "./internal/OwpTreeGridGlobalStyles.js";
23
+ import { OwpTreeGridLoadingOverlay as wt } from "./internal/OwpTreeGridLoadingOverlay.js";
24
+ import { OwpTreeGridNoDataOverlay as Dt } from "./internal/OwpTreeGridNoDataOverlay.js";
25
+ import { OwpTreeGridScrollLoadingOverlay as yt } from "./internal/OwpTreeGridScrollLoadingOverlay.js";
26
+ import { setTreeGridFloatingLayerCssVariable as Or, TREE_GRID_ENUM_MENU_HOVER_BACKGROUND_COLOR_CSS_VARIABLE as bt, TREE_GRID_ENUM_MENU_SELECTED_BACKGROUND_COLOR_CSS_VARIABLE as It, createTreeGridThemeContainerStyle as Ot, TREE_GRID_THEME_WRAPPER_CLASS as kt, TREE_GRID_THEME_TABLE_RADIUS_CLASS as St } from "./internal/treeGridTheme.js";
27
+ import { isEmpty as kr } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
28
+ import { isEqual as At } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
29
+ import { omit as Mt } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/omit.js";
30
+ import { isPlainObject as Nt } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js";
31
+ const Ft = "NumberToString(count(4),',0')", Pt = ["Formula", "FormulaFormula"], Vt = 33, xt = 50, Ht = Object.prototype.hasOwnProperty, Ut = /* @__PURE__ */ c((e) => !!e && typeof e.Dispose == "function", "isTreeGridInstance"), Sr = /* @__PURE__ */ c((e) => JSON.stringify(e) ?? '""', "toTreeGridFormulaStringLiteral"), zt = /* @__PURE__ */ c((e, s) => `${Sr(
32
32
  `${e} : `
33
- )}+${It}+${br(
33
+ )}+${Ft}+${Sr(
34
34
  ` ${s}`
35
- )}`, "buildTreeGridTotalCountToolbarFormula"), Nt = /* @__PURE__ */ l((e) => _t(e) ? Ot.some(
36
- (s) => kt.call(e, s)
37
- ) : !1, "hasTreeGridToolbarFormulaField"), Ir = /* @__PURE__ */ l((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), _r = /* @__PURE__ */ l((e) => e != null && !Ir(e), "isTreeGridEnabledConfigValue"), xt = /* @__PURE__ */ l((e) => {
38
- var M;
39
- const s = (M = e == null ? void 0 : e.Cols) == null ? void 0 : M.Panel;
40
- if (!e || !s || Ir(s.Visible))
35
+ )}`, "buildTreeGridTotalCountToolbarFormula"), Wt = /* @__PURE__ */ c((e) => Nt(e) ? Pt.some(
36
+ (s) => Ht.call(e, s)
37
+ ) : !1, "hasTreeGridToolbarFormulaField"), Mr = /* @__PURE__ */ c((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), Ar = /* @__PURE__ */ c((e) => e != null && !Mr(e), "isTreeGridEnabledConfigValue"), jt = /* @__PURE__ */ c((e) => {
38
+ var V;
39
+ const s = (V = e == null ? void 0 : e.Cols) == null ? void 0 : V.Panel;
40
+ if (!e || !s || Mr(s.Visible))
41
41
  return 0;
42
- const x = _r(e.Selecting), S = _r(e.Deleting);
43
- return x && S ? At : x || S ? St : 0;
44
- }, "resolveTreeGridScrollLoadingPanelLeftInset"), Mt = [
42
+ const P = Ar(e.Selecting), k = Ar(e.Deleting);
43
+ return P && k ? xt : P || k ? Vt : 0;
44
+ }, "resolveTreeGridScrollLoadingPanelLeftInset"), Kt = [
45
45
  "selectRow"
46
- ], go = /* @__PURE__ */ l(({
46
+ ], _o = /* @__PURE__ */ c(({
47
47
  id: e = "treeGridWrapper",
48
48
  containerStyle: s,
49
- containerClassName: x,
50
- toolbarRowBackgroundColor: S,
51
- className: M,
52
- style: Or,
49
+ containerClassName: P,
50
+ toolbarRowBackgroundColor: k,
51
+ className: V,
52
+ style: Nr,
53
53
  height: ge = "100%",
54
54
  width: Ee = "100%",
55
- canUseTableRadius: Ce = !1,
56
- tableBorderRadius: Sr = tt,
55
+ canUseTableRadius: pe = !1,
56
+ tableBorderRadius: Fr = lt,
57
57
  suppressCfg: X = 3,
58
- showToolbarTotalCount: Ge = !0,
59
- hideChildHeaderSortButtons: ve = !0,
60
- selectionScope: he = "native",
61
- layoutUrl: Ar,
58
+ showToolbarTotalCount: Be = !0,
59
+ hideChildHeaderSortButtons: Ge = !0,
60
+ selectionScope: ve = "native",
61
+ layoutUrl: Pr,
62
62
  layoutData: Z,
63
- disabledAnimations: ee = Mt,
64
- dataUrl: kr,
65
- layoutOverrides: C,
63
+ disabledAnimations: ee = Kt,
64
+ dataUrl: Vr,
65
+ layoutOverrides: B,
66
66
  data: f,
67
- useDataUrl: Be,
68
- onSelect: ye,
67
+ useDataUrl: he,
68
+ onSelect: _e,
69
69
  onRowClick: Le,
70
- onRowAdd: De,
71
- onRowDelete: we,
72
- onRowUndelete: be,
73
- onRowChange: _e,
70
+ onRowAdd: we,
71
+ onRowDelete: De,
72
+ onRowUndelete: ye,
73
+ onRowChange: be,
74
74
  onClickButton: Ie,
75
75
  onSave: Oe,
76
- onReady: Se,
77
- onAfterValueChanged: Ae,
78
- datePickerEditor: Pr,
79
- highlightEditableCells: ke = !0,
80
- highlightChangedCells: Pe = !0,
81
- syncDeletedRowCanEdit: Fe = !0,
82
- confirmDeletedRowRemoval: Fr = !0,
83
- loading: H,
76
+ onReady: ke,
77
+ onAfterValueChanged: Se,
78
+ datePickerEditor: xr,
79
+ highlightEditableCells: Ae = !0,
80
+ highlightChangedCells: Me = !0,
81
+ syncDeletedRowCanEdit: Ne = !0,
82
+ confirmDeletedRowRemoval: Hr = !0,
83
+ loading: x,
84
84
  showLoading: u = !0
85
85
  }) => {
86
- var Tr, pr;
87
- const { t: B } = nt(), { confirmDelete: Nr } = lt(), re = ot(), te = (pr = (Tr = re == null ? void 0 : re.theme) == null ? void 0 : Tr.main) == null ? void 0 : pr.grid, Ne = B("Common.전체"), xe = B("Common.건"), oe = yr(
88
- () => Ge && !Nt(C == null ? void 0 : C.Toolbar) ? Ft(Ne, xe) : void 0,
86
+ var pr, Br;
87
+ const { t: h } = st(), { confirmDelete: Ur } = ut(), re = at(), te = (Br = (pr = re == null ? void 0 : re.theme) == null ? void 0 : pr.main) == null ? void 0 : Br.grid, Fe = h("Common.전체"), Pe = h("Common.건"), oe = yr(
88
+ () => Be && !Wt(B == null ? void 0 : B.Toolbar) ? zt(Fe, Pe) : void 0,
89
89
  [
90
- C,
91
- xe,
92
- Ne,
93
- Ge
90
+ B,
91
+ Pe,
92
+ Fe,
93
+ Be
94
94
  ]
95
- ), c = r(null), y = r(null), Me = r(null), ne = r(null), ie = r(C), He = r(oe), Ve = r(X), Ue = r(ve), ze = r(
96
- he
97
- ), We = r(ee), le = r(f), je = r(Lr(Z)), $e = Fr ? async () => await Nr({
98
- title: B("Message.삭제된 항목을 완전히 삭제하시겠습니까?"),
99
- description: B("Message.취소하면 삭제 상태가 해제됩니다."),
100
- okText: B("Button.완전 삭제")
101
- }) ? "remove" : "undelete" : void 0, V = r({
102
- onSelect: ye,
95
+ ), l = r(null), _ = r(null), Ve = r(null), ne = r(null), ie = r(B), xe = r(oe), He = r(X), Ue = r(Ge), ze = r(
96
+ ve
97
+ ), We = r(ee), ce = r(f), je = r(br(Z)), Ke = Hr ? async () => await Ur({
98
+ title: h("Message.삭제된 항목을 완전히 삭제하시겠습니까?"),
99
+ description: h("Message.취소하면 삭제 상태가 해제됩니다."),
100
+ okText: h("Button.완전 삭제")
101
+ }) ? "remove" : "undelete" : void 0, H = r({
102
+ onSelect: _e,
103
103
  onRowClick: Le,
104
- onRowAdd: De,
105
- onRowDelete: we,
106
- onBeforeRowUndelete: $e,
107
- onRowUndelete: be,
108
- onRowChange: _e,
104
+ onRowAdd: we,
105
+ onRowDelete: De,
106
+ onBeforeRowUndelete: Ke,
107
+ onRowUndelete: ye,
108
+ onRowChange: be,
109
109
  onClickButton: Ie,
110
110
  onSave: Oe,
111
- onReady: Se,
112
- onAfterValueChanged: Ae
113
- }), L = r(void 0), U = r(!1), z = r(void 0), G = r(void 0), qe = r(!1), D = r(0), Ke = u && (H === !0 || H !== void 0 && f !== void 0 && wr(f)), W = r(
114
- Ke ? Date.now() : null
115
- ), A = r(void 0), v = r(null), k = r(void 0), P = r(void 0), Je = r(ke), ce = r(Pe), Ye = r(Fe), [w, xr] = O(!1), [Mr, j] = O(
116
- Ke
117
- ), [Hr, b] = O(!1), [Qe, Xe] = O(!1), [ae, Vr] = O(!1), [se, Ur] = O(!1), $ = it(), i = yr(
118
- () => rt(te),
111
+ onReady: ke,
112
+ onAfterValueChanged: Se
113
+ }), L = r(void 0), U = r(!1), z = r(void 0), G = r(void 0), $e = r(!1), w = r(0), qe = u && (x === !0 || x !== void 0 && f !== void 0 && kr(f)), W = r(
114
+ qe ? Date.now() : null
115
+ ), S = r(void 0), v = r(null), A = r(void 0), M = r(void 0), Je = r(Ae), le = r(Me), Ye = r(Ne), [D, zr] = O(!1), [Wr, j] = O(
116
+ qe
117
+ ), [jr, y] = O(!1), [Qe, Xe] = O(!1), [ae, Kr] = O(!1), [se, $r] = O(!1), K = dt(), t = yr(
118
+ () => ct(te),
119
119
  [te]
120
120
  ), Ze = r(
121
- Q(i.editable.backgroundColor) ?? Q(Er)
121
+ Q(t.editable.backgroundColor) ?? Q(vr)
122
122
  ), de = r(
123
- i.changed.backgroundColor ?? Cr
124
- ), er = r(i.changed.rowBackgroundColor), rr = r(i.state.focusedRowBackgroundColor), q = r(/* @__PURE__ */ new WeakMap()), tr = r(i.state.focusedCellBackgroundColor), or = r(i.state.selectedCellBackgroundColor), nr = r(i.state.hoverCellBackgroundColor), ir = r(i.state.hoverCellBorderColor), lr = r(i.state.editingCellBorderColor), cr = r(i.state.hintBackgroundColor), ar = r($.id), zr = u && f !== void 0 && w && G.current !== f, ue = u && Mr || u && (Hr || zr), fe = !ue && f !== void 0 && wr(f) && !Qe, F = ae && !se, sr = F && ue, dr = F && fe, ur = /* @__PURE__ */ l((t) => {
125
- Xe(pe(t));
126
- }, "syncHasDisplayDataRows"), Wr = /* @__PURE__ */ l((t, o, a, d, g) => {
127
- var m, n;
128
- ce.current && o.Fixed !== "Foot" && pt({
123
+ t.changed.backgroundColor ?? hr
124
+ ), er = r(t.changed.rowBackgroundColor), rr = r(t.added.rowBackgroundColor), tr = r(t.deleted.rowBackgroundColor), or = r(t.state.focusedRowBackgroundColor), $ = r(/* @__PURE__ */ new WeakMap()), nr = r(t.state.focusedCellBackgroundColor), ir = r(t.state.selectedCellBackgroundColor), cr = r(t.state.hoverCellBackgroundColor), lr = r(t.state.hoverCellBorderColor), ar = r(t.state.editingCellBorderColor), sr = r(t.state.hintBackgroundColor), dr = r(t.enumMenu.hoverBackgroundColor), ur = r(
125
+ t.enumMenu.selectedBackgroundColor
126
+ ), fr = r(K.id), qr = u && f !== void 0 && D && G.current !== f, ue = u && Wr || u && (jr || qr), fe = !ue && f !== void 0 && kr(f) && !Qe, N = ae && !se, mr = N && ue, Rr = N && fe, Cr = /* @__PURE__ */ c((o) => {
127
+ Xe(Te(o));
128
+ }, "syncHasDisplayDataRows"), Jr = /* @__PURE__ */ c((o, n, a, d, g) => {
129
+ var m, i;
130
+ le.current && n.Fixed !== "Foot" && Gt({
129
131
  gridId: e,
130
- grid: t,
131
- row: o,
132
+ grid: o,
133
+ row: n,
132
134
  col: a,
133
135
  backgroundColor: de.current,
134
- baselineMap: q.current,
136
+ baselineMap: $.current,
135
137
  highlightRefresh: g == null ? void 0 : g.highlightRefresh
136
138
  });
137
- const T = ((m = V.current) == null ? void 0 : m.onAfterValueChanged) ?? ((n = V.current) == null ? void 0 : n.onRowChange);
138
- T == null || T(t, o, a, d);
139
+ const C = ((m = H.current) == null ? void 0 : m.onAfterValueChanged) ?? ((i = H.current) == null ? void 0 : i.onRowChange);
140
+ C == null || C(o, n, a, d);
139
141
  }, "handleDatePickerEditorValueChange");
140
- ie.current = C, He.current = oe, Ve.current = X, Ue.current = ve, ze.current = he, We.current = ee, le.current = f, je.current = Lr(Z), Je.current = ke, ce.current = Pe, Ye.current = Fe, Ze.current = Q(i.editable.backgroundColor) ?? Q(Er), de.current = i.changed.backgroundColor ?? Cr, er.current = i.changed.rowBackgroundColor, rr.current = i.state.focusedRowBackgroundColor, tr.current = i.state.focusedCellBackgroundColor, or.current = i.state.selectedCellBackgroundColor, nr.current = i.state.hoverCellBackgroundColor, ir.current = i.state.hoverCellBorderColor, lr.current = i.state.editingCellBorderColor, cr.current = i.state.hintBackgroundColor;
142
+ ie.current = B, xe.current = oe, He.current = X, Ue.current = Ge, ze.current = ve, We.current = ee, ce.current = f, je.current = br(Z), Je.current = Ae, le.current = Me, Ye.current = Ne, Ze.current = Q(t.editable.backgroundColor) ?? Q(vr), de.current = t.changed.backgroundColor ?? hr, er.current = t.changed.rowBackgroundColor, rr.current = t.added.rowBackgroundColor, tr.current = t.deleted.rowBackgroundColor, or.current = t.state.focusedRowBackgroundColor, nr.current = t.state.focusedCellBackgroundColor, ir.current = t.state.selectedCellBackgroundColor, cr.current = t.state.hoverCellBackgroundColor, lr.current = t.state.hoverCellBorderColor, ar.current = t.state.editingCellBorderColor, sr.current = t.state.hintBackgroundColor, dr.current = t.enumMenu.hoverBackgroundColor, ur.current = t.enumMenu.selectedBackgroundColor, p(() => {
143
+ Or(
144
+ bt,
145
+ t.enumMenu.hoverBackgroundColor
146
+ ), Or(
147
+ It,
148
+ t.enumMenu.selectedBackgroundColor
149
+ );
150
+ }, [
151
+ t.enumMenu.hoverBackgroundColor,
152
+ t.enumMenu.selectedBackgroundColor
153
+ ]);
141
154
  const {
142
- datePickerEditorElement: jr,
143
- handleDatePickerEditorButtonClick: $r,
144
- handleDatePickerEditorCellClick: qr,
145
- handleDatePickerEditorKeyDown: Kr,
146
- handleDatePickerEditorStartEdit: Jr
147
- } = at({
148
- config: Pr,
149
- treeGridInstanceRef: c,
150
- isTreeGridReady: w,
151
- onValueChange: Wr
152
- }), { errorTooltipElement: Yr, showErrorTooltip: Qr, hideErrorTooltip: R } = st();
153
- V.current = {
154
- onSelect: ye,
155
+ datePickerEditorElement: Yr,
156
+ handleDatePickerEditorButtonClick: Qr,
157
+ handleDatePickerEditorCellClick: Xr,
158
+ handleDatePickerEditorKeyDown: Zr,
159
+ handleDatePickerEditorStartEdit: et
160
+ } = mt({
161
+ config: xr,
162
+ treeGridInstanceRef: l,
163
+ isTreeGridReady: D,
164
+ onValueChange: Jr
165
+ }), { errorTooltipElement: rt, showErrorTooltip: tt, hideErrorTooltip: R } = Rt();
166
+ H.current = {
167
+ onSelect: _e,
155
168
  onRowClick: Le,
156
- onRowAdd: De,
157
- onRowDelete: we,
158
- onBeforeRowUndelete: $e,
159
- onRowUndelete: be,
160
- onRowChange: _e,
169
+ onRowAdd: we,
170
+ onRowDelete: De,
171
+ onBeforeRowUndelete: Ke,
172
+ onRowUndelete: ye,
173
+ onRowChange: be,
161
174
  onClickButton: Ie,
162
175
  onSave: Oe,
163
- onReady: Se,
164
- onAfterValueChanged: Ae,
165
- onInternalButtonClick: $r,
166
- onInternalCellClick: qr,
167
- onInternalKeyDown: Kr,
168
- onInternalStartEdit: Jr
176
+ onReady: ke,
177
+ onAfterValueChanged: Se,
178
+ onInternalButtonClick: Qr,
179
+ onInternalCellClick: Xr,
180
+ onInternalKeyDown: Zr,
181
+ onInternalStartEdit: et
169
182
  };
170
- const fr = ft({
171
- containerRef: y,
172
- treeGridInstanceRef: c,
173
- enabled: F && u && w && Qe && !ue && !fe,
183
+ const Tr = gt({
184
+ containerRef: _,
185
+ treeGridInstanceRef: l,
186
+ enabled: N && u && D && Qe && !ue && !fe,
174
187
  resetKey: f
175
- }), Xr = F && fr !== null, me = ut({
176
- visible: sr || dr,
177
- containerRef: y,
178
- treeGridInstanceRef: c,
188
+ }), ot = N && Tr !== null, me = Tt({
189
+ visible: mr || Rr,
190
+ containerRef: _,
191
+ treeGridInstanceRef: l,
179
192
  debugId: e
180
- }), mr = dt({
181
- containerRef: y,
182
- treeGridInstanceRef: c,
183
- enabled: F && w
184
- }), Rr = mr.frames, N = /* @__PURE__ */ l(() => {
185
- k.current !== void 0 && (window.clearTimeout(k.current), k.current = void 0);
186
- }, "clearBindingLoadingHideTimeout"), K = /* @__PURE__ */ l(() => {
193
+ }), gr = Ct({
194
+ containerRef: _,
195
+ treeGridInstanceRef: l,
196
+ enabled: N && D
197
+ }), Er = gr.frames, F = /* @__PURE__ */ c(() => {
187
198
  A.current !== void 0 && (window.clearTimeout(A.current), A.current = void 0);
188
- }, "clearExternalLoadingHideTimeout"), J = /* @__PURE__ */ l(() => {
189
- P.current !== void 0 && (window.clearTimeout(P.current), P.current = void 0);
199
+ }, "clearBindingLoadingHideTimeout"), q = /* @__PURE__ */ c(() => {
200
+ S.current !== void 0 && (window.clearTimeout(S.current), S.current = void 0);
201
+ }, "clearExternalLoadingHideTimeout"), J = /* @__PURE__ */ c(() => {
202
+ M.current !== void 0 && (window.clearTimeout(M.current), M.current = void 0);
190
203
  }, "clearBodyReloadStartTimeout");
191
- h(() => {
192
- const t = /* @__PURE__ */ l((o) => {
204
+ p(() => {
205
+ const o = /* @__PURE__ */ c((n) => {
193
206
  var d;
194
- ((d = o.detail) == null ? void 0 : d.gridId) === e && Xe(pe(c.current));
207
+ ((d = n.detail) == null ? void 0 : d.gridId) === e && Xe(Te(l.current));
195
208
  }, "handleBodyRowsChanged");
196
- return window.addEventListener(Gr, t), () => {
197
- window.removeEventListener(Gr, t);
209
+ return window.addEventListener(_r, o), () => {
210
+ window.removeEventListener(_r, o);
198
211
  };
199
- }, [e]), h(() => {
200
- const t = y.current;
201
- if (t)
202
- return t.addEventListener("scroll", R, !0), () => {
203
- t.removeEventListener("scroll", R, !0);
212
+ }, [e]), p(() => {
213
+ const o = _.current;
214
+ if (o)
215
+ return o.addEventListener("scroll", R, !0), () => {
216
+ o.removeEventListener("scroll", R, !0);
204
217
  };
205
- }, [R]), h(() => {
206
- u || (K(), W.current = null, j(!1), J(), N(), v.current = null, b(!1));
207
- }, [u]), h(() => {
218
+ }, [R]), p(() => {
219
+ u || (q(), W.current = null, j(!1), J(), F(), v.current = null, y(!1));
220
+ }, [u]), p(() => {
208
221
  if (!u)
209
222
  return;
210
- if (H === !0) {
211
- K(), W.current = Date.now(), j(!0);
223
+ if (x === !0) {
224
+ q(), W.current = Date.now(), j(!0);
212
225
  return;
213
226
  }
214
227
  if (W.current === null) {
215
228
  j(!1);
216
229
  return;
217
230
  }
218
- K(), ae && (A.current = window.setTimeout(() => {
219
- A.current = void 0, W.current = null, j(!1);
220
- }, Dr));
221
- }, [ae, H, u]), h(() => {
231
+ q(), ae && (S.current = window.setTimeout(() => {
232
+ S.current = void 0, W.current = null, j(!1);
233
+ }, Ir));
234
+ }, [ae, x, u]), p(() => {
222
235
  if (!se || typeof window > "u")
223
236
  return;
224
- const t = y.current;
225
- if (!t)
237
+ const o = _.current;
238
+ if (!o)
226
239
  return;
227
- let o, a = Math.round(t.clientWidth), d = Math.round(t.clientHeight);
228
- const g = /* @__PURE__ */ l(() => {
229
- o === void 0 && (o = window.requestAnimationFrame(() => {
230
- o = void 0;
231
- const n = c.current;
232
- !n || n.Loading || n.Rendering || n.Update();
240
+ let n, a = Math.round(o.clientWidth), d = Math.round(o.clientHeight);
241
+ const g = /* @__PURE__ */ c(() => {
242
+ n === void 0 && (n = window.requestAnimationFrame(() => {
243
+ n = void 0;
244
+ const i = l.current;
245
+ !i || i.Loading || i.Rendering || i.Update();
233
246
  }));
234
- }, "retryTreeGridSizeErrorRender"), T = /* @__PURE__ */ l((n, E) => {
235
- const p = Math.round(n), _ = Math.round(E);
236
- p === a && _ === d || (a = p, d = _, !(p <= 0 || _ <= 0) && g());
247
+ }, "retryTreeGridSizeErrorRender"), C = /* @__PURE__ */ c((i, E) => {
248
+ const T = Math.round(i), b = Math.round(E);
249
+ T === a && b === d || (a = T, d = b, !(T <= 0 || b <= 0) && g());
237
250
  }, "handleContainerSizeChange");
238
251
  if (typeof ResizeObserver > "u") {
239
- const n = /* @__PURE__ */ l(() => {
240
- T(t.clientWidth, t.clientHeight);
252
+ const i = /* @__PURE__ */ c(() => {
253
+ C(o.clientWidth, o.clientHeight);
241
254
  }, "handleWindowResize");
242
- return window.addEventListener("resize", n), () => {
243
- o !== void 0 && window.cancelAnimationFrame(o), window.removeEventListener("resize", n);
255
+ return window.addEventListener("resize", i), () => {
256
+ n !== void 0 && window.cancelAnimationFrame(n), window.removeEventListener("resize", i);
244
257
  };
245
258
  }
246
- const m = new ResizeObserver((n) => {
247
- const E = n[n.length - 1];
248
- E && T(E.contentRect.width, E.contentRect.height);
259
+ const m = new ResizeObserver((i) => {
260
+ const E = i[i.length - 1];
261
+ E && C(E.contentRect.width, E.contentRect.height);
249
262
  });
250
- return m.observe(t), () => {
251
- o !== void 0 && window.cancelAnimationFrame(o), m.disconnect();
263
+ return m.observe(o), () => {
264
+ n !== void 0 && window.cancelAnimationFrame(n), m.disconnect();
252
265
  };
253
- }, [se]), h(() => {
266
+ }, [se]), p(() => {
254
267
  var a;
255
- if ($.id !== ar.current && c.current && ((a = c.current) == null || a.Dispose(), c.current = null, ar.current = $.id), c.current)
268
+ if (K.id !== fr.current && l.current && ((a = l.current) == null || a.Dispose(), l.current = null, fr.current = K.id), l.current)
256
269
  return;
257
- mt({
270
+ Et({
258
271
  id: e,
259
- latestEventHandlersRef: V,
272
+ latestEventHandlersRef: H,
260
273
  layoutHasExplicitEnterModeRef: je,
261
274
  highlightEditableCellsRef: Je,
262
- highlightChangedCellsRef: ce,
275
+ highlightChangedCellsRef: le,
263
276
  syncDeletedRowCanEditRef: Ye,
264
277
  editableCellBackgroundColorValueRef: Ze,
265
278
  changedCellBackgroundColorRef: de,
266
279
  changedRowBackgroundColorRef: er,
267
- focusedRowBackgroundColorRef: rr,
268
- focusedCellBackgroundColorRef: tr,
269
- selectedCellBackgroundColorRef: or,
270
- hoverCellBackgroundColorRef: nr,
271
- hoverCellBorderColorRef: ir,
272
- editingCellBorderColorRef: lr,
273
- hintBackgroundColorRef: cr,
274
- changedCellBaselineRef: q,
275
- treeGridInstanceRef: c,
276
- treeGridInitStartedAtRef: Me,
280
+ addedRowBackgroundColorRef: rr,
281
+ deletedRowBackgroundColorRef: tr,
282
+ focusedRowBackgroundColorRef: or,
283
+ focusedCellBackgroundColorRef: nr,
284
+ selectedCellBackgroundColorRef: ir,
285
+ hoverCellBackgroundColorRef: cr,
286
+ hoverCellBorderColorRef: lr,
287
+ editingCellBorderColorRef: ar,
288
+ hintBackgroundColorRef: sr,
289
+ enumMenuHoverBackgroundColorRef: dr,
290
+ enumMenuSelectedBackgroundColorRef: ur,
291
+ changedCellBaselineRef: $,
292
+ treeGridInstanceRef: l,
293
+ treeGridInitStartedAtRef: Ve,
277
294
  latestLayoutOverridesRef: ie,
278
- latestToolbarTotalCountFormulaRef: He,
279
- latestSuppressCfgRef: Ve,
295
+ latestToolbarTotalCountFormulaRef: xe,
296
+ latestSuppressCfgRef: He,
280
297
  latestHideChildHeaderSortButtonsRef: Ue,
281
298
  latestSelectionScopeRef: ze,
282
299
  latestDisabledAnimationsRef: We,
283
300
  appliedLayoutOverridesRef: z,
284
301
  appliedBodyDataPropRef: G,
285
- hasAppliedInitialLayoutRef: qe,
286
- syncHasDisplayDataRows: ur,
287
- setIsTreeGridReady: xr,
288
- setCanRenderTreeGridOverlays: Vr,
289
- setHasTreeGridSizeError: Ur,
290
- showErrorTooltip: Qr,
302
+ hasAppliedInitialLayoutRef: $e,
303
+ syncHasDisplayDataRows: Cr,
304
+ setIsTreeGridReady: zr,
305
+ setCanRenderTreeGridOverlays: Kr,
306
+ setHasTreeGridSizeError: $r,
307
+ showErrorTooltip: tt,
291
308
  hideErrorTooltip: R
292
309
  });
293
- const t = le.current;
294
- Me.current = Re(), vr(e, "init"), hr(e, "TreeGrid init start", {
295
- useDataUrl: !!Be,
296
- bodyRowCount: Te(t)
310
+ const o = ce.current;
311
+ Ve.current = Re(), Lr(e, "init"), wr(e, "TreeGrid init start", {
312
+ useDataUrl: !!he,
313
+ bodyRowCount: Ce(o)
297
314
  });
298
- const o = window.TreeGrid(
299
- Rt({
315
+ const n = window.TreeGrid(
316
+ pt({
300
317
  id: e,
301
- layoutUrl: Ar,
318
+ layoutUrl: Pr,
302
319
  layoutData: Z,
303
320
  toolbarTotalCountFormula: oe,
304
321
  suppressCfg: X,
305
322
  disabledAnimations: ee,
306
- dataUrl: kr,
307
- bodyData: t,
308
- useDataUrl: Be,
323
+ dataUrl: Vr,
324
+ bodyData: o,
325
+ useDataUrl: he,
309
326
  width: Ee,
310
327
  height: ge,
311
- languageId: $.id
328
+ languageId: K.id
312
329
  }),
313
330
  e,
314
331
  e
315
332
  );
316
- return Pt(o) && (c.current = o), () => {
317
- R(), qe.current = !0;
318
- const d = o || c.current;
319
- c.current === d && (c.current = null), d == null || d.Dispose();
333
+ return Ut(n) && (l.current = n), () => {
334
+ R(), $e.current = !0;
335
+ const d = n || l.current;
336
+ l.current === d && (l.current = null), d == null || d.Dispose();
320
337
  };
321
- }, []), ct(() => {
322
- const t = c.current, o = ie.current, a = le.current;
323
- if (!t || !w)
338
+ }, []), ft(() => {
339
+ const o = l.current, n = ie.current, a = ce.current;
340
+ if (!o || !D)
324
341
  return;
325
- const d = G.current !== a && (!U.current || L.current !== a), g = d && a === void 0 && Array.isArray(G.current) && G.current.length === 0 && !pe(t), T = z.current !== o && !wt(z.current, o), m = d && !g;
326
- if (g && (D.current += 1, J(), N(), L.current = void 0, U.current = !1, v.current = null, G.current = a, b(!1)), !(!T && !m)) {
327
- if (R(), T) {
328
- const n = Re();
329
- Et(t, o, m), z.current = o, Br(e, "apply layout", n, {
342
+ const d = G.current !== a && (!U.current || L.current !== a), g = d && a === void 0 && Array.isArray(G.current) && G.current.length === 0 && !Te(o), C = z.current !== n && !At(z.current, n), m = d && !g;
343
+ if (g && (w.current += 1, J(), F(), L.current = void 0, U.current = !1, v.current = null, G.current = a, y(!1)), !(!C && !m)) {
344
+ if (R(), C) {
345
+ const i = Re();
346
+ ht(o, n, m), z.current = n, Dr(e, "apply layout", i, {
330
347
  disableBodyReload: !!m
331
348
  });
332
349
  }
333
350
  if (m) {
334
- const n = D.current + 1, E = /* @__PURE__ */ l(() => {
335
- const p = L.current;
336
- P.current = void 0, ne.current = Re(), vr(e, "reload"), hr(e, "ReloadBody start", {
337
- bodyRowCount: Te(p)
338
- }), Tt(t, p, () => {
339
- if (D.current !== n)
351
+ const i = w.current + 1, E = /* @__PURE__ */ c(() => {
352
+ const T = L.current;
353
+ M.current = void 0, ne.current = Re(), Lr(e, "reload"), wr(e, "ReloadBody start", {
354
+ bodyRowCount: Ce(T)
355
+ }), Bt(o, T, () => {
356
+ if (w.current !== i)
340
357
  return;
341
- G.current = p, q.current = /* @__PURE__ */ new WeakMap(), gt(t, q.current), ur(t), Br(e, "ReloadBody end", ne.current, {
342
- bodyRowCount: Te(p)
343
- }), ne.current = null, L.current === p && (L.current = void 0, U.current = !1);
344
- const _ = v.current;
345
- if (!u || _ === null) {
346
- v.current = null, b(!1);
358
+ G.current = T, $.current = /* @__PURE__ */ new WeakMap(), vt(o, $.current), Cr(o), Dr(e, "ReloadBody end", ne.current, {
359
+ bodyRowCount: Ce(T)
360
+ }), ne.current = null, L.current === T && (L.current = void 0, U.current = !1);
361
+ const b = v.current;
362
+ if (!u || b === null) {
363
+ v.current = null, y(!1);
347
364
  return;
348
365
  }
349
- const gr = Math.max(
366
+ const Gr = Math.max(
350
367
  0,
351
- Dr - (Date.now() - _)
368
+ Ir - (Date.now() - b)
352
369
  );
353
- if (N(), gr === 0) {
354
- v.current = null, b(!1);
370
+ if (F(), Gr === 0) {
371
+ v.current = null, y(!1);
355
372
  return;
356
373
  }
357
- k.current = window.setTimeout(() => {
358
- D.current === n && (k.current = void 0, v.current = null, b(!1));
359
- }, gr);
374
+ A.current = window.setTimeout(() => {
375
+ w.current === i && (A.current = void 0, v.current = null, y(!1));
376
+ }, Gr);
360
377
  });
361
378
  }, "runBodyReload");
362
- D.current = n, L.current = a, U.current = !0, u && a !== void 0 ? (J(), N(), v.current = Date.now(), b(!0), P.current = window.setTimeout(() => {
363
- D.current === n && E();
379
+ w.current = i, L.current = a, U.current = !0, u && a !== void 0 ? (J(), F(), v.current = Date.now(), y(!0), M.current = window.setTimeout(() => {
380
+ w.current === i && E();
364
381
  }, 0)) : E();
365
382
  }
366
383
  }
367
- }, [w, C, f, u, e, R]), h(() => () => {
368
- R(), K(), J(), N();
384
+ }, [D, B, f, u, e, R]), p(() => () => {
385
+ R(), q(), J(), F();
369
386
  }, [R]);
370
- const Y = yt({
387
+ const Y = Ot({
371
388
  width: Ee,
372
389
  height: ge,
373
- treeGridTheme: i,
390
+ treeGridTheme: t,
374
391
  gridThemeConfig: te,
375
392
  containerStyle: s,
376
- tableBorderRadius: Ce ? Sr : void 0
393
+ tableBorderRadius: pe ? Fr : void 0
377
394
  });
378
- return S !== void 0 && (Y["--owp-tree-grid-toolbar-row-background-color"] = String(S)), (u || fe || Rr.length > 0) && (Y.position = s != null && s.position && s.position !== "static" ? s.position : "relative", Y.isolation = "isolate"), /* @__PURE__ */ et(
395
+ return k !== void 0 && (Y["--owp-tree-grid-toolbar-row-background-color"] = String(k)), (u || fe || Er.length > 0) && (Y.position = s != null && s.position && s.position !== "static" ? s.position : "relative", Y.isolation = "isolate"), /* @__PURE__ */ it(
379
396
  "div",
380
397
  {
381
- ref: y,
398
+ ref: _,
382
399
  className: [
383
- Lt,
384
- Ce && Dt,
385
- x
400
+ kt,
401
+ pe && St,
402
+ P
386
403
  ].filter(Boolean).join(" "),
387
404
  style: Y,
388
405
  children: [
389
- /* @__PURE__ */ I(Gt, {}),
390
- /* @__PURE__ */ I("div", { id: e, className: M, style: bt(Or, ["height", "width"]) }),
406
+ /* @__PURE__ */ I(Lt, {}),
407
+ /* @__PURE__ */ I("div", { id: e, className: V, style: Mt(Nr, ["height", "width"]) }),
391
408
  /* @__PURE__ */ I(
392
- Ct,
409
+ _t,
393
410
  {
394
- frames: Rr,
395
- clipFrame: mr.clipFrame
411
+ frames: Er,
412
+ clipFrame: gr.clipFrame
396
413
  }
397
414
  ),
398
415
  /* @__PURE__ */ I(
399
- ht,
416
+ Dt,
400
417
  {
401
- visible: dr,
402
- message: B("Message.조회된 결과가 없습니다."),
418
+ visible: Rr,
419
+ message: h("Message.조회된 결과가 없습니다."),
403
420
  overlayFrame: me
404
421
  }
405
422
  ),
406
423
  /* @__PURE__ */ I(
407
- Bt,
424
+ yt,
408
425
  {
409
- visible: Xr,
410
- overlayFrame: fr ?? me,
411
- panelLeftInset: xt(c.current)
426
+ visible: ot,
427
+ overlayFrame: Tr ?? me,
428
+ panelLeftInset: jt(l.current)
412
429
  }
413
430
  ),
414
431
  /* @__PURE__ */ I(
415
- vt,
432
+ wt,
416
433
  {
417
- visible: sr,
434
+ visible: mr,
418
435
  overlayFrame: me
419
436
  }
420
437
  ),
421
- jr,
422
- Yr
438
+ Yr,
439
+ rt
423
440
  ]
424
441
  }
425
442
  );
426
443
  }, "OwpTreeGrid");
427
444
  export {
428
- go as OwpTreeGrid
445
+ _o as OwpTreeGrid
429
446
  };
430
447
  //# sourceMappingURL=OwpTreeGrid.js.map