@inf-monkeys-tech/monkeys-design 0.4.40 → 0.4.41
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/dist/components/data-explorer/index.d.mts +4 -4
- package/dist/components/data-explorer/index.d.ts +4 -4
- package/dist/components/data-explorer/index.js +297 -151
- package/dist/components/data-explorer/index.js.map +1 -1
- package/dist/components/data-explorer/index.mjs +299 -153
- package/dist/components/data-explorer/index.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{theme-rXHbVr6l.d.ts → theme-6n0A9kRO.d.ts} +1 -1
- package/dist/{theme-DnbkgyCq.d.mts → theme-BsEbXR7C.d.mts} +1 -1
- package/dist/theme-system/index.d.mts +1 -1
- package/dist/theme-system/index.d.ts +1 -1
- package/dist/{types-BnC3Z85r.d.mts → types-BFHv0G27.d.mts} +1 -0
- package/dist/{types-BnC3Z85r.d.ts → types-BFHv0G27.d.ts} +1 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { D as DataExplorerActionBar, a as DataExplorerButton, b as DataExplorerCheckbox, c as DataExplorerCollectionFooter, f as DataExplorerDetailField, g as DataExplorerDetailSection, h as DataExplorerDetailShell, i as DataExplorerDisplayActionMenu, j as DataExplorerDisplayCard, k as DataExplorerDisplayCollectionView, l as DataExplorerDisplayListItem, m as DataExplorerDisplayMedia, n as DataExplorerImagePreview, o as DataExplorerPage, p as DataExplorerRecordCard, d as DataExplorerSelect, e as DataExplorerToolbarActions, q as DataExplorerToolbarShell, r as DataExplorerTree, s as DataExplorerTreeShell, u as DataExplorerView, v as DataExplorerViewCollection, w as DataExplorerViewItem, x as DataExplorerViewItemShell, y as DataExplorerViewShell, t as DataExplorerViewTree, z as getDataExplorerActionToneClassName, A as getDataExplorerMenuItemToneClassName, B as resolveDataExplorerAppearance } from '../../theme-
|
|
1
|
+
export { D as DataExplorerActionBar, a as DataExplorerButton, b as DataExplorerCheckbox, c as DataExplorerCollectionFooter, f as DataExplorerDetailField, g as DataExplorerDetailSection, h as DataExplorerDetailShell, i as DataExplorerDisplayActionMenu, j as DataExplorerDisplayCard, k as DataExplorerDisplayCollectionView, l as DataExplorerDisplayListItem, m as DataExplorerDisplayMedia, n as DataExplorerImagePreview, o as DataExplorerPage, p as DataExplorerRecordCard, d as DataExplorerSelect, e as DataExplorerToolbarActions, q as DataExplorerToolbarShell, r as DataExplorerTree, s as DataExplorerTreeShell, u as DataExplorerView, v as DataExplorerViewCollection, w as DataExplorerViewItem, x as DataExplorerViewItemShell, y as DataExplorerViewShell, t as DataExplorerViewTree, z as getDataExplorerActionToneClassName, A as getDataExplorerMenuItemToneClassName, B as resolveDataExplorerAppearance } from '../../theme-BsEbXR7C.mjs';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { aJ as DataExplorerDraggableTreeProps } from '../../types-
|
|
4
|
-
export { b as DataExplorerAction, D as DataExplorerActionBarClassNames, a as DataExplorerActionBarProps, c as DataExplorerAppearance, d as DataExplorerBackground, e as DataExplorerBorder, f as DataExplorerButtonClassNames, g as DataExplorerButtonProps, h as DataExplorerCapabilities, aK as DataExplorerCapabilityBucketsConfig, aL as DataExplorerCapabilitySidebarConfig, aM as DataExplorerCapabilityToolbarConfig, aN as DataExplorerCapabilityViewOption, aO as DataExplorerCapabilityViewsConfig, i as DataExplorerCheckboxClassNames, j as DataExplorerCheckboxProps, k as DataExplorerCollectionFooterClassNames, l as DataExplorerCollectionFooterProps, m as DataExplorerControlOption, n as DataExplorerControlTone, o as DataExplorerDensity, p as DataExplorerDetailFieldClassNames, q as DataExplorerDetailFieldDefinition, r as DataExplorerDetailFieldProps, s as DataExplorerDetailNavigation, t as DataExplorerDetailSectionClassNames, u as DataExplorerDetailSectionDefinition, v as DataExplorerDetailSectionProps, w as DataExplorerDetailShellClassNames, x as DataExplorerDetailShellProps, B as DataExplorerDisplayAction, C as DataExplorerDisplayActionContext, E as DataExplorerDisplayActionMenuClassNames, F as DataExplorerDisplayActionMenuProps, G as DataExplorerDisplayBadge, H as DataExplorerDisplayCardClassNames, I as DataExplorerDisplayCardProps, J as DataExplorerDisplayCollectionItemContext, K as DataExplorerDisplayCollectionItemPropsResolver, L as DataExplorerDisplayCollectionViewProps, M as DataExplorerDisplayItem, N as DataExplorerDisplayListItemClassNames, O as DataExplorerDisplayListItemProps, P as DataExplorerDisplayMediaClassNames, Q as DataExplorerDisplayMediaItem, R as DataExplorerDisplayMediaKind, S as DataExplorerDisplayMediaProps, T as DataExplorerDisplayMetadata, aP as DataExplorerDraggableTreeClassNames, aQ as DataExplorerDraggableTreeDragPayload, aR as DataExplorerDraggableTreeFlattenedNode, aS as DataExplorerDraggableTreeLabels, aT as DataExplorerDraggableTreeNode, aU as DataExplorerDraggableTreeRenderContext, y as DataExplorerImagePreviewClassNames, z as DataExplorerImagePreviewNaturalSize, A as DataExplorerImagePreviewProps, a4 as DataExplorerMeasuredGridOptions, U as DataExplorerPageClassNames, V as DataExplorerPageProps, _ as DataExplorerRadius, W as DataExplorerRecordCardClassNames, X as DataExplorerRecordCardProps, Y as DataExplorerResolvedTheme, Z as DataExplorerResolver, $ as DataExplorerSelectClassNames, a0 as DataExplorerSelectProps, aV as DataExplorerShellVariantId, aW as DataExplorerSurfaceConfig, aX as DataExplorerSurfaceId, a1 as DataExplorerThemePresetId, a3 as DataExplorerThemeSlots, a2 as DataExplorerThemeStyles, a5 as DataExplorerToolbarAction, a6 as DataExplorerToolbarActionItem, a7 as DataExplorerToolbarActionKind, a8 as DataExplorerToolbarActionOption, a9 as DataExplorerToolbarActionsClassNames, aa as DataExplorerToolbarActionsLayout, ab as DataExplorerToolbarActionsProps, ac as DataExplorerToolbarShellClassNames, ad as DataExplorerToolbarShellProps, ae as DataExplorerToolbarViewOption, af as DataExplorerTreeClassNames, aj as DataExplorerTreeProps, ag as DataExplorerTreeRenderProps, ah as DataExplorerTreeShellClassNames, ai as DataExplorerTreeShellProps, at as DataExplorerViewClassNames, au as DataExplorerViewCollectionClassNames, av as DataExplorerViewCollectionLayout, aw as DataExplorerViewCollectionOptions, ax as DataExplorerViewCollectionProps, ay as DataExplorerViewDefinition, az as DataExplorerViewId, aB as DataExplorerViewItemDefinition, aD as DataExplorerViewItemProps, aA as DataExplorerViewItemShellClassNames, aC as DataExplorerViewItemShellProps, aE as DataExplorerViewOption, aI as DataExplorerViewProps, aF as DataExplorerViewRenderProps, aG as DataExplorerViewShellClassNames, aH as DataExplorerViewShellProps, ak as DataExplorerViewTreeAction, al as DataExplorerViewTreeActionContext, am as DataExplorerViewTreeClassNames, an as DataExplorerViewTreeEntryType, ao as DataExplorerViewTreeGroup, ap as DataExplorerViewTreeLabels, aq as DataExplorerViewTreeNode, ar as DataExplorerViewTreeProps, as as DataExplorerViewTreeReorderPayload } from '../../types-
|
|
3
|
+
import { aJ as DataExplorerDraggableTreeProps } from '../../types-BFHv0G27.mjs';
|
|
4
|
+
export { b as DataExplorerAction, D as DataExplorerActionBarClassNames, a as DataExplorerActionBarProps, c as DataExplorerAppearance, d as DataExplorerBackground, e as DataExplorerBorder, f as DataExplorerButtonClassNames, g as DataExplorerButtonProps, h as DataExplorerCapabilities, aK as DataExplorerCapabilityBucketsConfig, aL as DataExplorerCapabilitySidebarConfig, aM as DataExplorerCapabilityToolbarConfig, aN as DataExplorerCapabilityViewOption, aO as DataExplorerCapabilityViewsConfig, i as DataExplorerCheckboxClassNames, j as DataExplorerCheckboxProps, k as DataExplorerCollectionFooterClassNames, l as DataExplorerCollectionFooterProps, m as DataExplorerControlOption, n as DataExplorerControlTone, o as DataExplorerDensity, p as DataExplorerDetailFieldClassNames, q as DataExplorerDetailFieldDefinition, r as DataExplorerDetailFieldProps, s as DataExplorerDetailNavigation, t as DataExplorerDetailSectionClassNames, u as DataExplorerDetailSectionDefinition, v as DataExplorerDetailSectionProps, w as DataExplorerDetailShellClassNames, x as DataExplorerDetailShellProps, B as DataExplorerDisplayAction, C as DataExplorerDisplayActionContext, E as DataExplorerDisplayActionMenuClassNames, F as DataExplorerDisplayActionMenuProps, G as DataExplorerDisplayBadge, H as DataExplorerDisplayCardClassNames, I as DataExplorerDisplayCardProps, J as DataExplorerDisplayCollectionItemContext, K as DataExplorerDisplayCollectionItemPropsResolver, L as DataExplorerDisplayCollectionViewProps, M as DataExplorerDisplayItem, N as DataExplorerDisplayListItemClassNames, O as DataExplorerDisplayListItemProps, P as DataExplorerDisplayMediaClassNames, Q as DataExplorerDisplayMediaItem, R as DataExplorerDisplayMediaKind, S as DataExplorerDisplayMediaProps, T as DataExplorerDisplayMetadata, aP as DataExplorerDraggableTreeClassNames, aQ as DataExplorerDraggableTreeDragPayload, aR as DataExplorerDraggableTreeFlattenedNode, aS as DataExplorerDraggableTreeLabels, aT as DataExplorerDraggableTreeNode, aU as DataExplorerDraggableTreeRenderContext, y as DataExplorerImagePreviewClassNames, z as DataExplorerImagePreviewNaturalSize, A as DataExplorerImagePreviewProps, a4 as DataExplorerMeasuredGridOptions, U as DataExplorerPageClassNames, V as DataExplorerPageProps, _ as DataExplorerRadius, W as DataExplorerRecordCardClassNames, X as DataExplorerRecordCardProps, Y as DataExplorerResolvedTheme, Z as DataExplorerResolver, $ as DataExplorerSelectClassNames, a0 as DataExplorerSelectProps, aV as DataExplorerShellVariantId, aW as DataExplorerSurfaceConfig, aX as DataExplorerSurfaceId, a1 as DataExplorerThemePresetId, a3 as DataExplorerThemeSlots, a2 as DataExplorerThemeStyles, a5 as DataExplorerToolbarAction, a6 as DataExplorerToolbarActionItem, a7 as DataExplorerToolbarActionKind, a8 as DataExplorerToolbarActionOption, a9 as DataExplorerToolbarActionsClassNames, aa as DataExplorerToolbarActionsLayout, ab as DataExplorerToolbarActionsProps, ac as DataExplorerToolbarShellClassNames, ad as DataExplorerToolbarShellProps, ae as DataExplorerToolbarViewOption, af as DataExplorerTreeClassNames, aj as DataExplorerTreeProps, ag as DataExplorerTreeRenderProps, ah as DataExplorerTreeShellClassNames, ai as DataExplorerTreeShellProps, at as DataExplorerViewClassNames, au as DataExplorerViewCollectionClassNames, av as DataExplorerViewCollectionLayout, aw as DataExplorerViewCollectionOptions, ax as DataExplorerViewCollectionProps, ay as DataExplorerViewDefinition, az as DataExplorerViewId, aB as DataExplorerViewItemDefinition, aD as DataExplorerViewItemProps, aA as DataExplorerViewItemShellClassNames, aC as DataExplorerViewItemShellProps, aE as DataExplorerViewOption, aI as DataExplorerViewProps, aF as DataExplorerViewRenderProps, aG as DataExplorerViewShellClassNames, aH as DataExplorerViewShellProps, ak as DataExplorerViewTreeAction, al as DataExplorerViewTreeActionContext, am as DataExplorerViewTreeClassNames, an as DataExplorerViewTreeEntryType, ao as DataExplorerViewTreeGroup, ap as DataExplorerViewTreeLabels, aq as DataExplorerViewTreeNode, ar as DataExplorerViewTreeProps, as as DataExplorerViewTreeReorderPayload } from '../../types-BFHv0G27.mjs';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
7
|
-
declare function DataExplorerDraggableTree<TSource = unknown, TContext = unknown>({ nodes, context, selectedNodeId, expandedNodeIds, defaultExpandedNodeIds, resetExpansionKey, indentSize, activationMode, loading, empty, labels, appearance, className, classNames, renderNodeActions, renderNodeChildren, onSelectNode, onExpandedNodeIdsChange, onDragEnd, }: DataExplorerDraggableTreeProps<TSource, TContext>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function DataExplorerDraggableTree<TSource = unknown, TContext = unknown>({ nodes, context, selectedNodeId, expandedNodeIds, defaultExpandedNodeIds, resetExpansionKey, indentSize, activationMode, loading, empty, labels, appearance, itemRadius, className, classNames, renderNodeActions, renderNodeChildren, onSelectNode, onExpandedNodeIdsChange, onDragEnd, }: DataExplorerDraggableTreeProps<TSource, TContext>): react_jsx_runtime.JSX.Element;
|
|
8
8
|
|
|
9
9
|
export { DataExplorerDraggableTree, DataExplorerDraggableTreeProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { D as DataExplorerActionBar, a as DataExplorerButton, b as DataExplorerCheckbox, c as DataExplorerCollectionFooter, f as DataExplorerDetailField, g as DataExplorerDetailSection, h as DataExplorerDetailShell, i as DataExplorerDisplayActionMenu, j as DataExplorerDisplayCard, k as DataExplorerDisplayCollectionView, l as DataExplorerDisplayListItem, m as DataExplorerDisplayMedia, n as DataExplorerImagePreview, o as DataExplorerPage, p as DataExplorerRecordCard, d as DataExplorerSelect, e as DataExplorerToolbarActions, q as DataExplorerToolbarShell, r as DataExplorerTree, s as DataExplorerTreeShell, u as DataExplorerView, v as DataExplorerViewCollection, w as DataExplorerViewItem, x as DataExplorerViewItemShell, y as DataExplorerViewShell, t as DataExplorerViewTree, z as getDataExplorerActionToneClassName, A as getDataExplorerMenuItemToneClassName, B as resolveDataExplorerAppearance } from '../../theme-
|
|
1
|
+
export { D as DataExplorerActionBar, a as DataExplorerButton, b as DataExplorerCheckbox, c as DataExplorerCollectionFooter, f as DataExplorerDetailField, g as DataExplorerDetailSection, h as DataExplorerDetailShell, i as DataExplorerDisplayActionMenu, j as DataExplorerDisplayCard, k as DataExplorerDisplayCollectionView, l as DataExplorerDisplayListItem, m as DataExplorerDisplayMedia, n as DataExplorerImagePreview, o as DataExplorerPage, p as DataExplorerRecordCard, d as DataExplorerSelect, e as DataExplorerToolbarActions, q as DataExplorerToolbarShell, r as DataExplorerTree, s as DataExplorerTreeShell, u as DataExplorerView, v as DataExplorerViewCollection, w as DataExplorerViewItem, x as DataExplorerViewItemShell, y as DataExplorerViewShell, t as DataExplorerViewTree, z as getDataExplorerActionToneClassName, A as getDataExplorerMenuItemToneClassName, B as resolveDataExplorerAppearance } from '../../theme-6n0A9kRO.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { aJ as DataExplorerDraggableTreeProps } from '../../types-
|
|
4
|
-
export { b as DataExplorerAction, D as DataExplorerActionBarClassNames, a as DataExplorerActionBarProps, c as DataExplorerAppearance, d as DataExplorerBackground, e as DataExplorerBorder, f as DataExplorerButtonClassNames, g as DataExplorerButtonProps, h as DataExplorerCapabilities, aK as DataExplorerCapabilityBucketsConfig, aL as DataExplorerCapabilitySidebarConfig, aM as DataExplorerCapabilityToolbarConfig, aN as DataExplorerCapabilityViewOption, aO as DataExplorerCapabilityViewsConfig, i as DataExplorerCheckboxClassNames, j as DataExplorerCheckboxProps, k as DataExplorerCollectionFooterClassNames, l as DataExplorerCollectionFooterProps, m as DataExplorerControlOption, n as DataExplorerControlTone, o as DataExplorerDensity, p as DataExplorerDetailFieldClassNames, q as DataExplorerDetailFieldDefinition, r as DataExplorerDetailFieldProps, s as DataExplorerDetailNavigation, t as DataExplorerDetailSectionClassNames, u as DataExplorerDetailSectionDefinition, v as DataExplorerDetailSectionProps, w as DataExplorerDetailShellClassNames, x as DataExplorerDetailShellProps, B as DataExplorerDisplayAction, C as DataExplorerDisplayActionContext, E as DataExplorerDisplayActionMenuClassNames, F as DataExplorerDisplayActionMenuProps, G as DataExplorerDisplayBadge, H as DataExplorerDisplayCardClassNames, I as DataExplorerDisplayCardProps, J as DataExplorerDisplayCollectionItemContext, K as DataExplorerDisplayCollectionItemPropsResolver, L as DataExplorerDisplayCollectionViewProps, M as DataExplorerDisplayItem, N as DataExplorerDisplayListItemClassNames, O as DataExplorerDisplayListItemProps, P as DataExplorerDisplayMediaClassNames, Q as DataExplorerDisplayMediaItem, R as DataExplorerDisplayMediaKind, S as DataExplorerDisplayMediaProps, T as DataExplorerDisplayMetadata, aP as DataExplorerDraggableTreeClassNames, aQ as DataExplorerDraggableTreeDragPayload, aR as DataExplorerDraggableTreeFlattenedNode, aS as DataExplorerDraggableTreeLabels, aT as DataExplorerDraggableTreeNode, aU as DataExplorerDraggableTreeRenderContext, y as DataExplorerImagePreviewClassNames, z as DataExplorerImagePreviewNaturalSize, A as DataExplorerImagePreviewProps, a4 as DataExplorerMeasuredGridOptions, U as DataExplorerPageClassNames, V as DataExplorerPageProps, _ as DataExplorerRadius, W as DataExplorerRecordCardClassNames, X as DataExplorerRecordCardProps, Y as DataExplorerResolvedTheme, Z as DataExplorerResolver, $ as DataExplorerSelectClassNames, a0 as DataExplorerSelectProps, aV as DataExplorerShellVariantId, aW as DataExplorerSurfaceConfig, aX as DataExplorerSurfaceId, a1 as DataExplorerThemePresetId, a3 as DataExplorerThemeSlots, a2 as DataExplorerThemeStyles, a5 as DataExplorerToolbarAction, a6 as DataExplorerToolbarActionItem, a7 as DataExplorerToolbarActionKind, a8 as DataExplorerToolbarActionOption, a9 as DataExplorerToolbarActionsClassNames, aa as DataExplorerToolbarActionsLayout, ab as DataExplorerToolbarActionsProps, ac as DataExplorerToolbarShellClassNames, ad as DataExplorerToolbarShellProps, ae as DataExplorerToolbarViewOption, af as DataExplorerTreeClassNames, aj as DataExplorerTreeProps, ag as DataExplorerTreeRenderProps, ah as DataExplorerTreeShellClassNames, ai as DataExplorerTreeShellProps, at as DataExplorerViewClassNames, au as DataExplorerViewCollectionClassNames, av as DataExplorerViewCollectionLayout, aw as DataExplorerViewCollectionOptions, ax as DataExplorerViewCollectionProps, ay as DataExplorerViewDefinition, az as DataExplorerViewId, aB as DataExplorerViewItemDefinition, aD as DataExplorerViewItemProps, aA as DataExplorerViewItemShellClassNames, aC as DataExplorerViewItemShellProps, aE as DataExplorerViewOption, aI as DataExplorerViewProps, aF as DataExplorerViewRenderProps, aG as DataExplorerViewShellClassNames, aH as DataExplorerViewShellProps, ak as DataExplorerViewTreeAction, al as DataExplorerViewTreeActionContext, am as DataExplorerViewTreeClassNames, an as DataExplorerViewTreeEntryType, ao as DataExplorerViewTreeGroup, ap as DataExplorerViewTreeLabels, aq as DataExplorerViewTreeNode, ar as DataExplorerViewTreeProps, as as DataExplorerViewTreeReorderPayload } from '../../types-
|
|
3
|
+
import { aJ as DataExplorerDraggableTreeProps } from '../../types-BFHv0G27.js';
|
|
4
|
+
export { b as DataExplorerAction, D as DataExplorerActionBarClassNames, a as DataExplorerActionBarProps, c as DataExplorerAppearance, d as DataExplorerBackground, e as DataExplorerBorder, f as DataExplorerButtonClassNames, g as DataExplorerButtonProps, h as DataExplorerCapabilities, aK as DataExplorerCapabilityBucketsConfig, aL as DataExplorerCapabilitySidebarConfig, aM as DataExplorerCapabilityToolbarConfig, aN as DataExplorerCapabilityViewOption, aO as DataExplorerCapabilityViewsConfig, i as DataExplorerCheckboxClassNames, j as DataExplorerCheckboxProps, k as DataExplorerCollectionFooterClassNames, l as DataExplorerCollectionFooterProps, m as DataExplorerControlOption, n as DataExplorerControlTone, o as DataExplorerDensity, p as DataExplorerDetailFieldClassNames, q as DataExplorerDetailFieldDefinition, r as DataExplorerDetailFieldProps, s as DataExplorerDetailNavigation, t as DataExplorerDetailSectionClassNames, u as DataExplorerDetailSectionDefinition, v as DataExplorerDetailSectionProps, w as DataExplorerDetailShellClassNames, x as DataExplorerDetailShellProps, B as DataExplorerDisplayAction, C as DataExplorerDisplayActionContext, E as DataExplorerDisplayActionMenuClassNames, F as DataExplorerDisplayActionMenuProps, G as DataExplorerDisplayBadge, H as DataExplorerDisplayCardClassNames, I as DataExplorerDisplayCardProps, J as DataExplorerDisplayCollectionItemContext, K as DataExplorerDisplayCollectionItemPropsResolver, L as DataExplorerDisplayCollectionViewProps, M as DataExplorerDisplayItem, N as DataExplorerDisplayListItemClassNames, O as DataExplorerDisplayListItemProps, P as DataExplorerDisplayMediaClassNames, Q as DataExplorerDisplayMediaItem, R as DataExplorerDisplayMediaKind, S as DataExplorerDisplayMediaProps, T as DataExplorerDisplayMetadata, aP as DataExplorerDraggableTreeClassNames, aQ as DataExplorerDraggableTreeDragPayload, aR as DataExplorerDraggableTreeFlattenedNode, aS as DataExplorerDraggableTreeLabels, aT as DataExplorerDraggableTreeNode, aU as DataExplorerDraggableTreeRenderContext, y as DataExplorerImagePreviewClassNames, z as DataExplorerImagePreviewNaturalSize, A as DataExplorerImagePreviewProps, a4 as DataExplorerMeasuredGridOptions, U as DataExplorerPageClassNames, V as DataExplorerPageProps, _ as DataExplorerRadius, W as DataExplorerRecordCardClassNames, X as DataExplorerRecordCardProps, Y as DataExplorerResolvedTheme, Z as DataExplorerResolver, $ as DataExplorerSelectClassNames, a0 as DataExplorerSelectProps, aV as DataExplorerShellVariantId, aW as DataExplorerSurfaceConfig, aX as DataExplorerSurfaceId, a1 as DataExplorerThemePresetId, a3 as DataExplorerThemeSlots, a2 as DataExplorerThemeStyles, a5 as DataExplorerToolbarAction, a6 as DataExplorerToolbarActionItem, a7 as DataExplorerToolbarActionKind, a8 as DataExplorerToolbarActionOption, a9 as DataExplorerToolbarActionsClassNames, aa as DataExplorerToolbarActionsLayout, ab as DataExplorerToolbarActionsProps, ac as DataExplorerToolbarShellClassNames, ad as DataExplorerToolbarShellProps, ae as DataExplorerToolbarViewOption, af as DataExplorerTreeClassNames, aj as DataExplorerTreeProps, ag as DataExplorerTreeRenderProps, ah as DataExplorerTreeShellClassNames, ai as DataExplorerTreeShellProps, at as DataExplorerViewClassNames, au as DataExplorerViewCollectionClassNames, av as DataExplorerViewCollectionLayout, aw as DataExplorerViewCollectionOptions, ax as DataExplorerViewCollectionProps, ay as DataExplorerViewDefinition, az as DataExplorerViewId, aB as DataExplorerViewItemDefinition, aD as DataExplorerViewItemProps, aA as DataExplorerViewItemShellClassNames, aC as DataExplorerViewItemShellProps, aE as DataExplorerViewOption, aI as DataExplorerViewProps, aF as DataExplorerViewRenderProps, aG as DataExplorerViewShellClassNames, aH as DataExplorerViewShellProps, ak as DataExplorerViewTreeAction, al as DataExplorerViewTreeActionContext, am as DataExplorerViewTreeClassNames, an as DataExplorerViewTreeEntryType, ao as DataExplorerViewTreeGroup, ap as DataExplorerViewTreeLabels, aq as DataExplorerViewTreeNode, ar as DataExplorerViewTreeProps, as as DataExplorerViewTreeReorderPayload } from '../../types-BFHv0G27.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
7
|
-
declare function DataExplorerDraggableTree<TSource = unknown, TContext = unknown>({ nodes, context, selectedNodeId, expandedNodeIds, defaultExpandedNodeIds, resetExpansionKey, indentSize, activationMode, loading, empty, labels, appearance, className, classNames, renderNodeActions, renderNodeChildren, onSelectNode, onExpandedNodeIdsChange, onDragEnd, }: DataExplorerDraggableTreeProps<TSource, TContext>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function DataExplorerDraggableTree<TSource = unknown, TContext = unknown>({ nodes, context, selectedNodeId, expandedNodeIds, defaultExpandedNodeIds, resetExpansionKey, indentSize, activationMode, loading, empty, labels, appearance, itemRadius, className, classNames, renderNodeActions, renderNodeChildren, onSelectNode, onExpandedNodeIdsChange, onDragEnd, }: DataExplorerDraggableTreeProps<TSource, TContext>): react_jsx_runtime.JSX.Element;
|
|
8
8
|
|
|
9
9
|
export { DataExplorerDraggableTree, DataExplorerDraggableTreeProps };
|
|
@@ -1693,11 +1693,30 @@ function DataExplorerDetailShell({
|
|
|
1693
1693
|
}
|
|
1694
1694
|
);
|
|
1695
1695
|
}
|
|
1696
|
-
var treeItemDropTransition =
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1696
|
+
var treeItemDropTransition = {
|
|
1697
|
+
duration: 220,
|
|
1698
|
+
easing: "cubic-bezier(0.22, 1, 0.36, 1)"
|
|
1699
|
+
};
|
|
1700
|
+
var treeItemAnimateLayoutChanges = (args) => {
|
|
1701
|
+
if (args.isSorting) return true;
|
|
1702
|
+
if (args.wasDragging && args.transition && args.containerId === args.previousContainerId) {
|
|
1703
|
+
return true;
|
|
1704
|
+
}
|
|
1705
|
+
return sortable.defaultAnimateLayoutChanges(args);
|
|
1706
|
+
};
|
|
1707
|
+
var treeItemRadiusValues = {
|
|
1708
|
+
none: "0px",
|
|
1709
|
+
sm: "0.125rem",
|
|
1710
|
+
md: "0.375rem",
|
|
1711
|
+
lg: "0.5rem",
|
|
1712
|
+
xl: "0.75rem",
|
|
1713
|
+
full: "9999px"
|
|
1714
|
+
};
|
|
1715
|
+
function resolveTreeItemBorderRadius(itemRadius, appearanceRadius) {
|
|
1716
|
+
const radius = itemRadius ?? appearanceRadius;
|
|
1717
|
+
if (typeof radius === "number") return `${radius}px`;
|
|
1718
|
+
if (!radius) return void 0;
|
|
1719
|
+
return treeItemRadiusValues[radius] ?? radius;
|
|
1701
1720
|
}
|
|
1702
1721
|
function ChevronIcon({ expanded }) {
|
|
1703
1722
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1780,6 +1799,7 @@ function DraggableTreeItem({
|
|
|
1780
1799
|
collapseLabel,
|
|
1781
1800
|
themeSlots,
|
|
1782
1801
|
classNames,
|
|
1802
|
+
itemStyle,
|
|
1783
1803
|
context,
|
|
1784
1804
|
renderNodeActions,
|
|
1785
1805
|
renderNodeChildren,
|
|
@@ -1801,10 +1821,8 @@ function DraggableTreeItem({
|
|
|
1801
1821
|
} = sortable.useSortable({
|
|
1802
1822
|
id: node.id,
|
|
1803
1823
|
disabled: !draggable,
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
easing: "cubic-bezier(0.22,1,0.36,1)"
|
|
1807
|
-
}
|
|
1824
|
+
animateLayoutChanges: treeItemAnimateLayoutChanges,
|
|
1825
|
+
transition: treeItemDropTransition
|
|
1808
1826
|
});
|
|
1809
1827
|
const {
|
|
1810
1828
|
role: _sortableRole,
|
|
@@ -1825,7 +1843,7 @@ function DraggableTreeItem({
|
|
|
1825
1843
|
};
|
|
1826
1844
|
const style = {
|
|
1827
1845
|
transform: utilities.CSS.Transform.toString(transform),
|
|
1828
|
-
transition
|
|
1846
|
+
transition
|
|
1829
1847
|
};
|
|
1830
1848
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1831
1849
|
"div",
|
|
@@ -1836,104 +1854,39 @@ function DraggableTreeItem({
|
|
|
1836
1854
|
"min-w-0",
|
|
1837
1855
|
classNames?.item,
|
|
1838
1856
|
node.className,
|
|
1839
|
-
isDragging && "relative z-20"
|
|
1857
|
+
isDragging && "relative z-20",
|
|
1858
|
+
active && "opacity-0"
|
|
1840
1859
|
),
|
|
1841
1860
|
children: [
|
|
1842
|
-
/* @__PURE__ */ jsxRuntime.
|
|
1843
|
-
|
|
1861
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1862
|
+
TreeItemRow,
|
|
1844
1863
|
{
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
onClick: () => {
|
|
1872
|
-
if (!selectable) return;
|
|
1873
|
-
onSelect?.(node);
|
|
1874
|
-
},
|
|
1875
|
-
onKeyDown: (event) => {
|
|
1876
|
-
if (!selectable) return;
|
|
1877
|
-
if (event.key !== "Enter" && event.key !== " ") return;
|
|
1878
|
-
event.preventDefault();
|
|
1879
|
-
onSelect?.(node);
|
|
1880
|
-
},
|
|
1881
|
-
children: [
|
|
1882
|
-
draggable ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1883
|
-
"span",
|
|
1884
|
-
{
|
|
1885
|
-
className: cn(
|
|
1886
|
-
themeSlots.treeNodeDragHandle,
|
|
1887
|
-
"opacity-100",
|
|
1888
|
-
classNames?.dragHandle
|
|
1889
|
-
),
|
|
1890
|
-
"aria-label": dragHandleLabel,
|
|
1891
|
-
title: dragHandleLabel,
|
|
1892
|
-
...handleListeners,
|
|
1893
|
-
onClick: (event) => event.stopPropagation(),
|
|
1894
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(GripIcon, {})
|
|
1895
|
-
}
|
|
1896
|
-
) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("h-5 w-5 shrink-0", classNames?.dragHandle) }),
|
|
1897
|
-
hasChildren ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1898
|
-
"button",
|
|
1899
|
-
{
|
|
1900
|
-
type: "button",
|
|
1901
|
-
className: cn(themeSlots.treeNodeToggle, classNames?.toggle),
|
|
1902
|
-
"aria-label": expanded ? collapseLabel : expandLabel,
|
|
1903
|
-
onClick: (event) => {
|
|
1904
|
-
event.stopPropagation();
|
|
1905
|
-
onToggle(node.id);
|
|
1906
|
-
},
|
|
1907
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ChevronIcon, { expanded })
|
|
1908
|
-
}
|
|
1909
|
-
) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(themeSlots.treeNodeToggle, classNames?.toggle) }),
|
|
1910
|
-
node.icon ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(themeSlots.treeNodeIcon, classNames?.icon), children: node.icon }) : null,
|
|
1911
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1912
|
-
"span",
|
|
1913
|
-
{
|
|
1914
|
-
className: cn(
|
|
1915
|
-
"flex min-w-0 flex-1 flex-col",
|
|
1916
|
-
classNames?.itemContent
|
|
1917
|
-
),
|
|
1918
|
-
children: [
|
|
1919
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(themeSlots.treeNodeLabel, classNames?.label), children: node.label }),
|
|
1920
|
-
node.description ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1921
|
-
"span",
|
|
1922
|
-
{
|
|
1923
|
-
className: cn(
|
|
1924
|
-
themeSlots.treeNodeDescription,
|
|
1925
|
-
classNames?.description
|
|
1926
|
-
),
|
|
1927
|
-
children: node.description
|
|
1928
|
-
}
|
|
1929
|
-
) : null
|
|
1930
|
-
]
|
|
1931
|
-
}
|
|
1932
|
-
),
|
|
1933
|
-
node.meta ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(themeSlots.treeNodeMeta, classNames?.meta), children: node.meta }) : null,
|
|
1934
|
-
node.badge ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(themeSlots.treeNodeBadge, classNames?.badge), children: node.badge }) : null,
|
|
1935
|
-
renderNodeActions ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("ml-1 shrink-0", classNames?.actions), children: renderNodeActions(renderContext) }) : null
|
|
1936
|
-
]
|
|
1864
|
+
node,
|
|
1865
|
+
depth,
|
|
1866
|
+
indentSize,
|
|
1867
|
+
selected,
|
|
1868
|
+
expanded,
|
|
1869
|
+
active: isDragging || active,
|
|
1870
|
+
over,
|
|
1871
|
+
hasChildren,
|
|
1872
|
+
disabled,
|
|
1873
|
+
selectable,
|
|
1874
|
+
draggable,
|
|
1875
|
+
activationMode,
|
|
1876
|
+
dragHandleLabel,
|
|
1877
|
+
expandLabel,
|
|
1878
|
+
collapseLabel,
|
|
1879
|
+
themeSlots,
|
|
1880
|
+
classNames,
|
|
1881
|
+
itemClassName: node.itemClassName,
|
|
1882
|
+
itemStyle,
|
|
1883
|
+
sortableAttributes,
|
|
1884
|
+
sortableListeners,
|
|
1885
|
+
handleListeners,
|
|
1886
|
+
renderNodeActions,
|
|
1887
|
+
renderContext,
|
|
1888
|
+
onSelect: () => onSelect?.(node),
|
|
1889
|
+
onToggle: () => onToggle(node.id)
|
|
1937
1890
|
}
|
|
1938
1891
|
),
|
|
1939
1892
|
renderNodeChildren ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1951,6 +1904,132 @@ function DraggableTreeItem({
|
|
|
1951
1904
|
}
|
|
1952
1905
|
);
|
|
1953
1906
|
}
|
|
1907
|
+
function TreeItemRow({
|
|
1908
|
+
node,
|
|
1909
|
+
depth,
|
|
1910
|
+
indentSize,
|
|
1911
|
+
selected,
|
|
1912
|
+
expanded,
|
|
1913
|
+
active,
|
|
1914
|
+
over,
|
|
1915
|
+
hasChildren,
|
|
1916
|
+
disabled,
|
|
1917
|
+
selectable,
|
|
1918
|
+
draggable,
|
|
1919
|
+
activationMode,
|
|
1920
|
+
dragHandleLabel,
|
|
1921
|
+
expandLabel,
|
|
1922
|
+
collapseLabel,
|
|
1923
|
+
themeSlots,
|
|
1924
|
+
classNames,
|
|
1925
|
+
itemClassName,
|
|
1926
|
+
itemStyle,
|
|
1927
|
+
sortableAttributes,
|
|
1928
|
+
sortableListeners,
|
|
1929
|
+
handleListeners,
|
|
1930
|
+
renderNodeActions,
|
|
1931
|
+
renderContext,
|
|
1932
|
+
onSelect,
|
|
1933
|
+
onToggle
|
|
1934
|
+
}) {
|
|
1935
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1936
|
+
"div",
|
|
1937
|
+
{
|
|
1938
|
+
"data-data-explorer-draggable-tree-item": true,
|
|
1939
|
+
className: cn(
|
|
1940
|
+
themeSlots.treeNodeButton,
|
|
1941
|
+
"min-h-8 touch-none border border-transparent bg-background/70 py-0 pl-1 pr-2 font-medium",
|
|
1942
|
+
selectable && "cursor-pointer",
|
|
1943
|
+
draggable && activationMode === "row" && "cursor-grab active:cursor-grabbing",
|
|
1944
|
+
selected && themeSlots.treeNodeSelected,
|
|
1945
|
+
disabled && themeSlots.treeNodeDisabled,
|
|
1946
|
+
active && themeSlots.treeNodeDragging,
|
|
1947
|
+
over && "border-primary/30 bg-primary/[0.08] ring-1 ring-primary/15",
|
|
1948
|
+
selected && classNames?.itemSelected,
|
|
1949
|
+
disabled && classNames?.itemDisabled,
|
|
1950
|
+
active && classNames?.itemDragging,
|
|
1951
|
+
over && classNames?.itemOver,
|
|
1952
|
+
classNames?.itemButton,
|
|
1953
|
+
itemClassName
|
|
1954
|
+
),
|
|
1955
|
+
style: { ...itemStyle, paddingLeft: `${depth * indentSize + 4}px` },
|
|
1956
|
+
role: "treeitem",
|
|
1957
|
+
"aria-selected": selected || void 0,
|
|
1958
|
+
"aria-disabled": disabled || void 0,
|
|
1959
|
+
"aria-expanded": hasChildren ? expanded : void 0,
|
|
1960
|
+
"aria-label": node.ariaLabel,
|
|
1961
|
+
tabIndex: selectable ? 0 : -1,
|
|
1962
|
+
...sortableAttributes,
|
|
1963
|
+
...sortableListeners,
|
|
1964
|
+
onClick: () => {
|
|
1965
|
+
if (!selectable) return;
|
|
1966
|
+
onSelect?.();
|
|
1967
|
+
},
|
|
1968
|
+
onKeyDown: (event) => {
|
|
1969
|
+
if (!selectable) return;
|
|
1970
|
+
if (event.key !== "Enter" && event.key !== " ") return;
|
|
1971
|
+
event.preventDefault();
|
|
1972
|
+
onSelect?.();
|
|
1973
|
+
},
|
|
1974
|
+
children: [
|
|
1975
|
+
draggable ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1976
|
+
"span",
|
|
1977
|
+
{
|
|
1978
|
+
className: cn(
|
|
1979
|
+
themeSlots.treeNodeDragHandle,
|
|
1980
|
+
"opacity-100",
|
|
1981
|
+
classNames?.dragHandle
|
|
1982
|
+
),
|
|
1983
|
+
"aria-label": dragHandleLabel,
|
|
1984
|
+
title: dragHandleLabel,
|
|
1985
|
+
...handleListeners,
|
|
1986
|
+
onClick: (event) => event.stopPropagation(),
|
|
1987
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(GripIcon, {})
|
|
1988
|
+
}
|
|
1989
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("h-5 w-5 shrink-0", classNames?.dragHandle) }),
|
|
1990
|
+
hasChildren ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1991
|
+
"button",
|
|
1992
|
+
{
|
|
1993
|
+
type: "button",
|
|
1994
|
+
className: cn(themeSlots.treeNodeToggle, classNames?.toggle),
|
|
1995
|
+
"aria-label": expanded ? collapseLabel : expandLabel,
|
|
1996
|
+
onClick: (event) => {
|
|
1997
|
+
event.stopPropagation();
|
|
1998
|
+
onToggle?.();
|
|
1999
|
+
},
|
|
2000
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ChevronIcon, { expanded })
|
|
2001
|
+
}
|
|
2002
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(themeSlots.treeNodeToggle, classNames?.toggle) }),
|
|
2003
|
+
node.icon ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(themeSlots.treeNodeIcon, classNames?.icon), children: node.icon }) : null,
|
|
2004
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2005
|
+
"span",
|
|
2006
|
+
{
|
|
2007
|
+
className: cn(
|
|
2008
|
+
"flex min-w-0 flex-1 flex-col",
|
|
2009
|
+
classNames?.itemContent
|
|
2010
|
+
),
|
|
2011
|
+
children: [
|
|
2012
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(themeSlots.treeNodeLabel, classNames?.label), children: node.label }),
|
|
2013
|
+
node.description ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2014
|
+
"span",
|
|
2015
|
+
{
|
|
2016
|
+
className: cn(
|
|
2017
|
+
themeSlots.treeNodeDescription,
|
|
2018
|
+
classNames?.description
|
|
2019
|
+
),
|
|
2020
|
+
children: node.description
|
|
2021
|
+
}
|
|
2022
|
+
) : null
|
|
2023
|
+
]
|
|
2024
|
+
}
|
|
2025
|
+
),
|
|
2026
|
+
node.meta ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(themeSlots.treeNodeMeta, classNames?.meta), children: node.meta }) : null,
|
|
2027
|
+
node.badge ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(themeSlots.treeNodeBadge, classNames?.badge), children: node.badge }) : null,
|
|
2028
|
+
renderNodeActions ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("ml-1 shrink-0", classNames?.actions), children: renderNodeActions(renderContext) }) : null
|
|
2029
|
+
]
|
|
2030
|
+
}
|
|
2031
|
+
);
|
|
2032
|
+
}
|
|
1954
2033
|
function DataExplorerDraggableTree({
|
|
1955
2034
|
nodes,
|
|
1956
2035
|
context,
|
|
@@ -1964,6 +2043,7 @@ function DataExplorerDraggableTree({
|
|
|
1964
2043
|
empty,
|
|
1965
2044
|
labels,
|
|
1966
2045
|
appearance,
|
|
2046
|
+
itemRadius,
|
|
1967
2047
|
className,
|
|
1968
2048
|
classNames,
|
|
1969
2049
|
renderNodeActions,
|
|
@@ -1977,7 +2057,14 @@ function DataExplorerDraggableTree({
|
|
|
1977
2057
|
() => buildDefaultExpandedNodeIds(nodes, defaultExpandedNodeIds)
|
|
1978
2058
|
);
|
|
1979
2059
|
const [activeNodeId, setActiveNodeId] = react.useState();
|
|
2060
|
+
const [activeNodeWidth, setActiveNodeWidth] = react.useState();
|
|
1980
2061
|
const [overNodeId, setOverNodeId] = react.useState();
|
|
2062
|
+
const itemBorderRadius = resolveTreeItemBorderRadius(itemRadius, theme.radius);
|
|
2063
|
+
const itemStyle = itemBorderRadius ? { borderRadius: itemBorderRadius } : void 0;
|
|
2064
|
+
const overlayStyle = {
|
|
2065
|
+
width: activeNodeWidth,
|
|
2066
|
+
borderRadius: itemBorderRadius
|
|
2067
|
+
};
|
|
1981
2068
|
const sensors = core.useSensors(
|
|
1982
2069
|
core.useSensor(core.PointerSensor, { activationConstraint: { distance: 4 } }),
|
|
1983
2070
|
core.useSensor(core.KeyboardSensor, { coordinateGetter: sortable.sortableKeyboardCoordinates })
|
|
@@ -1997,6 +2084,7 @@ function DataExplorerDraggableTree({
|
|
|
1997
2084
|
for (const entry of flattenedNodes) map.set(entry.node.id, entry);
|
|
1998
2085
|
return map;
|
|
1999
2086
|
}, [flattenedNodes]);
|
|
2087
|
+
const activeEntry = activeNodeId ? flattenedNodeMap.get(activeNodeId) : void 0;
|
|
2000
2088
|
const sortableIds = flattenedNodes.map((entry) => entry.node.id);
|
|
2001
2089
|
const setNodeExpanded = (nodeId, expanded) => {
|
|
2002
2090
|
const next = new Set(resolvedExpandedNodeIds);
|
|
@@ -2014,19 +2102,20 @@ function DataExplorerDraggableTree({
|
|
|
2014
2102
|
const activeId = String(event.active.id || "");
|
|
2015
2103
|
const overId = event.over ? String(event.over.id || "") : "";
|
|
2016
2104
|
setActiveNodeId(void 0);
|
|
2105
|
+
setActiveNodeWidth(void 0);
|
|
2017
2106
|
setOverNodeId(void 0);
|
|
2018
2107
|
if (!activeId || !overId || activeId === overId || !onDragEnd) return;
|
|
2019
|
-
const
|
|
2108
|
+
const activeEntry2 = flattenedNodeMap.get(activeId);
|
|
2020
2109
|
const overEntry = flattenedNodeMap.get(overId);
|
|
2021
|
-
if (!
|
|
2110
|
+
if (!activeEntry2 || !overEntry) return;
|
|
2022
2111
|
const payload = {
|
|
2023
|
-
activeNode:
|
|
2112
|
+
activeNode: activeEntry2.node,
|
|
2024
2113
|
overNode: overEntry.node,
|
|
2025
|
-
activeParentId:
|
|
2114
|
+
activeParentId: activeEntry2.parentId,
|
|
2026
2115
|
overParentId: overEntry.parentId,
|
|
2027
|
-
activeIndex:
|
|
2116
|
+
activeIndex: activeEntry2.index,
|
|
2028
2117
|
overIndex: overEntry.index,
|
|
2029
|
-
sameParent:
|
|
2118
|
+
sameParent: activeEntry2.parentId === overEntry.parentId,
|
|
2030
2119
|
context
|
|
2031
2120
|
};
|
|
2032
2121
|
void onDragEnd(payload);
|
|
@@ -2037,59 +2126,116 @@ function DataExplorerDraggableTree({
|
|
|
2037
2126
|
if (nodes.length === 0) {
|
|
2038
2127
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(theme.slots.treeRoot, classNames?.root, className), children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(theme.slots.treeEmpty, classNames?.empty), children: empty ?? labels?.empty ?? "No data" }) });
|
|
2039
2128
|
}
|
|
2040
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
2129
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2041
2130
|
core.DndContext,
|
|
2042
2131
|
{
|
|
2043
2132
|
sensors,
|
|
2044
2133
|
collisionDetection: core.closestCenter,
|
|
2045
|
-
onDragStart: (event) =>
|
|
2134
|
+
onDragStart: (event) => {
|
|
2135
|
+
setActiveNodeId(String(event.active.id || ""));
|
|
2136
|
+
setActiveNodeWidth(event.active.rect.current.initial?.width);
|
|
2137
|
+
},
|
|
2046
2138
|
onDragOver: (event) => {
|
|
2047
2139
|
setOverNodeId(event.over ? String(event.over.id || "") : void 0);
|
|
2048
2140
|
},
|
|
2049
2141
|
onDragEnd: handleDragEnd,
|
|
2050
2142
|
onDragCancel: () => {
|
|
2051
2143
|
setActiveNodeId(void 0);
|
|
2144
|
+
setActiveNodeWidth(void 0);
|
|
2052
2145
|
setOverNodeId(void 0);
|
|
2053
2146
|
},
|
|
2054
|
-
children:
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2147
|
+
children: [
|
|
2148
|
+
/* @__PURE__ */ jsxRuntime.jsx(sortable.SortableContext, { items: sortableIds, strategy: sortable.verticalListSortingStrategy, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2149
|
+
"div",
|
|
2150
|
+
{
|
|
2151
|
+
className: cn(
|
|
2152
|
+
theme.slots.treeRoot,
|
|
2153
|
+
"space-y-1 overflow-visible",
|
|
2154
|
+
classNames?.root,
|
|
2155
|
+
className
|
|
2156
|
+
),
|
|
2157
|
+
role: "tree",
|
|
2158
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("min-w-0 space-y-1", classNames?.list), children: flattenedNodes.map((entry) => {
|
|
2159
|
+
const node = entry.node;
|
|
2160
|
+
const expanded = node.collapsible === false || resolvedExpandedNodeIds.has(node.id);
|
|
2161
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2162
|
+
DraggableTreeItem,
|
|
2163
|
+
{
|
|
2164
|
+
entry,
|
|
2165
|
+
selected: selectedNodeId === node.id,
|
|
2166
|
+
expanded,
|
|
2167
|
+
active: activeNodeId === node.id,
|
|
2168
|
+
over: overNodeId === node.id && activeNodeId !== node.id,
|
|
2169
|
+
indentSize,
|
|
2170
|
+
activationMode,
|
|
2171
|
+
dragHandleLabel: labels?.dragHandle ?? "Drag",
|
|
2172
|
+
expandLabel: labels?.expand ?? "Expand",
|
|
2173
|
+
collapseLabel: labels?.collapse ?? "Collapse",
|
|
2174
|
+
themeSlots: theme.slots,
|
|
2175
|
+
classNames,
|
|
2176
|
+
itemStyle,
|
|
2177
|
+
context,
|
|
2178
|
+
renderNodeActions,
|
|
2179
|
+
renderNodeChildren,
|
|
2180
|
+
onSelect: (nextNode) => onSelectNode?.(nextNode, context),
|
|
2181
|
+
onToggle: (nodeId) => setNodeExpanded(nodeId, !expanded)
|
|
2182
|
+
},
|
|
2183
|
+
node.id
|
|
2184
|
+
);
|
|
2185
|
+
}) })
|
|
2186
|
+
}
|
|
2187
|
+
) }),
|
|
2188
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2189
|
+
core.DragOverlay,
|
|
2190
|
+
{
|
|
2191
|
+
dropAnimation: {
|
|
2192
|
+
duration: treeItemDropTransition.duration,
|
|
2193
|
+
easing: treeItemDropTransition.easing
|
|
2194
|
+
},
|
|
2195
|
+
children: activeEntry ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2196
|
+
"div",
|
|
2069
2197
|
{
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2198
|
+
className: cn("min-w-0 overflow-hidden shadow-lg", classNames?.overlay),
|
|
2199
|
+
style: overlayStyle,
|
|
2200
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2201
|
+
TreeItemRow,
|
|
2202
|
+
{
|
|
2203
|
+
node: activeEntry.node,
|
|
2204
|
+
depth: activeEntry.depth,
|
|
2205
|
+
indentSize,
|
|
2206
|
+
selected: selectedNodeId === activeEntry.node.id,
|
|
2207
|
+
expanded: activeEntry.node.collapsible === false || resolvedExpandedNodeIds.has(activeEntry.node.id),
|
|
2208
|
+
active: true,
|
|
2209
|
+
over: false,
|
|
2210
|
+
hasChildren: Boolean(activeEntry.node.children?.length),
|
|
2211
|
+
disabled: Boolean(activeEntry.node.disabled),
|
|
2212
|
+
selectable: activeEntry.node.selectable !== false,
|
|
2213
|
+
draggable: activeEntry.node.draggable !== false,
|
|
2214
|
+
activationMode,
|
|
2215
|
+
dragHandleLabel: labels?.dragHandle ?? "Drag",
|
|
2216
|
+
expandLabel: labels?.expand ?? "Expand",
|
|
2217
|
+
collapseLabel: labels?.collapse ?? "Collapse",
|
|
2218
|
+
themeSlots: theme.slots,
|
|
2219
|
+
classNames,
|
|
2220
|
+
itemClassName: activeEntry.node.itemClassName,
|
|
2221
|
+
itemStyle,
|
|
2222
|
+
renderNodeActions,
|
|
2223
|
+
renderContext: {
|
|
2224
|
+
node: activeEntry.node,
|
|
2225
|
+
depth: activeEntry.depth,
|
|
2226
|
+
expanded: activeEntry.node.collapsible === false || resolvedExpandedNodeIds.has(activeEntry.node.id),
|
|
2227
|
+
selected: selectedNodeId === activeEntry.node.id,
|
|
2228
|
+
dragging: true,
|
|
2229
|
+
disabled: Boolean(activeEntry.node.disabled),
|
|
2230
|
+
context: activeEntry.node.context ?? context
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
)
|
|
2234
|
+
}
|
|
2235
|
+
) : null
|
|
2236
|
+
}
|
|
2237
|
+
)
|
|
2238
|
+
]
|
|
2093
2239
|
}
|
|
2094
2240
|
);
|
|
2095
2241
|
}
|