@epam/ai-dial-ui-kit 0.14.0-dev.9 → 0.14.1

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 (530) hide show
  1. package/README.md +32 -3
  2. package/dist/CHANGELOG.md +17 -2
  3. package/dist/DateCellRenderer-BVM-Q8yx.cjs +63 -0
  4. package/dist/DateCellRenderer-ssp7eaZY.cjs +1 -0
  5. package/dist/IconButton-DWqoaBWf.cjs +1 -0
  6. package/dist/JsonEditor-qv1Z0dLX.cjs +1 -0
  7. package/dist/MarkdownEditor-DHn2pYOJ.cjs +1 -0
  8. package/dist/MarkdownEditor-jQ8nDJfx.cjs +1 -0
  9. package/dist/MarkdownEditorContainer-Bzcnoemw.cjs +1 -0
  10. package/dist/Switch-CUKClcEz.cjs +1 -0
  11. package/dist/_virtual/___vite-browser-external.js +6 -0
  12. package/dist/_virtual/__vite-browser-external.js +4 -0
  13. package/dist/_virtual/_commonjsHelpers.js +31 -0
  14. package/dist/_virtual/index.js +5 -0
  15. package/dist/_virtual/index2.js +4 -0
  16. package/dist/_virtual/index3.js +7 -0
  17. package/dist/assets/icons/add-child.svg.js +5 -0
  18. package/dist/assets/icons/add-sibling.svg.js +5 -0
  19. package/dist/assets/icons/copy-to.svg.js +5 -0
  20. package/dist/assets/icons/file/c.svg.js +5 -0
  21. package/dist/assets/icons/file/cpp.svg.js +5 -0
  22. package/dist/assets/icons/file/cs.svg.js +5 -0
  23. package/dist/assets/icons/file/ini.svg.js +5 -0
  24. package/dist/assets/icons/file/json.svg.js +5 -0
  25. package/dist/assets/icons/file/md.svg.js +5 -0
  26. package/dist/assets/icons/file/py.svg.js +5 -0
  27. package/dist/assets/icons/loader.svg.js +5 -0
  28. package/dist/assets/icons/move-to.svg.js +5 -0
  29. package/dist/assets/icons/no-data.svg.js +5 -0
  30. package/dist/assets/icons/open-popup.svg.js +5 -0
  31. package/dist/assets/icons/unshare.svg.js +5 -0
  32. package/dist/components/Accordion/Accordion.js +70 -0
  33. package/dist/components/Analytics/Bar/Bar.js +80 -0
  34. package/dist/components/Analytics/Bar/utils.js +24 -0
  35. package/dist/components/Analytics/BarGroup/BarGroup.js +142 -0
  36. package/dist/components/Analytics/Card/Card.js +87 -0
  37. package/dist/components/Analytics/ErrorTag/ErrorTag.js +19 -0
  38. package/dist/components/Analytics/Histogram/Histogram.js +200 -0
  39. package/dist/components/Analytics/Histogram/utils.js +45 -0
  40. package/dist/components/AutocompleteInput/AutocompleteInputValue.js +21 -0
  41. package/dist/components/Breadcrumb/Breadcrumb.js +126 -0
  42. package/dist/components/Breadcrumb/BreadcrumbItem.js +83 -0
  43. package/dist/components/Breadcrumb/constants.js +20 -0
  44. package/dist/components/Button/Button.js +53 -0
  45. package/dist/components/Button/ButtonWrappers.js +40 -0
  46. package/dist/components/Button/constants.js +29 -0
  47. package/dist/components/Button/utils.js +11 -0
  48. package/dist/components/ButtonDropdown/ButtonDropdown.js +33 -0
  49. package/dist/components/ButtonDropdown/constants.js +8 -0
  50. package/dist/components/CaptionText/CaptionText.js +27 -0
  51. package/dist/components/Checkbox/Checkbox.js +64 -0
  52. package/dist/components/Checkbox/constants.js +4 -0
  53. package/dist/components/CloseButton/CloseButton.js +27 -0
  54. package/dist/components/CollapsibleSidebar/CollapsibleSidebar.js +84 -0
  55. package/dist/components/ConfirmationPopup/ConfirmationPopup.js +75 -0
  56. package/dist/components/ConfirmationPopup/constants.js +32 -0
  57. package/dist/components/DraggableItem/DraggableItem.js +61 -0
  58. package/dist/components/DraggableItem/constants.js +6 -0
  59. package/dist/components/Dropdown/Dropdown.js +293 -0
  60. package/dist/components/Dropdown/DropdownSubMenuItem.js +121 -0
  61. package/dist/components/Dropdown/constants.js +24 -0
  62. package/dist/components/DropdownIcon/DropdownIcon.js +92 -0
  63. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +75 -0
  64. package/dist/components/EllipsisTooltip/constants.js +4 -0
  65. package/dist/components/FabButton/FabButton.js +35 -0
  66. package/dist/components/FileIcon/FileIcon.js +37 -0
  67. package/dist/components/FileIcon/constants.js +60 -0
  68. package/dist/components/FileManager/FileManager.js +887 -0
  69. package/dist/components/FileManager/FileManagerContext.js +5 -0
  70. package/dist/components/FileManager/FileManagerProvider.js +770 -0
  71. package/dist/components/FileManager/FileManagerTooltip.js +92 -0
  72. package/dist/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.js +293 -0
  73. package/dist/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.js +201 -0
  74. package/dist/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.js +52 -0
  75. package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.js +103 -0
  76. package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/constants.js +5 -0
  77. package/dist/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.js +56 -0
  78. package/dist/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.js +69 -0
  79. package/dist/components/FileManager/components/FileManagerItemName/FileManagerItemName.js +100 -0
  80. package/dist/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.js +93 -0
  81. package/dist/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.js +165 -0
  82. package/dist/components/FileManager/components/FileManagerNavigationPanel/constants.js +6 -0
  83. package/dist/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.js +120 -0
  84. package/dist/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.js +119 -0
  85. package/dist/components/FileManager/components/FileMetadataPopup/constants.js +9 -0
  86. package/dist/components/FileManager/components/FoldersTree/FoldersTree.js +180 -0
  87. package/dist/components/FileManager/components/FoldersTree/constants.js +9 -0
  88. package/dist/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.js +51 -0
  89. package/dist/components/FileManager/constants.js +28 -0
  90. package/dist/components/FileManager/errors.js +10 -0
  91. package/dist/components/FileManager/hooks/use-bulk-actions.js +143 -0
  92. package/dist/components/FileManager/hooks/use-collapse-tree.js +22 -0
  93. package/dist/components/FileManager/hooks/use-conflict-resolution.js +158 -0
  94. package/dist/components/FileManager/hooks/use-current-path.js +29 -0
  95. package/dist/components/FileManager/hooks/use-file-clipboard.js +154 -0
  96. package/dist/components/FileManager/hooks/use-file-delete.js +39 -0
  97. package/dist/components/FileManager/hooks/use-file-download.js +16 -0
  98. package/dist/components/FileManager/hooks/use-file-manager-columns.js +106 -0
  99. package/dist/components/FileManager/hooks/use-file-manager-context.js +13 -0
  100. package/dist/components/FileManager/hooks/use-file-manager-tabs.js +23 -0
  101. package/dist/components/FileManager/hooks/use-file-metadata.js +20 -0
  102. package/dist/components/FileManager/hooks/use-file-search.js +90 -0
  103. package/dist/components/FileManager/hooks/use-file-upload.js +338 -0
  104. package/dist/components/FileManager/hooks/use-folder-creation.js +151 -0
  105. package/dist/components/FileManager/hooks/use-grid-actions-column.js +65 -0
  106. package/dist/components/FileManager/hooks/use-grid-context-menu.js +188 -0
  107. package/dist/components/FileManager/hooks/use-item-renaming.js +124 -0
  108. package/dist/components/FileManager/hooks/use-new-actions.js +67 -0
  109. package/dist/components/FileManager/hooks/use-paths-selection.js +28 -0
  110. package/dist/components/FileManager/hooks/use-show-hidden-files.js +20 -0
  111. package/dist/components/FileManager/hooks/use-tree-additional-buttons.js +39 -0
  112. package/dist/components/FileManager/hooks/use-trigger-view-create-folder.js +42 -0
  113. package/dist/components/FileManager/hooks/use-trigger-view-rename.js +25 -0
  114. package/dist/components/FileManager/utils.js +129 -0
  115. package/dist/components/FileName/FileName.js +68 -0
  116. package/dist/components/FolderName/FolderName.js +57 -0
  117. package/dist/components/FormItem/FormItem.js +90 -0
  118. package/dist/components/FormItem/constants.js +9 -0
  119. package/dist/components/FormPopup/FormPopup.js +59 -0
  120. package/dist/components/FormPopup/constants.js +6 -0
  121. package/dist/components/Grid/Grid.js +333 -0
  122. package/dist/components/Grid/constants.js +33 -0
  123. package/dist/components/Grid/renderers/DateCellRenderer.js +27 -0
  124. package/dist/components/Grid/renderers/constants.js +25 -0
  125. package/dist/components/Icon/Icon.js +6 -0
  126. package/dist/components/IconButton/IconButton.js +40 -0
  127. package/dist/components/IconButton/IconButtonWrappers.js +48 -0
  128. package/dist/components/InfoButton/InfoButton.js +32 -0
  129. package/dist/components/InfoButton/constants.js +4 -0
  130. package/dist/components/Input/Button/InputButton.js +37 -0
  131. package/dist/components/Input/Button/constants.js +4 -0
  132. package/dist/components/Input/Input.js +120 -0
  133. package/dist/components/Input/utils.js +37 -0
  134. package/dist/components/InputPopup/InputPopup.js +174 -0
  135. package/dist/components/JsonEditor/JsonEditor.js +65 -0
  136. package/dist/components/JsonEditor/lazy.js +4 -0
  137. package/dist/components/Label/Label.js +27 -0
  138. package/dist/components/LabelledText/LabelledText.js +37 -0
  139. package/dist/components/LoadFileArea/EmptyFileArea.js +130 -0
  140. package/dist/components/LoadFileArea/FilledDropZone.js +80 -0
  141. package/dist/components/LoadFileArea/FilledInput.js +29 -0
  142. package/dist/components/LoadFileArea/LoadFileArea.js +70 -0
  143. package/dist/components/LoadFileArea/LoadFileAreaField.js +128 -0
  144. package/dist/components/Loader/Loader.js +40 -0
  145. package/dist/components/Loader/constants.js +5 -0
  146. package/dist/components/MarkdownEditor/MarkdownEditor.js +37 -0
  147. package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +80 -0
  148. package/dist/components/MarkdownEditor/lazy.js +4 -0
  149. package/dist/components/New/Accordion/Accordion.js +103 -0
  150. package/dist/components/New/Button/Button.js +76 -0
  151. package/dist/components/New/Button/ButtonWrappers.js +44 -0
  152. package/dist/components/New/Button/constants.js +27 -0
  153. package/dist/components/New/Button/utils.js +11 -0
  154. package/dist/components/New/ButtonDropdown/ButtonDropdown.js +28 -0
  155. package/dist/components/New/ButtonDropdown/constants.js +17 -0
  156. package/dist/components/New/Calendar/Calendar.js +343 -0
  157. package/dist/components/New/Calendar/constants.js +57 -0
  158. package/dist/components/New/Calendar/utils.js +77 -0
  159. package/dist/components/New/CaptionText/CaptionText.js +27 -0
  160. package/dist/components/New/CardShell/CardShell.js +22 -0
  161. package/dist/components/New/Checkbox/Checkbox.js +92 -0
  162. package/dist/components/New/Checkbox/CheckboxBox.js +34 -0
  163. package/dist/components/New/Checkbox/constants.js +8 -0
  164. package/dist/components/New/CloseButton/CloseButton.js +33 -0
  165. package/dist/components/New/CollapsibleSidebar/CollapsibleSidebar.js +108 -0
  166. package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +78 -0
  167. package/dist/components/New/ConfirmationPopup/constants.js +27 -0
  168. package/dist/components/New/Dropdown/Dropdown.js +316 -0
  169. package/dist/components/New/Dropdown/DropdownSubMenuItem.js +105 -0
  170. package/dist/components/New/Dropdown/constants.js +28 -0
  171. package/dist/components/New/Dropdown/item-mark.js +6 -0
  172. package/dist/components/New/EllipsisTooltip/EllipsisTooltip.js +45 -0
  173. package/dist/components/New/EllipsisTooltip/use-truncation.js +18 -0
  174. package/dist/components/New/FileDropzone/FileDropzone.js +135 -0
  175. package/dist/components/New/FolderPath/FolderPath.js +64 -0
  176. package/dist/components/New/Grid/Grid.js +301 -0
  177. package/dist/components/New/Grid/components/SelectionCell.js +50 -0
  178. package/dist/components/New/Grid/components/SelectionHeader.js +46 -0
  179. package/dist/components/New/Grid/constants.js +44 -0
  180. package/dist/components/New/Grid/renderers/DateCellRenderer.js +27 -0
  181. package/dist/components/New/Grid/renderers/constants.js +25 -0
  182. package/dist/components/New/Highlight/Highlight.js +50 -0
  183. package/dist/components/New/IconButton/IconButton.js +46 -0
  184. package/dist/components/New/IconButton/IconButtonWrappers.js +40 -0
  185. package/dist/components/New/InfoButton/InfoButton.js +39 -0
  186. package/dist/components/New/InlineSelect/InlineSelect.js +96 -0
  187. package/dist/components/New/Input/Button/InputButton.js +38 -0
  188. package/dist/components/New/Input/Button/constants.js +4 -0
  189. package/dist/components/New/Input/Input.js +169 -0
  190. package/dist/components/New/Input/utils.js +37 -0
  191. package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +104 -0
  192. package/dist/components/New/InteractiveTooltip/constants.js +6 -0
  193. package/dist/components/New/Label/Label.js +42 -0
  194. package/dist/components/New/MarkdownEditor/MarkdownEditor.js +41 -0
  195. package/dist/components/New/MarkdownEditor/constants.js +64 -0
  196. package/dist/components/New/MarkdownEditor/lazy.js +4 -0
  197. package/dist/components/New/MenuItem/MenuItem.js +108 -0
  198. package/dist/components/New/MenuItem/constants.js +16 -0
  199. package/dist/components/New/NoDataContent/NoDataContent.js +54 -0
  200. package/dist/components/New/Notification/Notification.js +67 -0
  201. package/dist/components/New/Notification/NotificationWrapper.js +61 -0
  202. package/dist/components/New/Notification/constants.js +32 -0
  203. package/dist/components/New/NumberInput/NumberInput.js +41 -0
  204. package/dist/components/New/PasswordInput/PasswordInput.js +54 -0
  205. package/dist/components/New/Popup/Popup.js +164 -0
  206. package/dist/components/New/Popup/constants.js +17 -0
  207. package/dist/components/New/Radio/Radio.js +100 -0
  208. package/dist/components/New/RadioGroup/RadioGroup.js +81 -0
  209. package/dist/components/New/RadioGroup/constants.js +11 -0
  210. package/dist/components/New/RadioGroupPopupField/RadioGroupPopupField.js +138 -0
  211. package/dist/components/New/RadioGroupPopupField/constants.js +11 -0
  212. package/dist/components/New/ResizableContainer/ConditionalResizableContainer.js +6 -0
  213. package/dist/components/New/ResizableContainer/ResizableContainer.js +106 -0
  214. package/dist/components/New/ResizableContainer/components/ResizeHandle.js +85 -0
  215. package/dist/components/New/Search/Search.js +74 -0
  216. package/dist/components/New/SegmentedControl/SegmentedControl.js +92 -0
  217. package/dist/components/New/SegmentedControl/constants.js +19 -0
  218. package/dist/components/New/Select/MultiSelectTags.js +23 -0
  219. package/dist/components/New/Select/Select.js +379 -0
  220. package/dist/components/New/Select/SelectSubMenuItem.js +103 -0
  221. package/dist/components/New/Select/constants.js +50 -0
  222. package/dist/components/New/Slider/Slider.js +112 -0
  223. package/dist/components/New/Switch/Switch.js +95 -0
  224. package/dist/components/New/Tabs/Tabs.js +95 -0
  225. package/dist/components/New/Tag/Tag.js +76 -0
  226. package/dist/components/New/Tag/constants.js +17 -0
  227. package/dist/components/New/TagInput/TagInput.js +197 -0
  228. package/dist/components/New/TagInput/utils.js +21 -0
  229. package/dist/components/New/Textarea/Textarea.js +55 -0
  230. package/dist/components/New/ThemeScope/ThemeScope.js +14 -0
  231. package/dist/components/New/ToggleIconButton/ToggleIconButton.js +54 -0
  232. package/dist/components/New/Tooltip/Tooltip.js +19 -0
  233. package/dist/components/New/Tooltip/TooltipContainer.js +12 -0
  234. package/dist/components/New/Tooltip/TooltipContent.js +45 -0
  235. package/dist/components/New/Tooltip/TooltipContext.js +67 -0
  236. package/dist/components/New/Tooltip/TooltipTrigger.js +45 -0
  237. package/dist/components/New/Tooltip/constants.js +8 -0
  238. package/dist/components/New/constants/icon.js +4 -0
  239. package/dist/components/New/constants/overlay.js +27 -0
  240. package/dist/components/NoDataContent/NoDataContent.js +45 -0
  241. package/dist/components/Notification/Notification.js +67 -0
  242. package/dist/components/Notification/constants.js +24 -0
  243. package/dist/components/NumberInput/NumberInput.js +41 -0
  244. package/dist/components/Pagination/Pagination.js +80 -0
  245. package/dist/components/Pagination/utils.js +10 -0
  246. package/dist/components/PasswordInput/Icons/HideIcon.js +16 -0
  247. package/dist/components/PasswordInput/Icons/ShowIcon.js +16 -0
  248. package/dist/components/PasswordInput/PasswordInput.js +21 -0
  249. package/dist/components/Popup/Popup.js +110 -0
  250. package/dist/components/Popup/constants.js +12 -0
  251. package/dist/components/ProgressBar/ProgressBar.js +58 -0
  252. package/dist/components/RadioButton/RadioButton.js +103 -0
  253. package/dist/components/RadioGroup/RadioGroup.js +92 -0
  254. package/dist/components/RadioGroup/constants.js +10 -0
  255. package/dist/components/RadioGroupPopupField/RadioGroupPopupField.js +101 -0
  256. package/dist/components/RemoveButton/RemoveButton.js +30 -0
  257. package/dist/components/ResizableContainer/ConditionalResizableContainer.js +6 -0
  258. package/dist/components/ResizableContainer/ResizableContainer.js +79 -0
  259. package/dist/components/ResizableContainer/components/ResizeHandle.js +20 -0
  260. package/dist/components/ResizableContainer/components/ResizeIcon.js +11 -0
  261. package/dist/components/SchemaRenderer/SchemaRenderer.js +150 -0
  262. package/dist/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.js +41 -0
  263. package/dist/components/SchemaRenderer/components/SchemaAnyOfEditor.js +74 -0
  264. package/dist/components/SchemaRenderer/components/SchemaArrayEditor.js +118 -0
  265. package/dist/components/SchemaRenderer/components/SchemaField.js +78 -0
  266. package/dist/components/SchemaRenderer/components/SchemaFieldContent.js +114 -0
  267. package/dist/components/SchemaRenderer/components/SchemaKeyValueEditor.js +184 -0
  268. package/dist/components/SchemaRenderer/components/SchemaObjectEditor.js +36 -0
  269. package/dist/components/SchemaRenderer/components/SchemaOneOfEditor.js +192 -0
  270. package/dist/components/SchemaRenderer/components/SchemaPrimitiveField.js +161 -0
  271. package/dist/components/SchemaRenderer/components/SchemaSection.js +81 -0
  272. package/dist/components/SchemaRenderer/context.js +12 -0
  273. package/dist/components/SchemaRenderer/types.js +27 -0
  274. package/dist/components/SchemaRenderer/utils.js +258 -0
  275. package/dist/components/Search/Search.js +63 -0
  276. package/dist/components/Search/constants.js +27 -0
  277. package/dist/components/SegmentedControl/SegmentedControl.js +87 -0
  278. package/dist/components/SegmentedControl/constants.js +8 -0
  279. package/dist/components/Select/MultiSelectTags.js +23 -0
  280. package/dist/components/Select/Select.js +435 -0
  281. package/dist/components/Select/SelectSubMenuItem.js +90 -0
  282. package/dist/components/Select/constants.js +15 -0
  283. package/dist/components/SelectField/SelectField.js +66 -0
  284. package/dist/components/SharedEntityIndicator/SharedEntityIndicator.js +34 -0
  285. package/dist/components/Skeleton/Skeleton.js +90 -0
  286. package/dist/components/Skeleton/utils.js +16 -0
  287. package/dist/components/Slider/Slider.js +158 -0
  288. package/dist/components/Spinner/Spinner.js +30 -0
  289. package/dist/components/Steps/Step.js +34 -0
  290. package/dist/components/Steps/Steps.js +27 -0
  291. package/dist/components/Steps/utils.js +42 -0
  292. package/dist/components/Switch/Switch.js +70 -0
  293. package/dist/components/Tab/Tab.js +65 -0
  294. package/dist/components/Tabs/Tabs.js +213 -0
  295. package/dist/components/Tabs/constants.js +4 -0
  296. package/dist/components/Tag/Tag.js +37 -0
  297. package/dist/components/TagInput/TagInput.js +179 -0
  298. package/dist/components/Textarea/Textarea.js +43 -0
  299. package/dist/components/Tooltip/Tooltip.js +30 -0
  300. package/dist/components/Tooltip/TooltipContainer.js +12 -0
  301. package/dist/components/Tooltip/TooltipContent.js +40 -0
  302. package/dist/components/Tooltip/TooltipContext.js +66 -0
  303. package/dist/components/Tooltip/TooltipTrigger.js +33 -0
  304. package/dist/components-manifest.json +1009 -161
  305. package/dist/{JsonEditor-CwnP07GH.js → constants/editor.js} +5 -63
  306. package/dist/constants/file-grid-columns.js +176 -0
  307. package/dist/constants/icon.js +10 -0
  308. package/dist/constants/validation.js +11 -0
  309. package/dist/dial-ui-kit.cjs +2 -0
  310. package/dist/dial-ui-kit.js +416 -0
  311. package/dist/editors.cjs +1 -0
  312. package/dist/editors.js +12 -0
  313. package/dist/file-manager.cjs +1 -0
  314. package/dist/file-manager.js +22 -0
  315. package/dist/grid.cjs +1 -0
  316. package/dist/grid.js +30 -0
  317. package/dist/hooks/use-editable-item.js +94 -0
  318. package/dist/hooks/use-flexible-actions.js +72 -0
  319. package/dist/hooks/use-has-hover.js +17 -0
  320. package/dist/hooks/use-is-mobile-screen.js +12 -0
  321. package/dist/hooks/use-is-tablet-screen.js +12 -0
  322. package/dist/hooks/use-screen-type.js +14 -0
  323. package/dist/hooks/use-width-breakpoint.js +15 -0
  324. package/dist/icon-CrGVkVpG.cjs +1 -0
  325. package/dist/icon-DhjrDQ8I.cjs +1 -0
  326. package/dist/index.css +2 -2
  327. package/dist/lazy-tfN4sKhq.cjs +1 -0
  328. package/dist/merge-classes-Dipy1Ih1.cjs +1 -0
  329. package/dist/migration-guides/0.14.0/button-tooltip-2-0.md +1 -1
  330. package/dist/migration-guides/0.14.0/shadow-token-per-step-rename.md +64 -29
  331. package/dist/migration-guides/README.md +1 -1
  332. package/dist/models/file.js +6 -0
  333. package/dist/models/selection-mode.js +4 -0
  334. package/dist/models/step.js +4 -0
  335. package/dist/node_modules/@react-dnd/asap/dist/AsapQueue.js +39 -0
  336. package/dist/node_modules/@react-dnd/asap/dist/RawTask.js +17 -0
  337. package/dist/node_modules/@react-dnd/asap/dist/TaskFactory.js +16 -0
  338. package/dist/node_modules/@react-dnd/asap/dist/asap.js +9 -0
  339. package/dist/node_modules/@react-dnd/asap/dist/makeRequestCall.js +62 -0
  340. package/dist/node_modules/@react-dnd/invariant/dist/index.js +22 -0
  341. package/dist/node_modules/@react-dnd/shallowequal/dist/index.js +25 -0
  342. package/dist/node_modules/ag-grid-community/dist/package/main.esm.js +39799 -0
  343. package/dist/node_modules/ag-grid-react/dist/package/index.esm.js +1989 -0
  344. package/dist/node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js +70 -0
  345. package/dist/node_modules/dnd-core/dist/actions/dragDrop/drop.js +54 -0
  346. package/dist/node_modules/dnd-core/dist/actions/dragDrop/endDrag.js +18 -0
  347. package/dist/node_modules/dnd-core/dist/actions/dragDrop/hover.js +42 -0
  348. package/dist/node_modules/dnd-core/dist/actions/dragDrop/index.js +17 -0
  349. package/dist/node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js +13 -0
  350. package/dist/node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js +12 -0
  351. package/dist/node_modules/dnd-core/dist/actions/dragDrop/types.js +9 -0
  352. package/dist/node_modules/dnd-core/dist/actions/registry.js +43 -0
  353. package/dist/node_modules/dnd-core/dist/classes/DragDropManagerImpl.js +41 -0
  354. package/dist/node_modules/dnd-core/dist/classes/DragDropMonitorImpl.js +115 -0
  355. package/dist/node_modules/dnd-core/dist/classes/HandlerRegistryImpl.js +96 -0
  356. package/dist/node_modules/dnd-core/dist/contracts.js +21 -0
  357. package/dist/node_modules/dnd-core/dist/createDragDropManager.js +19 -0
  358. package/dist/node_modules/dnd-core/dist/interfaces.js +7 -0
  359. package/dist/node_modules/dnd-core/dist/reducers/dirtyHandlerIds.js +30 -0
  360. package/dist/node_modules/dnd-core/dist/reducers/dragOffset.js +50 -0
  361. package/dist/node_modules/dnd-core/dist/reducers/dragOperation.js +78 -0
  362. package/dist/node_modules/dnd-core/dist/reducers/index.js +42 -0
  363. package/dist/node_modules/dnd-core/dist/reducers/refCount.js +16 -0
  364. package/dist/node_modules/dnd-core/dist/reducers/stateId.js +6 -0
  365. package/dist/node_modules/dnd-core/dist/utils/coords.js +26 -0
  366. package/dist/node_modules/dnd-core/dist/utils/dirtiness.js +12 -0
  367. package/dist/node_modules/dnd-core/dist/utils/equality.js +17 -0
  368. package/dist/node_modules/dnd-core/dist/utils/getNextUniqueId.js +7 -0
  369. package/dist/node_modules/dnd-core/dist/utils/js_utils.js +36 -0
  370. package/dist/node_modules/dnd-core/dist/utils/matchesType.js +8 -0
  371. package/dist/node_modules/fast-deep-equal/index.js +31 -0
  372. package/dist/node_modules/mime-db/db.json.js +2527 -0
  373. package/dist/node_modules/mime-db/index.js +8 -0
  374. package/dist/node_modules/mime-types/index.js +70 -0
  375. package/dist/node_modules/mime-types/mimeScore.js +38 -0
  376. package/dist/node_modules/re-resizable/lib/index.js +424 -0
  377. package/dist/node_modules/re-resizable/lib/resizer.js +49 -0
  378. package/dist/node_modules/react-dnd/dist/core/DndContext.js +7 -0
  379. package/dist/node_modules/react-dnd/dist/core/DndProvider.js +66 -0
  380. package/dist/node_modules/react-dnd/dist/hooks/useCollectedProps.js +11 -0
  381. package/dist/node_modules/react-dnd/dist/hooks/useCollector.js +22 -0
  382. package/dist/node_modules/react-dnd/dist/hooks/useDrag/DragSourceImpl.js +25 -0
  383. package/dist/node_modules/react-dnd/dist/hooks/useDrag/connectors.js +21 -0
  384. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDrag.js +20 -0
  385. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSource.js +19 -0
  386. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceConnector.js +22 -0
  387. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceMonitor.js +15 -0
  388. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragType.js +13 -0
  389. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useRegisteredDragSource.js +23 -0
  390. package/dist/node_modules/react-dnd/dist/hooks/useDragDropManager.js +10 -0
  391. package/dist/node_modules/react-dnd/dist/hooks/useDrop/DropTargetImpl.js +21 -0
  392. package/dist/node_modules/react-dnd/dist/hooks/useDrop/connectors.js +12 -0
  393. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useAccept.js +13 -0
  394. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDrop.js +16 -0
  395. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTarget.js +18 -0
  396. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetConnector.js +18 -0
  397. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetMonitor.js +15 -0
  398. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useRegisteredDropTarget.js +23 -0
  399. package/dist/node_modules/react-dnd/dist/hooks/useIsomorphicLayoutEffect.js +5 -0
  400. package/dist/node_modules/react-dnd/dist/hooks/useMonitorOutput.js +20 -0
  401. package/dist/node_modules/react-dnd/dist/hooks/useOptionalFactory.js +10 -0
  402. package/dist/node_modules/react-dnd/dist/internals/DragSourceMonitorImpl.js +88 -0
  403. package/dist/node_modules/react-dnd/dist/internals/DropTargetMonitorImpl.js +59 -0
  404. package/dist/node_modules/react-dnd/dist/internals/SourceConnector.js +87 -0
  405. package/dist/node_modules/react-dnd/dist/internals/TargetConnector.js +57 -0
  406. package/dist/node_modules/react-dnd/dist/internals/isRef.js +9 -0
  407. package/dist/node_modules/react-dnd/dist/internals/registration.js +18 -0
  408. package/dist/node_modules/react-dnd/dist/internals/wrapConnectorHooks.js +46 -0
  409. package/dist/node_modules/react-dnd-html5-backend/dist/BrowserDetector.js +10 -0
  410. package/dist/node_modules/react-dnd-html5-backend/dist/EnterLeaveCounter.js +22 -0
  411. package/dist/node_modules/react-dnd-html5-backend/dist/HTML5BackendImpl.js +274 -0
  412. package/dist/node_modules/react-dnd-html5-backend/dist/MonotonicInterpolant.js +59 -0
  413. package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/NativeDragSource.js +43 -0
  414. package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.js +10 -0
  415. package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js +24 -0
  416. package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js +48 -0
  417. package/dist/node_modules/react-dnd-html5-backend/dist/NativeTypes.js +7 -0
  418. package/dist/node_modules/react-dnd-html5-backend/dist/OffsetUtils.js +70 -0
  419. package/dist/node_modules/react-dnd-html5-backend/dist/OptionsReader.js +22 -0
  420. package/dist/node_modules/react-dnd-html5-backend/dist/index.js +7 -0
  421. package/dist/node_modules/react-dnd-html5-backend/dist/utils/js_utils.js +22 -0
  422. package/dist/node_modules/redux/es/redux.js +158 -0
  423. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2924 -0
  424. package/dist/src/components/Analytics/BarGroup/BarGroup.d.ts +9 -2
  425. package/dist/src/components/FileManager/FileManager.d.ts +2 -1
  426. package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +2 -0
  427. package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +4 -2
  428. package/dist/src/components/FileManager/utils.d.ts +11 -0
  429. package/dist/src/components/Grid/comparators/base-column-comparator.d.ts +1 -4
  430. package/dist/src/components/Grid/renderers/utils.d.ts +1 -2
  431. package/dist/src/components/JsonEditor/lazy.d.ts +14 -0
  432. package/dist/src/components/MarkdownEditor/lazy.d.ts +7 -0
  433. package/dist/src/components/New/CollapsibleSidebar/CollapsibleSidebar.d.ts +82 -0
  434. package/dist/src/components/New/Dropdown/Dropdown.d.ts +20 -0
  435. package/dist/src/components/New/Dropdown/constants.d.ts +5 -4
  436. package/dist/src/components/New/Dropdown/item-mark.d.ts +15 -0
  437. package/dist/src/components/New/EllipsisTooltip/EllipsisTooltip.d.ts +1 -1
  438. package/dist/src/components/New/EllipsisTooltip/use-truncation.d.ts +5 -0
  439. package/dist/src/components/New/Grid/Grid.d.ts +124 -0
  440. package/dist/src/components/New/Grid/components/SelectionCell.d.ts +21 -0
  441. package/dist/src/components/New/Grid/components/SelectionHeader.d.ts +14 -0
  442. package/dist/src/components/New/Grid/constants.d.ts +61 -0
  443. package/dist/src/components/New/Grid/renderers/DateCellRenderer.d.ts +48 -0
  444. package/dist/src/components/New/Grid/renderers/constants.d.ts +5 -0
  445. package/dist/src/components/New/InteractiveTooltip/InteractiveTooltip.d.ts +74 -0
  446. package/dist/src/components/New/InteractiveTooltip/constants.d.ts +26 -0
  447. package/dist/src/components/New/MarkdownEditor/MarkdownEditor.d.ts +6 -0
  448. package/dist/src/components/New/MarkdownEditor/lazy.d.ts +7 -0
  449. package/dist/src/components/New/MenuItem/MenuItem.d.ts +68 -0
  450. package/dist/src/components/New/MenuItem/constants.d.ts +5 -0
  451. package/dist/src/components/New/NoDataContent/NoDataContent.d.ts +48 -0
  452. package/dist/src/components/New/ResizableContainer/ConditionalResizableContainer.d.ts +34 -0
  453. package/dist/src/components/New/ResizableContainer/ResizableContainer.d.ts +77 -0
  454. package/dist/src/components/New/ResizableContainer/components/ResizeHandle.d.ts +21 -0
  455. package/dist/src/components/New/SegmentedControl/constants.d.ts +2 -2
  456. package/dist/src/components/New/Select/Select.d.ts +14 -2
  457. package/dist/src/components/New/Select/SelectSubMenuItem.d.ts +3 -0
  458. package/dist/src/components/New/Select/constants.d.ts +12 -5
  459. package/dist/src/components/New/Textarea/Textarea.d.ts +8 -2
  460. package/dist/src/components/New/ThemeScope/ThemeScope.d.ts +46 -0
  461. package/dist/src/components/New/Tooltip/Tooltip.d.ts +1 -1
  462. package/dist/src/components/New/Tooltip/TooltipContent.d.ts +4 -3
  463. package/dist/src/components/New/Tooltip/constants.d.ts +10 -1
  464. package/dist/src/components/New/constants/icon.d.ts +22 -0
  465. package/dist/src/components/New/constants/overlay.d.ts +7 -0
  466. package/dist/src/components/Tooltip/TooltipContent.d.ts +4 -0
  467. package/dist/src/hooks/use-has-hover.d.ts +20 -0
  468. package/dist/src/index.d.ts +28 -4
  469. package/dist/src/models/dropdown.d.ts +40 -1
  470. package/dist/src/models/select.d.ts +30 -0
  471. package/dist/src/subpaths/editors.d.ts +22 -0
  472. package/dist/src/subpaths/file-manager.d.ts +21 -0
  473. package/dist/src/subpaths/grid.d.ts +25 -0
  474. package/dist/src/types/menu-item.d.ts +21 -0
  475. package/dist/src/utils/__tests__/element-size-observer.spec.d.ts +1 -0
  476. package/dist/src/utils/__tests__/pointer.spec.d.ts +1 -0
  477. package/dist/src/utils/element-size-observer.d.ts +26 -0
  478. package/dist/src/utils/grid-comparators.d.ts +4 -0
  479. package/dist/src/utils/grid-date.d.ts +7 -0
  480. package/dist/src/utils/grid-registration.d.ts +16 -0
  481. package/dist/src/utils/grid-registration.spec.d.ts +1 -0
  482. package/dist/src/utils/pointer.d.ts +29 -0
  483. package/dist/src/utils/sub-menu-floating.d.ts +1 -0
  484. package/dist/types/analytics.js +4 -0
  485. package/dist/types/button.js +5 -0
  486. package/dist/types/calendar.js +4 -0
  487. package/dist/types/caption.js +4 -0
  488. package/dist/types/confirmation-popup.js +4 -0
  489. package/dist/types/dropdown.js +6 -0
  490. package/dist/types/editor.js +4 -0
  491. package/dist/types/file-manager.js +12 -0
  492. package/dist/types/flexible-actions.js +4 -0
  493. package/dist/types/form-item.js +4 -0
  494. package/dist/types/item.js +4 -0
  495. package/dist/types/menu-item.js +4 -0
  496. package/dist/types/notification.js +5 -0
  497. package/dist/types/popup.js +4 -0
  498. package/dist/types/radio-group.js +4 -0
  499. package/dist/types/resizable-container.js +4 -0
  500. package/dist/types/screen.js +4 -0
  501. package/dist/types/select.js +5 -0
  502. package/dist/types/size.js +4 -0
  503. package/dist/types/skeleton.js +6 -0
  504. package/dist/types/tab.js +6 -0
  505. package/dist/types/tag.js +4 -0
  506. package/dist/types/tooltip.js +4 -0
  507. package/dist/use-file-manager-tabs-DjdR_mYM.cjs +3 -0
  508. package/dist/utils/accessible-name.js +6 -0
  509. package/dist/utils/debounce.js +9 -0
  510. package/dist/utils/element-size-observer.js +24 -0
  511. package/dist/utils/file-accept.js +16 -0
  512. package/dist/utils/flat-to-hierarchy-convertor.js +86 -0
  513. package/dist/utils/grid-comparators.js +17 -0
  514. package/dist/utils/grid-date.js +20 -0
  515. package/dist/utils/grid-registration.js +8 -0
  516. package/dist/utils/merge-classes.js +8 -0
  517. package/dist/utils/mobile.js +11 -0
  518. package/dist/utils/path.js +4 -0
  519. package/dist/utils/pointer.js +5 -0
  520. package/dist/utils/sub-menu-floating.js +85 -0
  521. package/package.json +37 -12
  522. package/dist/JsonEditor-D3v6vYDX.cjs +0 -1
  523. package/dist/MarkdownEditor-CfaHfp2e.js +0 -75
  524. package/dist/MarkdownEditor-D9M8LvKZ.cjs +0 -1
  525. package/dist/MarkdownEditor-HO5rwRn7.cjs +0 -1
  526. package/dist/MarkdownEditor-K1ldlz5M.js +0 -35
  527. package/dist/dial-ui-kit.cjs.js +0 -1
  528. package/dist/dial-ui-kit.es.js +0 -221
  529. package/dist/index-DD0A-MXM.cjs +0 -71
  530. package/dist/index-Dg0iEirR.js +0 -66908
