@inf-monkeys-tech/monkeys-design 0.4.45 → 0.4.46
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 +3 -3
- package/dist/components/data-explorer/index.d.ts +3 -3
- package/dist/components/data-explorer/index.js +62 -1
- package/dist/components/data-explorer/index.js.map +1 -1
- package/dist/components/data-explorer/index.mjs +62 -1
- 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/{theme-6n0A9kRO.d.ts → theme-BuvXrHFY.d.ts} +1 -1
- package/dist/{theme-BsEbXR7C.d.mts → theme-CUATVszl.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-BFHv0G27.d.mts → types-DikLSLsl.d.mts} +4 -0
- package/dist/{types-BFHv0G27.d.ts → types-DikLSLsl.d.ts} +4 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
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-CUATVszl.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-DikLSLsl.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-DikLSLsl.mjs';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
7
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;
|
|
@@ -1,7 +1,7 @@
|
|
|
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-BuvXrHFY.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-DikLSLsl.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-DikLSLsl.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
7
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;
|
|
@@ -1800,6 +1800,52 @@ function buildFlattenedTree(nodes, expandedNodeIds) {
|
|
|
1800
1800
|
flattenTree(nodes, expandedNodeIds, void 0, 0, entries);
|
|
1801
1801
|
return entries;
|
|
1802
1802
|
}
|
|
1803
|
+
function findAncestorEntryAtDepth(entries, entry, depth) {
|
|
1804
|
+
if (depth < 0) return void 0;
|
|
1805
|
+
let parentId = entry.parentId;
|
|
1806
|
+
while (parentId) {
|
|
1807
|
+
const parentEntry = entries.find((candidate) => candidate.node.id === parentId);
|
|
1808
|
+
if (!parentEntry) return void 0;
|
|
1809
|
+
if (parentEntry.depth === depth) return parentEntry;
|
|
1810
|
+
parentId = parentEntry.parentId;
|
|
1811
|
+
}
|
|
1812
|
+
return void 0;
|
|
1813
|
+
}
|
|
1814
|
+
function countSiblingsBeforeDrop(entries, activeEntry, overEntry, parentId, targetDepth) {
|
|
1815
|
+
const targetEntry = activeEntry.node.id === overEntry.node.id ? activeEntry : overEntry;
|
|
1816
|
+
let index = 0;
|
|
1817
|
+
for (const entry of entries) {
|
|
1818
|
+
if (entry.node.id === targetEntry.node.id) break;
|
|
1819
|
+
if (entry.node.id === activeEntry.node.id) continue;
|
|
1820
|
+
if (entry.parentId === parentId && entry.depth === targetDepth) {
|
|
1821
|
+
index += 1;
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
return index;
|
|
1825
|
+
}
|
|
1826
|
+
function projectDataExplorerDraggableTreeDrop({
|
|
1827
|
+
flattenedNodes,
|
|
1828
|
+
activeEntry,
|
|
1829
|
+
overEntry,
|
|
1830
|
+
dragOffsetX,
|
|
1831
|
+
indentSize
|
|
1832
|
+
}) {
|
|
1833
|
+
const depthDelta = Math.round(dragOffsetX / Math.max(1, indentSize));
|
|
1834
|
+
const projectedDepth = Math.max(0, activeEntry.depth + depthDelta);
|
|
1835
|
+
const targetDepth = Math.min(projectedDepth, overEntry.depth);
|
|
1836
|
+
const parentAtDepth = targetDepth === 0 ? void 0 : targetDepth === overEntry.depth ? overEntry.parentId : findAncestorEntryAtDepth(flattenedNodes, overEntry, targetDepth)?.parentId;
|
|
1837
|
+
return {
|
|
1838
|
+
parentId: parentAtDepth,
|
|
1839
|
+
index: countSiblingsBeforeDrop(
|
|
1840
|
+
flattenedNodes,
|
|
1841
|
+
activeEntry,
|
|
1842
|
+
overEntry,
|
|
1843
|
+
parentAtDepth,
|
|
1844
|
+
targetDepth
|
|
1845
|
+
),
|
|
1846
|
+
depth: targetDepth
|
|
1847
|
+
};
|
|
1848
|
+
}
|
|
1803
1849
|
function DraggableTreeItem({
|
|
1804
1850
|
entry,
|
|
1805
1851
|
selected,
|
|
@@ -2175,7 +2221,7 @@ function DataExplorerDraggableTree({
|
|
|
2175
2221
|
const handleDragEnd = (event) => {
|
|
2176
2222
|
const activeId = String(event.active.id || "");
|
|
2177
2223
|
const overId = event.over ? String(event.over.id || "") : "";
|
|
2178
|
-
if (!activeId || !overId ||
|
|
2224
|
+
if (!activeId || !overId || !onDragEnd) {
|
|
2179
2225
|
clearDragState();
|
|
2180
2226
|
return;
|
|
2181
2227
|
}
|
|
@@ -2185,14 +2231,29 @@ function DataExplorerDraggableTree({
|
|
|
2185
2231
|
clearDragState();
|
|
2186
2232
|
return;
|
|
2187
2233
|
}
|
|
2234
|
+
const projectedDrop = projectDataExplorerDraggableTreeDrop({
|
|
2235
|
+
flattenedNodes,
|
|
2236
|
+
activeEntry: activeEntry2,
|
|
2237
|
+
overEntry,
|
|
2238
|
+
dragOffsetX: event.delta.x,
|
|
2239
|
+
indentSize
|
|
2240
|
+
});
|
|
2241
|
+
if (activeEntry2.parentId === projectedDrop.parentId && activeEntry2.index === projectedDrop.index) {
|
|
2242
|
+
clearDragState();
|
|
2243
|
+
return;
|
|
2244
|
+
}
|
|
2188
2245
|
const payload = {
|
|
2189
2246
|
activeNode: activeEntry2.node,
|
|
2190
2247
|
overNode: overEntry.node,
|
|
2191
2248
|
activeParentId: activeEntry2.parentId,
|
|
2192
2249
|
overParentId: overEntry.parentId,
|
|
2250
|
+
targetParentId: projectedDrop.parentId,
|
|
2193
2251
|
activeIndex: activeEntry2.index,
|
|
2194
2252
|
overIndex: overEntry.index,
|
|
2253
|
+
targetIndex: projectedDrop.index,
|
|
2254
|
+
targetDepth: projectedDrop.depth,
|
|
2195
2255
|
sameParent: activeEntry2.parentId === overEntry.parentId,
|
|
2256
|
+
targetSameParent: activeEntry2.parentId === projectedDrop.parentId,
|
|
2196
2257
|
context
|
|
2197
2258
|
};
|
|
2198
2259
|
void onDragEnd(payload);
|