@pstdio/ui 0.25.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/README.md +8 -1
- 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 +3272 -2763
- 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 -1300
- 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 -41
- package/dist/index.js +3167 -3173
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +337 -2
- package/dist/kanban-renderer.js +1413 -1084
- 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 -0
- package/dist/param-editor.js +3 -0
- 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 -265
- 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 -357
- 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 +30 -12
- package/dist/EquationComponent-DeDYHvqY.js +0 -62
- package/dist/EquationComponent-DeDYHvqY.js.map +0 -1
- package/dist/MermaidComponent-BVdDqDRU.js +0 -60
- package/dist/MermaidComponent-BVdDqDRU.js.map +0 -1
- package/dist/browser-storage-DPtOQJx0.js +0 -127
- package/dist/browser-storage-DPtOQJx0.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 -27
- package/dist/components/activity/resource-activity-feed.d.ts +0 -58
- 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-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-question-prompt.d.ts +0 -36
- package/dist/components/chat-ui/components/chat-input.d.ts +0 -31
- 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-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/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 -43
- 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 -17
- package/dist/components/rich-text/lazy-markdown-editor.d.ts +0 -2
- 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 -4
- 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 -9
- package/dist/components/rich-text/prompt-input/prompt-input.d.ts +0 -25
- 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/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 -11
- 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-B8UpWb7i.js +0 -846
- package/dist/edit-mode-data-table-B8UpWb7i.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-DzY6THJY.js +0 -1374
- package/dist/kanban-renderer-toolbar-DzY6THJY.js.map +0 -1
- package/dist/lazy-markdown-editor-ClZPZuaU.js +0 -235
- package/dist/lazy-markdown-editor-ClZPZuaU.js.map +0 -1
- package/dist/list-row-BDoV_iMV.js +0 -815
- package/dist/list-row-BDoV_iMV.js.map +0 -1
- package/dist/markdown-editor-CAVqJ9yR.js +0 -1019
- package/dist/markdown-editor-CAVqJ9yR.js.map +0 -1
- package/dist/markdown-gNucAjnF.js +0 -1643
- package/dist/markdown-gNucAjnF.js.map +0 -1
- package/dist/mermaid-renderer-CVnuKs-A.js +0 -425
- package/dist/mermaid-renderer-CVnuKs-A.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-CTx3mDxQ.js +0 -161
- package/dist/param-editor-CTx3mDxQ.js.map +0 -1
- package/dist/param-editor-field-DteDEyeU.js +0 -2810
- package/dist/param-editor-field-DteDEyeU.js.map +0 -1
- package/dist/prompt-input-DNpRL5tI.js +0 -564
- package/dist/prompt-input-DNpRL5tI.js.map +0 -1
- package/dist/radio-cLMEBBZk.js +0 -76
- package/dist/radio-cLMEBBZk.js.map +0 -1
- package/dist/rich-message-CuPiKxKX.js +0 -78
- package/dist/rich-message-CuPiKxKX.js.map +0 -1
- package/dist/rich-text.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 -74
- 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-Dc7hVvMC.js +0 -3990
- package/dist/theme-Dc7hVvMC.js.map +0 -1
- package/dist/theme-preference-Bpobguh4.js +0 -114
- package/dist/theme-preference-Bpobguh4.js.map +0 -1
- package/dist/theme.js.map +0 -1
- package/dist/tree-list-CZvcg3_6.js +0 -1348
- package/dist/tree-list-CZvcg3_6.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-BR_GgsAG.js +0 -175
- package/dist/workspace-badge-BR_GgsAG.js.map +0 -1
package/dist/data-table.js
CHANGED
|
@@ -1,1199 +1,1227 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}, He = (
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
1
|
+
import { a as e, n as t } from "./prism-pSHJejZx.js";
|
|
2
|
+
import { n, t as r } from "./scroll-area-Cr1lNXAr.js";
|
|
3
|
+
import { i, s as a, t as o } from "./list-row-De9R2zKU.js";
|
|
4
|
+
import { A as s, C as c, D as l, E as u, F as d, I as f, K as p, M as m, N as h, O as g, P as _, S as v, T as y, b, g as x, h as S, j as C, k as w, m as T, w as E, x as D, y as ee } from "./rich-text-DtQpHBlX.js";
|
|
5
|
+
import { n as O } from "./param-editor-IJzw1cA2.js";
|
|
6
|
+
import { Box as te, Button as k, Flex as A, HStack as j, Icon as M, IconButton as N, Image as P, Menu as F, Popover as I, Portal as L, Skeleton as R, Stack as z, Table as B, Text as V, chakra as H } from "@chakra-ui/react";
|
|
7
|
+
import { c as U } from "react/compiler-runtime";
|
|
8
|
+
import { jsx as W, jsxs as G } from "react/jsx-runtime";
|
|
9
|
+
import { Fragment as K, Suspense as q, cloneElement as J, isValidElement as Y, lazy as ne, useEffect as re, useRef as ie, useState as X } from "react";
|
|
10
|
+
import { ArrowDownAZ as ae, ArrowUpAZ as oe, Braces as se, Check as ce, ChevronDown as le, ChevronRight as ue, CircleHelp as Z, GripVertical as de, Minus as fe, MoreVertical as Q, Settings2 as pe } from "lucide-react";
|
|
11
|
+
import { DndContext as me, PointerSensor as he, closestCenter as ge, useSensor as _e, useSensors as ve } from "@dnd-kit/core";
|
|
12
|
+
import { SortableContext as ye, useSortable as $, verticalListSortingStrategy as be } from "@dnd-kit/sortable";
|
|
13
|
+
import { CSS as xe } from "@dnd-kit/utilities";
|
|
14
|
+
import { flexRender as Se, getCoreRowModel as Ce, getPaginationRowModel as we, getSortedRowModel as Te, useReactTable as Ee } from "@tanstack/react-table";
|
|
15
|
+
//#region src/components/data-table/categorical-color-cell.tsx
|
|
16
|
+
var De = (e, t) => t.find((t) => Object.is(t.value, e))?.color ?? null, Oe = (e) => {
|
|
17
|
+
let { children: t } = e;
|
|
18
|
+
return t;
|
|
19
|
+
}, ke = "#111827", Ae = "#ffffff", je = "#000000", Me = 4.5, Ne = (e) => e.split("").map((e) => e + e).join(""), Pe = (e) => {
|
|
20
|
+
let t = e.trim(), n = t.startsWith("#") ? t.slice(1) : t, r = n.length === 3 ? Ne(n) : n;
|
|
21
|
+
return /^[\da-f]{6}$/i.test(r) ? {
|
|
22
|
+
r: Number.parseInt(r.slice(0, 2), 16),
|
|
23
|
+
g: Number.parseInt(r.slice(2, 4), 16),
|
|
24
|
+
b: Number.parseInt(r.slice(4, 6), 16)
|
|
25
|
+
} : null;
|
|
26
|
+
}, Fe = (e) => {
|
|
27
|
+
let t = e / 255;
|
|
28
|
+
return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
29
|
+
}, Ie = (e) => .2126 * Fe(e.r) + .7152 * Fe(e.g) + .0722 * Fe(e.b), Le = (e, t) => {
|
|
30
|
+
let n = Ie(e), r = Ie(t), i = Math.max(n, r), a = Math.min(n, r);
|
|
31
|
+
return (i + .05) / (a + .05);
|
|
32
|
+
}, Re = (e) => {
|
|
33
|
+
let t = (e) => Math.round(e).toString(16).padStart(2, "0");
|
|
34
|
+
return `#${t(e.r)}${t(e.g)}${t(e.b)}`;
|
|
35
|
+
}, ze = (e, t, n) => ({
|
|
36
|
+
r: e.r * (1 - n) + t.r * n,
|
|
37
|
+
g: e.g * (1 - n) + t.g * n,
|
|
38
|
+
b: e.b * (1 - n) + t.b * n
|
|
39
|
+
}), Be = (e, t) => {
|
|
40
|
+
for (let n = 1; n <= 50; n += 1) {
|
|
41
|
+
let r = ze(e, t, n / 50);
|
|
42
|
+
if (Le(r, e) >= Me) return {
|
|
43
|
+
color: Re(r),
|
|
44
|
+
step: n
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
color: Re(t),
|
|
49
|
+
step: 50
|
|
50
|
+
};
|
|
51
|
+
}, Ve = (e) => {
|
|
52
|
+
let t = Pe(e);
|
|
53
|
+
if (!t) return ke;
|
|
54
|
+
let n = Pe(je), r = Pe(Ae), i = Be(t, n), a = Be(t, r);
|
|
55
|
+
return i.step <= a.step ? i.color : a.color;
|
|
56
|
+
}, He = (e, t, n) => {
|
|
57
|
+
let r = Pe(e), i = Pe(t);
|
|
58
|
+
return !r || !i ? null : Re(ze(r, i, 1 - n));
|
|
59
|
+
}, Ue = (e) => {
|
|
60
|
+
let t = e.foreground?.light ?? Ve(e.light), n = e.foreground?.dark ?? Ve(e.dark);
|
|
61
|
+
return {
|
|
62
|
+
backgroundColor: `light-dark(${e.light}, ${e.dark})`,
|
|
63
|
+
color: `light-dark(${t}, ${n})`
|
|
64
|
+
};
|
|
65
|
+
}, We = (e) => Math.round(e * 100) / 100, Ge = (e, t, n) => He(e, t, n) || `color-mix(in srgb, ${e} ${We(n * 100)}%, ${t})`, Ke = (e, t, n) => {
|
|
66
|
+
let r = e.foreground && t.foreground ? {
|
|
67
|
+
light: Ge(e.foreground.light, t.foreground.light, n),
|
|
68
|
+
dark: Ge(e.foreground.dark, t.foreground.dark, n)
|
|
69
|
+
} : void 0;
|
|
70
|
+
return {
|
|
71
|
+
light: Ge(e.light, t.light, n),
|
|
72
|
+
dark: Ge(e.dark, t.dark, n),
|
|
73
|
+
...r ? { foreground: r } : {}
|
|
74
|
+
};
|
|
75
|
+
}, qe = (e, t) => {
|
|
76
|
+
if (typeof e != "number" || !Number.isFinite(e) || t.length < 2) return null;
|
|
77
|
+
let n = t[0], r = t[t.length - 1];
|
|
78
|
+
if (r.value - n.value <= 0) return null;
|
|
79
|
+
if (e <= n.value) return n.color;
|
|
80
|
+
if (e >= r.value) return r.color;
|
|
81
|
+
let i = t.findIndex((t) => e <= t.value), a = t[i - 1], o = t[i], s = 1 - (e - a.value) / (o.value - a.value);
|
|
82
|
+
return Ke(a.color, o.color, s);
|
|
83
|
+
}, Je = (e) => {
|
|
84
|
+
let t = U(2), { value: n } = e, r;
|
|
85
|
+
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ W(V, {
|
|
86
|
+
textStyle: "paragraph/S/medium",
|
|
87
|
+
fontVariantNumeric: "tabular-nums",
|
|
88
|
+
truncate: !0,
|
|
89
|
+
children: n
|
|
90
|
+
}), t[0] = n, t[1] = r), r;
|
|
91
|
+
}, Ye = /\.(avif|bmp|gif|jpe?g|png|svg|webp)$/i, Xe = /(^|\s)(avatar|image|logo|photo|picture|thumbnail)(\s|$)/i, Ze = (e) => {
|
|
92
|
+
let t = e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim().toLowerCase();
|
|
93
|
+
return t ? `${t[0]?.toUpperCase()}${t.slice(1)}` : "Details";
|
|
94
|
+
}, Qe = (e) => e.map((e) => /^\d+$/.test(e) ? e : Ze(e)).join(" / "), $e = (e) => e.every((e) => typeof e != "object" || !e), et = (e, t, n) => {
|
|
95
|
+
if (Array.isArray(e)) {
|
|
96
|
+
if (e.length === 0 || $e(e)) {
|
|
97
|
+
n.push({
|
|
98
|
+
label: Qe(t),
|
|
99
|
+
value: e
|
|
100
|
+
});
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
e.forEach((e, r) => {
|
|
104
|
+
et(e, [...t, String(r + 1)], n);
|
|
105
|
+
});
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
if (typeof e == "object" && e) {
|
|
109
|
+
let r = Object.entries(e);
|
|
110
|
+
if (r.length === 0) {
|
|
111
|
+
n.push({
|
|
112
|
+
label: Qe(t),
|
|
113
|
+
value: null
|
|
114
|
+
});
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
r.forEach(([e, r]) => {
|
|
118
|
+
et(r, [...t, e], n);
|
|
119
|
+
});
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
n.push({
|
|
123
|
+
label: Qe(t),
|
|
124
|
+
value: e
|
|
125
|
+
});
|
|
126
|
+
}, tt = (e) => {
|
|
127
|
+
if (typeof e != "string") return e;
|
|
128
|
+
try {
|
|
129
|
+
return JSON.parse(e);
|
|
130
|
+
} catch {
|
|
131
|
+
return e;
|
|
132
|
+
}
|
|
133
|
+
}, nt = (e) => {
|
|
134
|
+
let t = [];
|
|
135
|
+
return et(tt(e), [], t), t.map((e) => ({
|
|
136
|
+
...e,
|
|
137
|
+
label: e.label || "Value"
|
|
138
|
+
}));
|
|
139
|
+
}, rt = (e, t) => {
|
|
140
|
+
if (typeof e != "string") return !1;
|
|
141
|
+
if (e.startsWith("data:image/")) return !0;
|
|
142
|
+
try {
|
|
143
|
+
let n = new URL(e);
|
|
144
|
+
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : Ye.test(n.pathname) || Xe.test(t);
|
|
145
|
+
} catch {
|
|
146
|
+
return !1;
|
|
147
|
+
}
|
|
148
|
+
}, it = (e, t) => Array.isArray(e) && e.length > 0 && e.every((e) => rt(e, t)), at = (e) => e == null || e === "" ? "Not provided" : typeof e == "boolean" ? e ? "Yes" : "No" : String(e), ot = (e) => Array.isArray(e) ? e.length === 0 ? "None" : e.map(at).join(", ") : at(e), st = (e) => {
|
|
149
|
+
let t = tt(e);
|
|
150
|
+
if (Array.isArray(t) && t.length === 0 || typeof t == "object" && t && Object.keys(t).length === 0) return "No details";
|
|
151
|
+
let n = nt(e).filter((e) => !rt(e.value, e.label) && !it(e.value, e.label));
|
|
152
|
+
if (n.length === 0) return "No details";
|
|
153
|
+
let r = n.slice(0, 2).map((e) => ot(e.value)), i = n.length - r.length;
|
|
154
|
+
return [...r, i > 0 ? `${i} more` : null].filter(Boolean).join(" · ");
|
|
155
|
+
}, ct = (e) => {
|
|
156
|
+
let { label: t, value: n } = e;
|
|
157
|
+
return rt(n, t) ? {
|
|
158
|
+
type: "image",
|
|
159
|
+
src: String(n),
|
|
160
|
+
alt: `${t} preview`
|
|
161
|
+
} : Array.isArray(n) && it(n, t) ? {
|
|
162
|
+
type: "image-gallery",
|
|
163
|
+
images: n.map((e, n) => ({
|
|
164
|
+
src: String(e),
|
|
165
|
+
alt: `${t} ${n + 1} preview`
|
|
166
|
+
}))
|
|
167
|
+
} : Array.isArray(n) ? n : n === void 0 ? null : n;
|
|
168
|
+
}, lt = (e) => nt(e).map((e, t) => ({
|
|
169
|
+
id: `friendly-json-${t}`,
|
|
170
|
+
name: e.label,
|
|
171
|
+
type: "readOnly",
|
|
172
|
+
value: ct(e)
|
|
173
|
+
})), ut = (e) => {
|
|
174
|
+
let t = U(4), { value: n } = e, r;
|
|
175
|
+
t[0] === n ? r = t[1] : (r = lt(n), t[0] = n, t[1] = r);
|
|
176
|
+
let i;
|
|
177
|
+
return t[2] === r ? i = t[3] : (i = /* @__PURE__ */ W(O, {
|
|
178
|
+
params: r,
|
|
179
|
+
readOnly: !0,
|
|
180
|
+
fullWidth: !0
|
|
181
|
+
}), t[2] = r, t[3] = i), i;
|
|
182
|
+
}, dt = (e) => e.stopPropagation(), ft = (e) => {
|
|
183
|
+
let t = U(49), { columnLabel: n, value: i } = e, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b;
|
|
184
|
+
if (t[0] !== n || t[1] !== i) {
|
|
185
|
+
let e = nt(i).flatMap(pt).slice(0, 2), r;
|
|
186
|
+
t[18] === i ? r = t[19] : (r = st(i), t[18] = i, t[19] = r), c = r, s = I.Root, t[20] === Symbol.for("react.memo_cache_sentinel") ? (f = {
|
|
187
|
+
placement: "bottom-start",
|
|
188
|
+
offset: { mainAxis: 6 }
|
|
189
|
+
}, t[20] = f) : f = t[20], o = I.Trigger, d = !0, a = k, l = `View ${n} details`, u = "ghost", p = "xs", m = "full", h = "0", g = "28px", _ = "2xs", v = "flex-start", y = dt, b = e.length > 0 ? /* @__PURE__ */ W(j, {
|
|
190
|
+
gap: "-1",
|
|
191
|
+
flexShrink: "0",
|
|
192
|
+
children: e.map(mt)
|
|
193
|
+
}) : /* @__PURE__ */ W(se, { size: 14 }), t[0] = n, t[1] = i, t[2] = a, t[3] = o, t[4] = s, t[5] = c, t[6] = l, t[7] = u, t[8] = d, t[9] = f, t[10] = p, t[11] = m, t[12] = h, t[13] = g, t[14] = _, t[15] = v, t[16] = y, t[17] = b;
|
|
194
|
+
} else a = t[2], o = t[3], s = t[4], c = t[5], l = t[6], u = t[7], d = t[8], f = t[9], p = t[10], m = t[11], h = t[12], g = t[13], _ = t[14], v = t[15], y = t[16], b = t[17];
|
|
195
|
+
let x;
|
|
196
|
+
t[21] === c ? x = t[22] : (x = /* @__PURE__ */ W(V, {
|
|
197
|
+
flex: "1",
|
|
198
|
+
minWidth: "0",
|
|
199
|
+
textAlign: "left",
|
|
200
|
+
textStyle: "paragraph/S/regular",
|
|
201
|
+
truncate: !0,
|
|
202
|
+
children: c
|
|
203
|
+
}), t[21] = c, t[22] = x);
|
|
204
|
+
let S;
|
|
205
|
+
t[23] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ W(ue, { size: 12 }), t[23] = S) : S = t[23];
|
|
206
|
+
let C;
|
|
207
|
+
t[24] !== a || t[25] !== l || t[26] !== u || t[27] !== x || t[28] !== p || t[29] !== m || t[30] !== h || t[31] !== g || t[32] !== _ || t[33] !== v || t[34] !== y || t[35] !== b ? (C = /* @__PURE__ */ G(a, {
|
|
208
|
+
"aria-label": l,
|
|
209
|
+
variant: u,
|
|
210
|
+
size: p,
|
|
211
|
+
width: m,
|
|
212
|
+
minWidth: h,
|
|
213
|
+
height: g,
|
|
214
|
+
paddingX: _,
|
|
215
|
+
justifyContent: v,
|
|
216
|
+
onClick: y,
|
|
217
|
+
children: [
|
|
218
|
+
b,
|
|
219
|
+
x,
|
|
220
|
+
S
|
|
221
|
+
]
|
|
222
|
+
}), t[24] = a, t[25] = l, t[26] = u, t[27] = x, t[28] = p, t[29] = m, t[30] = h, t[31] = g, t[32] = _, t[33] = v, t[34] = y, t[35] = b, t[36] = C) : C = t[36];
|
|
223
|
+
let w;
|
|
224
|
+
t[37] !== o || t[38] !== d || t[39] !== C ? (w = /* @__PURE__ */ W(o, {
|
|
225
|
+
asChild: d,
|
|
226
|
+
children: C
|
|
227
|
+
}), t[37] = o, t[38] = d, t[39] = C, t[40] = w) : w = t[40];
|
|
228
|
+
let T;
|
|
229
|
+
t[41] === Symbol.for("react.memo_cache_sentinel") ? (T = { overscrollBehavior: "contain" }, t[41] = T) : T = t[41];
|
|
230
|
+
let E;
|
|
231
|
+
t[42] === i ? E = t[43] : (E = /* @__PURE__ */ W(L, { children: /* @__PURE__ */ W(I.Positioner, { children: /* @__PURE__ */ W(I.Content, {
|
|
232
|
+
width: "min(380px, calc(100vw - 32px))",
|
|
233
|
+
padding: "0",
|
|
234
|
+
background: "bg",
|
|
235
|
+
overflow: "hidden",
|
|
236
|
+
children: /* @__PURE__ */ W(r, {
|
|
237
|
+
maxH: "360px",
|
|
238
|
+
viewportProps: T,
|
|
239
|
+
children: /* @__PURE__ */ W(ut, { value: i })
|
|
240
|
+
})
|
|
241
|
+
}) }) }), t[42] = i, t[43] = E);
|
|
242
|
+
let D;
|
|
243
|
+
return t[44] !== s || t[45] !== f || t[46] !== w || t[47] !== E ? (D = /* @__PURE__ */ G(s, {
|
|
244
|
+
positioning: f,
|
|
245
|
+
children: [w, E]
|
|
246
|
+
}), t[44] = s, t[45] = f, t[46] = w, t[47] = E, t[48] = D) : D = t[48], D;
|
|
233
247
|
};
|
|
234
|
-
function
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
248
|
+
function pt(e) {
|
|
249
|
+
return rt(e.value, e.label) ? [e] : !Array.isArray(e.value) || !it(e.value, e.label) ? [] : e.value.map((t, n) => ({
|
|
250
|
+
label: `${e.label} ${n + 1}`,
|
|
251
|
+
value: t
|
|
252
|
+
}));
|
|
239
253
|
}
|
|
240
|
-
function
|
|
241
|
-
|
|
254
|
+
function mt(e) {
|
|
255
|
+
return /* @__PURE__ */ W(P, {
|
|
256
|
+
src: String(e.value),
|
|
257
|
+
alt: `${e.label} preview`,
|
|
258
|
+
boxSize: "22px",
|
|
259
|
+
borderRadius: "xs",
|
|
260
|
+
borderWidth: "1px",
|
|
261
|
+
borderColor: "border.subtle",
|
|
262
|
+
objectFit: "cover"
|
|
263
|
+
}, e.label);
|
|
242
264
|
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}) :
|
|
251
|
-
|
|
252
|
-
},
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
},
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
265
|
+
//#endregion
|
|
266
|
+
//#region src/components/data-table/data-table-cell-renderers.tsx
|
|
267
|
+
var ht = (e) => Y(e) ? J(e, { style: {
|
|
268
|
+
...e.props.style,
|
|
269
|
+
flexWrap: "nowrap",
|
|
270
|
+
minWidth: 0,
|
|
271
|
+
whiteSpace: "nowrap"
|
|
272
|
+
} }) : e, gt = (e) => {
|
|
273
|
+
e.stopPropagation();
|
|
274
|
+
}, _t = (t) => {
|
|
275
|
+
let n = U(8), { table: r } = t, i = r.getIsAllRowsSelected(), a = !i && r.getIsSomeRowsSelected(), o = i ? !0 : a ? "indeterminate" : !1, s = a ? fe : ce, c;
|
|
276
|
+
n[0] === s ? c = n[1] : (c = /* @__PURE__ */ W(M, {
|
|
277
|
+
as: s,
|
|
278
|
+
boxSize: "12px",
|
|
279
|
+
strokeWidth: "3"
|
|
280
|
+
}), n[0] = s, n[1] = c);
|
|
281
|
+
let l;
|
|
282
|
+
n[2] === r ? l = n[3] : (l = (e) => r.toggleAllRowsSelected(e.checked === !0), n[2] = r, n[3] = l);
|
|
283
|
+
let u;
|
|
284
|
+
return n[4] !== o || n[5] !== c || n[6] !== l ? (u = /* @__PURE__ */ W(e, {
|
|
285
|
+
checked: o,
|
|
286
|
+
"aria-label": "Select all",
|
|
287
|
+
icon: c,
|
|
288
|
+
onClick: gt,
|
|
289
|
+
onCheckedChange: l
|
|
290
|
+
}), n[4] = o, n[5] = c, n[6] = l, n[7] = u) : u = n[7], u;
|
|
291
|
+
}, vt = (t) => {
|
|
292
|
+
let n = U(6), { row: r, column: i } = t, { selectedRowIds: a } = i.columnDef.meta, o = !!a?.[r.id], s;
|
|
293
|
+
n[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ W(M, {
|
|
294
|
+
as: ce,
|
|
295
|
+
boxSize: "12px",
|
|
296
|
+
strokeWidth: "3"
|
|
297
|
+
}), n[0] = s) : s = n[0];
|
|
298
|
+
let c;
|
|
299
|
+
n[1] === r ? c = n[2] : (c = (e) => r.toggleSelected(e.checked === !0), n[1] = r, n[2] = c);
|
|
300
|
+
let l;
|
|
301
|
+
return n[3] !== o || n[4] !== c ? (l = /* @__PURE__ */ W(e, {
|
|
302
|
+
checked: o,
|
|
303
|
+
"aria-label": "Select row",
|
|
304
|
+
icon: s,
|
|
305
|
+
onClick: gt,
|
|
306
|
+
onCheckedChange: c
|
|
307
|
+
}), n[3] = o, n[4] = c, n[5] = l) : l = n[5], l;
|
|
308
|
+
}, yt = (e, t) => {
|
|
309
|
+
let n = new Set(t.map((e) => e.label));
|
|
310
|
+
return [...t, ...e.filter((e) => !n.has(e.label))];
|
|
311
|
+
}, bt = (e) => {
|
|
312
|
+
let t = U(30), { row: n, column: r } = e, { rowActions: i, getRowActions: a } = r.columnDef.meta, s, c, l, u, d, f, p, m, h;
|
|
313
|
+
if (t[0] !== a || t[1] !== n || t[2] !== i) {
|
|
314
|
+
h = Symbol.for("react.early_return_sentinel");
|
|
315
|
+
bb0: {
|
|
316
|
+
let e = yt(i === void 0 ? [] : i, a?.(n.original) ?? []);
|
|
317
|
+
if (e.length === 0) {
|
|
318
|
+
h = null;
|
|
319
|
+
break bb0;
|
|
320
|
+
}
|
|
321
|
+
u = F.Root, t[12] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ W(F.Trigger, {
|
|
322
|
+
asChild: !0,
|
|
323
|
+
children: /* @__PURE__ */ W(N, {
|
|
324
|
+
"aria-label": "Row actions",
|
|
325
|
+
size: "2xs",
|
|
326
|
+
variant: "ghost",
|
|
327
|
+
onClick: gt,
|
|
328
|
+
children: /* @__PURE__ */ W(M, {
|
|
329
|
+
as: le,
|
|
330
|
+
boxSize: "14px"
|
|
331
|
+
})
|
|
332
|
+
})
|
|
333
|
+
}), t[12] = m) : m = t[12], l = L, c = F.Positioner, s = F.Content, d = "popover", f = "bg";
|
|
334
|
+
let r;
|
|
335
|
+
t[13] === n ? r = t[14] : (r = (e) => /* @__PURE__ */ W(F.Item, {
|
|
336
|
+
value: e.label,
|
|
337
|
+
asChild: !0,
|
|
338
|
+
children: /* @__PURE__ */ W(o, {
|
|
339
|
+
asChild: !0,
|
|
340
|
+
variant: "full-width",
|
|
341
|
+
tone: e.destructive ? "danger" : "default",
|
|
342
|
+
label: e.label,
|
|
343
|
+
icon: e.icon,
|
|
344
|
+
onClick: gt,
|
|
345
|
+
onActivate: () => e.onSelect(n.original)
|
|
346
|
+
})
|
|
347
|
+
}, e.label), t[13] = n, t[14] = r), p = e.map(r);
|
|
348
|
+
}
|
|
349
|
+
t[0] = a, t[1] = n, t[2] = i, t[3] = s, t[4] = c, t[5] = l, t[6] = u, t[7] = d, t[8] = f, t[9] = p, t[10] = m, t[11] = h;
|
|
350
|
+
} else s = t[3], c = t[4], l = t[5], u = t[6], d = t[7], f = t[8], p = t[9], m = t[10], h = t[11];
|
|
351
|
+
if (h !== Symbol.for("react.early_return_sentinel")) return h;
|
|
352
|
+
let g;
|
|
353
|
+
t[15] !== s || t[16] !== d || t[17] !== f || t[18] !== p ? (g = /* @__PURE__ */ W(s, {
|
|
354
|
+
zIndex: d,
|
|
355
|
+
bg: f,
|
|
356
|
+
children: p
|
|
357
|
+
}), t[15] = s, t[16] = d, t[17] = f, t[18] = p, t[19] = g) : g = t[19];
|
|
358
|
+
let _;
|
|
359
|
+
t[20] !== c || t[21] !== g ? (_ = /* @__PURE__ */ W(c, { children: g }), t[20] = c, t[21] = g, t[22] = _) : _ = t[22];
|
|
360
|
+
let v;
|
|
361
|
+
t[23] !== l || t[24] !== _ ? (v = /* @__PURE__ */ W(l, { children: _ }), t[23] = l, t[24] = _, t[25] = v) : v = t[25];
|
|
362
|
+
let y;
|
|
363
|
+
return t[26] !== u || t[27] !== m || t[28] !== v ? (y = /* @__PURE__ */ G(u, { children: [m, v] }), t[26] = u, t[27] = m, t[28] = v, t[29] = y) : y = t[29], y;
|
|
364
|
+
}, xt = (e) => {
|
|
365
|
+
let t = U(15), { value: n, wrapRows: r } = e, i, a;
|
|
366
|
+
if (t[0] !== n || t[1] !== r) {
|
|
367
|
+
a = Symbol.for("react.early_return_sentinel");
|
|
368
|
+
bb0: if (i = m(n), Y(i)) {
|
|
369
|
+
let e = r ? "visible" : "hidden", n = r ? "anywhere" : void 0, o = r ? "normal" : "nowrap", s = r ? i : ht(i), c;
|
|
370
|
+
t[4] !== e || t[5] !== n || t[6] !== o || t[7] !== s ? (c = /* @__PURE__ */ W(H.span, {
|
|
371
|
+
display: "inline-flex",
|
|
372
|
+
maxWidth: "full",
|
|
373
|
+
minW: "0",
|
|
374
|
+
overflow: e,
|
|
375
|
+
overflowWrap: n,
|
|
376
|
+
whiteSpace: o,
|
|
377
|
+
children: s
|
|
378
|
+
}), t[4] = e, t[5] = n, t[6] = o, t[7] = s, t[8] = c) : c = t[8], a = c;
|
|
379
|
+
break bb0;
|
|
380
|
+
}
|
|
381
|
+
t[0] = n, t[1] = r, t[2] = i, t[3] = a;
|
|
382
|
+
} else i = t[2], a = t[3];
|
|
383
|
+
if (a !== Symbol.for("react.early_return_sentinel")) return a;
|
|
384
|
+
let o = r ? "visible" : "hidden", s = r ? "anywhere" : void 0, c = r ? void 0 : "ellipsis", l = r ? "normal" : "nowrap", u;
|
|
385
|
+
return t[9] !== i || t[10] !== o || t[11] !== s || t[12] !== c || t[13] !== l ? (u = /* @__PURE__ */ W(V, {
|
|
386
|
+
maxWidth: "full",
|
|
387
|
+
overflow: o,
|
|
388
|
+
overflowWrap: s,
|
|
389
|
+
textOverflow: c,
|
|
390
|
+
textStyle: "paragraph/S/regular",
|
|
391
|
+
whiteSpace: l,
|
|
392
|
+
children: i
|
|
393
|
+
}), t[9] = i, t[10] = o, t[11] = s, t[12] = c, t[13] = l, t[14] = u) : u = t[14], u;
|
|
394
|
+
}, St = (e) => {
|
|
395
|
+
let t = U(11), { columnLabel: n, renderer: r, value: i, wrapRows: a } = e;
|
|
396
|
+
if (r?.type === "json") {
|
|
397
|
+
let e;
|
|
398
|
+
return t[0] !== n || t[1] !== i ? (e = /* @__PURE__ */ W(ft, {
|
|
399
|
+
columnLabel: n,
|
|
400
|
+
value: i
|
|
401
|
+
}), t[0] = n, t[1] = i, t[2] = e) : e = t[2], e;
|
|
402
|
+
}
|
|
403
|
+
if (r?.type === "color-scale" && qe(i, r.stops) && typeof i == "number") {
|
|
404
|
+
let e;
|
|
405
|
+
return t[3] === i ? e = t[4] : (e = /* @__PURE__ */ W(Je, { value: i }), t[3] = i, t[4] = e), e;
|
|
406
|
+
}
|
|
407
|
+
if (r?.type === "categorical-color" && De(i, r.categories)) {
|
|
408
|
+
let e;
|
|
409
|
+
return t[5] !== i || t[6] !== a ? (e = /* @__PURE__ */ W(Oe, { children: /* @__PURE__ */ W(xt, {
|
|
410
|
+
value: i,
|
|
411
|
+
wrapRows: a
|
|
412
|
+
}) }), t[5] = i, t[6] = a, t[7] = e) : e = t[7], e;
|
|
413
|
+
}
|
|
414
|
+
let o;
|
|
415
|
+
return t[8] !== i || t[9] !== a ? (o = /* @__PURE__ */ W(xt, {
|
|
416
|
+
value: i,
|
|
417
|
+
wrapRows: a
|
|
418
|
+
}), t[8] = i, t[9] = a, t[10] = o) : o = t[10], o;
|
|
419
|
+
}, Ct = (e) => {
|
|
420
|
+
let t = U(4), { getValue: n } = e, r;
|
|
421
|
+
t[0] === n ? r = t[1] : (r = n(), t[0] = n, t[1] = r);
|
|
422
|
+
let i;
|
|
423
|
+
return t[2] === r ? i = t[3] : (i = /* @__PURE__ */ W(H.span, {
|
|
424
|
+
display: "block",
|
|
425
|
+
textStyle: "paragraph/S/regular",
|
|
426
|
+
textAlign: "center",
|
|
427
|
+
children: r
|
|
428
|
+
}), t[2] = r, t[3] = i), i;
|
|
429
|
+
}, wt = (e) => {
|
|
430
|
+
let t = U(7), { column: n, getValue: r } = e, { renderer: i, wrapRows: a } = n.columnDef.meta, o = a !== void 0 && a, s = n.id, c;
|
|
431
|
+
t[0] === r ? c = t[1] : (c = r(), t[0] = r, t[1] = c);
|
|
432
|
+
let l;
|
|
433
|
+
return t[2] !== n.id || t[3] !== i || t[4] !== c || t[5] !== o ? (l = /* @__PURE__ */ W(St, {
|
|
434
|
+
columnLabel: s,
|
|
435
|
+
renderer: i,
|
|
436
|
+
value: c,
|
|
437
|
+
wrapRows: o
|
|
438
|
+
}), t[2] = n.id, t[3] = i, t[4] = c, t[5] = o, t[6] = l) : l = t[6], l;
|
|
439
|
+
}, Tt = (e) => {
|
|
440
|
+
let t = U(9), { column: r } = e, { headerLabel: i, headerIcon: a, columnDescription: o } = r.columnDef.meta, s;
|
|
441
|
+
t[0] === i ? s = t[1] : (s = /* @__PURE__ */ W(H.span, {
|
|
442
|
+
overflow: "hidden",
|
|
443
|
+
textOverflow: "ellipsis",
|
|
444
|
+
whiteSpace: "nowrap",
|
|
445
|
+
children: i
|
|
446
|
+
}), t[0] = i, t[1] = s);
|
|
447
|
+
let c;
|
|
448
|
+
t[2] !== o || t[3] !== i ? (c = o ? /* @__PURE__ */ W(n, {
|
|
449
|
+
content: o,
|
|
450
|
+
children: /* @__PURE__ */ W(M, {
|
|
451
|
+
as: Z,
|
|
452
|
+
"aria-label": `About ${i}`,
|
|
453
|
+
boxSize: "12px",
|
|
454
|
+
color: "fg.muted",
|
|
455
|
+
cursor: "help",
|
|
456
|
+
flexShrink: 0,
|
|
457
|
+
opacity: .6,
|
|
458
|
+
tabIndex: 0
|
|
459
|
+
})
|
|
460
|
+
}) : null, t[2] = o, t[3] = i, t[4] = c) : c = t[4];
|
|
461
|
+
let l;
|
|
462
|
+
return t[5] !== a || t[6] !== s || t[7] !== c ? (l = /* @__PURE__ */ G(H.span, {
|
|
463
|
+
display: "inline-flex",
|
|
464
|
+
alignItems: "center",
|
|
465
|
+
gap: "4px",
|
|
466
|
+
minW: "0",
|
|
467
|
+
maxW: "full",
|
|
468
|
+
overflow: "hidden",
|
|
469
|
+
children: [
|
|
470
|
+
a,
|
|
471
|
+
s,
|
|
472
|
+
c
|
|
473
|
+
]
|
|
474
|
+
}), t[5] = a, t[6] = s, t[7] = c, t[8] = l) : l = t[8], l;
|
|
475
|
+
}, Et = (e) => _(e) ? e.sortValue : e, Dt = (e, t) => e === t ? 0 : e == null ? 1 : t == null ? -1 : typeof e == "number" && typeof t == "number" ? e - t : String(e).localeCompare(String(t)), Ot = (e, t) => {
|
|
476
|
+
if (t?.type === "color-scale") {
|
|
477
|
+
let n = qe(e, t.stops);
|
|
478
|
+
if (n && typeof e == "number") return Ue(n);
|
|
479
|
+
}
|
|
480
|
+
if (t?.type === "categorical-color") {
|
|
481
|
+
let n = De(e, t.categories);
|
|
482
|
+
if (n) return Ue(n);
|
|
483
|
+
}
|
|
364
484
|
};
|
|
365
|
-
function
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
enableResizing: !1,
|
|
415
|
-
enableSorting: !1,
|
|
416
|
-
size: 36
|
|
417
|
-
});
|
|
418
|
-
return [f, ...c ? [h] : [], ...S, ...s.length > 0 || r ? [b] : []];
|
|
485
|
+
function kt(e, t, n = {}) {
|
|
486
|
+
let { columnIcons: r, columnDescriptions: i, compactHeaders: a, enableSelection: o = !1, selectedRowIds: s, rowActions: c = [], getRowActions: l, columnRenderers: u, wrapRows: d = !1 } = n, f = C.accessor((e, t) => t + 1, {
|
|
487
|
+
header: "",
|
|
488
|
+
id: "rowIndex",
|
|
489
|
+
enableResizing: !1,
|
|
490
|
+
size: 20,
|
|
491
|
+
cell: Ct
|
|
492
|
+
}), p = C.display({
|
|
493
|
+
id: "rowSelection",
|
|
494
|
+
header: _t,
|
|
495
|
+
cell: vt,
|
|
496
|
+
meta: { selectedRowIds: s },
|
|
497
|
+
enableResizing: !1,
|
|
498
|
+
enableSorting: !1,
|
|
499
|
+
size: 36
|
|
500
|
+
}), m = t.map((t) => {
|
|
501
|
+
let n = t || "-", o = e.map((e) => e[n]), s = u?.[n], c = r?.[n], l = c === void 0 ? h(o) : c, f = i?.[n];
|
|
502
|
+
return C.accessor((e) => e[n], {
|
|
503
|
+
id: n,
|
|
504
|
+
header: Tt,
|
|
505
|
+
cell: wt,
|
|
506
|
+
meta: {
|
|
507
|
+
headerLabel: a?.[n] ?? n,
|
|
508
|
+
headerIcon: l,
|
|
509
|
+
columnDescription: f,
|
|
510
|
+
renderer: s,
|
|
511
|
+
wrapRows: d,
|
|
512
|
+
getCellStyle: (e) => Ot(e, s)
|
|
513
|
+
},
|
|
514
|
+
sortingFn: (e, t) => Dt(Et(e.original[n]), Et(t.original[n]))
|
|
515
|
+
});
|
|
516
|
+
}), g = C.display({
|
|
517
|
+
id: "rowActions",
|
|
518
|
+
header: "",
|
|
519
|
+
cell: bt,
|
|
520
|
+
meta: {
|
|
521
|
+
rowActions: c,
|
|
522
|
+
getRowActions: l
|
|
523
|
+
},
|
|
524
|
+
enableResizing: !1,
|
|
525
|
+
enableSorting: !1,
|
|
526
|
+
size: 36
|
|
527
|
+
});
|
|
528
|
+
return [
|
|
529
|
+
f,
|
|
530
|
+
...o ? [p] : [],
|
|
531
|
+
...m,
|
|
532
|
+
...c.length > 0 || l ? [g] : []
|
|
533
|
+
];
|
|
419
534
|
}
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
535
|
+
//#endregion
|
|
536
|
+
//#region src/components/data-table/data-table-column-menu.tsx
|
|
537
|
+
var At = (t) => {
|
|
538
|
+
let n = U(28), { column: r, checked: i, onColumnVisibilityChange: a } = t, o;
|
|
539
|
+
n[0] === r.id ? o = n[1] : (o = { id: r.id }, n[0] = r.id, n[1] = o);
|
|
540
|
+
let { attributes: s, listeners: c, setNodeRef: l, transform: u, transition: d, isDragging: f } = $(o), p;
|
|
541
|
+
n[2] === u ? p = n[3] : (p = xe.Transform.toString(u), n[2] = u, n[3] = p);
|
|
542
|
+
let m = f ? .5 : 1, h;
|
|
543
|
+
n[4] !== p || n[5] !== m || n[6] !== d ? (h = {
|
|
544
|
+
transform: p,
|
|
545
|
+
transition: d,
|
|
546
|
+
opacity: m
|
|
547
|
+
}, n[4] = p, n[5] = m, n[6] = d, n[7] = h) : h = n[7];
|
|
548
|
+
let g = h, _;
|
|
549
|
+
n[8] === Symbol.for("react.memo_cache_sentinel") ? (_ = { bg: "bg.hover" }, n[8] = _) : _ = n[8];
|
|
550
|
+
let v;
|
|
551
|
+
n[9] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ W(de, { size: 14 }), n[9] = v) : v = n[9];
|
|
552
|
+
let y;
|
|
553
|
+
n[10] !== s || n[11] !== c ? (y = /* @__PURE__ */ W(te, {
|
|
554
|
+
as: "span",
|
|
555
|
+
display: "inline-flex",
|
|
556
|
+
cursor: "grab",
|
|
557
|
+
color: "fg.muted",
|
|
558
|
+
...s,
|
|
559
|
+
...c,
|
|
560
|
+
children: v
|
|
561
|
+
}), n[10] = s, n[11] = c, n[12] = y) : y = n[12];
|
|
562
|
+
let b;
|
|
563
|
+
n[13] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ W(M, {
|
|
564
|
+
as: ce,
|
|
565
|
+
boxSize: "12px",
|
|
566
|
+
strokeWidth: "3"
|
|
567
|
+
}), n[13] = b) : b = n[13];
|
|
568
|
+
let x;
|
|
569
|
+
n[14] !== r.id || n[15] !== a ? (x = (e) => a(r.id, e.checked === !0), n[14] = r.id, n[15] = a, n[16] = x) : x = n[16];
|
|
570
|
+
let S;
|
|
571
|
+
n[17] === r.label ? S = n[18] : (S = /* @__PURE__ */ W(V, {
|
|
572
|
+
as: "span",
|
|
573
|
+
textStyle: "label/S/regular",
|
|
574
|
+
truncate: !0,
|
|
575
|
+
children: r.label
|
|
576
|
+
}), n[17] = r.label, n[18] = S);
|
|
577
|
+
let C;
|
|
578
|
+
n[19] !== i || n[20] !== x || n[21] !== S ? (C = /* @__PURE__ */ W(e, {
|
|
579
|
+
checked: i,
|
|
580
|
+
flex: "1",
|
|
581
|
+
minW: "0",
|
|
582
|
+
width: "full",
|
|
583
|
+
flexDirection: "row-reverse",
|
|
584
|
+
justifyContent: "space-between",
|
|
585
|
+
size: "sm",
|
|
586
|
+
icon: b,
|
|
587
|
+
onCheckedChange: x,
|
|
588
|
+
children: S
|
|
589
|
+
}), n[19] = i, n[20] = x, n[21] = S, n[22] = C) : C = n[22];
|
|
590
|
+
let w;
|
|
591
|
+
return n[23] !== l || n[24] !== g || n[25] !== C || n[26] !== y ? (w = /* @__PURE__ */ G(j, {
|
|
592
|
+
ref: l,
|
|
593
|
+
style: g,
|
|
594
|
+
gap: "2xs",
|
|
595
|
+
minW: "0",
|
|
596
|
+
width: "full",
|
|
597
|
+
borderRadius: "xs",
|
|
598
|
+
px: "xs",
|
|
599
|
+
py: "2xs",
|
|
600
|
+
_hover: _,
|
|
601
|
+
children: [y, C]
|
|
602
|
+
}), n[23] = l, n[24] = g, n[25] = C, n[26] = y, n[27] = w) : w = n[27], w;
|
|
603
|
+
}, jt = (e) => {
|
|
604
|
+
let n = U(47), { columns: a, visibleColumnIds: o, wrapRows: s, showStats: c, statsAvailable: l, onColumnVisibilityChange: u, onColumnReorder: f, onWrapRowsChange: p, onStatsVisibilityChange: m } = e, h = ie(null), g = ie(null), [_, v] = X(!1), [y, b] = X(""), x;
|
|
605
|
+
n[0] === Symbol.for("react.memo_cache_sentinel") ? (x = { activationConstraint: { distance: 5 } }, n[0] = x) : x = n[0];
|
|
606
|
+
let S = ve(_e(he, x)), C;
|
|
607
|
+
if (n[1] !== a || n[2] !== y) {
|
|
608
|
+
let e = y.trim().toLowerCase();
|
|
609
|
+
C = e ? a.filter((t) => t.label.toLowerCase().includes(e)) : a, n[1] = a, n[2] = y, n[3] = C;
|
|
610
|
+
} else C = n[3];
|
|
611
|
+
let w = C, T;
|
|
612
|
+
n[4] === f ? T = n[5] : (T = (e) => {
|
|
613
|
+
let { active: t, over: n } = e;
|
|
614
|
+
n && t.id !== n.id && f(String(t.id), String(n.id));
|
|
615
|
+
}, n[4] = f, n[5] = T);
|
|
616
|
+
let E = T, D, ee;
|
|
617
|
+
n[6] === _ ? (D = n[7], ee = n[8]) : (D = () => {
|
|
618
|
+
if (!_) return;
|
|
619
|
+
let e = (e) => {
|
|
620
|
+
let t = e.target;
|
|
621
|
+
t instanceof Node && (g.current?.contains(t) || h.current?.contains(t) || v(!1));
|
|
622
|
+
}, t = (e) => {
|
|
623
|
+
e.key === "Escape" && v(!1);
|
|
624
|
+
};
|
|
625
|
+
return document.addEventListener("pointerdown", e), document.addEventListener("keydown", t, !0), () => {
|
|
626
|
+
document.removeEventListener("pointerdown", e), document.removeEventListener("keydown", t, !0);
|
|
627
|
+
};
|
|
628
|
+
}, ee = [_], n[6] = _, n[7] = D, n[8] = ee), re(D, ee);
|
|
629
|
+
let O;
|
|
630
|
+
n[9] === Symbol.for("react.memo_cache_sentinel") ? (O = {
|
|
631
|
+
placement: "bottom-end",
|
|
632
|
+
offset: { mainAxis: 8 },
|
|
633
|
+
getAnchorElement: () => h.current
|
|
634
|
+
}, n[9] = O) : O = n[9];
|
|
635
|
+
let k;
|
|
636
|
+
n[10] === Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ W(I.Trigger, {
|
|
637
|
+
asChild: !0,
|
|
638
|
+
children: /* @__PURE__ */ W(N, {
|
|
639
|
+
ref: h,
|
|
640
|
+
"aria-label": "Display settings",
|
|
641
|
+
variant: "ghost",
|
|
642
|
+
size: "sm",
|
|
643
|
+
onClick: () => v(Mt),
|
|
644
|
+
children: /* @__PURE__ */ W(M, {
|
|
645
|
+
as: pe,
|
|
646
|
+
boxSize: "14px"
|
|
647
|
+
})
|
|
648
|
+
})
|
|
649
|
+
}), n[10] = k) : k = n[10];
|
|
650
|
+
let A;
|
|
651
|
+
n[11] !== p || n[12] !== s ? (A = /* @__PURE__ */ W(d, {
|
|
652
|
+
showDivider: !0,
|
|
653
|
+
wrapRows: s,
|
|
654
|
+
onWrapRowsChange: p
|
|
655
|
+
}), n[11] = p, n[12] = s, n[13] = A) : A = n[13];
|
|
656
|
+
let j;
|
|
657
|
+
n[14] !== m || n[15] !== c || n[16] !== l ? (j = l ? /* @__PURE__ */ W(te, {
|
|
658
|
+
borderBottomWidth: "1px",
|
|
659
|
+
borderColor: "border.subtle",
|
|
660
|
+
padding: "xs",
|
|
661
|
+
children: /* @__PURE__ */ W(t, {
|
|
662
|
+
checked: c,
|
|
663
|
+
inputProps: { role: "switch" },
|
|
664
|
+
width: "full",
|
|
665
|
+
flexDirection: "row-reverse",
|
|
666
|
+
justifyContent: "space-between",
|
|
667
|
+
onCheckedChange: (e) => m(e.checked === !0),
|
|
668
|
+
children: /* @__PURE__ */ W(V, {
|
|
669
|
+
as: "span",
|
|
670
|
+
textStyle: "label/S/regular",
|
|
671
|
+
children: "Statistics"
|
|
672
|
+
})
|
|
673
|
+
})
|
|
674
|
+
}) : null, n[14] = m, n[15] = c, n[16] = l, n[17] = j) : j = n[17];
|
|
675
|
+
let P;
|
|
676
|
+
n[18] === y ? P = n[19] : (P = /* @__PURE__ */ W(i, {
|
|
677
|
+
value: y,
|
|
678
|
+
placeholder: "Search columns",
|
|
679
|
+
onValueChange: b
|
|
680
|
+
}), n[18] = y, n[19] = P);
|
|
681
|
+
let F;
|
|
682
|
+
n[20] === Symbol.for("react.memo_cache_sentinel") ? (F = { overscrollBehavior: "contain" }, n[20] = F) : F = n[20];
|
|
683
|
+
let R;
|
|
684
|
+
n[21] === a ? R = n[22] : (R = a.map(Nt), n[21] = a, n[22] = R);
|
|
685
|
+
let B;
|
|
686
|
+
if (n[23] !== w || n[24] !== u || n[25] !== o) {
|
|
687
|
+
let e;
|
|
688
|
+
n[27] !== u || n[28] !== o ? (e = (e) => /* @__PURE__ */ W(At, {
|
|
689
|
+
column: e,
|
|
690
|
+
checked: o.has(e.id),
|
|
691
|
+
onColumnVisibilityChange: u
|
|
692
|
+
}, e.id), n[27] = u, n[28] = o, n[29] = e) : e = n[29], B = w.map(e), n[23] = w, n[24] = u, n[25] = o, n[26] = B;
|
|
693
|
+
} else B = n[26];
|
|
694
|
+
let H;
|
|
695
|
+
n[30] === B ? H = n[31] : (H = /* @__PURE__ */ W(z, {
|
|
696
|
+
gap: "1px",
|
|
697
|
+
children: B
|
|
698
|
+
}), n[30] = B, n[31] = H);
|
|
699
|
+
let K;
|
|
700
|
+
n[32] !== R || n[33] !== H ? (K = /* @__PURE__ */ W(ye, {
|
|
701
|
+
items: R,
|
|
702
|
+
strategy: be,
|
|
703
|
+
children: H
|
|
704
|
+
}), n[32] = R, n[33] = H, n[34] = K) : K = n[34];
|
|
705
|
+
let q;
|
|
706
|
+
n[35] !== E || n[36] !== S || n[37] !== K ? (q = /* @__PURE__ */ W(r, {
|
|
707
|
+
maxH: "280px",
|
|
708
|
+
viewportProps: F,
|
|
709
|
+
children: /* @__PURE__ */ W(te, {
|
|
710
|
+
padding: "2xs",
|
|
711
|
+
children: /* @__PURE__ */ W(me, {
|
|
712
|
+
sensors: S,
|
|
713
|
+
collisionDetection: ge,
|
|
714
|
+
onDragEnd: E,
|
|
715
|
+
children: K
|
|
716
|
+
})
|
|
717
|
+
})
|
|
718
|
+
}), n[35] = E, n[36] = S, n[37] = K, n[38] = q) : q = n[38];
|
|
719
|
+
let J;
|
|
720
|
+
n[39] !== q || n[40] !== A || n[41] !== j || n[42] !== P ? (J = /* @__PURE__ */ W(L, { children: /* @__PURE__ */ W(I.Positioner, { children: /* @__PURE__ */ W(I.Content, {
|
|
721
|
+
ref: g,
|
|
722
|
+
width: "min(320px, calc(100vw - 32px))",
|
|
723
|
+
p: "0",
|
|
724
|
+
bg: "bg",
|
|
725
|
+
overflow: "hidden",
|
|
726
|
+
children: /* @__PURE__ */ G(z, {
|
|
727
|
+
gap: "0",
|
|
728
|
+
children: [
|
|
729
|
+
A,
|
|
730
|
+
j,
|
|
731
|
+
P,
|
|
732
|
+
q
|
|
733
|
+
]
|
|
734
|
+
})
|
|
735
|
+
}) }) }), n[39] = q, n[40] = A, n[41] = j, n[42] = P, n[43] = J) : J = n[43];
|
|
736
|
+
let Y;
|
|
737
|
+
return n[44] !== _ || n[45] !== J ? (Y = /* @__PURE__ */ G(I.Root, {
|
|
738
|
+
open: _,
|
|
739
|
+
closeOnInteractOutside: !1,
|
|
740
|
+
positioning: O,
|
|
741
|
+
children: [k, J]
|
|
742
|
+
}), n[44] = _, n[45] = J, n[46] = Y) : Y = n[46], Y;
|
|
566
743
|
};
|
|
567
|
-
function
|
|
568
|
-
|
|
744
|
+
function Mt(e) {
|
|
745
|
+
return !e;
|
|
569
746
|
}
|
|
570
|
-
function
|
|
571
|
-
|
|
747
|
+
function Nt(e) {
|
|
748
|
+
return e.id;
|
|
572
749
|
}
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
},
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
750
|
+
//#endregion
|
|
751
|
+
//#region src/components/data-table/data-table-table-parts.tsx
|
|
752
|
+
var Pt = /* @__PURE__ */ new Set([
|
|
753
|
+
"rowIndex",
|
|
754
|
+
"rowSelection",
|
|
755
|
+
"rowActions"
|
|
756
|
+
]), Ft = (e) => e === "asc" ? oe : e === "desc" ? ae : Q, It = (e) => {
|
|
757
|
+
let t = U(37), { header: r, headerGroup: i, table: a, fullWidth: s, hasDescription: c } = e, l, u, d;
|
|
758
|
+
if (t[0] !== r.column || t[1] !== a) {
|
|
759
|
+
u = r.column.getIsSorted();
|
|
760
|
+
let e;
|
|
761
|
+
t[5] !== r.column.id || t[6] !== a ? (e = !Pt.has(r.column.id) && a.getCoreRowModel().rows.length > 1, t[5] = r.column.id, t[6] = a, t[7] = e) : e = t[7], l = e, d = Ft(u), t[0] = r.column, t[1] = a, t[2] = l, t[3] = u, t[4] = d;
|
|
762
|
+
} else l = t[2], u = t[3], d = t[4];
|
|
763
|
+
let f = d, p;
|
|
764
|
+
t[8] === r ? p = t[9] : (p = r.column.id === "rowSelection" ? "Select all" : Se(r.column.columnDef.header, r.getContext()), t[8] = r, t[9] = p);
|
|
765
|
+
let m = p, h = r.column.id, g;
|
|
766
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (g = { borderRight: "none" }, t[10] = g) : g = t[10];
|
|
767
|
+
let _ = r.id, v = s && i.headers.indexOf(r) === i.headers.length - 1 ? void 0 : `calc(var(--header-${r.id}-size) * 1px)`, y;
|
|
768
|
+
t[11] === v ? y = t[12] : (y = { width: v }, t[11] = v, t[12] = y);
|
|
769
|
+
let b;
|
|
770
|
+
t[13] === r ? b = t[14] : (b = Se(r.column.columnDef.header, r.getContext()), t[13] = r, t[14] = b);
|
|
771
|
+
let x;
|
|
772
|
+
t[15] === b ? x = t[16] : (x = /* @__PURE__ */ W(V, {
|
|
773
|
+
as: "div",
|
|
774
|
+
textStyle: "label/S/medium",
|
|
775
|
+
lineHeight: "1.2",
|
|
776
|
+
truncate: !0,
|
|
777
|
+
children: b
|
|
778
|
+
}), t[15] = b, t[16] = x);
|
|
779
|
+
let S;
|
|
780
|
+
t[17] !== f || t[18] !== l || t[19] !== r.column || t[20] !== u ? (S = l && /* @__PURE__ */ G(F.Root, { children: [/* @__PURE__ */ W(F.Trigger, {
|
|
781
|
+
asChild: !0,
|
|
782
|
+
children: /* @__PURE__ */ W(N, {
|
|
783
|
+
ml: "2px",
|
|
784
|
+
size: "2xs",
|
|
785
|
+
"aria-label": u ? `Sorted ${u}` : "Sort column",
|
|
786
|
+
variant: "ghost",
|
|
787
|
+
visibility: u ? "visible" : "hidden",
|
|
788
|
+
_groupHover: { visibility: "visible" },
|
|
789
|
+
children: /* @__PURE__ */ W(M, {
|
|
790
|
+
as: f,
|
|
791
|
+
boxSize: "14px"
|
|
792
|
+
})
|
|
793
|
+
})
|
|
794
|
+
}), /* @__PURE__ */ W(L, { children: /* @__PURE__ */ W(F.Positioner, { children: /* @__PURE__ */ G(F.Content, {
|
|
795
|
+
zIndex: "popover",
|
|
796
|
+
bg: "bg",
|
|
797
|
+
children: [
|
|
798
|
+
/* @__PURE__ */ W(F.Item, {
|
|
799
|
+
value: "sort-asc",
|
|
800
|
+
asChild: !0,
|
|
801
|
+
children: /* @__PURE__ */ W(o, {
|
|
802
|
+
asChild: !0,
|
|
803
|
+
variant: "full-width",
|
|
804
|
+
label: "Sort ascending",
|
|
805
|
+
icon: /* @__PURE__ */ W(M, {
|
|
806
|
+
as: oe,
|
|
807
|
+
boxSize: "16px"
|
|
808
|
+
}),
|
|
809
|
+
disabled: u === "asc",
|
|
810
|
+
onActivate: () => r.column.toggleSorting(!1)
|
|
811
|
+
})
|
|
812
|
+
}),
|
|
813
|
+
/* @__PURE__ */ W(F.Item, {
|
|
814
|
+
value: "sort-desc",
|
|
815
|
+
asChild: !0,
|
|
816
|
+
children: /* @__PURE__ */ W(o, {
|
|
817
|
+
asChild: !0,
|
|
818
|
+
variant: "full-width",
|
|
819
|
+
label: "Sort descending",
|
|
820
|
+
icon: /* @__PURE__ */ W(M, {
|
|
821
|
+
as: ae,
|
|
822
|
+
boxSize: "16px"
|
|
823
|
+
}),
|
|
824
|
+
disabled: u === "desc",
|
|
825
|
+
onActivate: () => r.column.toggleSorting(!0)
|
|
826
|
+
})
|
|
827
|
+
}),
|
|
828
|
+
u && /* @__PURE__ */ W(F.Item, {
|
|
829
|
+
value: "clear-sort",
|
|
830
|
+
asChild: !0,
|
|
831
|
+
children: /* @__PURE__ */ W(o, {
|
|
832
|
+
asChild: !0,
|
|
833
|
+
variant: "full-width",
|
|
834
|
+
label: "Clear sort",
|
|
835
|
+
onActivate: () => r.column.clearSorting()
|
|
836
|
+
})
|
|
837
|
+
})
|
|
838
|
+
]
|
|
839
|
+
}) }) })] }), t[17] = f, t[18] = l, t[19] = r.column, t[20] = u, t[21] = S) : S = t[21];
|
|
840
|
+
let C;
|
|
841
|
+
t[22] === r ? C = t[23] : (C = r.column.getCanResize() && /* @__PURE__ */ W("span", {
|
|
842
|
+
onDoubleClick: () => r.column.resetSize(),
|
|
843
|
+
onMouseDown: r.getResizeHandler(),
|
|
844
|
+
onTouchStart: r.getResizeHandler(),
|
|
845
|
+
className: `resizer ${r.column.getIsResizing() ? "isResizing" : ""}`
|
|
846
|
+
}), t[22] = r, t[23] = C);
|
|
847
|
+
let w;
|
|
848
|
+
t[24] !== C || t[25] !== x || t[26] !== S ? (w = /* @__PURE__ */ G(A, {
|
|
849
|
+
className: "group",
|
|
850
|
+
alignItems: "center",
|
|
851
|
+
justifyContent: "space-between",
|
|
852
|
+
gap: "1",
|
|
853
|
+
flex: "1",
|
|
854
|
+
minW: "0",
|
|
855
|
+
children: [
|
|
856
|
+
x,
|
|
857
|
+
S,
|
|
858
|
+
C
|
|
859
|
+
]
|
|
860
|
+
}), t[24] = C, t[25] = x, t[26] = S, t[27] = w) : w = t[27];
|
|
861
|
+
let T;
|
|
862
|
+
t[28] !== c || t[29] !== w || t[30] !== m ? (T = /* @__PURE__ */ W(n, {
|
|
863
|
+
content: m,
|
|
864
|
+
disabled: c,
|
|
865
|
+
children: w
|
|
866
|
+
}), t[28] = c, t[29] = w, t[30] = m, t[31] = T) : T = t[31];
|
|
867
|
+
let E;
|
|
868
|
+
return t[32] !== r.column.id || t[33] !== r.id || t[34] !== T || t[35] !== y ? (E = /* @__PURE__ */ W(B.ColumnHeader, {
|
|
869
|
+
"data-column-id": h,
|
|
870
|
+
textTransform: "none",
|
|
871
|
+
borderRight: "1px solid",
|
|
872
|
+
_last: g,
|
|
873
|
+
borderColor: "border.subtle",
|
|
874
|
+
paddingX: "xs",
|
|
875
|
+
paddingY: "xs",
|
|
876
|
+
overflow: "hidden",
|
|
877
|
+
position: "relative",
|
|
878
|
+
verticalAlign: "middle",
|
|
879
|
+
whiteSpace: "nowrap",
|
|
880
|
+
style: y,
|
|
881
|
+
children: T
|
|
882
|
+
}, _), t[32] = r.column.id, t[33] = r.id, t[34] = T, t[35] = y, t[36] = E) : E = t[36], E;
|
|
883
|
+
}, Lt = (e) => {
|
|
884
|
+
let t = U(26), { cell: n, row: r, wrapRows: i, getCellContextMenuActions: o } = e, s = n.column.columnDef.meta, c;
|
|
885
|
+
t[0] !== n || t[1] !== s ? (c = s?.getCellStyle?.(n.getValue()), t[0] = n, t[1] = s, t[2] = c) : c = t[2];
|
|
886
|
+
let l = c, u;
|
|
887
|
+
if (t[3] !== n || t[4] !== o || t[5] !== r.id || t[6] !== r.original) {
|
|
888
|
+
let e = {
|
|
889
|
+
row: r.original,
|
|
890
|
+
rowId: r.id,
|
|
891
|
+
columnId: n.column.id,
|
|
892
|
+
value: n.getValue()
|
|
893
|
+
};
|
|
894
|
+
u = o?.(e).map((t) => ({
|
|
895
|
+
key: t.label,
|
|
896
|
+
label: t.label,
|
|
897
|
+
icon: t.icon,
|
|
898
|
+
onClick: () => t.onSelect(e)
|
|
899
|
+
})) ?? [], t[3] = n, t[4] = o, t[5] = r.id, t[6] = r.original, t[7] = u;
|
|
900
|
+
} else u = t[7];
|
|
901
|
+
let d = u, f = n.column.id, p = i ? "anywhere" : void 0, m = i ? void 0 : "10", h = i ? void 0 : "10", g;
|
|
902
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (g = { borderRight: "none" }, t[8] = g) : g = t[8];
|
|
903
|
+
let _ = n.id, v = i ? void 0 : "ellipsis", y = i ? "top" : "middle", b = i ? "normal" : "nowrap", x;
|
|
904
|
+
t[9] === n ? x = t[10] : (x = Se(n.column.columnDef.cell, n.getContext()), t[9] = n, t[10] = x);
|
|
905
|
+
let S;
|
|
906
|
+
t[11] !== n.column.id || t[12] !== n.id || t[13] !== l || t[14] !== b || t[15] !== x || t[16] !== p || t[17] !== m || t[18] !== h || t[19] !== v || t[20] !== y ? (S = /* @__PURE__ */ W(B.Cell, {
|
|
907
|
+
"data-column-id": f,
|
|
908
|
+
width: "fit-content",
|
|
909
|
+
maxWidth: "12rem",
|
|
910
|
+
overflow: "hidden",
|
|
911
|
+
overflowWrap: p,
|
|
912
|
+
padding: "xs",
|
|
913
|
+
height: m,
|
|
914
|
+
maxHeight: h,
|
|
915
|
+
borderRight: "1px solid",
|
|
916
|
+
borderColor: "border.subtle",
|
|
917
|
+
_last: g,
|
|
918
|
+
borderBottom: "none",
|
|
919
|
+
textStyle: "paragraph/S/regular",
|
|
920
|
+
textOverflow: v,
|
|
921
|
+
verticalAlign: y,
|
|
922
|
+
whiteSpace: b,
|
|
923
|
+
style: l,
|
|
924
|
+
children: x
|
|
925
|
+
}, _), t[11] = n.column.id, t[12] = n.id, t[13] = l, t[14] = b, t[15] = x, t[16] = p, t[17] = m, t[18] = h, t[19] = v, t[20] = y, t[21] = S) : S = t[21];
|
|
926
|
+
let C = S;
|
|
927
|
+
if (d.length === 0) return C;
|
|
928
|
+
let w;
|
|
929
|
+
return t[22] !== n.id || t[23] !== C || t[24] !== d ? (w = /* @__PURE__ */ W(a, {
|
|
930
|
+
actions: d,
|
|
931
|
+
children: C
|
|
932
|
+
}, n.id), t[22] = n.id, t[23] = C, t[24] = d, t[25] = w) : w = t[25], w;
|
|
933
|
+
}, Rt = (e) => {
|
|
934
|
+
let t = U(23), { row: n, noBorder: r, rowIsInteractive: i, rowIsActive: a, rowIsSelected: o, wrapRows: s, onRowClick: c, getCellContextMenuActions: l } = e, u = n.id, d = a ? "true" : void 0, f = o ? "true" : void 0, p = o ? "true" : void 0, m = s ? void 0 : "10", h = i ? "pointer" : void 0, g;
|
|
935
|
+
t[0] !== c || t[1] !== n.original || t[2] !== i ? (g = i ? () => c?.(n.original) : void 0, t[0] = c, t[1] = n.original, t[2] = i, t[3] = g) : g = t[3];
|
|
936
|
+
let _ = r ? "none" : "1px solid", v = r ? "none" : "1px solid", y = r ? "none" : "1px solid", b;
|
|
937
|
+
t[4] === y ? b = t[5] : (b = {
|
|
938
|
+
borderBottom: y,
|
|
939
|
+
borderColor: "border.subtle"
|
|
940
|
+
}, t[4] = y, t[5] = b);
|
|
941
|
+
let x = a ? "bg.active" : "bg", S;
|
|
942
|
+
t[6] !== l || t[7] !== n || t[8] !== s ? (S = n.getVisibleCells().map((e) => /* @__PURE__ */ W(Lt, {
|
|
943
|
+
cell: e,
|
|
944
|
+
row: n,
|
|
945
|
+
wrapRows: s,
|
|
946
|
+
getCellContextMenuActions: l
|
|
947
|
+
}, e.id)), t[6] = l, t[7] = n, t[8] = s, t[9] = S) : S = t[9];
|
|
948
|
+
let C;
|
|
949
|
+
return t[10] !== n.id || t[11] !== d || t[12] !== b || t[13] !== x || t[14] !== S || t[15] !== f || t[16] !== p || t[17] !== m || t[18] !== h || t[19] !== g || t[20] !== _ || t[21] !== v ? (C = /* @__PURE__ */ W(B.Row, {
|
|
950
|
+
"data-active": d,
|
|
951
|
+
"data-selected": f,
|
|
952
|
+
"aria-selected": p,
|
|
953
|
+
height: m,
|
|
954
|
+
cursor: h,
|
|
955
|
+
onClick: g,
|
|
956
|
+
borderTop: _,
|
|
957
|
+
borderBottom: "1px solid",
|
|
958
|
+
borderRight: v,
|
|
959
|
+
_last: b,
|
|
960
|
+
borderColor: "border.subtle",
|
|
961
|
+
background: x,
|
|
962
|
+
children: S
|
|
963
|
+
}, u), t[10] = n.id, t[11] = d, t[12] = b, t[13] = x, t[14] = S, t[15] = f, t[16] = p, t[17] = m, t[18] = h, t[19] = g, t[20] = _, t[21] = v, t[22] = C) : C = t[22], C;
|
|
964
|
+
}, zt = ne(() => import("./data-table-stats-row-DNJG8tLZ.js").then((e) => ({ default: e.DataTableStatsRow }))), Bt = (e, t) => e.map((e) => ({
|
|
965
|
+
id: e,
|
|
966
|
+
label: t?.[e] ?? e
|
|
967
|
+
})), Vt = (e) => {
|
|
968
|
+
let t = U(12), { table: n, pagination: r, pageSizeOptions: i } = e, a;
|
|
969
|
+
t[0] === n ? a = t[1] : (a = n.getPageCount(), t[0] = n, t[1] = a);
|
|
970
|
+
let o = r.pageIndex, s = r.pageSize, c;
|
|
971
|
+
t[2] === n ? c = t[3] : (c = n.getCoreRowModel(), t[2] = n, t[3] = c);
|
|
972
|
+
let l;
|
|
973
|
+
return t[4] !== i || t[5] !== r.pageIndex || t[6] !== r.pageSize || t[7] !== a || t[8] !== c.rows.length || t[9] !== n.setPageIndex || t[10] !== n.setPageSize ? (l = /* @__PURE__ */ W(x, {
|
|
974
|
+
pageCount: a,
|
|
975
|
+
pageIndex: o,
|
|
976
|
+
pageSize: s,
|
|
977
|
+
pageSizeOptions: i,
|
|
978
|
+
totalRows: c.rows.length,
|
|
979
|
+
onPageChange: n.setPageIndex,
|
|
980
|
+
onPageSizeChange: n.setPageSize
|
|
981
|
+
}), t[4] = i, t[5] = r.pageIndex, t[6] = r.pageSize, t[7] = a, t[8] = c.rows.length, t[9] = n.setPageIndex, t[10] = n.setPageSize, t[11] = l) : l = t[11], l;
|
|
982
|
+
}, Ht = (e) => {
|
|
983
|
+
let { data: t, noBorder: n, fullWidth: i, hiddenColumns: a, onRowClick: o, isRowInteractive: d, activeRowId: m, columnIcons: h, columnDescriptions: _, compactHeaders: x, columnStats: C, columnRenderers: T, initialPageSize: O, pageSizeOptions: k = [
|
|
984
|
+
10,
|
|
985
|
+
20,
|
|
986
|
+
30,
|
|
987
|
+
50,
|
|
988
|
+
100
|
|
989
|
+
], rowActions: j = [], getRowActions: M, getRowId: N, toolbarStorageKey: P, enableRowActivation: F = !1, getCellContextMenuActions: I } = e, [L, R] = X([]), [z, V] = X(() => ({
|
|
990
|
+
pageIndex: 0,
|
|
991
|
+
pageSize: l({ initialPageSize: O })
|
|
992
|
+
})), [H, U] = X({}), [J, Y] = X(!0), [ne, ie] = X(!1), [ae, oe] = X(() => {
|
|
993
|
+
let e = new Set(a ?? []);
|
|
994
|
+
return Object.keys(t[0] || {}).filter((t) => !e.has(t));
|
|
995
|
+
}), [se, ce] = X(() => /* @__PURE__ */ new Set()), le = new Set(a ?? []), ue = Object.keys(t[0] || {}).filter((e) => !le.has(e)), Z = E(ue, ae), de = new Set(Z.filter((e) => !se.has(e))), fe = Z.filter((e) => de.has(e)), Q = w(e), pe = g(e), me = ee(t, Z, x), he = b(t, Z, N), ge = u({
|
|
996
|
+
toolbarStorageKey: P,
|
|
997
|
+
columnKeys: ue
|
|
998
|
+
}), _e = p(ge, (e) => e.filters, {
|
|
999
|
+
settings: { viewMode: "list" },
|
|
1000
|
+
views: e.defaultViews,
|
|
1001
|
+
activeViewId: e.defaultActiveViewId
|
|
1002
|
+
}), ve = D(he, _e, me).map((e) => e.sourceRow), ye = kt(t, fe, {
|
|
1003
|
+
columnIcons: h,
|
|
1004
|
+
columnDescriptions: _,
|
|
1005
|
+
compactHeaders: x,
|
|
1006
|
+
enableSelection: Q,
|
|
1007
|
+
rowActions: j,
|
|
1008
|
+
getRowActions: M,
|
|
1009
|
+
selectedRowIds: H,
|
|
1010
|
+
columnRenderers: T,
|
|
1011
|
+
wrapRows: ne
|
|
1012
|
+
}), $ = Ee({
|
|
1013
|
+
data: ve,
|
|
1014
|
+
columns: ye,
|
|
1015
|
+
defaultColumn: {
|
|
1016
|
+
size: 150,
|
|
1017
|
+
minSize: 40,
|
|
1018
|
+
maxSize: 800
|
|
1019
|
+
},
|
|
1020
|
+
state: {
|
|
1021
|
+
sorting: L,
|
|
1022
|
+
pagination: z,
|
|
1023
|
+
rowSelection: H
|
|
1024
|
+
},
|
|
1025
|
+
getRowId: (e, t) => y(e, t, N),
|
|
1026
|
+
columnResizeMode: "onChange",
|
|
1027
|
+
columnResizeDirection: "ltr",
|
|
1028
|
+
onSortingChange: R,
|
|
1029
|
+
onPaginationChange: V,
|
|
1030
|
+
onRowSelectionChange: U,
|
|
1031
|
+
getSortedRowModel: Te(),
|
|
1032
|
+
getCoreRowModel: Ce(),
|
|
1033
|
+
getPaginationRowModel: we(),
|
|
1034
|
+
enableMultiRowSelection: Q,
|
|
1035
|
+
enableRowSelection: Q,
|
|
1036
|
+
autoResetAll: !1
|
|
1037
|
+
});
|
|
1038
|
+
re(() => {
|
|
1039
|
+
let e = $.getPageCount();
|
|
1040
|
+
e === 0 || z.pageIndex < e || V((t) => ({
|
|
1041
|
+
...t,
|
|
1042
|
+
pageIndex: Math.max(e - 1, 0)
|
|
1043
|
+
}));
|
|
1044
|
+
}, [z.pageIndex, $]);
|
|
1045
|
+
let be = (() => {
|
|
1046
|
+
let e = $.getFlatHeaders(), t = {};
|
|
1047
|
+
for (let n = 0; n < e.length; n++) {
|
|
1048
|
+
let r = e[n];
|
|
1049
|
+
t[`--header-${r.id}-size`] = r.getSize(), t[`--col-${r.column.id}-size`] = r.column.getSize();
|
|
1050
|
+
}
|
|
1051
|
+
return t;
|
|
1052
|
+
})(), xe = $.getSelectedRowModel().rows, Se = $.getCoreRowModel().rows, De = v(xe), Oe = /* @__PURE__ */ W(jt, {
|
|
1053
|
+
columns: Bt(Z, x),
|
|
1054
|
+
visibleColumnIds: de,
|
|
1055
|
+
wrapRows: ne,
|
|
1056
|
+
showStats: J,
|
|
1057
|
+
statsAvailable: !!C,
|
|
1058
|
+
onColumnVisibilityChange: (e, t) => ce((n) => {
|
|
1059
|
+
let r = new Set(n);
|
|
1060
|
+
return t ? r.delete(e) : r.add(e), r;
|
|
1061
|
+
}),
|
|
1062
|
+
onColumnReorder: (e, t) => oe((n) => c(E(ue, n), e, t)),
|
|
1063
|
+
onWrapRowsChange: ie,
|
|
1064
|
+
onStatsVisibilityChange: Y
|
|
1065
|
+
});
|
|
1066
|
+
return /* @__PURE__ */ G(A, {
|
|
1067
|
+
direction: "column",
|
|
1068
|
+
height: "100%",
|
|
1069
|
+
width: "100%",
|
|
1070
|
+
children: [
|
|
1071
|
+
/* @__PURE__ */ W(f, {
|
|
1072
|
+
rows: he,
|
|
1073
|
+
storageKey: ge,
|
|
1074
|
+
attributes: me,
|
|
1075
|
+
columnControl: Oe,
|
|
1076
|
+
defaultViews: e.defaultViews,
|
|
1077
|
+
defaultActiveViewId: e.defaultActiveViewId
|
|
1078
|
+
}),
|
|
1079
|
+
/* @__PURE__ */ G(te, {
|
|
1080
|
+
position: "relative",
|
|
1081
|
+
flex: "1",
|
|
1082
|
+
minHeight: "0",
|
|
1083
|
+
children: [/* @__PURE__ */ W(r, {
|
|
1084
|
+
height: "100%",
|
|
1085
|
+
maxWidth: "unset",
|
|
1086
|
+
showHorizontalScrollbar: !0,
|
|
1087
|
+
children: /* @__PURE__ */ G(B.Root, {
|
|
1088
|
+
className: `data-table${i ? " full-width" : ""}`,
|
|
1089
|
+
style: {
|
|
1090
|
+
...be,
|
|
1091
|
+
width: i ? "100%" : $.getTotalSize()
|
|
1092
|
+
},
|
|
1093
|
+
children: [/* @__PURE__ */ W(B.Header, { children: $.getHeaderGroups().map((e) => /* @__PURE__ */ G(K, { children: [/* @__PURE__ */ W(B.Row, {
|
|
1094
|
+
className: "data-table-column-header-row",
|
|
1095
|
+
borderRight: n ? "none" : "1px solid",
|
|
1096
|
+
borderColor: "border.subtle",
|
|
1097
|
+
children: e.headers.map((t) => /* @__PURE__ */ W(It, {
|
|
1098
|
+
header: t,
|
|
1099
|
+
headerGroup: e,
|
|
1100
|
+
table: $,
|
|
1101
|
+
fullWidth: i,
|
|
1102
|
+
hasDescription: !!_?.[t.column.id]
|
|
1103
|
+
}, t.id))
|
|
1104
|
+
}), C && J ? /* @__PURE__ */ W(q, {
|
|
1105
|
+
fallback: null,
|
|
1106
|
+
children: /* @__PURE__ */ W(zt, {
|
|
1107
|
+
headerGroup: e,
|
|
1108
|
+
rows: ve,
|
|
1109
|
+
columnStats: C,
|
|
1110
|
+
noBorder: n,
|
|
1111
|
+
fullWidth: i
|
|
1112
|
+
})
|
|
1113
|
+
}) : null] }, e.id)) }), /* @__PURE__ */ W(B.Body, { children: $.getRowModel().rows.map((e) => {
|
|
1114
|
+
let t = o ? d?.(e.original) ?? !0 : !1, r = s({
|
|
1115
|
+
enableRowActivation: F,
|
|
1116
|
+
activeRowId: m,
|
|
1117
|
+
rowId: e.id
|
|
1118
|
+
}), i = e.getIsSelected();
|
|
1119
|
+
return /* @__PURE__ */ W(Rt, {
|
|
1120
|
+
row: e,
|
|
1121
|
+
noBorder: n,
|
|
1122
|
+
rowIsInteractive: t,
|
|
1123
|
+
rowIsActive: r,
|
|
1124
|
+
rowIsSelected: i,
|
|
1125
|
+
wrapRows: ne,
|
|
1126
|
+
onRowClick: o,
|
|
1127
|
+
getCellContextMenuActions: I
|
|
1128
|
+
}, e.id);
|
|
1129
|
+
}) })]
|
|
1130
|
+
})
|
|
1131
|
+
}), Q && xe.length > 0 ? /* @__PURE__ */ W(S, {
|
|
1132
|
+
selectedCount: xe.length,
|
|
1133
|
+
totalCount: Se.length,
|
|
1134
|
+
onClearSelection: () => $.toggleAllRowsSelected(!1),
|
|
1135
|
+
onSelectAll: () => $.toggleAllRowsSelected(!0),
|
|
1136
|
+
actions: pe,
|
|
1137
|
+
selectedRows: De
|
|
1138
|
+
}) : null]
|
|
1139
|
+
}),
|
|
1140
|
+
$.getPageCount() > 1 && /* @__PURE__ */ W(Vt, {
|
|
1141
|
+
table: $,
|
|
1142
|
+
pagination: z,
|
|
1143
|
+
pageSizeOptions: k
|
|
1144
|
+
})
|
|
1145
|
+
]
|
|
1146
|
+
});
|
|
1147
|
+
}, Ut = (e) => {
|
|
1148
|
+
let t = U(4);
|
|
1149
|
+
if (e.editMode) {
|
|
1150
|
+
let n;
|
|
1151
|
+
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ W(T, { ...e }), t[0] = e, t[1] = n), n;
|
|
1152
|
+
}
|
|
1153
|
+
let n;
|
|
1154
|
+
return t[2] === e ? n = t[3] : (n = /* @__PURE__ */ W(Ht, { ...e }), t[2] = e, t[3] = n), n;
|
|
1155
|
+
}, Wt = [
|
|
1156
|
+
"70%",
|
|
1157
|
+
"45%",
|
|
1158
|
+
"60%",
|
|
1159
|
+
"35%",
|
|
1160
|
+
"55%"
|
|
1161
|
+
], Gt = (e) => {
|
|
1162
|
+
let t = U(15), { columns: n, columnCount: r, rowCount: i } = e, a = r === void 0 ? 3 : r, o = i === void 0 ? 5 : i, s;
|
|
1163
|
+
t[0] !== a || t[1] !== n ? (s = n && n.length > 0 ? n : Array.from({ length: a }, Kt), t[0] = a, t[1] = n, t[2] = s) : s = t[2];
|
|
1164
|
+
let c = s, l;
|
|
1165
|
+
t[3] === c ? l = t[4] : (l = c.map(qt), t[3] = c, t[4] = l);
|
|
1166
|
+
let u;
|
|
1167
|
+
t[5] === l ? u = t[6] : (u = /* @__PURE__ */ W(B.Header, { children: /* @__PURE__ */ W(B.Row, {
|
|
1168
|
+
className: "data-table-column-header-row",
|
|
1169
|
+
borderRight: "1px solid",
|
|
1170
|
+
borderColor: "border.subtle",
|
|
1171
|
+
children: l
|
|
1172
|
+
}) }), t[5] = l, t[6] = u);
|
|
1173
|
+
let d;
|
|
1174
|
+
if (t[7] !== c || t[8] !== o) {
|
|
1175
|
+
let e;
|
|
1176
|
+
t[10] === c ? e = t[11] : (e = (e, t) => /* @__PURE__ */ W(B.Row, { children: c.map((e, n) => /* @__PURE__ */ W(B.Cell, {
|
|
1177
|
+
padding: "xs",
|
|
1178
|
+
borderRight: "1px solid",
|
|
1179
|
+
borderColor: "border.subtle",
|
|
1180
|
+
_last: { borderRight: "none" },
|
|
1181
|
+
borderBottom: "none",
|
|
1182
|
+
children: /* @__PURE__ */ W(R, {
|
|
1183
|
+
height: "14px",
|
|
1184
|
+
width: Wt[(t + n) % Wt.length],
|
|
1185
|
+
borderRadius: "xs"
|
|
1186
|
+
})
|
|
1187
|
+
}, e.id)) }, t), t[10] = c, t[11] = e), d = /* @__PURE__ */ W(B.Body, { children: Array.from({ length: o }, e) }), t[7] = c, t[8] = o, t[9] = d;
|
|
1188
|
+
} else d = t[9];
|
|
1189
|
+
let f;
|
|
1190
|
+
return t[12] !== u || t[13] !== d ? (f = /* @__PURE__ */ G(B.Root, {
|
|
1191
|
+
className: "data-table full-width",
|
|
1192
|
+
width: "100%",
|
|
1193
|
+
children: [u, d]
|
|
1194
|
+
}), t[12] = u, t[13] = d, t[14] = f) : f = t[14], f;
|
|
861
1195
|
};
|
|
862
|
-
function
|
|
863
|
-
|
|
1196
|
+
function Kt(e, t) {
|
|
1197
|
+
return {
|
|
1198
|
+
id: `column-${t + 1}`,
|
|
1199
|
+
label: ""
|
|
1200
|
+
};
|
|
864
1201
|
}
|
|
865
|
-
function
|
|
866
|
-
|
|
1202
|
+
function qt(e) {
|
|
1203
|
+
return /* @__PURE__ */ W(B.ColumnHeader, {
|
|
1204
|
+
textTransform: "none",
|
|
1205
|
+
borderRight: "1px solid",
|
|
1206
|
+
_last: { borderRight: "none" },
|
|
1207
|
+
borderColor: "border.subtle",
|
|
1208
|
+
paddingX: "xs",
|
|
1209
|
+
paddingY: "xs",
|
|
1210
|
+
whiteSpace: "nowrap",
|
|
1211
|
+
children: e.label ? /* @__PURE__ */ W(V, {
|
|
1212
|
+
as: "div",
|
|
1213
|
+
textStyle: "label/S/medium",
|
|
1214
|
+
lineHeight: "1.2",
|
|
1215
|
+
truncate: !0,
|
|
1216
|
+
children: e.label
|
|
1217
|
+
}) : /* @__PURE__ */ W(R, {
|
|
1218
|
+
height: "12px",
|
|
1219
|
+
width: "4rem",
|
|
1220
|
+
borderRadius: "xs"
|
|
1221
|
+
})
|
|
1222
|
+
}, e.id);
|
|
867
1223
|
}
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
return `${o.label} · ${Y(o.count)} values`;
|
|
873
|
-
}
|
|
874
|
-
function ul(o) {
|
|
875
|
-
return `${Y(Number(o))}%`;
|
|
876
|
-
}
|
|
877
|
-
function ml(o) {
|
|
878
|
-
return /* @__PURE__ */ _(re, { position: "relative", height: "18px", children: [
|
|
879
|
-
/* @__PURE__ */ a(et, { data: [o], dataKey: "percentage", categoryKey: "label", color: tt, height: "18px", ariaLabel: `${o.label}: ${o.percentage}%`, layout: "vertical", domain: [0, 100], barSize: 18, tooltipLabel: dl, tooltipValue: ul, tooltipSeriesLabel: "Share" }),
|
|
880
|
-
/* @__PURE__ */ _(oe, { position: "absolute", inset: "0", paddingX: "2xs", justifyContent: "space-between", gap: "xs", pointerEvents: "none", children: [
|
|
881
|
-
/* @__PURE__ */ a(O, { textStyle: "label/2XS", color: "fg.inverted", truncate: !0, children: o.label }),
|
|
882
|
-
/* @__PURE__ */ _(O, { textStyle: "label/2XS/medium", color: "fg.muted", children: [
|
|
883
|
-
o.percentage,
|
|
884
|
-
"%"
|
|
885
|
-
] })
|
|
886
|
-
] })
|
|
887
|
-
] }, o.label);
|
|
888
|
-
}
|
|
889
|
-
const fl = /* @__PURE__ */ new Set(["rowIndex", "rowSelection", "rowActions"]), hl = (o) => o === "asc" ? Xe : o === "desc" ? qe : At, gl = (o) => {
|
|
890
|
-
const e = z(37), {
|
|
891
|
-
header: t,
|
|
892
|
-
headerGroup: l,
|
|
893
|
-
table: n,
|
|
894
|
-
fullWidth: i,
|
|
895
|
-
hasDescription: c
|
|
896
|
-
} = o;
|
|
897
|
-
let s, r, d;
|
|
898
|
-
if (e[0] !== t.column || e[1] !== n) {
|
|
899
|
-
r = t.column.getIsSorted();
|
|
900
|
-
let $;
|
|
901
|
-
e[5] !== t.column.id || e[6] !== n ? ($ = !fl.has(t.column.id) && n.getCoreRowModel().rows.length > 1, e[5] = t.column.id, e[6] = n, e[7] = $) : $ = e[7], s = $, d = hl(r), e[0] = t.column, e[1] = n, e[2] = s, e[3] = r, e[4] = d;
|
|
902
|
-
} else
|
|
903
|
-
s = e[2], r = e[3], d = e[4];
|
|
904
|
-
const u = d;
|
|
905
|
-
let m;
|
|
906
|
-
e[8] !== t ? (m = t.column.id === "rowSelection" ? "Select all" : be(t.column.columnDef.header, t.getContext()), e[8] = t, e[9] = m) : m = e[9];
|
|
907
|
-
const f = m, h = t.column.id;
|
|
908
|
-
let S;
|
|
909
|
-
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
|
|
910
|
-
borderRight: "none"
|
|
911
|
-
}, e[10] = S) : S = e[10];
|
|
912
|
-
const b = t.id, x = i && l.headers.indexOf(t) === l.headers.length - 1 ? void 0 : `calc(var(--header-${t.id}-size) * 1px)`;
|
|
913
|
-
let g;
|
|
914
|
-
e[11] !== x ? (g = {
|
|
915
|
-
width: x
|
|
916
|
-
}, e[11] = x, e[12] = g) : g = e[12];
|
|
917
|
-
let v;
|
|
918
|
-
e[13] !== t ? (v = be(t.column.columnDef.header, t.getContext()), e[13] = t, e[14] = v) : v = e[14];
|
|
919
|
-
let w;
|
|
920
|
-
e[15] !== v ? (w = /* @__PURE__ */ a(O, { as: "div", textStyle: "label/S/medium", lineHeight: "1.2", truncate: !0, children: v }), e[15] = v, e[16] = w) : w = e[16];
|
|
921
|
-
let p;
|
|
922
|
-
e[17] !== u || e[18] !== s || e[19] !== t.column || e[20] !== r ? (p = s && /* @__PURE__ */ _(G.Root, { children: [
|
|
923
|
-
/* @__PURE__ */ a(G.Trigger, { asChild: !0, children: /* @__PURE__ */ a(we, { ml: "2px", size: "2xs", "aria-label": r ? `Sorted ${r}` : "Sort column", variant: "ghost", visibility: r ? "visible" : "hidden", _groupHover: {
|
|
924
|
-
visibility: "visible"
|
|
925
|
-
}, children: /* @__PURE__ */ a(ee, { as: u, boxSize: "14px" }) }) }),
|
|
926
|
-
/* @__PURE__ */ a(ue, { children: /* @__PURE__ */ a(G.Positioner, { children: /* @__PURE__ */ _(G.Content, { zIndex: "popover", bg: "bg", children: [
|
|
927
|
-
/* @__PURE__ */ a(G.Item, { value: "sort-asc", asChild: !0, children: /* @__PURE__ */ a(ce, { asChild: !0, variant: "full-width", label: "Sort ascending", icon: /* @__PURE__ */ a(ee, { as: Xe, boxSize: "16px" }), disabled: r === "asc", onActivate: () => t.column.toggleSorting(!1) }) }),
|
|
928
|
-
/* @__PURE__ */ a(G.Item, { value: "sort-desc", asChild: !0, children: /* @__PURE__ */ a(ce, { asChild: !0, variant: "full-width", label: "Sort descending", icon: /* @__PURE__ */ a(ee, { as: qe, boxSize: "16px" }), disabled: r === "desc", onActivate: () => t.column.toggleSorting(!0) }) }),
|
|
929
|
-
r && /* @__PURE__ */ a(G.Item, { value: "clear-sort", asChild: !0, children: /* @__PURE__ */ a(ce, { asChild: !0, variant: "full-width", label: "Clear sort", onActivate: () => t.column.clearSorting() }) })
|
|
930
|
-
] }) }) })
|
|
931
|
-
] }), e[17] = u, e[18] = s, e[19] = t.column, e[20] = r, e[21] = p) : p = e[21];
|
|
932
|
-
let R;
|
|
933
|
-
e[22] !== t ? (R = t.column.getCanResize() && /* @__PURE__ */ a("span", { onDoubleClick: () => t.column.resetSize(), onMouseDown: t.getResizeHandler(), onTouchStart: t.getResizeHandler(), className: `resizer ${t.column.getIsResizing() ? "isResizing" : ""}` }), e[22] = t, e[23] = R) : R = e[23];
|
|
934
|
-
let C;
|
|
935
|
-
e[24] !== R || e[25] !== w || e[26] !== p ? (C = /* @__PURE__ */ _(oe, { className: "group", alignItems: "center", justifyContent: "space-between", gap: "1", flex: "1", minW: "0", children: [
|
|
936
|
-
w,
|
|
937
|
-
p,
|
|
938
|
-
R
|
|
939
|
-
] }), e[24] = R, e[25] = w, e[26] = p, e[27] = C) : C = e[27];
|
|
940
|
-
let y;
|
|
941
|
-
e[28] !== c || e[29] !== C || e[30] !== f ? (y = /* @__PURE__ */ a(Je, { content: f, disabled: c, children: C }), e[28] = c, e[29] = C, e[30] = f, e[31] = y) : y = e[31];
|
|
942
|
-
let A;
|
|
943
|
-
return e[32] !== t.column.id || e[33] !== t.id || e[34] !== y || e[35] !== g ? (A = /* @__PURE__ */ a(L.ColumnHeader, { "data-column-id": h, textTransform: "none", borderRight: "1px solid", _last: S, borderColor: "border.subtle", paddingX: "xs", paddingY: "xs", overflow: "hidden", position: "relative", verticalAlign: "middle", whiteSpace: "nowrap", style: g, children: y }, b), e[32] = t.column.id, e[33] = t.id, e[34] = y, e[35] = g, e[36] = A) : A = e[36], A;
|
|
944
|
-
}, bl = (o) => {
|
|
945
|
-
const e = z(26), {
|
|
946
|
-
cell: t,
|
|
947
|
-
row: l,
|
|
948
|
-
wrapRows: n,
|
|
949
|
-
getCellContextMenuActions: i
|
|
950
|
-
} = o, c = t.column.columnDef.meta;
|
|
951
|
-
let s;
|
|
952
|
-
e[0] !== t || e[1] !== c ? (s = c?.getCellStyle?.(t.getValue()), e[0] = t, e[1] = c, e[2] = s) : s = e[2];
|
|
953
|
-
const r = s;
|
|
954
|
-
let d;
|
|
955
|
-
if (e[3] !== t || e[4] !== i || e[5] !== l.id || e[6] !== l.original) {
|
|
956
|
-
const A = {
|
|
957
|
-
row: l.original,
|
|
958
|
-
rowId: l.id,
|
|
959
|
-
columnId: t.column.id,
|
|
960
|
-
value: t.getValue()
|
|
961
|
-
};
|
|
962
|
-
d = i?.(A).map(($) => ({
|
|
963
|
-
key: $.label,
|
|
964
|
-
label: $.label,
|
|
965
|
-
icon: $.icon,
|
|
966
|
-
onClick: () => $.onSelect(A)
|
|
967
|
-
})) ?? [], e[3] = t, e[4] = i, e[5] = l.id, e[6] = l.original, e[7] = d;
|
|
968
|
-
} else
|
|
969
|
-
d = e[7];
|
|
970
|
-
const u = d, m = t.column.id, f = n ? "anywhere" : void 0, h = n ? void 0 : "10", S = n ? void 0 : "10";
|
|
971
|
-
let b;
|
|
972
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
|
|
973
|
-
borderRight: "none"
|
|
974
|
-
}, e[8] = b) : b = e[8];
|
|
975
|
-
const x = t.id, g = n ? void 0 : "ellipsis", v = n ? "top" : "middle", w = n ? "normal" : "nowrap";
|
|
976
|
-
let p;
|
|
977
|
-
e[9] !== t ? (p = be(t.column.columnDef.cell, t.getContext()), e[9] = t, e[10] = p) : p = e[10];
|
|
978
|
-
let R;
|
|
979
|
-
e[11] !== t.column.id || e[12] !== t.id || e[13] !== r || e[14] !== w || e[15] !== p || e[16] !== f || e[17] !== h || e[18] !== S || e[19] !== g || e[20] !== v ? (R = /* @__PURE__ */ a(L.Cell, { "data-column-id": m, width: "fit-content", maxWidth: "12rem", overflow: "hidden", overflowWrap: f, padding: "xs", height: h, maxHeight: S, borderRight: "1px solid", borderColor: "border.subtle", _last: b, borderBottom: "none", textStyle: "paragraph/S/regular", textOverflow: g, verticalAlign: v, whiteSpace: w, style: r, children: p }, x), e[11] = t.column.id, e[12] = t.id, e[13] = r, e[14] = w, e[15] = p, e[16] = f, e[17] = h, e[18] = S, e[19] = g, e[20] = v, e[21] = R) : R = e[21];
|
|
980
|
-
const C = R;
|
|
981
|
-
if (u.length === 0)
|
|
982
|
-
return C;
|
|
983
|
-
let y;
|
|
984
|
-
return e[22] !== t.id || e[23] !== C || e[24] !== u ? (y = /* @__PURE__ */ a(kt, { actions: u, children: C }, t.id), e[22] = t.id, e[23] = C, e[24] = u, e[25] = y) : y = e[25], y;
|
|
985
|
-
}, pl = (o) => {
|
|
986
|
-
const e = z(23), {
|
|
987
|
-
row: t,
|
|
988
|
-
noBorder: l,
|
|
989
|
-
rowIsInteractive: n,
|
|
990
|
-
rowIsActive: i,
|
|
991
|
-
rowIsSelected: c,
|
|
992
|
-
wrapRows: s,
|
|
993
|
-
onRowClick: r,
|
|
994
|
-
getCellContextMenuActions: d
|
|
995
|
-
} = o, u = t.id, m = i ? "true" : void 0, f = c ? "true" : void 0, h = c ? "true" : void 0, S = s ? void 0 : "10", b = n ? "pointer" : void 0;
|
|
996
|
-
let x;
|
|
997
|
-
e[0] !== r || e[1] !== t.original || e[2] !== n ? (x = n ? () => r?.(t.original) : void 0, e[0] = r, e[1] = t.original, e[2] = n, e[3] = x) : x = e[3];
|
|
998
|
-
const g = l ? "none" : "1px solid", v = l ? "none" : "1px solid", w = l ? "none" : "1px solid";
|
|
999
|
-
let p;
|
|
1000
|
-
e[4] !== w ? (p = {
|
|
1001
|
-
borderBottom: w,
|
|
1002
|
-
borderColor: "border.subtle"
|
|
1003
|
-
}, e[4] = w, e[5] = p) : p = e[5];
|
|
1004
|
-
const R = i ? "bg.active" : "bg";
|
|
1005
|
-
let C;
|
|
1006
|
-
e[6] !== d || e[7] !== t || e[8] !== s ? (C = t.getVisibleCells().map((A) => /* @__PURE__ */ a(bl, { cell: A, row: t, wrapRows: s, getCellContextMenuActions: d }, A.id)), e[6] = d, e[7] = t, e[8] = s, e[9] = C) : C = e[9];
|
|
1007
|
-
let y;
|
|
1008
|
-
return e[10] !== t.id || e[11] !== m || e[12] !== p || e[13] !== R || e[14] !== C || e[15] !== f || e[16] !== h || e[17] !== S || e[18] !== b || e[19] !== x || e[20] !== g || e[21] !== v ? (y = /* @__PURE__ */ a(L.Row, { "data-active": m, "data-selected": f, "aria-selected": h, height: S, cursor: b, onClick: x, borderTop: g, borderBottom: "1px solid", borderRight: v, _last: p, borderColor: "border.subtle", background: R, children: C }, u), e[10] = t.id, e[11] = m, e[12] = p, e[13] = R, e[14] = C, e[15] = f, e[16] = h, e[17] = S, e[18] = b, e[19] = x, e[20] = g, e[21] = v, e[22] = y) : y = e[22], y;
|
|
1009
|
-
}, Sl = (o, e) => o.map((t) => ({
|
|
1010
|
-
id: t,
|
|
1011
|
-
label: e?.[t] ?? t
|
|
1012
|
-
})), wl = (o) => {
|
|
1013
|
-
const e = z(12), {
|
|
1014
|
-
table: t,
|
|
1015
|
-
pagination: l,
|
|
1016
|
-
pageSizeOptions: n
|
|
1017
|
-
} = o;
|
|
1018
|
-
let i;
|
|
1019
|
-
e[0] !== t ? (i = t.getPageCount(), e[0] = t, e[1] = i) : i = e[1];
|
|
1020
|
-
const c = l.pageIndex, s = l.pageSize;
|
|
1021
|
-
let r;
|
|
1022
|
-
e[2] !== t ? (r = t.getCoreRowModel(), e[2] = t, e[3] = r) : r = e[3];
|
|
1023
|
-
let d;
|
|
1024
|
-
return e[4] !== n || e[5] !== l.pageIndex || e[6] !== l.pageSize || e[7] !== i || e[8] !== r.rows.length || e[9] !== t.setPageIndex || e[10] !== t.setPageSize ? (d = /* @__PURE__ */ a(Xt, { pageCount: i, pageIndex: c, pageSize: s, pageSizeOptions: n, totalRows: r.rows.length, onPageChange: t.setPageIndex, onPageSizeChange: t.setPageSize }), e[4] = n, e[5] = l.pageIndex, e[6] = l.pageSize, e[7] = i, e[8] = r.rows.length, e[9] = t.setPageIndex, e[10] = t.setPageSize, e[11] = d) : d = e[11], d;
|
|
1025
|
-
}, xl = (o) => {
|
|
1026
|
-
const {
|
|
1027
|
-
data: e,
|
|
1028
|
-
noBorder: t,
|
|
1029
|
-
fullWidth: l,
|
|
1030
|
-
hiddenColumns: n,
|
|
1031
|
-
onRowClick: i,
|
|
1032
|
-
isRowInteractive: c,
|
|
1033
|
-
activeRowId: s,
|
|
1034
|
-
columnIcons: r,
|
|
1035
|
-
columnDescriptions: d,
|
|
1036
|
-
compactHeaders: u,
|
|
1037
|
-
columnStats: m,
|
|
1038
|
-
columnRenderers: f,
|
|
1039
|
-
initialPageSize: h,
|
|
1040
|
-
pageSizeOptions: S = [10, 20, 30, 50, 100],
|
|
1041
|
-
rowActions: b = [],
|
|
1042
|
-
getRowActions: x,
|
|
1043
|
-
getRowId: g,
|
|
1044
|
-
toolbarStorageKey: v,
|
|
1045
|
-
enableRowActivation: w = !1,
|
|
1046
|
-
getCellContextMenuActions: p
|
|
1047
|
-
} = o, [R, C] = Q([]), [y, A] = Q(() => ({
|
|
1048
|
-
pageIndex: 0,
|
|
1049
|
-
pageSize: Mt({
|
|
1050
|
-
initialPageSize: h
|
|
1051
|
-
})
|
|
1052
|
-
})), [$, T] = Q({}), [P, M] = Q(!0), [D, K] = Q(!1), [W, N] = Q(() => {
|
|
1053
|
-
const I = new Set(n ?? []);
|
|
1054
|
-
return Object.keys(e[0] || {}).filter((V) => !I.has(V));
|
|
1055
|
-
}), [J, X] = Q(() => /* @__PURE__ */ new Set()), j = new Set(n ?? []), H = Object.keys(e[0] || {}).filter((I) => !j.has(I)), E = De(H, W), k = new Set(E.filter((I) => !J.has(I))), B = E.filter((I) => k.has(I)), F = Pt(o), le = Ht(o), Ae = Lt(e, E, u), $e = Ot(e, E, g), _e = Wt({
|
|
1056
|
-
toolbarStorageKey: v,
|
|
1057
|
-
columnKeys: H
|
|
1058
|
-
}), lt = St(_e, (I) => I.filters, {
|
|
1059
|
-
settings: {
|
|
1060
|
-
viewMode: "list"
|
|
1061
|
-
},
|
|
1062
|
-
views: o.defaultViews,
|
|
1063
|
-
activeViewId: o.defaultActiveViewId
|
|
1064
|
-
}), ke = Nt($e, lt, Ae).map((I) => I.sourceRow), nt = Ko(e, B, {
|
|
1065
|
-
columnIcons: r,
|
|
1066
|
-
columnDescriptions: d,
|
|
1067
|
-
compactHeaders: u,
|
|
1068
|
-
enableSelection: F,
|
|
1069
|
-
rowActions: b,
|
|
1070
|
-
getRowActions: x,
|
|
1071
|
-
selectedRowIds: $,
|
|
1072
|
-
columnRenderers: f,
|
|
1073
|
-
wrapRows: D
|
|
1074
|
-
}), q = mt({
|
|
1075
|
-
data: ke,
|
|
1076
|
-
columns: nt,
|
|
1077
|
-
defaultColumn: {
|
|
1078
|
-
size: 150,
|
|
1079
|
-
minSize: 40,
|
|
1080
|
-
maxSize: 800
|
|
1081
|
-
},
|
|
1082
|
-
state: {
|
|
1083
|
-
sorting: R,
|
|
1084
|
-
pagination: y,
|
|
1085
|
-
rowSelection: $
|
|
1086
|
-
},
|
|
1087
|
-
getRowId: (I, V) => jt(I, V, g),
|
|
1088
|
-
columnResizeMode: "onChange",
|
|
1089
|
-
columnResizeDirection: "ltr",
|
|
1090
|
-
onSortingChange: C,
|
|
1091
|
-
onPaginationChange: A,
|
|
1092
|
-
onRowSelectionChange: T,
|
|
1093
|
-
getSortedRowModel: gt(),
|
|
1094
|
-
getCoreRowModel: ht(),
|
|
1095
|
-
getPaginationRowModel: ft(),
|
|
1096
|
-
enableMultiRowSelection: F,
|
|
1097
|
-
enableRowSelection: F,
|
|
1098
|
-
autoResetAll: !1
|
|
1099
|
-
});
|
|
1100
|
-
Ke(() => {
|
|
1101
|
-
const I = q.getPageCount();
|
|
1102
|
-
I === 0 || y.pageIndex < I || A((V) => ({
|
|
1103
|
-
...V,
|
|
1104
|
-
pageIndex: Math.max(I - 1, 0)
|
|
1105
|
-
}));
|
|
1106
|
-
}, [y.pageIndex, q]);
|
|
1107
|
-
const rt = (() => {
|
|
1108
|
-
const I = q.getFlatHeaders(), V = {};
|
|
1109
|
-
for (let Z = 0; Z < I.length; Z++) {
|
|
1110
|
-
const U = I[Z];
|
|
1111
|
-
V[`--header-${U.id}-size`] = U.getSize(), V[`--col-${U.column.id}-size`] = U.column.getSize();
|
|
1112
|
-
}
|
|
1113
|
-
return V;
|
|
1114
|
-
})(), fe = q.getSelectedRowModel().rows, it = q.getCoreRowModel().rows, st = Et(fe), at = /* @__PURE__ */ a(Xo, { columns: Sl(E, u), visibleColumnIds: k, wrapRows: D, showStats: P, statsAvailable: !!m, onColumnVisibilityChange: (I, V) => X((Z) => {
|
|
1115
|
-
const U = new Set(Z);
|
|
1116
|
-
return V ? U.delete(I) : U.add(I), U;
|
|
1117
|
-
}), onColumnReorder: (I, V) => N((Z) => Bt(De(H, Z), I, V)), onWrapRowsChange: K, onStatsVisibilityChange: M });
|
|
1118
|
-
return /* @__PURE__ */ _(oe, { direction: "column", height: "100%", width: "100%", children: [
|
|
1119
|
-
/* @__PURE__ */ a(Ft, { rows: $e, storageKey: _e, attributes: Ae, columnControl: at, defaultViews: o.defaultViews, defaultActiveViewId: o.defaultActiveViewId }),
|
|
1120
|
-
/* @__PURE__ */ _(re, { position: "relative", flex: "1", minHeight: "0", children: [
|
|
1121
|
-
/* @__PURE__ */ a(xe, { height: "100%", maxWidth: "unset", showHorizontalScrollbar: !0, children: /* @__PURE__ */ _(L.Root, { className: `data-table${l ? " full-width" : ""}`, style: {
|
|
1122
|
-
...rt,
|
|
1123
|
-
width: l ? "100%" : q.getTotalSize()
|
|
1124
|
-
}, children: [
|
|
1125
|
-
/* @__PURE__ */ a(L.Header, { children: q.getHeaderGroups().map((I) => /* @__PURE__ */ _(pt, { children: [
|
|
1126
|
-
/* @__PURE__ */ a(L.Row, { className: "data-table-column-header-row", borderRight: t ? "none" : "1px solid", borderColor: "border.subtle", children: I.headers.map((V) => /* @__PURE__ */ a(gl, { header: V, headerGroup: I, table: q, fullWidth: l, hasDescription: !!d?.[V.column.id] }, V.id)) }),
|
|
1127
|
-
m && P ? /* @__PURE__ */ a(il, { headerGroup: I, rows: ke, columnStats: m, noBorder: t, fullWidth: l }) : null
|
|
1128
|
-
] }, I.id)) }),
|
|
1129
|
-
/* @__PURE__ */ a(L.Body, { children: q.getRowModel().rows.map((I) => {
|
|
1130
|
-
const V = i ? c?.(I.original) ?? !0 : !1, Z = Kt({
|
|
1131
|
-
enableRowActivation: w,
|
|
1132
|
-
activeRowId: s,
|
|
1133
|
-
rowId: I.id
|
|
1134
|
-
}), U = I.getIsSelected();
|
|
1135
|
-
return /* @__PURE__ */ a(pl, { row: I, noBorder: t, rowIsInteractive: V, rowIsActive: Z, rowIsSelected: U, wrapRows: D, onRowClick: i, getCellContextMenuActions: p }, I.id);
|
|
1136
|
-
}) })
|
|
1137
|
-
] }) }),
|
|
1138
|
-
F && fe.length > 0 ? /* @__PURE__ */ a(Jt, { selectedCount: fe.length, totalCount: it.length, onClearSelection: () => q.toggleAllRowsSelected(!1), onSelectAll: () => q.toggleAllRowsSelected(!0), actions: le, selectedRows: st }) : null
|
|
1139
|
-
] }),
|
|
1140
|
-
q.getPageCount() > 1 && /* @__PURE__ */ a(wl, { table: q, pagination: y, pageSizeOptions: S })
|
|
1141
|
-
] });
|
|
1142
|
-
}, jl = (o) => {
|
|
1143
|
-
const e = z(4);
|
|
1144
|
-
if (o.editMode) {
|
|
1145
|
-
let l;
|
|
1146
|
-
return e[0] !== o ? (l = /* @__PURE__ */ a(Vt, { ...o }), e[0] = o, e[1] = l) : l = e[1], l;
|
|
1147
|
-
}
|
|
1148
|
-
let t;
|
|
1149
|
-
return e[2] !== o ? (t = /* @__PURE__ */ a(xl, { ...o }), e[2] = o, e[3] = t) : t = e[3], t;
|
|
1150
|
-
}, je = ["70%", "45%", "60%", "35%", "55%"], El = (o) => {
|
|
1151
|
-
const e = z(15), {
|
|
1152
|
-
columns: t,
|
|
1153
|
-
columnCount: l,
|
|
1154
|
-
rowCount: n
|
|
1155
|
-
} = o, i = l === void 0 ? 3 : l, c = n === void 0 ? 5 : n;
|
|
1156
|
-
let s;
|
|
1157
|
-
e[0] !== i || e[1] !== t ? (s = t && t.length > 0 ? t : Array.from({
|
|
1158
|
-
length: i
|
|
1159
|
-
}, yl), e[0] = i, e[1] = t, e[2] = s) : s = e[2];
|
|
1160
|
-
const r = s;
|
|
1161
|
-
let d;
|
|
1162
|
-
e[3] !== r ? (d = r.map(Cl), e[3] = r, e[4] = d) : d = e[4];
|
|
1163
|
-
let u;
|
|
1164
|
-
e[5] !== d ? (u = /* @__PURE__ */ a(L.Header, { children: /* @__PURE__ */ a(L.Row, { className: "data-table-column-header-row", borderRight: "1px solid", borderColor: "border.subtle", children: d }) }), e[5] = d, e[6] = u) : u = e[6];
|
|
1165
|
-
let m;
|
|
1166
|
-
if (e[7] !== r || e[8] !== c) {
|
|
1167
|
-
let h;
|
|
1168
|
-
e[10] !== r ? (h = (S, b) => /* @__PURE__ */ a(L.Row, { children: r.map((x, g) => /* @__PURE__ */ a(L.Cell, { padding: "xs", borderRight: "1px solid", borderColor: "border.subtle", _last: {
|
|
1169
|
-
borderRight: "none"
|
|
1170
|
-
}, borderBottom: "none", children: /* @__PURE__ */ a(Be, { height: "14px", width: je[(b + g) % je.length], borderRadius: "xs" }) }, x.id)) }, b), e[10] = r, e[11] = h) : h = e[11], m = /* @__PURE__ */ a(L.Body, { children: Array.from({
|
|
1171
|
-
length: c
|
|
1172
|
-
}, h) }), e[7] = r, e[8] = c, e[9] = m;
|
|
1173
|
-
} else
|
|
1174
|
-
m = e[9];
|
|
1175
|
-
let f;
|
|
1176
|
-
return e[12] !== u || e[13] !== m ? (f = /* @__PURE__ */ _(L.Root, { className: "data-table full-width", width: "100%", children: [
|
|
1177
|
-
u,
|
|
1178
|
-
m
|
|
1179
|
-
] }), e[12] = u, e[13] = m, e[14] = f) : f = e[14], f;
|
|
1180
|
-
};
|
|
1181
|
-
function yl(o, e) {
|
|
1182
|
-
return {
|
|
1183
|
-
id: `column-${e + 1}`,
|
|
1184
|
-
label: ""
|
|
1185
|
-
};
|
|
1186
|
-
}
|
|
1187
|
-
function Cl(o) {
|
|
1188
|
-
return /* @__PURE__ */ a(L.ColumnHeader, { textTransform: "none", borderRight: "1px solid", _last: {
|
|
1189
|
-
borderRight: "none"
|
|
1190
|
-
}, borderColor: "border.subtle", paddingX: "xs", paddingY: "xs", whiteSpace: "nowrap", children: o.label ? /* @__PURE__ */ a(O, { as: "div", textStyle: "label/S/medium", lineHeight: "1.2", truncate: !0, children: o.label }) : /* @__PURE__ */ a(Be, { height: "12px", width: "4rem", borderRadius: "xs" }) }, o.id);
|
|
1191
|
-
}
|
|
1192
|
-
export {
|
|
1193
|
-
jl as DataTable,
|
|
1194
|
-
El as DataTableSkeleton,
|
|
1195
|
-
Do as FriendlyJsonDisplay,
|
|
1196
|
-
Tt as formatDisplayValue,
|
|
1197
|
-
zt as getIcon
|
|
1198
|
-
};
|
|
1199
|
-
//# sourceMappingURL=data-table.js.map
|
|
1224
|
+
//#endregion
|
|
1225
|
+
export { Ut as DataTable, Gt as DataTableSkeleton, ut as FriendlyJsonDisplay, m as formatDisplayValue, h as getIcon };
|
|
1226
|
+
|
|
1227
|
+
//# sourceMappingURL=data-table.js.map
|