@@ -0,0 +1,1989 @@
1
+ import a, { Component as ut, useContext as ee, useRef as o, useState as c, useCallback as U, useMemo as E, useEffect as ce, useLayoutEffect as fe, memo as ne, forwardRef as Ue, useImperativeHandle as He, createElement as dt, createContext as pt, Suspense as ht } from "react";
2
+ import { _findEnterpriseCoreModule as mt, _combineAttributesAndGridOptions as ft, GridCoreCreator as Ct, _processOnChange as gt, _getGridOption as De, VanillaFrameworkOverrides as yt, BaseComponentWrapper as vt, BeanStub as wt, _warn as Ve, _getGridRegisteredModules as bt, _observeResize as Ye, _toString as Rt, AgPromise as de, GridCtrl as Pt, _isClientSideRowModel as St, _isServerSideRowModel as Ft, CssClassManager as Ie, GridBodyCtrl as Et, TabGuardCtrl as kt, _setAriaRowCount as Mt, _setAriaColCount as Gt, FakeHScrollComp as At, FakeVScrollComp as Dt, TabGuardClassNames as We, GridHeaderCtrl as Bt, HeaderRowContainerCtrl as xt, _getRowContainerOptions as It, _getRowViewportClass as Ot, _getRowContainerClass as Wt, _getRowSpanContainerClass as Tt, RowContainerCtrl as Nt, _EmptyBean as Se, _setAriaSort as Ut, _removeAriaSort as Ht, _removeFromParent as ze, _getActiveDomElement as Vt } from "../../../ag-grid-community/dist/package/main.esm.js";
3
+ import _t, { createPortal as Ze } from "react-dom";
4
+ var re = a.createContext({}), Xe = a.createContext("default"), Me = (e, t, r, s) => {
5
+ if (!e || e.componentFromFramework || t.isDestroyed())
6
+ return;
7
+ const d = e.newAgStackInstance();
8
+ let i, u, l = !1;
9
+ return d.then((m) => {
10
+ if (l) {
11
+ t.destroyBean(m);
12
+ return;
13
+ }
14
+ i = m, u = i.getGui(), r.appendChild(u), je(s, i);
15
+ }), () => {
16
+ l = !0, i && (u?.remove(), t.destroyBean(i), s && je(s, void 0));
17
+ };
18
+ }, je = (e, t) => {
19
+ if (e)
20
+ if (e instanceof Function)
21
+ e(t);
22
+ else {
23
+ const r = e;
24
+ r.current = t;
25
+ }
26
+ }, le = (...e) => e.filter((r) => r != null && r !== "").join(" "), ue = class et {
27
+ constructor(...t) {
28
+ this.classesMap = {};
29
+ for (const r of t)
30
+ this.classesMap[r] = !0;
31
+ }
32
+ setClass(t, r) {
33
+ if (!!this.classesMap[t] == r)
34
+ return this;
35
+ const n = new et();
36
+ return n.classesMap = { ...this.classesMap }, n.classesMap[t] = r, n;
37
+ }
38
+ toString() {
39
+ return Object.keys(this.classesMap).filter((r) => this.classesMap[r]).join(" ");
40
+ }
41
+ }, Fe = (e) => {
42
+ const t = () => typeof Symbol == "function" && Symbol.for, r = () => t() ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
43
+ return typeof e == "function" && !(e.prototype && e.prototype.isReactComponent) || typeof e == "object" && e.$$typeof === r();
44
+ }, Ne = a.version?.split(".")[0], tt = Ne === "16" || Ne === "17";
45
+ function Lt() {
46
+ return Ne === "19";
47
+ }
48
+ var Be = !1;
49
+ function zt(e) {
50
+ return Be || setTimeout(() => Be = !1, 0), Be = !0, e();
51
+ }
52
+ var ke = (e, t) => {
53
+ !tt && e && !Be ? _t.flushSync(t) : t();
54
+ }, jt = (e) => {
55
+ tt ? e() : a.startTransition(e);
56
+ };
57
+ function $t(e, t, r) {
58
+ return a.useSyncExternalStore ? a.useSyncExternalStore(e, t) : r;
59
+ }
60
+ function xe(e, t, r) {
61
+ if (t == null || e == null)
62
+ return t;
63
+ if (e === t || t.length === 0 && e.length === 0)
64
+ return e;
65
+ if (r || e.length === 0 && t.length > 0 || e.length > 0 && t.length === 0)
66
+ return t;
67
+ const s = [], n = [], d = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
68
+ for (let u = 0; u < t.length; u++) {
69
+ const l = t[u];
70
+ i.set(l.instanceId, l);
71
+ }
72
+ for (let u = 0; u < e.length; u++) {
73
+ const l = e[u];
74
+ d.set(l.instanceId, l), i.has(l.instanceId) && s.push(l);
75
+ }
76
+ for (let u = 0; u < t.length; u++) {
77
+ const l = t[u], m = l.instanceId;
78
+ d.has(m) || n.push(l);
79
+ }
80
+ return s.length === e.length && n.length === 0 ? e : s.length === 0 && n.length === t.length ? t : s.length === 0 ? n : n.length === 0 ? s : [...s, ...n];
81
+ }
82
+ var rt = Ue((e, t) => {
83
+ const { registry: r, context: s } = ee(re), n = o(null), d = o(null), i = o(null), u = o(null), l = o(null), m = o(), [p, S] = c(), [b, y] = c(), [A, w] = c(), [v, h] = c(() => new ue()), [D, W] = c(() => new ue("ag-hidden")), [R, f] = c(() => new ue("ag-hidden")), [H, k] = c(() => new ue("ag-invisible"));
84
+ He(t, () => ({
85
+ // force new instance when grid tries to refresh
86
+ refresh() {
87
+ return !1;
88
+ }
89
+ })), fe(() => Me(p, s, d.current), [p]);
90
+ const V = U((L) => {
91
+ if (n.current = L, !L || s.isDestroyed()) {
92
+ m.current = s.destroyBean(m.current);
93
+ return;
94
+ }
95
+ const F = {
96
+ setInnerRenderer: (M, z) => {
97
+ S(M), w(z);
98
+ },
99
+ setChildCount: (M) => y(M),
100
+ toggleCss: (M, z) => h((G) => G.setClass(M, z)),
101
+ setContractedDisplayed: (M) => f((z) => z.setClass("ag-hidden", !M)),
102
+ setExpandedDisplayed: (M) => W((z) => z.setClass("ag-hidden", !M)),
103
+ setCheckboxVisible: (M) => k((z) => z.setClass("ag-invisible", !M)),
104
+ setCheckboxSpacing: (M) => k((z) => z.setClass("ag-group-checkbox-spacing", M))
105
+ }, N = r.createDynamicBean("groupCellRendererCtrl", !0);
106
+ N && (m.current = s.createBean(N), m.current.init(
107
+ F,
108
+ L,
109
+ i.current,
110
+ u.current,
111
+ l.current,
112
+ rt,
113
+ e
114
+ ));
115
+ }, []), O = E(() => `ag-cell-wrapper ${v.toString()}`, [v]), _ = E(() => `ag-group-expanded ${D.toString()}`, [D]), C = E(
116
+ () => `ag-group-contracted ${R.toString()}`,
117
+ [R]
118
+ ), P = E(() => `ag-group-checkbox ${H.toString()}`, [H]), x = p?.componentFromFramework, q = x ? p.componentClass : void 0, g = p == null && A != null, T = Rt(A);
119
+ return /* @__PURE__ */ a.createElement(
120
+ "span",
121
+ {
122
+ className: O,
123
+ ref: V,
124
+ ...e.colDef ? {} : { role: m.current?.getCellAriaRole() }
125
+ },
126
+ /* @__PURE__ */ a.createElement("span", { className: _, ref: u }),
127
+ /* @__PURE__ */ a.createElement("span", { className: C, ref: l }),
128
+ /* @__PURE__ */ a.createElement("span", { className: P, ref: i }),
129
+ /* @__PURE__ */ a.createElement("span", { className: "ag-group-value", ref: d }, g ? T : x ? /* @__PURE__ */ a.createElement(q, { ...p.params }) : null),
130
+ /* @__PURE__ */ a.createElement("span", { className: "ag-group-child-count" }, b)
131
+ );
132
+ }), $e = rt, _e = pt({
133
+ setMethods: () => {
134
+ }
135
+ }), Kt = (e) => {
136
+ const { initialProps: t, addUpdateCallback: r, CustomComponentClass: s, setMethods: n } = e, [{ key: d, ...i }, u] = c(t);
137
+ return ce(() => {
138
+ r((l) => u(l));
139
+ }, []), /* @__PURE__ */ a.createElement(_e.Provider, { value: { setMethods: n } }, /* @__PURE__ */ a.createElement(s, { key: d, ...i }));
140
+ }, Jt = ne(Kt), qt = 0;
141
+ function Ke() {
142
+ return `agPortalKey_${++qt}`;
143
+ }
144
+ var st = class {
145
+ constructor(e, t, r, s) {
146
+ this.portal = null, this.oldPortal = null, this.reactComponent = e, this.portalManager = t, this.componentType = r, this.suppressFallbackMethods = !!s, this.statelessComponent = this.isStateless(this.reactComponent), this.key = Ke(), this.portalKey = Ke(), this.instanceCreated = this.isStatelessComponent() ? de.resolve(!1) : new de((n) => {
147
+ this.resolveInstanceCreated = n;
148
+ });
149
+ }
150
+ getGui() {
151
+ return this.eParentElement;
152
+ }
153
+ /** `getGui()` returns the parent element. This returns the actual root element. */
154
+ getRootElement() {
155
+ return this.eParentElement.firstChild;
156
+ }
157
+ destroy() {
158
+ this.componentInstance && typeof this.componentInstance.destroy == "function" && this.componentInstance.destroy();
159
+ const e = this.portal;
160
+ e && this.portalManager.destroyPortal(e);
161
+ }
162
+ createParentElement(e) {
163
+ const t = this.portalManager.getComponentWrappingElement(), r = document.createElement(t || "div");
164
+ return r.classList.add("ag-react-container"), e.reactContainer = r, r;
165
+ }
166
+ statelessComponentRendered() {
167
+ return this.eParentElement.childElementCount > 0 || this.eParentElement.childNodes.length > 0;
168
+ }
169
+ getFrameworkComponentInstance() {
170
+ return this.componentInstance;
171
+ }
172
+ isStatelessComponent() {
173
+ return this.statelessComponent;
174
+ }
175
+ getReactComponentName() {
176
+ return this.reactComponent.name;
177
+ }
178
+ getMemoType() {
179
+ return this.hasSymbol() ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
180
+ }
181
+ hasSymbol() {
182
+ return typeof Symbol == "function" && Symbol.for;
183
+ }
184
+ isStateless(e) {
185
+ return typeof e == "function" && !(e.prototype && e.prototype.isReactComponent) || typeof e == "object" && e.$$typeof === this.getMemoType();
186
+ }
187
+ hasMethod(e) {
188
+ const t = this.getFrameworkComponentInstance();
189
+ return !!t && t[e] != null || this.fallbackMethodAvailable(e);
190
+ }
191
+ callMethod(e, t) {
192
+ const r = this.getFrameworkComponentInstance();
193
+ if (this.isStatelessComponent())
194
+ return this.fallbackMethod(e, t && t[0] ? t[0] : {});
195
+ if (!r) {
196
+ setTimeout(() => this.callMethod(e, t));
197
+ return;
198
+ }
199
+ const s = r[e];
200
+ if (s)
201
+ return s.apply(r, t);
202
+ if (this.fallbackMethodAvailable(e))
203
+ return this.fallbackMethod(e, t && t[0] ? t[0] : {});
204
+ }
205
+ addMethod(e, t) {
206
+ this[e] = t;
207
+ }
208
+ init(e) {
209
+ return this.eParentElement = this.createParentElement(e), this.createOrUpdatePortal(e), new de((t) => this.createReactComponent(t));
210
+ }
211
+ createOrUpdatePortal(e) {
212
+ this.isStatelessComponent() || (this.ref = (t) => {
213
+ this.componentInstance = t, this.resolveInstanceCreated?.(!0), this.resolveInstanceCreated = void 0;
214
+ }, e.ref = this.ref), this.reactElement = this.createElement(this.reactComponent, { ...e, key: this.key }), this.portal = Ze(
215
+ this.reactElement,
216
+ this.eParentElement,
217
+ this.portalKey
218
+ // fixed deltaRowModeRefreshCompRenderer
219
+ );
220
+ }
221
+ createElement(e, t) {
222
+ return dt(e, t);
223
+ }
224
+ createReactComponent(e) {
225
+ this.portalManager.mountReactPortal(this.portal, this, e);
226
+ }
227
+ rendered() {
228
+ return this.isStatelessComponent() && this.statelessComponentRendered() || !!(!this.isStatelessComponent() && this.getFrameworkComponentInstance());
229
+ }
230
+ /*
231
+ * fallback methods - these will be invoked if a corresponding instance method is not present
232
+ * for example if refresh is called and is not available on the component instance, then refreshComponent on this
233
+ * class will be invoked instead
234
+ *
235
+ * Currently only refresh is supported
236
+ */
237
+ refreshComponent(e) {
238
+ this.oldPortal = this.portal, this.createOrUpdatePortal(e), this.portalManager.updateReactPortal(this.oldPortal, this.portal);
239
+ }
240
+ fallbackMethod(e, t) {
241
+ const r = this[`${e}Component`];
242
+ if (!this.suppressFallbackMethods && r)
243
+ return r.bind(this)(t);
244
+ }
245
+ fallbackMethodAvailable(e) {
246
+ return this.suppressFallbackMethods ? !1 : !!this[`${e}Component`];
247
+ }
248
+ };
249
+ function Oe(e, t, r) {
250
+ for (const s of e) {
251
+ const n = t[s];
252
+ n && (r[s] = n);
253
+ }
254
+ }
255
+ var pe = class extends st {
256
+ constructor() {
257
+ super(...arguments), this.awaitUpdateCallback = new de((e) => {
258
+ this.resolveUpdateCallback = e;
259
+ }), this.wrapperComponent = Jt;
260
+ }
261
+ init(e) {
262
+ return this.sourceParams = e, super.init(this.getProps());
263
+ }
264
+ addMethod() {
265
+ }
266
+ getInstance() {
267
+ return this.instanceCreated.then(() => this.componentInstance);
268
+ }
269
+ getFrameworkComponentInstance() {
270
+ return this;
271
+ }
272
+ createElement(e, t) {
273
+ return super.createElement(this.wrapperComponent, {
274
+ initialProps: t,
275
+ CustomComponentClass: e,
276
+ setMethods: (r) => this.setMethods(r),
277
+ addUpdateCallback: (r) => {
278
+ this.updateCallback = () => (r(this.getProps()), new de((s) => {
279
+ setTimeout(() => {
280
+ s();
281
+ });
282
+ })), this.resolveUpdateCallback();
283
+ }
284
+ });
285
+ }
286
+ setMethods(e) {
287
+ this.providedMethods = e, Oe(this.getOptionalMethods(), this.providedMethods, this);
288
+ }
289
+ getOptionalMethods() {
290
+ return [];
291
+ }
292
+ getProps() {
293
+ return {
294
+ ...this.sourceParams,
295
+ key: this.key,
296
+ ref: this.ref
297
+ };
298
+ }
299
+ refreshProps() {
300
+ return this.updateCallback ? this.updateCallback() : new de(
301
+ (e) => this.awaitUpdateCallback.then(() => {
302
+ this.updateCallback().then(() => e());
303
+ })
304
+ );
305
+ }
306
+ }, Qt = class extends pe {
307
+ refresh(e) {
308
+ return this.sourceParams = e, this.refreshProps(), !0;
309
+ }
310
+ }, Yt = class extends pe {
311
+ refresh(e) {
312
+ this.sourceParams = e, this.refreshProps();
313
+ }
314
+ }, Zt = class extends pe {
315
+ constructor() {
316
+ super(...arguments), this.date = null, this.onDateChange = (e) => this.updateDate(e);
317
+ }
318
+ getDate() {
319
+ return this.date;
320
+ }
321
+ setDate(e) {
322
+ this.date = e, this.refreshProps();
323
+ }
324
+ refresh(e) {
325
+ this.sourceParams = e, this.refreshProps();
326
+ }
327
+ getOptionalMethods() {
328
+ return ["afterGuiAttached", "setInputPlaceholder", "setInputAriaLabel", "setDisabled"];
329
+ }
330
+ updateDate(e) {
331
+ this.setDate(e), this.sourceParams.onDateChanged();
332
+ }
333
+ getProps() {
334
+ const e = super.getProps();
335
+ return e.date = this.date, e.onDateChange = this.onDateChange, delete e.onDateChanged, e;
336
+ }
337
+ }, Xt = class extends pe {
338
+ constructor() {
339
+ super(...arguments), this.label = "", this.icon = null, this.shake = !1;
340
+ }
341
+ setIcon(e, t) {
342
+ this.icon = e, this.shake = t, this.refreshProps();
343
+ }
344
+ setLabel(e) {
345
+ this.label = e, this.refreshProps();
346
+ }
347
+ getProps() {
348
+ const e = super.getProps(), { label: t, icon: r, shake: s } = this;
349
+ return e.label = t, e.icon = r, e.shake = s, e;
350
+ }
351
+ }, er = class extends pe {
352
+ constructor() {
353
+ super(...arguments), this.model = null, this.onModelChange = (e) => this.updateModel(e), this.onUiChange = () => this.sourceParams.filterModifiedCallback(), this.expectingNewMethods = !0, this.hasBeenActive = !1, this.awaitSetMethodsCallback = new de((e) => {
354
+ this.resolveSetMethodsCallback = e;
355
+ });
356
+ }
357
+ isFilterActive() {
358
+ return this.model != null;
359
+ }
360
+ doesFilterPass(e) {
361
+ return this.providedMethods.doesFilterPass(e);
362
+ }
363
+ getModel() {
364
+ return this.model;
365
+ }
366
+ setModel(e) {
367
+ return this.expectingNewMethods = !0, this.model = e, this.hasBeenActive || (this.hasBeenActive = this.isFilterActive()), this.refreshProps();
368
+ }
369
+ refresh(e) {
370
+ return this.sourceParams = e, this.refreshProps(), !0;
371
+ }
372
+ afterGuiAttached(e) {
373
+ const t = this.providedMethods;
374
+ t ? t.afterGuiAttached?.(e) : this.awaitSetMethodsCallback.then(() => this.providedMethods?.afterGuiAttached?.(e));
375
+ }
376
+ getOptionalMethods() {
377
+ return ["afterGuiDetached", "onNewRowsLoaded", "getModelAsString", "onAnyFilterChanged"];
378
+ }
379
+ setMethods(e) {
380
+ this.expectingNewMethods === !1 && this.hasBeenActive && this.providedMethods?.doesFilterPass !== e?.doesFilterPass && setTimeout(() => {
381
+ this.sourceParams.filterChangedCallback();
382
+ }), this.expectingNewMethods = !1, super.setMethods(e), this.resolveSetMethodsCallback(), this.resolveFilterPassCallback?.(), this.resolveFilterPassCallback = void 0;
383
+ }
384
+ updateModel(e) {
385
+ this.resolveFilterPassCallback?.();
386
+ const t = new de((r) => {
387
+ this.resolveFilterPassCallback = r;
388
+ });
389
+ this.setModel(e).then(() => {
390
+ t.then(() => {
391
+ this.sourceParams.filterChangedCallback();
392
+ });
393
+ });
394
+ }
395
+ getProps() {
396
+ const e = super.getProps();
397
+ return e.model = this.model, e.onModelChange = this.onModelChange, e.onUiChange = this.onUiChange, delete e.filterChangedCallback, e;
398
+ }
399
+ }, tr = class extends pe {
400
+ constructor() {
401
+ super(...arguments), this.awaitSetMethodsCallback = new de((e) => {
402
+ this.resolveSetMethodsCallback = e;
403
+ });
404
+ }
405
+ refresh(e) {
406
+ return this.sourceParams = e, this.refreshProps(), !0;
407
+ }
408
+ afterGuiAttached(e) {
409
+ const t = this.providedMethods;
410
+ t ? t.afterGuiAttached?.(e) : this.awaitSetMethodsCallback.then(() => this.providedMethods?.afterGuiAttached?.(e));
411
+ }
412
+ getOptionalMethods() {
413
+ return ["afterGuiDetached", "onNewRowsLoaded", "onAnyFilterChanged"];
414
+ }
415
+ setMethods(e) {
416
+ super.setMethods(e), this.resolveSetMethodsCallback();
417
+ }
418
+ };
419
+ function nt(e, t) {
420
+ e.parentFilterInstance((r) => {
421
+ (r.setModel(t) || de.resolve()).then(() => {
422
+ e.filterParams.filterChangedCallback();
423
+ });
424
+ });
425
+ }
426
+ var rr = class {
427
+ constructor(e, t) {
428
+ this.floatingFilterParams = e, this.refreshProps = t, this.model = null, this.onModelChange = (r) => this.updateModel(r);
429
+ }
430
+ getProps() {
431
+ return {
432
+ ...this.floatingFilterParams,
433
+ model: this.model,
434
+ onModelChange: this.onModelChange
435
+ };
436
+ }
437
+ onParentModelChanged(e) {
438
+ this.model = e, this.refreshProps();
439
+ }
440
+ refresh(e) {
441
+ this.floatingFilterParams = e, this.refreshProps();
442
+ }
443
+ setMethods(e) {
444
+ Oe(this.getOptionalMethods(), e, this);
445
+ }
446
+ getOptionalMethods() {
447
+ return ["afterGuiAttached"];
448
+ }
449
+ updateModel(e) {
450
+ this.model = e, this.refreshProps(), nt(this.floatingFilterParams, e);
451
+ }
452
+ }, sr = class extends pe {
453
+ constructor() {
454
+ super(...arguments), this.model = null, this.onModelChange = (e) => this.updateModel(e);
455
+ }
456
+ onParentModelChanged(e) {
457
+ this.model = e, this.refreshProps();
458
+ }
459
+ refresh(e) {
460
+ this.sourceParams = e, this.refreshProps();
461
+ }
462
+ getOptionalMethods() {
463
+ return ["afterGuiAttached"];
464
+ }
465
+ updateModel(e) {
466
+ this.model = e, this.refreshProps(), nt(this.sourceParams, e);
467
+ }
468
+ getProps() {
469
+ const e = super.getProps();
470
+ return e.model = this.model, e.onModelChange = this.onModelChange, e;
471
+ }
472
+ }, nr = class extends pe {
473
+ refresh(e) {
474
+ this.sourceParams = e, this.refreshProps();
475
+ }
476
+ getOptionalMethods() {
477
+ return ["afterGuiAttached"];
478
+ }
479
+ }, or = class extends pe {
480
+ refresh(e) {
481
+ return this.sourceParams = e, this.refreshProps(), !0;
482
+ }
483
+ }, ar = class extends pe {
484
+ constructor() {
485
+ super(...arguments), this.active = !1, this.expanded = !1, this.onActiveChange = (e) => this.updateActive(e);
486
+ }
487
+ setActive(e) {
488
+ this.awaitSetActive(e);
489
+ }
490
+ setExpanded(e) {
491
+ this.expanded = e, this.refreshProps();
492
+ }
493
+ getOptionalMethods() {
494
+ return ["select", "configureDefaults"];
495
+ }
496
+ awaitSetActive(e) {
497
+ return this.active = e, this.refreshProps();
498
+ }
499
+ updateActive(e) {
500
+ const t = this.awaitSetActive(e);
501
+ e && t.then(() => this.sourceParams.onItemActivated());
502
+ }
503
+ getProps() {
504
+ const e = super.getProps();
505
+ return e.active = this.active, e.expanded = this.expanded, e.onActiveChange = this.onActiveChange, delete e.onItemActivated, e;
506
+ }
507
+ }, cr = class extends pe {
508
+ refresh(e) {
509
+ return this.sourceParams = e, this.refreshProps(), !0;
510
+ }
511
+ }, ir = class extends pe {
512
+ constructor() {
513
+ super(...arguments), this.onStateChange = (e) => this.updateState(e);
514
+ }
515
+ refresh(e) {
516
+ return this.sourceParams = e, this.refreshProps(), !0;
517
+ }
518
+ getState() {
519
+ return this.state;
520
+ }
521
+ updateState(e) {
522
+ this.state = e, this.refreshProps(), this.sourceParams.onStateUpdated();
523
+ }
524
+ getProps() {
525
+ const e = super.getProps();
526
+ return e.state = this.state, e.onStateChange = this.onStateChange, e;
527
+ }
528
+ };
529
+ function Le() {
530
+ Ve(231);
531
+ }
532
+ var lr = 1e3, ur = class {
533
+ constructor(e, t, r) {
534
+ this.destroyed = !1, this.portals = [], this.hasPendingPortalUpdate = !1, this.wrappingElement = t || "div", this.refresher = e, this.maxComponentCreationTimeMs = r || lr;
535
+ }
536
+ getPortals() {
537
+ return this.portals;
538
+ }
539
+ destroy() {
540
+ this.destroyed = !0;
541
+ }
542
+ destroyPortal(e) {
543
+ this.portals = this.portals.filter((t) => t !== e), this.batchUpdate();
544
+ }
545
+ getComponentWrappingElement() {
546
+ return this.wrappingElement;
547
+ }
548
+ mountReactPortal(e, t, r) {
549
+ this.portals = [...this.portals, e], this.waitForInstance(t, r), this.batchUpdate();
550
+ }
551
+ updateReactPortal(e, t) {
552
+ this.portals[this.portals.indexOf(e)] = t, this.batchUpdate();
553
+ }
554
+ batchUpdate() {
555
+ this.hasPendingPortalUpdate || (setTimeout(() => {
556
+ this.destroyed || (this.refresher(), this.hasPendingPortalUpdate = !1);
557
+ }), this.hasPendingPortalUpdate = !0);
558
+ }
559
+ waitForInstance(e, t, r = Date.now()) {
560
+ if (this.destroyed) {
561
+ t(null);
562
+ return;
563
+ }
564
+ if (e.rendered())
565
+ t(e);
566
+ else {
567
+ if (Date.now() - r >= this.maxComponentCreationTimeMs && !this.hasPendingPortalUpdate) {
568
+ ke(!0, () => this.refresher()), e.rendered() && t(e);
569
+ return;
570
+ }
571
+ window.setTimeout(() => {
572
+ this.waitForInstance(e, t, r);
573
+ });
574
+ }
575
+ }
576
+ }, dr = a.createContext([]), pr = a.createContext(void 0), hr = ({ ctrl: e }) => {
577
+ const t = e.isAlive(), { context: r } = ee(re), [s, n] = c(), [d, i] = c(), u = o(), l = o(null), m = o(null), p = o(null), S = o(), b = o();
578
+ t && !b.current && (b.current = new Ie(() => l.current));
579
+ const y = U((h) => {
580
+ if (l.current = h, !h || !e.isAlive() || r.isDestroyed()) {
581
+ u.current = r.destroyBean(u.current);
582
+ return;
583
+ }
584
+ u.current = r.createBean(new Se());
585
+ const D = () => {
586
+ const R = e.getSelectAllGui();
587
+ R && (m.current?.insertAdjacentElement("afterend", R), u.current.addDestroyFunc(() => R.remove()));
588
+ }, W = {
589
+ setWidth: (R) => {
590
+ l.current && (l.current.style.width = R);
591
+ },
592
+ toggleCss: (R, f) => b.current.toggleCss(R, f),
593
+ setUserStyles: (R) => i(R),
594
+ setAriaSort: (R) => {
595
+ l.current && (R ? Ut(l.current, R) : Ht(l.current));
596
+ },
597
+ setUserCompDetails: (R) => n(R),
598
+ getUserCompInstance: () => S.current || void 0,
599
+ refreshSelectAllGui: D,
600
+ removeSelectAllGui: () => e.getSelectAllGui()?.remove()
601
+ };
602
+ e.setComp(W, h, m.current, p.current, u.current), D();
603
+ }, []);
604
+ fe(
605
+ () => Me(s, r, p.current, S),
606
+ [s]
607
+ ), ce(() => {
608
+ e.setDragSource(l.current);
609
+ }, [s]);
610
+ const A = E(() => !!(s?.componentFromFramework && Fe(s.componentClass)), [s]), w = s?.componentFromFramework, v = s?.componentClass;
611
+ return /* @__PURE__ */ a.createElement("div", { ref: y, style: d, className: "ag-header-cell", role: "columnheader" }, /* @__PURE__ */ a.createElement("div", { ref: m, className: "ag-header-cell-resize", role: "presentation" }), /* @__PURE__ */ a.createElement("div", { ref: p, className: "ag-header-cell-comp-wrapper", role: "presentation" }, w ? A ? /* @__PURE__ */ a.createElement(v, { ...s.params }) : /* @__PURE__ */ a.createElement(v, { ...s.params, ref: S }) : null));
612
+ }, mr = ne(hr), fr = class {
613
+ constructor(e, t) {
614
+ this.floatingFilterParams = e, this.refreshProps = t;
615
+ }
616
+ getProps() {
617
+ return this.floatingFilterParams;
618
+ }
619
+ refresh(e) {
620
+ this.floatingFilterParams = e, this.refreshProps();
621
+ }
622
+ setMethods(e) {
623
+ Oe(this.getOptionalMethods(), e, this);
624
+ }
625
+ getOptionalMethods() {
626
+ return ["afterGuiAttached"];
627
+ }
628
+ }, Cr = ({ ctrl: e }) => {
629
+ const { context: t, gos: r } = ee(re), [s, n] = c(), [d, i] = c(
630
+ () => new ue("ag-header-cell", "ag-floating-filter")
631
+ ), [u, l] = c(() => new ue()), [m, p] = c(
632
+ () => new ue("ag-floating-filter-button", "ag-hidden")
633
+ ), [S, b] = c("false"), [y, A] = c(), [, w] = c(1), v = o(), h = o(null), D = o(null), W = o(null), R = o(null), f = o(), H = o(), k = (M) => {
634
+ M != null && f.current?.(M);
635
+ }, V = U((M) => {
636
+ if (h.current = M, !M || !e.isAlive() || t.isDestroyed()) {
637
+ v.current = t.destroyBean(v.current);
638
+ return;
639
+ }
640
+ v.current = t.createBean(new Se()), H.current = new de((G) => {
641
+ f.current = G;
642
+ });
643
+ const z = {
644
+ toggleCss: (G, j) => i((Y) => Y.setClass(G, j)),
645
+ setUserStyles: (G) => n(G),
646
+ addOrRemoveBodyCssClass: (G, j) => l((Y) => Y.setClass(G, j)),
647
+ setButtonWrapperDisplayed: (G) => {
648
+ p((j) => j.setClass("ag-hidden", !G)), b(G ? "false" : "true");
649
+ },
650
+ setWidth: (G) => {
651
+ h.current && (h.current.style.width = G);
652
+ },
653
+ setCompDetails: (G) => A(G),
654
+ getFloatingFilterComp: () => H.current ? H.current : null,
655
+ setMenuIcon: (G) => R.current?.appendChild(G)
656
+ };
657
+ e.setComp(z, M, R.current, D.current, v.current);
658
+ }, []);
659
+ fe(
660
+ () => Me(y, t, D.current, k),
661
+ [y]
662
+ );
663
+ const O = E(() => d.toString(), [d]), _ = E(() => u.toString(), [u]), C = E(() => m.toString(), [m]), P = E(() => !!(y && y.componentFromFramework && Fe(y.componentClass)), [y]), x = E(() => r.get("reactiveCustomComponents"), []), q = E(() => r.get("enableFilterHandlers"), []), [g, T] = c();
664
+ ce(() => {
665
+ if (y?.componentFromFramework)
666
+ if (x) {
667
+ const M = q ? fr : rr, z = new M(y.params, () => w((G) => G + 1));
668
+ k(z), T(z);
669
+ } else
670
+ Le();
671
+ }, [y]);
672
+ const L = g?.getProps(), F = y?.componentFromFramework, N = y?.componentClass;
673
+ return /* @__PURE__ */ a.createElement("div", { ref: V, style: s, className: O, role: "gridcell" }, /* @__PURE__ */ a.createElement("div", { ref: D, className: _, role: "presentation" }, F ? x ? L && /* @__PURE__ */ a.createElement(
674
+ _e.Provider,
675
+ {
676
+ value: {
677
+ setMethods: (M) => g.setMethods(M)
678
+ }
679
+ },
680
+ /* @__PURE__ */ a.createElement(N, { ...L })
681
+ ) : /* @__PURE__ */ a.createElement(N, { ...y.params, ref: P ? () => {
682
+ } : k }) : null), /* @__PURE__ */ a.createElement(
683
+ "div",
684
+ {
685
+ ref: W,
686
+ "aria-hidden": S,
687
+ className: C,
688
+ role: "presentation"
689
+ },
690
+ /* @__PURE__ */ a.createElement(
691
+ "button",
692
+ {
693
+ ref: R,
694
+ type: "button",
695
+ className: "ag-button ag-floating-filter-button-button",
696
+ tabIndex: -1
697
+ }
698
+ )
699
+ ));
700
+ }, gr = ne(Cr), yr = ({ ctrl: e }) => {
701
+ const { context: t } = ee(re), [r, s] = c(), [n, d] = c(() => new ue()), [i, u] = c(() => new ue()), [l, m] = c("false"), [p, S] = c(), [b, y] = c(), A = o(), w = o(null), v = o(null), h = o(null), D = o(), W = U((O) => {
702
+ if (w.current = O, !O || !e.isAlive() || t.isDestroyed()) {
703
+ A.current = t.destroyBean(A.current);
704
+ return;
705
+ }
706
+ A.current = t.createBean(new Se());
707
+ const _ = {
708
+ setWidth: (C) => {
709
+ w.current && (w.current.style.width = C);
710
+ },
711
+ toggleCss: (C, P) => d((x) => x.setClass(C, P)),
712
+ setUserStyles: (C) => s(C),
713
+ setHeaderWrapperHidden: (C) => {
714
+ const P = h.current;
715
+ P && (C ? P.style.setProperty("display", "none") : P.style.removeProperty("display"));
716
+ },
717
+ setHeaderWrapperMaxHeight: (C) => {
718
+ const P = h.current;
719
+ P && (C != null ? P.style.setProperty("max-height", `${C}px`) : P.style.removeProperty("max-height"), P.classList.toggle("ag-header-cell-comp-wrapper-limited-height", C != null));
720
+ },
721
+ setUserCompDetails: (C) => y(C),
722
+ setResizableDisplayed: (C) => {
723
+ u((P) => P.setClass("ag-hidden", !C)), m(C ? "false" : "true");
724
+ },
725
+ setAriaExpanded: (C) => S(C),
726
+ getUserCompInstance: () => D.current || void 0
727
+ };
728
+ e.setComp(_, O, v.current, h.current, A.current);
729
+ }, []);
730
+ fe(() => Me(b, t, h.current), [b]), ce(() => {
731
+ w.current && e.setDragSource(w.current);
732
+ }, [b]);
733
+ const R = E(() => !!(b?.componentFromFramework && Fe(b.componentClass)), [b]), f = E(() => "ag-header-group-cell " + n.toString(), [n]), H = E(
734
+ () => "ag-header-cell-resize " + i.toString(),
735
+ [i]
736
+ ), k = b?.componentFromFramework, V = b?.componentClass;
737
+ return /* @__PURE__ */ a.createElement("div", { ref: W, style: r, className: f, role: "columnheader", "aria-expanded": p }, /* @__PURE__ */ a.createElement("div", { ref: h, className: "ag-header-cell-comp-wrapper", role: "presentation" }, k ? R ? /* @__PURE__ */ a.createElement(V, { ...b.params }) : /* @__PURE__ */ a.createElement(V, { ...b.params, ref: D }) : null), /* @__PURE__ */ a.createElement("div", { ref: v, "aria-hidden": l, className: H }));
738
+ }, vr = ne(yr), wr = ({ ctrl: e }) => {
739
+ const { gos: t, context: r } = ee(re), { topOffset: s, rowHeight: n } = E(() => e.getTopAndHeight(), []), d = E(() => t.get("tabIndex"), []), [i, u] = c(() => e.getAriaRowIndex()), l = e.headerRowClass, [m, p] = c(() => n + "px"), [S, b] = c(() => s + "px"), y = o(null), [A, w] = c(() => e.getUpdatedHeaderCtrls()), v = o(), h = o(null), D = U((f) => {
740
+ if (h.current = f, !f || !e.isAlive() || r.isDestroyed()) {
741
+ v.current = r.destroyBean(v.current);
742
+ return;
743
+ }
744
+ v.current = r.createBean(new Se());
745
+ const H = {
746
+ setHeight: (k) => p(k),
747
+ setTop: (k) => b(k),
748
+ setHeaderCtrls: (k, V, O) => {
749
+ const _ = y.current, C = xe(_, k, V);
750
+ C !== _ && (y.current = C, ke(O, () => w(C)));
751
+ },
752
+ setWidth: (k) => {
753
+ h.current && (h.current.style.width = k);
754
+ },
755
+ setRowIndex: (k) => {
756
+ u(k);
757
+ }
758
+ };
759
+ e.setComp(H, v.current, !1);
760
+ }, []), W = E(
761
+ () => ({
762
+ height: m,
763
+ top: S
764
+ }),
765
+ [m, S]
766
+ ), R = U((f) => {
767
+ switch (e.type) {
768
+ case "group":
769
+ return /* @__PURE__ */ a.createElement(vr, { ctrl: f, key: f.instanceId });
770
+ case "filter":
771
+ return /* @__PURE__ */ a.createElement(gr, { ctrl: f, key: f.instanceId });
772
+ default:
773
+ return /* @__PURE__ */ a.createElement(mr, { ctrl: f, key: f.instanceId });
774
+ }
775
+ }, []);
776
+ return /* @__PURE__ */ a.createElement(
777
+ "div",
778
+ {
779
+ ref: D,
780
+ className: l,
781
+ role: "row",
782
+ style: W,
783
+ tabIndex: d,
784
+ "aria-rowindex": i
785
+ },
786
+ A.map(R)
787
+ );
788
+ }, br = ne(wr), Rr = ({ pinned: e }) => {
789
+ const [t, r] = c(!0), [s, n] = c([]), { context: d } = ee(re), i = o(null), u = o(null), l = o(), m = e === "left", p = e === "right", S = !m && !p, b = U((w) => {
790
+ if (i.current = w, !w || d.isDestroyed()) {
791
+ l.current = d.destroyBean(l.current);
792
+ return;
793
+ }
794
+ l.current = d.createBean(new xt(e));
795
+ const v = {
796
+ setDisplayed: r,
797
+ setCtrls: (h) => n(h),
798
+ // centre only
799
+ setCenterWidth: (h) => {
800
+ u.current && (u.current.style.width = h);
801
+ },
802
+ setViewportScrollLeft: (h) => {
803
+ i.current && (i.current.scrollLeft = h);
804
+ },
805
+ // pinned only
806
+ setPinnedContainerWidth: (h) => {
807
+ i.current && (i.current.style.width = h, i.current.style.minWidth = h, i.current.style.maxWidth = h);
808
+ }
809
+ };
810
+ l.current.setComp(v, i.current);
811
+ }, []), y = t ? "" : "ag-hidden", A = () => s.map((w) => /* @__PURE__ */ a.createElement(br, { ctrl: w, key: w.instanceId }));
812
+ return m ? /* @__PURE__ */ a.createElement("div", { ref: b, className: "ag-pinned-left-header " + y, "aria-hidden": !t, role: "rowgroup" }, A()) : p ? /* @__PURE__ */ a.createElement("div", { ref: b, className: "ag-pinned-right-header " + y, "aria-hidden": !t, role: "rowgroup" }, A()) : S ? /* @__PURE__ */ a.createElement("div", { ref: b, className: "ag-header-viewport " + y, role: "rowgroup", tabIndex: -1 }, /* @__PURE__ */ a.createElement("div", { ref: u, className: "ag-header-container", role: "presentation" }, A())) : null;
813
+ }, Te = ne(Rr), Pr = () => {
814
+ const [e, t] = c(() => new ue()), [r, s] = c(), { context: n } = ee(re), d = o(null), i = o(), u = U((p) => {
815
+ if (d.current = p, !p || n.isDestroyed()) {
816
+ i.current = n.destroyBean(i.current);
817
+ return;
818
+ }
819
+ i.current = n.createBean(new Bt());
820
+ const S = {
821
+ toggleCss: (b, y) => t((A) => A.setClass(b, y)),
822
+ setHeightAndMinHeight: (b) => s(b)
823
+ };
824
+ i.current.setComp(S, p, p);
825
+ }, []), l = E(() => "ag-header " + e.toString(), [e]), m = E(
826
+ () => ({
827
+ height: r,
828
+ minHeight: r
829
+ }),
830
+ [r]
831
+ );
832
+ return /* @__PURE__ */ a.createElement("div", { ref: u, className: l, style: m, role: "presentation" }, /* @__PURE__ */ a.createElement(Te, { pinned: "left" }), /* @__PURE__ */ a.createElement(Te, { pinned: null }), /* @__PURE__ */ a.createElement(Te, { pinned: "right" }));
833
+ }, Sr = ne(Pr), Fr = (e, t) => {
834
+ ce(() => {
835
+ const r = t.current;
836
+ if (r) {
837
+ const s = r.parentElement;
838
+ if (s) {
839
+ const n = document.createComment(e);
840
+ return s.insertBefore(n, r), () => {
841
+ n.remove();
842
+ };
843
+ }
844
+ }
845
+ }, [e]);
846
+ }, be = Fr, Er = class {
847
+ constructor(e, t) {
848
+ this.cellEditorParams = e, this.refreshProps = t, this.instanceCreated = new de((r) => {
849
+ this.resolveInstanceCreated = r;
850
+ }), this.onValueChange = (r) => this.updateValue(r), this.value = e.value;
851
+ }
852
+ getProps() {
853
+ return {
854
+ ...this.cellEditorParams,
855
+ initialValue: this.cellEditorParams.value,
856
+ value: this.value,
857
+ onValueChange: this.onValueChange
858
+ };
859
+ }
860
+ getValue() {
861
+ return this.value;
862
+ }
863
+ refresh(e) {
864
+ this.cellEditorParams = e, this.refreshProps();
865
+ }
866
+ setMethods(e) {
867
+ Oe(this.getOptionalMethods(), e, this);
868
+ }
869
+ getInstance() {
870
+ return this.instanceCreated.then(() => this.componentInstance);
871
+ }
872
+ setRef(e) {
873
+ this.componentInstance = e, this.resolveInstanceCreated?.(), this.resolveInstanceCreated = void 0;
874
+ }
875
+ getOptionalMethods() {
876
+ return [
877
+ "isCancelBeforeStart",
878
+ "isCancelAfterEnd",
879
+ "focusIn",
880
+ "focusOut",
881
+ "afterGuiAttached",
882
+ "getValidationErrors",
883
+ "getValidationElement"
884
+ ];
885
+ }
886
+ updateValue(e) {
887
+ this.value = e, this.refreshProps();
888
+ }
889
+ }, kr = (e) => {
890
+ const t = o(e), r = o(), s = o(!1), n = o(!1), [, d] = c(0);
891
+ s.current && (n.current = !0), ce(() => (s.current || (r.current = t.current(), s.current = !0), d((i) => i + 1), () => {
892
+ n.current && r.current?.();
893
+ }), []);
894
+ }, Mr = (e) => {
895
+ const [t, r] = c(), s = ee(re), { context: n, popupSvc: d, gos: i, editSvc: u } = s, { editDetails: l, cellCtrl: m, eParentCell: p } = e;
896
+ return kr(() => {
897
+ const { compDetails: S } = l, b = i.get("stopEditingWhenCellsLoseFocus");
898
+ let y, A;
899
+ if (!n.isDestroyed()) {
900
+ A = n.createBean(u.createPopupEditorWrapper(S.params));
901
+ const w = A.getGui();
902
+ if (e.jsChildComp) {
903
+ const f = e.jsChildComp.getGui();
904
+ f && w.appendChild(f);
905
+ }
906
+ const { column: v, rowNode: h } = m, D = {
907
+ column: v,
908
+ rowNode: h,
909
+ type: "popupCellEditor",
910
+ eventSource: p,
911
+ ePopup: w,
912
+ position: l.popupPosition,
913
+ keepWithinBounds: !0
914
+ }, W = d?.positionPopupByComponent.bind(d, D), R = d?.addPopup({
915
+ modal: b,
916
+ eChild: w,
917
+ closeOnEsc: !0,
918
+ closedCallback: (f) => {
919
+ m.onPopupEditorClosed(f);
920
+ },
921
+ anchorToElement: p,
922
+ positionCallback: W,
923
+ ariaOwns: p
924
+ });
925
+ y = R ? R.hideFunc : void 0, r(A), e.jsChildComp?.afterGuiAttached?.();
926
+ }
927
+ return () => {
928
+ y?.(), n.destroyBean(A);
929
+ };
930
+ }), fe(() => () => {
931
+ m.isCellFocused() && t?.getGui().contains(Vt(s)) && p.focus({ preventScroll: !0 });
932
+ }, [t]), t && e.wrappedContent ? Ze(e.wrappedContent, t.getGui()) : null;
933
+ }, Je = ne(Mr), Gr = (e, t, r) => {
934
+ const { compProxy: s } = e;
935
+ r(s);
936
+ const n = s.getProps(), d = Fe(t);
937
+ return /* @__PURE__ */ a.createElement(
938
+ _e.Provider,
939
+ {
940
+ value: {
941
+ setMethods: (i) => s.setMethods(i)
942
+ }
943
+ },
944
+ d ? /* @__PURE__ */ a.createElement(t, { ...n }) : /* @__PURE__ */ a.createElement(t, { ...n, ref: (i) => s.setRef(i) })
945
+ );
946
+ }, qe = (e, t, r) => e.compProxy ? Gr(e, t, r) : /* @__PURE__ */ a.createElement(t, { ...e.compDetails.params, ref: r }), Ar = (e, t, r, s, n) => {
947
+ const d = e.compDetails, i = d.componentClass, u = d.componentFromFramework && !e.popup, l = d.componentFromFramework && e.popup, m = !d.componentFromFramework && e.popup;
948
+ return u ? qe(e, i, t) : l ? /* @__PURE__ */ a.createElement(
949
+ Je,
950
+ {
951
+ editDetails: e,
952
+ cellCtrl: s,
953
+ eParentCell: r,
954
+ wrappedContent: qe(e, i, t)
955
+ }
956
+ ) : m && n ? /* @__PURE__ */ a.createElement(Je, { editDetails: e, cellCtrl: s, eParentCell: r, jsChildComp: n }) : null;
957
+ }, Dr = (e, t, r, s, n, d, i = !1) => {
958
+ const { context: u } = ee(re), l = U(() => {
959
+ const m = n.current;
960
+ if (!m)
961
+ return;
962
+ const p = m.getGui();
963
+ p && p.parentElement && p.remove(), u.destroyBean(m), n.current = void 0;
964
+ }, []);
965
+ ce(() => {
966
+ const m = e != null && !i, p = e?.compDetails && !e.compDetails.componentFromFramework, S = t && r == null;
967
+ if (!(m && p && !S)) {
968
+ l();
969
+ return;
970
+ }
971
+ const y = e.compDetails;
972
+ if (n.current) {
973
+ const w = n.current, h = w.refresh != null && e.force == !1 ? w.refresh(y.params) : !1;
974
+ if (h === !0 || h === void 0)
975
+ return;
976
+ l();
977
+ }
978
+ y.newAgStackInstance().then((w) => {
979
+ if (!w)
980
+ return;
981
+ const v = w.getGui();
982
+ if (!v)
983
+ return;
984
+ (t ? r : d.current).appendChild(v), n.current = w;
985
+ });
986
+ }, [e, t, s, i]), ce(() => l, []);
987
+ }, ot = Dr, Br = ({
988
+ cellCtrl: e,
989
+ parent: t
990
+ }) => {
991
+ const r = o(), s = E(() => {
992
+ const { loadingComp: n } = e.getDeferLoadingCellRenderer();
993
+ return n ? {
994
+ value: void 0,
995
+ compDetails: n,
996
+ force: !1
997
+ } : void 0;
998
+ }, [e]);
999
+ if (ot(s, !1, void 0, 1, r, t), s?.compDetails?.componentFromFramework) {
1000
+ const n = s.compDetails.componentClass;
1001
+ return /* @__PURE__ */ a.createElement(n, { ...s.compDetails.params });
1002
+ }
1003
+ return /* @__PURE__ */ a.createElement(a.Fragment, null);
1004
+ }, xr = ({
1005
+ cellCtrl: e,
1006
+ printLayout: t,
1007
+ editingCell: r
1008
+ }) => {
1009
+ const s = ee(re), { context: n } = s, {
1010
+ column: { colIdSanitised: d },
1011
+ instanceId: i
1012
+ } = e, u = o(), [l, m] = c(
1013
+ () => e.isCellRenderer() ? void 0 : { compDetails: void 0, value: e.getValueToDisplay(), force: !1 }
1014
+ ), [p, S] = c(), [b, y] = c(1), [A, w] = c(), [v, h] = c(!1), [D, W] = c(!1), [R, f] = c(!1), H = o(null), [k, V] = c(), O = E(() => e.isForceWrapper(), [e]), _ = E(() => e.getCellAriaRole(), [e]), C = o(null), P = o(null), x = o(null), q = o(), g = o(), T = o(), L = o([]), F = o(), N = o(), [M, z] = c(0), G = U((I) => {
1015
+ N.current = I, z(($) => $ + 1);
1016
+ }, []), j = l != null && (v || R || D) && (p == null || !!p.popup), Y = O || j, Ce = E(() => e.getCellValueClass(), [e]), ie = U(
1017
+ (I) => {
1018
+ if (g.current = I, I) {
1019
+ const $ = I.isCancelBeforeStart && I.isCancelBeforeStart();
1020
+ setTimeout(() => {
1021
+ $ ? (e.stopEditing(!0), e.focusCell(!0)) : (e.cellEditorAttached(), e.enableEditorTooltipFeature(I));
1022
+ });
1023
+ }
1024
+ },
1025
+ [e]
1026
+ ), me = o();
1027
+ me.current || (me.current = new Ie(() => C.current));
1028
+ const Ee = !!p && !p.popup;
1029
+ ot(
1030
+ l,
1031
+ Y,
1032
+ N.current,
1033
+ M,
1034
+ q,
1035
+ C,
1036
+ Ee
1037
+ );
1038
+ const Re = o();
1039
+ fe(() => {
1040
+ const I = Re.current, $ = l;
1041
+ if (Re.current = l, I == null || I.compDetails == null || $ == null || $.compDetails == null)
1042
+ return;
1043
+ F.current?.refreshVisibility();
1044
+ const Z = I.compDetails, K = $.compDetails;
1045
+ if (Z.componentClass != K.componentClass || x.current?.refresh == null)
1046
+ return;
1047
+ x.current.refresh(K.params) != !0 && y((X) => X + 1);
1048
+ }, [l]), fe(() => {
1049
+ if (!(p && !p.compDetails.componentFromFramework) || n.isDestroyed())
1050
+ return;
1051
+ const $ = p.compDetails, Z = p.popup === !0, K = $.newAgStackInstance();
1052
+ return K.then((B) => {
1053
+ if (!B)
1054
+ return;
1055
+ const X = B.getGui();
1056
+ ie(B), Z || ((O ? T : C).current?.appendChild(X), B.afterGuiAttached?.()), V(B);
1057
+ }), () => {
1058
+ K.then((B) => {
1059
+ const X = B.getGui();
1060
+ e.disableEditorTooltipFeature(), n.destroyBean(B), ie(void 0), V(void 0), X?.remove();
1061
+ });
1062
+ };
1063
+ }, [p]);
1064
+ const J = U(
1065
+ (I) => {
1066
+ if (T.current = I, !I || n.isDestroyed() || !e.isAlive()) {
1067
+ const K = L.current;
1068
+ L.current = [];
1069
+ for (const B of K)
1070
+ B();
1071
+ return;
1072
+ }
1073
+ let $;
1074
+ const Z = (K) => {
1075
+ K && (I.insertAdjacentElement("afterbegin", K.getGui()), L.current.push(() => {
1076
+ ze(K.getGui()), n.destroyBean(K), F.current === $ && (F.current = void 0);
1077
+ }));
1078
+ };
1079
+ v && Z(e.createSelectionCheckbox()), R && Z(e.createDndSource()), D && ($ = e.createRowDragComp(), F.current = $, $ && (Z($), $.refreshVisibility()));
1080
+ },
1081
+ [e, n, R, D, v]
1082
+ ), ge = U(() => {
1083
+ const I = !e.isCellSpanning() || P.current, $ = C.current;
1084
+ if (!$ || !I || !e || !e.isAlive() || n.isDestroyed()) {
1085
+ u.current = n.destroyBean(u.current);
1086
+ return;
1087
+ }
1088
+ u.current = n.createBean(new Se());
1089
+ const Z = {
1090
+ toggleCss: (B, X) => me.current.toggleCss(B, X),
1091
+ setUserStyles: (B) => w(B),
1092
+ getFocusableElement: () => C.current,
1093
+ setIncludeSelection: (B) => h(B),
1094
+ setIncludeRowDrag: (B) => W(B),
1095
+ setIncludeDndSource: (B) => f(B),
1096
+ setRowResizerElement: (B) => {
1097
+ H.current && ze(H.current), H.current = B, B && C.current && C.current.appendChild(B);
1098
+ },
1099
+ getCellEditor: () => g.current ?? null,
1100
+ getCellRenderer: () => x.current ?? q.current,
1101
+ getParentOfValue: () => N.current ?? T.current ?? C.current,
1102
+ setRenderDetails: (B, X, te) => {
1103
+ const we = () => {
1104
+ m((oe) => oe?.compDetails !== B || oe?.value !== X || oe?.force !== te ? {
1105
+ value: X,
1106
+ compDetails: B,
1107
+ force: te
1108
+ } : oe);
1109
+ };
1110
+ if (B?.params?.deferRender && !e.rowNode.group) {
1111
+ const { loadingComp: oe, onReady: Pe } = e.getDeferLoadingCellRenderer();
1112
+ if (oe) {
1113
+ m({
1114
+ value: void 0,
1115
+ compDetails: oe,
1116
+ force: !1
1117
+ }), Pe.then(() => jt(we));
1118
+ return;
1119
+ }
1120
+ }
1121
+ we();
1122
+ },
1123
+ setEditDetails: (B, X, te, we) => {
1124
+ if (B) {
1125
+ let oe;
1126
+ B.componentFromFramework && (we ? oe = new Er(
1127
+ B.params,
1128
+ () => y((Pe) => Pe + 1)
1129
+ ) : Le()), S({
1130
+ compDetails: B,
1131
+ popup: X,
1132
+ popupPosition: te,
1133
+ compProxy: oe
1134
+ }), X || m(void 0);
1135
+ } else
1136
+ e.hasBrowserFocus() && Z.getFocusableElement().focus({ preventScroll: !0 }), g.current = void 0, S(void 0);
1137
+ },
1138
+ refreshEditStyles: (B, X) => {
1139
+ if (!C.current)
1140
+ return;
1141
+ const { current: te } = me;
1142
+ te.toggleCss("ag-cell-value", !Y), te.toggleCss("ag-cell-inline-editing", !!B && !X), te.toggleCss("ag-cell-popup-editing", !!B && !!X), te.toggleCss("ag-cell-not-inline-editing", !B || !!X);
1143
+ }
1144
+ }, K = T.current || void 0;
1145
+ e.setComp(
1146
+ Z,
1147
+ $,
1148
+ P.current ?? void 0,
1149
+ K,
1150
+ t,
1151
+ r,
1152
+ u.current
1153
+ );
1154
+ }, []), se = U((I) => {
1155
+ C.current = I, ge();
1156
+ }, []), he = U((I) => {
1157
+ P.current = I, ge();
1158
+ }, []), ye = E(() => !!(l?.compDetails?.componentFromFramework && Fe(l.compDetails.componentClass)), [l]);
1159
+ fe(() => {
1160
+ if (!C.current)
1161
+ return;
1162
+ const { current: I } = me;
1163
+ I.toggleCss("ag-cell-value", !Y), I.toggleCss("ag-cell-inline-editing", !!p && !p.popup), I.toggleCss("ag-cell-popup-editing", !!p && !!p.popup), I.toggleCss("ag-cell-not-inline-editing", !p || !!p.popup);
1164
+ });
1165
+ const ve = () => {
1166
+ const { compDetails: I, value: $ } = l;
1167
+ if (!I)
1168
+ return $?.toString?.() ?? $;
1169
+ if (I.componentFromFramework) {
1170
+ const Z = I.componentClass;
1171
+ return /* @__PURE__ */ a.createElement(ht, { fallback: /* @__PURE__ */ a.createElement(Br, { cellCtrl: e, parent: C }) }, ye ? /* @__PURE__ */ a.createElement(Z, { ...I.params, key: b }) : /* @__PURE__ */ a.createElement(Z, { ...I.params, key: b, ref: x }));
1172
+ }
1173
+ }, Ge = () => {
1174
+ const I = () => l == null ? null : Y ? /* @__PURE__ */ a.createElement("span", { role: "presentation", id: `cell-${i}`, className: Ce, ref: G }, ve()) : ve(), $ = (Z) => Ar(Z, ie, C.current, e, k);
1175
+ return p != null ? p.popup ? /* @__PURE__ */ a.createElement(a.Fragment, null, I(), $(p)) : $(p) : I();
1176
+ }, Ae = () => /* @__PURE__ */ a.createElement("div", { ref: se, style: A, role: _, "col-id": d }, Y ? /* @__PURE__ */ a.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: J }, Ge()) : Ge());
1177
+ return e.isCellSpanning() ? /* @__PURE__ */ a.createElement("div", { ref: he, className: "ag-spanned-cell-wrapper", role: "presentation" }, Ae()) : Ae();
1178
+ }, Ir = ne(xr), Or = ({ rowCtrl: e, containerType: t }) => {
1179
+ const { context: r, gos: s, editSvc: n } = ee(re), d = ee(Xe) === "default", i = o(), u = o(e.getDomOrder()), l = e.isFullWidth(), m = e.rowNode.displayed, [p, S] = c(
1180
+ () => m ? e.rowNode.getRowIndexString() : null
1181
+ ), [b, y] = c(() => e.rowId), [A, w] = c(() => e.businessKey), [v, h] = c(() => e.rowStyles), D = o(null), [W, R] = c(() => null), [f, H] = c(), [k, V] = c(
1182
+ () => m ? e.getInitialRowTop(t) : void 0
1183
+ ), [O, _] = c(
1184
+ () => m ? e.getInitialTransform(t) : void 0
1185
+ ), C = o(null), P = o(), x = o(), q = o(!1), [g, T] = c(0);
1186
+ ce(() => {
1187
+ if (q.current || !f || g > 10)
1188
+ return;
1189
+ const J = C.current?.firstChild;
1190
+ J ? (e.setupDetailRowAutoHeight(J), q.current = !0) : T((ge) => ge + 1);
1191
+ }, [f, g]);
1192
+ const L = o();
1193
+ L.current || (L.current = new Ie(() => C.current));
1194
+ const F = o(() => {
1195
+ }), N = U((J) => (F.current = J, () => {
1196
+ F.current = () => {
1197
+ };
1198
+ }), []), M = $t(
1199
+ N,
1200
+ () => D.current,
1201
+ []
1202
+ ), z = d ? M : W, G = U((J) => {
1203
+ if (C.current = J, i.current = J ? r.createBean(new Se()) : r.destroyBean(i.current), !J) {
1204
+ e.unsetComp(t);
1205
+ return;
1206
+ }
1207
+ if (!e.isAlive() || r.isDestroyed())
1208
+ return;
1209
+ const ge = {
1210
+ // the rowTop is managed by state, instead of direct style manipulation by rowCtrl (like all the other styles)
1211
+ // as we need to have an initial value when it's placed into he DOM for the first time, for animation to work.
1212
+ setTop: V,
1213
+ setTransform: _,
1214
+ // i found using React for managing classes at the row level was to slow, as modifying classes caused a lot of
1215
+ // React code to execute, so avoiding React for managing CSS Classes made the grid go much faster.
1216
+ toggleCss: (se, he) => L.current.toggleCss(se, he),
1217
+ setDomOrder: (se) => u.current = se,
1218
+ setRowIndex: S,
1219
+ setRowId: y,
1220
+ setRowBusinessKey: w,
1221
+ setUserStyles: h,
1222
+ // if we don't maintain the order, then cols will be ripped out and into the dom
1223
+ // when cols reordered, which would stop the CSS transitions from working
1224
+ setCellCtrls: (se, he) => {
1225
+ const ye = D.current, ve = xe(ye, se, u.current);
1226
+ ve !== ye && (D.current = ve, d ? F.current() : ke(he, () => R(ve)));
1227
+ },
1228
+ showFullWidth: (se) => {
1229
+ x.current = se.params, H(se);
1230
+ },
1231
+ getFullWidthCellRenderer: () => P.current,
1232
+ getFullWidthCellRendererParams: () => x.current,
1233
+ refreshFullWidth: (se) => {
1234
+ const he = se();
1235
+ return x.current = he, me.current ? (H((ye) => ({
1236
+ ...ye,
1237
+ params: he
1238
+ })), !0) : !P.current || !P.current.refresh ? !1 : P.current.refresh(he);
1239
+ }
1240
+ };
1241
+ e.setComp(ge, J, t, i.current);
1242
+ }, []);
1243
+ fe(
1244
+ () => Me(f, r, C.current, P),
1245
+ [f]
1246
+ );
1247
+ const j = E(() => {
1248
+ const J = { top: k, transform: O };
1249
+ return Object.assign(J, v), J;
1250
+ }, [k, O, v]), Y = l && f?.componentFromFramework, Ce = !l && z != null, ie = E(() => !!(f?.componentFromFramework && Fe(f.componentClass)), [f]), me = o(!1);
1251
+ ce(() => {
1252
+ me.current = ie && !!f && !!s.get("reactiveCustomComponents");
1253
+ }, [ie, f]);
1254
+ const Ee = () => z?.map((J) => /* @__PURE__ */ a.createElement(
1255
+ Ir,
1256
+ {
1257
+ cellCtrl: J,
1258
+ editingCell: n?.isEditing(J, { withOpenEditor: !0 }) ?? !1,
1259
+ printLayout: e.printLayout,
1260
+ key: J.instanceId
1261
+ }
1262
+ )), Re = () => {
1263
+ const J = f.componentClass;
1264
+ return ie ? /* @__PURE__ */ a.createElement(J, { ...f.params }) : /* @__PURE__ */ a.createElement(J, { ...f.params, ref: P });
1265
+ };
1266
+ return /* @__PURE__ */ a.createElement(
1267
+ "div",
1268
+ {
1269
+ ref: G,
1270
+ role: "row",
1271
+ style: j,
1272
+ "row-index": p,
1273
+ "row-id": b,
1274
+ "row-business-key": A
1275
+ },
1276
+ Ce ? Ee() : Y ? Re() : null
1277
+ );
1278
+ }, Qe = ne(Or), Wr = ({ name: e }) => {
1279
+ const { context: t, gos: r } = ee(re), s = E(() => It(e), [e]), n = o(null), d = o(null), i = o(null), u = o([]), l = o([]), [m, p] = c(() => []), S = !!r.get("enableCellSpan") && !!s.getSpannedRowCtrls, b = o([]), y = o([]), [A, w] = c(() => []), v = o(!1), h = o(), D = E(() => le("ag-viewport", Ot(e)), [e]), W = E(() => le(Wt(e)), [e]), R = E(() => le("ag-spanning-container", Tt(e)), [e]), f = s.type === "center" || S, H = f ? n : d;
1280
+ be(" AG Row Container " + e + " ", H);
1281
+ const k = U(() => {
1282
+ const g = !f || n.current != null, T = d.current != null, L = !S || i.current != null;
1283
+ return g && T && L;
1284
+ }, []), V = U(() => n.current == null && d.current == null && i.current == null, []), O = U(() => {
1285
+ if (V() && (h.current = t.destroyBean(h.current)), !t.isDestroyed() && k()) {
1286
+ const g = (F) => {
1287
+ const N = xe(
1288
+ l.current,
1289
+ u.current,
1290
+ v.current
1291
+ );
1292
+ N !== l.current && (l.current = N, ke(F, () => p(N)));
1293
+ }, T = (F) => {
1294
+ const N = xe(
1295
+ y.current,
1296
+ b.current,
1297
+ v.current
1298
+ );
1299
+ N !== y.current && (y.current = N, ke(F, () => w(N)));
1300
+ }, L = {
1301
+ setHorizontalScroll: (F) => {
1302
+ n.current && (n.current.scrollLeft = F);
1303
+ },
1304
+ setViewportHeight: (F) => {
1305
+ n.current && (n.current.style.height = F);
1306
+ },
1307
+ setRowCtrls: ({ rowCtrls: F, useFlushSync: N }) => {
1308
+ const M = !!N && u.current.length > 0 && F.length > 0;
1309
+ u.current = F, g(M);
1310
+ },
1311
+ setSpannedRowCtrls: (F, N) => {
1312
+ const M = !!N && b.current.length > 0 && F.length > 0;
1313
+ b.current = F, T(M);
1314
+ },
1315
+ setDomOrder: (F) => {
1316
+ v.current != F && (v.current = F, g(!1));
1317
+ },
1318
+ setContainerWidth: (F) => {
1319
+ d.current && (d.current.style.width = F);
1320
+ },
1321
+ setOffsetTop: (F) => {
1322
+ d.current && (d.current.style.transform = `translateY(${F})`);
1323
+ }
1324
+ };
1325
+ h.current = t.createBean(new Nt(e)), h.current.setComp(
1326
+ L,
1327
+ d.current,
1328
+ i.current ?? void 0,
1329
+ n.current
1330
+ );
1331
+ }
1332
+ }, [k, V]), _ = U(
1333
+ (g) => {
1334
+ d.current = g, O();
1335
+ },
1336
+ [O]
1337
+ ), C = U(
1338
+ (g) => {
1339
+ i.current = g, O();
1340
+ },
1341
+ [O]
1342
+ ), P = U(
1343
+ (g) => {
1344
+ n.current = g, O();
1345
+ },
1346
+ [O]
1347
+ ), x = () => /* @__PURE__ */ a.createElement(
1348
+ "div",
1349
+ {
1350
+ className: W,
1351
+ ref: _,
1352
+ role: f ? "presentation" : "rowgroup"
1353
+ },
1354
+ m.map((g) => /* @__PURE__ */ a.createElement(Qe, { rowCtrl: g, containerType: s.type, key: g.instanceId }))
1355
+ );
1356
+ if (!f)
1357
+ return x();
1358
+ const q = () => /* @__PURE__ */ a.createElement("div", { className: R, ref: C, role: "presentation" }, A.map((g) => /* @__PURE__ */ a.createElement(Qe, { rowCtrl: g, containerType: s.type, key: g.instanceId })));
1359
+ return /* @__PURE__ */ a.createElement("div", { className: D, ref: P, role: "rowgroup" }, x(), S ? q() : null);
1360
+ }, Tr = ne(Wr), Nr = () => {
1361
+ const e = ee(re), { context: t, overlays: r } = e, [s, n] = c(""), [d, i] = c(0), [u, l] = c(0), [m, p] = c("0px"), [S, b] = c("0px"), [y, A] = c("100%"), [w, v] = c("0px"), [h, D] = c("0px"), [W, R] = c("100%"), [f, H] = c(!0), [k, V] = c(!0), [O, _] = c(null), [C, P] = c(""), [x, q] = c(null), [g, T] = c("ag-layout-normal"), L = o();
1362
+ L.current || (L.current = new Ie(() => F.current));
1363
+ const F = o(null), N = o(null), M = o(null), z = o(null), G = o(null), j = o(null), Y = o(null), Ce = o([]), ie = o([]);
1364
+ be(" AG Grid Body ", F), be(" AG Pinned Top ", N), be(" AG Sticky Top ", M), be(" AG Middle ", j), be(" AG Pinned Bottom ", Y);
1365
+ const me = U((K) => {
1366
+ if (F.current = K, !K || t.isDestroyed()) {
1367
+ Ce.current = t.destroyBeans(Ce.current);
1368
+ for (const Q of ie.current)
1369
+ Q();
1370
+ ie.current = [];
1371
+ return;
1372
+ }
1373
+ const B = (Q, ae) => {
1374
+ Q.appendChild(ae), ie.current.push(() => ae.remove());
1375
+ }, X = (Q) => {
1376
+ const ae = t.createBean(new Q());
1377
+ return Ce.current.push(ae), ae;
1378
+ }, te = (Q, ae, lt) => {
1379
+ B(Q, document.createComment(lt)), B(Q, X(ae).getGui());
1380
+ };
1381
+ te(K, At, " AG Fake Horizontal Scroll ");
1382
+ const we = r?.getOverlayWrapperCompClass();
1383
+ we && te(K, we, " AG Overlay Wrapper "), G.current && te(G.current, Dt, " AG Fake Vertical Scroll ");
1384
+ const oe = {
1385
+ setRowAnimationCssOnBodyViewport: n,
1386
+ setColumnCount: (Q) => {
1387
+ F.current && Gt(F.current, Q);
1388
+ },
1389
+ setRowCount: (Q) => {
1390
+ F.current && Mt(F.current, Q);
1391
+ },
1392
+ setTopHeight: i,
1393
+ setBottomHeight: l,
1394
+ setStickyTopHeight: p,
1395
+ setStickyTopTop: b,
1396
+ setStickyTopWidth: A,
1397
+ setTopInvisible: H,
1398
+ setBottomInvisible: V,
1399
+ setColumnMovingCss: (Q, ae) => L.current.toggleCss(Q, ae),
1400
+ updateLayoutClasses: T,
1401
+ setAlwaysVerticalScrollClass: _,
1402
+ setPinnedTopBottomOverflowY: P,
1403
+ setCellSelectableCss: (Q, ae) => q(ae ? Q : null),
1404
+ setBodyViewportWidth: (Q) => {
1405
+ j.current && (j.current.style.width = Q);
1406
+ },
1407
+ registerBodyViewportResizeListener: (Q) => {
1408
+ if (j.current) {
1409
+ const ae = Ye(e, j.current, Q);
1410
+ ie.current.push(() => ae());
1411
+ }
1412
+ },
1413
+ setStickyBottomHeight: v,
1414
+ setStickyBottomBottom: D,
1415
+ setStickyBottomWidth: R,
1416
+ setGridRootRole: (Q) => K.setAttribute("role", Q)
1417
+ }, Pe = t.createBean(new Et());
1418
+ Ce.current.push(Pe), Pe.setComp(
1419
+ oe,
1420
+ K,
1421
+ j.current,
1422
+ N.current,
1423
+ Y.current,
1424
+ M.current,
1425
+ z.current
1426
+ );
1427
+ }, []), Ee = E(() => le("ag-root", "ag-unselectable", g), [g]), Re = E(
1428
+ () => le(
1429
+ "ag-body-viewport",
1430
+ s,
1431
+ g,
1432
+ O,
1433
+ x
1434
+ ),
1435
+ [s, g, O, x]
1436
+ ), J = E(() => le("ag-body", g), [g]), ge = E(
1437
+ () => le("ag-floating-top", f ? "ag-invisible" : null, x),
1438
+ [x, f]
1439
+ ), se = E(() => le("ag-sticky-top", x), [x]), he = E(
1440
+ () => le("ag-sticky-bottom", w === "0px" ? "ag-invisible" : null, x),
1441
+ [x, w]
1442
+ ), ye = E(
1443
+ () => le("ag-floating-bottom", k ? "ag-invisible" : null, x),
1444
+ [x, k]
1445
+ ), ve = E(
1446
+ () => ({
1447
+ height: d,
1448
+ minHeight: d,
1449
+ overflowY: C
1450
+ }),
1451
+ [d, C]
1452
+ ), Ge = E(
1453
+ () => ({
1454
+ height: m,
1455
+ top: S,
1456
+ width: y
1457
+ }),
1458
+ [m, S, y]
1459
+ ), Ae = E(
1460
+ () => ({
1461
+ height: w,
1462
+ bottom: h,
1463
+ width: W
1464
+ }),
1465
+ [w, h, W]
1466
+ ), I = E(
1467
+ () => ({
1468
+ height: u,
1469
+ minHeight: u,
1470
+ overflowY: C
1471
+ }),
1472
+ [u, C]
1473
+ ), $ = (K) => /* @__PURE__ */ a.createElement(Tr, { name: K, key: `${K}-container` }), Z = ({
1474
+ section: K,
1475
+ children: B,
1476
+ className: X,
1477
+ style: te
1478
+ }) => /* @__PURE__ */ a.createElement("div", { ref: K, className: X, role: "presentation", style: te }, B.map($));
1479
+ return /* @__PURE__ */ a.createElement("div", { ref: me, className: Ee }, /* @__PURE__ */ a.createElement(Sr, null), Z({
1480
+ section: N,
1481
+ className: ge,
1482
+ style: ve,
1483
+ children: ["topLeft", "topCenter", "topRight", "topFullWidth"]
1484
+ }), /* @__PURE__ */ a.createElement("div", { className: J, ref: G, role: "presentation" }, Z({
1485
+ section: j,
1486
+ className: Re,
1487
+ children: ["left", "center", "right", "fullWidth"]
1488
+ })), Z({
1489
+ section: M,
1490
+ className: se,
1491
+ style: Ge,
1492
+ children: ["stickyTopLeft", "stickyTopCenter", "stickyTopRight", "stickyTopFullWidth"]
1493
+ }), Z({
1494
+ section: z,
1495
+ className: he,
1496
+ style: Ae,
1497
+ children: ["stickyBottomLeft", "stickyBottomCenter", "stickyBottomRight", "stickyBottomFullWidth"]
1498
+ }), Z({
1499
+ section: Y,
1500
+ className: ye,
1501
+ style: I,
1502
+ children: ["bottomLeft", "bottomCenter", "bottomRight", "bottomFullWidth"]
1503
+ }));
1504
+ }, Ur = ne(Nr), Hr = (e, t) => {
1505
+ const { children: r, eFocusableElement: s, onTabKeyDown: n, gridCtrl: d, forceFocusOutWhenTabGuardsAreEmpty: i, isEmpty: u } = e, { context: l } = ee(re), m = o(null), p = o(null), S = o(), b = (h) => {
1506
+ const D = h == null ? void 0 : parseInt(h, 10).toString();
1507
+ for (const W of [m, p])
1508
+ D === void 0 ? W.current?.removeAttribute("tabindex") : W.current?.setAttribute("tabindex", D);
1509
+ };
1510
+ He(t, () => ({
1511
+ forceFocusOutOfContainer(h) {
1512
+ S.current?.forceFocusOutOfContainer(h);
1513
+ }
1514
+ }));
1515
+ const y = U(() => {
1516
+ const h = m.current, D = p.current;
1517
+ if (!h && !D || l.isDestroyed()) {
1518
+ S.current = l.destroyBean(S.current);
1519
+ return;
1520
+ }
1521
+ if (h && D) {
1522
+ const W = {
1523
+ setTabIndex: b
1524
+ };
1525
+ S.current = l.createBean(
1526
+ new kt({
1527
+ comp: W,
1528
+ eTopGuard: h,
1529
+ eBottomGuard: D,
1530
+ eFocusableElement: s,
1531
+ onTabKeyDown: n,
1532
+ forceFocusOutWhenTabGuardsAreEmpty: i,
1533
+ focusInnerElement: (R) => d.focusInnerElement(R),
1534
+ isEmpty: u
1535
+ })
1536
+ );
1537
+ }
1538
+ }, []), A = U(
1539
+ (h) => {
1540
+ m.current = h, y();
1541
+ },
1542
+ [y]
1543
+ ), w = U(
1544
+ (h) => {
1545
+ p.current = h, y();
1546
+ },
1547
+ [y]
1548
+ ), v = (h) => {
1549
+ const D = h === "top" ? We.TAB_GUARD_TOP : We.TAB_GUARD_BOTTOM;
1550
+ return /* @__PURE__ */ a.createElement(
1551
+ "div",
1552
+ {
1553
+ className: `${We.TAB_GUARD} ${D}`,
1554
+ role: "presentation",
1555
+ ref: h === "top" ? A : w
1556
+ }
1557
+ );
1558
+ };
1559
+ return /* @__PURE__ */ a.createElement(a.Fragment, null, v("top"), r, v("bottom"));
1560
+ }, Vr = Ue(Hr), _r = ne(Vr), Lr = ({ context: e }) => {
1561
+ const [t, r] = c(""), [s, n] = c(""), [d, i] = c(null), [u, l] = c(null), [m, p] = c(!1), [S, b] = c(), y = o(), A = o(null), w = o(), [v, h] = c(null), D = o(() => {
1562
+ }), W = o(), R = o([]), f = U(() => {
1563
+ }, []);
1564
+ be(" AG Grid ", A);
1565
+ const H = U((P) => {
1566
+ if (A.current = P, y.current = P ? e.createBean(new Pt()) : e.destroyBean(y.current), !P || e.isDestroyed())
1567
+ return;
1568
+ const x = y.current;
1569
+ D.current = x.focusInnerElement.bind(x);
1570
+ const q = {
1571
+ destroyGridUi: () => {
1572
+ },
1573
+ // do nothing, as framework users destroy grid by removing the comp
1574
+ setRtlClass: r,
1575
+ forceFocusOutOfContainer: (g) => {
1576
+ if (!g && W.current?.isDisplayed()) {
1577
+ W.current.forceFocusOutOfContainer(g);
1578
+ return;
1579
+ }
1580
+ w.current?.forceFocusOutOfContainer(g);
1581
+ },
1582
+ updateLayoutClasses: n,
1583
+ getFocusableContainers: () => {
1584
+ const g = [], T = [], L = A.current?.querySelector(".ag-root");
1585
+ for (const N of R.current) {
1586
+ if (!N.isDisplayed())
1587
+ continue;
1588
+ const M = N.getFocusableContainerName();
1589
+ if (M === "rowGroupToolbar" || M === "pivotToolbar") {
1590
+ g.push(N);
1591
+ continue;
1592
+ }
1593
+ T.push(N);
1594
+ }
1595
+ const F = [...g];
1596
+ return L && F.push({
1597
+ getGui: () => L,
1598
+ getFocusableContainerName: () => "gridBody"
1599
+ }), F.push(...T), F;
1600
+ },
1601
+ setCursor: i,
1602
+ setUserSelect: l
1603
+ };
1604
+ x.setComp(q, P, P), p(!0);
1605
+ }, []);
1606
+ ce(() => {
1607
+ const P = y.current, x = A.current;
1608
+ if (!S || !P || !v || !x || e.isDestroyed())
1609
+ return;
1610
+ const q = [];
1611
+ R.current = [], W.current = void 0;
1612
+ const {
1613
+ watermarkSelector: g,
1614
+ paginationSelector: T,
1615
+ sideBarSelector: L,
1616
+ statusBarSelector: F,
1617
+ gridHeaderDropZonesSelector: N
1618
+ } = P.getOptionalSelectors(), M = [];
1619
+ if (N) {
1620
+ const G = e.createBean(
1621
+ new N.component()
1622
+ ), j = G.getGui();
1623
+ x.insertAdjacentElement("afterbegin", j), M.push(j), q.push(G), R.current.push(...G.getFocusableContainers?.() ?? []);
1624
+ }
1625
+ if (L) {
1626
+ const G = e.createBean(new L.component()), j = G.getGui(), Y = v.querySelector(".ag-tab-guard-bottom");
1627
+ Y && (Y.insertAdjacentElement("beforebegin", j), M.push(j)), q.push(G), R.current.push(G);
1628
+ }
1629
+ const z = (G) => {
1630
+ const j = e.createBean(new G()), Y = j.getGui();
1631
+ return x.insertAdjacentElement("beforeend", Y), M.push(Y), q.push(j), j;
1632
+ };
1633
+ if (F) {
1634
+ const G = z(F.component);
1635
+ R.current.push(G);
1636
+ }
1637
+ if (T) {
1638
+ const G = z(T.component);
1639
+ W.current = G, R.current.push(G);
1640
+ }
1641
+ return g && z(g.component), () => {
1642
+ e.destroyBeans(q), R.current = [], W.current = void 0;
1643
+ for (const G of M)
1644
+ G.remove();
1645
+ };
1646
+ }, [S, v, e]);
1647
+ const k = E(
1648
+ () => le("ag-root-wrapper", t, s),
1649
+ [t, s]
1650
+ ), V = E(
1651
+ () => le("ag-root-wrapper-body", "ag-focus-managed", s),
1652
+ [s]
1653
+ ), O = E(
1654
+ () => ({
1655
+ userSelect: u ?? "",
1656
+ WebkitUserSelect: u ?? "",
1657
+ cursor: d ?? ""
1658
+ }),
1659
+ [u, d]
1660
+ ), _ = U((P) => {
1661
+ w.current = P, b(P !== null);
1662
+ }, []), C = U(() => !y.current?.isFocusable(), []);
1663
+ return /* @__PURE__ */ a.createElement("div", { ref: H, className: k, style: O, role: "presentation" }, /* @__PURE__ */ a.createElement("div", { className: V, ref: h, role: "presentation" }, m && v && !e.isDestroyed() && /* @__PURE__ */ a.createElement(re.Provider, { value: e.getBeans() }, /* @__PURE__ */ a.createElement(
1664
+ _r,
1665
+ {
1666
+ ref: _,
1667
+ eFocusableElement: v,
1668
+ onTabKeyDown: f,
1669
+ gridCtrl: y.current,
1670
+ forceFocusOutWhenTabGuardsAreEmpty: !0,
1671
+ isEmpty: C
1672
+ },
1673
+ // we wait for initialised before rending the children, so GridComp has created and registered with it's
1674
+ // GridCtrl before we create the child GridBodyComp. Otherwise the GridBodyComp would initialise first,
1675
+ // before we have set the the Layout CSS classes, causing the GridBodyComp to render rows to a grid that
1676
+ // doesn't have it's height specified, which would result if all the rows getting rendered (and if many rows,
1677
+ // hangs the UI)
1678
+ /* @__PURE__ */ a.createElement(Ur, null)
1679
+ ))));
1680
+ }, zr = ne(Lr), jr = class extends wt {
1681
+ postConstruct() {
1682
+ if (this.beans.colAutosize) {
1683
+ const e = this.queueResizeOperationsForTick.bind(this);
1684
+ this.addManagedEventListeners({
1685
+ rowExpansionStateChanged: e,
1686
+ expandOrCollapseAll: e,
1687
+ // Enable devs to resize after they updated via the API
1688
+ cellValueChanged: e,
1689
+ rowNodeDataChanged: e,
1690
+ rowDataUpdated: e
1691
+ });
1692
+ }
1693
+ }
1694
+ queueResizeOperationsForTick() {
1695
+ const e = this.beans.colAutosize;
1696
+ e.shouldQueueResizeOperations = !0, setTimeout(() => {
1697
+ e.processResizeOperations();
1698
+ }, 0);
1699
+ }
1700
+ areHeaderCellsRendered() {
1701
+ return this.beans.ctrlsSvc.getHeaderRowContainerCtrls().every((e) => e.getAllCtrls().every((t) => t.areCellsRendered()));
1702
+ }
1703
+ areCellsRendered() {
1704
+ return this.beans.rowRenderer.getAllRowCtrls().every((e) => e.isRowRendered() && e.getAllCellCtrls().every((t) => !!t.eGui));
1705
+ }
1706
+ }, $r = typeof window > "u" ? ce : fe, at = {
1707
+ setGridApi: void 0,
1708
+ maxComponentCreationTimeMs: void 0,
1709
+ children: void 0
1710
+ }, Kr = {
1711
+ gridOptions: void 0,
1712
+ modules: void 0,
1713
+ containerStyle: void 0,
1714
+ className: void 0,
1715
+ passGridApi: void 0,
1716
+ componentWrappingElement: void 0,
1717
+ ...at
1718
+ }, ct = new Set(Object.keys(Kr)), Jr = new Set(Object.keys(at)), it = (e) => {
1719
+ const t = ee(dr), r = ee(pr), s = o(), n = o(null), d = o(null), i = o([]), u = o([]), l = o(e), m = o(), p = o(), S = o(!1), [b, y] = c(void 0), [, A] = c(0), w = o(), v = (f) => {
1720
+ const H = n.current?.classList, k = (V = "") => V.trim().split(/\s+/g).filter(Boolean);
1721
+ if (w.current !== f) {
1722
+ for (const V of k(w.current))
1723
+ H?.contains(V) && H.remove(V);
1724
+ for (const V of k(f))
1725
+ H?.contains(V) || H?.add(V);
1726
+ w.current = f;
1727
+ }
1728
+ };
1729
+ $r(() => {
1730
+ v(e.className);
1731
+ }, [e.className]);
1732
+ const h = U((f) => {
1733
+ if (n.current = f, v(e.className), !f) {
1734
+ for (const g of i.current)
1735
+ g();
1736
+ i.current.length = 0;
1737
+ return;
1738
+ }
1739
+ const H = [...e.modules ?? [], ...t ?? []];
1740
+ r && mt(H)?.setLicenseKey(r), d.current || (d.current = new ur(
1741
+ () => A((g) => g + 1),
1742
+ e.componentWrappingElement,
1743
+ e.maxComponentCreationTimeMs
1744
+ ), i.current.push(() => {
1745
+ d.current?.destroy(), d.current = null;
1746
+ }));
1747
+ const k = ft(
1748
+ e.gridOptions,
1749
+ e,
1750
+ Object.keys(e).filter((g) => !ct.has(g))
1751
+ ), V = () => {
1752
+ if (S.current) {
1753
+ const g = () => m.current?.shouldQueueUpdates() ? void 0 : u.current.shift();
1754
+ let T = g();
1755
+ for (; T; )
1756
+ T(), T = g();
1757
+ }
1758
+ }, O = new Zr(V);
1759
+ m.current = O;
1760
+ const _ = new jr(), C = {
1761
+ providedBeanInstances: {
1762
+ frameworkCompWrapper: new Qr(d.current, k),
1763
+ renderStatus: _
1764
+ },
1765
+ modules: H,
1766
+ frameworkOverrides: O,
1767
+ setThemeOnGridDiv: !0
1768
+ }, P = (g) => {
1769
+ y(g), g.createBean(_), i.current.push(() => {
1770
+ g.destroy();
1771
+ }), g.getBean("ctrlsSvc").whenReady(
1772
+ {
1773
+ addDestroyFunc: (T) => {
1774
+ i.current.push(T);
1775
+ }
1776
+ },
1777
+ () => {
1778
+ if (g.isDestroyed())
1779
+ return;
1780
+ const T = s.current;
1781
+ T && e.passGridApi?.(T);
1782
+ }
1783
+ );
1784
+ }, x = (g) => {
1785
+ g.getBean("ctrlsSvc").whenReady(
1786
+ {
1787
+ addDestroyFunc: (T) => {
1788
+ i.current.push(T);
1789
+ }
1790
+ },
1791
+ () => {
1792
+ for (const T of u.current)
1793
+ T();
1794
+ u.current.length = 0, S.current = !0;
1795
+ }
1796
+ );
1797
+ }, q = new Ct();
1798
+ k.gridId ?? (k.gridId = p.current), s.current = q.create(
1799
+ f,
1800
+ k,
1801
+ P,
1802
+ x,
1803
+ C
1804
+ ), i.current.push(() => {
1805
+ s.current = void 0;
1806
+ }), s.current && (p.current = s.current.getGridId());
1807
+ }, []), D = E(() => ({
1808
+ height: "100%",
1809
+ ...e.containerStyle || {}
1810
+ }), [e.containerStyle]), W = U((f) => {
1811
+ S.current && !m.current?.shouldQueueUpdates() ? f() : u.current.push(f);
1812
+ }, []);
1813
+ ce(() => {
1814
+ const f = qr(l.current, e);
1815
+ l.current = e, W(() => {
1816
+ s.current && gt(f, s.current);
1817
+ });
1818
+ }, [e]);
1819
+ const R = !a.useSyncExternalStore || De(e, "renderingMode") === "legacy" ? "legacy" : "default";
1820
+ return (
1821
+ // IMPORTANT! Don't set className here, we must use classList
1822
+ // imperatively to avoid removing classes set by the grid
1823
+ /* @__PURE__ */ a.createElement("div", { style: D, ref: h }, /* @__PURE__ */ a.createElement(Xe.Provider, { value: R }, b && !b.isDestroyed() ? /* @__PURE__ */ a.createElement(zr, { key: b.instanceId, context: b }) : null, d.current?.getPortals() ?? null))
1824
+ );
1825
+ };
1826
+ function qr(e, t) {
1827
+ const r = {};
1828
+ for (const s of Object.keys(t)) {
1829
+ if (ct.has(s)) {
1830
+ Jr.has(s) && Ve(274, { prop: s });
1831
+ continue;
1832
+ }
1833
+ const n = t[s];
1834
+ e[s] !== n && (r[s] = n);
1835
+ }
1836
+ return r;
1837
+ }
1838
+ var Qr = class extends vt {
1839
+ constructor(e, t) {
1840
+ super(), this.parent = e, this.gridOptions = t;
1841
+ }
1842
+ createWrapper(e, t) {
1843
+ const r = this.gridOptions;
1844
+ if (De(r, "reactiveCustomComponents")) {
1845
+ const i = ((u) => {
1846
+ switch (u) {
1847
+ case "filter":
1848
+ return De(r, "enableFilterHandlers") ? tr : er;
1849
+ case "floatingFilterComponent":
1850
+ return De(r, "enableFilterHandlers") ? nr : sr;
1851
+ case "dateComponent":
1852
+ return Zt;
1853
+ case "dragAndDropImageComponent":
1854
+ return Xt;
1855
+ case "loadingOverlayComponent":
1856
+ case "noRowsOverlayComponent":
1857
+ case "activeOverlay":
1858
+ return Yt;
1859
+ case "statusPanel":
1860
+ return cr;
1861
+ case "toolPanel":
1862
+ return ir;
1863
+ case "menuItem":
1864
+ return ar;
1865
+ case "cellRenderer":
1866
+ return Qt;
1867
+ case "innerHeaderComponent":
1868
+ return or;
1869
+ }
1870
+ })(t.name);
1871
+ if (i)
1872
+ return new i(e, this.parent, t);
1873
+ } else
1874
+ switch (t.name) {
1875
+ case "filter":
1876
+ case "floatingFilterComponent":
1877
+ case "dateComponent":
1878
+ case "dragAndDropImageComponent":
1879
+ case "loadingOverlayComponent":
1880
+ case "noRowsOverlayComponent":
1881
+ case "activeOverlay":
1882
+ case "statusPanel":
1883
+ case "toolPanel":
1884
+ case "menuItem":
1885
+ case "cellRenderer":
1886
+ Le();
1887
+ break;
1888
+ }
1889
+ const n = !t.cellRenderer && t.name !== "toolPanel";
1890
+ return new st(e, this.parent, t, n);
1891
+ }
1892
+ }, Yr = Ue((e, t) => {
1893
+ const r = ee(re), { registry: s, context: n, gos: d, rowModel: i } = r, [u, l] = c(() => new ue()), [m, p] = c(() => new ue()), [S, b] = c(), [y, A] = c(), w = o(), v = o(null), h = o(), D = E(
1894
+ () => bt(e.api.getGridId(), S?.rowModelType ?? "clientSide"),
1895
+ [e]
1896
+ ), W = E(() => u.toString() + " ag-details-row", [u]), R = E(() => m.toString() + " ag-details-grid", [m]);
1897
+ t && He(t, () => ({
1898
+ refresh() {
1899
+ return w.current?.refresh() ?? !1;
1900
+ }
1901
+ })), e.template && Ve(230);
1902
+ const f = U((k) => {
1903
+ if (v.current = k, !k || n.isDestroyed()) {
1904
+ w.current = n.destroyBean(w.current), h.current?.();
1905
+ return;
1906
+ }
1907
+ const V = {
1908
+ toggleCss: (_, C) => l((P) => P.setClass(_, C)),
1909
+ toggleDetailGridCss: (_, C) => p((P) => P.setClass(_, C)),
1910
+ setDetailGrid: (_) => b(_),
1911
+ setRowData: (_) => A(_),
1912
+ getGui: () => v.current
1913
+ }, O = s.createDynamicBean("detailCellRendererCtrl", !0);
1914
+ if (O && (n.createBean(O), O.init(V, e), w.current = O, d.get("detailRowAutoHeight"))) {
1915
+ const _ = () => {
1916
+ if (v.current == null)
1917
+ return;
1918
+ const C = v.current.clientHeight;
1919
+ C != null && C > 0 && setTimeout(() => {
1920
+ e.node.setRowHeight(C), (St(d) || Ft(d)) && i.onRowHeightChanged();
1921
+ }, 0);
1922
+ };
1923
+ h.current = Ye(r, k, _), _();
1924
+ }
1925
+ }, []), H = U((k) => {
1926
+ w.current?.registerDetailWithMaster(k);
1927
+ }, []);
1928
+ return /* @__PURE__ */ a.createElement("div", { className: W, ref: f }, S && /* @__PURE__ */ a.createElement(
1929
+ it,
1930
+ {
1931
+ className: R,
1932
+ ...S,
1933
+ modules: D,
1934
+ rowData: y,
1935
+ passGridApi: H
1936
+ }
1937
+ ));
1938
+ }), Zr = class extends yt {
1939
+ constructor(e) {
1940
+ super("react"), this.processQueuedUpdates = e, this.queueUpdates = !1, this.renderingEngine = "react", this.frameworkComponents = {
1941
+ agGroupCellRenderer: $e,
1942
+ agGroupRowRenderer: $e,
1943
+ agDetailCellRenderer: Yr
1944
+ }, this.wrapIncoming = (t, r) => r === "ensureVisible" ? zt(t) : t();
1945
+ }
1946
+ frameworkComponent(e) {
1947
+ return this.frameworkComponents[e];
1948
+ }
1949
+ isFrameworkComponent(e) {
1950
+ if (!e)
1951
+ return !1;
1952
+ const t = e.prototype;
1953
+ return !(t && "getGui" in t);
1954
+ }
1955
+ getLockOnRefresh() {
1956
+ this.queueUpdates = !0;
1957
+ }
1958
+ releaseLockOnRefresh() {
1959
+ this.queueUpdates = !1, this.processQueuedUpdates();
1960
+ }
1961
+ shouldQueueUpdates() {
1962
+ return this.queueUpdates;
1963
+ }
1964
+ runWhenReadyAsync() {
1965
+ return Lt();
1966
+ }
1967
+ }, rs = class extends ut {
1968
+ constructor() {
1969
+ super(...arguments), this.apiListeners = [], this.setGridApi = (e) => {
1970
+ this.api = e;
1971
+ for (const t of this.apiListeners)
1972
+ t(e);
1973
+ };
1974
+ }
1975
+ registerApiListener(e) {
1976
+ this.apiListeners.push(e);
1977
+ }
1978
+ componentWillUnmount() {
1979
+ this.apiListeners.length = 0;
1980
+ }
1981
+ render() {
1982
+ return /* @__PURE__ */ a.createElement(it, { ...this.props, passGridApi: this.setGridApi });
1983
+ }
1984
+ };
1985
+ export {
1986
+ rs as AgGridReact,
1987
+ _e as CustomComponentContext,
1988
+ Le as warnReactiveCustomComponents
1989
+ };