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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (531) hide show
  1. package/README.md +33 -3
  2. package/dist/CHANGELOG.md +18 -4
  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-BlaSMX26.cjs +1 -0
  7. package/dist/MarkdownEditor-5kljDPcm.cjs +1 -0
  8. package/dist/MarkdownEditor-C0_gU7Fi.cjs +1 -0
  9. package/dist/MarkdownEditorContainer-BqTGQArV.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 +64 -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 +43 -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 +1127 -172
  305. package/dist/{JsonEditor-CQmVvyc3.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-B1eG0EeX.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 +139 -0
  331. package/dist/migration-guides/README.md +1 -0
  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/Slider/Slider.d.ts +70 -0
  460. package/dist/src/components/New/Textarea/Textarea.d.ts +8 -2
  461. package/dist/src/components/New/ThemeScope/ThemeScope.d.ts +46 -0
  462. package/dist/src/components/New/Tooltip/Tooltip.d.ts +1 -1
  463. package/dist/src/components/New/Tooltip/TooltipContent.d.ts +4 -3
  464. package/dist/src/components/New/Tooltip/constants.d.ts +10 -1
  465. package/dist/src/components/New/constants/icon.d.ts +22 -0
  466. package/dist/src/components/New/constants/overlay.d.ts +7 -0
  467. package/dist/src/components/Tooltip/TooltipContent.d.ts +4 -0
  468. package/dist/src/hooks/use-has-hover.d.ts +20 -0
  469. package/dist/src/index.d.ts +30 -4
  470. package/dist/src/models/dropdown.d.ts +40 -1
  471. package/dist/src/models/select.d.ts +30 -0
  472. package/dist/src/subpaths/editors.d.ts +22 -0
  473. package/dist/src/subpaths/file-manager.d.ts +21 -0
  474. package/dist/src/subpaths/grid.d.ts +25 -0
  475. package/dist/src/types/menu-item.d.ts +21 -0
  476. package/dist/src/utils/__tests__/element-size-observer.spec.d.ts +1 -0
  477. package/dist/src/utils/__tests__/pointer.spec.d.ts +1 -0
  478. package/dist/src/utils/element-size-observer.d.ts +26 -0
  479. package/dist/src/utils/grid-comparators.d.ts +4 -0
  480. package/dist/src/utils/grid-date.d.ts +7 -0
  481. package/dist/src/utils/grid-registration.d.ts +16 -0
  482. package/dist/src/utils/grid-registration.spec.d.ts +1 -0
  483. package/dist/src/utils/pointer.d.ts +29 -0
  484. package/dist/src/utils/sub-menu-floating.d.ts +1 -0
  485. package/dist/types/analytics.js +4 -0
  486. package/dist/types/button.js +5 -0
  487. package/dist/types/calendar.js +4 -0
  488. package/dist/types/caption.js +4 -0
  489. package/dist/types/confirmation-popup.js +4 -0
  490. package/dist/types/dropdown.js +6 -0
  491. package/dist/types/editor.js +4 -0
  492. package/dist/types/file-manager.js +12 -0
  493. package/dist/types/flexible-actions.js +4 -0
  494. package/dist/types/form-item.js +4 -0
  495. package/dist/types/item.js +4 -0
  496. package/dist/types/menu-item.js +4 -0
  497. package/dist/types/notification.js +5 -0
  498. package/dist/types/popup.js +4 -0
  499. package/dist/types/radio-group.js +4 -0
  500. package/dist/types/resizable-container.js +4 -0
  501. package/dist/types/screen.js +4 -0
  502. package/dist/types/select.js +5 -0
  503. package/dist/types/size.js +4 -0
  504. package/dist/types/skeleton.js +6 -0
  505. package/dist/types/tab.js +6 -0
  506. package/dist/types/tag.js +4 -0
  507. package/dist/types/tooltip.js +4 -0
  508. package/dist/use-file-manager-tabs-DjdR_mYM.cjs +3 -0
  509. package/dist/utils/accessible-name.js +6 -0
  510. package/dist/utils/debounce.js +9 -0
  511. package/dist/utils/element-size-observer.js +24 -0
  512. package/dist/utils/file-accept.js +16 -0
  513. package/dist/utils/flat-to-hierarchy-convertor.js +86 -0
  514. package/dist/utils/grid-comparators.js +17 -0
  515. package/dist/utils/grid-date.js +20 -0
  516. package/dist/utils/grid-registration.js +8 -0
  517. package/dist/utils/merge-classes.js +8 -0
  518. package/dist/utils/mobile.js +11 -0
  519. package/dist/utils/path.js +4 -0
  520. package/dist/utils/pointer.js +5 -0
  521. package/dist/utils/sub-menu-floating.js +85 -0
  522. package/package.json +37 -12
  523. package/dist/JsonEditor-DpV8EJsP.cjs +0 -1
  524. package/dist/MarkdownEditor-ByqdCRg9.js +0 -75
  525. package/dist/MarkdownEditor-CCsi7d4R.js +0 -35
  526. package/dist/MarkdownEditor-CIH1ew3u.cjs +0 -1
  527. package/dist/MarkdownEditor-Dk2ErWQK.cjs +0 -1
  528. package/dist/dial-ui-kit.cjs.js +0 -1
  529. package/dist/dial-ui-kit.es.js +0 -220
  530. package/dist/index-CdkIstBB.js +0 -66807
  531. package/dist/index-DQfKTiXa.cjs +0 -71
@@ -0,0 +1,70 @@
1
+ import { invariant as f } from "../../../../@react-dnd/invariant/dist/index.js";
2
+ import { isObject as b } from "../../utils/js_utils.js";
3
+ import { setClientOffset as a } from "./local/setClientOffset.js";
4
+ import { INIT_COORDS as d, BEGIN_DRAG as S } from "./types.js";
5
+ const m = {
6
+ type: d,
7
+ payload: {
8
+ clientOffset: null,
9
+ sourceClientOffset: null
10
+ }
11
+ };
12
+ function w(e) {
13
+ return function(n = [], t = {
14
+ publishSource: !0
15
+ }) {
16
+ const { publishSource: p = !0, clientOffset: o, getSourceClientOffset: u } = t, s = e.getMonitor(), c = e.getRegistry();
17
+ e.dispatch(a(o)), y(n, s, c);
18
+ const i = D(n, s);
19
+ if (i == null) {
20
+ e.dispatch(m);
21
+ return;
22
+ }
23
+ let l = null;
24
+ if (o) {
25
+ if (!u)
26
+ throw new Error("getSourceClientOffset must be defined");
27
+ C(u), l = u(i);
28
+ }
29
+ e.dispatch(a(o, l));
30
+ const g = c.getSource(i).beginDrag(s, i);
31
+ if (g == null)
32
+ return;
33
+ h(g), c.pinSource(i);
34
+ const O = c.getSourceType(i);
35
+ return {
36
+ type: S,
37
+ payload: {
38
+ itemType: O,
39
+ item: g,
40
+ sourceId: i,
41
+ clientOffset: o || null,
42
+ sourceClientOffset: l || null,
43
+ isSourcePublic: !!p
44
+ }
45
+ };
46
+ };
47
+ }
48
+ function y(e, r, n) {
49
+ f(!r.isDragging(), "Cannot call beginDrag while dragging."), e.forEach(function(t) {
50
+ f(n.getSource(t), "Expected sourceIds to be registered.");
51
+ });
52
+ }
53
+ function C(e) {
54
+ f(typeof e == "function", "When clientOffset is provided, getSourceClientOffset must be a function.");
55
+ }
56
+ function h(e) {
57
+ f(b(e), "Item must be an object.");
58
+ }
59
+ function D(e, r) {
60
+ let n = null;
61
+ for (let t = e.length - 1; t >= 0; t--)
62
+ if (r.canDragSource(e[t])) {
63
+ n = e[t];
64
+ break;
65
+ }
66
+ return n;
67
+ }
68
+ export {
69
+ w as createBeginDrag
70
+ };
@@ -0,0 +1,54 @@
1
+ import { invariant as a } from "../../../../@react-dnd/invariant/dist/index.js";
2
+ import { isObject as s } from "../../utils/js_utils.js";
3
+ import { DROP as d } from "./types.js";
4
+ function g(t, e, r) {
5
+ return e in t ? Object.defineProperty(t, e, {
6
+ value: r,
7
+ enumerable: !0,
8
+ configurable: !0,
9
+ writable: !0
10
+ }) : t[e] = r, t;
11
+ }
12
+ function l(t) {
13
+ for (var e = 1; e < arguments.length; e++) {
14
+ var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
15
+ typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(o) {
16
+ return Object.getOwnPropertyDescriptor(r, o).enumerable;
17
+ }))), n.forEach(function(o) {
18
+ g(t, o, r[o]);
19
+ });
20
+ }
21
+ return t;
22
+ }
23
+ function h(t) {
24
+ return function(r = {}) {
25
+ const n = t.getMonitor(), o = t.getRegistry();
26
+ b(n), O(n).forEach((c, u) => {
27
+ const f = y(c, u, o, n), p = {
28
+ type: d,
29
+ payload: {
30
+ dropResult: l({}, r, f)
31
+ }
32
+ };
33
+ t.dispatch(p);
34
+ });
35
+ };
36
+ }
37
+ function b(t) {
38
+ a(t.isDragging(), "Cannot call drop while not dragging."), a(!t.didDrop(), "Cannot call drop twice during one drag operation.");
39
+ }
40
+ function y(t, e, r, n) {
41
+ const o = r.getTarget(t);
42
+ let i = o ? o.drop(n, t) : void 0;
43
+ return D(i), typeof i > "u" && (i = e === 0 ? {} : n.getDropResult()), i;
44
+ }
45
+ function D(t) {
46
+ a(typeof t > "u" || s(t), "Drop result must either be an object or undefined.");
47
+ }
48
+ function O(t) {
49
+ const e = t.getTargetIds().filter(t.canDropOnTarget, t);
50
+ return e.reverse(), e;
51
+ }
52
+ export {
53
+ h as createDrop
54
+ };
@@ -0,0 +1,18 @@
1
+ import { invariant as e } from "../../../../@react-dnd/invariant/dist/index.js";
2
+ import { END_DRAG as i } from "./types.js";
3
+ function D(r) {
4
+ return function() {
5
+ const n = r.getMonitor(), o = r.getRegistry();
6
+ g(n);
7
+ const t = n.getSourceId();
8
+ return t != null && (o.getSource(t, !0).endDrag(n, t), o.unpinSource()), {
9
+ type: i
10
+ };
11
+ };
12
+ }
13
+ function g(r) {
14
+ e(r.isDragging(), "Cannot call endDrag while not dragging.");
15
+ }
16
+ export {
17
+ D as createEndDrag
18
+ };
@@ -0,0 +1,42 @@
1
+ import { invariant as i } from "../../../../@react-dnd/invariant/dist/index.js";
2
+ import { matchesType as s } from "../../utils/matchesType.js";
3
+ import { HOVER as f } from "./types.js";
4
+ function v(t) {
5
+ return function(n, { clientOffset: e } = {}) {
6
+ l(n);
7
+ const r = n.slice(0), a = t.getMonitor(), c = t.getRegistry(), g = a.getItemType();
8
+ return d(r, c, g), p(r, a, c), y(r, a, c), {
9
+ type: f,
10
+ payload: {
11
+ targetIds: r,
12
+ clientOffset: e || null
13
+ }
14
+ };
15
+ };
16
+ }
17
+ function l(t) {
18
+ i(Array.isArray(t), "Expected targetIds to be an array.");
19
+ }
20
+ function p(t, o, n) {
21
+ i(o.isDragging(), "Cannot call hover while not dragging."), i(!o.didDrop(), "Cannot call hover after drop.");
22
+ for (let e = 0; e < t.length; e++) {
23
+ const r = t[e];
24
+ i(t.lastIndexOf(r) === e, "Expected targetIds to be unique in the passed array.");
25
+ const a = n.getTarget(r);
26
+ i(a, "Expected targetIds to be registered.");
27
+ }
28
+ }
29
+ function d(t, o, n) {
30
+ for (let e = t.length - 1; e >= 0; e--) {
31
+ const r = t[e], a = o.getTargetType(r);
32
+ s(a, n) || t.splice(e, 1);
33
+ }
34
+ }
35
+ function y(t, o, n) {
36
+ t.forEach(function(e) {
37
+ n.getTarget(e).hover(o, e);
38
+ });
39
+ }
40
+ export {
41
+ v as createHover
42
+ };
@@ -0,0 +1,17 @@
1
+ import { createBeginDrag as o } from "./beginDrag.js";
2
+ import { createDrop as e } from "./drop.js";
3
+ import { createEndDrag as t } from "./endDrag.js";
4
+ import { createHover as i } from "./hover.js";
5
+ import { createPublishDragSource as c } from "./publishDragSource.js";
6
+ function a(r) {
7
+ return {
8
+ beginDrag: o(r),
9
+ publishDragSource: c(r),
10
+ hover: i(r),
11
+ drop: e(r),
12
+ endDrag: t(r)
13
+ };
14
+ }
15
+ export {
16
+ a as createDragDropActions
17
+ };
@@ -0,0 +1,13 @@
1
+ import { INIT_COORDS as f } from "../types.js";
2
+ function n(t, e) {
3
+ return {
4
+ type: f,
5
+ payload: {
6
+ sourceClientOffset: e || null,
7
+ clientOffset: t || null
8
+ }
9
+ };
10
+ }
11
+ export {
12
+ n as setClientOffset
13
+ };
@@ -0,0 +1,12 @@
1
+ import { PUBLISH_DRAG_SOURCE as o } from "./types.js";
2
+ function e(r) {
3
+ return function() {
4
+ if (r.getMonitor().isDragging())
5
+ return {
6
+ type: o
7
+ };
8
+ };
9
+ }
10
+ export {
11
+ e as createPublishDragSource
12
+ };
@@ -0,0 +1,9 @@
1
+ const R = "dnd-core/INIT_COORDS", o = "dnd-core/BEGIN_DRAG", c = "dnd-core/PUBLISH_DRAG_SOURCE", d = "dnd-core/HOVER", n = "dnd-core/DROP", D = "dnd-core/END_DRAG";
2
+ export {
3
+ o as BEGIN_DRAG,
4
+ n as DROP,
5
+ D as END_DRAG,
6
+ d as HOVER,
7
+ R as INIT_COORDS,
8
+ c as PUBLISH_DRAG_SOURCE
9
+ };
@@ -0,0 +1,43 @@
1
+ const o = "dnd-core/ADD_SOURCE", n = "dnd-core/ADD_TARGET", r = "dnd-core/REMOVE_SOURCE", t = "dnd-core/REMOVE_TARGET";
2
+ function d(e) {
3
+ return {
4
+ type: o,
5
+ payload: {
6
+ sourceId: e
7
+ }
8
+ };
9
+ }
10
+ function E(e) {
11
+ return {
12
+ type: n,
13
+ payload: {
14
+ targetId: e
15
+ }
16
+ };
17
+ }
18
+ function c(e) {
19
+ return {
20
+ type: r,
21
+ payload: {
22
+ sourceId: e
23
+ }
24
+ };
25
+ }
26
+ function a(e) {
27
+ return {
28
+ type: t,
29
+ payload: {
30
+ targetId: e
31
+ }
32
+ };
33
+ }
34
+ export {
35
+ o as ADD_SOURCE,
36
+ n as ADD_TARGET,
37
+ r as REMOVE_SOURCE,
38
+ t as REMOVE_TARGET,
39
+ d as addSource,
40
+ E as addTarget,
41
+ c as removeSource,
42
+ a as removeTarget
43
+ };
@@ -0,0 +1,41 @@
1
+ import { createDragDropActions as a } from "../actions/dragDrop/index.js";
2
+ class p {
3
+ receiveBackend(t) {
4
+ this.backend = t;
5
+ }
6
+ getMonitor() {
7
+ return this.monitor;
8
+ }
9
+ getBackend() {
10
+ return this.backend;
11
+ }
12
+ getRegistry() {
13
+ return this.monitor.registry;
14
+ }
15
+ getActions() {
16
+ const t = this, { dispatch: r } = this.store;
17
+ function e(s) {
18
+ return (...i) => {
19
+ const n = s.apply(t, i);
20
+ typeof n < "u" && r(n);
21
+ };
22
+ }
23
+ const o = a(this);
24
+ return Object.keys(o).reduce((s, i) => {
25
+ const n = o[i];
26
+ return s[i] = e(n), s;
27
+ }, {});
28
+ }
29
+ dispatch(t) {
30
+ this.store.dispatch(t);
31
+ }
32
+ constructor(t, r) {
33
+ this.isSetUp = !1, this.handleRefCountChange = () => {
34
+ const e = this.store.getState().refCount > 0;
35
+ this.backend && (e && !this.isSetUp ? (this.backend.setup(), this.isSetUp = !0) : !e && this.isSetUp && (this.backend.teardown(), this.isSetUp = !1));
36
+ }, this.store = t, this.monitor = r, t.subscribe(this.handleRefCountChange);
37
+ }
38
+ }
39
+ export {
40
+ p as DragDropManagerImpl
41
+ };
@@ -0,0 +1,115 @@
1
+ import { invariant as a } from "../../../@react-dnd/invariant/dist/index.js";
2
+ import { getSourceClientOffset as f, getDifferenceFromInitialOffset as u } from "../utils/coords.js";
3
+ import { areDirty as c } from "../utils/dirtiness.js";
4
+ import { matchesType as o } from "../utils/matchesType.js";
5
+ class O {
6
+ subscribeToStateChange(t, e = {}) {
7
+ const { handlerIds: s } = e;
8
+ a(typeof t == "function", "listener must be a function."), a(typeof s > "u" || Array.isArray(s), "handlerIds, when specified, must be an array of strings.");
9
+ let r = this.store.getState().stateId;
10
+ const g = () => {
11
+ const i = this.store.getState(), n = i.stateId;
12
+ try {
13
+ n === r || n === r + 1 && !c(i.dirtyHandlerIds, s) || t();
14
+ } finally {
15
+ r = n;
16
+ }
17
+ };
18
+ return this.store.subscribe(g);
19
+ }
20
+ subscribeToOffsetChange(t) {
21
+ a(typeof t == "function", "listener must be a function.");
22
+ let e = this.store.getState().dragOffset;
23
+ const s = () => {
24
+ const r = this.store.getState().dragOffset;
25
+ r !== e && (e = r, t());
26
+ };
27
+ return this.store.subscribe(s);
28
+ }
29
+ canDragSource(t) {
30
+ if (!t)
31
+ return !1;
32
+ const e = this.registry.getSource(t);
33
+ return a(e, `Expected to find a valid source. sourceId=${t}`), this.isDragging() ? !1 : e.canDrag(this, t);
34
+ }
35
+ canDropOnTarget(t) {
36
+ if (!t)
37
+ return !1;
38
+ const e = this.registry.getTarget(t);
39
+ if (a(e, `Expected to find a valid target. targetId=${t}`), !this.isDragging() || this.didDrop())
40
+ return !1;
41
+ const s = this.registry.getTargetType(t), r = this.getItemType();
42
+ return o(s, r) && e.canDrop(this, t);
43
+ }
44
+ isDragging() {
45
+ return !!this.getItemType();
46
+ }
47
+ isDraggingSource(t) {
48
+ if (!t)
49
+ return !1;
50
+ const e = this.registry.getSource(t, !0);
51
+ if (a(e, `Expected to find a valid source. sourceId=${t}`), !this.isDragging() || !this.isSourcePublic())
52
+ return !1;
53
+ const s = this.registry.getSourceType(t), r = this.getItemType();
54
+ return s !== r ? !1 : e.isDragging(this, t);
55
+ }
56
+ isOverTarget(t, e = {
57
+ shallow: !1
58
+ }) {
59
+ if (!t)
60
+ return !1;
61
+ const { shallow: s } = e;
62
+ if (!this.isDragging())
63
+ return !1;
64
+ const r = this.registry.getTargetType(t), g = this.getItemType();
65
+ if (g && !o(r, g))
66
+ return !1;
67
+ const i = this.getTargetIds();
68
+ if (!i.length)
69
+ return !1;
70
+ const n = i.indexOf(t);
71
+ return s ? n === i.length - 1 : n > -1;
72
+ }
73
+ getItemType() {
74
+ return this.store.getState().dragOperation.itemType;
75
+ }
76
+ getItem() {
77
+ return this.store.getState().dragOperation.item;
78
+ }
79
+ getSourceId() {
80
+ return this.store.getState().dragOperation.sourceId;
81
+ }
82
+ getTargetIds() {
83
+ return this.store.getState().dragOperation.targetIds;
84
+ }
85
+ getDropResult() {
86
+ return this.store.getState().dragOperation.dropResult;
87
+ }
88
+ didDrop() {
89
+ return this.store.getState().dragOperation.didDrop;
90
+ }
91
+ isSourcePublic() {
92
+ return !!this.store.getState().dragOperation.isSourcePublic;
93
+ }
94
+ getInitialClientOffset() {
95
+ return this.store.getState().dragOffset.initialClientOffset;
96
+ }
97
+ getInitialSourceClientOffset() {
98
+ return this.store.getState().dragOffset.initialSourceClientOffset;
99
+ }
100
+ getClientOffset() {
101
+ return this.store.getState().dragOffset.clientOffset;
102
+ }
103
+ getSourceClientOffset() {
104
+ return f(this.store.getState().dragOffset);
105
+ }
106
+ getDifferenceFromInitialOffset() {
107
+ return u(this.store.getState().dragOffset);
108
+ }
109
+ constructor(t, e) {
110
+ this.store = t, this.registry = e;
111
+ }
112
+ }
113
+ export {
114
+ O as DragDropMonitorImpl
115
+ };
@@ -0,0 +1,96 @@
1
+ import { asap as p } from "../../../@react-dnd/asap/dist/asap.js";
2
+ import { invariant as n } from "../../../@react-dnd/invariant/dist/index.js";
3
+ import { addSource as h, addTarget as l, removeSource as g, removeTarget as S } from "../actions/registry.js";
4
+ import { validateType as a, validateSourceContract as T, validateTargetContract as m } from "../contracts.js";
5
+ import { HandlerRole as s } from "../interfaces.js";
6
+ import { getNextUniqueId as E } from "../utils/getNextUniqueId.js";
7
+ function f(i) {
8
+ const e = E().toString();
9
+ switch (i) {
10
+ case s.SOURCE:
11
+ return `S${e}`;
12
+ case s.TARGET:
13
+ return `T${e}`;
14
+ default:
15
+ throw new Error(`Unknown Handler Role: ${i}`);
16
+ }
17
+ }
18
+ function d(i) {
19
+ switch (i[0]) {
20
+ case "S":
21
+ return s.SOURCE;
22
+ case "T":
23
+ return s.TARGET;
24
+ default:
25
+ throw new Error(`Cannot parse handler ID: ${i}`);
26
+ }
27
+ }
28
+ function c(i, e) {
29
+ const t = i.entries();
30
+ let r = !1;
31
+ do {
32
+ const { done: o, value: [, u] } = t.next();
33
+ if (u === e)
34
+ return !0;
35
+ r = !!o;
36
+ } while (!r);
37
+ return !1;
38
+ }
39
+ class y {
40
+ addSource(e, t) {
41
+ a(e), T(t);
42
+ const r = this.addHandler(s.SOURCE, e, t);
43
+ return this.store.dispatch(h(r)), r;
44
+ }
45
+ addTarget(e, t) {
46
+ a(e, !0), m(t);
47
+ const r = this.addHandler(s.TARGET, e, t);
48
+ return this.store.dispatch(l(r)), r;
49
+ }
50
+ containsHandler(e) {
51
+ return c(this.dragSources, e) || c(this.dropTargets, e);
52
+ }
53
+ getSource(e, t = !1) {
54
+ return n(this.isSourceId(e), "Expected a valid source ID."), t && e === this.pinnedSourceId ? this.pinnedSource : this.dragSources.get(e);
55
+ }
56
+ getTarget(e) {
57
+ return n(this.isTargetId(e), "Expected a valid target ID."), this.dropTargets.get(e);
58
+ }
59
+ getSourceType(e) {
60
+ return n(this.isSourceId(e), "Expected a valid source ID."), this.types.get(e);
61
+ }
62
+ getTargetType(e) {
63
+ return n(this.isTargetId(e), "Expected a valid target ID."), this.types.get(e);
64
+ }
65
+ isSourceId(e) {
66
+ return d(e) === s.SOURCE;
67
+ }
68
+ isTargetId(e) {
69
+ return d(e) === s.TARGET;
70
+ }
71
+ removeSource(e) {
72
+ n(this.getSource(e), "Expected an existing source."), this.store.dispatch(g(e)), p(() => {
73
+ this.dragSources.delete(e), this.types.delete(e);
74
+ });
75
+ }
76
+ removeTarget(e) {
77
+ n(this.getTarget(e), "Expected an existing target."), this.store.dispatch(S(e)), this.dropTargets.delete(e), this.types.delete(e);
78
+ }
79
+ pinSource(e) {
80
+ const t = this.getSource(e);
81
+ n(t, "Expected an existing source."), this.pinnedSourceId = e, this.pinnedSource = t;
82
+ }
83
+ unpinSource() {
84
+ n(this.pinnedSource, "No source is pinned at the time."), this.pinnedSourceId = null, this.pinnedSource = null;
85
+ }
86
+ addHandler(e, t, r) {
87
+ const o = f(e);
88
+ return this.types.set(o, t), e === s.SOURCE ? this.dragSources.set(o, r) : e === s.TARGET && this.dropTargets.set(o, r), o;
89
+ }
90
+ constructor(e) {
91
+ this.types = /* @__PURE__ */ new Map(), this.dragSources = /* @__PURE__ */ new Map(), this.dropTargets = /* @__PURE__ */ new Map(), this.pinnedSourceId = null, this.pinnedSource = null, this.store = e;
92
+ }
93
+ }
94
+ export {
95
+ y as HandlerRegistryImpl
96
+ };
@@ -0,0 +1,21 @@
1
+ import { invariant as o } from "../../@react-dnd/invariant/dist/index.js";
2
+ function c(n) {
3
+ o(typeof n.canDrag == "function", "Expected canDrag to be a function."), o(typeof n.beginDrag == "function", "Expected beginDrag to be a function."), o(typeof n.endDrag == "function", "Expected endDrag to be a function.");
4
+ }
5
+ function r(n) {
6
+ o(typeof n.canDrop == "function", "Expected canDrop to be a function."), o(typeof n.hover == "function", "Expected hover to be a function."), o(typeof n.drop == "function", "Expected beginDrag to be a function.");
7
+ }
8
+ function a(n, t) {
9
+ if (t && Array.isArray(n)) {
10
+ n.forEach(
11
+ (e) => a(e, !1)
12
+ );
13
+ return;
14
+ }
15
+ o(typeof n == "string" || typeof n == "symbol", t ? "Type can only be a string, a symbol, or an array of either." : "Type can only be a string or a symbol.");
16
+ }
17
+ export {
18
+ c as validateSourceContract,
19
+ r as validateTargetContract,
20
+ a as validateType
21
+ };
@@ -0,0 +1,19 @@
1
+ import { createStore as d } from "../../redux/es/redux.js";
2
+ import { DragDropManagerImpl as i } from "./classes/DragDropManagerImpl.js";
3
+ import { DragDropMonitorImpl as p } from "./classes/DragDropMonitorImpl.js";
4
+ import { HandlerRegistryImpl as f } from "./classes/HandlerRegistryImpl.js";
5
+ import { reduce as s } from "./reducers/index.js";
6
+ function _(r, e = void 0, t = {}, a = !1) {
7
+ const n = D(a), c = new p(n, new f(n)), o = new i(n, c), m = r(o, e, t);
8
+ return o.receiveBackend(m), o;
9
+ }
10
+ function D(r) {
11
+ const e = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__;
12
+ return d(s, r && e && e({
13
+ name: "dnd-core",
14
+ instanceId: "dnd-core"
15
+ }));
16
+ }
17
+ export {
18
+ _ as createDragDropManager
19
+ };
@@ -0,0 +1,7 @@
1
+ var R;
2
+ (function(E) {
3
+ E.SOURCE = "SOURCE", E.TARGET = "TARGET";
4
+ })(R || (R = {}));
5
+ export {
6
+ R as HandlerRole
7
+ };
@@ -0,0 +1,30 @@
1
+ import { REMOVE_SOURCE as c, REMOVE_TARGET as E, ADD_TARGET as i, ADD_SOURCE as m } from "../actions/registry.js";
2
+ import { NONE as o, ALL as p } from "../utils/dirtiness.js";
3
+ import { areArraysEqual as R } from "../utils/equality.js";
4
+ import { xor as d } from "../utils/js_utils.js";
5
+ import { DROP as f, END_DRAG as u, PUBLISH_DRAG_SOURCE as g, BEGIN_DRAG as A, HOVER as D } from "../actions/dragDrop/types.js";
6
+ function C(_ = o, n) {
7
+ switch (n.type) {
8
+ case D:
9
+ break;
10
+ case m:
11
+ case i:
12
+ case E:
13
+ case c:
14
+ return o;
15
+ case A:
16
+ case g:
17
+ case u:
18
+ case f:
19
+ default:
20
+ return p;
21
+ }
22
+ const { targetIds: e = [], prevTargetIds: r = [] } = n.payload, t = d(e, r);
23
+ if (!(t.length > 0 || !R(e, r)))
24
+ return o;
25
+ const s = r[r.length - 1], a = e[e.length - 1];
26
+ return s !== a && (s && t.push(s), a && t.push(a)), t;
27
+ }
28
+ export {
29
+ C as reduce
30
+ };
@@ -0,0 +1,50 @@
1
+ import { areCoordsEqual as l } from "../utils/equality.js";
2
+ import { DROP as c, END_DRAG as u, HOVER as O, BEGIN_DRAG as a, INIT_COORDS as o } from "../actions/dragDrop/types.js";
3
+ function s(t, n, e) {
4
+ return n in t ? Object.defineProperty(t, n, {
5
+ value: e,
6
+ enumerable: !0,
7
+ configurable: !0,
8
+ writable: !0
9
+ }) : t[n] = e, t;
10
+ }
11
+ function p(t) {
12
+ for (var n = 1; n < arguments.length; n++) {
13
+ var e = arguments[n] != null ? arguments[n] : {}, f = Object.keys(e);
14
+ typeof Object.getOwnPropertySymbols == "function" && (f = f.concat(Object.getOwnPropertySymbols(e).filter(function(r) {
15
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
16
+ }))), f.forEach(function(r) {
17
+ s(t, r, e[r]);
18
+ });
19
+ }
20
+ return t;
21
+ }
22
+ const i = {
23
+ initialSourceClientOffset: null,
24
+ initialClientOffset: null,
25
+ clientOffset: null
26
+ };
27
+ function d(t = i, n) {
28
+ const { payload: e } = n;
29
+ switch (n.type) {
30
+ case o:
31
+ case a:
32
+ return {
33
+ initialSourceClientOffset: e.sourceClientOffset,
34
+ initialClientOffset: e.clientOffset,
35
+ clientOffset: e.clientOffset
36
+ };
37
+ case O:
38
+ return l(t.clientOffset, e.clientOffset) ? t : p({}, t, {
39
+ clientOffset: e.clientOffset
40
+ });
41
+ case u:
42
+ case c:
43
+ return i;
44
+ default:
45
+ return t;
46
+ }
47
+ }
48
+ export {
49
+ d as reduce
50
+ };