@owp/core 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (656) hide show
  1. package/assets/fonts/material-design-icons/MaterialIconsOutlined-Regular.woff2 +0 -0
  2. package/assets/fonts/material-design-icons/MaterialIconsOutlined.css +36 -0
  3. package/assets/fonts/pretendard/pretendard-subset.css +98 -0
  4. package/assets/fonts/pretendard/woff-subset/Pretendard-Black.subset.woff +0 -0
  5. package/assets/fonts/pretendard/woff-subset/Pretendard-Bold.subset.woff +0 -0
  6. package/assets/fonts/pretendard/woff-subset/Pretendard-ExtraBold.subset.woff +0 -0
  7. package/assets/fonts/pretendard/woff-subset/Pretendard-ExtraLight.subset.woff +0 -0
  8. package/assets/fonts/pretendard/woff-subset/Pretendard-Light.subset.woff +0 -0
  9. package/assets/fonts/pretendard/woff-subset/Pretendard-Medium.subset.woff +0 -0
  10. package/assets/fonts/pretendard/woff-subset/Pretendard-Regular.subset.woff +0 -0
  11. package/assets/fonts/pretendard/woff-subset/Pretendard-SemiBold.subset.woff +0 -0
  12. package/assets/fonts/pretendard/woff-subset/Pretendard-Thin.subset.woff +0 -0
  13. package/assets/fonts/pretendard/woff2-subset/Pretendard-Black.subset.woff2 +0 -0
  14. package/assets/fonts/pretendard/woff2-subset/Pretendard-Bold.subset.woff2 +0 -0
  15. package/assets/fonts/pretendard/woff2-subset/Pretendard-ExtraBold.subset.woff2 +0 -0
  16. package/assets/fonts/pretendard/woff2-subset/Pretendard-ExtraLight.subset.woff2 +0 -0
  17. package/assets/fonts/pretendard/woff2-subset/Pretendard-Light.subset.woff2 +0 -0
  18. package/assets/fonts/pretendard/woff2-subset/Pretendard-Medium.subset.woff2 +0 -0
  19. package/assets/fonts/pretendard/woff2-subset/Pretendard-Regular.subset.woff2 +0 -0
  20. package/assets/fonts/pretendard/woff2-subset/Pretendard-SemiBold.subset.woff2 +0 -0
  21. package/assets/fonts/pretendard/woff2-subset/Pretendard-Thin.subset.woff2 +0 -0
  22. package/assets/icons/feather.svg +1314 -0
  23. package/assets/icons/heroicons-outline.svg +1 -0
  24. package/assets/icons/heroicons-solid.svg +1 -0
  25. package/assets/icons/material-outline.svg +3586 -0
  26. package/assets/icons/material-solid.svg +3586 -0
  27. package/assets/icons/material-twotone.svg +3586 -0
  28. package/assets/icons/owp_sb.svg +35 -0
  29. package/dist/_virtual/_virtual_owp-exceljs-browser-source.js +5 -0
  30. package/dist/_virtual/_virtual_owp-exceljs-browser-source.js.map +1 -0
  31. package/dist/_virtual/index10.js +2 -2
  32. package/dist/_virtual/index12.js +2 -2
  33. package/dist/_virtual/index13.js +2 -2
  34. package/dist/_virtual/index14.js +2 -2
  35. package/dist/_virtual/index15.js +2 -2
  36. package/dist/_virtual/index17.js +5 -2
  37. package/dist/_virtual/index17.js.map +1 -1
  38. package/dist/_virtual/index18.js +4 -4
  39. package/dist/_virtual/index19.js +4 -4
  40. package/dist/_virtual/index20.js +2 -5
  41. package/dist/_virtual/index20.js.map +1 -1
  42. package/dist/_virtual/index5.js +2 -2
  43. package/dist/components/OwpCommonCode/OwpCommonCodeRadioGroup.js +38 -38
  44. package/dist/components/OwpCommonCode/OwpCommonCodeRadioGroup.js.map +1 -1
  45. package/dist/components/OwpFieldHelperText/OwpFieldHelperText.js +34 -0
  46. package/dist/components/OwpFieldHelperText/OwpFieldHelperText.js.map +1 -0
  47. package/dist/components/OwpMrtTable/OwpMrtTable.js +98 -104
  48. package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
  49. package/dist/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.js +10 -9
  50. package/dist/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.js.map +1 -1
  51. package/dist/components/OwpRequiredHelperText/OwpRequiredHelperText.js +38 -0
  52. package/dist/components/OwpRequiredHelperText/OwpRequiredHelperText.js.map +1 -0
  53. package/dist/components/OwpTable/OwpDataTable.js +171 -177
  54. package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
  55. package/dist/components/OwpTable/OwpFieldTable.js +99 -0
  56. package/dist/components/OwpTable/OwpFieldTable.js.map +1 -0
  57. package/dist/components/OwpTable/OwpTable.js +62 -68
  58. package/dist/components/OwpTable/OwpTable.js.map +1 -1
  59. package/dist/components/OwpTextField/OwpTextMaskField.js +138 -87
  60. package/dist/components/OwpTextField/OwpTextMaskField.js.map +1 -1
  61. package/dist/components/OwpTreeGrid/internal/OwpTreeGridNoDataOverlay.js +6 -5
  62. package/dist/components/OwpTreeGrid/internal/OwpTreeGridNoDataOverlay.js.map +1 -1
  63. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +66 -69
  64. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  65. package/dist/constants/treeGrid.js +36 -5
  66. package/dist/constants/treeGrid.js.map +1 -1
  67. package/dist/constants.js +25 -19
  68. package/dist/contexts/OwpAppProvider.js.map +1 -1
  69. package/dist/hooks/useCurrentUserSeq.js +20 -6
  70. package/dist/hooks/useCurrentUserSeq.js.map +1 -1
  71. package/dist/hooks/useLogoSrc.js +9 -9
  72. package/dist/hooks/useLogoSrc.js.map +1 -1
  73. package/dist/hooks/useNavigationActiveRouteRemount.js +38 -0
  74. package/dist/hooks/useNavigationActiveRouteRemount.js.map +1 -0
  75. package/dist/hooks.js +50 -49
  76. package/dist/index.js +74 -70
  77. package/dist/index.js.map +1 -1
  78. package/dist/layout/Layout.js +37 -36
  79. package/dist/layout/Layout.js.map +1 -1
  80. package/dist/layout/components/navigation/vertical/types/NavVerticalCollapse.js +61 -51
  81. package/dist/layout/components/navigation/vertical/types/NavVerticalCollapse.js.map +1 -1
  82. package/dist/layout/components/navigation/vertical/types/NavVerticalGroup.js +35 -27
  83. package/dist/layout/components/navigation/vertical/types/NavVerticalGroup.js.map +1 -1
  84. package/dist/layout/components/navigation/vertical/types/NavVerticalItem.js +34 -27
  85. package/dist/layout/components/navigation/vertical/types/NavVerticalItem.js.map +1 -1
  86. package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
  87. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
  88. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
  89. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
  90. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
  91. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
  92. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
  93. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  94. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
  95. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
  96. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
  97. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
  98. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
  99. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  100. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
  101. package/dist/owp-app.css +1 -1
  102. package/dist/types/components/OwpFieldHelperText/OwpFieldHelperText.d.ts +14 -0
  103. package/dist/types/components/OwpFieldHelperText/index.d.ts +2 -0
  104. package/dist/types/components/OwpRequiredHelperText/OwpRequiredHelperText.d.ts +18 -0
  105. package/dist/types/components/OwpRequiredHelperText/index.d.ts +2 -0
  106. package/dist/types/components/OwpTable/{OwpVerticalTable.d.ts → OwpFieldTable.d.ts} +9 -8
  107. package/dist/types/components/OwpTable/index.d.ts +1 -1
  108. package/dist/types/components/OwpTextField/OwpTextMaskField.d.ts +5 -3
  109. package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +1 -1
  110. package/dist/types/constants/treeGrid.d.ts +12 -0
  111. package/dist/types/contexts/OwpAppProvider.d.ts +1 -0
  112. package/dist/types/hooks/useCurrentUserSeq.d.ts +11 -2
  113. package/dist/types/hooks/useNavigationActiveRouteRemount.d.ts +14 -0
  114. package/dist/types/index.d.ts +3 -1
  115. package/dist/types/utils/exceljsBrowser.d.ts +1 -3
  116. package/dist/utils/exceljsBrowser.js +64 -7
  117. package/dist/utils/exceljsBrowser.js.map +1 -1
  118. package/fixed-images/flags/EN.svg +11 -0
  119. package/fixed-images/flags/KR.svg +27 -0
  120. package/fixed-images/logo/owp/owp_sb.svg +35 -0
  121. package/package.json +6 -2
  122. package/treegrid/Compatible/Borders/Backgrounds.gif +0 -0
  123. package/treegrid/Compatible/Borders/BackgroundsRight.gif +0 -0
  124. package/treegrid/Compatible/Borders/Bool.gif +0 -0
  125. package/treegrid/Compatible/Borders/BoolSpace.gif +0 -0
  126. package/treegrid/Compatible/Borders/Button.gif +0 -0
  127. package/treegrid/Compatible/Borders/Dependencies.gif +0 -0
  128. package/treegrid/Compatible/Borders/FastPanel1.gif +0 -0
  129. package/treegrid/Compatible/Borders/FastPanel2.gif +0 -0
  130. package/treegrid/Compatible/Borders/Filter.gif +0 -0
  131. package/treegrid/Compatible/Borders/Gantt.css +1228 -0
  132. package/treegrid/Compatible/Borders/Gantt.gif +0 -0
  133. package/treegrid/Compatible/Borders/GanttLineA.gif +0 -0
  134. package/treegrid/Compatible/Borders/GanttLineB.gif +0 -0
  135. package/treegrid/Compatible/Borders/GanttLineC.gif +0 -0
  136. package/treegrid/Compatible/Borders/GanttLineD.gif +0 -0
  137. package/treegrid/Compatible/Borders/Grid.css +2762 -0
  138. package/treegrid/Compatible/Borders/HScroll.png +0 -0
  139. package/treegrid/Compatible/Borders/Menu.gif +0 -0
  140. package/treegrid/Compatible/Borders/Pager.gif +0 -0
  141. package/treegrid/Compatible/Borders/Pager.png +0 -0
  142. package/treegrid/Compatible/Borders/Panel.gif +0 -0
  143. package/treegrid/Compatible/Borders/Sort.gif +0 -0
  144. package/treegrid/Compatible/Borders/Toolbar.gif +0 -0
  145. package/treegrid/Compatible/Borders/Toolbar.png +0 -0
  146. package/treegrid/Compatible/Borders/ToolbarGantt.gif +0 -0
  147. package/treegrid/Compatible/Borders/ToolbarGantt.png +0 -0
  148. package/treegrid/Compatible/Borders/ToolbarSheet.gif +0 -0
  149. package/treegrid/Compatible/Borders/ToolbarSheet.png +0 -0
  150. package/treegrid/Compatible/Borders/ToolbarSheetWide.gif +0 -0
  151. package/treegrid/Compatible/Borders/ToolbarSheetWide.png +0 -0
  152. package/treegrid/Compatible/Borders/Tree.gif +0 -0
  153. package/treegrid/Compatible/Borders/TreeBottom.gif +0 -0
  154. package/treegrid/Compatible/Borders/TreeMiddle.gif +0 -0
  155. package/treegrid/Compatible/Borders/TreeNCollapse.gif +0 -0
  156. package/treegrid/Compatible/Borders/TreeNDrag0.gif +0 -0
  157. package/treegrid/Compatible/Borders/TreeNDrag1.gif +0 -0
  158. package/treegrid/Compatible/Borders/TreeNDrag2.gif +0 -0
  159. package/treegrid/Compatible/Borders/TreeNDrag3.gif +0 -0
  160. package/treegrid/Compatible/Borders/TreeNExpand.gif +0 -0
  161. package/treegrid/Compatible/Borders/TreeNWait.gif +0 -0
  162. package/treegrid/Compatible/Borders/TreeRev.gif +0 -0
  163. package/treegrid/Compatible/Borders/TreeRevBottom.gif +0 -0
  164. package/treegrid/Compatible/Borders/TreeRevMiddle.gif +0 -0
  165. package/treegrid/Compatible/Borders/VScroll.gif +0 -0
  166. package/treegrid/Compatible/Colors/BackgroundsBlue.gif +0 -0
  167. package/treegrid/Compatible/Colors/BackgroundsBottom.gif +0 -0
  168. package/treegrid/Compatible/Colors/BackgroundsGantt.gif +0 -0
  169. package/treegrid/Compatible/Colors/BackgroundsHeader.gif +0 -0
  170. package/treegrid/Compatible/Colors/BackgroundsMain.gif +0 -0
  171. package/treegrid/Compatible/Colors/BackgroundsMiddle.gif +0 -0
  172. package/treegrid/Compatible/Colors/BackgroundsTop.gif +0 -0
  173. package/treegrid/Compatible/Colors/BackgroundsYellow.gif +0 -0
  174. package/treegrid/Compatible/Colors/Bool.gif +0 -0
  175. package/treegrid/Compatible/Colors/Button.gif +0 -0
  176. package/treegrid/Compatible/Colors/Dependencies.gif +0 -0
  177. package/treegrid/Compatible/Colors/FastPanel1.gif +0 -0
  178. package/treegrid/Compatible/Colors/FastPanel2.gif +0 -0
  179. package/treegrid/Compatible/Colors/Filter.gif +0 -0
  180. package/treegrid/Compatible/Colors/Gantt.css +1228 -0
  181. package/treegrid/Compatible/Colors/Gantt.gif +0 -0
  182. package/treegrid/Compatible/Colors/GanttLineA.gif +0 -0
  183. package/treegrid/Compatible/Colors/GanttLineB.gif +0 -0
  184. package/treegrid/Compatible/Colors/GanttLineC.gif +0 -0
  185. package/treegrid/Compatible/Colors/GanttLineD.gif +0 -0
  186. package/treegrid/Compatible/Colors/Grid.css +2768 -0
  187. package/treegrid/Compatible/Colors/HScroll.png +0 -0
  188. package/treegrid/Compatible/Colors/Menu.gif +0 -0
  189. package/treegrid/Compatible/Colors/Pager.gif +0 -0
  190. package/treegrid/Compatible/Colors/Panel.gif +0 -0
  191. package/treegrid/Compatible/Colors/Sort.gif +0 -0
  192. package/treegrid/Compatible/Colors/Toolbar.gif +0 -0
  193. package/treegrid/Compatible/Colors/ToolbarGantt.gif +0 -0
  194. package/treegrid/Compatible/Colors/ToolbarSheet.gif +0 -0
  195. package/treegrid/Compatible/Colors/ToolbarSheetWide.gif +0 -0
  196. package/treegrid/Compatible/Colors/Tree.gif +0 -0
  197. package/treegrid/Compatible/Colors/TreeBottom.gif +0 -0
  198. package/treegrid/Compatible/Colors/TreeMiddle.gif +0 -0
  199. package/treegrid/Compatible/Colors/TreeNCollapse.gif +0 -0
  200. package/treegrid/Compatible/Colors/TreeNDrag0.gif +0 -0
  201. package/treegrid/Compatible/Colors/TreeNDrag1.gif +0 -0
  202. package/treegrid/Compatible/Colors/TreeNDrag2.gif +0 -0
  203. package/treegrid/Compatible/Colors/TreeNDrag3.gif +0 -0
  204. package/treegrid/Compatible/Colors/TreeNExpand.gif +0 -0
  205. package/treegrid/Compatible/Colors/TreeNWait.gif +0 -0
  206. package/treegrid/Compatible/Colors/TreeRev.gif +0 -0
  207. package/treegrid/Compatible/Colors/TreeRevBottom.gif +0 -0
  208. package/treegrid/Compatible/Colors/TreeRevMiddle.gif +0 -0
  209. package/treegrid/Compatible/Colors/VScroll.gif +0 -0
  210. package/treegrid/Compatible/ExtJS/Backgrounds.gif +0 -0
  211. package/treegrid/Compatible/ExtJS/BackgroundsFill.gif +0 -0
  212. package/treegrid/Compatible/ExtJS/Bool.gif +0 -0
  213. package/treegrid/Compatible/ExtJS/Button.gif +0 -0
  214. package/treegrid/Compatible/ExtJS/Dependencies.gif +0 -0
  215. package/treegrid/Compatible/ExtJS/FastPanel1.gif +0 -0
  216. package/treegrid/Compatible/ExtJS/FastPanel2.gif +0 -0
  217. package/treegrid/Compatible/ExtJS/Filter.gif +0 -0
  218. package/treegrid/Compatible/ExtJS/Gantt.css +1233 -0
  219. package/treegrid/Compatible/ExtJS/Gantt.gif +0 -0
  220. package/treegrid/Compatible/ExtJS/GanttLineA.gif +0 -0
  221. package/treegrid/Compatible/ExtJS/GanttLineB.gif +0 -0
  222. package/treegrid/Compatible/ExtJS/GanttLineC.gif +0 -0
  223. package/treegrid/Compatible/ExtJS/GanttLineD.gif +0 -0
  224. package/treegrid/Compatible/ExtJS/Grid.css +2764 -0
  225. package/treegrid/Compatible/ExtJS/HScroll.png +0 -0
  226. package/treegrid/Compatible/ExtJS/Menu.gif +0 -0
  227. package/treegrid/Compatible/ExtJS/Pager.gif +0 -0
  228. package/treegrid/Compatible/ExtJS/Panel.gif +0 -0
  229. package/treegrid/Compatible/ExtJS/Sort.gif +0 -0
  230. package/treegrid/Compatible/ExtJS/Toolbar.gif +0 -0
  231. package/treegrid/Compatible/ExtJS/ToolbarGantt.gif +0 -0
  232. package/treegrid/Compatible/ExtJS/ToolbarSheet.gif +0 -0
  233. package/treegrid/Compatible/ExtJS/ToolbarSheetWide.gif +0 -0
  234. package/treegrid/Compatible/ExtJS/Tree.gif +0 -0
  235. package/treegrid/Compatible/ExtJS/TreeBottom.gif +0 -0
  236. package/treegrid/Compatible/ExtJS/TreeMiddle.gif +0 -0
  237. package/treegrid/Compatible/ExtJS/TreeNCollapse.gif +0 -0
  238. package/treegrid/Compatible/ExtJS/TreeNDrag0.gif +0 -0
  239. package/treegrid/Compatible/ExtJS/TreeNDrag1.gif +0 -0
  240. package/treegrid/Compatible/ExtJS/TreeNDrag2.gif +0 -0
  241. package/treegrid/Compatible/ExtJS/TreeNDrag3.gif +0 -0
  242. package/treegrid/Compatible/ExtJS/TreeNExpand.gif +0 -0
  243. package/treegrid/Compatible/ExtJS/TreeNWait.gif +0 -0
  244. package/treegrid/Compatible/ExtJS/TreeRev.gif +0 -0
  245. package/treegrid/Compatible/ExtJS/TreeRevBottom.gif +0 -0
  246. package/treegrid/Compatible/ExtJS/TreeRevMiddle.gif +0 -0
  247. package/treegrid/Compatible/ExtJS/VScroll.gif +0 -0
  248. package/treegrid/Compatible/Gradient/Backgrounds.gif +0 -0
  249. package/treegrid/Compatible/Gradient/BackgroundsGantt.gif +0 -0
  250. package/treegrid/Compatible/Gradient/BackgroundsRight.gif +0 -0
  251. package/treegrid/Compatible/Gradient/Bool.gif +0 -0
  252. package/treegrid/Compatible/Gradient/BoolSpace.gif +0 -0
  253. package/treegrid/Compatible/Gradient/Button.gif +0 -0
  254. package/treegrid/Compatible/Gradient/Dependencies.gif +0 -0
  255. package/treegrid/Compatible/Gradient/FastPanel1.gif +0 -0
  256. package/treegrid/Compatible/Gradient/FastPanel2.gif +0 -0
  257. package/treegrid/Compatible/Gradient/Filter.gif +0 -0
  258. package/treegrid/Compatible/Gradient/Gantt.css +1234 -0
  259. package/treegrid/Compatible/Gradient/Gantt.gif +0 -0
  260. package/treegrid/Compatible/Gradient/GanttLineA.gif +0 -0
  261. package/treegrid/Compatible/Gradient/GanttLineB.gif +0 -0
  262. package/treegrid/Compatible/Gradient/GanttLineC.gif +0 -0
  263. package/treegrid/Compatible/Gradient/GanttLineD.gif +0 -0
  264. package/treegrid/Compatible/Gradient/Grid.css +2835 -0
  265. package/treegrid/Compatible/Gradient/HScroll.png +0 -0
  266. package/treegrid/Compatible/Gradient/Menu.gif +0 -0
  267. package/treegrid/Compatible/Gradient/Pager.gif +0 -0
  268. package/treegrid/Compatible/Gradient/Pager.png +0 -0
  269. package/treegrid/Compatible/Gradient/Panel.gif +0 -0
  270. package/treegrid/Compatible/Gradient/Sort.gif +0 -0
  271. package/treegrid/Compatible/Gradient/Toolbar.gif +0 -0
  272. package/treegrid/Compatible/Gradient/Toolbar.png +0 -0
  273. package/treegrid/Compatible/Gradient/ToolbarGantt.gif +0 -0
  274. package/treegrid/Compatible/Gradient/ToolbarGantt.png +0 -0
  275. package/treegrid/Compatible/Gradient/ToolbarSheet.gif +0 -0
  276. package/treegrid/Compatible/Gradient/ToolbarSheet.png +0 -0
  277. package/treegrid/Compatible/Gradient/ToolbarSheetWide.gif +0 -0
  278. package/treegrid/Compatible/Gradient/ToolbarSheetWide.png +0 -0
  279. package/treegrid/Compatible/Gradient/Tree.gif +0 -0
  280. package/treegrid/Compatible/Gradient/TreeBottom.gif +0 -0
  281. package/treegrid/Compatible/Gradient/TreeMiddle.gif +0 -0
  282. package/treegrid/Compatible/Gradient/TreeNCollapse.gif +0 -0
  283. package/treegrid/Compatible/Gradient/TreeNDrag0.gif +0 -0
  284. package/treegrid/Compatible/Gradient/TreeNDrag1.gif +0 -0
  285. package/treegrid/Compatible/Gradient/TreeNDrag2.gif +0 -0
  286. package/treegrid/Compatible/Gradient/TreeNDrag3.gif +0 -0
  287. package/treegrid/Compatible/Gradient/TreeNExpand.gif +0 -0
  288. package/treegrid/Compatible/Gradient/TreeNWait.gif +0 -0
  289. package/treegrid/Compatible/Gradient/TreeRev.gif +0 -0
  290. package/treegrid/Compatible/Gradient/TreeRevBottom.gif +0 -0
  291. package/treegrid/Compatible/Gradient/TreeRevMiddle.gif +0 -0
  292. package/treegrid/Compatible/Gradient/VScroll.gif +0 -0
  293. package/treegrid/Compatible/Info.txt +3 -0
  294. package/treegrid/Compatible/Light/Backgrounds.gif +0 -0
  295. package/treegrid/Compatible/Light/Bool.gif +0 -0
  296. package/treegrid/Compatible/Light/Button.gif +0 -0
  297. package/treegrid/Compatible/Light/Dependencies.gif +0 -0
  298. package/treegrid/Compatible/Light/FastPanel1.gif +0 -0
  299. package/treegrid/Compatible/Light/FastPanel2.gif +0 -0
  300. package/treegrid/Compatible/Light/Filter.gif +0 -0
  301. package/treegrid/Compatible/Light/Gantt.css +1230 -0
  302. package/treegrid/Compatible/Light/Gantt.gif +0 -0
  303. package/treegrid/Compatible/Light/GanttLineA.gif +0 -0
  304. package/treegrid/Compatible/Light/GanttLineB.gif +0 -0
  305. package/treegrid/Compatible/Light/GanttLineC.gif +0 -0
  306. package/treegrid/Compatible/Light/GanttLineD.gif +0 -0
  307. package/treegrid/Compatible/Light/Grid.css +2769 -0
  308. package/treegrid/Compatible/Light/HScroll.png +0 -0
  309. package/treegrid/Compatible/Light/Menu.gif +0 -0
  310. package/treegrid/Compatible/Light/Pager.gif +0 -0
  311. package/treegrid/Compatible/Light/Panel.gif +0 -0
  312. package/treegrid/Compatible/Light/Sort.gif +0 -0
  313. package/treegrid/Compatible/Light/Toolbar.gif +0 -0
  314. package/treegrid/Compatible/Light/ToolbarGantt.gif +0 -0
  315. package/treegrid/Compatible/Light/ToolbarSheet.gif +0 -0
  316. package/treegrid/Compatible/Light/ToolbarSheetWide.gif +0 -0
  317. package/treegrid/Compatible/Light/Tree.gif +0 -0
  318. package/treegrid/Compatible/Light/TreeBottom.gif +0 -0
  319. package/treegrid/Compatible/Light/TreeMiddle.gif +0 -0
  320. package/treegrid/Compatible/Light/TreeNCollapse.gif +0 -0
  321. package/treegrid/Compatible/Light/TreeNDrag0.gif +0 -0
  322. package/treegrid/Compatible/Light/TreeNDrag1.gif +0 -0
  323. package/treegrid/Compatible/Light/TreeNDrag2.gif +0 -0
  324. package/treegrid/Compatible/Light/TreeNDrag3.gif +0 -0
  325. package/treegrid/Compatible/Light/TreeNExpand.gif +0 -0
  326. package/treegrid/Compatible/Light/TreeNWait.gif +0 -0
  327. package/treegrid/Compatible/Light/TreeRev.gif +0 -0
  328. package/treegrid/Compatible/Light/TreeRevBottom.gif +0 -0
  329. package/treegrid/Compatible/Light/TreeRevMiddle.gif +0 -0
  330. package/treegrid/Compatible/Light/VScroll.gif +0 -0
  331. package/treegrid/Compatible/Office/Backgrounds.gif +0 -0
  332. package/treegrid/Compatible/Office/Bool.gif +0 -0
  333. package/treegrid/Compatible/Office/Button.gif +0 -0
  334. package/treegrid/Compatible/Office/Dependencies.gif +0 -0
  335. package/treegrid/Compatible/Office/FastPanel1.gif +0 -0
  336. package/treegrid/Compatible/Office/FastPanel2.gif +0 -0
  337. package/treegrid/Compatible/Office/Filter.gif +0 -0
  338. package/treegrid/Compatible/Office/Gantt.css +1228 -0
  339. package/treegrid/Compatible/Office/Gantt.gif +0 -0
  340. package/treegrid/Compatible/Office/GanttLineA.gif +0 -0
  341. package/treegrid/Compatible/Office/GanttLineB.gif +0 -0
  342. package/treegrid/Compatible/Office/GanttLineC.gif +0 -0
  343. package/treegrid/Compatible/Office/GanttLineD.gif +0 -0
  344. package/treegrid/Compatible/Office/Grid.css +2770 -0
  345. package/treegrid/Compatible/Office/HScroll.png +0 -0
  346. package/treegrid/Compatible/Office/Menu.gif +0 -0
  347. package/treegrid/Compatible/Office/Pager.gif +0 -0
  348. package/treegrid/Compatible/Office/Panel.gif +0 -0
  349. package/treegrid/Compatible/Office/Sort.gif +0 -0
  350. package/treegrid/Compatible/Office/Toolbar.gif +0 -0
  351. package/treegrid/Compatible/Office/ToolbarGantt.gif +0 -0
  352. package/treegrid/Compatible/Office/ToolbarSheet.gif +0 -0
  353. package/treegrid/Compatible/Office/ToolbarSheetWide.gif +0 -0
  354. package/treegrid/Compatible/Office/Tree.gif +0 -0
  355. package/treegrid/Compatible/Office/TreeBottom.gif +0 -0
  356. package/treegrid/Compatible/Office/TreeMiddle.gif +0 -0
  357. package/treegrid/Compatible/Office/TreeNCollapse.gif +0 -0
  358. package/treegrid/Compatible/Office/TreeNDrag0.gif +0 -0
  359. package/treegrid/Compatible/Office/TreeNDrag1.gif +0 -0
  360. package/treegrid/Compatible/Office/TreeNDrag2.gif +0 -0
  361. package/treegrid/Compatible/Office/TreeNDrag3.gif +0 -0
  362. package/treegrid/Compatible/Office/TreeNExpand.gif +0 -0
  363. package/treegrid/Compatible/Office/TreeNWait.gif +0 -0
  364. package/treegrid/Compatible/Office/TreeRev.gif +0 -0
  365. package/treegrid/Compatible/Office/TreeRevBottom.gif +0 -0
  366. package/treegrid/Compatible/Office/TreeRevMiddle.gif +0 -0
  367. package/treegrid/Compatible/Office/VScroll.gif +0 -0
  368. package/treegrid/Compatible/Plain/Backgrounds.gif +0 -0
  369. package/treegrid/Compatible/Plain/Bool.gif +0 -0
  370. package/treegrid/Compatible/Plain/Button.gif +0 -0
  371. package/treegrid/Compatible/Plain/Dependencies.gif +0 -0
  372. package/treegrid/Compatible/Plain/FastPanel1.gif +0 -0
  373. package/treegrid/Compatible/Plain/FastPanel2.gif +0 -0
  374. package/treegrid/Compatible/Plain/Filter.gif +0 -0
  375. package/treegrid/Compatible/Plain/Gantt.css +1233 -0
  376. package/treegrid/Compatible/Plain/Gantt.gif +0 -0
  377. package/treegrid/Compatible/Plain/GanttLineA.gif +0 -0
  378. package/treegrid/Compatible/Plain/GanttLineB.gif +0 -0
  379. package/treegrid/Compatible/Plain/GanttLineC.gif +0 -0
  380. package/treegrid/Compatible/Plain/GanttLineD.gif +0 -0
  381. package/treegrid/Compatible/Plain/Grid.css +2767 -0
  382. package/treegrid/Compatible/Plain/HScroll.png +0 -0
  383. package/treegrid/Compatible/Plain/Menu.gif +0 -0
  384. package/treegrid/Compatible/Plain/Pager.gif +0 -0
  385. package/treegrid/Compatible/Plain/Pager.png +0 -0
  386. package/treegrid/Compatible/Plain/Panel.gif +0 -0
  387. package/treegrid/Compatible/Plain/Sort.gif +0 -0
  388. package/treegrid/Compatible/Plain/Toolbar.gif +0 -0
  389. package/treegrid/Compatible/Plain/Toolbar.png +0 -0
  390. package/treegrid/Compatible/Plain/ToolbarGantt.gif +0 -0
  391. package/treegrid/Compatible/Plain/ToolbarGantt.png +0 -0
  392. package/treegrid/Compatible/Plain/ToolbarSheet.gif +0 -0
  393. package/treegrid/Compatible/Plain/ToolbarSheet.png +0 -0
  394. package/treegrid/Compatible/Plain/ToolbarSheetWide.gif +0 -0
  395. package/treegrid/Compatible/Plain/ToolbarSheetWide.png +0 -0
  396. package/treegrid/Compatible/Plain/Tree.gif +0 -0
  397. package/treegrid/Compatible/Plain/TreeBottom.gif +0 -0
  398. package/treegrid/Compatible/Plain/TreeMiddle.gif +0 -0
  399. package/treegrid/Compatible/Plain/TreeNCollapse.gif +0 -0
  400. package/treegrid/Compatible/Plain/TreeNDrag0.gif +0 -0
  401. package/treegrid/Compatible/Plain/TreeNDrag1.gif +0 -0
  402. package/treegrid/Compatible/Plain/TreeNDrag2.gif +0 -0
  403. package/treegrid/Compatible/Plain/TreeNDrag3.gif +0 -0
  404. package/treegrid/Compatible/Plain/TreeNExpand.gif +0 -0
  405. package/treegrid/Compatible/Plain/TreeNWait.gif +0 -0
  406. package/treegrid/Compatible/Plain/TreeRev.gif +0 -0
  407. package/treegrid/Compatible/Plain/TreeRevBottom.gif +0 -0
  408. package/treegrid/Compatible/Plain/TreeRevMiddle.gif +0 -0
  409. package/treegrid/Compatible/Plain/VScroll.gif +0 -0
  410. package/treegrid/Compatible/Query/Backgrounds.gif +0 -0
  411. package/treegrid/Compatible/Query/BackgroundsGantt.gif +0 -0
  412. package/treegrid/Compatible/Query/Bool.gif +0 -0
  413. package/treegrid/Compatible/Query/Button.gif +0 -0
  414. package/treegrid/Compatible/Query/Dependencies.gif +0 -0
  415. package/treegrid/Compatible/Query/FastPanel1.gif +0 -0
  416. package/treegrid/Compatible/Query/FastPanel2.gif +0 -0
  417. package/treegrid/Compatible/Query/Filter.gif +0 -0
  418. package/treegrid/Compatible/Query/Gantt.css +1234 -0
  419. package/treegrid/Compatible/Query/Gantt.gif +0 -0
  420. package/treegrid/Compatible/Query/GanttLineA.gif +0 -0
  421. package/treegrid/Compatible/Query/GanttLineB.gif +0 -0
  422. package/treegrid/Compatible/Query/GanttLineC.gif +0 -0
  423. package/treegrid/Compatible/Query/GanttLineD.gif +0 -0
  424. package/treegrid/Compatible/Query/Grid.css +2772 -0
  425. package/treegrid/Compatible/Query/HScroll.png +0 -0
  426. package/treegrid/Compatible/Query/Menu.gif +0 -0
  427. package/treegrid/Compatible/Query/Pager.gif +0 -0
  428. package/treegrid/Compatible/Query/Panel.gif +0 -0
  429. package/treegrid/Compatible/Query/Sort.gif +0 -0
  430. package/treegrid/Compatible/Query/Toolbar.gif +0 -0
  431. package/treegrid/Compatible/Query/ToolbarGantt.gif +0 -0
  432. package/treegrid/Compatible/Query/ToolbarSheet.gif +0 -0
  433. package/treegrid/Compatible/Query/ToolbarSheetWide.gif +0 -0
  434. package/treegrid/Compatible/Query/Tree.gif +0 -0
  435. package/treegrid/Compatible/Query/TreeBottom.gif +0 -0
  436. package/treegrid/Compatible/Query/TreeMiddle.gif +0 -0
  437. package/treegrid/Compatible/Query/TreeNCollapse.gif +0 -0
  438. package/treegrid/Compatible/Query/TreeNDrag0.gif +0 -0
  439. package/treegrid/Compatible/Query/TreeNDrag1.gif +0 -0
  440. package/treegrid/Compatible/Query/TreeNDrag2.gif +0 -0
  441. package/treegrid/Compatible/Query/TreeNDrag3.gif +0 -0
  442. package/treegrid/Compatible/Query/TreeNExpand.gif +0 -0
  443. package/treegrid/Compatible/Query/TreeNWait.gif +0 -0
  444. package/treegrid/Compatible/Query/TreeRev.gif +0 -0
  445. package/treegrid/Compatible/Query/TreeRevBottom.gif +0 -0
  446. package/treegrid/Compatible/Query/TreeRevMiddle.gif +0 -0
  447. package/treegrid/Compatible/Query/VScroll.gif +0 -0
  448. package/treegrid/Compatible/Relief/Backgrounds.gif +0 -0
  449. package/treegrid/Compatible/Relief/Bool.gif +0 -0
  450. package/treegrid/Compatible/Relief/Button.gif +0 -0
  451. package/treegrid/Compatible/Relief/Dependencies.gif +0 -0
  452. package/treegrid/Compatible/Relief/FastPanel1.gif +0 -0
  453. package/treegrid/Compatible/Relief/FastPanel2.gif +0 -0
  454. package/treegrid/Compatible/Relief/Filter.gif +0 -0
  455. package/treegrid/Compatible/Relief/Gantt.css +1228 -0
  456. package/treegrid/Compatible/Relief/Gantt.gif +0 -0
  457. package/treegrid/Compatible/Relief/GanttLineA.gif +0 -0
  458. package/treegrid/Compatible/Relief/GanttLineB.gif +0 -0
  459. package/treegrid/Compatible/Relief/GanttLineC.gif +0 -0
  460. package/treegrid/Compatible/Relief/GanttLineD.gif +0 -0
  461. package/treegrid/Compatible/Relief/Grid.css +2773 -0
  462. package/treegrid/Compatible/Relief/HScroll.png +0 -0
  463. package/treegrid/Compatible/Relief/Menu.gif +0 -0
  464. package/treegrid/Compatible/Relief/Pager.gif +0 -0
  465. package/treegrid/Compatible/Relief/Panel.gif +0 -0
  466. package/treegrid/Compatible/Relief/Sort.gif +0 -0
  467. package/treegrid/Compatible/Relief/Toolbar.gif +0 -0
  468. package/treegrid/Compatible/Relief/ToolbarGantt.gif +0 -0
  469. package/treegrid/Compatible/Relief/ToolbarSheet.gif +0 -0
  470. package/treegrid/Compatible/Relief/ToolbarSheetWide.gif +0 -0
  471. package/treegrid/Compatible/Relief/Tree.gif +0 -0
  472. package/treegrid/Compatible/Relief/TreeBottom.gif +0 -0
  473. package/treegrid/Compatible/Relief/TreeMiddle.gif +0 -0
  474. package/treegrid/Compatible/Relief/TreeNCollapse.gif +0 -0
  475. package/treegrid/Compatible/Relief/TreeNDrag0.gif +0 -0
  476. package/treegrid/Compatible/Relief/TreeNDrag1.gif +0 -0
  477. package/treegrid/Compatible/Relief/TreeNDrag2.gif +0 -0
  478. package/treegrid/Compatible/Relief/TreeNDrag3.gif +0 -0
  479. package/treegrid/Compatible/Relief/TreeNExpand.gif +0 -0
  480. package/treegrid/Compatible/Relief/TreeNWait.gif +0 -0
  481. package/treegrid/Compatible/Relief/TreeRev.gif +0 -0
  482. package/treegrid/Compatible/Relief/TreeRevBottom.gif +0 -0
  483. package/treegrid/Compatible/Relief/TreeRevMiddle.gif +0 -0
  484. package/treegrid/Compatible/Relief/VScroll.gif +0 -0
  485. package/treegrid/Compatible/Round/Backgrounds.gif +0 -0
  486. package/treegrid/Compatible/Round/Bool.gif +0 -0
  487. package/treegrid/Compatible/Round/Button.gif +0 -0
  488. package/treegrid/Compatible/Round/Dependencies.gif +0 -0
  489. package/treegrid/Compatible/Round/FastPanel1.gif +0 -0
  490. package/treegrid/Compatible/Round/FastPanel2.gif +0 -0
  491. package/treegrid/Compatible/Round/Filter.gif +0 -0
  492. package/treegrid/Compatible/Round/Gantt.css +1233 -0
  493. package/treegrid/Compatible/Round/Gantt.gif +0 -0
  494. package/treegrid/Compatible/Round/GanttLineA.gif +0 -0
  495. package/treegrid/Compatible/Round/GanttLineB.gif +0 -0
  496. package/treegrid/Compatible/Round/GanttLineC.gif +0 -0
  497. package/treegrid/Compatible/Round/GanttLineD.gif +0 -0
  498. package/treegrid/Compatible/Round/Grid.css +2767 -0
  499. package/treegrid/Compatible/Round/HScroll.png +0 -0
  500. package/treegrid/Compatible/Round/Menu.gif +0 -0
  501. package/treegrid/Compatible/Round/Pager.gif +0 -0
  502. package/treegrid/Compatible/Round/Panel.gif +0 -0
  503. package/treegrid/Compatible/Round/Sort.gif +0 -0
  504. package/treegrid/Compatible/Round/Toolbar.gif +0 -0
  505. package/treegrid/Compatible/Round/ToolbarGantt.gif +0 -0
  506. package/treegrid/Compatible/Round/ToolbarSheet.gif +0 -0
  507. package/treegrid/Compatible/Round/ToolbarSheetWide.gif +0 -0
  508. package/treegrid/Compatible/Round/Tree.gif +0 -0
  509. package/treegrid/Compatible/Round/TreeBottom.gif +0 -0
  510. package/treegrid/Compatible/Round/TreeMiddle.gif +0 -0
  511. package/treegrid/Compatible/Round/TreeNCollapse.gif +0 -0
  512. package/treegrid/Compatible/Round/TreeNDrag0.gif +0 -0
  513. package/treegrid/Compatible/Round/TreeNDrag1.gif +0 -0
  514. package/treegrid/Compatible/Round/TreeNDrag2.gif +0 -0
  515. package/treegrid/Compatible/Round/TreeNDrag3.gif +0 -0
  516. package/treegrid/Compatible/Round/TreeNExpand.gif +0 -0
  517. package/treegrid/Compatible/Round/TreeNWait.gif +0 -0
  518. package/treegrid/Compatible/Round/TreeRev.gif +0 -0
  519. package/treegrid/Compatible/Round/TreeRevBottom.gif +0 -0
  520. package/treegrid/Compatible/Round/TreeRevMiddle.gif +0 -0
  521. package/treegrid/Compatible/Round/VScroll.gif +0 -0
  522. package/treegrid/Compatible/Sharp/ArrowDropDown.png +0 -0
  523. package/treegrid/Compatible/Sharp/Bool.gif +0 -0
  524. package/treegrid/Compatible/Sharp/BoolSpace.gif +0 -0
  525. package/treegrid/Compatible/Sharp/Button.gif +0 -0
  526. package/treegrid/Compatible/Sharp/ButtonSpace.gif +0 -0
  527. package/treegrid/Compatible/Sharp/Dependencies.gif +0 -0
  528. package/treegrid/Compatible/Sharp/FastPanel1.gif +0 -0
  529. package/treegrid/Compatible/Sharp/FastPanel2.gif +0 -0
  530. package/treegrid/Compatible/Sharp/Filter.gif +0 -0
  531. package/treegrid/Compatible/Sharp/Gantt.css +1232 -0
  532. package/treegrid/Compatible/Sharp/Gantt.gif +0 -0
  533. package/treegrid/Compatible/Sharp/GanttLineA.gif +0 -0
  534. package/treegrid/Compatible/Sharp/GanttLineB.gif +0 -0
  535. package/treegrid/Compatible/Sharp/GanttLineC.gif +0 -0
  536. package/treegrid/Compatible/Sharp/GanttLineD.gif +0 -0
  537. package/treegrid/Compatible/Sharp/Grid.css +2773 -0
  538. package/treegrid/Compatible/Sharp/HScroll.png +0 -0
  539. package/treegrid/Compatible/Sharp/Menu.gif +0 -0
  540. package/treegrid/Compatible/Sharp/Pager.png +0 -0
  541. package/treegrid/Compatible/Sharp/Panel.gif +0 -0
  542. package/treegrid/Compatible/Sharp/Roboto-Regular.ttf +0 -0
  543. package/treegrid/Compatible/Sharp/Sort.gif +0 -0
  544. package/treegrid/Compatible/Sharp/Toolbar.png +0 -0
  545. package/treegrid/Compatible/Sharp/ToolbarGantt.png +0 -0
  546. package/treegrid/Compatible/Sharp/ToolbarSheet.png +0 -0
  547. package/treegrid/Compatible/Sharp/ToolbarSheetWide.png +0 -0
  548. package/treegrid/Compatible/Sharp/Tree.gif +0 -0
  549. package/treegrid/Compatible/Sharp/TreeBottom.gif +0 -0
  550. package/treegrid/Compatible/Sharp/TreeMiddle.gif +0 -0
  551. package/treegrid/Compatible/Sharp/TreeNCollapse.gif +0 -0
  552. package/treegrid/Compatible/Sharp/TreeNDrag0.gif +0 -0
  553. package/treegrid/Compatible/Sharp/TreeNDrag1.gif +0 -0
  554. package/treegrid/Compatible/Sharp/TreeNDrag2.gif +0 -0
  555. package/treegrid/Compatible/Sharp/TreeNDrag3.gif +0 -0
  556. package/treegrid/Compatible/Sharp/TreeNExpand.gif +0 -0
  557. package/treegrid/Compatible/Sharp/TreeNWait.gif +0 -0
  558. package/treegrid/Compatible/Sharp/VScroll.gif +0 -0
  559. package/treegrid/Defaults.xml +728 -0
  560. package/treegrid/Defaults.xml_.xml +718 -0
  561. package/treegrid/Ding.wav +0 -0
  562. package/treegrid/Drag.cur +0 -0
  563. package/treegrid/External/jszip.license.txt +10 -0
  564. package/treegrid/External/jszip.min.js +15 -0
  565. package/treegrid/External/jszip.min.sync.js +14 -0
  566. package/treegrid/GridE.js +45 -0
  567. package/treegrid/GridEOnDemand.js +53 -0
  568. package/treegrid/Help.html +536 -0
  569. package/treegrid/NoDrag.cur +0 -0
  570. package/treegrid/Styles/BlackGantt.css +887 -0
  571. package/treegrid/Styles/BlackGrid.css +1940 -0
  572. package/treegrid/Styles/Info.txt +6 -0
  573. package/treegrid/Styles/MaterialGantt.css +845 -0
  574. package/treegrid/Styles/MaterialGrid.css +1978 -0
  575. package/treegrid/Styles/Roboto-Light.ttf +0 -0
  576. package/treegrid/Styles/Roboto-Regular.ttf +0 -0
  577. package/treegrid/Styles/StandardGantt.css +891 -0
  578. package/treegrid/Styles/StandardGrid.css +1923 -0
  579. package/treegrid/Styles/TurqGantt.css +880 -0
  580. package/treegrid/Styles/TurqGrid.css +1980 -0
  581. package/treegrid/Styles/WhiteGantt.css +1021 -0
  582. package/treegrid/Styles/WhiteGrid.css +1911 -0
  583. package/treegrid/Text.xml +176 -0
  584. package/treegrid/TextEN.xml +1785 -0
  585. package/treegrid/TextKR.xml +176 -0
  586. package/treegrid/orgDefaults.xml +715 -0
  587. package/treegrid-global.d.ts +3294 -4904
  588. package/vite/owpCoreAssetsPlugin.cjs +120 -0
  589. package/vite/owpCoreAssetsPlugin.mjs +14 -0
  590. package/vite/owpCoreFixedImagesPlugin.cjs +33 -0
  591. package/vite/owpCoreFixedImagesPlugin.mjs +11 -0
  592. package/vite/staticAssetPlugin.cjs +187 -0
  593. package/vite/treeGridAssetsPlugin.cjs +88 -0
  594. package/vite/treeGridAssetsPlugin.mjs +12 -0
  595. package/dist/components/OwpTable/OwpVerticalTable.js +0 -96
  596. package/dist/components/OwpTable/OwpVerticalTable.js.map +0 -1
  597. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +0 -39
  598. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/html-contenteditable-mask-element.js.map +0 -1
  599. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/html-input-mask-element.js +0 -36
  600. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/html-input-mask-element.js.map +0 -1
  601. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/html-mask-element.js +0 -52
  602. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/html-mask-element.js.map +0 -1
  603. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/input-history.js +0 -35
  604. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/input-history.js.map +0 -1
  605. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/input.js +0 -227
  606. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/input.js.map +0 -1
  607. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/mask-element.js +0 -48
  608. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/controls/mask-element.js.map +0 -1
  609. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/action-details.js +0 -56
  610. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/action-details.js.map +0 -1
  611. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/change-details.js +0 -41
  612. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/change-details.js.map +0 -1
  613. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/continuous-tail-details.js +0 -47
  614. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/continuous-tail-details.js.map +0 -1
  615. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/holder.js +0 -10
  616. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/holder.js.map +0 -1
  617. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/utils.js +0 -76
  618. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/core/utils.js.map +0 -1
  619. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/index.js +0 -51
  620. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/index.js.map +0 -1
  621. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/base.js +0 -257
  622. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/base.js.map +0 -1
  623. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/date.js +0 -121
  624. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/date.js.map +0 -1
  625. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/dynamic.js +0 -227
  626. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/dynamic.js.map +0 -1
  627. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/enum.js +0 -74
  628. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/enum.js.map +0 -1
  629. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/factory.js +0 -52
  630. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/factory.js.map +0 -1
  631. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/function.js +0 -28
  632. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/function.js.map +0 -1
  633. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/number.js +0 -217
  634. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/number.js.map +0 -1
  635. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +0 -108
  636. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern/chunk-tail-details.js.map +0 -1
  637. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern/cursor.js +0 -105
  638. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern/cursor.js.map +0 -1
  639. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern/fixed-definition.js +0 -107
  640. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern/fixed-definition.js.map +0 -1
  641. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern/input-definition.js +0 -138
  642. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern/input-definition.js.map +0 -1
  643. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern.js +0 -327
  644. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pattern.js.map +0 -1
  645. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pipe.js +0 -28
  646. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/pipe.js.map +0 -1
  647. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/range.js +0 -83
  648. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/range.js.map +0 -1
  649. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/regexp.js +0 -26
  650. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/regexp.js.map +0 -1
  651. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/repeat.js +0 -109
  652. package/dist/node_modules/.pnpm/imask@7.6.1/node_modules/imask/esm/masked/repeat.js.map +0 -1
  653. package/dist/node_modules/.pnpm/react-imask@7.6.1_react@19.2.4/node_modules/react-imask/esm/input.js +0 -28
  654. package/dist/node_modules/.pnpm/react-imask@7.6.1_react@19.2.4/node_modules/react-imask/esm/input.js.map +0 -1
  655. package/dist/node_modules/.pnpm/react-imask@7.6.1_react@19.2.4/node_modules/react-imask/esm/mixin.js +0 -136
  656. package/dist/node_modules/.pnpm/react-imask@7.6.1_react@19.2.4/node_modules/react-imask/esm/mixin.js.map +0 -1
