@owp/core 2.5.47 → 2.5.49

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 (340) hide show
  1. package/dist/_virtual/index15.js +2 -2
  2. package/dist/_virtual/index16.js +4 -4
  3. package/dist/_virtual/index17.js +5 -2
  4. package/dist/_virtual/index17.js.map +1 -1
  5. package/dist/_virtual/index18.js +3 -3
  6. package/dist/_virtual/index19.js +3 -3
  7. package/dist/_virtual/index20.js +2 -5
  8. package/dist/_virtual/index20.js.map +1 -1
  9. package/dist/_virtual/index5.js +2 -2
  10. package/dist/components/OwpBarcodeInput/OwpBarcodeInputField.js.map +1 -1
  11. package/dist/components/OwpCommonCode/OwpCommonCodeQuerySelector.js.map +1 -1
  12. package/dist/components/OwpCommonCode/OwpCommonCodeRadioGroup.js.map +1 -1
  13. package/dist/components/OwpCommonCode/OwpCommonCodeSelector.js.map +1 -1
  14. package/dist/components/OwpDialog/OwpAlertDialog.js.map +1 -1
  15. package/dist/components/OwpDialog/OwpDialog.js.map +1 -1
  16. package/dist/components/OwpDialogsProvider/OwpDialogsContext.js.map +1 -1
  17. package/dist/components/OwpErrorStatusPage/OwpErrorStatusPage.js.map +1 -1
  18. package/dist/components/OwpExportExcelButton/OwpExportExcelButton.js.map +1 -1
  19. package/dist/components/OwpFieldHelperText/OwpFieldHelperText.js.map +1 -1
  20. package/dist/components/OwpFilePickerButton/OwpFilePickerButton.js.map +1 -1
  21. package/dist/components/OwpHidden/OwpHidden.js.map +1 -1
  22. package/dist/components/OwpLanguageSwitcherSelect/OwpLanguageSwitcherSelect.js.map +1 -1
  23. package/dist/components/OwpLayout/OwpLayout.js +1 -1
  24. package/dist/components/OwpLayout/OwpLayout.js.map +1 -1
  25. package/dist/components/OwpLoading/OwpLoading.js.map +1 -1
  26. package/dist/components/OwpMoreActionsButton/OwpMoreActionsButton.js.map +1 -1
  27. package/dist/components/OwpNavLinkAdapter/OwpNavLinkAdapter.js.map +1 -1
  28. package/dist/components/OwpOptionSelector/OwpOptionSelector.js.map +1 -1
  29. package/dist/components/OwpPageBreadcrumb/OwpPageBreadcrumb.js.map +1 -1
  30. package/dist/components/OwpPageCarded/OwpPageCarded.js +21 -23
  31. package/dist/components/OwpPageCarded/OwpPageCarded.js.map +1 -1
  32. package/dist/components/OwpPageLockLoading/OwpPageLockLoading.js.map +1 -1
  33. package/dist/components/OwpPageTitle/OwpPageTitle.js.map +1 -1
  34. package/dist/components/OwpPicker/OwpDatePicker.js +141 -144
  35. package/dist/components/OwpPicker/OwpDatePicker.js.map +1 -1
  36. package/dist/components/OwpPicker/OwpDateRangePicker.js +114 -118
  37. package/dist/components/OwpPicker/OwpDateRangePicker.js.map +1 -1
  38. package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
  39. package/dist/components/OwpPicker/OwpWeekDatePicker.js +152 -155
  40. package/dist/components/OwpPicker/OwpWeekDatePicker.js.map +1 -1
  41. package/dist/components/OwpPicker/constants/index.js.map +1 -1
  42. package/dist/components/OwpPicker/hooks/useOwpPickerPopperTransition.js.map +1 -1
  43. package/dist/components/OwpPicker/internal/OwpDatePickerCalendarHeader.js.map +1 -1
  44. package/dist/components/OwpPicker/utils/registerOwpDatePickerLocales.js +13 -0
  45. package/dist/components/OwpPicker/utils/registerOwpDatePickerLocales.js.map +1 -0
  46. package/dist/components/OwpQuerySelector/OwpQuerySelector.js +1 -1
  47. package/dist/components/OwpRequiredHelperText/OwpRequiredHelperText.js.map +1 -1
  48. package/dist/components/OwpSelectorBase/OwpSelectorSelect.js.map +1 -1
  49. package/dist/components/OwpSelectorBase/hooks/useOwpSelectorBase.js.map +1 -1
  50. package/dist/components/OwpSelectorBase/selectorBaseStyles.js.map +1 -1
  51. package/dist/components/OwpSnackbarContent/OwpSnackbarContent.js.map +1 -1
  52. package/dist/components/OwpStyleProvider/OwpStyleProvider.js.map +1 -1
  53. package/dist/components/OwpSuspense/OwpSuspense.js +1 -1
  54. package/dist/components/OwpTable/OwpDataTable.js +277 -270
  55. package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
  56. package/dist/components/OwpTable/OwpFieldTable.js +42 -43
  57. package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
  58. package/dist/components/OwpTable/OwpTable.js +54 -55
  59. package/dist/components/OwpTable/OwpTable.js.map +1 -1
  60. package/dist/components/OwpTable/internal/OwpTableBase.js +34 -35
  61. package/dist/components/OwpTable/internal/OwpTableBase.js.map +1 -1
  62. package/dist/components/OwpTable/internal/defaultTableStyle.js +18 -14
  63. package/dist/components/OwpTable/internal/defaultTableStyle.js.map +1 -1
  64. package/dist/components/OwpTable/internal/treeGridTableStyle.js.map +1 -1
  65. package/dist/components/OwpTabs/OwpTab.js.map +1 -1
  66. package/dist/components/OwpTabs/OwpTabs.js.map +1 -1
  67. package/dist/components/OwpTextField/OwpTextMaskField.js.map +1 -1
  68. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +271 -257
  69. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  70. package/dist/components/OwpTreeGrid/OwpTreeGridToolbar.js +43 -37
  71. package/dist/components/OwpTreeGrid/OwpTreeGridToolbar.js.map +1 -1
  72. package/dist/components/OwpTreeGrid/TreeGrid.js.map +1 -1
  73. package/dist/components/OwpTreeGrid/internal/OwpTreeGridErrorTooltip.js.map +1 -1
  74. package/dist/components/OwpTreeGrid/internal/OwpTreeGridScrollLoadingOverlay.js +41 -0
  75. package/dist/components/OwpTreeGrid/internal/OwpTreeGridScrollLoadingOverlay.js.map +1 -0
  76. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridAddedRowBoxOverlay.js.map +1 -1
  77. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +141 -144
  78. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
  79. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridErrorTooltip.js.map +1 -1
  80. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridOverlayFrame.js.map +1 -1
  81. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridScrollRenderLoading.js +161 -0
  82. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridScrollRenderLoading.js.map +1 -0
  83. package/dist/components/OwpTreeGrid/internal/treeGridLayout.js.map +1 -1
  84. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +842 -617
  85. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  86. package/dist/components/OwpTreeGrid/internal/treeGridSelection.js.map +1 -1
  87. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +353 -321
  88. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  89. package/dist/components/OwpTreeGrid/internal/utils/perf.js.map +1 -1
  90. package/dist/components/OwpTreeGridExportExcelButton/OwpTreeGridExportExcelButton.js.map +1 -1
  91. package/dist/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js +1 -1
  92. package/dist/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js.map +1 -1
  93. package/dist/components/OwpYesNoSelector/OwpYesNoSelector.js.map +1 -1
  94. package/dist/configs/defaultConfig.js.map +1 -1
  95. package/dist/constants/excel.js.map +1 -1
  96. package/dist/constants/gridTheme.js.map +1 -1
  97. package/dist/constants/language.js.map +1 -1
  98. package/dist/constants/localStorageKeys.js.map +1 -1
  99. package/dist/constants/table.js.map +1 -1
  100. package/dist/constants/tableTheme.js.map +1 -1
  101. package/dist/constants/treeGrid.js.map +1 -1
  102. package/dist/contexts/OwpAppContext.js +14 -0
  103. package/dist/contexts/OwpAppContext.js.map +1 -0
  104. package/dist/contexts/OwpAppProvider.js +20 -23
  105. package/dist/contexts/OwpAppProvider.js.map +1 -1
  106. package/dist/contexts/OwpCoreProvider.js.map +1 -1
  107. package/dist/contexts/OwpStoreProvider.js.map +1 -1
  108. package/dist/contexts/OwpUiProvider.js +1 -1
  109. package/dist/contexts/OwpUiProvider.js.map +1 -1
  110. package/dist/contexts.js +8 -7
  111. package/dist/contexts.js.map +1 -1
  112. package/dist/features/themePreview/components/ThemePreviewCanvas.js.map +1 -1
  113. package/dist/features/themePreview/components/ThemePreviewCanvasSections.js.map +1 -1
  114. package/dist/features/themePreview/components/ThemePreviewColorField.js.map +1 -1
  115. package/dist/features/themePreview/components/ThemePreviewControls.js.map +1 -1
  116. package/dist/features/themePreview/components/themePreviewCanvas.icons.js.map +1 -1
  117. package/dist/features/themePreview/components/themePreviewCanvas.shared.js.map +1 -1
  118. package/dist/features/themePreview/configs/grid.js.map +1 -1
  119. package/dist/features/themePreview/configs/presets.js.map +1 -1
  120. package/dist/features/themePreview/configs/previewStorage.js.map +1 -1
  121. package/dist/features/themePreview/configs/settings.js.map +1 -1
  122. package/dist/features/themePreview/configs/snackbar.js.map +1 -1
  123. package/dist/features/themePreview/configs/surface.js.map +1 -1
  124. package/dist/features/themePreview/configs/table.js.map +1 -1
  125. package/dist/features/themePreview/dialogs/ThemePreviewDialog.js.map +1 -1
  126. package/dist/features/themePreview/hooks/useThemePreview.js.map +1 -1
  127. package/dist/features/themePreview/utils/color.js.map +1 -1
  128. package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
  129. package/dist/features/themePreview/utils/themePreviewExport.js.map +1 -1
  130. package/dist/features/themePreview/utils/themePreviewSettings.js.map +1 -1
  131. package/dist/hooks/internal/useAccessTokenGuard.js +1 -1
  132. package/dist/hooks/internal/useAccessTokenGuard.js.map +1 -1
  133. package/dist/hooks/internal/useCurrentLanguage.js.map +1 -1
  134. package/dist/hooks/internal/useInitCommonCodes.js +1 -1
  135. package/dist/hooks/internal/useNavigationActiveRouteRemount.js +1 -1
  136. package/dist/hooks/useCommonCodeList.js.map +1 -1
  137. package/dist/hooks/useConfirm.js.map +1 -1
  138. package/dist/hooks/useCurrentUser.js.map +1 -1
  139. package/dist/hooks/useCurrentUserSeq.js.map +1 -1
  140. package/dist/hooks/useFormDataUploadMutation.js.map +1 -1
  141. package/dist/hooks/useInitApp.js +1 -1
  142. package/dist/hooks/useInitApp.js.map +1 -1
  143. package/dist/hooks/useStorage.js.map +1 -1
  144. package/dist/hooks/useTreeGridExcelExport.js.map +1 -1
  145. package/dist/layout/components/logo/Logo.js +1 -1
  146. package/dist/layout/components/navbar/NavbarToggleButton.js.map +1 -1
  147. package/dist/layout/components/navigation/NavItem.js.map +1 -1
  148. package/dist/layout/components/navigation/NavigationMenu.js.map +1 -1
  149. package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
  150. package/dist/layout/components/toggles/ThemePreviewToggle.js +1 -1
  151. package/dist/layout/components/toolbar/ToolbarLayout.js +1 -1
  152. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  153. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  154. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
  155. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  156. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
  157. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
  158. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
  159. package/dist/node_modules/.pnpm/react-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.js +1 -1
  160. package/dist/owp-app.css +1 -1
  161. package/dist/store/atoms/navbarAtoms.js.map +1 -1
  162. package/dist/store/atoms/owpSettingsAtoms.js.map +1 -1
  163. package/dist/store/atoms/owpStore.js.map +1 -1
  164. package/dist/types/components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.d.ts +2 -2
  165. package/dist/types/components/OwpBarcodeInput/OwpBarcodeInputField.d.ts +3 -2
  166. package/dist/types/components/OwpCommonCode/OwpCommonCodeQuerySelector.d.ts +28 -2
  167. package/dist/types/components/OwpCommonCode/OwpCommonCodeRadioGroup.d.ts +14 -2
  168. package/dist/types/components/OwpCommonCode/OwpCommonCodeSelector.d.ts +20 -2
  169. package/dist/types/components/OwpDialog/OwpAlertDialog.d.ts +18 -4
  170. package/dist/types/components/OwpDialog/OwpDialog.d.ts +19 -10
  171. package/dist/types/components/OwpDialogsProvider/OwpDialogsContext.d.ts +1 -0
  172. package/dist/types/components/OwpErrorStatusPage/OwpErrorStatusPage.d.ts +8 -0
  173. package/dist/types/components/OwpExportExcelButton/OwpExportExcelButton.d.ts +24 -6
  174. package/dist/types/components/OwpFieldHelperText/OwpFieldHelperText.d.ts +5 -0
  175. package/dist/types/components/OwpFilePickerButton/OwpFilePickerButton.d.ts +13 -6
  176. package/dist/types/components/OwpHidden/OwpHidden.d.ts +12 -0
  177. package/dist/types/components/OwpLanguageSwitcherSelect/OwpLanguageSwitcherSelect.d.ts +2 -1
  178. package/dist/types/components/OwpLayout/OwpLayout.d.ts +10 -4
  179. package/dist/types/components/OwpLoading/OwpLoading.d.ts +7 -1
  180. package/dist/types/components/OwpMoreActionsButton/OwpMoreActionsButton.d.ts +34 -7
  181. package/dist/types/components/OwpNavLinkAdapter/OwpNavLinkAdapter.d.ts +10 -5
  182. package/dist/types/components/OwpNumberField/OwpNumberField.d.ts +4 -4
  183. package/dist/types/components/OwpOptionSelector/OwpOptionSelector.d.ts +19 -2
  184. package/dist/types/components/OwpPageBreadcrumb/OwpPageBreadcrumb.d.ts +8 -0
  185. package/dist/types/components/OwpPageCarded/OwpPageCarded.d.ts +2 -4
  186. package/dist/types/components/OwpPageCarded/internal/OwpPageCardedHeader.d.ts +3 -3
  187. package/dist/types/components/OwpPageCarded/internal/OwpPageCardedSidebar.d.ts +1 -1
  188. package/dist/types/components/OwpPageCarded/internal/OwpPageCardedSidebarContent.d.ts +1 -1
  189. package/dist/types/components/OwpPageContent/OwpPageContent.d.ts +7 -7
  190. package/dist/types/components/OwpPageLockLoading/OwpPageLockLoading.d.ts +7 -3
  191. package/dist/types/components/OwpPageSkeleton/OwpPageSkeleton.d.ts +1 -1
  192. package/dist/types/components/OwpPageTitle/OwpPageTitle.d.ts +10 -6
  193. package/dist/types/components/OwpPicker/OwpDatePicker.d.ts +18 -11
  194. package/dist/types/components/OwpPicker/OwpDateRangePicker.d.ts +15 -10
  195. package/dist/types/components/OwpPicker/OwpTimePicker.d.ts +17 -12
  196. package/dist/types/components/OwpPicker/OwpWeekDatePicker.d.ts +17 -12
  197. package/dist/types/components/OwpPicker/constants/index.d.ts +15 -0
  198. package/dist/types/components/OwpPicker/hooks/useOwpPickerPopperTransition.d.ts +5 -1
  199. package/dist/types/components/OwpPicker/internal/CalendarContainer.d.ts +3 -3
  200. package/dist/types/components/OwpPicker/internal/DatePickerInput.d.ts +11 -11
  201. package/dist/types/components/OwpPicker/internal/OwpDatePickerCalendarHeader.d.ts +1 -0
  202. package/dist/types/components/OwpPicker/utils/registerOwpDatePickerLocales.d.ts +4 -0
  203. package/dist/types/components/OwpQuerySelector/OwpQuerySelector.d.ts +2 -2
  204. package/dist/types/components/OwpQuerySelector/types/types.d.ts +31 -0
  205. package/dist/types/components/OwpRequiredHelperText/OwpRequiredHelperText.d.ts +10 -6
  206. package/dist/types/components/OwpScrollbars/OwpScrollbars.d.ts +2 -2
  207. package/dist/types/components/OwpSearchFilter/OwpSearchFilter.d.ts +7 -7
  208. package/dist/types/components/OwpSection/OwpSection.d.ts +13 -13
  209. package/dist/types/components/OwpSelectorBase/OwpSelectorAutocomplete.d.ts +2 -2
  210. package/dist/types/components/OwpSelectorBase/OwpSelectorBase.d.ts +2 -2
  211. package/dist/types/components/OwpSelectorBase/OwpSelectorSelect.d.ts +2 -2
  212. package/dist/types/components/OwpSelectorBase/hooks/useOwpSelectorBase.d.ts +2 -2
  213. package/dist/types/components/OwpSelectorBase/selectorBaseStyles.d.ts +2 -0
  214. package/dist/types/components/OwpSelectorBase/types/types.d.ts +54 -1
  215. package/dist/types/components/OwpSelectorBase/utils/querySelectorUtils.d.ts +2 -2
  216. package/dist/types/components/OwpSnackbarContent/OwpSnackbarContent.d.ts +1 -0
  217. package/dist/types/components/OwpStyleProvider/OwpStyleProvider.d.ts +10 -5
  218. package/dist/types/components/OwpSuspense/OwpSuspense.d.ts +1 -1
  219. package/dist/types/components/OwpTable/OwpDataTable.d.ts +11 -11
  220. package/dist/types/components/OwpTable/OwpFieldTable.d.ts +13 -13
  221. package/dist/types/components/OwpTable/OwpTable.d.ts +7 -7
  222. package/dist/types/components/OwpTable/internal/OwpTableBase.d.ts +15 -2
  223. package/dist/types/components/OwpTable/internal/defaultTableStyle.d.ts +8 -0
  224. package/dist/types/components/OwpTable/internal/treeGridTableStyle.d.ts +4 -1
  225. package/dist/types/components/OwpTabs/OwpTab.d.ts +1 -3
  226. package/dist/types/components/OwpTabs/OwpTabs.d.ts +1 -3
  227. package/dist/types/components/OwpTextField/OwpTextMaskField.d.ts +7 -4
  228. package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +91 -15
  229. package/dist/types/components/OwpTreeGrid/OwpTreeGridToolbar.d.ts +10 -5
  230. package/dist/types/components/OwpTreeGrid/TreeGrid.d.ts +11 -7
  231. package/dist/types/components/OwpTreeGrid/internal/OwpTreeGridErrorTooltip.d.ts +6 -2
  232. package/dist/types/components/OwpTreeGrid/internal/OwpTreeGridScrollLoadingOverlay.d.ts +10 -0
  233. package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridAddedRowBoxOverlay.d.ts +6 -0
  234. package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridErrorTooltip.d.ts +8 -1
  235. package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridOverlayFrame.d.ts +7 -0
  236. package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridScrollRenderLoading.d.ts +14 -0
  237. package/dist/types/components/OwpTreeGrid/internal/treeGridLayout.d.ts +12 -0
  238. package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +38 -3
  239. package/dist/types/components/OwpTreeGrid/internal/treeGridSelection.d.ts +10 -1
  240. package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +18 -2
  241. package/dist/types/components/OwpTreeGrid/internal/utils/perf.d.ts +4 -3
  242. package/dist/types/components/OwpTreeGridExportExcelButton/OwpTreeGridExportExcelButton.d.ts +7 -3
  243. package/dist/types/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.d.ts +7 -3
  244. package/dist/types/components/OwpYesNoSelector/OwpYesNoSelector.d.ts +7 -6
  245. package/dist/types/components/OwpZoomImageSlider/OwpZoomImageSlider.d.ts +8 -8
  246. package/dist/types/configs/defaultConfig.d.ts +13 -7
  247. package/dist/types/configs/layoutConfig.d.ts +1 -0
  248. package/dist/types/constants/excel.d.ts +18 -0
  249. package/dist/types/constants/gridTheme.d.ts +10 -1
  250. package/dist/types/constants/language.d.ts +3 -0
  251. package/dist/types/constants/localStorageKeys.d.ts +7 -1
  252. package/dist/types/constants/storageKeys.d.ts +1 -1
  253. package/dist/types/constants/table.d.ts +3 -0
  254. package/dist/types/constants/tableTheme.d.ts +6 -2
  255. package/dist/types/constants/treeGrid.d.ts +19 -3
  256. package/dist/types/contexts/OwpAppContext.d.ts +164 -0
  257. package/dist/types/contexts/OwpAppProvider.d.ts +4 -81
  258. package/dist/types/contexts/OwpCoreProvider.d.ts +11 -7
  259. package/dist/types/contexts/OwpStoreProvider.d.ts +8 -4
  260. package/dist/types/contexts/OwpUiProvider.d.ts +9 -4
  261. package/dist/types/contexts/index.d.ts +1 -0
  262. package/dist/types/dayjs.d.ts +2 -2
  263. package/dist/types/features/themePreview/components/ThemePreviewCanvas.d.ts +4 -0
  264. package/dist/types/features/themePreview/components/ThemePreviewCanvasSections.d.ts +7 -0
  265. package/dist/types/features/themePreview/components/ThemePreviewColorField.d.ts +4 -0
  266. package/dist/types/features/themePreview/components/ThemePreviewControls.d.ts +4 -0
  267. package/dist/types/features/themePreview/components/themePreviewCanvas.icons.d.ts +1 -0
  268. package/dist/types/features/themePreview/components/themePreviewCanvas.shared.d.ts +81 -0
  269. package/dist/types/features/themePreview/configs/grid.d.ts +3 -0
  270. package/dist/types/features/themePreview/configs/presets.d.ts +12 -0
  271. package/dist/types/features/themePreview/configs/previewStorage.d.ts +44 -0
  272. package/dist/types/features/themePreview/configs/settings.d.ts +3 -0
  273. package/dist/types/features/themePreview/configs/snackbar.d.ts +23 -0
  274. package/dist/types/features/themePreview/configs/surface.d.ts +3 -0
  275. package/dist/types/features/themePreview/configs/table.d.ts +24 -0
  276. package/dist/types/features/themePreview/dialogs/ThemePreviewDialog.d.ts +4 -0
  277. package/dist/types/features/themePreview/hooks/useThemePreview.d.ts +4 -0
  278. package/dist/types/features/themePreview/types/themePreview.d.ts +59 -0
  279. package/dist/types/features/themePreview/utils/color.d.ts +25 -0
  280. package/dist/types/features/themePreview/utils/themePreviewDefinitions.d.ts +6 -0
  281. package/dist/types/features/themePreview/utils/themePreviewExport.d.ts +19 -0
  282. package/dist/types/features/themePreview/utils/themePreviewSettings.d.ts +84 -0
  283. package/dist/types/hooks/internal/useAccessTokenGuard.d.ts +7 -3
  284. package/dist/types/hooks/internal/useCurrentLanguage.d.ts +4 -3
  285. package/dist/types/hooks/internal/useHeaderWrapState.d.ts +1 -1
  286. package/dist/types/hooks/internal/useInitCommonCodes.d.ts +1 -1
  287. package/dist/types/hooks/internal/useNavbar.d.ts +2 -2
  288. package/dist/types/hooks/internal/useShortcuts.d.ts +2 -2
  289. package/dist/types/hooks/useCommonCodeList.d.ts +12 -4
  290. package/dist/types/hooks/useConfirm.d.ts +5 -1
  291. package/dist/types/hooks/useCurrentUser.d.ts +5 -2
  292. package/dist/types/hooks/useCurrentUserId.d.ts +2 -2
  293. package/dist/types/hooks/useCurrentUserSeq.d.ts +11 -4
  294. package/dist/types/hooks/useFormDataUploadMutation.d.ts +18 -3
  295. package/dist/types/hooks/useInitApp.d.ts +7 -3
  296. package/dist/types/hooks/useLogoSrc.d.ts +2 -2
  297. package/dist/types/hooks/useNavigation.d.ts +2 -2
  298. package/dist/types/hooks/useOwpSettings.d.ts +13 -13
  299. package/dist/types/hooks/useOwpTranslation.d.ts +1 -1
  300. package/dist/types/hooks/usePageLockLoading.d.ts +2 -2
  301. package/dist/types/hooks/useStorage.d.ts +10 -4
  302. package/dist/types/hooks/useTreeGridCommonCodeEnums.d.ts +4 -4
  303. package/dist/types/hooks/useTreeGridEnums.d.ts +6 -6
  304. package/dist/types/hooks/useTreeGridExcelExport.d.ts +4 -1
  305. package/dist/types/layout/Layout.d.ts +1 -1
  306. package/dist/types/layout/components/navbar/NavbarToggleButton.d.ts +5 -4
  307. package/dist/types/layout/components/navigation/NavItem.d.ts +9 -3
  308. package/dist/types/layout/components/navigation/NavigationMenu.d.ts +13 -8
  309. package/dist/types/store/atoms/navbarAtoms.d.ts +5 -1
  310. package/dist/types/store/atoms/owpSettingsAtoms.d.ts +60 -8
  311. package/dist/types/store/atoms/owpStore.d.ts +9 -2
  312. package/dist/types/types/OwpDialogTypes.d.ts +75 -0
  313. package/dist/types/types/OwpGridThemeTypes.d.ts +59 -0
  314. package/dist/types/types/OwpNavigationTypes.d.ts +29 -0
  315. package/dist/types/types/OwpRouteTypes.d.ts +10 -3
  316. package/dist/types/types/OwpSettingsTypes.d.ts +30 -0
  317. package/dist/types/types/OwpTableThemeTypes.d.ts +30 -0
  318. package/dist/types/types/ThemeFormConfigTypes.d.ts +5 -6
  319. package/dist/types/utils/commonCodeUtils.d.ts +18 -0
  320. package/dist/types/utils/createFormDataBody.d.ts +18 -0
  321. package/dist/types/utils/excelUtil.d.ts +5 -5
  322. package/dist/types/utils/getStartPagePath.d.ts +10 -0
  323. package/dist/types/utils/internal/exceljsBrowser.d.ts +1 -1
  324. package/dist/types/utils/internal/jszipBrowser.d.ts +1 -1
  325. package/dist/types/utils/internal/treeGridBodyRowsEvent.d.ts +4 -1
  326. package/dist/types/utils/isEnterKeyEvent.d.ts +2 -2
  327. package/dist/types/utils/preloadOnIdle.d.ts +1 -1
  328. package/dist/types/utils/rebuildValue.d.ts +8 -1
  329. package/dist/types/utils/treeGridExportExcelUtil.d.ts +6 -0
  330. package/dist/types/utils/treeGridUtil.d.ts +38 -1
  331. package/dist/types/utils/zipUtil.d.ts +14 -2
  332. package/dist/utils/commonCodeUtils.js.map +1 -1
  333. package/dist/utils/createFormDataBody.js.map +1 -1
  334. package/dist/utils/getStartPagePath.js.map +1 -1
  335. package/dist/utils/internal/treeGridBodyRowsEvent.js.map +1 -1
  336. package/dist/utils/rebuildValue.js.map +1 -1
  337. package/dist/utils/treeGridExportExcelUtil.js.map +1 -1
  338. package/dist/utils/treeGridUtil.js.map +1 -1
  339. package/dist/utils/zipUtil.js.map +1 -1
  340. package/package.json +1 -1
