@pstdio/ui 0.26.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/EquationComponent-DDd5UoIP.js +65 -0
- package/dist/EquationComponent-DDd5UoIP.js.map +1 -0
- package/dist/MermaidComponent-DGDnQ6pb.js +90 -0
- package/dist/MermaidComponent-DGDnQ6pb.js.map +1 -0
- package/dist/browser-storage-C_ipoNwP.js +37 -0
- package/dist/browser-storage-C_ipoNwP.js.map +1 -0
- package/dist/chat-ui.d.ts +688 -2
- package/dist/chat-ui.js +3271 -2848
- package/dist/chat-ui.js.map +1 -1
- package/dist/data-table-stats-row-DNJG8tLZ.js +415 -0
- package/dist/data-table-stats-row-DNJG8tLZ.js.map +1 -0
- package/dist/data-table.d.ts +143 -2
- package/dist/data-table.js +1216 -1188
- package/dist/data-table.js.map +1 -1
- package/dist/diff-bubble-DZsarmSG.js +61 -0
- package/dist/diff-bubble-DZsarmSG.js.map +1 -0
- package/dist/diff-drawer-45rpk3aq.js +776 -0
- package/dist/diff-drawer-45rpk3aq.js.map +1 -0
- package/dist/diff-editor-CGpeyoCE.js +124 -0
- package/dist/diff-editor-CGpeyoCE.js.map +1 -0
- package/dist/diff-size-Dydn_Uw5.js +61 -0
- package/dist/diff-size-Dydn_Uw5.js.map +1 -0
- package/dist/diff-viewer-hGkaF_zW.js +558 -0
- package/dist/diff-viewer-hGkaF_zW.js.map +1 -0
- package/dist/diff.d.ts +128 -2
- package/dist/diff.js +163 -1302
- package/dist/diff.js.map +1 -1
- package/dist/empty-state-3mVV_pV-.js +38 -0
- package/dist/empty-state-3mVV_pV-.js.map +1 -0
- package/dist/file-change-badge-0QFNv82B.js +64 -0
- package/dist/file-change-badge-0QFNv82B.js.map +1 -0
- package/dist/index-BfFLdci8.d.ts +189 -0
- package/dist/index-Dd6e8lU_.d.ts +61 -0
- package/dist/index-DlmvvQ6x.d.ts +143 -0
- package/dist/index.d.ts +1508 -40
- package/dist/index.js +3167 -2707
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +337 -2
- package/dist/kanban-renderer.js +1413 -1085
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/list-row-De9R2zKU.js +1008 -0
- package/dist/list-row-De9R2zKU.js.map +1 -0
- package/dist/mermaid-renderer-DImi0fDp.js +553 -0
- package/dist/mermaid-renderer-DImi0fDp.js.map +1 -0
- package/dist/mermaid.d.ts +12 -2
- package/dist/mermaid.js +2 -5
- package/dist/monaco-browser-CLRPSE4-.js +14 -0
- package/dist/monaco-browser-CLRPSE4-.js.map +1 -0
- package/dist/param-editor-IJzw1cA2.js +225 -0
- package/dist/param-editor-IJzw1cA2.js.map +1 -0
- package/dist/param-editor-field-DscIjv8s.js +2368 -0
- package/dist/param-editor-field-DscIjv8s.js.map +1 -0
- package/dist/param-editor.d.ts +407 -2
- package/dist/param-editor.js +3 -47
- package/dist/prism-pSHJejZx.js +646 -0
- package/dist/prism-pSHJejZx.js.map +1 -0
- package/dist/radio-CiFrDN6O.js +54 -0
- package/dist/radio-CiFrDN6O.js.map +1 -0
- package/dist/resource-badge-95WPVlZf.d.ts +76 -0
- package/dist/rich-text-DtQpHBlX.js +7018 -0
- package/dist/rich-text-DtQpHBlX.js.map +1 -0
- package/dist/rich-text.d.ts +3 -2
- package/dist/rich-text.js +2 -429
- package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
- package/dist/scroll-area-Cr1lNXAr.js +100 -0
- package/dist/scroll-area-Cr1lNXAr.js.map +1 -0
- package/dist/slider-hwHYe98I.js +423 -0
- package/dist/slider-hwHYe98I.js.map +1 -0
- package/dist/style.css +2 -1
- package/dist/terminal.d.ts +203 -2
- package/dist/terminal.js +324 -360
- package/dist/terminal.js.map +1 -1
- package/dist/theme-kSkOHzbV.js +2852 -0
- package/dist/theme-kSkOHzbV.js.map +1 -0
- package/dist/theme-preference-pzfuK5cH.js +101 -0
- package/dist/theme-preference-pzfuK5cH.js.map +1 -0
- package/dist/theme.d.ts +3 -2
- package/dist/theme.js +2 -15
- package/dist/tree-list-BUfDQz3v.js +1449 -0
- package/dist/tree-list-BUfDQz3v.js.map +1 -0
- package/dist/types-yjKBk07w.d.ts +161 -0
- package/dist/workspace-badge-9g78pXHS.js +245 -0
- package/dist/workspace-badge-9g78pXHS.js.map +1 -0
- package/dist/workspace-badge-CkJ_jTQw.d.ts +75 -0
- package/dist-monaco/assets/codicon-ngg6Pgfi.ttf +0 -0
- package/dist-monaco/assets/css.worker-DFdt6_zu.js +89 -0
- package/dist-monaco/assets/editor.worker-O-CH8JUO.js +26 -0
- package/dist-monaco/assets/html.worker-JUzsMP-j.js +502 -0
- package/dist-monaco/assets/json.worker-B4dEhy0e.js +58 -0
- package/dist-monaco/assets/ts.worker-CmEKzkmF.js +67734 -0
- package/dist-monaco/monaco.css +1 -0
- package/dist-monaco/monaco.js +1201 -0
- package/package.json +26 -13
- package/dist/EquationComponent-DeDYHvqY.js +0 -62
- package/dist/EquationComponent-DeDYHvqY.js.map +0 -1
- package/dist/MermaidComponent-X__B6qib.js +0 -60
- package/dist/MermaidComponent-X__B6qib.js.map +0 -1
- package/dist/activity-timeline-BynMjXSB.js +0 -283
- package/dist/activity-timeline-BynMjXSB.js.map +0 -1
- package/dist/alert-ubcrW24X.js +0 -33
- package/dist/alert-ubcrW24X.js.map +0 -1
- package/dist/browser-storage-BinyFNJX.js +0 -40
- package/dist/browser-storage-BinyFNJX.js.map +0 -1
- package/dist/components/activity/activity-avatar.d.ts +0 -9
- package/dist/components/activity/activity-comment.d.ts +0 -27
- package/dist/components/activity/activity-composer.d.ts +0 -18
- package/dist/components/activity/activity-event.d.ts +0 -12
- package/dist/components/activity/activity-root.d.ts +0 -15
- package/dist/components/activity/activity-timeline.d.ts +0 -6
- package/dist/components/activity/activity.types.d.ts +0 -5
- package/dist/components/activity/index.d.ts +0 -25
- package/dist/components/chat-ui/components/ai-conversation.d.ts +0 -603
- package/dist/components/chat-ui/components/ai-message.d.ts +0 -91
- package/dist/components/chat-ui/components/ai-response.d.ts +0 -5
- package/dist/components/chat-ui/components/approval-prompt.d.ts +0 -8
- package/dist/components/chat-ui/components/attachment-list.d.ts +0 -23
- package/dist/components/chat-ui/components/auto-scroll.d.ts +0 -37
- package/dist/components/chat-ui/components/chat-history-story.d.ts +0 -14
- package/dist/components/chat-ui/components/chat-input-actions.d.ts +0 -13
- package/dist/components/chat-ui/components/chat-input-attachments.d.ts +0 -12
- package/dist/components/chat-ui/components/chat-input-history.d.ts +0 -6
- package/dist/components/chat-ui/components/chat-input-question-prompt.d.ts +0 -36
- package/dist/components/chat-ui/components/chat-input.d.ts +0 -33
- package/dist/components/chat-ui/components/chat-message-animation.d.ts +0 -22
- package/dist/components/chat-ui/components/chat-message-list-items.d.ts +0 -17
- package/dist/components/chat-ui/components/chat-message-list.d.ts +0 -12
- package/dist/components/chat-ui/components/chat-panel-composer.d.ts +0 -49
- package/dist/components/chat-ui/components/chat-panel-sticky-user-message.d.ts +0 -13
- package/dist/components/chat-ui/components/chat-panel.d.ts +0 -45
- package/dist/components/chat-ui/components/chat-skeleton.d.ts +0 -1
- package/dist/components/chat-ui/components/composer-constants.d.ts +0 -1
- package/dist/components/chat-ui/components/conversation-browse.d.ts +0 -22
- package/dist/components/chat-ui/components/message-action-panel.d.ts +0 -10
- package/dist/components/chat-ui/components/message-parts-renderer.d.ts +0 -13
- package/dist/components/chat-ui/components/message-types.d.ts +0 -116
- package/dist/components/chat-ui/components/model-swap-separator.d.ts +0 -5
- package/dist/components/chat-ui/components/queued-follow-up-list-state.d.ts +0 -4
- package/dist/components/chat-ui/components/queued-follow-up-list.d.ts +0 -11
- package/dist/components/chat-ui/components/send-button.d.ts +0 -7
- package/dist/components/chat-ui/components/timeline-title.d.ts +0 -6
- package/dist/components/chat-ui/components/timeline-tool-blocks.d.ts +0 -14
- package/dist/components/chat-ui/components/timeline.d.ts +0 -113
- package/dist/components/chat-ui/components/tool-invocation-timeline.d.ts +0 -8
- package/dist/components/chat-ui/components/use-chat-input-history.d.ts +0 -16
- package/dist/components/chat-ui/components/working-indicator.d.ts +0 -9
- package/dist/components/chat-ui/components/workspace-hub.d.ts +0 -19
- package/dist/components/chat-ui/index.d.ts +0 -19
- package/dist/components/chat-ui/mocks/library/index.d.ts +0 -10
- package/dist/components/chat-ui/performance/chat-mount-metrics.d.ts +0 -37
- package/dist/components/chat-ui/performance/chat-panel.perf.d.ts +0 -18
- package/dist/components/chat-ui/performance/chat-performance-fixtures.d.ts +0 -28
- package/dist/components/chat-ui/performance/chat-performance-panel.d.ts +0 -23
- package/dist/components/chat-ui/performance/chat-performance-story-utils.d.ts +0 -30
- package/dist/components/chat-ui/tool-rendering/apply-patch-renderer.d.ts +0 -2
- package/dist/components/chat-ui/tool-rendering/build-timeline.d.ts +0 -13
- package/dist/components/chat-ui/tool-rendering/default-renderers.d.ts +0 -13
- package/dist/components/chat-ui/tool-rendering/edit-renderer.d.ts +0 -2
- package/dist/components/chat-ui/tool-rendering/index.d.ts +0 -3
- package/dist/components/chat-ui/tool-rendering/question-prompt.d.ts +0 -9
- package/dist/components/chat-ui/tool-rendering/question-renderer.d.ts +0 -10
- package/dist/components/chat-ui/tool-rendering/shared.d.ts +0 -53
- package/dist/components/chat-ui/tool-rendering/standard-renderers.d.ts +0 -7
- package/dist/components/chat-ui/tool-rendering/todowrite-renderer.d.ts +0 -10
- package/dist/components/chat-ui/tool-rendering/types.d.ts +0 -12
- package/dist/components/chat-ui/utils/diff.d.ts +0 -21
- package/dist/components/chat-ui/utils/editor-state.d.ts +0 -1
- package/dist/components/chat-ui/utils/get-icon.d.ts +0 -36
- package/dist/components/chat-ui/utils/tool-name.d.ts +0 -2
- package/dist/components/command-palette/index.d.ts +0 -4
- package/dist/components/command-palette/palette-filter.d.ts +0 -23
- package/dist/components/command-palette/palette-list.d.ts +0 -11
- package/dist/components/command-palette/palette-shortcut.d.ts +0 -12
- package/dist/components/command-palette/palette.d.ts +0 -48
- package/dist/components/data-table/build-columns.d.ts +0 -16
- package/dist/components/data-table/categorical-color-cell.d.ts +0 -8
- package/dist/components/data-table/color-cell-style.d.ts +0 -13
- package/dist/components/data-table/color-scale-cell.d.ts +0 -7
- package/dist/components/data-table/data-table-column-menu.d.ts +0 -17
- package/dist/components/data-table/data-table-header.d.ts +0 -12
- package/dist/components/data-table/data-table-row-display.d.ts +0 -11
- package/dist/components/data-table/data-table-skeleton.d.ts +0 -13
- package/dist/components/data-table/data-table-stat-chart.d.ts +0 -21
- package/dist/components/data-table/data-table-state.d.ts +0 -27
- package/dist/components/data-table/data-table-stats-row.d.ts +0 -11
- package/dist/components/data-table/data-table-stats.d.ts +0 -19
- package/dist/components/data-table/data-table-table-parts.d.ts +0 -22
- package/dist/components/data-table/data-table.d.ts +0 -2
- package/dist/components/data-table/data-table.story-descriptions.d.ts +0 -6
- package/dist/components/data-table/data-table.story-fixtures.d.ts +0 -6
- package/dist/components/data-table/edit-mode-data-table-body.d.ts +0 -30
- package/dist/components/data-table/edit-mode-data-table-cell.d.ts +0 -16
- package/dist/components/data-table/edit-mode-data-table-editors.d.ts +0 -19
- package/dist/components/data-table/edit-mode-data-table-header.d.ts +0 -24
- package/dist/components/data-table/edit-mode-data-table-selection.d.ts +0 -12
- package/dist/components/data-table/edit-mode-data-table.d.ts +0 -2
- package/dist/components/data-table/edit-mode-story.d.ts +0 -5
- package/dist/components/data-table/friendly-json-display.d.ts +0 -31
- package/dist/components/data-table/helpers.d.ts +0 -10
- package/dist/components/data-table/index.d.ts +0 -7
- package/dist/components/data-table/json-cell.d.ts +0 -6
- package/dist/components/data-table/pagination-footer.d.ts +0 -11
- package/dist/components/data-table/selection-toolbar.d.ts +0 -11
- package/dist/components/data-table/types.d.ts +0 -117
- package/dist/components/diff-viewer/build-changed-files-tree.d.ts +0 -4
- package/dist/components/diff-viewer/code-editor.d.ts +0 -45
- package/dist/components/diff-viewer/diff-bubble.d.ts +0 -14
- package/dist/components/diff-viewer/diff-card-body.d.ts +0 -60
- package/dist/components/diff-viewer/diff-card-content.d.ts +0 -23
- package/dist/components/diff-viewer/diff-card-load-state.d.ts +0 -9
- package/dist/components/diff-viewer/diff-card.d.ts +0 -46
- package/dist/components/diff-viewer/diff-drawer-empty-state.d.ts +0 -1
- package/dist/components/diff-viewer/diff-drawer-height.d.ts +0 -10
- package/dist/components/diff-viewer/diff-drawer-scroll.d.ts +0 -28
- package/dist/components/diff-viewer/diff-drawer.d.ts +0 -29
- package/dist/components/diff-viewer/diff-editor.d.ts +0 -20
- package/dist/components/diff-viewer/diff-size.d.ts +0 -16
- package/dist/components/diff-viewer/diff-view-adapter.d.ts +0 -27
- package/dist/components/diff-viewer/diff-viewer-options-menu.d.ts +0 -16
- package/dist/components/diff-viewer/diff-viewer.d.ts +0 -14
- package/dist/components/diff-viewer/diff-viewer.store.d.ts +0 -21
- package/dist/components/diff-viewer/file-change-badge.d.ts +0 -3
- package/dist/components/diff-viewer/file-list-panel.d.ts +0 -18
- package/dist/components/diff-viewer/index.d.ts +0 -9
- package/dist/components/diff-viewer/monaco-browser.d.ts +0 -1
- package/dist/components/diff-viewer/types.d.ts +0 -13
- package/dist/components/diff-viewer/use-selected-diff-scroll.d.ts +0 -23
- package/dist/components/file-browser/column-file-browser.d.ts +0 -20
- package/dist/components/internal/performance-panel.d.ts +0 -40
- package/dist/components/internal/style-guide.d.ts +0 -14
- package/dist/components/internal/token-editor-controls.d.ts +0 -8
- package/dist/components/internal/token-editor-data.d.ts +0 -40
- package/dist/components/internal/token-editor-state.d.ts +0 -22
- package/dist/components/kanban-renderer/collection-badge.d.ts +0 -7
- package/dist/components/kanban-renderer/display-menu.d.ts +0 -16
- package/dist/components/kanban-renderer/filter-menu.d.ts +0 -12
- package/dist/components/kanban-renderer/index.d.ts +0 -19
- package/dist/components/kanban-renderer/kanban-renderer-attribute-badge.d.ts +0 -7
- package/dist/components/kanban-renderer/kanban-renderer-badge-helpers.d.ts +0 -46
- package/dist/components/kanban-renderer/kanban-renderer-board-column-header.d.ts +0 -8
- package/dist/components/kanban-renderer/kanban-renderer-board-group-section.d.ts +0 -17
- package/dist/components/kanban-renderer/kanban-renderer-board-move.d.ts +0 -21
- package/dist/components/kanban-renderer/kanban-renderer-board.d.ts +0 -49
- package/dist/components/kanban-renderer/kanban-renderer-card.d.ts +0 -17
- package/dist/components/kanban-renderer/kanban-renderer-content.d.ts +0 -27
- package/dist/components/kanban-renderer/kanban-renderer-create-dialog.d.ts +0 -12
- package/dist/components/kanban-renderer/kanban-renderer-create-field.d.ts +0 -10
- package/dist/components/kanban-renderer/kanban-renderer-enum-helpers.d.ts +0 -10
- package/dist/components/kanban-renderer/kanban-renderer-grouping.d.ts +0 -23
- package/dist/components/kanban-renderer/kanban-renderer-helpers.d.ts +0 -58
- package/dist/components/kanban-renderer/kanban-renderer-list-items.d.ts +0 -25
- package/dist/components/kanban-renderer/kanban-renderer-list.d.ts +0 -43
- package/dist/components/kanban-renderer/kanban-renderer-story-fixtures.d.ts +0 -14
- package/dist/components/kanban-renderer/kanban-renderer-toolbar.d.ts +0 -15
- package/dist/components/kanban-renderer/kanban-renderer-view-bar.d.ts +0 -14
- package/dist/components/kanban-renderer/kanban-renderer-views.d.ts +0 -12
- package/dist/components/kanban-renderer/kanban-renderer.d.ts +0 -43
- package/dist/components/kanban-renderer/types.d.ts +0 -159
- package/dist/components/kanban-renderer/use-kanban-renderer-store.d.ts +0 -78
- package/dist/components/kanban-renderer/use-resolved-attributes.d.ts +0 -14
- package/dist/components/layout/header.d.ts +0 -7
- package/dist/components/layout/horizontal-menu-stack.d.ts +0 -6
- package/dist/components/layout/index.d.ts +0 -8
- package/dist/components/layout/item-section.d.ts +0 -11
- package/dist/components/layout/panel-header.constants.d.ts +0 -3
- package/dist/components/layout/resizable-split-layout.d.ts +0 -22
- package/dist/components/layout/resizable-split-layout.geometry.d.ts +0 -56
- package/dist/components/layout/resizable-split-layout.handle.d.ts +0 -25
- package/dist/components/layout/resizable-split-layout.panels.d.ts +0 -29
- package/dist/components/layout/resizable-split-layout.root-size.d.ts +0 -3
- package/dist/components/list-row/list-row-actions.d.ts +0 -11
- package/dist/components/list-row/list-row-chrome.d.ts +0 -11
- package/dist/components/list-row/list-row-content.d.ts +0 -17
- package/dist/components/list-row/list-row-menu.d.ts +0 -12
- package/dist/components/list-row/list-row-root-props.d.ts +0 -34
- package/dist/components/list-row/list-row.d.ts +0 -2
- package/dist/components/list-row/list-row.types.d.ts +0 -109
- package/dist/components/list-row/searchable-action-menu.d.ts +0 -6
- package/dist/components/mermaid-renderer/download-png.d.ts +0 -7
- package/dist/components/mermaid-renderer/index.d.ts +0 -2
- package/dist/components/mermaid-renderer/mermaid-error-state.d.ts +0 -6
- package/dist/components/mermaid-renderer/mermaid-fixtures.d.ts +0 -9
- package/dist/components/mermaid-renderer/mermaid-fullscreen.d.ts +0 -10
- package/dist/components/mermaid-renderer/mermaid-renderer.d.ts +0 -8
- package/dist/components/mermaid-renderer/mermaid-svg-view.d.ts +0 -12
- package/dist/components/mermaid-renderer/mermaid-toolbar.d.ts +0 -12
- package/dist/components/mermaid-renderer/mermaid-zoom.d.ts +0 -6
- package/dist/components/mermaid-renderer/svg-data-url.d.ts +0 -6
- package/dist/components/mermaid-renderer/use-mermaid-render.d.ts +0 -5
- package/dist/components/notification-center/index.d.ts +0 -2
- package/dist/components/notification-center/notification-center.d.ts +0 -2
- package/dist/components/notification-center/notification-center.types.d.ts +0 -37
- package/dist/components/overlays/attached-menu.d.ts +0 -6
- package/dist/components/overlays/attached-panel.d.ts +0 -9
- package/dist/components/overlays/attachment-chip.d.ts +0 -13
- package/dist/components/overlays/bubble-button.d.ts +0 -10
- package/dist/components/overlays/bubble-panel.d.ts +0 -18
- package/dist/components/overlays/delete-confirmation-modal.d.ts +0 -13
- package/dist/components/overlays/dialog-accept-shortcut.d.ts +0 -12
- package/dist/components/overlays/index.d.ts +0 -17
- package/dist/components/overlays/repo-picker-dialog.d.ts +0 -25
- package/dist/components/overlays/resource-context-menu.d.ts +0 -35
- package/dist/components/overlays/search-modal-content.d.ts +0 -20
- package/dist/components/overlays/searchable-menu-input.d.ts +0 -9
- package/dist/components/overlays/searchable-menu.d.ts +0 -65
- package/dist/components/param-editor/index.d.ts +0 -31
- package/dist/components/param-editor/inputs/action-input.d.ts +0 -14
- package/dist/components/param-editor/inputs/anchor-grid-input.d.ts +0 -12
- package/dist/components/param-editor/inputs/anchor-grid.d.ts +0 -4
- package/dist/components/param-editor/inputs/boolean-input.d.ts +0 -13
- package/dist/components/param-editor/inputs/color-input.d.ts +0 -14
- package/dist/components/param-editor/inputs/date-input.d.ts +0 -16
- package/dist/components/param-editor/inputs/file-upload-input.d.ts +0 -15
- package/dist/components/param-editor/inputs/file-upload-value.d.ts +0 -7
- package/dist/components/param-editor/inputs/horizontal-text-input.d.ts +0 -13
- package/dist/components/param-editor/inputs/markdown-input.d.ts +0 -13
- package/dist/components/param-editor/inputs/number-input.d.ts +0 -18
- package/dist/components/param-editor/inputs/numeric-value.d.ts +0 -6
- package/dist/components/param-editor/inputs/range-input.d.ts +0 -18
- package/dist/components/param-editor/inputs/range-value.d.ts +0 -5
- package/dist/components/param-editor/inputs/resource-input-chips.d.ts +0 -15
- package/dist/components/param-editor/inputs/resource-input.d.ts +0 -20
- package/dist/components/param-editor/inputs/segmented-input.d.ts +0 -15
- package/dist/components/param-editor/inputs/selection-input.d.ts +0 -27
- package/dist/components/param-editor/inputs/selection-menu.d.ts +0 -39
- package/dist/components/param-editor/inputs/slider-marks.d.ts +0 -5
- package/dist/components/param-editor/inputs/text-input.d.ts +0 -14
- package/dist/components/param-editor/inputs/vector-input.d.ts +0 -17
- package/dist/components/param-editor/inputs/vector-value.d.ts +0 -7
- package/dist/components/param-editor/param-editor-advanced-field.d.ts +0 -14
- package/dist/components/param-editor/param-editor-control-fixtures.d.ts +0 -24
- package/dist/components/param-editor/param-editor-control-item.d.ts +0 -15
- package/dist/components/param-editor/param-editor-control-list.d.ts +0 -5
- package/dist/components/param-editor/param-editor-field-label.d.ts +0 -1
- package/dist/components/param-editor/param-editor-field.d.ts +0 -13
- package/dist/components/param-editor/param-editor-horizontal.d.ts +0 -11
- package/dist/components/param-editor/param-editor-inline-group.d.ts +0 -5
- package/dist/components/param-editor/param-editor-label.d.ts +0 -7
- package/dist/components/param-editor/param-editor-presentation.d.ts +0 -3
- package/dist/components/param-editor/param-editor-read-only-field.d.ts +0 -9
- package/dist/components/param-editor/param-editor-read-only-value.d.ts +0 -8
- package/dist/components/param-editor/param-editor-row.d.ts +0 -17
- package/dist/components/param-editor/param-editor-section.d.ts +0 -17
- package/dist/components/param-editor/param-editor.d.ts +0 -12
- package/dist/components/param-editor/param-editor.types.d.ts +0 -31
- package/dist/components/param-editor/resolve-param-value.d.ts +0 -2
- package/dist/components/primitives/alert.d.ts +0 -9
- package/dist/components/primitives/breadcrumb.d.ts +0 -20
- package/dist/components/primitives/checkbox.d.ts +0 -8
- package/dist/components/primitives/chip.d.ts +0 -4
- package/dist/components/primitives/content-placeholder.d.ts +0 -6
- package/dist/components/primitives/empty-state.d.ts +0 -12
- package/dist/components/primitives/error-boundary.d.ts +0 -26
- package/dist/components/primitives/glyph-icon.d.ts +0 -16
- package/dist/components/primitives/icon-color-picker.d.ts +0 -15
- package/dist/components/primitives/icon-options.d.ts +0 -301
- package/dist/components/primitives/index.d.ts +0 -39
- package/dist/components/primitives/info-card.d.ts +0 -12
- package/dist/components/primitives/integration-card.d.ts +0 -12
- package/dist/components/primitives/number-input.d.ts +0 -6
- package/dist/components/primitives/radio.d.ts +0 -8
- package/dist/components/primitives/resource-badge.d.ts +0 -64
- package/dist/components/primitives/scroll-area.d.ts +0 -17
- package/dist/components/primitives/segmented-control.d.ts +0 -20
- package/dist/components/primitives/session-indicator.d.ts +0 -15
- package/dist/components/primitives/simple-card.d.ts +0 -5
- package/dist/components/primitives/slider.d.ts +0 -5
- package/dist/components/primitives/switch.d.ts +0 -15
- package/dist/components/primitives/tag-swatch.d.ts +0 -10
- package/dist/components/primitives/toaster.d.ts +0 -3
- package/dist/components/primitives/tooltip.d.ts +0 -11
- package/dist/components/primitives/workspace-badge.d.ts +0 -23
- package/dist/components/rich-text/collaborative-markdown-editor/awareness-cursors.d.ts +0 -5
- package/dist/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.d.ts +0 -9
- package/dist/components/rich-text/index.d.ts +0 -19
- package/dist/components/rich-text/lazy-markdown-editor.d.ts +0 -2
- package/dist/components/rich-text/markdown-editor/markdown-editor-scrolling.play.d.ts +0 -4
- package/dist/components/rich-text/markdown-editor/markdown-editor.d.ts +0 -17
- package/dist/components/rich-text/markdown-editor/markdown-table.story-fixture.d.ts +0 -3
- package/dist/components/rich-text/markdown-editor/plugins/MarkdownSectionNavigationPlugin.d.ts +0 -8
- package/dist/components/rich-text/markdown-editor/plugins/MarkdownSlashCommandPlugin.d.ts +0 -1
- package/dist/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkNode.d.ts +0 -21
- package/dist/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.d.ts +0 -2
- package/dist/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/index.d.ts +0 -2
- package/dist/components/rich-text/markdown-editor/plugins/markdown-history-plugin.d.ts +0 -1
- package/dist/components/rich-text/markdown-editor/plugins/markdown-section-navigation.d.ts +0 -20
- package/dist/components/rich-text/prompt-input/commands.d.ts +0 -2
- package/dist/components/rich-text/prompt-input/events.d.ts +0 -2
- package/dist/components/rich-text/prompt-input/plugins/CommentPlugin/CommentPlugin.d.ts +0 -1
- package/dist/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentCommands.d.ts +0 -3
- package/dist/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentSchema.d.ts +0 -1
- package/dist/components/rich-text/prompt-input/plugins/CommentPlugin/nodes/CommentNode/CommentNode.d.ts +0 -16
- package/dist/components/rich-text/prompt-input/plugins/ImperativeAPIPlugin.d.ts +0 -7
- package/dist/components/rich-text/prompt-input/plugins/KeyboardShortcutPlugin.d.ts +0 -6
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuOption.d.ts +0 -12
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuPlugin.d.ts +0 -11
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenu.d.ts +0 -9
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenuItem.d.ts +0 -12
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/constants.d.ts +0 -2
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/hooks/useContextLookup.d.ts +0 -14
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/checkForTriggers.d.ts +0 -9
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/getSortedMenuOptions.d.ts +0 -2
- package/dist/components/rich-text/prompt-input/plugins/ReferencePlugin/ReferencePlugin.d.ts +0 -7
- package/dist/components/rich-text/prompt-input/plugins/ReferencePlugin/nodes/ReferenceNode/ReferenceNode.d.ts +0 -25
- package/dist/components/rich-text/prompt-input/plugins/keyboard-shortcuts.d.ts +0 -11
- package/dist/components/rich-text/prompt-input/prompt-input.d.ts +0 -27
- package/dist/components/rich-text/prompt-input/theme/prompt-input-theme.d.ts +0 -3
- package/dist/components/rich-text/prompt-input/utils.d.ts +0 -22
- package/dist/components/rich-text/resource-activity-feed/resource-activity-feed.d.ts +0 -58
- package/dist/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkNode.d.ts +0 -21
- package/dist/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.d.ts +0 -2
- package/dist/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/index.d.ts +0 -2
- package/dist/components/rich-text/rich-message/rich-message.d.ts +0 -10
- package/dist/components/rich-text/shared/components/content-editable.d.ts +0 -9
- package/dist/components/rich-text/shared/components/default-rich-text-components.d.ts +0 -3
- package/dist/components/rich-text/shared/editor-config.d.ts +0 -5
- package/dist/components/rich-text/shared/lexical-code.d.ts +0 -2
- package/dist/components/rich-text/shared/markdown-ast.d.ts +0 -7
- package/dist/components/rich-text/shared/markdown-codec.d.ts +0 -3
- package/dist/components/rich-text/shared/markdown-export.d.ts +0 -2
- package/dist/components/rich-text/shared/markdown-import.d.ts +0 -2
- package/dist/components/rich-text/shared/markdown-inline.d.ts +0 -5
- package/dist/components/rich-text/shared/markdown-source-document.d.ts +0 -7
- package/dist/components/rich-text/shared/markdown-source-links.d.ts +0 -11
- package/dist/components/rich-text/shared/markdown-source-map.d.ts +0 -10
- package/dist/components/rich-text/shared/markdown-table.d.ts +0 -41
- package/dist/components/rich-text/shared/markdown-url-context.d.ts +0 -9
- package/dist/components/rich-text/shared/markdown-url.d.ts +0 -3
- package/dist/components/rich-text/shared/nodes/DataTableNode.d.ts +0 -24
- package/dist/components/rich-text/shared/nodes/MarkdownImageNode.d.ts +0 -35
- package/dist/components/rich-text/shared/nodes/MarkdownLinkNode.d.ts +0 -18
- package/dist/components/rich-text/shared/nodes/RawHtmlNode.d.ts +0 -31
- package/dist/components/rich-text/shared/plugins/CodePlugin/CodeBlockActionsPlugin.d.ts +0 -4
- package/dist/components/rich-text/shared/plugins/CodePlugin/CodeBlockPlugin.d.ts +0 -3
- package/dist/components/rich-text/shared/plugins/CodePlugin/CodeHighlightingPlugin.d.ts +0 -1
- package/dist/components/rich-text/shared/plugins/EquationPlugin/EquationComponent.d.ts +0 -6
- package/dist/components/rich-text/shared/plugins/EquationPlugin/EquationNode.d.ts +0 -26
- package/dist/components/rich-text/shared/plugins/EquationPlugin/EquationPlugin.d.ts +0 -4
- package/dist/components/rich-text/shared/plugins/EquationPlugin/KatexRenderer.d.ts +0 -4
- package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatToolbarPlugin.d.ts +0 -4
- package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/floating-toolbar-buttons.d.ts +0 -18
- package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +0 -1
- package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/resolve-block-type.d.ts +0 -17
- package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/should-show-floating-toolbar.d.ts +0 -12
- package/dist/components/rich-text/shared/plugins/HorizontalRulePlugin/HorizontalRuleNode.d.ts +0 -13
- package/dist/components/rich-text/shared/plugins/HorizontalRulePlugin/horizontalRule.d.ts +0 -2
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/LinkEditorPlugin.d.ts +0 -4
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/LinkPlugin.d.ts +0 -1
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/commands.d.ts +0 -2
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/index.d.ts +0 -3
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/link-editor-content.d.ts +0 -18
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/getSelectedNode.d.ts +0 -2
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/link-edit-state.d.ts +0 -1
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/selection-link-url.d.ts +0 -2
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/setFloatingElemPos.d.ts +0 -1
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/url.d.ts +0 -2
- package/dist/components/rich-text/shared/plugins/MermaidPlugin/MermaidComponent.d.ts +0 -6
- package/dist/components/rich-text/shared/plugins/MermaidPlugin/MermaidNode.d.ts +0 -23
- package/dist/components/rich-text/shared/plugins/StateUpdatePlugin.d.ts +0 -6
- package/dist/components/rich-text/shared/plugins/ToggleEditablePlugin.d.ts +0 -3
- package/dist/components/rich-text/shared/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +0 -1
- package/dist/components/rich-text/shared/prism-global.d.ts +0 -2
- package/dist/components/rich-text/shared/transformers/markdown-transformers-test-utils.d.ts +0 -3
- package/dist/components/rich-text/shared/transformers/markdown-transformers.d.ts +0 -16
- package/dist/components/rich-text/shared/types/rich-text-components.d.ts +0 -15
- package/dist/components/rich-text/theme/rich-text-theme.d.ts +0 -3
- package/dist/components/rich-text/types.d.ts +0 -8
- package/dist/components/rich-text/utils/inferResourceType.d.ts +0 -1
- package/dist/components/rich-text/utils/markdown.d.ts +0 -5
- package/dist/components/rich-text/utils/mediaType.d.ts +0 -1
- package/dist/components/sidenav/sidenav-footer.d.ts +0 -6
- package/dist/components/sidenav/sidenav-header.d.ts +0 -6
- package/dist/components/sidenav/sidenav.d.ts +0 -2
- package/dist/components/sidenav/sidenav.store.d.ts +0 -49
- package/dist/components/sidenav/sidenav.types.d.ts +0 -31
- package/dist/components/tab-strip/tab-visibility-filter.d.ts +0 -22
- package/dist/components/tab-strip/tab-visibility.store.d.ts +0 -41
- package/dist/components/tab-strip/window-tabs.d.ts +0 -15
- package/dist/components/tab-strip/window-title-bar.d.ts +0 -6
- package/dist/components/tag-editor/index.d.ts +0 -8
- package/dist/components/tag-editor/tag-editor-heading.d.ts +0 -11
- package/dist/components/tag-editor/tag-editor-row.d.ts +0 -20
- package/dist/components/tag-editor/tag-editor-save-bar.d.ts +0 -13
- package/dist/components/tag-editor/tag-editor.d.ts +0 -2
- package/dist/components/tag-editor/tag-editor.types.d.ts +0 -57
- package/dist/components/tag-editor/tag-settings-panel.d.ts +0 -30
- package/dist/components/terminal/bind-session.d.ts +0 -33
- package/dist/components/terminal/index.d.ts +0 -6
- package/dist/components/terminal/scripted-bridge.d.ts +0 -35
- package/dist/components/terminal/terminal-contract.d.ts +0 -22
- package/dist/components/terminal/terminal-theme.d.ts +0 -12
- package/dist/components/terminal/terminal.d.ts +0 -56
- package/dist/components/terminal/types.d.ts +0 -35
- package/dist/components/terminal/use-terminal-session.d.ts +0 -21
- package/dist/components/tree-list/tree-list-background.d.ts +0 -8
- package/dist/components/tree-list/tree-list-drag-provider.d.ts +0 -13
- package/dist/components/tree-list/tree-list-drag.d.ts +0 -7
- package/dist/components/tree-list/tree-list-inline-creation-story.d.ts +0 -3
- package/dist/components/tree-list/tree-list-inline-input.d.ts +0 -9
- package/dist/components/tree-list/tree-list-model.d.ts +0 -58
- package/dist/components/tree-list/tree-list-move-surface.d.ts +0 -7
- package/dist/components/tree-list/tree-list-node-row.d.ts +0 -21
- package/dist/components/tree-list/tree-list-order-filter.d.ts +0 -2
- package/dist/components/tree-list/tree-list-order.store.d.ts +0 -45
- package/dist/components/tree-list/tree-list-reorder.d.ts +0 -24
- package/dist/components/tree-list/tree-list-section-header.d.ts +0 -14
- package/dist/components/tree-list/tree-list-sortable.d.ts +0 -24
- package/dist/components/tree-list/tree-list-visibility-filter.d.ts +0 -24
- package/dist/components/tree-list/tree-list-visibility.store.d.ts +0 -45
- package/dist/components/tree-list/tree-list.d.ts +0 -41
- package/dist/components/tree-list/tree-list.types.d.ts +0 -63
- package/dist/components/tree-list/use-tree-list-keyboard-navigation.d.ts +0 -15
- package/dist/diff-bubble-DvUPRnfB.js +0 -183
- package/dist/diff-bubble-DvUPRnfB.js.map +0 -1
- package/dist/edit-mode-data-table-Nfmfi7bz.js +0 -847
- package/dist/edit-mode-data-table-Nfmfi7bz.js.map +0 -1
- package/dist/empty-state-Bo4HVrgr.js +0 -34
- package/dist/empty-state-Bo4HVrgr.js.map +0 -1
- package/dist/foundations/gallery/gallery-frame.d.ts +0 -21
- package/dist/foundations/gallery/sections/badges-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/buttons-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/composite-chat-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/composites-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/feedback-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/input-authoring-card.d.ts +0 -1
- package/dist/foundations/gallery/sections/inputs-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/layout-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/navigation-identity-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/overlays-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/panels-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/param-editor-composite-card.d.ts +0 -1
- package/dist/foundations/gallery/sections/settings-composite-cards.d.ts +0 -1
- package/dist/kanban-renderer-toolbar-Buek4icz.js +0 -1375
- package/dist/kanban-renderer-toolbar-Buek4icz.js.map +0 -1
- package/dist/lazy-markdown-editor-PzIBc9-l.js +0 -42
- package/dist/lazy-markdown-editor-PzIBc9-l.js.map +0 -1
- package/dist/list-row-DHzRa9-O.js +0 -815
- package/dist/list-row-DHzRa9-O.js.map +0 -1
- package/dist/markdown-BCfPxNpb.js +0 -1663
- package/dist/markdown-BCfPxNpb.js.map +0 -1
- package/dist/markdown-editor-CsJ4KNGu.js +0 -1034
- package/dist/markdown-editor-CsJ4KNGu.js.map +0 -1
- package/dist/mermaid-renderer-D0YP0FmJ.js +0 -425
- package/dist/mermaid-renderer-D0YP0FmJ.js.map +0 -1
- package/dist/mermaid.js.map +0 -1
- package/dist/monaco-browser-l82HnffN.js +0 -22
- package/dist/monaco-browser-l82HnffN.js.map +0 -1
- package/dist/param-editor-CFM2Nf3l.js +0 -161
- package/dist/param-editor-CFM2Nf3l.js.map +0 -1
- package/dist/param-editor-field-Bj-AGUY6.js +0 -1728
- package/dist/param-editor-field-Bj-AGUY6.js.map +0 -1
- package/dist/param-editor.js.map +0 -1
- package/dist/prism-n5gcERyD.js +0 -202
- package/dist/prism-n5gcERyD.js.map +0 -1
- package/dist/radio-BfjibByI.js +0 -51
- package/dist/radio-BfjibByI.js.map +0 -1
- package/dist/rich-message-q6Y6QJOq.js +0 -633
- package/dist/rich-message-q6Y6QJOq.js.map +0 -1
- package/dist/rich-text.js.map +0 -1
- package/dist/scroll-area-BMbg1WcD.js +0 -91
- package/dist/scroll-area-BMbg1WcD.js.map +0 -1
- package/dist/slider-DBHjdxsU.js +0 -1092
- package/dist/slider-DBHjdxsU.js.map +0 -1
- package/dist/test-utils/local-storage.d.ts +0 -1
- package/dist/theme/custom/index.d.ts +0 -2
- package/dist/theme/custom/vscode-theme.d.ts +0 -32
- package/dist/theme/global.d.ts +0 -62
- package/dist/theme/index.d.ts +0 -3
- package/dist/theme/primitives/colors.d.ts +0 -1081
- package/dist/theme/primitives/fonts.d.ts +0 -84
- package/dist/theme/primitives/sizes.d.ts +0 -207
- package/dist/theme/recipes/activity-comment.d.ts +0 -36
- package/dist/theme/recipes/alert.d.ts +0 -1
- package/dist/theme/recipes/badge.d.ts +0 -58
- package/dist/theme/recipes/button.d.ts +0 -188
- package/dist/theme/recipes/color-picker.d.ts +0 -18
- package/dist/theme/recipes/dialog.d.ts +0 -1
- package/dist/theme/recipes/divider.d.ts +0 -1
- package/dist/theme/recipes/drawer.d.ts +0 -1
- package/dist/theme/recipes/editable.d.ts +0 -46
- package/dist/theme/recipes/form.d.ts +0 -1
- package/dist/theme/recipes/input.d.ts +0 -94
- package/dist/theme/recipes/kbd.d.ts +0 -41
- package/dist/theme/recipes/menu.d.ts +0 -1
- package/dist/theme/recipes/number-input.d.ts +0 -98
- package/dist/theme/recipes/popover.d.ts +0 -16
- package/dist/theme/recipes/progress-circle.d.ts +0 -28
- package/dist/theme/recipes/resizable-split-layout.d.ts +0 -106
- package/dist/theme/recipes/segmented-control.d.ts +0 -22
- package/dist/theme/recipes/skeleton.d.ts +0 -1
- package/dist/theme/recipes/switch.d.ts +0 -18
- package/dist/theme/recipes/tabs.d.ts +0 -80
- package/dist/theme/recipes/textarea.d.ts +0 -62
- package/dist/theme/recipes/timeline.d.ts +0 -83
- package/dist/theme/recipes/tooltip.d.ts +0 -1
- package/dist/theme/recipes/window-title-bar.d.ts +0 -19
- package/dist/theme/shadowless-default-config.d.ts +0 -2
- package/dist/theme/theme.d.ts +0 -2
- package/dist/theme/tokens/borders.d.ts +0 -17
- package/dist/theme/tokens/colors-background.d.ts +0 -260
- package/dist/theme/tokens/colors-visualization.d.ts +0 -162
- package/dist/theme/tokens/colors.d.ts +0 -878
- package/dist/theme/tokens/layer-styles.d.ts +0 -1
- package/dist/theme/tokens/text.d.ts +0 -1
- package/dist/theme-AzJH4Om3.js +0 -3999
- package/dist/theme-AzJH4Om3.js.map +0 -1
- package/dist/theme-preference-DxGW1qg-.js +0 -114
- package/dist/theme-preference-DxGW1qg-.js.map +0 -1
- package/dist/theme.js.map +0 -1
- package/dist/tree-list-CPjbGTvs.js +0 -1348
- package/dist/tree-list-CPjbGTvs.js.map +0 -1
- package/dist/utils/apply-file-icon-theme-preference.d.ts +0 -35
- package/dist/utils/apply-theme-preference.d.ts +0 -22
- package/dist/utils/browser-storage.d.ts +0 -7
- package/dist/utils/file-icon-theme-preference.d.ts +0 -15
- package/dist/utils/get-file-type-icon.d.ts +0 -2
- package/dist/utils/prism.d.ts +0 -1
- package/dist/utils/resolve-file-icon-element.d.ts +0 -8
- package/dist/utils/theme-preference.d.ts +0 -20
- package/dist/workspace-badge-CuOcmnZc.js +0 -175
- package/dist/workspace-badge-CuOcmnZc.js.map +0 -1
|
@@ -0,0 +1,1449 @@
|
|
|
1
|
+
import { n as e, s as t, t as n } from "./list-row-De9R2zKU.js";
|
|
2
|
+
import { Box as r, Flex as i, HStack as a, IconButton as o, Input as s, Menu as c, Stack as l, Text as u, useSlotRecipe as d } from "@chakra-ui/react";
|
|
3
|
+
import { c as f } from "react/compiler-runtime";
|
|
4
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
5
|
+
import { createContext as g, useContext as _, useEffect as v, useId as y, useRef as b, useState as x } from "react";
|
|
6
|
+
import { ChevronRight as S } from "lucide-react";
|
|
7
|
+
import { useVirtualizer as C } from "@tanstack/react-virtual";
|
|
8
|
+
import { DndContext as w, PointerSensor as T, closestCenter as E, useSensor as D, useSensors as O } from "@dnd-kit/core";
|
|
9
|
+
import { SortableContext as k, useSortable as A, verticalListSortingStrategy as j } from "@dnd-kit/sortable";
|
|
10
|
+
import { CSS as M } from "@dnd-kit/utilities";
|
|
11
|
+
//#region src/components/layout/resizable-split-layout.geometry.ts
|
|
12
|
+
var N = 72, P = 160, F = 72, I = (e, t, n) => Math.min(Math.max(e, t), n), L = {
|
|
13
|
+
left: {
|
|
14
|
+
rootDirection: "row",
|
|
15
|
+
dimension: "width",
|
|
16
|
+
separatorOrientation: "vertical",
|
|
17
|
+
cursor: "col-resize",
|
|
18
|
+
pointerCoordinate: "clientX",
|
|
19
|
+
deltaDirection: 1,
|
|
20
|
+
panelFirst: !0
|
|
21
|
+
},
|
|
22
|
+
right: {
|
|
23
|
+
rootDirection: "row",
|
|
24
|
+
dimension: "width",
|
|
25
|
+
separatorOrientation: "vertical",
|
|
26
|
+
cursor: "col-resize",
|
|
27
|
+
pointerCoordinate: "clientX",
|
|
28
|
+
deltaDirection: -1,
|
|
29
|
+
panelFirst: !1
|
|
30
|
+
},
|
|
31
|
+
top: {
|
|
32
|
+
rootDirection: "column",
|
|
33
|
+
dimension: "height",
|
|
34
|
+
separatorOrientation: "horizontal",
|
|
35
|
+
cursor: "row-resize",
|
|
36
|
+
pointerCoordinate: "clientY",
|
|
37
|
+
deltaDirection: 1,
|
|
38
|
+
panelFirst: !0
|
|
39
|
+
},
|
|
40
|
+
bottom: {
|
|
41
|
+
rootDirection: "column",
|
|
42
|
+
dimension: "height",
|
|
43
|
+
separatorOrientation: "horizontal",
|
|
44
|
+
cursor: "row-resize",
|
|
45
|
+
pointerCoordinate: "clientY",
|
|
46
|
+
deltaDirection: -1,
|
|
47
|
+
panelFirst: !1
|
|
48
|
+
}
|
|
49
|
+
}, R = (e) => L[e], z = (e) => {
|
|
50
|
+
let t = e.rootSize > 0 ? e.rootSize : e.fallbackRootSize, n = Math.max(0, t - e.contentMinSize), r = e.maxSize ?? n, i = Math.max(0, Math.min(r, n));
|
|
51
|
+
return {
|
|
52
|
+
minSize: Math.min(e.minSize, i),
|
|
53
|
+
maxSize: i
|
|
54
|
+
};
|
|
55
|
+
}, B = (e, t) => e === "top" || e === "bottom" ? F : I(t / 2, N, P), ee = (e) => {
|
|
56
|
+
let t = R(e.side), n = e.startSize + e.pointerDelta * t.deltaDirection, r = e.collapsible && n <= B(e.side, e.minSize);
|
|
57
|
+
return {
|
|
58
|
+
rawSize: n,
|
|
59
|
+
size: r ? 0 : I(n, e.minSize, e.maxSize),
|
|
60
|
+
collapsed: r
|
|
61
|
+
};
|
|
62
|
+
}, V = 250, H = [
|
|
63
|
+
0,
|
|
64
|
+
1,
|
|
65
|
+
2
|
|
66
|
+
], U = (e, t) => e ? {
|
|
67
|
+
w: t,
|
|
68
|
+
h: "full",
|
|
69
|
+
hitArea: {
|
|
70
|
+
top: 0,
|
|
71
|
+
bottom: 0,
|
|
72
|
+
insetInlineStart: "-1",
|
|
73
|
+
insetInlineEnd: "-1"
|
|
74
|
+
},
|
|
75
|
+
gripDirection: "column",
|
|
76
|
+
bar: {
|
|
77
|
+
top: "0",
|
|
78
|
+
bottom: "0",
|
|
79
|
+
insetInlineStart: "50%",
|
|
80
|
+
w: "0.5",
|
|
81
|
+
transform: "translateX(-50%)"
|
|
82
|
+
}
|
|
83
|
+
} : {
|
|
84
|
+
w: "full",
|
|
85
|
+
h: t,
|
|
86
|
+
hitArea: {
|
|
87
|
+
insetInline: 0,
|
|
88
|
+
top: "-1",
|
|
89
|
+
bottom: "-1"
|
|
90
|
+
},
|
|
91
|
+
gripDirection: "row",
|
|
92
|
+
bar: {
|
|
93
|
+
top: "50%",
|
|
94
|
+
insetInline: "0",
|
|
95
|
+
h: "0.5",
|
|
96
|
+
transform: "translateY(-50%)"
|
|
97
|
+
}
|
|
98
|
+
}, W = (e) => {
|
|
99
|
+
let t = f(4), { active: n, layout: r } = e, a = r.gripDirection, o = +!n, s;
|
|
100
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = H.map(q), t[0] = s) : s = t[0];
|
|
101
|
+
let c;
|
|
102
|
+
return t[1] !== r.gripDirection || t[2] !== o ? (c = /* @__PURE__ */ m(i, {
|
|
103
|
+
"data-part": "grip",
|
|
104
|
+
direction: a,
|
|
105
|
+
gap: "3xs",
|
|
106
|
+
opacity: o,
|
|
107
|
+
transition: "opacity 120ms ease",
|
|
108
|
+
children: s
|
|
109
|
+
}), t[1] = r.gripDirection, t[2] = o, t[3] = c) : c = t[3], c;
|
|
110
|
+
}, G = (e) => {
|
|
111
|
+
let t = f(3), { active: n, layout: i } = e, a = +!!n, o;
|
|
112
|
+
return t[0] !== i.bar || t[1] !== a ? (o = /* @__PURE__ */ m(r, {
|
|
113
|
+
"data-part": "bar",
|
|
114
|
+
position: "absolute",
|
|
115
|
+
borderRadius: "xs",
|
|
116
|
+
bg: "fg.info",
|
|
117
|
+
opacity: a,
|
|
118
|
+
transition: "opacity 120ms ease",
|
|
119
|
+
pointerEvents: "none",
|
|
120
|
+
...i.bar
|
|
121
|
+
}), t[0] = i.bar, t[1] = a, t[2] = o) : o = t[2], o;
|
|
122
|
+
}, K = (e) => {
|
|
123
|
+
let t = f(46), { css: n, axis: i, bounds: a, collapsed: o, collapsible: s, contentPanelId: c, dragging: l, resizablePanelId: u, resizeLabel: d, resolvedPanelSize: p, separator: g, onCollapse: _, onResizeKeyDown: y, onResizeStart: S } = e, C = g === "line", w = i.separatorOrientation === "vertical", T = C ? "1px" : "panel-gap", E;
|
|
124
|
+
t[0] !== w || t[1] !== T ? (E = U(w, T), t[0] = w, t[1] = T, t[2] = E) : E = t[2];
|
|
125
|
+
let D = E, [O, k] = x(!1), A = b(0), j = O || l, M;
|
|
126
|
+
t[3] === o ? M = t[4] : (M = o ? {
|
|
127
|
+
"aria-hidden": !0,
|
|
128
|
+
tabIndex: -1
|
|
129
|
+
} : { tabIndex: 0 }, t[3] = o, t[4] = M);
|
|
130
|
+
let N = M, P, F;
|
|
131
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (P = () => () => window.clearTimeout(A.current), F = [], t[5] = P, t[6] = F) : (P = t[5], F = t[6]), v(P, F);
|
|
132
|
+
let I;
|
|
133
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (I = () => {
|
|
134
|
+
A.current = window.setTimeout(() => k(!0), V);
|
|
135
|
+
}, t[7] = I) : I = t[7];
|
|
136
|
+
let L = I, R;
|
|
137
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (R = () => {
|
|
138
|
+
window.clearTimeout(A.current), k(!1);
|
|
139
|
+
}, t[8] = R) : R = t[8];
|
|
140
|
+
let z = R, B = i.separatorOrientation, ee = `${u} ${c}`, H;
|
|
141
|
+
t[9] !== a.minSize || t[10] !== s ? (H = s ? 0 : Math.round(a.minSize), t[9] = a.minSize, t[10] = s, t[11] = H) : H = t[11];
|
|
142
|
+
let K;
|
|
143
|
+
t[12] === a.maxSize ? K = t[13] : (K = Math.round(a.maxSize), t[12] = a.maxSize, t[13] = K);
|
|
144
|
+
let q;
|
|
145
|
+
t[14] === p ? q = t[15] : (q = Math.round(p), t[14] = p, t[15] = q);
|
|
146
|
+
let J = C ? "border.subtle" : void 0, te;
|
|
147
|
+
t[16] === D.hitArea ? te = t[17] : (te = {
|
|
148
|
+
content: "\"\"",
|
|
149
|
+
position: "absolute",
|
|
150
|
+
...D.hitArea
|
|
151
|
+
}, t[16] = D.hitArea, t[17] = te);
|
|
152
|
+
let ne;
|
|
153
|
+
t[18] === Symbol.for("react.memo_cache_sentinel") ? (ne = {
|
|
154
|
+
"& [data-part=bar]": { opacity: 1 },
|
|
155
|
+
"& [data-part=grip]": { opacity: 0 }
|
|
156
|
+
}, t[18] = ne) : ne = t[18];
|
|
157
|
+
let re = s ? _ : void 0, ie;
|
|
158
|
+
t[19] !== j || t[20] !== D || t[21] !== C ? (ie = C ? null : /* @__PURE__ */ m(W, {
|
|
159
|
+
active: j,
|
|
160
|
+
layout: D
|
|
161
|
+
}), t[19] = j, t[20] = D, t[21] = C, t[22] = ie) : ie = t[22];
|
|
162
|
+
let ae;
|
|
163
|
+
t[23] !== j || t[24] !== D ? (ae = /* @__PURE__ */ m(G, {
|
|
164
|
+
active: j,
|
|
165
|
+
layout: D
|
|
166
|
+
}), t[23] = j, t[24] = D, t[25] = ae) : ae = t[25];
|
|
167
|
+
let oe;
|
|
168
|
+
return t[26] !== i.cursor || t[27] !== i.separatorOrientation || t[28] !== o || t[29] !== n || t[30] !== D.h || t[31] !== D.w || t[32] !== y || t[33] !== S || t[34] !== d || t[35] !== H || t[36] !== K || t[37] !== q || t[38] !== J || t[39] !== te || t[40] !== re || t[41] !== ie || t[42] !== ae || t[43] !== ee || t[44] !== N ? (oe = /* @__PURE__ */ h(r, {
|
|
169
|
+
css: n,
|
|
170
|
+
"data-collapsed": o,
|
|
171
|
+
role: "separator",
|
|
172
|
+
"aria-label": d,
|
|
173
|
+
"aria-orientation": B,
|
|
174
|
+
"aria-controls": ee,
|
|
175
|
+
"aria-valuemin": H,
|
|
176
|
+
"aria-valuemax": K,
|
|
177
|
+
"aria-valuenow": q,
|
|
178
|
+
...N,
|
|
179
|
+
position: "relative",
|
|
180
|
+
zIndex: "docked",
|
|
181
|
+
alignItems: "center",
|
|
182
|
+
justifyContent: "center",
|
|
183
|
+
flexShrink: 0,
|
|
184
|
+
w: D.w,
|
|
185
|
+
h: D.h,
|
|
186
|
+
bg: J,
|
|
187
|
+
cursor: i.cursor,
|
|
188
|
+
touchAction: "none",
|
|
189
|
+
outline: "none",
|
|
190
|
+
_before: te,
|
|
191
|
+
_focusVisible: ne,
|
|
192
|
+
onPointerEnter: L,
|
|
193
|
+
onPointerLeave: z,
|
|
194
|
+
onPointerDown: S,
|
|
195
|
+
onDoubleClick: re,
|
|
196
|
+
onKeyDown: y,
|
|
197
|
+
children: [ie, ae]
|
|
198
|
+
}), t[26] = i.cursor, t[27] = i.separatorOrientation, t[28] = o, t[29] = n, t[30] = D.h, t[31] = D.w, t[32] = y, t[33] = S, t[34] = d, t[35] = H, t[36] = K, t[37] = q, t[38] = J, t[39] = te, t[40] = re, t[41] = ie, t[42] = ae, t[43] = ee, t[44] = N, t[45] = oe) : oe = t[45], oe;
|
|
199
|
+
};
|
|
200
|
+
function q(e) {
|
|
201
|
+
return /* @__PURE__ */ m(r, {
|
|
202
|
+
boxSize: "0.5",
|
|
203
|
+
borderRadius: "full",
|
|
204
|
+
bg: "border"
|
|
205
|
+
}, e);
|
|
206
|
+
}
|
|
207
|
+
//#endregion
|
|
208
|
+
//#region src/components/layout/resizable-split-layout.panels.tsx
|
|
209
|
+
var J = (e) => {
|
|
210
|
+
let t = f(35), { styles: n, axis: i, bounds: a, collapsed: o, collapsible: s, contentPanel: c, contentPanelId: l, contentPanelRef: u, resizablePanel: d, resizablePanelId: g, resizablePanelRef: _, dragging: v, resizeLabel: y, resolvedPanelSize: b, separator: x, onCollapse: S, onResizeKeyDown: C, onResizeStart: w } = e, T = o ? !0 : void 0, E;
|
|
211
|
+
t[0] !== o || t[1] !== d || t[2] !== g || t[3] !== _ || t[4] !== n.resizablePanel || t[5] !== T ? (E = /* @__PURE__ */ m(r, {
|
|
212
|
+
id: g,
|
|
213
|
+
ref: _,
|
|
214
|
+
css: n.resizablePanel,
|
|
215
|
+
"data-collapsed": o,
|
|
216
|
+
"aria-hidden": T,
|
|
217
|
+
children: d
|
|
218
|
+
}, "resizable-panel"), t[0] = o, t[1] = d, t[2] = g, t[3] = _, t[4] = n.resizablePanel, t[5] = T, t[6] = E) : E = t[6];
|
|
219
|
+
let D = E, O;
|
|
220
|
+
t[7] !== c || t[8] !== l || t[9] !== u || t[10] !== n.contentPanel ? (O = /* @__PURE__ */ m(r, {
|
|
221
|
+
id: l,
|
|
222
|
+
ref: u,
|
|
223
|
+
css: n.contentPanel,
|
|
224
|
+
children: c
|
|
225
|
+
}, "content-panel"), t[7] = c, t[8] = l, t[9] = u, t[10] = n.contentPanel, t[11] = O) : O = t[11];
|
|
226
|
+
let k = O, A;
|
|
227
|
+
t[12] !== i || t[13] !== a || t[14] !== o || t[15] !== s || t[16] !== l || t[17] !== v || t[18] !== S || t[19] !== C || t[20] !== w || t[21] !== g || t[22] !== y || t[23] !== b || t[24] !== x || t[25] !== n.separator ? (A = /* @__PURE__ */ m(K, {
|
|
228
|
+
css: n.separator,
|
|
229
|
+
axis: i,
|
|
230
|
+
bounds: a,
|
|
231
|
+
collapsed: o,
|
|
232
|
+
collapsible: s,
|
|
233
|
+
contentPanelId: l,
|
|
234
|
+
resizablePanelId: g,
|
|
235
|
+
dragging: v,
|
|
236
|
+
resizeLabel: y,
|
|
237
|
+
resolvedPanelSize: b,
|
|
238
|
+
separator: x,
|
|
239
|
+
onCollapse: S,
|
|
240
|
+
onResizeKeyDown: C,
|
|
241
|
+
onResizeStart: w
|
|
242
|
+
}, "resize-handle"), t[12] = i, t[13] = a, t[14] = o, t[15] = s, t[16] = l, t[17] = v, t[18] = S, t[19] = C, t[20] = w, t[21] = g, t[22] = y, t[23] = b, t[24] = x, t[25] = n.separator, t[26] = A) : A = t[26];
|
|
243
|
+
let j = A;
|
|
244
|
+
if (i.panelFirst) {
|
|
245
|
+
let e;
|
|
246
|
+
return t[27] !== k || t[28] !== D || t[29] !== j ? (e = /* @__PURE__ */ h(p, { children: [
|
|
247
|
+
D,
|
|
248
|
+
j,
|
|
249
|
+
k
|
|
250
|
+
] }), t[27] = k, t[28] = D, t[29] = j, t[30] = e) : e = t[30], e;
|
|
251
|
+
}
|
|
252
|
+
let M;
|
|
253
|
+
return t[31] !== k || t[32] !== D || t[33] !== j ? (M = /* @__PURE__ */ h(p, { children: [
|
|
254
|
+
k,
|
|
255
|
+
j,
|
|
256
|
+
D
|
|
257
|
+
] }), t[31] = k, t[32] = D, t[33] = j, t[34] = M) : M = t[34], M;
|
|
258
|
+
}, te = (e, t) => {
|
|
259
|
+
let n = f(4), [r, i] = x(0), a, o;
|
|
260
|
+
return n[0] !== t || n[1] !== e ? (a = () => {
|
|
261
|
+
let n = e.current;
|
|
262
|
+
if (!n) return;
|
|
263
|
+
let r = () => {
|
|
264
|
+
i(n.getBoundingClientRect()[t]);
|
|
265
|
+
};
|
|
266
|
+
if (r(), typeof ResizeObserver > "u") return;
|
|
267
|
+
let a = new ResizeObserver(r);
|
|
268
|
+
return a.observe(n), () => {
|
|
269
|
+
a.disconnect();
|
|
270
|
+
};
|
|
271
|
+
}, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), v(a, o), r;
|
|
272
|
+
}, ne = {
|
|
273
|
+
width: 1200,
|
|
274
|
+
height: 720
|
|
275
|
+
}, re = 24, ie = (e, t, n) => Math.min(Math.max(e, t), n), ae = (e, t) => e?.getBoundingClientRect()[t] ?? 0, oe = (e) => {
|
|
276
|
+
let t = f(95), n, r, a, o, s, c, l, u, p, h, g, _, S, C, w;
|
|
277
|
+
t[0] === e ? (n = t[1], r = t[2], a = t[3], o = t[4], s = t[5], c = t[6], l = t[7], u = t[8], p = t[9], h = t[10], g = t[11], _ = t[12], S = t[13], C = t[14], w = t[15]) : ({resizablePanel: c, contentPanel: n, resizableSide: u, defaultSizePx: p, minSizePx: h, maxSizePx: a, contentMinSizePx: g, collapsed: r, collapsible: _, resizeLabel: S, separator: C, layout: w, onSizeChange: s, onCollapsedChange: o, ...l} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = a, t[4] = o, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = p, t[10] = h, t[11] = g, t[12] = _, t[13] = S, t[14] = C, t[15] = w);
|
|
278
|
+
let T = u === void 0 ? "left" : u, E = p === void 0 ? 240 : p, D = h === void 0 ? 200 : h, O = g === void 0 ? 0 : g, k = _ === void 0 || _, A = S === void 0 ? "Resize panel" : S, j = C === void 0 ? "gap" : C, M = w === void 0 ? "split" : w, N;
|
|
279
|
+
t[16] === T ? N = t[17] : (N = R(T), t[16] = T, t[17] = N);
|
|
280
|
+
let P = N, F;
|
|
281
|
+
t[18] === Symbol.for("react.memo_cache_sentinel") ? (F = { key: "resizableSplitLayout" }, t[18] = F) : F = t[18];
|
|
282
|
+
let I = d(F), L = P.dimension === "width" ? "horizontal" : "vertical", B;
|
|
283
|
+
t[19] !== M || t[20] !== I || t[21] !== L ? (B = I({
|
|
284
|
+
orientation: L,
|
|
285
|
+
layout: M
|
|
286
|
+
}), t[19] = M, t[20] = I, t[21] = L, t[22] = B) : B = t[22];
|
|
287
|
+
let V = B, H = y(), U = b(null), W = b(null), G = b(null), K = b(se), q = te(U, P.dimension), oe = b(E), [le, ue] = x(E), [de, fe] = x(!1), [pe, me] = x(!1), Y = r ?? de, X, he;
|
|
288
|
+
t[23] !== P.dimension || t[24] !== Y || t[25] !== O || t[26] !== a || t[27] !== D || t[28] !== le || t[29] !== q ? (X = z({
|
|
289
|
+
rootSize: q,
|
|
290
|
+
fallbackRootSize: ne[P.dimension],
|
|
291
|
+
minSize: D,
|
|
292
|
+
maxSize: a,
|
|
293
|
+
contentMinSize: O
|
|
294
|
+
}), he = Y ? 0 : ie(le, X.minSize, X.maxSize), t[23] = P.dimension, t[24] = Y, t[25] = O, t[26] = a, t[27] = D, t[28] = le, t[29] = q, t[30] = X, t[31] = he) : (X = t[30], he = t[31]);
|
|
295
|
+
let ge = he, _e = `${H}-content`, ve = `${H}-resizable`, ye = `${ge}px`, be;
|
|
296
|
+
t[32] !== l.style || t[33] !== ye ? (be = {
|
|
297
|
+
...l.style,
|
|
298
|
+
"--split-size": ye
|
|
299
|
+
}, t[32] = l.style, t[33] = ye, t[34] = be) : be = t[34];
|
|
300
|
+
let xe = be, Se, Ce;
|
|
301
|
+
t[35] === E ? (Se = t[36], Ce = t[37]) : (Se = () => {
|
|
302
|
+
oe.current = E, ue(E);
|
|
303
|
+
}, Ce = [E], t[35] = E, t[36] = Se, t[37] = Ce), v(Se, Ce);
|
|
304
|
+
let we, Te;
|
|
305
|
+
t[38] === Symbol.for("react.memo_cache_sentinel") ? (we = () => () => K.current(), Te = [], t[38] = we, t[39] = Te) : (we = t[38], Te = t[39]), v(we, Te);
|
|
306
|
+
let Ee;
|
|
307
|
+
t[40] === Symbol.for("react.memo_cache_sentinel") ? (Ee = (e) => {
|
|
308
|
+
U.current?.style.setProperty("--split-size", `${e}px`);
|
|
309
|
+
}, t[40] = Ee) : Ee = t[40];
|
|
310
|
+
let De = Ee, Oe;
|
|
311
|
+
t[41] !== P.dimension || t[42] !== O || t[43] !== a || t[44] !== D || t[45] !== s ? (Oe = (e) => {
|
|
312
|
+
let t = z({
|
|
313
|
+
rootSize: ae(U.current, P.dimension),
|
|
314
|
+
fallbackRootSize: ne[P.dimension],
|
|
315
|
+
minSize: D,
|
|
316
|
+
maxSize: a,
|
|
317
|
+
contentMinSize: O
|
|
318
|
+
}), n = ie(e, t.minSize, t.maxSize);
|
|
319
|
+
oe.current = n, ue(n), De(n), s?.(n);
|
|
320
|
+
}, t[41] = P.dimension, t[42] = O, t[43] = a, t[44] = D, t[45] = s, t[46] = Oe) : Oe = t[46];
|
|
321
|
+
let Z = Oe, ke;
|
|
322
|
+
t[47] !== r || t[48] !== o ? (ke = (e) => {
|
|
323
|
+
r === void 0 && fe(e), o?.(e);
|
|
324
|
+
}, t[47] = r, t[48] = o, t[49] = ke) : ke = t[49];
|
|
325
|
+
let Q = ke, Ae;
|
|
326
|
+
t[50] !== P.cursor || t[51] !== P.dimension || t[52] !== P.pointerCoordinate || t[53] !== Y || t[54] !== k || t[55] !== Z || t[56] !== O || t[57] !== a || t[58] !== D || t[59] !== T || t[60] !== Q ? (Ae = (e) => {
|
|
327
|
+
if (e.button !== 0 || Y && !k) return;
|
|
328
|
+
e.preventDefault(), K.current();
|
|
329
|
+
let t = e.currentTarget, n = z({
|
|
330
|
+
rootSize: ae(U.current, P.dimension),
|
|
331
|
+
fallbackRootSize: ne[P.dimension],
|
|
332
|
+
minSize: D,
|
|
333
|
+
maxSize: a,
|
|
334
|
+
contentMinSize: O
|
|
335
|
+
}), r = e[P.pointerCoordinate], i = Y ? 0 : ae(W.current, P.dimension) || oe.current, o = document.body.style.cursor, s = document.body.style.userSelect, c = i === 0 ? 0 : ie(i, n.minSize, n.maxSize), l = Y, u = 0, d = (e) => {
|
|
336
|
+
W.current && (W.current.style.pointerEvents = e), G.current && (G.current.style.pointerEvents = e);
|
|
337
|
+
}, f = () => {
|
|
338
|
+
u ||= window.requestAnimationFrame(() => {
|
|
339
|
+
u = 0, De(c);
|
|
340
|
+
});
|
|
341
|
+
}, p = (e) => {
|
|
342
|
+
let t = ee({
|
|
343
|
+
side: T,
|
|
344
|
+
startSize: i,
|
|
345
|
+
pointerDelta: e[P.pointerCoordinate] - r,
|
|
346
|
+
minSize: n.minSize,
|
|
347
|
+
maxSize: n.maxSize,
|
|
348
|
+
collapsible: k
|
|
349
|
+
});
|
|
350
|
+
l = t.collapsed, c = t.size, f();
|
|
351
|
+
}, m = () => {
|
|
352
|
+
window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", m), window.removeEventListener("pointercancel", m), window.removeEventListener("blur", m), document.body.style.cursor = o, document.body.style.userSelect = s, t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), d(""), me(!1), u &&= (window.cancelAnimationFrame(u), 0), K.current = ce, l ? (De(0), Q(!0)) : (Q(!1), Z(c));
|
|
353
|
+
};
|
|
354
|
+
K.current = m, t.setPointerCapture(e.pointerId), document.body.style.cursor = P.cursor, document.body.style.userSelect = "none", d("none"), me(!0), window.addEventListener("pointermove", p), window.addEventListener("pointerup", m, { once: !0 }), window.addEventListener("pointercancel", m, { once: !0 }), window.addEventListener("blur", m, { once: !0 });
|
|
355
|
+
}, t[50] = P.cursor, t[51] = P.dimension, t[52] = P.pointerCoordinate, t[53] = Y, t[54] = k, t[55] = Z, t[56] = O, t[57] = a, t[58] = D, t[59] = T, t[60] = Q, t[61] = Ae) : Ae = t[61];
|
|
356
|
+
let je = Ae, Me;
|
|
357
|
+
t[62] !== k || t[63] !== Q ? (Me = () => {
|
|
358
|
+
k && Q(!0);
|
|
359
|
+
}, t[62] = k, t[63] = Q, t[64] = Me) : Me = t[64];
|
|
360
|
+
let Ne = Me, $;
|
|
361
|
+
t[65] !== P.deltaDirection || t[66] !== P.dimension || t[67] !== X || t[68] !== Y || t[69] !== k || t[70] !== Z || t[71] !== Q ? ($ = (e) => {
|
|
362
|
+
let t = P.dimension === "width" ? "ArrowLeft" : "ArrowUp", n = P.dimension === "width" ? "ArrowRight" : "ArrowDown", r = oe.current;
|
|
363
|
+
Y && (e.key === t || e.key === n || e.key === "End") ? (e.preventDefault(), Q(!1), Z(r)) : e.key === t ? (e.preventDefault(), Z(r - re * P.deltaDirection)) : e.key === n ? (e.preventDefault(), Z(r + re * P.deltaDirection)) : e.key === "Home" ? (e.preventDefault(), k ? Q(!0) : Z(X.minSize)) : e.key === "End" && (e.preventDefault(), Z(X.maxSize));
|
|
364
|
+
}, t[65] = P.deltaDirection, t[66] = P.dimension, t[67] = X, t[68] = Y, t[69] = k, t[70] = Z, t[71] = Q, t[72] = $) : $ = t[72];
|
|
365
|
+
let Pe = $, Fe;
|
|
366
|
+
t[73] !== P || t[74] !== X || t[75] !== Y || t[76] !== k || t[77] !== n || t[78] !== _e || t[79] !== pe || t[80] !== Ne || t[81] !== Pe || t[82] !== je || t[83] !== c || t[84] !== ve || t[85] !== A || t[86] !== ge || t[87] !== j || t[88] !== V ? (Fe = /* @__PURE__ */ m(J, {
|
|
367
|
+
styles: V,
|
|
368
|
+
axis: P,
|
|
369
|
+
bounds: X,
|
|
370
|
+
collapsed: Y,
|
|
371
|
+
collapsible: k,
|
|
372
|
+
contentPanel: n,
|
|
373
|
+
contentPanelId: _e,
|
|
374
|
+
contentPanelRef: G,
|
|
375
|
+
resizablePanel: c,
|
|
376
|
+
resizablePanelId: ve,
|
|
377
|
+
resizablePanelRef: W,
|
|
378
|
+
dragging: pe,
|
|
379
|
+
resizeLabel: A,
|
|
380
|
+
resolvedPanelSize: ge,
|
|
381
|
+
separator: j,
|
|
382
|
+
onCollapse: Ne,
|
|
383
|
+
onResizeKeyDown: Pe,
|
|
384
|
+
onResizeStart: je
|
|
385
|
+
}), t[73] = P, t[74] = X, t[75] = Y, t[76] = k, t[77] = n, t[78] = _e, t[79] = pe, t[80] = Ne, t[81] = Pe, t[82] = je, t[83] = c, t[84] = ve, t[85] = A, t[86] = ge, t[87] = j, t[88] = V, t[89] = Fe) : Fe = t[89];
|
|
386
|
+
let Ie;
|
|
387
|
+
return t[90] !== l || t[91] !== xe || t[92] !== V.root || t[93] !== Fe ? (Ie = /* @__PURE__ */ m(i, {
|
|
388
|
+
ref: U,
|
|
389
|
+
css: V.root,
|
|
390
|
+
...l,
|
|
391
|
+
style: xe,
|
|
392
|
+
children: Fe
|
|
393
|
+
}), t[90] = l, t[91] = xe, t[92] = V.root, t[93] = Fe, t[94] = Ie) : Ie = t[94], Ie;
|
|
394
|
+
};
|
|
395
|
+
function se() {}
|
|
396
|
+
function ce() {}
|
|
397
|
+
//#endregion
|
|
398
|
+
//#region src/components/tree-list/tree-list-background.tsx
|
|
399
|
+
var le = (e) => {
|
|
400
|
+
let n = f(8), { actions: i, children: a } = e, o;
|
|
401
|
+
n[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ m(r, {
|
|
402
|
+
position: "absolute",
|
|
403
|
+
inset: "0",
|
|
404
|
+
zIndex: 0,
|
|
405
|
+
"aria-hidden": !0,
|
|
406
|
+
"data-tree-list-background": "true"
|
|
407
|
+
}), n[0] = o) : o = n[0];
|
|
408
|
+
let s;
|
|
409
|
+
n[1] === i ? s = n[2] : (s = /* @__PURE__ */ m(t, {
|
|
410
|
+
actions: i,
|
|
411
|
+
closeOnSelect: !1,
|
|
412
|
+
children: o
|
|
413
|
+
}), n[1] = i, n[2] = s);
|
|
414
|
+
let c;
|
|
415
|
+
n[3] === a ? c = n[4] : (c = /* @__PURE__ */ m(r, {
|
|
416
|
+
position: "relative",
|
|
417
|
+
zIndex: 1,
|
|
418
|
+
w: "full",
|
|
419
|
+
minW: "0",
|
|
420
|
+
maxW: "full",
|
|
421
|
+
children: a
|
|
422
|
+
}), n[3] = a, n[4] = c);
|
|
423
|
+
let l;
|
|
424
|
+
return n[5] !== s || n[6] !== c ? (l = /* @__PURE__ */ h(r, {
|
|
425
|
+
position: "relative",
|
|
426
|
+
flex: "1 0 auto",
|
|
427
|
+
minH: "full",
|
|
428
|
+
w: "full",
|
|
429
|
+
minW: "0",
|
|
430
|
+
maxW: "full",
|
|
431
|
+
children: [s, c]
|
|
432
|
+
}), n[5] = s, n[6] = c, n[7] = l) : l = n[7], l;
|
|
433
|
+
}, ue = (e, t) => t.includes(e), de = (e, t) => Array.isArray(t) ? t.includes(e) : t === e, fe = (e) => e.isNavigable || e.navigationIntent !== void 0, pe = (e) => e.children ?? [], me = (e) => pe(e).length > 0 || e.isContainer === !0, Y = (e) => {
|
|
434
|
+
let { rows: t, sectionId: n, nodes: r, expandedNodeIds: i, level: a, parentNodeId: o } = e;
|
|
435
|
+
for (let e of r) {
|
|
436
|
+
t.push({
|
|
437
|
+
kind: "node",
|
|
438
|
+
key: `${n}:${e.id}`,
|
|
439
|
+
sectionId: n,
|
|
440
|
+
node: e,
|
|
441
|
+
level: a,
|
|
442
|
+
parentNodeId: o
|
|
443
|
+
});
|
|
444
|
+
let r = pe(e);
|
|
445
|
+
r.length !== 0 && ue(e.id, i) && Y({
|
|
446
|
+
rows: t,
|
|
447
|
+
sectionId: n,
|
|
448
|
+
nodes: r,
|
|
449
|
+
expandedNodeIds: i,
|
|
450
|
+
level: a + 1,
|
|
451
|
+
parentNodeId: e.id
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
}, X = (e, t, n) => {
|
|
455
|
+
let r = [];
|
|
456
|
+
for (let i of e) {
|
|
457
|
+
let e = i.collapsible !== !1 && i.label !== void 0, a = !e || ue(i.id, t);
|
|
458
|
+
if (i.label && r.push({
|
|
459
|
+
kind: "section-header",
|
|
460
|
+
key: `header:${i.id}`,
|
|
461
|
+
sectionId: i.id,
|
|
462
|
+
section: i,
|
|
463
|
+
collapsible: e,
|
|
464
|
+
expanded: a
|
|
465
|
+
}), a) {
|
|
466
|
+
if (i.nodes.length === 0) {
|
|
467
|
+
i.emptyState && r.push({
|
|
468
|
+
kind: "section-empty",
|
|
469
|
+
key: `empty:${i.id}`,
|
|
470
|
+
sectionId: i.id,
|
|
471
|
+
emptyState: i.emptyState
|
|
472
|
+
});
|
|
473
|
+
continue;
|
|
474
|
+
}
|
|
475
|
+
Y({
|
|
476
|
+
rows: r,
|
|
477
|
+
sectionId: i.id,
|
|
478
|
+
nodes: i.nodes,
|
|
479
|
+
expandedNodeIds: n,
|
|
480
|
+
level: 0
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
return r;
|
|
485
|
+
}, he = (e) => e.kind === "node" ? e.node.id : e.key, ge = (e) => e.kind === "node" ? e.node.disabled !== !0 : e.kind === "section-header" && e.collapsible, _e = (e) => e.filter(ge), ve = (e, t, n) => {
|
|
486
|
+
let r = _e(n), i = new Set(r.map(he));
|
|
487
|
+
if (e && i.has(e)) return e;
|
|
488
|
+
let a = (Array.isArray(t) ? t : t ? [t] : []).find((e) => i.has(e));
|
|
489
|
+
if (a) return a;
|
|
490
|
+
let o = r[0];
|
|
491
|
+
return o ? he(o) : void 0;
|
|
492
|
+
}, ye = (e) => {
|
|
493
|
+
let { row: t, focusableRows: n, currentIndex: r, key: i } = e;
|
|
494
|
+
if (i === "Enter" || i === " ") return {
|
|
495
|
+
type: "toggle-section",
|
|
496
|
+
sectionId: t.sectionId
|
|
497
|
+
};
|
|
498
|
+
if (i === "ArrowRight") {
|
|
499
|
+
if (!t.expanded) return {
|
|
500
|
+
type: "toggle-section",
|
|
501
|
+
sectionId: t.sectionId
|
|
502
|
+
};
|
|
503
|
+
let e = n[r + 1];
|
|
504
|
+
return e?.kind === "node" && e.sectionId === t.sectionId ? {
|
|
505
|
+
type: "focus",
|
|
506
|
+
rowId: e.node.id
|
|
507
|
+
} : null;
|
|
508
|
+
}
|
|
509
|
+
return i === "ArrowLeft" && t.expanded ? {
|
|
510
|
+
type: "toggle-section",
|
|
511
|
+
sectionId: t.sectionId
|
|
512
|
+
} : null;
|
|
513
|
+
}, be = (e) => {
|
|
514
|
+
let { row: t, focusableRows: n, currentIndex: r, expandedNodeIds: i, key: a } = e, o = ue(t.node.id, i), s = me(t.node);
|
|
515
|
+
if (a === "ArrowRight") {
|
|
516
|
+
if (!s) return null;
|
|
517
|
+
if (!o) return {
|
|
518
|
+
type: "toggle-node",
|
|
519
|
+
nodeId: t.node.id
|
|
520
|
+
};
|
|
521
|
+
let e = n[r + 1];
|
|
522
|
+
return e?.kind === "node" && e.parentNodeId === t.node.id ? {
|
|
523
|
+
type: "focus",
|
|
524
|
+
rowId: e.node.id
|
|
525
|
+
} : null;
|
|
526
|
+
}
|
|
527
|
+
if (a === "ArrowLeft") {
|
|
528
|
+
if (s && o) return {
|
|
529
|
+
type: "toggle-node",
|
|
530
|
+
nodeId: t.node.id
|
|
531
|
+
};
|
|
532
|
+
if (t.parentNodeId) return {
|
|
533
|
+
type: "focus",
|
|
534
|
+
rowId: t.parentNodeId
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
return null;
|
|
538
|
+
}, xe = (e) => {
|
|
539
|
+
let { rows: t, focusedRowId: n, activeNodeId: r, expandedNodeIds: i, key: a } = e, o = _e(t);
|
|
540
|
+
if (o.length === 0) return null;
|
|
541
|
+
let s = ve(n, r, t), c = Math.max(0, o.findIndex((e) => he(e) === s)), l = o[c];
|
|
542
|
+
if (!l) return null;
|
|
543
|
+
let u = (e) => {
|
|
544
|
+
let t = Math.min(Math.max(e, 0), o.length - 1);
|
|
545
|
+
return {
|
|
546
|
+
type: "focus",
|
|
547
|
+
rowId: he(o[t])
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
return a === "ArrowDown" ? u(c + 1) : a === "ArrowUp" ? u(c - 1) : a === "Home" ? u(0) : a === "End" ? u(o.length - 1) : l.kind === "section-header" ? ye({
|
|
551
|
+
row: l,
|
|
552
|
+
focusableRows: o,
|
|
553
|
+
currentIndex: c,
|
|
554
|
+
key: a
|
|
555
|
+
}) : be({
|
|
556
|
+
row: l,
|
|
557
|
+
focusableRows: o,
|
|
558
|
+
currentIndex: c,
|
|
559
|
+
expandedNodeIds: i,
|
|
560
|
+
key: a
|
|
561
|
+
});
|
|
562
|
+
}, Se = "application/x-pstdio-tree-node", Ce = (e, t) => {
|
|
563
|
+
e.setData(Se, t);
|
|
564
|
+
}, we = (e) => e.getData(Se) || void 0, Te = (e) => {
|
|
565
|
+
let t = f(8), { children: n, onMoveNode: i } = e, a;
|
|
566
|
+
t[0] === i ? a = t[1] : (a = (e) => {
|
|
567
|
+
i && (e.preventDefault(), e.dataTransfer.dropEffect = "move");
|
|
568
|
+
}, t[0] = i, t[1] = a);
|
|
569
|
+
let o = a, s;
|
|
570
|
+
t[2] === i ? s = t[3] : (s = (e) => {
|
|
571
|
+
if (!i) return;
|
|
572
|
+
e.preventDefault();
|
|
573
|
+
let t = we(e.dataTransfer);
|
|
574
|
+
t && i(t);
|
|
575
|
+
}, t[2] = i, t[3] = s);
|
|
576
|
+
let c = s, l;
|
|
577
|
+
return t[4] !== n || t[5] !== o || t[6] !== c ? (l = /* @__PURE__ */ m(r, {
|
|
578
|
+
p: "xs",
|
|
579
|
+
w: "full",
|
|
580
|
+
minW: "0",
|
|
581
|
+
maxW: "full",
|
|
582
|
+
minH: "full",
|
|
583
|
+
flex: "1 0 auto",
|
|
584
|
+
onDragOver: o,
|
|
585
|
+
onDrop: c,
|
|
586
|
+
children: n
|
|
587
|
+
}), t[4] = n, t[5] = o, t[6] = c, t[7] = l) : l = t[7], l;
|
|
588
|
+
}, Ee = (e) => e <= 0 ? "sm" : `calc(var(--chakra-spacing-1) + ${e} * 12px)`, De = (e) => {
|
|
589
|
+
let { input: t, icon: n, level: a } = e, [o, c] = x(t.defaultValue ?? ""), [l, u] = x(), d = b(null), f = b(!1), p = async () => {
|
|
590
|
+
if (!f.current) {
|
|
591
|
+
f.current = !0, u(void 0);
|
|
592
|
+
try {
|
|
593
|
+
await t.onCommit(o.trim());
|
|
594
|
+
} catch (e) {
|
|
595
|
+
u(e instanceof Error ? e.message : "Could not create file."), queueMicrotask(() => d.current?.focus());
|
|
596
|
+
} finally {
|
|
597
|
+
f.current = !1;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
};
|
|
601
|
+
return /* @__PURE__ */ h(i, {
|
|
602
|
+
h: "1.75rem",
|
|
603
|
+
w: "full",
|
|
604
|
+
minW: "0",
|
|
605
|
+
alignItems: "center",
|
|
606
|
+
gap: "1",
|
|
607
|
+
pr: "sm",
|
|
608
|
+
pl: Ee(a),
|
|
609
|
+
onMouseDown: (e) => e.stopPropagation(),
|
|
610
|
+
children: [n ? /* @__PURE__ */ m(r, {
|
|
611
|
+
boxSize: "16px",
|
|
612
|
+
color: "fg.muted",
|
|
613
|
+
flexShrink: 0,
|
|
614
|
+
display: "inline-flex",
|
|
615
|
+
alignItems: "center",
|
|
616
|
+
justifyContent: "center",
|
|
617
|
+
css: { "& > svg": {
|
|
618
|
+
width: "16px",
|
|
619
|
+
height: "16px"
|
|
620
|
+
} },
|
|
621
|
+
children: n
|
|
622
|
+
}) : null, /* @__PURE__ */ m(s, {
|
|
623
|
+
ref: d,
|
|
624
|
+
autoFocus: !0,
|
|
625
|
+
size: "xs",
|
|
626
|
+
value: o,
|
|
627
|
+
"aria-label": t.ariaLabel,
|
|
628
|
+
"aria-invalid": !!l || void 0,
|
|
629
|
+
placeholder: t.placeholder,
|
|
630
|
+
title: l,
|
|
631
|
+
onChange: (e) => c(e.currentTarget.value),
|
|
632
|
+
onBlur: () => {
|
|
633
|
+
f.current || t.onCancel?.();
|
|
634
|
+
},
|
|
635
|
+
onKeyDown: (e) => {
|
|
636
|
+
e.stopPropagation(), e.key === "Enter" && (e.preventDefault(), p()), e.key === "Escape" && !f.current && (e.preventDefault(), t.onCancel?.());
|
|
637
|
+
}
|
|
638
|
+
})]
|
|
639
|
+
});
|
|
640
|
+
}, Oe = (e) => {
|
|
641
|
+
let t = f(69), { sectionId: r, node: i, level: a, expandedNodeIds: o, activeNodeId: s, rowVariant: c, nodeGap: u, linkComponent: d, tabIndex: p, onFocus: h, onNavigate: g, onToggleNode: _, onMoveNode: v } = e;
|
|
642
|
+
if (i.inlineInput) {
|
|
643
|
+
let e;
|
|
644
|
+
return t[0] !== a || t[1] !== i.icon || t[2] !== i.inlineInput ? (e = /* @__PURE__ */ m(De, {
|
|
645
|
+
input: i.inlineInput,
|
|
646
|
+
icon: i.icon,
|
|
647
|
+
level: a
|
|
648
|
+
}), t[0] = a, t[1] = i.icon, t[2] = i.inlineInput, t[3] = e) : e = t[3], e;
|
|
649
|
+
}
|
|
650
|
+
let y;
|
|
651
|
+
t[4] === i ? y = t[5] : (y = me(i), t[4] = i, t[5] = y);
|
|
652
|
+
let b = y, x;
|
|
653
|
+
t[6] !== o || t[7] !== b || t[8] !== i.id ? (x = b && ue(i.id, o), t[6] = o, t[7] = b, t[8] = i.id, t[9] = x) : x = t[9];
|
|
654
|
+
let S = x, C;
|
|
655
|
+
t[10] !== s || t[11] !== i.id ? (C = de(i.id, s), t[10] = s, t[11] = i.id, t[12] = C) : C = t[12];
|
|
656
|
+
let w = C, T = i.disabled === !0, E;
|
|
657
|
+
t[13] === i ? E = t[14] : (E = fe(i), t[13] = i, t[14] = E);
|
|
658
|
+
let D = E, O = !!(d && i.href && D && !b && !T), k;
|
|
659
|
+
t[15] !== b || t[16] !== T || t[17] !== D || t[18] !== i || t[19] !== g || t[20] !== _ || t[21] !== r ? (k = () => {
|
|
660
|
+
if (!T) {
|
|
661
|
+
if (b) {
|
|
662
|
+
_?.(i.id);
|
|
663
|
+
return;
|
|
664
|
+
}
|
|
665
|
+
if (D && g) {
|
|
666
|
+
g({
|
|
667
|
+
sectionId: r,
|
|
668
|
+
nodeId: i.id,
|
|
669
|
+
node: i,
|
|
670
|
+
intent: i.navigationIntent
|
|
671
|
+
});
|
|
672
|
+
return;
|
|
673
|
+
}
|
|
674
|
+
i.onActivate?.();
|
|
675
|
+
}
|
|
676
|
+
}, t[15] = b, t[16] = T, t[17] = D, t[18] = i, t[19] = g, t[20] = _, t[21] = r, t[22] = k) : k = t[22];
|
|
677
|
+
let A = k, j;
|
|
678
|
+
t[23] === i.id ? j = t[24] : (j = (e) => {
|
|
679
|
+
Ce(e.dataTransfer, i.id), e.dataTransfer.effectAllowed = "move";
|
|
680
|
+
}, t[23] = i.id, t[24] = j);
|
|
681
|
+
let M = j, N;
|
|
682
|
+
t[25] !== i.canDrop || t[26] !== v ? (N = (e) => {
|
|
683
|
+
v && (e.stopPropagation(), i.canDrop && (e.preventDefault(), e.dataTransfer.dropEffect = "move"));
|
|
684
|
+
}, t[25] = i.canDrop, t[26] = v, t[27] = N) : N = t[27];
|
|
685
|
+
let P = N, F;
|
|
686
|
+
t[28] !== i.canDrop || t[29] !== i.id || t[30] !== v ? (F = (e) => {
|
|
687
|
+
if (!v || (e.stopPropagation(), !i.canDrop)) return;
|
|
688
|
+
e.preventDefault();
|
|
689
|
+
let t = we(e.dataTransfer);
|
|
690
|
+
t && t !== i.id && v(t, i.id);
|
|
691
|
+
}, t[28] = i.canDrop, t[29] = i.id, t[30] = v, t[31] = F) : F = t[31];
|
|
692
|
+
let I = F, L;
|
|
693
|
+
t[32] !== i.actions || t[33] !== i.id || t[34] !== r ? (L = i.actions?.map((e) => ({
|
|
694
|
+
...e,
|
|
695
|
+
onAction: e.onAction ? (t) => e.onAction?.({
|
|
696
|
+
sectionId: r,
|
|
697
|
+
nodeId: i.id,
|
|
698
|
+
...t
|
|
699
|
+
}) : void 0
|
|
700
|
+
})), t[32] = i.actions, t[33] = i.id, t[34] = r, t[35] = L) : L = t[35];
|
|
701
|
+
let R, z;
|
|
702
|
+
if (t[36] !== i || t[37] !== L) {
|
|
703
|
+
let { inlineInput: e, rowVariant: n, ...r } = {
|
|
704
|
+
...i,
|
|
705
|
+
actions: L
|
|
706
|
+
};
|
|
707
|
+
z = n, R = r, t[36] = i, t[37] = L, t[38] = R, t[39] = z;
|
|
708
|
+
} else R = t[38], z = t[39];
|
|
709
|
+
let B = z ?? c, ee = a + 1, V = b ? S : void 0, H;
|
|
710
|
+
t[40] !== i.id || t[41] !== _ ? (H = () => _?.(i.id), t[40] = i.id, t[41] = _, t[42] = H) : H = t[42];
|
|
711
|
+
let U;
|
|
712
|
+
t[43] !== S || t[44] !== A || t[45] !== b || t[46] !== w || t[47] !== a || t[48] !== R || t[49] !== i.id || t[50] !== h || t[51] !== ee || t[52] !== V || t[53] !== H || t[54] !== B || t[55] !== p ? (U = {
|
|
713
|
+
...R,
|
|
714
|
+
depth: a,
|
|
715
|
+
variant: B,
|
|
716
|
+
isSelected: w,
|
|
717
|
+
isExpanded: S,
|
|
718
|
+
showExpandToggle: b,
|
|
719
|
+
tabIndex: p,
|
|
720
|
+
"data-tree-list-focus-id": i.id,
|
|
721
|
+
"aria-level": ee,
|
|
722
|
+
"aria-expanded": V,
|
|
723
|
+
"data-tree-list-node-id": i.id,
|
|
724
|
+
onFocus: h,
|
|
725
|
+
onActivate: A,
|
|
726
|
+
onToggleExpand: H
|
|
727
|
+
}, t[43] = S, t[44] = A, t[45] = b, t[46] = w, t[47] = a, t[48] = R, t[49] = i.id, t[50] = h, t[51] = ee, t[52] = V, t[53] = H, t[54] = B, t[55] = p, t[56] = U) : U = t[56];
|
|
728
|
+
let W = U, G;
|
|
729
|
+
t[57] !== d || t[58] !== O || t[59] !== i.href || t[60] !== W ? (G = O && d && i.href ? /* @__PURE__ */ m(d, {
|
|
730
|
+
to: i.href,
|
|
731
|
+
children: /* @__PURE__ */ m(n, {
|
|
732
|
+
...W,
|
|
733
|
+
asChild: !0
|
|
734
|
+
})
|
|
735
|
+
}) : /* @__PURE__ */ m(n, { ...W }), t[57] = d, t[58] = O, t[59] = i.href, t[60] = W, t[61] = G) : G = t[61];
|
|
736
|
+
let K = G, q = !!(v && i.canDrag), J = i.canDrag ? M : void 0, te = v ? P : void 0, ne = v ? I : void 0, re;
|
|
737
|
+
return t[62] !== u || t[63] !== K || t[64] !== q || t[65] !== J || t[66] !== te || t[67] !== ne ? (re = /* @__PURE__ */ m(l, {
|
|
738
|
+
gap: u,
|
|
739
|
+
w: "full",
|
|
740
|
+
minW: "0",
|
|
741
|
+
maxW: "full",
|
|
742
|
+
draggable: q,
|
|
743
|
+
onDragStart: J,
|
|
744
|
+
onDragOver: te,
|
|
745
|
+
onDrop: ne,
|
|
746
|
+
children: K
|
|
747
|
+
}), t[62] = u, t[63] = K, t[64] = q, t[65] = J, t[66] = te, t[67] = ne, t[68] = re) : re = t[68], re;
|
|
748
|
+
}, Z = (t) => {
|
|
749
|
+
let n = f(9), { sectionId: r, actions: i } = t;
|
|
750
|
+
if (i.length === 0) return null;
|
|
751
|
+
let s, l;
|
|
752
|
+
n[0] === Symbol.for("react.memo_cache_sentinel") ? (s = {
|
|
753
|
+
opacity: "1",
|
|
754
|
+
pointerEvents: "auto"
|
|
755
|
+
}, l = {
|
|
756
|
+
opacity: "1",
|
|
757
|
+
pointerEvents: "auto"
|
|
758
|
+
}, n[0] = s, n[1] = l) : (s = n[0], l = n[1]);
|
|
759
|
+
let u;
|
|
760
|
+
if (n[2] !== i || n[3] !== r) {
|
|
761
|
+
let t;
|
|
762
|
+
n[5] === r ? t = n[6] : (t = (t) => t.menuItems && t.menuItems.length >= 8 ? /* @__PURE__ */ m(e, { action: t }, t.id) : t.menuItems && t.menuItems.length > 0 ? /* @__PURE__ */ h(c.Root, { children: [/* @__PURE__ */ m(c.Trigger, {
|
|
763
|
+
asChild: !0,
|
|
764
|
+
children: /* @__PURE__ */ m(o, {
|
|
765
|
+
variant: "ghost",
|
|
766
|
+
size: "2xs",
|
|
767
|
+
"aria-label": t.label,
|
|
768
|
+
children: t.icon
|
|
769
|
+
})
|
|
770
|
+
}), /* @__PURE__ */ m(c.Positioner, { children: /* @__PURE__ */ m(c.Content, {
|
|
771
|
+
minW: "160px",
|
|
772
|
+
bg: "bg",
|
|
773
|
+
children: t.menuItems.map(Ae)
|
|
774
|
+
}) })] }, t.id) : /* @__PURE__ */ m(o, {
|
|
775
|
+
variant: "ghost",
|
|
776
|
+
size: "2xs",
|
|
777
|
+
"aria-label": t.label,
|
|
778
|
+
onClick: (e) => {
|
|
779
|
+
e.stopPropagation(), t.onAction?.({ sectionId: r });
|
|
780
|
+
},
|
|
781
|
+
children: t.icon
|
|
782
|
+
}, t.id), n[5] = r, n[6] = t), u = i.map(t), n[2] = i, n[3] = r, n[4] = u;
|
|
783
|
+
} else u = n[4];
|
|
784
|
+
let d;
|
|
785
|
+
return n[7] === u ? d = n[8] : (d = /* @__PURE__ */ m(a, {
|
|
786
|
+
gap: "0",
|
|
787
|
+
opacity: "0",
|
|
788
|
+
pointerEvents: "none",
|
|
789
|
+
_groupHover: s,
|
|
790
|
+
_groupFocusWithin: l,
|
|
791
|
+
transition: "opacity 120ms ease",
|
|
792
|
+
onClick: Q,
|
|
793
|
+
children: u
|
|
794
|
+
}), n[7] = u, n[8] = d), d;
|
|
795
|
+
}, ke = (e) => {
|
|
796
|
+
let t = f(32), { section: n, collapsible: i, expanded: o, focusId: s, tabIndex: c, onFocus: l, onToggle: d, onContextMenu: p } = e, g = i ? "pointer" : "default", _ = i ? c : void 0, v = i ? s : void 0, y = i ? o : void 0, b;
|
|
797
|
+
t[0] === i ? b = t[1] : (b = i ? { bg: "bg.hover" } : void 0, t[0] = i, t[1] = b);
|
|
798
|
+
let x;
|
|
799
|
+
t[2] === i ? x = t[3] : (x = i ? { bg: "bg.hover" } : void 0, t[2] = i, t[3] = x);
|
|
800
|
+
let C = i ? l : void 0, w = i ? d : void 0, T;
|
|
801
|
+
t[4] !== p || t[5] !== n.id ? (T = p ? (e) => {
|
|
802
|
+
e.preventDefault(), p(e, n.id);
|
|
803
|
+
} : void 0, t[4] = p, t[5] = n.id, t[6] = T) : T = t[6];
|
|
804
|
+
let E;
|
|
805
|
+
t[7] === n.label ? E = t[8] : (E = /* @__PURE__ */ m(u, {
|
|
806
|
+
textStyle: "label/XS",
|
|
807
|
+
textTransform: "uppercase",
|
|
808
|
+
color: "fg.muted",
|
|
809
|
+
letterSpacing: "0.08em",
|
|
810
|
+
truncate: !0,
|
|
811
|
+
children: n.label
|
|
812
|
+
}), t[7] = n.label, t[8] = E);
|
|
813
|
+
let D;
|
|
814
|
+
t[9] !== i || t[10] !== o ? (D = i ? /* @__PURE__ */ m(r, {
|
|
815
|
+
color: "fg.muted",
|
|
816
|
+
flexShrink: 0,
|
|
817
|
+
children: /* @__PURE__ */ m(S, {
|
|
818
|
+
size: 14,
|
|
819
|
+
style: {
|
|
820
|
+
transform: o ? "rotate(90deg)" : "rotate(0deg)",
|
|
821
|
+
transition: "120ms"
|
|
822
|
+
}
|
|
823
|
+
})
|
|
824
|
+
}) : null, t[9] = i, t[10] = o, t[11] = D) : D = t[11];
|
|
825
|
+
let O;
|
|
826
|
+
t[12] !== D || t[13] !== E ? (O = /* @__PURE__ */ h(a, {
|
|
827
|
+
gap: "1",
|
|
828
|
+
flex: "1",
|
|
829
|
+
minW: "0",
|
|
830
|
+
children: [E, D]
|
|
831
|
+
}), t[12] = D, t[13] = E, t[14] = O) : O = t[14];
|
|
832
|
+
let k;
|
|
833
|
+
t[15] === n.actions ? k = t[16] : (k = n.actions ?? [], t[15] = n.actions, t[16] = k);
|
|
834
|
+
let A;
|
|
835
|
+
t[17] !== n.id || t[18] !== k ? (A = /* @__PURE__ */ m(Z, {
|
|
836
|
+
sectionId: n.id,
|
|
837
|
+
actions: k
|
|
838
|
+
}), t[17] = n.id, t[18] = k, t[19] = A) : A = t[19];
|
|
839
|
+
let j;
|
|
840
|
+
return t[20] !== g || t[21] !== _ || t[22] !== O || t[23] !== A || t[24] !== v || t[25] !== y || t[26] !== b || t[27] !== x || t[28] !== C || t[29] !== w || t[30] !== T ? (j = /* @__PURE__ */ h(a, {
|
|
841
|
+
className: "group",
|
|
842
|
+
justify: "space-between",
|
|
843
|
+
align: "center",
|
|
844
|
+
w: "full",
|
|
845
|
+
minW: "0",
|
|
846
|
+
maxW: "full",
|
|
847
|
+
px: "sm",
|
|
848
|
+
py: "2xs",
|
|
849
|
+
height: "7",
|
|
850
|
+
cursor: g,
|
|
851
|
+
tabIndex: _,
|
|
852
|
+
"data-tree-list-focus-id": v,
|
|
853
|
+
"aria-expanded": y,
|
|
854
|
+
_hover: b,
|
|
855
|
+
_focusVisible: x,
|
|
856
|
+
onFocus: C,
|
|
857
|
+
onClick: w,
|
|
858
|
+
onContextMenu: T,
|
|
859
|
+
children: [O, A]
|
|
860
|
+
}), t[20] = g, t[21] = _, t[22] = O, t[23] = A, t[24] = v, t[25] = y, t[26] = b, t[27] = x, t[28] = C, t[29] = w, t[30] = T, t[31] = j) : j = t[31], j;
|
|
861
|
+
};
|
|
862
|
+
function Q(e) {
|
|
863
|
+
return e.stopPropagation();
|
|
864
|
+
}
|
|
865
|
+
function Ae(e) {
|
|
866
|
+
return /* @__PURE__ */ m(c.Item, {
|
|
867
|
+
value: e.id,
|
|
868
|
+
disabled: e.disabled,
|
|
869
|
+
onClick: () => e.onAction?.(),
|
|
870
|
+
children: e.label
|
|
871
|
+
}, e.id);
|
|
872
|
+
}
|
|
873
|
+
//#endregion
|
|
874
|
+
//#region src/components/tree-list/tree-list-reorder.ts
|
|
875
|
+
var je = "section:", Me = (e) => `${je}${e}`, Ne = (e) => e.startsWith(je), $ = (e) => e.slice(8), Pe = (e, t, n) => {
|
|
876
|
+
let r = e.slice(), [i] = r.splice(t, 1);
|
|
877
|
+
return r.splice(n, 0, i), r;
|
|
878
|
+
}, Fe = (e, t) => {
|
|
879
|
+
for (let n of e) {
|
|
880
|
+
let e = n.nodes.findIndex((e) => e.id === t);
|
|
881
|
+
if (e >= 0) return {
|
|
882
|
+
section: n,
|
|
883
|
+
index: e,
|
|
884
|
+
node: n.nodes[e]
|
|
885
|
+
};
|
|
886
|
+
}
|
|
887
|
+
}, Ie = (e, t) => t?.(e) ?? !0, Le = (e, t, n, r) => {
|
|
888
|
+
if (t === n) return !0;
|
|
889
|
+
if (Ne(t)) {
|
|
890
|
+
if (!Ne(n)) return !1;
|
|
891
|
+
let i = e.find((e) => e.id === $(t)), a = e.find((e) => e.id === $(n));
|
|
892
|
+
return !i || !a || i.canReorder === !1 || a.canReorder === !1 ? !1 : Ie({
|
|
893
|
+
source: {
|
|
894
|
+
kind: "section",
|
|
895
|
+
sectionId: i.id,
|
|
896
|
+
id: i.id,
|
|
897
|
+
moveScope: i.moveScope
|
|
898
|
+
},
|
|
899
|
+
destination: {
|
|
900
|
+
kind: "section",
|
|
901
|
+
sectionId: a.id,
|
|
902
|
+
id: a.id,
|
|
903
|
+
moveScope: a.moveScope
|
|
904
|
+
}
|
|
905
|
+
}, r);
|
|
906
|
+
}
|
|
907
|
+
let i = Fe(e, t);
|
|
908
|
+
if (!i || i.node.canReorder === !1) return !1;
|
|
909
|
+
let a = Ne(n) ? e.find((e) => e.id === $(n)) : void 0, o = a ? void 0 : Fe(e, n), s = a ?? o?.section;
|
|
910
|
+
return !s || s.canReorder === !1 || o?.node.canReorder === !1 ? !1 : Ie({
|
|
911
|
+
source: {
|
|
912
|
+
kind: "node",
|
|
913
|
+
sectionId: i.section.id,
|
|
914
|
+
id: i.node.id,
|
|
915
|
+
moveScope: i.node.moveScope ?? i.section.moveScope
|
|
916
|
+
},
|
|
917
|
+
destination: o ? {
|
|
918
|
+
kind: "node",
|
|
919
|
+
sectionId: s.id,
|
|
920
|
+
id: o.node.id,
|
|
921
|
+
moveScope: o.node.moveScope ?? s.moveScope
|
|
922
|
+
} : {
|
|
923
|
+
kind: "section",
|
|
924
|
+
sectionId: s.id,
|
|
925
|
+
id: s.id,
|
|
926
|
+
moveScope: s.moveScope
|
|
927
|
+
}
|
|
928
|
+
}, r);
|
|
929
|
+
}, Re = (e, t, n, r) => {
|
|
930
|
+
let i = e.find((e) => e.id === $(t)), a = e.find((e) => e.id === $(n));
|
|
931
|
+
if (!i || !a || i.canReorder === !1 || a.canReorder === !1 || !Ie({
|
|
932
|
+
source: {
|
|
933
|
+
kind: "section",
|
|
934
|
+
sectionId: i.id,
|
|
935
|
+
id: i.id,
|
|
936
|
+
moveScope: i.moveScope
|
|
937
|
+
},
|
|
938
|
+
destination: {
|
|
939
|
+
kind: "section",
|
|
940
|
+
sectionId: a.id,
|
|
941
|
+
id: a.id,
|
|
942
|
+
moveScope: a.moveScope
|
|
943
|
+
}
|
|
944
|
+
}, r)) return null;
|
|
945
|
+
let o = e.map((e) => e.id), s = o.indexOf(i.id), c = o.indexOf(a.id);
|
|
946
|
+
return s === c ? null : {
|
|
947
|
+
kind: "section",
|
|
948
|
+
nextSectionIds: Pe(o, s, c)
|
|
949
|
+
};
|
|
950
|
+
}, ze = (e, t, n, r) => {
|
|
951
|
+
let i = Fe(e, t);
|
|
952
|
+
if (!i || i.node.canReorder === !1) return null;
|
|
953
|
+
let a = Ne(n) ? e.find((e) => e.id === $(n)) : void 0, o = a ? void 0 : Fe(e, n), s = a ?? o?.section;
|
|
954
|
+
if (!s || s.canReorder === !1 || o?.node.canReorder === !1) return null;
|
|
955
|
+
let c = o ? {
|
|
956
|
+
kind: "node",
|
|
957
|
+
sectionId: s.id,
|
|
958
|
+
id: o.node.id,
|
|
959
|
+
moveScope: o.node.moveScope ?? s.moveScope
|
|
960
|
+
} : {
|
|
961
|
+
kind: "section",
|
|
962
|
+
sectionId: s.id,
|
|
963
|
+
id: s.id,
|
|
964
|
+
moveScope: s.moveScope
|
|
965
|
+
};
|
|
966
|
+
if (!Ie({
|
|
967
|
+
source: {
|
|
968
|
+
kind: "node",
|
|
969
|
+
sectionId: i.section.id,
|
|
970
|
+
id: i.node.id,
|
|
971
|
+
moveScope: i.node.moveScope ?? i.section.moveScope
|
|
972
|
+
},
|
|
973
|
+
destination: c
|
|
974
|
+
}, r)) return null;
|
|
975
|
+
let l = i.section.nodes.map((e) => e.id);
|
|
976
|
+
if (i.section.id === s.id) {
|
|
977
|
+
let e = o ? o.index : l.length - 1;
|
|
978
|
+
return i.index === e ? null : {
|
|
979
|
+
kind: "node",
|
|
980
|
+
orders: { [i.section.id]: Pe(l, i.index, e) }
|
|
981
|
+
};
|
|
982
|
+
}
|
|
983
|
+
let u = s.nodes.map((e) => e.id), d = o ? o.index : u.length;
|
|
984
|
+
return u.splice(d, 0, i.node.id), {
|
|
985
|
+
kind: "node",
|
|
986
|
+
orders: {
|
|
987
|
+
[i.section.id]: l.filter((e) => e !== i.node.id),
|
|
988
|
+
[s.id]: u
|
|
989
|
+
}
|
|
990
|
+
};
|
|
991
|
+
}, Be = (e, t, n, r) => t === n ? null : Ne(t) ? Ne(n) ? Re(e, t, n, r) : null : ze(e, t, n, r), Ve = g(!1), He = (e) => {
|
|
992
|
+
let t = f(16), { sections: n, canMove: r, onReorderSections: i, onReorderNodes: a, children: o } = e, s;
|
|
993
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = { activationConstraint: { distance: 4 } }, t[0] = s) : s = t[0];
|
|
994
|
+
let c = O(D(T, s)), l;
|
|
995
|
+
t[1] !== r || t[2] !== n ? (l = (e) => E(e).filter((t) => Le(n, String(e.active.id), String(t.id), r)), t[1] = r, t[2] = n, t[3] = l) : l = t[3];
|
|
996
|
+
let u = l, d;
|
|
997
|
+
t[4] !== r || t[5] !== a || t[6] !== i || t[7] !== n ? (d = (e) => {
|
|
998
|
+
if (!e.over) return;
|
|
999
|
+
let t = String(e.active.id), o = String(e.over.id), s = Be(n, t, o, r);
|
|
1000
|
+
if (s) {
|
|
1001
|
+
if (s.kind === "section") {
|
|
1002
|
+
i?.(s.nextSectionIds, $(t), $(o));
|
|
1003
|
+
return;
|
|
1004
|
+
}
|
|
1005
|
+
for (let [e, t] of Object.entries(s.orders)) a?.(e, t);
|
|
1006
|
+
}
|
|
1007
|
+
}, t[4] = r, t[5] = a, t[6] = i, t[7] = n, t[8] = d) : d = t[8];
|
|
1008
|
+
let p = d, h;
|
|
1009
|
+
t[9] === o ? h = t[10] : (h = /* @__PURE__ */ m(Ve.Provider, {
|
|
1010
|
+
value: !0,
|
|
1011
|
+
children: o
|
|
1012
|
+
}), t[9] = o, t[10] = h);
|
|
1013
|
+
let g;
|
|
1014
|
+
return t[11] !== u || t[12] !== p || t[13] !== c || t[14] !== h ? (g = /* @__PURE__ */ m(w, {
|
|
1015
|
+
sensors: c,
|
|
1016
|
+
collisionDetection: u,
|
|
1017
|
+
onDragEnd: p,
|
|
1018
|
+
children: h
|
|
1019
|
+
}), t[11] = u, t[12] = p, t[13] = c, t[14] = h, t[15] = g) : g = t[15], g;
|
|
1020
|
+
}, Ue = (e) => {
|
|
1021
|
+
let t = f(12), n;
|
|
1022
|
+
t[0] !== e.disabled || t[1] !== e.id ? (n = {
|
|
1023
|
+
id: e.id,
|
|
1024
|
+
disabled: e.disabled
|
|
1025
|
+
}, t[0] = e.disabled, t[1] = e.id, t[2] = n) : n = t[2];
|
|
1026
|
+
let r = A(n), i;
|
|
1027
|
+
if (t[3] !== e.children || t[4] !== r.isDragging || t[5] !== r.listeners || t[6] !== r.setNodeRef || t[7] !== r.transform || t[8] !== r.transition) {
|
|
1028
|
+
let n = {
|
|
1029
|
+
transform: M.Transform.toString(r.transform),
|
|
1030
|
+
transition: r.transition,
|
|
1031
|
+
opacity: r.isDragging ? .5 : 1
|
|
1032
|
+
};
|
|
1033
|
+
i = e.children({
|
|
1034
|
+
setNodeRef: r.setNodeRef,
|
|
1035
|
+
listeners: r.listeners,
|
|
1036
|
+
style: n
|
|
1037
|
+
}), t[3] = e.children, t[4] = r.isDragging, t[5] = r.listeners, t[6] = r.setNodeRef, t[7] = r.transform, t[8] = r.transition, t[9] = i;
|
|
1038
|
+
} else i = t[9];
|
|
1039
|
+
let a;
|
|
1040
|
+
return t[10] === i ? a = t[11] : (a = /* @__PURE__ */ m(p, { children: i }), t[10] = i, t[11] = a), a;
|
|
1041
|
+
}, We = (e) => {
|
|
1042
|
+
let t = f(24), { section: n, sectionRows: i, expandedNodeIds: a, activeNodeId: o, rowVariant: s, nodeGap: c, linkComponent: u, onNavigate: d, onToggleSection: p, onToggleNode: g, onSectionContextMenu: _ } = e, v;
|
|
1043
|
+
t[0] === i ? v = t[1] : (v = i.find(Je), t[0] = i, t[1] = v);
|
|
1044
|
+
let y = v, b, x;
|
|
1045
|
+
t[2] === i ? (b = t[3], x = t[4]) : (b = i.filter(Ye), x = b.filter(Xe).map(Ze), t[2] = i, t[3] = b, t[4] = x);
|
|
1046
|
+
let S = x, C;
|
|
1047
|
+
t[5] === n.id ? C = t[6] : (C = Me(n.id), t[5] = n.id, t[6] = C);
|
|
1048
|
+
let w = n.canReorder === !1, T;
|
|
1049
|
+
t[7] !== o || t[8] !== a || t[9] !== y || t[10] !== u || t[11] !== c || t[12] !== b || t[13] !== d || t[14] !== _ || t[15] !== g || t[16] !== p || t[17] !== s || t[18] !== S ? (T = (e) => {
|
|
1050
|
+
let { setNodeRef: t, listeners: n, style: i } = e;
|
|
1051
|
+
return /* @__PURE__ */ h(r, {
|
|
1052
|
+
ref: t,
|
|
1053
|
+
style: i,
|
|
1054
|
+
w: "full",
|
|
1055
|
+
minW: "0",
|
|
1056
|
+
children: [y && y.kind === "section-header" ? /* @__PURE__ */ m(r, {
|
|
1057
|
+
onPointerDownCapture: (e) => n?.onPointerDown?.(e),
|
|
1058
|
+
children: /* @__PURE__ */ m(ke, {
|
|
1059
|
+
section: y.section,
|
|
1060
|
+
collapsible: y.collapsible,
|
|
1061
|
+
expanded: y.expanded,
|
|
1062
|
+
focusId: y.key,
|
|
1063
|
+
tabIndex: -1,
|
|
1064
|
+
onFocus: Qe,
|
|
1065
|
+
onToggle: () => p?.(y.sectionId),
|
|
1066
|
+
onContextMenu: _
|
|
1067
|
+
})
|
|
1068
|
+
}) : null, /* @__PURE__ */ m(k, {
|
|
1069
|
+
items: S,
|
|
1070
|
+
strategy: j,
|
|
1071
|
+
children: /* @__PURE__ */ m(l, {
|
|
1072
|
+
gap: c,
|
|
1073
|
+
w: "full",
|
|
1074
|
+
minW: "0",
|
|
1075
|
+
children: b.map((e) => e.kind === "node" ? /* @__PURE__ */ m(Ke, {
|
|
1076
|
+
row: e,
|
|
1077
|
+
expandedNodeIds: a,
|
|
1078
|
+
activeNodeId: o,
|
|
1079
|
+
rowVariant: s,
|
|
1080
|
+
nodeGap: c,
|
|
1081
|
+
linkComponent: u,
|
|
1082
|
+
onNavigate: d,
|
|
1083
|
+
onToggleNode: g
|
|
1084
|
+
}, e.key) : null)
|
|
1085
|
+
})
|
|
1086
|
+
})]
|
|
1087
|
+
});
|
|
1088
|
+
}, t[7] = o, t[8] = a, t[9] = y, t[10] = u, t[11] = c, t[12] = b, t[13] = d, t[14] = _, t[15] = g, t[16] = p, t[17] = s, t[18] = S, t[19] = T) : T = t[19];
|
|
1089
|
+
let E;
|
|
1090
|
+
return t[20] !== C || t[21] !== w || t[22] !== T ? (E = /* @__PURE__ */ m(Ue, {
|
|
1091
|
+
id: C,
|
|
1092
|
+
disabled: w,
|
|
1093
|
+
children: T
|
|
1094
|
+
}), t[20] = C, t[21] = w, t[22] = T, t[23] = E) : E = t[23], E;
|
|
1095
|
+
}, Ge = (e) => /* @__PURE__ */ m(Oe, {
|
|
1096
|
+
sectionId: e.sectionId,
|
|
1097
|
+
node: e.node,
|
|
1098
|
+
level: e.level,
|
|
1099
|
+
expandedNodeIds: e.expandedNodeIds,
|
|
1100
|
+
activeNodeId: e.activeNodeId,
|
|
1101
|
+
rowVariant: e.rowVariant,
|
|
1102
|
+
nodeGap: e.nodeGap,
|
|
1103
|
+
linkComponent: e.linkComponent,
|
|
1104
|
+
onNavigate: e.onNavigate,
|
|
1105
|
+
onToggleNode: e.onToggleNode
|
|
1106
|
+
}), Ke = (e) => {
|
|
1107
|
+
let t = f(13), n, i, a;
|
|
1108
|
+
if (t[0] !== e) {
|
|
1109
|
+
a = Symbol.for("react.early_return_sentinel");
|
|
1110
|
+
bb0: if ({row: i, ...n} = e, i.level > 0) {
|
|
1111
|
+
a = Ge({
|
|
1112
|
+
node: i.node,
|
|
1113
|
+
sectionId: i.sectionId,
|
|
1114
|
+
level: i.level,
|
|
1115
|
+
...n
|
|
1116
|
+
});
|
|
1117
|
+
break bb0;
|
|
1118
|
+
}
|
|
1119
|
+
t[0] = e, t[1] = n, t[2] = i, t[3] = a;
|
|
1120
|
+
} else n = t[1], i = t[2], a = t[3];
|
|
1121
|
+
if (a !== Symbol.for("react.early_return_sentinel")) return a;
|
|
1122
|
+
let o = i.node.canReorder === !1, s;
|
|
1123
|
+
t[4] !== n || t[5] !== i.level || t[6] !== i.node || t[7] !== i.sectionId ? (s = (e) => {
|
|
1124
|
+
let { setNodeRef: t, listeners: a, style: o } = e;
|
|
1125
|
+
return /* @__PURE__ */ m(r, {
|
|
1126
|
+
ref: t,
|
|
1127
|
+
style: o,
|
|
1128
|
+
w: "full",
|
|
1129
|
+
minW: "0",
|
|
1130
|
+
onPointerDownCapture: (e) => a?.onPointerDown?.(e),
|
|
1131
|
+
children: Ge({
|
|
1132
|
+
node: i.node,
|
|
1133
|
+
sectionId: i.sectionId,
|
|
1134
|
+
level: i.level,
|
|
1135
|
+
...n
|
|
1136
|
+
})
|
|
1137
|
+
});
|
|
1138
|
+
}, t[4] = n, t[5] = i.level, t[6] = i.node, t[7] = i.sectionId, t[8] = s) : s = t[8];
|
|
1139
|
+
let c;
|
|
1140
|
+
return t[9] !== i.node.id || t[10] !== o || t[11] !== s ? (c = /* @__PURE__ */ m(Ue, {
|
|
1141
|
+
id: i.node.id,
|
|
1142
|
+
disabled: o,
|
|
1143
|
+
children: s
|
|
1144
|
+
}), t[9] = i.node.id, t[10] = o, t[11] = s, t[12] = c) : c = t[12], c;
|
|
1145
|
+
}, qe = (e) => {
|
|
1146
|
+
let t = f(25), { sections: n, expandedSectionIds: r, expandedNodeIds: i, activeNodeId: a, rowVariant: o, sectionGap: s, nodeGap: c, linkComponent: u, onNavigate: d, onToggleSection: p, onToggleNode: h, onSectionContextMenu: g, onReorderSections: v, onReorderNodes: y, canMove: b } = e, x = r === void 0 ? [] : r, S = i === void 0 ? [] : i, C = o === void 0 ? "tree" : o, A = s === void 0 ? "0" : s, M = c === void 0 ? "0" : c, N;
|
|
1147
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (N = { activationConstraint: { distance: 4 } }, t[0] = N) : N = t[0];
|
|
1148
|
+
let P = O(D(T, N)), F = _(Ve), I;
|
|
1149
|
+
t[1] !== b || t[2] !== n ? (I = (e) => E(e).filter((t) => Le(n, String(e.active.id), String(t.id), b)), t[1] = b, t[2] = n, t[3] = I) : I = t[3];
|
|
1150
|
+
let L = I, R;
|
|
1151
|
+
t[4] !== b || t[5] !== y || t[6] !== v || t[7] !== n ? (R = (e) => {
|
|
1152
|
+
if (!e.over) return;
|
|
1153
|
+
let t = Be(n, String(e.active.id), String(e.over.id), b);
|
|
1154
|
+
if (t) {
|
|
1155
|
+
if (t.kind === "section") v?.(t.nextSectionIds);
|
|
1156
|
+
else for (let [e, n] of Object.entries(t.orders)) y?.(e, n);
|
|
1157
|
+
}
|
|
1158
|
+
}, t[4] = b, t[5] = y, t[6] = v, t[7] = n, t[8] = R) : R = t[8];
|
|
1159
|
+
let z = R, B = X(n, x, S), ee = k, V;
|
|
1160
|
+
t[9] === n ? V = t[10] : (V = n.map($e), t[9] = n, t[10] = V);
|
|
1161
|
+
let H = j, U = l, W = n.map((e) => /* @__PURE__ */ m(We, {
|
|
1162
|
+
section: e,
|
|
1163
|
+
sectionRows: B.filter((t) => t.sectionId === e.id),
|
|
1164
|
+
expandedNodeIds: S,
|
|
1165
|
+
activeNodeId: a,
|
|
1166
|
+
rowVariant: C,
|
|
1167
|
+
nodeGap: M,
|
|
1168
|
+
linkComponent: u,
|
|
1169
|
+
onNavigate: d,
|
|
1170
|
+
onToggleSection: p,
|
|
1171
|
+
onToggleNode: h,
|
|
1172
|
+
onSectionContextMenu: g
|
|
1173
|
+
}, e.id)), G;
|
|
1174
|
+
t[11] !== U || t[12] !== A || t[13] !== W ? (G = /* @__PURE__ */ m(U, {
|
|
1175
|
+
gap: A,
|
|
1176
|
+
w: "full",
|
|
1177
|
+
minW: "0",
|
|
1178
|
+
maxW: "full",
|
|
1179
|
+
children: W
|
|
1180
|
+
}), t[11] = U, t[12] = A, t[13] = W, t[14] = G) : G = t[14];
|
|
1181
|
+
let K;
|
|
1182
|
+
t[15] !== ee || t[16] !== G || t[17] !== V || t[18] !== H ? (K = /* @__PURE__ */ m(ee, {
|
|
1183
|
+
items: V,
|
|
1184
|
+
strategy: H,
|
|
1185
|
+
children: G
|
|
1186
|
+
}), t[15] = ee, t[16] = G, t[17] = V, t[18] = H, t[19] = K) : K = t[19];
|
|
1187
|
+
let q = K;
|
|
1188
|
+
if (F) return q;
|
|
1189
|
+
let J;
|
|
1190
|
+
return t[20] !== L || t[21] !== q || t[22] !== z || t[23] !== P ? (J = /* @__PURE__ */ m(w, {
|
|
1191
|
+
sensors: P,
|
|
1192
|
+
collisionDetection: L,
|
|
1193
|
+
onDragEnd: z,
|
|
1194
|
+
children: q
|
|
1195
|
+
}), t[20] = L, t[21] = q, t[22] = z, t[23] = P, t[24] = J) : J = t[24], J;
|
|
1196
|
+
};
|
|
1197
|
+
function Je(e) {
|
|
1198
|
+
return e.kind === "section-header";
|
|
1199
|
+
}
|
|
1200
|
+
function Ye(e) {
|
|
1201
|
+
return e.kind === "node";
|
|
1202
|
+
}
|
|
1203
|
+
function Xe(e) {
|
|
1204
|
+
return e.kind === "node" && e.level === 0;
|
|
1205
|
+
}
|
|
1206
|
+
function Ze(e) {
|
|
1207
|
+
return e.kind === "node" ? e.node.id : "";
|
|
1208
|
+
}
|
|
1209
|
+
function Qe() {}
|
|
1210
|
+
function $e(e) {
|
|
1211
|
+
return Me(e.id);
|
|
1212
|
+
}
|
|
1213
|
+
//#endregion
|
|
1214
|
+
//#region src/components/tree-list/use-tree-list-keyboard-navigation.ts
|
|
1215
|
+
var et = (e, t) => e ? [...e.querySelectorAll("[data-tree-list-focus-id]")].find((e) => e.dataset.treeListFocusId === t) ?? null : null, tt = (e, t) => {
|
|
1216
|
+
if (e && t instanceof HTMLElement && e.contains(t)) return t.closest("[data-tree-list-focus-id]")?.dataset.treeListFocusId;
|
|
1217
|
+
}, nt = (e) => e instanceof HTMLElement ? e.isContentEditable ? !0 : [
|
|
1218
|
+
"INPUT",
|
|
1219
|
+
"TEXTAREA",
|
|
1220
|
+
"SELECT"
|
|
1221
|
+
].includes(e.tagName) : !1, rt = (e, t) => e.findIndex((e) => ge(e) && he(e) === t), it = (e) => {
|
|
1222
|
+
let t = f(28), { rows: n, activeNodeId: r, expandedNodeIds: i, onToggleNode: a, onToggleSection: o, scrollToRow: s } = e, c = b(null), [l, u] = x(), [d, p] = x(), m;
|
|
1223
|
+
t[0] !== r || t[1] !== l || t[2] !== n ? (m = ve(l, r, n), t[0] = r, t[1] = l, t[2] = n, t[3] = m) : m = t[3];
|
|
1224
|
+
let h = m, g;
|
|
1225
|
+
t[4] === n ? g = t[5] : (g = _e(n).map(he).join("\0"), t[4] = n, t[5] = g);
|
|
1226
|
+
let _ = g, y, S;
|
|
1227
|
+
t[6] !== _ || t[7] !== l ? (y = () => {
|
|
1228
|
+
l && (_.split("\0").includes(l) || u(void 0));
|
|
1229
|
+
}, S = [l, _], t[6] = _, t[7] = l, t[8] = y, t[9] = S) : (y = t[8], S = t[9]), v(y, S);
|
|
1230
|
+
let C, w;
|
|
1231
|
+
t[10] === d ? (C = t[11], w = t[12]) : (C = () => {
|
|
1232
|
+
if (!d) return;
|
|
1233
|
+
let e = requestAnimationFrame(() => {
|
|
1234
|
+
requestAnimationFrame(() => {
|
|
1235
|
+
let e = et(c.current, d);
|
|
1236
|
+
e && (e.focus(), p(void 0));
|
|
1237
|
+
});
|
|
1238
|
+
});
|
|
1239
|
+
return () => cancelAnimationFrame(e);
|
|
1240
|
+
}, w = [d], t[10] = d, t[11] = C, t[12] = w), v(C, w);
|
|
1241
|
+
let T;
|
|
1242
|
+
t[13] !== n || t[14] !== s ? (T = (e) => {
|
|
1243
|
+
u(e);
|
|
1244
|
+
let t = et(c.current, e);
|
|
1245
|
+
if (t) {
|
|
1246
|
+
t.focus();
|
|
1247
|
+
return;
|
|
1248
|
+
}
|
|
1249
|
+
let r = rt(n, e);
|
|
1250
|
+
r !== -1 && (s?.(r), p(e));
|
|
1251
|
+
}, t[13] = n, t[14] = s, t[15] = T) : T = t[15];
|
|
1252
|
+
let E = T, D;
|
|
1253
|
+
t[16] !== r || t[17] !== i || t[18] !== E || t[19] !== h || t[20] !== a || t[21] !== o || t[22] !== n ? (D = (e) => {
|
|
1254
|
+
if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || nt(e.target)) return;
|
|
1255
|
+
let t = xe({
|
|
1256
|
+
rows: n,
|
|
1257
|
+
focusedRowId: tt(c.current, e.target) ?? h,
|
|
1258
|
+
activeNodeId: r,
|
|
1259
|
+
expandedNodeIds: i,
|
|
1260
|
+
key: e.key
|
|
1261
|
+
});
|
|
1262
|
+
if (t) {
|
|
1263
|
+
if (e.preventDefault(), t.type === "toggle-node") {
|
|
1264
|
+
a?.(t.nodeId);
|
|
1265
|
+
return;
|
|
1266
|
+
}
|
|
1267
|
+
if (t.type === "toggle-section") {
|
|
1268
|
+
o?.(t.sectionId);
|
|
1269
|
+
return;
|
|
1270
|
+
}
|
|
1271
|
+
E(t.rowId);
|
|
1272
|
+
}
|
|
1273
|
+
}, t[16] = r, t[17] = i, t[18] = E, t[19] = h, t[20] = a, t[21] = o, t[22] = n, t[23] = D) : D = t[23];
|
|
1274
|
+
let O = D, k;
|
|
1275
|
+
t[24] === Symbol.for("react.memo_cache_sentinel") ? (k = (e) => u(e), t[24] = k) : k = t[24];
|
|
1276
|
+
let A;
|
|
1277
|
+
return t[25] !== h || t[26] !== O ? (A = {
|
|
1278
|
+
focusRowId: h,
|
|
1279
|
+
rootRef: c,
|
|
1280
|
+
handleKeyDown: O,
|
|
1281
|
+
onRowFocus: k
|
|
1282
|
+
}, t[25] = h, t[26] = O, t[27] = A) : A = t[27], A;
|
|
1283
|
+
}, at = 32, ot = 4, st = (e) => {
|
|
1284
|
+
let { row: t, expandedNodeIds: n, activeNodeId: r, focusRowId: i, rowVariant: a, nodeGap: o, linkComponent: s, onRowFocus: c, onNavigate: l, onToggleSection: u, onToggleNode: d, onSectionContextMenu: f, onMoveNode: p } = e;
|
|
1285
|
+
return t.kind === "section-header" ? /* @__PURE__ */ m(ke, {
|
|
1286
|
+
section: t.section,
|
|
1287
|
+
collapsible: t.collapsible,
|
|
1288
|
+
expanded: t.expanded,
|
|
1289
|
+
focusId: t.key,
|
|
1290
|
+
tabIndex: t.key === i ? 0 : -1,
|
|
1291
|
+
onFocus: () => c(t.key),
|
|
1292
|
+
onToggle: () => u?.(t.sectionId),
|
|
1293
|
+
onContextMenu: f
|
|
1294
|
+
}) : t.kind === "section-empty" ? t.emptyState ?? null : /* @__PURE__ */ m(Oe, {
|
|
1295
|
+
sectionId: t.sectionId,
|
|
1296
|
+
node: t.node,
|
|
1297
|
+
level: t.level,
|
|
1298
|
+
expandedNodeIds: n,
|
|
1299
|
+
activeNodeId: r,
|
|
1300
|
+
rowVariant: a,
|
|
1301
|
+
nodeGap: o,
|
|
1302
|
+
linkComponent: s,
|
|
1303
|
+
tabIndex: t.node.id === i ? 0 : -1,
|
|
1304
|
+
onFocus: () => c(t.node.id),
|
|
1305
|
+
onNavigate: l,
|
|
1306
|
+
onToggleNode: d,
|
|
1307
|
+
onMoveNode: p
|
|
1308
|
+
});
|
|
1309
|
+
}, ct = (e) => {
|
|
1310
|
+
let { rows: t, expandedNodeIds: n = [], activeNodeId: i, rowVariant: a = "tree", nodeGap: o = "0", linkComponent: s, onNavigate: c, onToggleSection: l, onToggleNode: u, onSectionContextMenu: d, onMoveNode: f, scrollRef: p } = e, h = C({
|
|
1311
|
+
count: t.length,
|
|
1312
|
+
getScrollElement: () => p.current,
|
|
1313
|
+
estimateSize: () => at,
|
|
1314
|
+
overscan: ot,
|
|
1315
|
+
getItemKey: (e) => t[e]?.key ?? e
|
|
1316
|
+
}), g = it({
|
|
1317
|
+
rows: t,
|
|
1318
|
+
activeNodeId: i,
|
|
1319
|
+
expandedNodeIds: n,
|
|
1320
|
+
onToggleNode: u,
|
|
1321
|
+
onToggleSection: l,
|
|
1322
|
+
scrollToRow: (e) => h.scrollToIndex(e, { align: "auto" })
|
|
1323
|
+
});
|
|
1324
|
+
return /* @__PURE__ */ m(r, {
|
|
1325
|
+
ref: g.rootRef,
|
|
1326
|
+
role: "listbox",
|
|
1327
|
+
w: "full",
|
|
1328
|
+
minW: "0",
|
|
1329
|
+
maxW: "full",
|
|
1330
|
+
position: "relative",
|
|
1331
|
+
style: { height: h.getTotalSize() },
|
|
1332
|
+
onKeyDown: g.handleKeyDown,
|
|
1333
|
+
children: h.getVirtualItems().map((e) => {
|
|
1334
|
+
let p = t[e.index];
|
|
1335
|
+
return p ? /* @__PURE__ */ m(r, {
|
|
1336
|
+
ref: h.measureElement,
|
|
1337
|
+
"data-index": e.index,
|
|
1338
|
+
"data-tree-list-row": p.kind,
|
|
1339
|
+
position: "absolute",
|
|
1340
|
+
top: "0",
|
|
1341
|
+
left: "0",
|
|
1342
|
+
w: "full",
|
|
1343
|
+
pb: e.index === t.length - 1 ? "0" : o,
|
|
1344
|
+
style: { transform: `translateY(${e.start}px)` },
|
|
1345
|
+
children: st({
|
|
1346
|
+
row: p,
|
|
1347
|
+
expandedNodeIds: n,
|
|
1348
|
+
activeNodeId: i,
|
|
1349
|
+
focusRowId: g.focusRowId,
|
|
1350
|
+
rowVariant: a,
|
|
1351
|
+
nodeGap: o,
|
|
1352
|
+
linkComponent: s,
|
|
1353
|
+
onRowFocus: g.onRowFocus,
|
|
1354
|
+
onNavigate: c,
|
|
1355
|
+
onToggleSection: l,
|
|
1356
|
+
onToggleNode: u,
|
|
1357
|
+
onSectionContextMenu: d,
|
|
1358
|
+
onMoveNode: f
|
|
1359
|
+
})
|
|
1360
|
+
}, e.key) : null;
|
|
1361
|
+
})
|
|
1362
|
+
});
|
|
1363
|
+
}, lt = (e) => {
|
|
1364
|
+
let { sections: t, expandedSectionIds: n = [], expandedNodeIds: i = [], activeNodeId: a, rowVariant: o = "tree", sectionGap: s = "0", nodeGap: c = "0", linkComponent: u, onNavigate: d, onToggleSection: f, onToggleNode: p, onSectionContextMenu: h, onMoveNode: g, virtualize: _, scrollRef: v } = e, y = X(t, n, i), b = it({
|
|
1365
|
+
rows: y,
|
|
1366
|
+
activeNodeId: a,
|
|
1367
|
+
expandedNodeIds: i,
|
|
1368
|
+
onToggleNode: p,
|
|
1369
|
+
onToggleSection: f
|
|
1370
|
+
});
|
|
1371
|
+
return _ && v ? /* @__PURE__ */ m(ct, {
|
|
1372
|
+
...e,
|
|
1373
|
+
rows: y,
|
|
1374
|
+
scrollRef: v
|
|
1375
|
+
}) : /* @__PURE__ */ m(l, {
|
|
1376
|
+
ref: b.rootRef,
|
|
1377
|
+
role: "listbox",
|
|
1378
|
+
gap: s,
|
|
1379
|
+
w: "full",
|
|
1380
|
+
minW: "0",
|
|
1381
|
+
maxW: "full",
|
|
1382
|
+
overflowX: "hidden",
|
|
1383
|
+
onKeyDown: b.handleKeyDown,
|
|
1384
|
+
children: t.map((e) => {
|
|
1385
|
+
let t = y.filter((t) => t.sectionId === e.id);
|
|
1386
|
+
return /* @__PURE__ */ m(l, {
|
|
1387
|
+
gap: c,
|
|
1388
|
+
w: "full",
|
|
1389
|
+
minW: "0",
|
|
1390
|
+
maxW: "full",
|
|
1391
|
+
"data-testid": `tree-list-section-${e.id}`,
|
|
1392
|
+
children: t.map((e) => /* @__PURE__ */ m(r, {
|
|
1393
|
+
w: "full",
|
|
1394
|
+
minW: "0",
|
|
1395
|
+
children: st({
|
|
1396
|
+
row: e,
|
|
1397
|
+
expandedNodeIds: i,
|
|
1398
|
+
activeNodeId: a,
|
|
1399
|
+
focusRowId: b.focusRowId,
|
|
1400
|
+
rowVariant: o,
|
|
1401
|
+
nodeGap: c,
|
|
1402
|
+
linkComponent: u,
|
|
1403
|
+
onRowFocus: b.onRowFocus,
|
|
1404
|
+
onNavigate: d,
|
|
1405
|
+
onToggleSection: f,
|
|
1406
|
+
onToggleNode: p,
|
|
1407
|
+
onSectionContextMenu: h,
|
|
1408
|
+
onMoveNode: g
|
|
1409
|
+
})
|
|
1410
|
+
}, e.key))
|
|
1411
|
+
}, e.id);
|
|
1412
|
+
})
|
|
1413
|
+
});
|
|
1414
|
+
}, ut = (e) => {
|
|
1415
|
+
let t = f(8), n;
|
|
1416
|
+
t[0] === e ? n = t[1] : (n = e.draggable ? /* @__PURE__ */ m(qe, {
|
|
1417
|
+
sections: e.sections,
|
|
1418
|
+
expandedSectionIds: e.expandedSectionIds,
|
|
1419
|
+
expandedNodeIds: e.expandedNodeIds,
|
|
1420
|
+
activeNodeId: e.activeNodeId,
|
|
1421
|
+
rowVariant: e.rowVariant,
|
|
1422
|
+
sectionGap: e.sectionGap,
|
|
1423
|
+
nodeGap: e.nodeGap,
|
|
1424
|
+
linkComponent: e.linkComponent,
|
|
1425
|
+
onNavigate: e.onNavigate,
|
|
1426
|
+
onToggleSection: e.onToggleSection,
|
|
1427
|
+
onToggleNode: e.onToggleNode,
|
|
1428
|
+
onSectionContextMenu: e.onSectionContextMenu,
|
|
1429
|
+
onReorderSections: e.onReorderSections,
|
|
1430
|
+
onReorderNodes: e.onReorderNodes,
|
|
1431
|
+
canMove: e.canMove
|
|
1432
|
+
}) : /* @__PURE__ */ m(lt, { ...e }), t[0] = e, t[1] = n);
|
|
1433
|
+
let r = n, i;
|
|
1434
|
+
t[2] !== r || t[3] !== e.onMoveNode ? (i = /* @__PURE__ */ m(Te, {
|
|
1435
|
+
onMoveNode: e.onMoveNode,
|
|
1436
|
+
children: r
|
|
1437
|
+
}), t[2] = r, t[3] = e.onMoveNode, t[4] = i) : i = t[4];
|
|
1438
|
+
let a = i;
|
|
1439
|
+
if (!e.backgroundContextActions || e.backgroundContextActions.length === 0) return a;
|
|
1440
|
+
let o;
|
|
1441
|
+
return t[5] !== a || t[6] !== e.backgroundContextActions ? (o = /* @__PURE__ */ m(le, {
|
|
1442
|
+
actions: e.backgroundContextActions,
|
|
1443
|
+
children: a
|
|
1444
|
+
}), t[5] = a, t[6] = e.backgroundContextActions, t[7] = o) : o = t[7], o;
|
|
1445
|
+
};
|
|
1446
|
+
//#endregion
|
|
1447
|
+
export { He as n, oe as r, ut as t };
|
|
1448
|
+
|
|
1449
|
+
//# sourceMappingURL=tree-list-BUfDQz3v.js.map
|