@@ -1,55 +1,52 @@
1
- var A = Object.defineProperty;
2
- var i = (e, t) => A(e, "name", { value: t, configurable: !0 });
3
- import { TREEGRID_INPUT_CELL_COLOR as v } from "../../../constants/treeGrid.js";
1
+ var E = Object.defineProperty;
2
+ var G = (e, t) => E(e, "name", { value: t, configurable: !0 });
3
+ import { getTreeGridTextResourceUrl as k, TREEGRID_INPUT_CELL_COLOR as v } from "../../../constants/treeGrid.js";
4
4
  import { highlightTreeGridCellById as U } from "../../../utils/treeGridUtil.js";
5
5
  import { enqueueSnackbar as V } from "notistack";
6
6
  import { applyTreeGridLayoutToGrid as $ } from "./treeGridLayout.js";
7
- import { resolveTreeGridColumnEditValue as F, resetTreeGridColumnEditRulesState as P, syncTreeGridColumnEditRules as K } from "./treeGridColumnEditRules.js";
8
- import { measureTreeGridPerf as M } from "./utils/perf.js";
9
- import { debounce as p } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
10
- import { get as j } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
11
- import { isEmpty as q } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
12
- const z = Number.parseInt(
7
+ import { resolveTreeGridColumnEditValue as F, resetTreeGridColumnEditRulesState as P, syncTreeGridColumnEditRules as M } from "./treeGridColumnEditRules.js";
8
+ import { measureTreeGridPerf as j } from "./utils/perf.js";
9
+ import { debounce as O } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
10
+ import { get as q } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
11
+ import { isEmpty as z } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
12
+ const K = Number.parseInt(
13
13
  v.replace("#", ""),
14
14
  16
15
- ), Ce = 300, B = {
16
- en: "/assets/vendors/Grid/TextEN.xml",
17
- kr: "/assets/vendors/Grid/TextKR.xml"
18
- }, L = /* @__PURE__ */ i((e) => `${e}?noCache=${Date.now()}`, "appendNoCacheQuery"), Q = /* @__PURE__ */ i((e) => e === "kr" ? B.kr : B.en, "getTreeGridTextResourceUrl"), X = /* @__PURE__ */ i((e) => e != null && e.includes("assets") ? L(e) : (
15
+ ), fe = 300, L = /* @__PURE__ */ G((e) => `${e}?noCache=${Date.now()}`, "appendNoCacheQuery"), Q = /* @__PURE__ */ G((e) => e != null && e.includes("assets") ? L(e) : (
19
16
  // @ts-expect-error - API base URL env is provided by host app
20
17
  `undefined/${e}?noCache=${Date.now()}`
21
- ), "resolveTreeGridDataUrl"), J = /* @__PURE__ */ i((e, t, G) => e ? { Url: X(t) } : { Data: { Body: [q(G) ? [] : G] } }, "buildTreeGridDataSource"), de = /* @__PURE__ */ i(({
18
+ ), "resolveTreeGridDataUrl"), J = /* @__PURE__ */ G((e, t, i) => e ? { Url: Q(t) } : { Data: { Body: [z(i) ? [] : i] } }, "buildTreeGridDataSource"), Ce = /* @__PURE__ */ G(({
22
19
  id: e,
23
20
  layoutUrl: t,
24
- dataUrl: G,
21
+ dataUrl: i,
25
22
  bodyData: C,
26
- useDataUrl: s,
27
- width: w,
23
+ useDataUrl: m,
24
+ width: p,
28
25
  height: l,
29
- languageId: O
26
+ languageId: s
30
27
  }) => ({
31
28
  id: e,
32
29
  Layout: { Url: L(t ?? "") },
33
- Data: J(s, G, C),
30
+ Data: J(m, i, C),
34
31
  Text: {
35
- Url: Q(O)
32
+ Url: k(s)
36
33
  },
37
- width: w,
34
+ width: p,
38
35
  height: l,
39
36
  Debug: "Error"
40
- }), "buildTreeGridInitializationOptions"), I = /* @__PURE__ */ i((e) => j(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), W = /* @__PURE__ */ i((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), Y = /* @__PURE__ */ i((e) => {
37
+ }), "buildTreeGridInitializationOptions"), h = /* @__PURE__ */ G((e) => q(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), W = /* @__PURE__ */ G((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), X = /* @__PURE__ */ G((e) => {
41
38
  const t = e == null ? void 0 : e.Visible;
42
39
  return !!e && t !== 0 && t !== !1 && t !== "0";
43
- }, "isVisibleTreeGridRow"), Z = /* @__PURE__ */ i((e) => {
40
+ }, "isVisibleTreeGridRow"), Y = /* @__PURE__ */ G((e) => {
44
41
  const t = e == null ? void 0 : e.Added;
45
42
  return !!e && t !== 0 && t !== !1 && t !== "0" && t !== void 0;
46
- }, "isAddedTreeGridRow"), S = /* @__PURE__ */ i((e) => !e || e.Fixed === "Foot" || !Y(e) ? !1 : e.Kind === "Data" || Z(e), "isDisplayTreeGridRow"), g = /* @__PURE__ */ i((e, t, G) => !t || !G || !S(t) ? !1 : e.CanEdit(t, G) === 1, "isEditableTreeGridCell"), H = /* @__PURE__ */ i((e, t, G) => {
47
- const C = e.GetAttribute(t, G, "Color");
43
+ }, "isAddedTreeGridRow"), S = /* @__PURE__ */ G((e) => !e || e.Fixed === "Foot" || !X(e) ? !1 : e.Kind === "Data" || Y(e), "isDisplayTreeGridRow"), Z = /* @__PURE__ */ G((e, t, i) => !t || !i || !S(t) ? !1 : e.CanEdit(t, i) === 1, "isEditableTreeGridCell"), g = /* @__PURE__ */ G((e, t, i) => {
44
+ const C = e.GetAttribute(t, i, "Color");
48
45
  return C != null && C !== "";
49
- }, "hasExplicitTreeGridCellColor"), ee = /* @__PURE__ */ i((e, t, G) => {
50
- if (!(!t || !g(e, t, G) || H(e, t, G)))
51
- return z;
52
- }, "getEditableTreeGridCellDefaultColor"), se = /* @__PURE__ */ i((e) => {
46
+ }, "hasExplicitTreeGridCellColor"), H = /* @__PURE__ */ G((e, t, i) => {
47
+ if (!(!t || !Z(e, t, i) || g(e, t, i)))
48
+ return K;
49
+ }, "getEditableTreeGridCellDefaultColor"), de = /* @__PURE__ */ G((e) => {
53
50
  if (!e)
54
51
  return !1;
55
52
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
@@ -62,42 +59,42 @@ const z = Number.parseInt(
62
59
  return !1;
63
60
  }
64
61
  return Object.values(e.Rows ?? {}).some((t) => S(t));
65
- }, "hasTreeGridDisplayDataRows"), me = /* @__PURE__ */ i((e, t, G) => {
66
- var s;
67
- const C = (s = e.Data) == null ? void 0 : s.Data;
62
+ }, "hasTreeGridDisplayDataRows"), me = /* @__PURE__ */ G((e, t, i) => {
63
+ var m;
64
+ const C = (m = e.Data) == null ? void 0 : m.Data;
68
65
  e.Data.Data = {
69
66
  ...C,
70
67
  Data: { Body: [t || []] },
71
68
  Url: ""
72
- }, e.ReloadBody(G);
73
- }, "replaceTreeGridBodyData"), Se = /* @__PURE__ */ i(({
69
+ }, e.ReloadBody(i);
70
+ }, "replaceTreeGridBodyData"), we = /* @__PURE__ */ G(({
74
71
  id: e,
75
72
  latestEventHandlersRef: t,
76
- highlightEditableCellsRef: G,
73
+ highlightEditableCellsRef: i,
77
74
  highlightChangedCellsRef: C,
78
- treeGridInstanceRef: s,
79
- treeGridInitStartedAtRef: w,
75
+ treeGridInstanceRef: m,
76
+ treeGridInitStartedAtRef: p,
80
77
  latestLayoutOverridesRef: l,
81
- appliedLayoutOverridesRef: O,
82
- appliedBodyDataPropRef: a,
83
- latestColumnEditRulesRef: h,
84
- latestColumnEditRuleLookupRef: y,
78
+ appliedLayoutOverridesRef: s,
79
+ appliedBodyDataPropRef: x,
80
+ latestColumnEditRulesRef: A,
81
+ latestColumnEditRuleLookupRef: R,
85
82
  appliedColumnEditRulesRef: N,
86
83
  columnEditRulesStateRef: _,
87
- hasAppliedInitialLayoutRef: E,
88
- syncHasDisplayDataRows: m,
89
- setIsTreeGridReady: k
84
+ hasAppliedInitialLayoutRef: b,
85
+ syncHasDisplayDataRows: w,
86
+ setIsTreeGridReady: a
90
87
  }) => {
91
88
  const c = t.current;
92
89
  window.TGSetEvent("OnRowAdd", e, (r, o) => {
93
90
  var n, u;
94
91
  o.CanEdit = 1, o.CanDelete = 1, (u = (n = t.current) == null ? void 0 : n.onRowAdd) == null || u.call(n, r, o);
95
92
  }), window.TGSetEvent("OnRowAdded", e, (r) => {
96
- m(r);
93
+ w(r);
97
94
  }), typeof (c == null ? void 0 : c.onRowClick) == "function" && window.TGSetEvent(
98
95
  "OnClick",
99
96
  e,
100
- p((r, o, n, u, T, f) => {
97
+ O((r, o, n, u, T, f) => {
101
98
  var d, D;
102
99
  (D = (d = t.current) == null ? void 0 : d.onRowClick) == null || D.call(
103
100
  d,
@@ -112,7 +109,7 @@ const z = Number.parseInt(
112
109
  ), typeof (c == null ? void 0 : c.onClickButton) == "function" && window.TGSetEvent(
113
110
  "OnClickButton",
114
111
  e,
115
- p((r, o, n, u) => {
112
+ O((r, o, n, u) => {
116
113
  var T, f;
117
114
  (f = (T = t.current) == null ? void 0 : T.onClickButton) == null || f.call(
118
115
  T,
@@ -124,32 +121,32 @@ const z = Number.parseInt(
124
121
  }, 300)
125
122
  ), typeof (c == null ? void 0 : c.onRowDelete) == "function" ? window.TGSetEvent("OnRowDelete", e, (r, o, n) => {
126
123
  var u, T;
127
- m(r), (T = (u = t.current) == null ? void 0 : u.onRowDelete) == null || T.call(
124
+ w(r), (T = (u = t.current) == null ? void 0 : u.onRowDelete) == null || T.call(
128
125
  u,
129
126
  r,
130
127
  o,
131
128
  n
132
129
  );
133
130
  }) : window.TGSetEvent("OnRowDelete", e, (r) => {
134
- m(r);
131
+ w(r);
135
132
  }), typeof (c == null ? void 0 : c.onRowUndelete) == "function" ? window.TGSetEvent("OnRowUndelete", e, (r, o) => {
136
133
  var n, u;
137
- m(r), (u = (n = t.current) == null ? void 0 : n.onRowUndelete) == null || u.call(n, r, o);
134
+ w(r), (u = (n = t.current) == null ? void 0 : n.onRowUndelete) == null || u.call(n, r, o);
138
135
  }) : window.TGSetEvent("OnRowUndelete", e, (r) => {
139
- m(r);
136
+ w(r);
140
137
  }), window.TGSetEvent("OnGetDefaultColor", e, (r, o, n) => {
141
- if (!(!G.current || !S(o)))
142
- return ee(r, o, n);
138
+ if (!(!i.current || !S(o)))
139
+ return H(r, o, n);
143
140
  }), window.TGSetEvent("OnAfterValueChanged", e, (r, o, n, u) => {
144
- var x, b;
145
- const T = y.current, f = T ? F(T, n, u) : void 0, d = f == null ? void 0 : f.value, D = d ?? u;
141
+ var B, I;
142
+ const T = R.current, f = T ? F(T, n, u) : void 0, d = f == null ? void 0 : f.value, D = d ?? u;
146
143
  f != null && f.invalidText && V(f.invalidText, { variant: "warning" }), d !== void 0 && r.SetValue(o, n, d, 1), C.current && S(o) && U(e, { row: o, col: n });
147
- const R = ((x = t.current) == null ? void 0 : x.onAfterValueChanged) ?? ((b = t.current) == null ? void 0 : b.onRowChange);
148
- R == null || R(r, o, n, D);
144
+ const y = ((B = t.current) == null ? void 0 : B.onAfterValueChanged) ?? ((I = t.current) == null ? void 0 : I.onRowChange);
145
+ y == null || y(r, o, n, D);
149
146
  }), typeof (c == null ? void 0 : c.onSelect) == "function" && window.TGSetEvent(
150
147
  "OnSelect",
151
148
  e,
152
- p((r) => {
149
+ O((r) => {
153
150
  var n, u;
154
151
  const o = r.GetSelRows() ?? [];
155
152
  (u = (n = t.current) == null ? void 0 : n.onSelect) == null || u.call(n, o);
@@ -165,29 +162,29 @@ const z = Number.parseInt(
165
162
  }), window.TGSetEvent(
166
163
  "OnReady",
167
164
  e,
168
- p((r) => {
165
+ O((r) => {
169
166
  var o, n;
170
- if (!E.current) {
167
+ if (!b.current) {
171
168
  const u = l.current;
172
- E.current = !0, $(r, u), P(_.current), K(
169
+ b.current = !0, $(r, u), P(_.current), M(
173
170
  r,
174
- y.current,
171
+ R.current,
175
172
  _.current
176
- ), s.current = r, O.current = u, a.current = I(r), N.current = h.current, m(r), k(!0), M(e, "TreeGrid init ready", w.current, {
173
+ ), m.current = r, s.current = u, x.current = h(r), N.current = A.current, w(r), a(!0), j(e, "TreeGrid init ready", p.current, {
177
174
  bodyRowCount: W(
178
- I(r)
175
+ h(r)
179
176
  )
180
- }), w.current = null, (n = (o = t.current) == null ? void 0 : o.onReady) == null || n.call(o, r);
177
+ }), p.current = null, (n = (o = t.current) == null ? void 0 : o.onReady) == null || n.call(o, r);
181
178
  }
182
179
  }, 100)
183
180
  );
184
181
  }, "bindTreeGridEvents");
185
182
  export {
186
- Ce as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
187
- Se as bindTreeGridEvents,
188
- de as buildTreeGridInitializationOptions,
183
+ fe as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
184
+ we as bindTreeGridEvents,
185
+ Ce as buildTreeGridInitializationOptions,
189
186
  W as getTreeGridBodyDataCount,
190
- se as hasTreeGridDisplayDataRows,
187
+ de as hasTreeGridDisplayDataRows,
191
188
  me as replaceTreeGridBodyData
192
189
  };
193
190
  //# sourceMappingURL=treeGridRuntime.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"treeGridRuntime.js","sources":["../../../../src/components/OwpTreeGrid/internal/treeGridRuntime.ts"],"sourcesContent":["import { TREEGRID_INPUT_CELL_COLOR } from '@/constants/treeGrid';\nimport { highlightTreeGridCellById } from '@/utils/treeGridUtil';\nimport { debounce, get, isEmpty } from 'es-toolkit/compat';\nimport { enqueueSnackbar } from 'notistack';\nimport {\n type Dispatch,\n type RefObject,\n type SetStateAction,\n} from 'react';\nimport type {\n OwpTreeGridBodyData,\n OwpTreeGridColumnEditRule,\n OwpTreeGridLayoutConfig,\n OwpTreeGridProps,\n OwpTreeGridRowModel,\n OwpTreeGridSelectedRows,\n} from '../OwpTreeGrid';\nimport { applyTreeGridLayoutToGrid } from './treeGridLayout';\nimport {\n resetTreeGridColumnEditRulesState,\n resolveTreeGridColumnEditValue,\n syncTreeGridColumnEditRules,\n type TreeGridColumnEditRuleLookup,\n type TreeGridColumnEditRulesState,\n} from './treeGridColumnEditRules';\nimport {\n measureTreeGridPerf,\n} from './utils/perf';\n\nconst TREE_GRID_INPUT_CELL_COLOR_VALUE = Number.parseInt(\n TREEGRID_INPUT_CELL_COLOR.replace('#', ''),\n 16,\n);\n\nexport const TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS = 300;\n\ntype TreeGridInitializationInput<T> = {\n id: string;\n layoutUrl?: string;\n dataUrl?: string;\n bodyData: OwpTreeGridBodyData<T>;\n useDataUrl?: boolean;\n width?: string | number;\n height?: string | number;\n languageId: string;\n};\n\nexport type TreeGridEventHandlers<T> = Pick<\n OwpTreeGridProps<T>,\n | 'onSelect'\n | 'onRowClick'\n | 'onRowAdd'\n | 'onRowDelete'\n | 'onRowUndelete'\n | 'onRowChange'\n | 'onClickButton'\n | 'onSave'\n | 'onReady'\n | 'onAfterValueChanged'\n>;\n\nexport type TreeGridEventBindingOptions<T> = Pick<OwpTreeGridProps<T>, 'id'> & {\n latestEventHandlersRef: RefObject<TreeGridEventHandlers<T>>;\n highlightEditableCellsRef: RefObject<boolean>;\n highlightChangedCellsRef: RefObject<boolean>;\n treeGridInstanceRef: RefObject<TGrid>;\n treeGridInitStartedAtRef: RefObject<number | null>;\n latestLayoutOverridesRef: RefObject<OwpTreeGridLayoutConfig | undefined>;\n appliedLayoutOverridesRef: RefObject<OwpTreeGridLayoutConfig | undefined>;\n appliedBodyDataPropRef: RefObject<OwpTreeGridBodyData<T>>;\n latestColumnEditRulesRef: RefObject<readonly OwpTreeGridColumnEditRule[] | undefined>;\n latestColumnEditRuleLookupRef: RefObject<TreeGridColumnEditRuleLookup | undefined>;\n appliedColumnEditRulesRef: RefObject<readonly OwpTreeGridColumnEditRule[] | undefined>;\n columnEditRulesStateRef: RefObject<TreeGridColumnEditRulesState>;\n hasAppliedInitialLayoutRef: RefObject<boolean>;\n syncHasDisplayDataRows: (grid: TGrid | null) => void;\n setIsTreeGridReady: Dispatch<SetStateAction<boolean>>;\n};\n\nconst TREE_GRID_TEXT_RESOURCE_URLS = {\n en: '/assets/vendors/Grid/TextEN.xml',\n kr: '/assets/vendors/Grid/TextKR.xml',\n} as const;\n\nconst appendNoCacheQuery = (url: string) => {\n return `${url}?noCache=${Date.now()}`;\n};\n\nconst getTreeGridTextResourceUrl = (languageId: string) => {\n return languageId === 'kr' ? TREE_GRID_TEXT_RESOURCE_URLS.kr : TREE_GRID_TEXT_RESOURCE_URLS.en;\n};\n\nconst resolveTreeGridDataUrl = (dataUrl?: string) => {\n return dataUrl?.includes('assets')\n ? appendNoCacheQuery(dataUrl)\n : // @ts-expect-error - API base URL env is provided by host app\n `${import.meta.env.VITE_API_BASE_URL}/${dataUrl}?noCache=${Date.now()}`;\n};\n\nconst buildTreeGridDataSource = <T,>(\n useDataUrl: boolean | undefined,\n dataUrl: string | undefined,\n bodyData: OwpTreeGridBodyData<T>,\n) => {\n if (useDataUrl) {\n return { Url: resolveTreeGridDataUrl(dataUrl) };\n }\n\n return { Data: { Body: [isEmpty(bodyData) ? [] : bodyData] } };\n};\n\n/**\n * TreeGrid 초기화 옵션 생성\n * @param input 초기화 입력값\n */\nexport const buildTreeGridInitializationOptions = <T,>({\n id,\n layoutUrl,\n dataUrl,\n bodyData,\n useDataUrl,\n width,\n height,\n languageId,\n}: TreeGridInitializationInput<T>) => {\n return {\n id,\n Layout: { Url: appendNoCacheQuery(layoutUrl ?? '') },\n Data: buildTreeGridDataSource(useDataUrl, dataUrl, bodyData),\n Text: {\n Url: getTreeGridTextResourceUrl(languageId),\n },\n width,\n height,\n Debug: 'Error',\n };\n};\n\nconst getTreeGridBodyData = (grid: TGrid | null) => {\n return get(grid, 'Data.Data.Data.Body.0');\n};\n\n/**\n * TreeGrid Body 데이터 건수\n * @param bodyData TreeGrid Body 데이터\n */\nexport const getTreeGridBodyDataCount = <T,>(bodyData: OwpTreeGridBodyData<T>) => {\n return Array.isArray(bodyData) ? bodyData.length : 0;\n};\n\nconst isVisibleTreeGridRow = (row: TRow | null | undefined) => {\n const visible = (row as { Visible?: unknown } | null)?.Visible;\n\n return !!row && visible !== 0 && visible !== false && visible !== '0';\n};\n\n/**\n * TreeGrid 추가 행 여부\n * @param row TreeGrid 행\n */\nconst isAddedTreeGridRow = (row: TRow | null | undefined) => {\n const added = (row as { Added?: unknown } | null)?.Added;\n\n return !!row && added !== 0 && added !== false && added !== '0' && added !== undefined;\n};\n\n/**\n * TreeGrid 본문 표시 행 여부\n * @param row TreeGrid 행\n */\nconst isDisplayTreeGridRow = (row: TRow | null | undefined) => {\n if (!row || row.Fixed === 'Foot' || !isVisibleTreeGridRow(row)) {\n return false;\n }\n\n return row.Kind === 'Data' || isAddedTreeGridRow(row);\n};\n\n/**\n * TreeGrid 셀 편집 가능 여부\n * @param grid TreeGrid 인스턴스\n * @param row TreeGrid 행\n * @param col TreeGrid 컬럼 키\n */\nconst isEditableTreeGridCell = (grid: TGrid, row: TRow | null | undefined, col: string) => {\n if (!row || !col || !isDisplayTreeGridRow(row)) {\n return false;\n }\n\n return grid.CanEdit(row, col) === 1;\n};\n\n/**\n * TreeGrid 셀 명시 색상 여부\n * @param grid TreeGrid 인스턴스\n * @param row TreeGrid 행\n * @param col TreeGrid 컬럼 키\n */\nconst hasExplicitTreeGridCellColor = (grid: TGrid, row: TRow, col: string) => {\n const color = grid.GetAttribute(row, col, 'Color');\n\n return color !== undefined && color !== null && color !== '';\n};\n\n/**\n * TreeGrid 입력 셀 기본 배경색 계산\n * @param grid TreeGrid 인스턴스\n * @param row TreeGrid 행\n * @param col TreeGrid 컬럼 키\n */\nconst getEditableTreeGridCellDefaultColor = (\n grid: TGrid,\n row: TRow | null | undefined,\n col: string,\n) => {\n if (\n !row ||\n !isEditableTreeGridCell(grid, row, col) ||\n hasExplicitTreeGridCellColor(grid, row, col)\n ) {\n return undefined;\n }\n\n return TREE_GRID_INPUT_CELL_COLOR_VALUE;\n};\n\n/**\n * TreeGrid 표시 데이터 행 존재 여부\n * @param grid TreeGrid 인스턴스\n */\nexport const hasTreeGridDisplayDataRows = (grid: TGrid | null) => {\n if (!grid) {\n return false;\n }\n\n if (typeof grid.GetFirst === 'function' && typeof grid.GetNext === 'function') {\n let row = grid.GetFirst();\n\n while (row) {\n if (isDisplayTreeGridRow(row)) {\n return true;\n }\n\n row = grid.GetNext(row);\n }\n\n return false;\n }\n\n return Object.values(grid.Rows ?? {}).some((row) => {\n return isDisplayTreeGridRow(row);\n });\n};\n\n/**\n * TreeGrid Body 데이터 교체 후 재로드\n * @param grid TreeGrid 인스턴스\n * @param bodyData 새 Body 데이터\n * @param onReloadFinish 재로드 완료 콜백\n */\nexport const replaceTreeGridBodyData = <T,>(\n grid: TGrid,\n bodyData: OwpTreeGridBodyData<T>,\n onReloadFinish?: (code: number) => void,\n) => {\n // @ts-expect-error - TreeGrid Data.Data shape is not reflected in bundled types\n const currentDataConfig = grid.Data?.Data;\n\n // @ts-expect-error - TreeGrid Data.Data shape is not reflected in bundled types\n grid.Data.Data = {\n ...currentDataConfig,\n Data: { Body: [bodyData || []] },\n Url: '',\n };\n\n grid.ReloadBody(onReloadFinish);\n};\n\n/**\n * TreeGrid 이벤트 바인딩\n * @param options 이벤트 바인딩 옵션\n */\nexport const bindTreeGridEvents = <T,>({\n id,\n latestEventHandlersRef,\n highlightEditableCellsRef,\n highlightChangedCellsRef,\n treeGridInstanceRef,\n treeGridInitStartedAtRef,\n latestLayoutOverridesRef,\n appliedLayoutOverridesRef,\n appliedBodyDataPropRef,\n latestColumnEditRulesRef,\n latestColumnEditRuleLookupRef,\n appliedColumnEditRulesRef,\n columnEditRulesStateRef,\n hasAppliedInitialLayoutRef,\n syncHasDisplayDataRows,\n setIsTreeGridReady,\n}: TreeGridEventBindingOptions<T>) => {\n const initialEventHandlers = latestEventHandlersRef.current;\n\n window.TGSetEvent('OnRowAdd', id, (grid, row) => {\n row.CanEdit = 1;\n row.CanDelete = 1;\n\n latestEventHandlersRef.current?.onRowAdd?.(grid, row as OwpTreeGridRowModel<T>);\n });\n window.TGSetEvent('OnRowAdded', id, (grid) => {\n syncHasDisplayDataRows(grid);\n });\n\n if (typeof initialEventHandlers?.onRowClick === 'function') {\n window.TGSetEvent(\n 'OnClick',\n id,\n debounce((grid, row, col, x, y, event) => {\n latestEventHandlersRef.current?.onRowClick?.(\n grid,\n row as OwpTreeGridRowModel<T>,\n col,\n x,\n y,\n event,\n );\n }, 300),\n );\n }\n\n if (typeof initialEventHandlers?.onClickButton === 'function') {\n window.TGSetEvent(\n 'OnClickButton',\n id,\n debounce((grid, row, col, event) => {\n latestEventHandlersRef.current?.onClickButton?.(\n grid,\n row as OwpTreeGridRowModel<T>,\n col,\n event,\n );\n }, 300),\n );\n }\n\n if (typeof initialEventHandlers?.onRowDelete === 'function') {\n window.TGSetEvent('OnRowDelete', id, (grid, row, deleteType) => {\n syncHasDisplayDataRows(grid);\n latestEventHandlersRef.current?.onRowDelete?.(\n grid,\n row as OwpTreeGridRowModel<T>,\n deleteType,\n );\n });\n } else {\n window.TGSetEvent('OnRowDelete', id, (grid) => {\n syncHasDisplayDataRows(grid);\n });\n }\n if (typeof initialEventHandlers?.onRowUndelete === 'function') {\n window.TGSetEvent('OnRowUndelete', id, (grid, row) => {\n syncHasDisplayDataRows(grid);\n latestEventHandlersRef.current?.onRowUndelete?.(grid, row as OwpTreeGridRowModel<T>);\n });\n } else {\n window.TGSetEvent('OnRowUndelete', id, (grid) => {\n syncHasDisplayDataRows(grid);\n });\n }\n window.TGSetEvent('OnGetDefaultColor', id, (grid, row, col) => {\n if (!highlightEditableCellsRef.current || !isDisplayTreeGridRow(row)) {\n return undefined;\n }\n\n return getEditableTreeGridCellDefaultColor(grid, row, col);\n });\n window.TGSetEvent('OnAfterValueChanged', id, (grid, row, col, value) => {\n const columnEditRuleLookup = latestColumnEditRuleLookupRef.current;\n const resolvedEditValue = columnEditRuleLookup\n ? resolveTreeGridColumnEditValue(columnEditRuleLookup, col, value)\n : undefined;\n const nextValue = resolvedEditValue?.value;\n const resolvedValue = nextValue ?? value;\n\n if (resolvedEditValue?.invalidText) {\n enqueueSnackbar(resolvedEditValue.invalidText, { variant: 'warning' });\n }\n\n if (nextValue !== undefined) {\n grid.SetValue(row, col, nextValue, 1);\n }\n\n if (highlightChangedCellsRef.current && isDisplayTreeGridRow(row)) {\n highlightTreeGridCellById(id, { row, col });\n }\n\n const valueChangedHandler =\n latestEventHandlersRef.current?.onAfterValueChanged ??\n latestEventHandlersRef.current?.onRowChange;\n\n valueChangedHandler?.(grid, row as OwpTreeGridRowModel<T>, col, resolvedValue);\n });\n if (typeof initialEventHandlers?.onSelect === 'function') {\n window.TGSetEvent(\n 'OnSelect',\n id,\n debounce((grid) => {\n const selectedRows = (grid.GetSelRows() ?? []) as OwpTreeGridSelectedRows<T>;\n latestEventHandlersRef.current?.onSelect?.(selectedRows);\n }, 100),\n );\n }\n if (typeof initialEventHandlers?.onSave === 'function') {\n window.TGSetEvent('OnSave', id, (grid, row, autoupdate) => {\n latestEventHandlersRef.current?.onSave?.(\n grid,\n row as OwpTreeGridRowModel<T>,\n autoupdate,\n );\n });\n }\n\n window.TGSetEvent(\n 'OnReady',\n id,\n debounce((grid) => {\n if (!hasAppliedInitialLayoutRef.current) {\n const latestLayoutOverrides = latestLayoutOverridesRef.current;\n\n hasAppliedInitialLayoutRef.current = true;\n applyTreeGridLayoutToGrid(grid, latestLayoutOverrides);\n resetTreeGridColumnEditRulesState(columnEditRulesStateRef.current);\n syncTreeGridColumnEditRules(\n grid,\n latestColumnEditRuleLookupRef.current,\n columnEditRulesStateRef.current,\n );\n treeGridInstanceRef.current = grid;\n appliedLayoutOverridesRef.current = latestLayoutOverrides;\n appliedBodyDataPropRef.current = getTreeGridBodyData(grid) as OwpTreeGridBodyData<T>;\n appliedColumnEditRulesRef.current = latestColumnEditRulesRef.current;\n syncHasDisplayDataRows(grid);\n setIsTreeGridReady(true);\n measureTreeGridPerf(id, 'TreeGrid init ready', treeGridInitStartedAtRef.current, {\n bodyRowCount: getTreeGridBodyDataCount(\n getTreeGridBodyData(grid) as OwpTreeGridBodyData<T>,\n ),\n });\n treeGridInitStartedAtRef.current = null;\n latestEventHandlersRef.current?.onReady?.(grid);\n }\n }, 100),\n );\n};\n"],"names":["TREE_GRID_INPUT_CELL_COLOR_VALUE","TREEGRID_INPUT_CELL_COLOR","TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS","TREE_GRID_TEXT_RESOURCE_URLS","appendNoCacheQuery","__name","url","getTreeGridTextResourceUrl","languageId","resolveTreeGridDataUrl","dataUrl","buildTreeGridDataSource","useDataUrl","bodyData","isEmpty","buildTreeGridInitializationOptions","id","layoutUrl","width","height","getTreeGridBodyData","grid","get","getTreeGridBodyDataCount","isVisibleTreeGridRow","row","visible","isAddedTreeGridRow","added","isDisplayTreeGridRow","isEditableTreeGridCell","col","hasExplicitTreeGridCellColor","color","getEditableTreeGridCellDefaultColor","hasTreeGridDisplayDataRows","replaceTreeGridBodyData","onReloadFinish","currentDataConfig","_a","bindTreeGridEvents","latestEventHandlersRef","highlightEditableCellsRef","highlightChangedCellsRef","treeGridInstanceRef","treeGridInitStartedAtRef","latestLayoutOverridesRef","appliedLayoutOverridesRef","appliedBodyDataPropRef","latestColumnEditRulesRef","latestColumnEditRuleLookupRef","appliedColumnEditRulesRef","columnEditRulesStateRef","hasAppliedInitialLayoutRef","syncHasDisplayDataRows","setIsTreeGridReady","initialEventHandlers","_b","debounce","x","y","event","deleteType","value","columnEditRuleLookup","resolvedEditValue","resolveTreeGridColumnEditValue","nextValue","resolvedValue","enqueueSnackbar","highlightTreeGridCellById","valueChangedHandler","selectedRows","autoupdate","latestLayoutOverrides","applyTreeGridLayoutToGrid","resetTreeGridColumnEditR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":["../../../../src/components/OwpTreeGrid/internal/treeGridRuntime.ts"],"sourcesContent":["import { getTreeGridTextResourceUrl, TREEGRID_INPUT_CELL_COLOR } from '@/constants/treeGrid';\nimport { highlightTreeGridCellById } from '@/utils/treeGridUtil';\nimport { debounce, get, isEmpty } from 'es-toolkit/compat';\nimport { enqueueSnackbar } from 'notistack';\nimport {\n type Dispatch,\n type RefObject,\n type SetStateAction,\n} from 'react';\nimport type {\n OwpTreeGridBodyData,\n OwpTreeGridColumnEditRule,\n OwpTreeGridLayoutConfig,\n OwpTreeGridProps,\n OwpTreeGridRowModel,\n OwpTreeGridSelectedRows,\n} from '../OwpTreeGrid';\nimport { applyTreeGridLayoutToGrid } from './treeGridLayout';\nimport {\n resetTreeGridColumnEditRulesState,\n resolveTreeGridColumnEditValue,\n syncTreeGridColumnEditRules,\n type TreeGridColumnEditRuleLookup,\n type TreeGridColumnEditRulesState,\n} from './treeGridColumnEditRules';\nimport {\n measureTreeGridPerf,\n} from './utils/perf';\n\nconst TREE_GRID_INPUT_CELL_COLOR_VALUE = Number.parseInt(\n TREEGRID_INPUT_CELL_COLOR.replace('#', ''),\n 16,\n);\n\nexport const TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS = 300;\n\ntype TreeGridInitializationInput<T> = {\n id: string;\n layoutUrl?: string;\n dataUrl?: string;\n bodyData: OwpTreeGridBodyData<T>;\n useDataUrl?: boolean;\n width?: string | number;\n height?: string | number;\n languageId: string;\n};\n\nexport type TreeGridEventHandlers<T> = Pick<\n OwpTreeGridProps<T>,\n | 'onSelect'\n | 'onRowClick'\n | 'onRowAdd'\n | 'onRowDelete'\n | 'onRowUndelete'\n | 'onRowChange'\n | 'onClickButton'\n | 'onSave'\n | 'onReady'\n | 'onAfterValueChanged'\n>;\n\nexport type TreeGridEventBindingOptions<T> = Pick<OwpTreeGridProps<T>, 'id'> & {\n latestEventHandlersRef: RefObject<TreeGridEventHandlers<T>>;\n highlightEditableCellsRef: RefObject<boolean>;\n highlightChangedCellsRef: RefObject<boolean>;\n treeGridInstanceRef: RefObject<TGrid>;\n treeGridInitStartedAtRef: RefObject<number | null>;\n latestLayoutOverridesRef: RefObject<OwpTreeGridLayoutConfig | undefined>;\n appliedLayoutOverridesRef: RefObject<OwpTreeGridLayoutConfig | undefined>;\n appliedBodyDataPropRef: RefObject<OwpTreeGridBodyData<T>>;\n latestColumnEditRulesRef: RefObject<readonly OwpTreeGridColumnEditRule[] | undefined>;\n latestColumnEditRuleLookupRef: RefObject<TreeGridColumnEditRuleLookup | undefined>;\n appliedColumnEditRulesRef: RefObject<readonly OwpTreeGridColumnEditRule[] | undefined>;\n columnEditRulesStateRef: RefObject<TreeGridColumnEditRulesState>;\n hasAppliedInitialLayoutRef: RefObject<boolean>;\n syncHasDisplayDataRows: (grid: TGrid | null) => void;\n setIsTreeGridReady: Dispatch<SetStateAction<boolean>>;\n};\n\nconst appendNoCacheQuery = (url: string) => {\n return `${url}?noCache=${Date.now()}`;\n};\n\nconst resolveTreeGridDataUrl = (dataUrl?: string) => {\n return dataUrl?.includes('assets')\n ? appendNoCacheQuery(dataUrl)\n : // @ts-expect-error - API base URL env is provided by host app\n `${import.meta.env.VITE_API_BASE_URL}/${dataUrl}?noCache=${Date.now()}`;\n};\n\nconst buildTreeGridDataSource = <T,>(\n useDataUrl: boolean | undefined,\n dataUrl: string | undefined,\n bodyData: OwpTreeGridBodyData<T>,\n) => {\n if (useDataUrl) {\n return { Url: resolveTreeGridDataUrl(dataUrl) };\n }\n\n return { Data: { Body: [isEmpty(bodyData) ? [] : bodyData] } };\n};\n\n/**\n * TreeGrid 초기화 옵션 생성\n * @param input 초기화 입력값\n */\nexport const buildTreeGridInitializationOptions = <T,>({\n id,\n layoutUrl,\n dataUrl,\n bodyData,\n useDataUrl,\n width,\n height,\n languageId,\n}: TreeGridInitializationInput<T>) => {\n return {\n id,\n Layout: { Url: appendNoCacheQuery(layoutUrl ?? '') },\n Data: buildTreeGridDataSource(useDataUrl, dataUrl, bodyData),\n Text: {\n Url: getTreeGridTextResourceUrl(languageId),\n },\n width,\n height,\n Debug: 'Error',\n };\n};\n\nconst getTreeGridBodyData = (grid: TGrid | null) => {\n return get(grid, 'Data.Data.Data.Body.0');\n};\n\n/**\n * TreeGrid Body 데이터 건수\n * @param bodyData TreeGrid Body 데이터\n */\nexport const getTreeGridBodyDataCount = <T,>(bodyData: OwpTreeGridBodyData<T>) => {\n return Array.isArray(bodyData) ? bodyData.length : 0;\n};\n\nconst isVisibleTreeGridRow = (row: TRow | null | undefined) => {\n const visible = (row as { Visible?: unknown } | null)?.Visible;\n\n return !!row && visible !== 0 && visible !== false && visible !== '0';\n};\n\n/**\n * TreeGrid 추가 행 여부\n * @param row TreeGrid 행\n */\nconst isAddedTreeGridRow = (row: TRow | null | undefined) => {\n const added = (row as { Added?: unknown } | null)?.Added;\n\n return !!row && added !== 0 && added !== false && added !== '0' && added !== undefined;\n};\n\n/**\n * TreeGrid 본문 표시 행 여부\n * @param row TreeGrid 행\n */\nconst isDisplayTreeGridRow = (row: TRow | null | undefined) => {\n if (!row || row.Fixed === 'Foot' || !isVisibleTreeGridRow(row)) {\n return false;\n }\n\n return row.Kind === 'Data' || isAddedTreeGridRow(row);\n};\n\n/**\n * TreeGrid 셀 편집 가능 여부\n * @param grid TreeGrid 인스턴스\n * @param row TreeGrid 행\n * @param col TreeGrid 컬럼 키\n */\nconst isEditableTreeGridCell = (grid: TGrid, row: TRow | null | undefined, col: string) => {\n if (!row || !col || !isDisplayTreeGridRow(row)) {\n return false;\n }\n\n return grid.CanEdit(row, col) === 1;\n};\n\n/**\n * TreeGrid 셀 명시 색상 여부\n * @param grid TreeGrid 인스턴스\n * @param row TreeGrid 행\n * @param col TreeGrid 컬럼 키\n */\nconst hasExplicitTreeGridCellColor = (grid: TGrid, row: TRow, col: string) => {\n const color = grid.GetAttribute(row, col, 'Color');\n\n return color !== undefined && color !== null && color !== '';\n};\n\n/**\n * TreeGrid 입력 셀 기본 배경색 계산\n * @param grid TreeGrid 인스턴스\n * @param row TreeGrid 행\n * @param col TreeGrid 컬럼 키\n */\nconst getEditableTreeGridCellDefaultColor = (\n grid: TGrid,\n row: TRow | null | undefined,\n col: string,\n) => {\n if (\n !row ||\n !isEditableTreeGridCell(grid, row, col) ||\n hasExplicitTreeGridCellColor(grid, row, col)\n ) {\n return undefined;\n }\n\n return TREE_GRID_INPUT_CELL_COLOR_VALUE;\n};\n\n/**\n * TreeGrid 표시 데이터 행 존재 여부\n * @param grid TreeGrid 인스턴스\n */\nexport const hasTreeGridDisplayDataRows = (grid: TGrid | null) => {\n if (!grid) {\n return false;\n }\n\n if (typeof grid.GetFirst === 'function' && typeof grid.GetNext === 'function') {\n let row = grid.GetFirst();\n\n while (row) {\n if (isDisplayTreeGridRow(row)) {\n return true;\n }\n\n row = grid.GetNext(row);\n }\n\n return false;\n }\n\n return Object.values(grid.Rows ?? {}).some((row) => {\n return isDisplayTreeGridRow(row);\n });\n};\n\n/**\n * TreeGrid Body 데이터 교체 후 재로드\n * @param grid TreeGrid 인스턴스\n * @param bodyData 새 Body 데이터\n * @param onReloadFinish 재로드 완료 콜백\n */\nexport const replaceTreeGridBodyData = <T,>(\n grid: TGrid,\n bodyData: OwpTreeGridBodyData<T>,\n onReloadFinish?: (code: number) => void,\n) => {\n // @ts-expect-error - TreeGrid Data.Data shape is not reflected in bundled types\n const currentDataConfig = grid.Data?.Data;\n\n // @ts-expect-error - TreeGrid Data.Data shape is not reflected in bundled types\n grid.Data.Data = {\n ...currentDataConfig,\n Data: { Body: [bodyData || []] },\n Url: '',\n };\n\n grid.ReloadBody(onReloadFinish);\n};\n\n/**\n * TreeGrid 이벤트 바인딩\n * @param options 이벤트 바인딩 옵션\n */\nexport const bindTreeGridEvents = <T,>({\n id,\n latestEventHandlersRef,\n highlightEditableCellsRef,\n highlightChangedCellsRef,\n treeGridInstanceRef,\n treeGridInitStartedAtRef,\n latestLayoutOverridesRef,\n appliedLayoutOverridesRef,\n appliedBodyDataPropRef,\n latestColumnEditRulesRef,\n latestColumnEditRuleLookupRef,\n appliedColumnEditRulesRef,\n columnEditRulesStateRef,\n hasAppliedInitialLayoutRef,\n syncHasDisplayDataRows,\n setIsTreeGridReady,\n}: TreeGridEventBindingOptions<T>) => {\n const initialEventHandlers = latestEventHandlersRef.current;\n\n window.TGSetEvent('OnRowAdd', id, (grid, row) => {\n row.CanEdit = 1;\n row.CanDelete = 1;\n\n latestEventHandlersRef.current?.onRowAdd?.(grid, row as OwpTreeGridRowModel<T>);\n });\n window.TGSetEvent('OnRowAdded', id, (grid) => {\n syncHasDisplayDataRows(grid);\n });\n\n if (typeof initialEventHandlers?.onRowClick === 'function') {\n window.TGSetEvent(\n 'OnClick',\n id,\n debounce((grid, row, col, x, y, event) => {\n latestEventHandlersRef.current?.onRowClick?.(\n grid,\n row as OwpTreeGridRowModel<T>,\n col,\n x,\n y,\n event,\n );\n }, 300),\n );\n }\n\n if (typeof initialEventHandlers?.onClickButton === 'function') {\n window.TGSetEvent(\n 'OnClickButton',\n id,\n debounce((grid, row, col, event) => {\n latestEventHandlersRef.current?.onClickButton?.(\n grid,\n row as OwpTreeGridRowModel<T>,\n col,\n event,\n );\n }, 300),\n );\n }\n\n if (typeof initialEventHandlers?.onRowDelete === 'function') {\n window.TGSetEvent('OnRowDelete', id, (grid, row, deleteType) => {\n syncHasDisplayDataRows(grid);\n latestEventHandlersRef.current?.onRowDelete?.(\n grid,\n row as OwpTreeGridRowModel<T>,\n deleteType,\n );\n });\n } else {\n window.TGSetEvent('OnRowDelete', id, (grid) => {\n syncHasDisplayDataRows(grid);\n });\n }\n if (typeof initialEventHandlers?.onRowUndelete === 'function') {\n window.TGSetEvent('OnRowUndelete', id, (grid, row) => {\n syncHasDisplayDataRows(grid);\n latestEventHandlersRef.current?.onRowUndelete?.(grid, row as OwpTreeGridRowModel<T>);\n });\n } else {\n window.TGSetEvent('OnRowUndelete', id, (grid) => {\n syncHasDisplayDataRows(grid);\n });\n }\n window.TGSetEvent('OnGetDefaultColor', id, (grid, row, col) => {\n if (!highlightEditableCellsRef.current || !isDisplayTreeGridRow(row)) {\n return undefined;\n }\n\n return getEditableTreeGridCellDefaultColor(grid, row, col);\n });\n window.TGSetEvent('OnAfterValueChanged', id, (grid, row, col, value) => {\n const columnEditRuleLookup = latestColumnEditRuleLookupRef.current;\n const resolvedEditValue = columnEditRuleLookup\n ? resolveTreeGridColumnEditValue(columnEditRuleLookup, col, value)\n : undefined;\n const nextValue = resolvedEditValue?.value;\n const resolvedValue = nextValue ?? value;\n\n if (resolvedEditValue?.invalidText) {\n enqueueSnackbar(resolvedEditValue.invalidText, { variant: 'warning' });\n }\n\n if (nextValue !== undefined) {\n grid.SetValue(row, col, nextValue, 1);\n }\n\n if (highlightChangedCellsRef.current && isDisplayTreeGridRow(row)) {\n highlightTreeGridCellById(id, { row, col });\n }\n\n const valueChangedHandler =\n latestEventHandlersRef.current?.onAfterValueChanged ??\n latestEventHandlersRef.current?.onRowChange;\n\n valueChangedHandler?.(grid, row as OwpTreeGridRowModel<T>, col, resolvedValue);\n });\n if (typeof initialEventHandlers?.onSelect === 'function') {\n window.TGSetEvent(\n 'OnSelect',\n id,\n debounce((grid) => {\n const selectedRows = (grid.GetSelRows() ?? []) as OwpTreeGridSelectedRows<T>;\n latestEventHandlersRef.current?.onSelect?.(selectedRows);\n }, 100),\n );\n }\n if (typeof initialEventHandlers?.onSave === 'function') {\n window.TGSetEvent('OnSave', id, (grid, row, autoupdate) => {\n latestEventHandlersRef.current?.onSave?.(\n grid,\n row as OwpTreeGridRowModel<T>,\n autoupdate,\n );\n });\n }\n\n window.TGSetEvent(\n 'OnReady',\n id,\n debounce((grid) => {\n if (!hasAppliedInitialLayoutRef.current) {\n const latestLayoutOverrides = latestLayoutOverridesRef.current;\n\n hasAppliedInitialLayoutRef.current = true;\n applyTreeGridLayoutToGrid(grid, latestLayoutOverrides);\n resetTreeGridColumnEditRulesState(columnEditRulesStateRef.current);\n syncTreeGridColumnEditRules(\n grid,\n latestColumnEditRuleLookupRef.current,\n columnEditRulesStateRef.current,\n );\n treeGridInstanceRef.current = grid;\n appliedLayoutOverridesRef.current = latestLayoutOverrides;\n appliedBodyDataPropRef.current = getTreeGridBodyData(grid) as OwpTreeGridBodyData<T>;\n appliedColumnEditRulesRef.current = latestColumnEditRulesRef.current;\n syncHasDisplayDataRows(grid);\n setIsTreeGridReady(true);\n measureTreeGridPerf(id, 'TreeGrid init ready', treeGridInitStartedAtRef.current, {\n bodyRowCount: getTreeGridBodyDataCount(\n getTreeGridBodyData(grid) as OwpTreeGridBodyData<T>,\n ),\n });\n treeGridInitStartedAtRef.current = null;\n latestEventHandlersRef.current?.onReady?.(grid);\n }\n }, 100),\n );\n};\n"],"names":["TREE_GRID_INPUT_CELL_COLOR_VALUE","TREEGRID_INPUT_CELL_COLOR","TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS","appendNoCacheQuery","__name","url","resolveTreeGridDataUrl","dataUrl","buildTreeGridDataSource","useDataUrl","bodyData","isEmpty","buildTreeGridInitializationOptions","id","layoutUrl","width","height","languageId","getTreeGridTextResourceUrl","getTreeGridBodyData","grid","get","getTreeGridBodyDataCount","isVisibleTreeGridRow","row","visible","isAddedTreeGridRow","added","isDisplayTreeGridRow","isEditableTreeGridCell","col","hasExplicitTreeGridCellColor","color","getEditableTreeGridCellDefaultColor","hasTreeGridDisplayDataRows","replaceTreeGridBodyData","onReloadFinish","currentDataConfig","_a","bindTreeGridEvents","latestEventHandlersRef","highlightEditableCellsRef","highlightChangedCellsRef","treeGridInstanceRef","treeGridInitStartedAtRef","latestLayoutOverridesRef","appliedLayoutOverridesRef","appliedBodyDataPropRef","latestColumnEditRulesRef","latestColumnEditRuleLookupRef","appliedColumnEditRulesRef","columnEditRulesStateRef","hasAppliedInitialLayoutRef","syncHasDisplayDataRows","setIsTreeGridReady","initialEventHandlers","_b","debounce","x","y","event","deleteType","value","columnEditRuleLookup","resolvedEditValue","resolveTreeGridColumnEditValue","nextValue","resolvedValue","enqueueSnackbar","highlightTreeGridCellById","valueChangedHandler","selectedRows","autoupdate","latestLayoutOverrides","applyTreeGridLayoutToGrid","resetTreeGridColumnEditRulesState","syncTreeGridColumnEditRules","measureTreeGridPerf"],"mappings":";;;;;;;;;;;AA6BA,MAAMA,IAAmC,OAAO;AAAA,EAC9CC,EAA0B,QAAQ,KAAK,EAAE;AAAA,EACzC;AACF,GAEaC,KAA2C,KA6ClDC,IAAqB,gBAAAC,EAAA,CAACC,MACnB,GAAGA,CAAG,YAAY,KAAK,KAAK,IADV,uBAIrBC,IAAyB,gBAAAF,EAAA,CAACG,MACvBA,KAAA,QAAAA,EAAS,SAAS,YACrBJ,EAAmBI,CAAO;AAAA;AAAA,EAE1B,aAAwCA,CAAO,YAAY,KAAK,KAAK;AAAA,GAJ5C,2BAOzBC,IAA0B,gBAAAJ,EAAA,CAC9BK,GACAF,GACAG,MAEID,IACK,EAAE,KAAKH,EAAuBC,CAAO,EAAA,IAGvC,EAAE,MAAM,EAAE,MAAM,CAACI,EAAQD,CAAQ,IAAI,CAAA,IAAKA,CAAQ,IAAE,GAT7B,4BAgBnBE,KAAqC,gBAAAR,EAAA,CAAK;AAAA,EACrD,IAAAS;AAAA,EACA,WAAAC;AAAA,EACA,SAAAP;AAAA,EACA,UAAAG;AAAA,EACA,YAAAD;AAAA,EACA,OAAAM;AAAA,EACA,QAAAC;AAAA,EACA,YAAAC;AACF,OACS;AAAA,EACL,IAAAJ;AAAA,EACA,QAAQ,EAAE,KAAKV,EAAmBW,KAAa,EAAE,EAAA;AAAA,EACjD,MAAMN,EAAwBC,GAAYF,GAASG,CAAQ;AAAA,EAC3D,MAAM;AAAA,IACJ,KAAKQ,EAA2BD,CAAU;AAAA,EAAA;AAAA,EAE5C,OAAAF;AAAA,EACA,QAAAC;AAAA,EACA,OAAO;AAAA,IAnBuC,uCAuB5CG,IAAsB,gBAAAf,EAAA,CAACgB,MACpBC,EAAID,GAAM,uBAAuB,GADd,wBAQfE,IAA2B,gBAAAlB,EA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
+ var T = Object.defineProperty;
2
+ var r = (t, e) => T(t, "name", { value: e, configurable: !0 });
3
+ const E = "/assets/vendors/Grid", c = "__OWP_TREE_GRID_ASSET_BASE_PATH__", a = "Styles/Roboto-Light.ttf";
4
+ let o, s;
5
+ const A = "#f44336", d = "#ffd6a8", L = "text-white text-xl font-semibold", f = "#ff8904", n = "RobotoLight", I = `${n}, sans-serif`, R = /* @__PURE__ */ r((t) => {
6
+ const e = t.trim();
7
+ return (e.startsWith("/") ? e : `/${e}`).replace(/\/+$/, "");
8
+ }, "normalizeTreeGridAssetBasePath"), i = /* @__PURE__ */ r(() => {
9
+ const t = typeof window > "u" ? void 0 : window, e = t == null ? void 0 : t[c];
10
+ return R(
11
+ e || E
12
+ );
13
+ }, "getTreeGridAssetBasePath"), _ = /* @__PURE__ */ r((t) => {
14
+ const e = t.replace(/^\/+/, "");
15
+ return `${i()}/${e}`;
16
+ }, "resolveTreeGridAssetUrl"), S = /* @__PURE__ */ r((t) => _(t === "kr" ? "TextKR.xml" : "TextEN.xml"), "getTreeGridTextResourceUrl"), h = /* @__PURE__ */ r(() => {
17
+ const t = _(a);
18
+ return o && s === t || (s = t, o = {
19
+ "@font-face": {
20
+ fontFamily: n,
21
+ fontStyle: "normal",
22
+ fontWeight: "normal",
23
+ src: `url('${t}') format('truetype')`
24
+ }
25
+ }), o;
26
+ }, "getTreeGridFontFaceStyles");
2
27
  export {
3
- R as TREEGRID_CELL_HIGHLIGHT_CLASS,
4
- _ as TREEGRID_CELL_HIGHLIGHT_COLOR,
5
- E as TREEGRID_INPUT_CELL_COLOR,
6
- L as TREEGRID_WARNING_CELL_COLOR
28
+ L as TREEGRID_CELL_HIGHLIGHT_CLASS,
29
+ f as TREEGRID_CELL_HIGHLIGHT_COLOR,
30
+ n as TREEGRID_FONT_FAMILY,
31
+ I as TREEGRID_FONT_FAMILY_STACK,
32
+ d as TREEGRID_INPUT_CELL_COLOR,
33
+ A as TREEGRID_WARNING_CELL_COLOR,
34
+ i as getTreeGridAssetBasePath,
35
+ h as getTreeGridFontFaceStyles,
36
+ S as getTreeGridTextResourceUrl,
37
+ _ as resolveTreeGridAssetUrl
7
38
  };
8
39
  //# sourceMappingURL=treeGrid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"treeGrid.js","sources":["../../src/constants/treeGrid.ts"],"sourcesContent":["export const TREEGRID_WARNING_CELL_COLOR = '#f44336';\nexport const TREEGRID_INPUT_CELL_COLOR = '#ffd6a8';\n\nexport const TREEGRID_CELL_HIGHLIGHT_CLASS = 'text-white text-xl font-semibold';\nexport const TREEGRID_CELL_HIGHLIGHT_COLOR = '#ff8904';\n"],"names":["TREEGRID_WARNING_CELL_COLOR","TREEGRID_INPUT_CELL_COLOR","TREEGRID_CELL_HIGHLIGHT_CLASS","TREEGRID_CELL_HIGHLIGHT_COLOR"],"mappings":"AAAO,MAAMA,IAA8B,WAC9BC,IAA4B,WAE5BC,IAAgC,oCAChCC,IAAgC;"}
1
+ {"version":3,"file":"treeGrid.js","sources":["../../src/constants/treeGrid.ts"],"sourcesContent":["const TREEGRID_DEFAULT_ASSET_BASE_PATH = '/assets/vendors/Grid';\nconst TREEGRID_ASSET_BASE_PATH_GLOBAL_KEY = '__OWP_TREE_GRID_ASSET_BASE_PATH__';\nconst TREEGRID_FONT_PATH = 'Styles/Roboto-Light.ttf';\nlet cachedTreeGridFontFaceStyles: { '@font-face': Record<string, string> } | undefined;\nlet cachedTreeGridFontUrl: string | undefined;\n\nexport const TREEGRID_WARNING_CELL_COLOR = '#f44336';\nexport const TREEGRID_INPUT_CELL_COLOR = '#ffd6a8';\n\nexport const TREEGRID_CELL_HIGHLIGHT_CLASS = 'text-white text-xl font-semibold';\nexport const TREEGRID_CELL_HIGHLIGHT_COLOR = '#ff8904';\nexport const TREEGRID_FONT_FAMILY = 'RobotoLight';\nexport const TREEGRID_FONT_FAMILY_STACK = `${TREEGRID_FONT_FAMILY}, sans-serif`;\n\n/** TreeGrid 자산 base path 정규화 */\nconst normalizeTreeGridAssetBasePath = (assetBasePath: string) => {\n const trimmedPath = assetBasePath.trim();\n const normalizedPath = trimmedPath.startsWith('/') ? trimmedPath : `/${trimmedPath}`;\n\n return normalizedPath.replace(/\\/+$/, '');\n};\n\n/** TreeGrid 자산 base path 조회 */\nexport const getTreeGridAssetBasePath = () => {\n const runtimeWindow =\n typeof window === 'undefined'\n ? undefined\n : (window as Window & {\n [TREEGRID_ASSET_BASE_PATH_GLOBAL_KEY]?: string;\n });\n const runtimeAssetBasePath = runtimeWindow?.[TREEGRID_ASSET_BASE_PATH_GLOBAL_KEY];\n\n return normalizeTreeGridAssetBasePath(\n runtimeAssetBasePath || TREEGRID_DEFAULT_ASSET_BASE_PATH,\n );\n};\n\n/** TreeGrid 자산 URL 생성 */\nexport const resolveTreeGridAssetUrl = (assetPath: string) => {\n const normalizedAssetPath = assetPath.replace(/^\\/+/, '');\n\n return `${getTreeGridAssetBasePath()}/${normalizedAssetPath}`;\n};\n\n/** TreeGrid 다국어 리소스 URL 조회 */\nexport const getTreeGridTextResourceUrl = (languageId: string) => {\n return resolveTreeGridAssetUrl(languageId === 'kr' ? 'TextKR.xml' : 'TextEN.xml');\n};\n\n/** TreeGrid 폰트 face 스타일 조회 */\nexport const getTreeGridFontFaceStyles = () => {\n const fontUrl = resolveTreeGridAssetUrl(TREEGRID_FONT_PATH);\n\n if (cachedTreeGridFontFaceStyles && cachedTreeGridFontUrl === fontUrl) {\n return cachedTreeGridFontFaceStyles;\n }\n\n cachedTreeGridFontUrl = fontUrl;\n cachedTreeGridFontFaceStyles = {\n '@font-face': {\n fontFamily: TREEGRID_FONT_FAMILY,\n fontStyle: 'normal',\n fontWeight: 'normal',\n src: `url('${fontUrl}') format('truetype')`,\n },\n };\n\n return cachedTreeGridFontFaceStyles;\n};\n"],"names":["TREEGRID_DEFAULT_ASSET_BASE_PATH","TREEGRID_ASSET_BASE_PATH_GLOBAL_KEY","TREEGRID_FONT_PATH","cachedTreeGridFontFaceStyles","cachedTreeGridFontUrl","TREEGRID_WARNING_CELL_COLOR","TREEGRID_INPUT_CELL_COLOR","TREEGRID_CELL_HIGHLIGHT_CLASS","TREEGRID_CELL_HIGHLIGHT_COLOR","TREEGRID_FONT_FAMILY","TREEGRID_FONT_FAMILY_STACK","normalizeTreeGridAssetBasePath","__name","assetBasePath","trimmedPath","getTreeGridAssetBasePath","runtimeWindow","runtimeAssetBasePath","resolveTreeGridAssetUrl","assetPath","normalizedAssetPath","getTreeGridTextResourceUrl","languageId","getTreeGridFontFaceStyles","fontUrl"],"mappings":";;AAAA,MAAMA,IAAmC,wBACnCC,IAAsC,qCACtCC,IAAqB;AAC3B,IAAIC,GACAC;AAEG,MAAMC,IAA8B,WAC9BC,IAA4B,WAE5BC,IAAgC,oCAChCC,IAAgC,WAChCC,IAAuB,eACvBC,IAA6B,GAAGD,CAAoB,gBAG3DE,IAAiC,gBAAAC,EAAA,CAACC,MAA0B;AAChE,QAAMC,IAAcD,EAAc,KAAA;AAGlC,UAFuBC,EAAY,WAAW,GAAG,IAAIA,IAAc,IAAIA,CAAW,IAE5D,QAAQ,QAAQ,EAAE;AAC1C,GALuC,mCAQ1BC,IAA2B,gBAAAH,EAAA,MAAM;AAC5C,QAAMI,IACJ,OAAO,SAAW,MACd,SACC,QAGDC,IAAuBD,KAAA,gBAAAA,EAAgBf;AAE7C,SAAOU;AAAA,IACLM,KAAwBjB;AAAA,EAAA;AAE5B,GAZwC,6BAe3BkB,IAA0B,gBAAAN,EAAA,CAACO,MAAsB;AAC5D,QAAMC,IAAsBD,EAAU,QAAQ,QAAQ,EAAE;AAExD,SAAO,GAAGJ,EAAA,CAA0B,IAAIK,CAAmB;AAC7D,GAJuC,4BAO1BC,IAA6B,gBAAAT,EAAA,CAACU,MAClCJ,EAAwBI,MAAe,OAAO,eAAe,YAAY,GADxC,+BAK7BC,IAA4B,gBAAAX,EAAA,MAAM;AAC7C,QAAMY,IAAUN,EAAwBhB,CAAkB;AAE1D,SAAIC,KAAgCC,MAA0BoB,MAI9DpB,IAAwBoB,GACxBrB,IAA+B;AAAA,IAC7B,cAAc;AAAA,MACZ,YAAYM;AAAA,MACZ,WAAW;AAAA,MACX,YAAY;AAAA,MACZ,KAAK,QAAQe,CAAO;AAAA,IAAA;AAAA,EACtB,IAGKrB;AACT,GAlByC;"}
package/dist/constants.js CHANGED
@@ -1,23 +1,29 @@
1
- import { DEFAULT_CELL_ALIGNMENT as _, DEFAULT_HEADER_FILL as A, DEFAULT_HEADER_FONT as T, DEFAULT_THIN_BORDER as R, DEFAULT_VALUE_FONT as G, DEFAULT_WRAP_CELL_ALIGNMENT as C } from "./constants/excel.js";
2
- import { FALLBACK_LANGUAGE_LIST as N } from "./constants/language.js";
3
- import { CURRENT_LANGUAGE as D, LOCAL_STORAGE_KEYS as U, STORAGE_ACCESS_TOKEN_KEY as o } from "./constants/localStorageKeys.js";
4
- import { STORAGE_KEYS as F } from "./constants/storageKeys.js";
5
- import { TREEGRID_CELL_HIGHLIGHT_CLASS as H, TREEGRID_CELL_HIGHLIGHT_COLOR as e, TREEGRID_INPUT_CELL_COLOR as f, TREEGRID_WARNING_CELL_COLOR as m } from "./constants/treeGrid.js";
1
+ import { DEFAULT_CELL_ALIGNMENT as L, DEFAULT_HEADER_FILL as T, DEFAULT_HEADER_FONT as A, DEFAULT_THIN_BORDER as R, DEFAULT_VALUE_FONT as e, DEFAULT_WRAP_CELL_ALIGNMENT as G } from "./constants/excel.js";
2
+ import { FALLBACK_LANGUAGE_LIST as I } from "./constants/language.js";
3
+ import { CURRENT_LANGUAGE as F, LOCAL_STORAGE_KEYS as N, STORAGE_ACCESS_TOKEN_KEY as O } from "./constants/localStorageKeys.js";
4
+ import { STORAGE_KEYS as t } from "./constants/storageKeys.js";
5
+ import { TREEGRID_CELL_HIGHLIGHT_CLASS as U, TREEGRID_CELL_HIGHLIGHT_COLOR as S, TREEGRID_FONT_FAMILY as H, TREEGRID_FONT_FAMILY_STACK as s, TREEGRID_INPUT_CELL_COLOR as x, TREEGRID_WARNING_CELL_COLOR as K, getTreeGridAssetBasePath as f, getTreeGridFontFaceStyles as m, getTreeGridTextResourceUrl as p, resolveTreeGridAssetUrl as Y } from "./constants/treeGrid.js";
6
6
  export {
7
- D as CURRENT_LANGUAGE,
8
- _ as DEFAULT_CELL_ALIGNMENT,
9
- A as DEFAULT_HEADER_FILL,
10
- T as DEFAULT_HEADER_FONT,
7
+ F as CURRENT_LANGUAGE,
8
+ L as DEFAULT_CELL_ALIGNMENT,
9
+ T as DEFAULT_HEADER_FILL,
10
+ A as DEFAULT_HEADER_FONT,
11
11
  R as DEFAULT_THIN_BORDER,
12
- G as DEFAULT_VALUE_FONT,
13
- C as DEFAULT_WRAP_CELL_ALIGNMENT,
14
- N as FALLBACK_LANGUAGE_LIST,
15
- U as LOCAL_STORAGE_KEYS,
16
- o as STORAGE_ACCESS_TOKEN_KEY,
17
- F as STORAGE_KEYS,
18
- H as TREEGRID_CELL_HIGHLIGHT_CLASS,
19
- e as TREEGRID_CELL_HIGHLIGHT_COLOR,
20
- f as TREEGRID_INPUT_CELL_COLOR,
21
- m as TREEGRID_WARNING_CELL_COLOR
12
+ e as DEFAULT_VALUE_FONT,
13
+ G as DEFAULT_WRAP_CELL_ALIGNMENT,
14
+ I as FALLBACK_LANGUAGE_LIST,
15
+ N as LOCAL_STORAGE_KEYS,
16
+ O as STORAGE_ACCESS_TOKEN_KEY,
17
+ t as STORAGE_KEYS,
18
+ U as TREEGRID_CELL_HIGHLIGHT_CLASS,
19
+ S as TREEGRID_CELL_HIGHLIGHT_COLOR,
20
+ H as TREEGRID_FONT_FAMILY,
21
+ s as TREEGRID_FONT_FAMILY_STACK,
22
+ x as TREEGRID_INPUT_CELL_COLOR,
23
+ K as TREEGRID_WARNING_CELL_COLOR,
24
+ f as getTreeGridAssetBasePath,
25
+ m as getTreeGridFontFaceStyles,
26
+ p as getTreeGridTextResourceUrl,
27
+ Y as resolveTreeGridAssetUrl
22
28
  };
23
29
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OwpAppProvider.js","sources":["../../src/contexts/OwpAppProvider.tsx"],"sourcesContent":["import type { OwpSettingsConfigType, OwpThemesType } from '@/types/OwpSettingsTypes';\nimport type { OwpNavItemType } from '@/types/OwpNavigationTypes';\nimport { useStorage } from '@/hooks/useStorage';\nimport type { OwpLoadingProps } from '@/components/OwpLoading/OwpLoading';\nimport {\n CSSProperties,\n ComponentType,\n createContext,\n ReactNode,\n useContext,\n useLayoutEffect,\n useRef,\n} from 'react';\nimport { PartialDeep } from 'type-fest';\n\n/**\n * Logo slot props\n */\nexport interface OwpLogoSlotProps {\n className?: string;\n style?: CSSProperties;\n}\n\nexport type OwpPageSkeletonItemType =\n | 'search-header'\n | 'table'\n | 'grid'\n | 'card'\n | 'chart'\n | 'stat';\n\nexport interface OwpPageSkeletonItem {\n type: OwpPageSkeletonItemType;\n colSpan?: number;\n rowSpan?: number;\n colStart?: number;\n rowStart?: number;\n}\n\nexport interface OwpPageSkeletonSpec {\n columns?: number;\n rowHeight?: number;\n fullscreen?: boolean;\n fillContentHeight?: boolean;\n items: OwpPageSkeletonItem[];\n}\n\nexport interface OwpRouteLoadingSlotProps extends OwpLoadingProps {\n pathname: string;\n isFirstRouteLoading: boolean;\n}\n\nexport interface OwpRouteLoadingConfig extends OwpLoadingProps {\n getSkeletonSpec?: (pathname: string) => OwpPageSkeletonSpec | undefined;\n /** Click-to-release test toggle. Default false */\n releaseOnClick?: boolean;\n}\n\nexport interface OwpAppConfigs {\n routesConfig: any;\n settingsConfig?: PartialDeep<OwpSettingsConfigType>;\n themesConfig?: PartialDeep<OwpThemesType>;\n navigationConfig: OwpNavItemType[];\n}\n\n/**\n * App slots\n */\nexport interface OwpAppSlots {\n logo?: ComponentType<OwpLogoSlotProps>;\n routeLoading?: ComponentType<OwpRouteLoadingSlotProps>;\n}\n\nexport interface OwpAppSlotProps {\n logo?: OwpLogoSlotProps;\n routeLoading?: Omit<\n Partial<OwpRouteLoadingSlotProps>,\n 'pathname' | 'isFirstRouteLoading'\n > &\n OwpRouteLoadingConfig;\n}\n\nexport interface OwpAppEnv {\n apiBaseUrl?: string;\n isAccessTokenGuardEnabled?: boolean;\n isAutoLogoutEnabled?: boolean;\n autoLogoutIdleTimeoutMs?: number;\n isBackendNavigationEnabled?: boolean;\n isErrorMessageEnabled?: boolean;\n isI18nEnabled?: boolean;\n isI18nLanguageSwitcherEnabled?: boolean;\n isPasswordChangeEnabled?: boolean;\n isRequestLogPayloadEnabled?: boolean;\n [key: string]: unknown;\n}\n\nexport interface OwpAppContextValue extends OwpAppConfigs {\n env?: OwpAppEnv;\n slots?: OwpAppSlots;\n slotProps?: OwpAppSlotProps;\n}\n\nexport const OwpAppContext = createContext<OwpAppContextValue | undefined>(undefined);\n\nexport interface OwpAppProviderProps {\n configs: OwpAppConfigs;\n slots?: OwpAppSlots;\n slotProps?: OwpAppSlotProps;\n children?: ReactNode;\n env?: OwpAppEnv;\n}\n\nexport const OwpAppProvider = ({\n configs,\n slots,\n slotProps,\n children,\n env,\n}: OwpAppProviderProps) => {\n const value = useRef<OwpAppContextValue>({ ...configs, env, slots, slotProps });\n const { setEnv } = useStorage();\n\n useLayoutEffect(() => {\n setEnv(env ?? {});\n }, [env, setEnv]);\n\n return <OwpAppContext.Provider value={value.current}>{children}</OwpAppContext.Provider>;\n};\n\nexport const useOwpAppContext = () => {\n const context = useContext(OwpAppContext);\n\n if (context === undefined) {\n throw new Error('useOwpAppContext must be used within a OwpAppProvider');\n }\n\n return context;\n};\n"],"names":["OwpAppContext","createContext","OwpAppProvider","__name","configs","slots","slotProps","children","env","value","useRef","setEnv","useStorage","useLayoutEffect","useOwpAppContext","context","useContext"],"mappings":";;;;;AAsGO,MAAMA,IAAgBC,EAA8C,MAAS,GAUvEC,IAAiB,gBAAAC,EAAA,CAAC;AAAA,EAC7B,SAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,KAAAC;AACF,MAA2B;AACzB,QAAMC,IAAQC,EAA2B,EAAE,GAAGN,GAAS,KAAAI,GAAK,OAAAH,GAAO,WAAAC,GAAW,GACxE,EAAE,QAAAK,EAAA,IAAWC,EAAA;AAEnB,SAAAC,EAAgB,MAAM;AACpB,IAAAF,EAAOH,KAAO,EAAE;AAAA,EAClB,GAAG,CAACA,GAAKG,CAAM,CAAC,qBAERX,EAAc,UAAd,EAAuB,OAAOS,EAAM,SAAU,UAAAF,GAAS;AACjE,GAf8B,mBAiBjBO,IAAmB,gBAAAX,EAAA,MAAM;AACpC,QAAMY,IAAUC,EAAWhB,CAAa;AAExC,MAAIe,MAAY;AACd,UAAM,IAAI,MAAM,uDAAuD;AAGzE,SAAOA;AACT,GARgC;"}
1
+ {"version":3,"file":"OwpAppProvider.js","sources":["../../src/contexts/OwpAppProvider.tsx"],"sourcesContent":["import type { OwpSettingsConfigType, OwpThemesType } from '@/types/OwpSettingsTypes';\nimport type { OwpNavItemType } from '@/types/OwpNavigationTypes';\nimport { useStorage } from '@/hooks/useStorage';\nimport type { OwpLoadingProps } from '@/components/OwpLoading/OwpLoading';\nimport {\n CSSProperties,\n ComponentType,\n createContext,\n ReactNode,\n useContext,\n useLayoutEffect,\n useRef,\n} from 'react';\nimport { PartialDeep } from 'type-fest';\n\n/**\n * Logo slot props\n */\nexport interface OwpLogoSlotProps {\n className?: string;\n style?: CSSProperties;\n}\n\nexport type OwpPageSkeletonItemType =\n | 'search-header'\n | 'table'\n | 'grid'\n | 'card'\n | 'chart'\n | 'stat';\n\nexport interface OwpPageSkeletonItem {\n type: OwpPageSkeletonItemType;\n colSpan?: number;\n rowSpan?: number;\n colStart?: number;\n rowStart?: number;\n}\n\nexport interface OwpPageSkeletonSpec {\n columns?: number;\n rowHeight?: number;\n fullscreen?: boolean;\n fillContentHeight?: boolean;\n items: OwpPageSkeletonItem[];\n}\n\nexport interface OwpRouteLoadingSlotProps extends OwpLoadingProps {\n pathname: string;\n isFirstRouteLoading: boolean;\n}\n\nexport interface OwpRouteLoadingConfig extends OwpLoadingProps {\n getSkeletonSpec?: (pathname: string) => OwpPageSkeletonSpec | undefined;\n /** Click-to-release test toggle. Default false */\n releaseOnClick?: boolean;\n}\n\nexport interface OwpAppConfigs {\n routesConfig: any;\n settingsConfig?: PartialDeep<OwpSettingsConfigType>;\n themesConfig?: PartialDeep<OwpThemesType>;\n navigationConfig: OwpNavItemType[];\n}\n\n/**\n * App slots\n */\nexport interface OwpAppSlots {\n logo?: ComponentType<OwpLogoSlotProps>;\n routeLoading?: ComponentType<OwpRouteLoadingSlotProps>;\n}\n\nexport interface OwpAppSlotProps {\n logo?: OwpLogoSlotProps;\n routeLoading?: Omit<\n Partial<OwpRouteLoadingSlotProps>,\n 'pathname' | 'isFirstRouteLoading'\n > &\n OwpRouteLoadingConfig;\n}\n\nexport interface OwpAppEnv {\n apiBaseUrl?: string;\n isAccessTokenGuardEnabled?: boolean;\n isAutoLogoutEnabled?: boolean;\n autoLogoutIdleTimeoutMs?: number;\n isBackendNavigationEnabled?: boolean;\n isErrorMessageEnabled?: boolean;\n isI18nEnabled?: boolean;\n isI18nLanguageSwitcherEnabled?: boolean;\n isNavigationActiveRouteRemountEnabled?: boolean;\n isPasswordChangeEnabled?: boolean;\n isRequestLogPayloadEnabled?: boolean;\n [key: string]: unknown;\n}\n\nexport interface OwpAppContextValue extends OwpAppConfigs {\n env?: OwpAppEnv;\n slots?: OwpAppSlots;\n slotProps?: OwpAppSlotProps;\n}\n\nexport const OwpAppContext = createContext<OwpAppContextValue | undefined>(undefined);\n\nexport interface OwpAppProviderProps {\n configs: OwpAppConfigs;\n slots?: OwpAppSlots;\n slotProps?: OwpAppSlotProps;\n children?: ReactNode;\n env?: OwpAppEnv;\n}\n\nexport const OwpAppProvider = ({\n configs,\n slots,\n slotProps,\n children,\n env,\n}: OwpAppProviderProps) => {\n const value = useRef<OwpAppContextValue>({ ...configs, env, slots, slotProps });\n const { setEnv } = useStorage();\n\n useLayoutEffect(() => {\n setEnv(env ?? {});\n }, [env, setEnv]);\n\n return <OwpAppContext.Provider value={value.current}>{children}</OwpAppContext.Provider>;\n};\n\nexport const useOwpAppContext = () => {\n const context = useContext(OwpAppContext);\n\n if (context === undefined) {\n throw new Error('useOwpAppContext must be used within a OwpAppProvider');\n }\n\n return context;\n};\n"],"names":["OwpAppContext","createContext","OwpAppProvider","__name","configs","slots","slotProps","children","env","value","useRef","setEnv","useStorage","useLayoutEffect","useOwpAppContext","context","useContext"],"mappings":";;;;;AAuGO,MAAMA,IAAgBC,EAA8C,MAAS,GAUvEC,IAAiB,gBAAAC,EAAA,CAAC;AAAA,EAC7B,SAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,KAAAC;AACF,MAA2B;AACzB,QAAMC,IAAQC,EAA2B,EAAE,GAAGN,GAAS,KAAAI,GAAK,OAAAH,GAAO,WAAAC,GAAW,GACxE,EAAE,QAAAK,EAAA,IAAWC,EAAA;AAEnB,SAAAC,EAAgB,MAAM;AACpB,IAAAF,EAAOH,KAAO,EAAE;AAAA,EAClB,GAAG,CAACA,GAAKG,CAAM,CAAC,qBAERX,EAAc,UAAd,EAAuB,OAAOS,EAAM,SAAU,UAAAF,GAAS;AACjE,GAf8B,mBAiBjBO,IAAmB,gBAAAX,EAAA,MAAM;AACpC,QAAMY,IAAUC,EAAWhB,CAAa;AAExC,MAAIe,MAAY;AACd,UAAM,IAAI,MAAM,uDAAuD;AAGzE,SAAOA;AACT,GARgC;"}
@@ -1,11 +1,25 @@
1
1
  var s = Object.defineProperty;
2
- var e = (t, o) => s(t, "name", { value: o, configurable: !0 });
2
+ var e = (t, r) => s(t, "name", { value: r, configurable: !0 });
3
3
  import { STORAGE_KEYS as u } from "../constants/storageKeys.js";
4
- import { useAtomValue as m, useSetAtom as n } from "jotai";
5
- import { atomWithStorage as S } from "jotai/utils";
6
- const r = S(u.currentUserSeq, ""), A = /* @__PURE__ */ e(() => m(r), "useGetCurrentUserSeq"), U = /* @__PURE__ */ e(() => n(r), "useSetCurrentUserSeq");
4
+ import { useOwpTranslation as S } from "./useOwpTranslation.js";
5
+ import { useAtomValue as m, useSetAtom as a } from "jotai";
6
+ import { atomWithStorage as c } from "jotai/utils";
7
+ import { enqueueSnackbar as i } from "notistack";
8
+ const A = "Message.로그인 사용자 정보가 없습니다.", n = c(u.currentUserSeq, ""), p = /* @__PURE__ */ e(() => m(n), "useGetCurrentUserSeq"), _ = /* @__PURE__ */ e(() => a(n), "useSetCurrentUserSeq"), g = /* @__PURE__ */ e(({
9
+ snackbarMessageKey: t = A
10
+ } = {}) => {
11
+ const r = p(), { t: o } = S();
12
+ return () => {
13
+ if (r == null || r === "") {
14
+ i(o(t), { variant: "warning" });
15
+ return;
16
+ }
17
+ return r;
18
+ };
19
+ }, "useEnsureCurrentUserSeq");
7
20
  export {
8
- A as useGetCurrentUserSeq,
9
- U as useSetCurrentUserSeq
21
+ g as useEnsureCurrentUserSeq,
22
+ p as useGetCurrentUserSeq,
23
+ _ as useSetCurrentUserSeq
10
24
  };
11
25
  //# sourceMappingURL=useCurrentUserSeq.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCurrentUserSeq.js","sources":["../../src/hooks/useCurrentUserSeq.ts"],"sourcesContent":["import { STORAGE_KEYS } from '@/constants/storageKeys';\nimport { useAtomValue, useSetAtom } from 'jotai';\nimport { atomWithStorage } from 'jotai/utils';\n\nconst currentUserSeqAtom = atomWithStorage<string | number | ''>(STORAGE_KEYS.currentUserSeq, '');\n\n/**\n * 현재 사용자 USERSEQ 조회 훅\n */\nexport const useGetCurrentUserSeq = () => {\n return useAtomValue(currentUserSeqAtom);\n};\n\n/**\n * 현재 사용자 USERSEQ 설정 훅\n */\nexport const useSetCurrentUserSeq = () => {\n return useSetAtom(currentUserSeqAtom);\n};\n"],"names":["currentUserSeqAtom","atomWithStorage","STORAGE_KEYS","useGetCurrentUserSeq","__name","useAtomValue","useSetCurrentUserSeq","useSetAtom"],"mappings":";;;;;AAIA,MAAMA,IAAqBC,EAAsCC,EAAa,gBAAgB,EAAE,GAKnFC,IAAuB,gBAAAC,EAAA,MAC3BC,EAAaL,CAAkB,GADJ,yBAOvBM,IAAuB,gBAAAF,EAAA,MAC3BG,EAAWP,CAAkB,GADF;"}
1
+ {"version":3,"file":"useCurrentUserSeq.js","sources":["../../src/hooks/useCurrentUserSeq.ts"],"sourcesContent":["import { STORAGE_KEYS } from '@/constants/storageKeys';\nimport { useOwpTranslation } from '@/hooks/useOwpTranslation';\nimport { useAtomValue, useSetAtom } from 'jotai';\nimport { atomWithStorage } from 'jotai/utils';\nimport { enqueueSnackbar } from 'notistack';\n\nexport type CurrentUserSeq = string | number;\n\nexport interface UseEnsureCurrentUserSeqOptions {\n snackbarMessageKey?: string;\n}\n\nconst DEFAULT_SNACKBAR_MESSAGE_KEY = 'Message.로그인 사용자 정보가 없습니다.';\n\nconst currentUserSeqAtom = atomWithStorage<CurrentUserSeq | ''>(STORAGE_KEYS.currentUserSeq, '');\n\n/**\n * 현재 사용자 USERSEQ 조회 훅\n */\nexport const useGetCurrentUserSeq = () => {\n return useAtomValue(currentUserSeqAtom);\n};\n\n/**\n * 현재 사용자 USERSEQ 설정 훅\n */\nexport const useSetCurrentUserSeq = () => {\n return useSetAtom(currentUserSeqAtom);\n};\n\n/**\n * 현재 사용자 USERSEQ 필수 검증 훅\n * @param snackbarMessageKey 사용자 정보 부재 안내 메시지 키\n */\nexport const useEnsureCurrentUserSeq = ({\n snackbarMessageKey = DEFAULT_SNACKBAR_MESSAGE_KEY,\n}: UseEnsureCurrentUserSeqOptions = {}) => {\n const currentUserSeq = useGetCurrentUserSeq();\n const { t } = useOwpTranslation();\n\n return () => {\n if (currentUserSeq == null || currentUserSeq === '') {\n enqueueSnackbar(t(snackbarMessageKey), { variant: 'warning' });\n return undefined;\n }\n\n return currentUserSeq;\n };\n};\n"],"names":["DEFAULT_SNACKBAR_MESSAGE_KEY","currentUserSeqAtom","atomWithStorage","STORAGE_KEYS","useGetCurrentUserSeq","__name","useAtomValue","useSetCurrentUserSeq","useSetAtom","useEnsureCurrentUserSeq","snackbarMessageKey","currentUserSeq","t","useOwpTranslation","enqueueSnackbar"],"mappings":";;;;;;;AAYA,MAAMA,IAA+B,6BAE/BC,IAAqBC,EAAqCC,EAAa,gBAAgB,EAAE,GAKlFC,IAAuB,gBAAAC,EAAA,MAC3BC,EAAaL,CAAkB,GADJ,yBAOvBM,IAAuB,gBAAAF,EAAA,MAC3BG,EAAWP,CAAkB,GADF,yBAQvBQ,IAA0B,gBAAAJ,EAAA,CAAC;AAAA,EACtC,oBAAAK,IAAqBV;AACvB,IAAoC,OAAO;AACzC,QAAMW,IAAiBP,EAAA,GACjB,EAAE,GAAAQ,EAAA,IAAMC,EAAA;AAEd,SAAO,MAAM;AACX,QAAIF,KAAkB,QAAQA,MAAmB,IAAI;AACnD,MAAAG,EAAgBF,EAAEF,CAAkB,GAAG,EAAE,SAAS,WAAW;AAC7D;AAAA,IACF;AAEA,WAAOC;AAAA,EACT;AACF,GAduC;"}
@@ -1,14 +1,14 @@
1
1
  var m = Object.defineProperty;
2
2
  var o = (r, e) => m(r, "name", { value: e, configurable: !0 });
3
- import { STORAGE_KEYS as s } from "../constants/storageKeys.js";
4
- import { useAtomValue as g, useSetAtom as S } from "jotai";
5
- import { atomWithStorage as c } from "jotai/utils";
6
- const t = c(
7
- s.currentLogoSrc,
8
- "assets/images/logo/daedong-door-logo-b.png"
9
- ), p = /* @__PURE__ */ o(() => g(t), "useGetLogoSrc"), l = /* @__PURE__ */ o(() => S(t), "useSetLogoSrc");
3
+ import { STORAGE_KEYS as S } from "../constants/storageKeys.js";
4
+ import { useAtomValue as c, useSetAtom as u } from "jotai";
5
+ import { atomWithStorage as s } from "jotai/utils";
6
+ const t = s(
7
+ S.currentLogoSrc,
8
+ ""
9
+ ), A = /* @__PURE__ */ o(() => c(t), "useGetLogoSrc"), a = /* @__PURE__ */ o(() => u(t), "useSetLogoSrc");
10
10
  export {
11
- p as useGetLogoSrc,
12
- l as useSetLogoSrc
11
+ A as useGetLogoSrc,
12
+ a as useSetLogoSrc
13
13
  };
14
14
  //# sourceMappingURL=useLogoSrc.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLogoSrc.js","sources":["../../src/hooks/useLogoSrc.ts"],"sourcesContent":["import { STORAGE_KEYS } from '@/constants/storageKeys';\nimport { useAtomValue, useSetAtom } from 'jotai';\nimport { atomWithStorage } from 'jotai/utils';\n\nconst logoSrcAtom = atomWithStorage<string>(\n STORAGE_KEYS.currentLogoSrc,\n 'assets/images/logo/daedong-door-logo-b.png',\n);\n\n/**\n * 현재 로고 경로 조회 훅\n */\nexport const useGetLogoSrc = () => {\n return useAtomValue(logoSrcAtom);\n};\n\n/**\n * 현재 로고 경로 설정 훅\n */\nexport const useSetLogoSrc = () => {\n return useSetAtom(logoSrcAtom);\n};\n"],"names":["logoSrcAtom","atomWithStorage","STORAGE_KEYS","useGetLogoSrc","__name","useAtomValue","useSetLogoSrc","useSetAtom"],"mappings":";;;;;AAIA,MAAMA,IAAcC;AAAA,EAClBC,EAAa;AAAA,EACb;AACF,GAKaC,IAAgB,gBAAAC,EAAA,MACpBC,EAAaL,CAAW,GADJ,kBAOhBM,IAAgB,gBAAAF,EAAA,MACpBG,EAAWP,CAAW,GADF;"}
1
+ {"version":3,"file":"useLogoSrc.js","sources":["../../src/hooks/useLogoSrc.ts"],"sourcesContent":["import { STORAGE_KEYS } from '@/constants/storageKeys';\nimport { useAtomValue, useSetAtom } from 'jotai';\nimport { atomWithStorage } from 'jotai/utils';\n\nconst logoSrcAtom = atomWithStorage<string>(\n STORAGE_KEYS.currentLogoSrc,\n '',\n);\n\n/**\n * 현재 로고 경로 조회 훅\n */\nexport const useGetLogoSrc = () => {\n return useAtomValue(logoSrcAtom);\n};\n\n/**\n * 현재 로고 경로 설정 훅\n */\nexport const useSetLogoSrc = () => {\n return useSetAtom(logoSrcAtom);\n};\n"],"names":["logoSrcAtom","atomWithStorage","STORAGE_KEYS","useGetLogoSrc","__name","useAtomValue","useSetLogoSrc","useSetAtom"],"mappings":";;;;;AAIA,MAAMA,IAAcC;AAAA,EAClBC,EAAa;AAAA,EACb;AACF,GAKaC,IAAgB,gBAAAC,EAAA,MACpBC,EAAaL,CAAW,GADJ,kBAOhBM,IAAgB,gBAAAF,EAAA,MACpBG,EAAWP,CAAW,GADF;"}
@@ -0,0 +1,38 @@
1
+ var h = Object.defineProperty;
2
+ var a = (e, o) => h(e, "name", { value: o, configurable: !0 });
3
+ import { useOwpAppContext as R } from "../contexts/OwpAppProvider.js";
4
+ import { useAtomValue as p, atom as v, useSetAtom as A } from "jotai";
5
+ import { useMemo as l } from "react";
6
+ import { useLocation as f, useResolvedPath as g, createPath as u } from "react-router-dom";
7
+ const i = v(0), C = /* @__PURE__ */ a(() => p(i), "useNavigationActiveRouteRemountKey"), E = /* @__PURE__ */ a((e) => {
8
+ const { env: o } = R(), t = f(), m = A(i), s = g(
9
+ e ?? {
10
+ pathname: t.pathname,
11
+ search: t.search,
12
+ hash: t.hash
13
+ }
14
+ ), n = (o == null ? void 0 : o.isNavigationActiveRouteRemountEnabled) ?? !0, c = l(() => !e || !n ? !1 : u(s) === u({
15
+ pathname: t.pathname,
16
+ search: t.search,
17
+ hash: t.hash
18
+ }), [
19
+ n,
20
+ t.hash,
21
+ t.pathname,
22
+ t.search,
23
+ s,
24
+ e
25
+ ]);
26
+ return {
27
+ isNavigationActiveRouteRemountEnabled: n,
28
+ shouldRemountRouteOnClick: c,
29
+ remountRoute: /* @__PURE__ */ a(() => {
30
+ m((r) => r + 1);
31
+ }, "remountRoute")
32
+ };
33
+ }, "useNavigationActiveRouteRemount");
34
+ export {
35
+ E as useNavigationActiveRouteRemount,
36
+ C as useNavigationActiveRouteRemountKey
37
+ };
38
+ //# sourceMappingURL=useNavigationActiveRouteRemount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNavigationActiveRouteRemount.js","sources":["../../src/hooks/useNavigationActiveRouteRemount.ts"],"sourcesContent":["import { useOwpAppContext } from '@/contexts/OwpAppProvider';\nimport { atom, useAtomValue, useSetAtom } from 'jotai';\nimport { useMemo } from 'react';\nimport { createPath, type To, useLocation, useResolvedPath } from 'react-router-dom';\n\nconst navigationActiveRouteRemountKeyAtom = atom(0);\n\n/**\n * 네비게이션 active route remount key 조회\n */\nexport const useNavigationActiveRouteRemountKey = () =>\n useAtomValue(navigationActiveRouteRemountKeyAtom);\n\n/**\n * 네비게이션 active route remount 제어값 조회\n * @param to 이동 대상 경로\n */\nexport const useNavigationActiveRouteRemount = (to?: To) => {\n const { env } = useOwpAppContext();\n const location = useLocation();\n const setNavigationActiveRouteRemountKey = useSetAtom(navigationActiveRouteRemountKeyAtom);\n const resolvedTo = useResolvedPath(\n to ?? {\n pathname: location.pathname,\n search: location.search,\n hash: location.hash,\n },\n );\n\n const isNavigationActiveRouteRemountEnabled =\n env?.isNavigationActiveRouteRemountEnabled ?? true;\n\n const shouldRemountRouteOnClick = useMemo(() => {\n if (!to || !isNavigationActiveRouteRemountEnabled) {\n return false;\n }\n\n return (\n createPath(resolvedTo) ===\n createPath({\n pathname: location.pathname,\n search: location.search,\n hash: location.hash,\n })\n );\n }, [\n isNavigationActiveRouteRemountEnabled,\n location.hash,\n location.pathname,\n location.search,\n resolvedTo,\n to,\n ]);\n\n const remountRoute = () => {\n setNavigationActiveRouteRemountKey((previousValue) => previousValue + 1);\n };\n\n return {\n isNavigationActiveRouteRemountEnabled,\n shouldRemountRouteOnClick,\n remountRoute,\n };\n};\n"],"names":["navigationActiveRouteRemountKeyAtom","atom","useNavigationActiveRouteRemountKey","__name","useAtomValue","useNavigationActiveRouteRemount","to","env","useOwpAppContext","location","useLocation","setNavigationActiveRouteRemountKey","useSetAtom","resolvedTo","useResolvedPath","isNavigationActiveRouteRemountEnabled","shouldRemountRouteOnClick","useMemo","createPath","previousValue"],"mappings":";;;;;;AAKA,MAAMA,IAAsCC,EAAK,CAAC,GAKrCC,IAAqC,gBAAAC,EAAA,MAChDC,EAAaJ,CAAmC,GADA,uCAOrCK,IAAkC,gBAAAF,EAAA,CAACG,MAAY;AAC1D,QAAM,EAAE,KAAAC,EAAA,IAAQC,EAAA,GACVC,IAAWC,EAAA,GACXC,IAAqCC,EAAWZ,CAAmC,GACnFa,IAAaC;AAAA,IACjBR,KAAM;AAAA,MACJ,UAAUG,EAAS;AAAA,MACnB,QAAQA,EAAS;AAAA,MACjB,MAAMA,EAAS;AAAA,IAAA;AAAA,EACjB,GAGIM,KACJR,KAAA,gBAAAA,EAAK,0CAAyC,IAE1CS,IAA4BC,EAAQ,MACpC,CAACX,KAAM,CAACS,IACH,KAIPG,EAAWL,CAAU,MACrBK,EAAW;AAAA,IACT,UAAUT,EAAS;AAAA,IACnB,QAAQA,EAAS;AAAA,IACjB,MAAMA,EAAS;AAAA,EAAA,CAChB,GAEF;AAAA,IACDM;AAAA,IACAN,EAAS;AAAA,IACTA,EAAS;AAAA,IACTA,EAAS;AAAA,IACTI;AAAA,IACAP;AAAA,EAAA,CACD;AAMD,SAAO;AAAA,IACL,uCAAAS;AAAA,IACA,2BAAAC;AAAA,IACA,cAPmB,gBAAAb,EAAA,MAAM;AACzB,MAAAQ,EAAmC,CAACQ,MAAkBA,IAAgB,CAAC;AAAA,IACzE,GAFqB;AAAA,EAOnB;AAEJ,GA9C+C;"}