@@ -1,15 +1,15 @@
1
- var _n = Object.defineProperty;
2
- var i = (e, n) => _n(e, "name", { value: n, configurable: !0 });
3
- import { getTreeGridTextResourceUrl as mn, TREEGRID_CELL_CHANGED_CLASS as Xe, TREEGRID_ADDED_ROW_BACKGROUND_COLOR as Ln } from "../../../constants/treeGrid.js";
4
- import { isTreeGridRowAddedById as b, getTreeGridAddedRowHighlightColumns as q, getTreeGridAddedRowEditableColumns as _e, getTreeGridCellComparableValue as ue, clearTreeGridCellHighlightById as We, highlightTreeGridCellById as Je, normalizeTreeGridExternalRows as On, getTreeGridAddedRowBaselineValue as xn, removeTreeGridAddedRowHighlightColumn as In, appendTreeGridAddedRowHighlightColumn as bn } from "../../../utils/treeGridUtil.js";
5
- import { applyTreeGridLayoutToGrid as wn } from "./treeGridLayout.js";
6
- import { resolveTreeGridSelectedRows as Dn } from "./treeGridSelection.js";
7
- import { TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as yn, TREE_GRID_SELECT_ALL_CHECKED_CLASS as me, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as Le, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as Oe, TREE_GRID_SELECTED_CHANGED_CELL_CLASS as xe, TREE_GRID_THEME_WRAPPER_CLASS as Pn, TREE_GRID_ADDED_ROW_BOX_CELL_CLASS as vn, TREE_GRID_ERROR_CELL_CLASS as $n, TREE_GRID_ADDED_ROW_BOX_START_CLASS as Bn, TREE_GRID_ADDED_ROW_BOX_END_CLASS as Fn } from "./treeGridTheme.js";
8
- import { countTreeGridPerf as Ke, logTreeGridPerf as Nn, measureTreeGridPerf as je } from "./utils/perf.js";
9
- import { debounce as Y } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
10
- import { isEmpty as kn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
11
- import { get as Un } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
12
- const Br = 300, Vn = 3, Mn = {
1
+ var $n = Object.defineProperty;
2
+ var i = (e, n) => $n(e, "name", { value: n, configurable: !0 });
3
+ import { getTreeGridTextResourceUrl as Pn, TREEGRID_CELL_CHANGED_CLASS as Ye, TREEGRID_ADDED_ROW_BACKGROUND_COLOR as vn } from "../../../constants/treeGrid.js";
4
+ import { isTreeGridRowAddedById as w, getTreeGridAddedRowHighlightColumns as te, getTreeGridAddedRowEditableColumns as Oe, getTreeGridCellComparableValue as Ce, clearTreeGridCellHighlightById as Ze, highlightTreeGridCellById as qe, normalizeTreeGridExternalRows as Dn, getTreeGridAddedRowBaselineValue as Bn, removeTreeGridAddedRowHighlightColumn as Fn, appendTreeGridAddedRowHighlightColumn as Nn } from "../../../utils/treeGridUtil.js";
5
+ import { applyTreeGridLayoutToGrid as Un } from "./treeGridLayout.js";
6
+ import { resolveTreeGridSelectedRows as kn } from "./treeGridSelection.js";
7
+ import { TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as Mn, TREE_GRID_SELECT_ALL_CHECKED_CLASS as be, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as Ie, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as we, TREE_GRID_SELECTED_CHANGED_CELL_CLASS as ye, TREE_GRID_THEME_WRAPPER_CLASS as Vn, TREE_GRID_ADDED_ROW_BOX_CELL_CLASS as Xn, TREE_GRID_ERROR_CELL_CLASS as Jn, TREE_GRID_ADDED_ROW_BOX_START_CLASS as Wn, TREE_GRID_ADDED_ROW_BOX_END_CLASS as jn } from "./treeGridTheme.js";
8
+ import { countTreeGridPerf as Qe, logTreeGridPerf as Kn, measureTreeGridPerf as en } from "./utils/perf.js";
9
+ import { debounce as ee } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
10
+ import { isEmpty as Hn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
11
+ import { get as zn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
12
+ const li = 300, Yn = 3, Zn = {
13
13
  1: {
14
14
  onEnter: "TabDownEdit",
15
15
  onEnterEdit: "AcceptEdit AND TabDownEdit,1"
@@ -26,37 +26,60 @@ const Br = 300, Vn = 3, Mn = {
26
26
  onEnter: "TabRightEditAdd",
27
27
  onEnterEdit: "AcceptEdit AND TabRightEditAdd,1"
28
28
  }
29
- }, Xn = [240, 240, 240], Wn = [248, 248, 248], Jn = [255, 255, 255], Kn = [255, 255, 254], jn = [242, 242, 242], Hn = [
29
+ }, qn = [240, 240, 240], Qn = [248, 248, 248], et = [255, 255, 255], nt = [255, 255, 254], tt = [242, 242, 242], rt = [
30
30
  [255, 210, 210],
31
31
  [249, 209, 209],
32
32
  [115, 16, 11]
33
- ], zn = "transparent", Ie = "Button", Yn = /* @__PURE__ */ new Set(["Panel"]), be = Xe.split(/\s+/).filter(
33
+ ], it = "transparent", $e = "Button", st = /* @__PURE__ */ new Set(["Panel"]), Pe = Ye.split(/\s+/).filter(
34
34
  Boolean
35
- ), Zn = /* @__PURE__ */ new Set([
35
+ ), ot = /* @__PURE__ */ new Set([
36
36
  "Text",
37
37
  "Lines",
38
38
  "Int",
39
39
  "Float",
40
40
  "Date",
41
41
  "Pass"
42
- ]), we = /* @__PURE__ */ i((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), qn = {
42
+ ]), ve = /* @__PURE__ */ i((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), ct = {
43
+ CustomScroll: "1",
44
+ TouchScroll: "1"
45
+ }, lt = {
43
46
  Visible: "1",
44
47
  CanHide: "0",
45
48
  Delete: "1",
46
49
  Width: "33"
47
- }, Qn = {
50
+ }, dt = {
48
51
  Spanned: "1"
49
- }, W = {
52
+ }, H = {
50
53
  OnClickCell: "Focus"
51
- }, J = {
54
+ }, z = {
52
55
  OnClickPanelSelectAll: "SelectAll OR DeselectAll"
53
- }, He = "Panel", ze = ["Formula", "FormulaFormula"], et = /<Grid\b[^>]*>/i, nt = /<\/Grid\s*>/i, tt = /<Toolbar\b[^>]*\/?>/i, rt = [
56
+ }, I = {
57
+ LoadPage: "",
58
+ RenderPage: "",
59
+ RenderProgressText: ""
60
+ }, U = {
61
+ EditFrom: "",
62
+ EditTo: "#OwpSoftChange 240ms",
63
+ ChangeFrom: "",
64
+ ChangeTo: "#OwpSoftChange 240ms",
65
+ UndoChangeFrom: "",
66
+ UndoChangeTo: "#OwpSoftRevert 280ms",
67
+ RedoChangeFrom: "",
68
+ RedoChangeTo: "#OwpSoftChange 240ms"
69
+ }, nn = "Panel", tn = ["Formula", "FormulaFormula"], ut = /<Grid\b[^>]*>/i, ft = /<\/Grid\s*>/i, at = /<Toolbar\b[^>]*\/?>/i, Tt = [
70
+ "CustomScroll",
71
+ "CustomHScroll",
54
72
  "Undo",
55
73
  "Deleting",
56
74
  "Selecting",
57
75
  "SelectingSingle",
58
- "SuppressCfg"
59
- ], it = {
76
+ "SuppressCfg",
77
+ "TouchScroll"
78
+ ], rn = [
79
+ "CustomScroll",
80
+ "CustomHScroll",
81
+ "TouchScroll"
82
+ ], Ct = {
60
83
  addRow: ["Add", "AddRows", "AddChildren", "AddRowsChildren"],
61
84
  deleteRow: [
62
85
  "Delete",
@@ -77,80 +100,100 @@ const Br = 300, Vn = 3, Mn = {
77
100
  "UndeleteVisibleRowsChildren"
78
101
  ],
79
102
  selectRow: ["Select", "SelectRows", "Deselect", "DeselectRows"]
80
- }, Q = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ i((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), y = /* @__PURE__ */ i((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), ee = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), ot = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitHiddenConfigValue"), N = /* @__PURE__ */ i((e, n) => String(e ?? "").trim().toLowerCase() === n.toLowerCase(), "isTreeGridConfigValue"), fe = /* @__PURE__ */ i((e, n) => !y(e) && !ee(n), "isTreeGridCheckboxSelectionMode"), Ye = /* @__PURE__ */ i((e) => {
103
+ }, re = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ i((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), De = /* @__PURE__ */ i((e, n) => {
104
+ Object.entries(n).forEach(([t, r]) => {
105
+ t in e || (e[t] = r);
106
+ });
107
+ }, "assignMissingTreeGridJsonRecordFields"), P = /* @__PURE__ */ i((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), ie = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), Et = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitHiddenConfigValue"), M = /* @__PURE__ */ i((e, n) => String(e ?? "").trim().toLowerCase() === n.toLowerCase(), "isTreeGridConfigValue"), Ee = /* @__PURE__ */ i((e, n) => !P(e) && !ie(n), "isTreeGridCheckboxSelectionMode"), sn = /* @__PURE__ */ i((e) => {
81
108
  const n = e.Cfg;
82
- return Array.isArray(n) ? n.filter(g) : g(n) ? [n] : [];
83
- }, "getTreeGridJsonCfgRecords"), ne = /* @__PURE__ */ i((e, n) => {
109
+ return Array.isArray(n) ? n.filter(S) : S(n) ? [n] : [];
110
+ }, "getTreeGridJsonCfgRecords"), Z = /* @__PURE__ */ i((e, n) => {
84
111
  let t;
85
- return Ye(e).forEach((r) => {
112
+ return sn(e).forEach((r) => {
86
113
  n in r && (t = r[n]);
87
114
  }), t;
88
- }, "getTreeGridJsonCfgValue"), Ze = /* @__PURE__ */ i((e, n) => {
115
+ }, "getTreeGridJsonCfgValue"), pt = /* @__PURE__ */ i((e, n) => {
116
+ const t = {};
117
+ return n.forEach((r) => {
118
+ const s = Z(e, r);
119
+ s !== void 0 && (t[r] = s);
120
+ }), t;
121
+ }, "getTreeGridJsonCfgValues"), St = /* @__PURE__ */ i((e) => String(e).trim() === "1", "isTreeGridStandardScrollbarValue"), Gt = /* @__PURE__ */ i((e) => rn.every((n) => {
122
+ const t = e[n];
123
+ return t === void 0 || St(t);
124
+ }), "canApplyTreeGridStableScrollbarDefaults"), on = /* @__PURE__ */ i((e) => {
125
+ const n = {};
126
+ return Gt(e) && Object.entries(ct).forEach(
127
+ ([t, r]) => {
128
+ e[t] === void 0 && (n[t] = r);
129
+ }
130
+ ), n;
131
+ }, "getTreeGridStableScrollbarDefaultAttributes"), cn = /* @__PURE__ */ i((e) => Object.keys(e).length > 0, "hasTreeGridDefaultAttributes"), ln = /* @__PURE__ */ i((e, n) => {
89
132
  const t = new RegExp(`\\b${n}\\s*=\\s*(['"])(.*?)\\1`, "i").exec(
90
133
  e
91
134
  );
92
135
  return t == null ? void 0 : t[2];
93
- }, "getTreeGridXmlTagAttributeValue"), F = /* @__PURE__ */ i((e, n) => new RegExp(`\\b${n}\\s*=`, "i").test(e), "hasTreeGridXmlTagAttribute"), qe = /* @__PURE__ */ i((e) => String(e).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), "escapeTreeGridXmlAttributeValue"), k = /* @__PURE__ */ i((e, n, t) => {
136
+ }, "getTreeGridXmlTagAttributeValue"), k = /* @__PURE__ */ i((e, n) => new RegExp(`\\b${n}\\s*=`, "i").test(e), "hasTreeGridXmlTagAttribute"), dn = /* @__PURE__ */ i((e) => String(e).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), "escapeTreeGridXmlAttributeValue"), V = /* @__PURE__ */ i((e, n, t) => {
94
137
  const r = e.endsWith("/>") ? e.length - 2 : e.length - 1;
95
- return `${e.slice(0, r)} ${n}="${qe(
138
+ return `${e.slice(0, r)} ${n}="${dn(
96
139
  t
97
140
  )}"${e.slice(r)}`;
98
- }, "appendTreeGridXmlTagAttribute"), te = /* @__PURE__ */ i((e, n, t) => F(e, n) ? e.replace(
141
+ }, "appendTreeGridXmlTagAttribute"), se = /* @__PURE__ */ i((e, n, t) => k(e, n) ? e.replace(
99
142
  new RegExp(`\\b${n}\\s*=\\s*(['"])(.*?)\\1`, "i"),
100
- () => `${n}="${qe(t)}"`
101
- ) : k(e, n, t), "setTreeGridXmlTagAttribute"), Qe = /* @__PURE__ */ i((e, n) => {
143
+ () => `${n}="${dn(t)}"`
144
+ ) : V(e, n, t), "setTreeGridXmlTagAttribute"), X = /* @__PURE__ */ i((e, n) => {
102
145
  let t = e;
103
- return Object.entries(n).forEach(([r, o]) => {
104
- t = te(t, r, o);
146
+ return Object.entries(n).forEach(([r, s]) => {
147
+ t = se(t, r, s);
105
148
  }), t;
106
- }, "setTreeGridXmlTagAttributes"), j = /* @__PURE__ */ i((e, n) => {
149
+ }, "setTreeGridXmlTagAttributes"), v = /* @__PURE__ */ i((e, n) => {
107
150
  let t = e;
108
- return Object.entries(n).forEach(([r, o]) => {
109
- F(t, r) || (t = k(t, r, o));
151
+ return Object.entries(n).forEach(([r, s]) => {
152
+ k(t, r) || (t = V(t, r, s));
110
153
  }), t;
111
- }, "appendMissingTreeGridXmlTagAttributes"), I = /* @__PURE__ */ i((e) => {
112
- var a;
154
+ }, "appendMissingTreeGridXmlTagAttributes"), L = /* @__PURE__ */ i((e) => {
155
+ var f;
113
156
  const n = /<!--[\s\S]*?-->|<\?[\s\S]*?\?>|<!\[CDATA\[[\s\S]*?\]\]>|<\/?([A-Za-z][\w:-]*)\b[^>]*>/g, t = {
114
157
  cfgValues: {}
115
158
  };
116
- let r, o = 0, c = !1;
159
+ let r, s = 0, c = !1;
117
160
  for (; r = n.exec(e); ) {
118
- const f = r[0], T = (a = r[1]) == null ? void 0 : a.toLowerCase();
119
- if (!T || f.startsWith("<!--") || f.startsWith("<?") || f.startsWith("<!"))
161
+ const a = r[0], T = (f = r[1]) == null ? void 0 : f.toLowerCase();
162
+ if (!T || a.startsWith("<!--") || a.startsWith("<?") || a.startsWith("<!"))
120
163
  continue;
121
- !t.hasFastPanel && F(f, "FastPanel") && (t.hasFastPanel = !0);
122
- const G = f.startsWith("</"), S = /\/>\s*$/.test(f);
164
+ !t.hasFastPanel && k(a, "FastPanel") && (t.hasFastPanel = !0);
165
+ const G = a.startsWith("</"), g = /\/>\s*$/.test(a);
123
166
  if (!c) {
124
- !G && T === "grid" && (c = !0, t.gridOpenTagEndIndex = r.index + f.length, o = S ? 0 : 1);
167
+ !G && T === "grid" && (c = !0, t.gridOpenTagEndIndex = r.index + a.length, s = g ? 0 : 1);
125
168
  continue;
126
169
  }
127
170
  if (G) {
128
- if (o = Math.max(0, o - 1), T === "grid" && o === 0)
171
+ if (s = Math.max(0, s - 1), T === "grid" && s === 0)
129
172
  break;
130
173
  continue;
131
174
  }
132
- o === 1 && (T === "cfg" ? (t.defaultCfgTag || (t.defaultCfgTag = {
175
+ s === 1 && (T === "cfg" ? (t.defaultCfgTag || (t.defaultCfgTag = {
133
176
  index: r.index,
134
- tag: f
135
- }), rt.forEach((R) => {
136
- const m = Ze(f, R);
177
+ tag: a
178
+ }), Tt.forEach((R) => {
179
+ const m = ln(a, R);
137
180
  m !== void 0 && (t.cfgValues[R] = m);
138
- }), t.lastCfgEndIndex = r.index + f.length) : T === "actions" && !t.defaultActionsTag ? t.defaultActionsTag = {
181
+ }), t.lastCfgEndIndex = r.index + a.length) : T === "actions" && !t.defaultActionsTag ? t.defaultActionsTag = {
139
182
  index: r.index,
140
- tag: f
141
- } : T === "panel" ? (t.hasTopLevelPanelTag = !0, !t.defaultPanelTag && st(f) && (t.defaultPanelTag = {
183
+ tag: a
184
+ } : T === "panel" ? (t.hasTopLevelPanelTag = !0, !t.defaultPanelTag && gt(a) && (t.defaultPanelTag = {
142
185
  index: r.index,
143
- tag: f
186
+ tag: a
144
187
  })) : T === "animations" && !t.animationsTag && (t.animationsTag = {
145
188
  index: r.index,
146
- tag: f
147
- })), S || (o += 1);
189
+ tag: a
190
+ })), g || (s += 1);
148
191
  }
149
192
  return t;
150
- }, "scanTreeGridXmlDefaultLayout"), st = /* @__PURE__ */ i((e) => {
151
- const n = Ze(e, "Name");
193
+ }, "scanTreeGridXmlDefaultLayout"), gt = /* @__PURE__ */ i((e) => {
194
+ const n = ln(e, "Name");
152
195
  return n === void 0 || n === "" || n.toLowerCase() === "panel";
153
- }, "isTreeGridXmlDefaultPanelTag"), ct = /* @__PURE__ */ i((e) => {
196
+ }, "isTreeGridXmlDefaultPanelTag"), ht = /* @__PURE__ */ i((e) => {
154
197
  const n = /<([A-Za-z][\w:-]*)\b[^>]*(?:\/>|>)/g, t = [];
155
198
  let r;
156
199
  for (; r = n.exec(e); ) {
@@ -165,110 +208,110 @@ const Br = 300, Vn = 3, Mn = {
165
208
  });
166
209
  }
167
210
  return t;
168
- }, "getLeadingTreeGridXmlHeaderTags"), lt = /* @__PURE__ */ i((e) => {
169
- const n = ct(e);
211
+ }, "getLeadingTreeGridXmlHeaderTags"), Rt = /* @__PURE__ */ i((e) => {
212
+ const n = ht(e);
170
213
  if (n.length <= 1)
171
214
  return {
172
215
  headContent: e,
173
216
  isApplied: !1
174
217
  };
175
218
  const [t, ...r] = n;
176
- if (F(t.tag, "PanelRowSpan") || r.some(({ tag: c }) => /\bPanel[A-Za-z0-9_]*\s*=/i.test(c)))
219
+ if (k(t.tag, "PanelRowSpan") || r.some(({ tag: c }) => /\bPanel[A-Za-z0-9_]*\s*=/i.test(c)))
177
220
  return {
178
221
  headContent: e,
179
222
  isApplied: !1
180
223
  };
181
- let o = t.tag;
182
- return F(o, "Spanned") || (o = k(o, "Spanned", 1)), o = k(
183
- o,
224
+ let s = t.tag;
225
+ return k(s, "Spanned") || (s = V(s, "Spanned", 1)), s = V(
226
+ s,
184
227
  "PanelRowSpan",
185
228
  n.length
186
229
  ), {
187
- headContent: `${e.slice(0, t.index)}${o}${e.slice(
230
+ headContent: `${e.slice(0, t.index)}${s}${e.slice(
188
231
  t.index + t.tag.length
189
232
  )}`,
190
233
  isApplied: !0
191
234
  };
192
- }, "applyTreeGridXmlHeadPanelRowSpanDefault"), dt = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlPanelSpannedInsertionIndex"), en = /* @__PURE__ */ i((e) => sn(e.cfgValues) && (!!e.defaultPanelTag || !e.hasTopLevelPanelTag), "isTreeGridXmlSelectionPanelSpannedDefaultLayout"), nn = /* @__PURE__ */ i((e) => en(e) || cn(e.cfgValues), "isTreeGridXmlPanelSpannedDefaultLayout"), tn = /* @__PURE__ */ i((e, n) => {
193
- if (n.gridOpenTagEndIndex === void 0 || !nn(n))
235
+ }, "applyTreeGridXmlHeadPanelRowSpanDefault"), At = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlPanelSpannedInsertionIndex"), un = /* @__PURE__ */ i((e) => En(e.cfgValues) && (!!e.defaultPanelTag || !e.hasTopLevelPanelTag), "isTreeGridXmlSelectionPanelSpannedDefaultLayout"), fn = /* @__PURE__ */ i((e) => un(e) || pn(e.cfgValues), "isTreeGridXmlPanelSpannedDefaultLayout"), an = /* @__PURE__ */ i((e, n) => {
236
+ if (n.gridOpenTagEndIndex === void 0 || !fn(n))
194
237
  return e;
195
238
  const t = n.defaultPanelTag;
196
239
  if (t) {
197
- const o = j(
240
+ const s = v(
198
241
  t.tag,
199
- Qn
242
+ dt
200
243
  );
201
- return o === t.tag ? e : `${e.slice(0, t.index)}${o}${e.slice(
244
+ return s === t.tag ? e : `${e.slice(0, t.index)}${s}${e.slice(
202
245
  t.index + t.tag.length
203
246
  )}`;
204
247
  }
205
- const r = dt(n);
248
+ const r = At(n);
206
249
  return r === void 0 ? e : `${e.slice(0, r)}
207
250
  <Panel Spanned="1" />${e.slice(
208
251
  r
209
252
  )}`;
210
- }, "applyTreeGridXmlDefaultPanelSpannedLayout"), ut = /* @__PURE__ */ i((e, n) => en(n) ? tn(e, n) : e, "applyTreeGridXmlDefaultSelectionPanelSpannedLayout"), ft = /* @__PURE__ */ i((e) => {
253
+ }, "applyTreeGridXmlDefaultPanelSpannedLayout"), _t = /* @__PURE__ */ i((e, n) => un(n) ? an(e, n) : e, "applyTreeGridXmlDefaultSelectionPanelSpannedLayout"), mt = /* @__PURE__ */ i((e) => {
211
254
  const n = e.trim();
212
- return !n || n.startsWith("{") ? e : ut(
255
+ return !n || n.startsWith("{") ? e : _t(
213
256
  e,
214
- I(e)
257
+ L(e)
215
258
  );
216
- }, "applyTreeGridDefaultPanelSpannedLayout"), at = /* @__PURE__ */ i((e) => {
259
+ }, "applyTreeGridDefaultPanelSpannedLayout"), Lt = /* @__PURE__ */ i((e) => {
217
260
  if (!/<Head\b/i.test(e))
218
261
  return e;
219
- const n = I(e);
220
- if (n.gridOpenTagEndIndex === void 0 || !nn(n))
262
+ const n = L(e);
263
+ if (n.gridOpenTagEndIndex === void 0 || !fn(n))
221
264
  return e;
222
265
  let t = !1;
223
266
  const r = e.replace(
224
267
  /(<Head\b[^>]*>)([\s\S]*?)(<\/Head>)/i,
225
- (o, c, a, f) => {
226
- const T = lt(a);
227
- return T.isApplied ? (t = !0, `${c}${T.headContent}${f}`) : o;
268
+ (s, c, f, a) => {
269
+ const T = Rt(f);
270
+ return T.isApplied ? (t = !0, `${c}${T.headContent}${a}`) : s;
228
271
  }
229
272
  );
230
- return t ? tn(
273
+ return t ? an(
231
274
  r,
232
- I(r)
275
+ L(r)
233
276
  ) : e;
234
- }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), rn = /* @__PURE__ */ i((e) => fe(
235
- ne(e, "Selecting"),
236
- ne(e, "SelectingSingle")
237
- ), "isTreeGridJsonCheckboxSelectionLayout"), on = /* @__PURE__ */ i((e) => fe(
277
+ }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), Tn = /* @__PURE__ */ i((e) => Ee(
278
+ Z(e, "Selecting"),
279
+ Z(e, "SelectingSingle")
280
+ ), "isTreeGridJsonCheckboxSelectionLayout"), Cn = /* @__PURE__ */ i((e) => Ee(
238
281
  e.Selecting,
239
282
  e.SelectingSingle
240
- ), "isTreeGridXmlCheckboxSelectionLayout"), sn = /* @__PURE__ */ i((e) => !y(e.Selecting), "isTreeGridXmlSelectingLayout"), cn = /* @__PURE__ */ i((e) => N(e.Undo, "1") && N(e.Deleting, "2") && N(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), Tt = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), Ct = /* @__PURE__ */ i((e, n) => {
241
- if (n.gridOpenTagEndIndex === void 0 || !sn(n.cfgValues) || /\bOnClickCell\s*=/i.test(e))
283
+ ), "isTreeGridXmlCheckboxSelectionLayout"), En = /* @__PURE__ */ i((e) => !P(e.Selecting), "isTreeGridXmlSelectingLayout"), pn = /* @__PURE__ */ i((e) => M(e.Undo, "1") && M(e.Deleting, "2") && M(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), xt = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), Ot = /* @__PURE__ */ i((e, n) => {
284
+ if (n.gridOpenTagEndIndex === void 0 || !En(n.cfgValues) || /\bOnClickCell\s*=/i.test(e))
242
285
  return e;
243
286
  const t = n.defaultActionsTag;
244
287
  if (t) {
245
- const o = j(
288
+ const s = v(
246
289
  t.tag,
247
- W
290
+ H
248
291
  );
249
- return o === t.tag ? e : `${e.slice(0, t.index)}${o}${e.slice(
292
+ return s === t.tag ? e : `${e.slice(0, t.index)}${s}${e.slice(
250
293
  t.index + t.tag.length
251
294
  )}`;
252
295
  }
253
- const r = Tt(n);
296
+ const r = xt(n);
254
297
  return r === void 0 ? e : `${e.slice(0, r)}
255
298
  <Actions OnClickCell="Focus" />${e.slice(
256
299
  r
257
300
  )}`;
258
- }, "applyTreeGridXmlDefaultCellClickActionLayout"), Et = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlSelectAllPanelActionInsertionIndex"), pt = /* @__PURE__ */ i((e, n) => {
259
- if (n.gridOpenTagEndIndex === void 0 || !on(n.cfgValues) || /\bOnClickPanelSelectAll\s*=/i.test(e))
301
+ }, "applyTreeGridXmlDefaultCellClickActionLayout"), bt = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlSelectAllPanelActionInsertionIndex"), It = /* @__PURE__ */ i((e, n) => {
302
+ if (n.gridOpenTagEndIndex === void 0 || !Cn(n.cfgValues) || /\bOnClickPanelSelectAll\s*=/i.test(e))
260
303
  return e;
261
304
  const t = n.defaultActionsTag;
262
305
  if (t) {
263
- const o = j(
306
+ const s = v(
264
307
  t.tag,
265
- J
308
+ z
266
309
  );
267
- return o === t.tag ? e : `${e.slice(0, t.index)}${o}${e.slice(
310
+ return s === t.tag ? e : `${e.slice(0, t.index)}${s}${e.slice(
268
311
  t.index + t.tag.length
269
312
  )}`;
270
313
  }
271
- const r = Et(n);
314
+ const r = bt(n);
272
315
  return r === void 0 ? e : `${e.slice(
273
316
  0,
274
317
  r
@@ -276,216 +319,390 @@ const Br = 300, Vn = 3, Mn = {
276
319
  <Actions OnClickPanelSelectAll="SelectAll OR DeselectAll" />${e.slice(
277
320
  r
278
321
  )}`;
279
- }, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"), Gt = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlDeletePanelInsertionIndex"), St = /* @__PURE__ */ i((e, n) => {
280
- if (n.gridOpenTagEndIndex === void 0 || !cn(n.cfgValues))
322
+ }, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"), wt = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlDeletePanelInsertionIndex"), yt = /* @__PURE__ */ i((e, n) => {
323
+ if (n.gridOpenTagEndIndex === void 0 || !pn(n.cfgValues))
281
324
  return e;
282
325
  const t = n.defaultPanelTag;
283
326
  if (t) {
284
- const c = j(
327
+ const c = v(
285
328
  t.tag,
286
- qn
329
+ lt
287
330
  );
288
331
  return c === t.tag ? e : `${e.slice(0, t.index)}${c}${e.slice(
289
332
  t.index + t.tag.length
290
333
  )}`;
291
334
  }
292
- const r = Gt(n);
335
+ const r = wt(n);
293
336
  return r === void 0 ? e : `${e.slice(0, r)}
294
337
  <Panel Visible="1" CanHide="0" Delete="1" Width="33" />${e.slice(
295
338
  r
296
339
  )}`;
297
- }, "applyTreeGridXmlDefaultDeletePanelLayout"), ht = /* @__PURE__ */ i((e, n) => {
298
- if (n.hasFastPanel || !on(n.cfgValues))
340
+ }, "applyTreeGridXmlDefaultDeletePanelLayout"), $t = /* @__PURE__ */ i((e, n) => {
341
+ if (n.hasFastPanel || !Cn(n.cfgValues))
299
342
  return e;
300
343
  const t = n.gridOpenTagEndIndex;
301
344
  return t === void 0 ? e : `${e.slice(0, t)}
302
345
  <Cfg FastPanel="0" />${e.slice(
303
346
  t
304
347
  )}`;
305
- }, "applyTreeGridXmlDefaultFastPanelLayout"), Rt = /* @__PURE__ */ i((e) => {
348
+ }, "applyTreeGridXmlDefaultFastPanelLayout"), Pt = /* @__PURE__ */ i((e) => {
306
349
  const n = e.Cfg;
307
350
  if (Array.isArray(n)) {
308
- n.some((t) => g(t) && "FastPanel" in t) || (e.Cfg = [{ FastPanel: 0 }, ...n]);
351
+ n.some((t) => S(t) && "FastPanel" in t) || (e.Cfg = [{ FastPanel: 0 }, ...n]);
309
352
  return;
310
353
  }
311
- if (g(n)) {
354
+ if (S(n)) {
312
355
  "FastPanel" in n || (n.FastPanel = 0);
313
356
  return;
314
357
  }
315
358
  e.Cfg = { FastPanel: 0 };
316
- }, "applyTreeGridJsonFastPanelDefault"), At = /* @__PURE__ */ i((e) => {
359
+ }, "applyTreeGridJsonFastPanelDefault"), vt = /* @__PURE__ */ i((e) => {
317
360
  const n = e.Actions;
318
361
  if (Array.isArray(n)) {
319
362
  n.some(
320
- (t) => g(t) && "OnClickPanelSelectAll" in t
321
- ) || (e.Actions = [{ ...J }, ...n]);
363
+ (t) => S(t) && "OnClickPanelSelectAll" in t
364
+ ) || (e.Actions = [{ ...z }, ...n]);
322
365
  return;
323
366
  }
324
- if (g(n)) {
325
- "OnClickPanelSelectAll" in n || (n.OnClickPanelSelectAll = J.OnClickPanelSelectAll);
367
+ if (S(n)) {
368
+ "OnClickPanelSelectAll" in n || (n.OnClickPanelSelectAll = z.OnClickPanelSelectAll);
326
369
  return;
327
370
  }
328
- n === void 0 && (e.Actions = { ...J });
329
- }, "applyTreeGridJsonSelectAllPanelActionDefault"), gt = /* @__PURE__ */ i((e) => {
371
+ n === void 0 && (e.Actions = { ...z });
372
+ }, "applyTreeGridJsonSelectAllPanelActionDefault"), Dt = /* @__PURE__ */ i((e) => {
330
373
  const n = e.Actions;
331
374
  if (Array.isArray(n)) {
332
- n.some((t) => g(t) && "OnClickCell" in t) || (e.Actions = [{ ...W }, ...n]);
375
+ n.some((t) => S(t) && "OnClickCell" in t) || (e.Actions = [{ ...H }, ...n]);
333
376
  return;
334
377
  }
335
- if (g(n)) {
336
- "OnClickCell" in n || (n.OnClickCell = W.OnClickCell);
378
+ if (S(n)) {
379
+ "OnClickCell" in n || (n.OnClickCell = H.OnClickCell);
337
380
  return;
338
381
  }
339
- n === void 0 && (e.Actions = { ...W });
340
- }, "applyTreeGridJsonCellClickActionDefault"), _t = /* @__PURE__ */ i((e) => {
382
+ n === void 0 && (e.Actions = { ...H });
383
+ }, "applyTreeGridJsonCellClickActionDefault"), Bt = /* @__PURE__ */ i((e) => {
341
384
  try {
342
385
  const n = JSON.parse(e);
343
- return !g(n) || y(ne(n, "Selecting")) ? e : (gt(n), JSON.stringify(n));
386
+ return !S(n) || P(Z(n, "Selecting")) ? e : (Dt(n), JSON.stringify(n));
344
387
  } catch {
345
388
  return e;
346
389
  }
347
- }, "applyTreeGridJsonDefaultCellClickActionLayout"), De = /* @__PURE__ */ i((e, n) => {
390
+ }, "applyTreeGridJsonDefaultCellClickActionLayout"), Be = /* @__PURE__ */ i((e, n) => {
348
391
  const t = e.trim();
349
- return t ? t.startsWith("{") ? _t(e) : Ct(
392
+ return t ? t.startsWith("{") ? Bt(e) : Ot(
350
393
  e,
351
- n ?? I(e)
394
+ n ?? L(e)
352
395
  ) : e;
353
- }, "applyTreeGridDefaultCellClickActionLayout"), mt = /* @__PURE__ */ i((e) => {
396
+ }, "applyTreeGridDefaultCellClickActionLayout"), Ft = /* @__PURE__ */ i((e) => {
354
397
  try {
355
398
  const n = JSON.parse(e);
356
- return !g(n) || !rn(n) ? e : (At(n), JSON.stringify(n));
399
+ return !S(n) || !Tn(n) ? e : (vt(n), JSON.stringify(n));
357
400
  } catch {
358
401
  return e;
359
402
  }
360
- }, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), ye = /* @__PURE__ */ i((e, n) => {
403
+ }, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), Fe = /* @__PURE__ */ i((e, n) => {
361
404
  const t = e.trim();
362
- return t ? t.startsWith("{") ? mt(e) : pt(
405
+ return t ? t.startsWith("{") ? Ft(e) : It(
406
+ e,
407
+ n ?? L(e)
408
+ ) : e;
409
+ }, "applyTreeGridDefaultSelectAllPanelActionLayout"), Nt = /* @__PURE__ */ i((e) => {
410
+ const n = on(
411
+ pt(e, rn)
412
+ );
413
+ if (!cn(n))
414
+ return;
415
+ const t = e.Cfg;
416
+ if (Array.isArray(t)) {
417
+ const r = t.find(S);
418
+ r ? Object.assign(r, n) : e.Cfg = [n, ...t];
419
+ return;
420
+ }
421
+ if (S(t)) {
422
+ Object.assign(t, n);
423
+ return;
424
+ }
425
+ e.Cfg = n;
426
+ }, "applyTreeGridJsonStableScrollbarDefaults"), Ut = /* @__PURE__ */ i((e) => {
427
+ try {
428
+ const n = JSON.parse(e);
429
+ return S(n) ? (Nt(n), JSON.stringify(n)) : e;
430
+ } catch {
431
+ return e;
432
+ }
433
+ }, "applyTreeGridJsonStableScrollbarDefaultLayout"), kt = /* @__PURE__ */ i((e, n) => {
434
+ const t = on(
435
+ n.cfgValues
436
+ );
437
+ if (!cn(t))
438
+ return e;
439
+ const r = n.defaultCfgTag;
440
+ if (r) {
441
+ const f = v(
442
+ r.tag,
443
+ t
444
+ );
445
+ return `${e.slice(0, r.index)}${f}${e.slice(
446
+ r.index + r.tag.length
447
+ )}`;
448
+ }
449
+ const s = n.gridOpenTagEndIndex;
450
+ if (s === void 0)
451
+ return e;
452
+ const c = v(
453
+ "<Cfg />",
454
+ t
455
+ );
456
+ return `${e.slice(0, s)}
457
+ ${c}${e.slice(
458
+ s
459
+ )}`;
460
+ }, "applyTreeGridXmlStableScrollbarDefaultLayout"), Mt = /* @__PURE__ */ i((e) => {
461
+ const n = e.trim();
462
+ return n ? n.startsWith("{") ? Ut(e) : kt(
363
463
  e,
364
- n ?? I(e)
464
+ L(e)
365
465
  ) : e;
366
- }, "applyTreeGridDefaultSelectAllPanelActionLayout"), Lt = /* @__PURE__ */ i((e, n) => {
466
+ }, "applyTreeGridStableScrollbarDefaultLayout"), Ne = /* @__PURE__ */ i((e) => {
467
+ const n = e.Text;
468
+ if (Array.isArray(n)) {
469
+ const t = n.find(S);
470
+ t ? Object.assign(t, I) : e.Text = [{ ...I }, ...n];
471
+ return;
472
+ }
473
+ if (S(n)) {
474
+ Object.assign(n, I);
475
+ return;
476
+ }
477
+ e.Text = { ...I };
478
+ }, "applyTreeGridJsonLangPageMessageTextDefaults"), Vt = /* @__PURE__ */ i((e) => {
479
+ const n = e.Lang;
480
+ if (Array.isArray(n)) {
481
+ const t = n.find(S);
482
+ t ? Ne(t) : e.Lang = [{ Text: { ...I } }, ...n];
483
+ return;
484
+ }
485
+ if (S(n)) {
486
+ Ne(n);
487
+ return;
488
+ }
489
+ e.Lang = { Text: { ...I } };
490
+ }, "applyTreeGridJsonPageMessageTextDefaults"), Xt = /* @__PURE__ */ i((e) => {
491
+ try {
492
+ const n = JSON.parse(e);
493
+ return S(n) ? (Vt(n), JSON.stringify(n)) : e;
494
+ } catch {
495
+ return e;
496
+ }
497
+ }, "applyTreeGridJsonPageMessageTextLayout"), oe = /* @__PURE__ */ i(() => X("<Text />", I), "createTreeGridXmlPageMessageTextTag"), Jt = /* @__PURE__ */ i((e) => {
498
+ let n = !1;
499
+ const t = e.replace(
500
+ /(<Lang\b[^>]*>)([\s\S]*?)(<\/Lang>)/i,
501
+ (r, s, c, f) => {
502
+ if (n = !0, /<Text\b/i.test(c)) {
503
+ const a = c.replace(
504
+ /<Text\b[^>]*(?:\/>|>)/i,
505
+ (T) => X(T, I)
506
+ );
507
+ return `${s}${a}${f}`;
508
+ }
509
+ return `${s}
510
+ ${oe()}${c}${f}`;
511
+ }
512
+ );
513
+ return n ? t : e.replace(/<Lang\b[^>]*\/>/i, (r) => (n = !0, `${r.replace(/\s*\/>$/, ">")}
514
+ ${oe()}
515
+ </Lang>`));
516
+ }, "applyTreeGridXmlPageMessageTextToLangLayout"), Wt = /* @__PURE__ */ i((e) => {
517
+ const n = Jt(e);
518
+ if (n !== e)
519
+ return n;
520
+ const t = L(e), r = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
521
+ return r === void 0 ? e : `${e.slice(0, r)}
522
+ <Lang>
523
+ ${oe()}
524
+ </Lang>${e.slice(
525
+ r
526
+ )}`;
527
+ }, "applyTreeGridXmlPageMessageTextLayout"), jt = /* @__PURE__ */ i((e) => {
528
+ const n = e.trim();
529
+ return n ? n.startsWith("{") ? Xt(e) : Wt(e) : e;
530
+ }, "applyTreeGridPageMessageTextLayout"), Kt = /* @__PURE__ */ i((e, n) => {
367
531
  if (n === void 0)
368
532
  return e;
369
533
  try {
370
534
  const t = JSON.parse(e);
371
- if (!g(t))
535
+ if (!S(t))
372
536
  return e;
373
- const r = Ye(t);
374
- return r.some((o) => "SuppressCfg" in o) ? e : (r[0] ? r[0].SuppressCfg = n : t.Cfg = { SuppressCfg: n }, JSON.stringify(t));
537
+ const r = sn(t);
538
+ return r.some((s) => "SuppressCfg" in s) ? e : (r[0] ? r[0].SuppressCfg = n : t.Cfg = { SuppressCfg: n }, JSON.stringify(t));
375
539
  } catch {
376
540
  return e;
377
541
  }
378
- }, "applyTreeGridJsonDefaultSuppressCfgLayout"), Ot = /* @__PURE__ */ i((e, n, t) => {
542
+ }, "applyTreeGridJsonDefaultSuppressCfgLayout"), Ht = /* @__PURE__ */ i((e, n, t) => {
379
543
  if (t === void 0 || n.cfgValues.SuppressCfg !== void 0)
380
544
  return e;
381
545
  const r = n.defaultCfgTag;
382
546
  if (r) {
383
- const c = k(r.tag, "SuppressCfg", t);
547
+ const c = V(r.tag, "SuppressCfg", t);
384
548
  return `${e.slice(0, r.index)}${c}${e.slice(
385
549
  r.index + r.tag.length
386
550
  )}`;
387
551
  }
388
- const o = n.gridOpenTagEndIndex;
389
- return o === void 0 ? e : `${e.slice(0, o)}
552
+ const s = n.gridOpenTagEndIndex;
553
+ return s === void 0 ? e : `${e.slice(0, s)}
390
554
  <Cfg SuppressCfg="${t}" />${e.slice(
391
- o
555
+ s
392
556
  )}`;
393
- }, "applyTreeGridXmlDefaultSuppressCfgLayout"), xt = /* @__PURE__ */ i((e, n) => {
557
+ }, "applyTreeGridXmlDefaultSuppressCfgLayout"), zt = /* @__PURE__ */ i((e, n) => {
394
558
  const t = e.trim();
395
- return n === void 0 || !t ? e : t.startsWith("{") ? Lt(e, n) : Ot(
559
+ return n === void 0 || !t ? e : t.startsWith("{") ? Kt(e, n) : Ht(
396
560
  e,
397
- I(e),
561
+ L(e),
398
562
  n
399
563
  );
400
- }, "applyTreeGridDefaultSuppressCfgLayout"), It = /* @__PURE__ */ i((e) => ze.some((n) => n in e), "hasTreeGridToolbarFormulaField"), bt = /* @__PURE__ */ i((e) => {
401
- const n = e.Toolbar, t = e.Solid, r = Array.isArray(n) ? n.filter(g) : g(n) ? [n] : [], o = Array.isArray(t) ? t.filter(
402
- (c) => g(c) && N(c.Kind, "Toolbar")
403
- ) : g(t) && N(t.Kind, "Toolbar") ? [t] : [];
404
- return [...r, ...o];
405
- }, "getTreeGridJsonToolbarRecords"), wt = /* @__PURE__ */ i((e, n) => {
564
+ }, "applyTreeGridDefaultSuppressCfgLayout"), Yt = /* @__PURE__ */ i((e) => tn.some((n) => n in e), "hasTreeGridToolbarFormulaField"), Zt = /* @__PURE__ */ i((e) => {
565
+ const n = e.Toolbar, t = e.Solid, r = Array.isArray(n) ? n.filter(S) : S(n) ? [n] : [], s = Array.isArray(t) ? t.filter(
566
+ (c) => S(c) && M(c.Kind, "Toolbar")
567
+ ) : S(t) && M(t.Kind, "Toolbar") ? [t] : [];
568
+ return [...r, ...s];
569
+ }, "getTreeGridJsonToolbarRecords"), qt = /* @__PURE__ */ i((e, n) => {
406
570
  if (!n)
407
571
  return e;
408
572
  try {
409
573
  const t = JSON.parse(e);
410
- if (!g(t))
574
+ if (!S(t))
411
575
  return e;
412
- const r = bt(t);
413
- return r.some(It) ? e : (r[0] ? r[0].FormulaFormula = n : t.Toolbar = { FormulaFormula: n }, JSON.stringify(t));
576
+ const r = Zt(t);
577
+ return r.some(Yt) ? e : (r[0] ? r[0].FormulaFormula = n : t.Toolbar = { FormulaFormula: n }, JSON.stringify(t));
414
578
  } catch {
415
579
  return e;
416
580
  }
417
- }, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), Dt = /* @__PURE__ */ i((e) => ze.some(
418
- (n) => F(e, n)
419
- ), "hasTreeGridXmlToolbarFormulaAttribute"), yt = /* @__PURE__ */ i((e, n) => {
581
+ }, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), Qt = /* @__PURE__ */ i((e) => tn.some(
582
+ (n) => k(e, n)
583
+ ), "hasTreeGridXmlToolbarFormulaAttribute"), er = /* @__PURE__ */ i((e, n) => {
420
584
  if (!n)
421
585
  return e;
422
- const t = tt.exec(e);
586
+ const t = at.exec(e);
423
587
  if (t) {
424
- const a = t[0];
425
- if (Dt(a))
588
+ const f = t[0];
589
+ if (Qt(f))
426
590
  return e;
427
- const f = te(
428
- a,
591
+ const a = se(
592
+ f,
429
593
  "Formula",
430
594
  n
431
595
  );
432
- return `${e.slice(0, t.index)}${f}${e.slice(
433
- t.index + a.length
596
+ return `${e.slice(0, t.index)}${a}${e.slice(
597
+ t.index + f.length
434
598
  )}`;
435
599
  }
436
- const r = te(
600
+ const r = se(
437
601
  "<Toolbar />",
438
602
  "Formula",
439
603
  n
440
- ), o = nt.exec(e);
441
- if (o)
442
- return `${e.slice(0, o.index)} ${r}
604
+ ), s = ft.exec(e);
605
+ if (s)
606
+ return `${e.slice(0, s.index)} ${r}
443
607
  ${e.slice(
444
- o.index
608
+ s.index
445
609
  )}`;
446
- const c = et.exec(e);
610
+ const c = ut.exec(e);
447
611
  return c ? `${e.slice(
448
612
  0,
449
613
  c.index + c[0].length
450
614
  )}
451
615
  ${r}${e.slice(c.index + c[0].length)}` : e;
452
- }, "applyTreeGridXmlDefaultToolbarTotalCountLayout"), Pt = /* @__PURE__ */ i((e, n) => {
616
+ }, "applyTreeGridXmlDefaultToolbarTotalCountLayout"), nr = /* @__PURE__ */ i((e, n) => {
453
617
  const t = e.trim();
454
- return !n || !t ? e : t.startsWith("{") ? wt(
618
+ return !n || !t ? e : t.startsWith("{") ? qt(
455
619
  e,
456
620
  n
457
- ) : yt(e, n);
458
- }, "applyTreeGridDefaultToolbarTotalCountLayout"), vt = /* @__PURE__ */ i((e) => {
621
+ ) : er(e, n);
622
+ }, "applyTreeGridDefaultToolbarTotalCountLayout"), tr = /* @__PURE__ */ i((e) => {
459
623
  try {
460
624
  const n = JSON.parse(e);
461
- return !g(n) || !rn(n) ? e : (Rt(n), JSON.stringify(n));
625
+ return !S(n) || !Tn(n) ? e : (Pt(n), JSON.stringify(n));
462
626
  } catch {
463
627
  return e;
464
628
  }
465
- }, "applyTreeGridJsonDefaultFastPanelLayout"), Pe = /* @__PURE__ */ i((e, n) => {
629
+ }, "applyTreeGridJsonDefaultFastPanelLayout"), Ue = /* @__PURE__ */ i((e, n) => {
466
630
  const t = e.trim();
467
- return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : vt(e) : ht(
631
+ return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : tr(e) : $t(
468
632
  e,
469
- n ?? I(e)
633
+ n ?? L(e)
470
634
  ) : e;
471
- }, "applyTreeGridDefaultFastPanelLayout"), $t = /* @__PURE__ */ i((e) => {
635
+ }, "applyTreeGridDefaultFastPanelLayout"), rr = /* @__PURE__ */ i((e) => {
636
+ const n = e.Animations;
637
+ if (Array.isArray(n)) {
638
+ const t = n.find(S);
639
+ t ? De(
640
+ t,
641
+ U
642
+ ) : e.Animations = [
643
+ { ...U },
644
+ ...n
645
+ ];
646
+ return;
647
+ }
648
+ if (S(n)) {
649
+ De(
650
+ n,
651
+ U
652
+ );
653
+ return;
654
+ }
655
+ n === void 0 && (e.Animations = { ...U });
656
+ }, "applyTreeGridJsonEditCellAnimationDefaults"), ir = /* @__PURE__ */ i((e) => {
657
+ try {
658
+ const n = JSON.parse(e);
659
+ return S(n) ? (rr(n), JSON.stringify(n)) : e;
660
+ } catch {
661
+ return e;
662
+ }
663
+ }, "applyTreeGridJsonEditCellAnimationLayout"), sr = /* @__PURE__ */ i(() => X(
664
+ "<Animations />",
665
+ U
666
+ ), "createTreeGridDefaultEditCellAnimationsTag"), or = /* @__PURE__ */ i((e, n) => {
667
+ const t = L(e);
668
+ if (t.gridOpenTagEndIndex === void 0)
669
+ return e;
670
+ const r = t.animationsTag;
671
+ if (r) {
672
+ const c = v(
673
+ r.tag,
674
+ U
675
+ );
676
+ return c === r.tag ? e : `${e.slice(0, r.index)}${c}${e.slice(
677
+ r.index + r.tag.length
678
+ )}`;
679
+ }
680
+ const s = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
681
+ return `${e.slice(0, s)}
682
+ ${sr()}${e.slice(
683
+ s
684
+ )}`;
685
+ }, "applyTreeGridXmlDefaultEditCellAnimationLayout"), ke = /* @__PURE__ */ i((e, n) => {
686
+ const t = e.trim();
687
+ return t ? t.startsWith("{") ? ir(e) : or(e) : e;
688
+ }, "applyTreeGridDefaultEditCellAnimationLayout"), cr = /* @__PURE__ */ i((e) => {
472
689
  const n = {};
473
690
  return e == null || e.forEach((t) => {
474
691
  var r;
475
- (r = it[t]) == null || r.forEach((o) => {
476
- n[o] = "";
692
+ (r = Ct[t]) == null || r.forEach((s) => {
693
+ n[s] = "";
477
694
  });
478
695
  }), n;
479
- }, "getTreeGridDisabledAnimationAttributes"), Bt = /* @__PURE__ */ i((e, n) => {
696
+ }, "getTreeGridDisabledAnimationAttributes"), lr = /* @__PURE__ */ i((e, n) => {
480
697
  try {
481
698
  const t = JSON.parse(e);
482
- if (!g(t))
699
+ if (!S(t))
483
700
  return e;
484
701
  const r = t.Animations;
485
702
  if (Array.isArray(r)) {
486
- const o = r.find(g);
487
- o ? Object.assign(o, n) : r.unshift({ ...n });
488
- } else if (g(r))
703
+ const s = r.find(S);
704
+ s ? Object.assign(s, n) : r.unshift({ ...n });
705
+ } else if (S(r))
489
706
  Object.assign(r, n);
490
707
  else if (r === void 0)
491
708
  t.Animations = n;
@@ -495,167 +712,175 @@ ${e.slice(
495
712
  } catch {
496
713
  return e;
497
714
  }
498
- }, "applyTreeGridJsonDisabledAnimationsLayout"), Ft = /* @__PURE__ */ i((e) => Qe("<Animations />", e), "createTreeGridDisabledAnimationsTag"), Nt = /* @__PURE__ */ i((e, n) => {
499
- const t = I(e);
715
+ }, "applyTreeGridJsonDisabledAnimationsLayout"), dr = /* @__PURE__ */ i((e) => X("<Animations />", e), "createTreeGridDisabledAnimationsTag"), ur = /* @__PURE__ */ i((e, n) => {
716
+ const t = L(e);
500
717
  if (t.gridOpenTagEndIndex === void 0)
501
718
  return e;
502
719
  const r = t.animationsTag;
503
720
  if (r) {
504
- const c = Qe(r.tag, n);
721
+ const c = X(r.tag, n);
505
722
  return c === r.tag ? e : `${e.slice(0, r.index)}${c}${e.slice(
506
723
  r.index + r.tag.length
507
724
  )}`;
508
725
  }
509
- const o = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
510
- return `${e.slice(0, o)}
511
- ${Ft(
726
+ const s = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
727
+ return `${e.slice(0, s)}
728
+ ${dr(
512
729
  n
513
- )}${e.slice(o)}`;
514
- }, "applyTreeGridXmlDisabledAnimationsLayout"), ve = /* @__PURE__ */ i((e, n) => {
515
- const t = $t(n);
730
+ )}${e.slice(s)}`;
731
+ }, "applyTreeGridXmlDisabledAnimationsLayout"), Me = /* @__PURE__ */ i((e, n) => {
732
+ const t = cr(n);
516
733
  if (!Object.keys(t).length)
517
734
  return e;
518
735
  const r = e.trim();
519
- return r ? r.startsWith("{") ? Bt(e, t) : Nt(e, t) : e;
520
- }, "applyTreeGridDisabledAnimationsLayout"), re = /* @__PURE__ */ i((e, n, t, r) => {
521
- const o = Pt(
522
- ft(
523
- at(
524
- xt(e, r)
736
+ return r ? r.startsWith("{") ? lr(e, t) : ur(e, t) : e;
737
+ }, "applyTreeGridDisabledAnimationsLayout"), ce = /* @__PURE__ */ i((e, n, t, r) => {
738
+ const s = nr(
739
+ jt(
740
+ mt(
741
+ Lt(
742
+ Mt(
743
+ zt(e, r)
744
+ )
745
+ )
525
746
  )
526
747
  ),
527
748
  t
528
- ), c = o.trim();
749
+ ), c = s.trim();
529
750
  if (!c || c.startsWith("{"))
530
- return ve(
531
- Pe(
532
- De(
533
- ye(o)
751
+ return Me(
752
+ ke(
753
+ Ue(
754
+ Be(
755
+ Fe(s)
756
+ )
534
757
  )
535
758
  ),
536
759
  n
537
760
  );
538
- const a = I(o), f = ye(
539
- o,
540
- a
541
- ), T = f === o ? a : I(f), G = De(
542
- f,
761
+ const f = L(s), a = Fe(
762
+ s,
763
+ f
764
+ ), T = a === s ? f : L(a), G = Be(
765
+ a,
543
766
  T
544
- ), S = G === f ? T : I(G);
545
- return ve(
546
- St(
547
- Pe(
548
- G,
549
- S
550
- ),
551
- S
767
+ ), g = G === a ? T : L(G);
768
+ return Me(
769
+ ke(
770
+ yt(
771
+ Ue(
772
+ G,
773
+ g
774
+ ),
775
+ g
776
+ )
552
777
  ),
553
778
  n
554
779
  );
555
- }, "applyTreeGridDefaultLayout"), kt = /* @__PURE__ */ i((e) => {
780
+ }, "applyTreeGridDefaultLayout"), fr = /* @__PURE__ */ i((e) => {
556
781
  var n;
557
- return typeof document > "u" ? null : ((n = document.getElementById(e)) == null ? void 0 : n.closest(`.${Pn}`)) ?? null;
558
- }, "getTreeGridWrapperElement"), Ut = /* @__PURE__ */ i((e) => {
559
- if (ee(e.AllSelected))
782
+ return typeof document > "u" ? null : ((n = document.getElementById(e)) == null ? void 0 : n.closest(`.${Vn}`)) ?? null;
783
+ }, "getTreeGridWrapperElement"), ar = /* @__PURE__ */ i((e) => {
784
+ if (ie(e.AllSelected))
560
785
  return "checked";
561
- if (y(e.AllSelected))
786
+ if (P(e.AllSelected))
562
787
  return "unchecked";
563
788
  let n = 0, t = 0;
564
- return U(e).forEach((r) => {
565
- !A(r) || y(r.CanSelect) || (n += 1, ee(e.IsSelected(r)) && (t += 1));
789
+ return J(e).forEach((r) => {
790
+ !A(r) || P(r.CanSelect) || (n += 1, ie(e.IsSelected(r)) && (t += 1));
566
791
  }), t ? n > 0 && t >= n ? "checked" : "indeterminate" : "unchecked";
567
- }, "getTreeGridSelectAllState"), ie = /* @__PURE__ */ i((e, n) => {
568
- const t = kt(n), r = !y(e.Selecting), o = fe(
792
+ }, "getTreeGridSelectAllState"), le = /* @__PURE__ */ i((e, n) => {
793
+ const t = fr(n), r = !P(e.Selecting), s = Ee(
569
794
  e.Selecting,
570
795
  e.SelectingSingle
571
796
  ), c = e.Header;
572
797
  if (t == null || t.classList.toggle(
573
- yn,
574
- o
575
- ), !o)
798
+ Mn,
799
+ s
800
+ ), !s)
576
801
  t == null || t.classList.remove(
577
- me,
578
- Le,
579
- Oe
802
+ be,
803
+ Ie,
804
+ we
580
805
  );
581
806
  else {
582
- const a = Ut(e);
807
+ const f = ar(e);
583
808
  t == null || t.classList.toggle(
584
- me,
585
- a === "checked"
809
+ be,
810
+ f === "checked"
586
811
  ), t == null || t.classList.toggle(
587
- Le,
588
- a === "indeterminate"
812
+ Ie,
813
+ f === "indeterminate"
589
814
  ), t == null || t.classList.toggle(
590
- Oe,
591
- a === "unchecked"
815
+ we,
816
+ f === "unchecked"
592
817
  );
593
818
  }
594
- c && r && (c.CanSelect = o ? 1 : 0);
595
- }, "syncTreeGridSelectionPanelState"), Z = /* @__PURE__ */ new Map(), $e = /* @__PURE__ */ i((e, n) => {
819
+ c && r && (c.CanSelect = s ? 1 : 0);
820
+ }, "syncTreeGridSelectionPanelState"), ne = /* @__PURE__ */ new Map(), Ve = /* @__PURE__ */ i((e, n) => {
596
821
  if (typeof window > "u")
597
822
  return;
598
- const t = Z.get(n);
823
+ const t = ne.get(n);
599
824
  t !== void 0 && window.clearTimeout(t);
600
825
  const r = window.setTimeout(() => {
601
- Z.delete(n), ie(e, n);
826
+ ne.delete(n), le(e, n);
602
827
  }, 0);
603
- Z.set(n, r);
604
- }, "scheduleTreeGridSelectionPanelStateSync"), Vt = /* @__PURE__ */ i((e, n) => {
828
+ ne.set(n, r);
829
+ }, "scheduleTreeGridSelectionPanelStateSync"), Tr = /* @__PURE__ */ i((e, n) => {
605
830
  e.EnterMode = n;
606
- const t = Mn[n];
831
+ const t = Zn[n];
607
832
  if (!t)
608
833
  return;
609
834
  const r = e;
610
835
  r.Actions ?? (r.Actions = {}), r.Actions.OnEnter = t.onEnter, r.Actions.OnEnterEdit = t.onEnterEdit;
611
- }, "applyTreeGridDefaultEnterMode"), ln = /* @__PURE__ */ i((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), Be = /* @__PURE__ */ new Map(), Mt = /* @__PURE__ */ i((e) => {
836
+ }, "applyTreeGridDefaultEnterMode"), Sn = /* @__PURE__ */ i((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), Xe = /* @__PURE__ */ new Map(), Cr = /* @__PURE__ */ i((e) => {
612
837
  if (!e || !e.startsWith("data:"))
613
838
  return e;
614
- const n = Be.get(e);
839
+ const n = Xe.get(e);
615
840
  if (n)
616
841
  return n;
617
842
  try {
618
- const [t, r = ""] = e.split(",", 2), o = /^data:([^;]*)(;base64)?$/i.exec(t), c = (o == null ? void 0 : o[1]) || "application/octet-stream", a = o != null && o[2] ? atob(r) : decodeURIComponent(r), f = new Uint8Array(a.length);
619
- for (let G = 0; G < a.length; G += 1)
620
- f[G] = a.charCodeAt(G);
621
- const T = URL.createObjectURL(new Blob([f], { type: c }));
622
- return Be.set(e, T), T;
843
+ const [t, r = ""] = e.split(",", 2), s = /^data:([^;]*)(;base64)?$/i.exec(t), c = (s == null ? void 0 : s[1]) || "application/octet-stream", f = s != null && s[2] ? atob(r) : decodeURIComponent(r), a = new Uint8Array(f.length);
844
+ for (let G = 0; G < f.length; G += 1)
845
+ a[G] = f.charCodeAt(G);
846
+ const T = URL.createObjectURL(new Blob([a], { type: c }));
847
+ return Xe.set(e, T), T;
623
848
  } catch {
624
849
  return e;
625
850
  }
626
- }, "resolveTreeGridInlineUrl"), oe = /* @__PURE__ */ i((e) => {
627
- if (!e || ln(e))
628
- return Mt(e);
629
- const n = e.indexOf("#"), [t, r] = n >= 0 ? [e.slice(0, n), e.slice(n)] : [e, ""], o = t.includes("?") ? "&" : "?";
630
- return `${t}${o}noCache=${Date.now()}${r}`;
631
- }, "appendNoCacheQuery"), Fe = /* @__PURE__ */ i((e, n, t) => {
851
+ }, "resolveTreeGridInlineUrl"), de = /* @__PURE__ */ i((e) => {
852
+ if (!e || Sn(e))
853
+ return Cr(e);
854
+ const n = e.indexOf("#"), [t, r] = n >= 0 ? [e.slice(0, n), e.slice(n)] : [e, ""], s = t.includes("?") ? "&" : "?";
855
+ return `${t}${s}noCache=${Date.now()}${r}`;
856
+ }, "appendNoCacheQuery"), Je = /* @__PURE__ */ i((e, n, t) => {
632
857
  if (!e)
633
858
  return;
634
- const r = t.canEdit, o = t.editableColumns ?? [], c = t.editableCanEdit, a = t.highlightColumns ?? [], f = t.highlightBackgroundColor;
635
- if (!(r === void 0 && c === void 0 && !a.length)) {
859
+ const r = t.canEdit, s = t.editableColumns ?? [], c = t.editableCanEdit, f = t.highlightColumns ?? [], a = t.highlightBackgroundColor;
860
+ if (!(r === void 0 && c === void 0 && !f.length)) {
636
861
  typeof e.StartUpdate == "function" && e.StartUpdate();
637
862
  try {
638
863
  if (r !== void 0 && (n.CanEdit = r), c !== void 0) {
639
864
  const T = n;
640
- o.forEach((G) => {
641
- var S;
642
- !G || !((S = e.Cols) != null && S[G]) || (T[`${G}CanEdit`] = c);
865
+ s.forEach((G) => {
866
+ var g;
867
+ !G || !((g = e.Cols) != null && g[G]) || (T[`${G}CanEdit`] = c);
643
868
  });
644
869
  }
645
- a.forEach((T) => {
870
+ f.forEach((T) => {
646
871
  T && (e.SetValue(
647
872
  n,
648
873
  `${T}Class`,
649
- f ? Xe : "",
874
+ a ? Ye : "",
650
875
  0
651
- ), e.SetValue(n, `${T}Color`, f ?? "", 0));
876
+ ), e.SetValue(n, `${T}Color`, a ?? "", 0));
652
877
  });
653
878
  } finally {
654
879
  typeof e.EndUpdate == "function" && e.EndUpdate();
655
880
  }
656
881
  typeof e.RefreshRow == "function" && e.RefreshRow(n);
657
882
  }
658
- }, "syncTreeGridDeletedRowState"), Xt = /* @__PURE__ */ i((e) => e ? ln(e) || e.includes("assets") ? oe(e) : oe(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), Wt = /* @__PURE__ */ i((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), Jt = /* @__PURE__ */ i((e, n, t, r) => {
883
+ }, "syncTreeGridDeletedRowState"), Er = /* @__PURE__ */ i((e) => e ? Sn(e) || e.includes("assets") ? de(e) : de(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), pr = /* @__PURE__ */ i((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), Sr = /* @__PURE__ */ i((e, n, t, r) => {
659
884
  if (!(!e || t === "cancel")) {
660
885
  if (t === "remove") {
661
886
  e.RemoveRow(n), r(e);
@@ -663,37 +888,37 @@ ${e.slice(
663
888
  }
664
889
  e.DeleteRowT(n, 3);
665
890
  }
666
- }, "applyTreeGridBeforeRowUndeleteAction"), Kt = /* @__PURE__ */ i((e, n, t) => e ? { Url: Xt(n) } : { Data: { Body: [kn(t) ? [] : t] } }, "buildTreeGridDataSource"), Fr = /* @__PURE__ */ i(({
891
+ }, "applyTreeGridBeforeRowUndeleteAction"), Gr = /* @__PURE__ */ i((e, n, t) => e ? { Url: Er(n) } : { Data: { Body: [Hn(t) ? [] : t] } }, "buildTreeGridDataSource"), di = /* @__PURE__ */ i(({
667
892
  id: e,
668
893
  layoutUrl: n,
669
894
  layoutData: t,
670
895
  toolbarTotalCountFormula: r,
671
- suppressCfg: o,
896
+ suppressCfg: s,
672
897
  disabledAnimations: c,
673
- dataUrl: a,
674
- bodyData: f,
898
+ dataUrl: f,
899
+ bodyData: a,
675
900
  useDataUrl: T,
676
901
  width: G,
677
- height: S,
902
+ height: g,
678
903
  languageId: R
679
904
  }) => ({
680
905
  id: e,
681
906
  Layout: t ? {
682
- Data: re(
907
+ Data: ce(
683
908
  t,
684
909
  c,
685
910
  r,
686
- o
911
+ s
687
912
  )
688
- } : { Url: oe(n ?? "") },
689
- Data: Kt(T, a, f),
913
+ } : { Url: de(n ?? "") },
914
+ Data: Gr(T, f, a),
690
915
  Text: {
691
- Url: mn(R)
916
+ Url: Pn(R)
692
917
  },
693
918
  width: G,
694
- height: S,
919
+ height: g,
695
920
  Debug: "Error"
696
- }), "buildTreeGridInitializationOptions"), Ne = /* @__PURE__ */ i((e) => Un(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), ke = /* @__PURE__ */ i((e) => {
921
+ }), "buildTreeGridInitializationOptions"), We = /* @__PURE__ */ i((e) => zn(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), je = /* @__PURE__ */ i((e) => {
697
922
  if (typeof e == "number")
698
923
  return Number.isFinite(e) && e > 0 ? e : void 0;
699
924
  if (typeof e != "string")
@@ -703,109 +928,109 @@ ${e.slice(
703
928
  return;
704
929
  const t = Number(n);
705
930
  return Number.isFinite(t) && t > 0 ? t : void 0;
706
- }, "parseTreeGridPositiveNumber"), se = /* @__PURE__ */ i((e, n, t, r) => {
931
+ }, "parseTreeGridPositiveNumber"), ue = /* @__PURE__ */ i((e, n, t, r) => {
707
932
  if (!n || !t)
708
933
  return;
709
- const o = e.GetAttribute(n, t, r), c = ke(o);
710
- return c !== void 0 ? c : ke(
934
+ const s = e.GetAttribute(n, t, r), c = je(s);
935
+ return c !== void 0 ? c : je(
711
936
  n[`${t}${r}`]
712
937
  );
713
- }, "getTreeGridHeaderCellSpanAttribute"), jt = /* @__PURE__ */ i((e, n, t) => !n || !t || n.Fixed !== "Head" || (se(e, n, t, "Span") ?? 1) <= 1 ? !1 : (se(e, n, t, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), Ue = /* @__PURE__ */ i((e, n, t) => {
938
+ }, "getTreeGridHeaderCellSpanAttribute"), gr = /* @__PURE__ */ i((e, n, t) => !n || !t || n.Fixed !== "Head" || (ue(e, n, t, "Span") ?? 1) <= 1 ? !1 : (ue(e, n, t, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), Ke = /* @__PURE__ */ i((e, n, t) => {
714
939
  const r = e.get(n);
715
940
  if (r) {
716
941
  r.add(t);
717
942
  return;
718
943
  }
719
944
  e.set(n, /* @__PURE__ */ new Set([t]));
720
- }, "addTreeGridHeaderButtonAttributeTarget"), dn = /* @__PURE__ */ i((e, n, t, r) => {
721
- const o = /* @__PURE__ */ new Map();
722
- return n.forEach((c, a) => {
723
- t.forEach((f, T) => {
724
- if (!jt(e, c, f) || (Ue(o, c, f), !r))
945
+ }, "addTreeGridHeaderButtonAttributeTarget"), Gn = /* @__PURE__ */ i((e, n, t, r) => {
946
+ const s = /* @__PURE__ */ new Map();
947
+ return n.forEach((c, f) => {
948
+ t.forEach((a, T) => {
949
+ if (!gr(e, c, a) || (Ke(s, c, a), !r))
725
950
  return;
726
- const G = Math.floor(se(e, c, f, "Span") ?? 1), S = Math.min(t.length, T + G);
727
- for (let R = a + 1; R < n.length; R += 1) {
951
+ const G = Math.floor(ue(e, c, a, "Span") ?? 1), g = Math.min(t.length, T + G);
952
+ for (let R = f + 1; R < n.length; R += 1) {
728
953
  const m = n[R];
729
- for (let L = T; L < S; L += 1)
730
- Ue(o, m, t[L]);
954
+ for (let x = T; x < g; x += 1)
955
+ Ke(s, m, t[x]);
731
956
  }
732
957
  });
733
- }), o;
734
- }, "getTreeGridGroupHeaderSortButtonTargets"), Ht = /* @__PURE__ */ i((e, n, t, r) => {
735
- var a;
958
+ }), s;
959
+ }, "getTreeGridGroupHeaderSortButtonTargets"), hr = /* @__PURE__ */ i((e, n, t, r) => {
960
+ var f;
736
961
  if (!n || !t || n.Fixed !== "Head")
737
962
  return !1;
738
- const o = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((f) => f.Fixed === "Head") : [], c = typeof e.GetCols == "function" ? e.GetCols() : [];
739
- return !o.length || !c.length ? !1 : ((a = dn(
963
+ const s = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((a) => a.Fixed === "Head") : [], c = typeof e.GetCols == "function" ? e.GetCols() : [];
964
+ return !s.length || !c.length ? !1 : ((f = Gn(
740
965
  e,
741
- o,
966
+ s,
742
967
  c,
743
968
  r
744
- ).get(n)) == null ? void 0 : a.has(t)) === !0;
745
- }, "isTreeGridGroupHeaderSortButtonTarget"), Ve = /* @__PURE__ */ i((e, n, t = !1, r = !0) => {
746
- const o = typeof performance < "u" ? performance.now() : Date.now(), c = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((S) => S.Fixed === "Head") : [], a = typeof e.GetCols == "function" ? e.GetCols() : [];
747
- if (!c.length || !a.length)
969
+ ).get(n)) == null ? void 0 : f.has(t)) === !0;
970
+ }, "isTreeGridGroupHeaderSortButtonTarget"), He = /* @__PURE__ */ i((e, n, t = !1, r = !0) => {
971
+ const s = typeof performance < "u" ? performance.now() : Date.now(), c = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((g) => g.Fixed === "Head") : [], f = typeof e.GetCols == "function" ? e.GetCols() : [];
972
+ if (!c.length || !f.length)
748
973
  return;
749
- const f = /* @__PURE__ */ new Set();
974
+ const a = /* @__PURE__ */ new Set();
750
975
  let T = 0;
751
- const G = dn(
976
+ const G = Gn(
752
977
  e,
753
978
  c,
754
- a,
979
+ f,
755
980
  r
756
981
  );
757
982
  if (G.size) {
758
983
  typeof e.StartUpdate == "function" && e.StartUpdate();
759
984
  try {
760
- G.forEach((S, R) => {
761
- S.forEach((m) => {
762
- e.GetAttribute(R, m, Ie) !== "" && (e.SetAttribute(R, m, Ie, "", 0, 0), f.add(R), T += 1);
985
+ G.forEach((g, R) => {
986
+ g.forEach((m) => {
987
+ e.GetAttribute(R, m, $e) !== "" && (e.SetAttribute(R, m, $e, "", 0, 0), a.add(R), T += 1);
763
988
  });
764
989
  });
765
990
  } finally {
766
991
  typeof e.EndUpdate == "function" && e.EndUpdate();
767
992
  }
768
- f.size && (t && f.forEach((S) => {
769
- typeof e.RefreshRow == "function" && e.RefreshRow(S);
770
- }), Ke(n, "group header button attribute apply"), je(n, "group header button attribute apply", o, {
993
+ a.size && (t && a.forEach((g) => {
994
+ typeof e.RefreshRow == "function" && e.RefreshRow(g);
995
+ }), Qe(n, "group header button attribute apply"), en(n, "group header button attribute apply", s, {
771
996
  updatedCellCount: T,
772
- updatedRowCount: f.size
997
+ updatedRowCount: a.size
773
998
  }));
774
999
  }
775
- }, "applyTreeGridGroupHeaderSortButtonAttributes"), zt = /* @__PURE__ */ i((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), Yt = /* @__PURE__ */ i((e) => {
1000
+ }, "applyTreeGridGroupHeaderSortButtonAttributes"), Rr = /* @__PURE__ */ i((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), Ar = /* @__PURE__ */ i((e) => {
776
1001
  const n = e == null ? void 0 : e.Visible;
777
1002
  return !!e && n !== 0 && n !== !1 && n !== "0";
778
- }, "isVisibleTreeGridRow"), P = /* @__PURE__ */ i((e) => {
1003
+ }, "isVisibleTreeGridRow"), D = /* @__PURE__ */ i((e) => {
779
1004
  const n = e == null ? void 0 : e.Added;
780
1005
  return !!e && n !== 0 && n !== !1 && n !== "0" && n !== void 0;
781
- }, "isAddedTreeGridRow"), un = /* @__PURE__ */ i((e) => {
1006
+ }, "isAddedTreeGridRow"), gn = /* @__PURE__ */ i((e) => {
782
1007
  const n = e == null ? void 0 : e.Deleted;
783
1008
  return !!e && n !== 0 && n !== !1 && n !== "0" && n !== void 0;
784
- }, "isDeletedTreeGridRow"), A = /* @__PURE__ */ i((e) => !e || e.Fixed === "Foot" || !Yt(e) ? !1 : e.Kind === "Data" || P(e), "isDisplayTreeGridRow"), H = /* @__PURE__ */ i((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), Zt = /* @__PURE__ */ i((e, n) => {
1009
+ }, "isDeletedTreeGridRow"), A = /* @__PURE__ */ i((e) => !e || e.Fixed === "Foot" || !Ar(e) ? !1 : e.Kind === "Data" || D(e), "isDisplayTreeGridRow"), q = /* @__PURE__ */ i((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), _r = /* @__PURE__ */ i((e, n) => {
785
1010
  var r;
786
1011
  const t = (r = e.Cols) == null ? void 0 : r[n];
787
- return !!t && !y(t.Visible) && !ot(t.Hidden);
788
- }, "isVisibleTreeGridColumn"), X = /* @__PURE__ */ i((e, n) => typeof e == "number" && Number.isFinite(e) ? e : n, "resolveTreeGridColumnOrderValue"), qt = /* @__PURE__ */ i((e) => {
789
- const n = Q.get(e);
1012
+ return !!t && !P(t.Visible) && !Et(t.Hidden);
1013
+ }, "isVisibleTreeGridColumn"), K = /* @__PURE__ */ i((e, n) => typeof e == "number" && Number.isFinite(e) ? e : n, "resolveTreeGridColumnOrderValue"), mr = /* @__PURE__ */ i((e) => {
1014
+ const n = re.get(e);
790
1015
  if (n)
791
1016
  return n;
792
1017
  const t = new Map(
793
- H(e).map((c, a) => [c, a])
1018
+ q(e).map((c, f) => [c, f])
794
1019
  ), r = [...t.keys()].filter(
795
- (c) => !Yn.has(c) && Zt(e, c)
796
- ).sort((c, a) => {
797
- var L, w;
798
- const f = (L = e.Cols) == null ? void 0 : L[c], T = (w = e.Cols) == null ? void 0 : w[a], G = t.get(c) ?? 0, S = t.get(a) ?? 0, R = X(f == null ? void 0 : f.Sec, G) - X(T == null ? void 0 : T.Sec, S);
799
- return R !== 0 ? R : X(f == null ? void 0 : f.Pos, G) - X(T == null ? void 0 : T.Pos, S) || G - S;
800
- }), o = {
1020
+ (c) => !st.has(c) && _r(e, c)
1021
+ ).sort((c, f) => {
1022
+ var x, y;
1023
+ const a = (x = e.Cols) == null ? void 0 : x[c], T = (y = e.Cols) == null ? void 0 : y[f], G = t.get(c) ?? 0, g = t.get(f) ?? 0, R = K(a == null ? void 0 : a.Sec, G) - K(T == null ? void 0 : T.Sec, g);
1024
+ return R !== 0 ? R : K(a == null ? void 0 : a.Pos, G) - K(T == null ? void 0 : T.Pos, g) || G - g;
1025
+ }), s = {
801
1026
  columnSet: new Set(r),
802
1027
  firstColumn: r[0],
803
1028
  lastColumn: r[r.length - 1]
804
1029
  };
805
- return Q.set(e, o), o;
806
- }, "getTreeGridAddedRowBoxColumnBounds"), $ = /* @__PURE__ */ i((e) => {
807
- e && Q.delete(e);
808
- }, "clearTreeGridAddedRowBoxColumnBounds"), U = /* @__PURE__ */ i((e) => {
1030
+ return re.set(e, s), s;
1031
+ }, "getTreeGridAddedRowBoxColumnBounds"), F = /* @__PURE__ */ i((e) => {
1032
+ e && re.delete(e);
1033
+ }, "clearTreeGridAddedRowBoxColumnBounds"), J = /* @__PURE__ */ i((e) => {
809
1034
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
810
1035
  const n = [];
811
1036
  let t = e.GetFirst();
@@ -814,155 +1039,155 @@ ${e.slice(
814
1039
  return n;
815
1040
  }
816
1041
  return Object.values(e.Rows ?? {});
817
- }, "getTreeGridRows"), ce = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ i((e) => {
818
- e && ce.delete(e);
819
- }, "clearTreeGridSelectionRowSpanAnchorRowMap"), fn = /* @__PURE__ */ i((e, n) => {
820
- const t = e, r = t == null ? void 0 : t[`${n}RowSpan`], o = typeof r == "number" ? r : Number.parseFloat(String(r ?? ""));
821
- return Number.isFinite(o) && o > 1 ? Math.floor(o) : 1;
822
- }, "getTreeGridRowSpanCount"), Qt = /* @__PURE__ */ i((e) => {
1042
+ }, "getTreeGridRows"), fe = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ i((e) => {
1043
+ e && fe.delete(e);
1044
+ }, "clearTreeGridSelectionRowSpanAnchorRowMap"), hn = /* @__PURE__ */ i((e, n) => {
1045
+ const t = e, r = t == null ? void 0 : t[`${n}RowSpan`], s = typeof r == "number" ? r : Number.parseFloat(String(r ?? ""));
1046
+ return Number.isFinite(s) && s > 1 ? Math.floor(s) : 1;
1047
+ }, "getTreeGridRowSpanCount"), Lr = /* @__PURE__ */ i((e) => {
823
1048
  const n = /* @__PURE__ */ new WeakMap();
824
1049
  let t = null, r = -1;
825
- return U(e).forEach((o, c) => {
826
- if (!A(o)) {
827
- n.set(o, null);
1050
+ return J(e).forEach((s, c) => {
1051
+ if (!A(s)) {
1052
+ n.set(s, null);
828
1053
  return;
829
1054
  }
830
- const a = fn(o, He);
831
- if (a > 1) {
832
- t = o, r = c + a - 1, n.set(o, o);
1055
+ const f = hn(s, nn);
1056
+ if (f > 1) {
1057
+ t = s, r = c + f - 1, n.set(s, s);
833
1058
  return;
834
1059
  }
835
- n.set(o, t && c <= r ? t : null), c >= r && (t = null, r = -1);
1060
+ n.set(s, t && c <= r ? t : null), c >= r && (t = null, r = -1);
836
1061
  }), n;
837
- }, "createTreeGridSelectionRowSpanAnchorRowMap"), ae = /* @__PURE__ */ i((e, n) => {
1062
+ }, "createTreeGridSelectionRowSpanAnchorRowMap"), pe = /* @__PURE__ */ i((e, n) => {
838
1063
  if (!n || !A(n))
839
1064
  return null;
840
- let t = ce.get(e);
841
- return t != null && t.has(n) || (t = Qt(e), ce.set(e, t)), t.get(n) ?? null;
842
- }, "getTreeGridSelectionRowSpanAnchorRow"), an = /* @__PURE__ */ i((e, n) => {
843
- const t = ae(e, n);
1065
+ let t = fe.get(e);
1066
+ return t != null && t.has(n) || (t = Lr(e), fe.set(e, t)), t.get(n) ?? null;
1067
+ }, "getTreeGridSelectionRowSpanAnchorRow"), Rn = /* @__PURE__ */ i((e, n) => {
1068
+ const t = pe(e, n);
844
1069
  if (!t)
845
1070
  return [];
846
- const r = fn(t, He), o = [];
1071
+ const r = hn(t, nn), s = [];
847
1072
  let c = t;
848
- for (let a = 0; c && a < r; a += 1)
849
- A(c) && o.push(c), c = typeof e.GetNext == "function" ? e.GetNext(c) : null;
850
- return o;
851
- }, "getTreeGridSelectionRowSpanRows"), er = /* @__PURE__ */ i((e) => {
1073
+ for (let f = 0; c && f < r; f += 1)
1074
+ A(c) && s.push(c), c = typeof e.GetNext == "function" ? e.GetNext(c) : null;
1075
+ return s;
1076
+ }, "getTreeGridSelectionRowSpanRows"), xr = /* @__PURE__ */ i((e) => {
852
1077
  const n = /* @__PURE__ */ new Set();
853
1078
  return (e.GetSelRows() ?? []).forEach((t) => {
854
- an(e, t).forEach((r) => {
1079
+ Rn(e, t).forEach((r) => {
855
1080
  n.add(r);
856
1081
  });
857
1082
  }), [...n];
858
- }, "getTreeGridSelectedRowSpanRows"), nr = /* @__PURE__ */ i((e, n) => {
1083
+ }, "getTreeGridSelectedRowSpanRows"), Or = /* @__PURE__ */ i((e, n) => {
859
1084
  if (!e)
860
1085
  return;
861
- const t = H(e);
862
- U(e).forEach((r) => {
1086
+ const t = q(e);
1087
+ J(e).forEach((r) => {
863
1088
  A(r) && n.set(
864
1089
  r,
865
- new Map(t.map((o) => [o, ue(e, r, o)]))
1090
+ new Map(t.map((s) => [s, Ce(e, r, s)]))
866
1091
  );
867
1092
  });
868
- }, "captureTreeGridChangeBaselines"), le = /* @__PURE__ */ i((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), tr = /* @__PURE__ */ i((e, n, t) => {
1093
+ }, "captureTreeGridChangeBaselines"), ae = /* @__PURE__ */ i((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), br = /* @__PURE__ */ i((e, n, t) => {
869
1094
  const r = n;
870
- return H(e).some((o) => o !== t && le(r[`${o}Changed`]));
871
- }, "hasOtherTreeGridChangedCells"), Tn = /* @__PURE__ */ i((e, n, t) => {
1095
+ return q(e).some((s) => s !== t && ae(r[`${s}Changed`]));
1096
+ }, "hasOtherTreeGridChangedCells"), An = /* @__PURE__ */ i((e, n, t) => {
872
1097
  const r = n;
873
- r[`${t}Changed`] = 0, !P(n) && !b(n) && !tr(e, n, t) && (r.Changed = 0);
874
- }, "clearTreeGridCellChangedState"), rr = /* @__PURE__ */ i((e, n, t) => {
1098
+ r[`${t}Changed`] = 0, !D(n) && !w(n) && !br(e, n, t) && (r.Changed = 0);
1099
+ }, "clearTreeGridCellChangedState"), Ir = /* @__PURE__ */ i((e, n, t) => {
875
1100
  const r = e.get(n);
876
1101
  if (r != null && r.has(t))
877
1102
  return r.get(t);
878
- }, "resolveTreeGridCellBaselineValue"), ir = /* @__PURE__ */ i(({
1103
+ }, "resolveTreeGridCellBaselineValue"), wr = /* @__PURE__ */ i(({
879
1104
  gridId: e,
880
1105
  grid: n,
881
1106
  row: t,
882
1107
  col: r,
883
- backgroundColor: o,
1108
+ backgroundColor: s,
884
1109
  highlightRefresh: c
885
1110
  }) => {
886
- if (!P(t) && !b(t))
1111
+ if (!D(t) && !w(t))
887
1112
  return !1;
888
1113
  if (n.CanEdit(t, r) !== 1)
889
1114
  return !0;
890
- const a = xn(t, r), f = q(t).includes(r);
891
- return a === void 0 ? !0 : ue(n, t, r) === a ? (In(t, r), f && We(e, { row: t, col: r }), Tn(n, t, r), !0) : (bn(t, r), Je(e, {
1115
+ const f = Bn(t, r), a = te(t).includes(r);
1116
+ return f === void 0 ? !0 : Ce(n, t, r) === f ? (Fn(t, r), a && Ze(e, { row: t, col: r }), An(n, t, r), !0) : (Nn(t, r), qe(e, {
892
1117
  row: t,
893
1118
  col: r,
894
- backgroundColor: o,
1119
+ backgroundColor: s,
895
1120
  refresh: c
896
1121
  }), !0);
897
- }, "syncTreeGridAddedRowChangedCellHighlight"), or = /* @__PURE__ */ i(({
1122
+ }, "syncTreeGridAddedRowChangedCellHighlight"), yr = /* @__PURE__ */ i(({
898
1123
  gridId: e,
899
1124
  grid: n,
900
1125
  row: t,
901
1126
  col: r,
902
- backgroundColor: o,
1127
+ backgroundColor: s,
903
1128
  baselineMap: c,
904
- highlightRefresh: a
1129
+ highlightRefresh: f
905
1130
  }) => {
906
- if (!A(t) || ir({
1131
+ if (!A(t) || wr({
907
1132
  gridId: e,
908
1133
  grid: n,
909
1134
  row: t,
910
1135
  col: r,
911
- backgroundColor: o,
912
- highlightRefresh: a
1136
+ backgroundColor: s,
1137
+ highlightRefresh: f
913
1138
  }))
914
1139
  return;
915
- const f = rr(c, t, r), T = ue(n, t, r);
916
- if (f !== void 0 && T === f) {
917
- We(e, { row: t, col: r }), Tn(n, t, r);
1140
+ const a = Ir(c, t, r), T = Ce(n, t, r);
1141
+ if (a !== void 0 && T === a) {
1142
+ Ze(e, { row: t, col: r }), An(n, t, r);
918
1143
  return;
919
1144
  }
920
- Je(e, {
1145
+ qe(e, {
921
1146
  row: t,
922
1147
  col: r,
923
- backgroundColor: o,
924
- refresh: a
1148
+ backgroundColor: s,
1149
+ refresh: f
925
1150
  });
926
- }, "syncTreeGridChangedCellHighlight"), sr = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) ? !1 : e.CanEdit(n, t) === 1, "isEditableTreeGridCell"), Cn = /* @__PURE__ */ i((e, n, t) => {
1151
+ }, "syncTreeGridChangedCellHighlight"), $r = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) ? !1 : e.CanEdit(n, t) === 1, "isEditableTreeGridCell"), _n = /* @__PURE__ */ i((e, n, t) => {
927
1152
  const r = e.GetAttribute(n, t, "Color");
928
1153
  if (typeof r == "number")
929
- return pn(r);
1154
+ return Ln(r);
930
1155
  if (typeof r == "string")
931
1156
  return r.trim() || void 0;
932
- }, "getExplicitTreeGridCellColor"), cr = /* @__PURE__ */ i((e, n, t) => Cn(e, n, t) !== void 0, "hasExplicitTreeGridCellColor"), Te = /* @__PURE__ */ i((e, n, t) => {
1157
+ }, "getExplicitTreeGridCellColor"), Pr = /* @__PURE__ */ i((e, n, t) => _n(e, n, t) !== void 0, "hasExplicitTreeGridCellColor"), Se = /* @__PURE__ */ i((e, n, t) => {
933
1158
  if (!n || !t || !A(n))
934
1159
  return !1;
935
1160
  const r = typeof e.IsFocused == "function" ? e.IsFocused(n, t) : e.FRow === n && e.FCol === t;
936
1161
  return r !== 0 && r !== !1 && r !== void 0 && r !== null;
937
- }, "isTreeGridFocusedCellState"), V = /* @__PURE__ */ i((e, n, t) => {
1162
+ }, "isTreeGridFocusedCellState"), W = /* @__PURE__ */ i((e, n, t) => {
938
1163
  if (!n || !t || !A(n))
939
1164
  return !1;
940
1165
  const r = e.IsSelected(n, t);
941
1166
  if (r !== 0 && r !== !1 && r !== void 0 && r !== null)
942
1167
  return !0;
943
- const o = ae(e, n);
944
- if (!o || o === n)
1168
+ const s = pe(e, n);
1169
+ if (!s || s === n)
945
1170
  return !1;
946
- const c = e.IsSelected(o, t);
1171
+ const c = e.IsSelected(s, t);
947
1172
  return c !== 0 && c !== !1 && c !== void 0 && c !== null;
948
- }, "isTreeGridSelectedCellState"), Ce = /* @__PURE__ */ i((e) => {
949
- if (!be.length)
1173
+ }, "isTreeGridSelectedCellState"), Ge = /* @__PURE__ */ i((e) => {
1174
+ if (!Pe.length)
950
1175
  return !1;
951
1176
  const n = e.split(/\s+/).filter(Boolean);
952
- return be.every(
1177
+ return Pe.every(
953
1178
  (t) => n.includes(t)
954
1179
  );
955
- }, "hasTreeGridChangedCellDisplayClass"), lr = /* @__PURE__ */ i((e) => {
956
- if (!(!e || e.split(/\s+/).includes(xe) || !Ce(e)))
957
- return `${e} ${xe}`;
958
- }, "appendTreeGridSelectedChangedCellDisplayClass"), dr = /* @__PURE__ */ i((e) => !e || !A(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && Ce(t)), "hasTreeGridChangedCellDisplayClassInRow"), ur = /* @__PURE__ */ i((e, n) => {
959
- if (!n || !dr(n) || typeof e.RefreshRow != "function")
1180
+ }, "hasTreeGridChangedCellDisplayClass"), vr = /* @__PURE__ */ i((e) => {
1181
+ if (!(!e || e.split(/\s+/).includes(ye) || !Ge(e)))
1182
+ return `${e} ${ye}`;
1183
+ }, "appendTreeGridSelectedChangedCellDisplayClass"), Dr = /* @__PURE__ */ i((e) => !e || !A(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && Ge(t)), "hasTreeGridChangedCellDisplayClassInRow"), Br = /* @__PURE__ */ i((e, n) => {
1184
+ if (!n || !Dr(n) || typeof e.RefreshRow != "function")
960
1185
  return;
961
1186
  const t = n;
962
1187
  window.setTimeout(() => {
963
1188
  e.RefreshRow(t);
964
1189
  }, 0);
965
- }, "scheduleTreeGridSelectionChangedClassRefresh"), M = /* @__PURE__ */ i((e, n) => {
1190
+ }, "scheduleTreeGridSelectionChangedClassRefresh"), j = /* @__PURE__ */ i((e, n) => {
966
1191
  if (!n.length || typeof window > "u" || typeof e.RefreshRow != "function")
967
1192
  return;
968
1193
  const t = [...new Set(n)];
@@ -971,108 +1196,108 @@ ${e.slice(
971
1196
  e.RefreshRow(r);
972
1197
  });
973
1198
  }, 0);
974
- }, "scheduleTreeGridRowsRefresh"), fr = /* @__PURE__ */ i((e, n) => {
1199
+ }, "scheduleTreeGridRowsRefresh"), Fr = /* @__PURE__ */ i((e, n) => {
975
1200
  if (!n)
976
1201
  return;
977
- const t = an(e, n);
978
- t.length <= 1 || M(e, t);
979
- }, "scheduleTreeGridSelectionRowSpanRefresh"), ar = /* @__PURE__ */ i((e) => {
980
- const n = U(e).filter((t) => A(t) && ae(e, t));
981
- M(e, n);
982
- }, "scheduleTreeGridSelectionRowSpanRefreshAll"), En = /* @__PURE__ */ i((e, n, t, r) => {
983
- if (!(!n || r === void 0 || !sr(e, n, t) || Te(e, n, t) || V(e, n, t) || cr(e, n, t)))
1202
+ const t = Rn(e, n);
1203
+ t.length <= 1 || j(e, t);
1204
+ }, "scheduleTreeGridSelectionRowSpanRefresh"), Nr = /* @__PURE__ */ i((e) => {
1205
+ const n = J(e).filter((t) => A(t) && pe(e, t));
1206
+ j(e, n);
1207
+ }, "scheduleTreeGridSelectionRowSpanRefreshAll"), mn = /* @__PURE__ */ i((e, n, t, r) => {
1208
+ if (!(!n || r === void 0 || !$r(e, n, t) || Se(e, n, t) || W(e, n, t) || Pr(e, n, t)))
984
1209
  return r;
985
- }, "getEditableTreeGridCellDefaultColor"), B = /* @__PURE__ */ i((e, n, t, r) => e === r[0] && n === r[1] && t === r[2], "matchesTreeGridRgbColor"), Tr = /* @__PURE__ */ i((e, n, t) => Hn.some(
986
- (r) => B(e, n, t, r)
987
- ), "isTreeGridNativeErrorBackgroundColor"), pn = /* @__PURE__ */ i((e) => {
1210
+ }, "getEditableTreeGridCellDefaultColor"), N = /* @__PURE__ */ i((e, n, t, r) => e === r[0] && n === r[1] && t === r[2], "matchesTreeGridRgbColor"), Ur = /* @__PURE__ */ i((e, n, t) => rt.some(
1211
+ (r) => N(e, n, t, r)
1212
+ ), "isTreeGridNativeErrorBackgroundColor"), Ln = /* @__PURE__ */ i((e) => {
988
1213
  if (!(e === void 0 || !Number.isFinite(e)))
989
1214
  return `#${Math.trunc(e).toString(16).padStart(6, "0")}`;
990
- }, "toTreeGridCssHexColor"), de = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) ? "" : e.GetAttribute(n, t, "Error") ?? "", "getTreeGridCellError"), Ee = /* @__PURE__ */ i((e, n, t) => de(e, n, t) !== "", "hasTreeGridCellError"), Cr = /* @__PURE__ */ i((e, n) => {
1215
+ }, "toTreeGridCssHexColor"), Te = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) ? "" : e.GetAttribute(n, t, "Error") ?? "", "getTreeGridCellError"), ge = /* @__PURE__ */ i((e, n, t) => Te(e, n, t) !== "", "hasTreeGridCellError"), kr = /* @__PURE__ */ i((e, n) => {
991
1216
  if (!n)
992
1217
  return;
993
1218
  let t = !1;
994
- H(e).forEach((r) => {
995
- Ee(e, n, r) && (e.SetAttribute(n, r, "Error", "", 0), t = !0);
1219
+ q(e).forEach((r) => {
1220
+ ge(e, n, r) && (e.SetAttribute(n, r, "Error", "", 0), t = !0);
996
1221
  }), t && e.RefreshRow(n);
997
- }, "clearTreeGridRowErrors"), Er = /* @__PURE__ */ i((e) => {
1222
+ }, "clearTreeGridRowErrors"), Mr = /* @__PURE__ */ i((e) => {
998
1223
  const n = e == null ? void 0 : e.target;
999
1224
  if (typeof HTMLElement > "u" || typeof Element > "u" || typeof Node > "u")
1000
1225
  return null;
1001
- const t = n instanceof Element ? n : null, r = n instanceof Node ? n.parentElement : null, o = t ?? r;
1002
- if (o) {
1003
- const c = o.closest("td,th");
1004
- return c instanceof HTMLElement ? c : o instanceof HTMLElement ? o : null;
1226
+ const t = n instanceof Element ? n : null, r = n instanceof Node ? n.parentElement : null, s = t ?? r;
1227
+ if (s) {
1228
+ const c = s.closest("td,th");
1229
+ return c instanceof HTMLElement ? c : s instanceof HTMLElement ? s : null;
1005
1230
  }
1006
1231
  return null;
1007
- }, "getTreeGridMouseEventAnchorElement"), pr = /* @__PURE__ */ i((e, n) => {
1232
+ }, "getTreeGridMouseEventAnchorElement"), Vr = /* @__PURE__ */ i((e, n) => {
1008
1233
  if (!e || !n || !A(e))
1009
1234
  return !1;
1010
- const t = e, r = t[`${n}Class`], o = le(t[`${n}Changed`]) || typeof r == "string" && Ce(r);
1011
- return P(e) || b(e) ? o : o || le(t.Changed);
1012
- }, "isChangedTreeGridRowOrCell"), Gr = /* @__PURE__ */ i((e, n, t) => Zn.has(e.GetType(n, t)), "isTreeGridNativeInputEditType"), Sr = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 0, "isTreeGridReadonlyHoveredCellState"), hr = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 2, "isTreeGridPreviewHoveredCellState"), Rr = /* @__PURE__ */ i((e, n) => !!n && A(n) && e.FRow === n, "isTreeGridFocusedRowState"), Ar = /* @__PURE__ */ i(({
1235
+ const t = e, r = t[`${n}Class`], s = ae(t[`${n}Changed`]) || typeof r == "string" && Ge(r);
1236
+ return D(e) || w(e) ? s : s || ae(t.Changed);
1237
+ }, "isChangedTreeGridRowOrCell"), Xr = /* @__PURE__ */ i((e, n, t) => ot.has(e.GetType(n, t)), "isTreeGridNativeInputEditType"), Jr = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 0, "isTreeGridReadonlyHoveredCellState"), Wr = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 2, "isTreeGridPreviewHoveredCellState"), jr = /* @__PURE__ */ i((e, n) => !!n && A(n) && e.FRow === n, "isTreeGridFocusedRowState"), Kr = /* @__PURE__ */ i(({
1013
1238
  grid: e,
1014
1239
  row: n,
1015
1240
  col: t,
1016
1241
  r,
1017
- g: o,
1242
+ g: s,
1018
1243
  b: c,
1019
- focusedCellBackgroundColor: a,
1020
- selectedCellBackgroundColor: f,
1244
+ focusedCellBackgroundColor: f,
1245
+ selectedCellBackgroundColor: a,
1021
1246
  hoverCellBackgroundColor: T,
1022
1247
  changedCellBackgroundColor: G,
1023
- editableCellBackgroundColorValue: S
1248
+ editableCellBackgroundColorValue: g
1024
1249
  }) => {
1025
- if (Te(e, n, t))
1026
- return a;
1027
- if (V(e, n, t))
1250
+ if (Se(e, n, t))
1028
1251
  return f;
1029
- if (Sr(e, n, t) && (B(r, o, c, Xn) || B(r, o, c, Wn)) || hr(e, n, t) && (B(r, o, c, Jn) || B(r, o, c, Kn) || B(r, o, c, jn)))
1252
+ if (W(e, n, t))
1253
+ return a;
1254
+ if (Jr(e, n, t) && (N(r, s, c, qn) || N(r, s, c, Qn)) || Wr(e, n, t) && (N(r, s, c, et) || N(r, s, c, nt) || N(r, s, c, tt)))
1030
1255
  return T;
1031
- if (un(n))
1256
+ if (gn(n))
1032
1257
  return;
1033
- const R = P(n) || b(n), m = Ee(e, n, t) && Tr(r, o, c);
1258
+ const R = D(n) || w(n), m = ge(e, n, t) && Ur(r, s, c);
1034
1259
  if (!m && !R)
1035
1260
  return;
1036
- const L = Cn(e, n, t);
1037
- if (m && L)
1038
- return L;
1039
- if (pr(n, t))
1261
+ const x = _n(e, n, t);
1262
+ if (m && x)
1263
+ return x;
1264
+ if (Vr(n, t))
1040
1265
  return G;
1041
- const w = En(
1266
+ const y = mn(
1042
1267
  e,
1043
1268
  n,
1044
1269
  t,
1045
- S
1270
+ g
1046
1271
  );
1047
- return w !== void 0 ? pn(w) : R ? L ?? Ln : zn;
1048
- }, "resolveTreeGridStateBackgroundColor"), K = /* @__PURE__ */ i((e, n) => {
1272
+ return y !== void 0 ? Ln(y) : R ? x ?? vn : it;
1273
+ }, "resolveTreeGridStateBackgroundColor"), Y = /* @__PURE__ */ i((e, n) => {
1049
1274
  const t = e.split(/\s+/).filter(Boolean);
1050
1275
  return t.includes(n) ? e : [...t, n].join(" ");
1051
- }, "appendTreeGridClassToken"), gr = /* @__PURE__ */ i((e, n, t, r) => !Ee(e, n, t) || !n ? r : K(r, $n), "appendTreeGridErrorCellDisplayClass"), _r = /* @__PURE__ */ i((e, n, t, r) => {
1052
- if (!A(n) || un(n) || !P(n) && !b(n) || Rr(e, n) || V(e, n, t))
1276
+ }, "appendTreeGridClassToken"), Hr = /* @__PURE__ */ i((e, n, t, r) => !ge(e, n, t) || !n ? r : Y(r, Jn), "appendTreeGridErrorCellDisplayClass"), zr = /* @__PURE__ */ i((e, n, t, r) => {
1277
+ if (!A(n) || gn(n) || !D(n) && !w(n) || jr(e, n) || W(e, n, t))
1053
1278
  return r;
1054
- const o = qt(e);
1055
- if (!o.columnSet.has(t))
1279
+ const s = mr(e);
1280
+ if (!s.columnSet.has(t))
1056
1281
  return r;
1057
- let c = K(r, vn);
1058
- return t === o.firstColumn && (c = K(c, Bn)), t === o.lastColumn && (c = K(c, Fn)), c;
1059
- }, "appendTreeGridAddedRowBoxDisplayClass"), mr = /* @__PURE__ */ i((e, n, t, r) => {
1060
- const o = gr(e, n, t, r), c = _r(
1282
+ let c = Y(r, Xn);
1283
+ return t === s.firstColumn && (c = Y(c, Wn)), t === s.lastColumn && (c = Y(c, jn)), c;
1284
+ }, "appendTreeGridAddedRowBoxDisplayClass"), Yr = /* @__PURE__ */ i((e, n, t, r) => {
1285
+ const s = Hr(e, n, t, r), c = zr(
1061
1286
  e,
1062
1287
  n,
1063
1288
  t,
1064
- o
1289
+ s
1065
1290
  );
1066
- if (!V(e, n, t))
1291
+ if (!W(e, n, t))
1067
1292
  return c === r ? void 0 : c;
1068
- const a = lr(c) ?? c;
1069
- return a === r ? void 0 : a;
1070
- }, "resolveTreeGridCellDisplayClass"), Gn = /* @__PURE__ */ i((e) => A(e) && (P(e) || b(e)), "isTreeGridAddedRowBoxDisplayRow"), Me = /* @__PURE__ */ i((e, n) => {
1071
- const t = n.filter(Gn);
1072
- t.length && M(e, t);
1073
- }, "scheduleTreeGridAddedRowBoxRowsRefresh"), Lr = /* @__PURE__ */ i((e) => {
1074
- M(e, U(e).filter(Gn));
1075
- }, "scheduleTreeGridAddedRowBoxRowsRefreshAll"), Nr = /* @__PURE__ */ i((e) => {
1293
+ const f = vr(c) ?? c;
1294
+ return f === r ? void 0 : f;
1295
+ }, "resolveTreeGridCellDisplayClass"), xn = /* @__PURE__ */ i((e) => A(e) && (D(e) || w(e)), "isTreeGridAddedRowBoxDisplayRow"), ze = /* @__PURE__ */ i((e, n) => {
1296
+ const t = n.filter(xn);
1297
+ t.length && j(e, t);
1298
+ }, "scheduleTreeGridAddedRowBoxRowsRefresh"), Zr = /* @__PURE__ */ i((e) => {
1299
+ j(e, J(e).filter(xn));
1300
+ }, "scheduleTreeGridAddedRowBoxRowsRefreshAll"), ui = /* @__PURE__ */ i((e) => {
1076
1301
  if (!e)
1077
1302
  return !1;
1078
1303
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
@@ -1085,79 +1310,79 @@ ${e.slice(
1085
1310
  return !1;
1086
1311
  }
1087
1312
  return Object.values(e.Rows ?? {}).some((n) => A(n));
1088
- }, "hasTreeGridDisplayDataRows"), kr = /* @__PURE__ */ i((e, n, t) => {
1089
- var o;
1090
- x(e);
1091
- const r = (o = e.Data) == null ? void 0 : o.Data;
1313
+ }, "hasTreeGridDisplayDataRows"), fi = /* @__PURE__ */ i((e, n, t) => {
1314
+ var s;
1315
+ b(e);
1316
+ const r = (s = e.Data) == null ? void 0 : s.Data;
1092
1317
  e.Data.Data = {
1093
1318
  ...r,
1094
1319
  Data: { Body: [n || []] },
1095
1320
  Url: ""
1096
1321
  }, e.ReloadBody(t);
1097
- }, "replaceTreeGridBodyData"), Ur = /* @__PURE__ */ i(({
1322
+ }, "replaceTreeGridBodyData"), ai = /* @__PURE__ */ i(({
1098
1323
  id: e,
1099
1324
  latestEventHandlersRef: n,
1100
1325
  layoutHasExplicitEnterModeRef: t,
1101
1326
  highlightEditableCellsRef: r,
1102
- highlightChangedCellsRef: o,
1327
+ highlightChangedCellsRef: s,
1103
1328
  syncDeletedRowCanEditRef: c,
1104
- editableCellBackgroundColorValueRef: a,
1105
- changedCellBackgroundColorRef: f,
1329
+ editableCellBackgroundColorValueRef: f,
1330
+ changedCellBackgroundColorRef: a,
1106
1331
  focusedCellBackgroundColorRef: T,
1107
1332
  selectedCellBackgroundColorRef: G,
1108
- hoverCellBackgroundColorRef: S,
1333
+ hoverCellBackgroundColorRef: g,
1109
1334
  changedCellBaselineRef: R,
1110
1335
  treeGridInstanceRef: m,
1111
- treeGridInitStartedAtRef: L,
1112
- latestLayoutOverridesRef: w,
1113
- latestToolbarTotalCountFormulaRef: pe,
1114
- latestSuppressCfgRef: Ge,
1115
- latestHideChildHeaderSortButtonsRef: z,
1116
- latestSelectionScopeRef: Sn,
1117
- latestDisabledAnimationsRef: Se,
1118
- appliedLayoutOverridesRef: hn,
1119
- appliedBodyDataPropRef: Rn,
1120
- hasAppliedInitialLayoutRef: he,
1121
- syncHasDisplayDataRows: v,
1122
- setIsTreeGridReady: An,
1123
- showErrorTooltip: gn,
1124
- hideErrorTooltip: D
1336
+ treeGridInitStartedAtRef: x,
1337
+ latestLayoutOverridesRef: y,
1338
+ latestToolbarTotalCountFormulaRef: he,
1339
+ latestSuppressCfgRef: Re,
1340
+ latestHideChildHeaderSortButtonsRef: Q,
1341
+ latestSelectionScopeRef: On,
1342
+ latestDisabledAnimationsRef: Ae,
1343
+ appliedLayoutOverridesRef: bn,
1344
+ appliedBodyDataPropRef: In,
1345
+ hasAppliedInitialLayoutRef: _e,
1346
+ syncHasDisplayDataRows: B,
1347
+ setIsTreeGridReady: wn,
1348
+ showErrorTooltip: yn,
1349
+ hideErrorTooltip: $
1125
1350
  }) => {
1126
1351
  const _ = n.current;
1127
- if (window.TGSetEvent("OnRowAdd", e, (s, l) => {
1352
+ if (window.TGSetEvent("OnRowAdd", e, (o, l) => {
1128
1353
  var d, u;
1129
- x(s), l.CanEdit = 1, l.CanDelete = 1, (u = (d = n.current) == null ? void 0 : d.onRowAdd) == null || u.call(d, s, l);
1130
- }), window.TGSetEvent("OnRowAdded", e, (s) => {
1131
- x(s), v(s);
1132
- }), window.TGSetEvent("OnRowRemove", e, (s) => {
1133
- x(s), D(), v(s);
1134
- }), window.TGSetEvent("OnColShow", e, (s) => {
1135
- $(s);
1136
- }), window.TGSetEvent("OnAfterColumnsChanged", e, (s) => {
1137
- $(s);
1138
- }), window.TGSetEvent("OnColMove", e, (s) => {
1139
- $(s);
1140
- }), window.TGSetEvent("OnColsAdd", e, (s) => {
1141
- $(s);
1142
- }), window.TGSetEvent("OnColDelete", e, (s) => {
1143
- $(s);
1144
- }), window.TGSetEvent("OnColUndelete", e, (s) => {
1145
- $(s);
1146
- }), window.TGSetEvent("OnMouseOver", e, (s, l, d, u, C, p) => {
1147
- const E = de(s, l, d);
1354
+ b(o), l.CanEdit = 1, l.CanDelete = 1, (u = (d = n.current) == null ? void 0 : d.onRowAdd) == null || u.call(d, o, l);
1355
+ }), window.TGSetEvent("OnRowAdded", e, (o) => {
1356
+ b(o), B(o);
1357
+ }), window.TGSetEvent("OnRowRemove", e, (o) => {
1358
+ b(o), $(), B(o);
1359
+ }), window.TGSetEvent("OnColShow", e, (o) => {
1360
+ F(o);
1361
+ }), window.TGSetEvent("OnAfterColumnsChanged", e, (o) => {
1362
+ F(o);
1363
+ }), window.TGSetEvent("OnColMove", e, (o) => {
1364
+ F(o);
1365
+ }), window.TGSetEvent("OnColsAdd", e, (o) => {
1366
+ F(o);
1367
+ }), window.TGSetEvent("OnColDelete", e, (o) => {
1368
+ F(o);
1369
+ }), window.TGSetEvent("OnColUndelete", e, (o) => {
1370
+ F(o);
1371
+ }), window.TGSetEvent("OnMouseOver", e, (o, l, d, u, C, p) => {
1372
+ const E = Te(o, l, d);
1148
1373
  if (!E) {
1149
- D();
1374
+ $();
1150
1375
  return;
1151
1376
  }
1152
- const h = Er(p);
1377
+ const h = Mr(p);
1153
1378
  if (!h) {
1154
- D();
1379
+ $();
1155
1380
  return;
1156
1381
  }
1157
- s.HideTip(), gn({ anchorEl: h, row: l, col: d, message: E });
1158
- }), window.TGSetEvent("OnFocus", e, (s, l, d, u) => {
1159
- l !== u && Me(s, [l, u]);
1160
- }), window.TGSetEvent("OnTip", e, (s, l, d, u) => de(s, l, d) ? "" : u), window.TGSetEvent("OnCanRowDelete", e, (s, l, d) => {
1382
+ o.HideTip(), yn({ anchorEl: h, row: l, col: d, message: E });
1383
+ }), window.TGSetEvent("OnFocus", e, (o, l, d, u) => {
1384
+ l !== u && ze(o, [l, u]);
1385
+ }), window.TGSetEvent("OnTip", e, (o, l, d, u) => Te(o, l, d) ? "" : u), window.TGSetEvent("OnCanRowDelete", e, (o, l, d) => {
1161
1386
  var p;
1162
1387
  if (d !== 3)
1163
1388
  return d;
@@ -1166,24 +1391,24 @@ ${e.slice(
1166
1391
  return d;
1167
1392
  const C = /* @__PURE__ */ i((E) => {
1168
1393
  window.setTimeout(() => {
1169
- Jt(
1170
- m.current ?? s,
1394
+ Sr(
1395
+ m.current ?? o,
1171
1396
  l,
1172
1397
  E,
1173
- v
1398
+ B
1174
1399
  );
1175
1400
  }, 0);
1176
1401
  }, "scheduleAction");
1177
1402
  try {
1178
- const E = u(s, l);
1179
- return Wt(E) ? (E.then(C).catch(() => {
1403
+ const E = u(o, l);
1404
+ return pr(E) ? (E.then(C).catch(() => {
1180
1405
  C("undelete");
1181
1406
  }), 0) : (C(E), 0);
1182
1407
  } catch {
1183
1408
  return C("undelete"), 0;
1184
1409
  }
1185
1410
  }), typeof (_ == null ? void 0 : _.onRowClick) == "function" || typeof (_ == null ? void 0 : _.onInternalCellClick) == "function") {
1186
- const s = Y((l, d, u, C, p, E) => {
1411
+ const o = ee((l, d, u, C, p, E) => {
1187
1412
  var h, O;
1188
1413
  (O = (h = n.current) == null ? void 0 : h.onRowClick) == null || O.call(
1189
1414
  h,
@@ -1196,8 +1421,8 @@ ${e.slice(
1196
1421
  );
1197
1422
  }, 300);
1198
1423
  window.TGSetEvent("OnClick", e, (l, d, u, C, p, E) => {
1199
- var O, Ae, ge;
1200
- const h = (Ae = (O = n.current) == null ? void 0 : O.onInternalCellClick) == null ? void 0 : Ae.call(
1424
+ var O, Le, xe;
1425
+ const h = (Le = (O = n.current) == null ? void 0 : O.onInternalCellClick) == null ? void 0 : Le.call(
1201
1426
  O,
1202
1427
  l,
1203
1428
  d,
@@ -1208,17 +1433,17 @@ ${e.slice(
1208
1433
  );
1209
1434
  if (h !== void 0)
1210
1435
  return h;
1211
- typeof ((ge = n.current) == null ? void 0 : ge.onRowClick) == "function" && s(l, d, u, C, p, E);
1436
+ typeof ((xe = n.current) == null ? void 0 : xe.onRowClick) == "function" && o(l, d, u, C, p, E);
1212
1437
  });
1213
1438
  }
1214
1439
  (typeof (_ == null ? void 0 : _.onClickButton) == "function" || typeof (_ == null ? void 0 : _.onInternalButtonClick) == "function") && window.TGSetEvent(
1215
1440
  "OnClickButton",
1216
1441
  e,
1217
- (s, l, d, u) => {
1442
+ (o, l, d, u) => {
1218
1443
  var p, E, h, O;
1219
1444
  const C = (E = (p = n.current) == null ? void 0 : p.onInternalButtonClick) == null ? void 0 : E.call(
1220
1445
  p,
1221
- s,
1446
+ o,
1222
1447
  l,
1223
1448
  d,
1224
1449
  u
@@ -1227,7 +1452,7 @@ ${e.slice(
1227
1452
  return C;
1228
1453
  (O = (h = n.current) == null ? void 0 : h.onClickButton) == null || O.call(
1229
1454
  h,
1230
- s,
1455
+ o,
1231
1456
  l,
1232
1457
  d,
1233
1458
  u
@@ -1236,63 +1461,63 @@ ${e.slice(
1236
1461
  ), typeof (_ == null ? void 0 : _.onInternalKeyDown) == "function" && (window.TGSetEvent(
1237
1462
  "OnKeyDown",
1238
1463
  e,
1239
- (s, l, d, u, C) => {
1464
+ (o, l, d, u, C) => {
1240
1465
  var p, E;
1241
- return (E = (p = n.current) == null ? void 0 : p.onInternalKeyDown) == null ? void 0 : E.call(p, s, l, d, u, C);
1466
+ return (E = (p = n.current) == null ? void 0 : p.onInternalKeyDown) == null ? void 0 : E.call(p, o, l, d, u, C);
1242
1467
  }
1243
1468
  ), window.TGSetEvent(
1244
1469
  "OnKeyPress",
1245
1470
  e,
1246
- (s, l, d, u, C) => {
1471
+ (o, l, d, u, C) => {
1247
1472
  var p, E;
1248
- return (E = (p = n.current) == null ? void 0 : p.onInternalKeyDown) == null ? void 0 : E.call(p, s, l, d, u, C);
1473
+ return (E = (p = n.current) == null ? void 0 : p.onInternalKeyDown) == null ? void 0 : E.call(p, o, l, d, u, C);
1249
1474
  }
1250
- )), window.TGSetEvent("OnStartEdit", e, (s, l, d) => {
1475
+ )), window.TGSetEvent("OnStartEdit", e, (o, l, d) => {
1251
1476
  var u, C;
1252
- return D(), (C = (u = n.current) == null ? void 0 : u.onInternalStartEdit) == null ? void 0 : C.call(
1477
+ return $(), (C = (u = n.current) == null ? void 0 : u.onInternalStartEdit) == null ? void 0 : C.call(
1253
1478
  u,
1254
- s,
1479
+ o,
1255
1480
  l,
1256
1481
  d
1257
1482
  );
1258
- }), window.TGSetEvent("OnRowDelete", e, (s, l, d) => {
1483
+ }), window.TGSetEvent("OnRowDelete", e, (o, l, d) => {
1259
1484
  var h, O;
1260
- x(s), D(), Cr(s, l), s.SelectRow(l, 0);
1261
- const u = b(l), C = u ? q(l) : [], p = u ? _e(l) : [], E = c.current !== !1;
1262
- Fe(s, l, {
1485
+ b(o), $(), kr(o, l), o.SelectRow(l, 0);
1486
+ const u = w(l), C = u ? te(l) : [], p = u ? Oe(l) : [], E = c.current !== !1;
1487
+ Je(o, l, {
1263
1488
  canEdit: E ? 2 : void 0,
1264
1489
  editableColumns: p,
1265
1490
  editableCanEdit: E && p.length ? 2 : void 0,
1266
1491
  highlightColumns: C
1267
- }), v(s), (O = (h = n.current) == null ? void 0 : h.onRowDelete) == null || O.call(
1492
+ }), B(o), (O = (h = n.current) == null ? void 0 : h.onRowDelete) == null || O.call(
1268
1493
  h,
1269
- s,
1494
+ o,
1270
1495
  l,
1271
1496
  d
1272
1497
  );
1273
- }), window.TGSetEvent("OnRowUndelete", e, (s, l) => {
1498
+ }), window.TGSetEvent("OnRowUndelete", e, (o, l) => {
1274
1499
  var E, h;
1275
- x(s), D();
1276
- const d = b(l), u = d ? q(l) : [], C = d ? _e(l) : [], p = c.current !== !1;
1277
- Fe(s, l, {
1500
+ b(o), $();
1501
+ const d = w(l), u = d ? te(l) : [], C = d ? Oe(l) : [], p = c.current !== !1;
1502
+ Je(o, l, {
1278
1503
  canEdit: p ? 1 : void 0,
1279
1504
  editableColumns: C,
1280
1505
  editableCanEdit: p && C.length ? 1 : void 0,
1281
1506
  highlightColumns: u,
1282
- highlightBackgroundColor: u.length ? f.current : void 0
1283
- }), v(s), (h = (E = n.current) == null ? void 0 : E.onRowUndelete) == null || h.call(E, s, l);
1284
- }), window.TGSetEvent("OnGetDefaultColor", e, (s, l, d) => {
1507
+ highlightBackgroundColor: u.length ? a.current : void 0
1508
+ }), B(o), (h = (E = n.current) == null ? void 0 : E.onRowUndelete) == null || h.call(E, o, l);
1509
+ }), window.TGSetEvent("OnGetDefaultColor", e, (o, l, d) => {
1285
1510
  if (!(!r.current || !A(l)))
1286
- return En(
1287
- s,
1511
+ return mn(
1512
+ o,
1288
1513
  l,
1289
1514
  d,
1290
- a.current
1515
+ f.current
1291
1516
  );
1292
- }), window.TGSetEvent("OnGetColor", e, (s, l, d, u, C, p, E) => {
1517
+ }), window.TGSetEvent("OnGetColor", e, (o, l, d, u, C, p, E) => {
1293
1518
  if (!E)
1294
- return Ar({
1295
- grid: s,
1519
+ return Kr({
1520
+ grid: o,
1296
1521
  row: l,
1297
1522
  col: d,
1298
1523
  r: u,
@@ -1300,103 +1525,103 @@ ${e.slice(
1300
1525
  b: p,
1301
1526
  focusedCellBackgroundColor: T.current,
1302
1527
  selectedCellBackgroundColor: G.current,
1303
- hoverCellBackgroundColor: S.current,
1304
- changedCellBackgroundColor: f.current,
1305
- editableCellBackgroundColorValue: a.current
1528
+ hoverCellBackgroundColor: g.current,
1529
+ changedCellBackgroundColor: a.current,
1530
+ editableCellBackgroundColorValue: f.current
1306
1531
  });
1307
- }), window.TGSetEvent("OnGetClass", e, (s, l, d, u) => mr(s, l, d, typeof u == "string" ? u : "")), window.TGSetEvent("OnAfterValueChanged", e, (s, l, d, u) => {
1532
+ }), window.TGSetEvent("OnGetClass", e, (o, l, d, u) => Yr(o, l, d, typeof u == "string" ? u : "")), window.TGSetEvent("OnAfterValueChanged", e, (o, l, d, u) => {
1308
1533
  var p, E;
1309
- if (D(), o.current && A(l)) {
1310
- const h = !Gr(s, l, d) || V(s, l, d) && !Te(s, l, d);
1311
- or({
1534
+ if ($(), s.current && A(l)) {
1535
+ const h = !Xr(o, l, d) || W(o, l, d) && !Se(o, l, d);
1536
+ yr({
1312
1537
  gridId: e,
1313
- grid: s,
1538
+ grid: o,
1314
1539
  row: l,
1315
1540
  col: d,
1316
- backgroundColor: f.current,
1541
+ backgroundColor: a.current,
1317
1542
  baselineMap: R.current,
1318
1543
  highlightRefresh: h
1319
1544
  });
1320
1545
  }
1321
1546
  const C = ((p = n.current) == null ? void 0 : p.onAfterValueChanged) ?? ((E = n.current) == null ? void 0 : E.onRowChange);
1322
- C == null || C(s, l, d, u);
1547
+ C == null || C(o, l, d, u);
1323
1548
  });
1324
- const Re = Y((s) => {
1549
+ const me = ee((o) => {
1325
1550
  var u, C;
1326
- const l = s.GetSelRows() ?? [], d = Dn(s, l, {
1327
- selectionScope: Sn.current
1551
+ const l = o.GetSelRows() ?? [], d = kn(o, l, {
1552
+ selectionScope: On.current
1328
1553
  });
1329
1554
  (C = (u = n.current) == null ? void 0 : u.onSelect) == null || C.call(
1330
1555
  u,
1331
- On(s, d)
1556
+ Dn(o, d)
1332
1557
  );
1333
1558
  }, 100);
1334
- window.TGSetEvent("OnSelect", e, (s, l, d, u, C) => {
1559
+ window.TGSetEvent("OnSelect", e, (o, l, d, u, C) => {
1335
1560
  var E;
1336
1561
  if (C)
1337
1562
  return;
1338
- const p = er(s);
1339
- ur(s, l), Me(s, [l]), M(s, p), fr(s, l), $e(s, e), typeof ((E = n.current) == null ? void 0 : E.onSelect) == "function" && Re(s);
1340
- }), window.TGSetEvent("OnSelectAll", e, (s, l, d, u) => {
1563
+ const p = xr(o);
1564
+ Br(o, l), ze(o, [l]), j(o, p), Fr(o, l), Ve(o, e), typeof ((E = n.current) == null ? void 0 : E.onSelect) == "function" && me(o);
1565
+ }), window.TGSetEvent("OnSelectAll", e, (o, l, d, u) => {
1341
1566
  var C;
1342
- u || (ar(s), Lr(s), $e(s, e), typeof ((C = n.current) == null ? void 0 : C.onSelect) == "function" && Re(s));
1343
- }), typeof (_ == null ? void 0 : _.onSave) == "function" && window.TGSetEvent("OnSave", e, (s, l, d) => {
1567
+ u || (Nr(o), Zr(o), Ve(o, e), typeof ((C = n.current) == null ? void 0 : C.onSelect) == "function" && me(o));
1568
+ }), typeof (_ == null ? void 0 : _.onSave) == "function" && window.TGSetEvent("OnSave", e, (o, l, d) => {
1344
1569
  var u, C;
1345
1570
  (C = (u = n.current) == null ? void 0 : u.onSave) == null || C.call(
1346
1571
  u,
1347
- s,
1572
+ o,
1348
1573
  l,
1349
1574
  d
1350
1575
  );
1351
- }), window.TGSetEvent("OnSort", e, (s, l) => {
1576
+ }), window.TGSetEvent("OnSort", e, (o, l) => {
1352
1577
  var d;
1353
- if (!(!l || !Ht(
1354
- s,
1355
- s.ARow,
1578
+ if (!(!l || !hr(
1579
+ o,
1580
+ o.ARow,
1356
1581
  l,
1357
- z.current !== !1
1582
+ Q.current !== !1
1358
1583
  )))
1359
- return Ke(e, "group header sort blocked"), Nn(e, "group header sort blocked", {
1360
- rowId: (d = s.ARow) == null ? void 0 : d.id,
1584
+ return Qe(e, "group header sort blocked"), Kn(e, "group header sort blocked", {
1585
+ rowId: (d = o.ARow) == null ? void 0 : d.id,
1361
1586
  col: l
1362
1587
  }), -1;
1363
- }), window.TGSetEvent("OnSortFinish", e, (s) => {
1364
- x(s);
1365
- }), window.TGSetEvent("OnFilterFinish", e, (s) => {
1366
- x(s);
1367
- }), window.TGSetEvent("OnGroupFinish", e, (s) => {
1368
- x(s);
1369
- }), window.TGSetEvent("OnSearchFinish", e, (s) => {
1370
- x(s);
1371
- }), window.TGSetEvent("OnRenderStart", e, (s) => {
1372
- x(s), ie(s, e), Ve(
1373
- s,
1588
+ }), window.TGSetEvent("OnSortFinish", e, (o) => {
1589
+ b(o);
1590
+ }), window.TGSetEvent("OnFilterFinish", e, (o) => {
1591
+ b(o);
1592
+ }), window.TGSetEvent("OnGroupFinish", e, (o) => {
1593
+ b(o);
1594
+ }), window.TGSetEvent("OnSearchFinish", e, (o) => {
1595
+ b(o);
1596
+ }), window.TGSetEvent("OnRenderStart", e, (o) => {
1597
+ b(o), le(o, e), He(
1598
+ o,
1374
1599
  e,
1375
1600
  !1,
1376
- z.current !== !1
1601
+ Q.current !== !1
1377
1602
  );
1378
- }), window.TGSetEvent("OnRenderFinish", e, (s) => {
1379
- ie(s, e);
1380
- }), window.TGSetEvent("OnDataGet", e, (s, l, d) => {
1603
+ }), window.TGSetEvent("OnRenderFinish", e, (o) => {
1604
+ le(o, e);
1605
+ }), window.TGSetEvent("OnDataGet", e, (o, l, d) => {
1381
1606
  if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
1382
- t.current = we(d);
1383
- const u = re(
1607
+ t.current = ve(d);
1608
+ const u = ce(
1384
1609
  d,
1385
- Se.current,
1386
- pe.current,
1387
- Ge.current
1610
+ Ae.current,
1611
+ he.current,
1612
+ Re.current
1388
1613
  );
1389
1614
  return u === d ? null : u;
1390
1615
  }
1391
1616
  return null;
1392
- }), window.TGSetEvent("OnDataParse", e, (s, l, d) => {
1617
+ }), window.TGSetEvent("OnDataParse", e, (o, l, d) => {
1393
1618
  if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
1394
- t.current = we(d);
1395
- const u = re(
1619
+ t.current = ve(d);
1620
+ const u = ce(
1396
1621
  d,
1397
- Se.current,
1398
- pe.current,
1399
- Ge.current
1622
+ Ae.current,
1623
+ he.current,
1624
+ Re.current
1400
1625
  );
1401
1626
  return u === d ? null : u;
1402
1627
  }
@@ -1404,33 +1629,33 @@ ${e.slice(
1404
1629
  }), window.TGSetEvent(
1405
1630
  "OnReady",
1406
1631
  e,
1407
- Y((s) => {
1632
+ ee((o) => {
1408
1633
  var l, d;
1409
- if (!he.current) {
1410
- const u = w.current;
1411
- he.current = !0, !t.current && (s.EnterMode === void 0 || s.EnterMode === null || s.EnterMode === 0) && Vt(s, Vn), wn(s, u), m.current = s, hn.current = u, Rn.current = Ne(s), R.current = /* @__PURE__ */ new WeakMap(), nr(s, R.current), v(s), An(!0), Ve(
1412
- s,
1634
+ if (!_e.current) {
1635
+ const u = y.current;
1636
+ _e.current = !0, !t.current && (o.EnterMode === void 0 || o.EnterMode === null || o.EnterMode === 0) && Tr(o, Yn), Un(o, u), m.current = o, bn.current = u, In.current = We(o), R.current = /* @__PURE__ */ new WeakMap(), Or(o, R.current), B(o), wn(!0), He(
1637
+ o,
1413
1638
  e,
1414
1639
  !0,
1415
- z.current !== !1
1416
- ), je(e, "TreeGrid init ready", L.current, {
1417
- bodyRowCount: zt(
1418
- Ne(s)
1640
+ Q.current !== !1
1641
+ ), en(e, "TreeGrid init ready", x.current, {
1642
+ bodyRowCount: Rr(
1643
+ We(o)
1419
1644
  )
1420
- }), L.current = null, (d = (l = n.current) == null ? void 0 : l.onReady) == null || d.call(l, s);
1645
+ }), x.current = null, (d = (l = n.current) == null ? void 0 : l.onReady) == null || d.call(l, o);
1421
1646
  }
1422
1647
  }, 100)
1423
1648
  );
1424
1649
  }, "bindTreeGridEvents");
1425
1650
  export {
1426
- Br as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
1427
- Ur as bindTreeGridEvents,
1428
- Fr as buildTreeGridInitializationOptions,
1429
- nr as captureTreeGridChangeBaselines,
1430
- zt as getTreeGridBodyDataCount,
1431
- Nr as hasTreeGridDisplayDataRows,
1432
- we as hasTreeGridExplicitEnterMode,
1433
- kr as replaceTreeGridBodyData,
1434
- or as syncTreeGridChangedCellHighlight
1651
+ li as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
1652
+ ai as bindTreeGridEvents,
1653
+ di as buildTreeGridInitializationOptions,
1654
+ Or as captureTreeGridChangeBaselines,
1655
+ Rr as getTreeGridBodyDataCount,
1656
+ ui as hasTreeGridDisplayDataRows,
1657
+ ve as hasTreeGridExplicitEnterMode,
1658
+ fi as replaceTreeGridBodyData,
1659
+ yr as syncTreeGridChangedCellHighlight
1435
1660
  };
1436
1661
  //# sourceMappingURL=treeGridRuntime.js.map