@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.
- package/README.md +32 -3
- package/dist/CHANGELOG.md +17 -2
- package/dist/DateCellRenderer-BVM-Q8yx.cjs +63 -0
- package/dist/DateCellRenderer-ssp7eaZY.cjs +1 -0
- package/dist/IconButton-DWqoaBWf.cjs +1 -0
- package/dist/JsonEditor-qv1Z0dLX.cjs +1 -0
- package/dist/MarkdownEditor-DHn2pYOJ.cjs +1 -0
- package/dist/MarkdownEditor-jQ8nDJfx.cjs +1 -0
- package/dist/MarkdownEditorContainer-Bzcnoemw.cjs +1 -0
- package/dist/Switch-CUKClcEz.cjs +1 -0
- package/dist/_virtual/___vite-browser-external.js +6 -0
- package/dist/_virtual/__vite-browser-external.js +4 -0
- package/dist/_virtual/_commonjsHelpers.js +31 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index3.js +7 -0
- package/dist/assets/icons/add-child.svg.js +5 -0
- package/dist/assets/icons/add-sibling.svg.js +5 -0
- package/dist/assets/icons/copy-to.svg.js +5 -0
- package/dist/assets/icons/file/c.svg.js +5 -0
- package/dist/assets/icons/file/cpp.svg.js +5 -0
- package/dist/assets/icons/file/cs.svg.js +5 -0
- package/dist/assets/icons/file/ini.svg.js +5 -0
- package/dist/assets/icons/file/json.svg.js +5 -0
- package/dist/assets/icons/file/md.svg.js +5 -0
- package/dist/assets/icons/file/py.svg.js +5 -0
- package/dist/assets/icons/loader.svg.js +5 -0
- package/dist/assets/icons/move-to.svg.js +5 -0
- package/dist/assets/icons/no-data.svg.js +5 -0
- package/dist/assets/icons/open-popup.svg.js +5 -0
- package/dist/assets/icons/unshare.svg.js +5 -0
- package/dist/components/Accordion/Accordion.js +70 -0
- package/dist/components/Analytics/Bar/Bar.js +80 -0
- package/dist/components/Analytics/Bar/utils.js +24 -0
- package/dist/components/Analytics/BarGroup/BarGroup.js +142 -0
- package/dist/components/Analytics/Card/Card.js +87 -0
- package/dist/components/Analytics/ErrorTag/ErrorTag.js +19 -0
- package/dist/components/Analytics/Histogram/Histogram.js +200 -0
- package/dist/components/Analytics/Histogram/utils.js +45 -0
- package/dist/components/AutocompleteInput/AutocompleteInputValue.js +21 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +126 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.js +83 -0
- package/dist/components/Breadcrumb/constants.js +20 -0
- package/dist/components/Button/Button.js +53 -0
- package/dist/components/Button/ButtonWrappers.js +40 -0
- package/dist/components/Button/constants.js +29 -0
- package/dist/components/Button/utils.js +11 -0
- package/dist/components/ButtonDropdown/ButtonDropdown.js +33 -0
- package/dist/components/ButtonDropdown/constants.js +8 -0
- package/dist/components/CaptionText/CaptionText.js +27 -0
- package/dist/components/Checkbox/Checkbox.js +64 -0
- package/dist/components/Checkbox/constants.js +4 -0
- package/dist/components/CloseButton/CloseButton.js +27 -0
- package/dist/components/CollapsibleSidebar/CollapsibleSidebar.js +84 -0
- package/dist/components/ConfirmationPopup/ConfirmationPopup.js +75 -0
- package/dist/components/ConfirmationPopup/constants.js +32 -0
- package/dist/components/DraggableItem/DraggableItem.js +61 -0
- package/dist/components/DraggableItem/constants.js +6 -0
- package/dist/components/Dropdown/Dropdown.js +293 -0
- package/dist/components/Dropdown/DropdownSubMenuItem.js +121 -0
- package/dist/components/Dropdown/constants.js +24 -0
- package/dist/components/DropdownIcon/DropdownIcon.js +92 -0
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +75 -0
- package/dist/components/EllipsisTooltip/constants.js +4 -0
- package/dist/components/FabButton/FabButton.js +35 -0
- package/dist/components/FileIcon/FileIcon.js +37 -0
- package/dist/components/FileIcon/constants.js +60 -0
- package/dist/components/FileManager/FileManager.js +887 -0
- package/dist/components/FileManager/FileManagerContext.js +5 -0
- package/dist/components/FileManager/FileManagerProvider.js +770 -0
- package/dist/components/FileManager/FileManagerTooltip.js +92 -0
- package/dist/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.js +293 -0
- package/dist/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.js +201 -0
- package/dist/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.js +52 -0
- package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.js +103 -0
- package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/constants.js +5 -0
- package/dist/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.js +56 -0
- package/dist/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.js +69 -0
- package/dist/components/FileManager/components/FileManagerItemName/FileManagerItemName.js +100 -0
- package/dist/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.js +93 -0
- package/dist/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.js +165 -0
- package/dist/components/FileManager/components/FileManagerNavigationPanel/constants.js +6 -0
- package/dist/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.js +120 -0
- package/dist/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.js +119 -0
- package/dist/components/FileManager/components/FileMetadataPopup/constants.js +9 -0
- package/dist/components/FileManager/components/FoldersTree/FoldersTree.js +180 -0
- package/dist/components/FileManager/components/FoldersTree/constants.js +9 -0
- package/dist/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.js +51 -0
- package/dist/components/FileManager/constants.js +28 -0
- package/dist/components/FileManager/errors.js +10 -0
- package/dist/components/FileManager/hooks/use-bulk-actions.js +143 -0
- package/dist/components/FileManager/hooks/use-collapse-tree.js +22 -0
- package/dist/components/FileManager/hooks/use-conflict-resolution.js +158 -0
- package/dist/components/FileManager/hooks/use-current-path.js +29 -0
- package/dist/components/FileManager/hooks/use-file-clipboard.js +154 -0
- package/dist/components/FileManager/hooks/use-file-delete.js +39 -0
- package/dist/components/FileManager/hooks/use-file-download.js +16 -0
- package/dist/components/FileManager/hooks/use-file-manager-columns.js +106 -0
- package/dist/components/FileManager/hooks/use-file-manager-context.js +13 -0
- package/dist/components/FileManager/hooks/use-file-manager-tabs.js +23 -0
- package/dist/components/FileManager/hooks/use-file-metadata.js +20 -0
- package/dist/components/FileManager/hooks/use-file-search.js +90 -0
- package/dist/components/FileManager/hooks/use-file-upload.js +338 -0
- package/dist/components/FileManager/hooks/use-folder-creation.js +151 -0
- package/dist/components/FileManager/hooks/use-grid-actions-column.js +65 -0
- package/dist/components/FileManager/hooks/use-grid-context-menu.js +188 -0
- package/dist/components/FileManager/hooks/use-item-renaming.js +124 -0
- package/dist/components/FileManager/hooks/use-new-actions.js +67 -0
- package/dist/components/FileManager/hooks/use-paths-selection.js +28 -0
- package/dist/components/FileManager/hooks/use-show-hidden-files.js +20 -0
- package/dist/components/FileManager/hooks/use-tree-additional-buttons.js +39 -0
- package/dist/components/FileManager/hooks/use-trigger-view-create-folder.js +42 -0
- package/dist/components/FileManager/hooks/use-trigger-view-rename.js +25 -0
- package/dist/components/FileManager/utils.js +129 -0
- package/dist/components/FileName/FileName.js +68 -0
- package/dist/components/FolderName/FolderName.js +57 -0
- package/dist/components/FormItem/FormItem.js +90 -0
- package/dist/components/FormItem/constants.js +9 -0
- package/dist/components/FormPopup/FormPopup.js +59 -0
- package/dist/components/FormPopup/constants.js +6 -0
- package/dist/components/Grid/Grid.js +333 -0
- package/dist/components/Grid/constants.js +33 -0
- package/dist/components/Grid/renderers/DateCellRenderer.js +27 -0
- package/dist/components/Grid/renderers/constants.js +25 -0
- package/dist/components/Icon/Icon.js +6 -0
- package/dist/components/IconButton/IconButton.js +40 -0
- package/dist/components/IconButton/IconButtonWrappers.js +48 -0
- package/dist/components/InfoButton/InfoButton.js +32 -0
- package/dist/components/InfoButton/constants.js +4 -0
- package/dist/components/Input/Button/InputButton.js +37 -0
- package/dist/components/Input/Button/constants.js +4 -0
- package/dist/components/Input/Input.js +120 -0
- package/dist/components/Input/utils.js +37 -0
- package/dist/components/InputPopup/InputPopup.js +174 -0
- package/dist/components/JsonEditor/JsonEditor.js +65 -0
- package/dist/components/JsonEditor/lazy.js +4 -0
- package/dist/components/Label/Label.js +27 -0
- package/dist/components/LabelledText/LabelledText.js +37 -0
- package/dist/components/LoadFileArea/EmptyFileArea.js +130 -0
- package/dist/components/LoadFileArea/FilledDropZone.js +80 -0
- package/dist/components/LoadFileArea/FilledInput.js +29 -0
- package/dist/components/LoadFileArea/LoadFileArea.js +70 -0
- package/dist/components/LoadFileArea/LoadFileAreaField.js +128 -0
- package/dist/components/Loader/Loader.js +40 -0
- package/dist/components/Loader/constants.js +5 -0
- package/dist/components/MarkdownEditor/MarkdownEditor.js +37 -0
- package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +80 -0
- package/dist/components/MarkdownEditor/lazy.js +4 -0
- package/dist/components/New/Accordion/Accordion.js +103 -0
- package/dist/components/New/Button/Button.js +76 -0
- package/dist/components/New/Button/ButtonWrappers.js +44 -0
- package/dist/components/New/Button/constants.js +27 -0
- package/dist/components/New/Button/utils.js +11 -0
- package/dist/components/New/ButtonDropdown/ButtonDropdown.js +28 -0
- package/dist/components/New/ButtonDropdown/constants.js +17 -0
- package/dist/components/New/Calendar/Calendar.js +343 -0
- package/dist/components/New/Calendar/constants.js +57 -0
- package/dist/components/New/Calendar/utils.js +77 -0
- package/dist/components/New/CaptionText/CaptionText.js +27 -0
- package/dist/components/New/CardShell/CardShell.js +22 -0
- package/dist/components/New/Checkbox/Checkbox.js +92 -0
- package/dist/components/New/Checkbox/CheckboxBox.js +34 -0
- package/dist/components/New/Checkbox/constants.js +8 -0
- package/dist/components/New/CloseButton/CloseButton.js +33 -0
- package/dist/components/New/CollapsibleSidebar/CollapsibleSidebar.js +108 -0
- package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +78 -0
- package/dist/components/New/ConfirmationPopup/constants.js +27 -0
- package/dist/components/New/Dropdown/Dropdown.js +316 -0
- package/dist/components/New/Dropdown/DropdownSubMenuItem.js +105 -0
- package/dist/components/New/Dropdown/constants.js +28 -0
- package/dist/components/New/Dropdown/item-mark.js +6 -0
- package/dist/components/New/EllipsisTooltip/EllipsisTooltip.js +45 -0
- package/dist/components/New/EllipsisTooltip/use-truncation.js +18 -0
- package/dist/components/New/FileDropzone/FileDropzone.js +135 -0
- package/dist/components/New/FolderPath/FolderPath.js +64 -0
- package/dist/components/New/Grid/Grid.js +301 -0
- package/dist/components/New/Grid/components/SelectionCell.js +50 -0
- package/dist/components/New/Grid/components/SelectionHeader.js +46 -0
- package/dist/components/New/Grid/constants.js +44 -0
- package/dist/components/New/Grid/renderers/DateCellRenderer.js +27 -0
- package/dist/components/New/Grid/renderers/constants.js +25 -0
- package/dist/components/New/Highlight/Highlight.js +50 -0
- package/dist/components/New/IconButton/IconButton.js +46 -0
- package/dist/components/New/IconButton/IconButtonWrappers.js +40 -0
- package/dist/components/New/InfoButton/InfoButton.js +39 -0
- package/dist/components/New/InlineSelect/InlineSelect.js +96 -0
- package/dist/components/New/Input/Button/InputButton.js +38 -0
- package/dist/components/New/Input/Button/constants.js +4 -0
- package/dist/components/New/Input/Input.js +169 -0
- package/dist/components/New/Input/utils.js +37 -0
- package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +104 -0
- package/dist/components/New/InteractiveTooltip/constants.js +6 -0
- package/dist/components/New/Label/Label.js +42 -0
- package/dist/components/New/MarkdownEditor/MarkdownEditor.js +41 -0
- package/dist/components/New/MarkdownEditor/constants.js +64 -0
- package/dist/components/New/MarkdownEditor/lazy.js +4 -0
- package/dist/components/New/MenuItem/MenuItem.js +108 -0
- package/dist/components/New/MenuItem/constants.js +16 -0
- package/dist/components/New/NoDataContent/NoDataContent.js +54 -0
- package/dist/components/New/Notification/Notification.js +67 -0
- package/dist/components/New/Notification/NotificationWrapper.js +61 -0
- package/dist/components/New/Notification/constants.js +32 -0
- package/dist/components/New/NumberInput/NumberInput.js +41 -0
- package/dist/components/New/PasswordInput/PasswordInput.js +54 -0
- package/dist/components/New/Popup/Popup.js +164 -0
- package/dist/components/New/Popup/constants.js +17 -0
- package/dist/components/New/Radio/Radio.js +100 -0
- package/dist/components/New/RadioGroup/RadioGroup.js +81 -0
- package/dist/components/New/RadioGroup/constants.js +11 -0
- package/dist/components/New/RadioGroupPopupField/RadioGroupPopupField.js +138 -0
- package/dist/components/New/RadioGroupPopupField/constants.js +11 -0
- package/dist/components/New/ResizableContainer/ConditionalResizableContainer.js +6 -0
- package/dist/components/New/ResizableContainer/ResizableContainer.js +106 -0
- package/dist/components/New/ResizableContainer/components/ResizeHandle.js +85 -0
- package/dist/components/New/Search/Search.js +74 -0
- package/dist/components/New/SegmentedControl/SegmentedControl.js +92 -0
- package/dist/components/New/SegmentedControl/constants.js +19 -0
- package/dist/components/New/Select/MultiSelectTags.js +23 -0
- package/dist/components/New/Select/Select.js +379 -0
- package/dist/components/New/Select/SelectSubMenuItem.js +103 -0
- package/dist/components/New/Select/constants.js +50 -0
- package/dist/components/New/Slider/Slider.js +112 -0
- package/dist/components/New/Switch/Switch.js +95 -0
- package/dist/components/New/Tabs/Tabs.js +95 -0
- package/dist/components/New/Tag/Tag.js +76 -0
- package/dist/components/New/Tag/constants.js +17 -0
- package/dist/components/New/TagInput/TagInput.js +197 -0
- package/dist/components/New/TagInput/utils.js +21 -0
- package/dist/components/New/Textarea/Textarea.js +55 -0
- package/dist/components/New/ThemeScope/ThemeScope.js +14 -0
- package/dist/components/New/ToggleIconButton/ToggleIconButton.js +54 -0
- package/dist/components/New/Tooltip/Tooltip.js +19 -0
- package/dist/components/New/Tooltip/TooltipContainer.js +12 -0
- package/dist/components/New/Tooltip/TooltipContent.js +45 -0
- package/dist/components/New/Tooltip/TooltipContext.js +67 -0
- package/dist/components/New/Tooltip/TooltipTrigger.js +45 -0
- package/dist/components/New/Tooltip/constants.js +8 -0
- package/dist/components/New/constants/icon.js +4 -0
- package/dist/components/New/constants/overlay.js +27 -0
- package/dist/components/NoDataContent/NoDataContent.js +45 -0
- package/dist/components/Notification/Notification.js +67 -0
- package/dist/components/Notification/constants.js +24 -0
- package/dist/components/NumberInput/NumberInput.js +41 -0
- package/dist/components/Pagination/Pagination.js +80 -0
- package/dist/components/Pagination/utils.js +10 -0
- package/dist/components/PasswordInput/Icons/HideIcon.js +16 -0
- package/dist/components/PasswordInput/Icons/ShowIcon.js +16 -0
- package/dist/components/PasswordInput/PasswordInput.js +21 -0
- package/dist/components/Popup/Popup.js +110 -0
- package/dist/components/Popup/constants.js +12 -0
- package/dist/components/ProgressBar/ProgressBar.js +58 -0
- package/dist/components/RadioButton/RadioButton.js +103 -0
- package/dist/components/RadioGroup/RadioGroup.js +92 -0
- package/dist/components/RadioGroup/constants.js +10 -0
- package/dist/components/RadioGroupPopupField/RadioGroupPopupField.js +101 -0
- package/dist/components/RemoveButton/RemoveButton.js +30 -0
- package/dist/components/ResizableContainer/ConditionalResizableContainer.js +6 -0
- package/dist/components/ResizableContainer/ResizableContainer.js +79 -0
- package/dist/components/ResizableContainer/components/ResizeHandle.js +20 -0
- package/dist/components/ResizableContainer/components/ResizeIcon.js +11 -0
- package/dist/components/SchemaRenderer/SchemaRenderer.js +150 -0
- package/dist/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.js +41 -0
- package/dist/components/SchemaRenderer/components/SchemaAnyOfEditor.js +74 -0
- package/dist/components/SchemaRenderer/components/SchemaArrayEditor.js +118 -0
- package/dist/components/SchemaRenderer/components/SchemaField.js +78 -0
- package/dist/components/SchemaRenderer/components/SchemaFieldContent.js +114 -0
- package/dist/components/SchemaRenderer/components/SchemaKeyValueEditor.js +184 -0
- package/dist/components/SchemaRenderer/components/SchemaObjectEditor.js +36 -0
- package/dist/components/SchemaRenderer/components/SchemaOneOfEditor.js +192 -0
- package/dist/components/SchemaRenderer/components/SchemaPrimitiveField.js +161 -0
- package/dist/components/SchemaRenderer/components/SchemaSection.js +81 -0
- package/dist/components/SchemaRenderer/context.js +12 -0
- package/dist/components/SchemaRenderer/types.js +27 -0
- package/dist/components/SchemaRenderer/utils.js +258 -0
- package/dist/components/Search/Search.js +63 -0
- package/dist/components/Search/constants.js +27 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +87 -0
- package/dist/components/SegmentedControl/constants.js +8 -0
- package/dist/components/Select/MultiSelectTags.js +23 -0
- package/dist/components/Select/Select.js +435 -0
- package/dist/components/Select/SelectSubMenuItem.js +90 -0
- package/dist/components/Select/constants.js +15 -0
- package/dist/components/SelectField/SelectField.js +66 -0
- package/dist/components/SharedEntityIndicator/SharedEntityIndicator.js +34 -0
- package/dist/components/Skeleton/Skeleton.js +90 -0
- package/dist/components/Skeleton/utils.js +16 -0
- package/dist/components/Slider/Slider.js +158 -0
- package/dist/components/Spinner/Spinner.js +30 -0
- package/dist/components/Steps/Step.js +34 -0
- package/dist/components/Steps/Steps.js +27 -0
- package/dist/components/Steps/utils.js +42 -0
- package/dist/components/Switch/Switch.js +70 -0
- package/dist/components/Tab/Tab.js +65 -0
- package/dist/components/Tabs/Tabs.js +213 -0
- package/dist/components/Tabs/constants.js +4 -0
- package/dist/components/Tag/Tag.js +37 -0
- package/dist/components/TagInput/TagInput.js +179 -0
- package/dist/components/Textarea/Textarea.js +43 -0
- package/dist/components/Tooltip/Tooltip.js +30 -0
- package/dist/components/Tooltip/TooltipContainer.js +12 -0
- package/dist/components/Tooltip/TooltipContent.js +40 -0
- package/dist/components/Tooltip/TooltipContext.js +66 -0
- package/dist/components/Tooltip/TooltipTrigger.js +33 -0
- package/dist/components-manifest.json +1009 -161
- package/dist/{JsonEditor-CwnP07GH.js → constants/editor.js} +5 -63
- package/dist/constants/file-grid-columns.js +176 -0
- package/dist/constants/icon.js +10 -0
- package/dist/constants/validation.js +11 -0
- package/dist/dial-ui-kit.cjs +2 -0
- package/dist/dial-ui-kit.js +416 -0
- package/dist/editors.cjs +1 -0
- package/dist/editors.js +12 -0
- package/dist/file-manager.cjs +1 -0
- package/dist/file-manager.js +22 -0
- package/dist/grid.cjs +1 -0
- package/dist/grid.js +30 -0
- package/dist/hooks/use-editable-item.js +94 -0
- package/dist/hooks/use-flexible-actions.js +72 -0
- package/dist/hooks/use-has-hover.js +17 -0
- package/dist/hooks/use-is-mobile-screen.js +12 -0
- package/dist/hooks/use-is-tablet-screen.js +12 -0
- package/dist/hooks/use-screen-type.js +14 -0
- package/dist/hooks/use-width-breakpoint.js +15 -0
- package/dist/icon-CrGVkVpG.cjs +1 -0
- package/dist/icon-DhjrDQ8I.cjs +1 -0
- package/dist/index.css +2 -2
- package/dist/lazy-tfN4sKhq.cjs +1 -0
- package/dist/merge-classes-Dipy1Ih1.cjs +1 -0
- package/dist/migration-guides/0.14.0/button-tooltip-2-0.md +1 -1
- package/dist/migration-guides/0.14.0/shadow-token-per-step-rename.md +64 -29
- package/dist/migration-guides/README.md +1 -1
- package/dist/models/file.js +6 -0
- package/dist/models/selection-mode.js +4 -0
- package/dist/models/step.js +4 -0
- package/dist/node_modules/@react-dnd/asap/dist/AsapQueue.js +39 -0
- package/dist/node_modules/@react-dnd/asap/dist/RawTask.js +17 -0
- package/dist/node_modules/@react-dnd/asap/dist/TaskFactory.js +16 -0
- package/dist/node_modules/@react-dnd/asap/dist/asap.js +9 -0
- package/dist/node_modules/@react-dnd/asap/dist/makeRequestCall.js +62 -0
- package/dist/node_modules/@react-dnd/invariant/dist/index.js +22 -0
- package/dist/node_modules/@react-dnd/shallowequal/dist/index.js +25 -0
- package/dist/node_modules/ag-grid-community/dist/package/main.esm.js +39799 -0
- package/dist/node_modules/ag-grid-react/dist/package/index.esm.js +1989 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js +70 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/drop.js +54 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/endDrag.js +18 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/hover.js +42 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/index.js +17 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js +13 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js +12 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/types.js +9 -0
- package/dist/node_modules/dnd-core/dist/actions/registry.js +43 -0
- package/dist/node_modules/dnd-core/dist/classes/DragDropManagerImpl.js +41 -0
- package/dist/node_modules/dnd-core/dist/classes/DragDropMonitorImpl.js +115 -0
- package/dist/node_modules/dnd-core/dist/classes/HandlerRegistryImpl.js +96 -0
- package/dist/node_modules/dnd-core/dist/contracts.js +21 -0
- package/dist/node_modules/dnd-core/dist/createDragDropManager.js +19 -0
- package/dist/node_modules/dnd-core/dist/interfaces.js +7 -0
- package/dist/node_modules/dnd-core/dist/reducers/dirtyHandlerIds.js +30 -0
- package/dist/node_modules/dnd-core/dist/reducers/dragOffset.js +50 -0
- package/dist/node_modules/dnd-core/dist/reducers/dragOperation.js +78 -0
- package/dist/node_modules/dnd-core/dist/reducers/index.js +42 -0
- package/dist/node_modules/dnd-core/dist/reducers/refCount.js +16 -0
- package/dist/node_modules/dnd-core/dist/reducers/stateId.js +6 -0
- package/dist/node_modules/dnd-core/dist/utils/coords.js +26 -0
- package/dist/node_modules/dnd-core/dist/utils/dirtiness.js +12 -0
- package/dist/node_modules/dnd-core/dist/utils/equality.js +17 -0
- package/dist/node_modules/dnd-core/dist/utils/getNextUniqueId.js +7 -0
- package/dist/node_modules/dnd-core/dist/utils/js_utils.js +36 -0
- package/dist/node_modules/dnd-core/dist/utils/matchesType.js +8 -0
- package/dist/node_modules/fast-deep-equal/index.js +31 -0
- package/dist/node_modules/mime-db/db.json.js +2527 -0
- package/dist/node_modules/mime-db/index.js +8 -0
- package/dist/node_modules/mime-types/index.js +70 -0
- package/dist/node_modules/mime-types/mimeScore.js +38 -0
- package/dist/node_modules/re-resizable/lib/index.js +424 -0
- package/dist/node_modules/re-resizable/lib/resizer.js +49 -0
- package/dist/node_modules/react-dnd/dist/core/DndContext.js +7 -0
- package/dist/node_modules/react-dnd/dist/core/DndProvider.js +66 -0
- package/dist/node_modules/react-dnd/dist/hooks/useCollectedProps.js +11 -0
- package/dist/node_modules/react-dnd/dist/hooks/useCollector.js +22 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/DragSourceImpl.js +25 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/connectors.js +21 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDrag.js +20 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSource.js +19 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceConnector.js +22 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceMonitor.js +15 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragType.js +13 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useRegisteredDragSource.js +23 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDragDropManager.js +10 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/DropTargetImpl.js +21 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/connectors.js +12 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useAccept.js +13 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDrop.js +16 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTarget.js +18 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetConnector.js +18 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetMonitor.js +15 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useRegisteredDropTarget.js +23 -0
- package/dist/node_modules/react-dnd/dist/hooks/useIsomorphicLayoutEffect.js +5 -0
- package/dist/node_modules/react-dnd/dist/hooks/useMonitorOutput.js +20 -0
- package/dist/node_modules/react-dnd/dist/hooks/useOptionalFactory.js +10 -0
- package/dist/node_modules/react-dnd/dist/internals/DragSourceMonitorImpl.js +88 -0
- package/dist/node_modules/react-dnd/dist/internals/DropTargetMonitorImpl.js +59 -0
- package/dist/node_modules/react-dnd/dist/internals/SourceConnector.js +87 -0
- package/dist/node_modules/react-dnd/dist/internals/TargetConnector.js +57 -0
- package/dist/node_modules/react-dnd/dist/internals/isRef.js +9 -0
- package/dist/node_modules/react-dnd/dist/internals/registration.js +18 -0
- package/dist/node_modules/react-dnd/dist/internals/wrapConnectorHooks.js +46 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/BrowserDetector.js +10 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/EnterLeaveCounter.js +22 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/HTML5BackendImpl.js +274 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/MonotonicInterpolant.js +59 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/NativeDragSource.js +43 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.js +10 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js +24 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js +48 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeTypes.js +7 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/OffsetUtils.js +70 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/OptionsReader.js +22 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/index.js +7 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/utils/js_utils.js +22 -0
- package/dist/node_modules/redux/es/redux.js +158 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2924 -0
- package/dist/src/components/Analytics/BarGroup/BarGroup.d.ts +9 -2
- package/dist/src/components/FileManager/FileManager.d.ts +2 -1
- package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +2 -0
- package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +4 -2
- package/dist/src/components/FileManager/utils.d.ts +11 -0
- package/dist/src/components/Grid/comparators/base-column-comparator.d.ts +1 -4
- package/dist/src/components/Grid/renderers/utils.d.ts +1 -2
- package/dist/src/components/JsonEditor/lazy.d.ts +14 -0
- package/dist/src/components/MarkdownEditor/lazy.d.ts +7 -0
- package/dist/src/components/New/CollapsibleSidebar/CollapsibleSidebar.d.ts +82 -0
- package/dist/src/components/New/Dropdown/Dropdown.d.ts +20 -0
- package/dist/src/components/New/Dropdown/constants.d.ts +5 -4
- package/dist/src/components/New/Dropdown/item-mark.d.ts +15 -0
- package/dist/src/components/New/EllipsisTooltip/EllipsisTooltip.d.ts +1 -1
- package/dist/src/components/New/EllipsisTooltip/use-truncation.d.ts +5 -0
- package/dist/src/components/New/Grid/Grid.d.ts +124 -0
- package/dist/src/components/New/Grid/components/SelectionCell.d.ts +21 -0
- package/dist/src/components/New/Grid/components/SelectionHeader.d.ts +14 -0
- package/dist/src/components/New/Grid/constants.d.ts +61 -0
- package/dist/src/components/New/Grid/renderers/DateCellRenderer.d.ts +48 -0
- package/dist/src/components/New/Grid/renderers/constants.d.ts +5 -0
- package/dist/src/components/New/InteractiveTooltip/InteractiveTooltip.d.ts +74 -0
- package/dist/src/components/New/InteractiveTooltip/constants.d.ts +26 -0
- package/dist/src/components/New/MarkdownEditor/MarkdownEditor.d.ts +6 -0
- package/dist/src/components/New/MarkdownEditor/lazy.d.ts +7 -0
- package/dist/src/components/New/MenuItem/MenuItem.d.ts +68 -0
- package/dist/src/components/New/MenuItem/constants.d.ts +5 -0
- package/dist/src/components/New/NoDataContent/NoDataContent.d.ts +48 -0
- package/dist/src/components/New/ResizableContainer/ConditionalResizableContainer.d.ts +34 -0
- package/dist/src/components/New/ResizableContainer/ResizableContainer.d.ts +77 -0
- package/dist/src/components/New/ResizableContainer/components/ResizeHandle.d.ts +21 -0
- package/dist/src/components/New/SegmentedControl/constants.d.ts +2 -2
- package/dist/src/components/New/Select/Select.d.ts +14 -2
- package/dist/src/components/New/Select/SelectSubMenuItem.d.ts +3 -0
- package/dist/src/components/New/Select/constants.d.ts +12 -5
- package/dist/src/components/New/Textarea/Textarea.d.ts +8 -2
- package/dist/src/components/New/ThemeScope/ThemeScope.d.ts +46 -0
- package/dist/src/components/New/Tooltip/Tooltip.d.ts +1 -1
- package/dist/src/components/New/Tooltip/TooltipContent.d.ts +4 -3
- package/dist/src/components/New/Tooltip/constants.d.ts +10 -1
- package/dist/src/components/New/constants/icon.d.ts +22 -0
- package/dist/src/components/New/constants/overlay.d.ts +7 -0
- package/dist/src/components/Tooltip/TooltipContent.d.ts +4 -0
- package/dist/src/hooks/use-has-hover.d.ts +20 -0
- package/dist/src/index.d.ts +28 -4
- package/dist/src/models/dropdown.d.ts +40 -1
- package/dist/src/models/select.d.ts +30 -0
- package/dist/src/subpaths/editors.d.ts +22 -0
- package/dist/src/subpaths/file-manager.d.ts +21 -0
- package/dist/src/subpaths/grid.d.ts +25 -0
- package/dist/src/types/menu-item.d.ts +21 -0
- package/dist/src/utils/__tests__/element-size-observer.spec.d.ts +1 -0
- package/dist/src/utils/__tests__/pointer.spec.d.ts +1 -0
- package/dist/src/utils/element-size-observer.d.ts +26 -0
- package/dist/src/utils/grid-comparators.d.ts +4 -0
- package/dist/src/utils/grid-date.d.ts +7 -0
- package/dist/src/utils/grid-registration.d.ts +16 -0
- package/dist/src/utils/grid-registration.spec.d.ts +1 -0
- package/dist/src/utils/pointer.d.ts +29 -0
- package/dist/src/utils/sub-menu-floating.d.ts +1 -0
- package/dist/types/analytics.js +4 -0
- package/dist/types/button.js +5 -0
- package/dist/types/calendar.js +4 -0
- package/dist/types/caption.js +4 -0
- package/dist/types/confirmation-popup.js +4 -0
- package/dist/types/dropdown.js +6 -0
- package/dist/types/editor.js +4 -0
- package/dist/types/file-manager.js +12 -0
- package/dist/types/flexible-actions.js +4 -0
- package/dist/types/form-item.js +4 -0
- package/dist/types/item.js +4 -0
- package/dist/types/menu-item.js +4 -0
- package/dist/types/notification.js +5 -0
- package/dist/types/popup.js +4 -0
- package/dist/types/radio-group.js +4 -0
- package/dist/types/resizable-container.js +4 -0
- package/dist/types/screen.js +4 -0
- package/dist/types/select.js +5 -0
- package/dist/types/size.js +4 -0
- package/dist/types/skeleton.js +6 -0
- package/dist/types/tab.js +6 -0
- package/dist/types/tag.js +4 -0
- package/dist/types/tooltip.js +4 -0
- package/dist/use-file-manager-tabs-DjdR_mYM.cjs +3 -0
- package/dist/utils/accessible-name.js +6 -0
- package/dist/utils/debounce.js +9 -0
- package/dist/utils/element-size-observer.js +24 -0
- package/dist/utils/file-accept.js +16 -0
- package/dist/utils/flat-to-hierarchy-convertor.js +86 -0
- package/dist/utils/grid-comparators.js +17 -0
- package/dist/utils/grid-date.js +20 -0
- package/dist/utils/grid-registration.js +8 -0
- package/dist/utils/merge-classes.js +8 -0
- package/dist/utils/mobile.js +11 -0
- package/dist/utils/path.js +4 -0
- package/dist/utils/pointer.js +5 -0
- package/dist/utils/sub-menu-floating.js +85 -0
- package/package.json +37 -12
- package/dist/JsonEditor-D3v6vYDX.cjs +0 -1
- package/dist/MarkdownEditor-CfaHfp2e.js +0 -75
- package/dist/MarkdownEditor-D9M8LvKZ.cjs +0 -1
- package/dist/MarkdownEditor-HO5rwRn7.cjs +0 -1
- package/dist/MarkdownEditor-K1ldlz5M.js +0 -35
- package/dist/dial-ui-kit.cjs.js +0 -1
- package/dist/dial-ui-kit.es.js +0 -221
- package/dist/index-DD0A-MXM.cjs +0 -71
- package/dist/index-Dg0iEirR.js +0 -66908
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import s from "../../../../_virtual/index3.js";
|
|
2
|
+
import { useState as f, useCallback as a } from "react";
|
|
3
|
+
import { useIsomorphicLayoutEffect as i } from "./useIsomorphicLayoutEffect.js";
|
|
4
|
+
function n(e, c, t) {
|
|
5
|
+
const [o, r] = f(
|
|
6
|
+
() => c(e)
|
|
7
|
+
), l = a(() => {
|
|
8
|
+
const u = c(e);
|
|
9
|
+
s(o, u) || (r(u), t && t());
|
|
10
|
+
}, [
|
|
11
|
+
o,
|
|
12
|
+
e,
|
|
13
|
+
t
|
|
14
|
+
]);
|
|
15
|
+
return i(l), [
|
|
16
|
+
o,
|
|
17
|
+
l
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
n as useCollector
|
|
22
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
class r {
|
|
2
|
+
beginDrag() {
|
|
3
|
+
const t = this.spec, o = this.monitor;
|
|
4
|
+
let n = null;
|
|
5
|
+
return typeof t.item == "object" ? n = t.item : typeof t.item == "function" ? n = t.item(o) : n = {}, n ?? null;
|
|
6
|
+
}
|
|
7
|
+
canDrag() {
|
|
8
|
+
const t = this.spec, o = this.monitor;
|
|
9
|
+
return typeof t.canDrag == "boolean" ? t.canDrag : typeof t.canDrag == "function" ? t.canDrag(o) : !0;
|
|
10
|
+
}
|
|
11
|
+
isDragging(t, o) {
|
|
12
|
+
const n = this.spec, e = this.monitor, { isDragging: s } = n;
|
|
13
|
+
return s ? s(e) : o === t.getSourceId();
|
|
14
|
+
}
|
|
15
|
+
endDrag() {
|
|
16
|
+
const t = this.spec, o = this.monitor, n = this.connector, { end: e } = t;
|
|
17
|
+
e && e(o.getItem(), o), n.reconnect();
|
|
18
|
+
}
|
|
19
|
+
constructor(t, o, n) {
|
|
20
|
+
this.spec = t, this.monitor = o, this.connector = n;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
r as DragSourceImpl
|
|
25
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useMemo as r } from "react";
|
|
2
|
+
function u(e) {
|
|
3
|
+
return r(
|
|
4
|
+
() => e.hooks.dragSource(),
|
|
5
|
+
[
|
|
6
|
+
e
|
|
7
|
+
]
|
|
8
|
+
);
|
|
9
|
+
}
|
|
10
|
+
function n(e) {
|
|
11
|
+
return r(
|
|
12
|
+
() => e.hooks.dragPreview(),
|
|
13
|
+
[
|
|
14
|
+
e
|
|
15
|
+
]
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
n as useConnectDragPreview,
|
|
20
|
+
u as useConnectDragSource
|
|
21
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { invariant as n } from "../../../../@react-dnd/invariant/dist/index.js";
|
|
2
|
+
import { useCollectedProps as c } from "../useCollectedProps.js";
|
|
3
|
+
import { useOptionalFactory as s } from "../useOptionalFactory.js";
|
|
4
|
+
import { useConnectDragSource as p, useConnectDragPreview as a } from "./connectors.js";
|
|
5
|
+
import { useDragSourceConnector as m } from "./useDragSourceConnector.js";
|
|
6
|
+
import { useDragSourceMonitor as u } from "./useDragSourceMonitor.js";
|
|
7
|
+
import { useRegisteredDragSource as g } from "./useRegisteredDragSource.js";
|
|
8
|
+
function w(t, i) {
|
|
9
|
+
const e = s(t, i);
|
|
10
|
+
n(!e.begin, "useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");
|
|
11
|
+
const r = u(), o = m(e.options, e.previewOptions);
|
|
12
|
+
return g(e, r, o), [
|
|
13
|
+
c(e.collect, r, o),
|
|
14
|
+
p(o),
|
|
15
|
+
a(o)
|
|
16
|
+
];
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
w as useDrag
|
|
20
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useMemo as f, useEffect as m } from "react";
|
|
2
|
+
import { DragSourceImpl as t } from "./DragSourceImpl.js";
|
|
3
|
+
function p(r, e, u) {
|
|
4
|
+
const o = f(
|
|
5
|
+
() => new t(r, e, u),
|
|
6
|
+
[
|
|
7
|
+
e,
|
|
8
|
+
u
|
|
9
|
+
]
|
|
10
|
+
);
|
|
11
|
+
return m(() => {
|
|
12
|
+
o.spec = r;
|
|
13
|
+
}, [
|
|
14
|
+
r
|
|
15
|
+
]), o;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
p as useDragSource
|
|
19
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useMemo as t } from "react";
|
|
2
|
+
import { useDragDropManager as u } from "../useDragDropManager.js";
|
|
3
|
+
import { useIsomorphicLayoutEffect as c } from "../useIsomorphicLayoutEffect.js";
|
|
4
|
+
import { SourceConnector as m } from "../../internals/SourceConnector.js";
|
|
5
|
+
function g(o, e) {
|
|
6
|
+
const n = u(), r = t(
|
|
7
|
+
() => new m(n.getBackend()),
|
|
8
|
+
[
|
|
9
|
+
n
|
|
10
|
+
]
|
|
11
|
+
);
|
|
12
|
+
return c(() => (r.dragSourceOptions = o || null, r.reconnect(), () => r.disconnectDragSource()), [
|
|
13
|
+
r,
|
|
14
|
+
o
|
|
15
|
+
]), c(() => (r.dragPreviewOptions = e || null, r.reconnect(), () => r.disconnectDragPreview()), [
|
|
16
|
+
r,
|
|
17
|
+
e
|
|
18
|
+
]), r;
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
g as useDragSourceConnector
|
|
22
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useMemo as o } from "react";
|
|
2
|
+
import { useDragDropManager as e } from "../useDragDropManager.js";
|
|
3
|
+
import { DragSourceMonitorImpl as m } from "../../internals/DragSourceMonitorImpl.js";
|
|
4
|
+
function u() {
|
|
5
|
+
const r = e();
|
|
6
|
+
return o(
|
|
7
|
+
() => new m(r),
|
|
8
|
+
[
|
|
9
|
+
r
|
|
10
|
+
]
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
u as useDragSourceMonitor
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { invariant as t } from "../../../../@react-dnd/invariant/dist/index.js";
|
|
2
|
+
import { useMemo as n } from "react";
|
|
3
|
+
function i(e) {
|
|
4
|
+
return n(() => {
|
|
5
|
+
const r = e.type;
|
|
6
|
+
return t(r != null, "spec.type must be defined"), r;
|
|
7
|
+
}, [
|
|
8
|
+
e
|
|
9
|
+
]);
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
i as useDragType
|
|
13
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useDragDropManager as n } from "../useDragDropManager.js";
|
|
2
|
+
import { useIsomorphicLayoutEffect as g } from "../useIsomorphicLayoutEffect.js";
|
|
3
|
+
import { useDragSource as m } from "./useDragSource.js";
|
|
4
|
+
import { useDragType as f } from "./useDragType.js";
|
|
5
|
+
import { registerSource as c } from "../../internals/registration.js";
|
|
6
|
+
function h(t, r, e) {
|
|
7
|
+
const u = n(), a = m(t, r, e), o = f(t);
|
|
8
|
+
g(function() {
|
|
9
|
+
if (o != null) {
|
|
10
|
+
const [i, s] = c(o, a, u);
|
|
11
|
+
return r.receiveHandlerId(i), e.receiveHandlerId(i), s;
|
|
12
|
+
}
|
|
13
|
+
}, [
|
|
14
|
+
u,
|
|
15
|
+
r,
|
|
16
|
+
e,
|
|
17
|
+
a,
|
|
18
|
+
o
|
|
19
|
+
]);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
h as useRegisteredDragSource
|
|
23
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { invariant as o } from "../../../@react-dnd/invariant/dist/index.js";
|
|
2
|
+
import { useContext as t } from "react";
|
|
3
|
+
import { DndContext as n } from "../core/DndContext.js";
|
|
4
|
+
function i() {
|
|
5
|
+
const { dragDropManager: r } = t(n);
|
|
6
|
+
return o(r != null, "Expected drag drop context"), r;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
i as useDragDropManager
|
|
10
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
class s {
|
|
2
|
+
canDrop() {
|
|
3
|
+
const t = this.spec, o = this.monitor;
|
|
4
|
+
return t.canDrop ? t.canDrop(o.getItem(), o) : !0;
|
|
5
|
+
}
|
|
6
|
+
hover() {
|
|
7
|
+
const t = this.spec, o = this.monitor;
|
|
8
|
+
t.hover && t.hover(o.getItem(), o);
|
|
9
|
+
}
|
|
10
|
+
drop() {
|
|
11
|
+
const t = this.spec, o = this.monitor;
|
|
12
|
+
if (t.drop)
|
|
13
|
+
return t.drop(o.getItem(), o);
|
|
14
|
+
}
|
|
15
|
+
constructor(t, o) {
|
|
16
|
+
this.spec = t, this.monitor = o;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
s as DropTargetImpl
|
|
21
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { invariant as e } from "../../../../@react-dnd/invariant/dist/index.js";
|
|
2
|
+
import { useMemo as c } from "react";
|
|
3
|
+
function a(t) {
|
|
4
|
+
const { accept: r } = t;
|
|
5
|
+
return c(() => (e(t.accept != null, "accept must be defined"), Array.isArray(r) ? r : [
|
|
6
|
+
r
|
|
7
|
+
]), [
|
|
8
|
+
r
|
|
9
|
+
]);
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
a as useAccept
|
|
13
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useCollectedProps as p } from "../useCollectedProps.js";
|
|
2
|
+
import { useOptionalFactory as s } from "../useOptionalFactory.js";
|
|
3
|
+
import { useConnectDropTarget as c } from "./connectors.js";
|
|
4
|
+
import { useDropTargetConnector as m } from "./useDropTargetConnector.js";
|
|
5
|
+
import { useDropTargetMonitor as i } from "./useDropTargetMonitor.js";
|
|
6
|
+
import { useRegisteredDropTarget as u } from "./useRegisteredDropTarget.js";
|
|
7
|
+
function C(e, n) {
|
|
8
|
+
const o = s(e, n), t = i(), r = m(o.options);
|
|
9
|
+
return u(o, t, r), [
|
|
10
|
+
p(o.collect, t, r),
|
|
11
|
+
c(r)
|
|
12
|
+
];
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
C as useDrop
|
|
16
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useMemo as t, useEffect as p } from "react";
|
|
2
|
+
import { DropTargetImpl as f } from "./DropTargetImpl.js";
|
|
3
|
+
function n(r, e) {
|
|
4
|
+
const o = t(
|
|
5
|
+
() => new f(r, e),
|
|
6
|
+
[
|
|
7
|
+
e
|
|
8
|
+
]
|
|
9
|
+
);
|
|
10
|
+
return p(() => {
|
|
11
|
+
o.spec = r;
|
|
12
|
+
}, [
|
|
13
|
+
r
|
|
14
|
+
]), o;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
n as useDropTarget
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useMemo as t } from "react";
|
|
2
|
+
import { useDragDropManager as n } from "../useDragDropManager.js";
|
|
3
|
+
import { useIsomorphicLayoutEffect as c } from "../useIsomorphicLayoutEffect.js";
|
|
4
|
+
import { TargetConnector as a } from "../../internals/TargetConnector.js";
|
|
5
|
+
function s(o) {
|
|
6
|
+
const e = n(), r = t(
|
|
7
|
+
() => new a(e.getBackend()),
|
|
8
|
+
[
|
|
9
|
+
e
|
|
10
|
+
]
|
|
11
|
+
);
|
|
12
|
+
return c(() => (r.dropTargetOptions = o || null, r.reconnect(), () => r.disconnectDropTarget()), [
|
|
13
|
+
o
|
|
14
|
+
]), r;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
s as useDropTargetConnector
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useMemo as o } from "react";
|
|
2
|
+
import { useDragDropManager as e } from "../useDragDropManager.js";
|
|
3
|
+
import { DropTargetMonitorImpl as t } from "../../internals/DropTargetMonitorImpl.js";
|
|
4
|
+
function a() {
|
|
5
|
+
const r = e();
|
|
6
|
+
return o(
|
|
7
|
+
() => new t(r),
|
|
8
|
+
[
|
|
9
|
+
r
|
|
10
|
+
]
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
a as useDropTargetMonitor
|
|
15
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useDragDropManager as s } from "../useDragDropManager.js";
|
|
2
|
+
import { useIsomorphicLayoutEffect as c } from "../useIsomorphicLayoutEffect.js";
|
|
3
|
+
import { useAccept as m } from "./useAccept.js";
|
|
4
|
+
import { useDropTarget as u } from "./useDropTarget.js";
|
|
5
|
+
import { registerTarget as f } from "../../internals/registration.js";
|
|
6
|
+
function h(e, r, t) {
|
|
7
|
+
const o = s(), a = u(e, r), i = m(e);
|
|
8
|
+
c(function() {
|
|
9
|
+
const [g, n] = f(i, a, o);
|
|
10
|
+
return r.receiveHandlerId(g), t.receiveHandlerId(g), n;
|
|
11
|
+
}, [
|
|
12
|
+
o,
|
|
13
|
+
r,
|
|
14
|
+
a,
|
|
15
|
+
t,
|
|
16
|
+
i.map(
|
|
17
|
+
(p) => p.toString()
|
|
18
|
+
).join("|")
|
|
19
|
+
]);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
h as useRegisteredDropTarget
|
|
23
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useCollector as c } from "./useCollector.js";
|
|
2
|
+
import { useIsomorphicLayoutEffect as l } from "./useIsomorphicLayoutEffect.js";
|
|
3
|
+
function f(e, o, u) {
|
|
4
|
+
const [n, t] = c(e, o, u);
|
|
5
|
+
return l(function() {
|
|
6
|
+
const r = e.getHandlerId();
|
|
7
|
+
if (r != null)
|
|
8
|
+
return e.subscribeToStateChange(t, {
|
|
9
|
+
handlerIds: [
|
|
10
|
+
r
|
|
11
|
+
]
|
|
12
|
+
});
|
|
13
|
+
}, [
|
|
14
|
+
e,
|
|
15
|
+
t
|
|
16
|
+
]), n;
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
f as useMonitorOutput
|
|
20
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { invariant as i } from "../../../@react-dnd/invariant/dist/index.js";
|
|
2
|
+
let e = !1, n = !1;
|
|
3
|
+
class s {
|
|
4
|
+
receiveHandlerId(t) {
|
|
5
|
+
this.sourceId = t;
|
|
6
|
+
}
|
|
7
|
+
getHandlerId() {
|
|
8
|
+
return this.sourceId;
|
|
9
|
+
}
|
|
10
|
+
canDrag() {
|
|
11
|
+
i(!e, "You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
|
|
12
|
+
try {
|
|
13
|
+
return e = !0, this.internalMonitor.canDragSource(this.sourceId);
|
|
14
|
+
} finally {
|
|
15
|
+
e = !1;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
isDragging() {
|
|
19
|
+
if (!this.sourceId)
|
|
20
|
+
return !1;
|
|
21
|
+
i(!n, "You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
|
|
22
|
+
try {
|
|
23
|
+
return n = !0, this.internalMonitor.isDraggingSource(this.sourceId);
|
|
24
|
+
} finally {
|
|
25
|
+
n = !1;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
subscribeToStateChange(t, r) {
|
|
29
|
+
return this.internalMonitor.subscribeToStateChange(t, r);
|
|
30
|
+
}
|
|
31
|
+
isDraggingSource(t) {
|
|
32
|
+
return this.internalMonitor.isDraggingSource(t);
|
|
33
|
+
}
|
|
34
|
+
isOverTarget(t, r) {
|
|
35
|
+
return this.internalMonitor.isOverTarget(t, r);
|
|
36
|
+
}
|
|
37
|
+
getTargetIds() {
|
|
38
|
+
return this.internalMonitor.getTargetIds();
|
|
39
|
+
}
|
|
40
|
+
isSourcePublic() {
|
|
41
|
+
return this.internalMonitor.isSourcePublic();
|
|
42
|
+
}
|
|
43
|
+
getSourceId() {
|
|
44
|
+
return this.internalMonitor.getSourceId();
|
|
45
|
+
}
|
|
46
|
+
subscribeToOffsetChange(t) {
|
|
47
|
+
return this.internalMonitor.subscribeToOffsetChange(t);
|
|
48
|
+
}
|
|
49
|
+
canDragSource(t) {
|
|
50
|
+
return this.internalMonitor.canDragSource(t);
|
|
51
|
+
}
|
|
52
|
+
canDropOnTarget(t) {
|
|
53
|
+
return this.internalMonitor.canDropOnTarget(t);
|
|
54
|
+
}
|
|
55
|
+
getItemType() {
|
|
56
|
+
return this.internalMonitor.getItemType();
|
|
57
|
+
}
|
|
58
|
+
getItem() {
|
|
59
|
+
return this.internalMonitor.getItem();
|
|
60
|
+
}
|
|
61
|
+
getDropResult() {
|
|
62
|
+
return this.internalMonitor.getDropResult();
|
|
63
|
+
}
|
|
64
|
+
didDrop() {
|
|
65
|
+
return this.internalMonitor.didDrop();
|
|
66
|
+
}
|
|
67
|
+
getInitialClientOffset() {
|
|
68
|
+
return this.internalMonitor.getInitialClientOffset();
|
|
69
|
+
}
|
|
70
|
+
getInitialSourceClientOffset() {
|
|
71
|
+
return this.internalMonitor.getInitialSourceClientOffset();
|
|
72
|
+
}
|
|
73
|
+
getSourceClientOffset() {
|
|
74
|
+
return this.internalMonitor.getSourceClientOffset();
|
|
75
|
+
}
|
|
76
|
+
getClientOffset() {
|
|
77
|
+
return this.internalMonitor.getClientOffset();
|
|
78
|
+
}
|
|
79
|
+
getDifferenceFromInitialOffset() {
|
|
80
|
+
return this.internalMonitor.getDifferenceFromInitialOffset();
|
|
81
|
+
}
|
|
82
|
+
constructor(t) {
|
|
83
|
+
this.sourceId = null, this.internalMonitor = t.getMonitor();
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export {
|
|
87
|
+
s as DragSourceMonitorImpl
|
|
88
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { invariant as n } from "../../../@react-dnd/invariant/dist/index.js";
|
|
2
|
+
let e = !1;
|
|
3
|
+
class a {
|
|
4
|
+
receiveHandlerId(t) {
|
|
5
|
+
this.targetId = t;
|
|
6
|
+
}
|
|
7
|
+
getHandlerId() {
|
|
8
|
+
return this.targetId;
|
|
9
|
+
}
|
|
10
|
+
subscribeToStateChange(t, r) {
|
|
11
|
+
return this.internalMonitor.subscribeToStateChange(t, r);
|
|
12
|
+
}
|
|
13
|
+
canDrop() {
|
|
14
|
+
if (!this.targetId)
|
|
15
|
+
return !1;
|
|
16
|
+
n(!e, "You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");
|
|
17
|
+
try {
|
|
18
|
+
return e = !0, this.internalMonitor.canDropOnTarget(this.targetId);
|
|
19
|
+
} finally {
|
|
20
|
+
e = !1;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
isOver(t) {
|
|
24
|
+
return this.targetId ? this.internalMonitor.isOverTarget(this.targetId, t) : !1;
|
|
25
|
+
}
|
|
26
|
+
getItemType() {
|
|
27
|
+
return this.internalMonitor.getItemType();
|
|
28
|
+
}
|
|
29
|
+
getItem() {
|
|
30
|
+
return this.internalMonitor.getItem();
|
|
31
|
+
}
|
|
32
|
+
getDropResult() {
|
|
33
|
+
return this.internalMonitor.getDropResult();
|
|
34
|
+
}
|
|
35
|
+
didDrop() {
|
|
36
|
+
return this.internalMonitor.didDrop();
|
|
37
|
+
}
|
|
38
|
+
getInitialClientOffset() {
|
|
39
|
+
return this.internalMonitor.getInitialClientOffset();
|
|
40
|
+
}
|
|
41
|
+
getInitialSourceClientOffset() {
|
|
42
|
+
return this.internalMonitor.getInitialSourceClientOffset();
|
|
43
|
+
}
|
|
44
|
+
getSourceClientOffset() {
|
|
45
|
+
return this.internalMonitor.getSourceClientOffset();
|
|
46
|
+
}
|
|
47
|
+
getClientOffset() {
|
|
48
|
+
return this.internalMonitor.getClientOffset();
|
|
49
|
+
}
|
|
50
|
+
getDifferenceFromInitialOffset() {
|
|
51
|
+
return this.internalMonitor.getDifferenceFromInitialOffset();
|
|
52
|
+
}
|
|
53
|
+
constructor(t) {
|
|
54
|
+
this.targetId = null, this.internalMonitor = t.getMonitor();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
a as DropTargetMonitorImpl
|
|
59
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { shallowEqual as i } from "../../../@react-dnd/shallowequal/dist/index.js";
|
|
2
|
+
import { isRef as n } from "./isRef.js";
|
|
3
|
+
import { wrapConnectorHooks as s } from "./wrapConnectorHooks.js";
|
|
4
|
+
class h {
|
|
5
|
+
receiveHandlerId(r) {
|
|
6
|
+
this.handlerId !== r && (this.handlerId = r, this.reconnect());
|
|
7
|
+
}
|
|
8
|
+
get connectTarget() {
|
|
9
|
+
return this.dragSource;
|
|
10
|
+
}
|
|
11
|
+
get dragSourceOptions() {
|
|
12
|
+
return this.dragSourceOptionsInternal;
|
|
13
|
+
}
|
|
14
|
+
set dragSourceOptions(r) {
|
|
15
|
+
this.dragSourceOptionsInternal = r;
|
|
16
|
+
}
|
|
17
|
+
get dragPreviewOptions() {
|
|
18
|
+
return this.dragPreviewOptionsInternal;
|
|
19
|
+
}
|
|
20
|
+
set dragPreviewOptions(r) {
|
|
21
|
+
this.dragPreviewOptionsInternal = r;
|
|
22
|
+
}
|
|
23
|
+
reconnect() {
|
|
24
|
+
const r = this.reconnectDragSource();
|
|
25
|
+
this.reconnectDragPreview(r);
|
|
26
|
+
}
|
|
27
|
+
reconnectDragSource() {
|
|
28
|
+
const r = this.dragSource, e = this.didHandlerIdChange() || this.didConnectedDragSourceChange() || this.didDragSourceOptionsChange();
|
|
29
|
+
return e && this.disconnectDragSource(), this.handlerId ? r ? (e && (this.lastConnectedHandlerId = this.handlerId, this.lastConnectedDragSource = r, this.lastConnectedDragSourceOptions = this.dragSourceOptions, this.dragSourceUnsubscribe = this.backend.connectDragSource(this.handlerId, r, this.dragSourceOptions)), e) : (this.lastConnectedDragSource = r, e) : e;
|
|
30
|
+
}
|
|
31
|
+
reconnectDragPreview(r = !1) {
|
|
32
|
+
const e = this.dragPreview, t = r || this.didHandlerIdChange() || this.didConnectedDragPreviewChange() || this.didDragPreviewOptionsChange();
|
|
33
|
+
if (t && this.disconnectDragPreview(), !!this.handlerId) {
|
|
34
|
+
if (!e) {
|
|
35
|
+
this.lastConnectedDragPreview = e;
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
t && (this.lastConnectedHandlerId = this.handlerId, this.lastConnectedDragPreview = e, this.lastConnectedDragPreviewOptions = this.dragPreviewOptions, this.dragPreviewUnsubscribe = this.backend.connectDragPreview(this.handlerId, e, this.dragPreviewOptions));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
didHandlerIdChange() {
|
|
42
|
+
return this.lastConnectedHandlerId !== this.handlerId;
|
|
43
|
+
}
|
|
44
|
+
didConnectedDragSourceChange() {
|
|
45
|
+
return this.lastConnectedDragSource !== this.dragSource;
|
|
46
|
+
}
|
|
47
|
+
didConnectedDragPreviewChange() {
|
|
48
|
+
return this.lastConnectedDragPreview !== this.dragPreview;
|
|
49
|
+
}
|
|
50
|
+
didDragSourceOptionsChange() {
|
|
51
|
+
return !i(this.lastConnectedDragSourceOptions, this.dragSourceOptions);
|
|
52
|
+
}
|
|
53
|
+
didDragPreviewOptionsChange() {
|
|
54
|
+
return !i(this.lastConnectedDragPreviewOptions, this.dragPreviewOptions);
|
|
55
|
+
}
|
|
56
|
+
disconnectDragSource() {
|
|
57
|
+
this.dragSourceUnsubscribe && (this.dragSourceUnsubscribe(), this.dragSourceUnsubscribe = void 0);
|
|
58
|
+
}
|
|
59
|
+
disconnectDragPreview() {
|
|
60
|
+
this.dragPreviewUnsubscribe && (this.dragPreviewUnsubscribe(), this.dragPreviewUnsubscribe = void 0, this.dragPreviewNode = null, this.dragPreviewRef = null);
|
|
61
|
+
}
|
|
62
|
+
get dragSource() {
|
|
63
|
+
return this.dragSourceNode || this.dragSourceRef && this.dragSourceRef.current;
|
|
64
|
+
}
|
|
65
|
+
get dragPreview() {
|
|
66
|
+
return this.dragPreviewNode || this.dragPreviewRef && this.dragPreviewRef.current;
|
|
67
|
+
}
|
|
68
|
+
clearDragSource() {
|
|
69
|
+
this.dragSourceNode = null, this.dragSourceRef = null;
|
|
70
|
+
}
|
|
71
|
+
clearDragPreview() {
|
|
72
|
+
this.dragPreviewNode = null, this.dragPreviewRef = null;
|
|
73
|
+
}
|
|
74
|
+
constructor(r) {
|
|
75
|
+
this.hooks = s({
|
|
76
|
+
dragSource: (e, t) => {
|
|
77
|
+
this.clearDragSource(), this.dragSourceOptions = t || null, n(e) ? this.dragSourceRef = e : this.dragSourceNode = e, this.reconnectDragSource();
|
|
78
|
+
},
|
|
79
|
+
dragPreview: (e, t) => {
|
|
80
|
+
this.clearDragPreview(), this.dragPreviewOptions = t || null, n(e) ? this.dragPreviewRef = e : this.dragPreviewNode = e, this.reconnectDragPreview();
|
|
81
|
+
}
|
|
82
|
+
}), this.handlerId = null, this.dragSourceRef = null, this.dragSourceOptionsInternal = null, this.dragPreviewRef = null, this.dragPreviewOptionsInternal = null, this.lastConnectedHandlerId = null, this.lastConnectedDragSource = null, this.lastConnectedDragSourceOptions = null, this.lastConnectedDragPreview = null, this.lastConnectedDragPreviewOptions = null, this.backend = r;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
export {
|
|
86
|
+
h as SourceConnector
|
|
87
|
+
};
|