@synopackageland/ui 0.25.21 → 0.25.22
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/CHANGELOG.md +6 -0
- package/dist/index.js +609 -49746
- package/dist/modules/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/modules/components/advanced-panel/AdvancePanelColumns.vue.js +26 -0
- package/dist/modules/components/advanced-panel/AdvancePanelColumns2.vue.js +4 -0
- package/dist/modules/components/advanced-panel/AdvancePanelForm.vue.js +35 -0
- package/dist/modules/components/advanced-panel/AdvancePanelForm2.vue.js +4 -0
- package/dist/modules/components/advanced-panel/AdvancePanelGrid.vue.js +313 -0
- package/dist/modules/components/advanced-panel/AdvancePanelGrid2.vue.js +4 -0
- package/dist/modules/components/advanced-panel/types.js +19 -0
- package/dist/modules/components/app/app-action-bar/AppActionBar.vue.js +46 -0
- package/dist/modules/components/app/app-action-bar/AppActionBar2.vue.js +4 -0
- package/dist/modules/components/app/app-layout/AppBrand.vue.js +41 -0
- package/dist/modules/components/app/app-layout/AppBrand2.vue.js +4 -0
- package/dist/modules/components/app/app-layout/AppLayout.vue.js +781 -0
- package/dist/modules/components/app/app-layout/AppLayout2.vue.js +4 -0
- package/dist/modules/components/app/app-layout/BackArrowIcon.vue.js +28 -0
- package/dist/modules/components/app/app-layout/BackArrowIcon2.vue.js +4 -0
- package/dist/modules/components/app/app-layout/MovableActions.js +35 -0
- package/dist/modules/components/app/app-layout/PhoneFab.vue.js +135 -0
- package/dist/modules/components/app/app-layout/PhoneFab2.vue.js +4 -0
- package/dist/modules/components/app/app-layout/ShellBackButton.vue.js +25 -0
- package/dist/modules/components/app/app-layout/ShellBackButton2.vue.js +4 -0
- package/dist/modules/components/app/app-layout/back-arrow.json.js +13 -0
- package/dist/modules/components/app/app-layout/hideOnScroll.js +72 -0
- package/dist/modules/components/app/app-layout/iconActionTitles.js +31 -0
- package/dist/modules/components/app/app-layout/pageTitle.js +62 -0
- package/dist/modules/components/app/app-layout/shellBack.js +34 -0
- package/dist/modules/components/app/app-root/AppRoot.vue.js +103 -0
- package/dist/modules/components/app/app-root/AppRoot2.vue.js +4 -0
- package/dist/modules/components/app/app-sidebar/AppSidebar.vue.js +134 -0
- package/dist/modules/components/app/app-sidebar/AppSidebar2.vue.js +4 -0
- package/dist/modules/components/app/app-sidebar/AppSidebarItems.vue.js +125 -0
- package/dist/modules/components/app/app-sidebar/AppSidebarItems2.vue.js +4 -0
- package/dist/modules/components/app/app-sidebar/AppSidebarTip.vue.js +24 -0
- package/dist/modules/components/app/app-sidebar/AppSidebarTip2.vue.js +4 -0
- package/dist/modules/components/app/app-sidebar/AppSidebarUser.vue.js +56 -0
- package/dist/modules/components/app/app-sidebar/AppSidebarUser2.vue.js +4 -0
- package/dist/modules/components/app/app-sidebar/AppTopNav.vue.js +113 -0
- package/dist/modules/components/app/app-sidebar/AppTopNav2.vue.js +4 -0
- package/dist/modules/components/app/app-sidebar/AppTopNavItems.vue.js +108 -0
- package/dist/modules/components/app/app-sidebar/AppTopNavItems2.vue.js +4 -0
- package/dist/modules/components/app/app-tab-bar/AppTabBar.vue.js +208 -0
- package/dist/modules/components/app/app-tab-bar/AppTabBar2.vue.js +4 -0
- package/dist/modules/components/app/app-toolbar/AppToolbar.vue.js +62 -0
- package/dist/modules/components/app/app-toolbar/AppToolbar2.vue.js +4 -0
- package/dist/modules/components/app/aside-panel/AsidePanel.vue.js +372 -0
- package/dist/modules/components/app/aside-panel/AsidePanel2.vue.js +4 -0
- package/dist/modules/components/app/aside-panel/asidePreference.js +43 -0
- package/dist/modules/components/app/page-content/PageContent.vue.js +215 -0
- package/dist/modules/components/app/page-content/PageContent2.vue.js +4 -0
- package/dist/modules/components/app/page-content/pageSticky.js +34 -0
- package/dist/modules/components/app/page-fab/PageFab.vue.js +20 -0
- package/dist/modules/components/app/page-fab/PageFab2.vue.js +4 -0
- package/dist/modules/components/app/page-header/PageHeader.vue.js +90 -0
- package/dist/modules/components/app/page-header/PageHeader2.vue.js +4 -0
- package/dist/modules/components/app/page-toolbar/PageToolbar.vue.js +40 -0
- package/dist/modules/components/app/page-toolbar/PageToolbar2.vue.js +4 -0
- package/dist/modules/components/app/responsive-view/ResponsiveView.vue.js +18 -0
- package/dist/modules/components/app/responsive-view/ResponsiveView2.vue.js +4 -0
- package/dist/modules/components/app/section-tabs/SectionTabs.vue.js +226 -0
- package/dist/modules/components/app/section-tabs/SectionTabs2.vue.js +4 -0
- package/dist/modules/components/app/settings-page/SettingsPage.vue.js +69 -0
- package/dist/modules/components/app/settings-page/SettingsPage2.vue.js +4 -0
- package/dist/modules/components/composite/about-dialog/AboutDialog.vue.js +241 -0
- package/dist/modules/components/composite/about-dialog/AboutDialog2.vue.js +4 -0
- package/dist/modules/components/composite/adaptive-panel/AdaptivePanel.vue.js +159 -0
- package/dist/modules/components/composite/adaptive-panel/AdaptivePanel2.vue.js +4 -0
- package/dist/modules/components/composite/callout/Callout.vue.js +225 -0
- package/dist/modules/components/composite/callout/Callout2.vue.js +4 -0
- package/dist/modules/components/composite/callout/CalloutRecall.vue.js +26 -0
- package/dist/modules/components/composite/callout/CalloutRecall2.vue.js +4 -0
- package/dist/modules/components/composite/callout/CalloutRecallList.vue.js +38 -0
- package/dist/modules/components/composite/callout/CalloutRecallList2.vue.js +4 -0
- package/dist/modules/components/composite/callout/calloutDismissal.js +83 -0
- package/dist/modules/components/composite/comment-item/CommentItem.vue.js +82 -0
- package/dist/modules/components/composite/comment-item/CommentItem2.vue.js +4 -0
- package/dist/modules/components/composite/comment-item/PersonInitials.vue.js +41 -0
- package/dist/modules/components/composite/comment-item/PersonInitials2.vue.js +4 -0
- package/dist/modules/components/composite/completion-toggle/CompletionToggle.vue.js +62 -0
- package/dist/modules/components/composite/completion-toggle/CompletionToggle2.vue.js +4 -0
- package/dist/modules/components/composite/config-provider/ConfigProvider.vue.js +20 -0
- package/dist/modules/components/composite/config-provider/ConfigProvider2.vue.js +4 -0
- package/dist/modules/components/composite/connection-topology/ConnectionTopology.vue.js +253 -0
- package/dist/modules/components/composite/connection-topology/ConnectionTopology2.vue.js +4 -0
- package/dist/modules/components/composite/connection-topology/TopologyLink.vue.js +70 -0
- package/dist/modules/components/composite/connection-topology/TopologyLink2.vue.js +4 -0
- package/dist/modules/components/composite/connection-topology/TopologyNode.vue.js +44 -0
- package/dist/modules/components/composite/connection-topology/TopologyNode2.vue.js +4 -0
- package/dist/modules/components/composite/copy-button/CopyButton.vue.js +112 -0
- package/dist/modules/components/composite/copy-button/CopyButton2.vue.js +4 -0
- package/dist/modules/components/composite/copy-cut-field/CopyCutField.vue.js +124 -0
- package/dist/modules/components/composite/copy-cut-field/CopyCutField2.vue.js +4 -0
- package/dist/modules/components/composite/data-grid/DataGrid.vue.js +1327 -0
- package/dist/modules/components/composite/data-grid/DataGrid2.vue.js +4 -0
- package/dist/modules/components/composite/data-grid/DataGridSelectBox.vue.js +41 -0
- package/dist/modules/components/composite/data-grid/DataGridSelectBox2.vue.js +4 -0
- package/dist/modules/components/composite/data-grid/columnState.js +12 -0
- package/dist/modules/components/composite/data-grid/columnType.js +12 -0
- package/dist/modules/components/composite/data-grid/columnWidths.js +45 -0
- package/dist/modules/components/composite/data-grid/labels.js +31 -0
- package/dist/modules/components/composite/data-grid/listLayout.js +9 -0
- package/dist/modules/components/composite/data-grid/rowFilter.js +12 -0
- package/dist/modules/components/composite/data-grid/viewState.js +31 -0
- package/dist/modules/components/composite/data-table/DataTable.vue.js +295 -0
- package/dist/modules/components/composite/data-table/DataTable2.vue.js +4 -0
- package/dist/modules/components/composite/data-view/DataView.vue.js +243 -0
- package/dist/modules/components/composite/data-view/DataView2.vue.js +4 -0
- package/dist/modules/components/composite/detail-list/DetailList.vue.js +111 -0
- package/dist/modules/components/composite/detail-list/DetailList2.vue.js +4 -0
- package/dist/modules/components/composite/disclosure-row/DisclosureRow.vue.js +84 -0
- package/dist/modules/components/composite/disclosure-row/DisclosureRow2.vue.js +4 -0
- package/dist/modules/components/composite/empty-state/EmptyState.vue.js +39 -0
- package/dist/modules/components/composite/empty-state/EmptyState2.vue.js +4 -0
- package/dist/modules/components/composite/expand-all/ExpandAllButtons.vue.js +64 -0
- package/dist/modules/components/composite/expand-all/ExpandAllButtons2.vue.js +4 -0
- package/dist/modules/components/composite/expand-all/expandAll.js +17 -0
- package/dist/modules/components/composite/facet-panel/FacetPanel.vue.js +210 -0
- package/dist/modules/components/composite/facet-panel/FacetPanel2.vue.js +4 -0
- package/dist/modules/components/composite/file-picker/FilePicker.vue.js +289 -0
- package/dist/modules/components/composite/file-picker/FilePicker2.vue.js +4 -0
- package/dist/modules/components/composite/file-thumbs/FileThumbs.vue.js +112 -0
- package/dist/modules/components/composite/file-thumbs/FileThumbs2.vue.js +4 -0
- package/dist/modules/components/composite/footbar/Footbar.vue.js +40 -0
- package/dist/modules/components/composite/footbar/Footbar2.vue.js +4 -0
- package/dist/modules/components/composite/footbar/FootbarButtons.vue.js +37 -0
- package/dist/modules/components/composite/footbar/FootbarButtons2.vue.js +4 -0
- package/dist/modules/components/composite/footbar/types.js +18 -0
- package/dist/modules/components/composite/form/Form.vue.js +121 -0
- package/dist/modules/components/composite/form/Form2.vue.js +4 -0
- package/dist/modules/components/composite/form/FormGroup.vue.js +25 -0
- package/dist/modules/components/composite/form/FormGroup2.vue.js +4 -0
- package/dist/modules/components/composite/form/FormItem.vue.js +329 -0
- package/dist/modules/components/composite/form/FormItem2.vue.js +4 -0
- package/dist/modules/components/composite/form/context.js +15 -0
- package/dist/modules/components/composite/form/rules.js +101 -0
- package/dist/modules/components/composite/form-actions/FormActions.vue.js +60 -0
- package/dist/modules/components/composite/form-actions/FormActions2.vue.js +4 -0
- package/dist/modules/components/composite/form-note/FormNote.vue.js +58 -0
- package/dist/modules/components/composite/form-note/FormNote2.vue.js +4 -0
- package/dist/modules/components/composite/image-lightbox/ImageLightbox.vue.js +243 -0
- package/dist/modules/components/composite/image-lightbox/ImageLightbox2.vue.js +4 -0
- package/dist/modules/components/composite/info-box/InfoBox.vue.js +24 -0
- package/dist/modules/components/composite/info-box/InfoBox2.vue.js +4 -0
- package/dist/modules/components/composite/key-value-row/KeyValueRow.vue.js +44 -0
- package/dist/modules/components/composite/key-value-row/KeyValueRow2.vue.js +4 -0
- package/dist/modules/components/composite/list-item/ListItem.vue.js +69 -0
- package/dist/modules/components/composite/list-item/ListItem2.vue.js +4 -0
- package/dist/modules/components/composite/mention-list/MentionList.vue.js +99 -0
- package/dist/modules/components/composite/mention-list/MentionList2.vue.js +4 -0
- package/dist/modules/components/composite/message-box/MessageBox.vue.js +215 -0
- package/dist/modules/components/composite/message-box/MessageBox2.vue.js +4 -0
- package/dist/modules/components/composite/message-box/MessageBoxProvider.vue.js +26 -0
- package/dist/modules/components/composite/message-box/MessageBoxProvider2.vue.js +4 -0
- package/dist/modules/components/composite/message-box/controller.js +77 -0
- package/dist/modules/components/composite/message-box/types.js +4 -0
- package/dist/modules/components/composite/new-items-pill/NewItemsPill.vue.js +36 -0
- package/dist/modules/components/composite/new-items-pill/NewItemsPill2.vue.js +4 -0
- package/dist/modules/components/composite/overflow-list/OverflowList.vue.js +218 -0
- package/dist/modules/components/composite/overflow-list/OverflowList2.vue.js +4 -0
- package/dist/modules/components/composite/overflow-list/OverflowListItem.vue.js +22 -0
- package/dist/modules/components/composite/overflow-list/OverflowListItem2.vue.js +4 -0
- package/dist/modules/components/composite/overflow-toolbar/OverflowToolbar.vue.js +306 -0
- package/dist/modules/components/composite/overflow-toolbar/OverflowToolbar2.vue.js +4 -0
- package/dist/modules/components/composite/overflow-toolbar/overflow.js +19 -0
- package/dist/modules/components/composite/path-display/PathDisplay.vue.js +91 -0
- package/dist/modules/components/composite/path-display/PathDisplay2.vue.js +4 -0
- package/dist/modules/components/composite/record-panel/RecordPanel.vue.js +479 -0
- package/dist/modules/components/composite/record-panel/RecordPanel2.vue.js +5 -0
- package/dist/modules/components/composite/record-panel/recordPanelWidth.js +43 -0
- package/dist/modules/components/composite/repeat-rows/FieldCell.vue.js +23 -0
- package/dist/modules/components/composite/repeat-rows/FieldCell2.vue.js +4 -0
- package/dist/modules/components/composite/repeat-rows/RepeatRow.vue.js +69 -0
- package/dist/modules/components/composite/repeat-rows/RepeatRow2.vue.js +4 -0
- package/dist/modules/components/composite/repeat-rows/RepeatRows.vue.js +37 -0
- package/dist/modules/components/composite/repeat-rows/RepeatRows2.vue.js +4 -0
- package/dist/modules/components/composite/rich-text-view/RichTextBlocks.vue.js +127 -0
- package/dist/modules/components/composite/rich-text-view/RichTextBlocks2.vue.js +4 -0
- package/dist/modules/components/composite/rich-text-view/RichTextImage.vue.js +60 -0
- package/dist/modules/components/composite/rich-text-view/RichTextImage2.vue.js +4 -0
- package/dist/modules/components/composite/rich-text-view/RichTextInline.vue.js +42 -0
- package/dist/modules/components/composite/rich-text-view/RichTextInline2.vue.js +4 -0
- package/dist/modules/components/composite/rich-text-view/RichTextView.vue.js +58 -0
- package/dist/modules/components/composite/rich-text-view/RichTextView2.vue.js +4 -0
- package/dist/modules/components/composite/scroll-edges/ScrollEdges.vue.js +34 -0
- package/dist/modules/components/composite/scroll-edges/ScrollEdges2.vue.js +4 -0
- package/dist/modules/components/composite/search-field/SearchField.vue.js +65 -0
- package/dist/modules/components/composite/search-field/SearchField2.vue.js +4 -0
- package/dist/modules/components/composite/settings-row/SettingsRow.vue.js +57 -0
- package/dist/modules/components/composite/settings-row/SettingsRow2.vue.js +4 -0
- package/dist/modules/components/composite/settings-section/SettingsSection.vue.js +105 -0
- package/dist/modules/components/composite/settings-section/SettingsSection2.vue.js +4 -0
- package/dist/modules/components/composite/stacked-bar/StackedBar.vue.js +94 -0
- package/dist/modules/components/composite/stacked-bar/StackedBar2.vue.js +4 -0
- package/dist/modules/components/composite/stat-tile/StatTile.vue.js +74 -0
- package/dist/modules/components/composite/stat-tile/StatTile2.vue.js +4 -0
- package/dist/modules/components/composite/stat-tile/StatTileGroup.vue.js +37 -0
- package/dist/modules/components/composite/stat-tile/StatTileGroup2.vue.js +4 -0
- package/dist/modules/components/composite/statistic/Statistic.vue.js +45 -0
- package/dist/modules/components/composite/statistic/Statistic2.vue.js +4 -0
- package/dist/modules/components/composite/step-list/StepList.vue.js +76 -0
- package/dist/modules/components/composite/step-list/StepList2.vue.js +4 -0
- package/dist/modules/components/composite/storage-meter/StorageMeter.vue.js +66 -0
- package/dist/modules/components/composite/storage-meter/StorageMeter2.vue.js +4 -0
- package/dist/modules/components/composite/summary-card/SummaryCard.vue.js +109 -0
- package/dist/modules/components/composite/summary-card/SummaryCard2.vue.js +4 -0
- package/dist/modules/components/composite/table-cell/CellStatus.vue.js +74 -0
- package/dist/modules/components/composite/table-cell/CellStatus2.vue.js +4 -0
- package/dist/modules/components/composite/table-cell/CellText.vue.js +82 -0
- package/dist/modules/components/composite/table-cell/CellText2.vue.js +4 -0
- package/dist/modules/components/composite/tag-editor/TagEditor.vue.js +164 -0
- package/dist/modules/components/composite/tag-editor/TagEditor2.vue.js +4 -0
- package/dist/modules/components/composite/tag-picker/TagPicker.vue.js +316 -0
- package/dist/modules/components/composite/tag-picker/TagPicker2.vue.js +4 -0
- package/dist/modules/components/composite/tag-picker/TagPickerList.vue.js +203 -0
- package/dist/modules/components/composite/tag-picker/TagPickerList2.vue.js +4 -0
- package/dist/modules/components/composite/tag-picker/tagPicker.js +28 -0
- package/dist/modules/components/composite/timeline-row/TimelineRow.vue.js +140 -0
- package/dist/modules/components/composite/timeline-row/TimelineRow2.vue.js +4 -0
- package/dist/modules/components/composite/tree-view/TreeView.vue.js +276 -0
- package/dist/modules/components/composite/tree-view/TreeView2.vue.js +4 -0
- package/dist/modules/components/composite/tree-view/treeUtils.js +71 -0
- package/dist/modules/components/composite/upload-queue/UploadQueue.vue.js +192 -0
- package/dist/modules/components/composite/upload-queue/UploadQueue2.vue.js +4 -0
- package/dist/modules/components/composite/virtual-list/VirtualList.vue.js +192 -0
- package/dist/modules/components/composite/virtual-list/VirtualList2.vue.js +4 -0
- package/dist/modules/components/composite/wizard/Wizard.vue.js +397 -0
- package/dist/modules/components/composite/wizard/Wizard2.vue.js +4 -0
- package/dist/modules/components/composite/wizard/WizardDialog.vue.js +129 -0
- package/dist/modules/components/composite/wizard/WizardDialog2.vue.js +4 -0
- package/dist/modules/components/composite/wizard/WizardStep.vue.js +144 -0
- package/dist/modules/components/composite/wizard/WizardStep2.vue.js +4 -0
- package/dist/modules/components/composite/wizard/wizardContext.js +9 -0
- package/dist/modules/components/containers/card/Card.vue.js +120 -0
- package/dist/modules/components/containers/card/Card2.vue.js +4 -0
- package/dist/modules/components/containers/card/CardField.vue.js +38 -0
- package/dist/modules/components/containers/card/CardField2.vue.js +4 -0
- package/dist/modules/components/containers/card-grid/CardCover.vue.js +48 -0
- package/dist/modules/components/containers/card-grid/CardCover2.vue.js +4 -0
- package/dist/modules/components/containers/card-grid/CardGrid.vue.js +54 -0
- package/dist/modules/components/containers/card-grid/CardGrid2.vue.js +4 -0
- package/dist/modules/components/containers/card-grid/VirtualCardGrid.vue.js +269 -0
- package/dist/modules/components/containers/card-grid/VirtualCardGrid2.vue.js +4 -0
- package/dist/modules/components/containers/card-grid/cardGrid.js +10 -0
- package/dist/modules/components/containers/expandable-item/ExpandableItem.vue.js +211 -0
- package/dist/modules/components/containers/expandable-item/ExpandableItem2.vue.js +4 -0
- package/dist/modules/components/containers/fieldset/Fieldset.vue.js +139 -0
- package/dist/modules/components/containers/fieldset/Fieldset2.vue.js +4 -0
- package/dist/modules/components/containers/highlight-box/HighlightBox.vue.js +32 -0
- package/dist/modules/components/containers/highlight-box/HighlightBox2.vue.js +4 -0
- package/dist/modules/components/containers/list-detail/ListDetail.vue.js +175 -0
- package/dist/modules/components/containers/list-detail/ListDetail2.vue.js +4 -0
- package/dist/modules/components/containers/panel/Panel.vue.js +99 -0
- package/dist/modules/components/containers/panel/Panel2.vue.js +4 -0
- package/dist/modules/components/containers/split-pane/SplitPane.vue.js +180 -0
- package/dist/modules/components/containers/split-pane/SplitPane2.vue.js +4 -0
- package/dist/modules/components/feedback/info-mask/InfoMask.vue.js +39 -0
- package/dist/modules/components/feedback/info-mask/InfoMask2.vue.js +4 -0
- package/dist/modules/components/feedback/info-tip/InfoTip.vue.js +237 -0
- package/dist/modules/components/feedback/info-tip/InfoTip2.vue.js +4 -0
- package/dist/modules/components/feedback/notification/Notification.vue.js +159 -0
- package/dist/modules/components/feedback/notification/Notification2.vue.js +4 -0
- package/dist/modules/components/feedback/notification/NotificationProvider.vue.js +178 -0
- package/dist/modules/components/feedback/notification/NotificationProvider2.vue.js +4 -0
- package/dist/modules/components/feedback/notification/notification.js +14 -0
- package/dist/modules/components/feedback/validation-popup/ValidationPopup.vue.js +108 -0
- package/dist/modules/components/feedback/validation-popup/ValidationPopup2.vue.js +4 -0
- package/dist/modules/components/primitives/accordion/Accordion.vue.js +70 -0
- package/dist/modules/components/primitives/accordion/Accordion2.vue.js +4 -0
- package/dist/modules/components/primitives/affix/Affix.vue.js +84 -0
- package/dist/modules/components/primitives/affix/Affix2.vue.js +4 -0
- package/dist/modules/components/primitives/affix/affixPosition.js +12 -0
- package/dist/modules/components/primitives/avatar/AvatarStack.vue.js +58 -0
- package/dist/modules/components/primitives/avatar/AvatarStack2.vue.js +4 -0
- package/dist/modules/components/primitives/badge/Badge.vue.js +33 -0
- package/dist/modules/components/primitives/badge/Badge2.vue.js +4 -0
- package/dist/modules/components/primitives/breadcrumb/Breadcrumb.vue.js +261 -0
- package/dist/modules/components/primitives/breadcrumb/Breadcrumb2.vue.js +4 -0
- package/dist/modules/components/primitives/breadcrumb/BreadcrumbCrumb.vue.js +39 -0
- package/dist/modules/components/primitives/breadcrumb/BreadcrumbCrumb2.vue.js +4 -0
- package/dist/modules/components/primitives/breadcrumb/collapse.js +15 -0
- package/dist/modules/components/primitives/breadcrumb/types.js +6 -0
- package/dist/modules/components/primitives/button/Button.vue.js +94 -0
- package/dist/modules/components/primitives/button/Button2.vue.js +4 -0
- package/dist/modules/components/primitives/button/ButtonKindScope.vue.js +14 -0
- package/dist/modules/components/primitives/button/ButtonKindScope2.vue.js +4 -0
- package/dist/modules/components/primitives/button/IconButton.vue.js +48 -0
- package/dist/modules/components/primitives/button/IconButton2.vue.js +4 -0
- package/dist/modules/components/primitives/checkbox/Checkbox.vue.js +75 -0
- package/dist/modules/components/primitives/checkbox/Checkbox2.vue.js +4 -0
- package/dist/modules/components/primitives/checkbox/CheckboxGroup.vue.js +41 -0
- package/dist/modules/components/primitives/checkbox/CheckboxGroup2.vue.js +4 -0
- package/dist/modules/components/primitives/color-picker/ColorPicker.vue.js +292 -0
- package/dist/modules/components/primitives/color-picker/ColorPicker2.vue.js +4 -0
- package/dist/modules/components/primitives/color-picker/palette.js +57 -0
- package/dist/modules/components/primitives/combobox/Combobox.vue.js +51 -0
- package/dist/modules/components/primitives/combobox/Combobox2.vue.js +4 -0
- package/dist/modules/components/primitives/context-menu/ContextMenu.vue.js +107 -0
- package/dist/modules/components/primitives/context-menu/ContextMenu2.vue.js +4 -0
- package/dist/modules/components/primitives/context-menu/ContextMenuItems.vue.js +140 -0
- package/dist/modules/components/primitives/context-menu/ContextMenuItems2.vue.js +4 -0
- package/dist/modules/components/primitives/date-picker/DatePicker.vue.js +479 -0
- package/dist/modules/components/primitives/date-picker/DatePicker2.vue.js +4 -0
- package/dist/modules/components/primitives/date-picker/dateTime.js +67 -0
- package/dist/modules/components/primitives/dialog/Dialog.vue.js +300 -0
- package/dist/modules/components/primitives/dialog/Dialog2.vue.js +4 -0
- package/dist/modules/components/primitives/dialog/FloatingLayer.vue.js +33 -0
- package/dist/modules/components/primitives/dialog/FloatingLayer2.vue.js +4 -0
- package/dist/modules/components/primitives/dialog/dialogCover.js +24 -0
- package/dist/modules/components/primitives/dialog/dialogSize.js +15 -0
- package/dist/modules/components/primitives/dropdown-menu/DropdownMenu.vue.js +127 -0
- package/dist/modules/components/primitives/dropdown-menu/DropdownMenu2.vue.js +4 -0
- package/dist/modules/components/primitives/dropdown-menu/DropdownMenuItems.vue.js +264 -0
- package/dist/modules/components/primitives/dropdown-menu/DropdownMenuItems2.vue.js +4 -0
- package/dist/modules/components/primitives/dropdown-menu/DropdownMenuSheet.vue.js +184 -0
- package/dist/modules/components/primitives/dropdown-menu/DropdownMenuSheet2.vue.js +4 -0
- package/dist/modules/components/primitives/ghost/Ghost.vue.js +55 -0
- package/dist/modules/components/primitives/ghost/Ghost2.vue.js +4 -0
- package/dist/modules/components/primitives/icon/FileTypeIcon.vue.js +24 -0
- package/dist/modules/components/primitives/icon/FileTypeIcon2.vue.js +4 -0
- package/dist/modules/components/primitives/icon/Icon.vue.js +59 -0
- package/dist/modules/components/primitives/icon/Icon2.vue.js +4 -0
- package/dist/modules/components/primitives/icon/fileType.js +16 -0
- package/dist/modules/components/primitives/icon/icon.js +31 -0
- package/dist/modules/components/primitives/icon/iconRegistry.js +17 -0
- package/dist/modules/components/primitives/icon/useIconButton.js +24 -0
- package/dist/modules/components/primitives/input/Input.vue.js +121 -0
- package/dist/modules/components/primitives/input/Input2.vue.js +4 -0
- package/dist/modules/components/primitives/input/Textarea.vue.js +45 -0
- package/dist/modules/components/primitives/input/Textarea2.vue.js +4 -0
- package/dist/modules/components/primitives/input-group/InputGroup.vue.js +15 -0
- package/dist/modules/components/primitives/input-group/InputGroup2.vue.js +4 -0
- package/dist/modules/components/primitives/input-steppers/InputSteppers.vue.js +265 -0
- package/dist/modules/components/primitives/input-steppers/InputSteppers2.vue.js +4 -0
- package/dist/modules/components/primitives/layout/Col.vue.js +37 -0
- package/dist/modules/components/primitives/layout/Col2.vue.js +4 -0
- package/dist/modules/components/primitives/layout/Grid.vue.js +41 -0
- package/dist/modules/components/primitives/layout/Grid2.vue.js +4 -0
- package/dist/modules/components/primitives/layout/Row.vue.js +30 -0
- package/dist/modules/components/primitives/layout/Row2.vue.js +4 -0
- package/dist/modules/components/primitives/layout/breakpoints.js +58 -0
- package/dist/modules/components/primitives/layout/context.js +12 -0
- package/dist/modules/components/primitives/layout/gap.js +20 -0
- package/dist/modules/components/primitives/link/Link.vue.js +62 -0
- package/dist/modules/components/primitives/link/Link2.vue.js +4 -0
- package/dist/modules/components/primitives/loading/LoadingArea.vue.js +19 -0
- package/dist/modules/components/primitives/loading/LoadingArea2.vue.js +4 -0
- package/dist/modules/components/primitives/loading/LoadingIndicator.vue.js +28 -0
- package/dist/modules/components/primitives/loading/LoadingIndicator2.vue.js +4 -0
- package/dist/modules/components/primitives/loading/LoadingMask.vue.js +47 -0
- package/dist/modules/components/primitives/loading/LoadingMask2.vue.js +4 -0
- package/dist/modules/components/primitives/motion/MotionCollapse.vue.js +51 -0
- package/dist/modules/components/primitives/motion/MotionCollapse2.vue.js +4 -0
- package/dist/modules/components/primitives/motion/MotionSwap.vue.js +26 -0
- package/dist/modules/components/primitives/motion/MotionSwap2.vue.js +4 -0
- package/dist/modules/components/primitives/motion/PushTransition.vue.js +198 -0
- package/dist/modules/components/primitives/motion/PushTransition2.vue.js +4 -0
- package/dist/modules/components/primitives/multiple-select/MultipleSelect.vue.js +51 -0
- package/dist/modules/components/primitives/multiple-select/MultipleSelect2.vue.js +4 -0
- package/dist/modules/components/primitives/pagination/Pagination.vue.js +313 -0
- package/dist/modules/components/primitives/pagination/Pagination2.vue.js +4 -0
- package/dist/modules/components/primitives/pagination/PaginationSheet.vue.js +108 -0
- package/dist/modules/components/primitives/pagination/PaginationSheet2.vue.js +4 -0
- package/dist/modules/components/primitives/pagination/labels.js +20 -0
- package/dist/modules/components/primitives/pagination/model.js +25 -0
- package/dist/modules/components/primitives/popover/Popover.vue.js +75 -0
- package/dist/modules/components/primitives/popover/Popover2.vue.js +4 -0
- package/dist/modules/components/primitives/popover/floating.js +67 -0
- package/dist/modules/components/primitives/popover/overlay.js +49 -0
- package/dist/modules/components/primitives/progress/Progress.vue.js +66 -0
- package/dist/modules/components/primitives/progress/Progress2.vue.js +4 -0
- package/dist/modules/components/primitives/radio-group/RadioGroup.vue.js +79 -0
- package/dist/modules/components/primitives/radio-group/RadioGroup2.vue.js +4 -0
- package/dist/modules/components/primitives/refresh-bar/RefreshBar.vue.js +64 -0
- package/dist/modules/components/primitives/refresh-bar/RefreshBar2.vue.js +4 -0
- package/dist/modules/components/primitives/rich-text/RichText.vue.js +55 -0
- package/dist/modules/components/primitives/rich-text/RichText2.vue.js +4 -0
- package/dist/modules/components/primitives/rich-text/parseRichText.js +71 -0
- package/dist/modules/components/primitives/schedule-table/ScheduleTable.vue.js +363 -0
- package/dist/modules/components/primitives/schedule-table/ScheduleTable2.vue.js +4 -0
- package/dist/modules/components/primitives/schedule-table/schedule.js +34 -0
- package/dist/modules/components/primitives/scrollbar/Scrollbar.vue.js +317 -0
- package/dist/modules/components/primitives/scrollbar/Scrollbar2.vue.js +4 -0
- package/dist/modules/components/primitives/segment-control/SegmentControl.vue.js +123 -0
- package/dist/modules/components/primitives/segment-control/SegmentControl2.vue.js +4 -0
- package/dist/modules/components/primitives/segment-control/SegmentItem.vue.js +149 -0
- package/dist/modules/components/primitives/segment-control/SegmentItem2.vue.js +4 -0
- package/dist/modules/components/primitives/segment-control/context.js +9 -0
- package/dist/modules/components/primitives/select/Select.vue.js +272 -0
- package/dist/modules/components/primitives/select/Select2.vue.js +4 -0
- package/dist/modules/components/primitives/select/internal/ComboboxField.vue.js +460 -0
- package/dist/modules/components/primitives/select/internal/ComboboxField2.vue.js +4 -0
- package/dist/modules/components/primitives/select/internal/SelectSheet.vue.js +183 -0
- package/dist/modules/components/primitives/select/internal/SelectSheet2.vue.js +4 -0
- package/dist/modules/components/primitives/select/internal/SelectTag.vue.js +41 -0
- package/dist/modules/components/primitives/select/internal/SelectTag2.vue.js +4 -0
- package/dist/modules/components/primitives/select/internal/options.js +45 -0
- package/dist/modules/components/primitives/select/internal/useSelectSearch.js +29 -0
- package/dist/modules/components/primitives/separator/Separator.vue.js +17 -0
- package/dist/modules/components/primitives/separator/Separator2.vue.js +4 -0
- package/dist/modules/components/primitives/sheet/BottomSheet.vue.js +303 -0
- package/dist/modules/components/primitives/sheet/BottomSheet2.vue.js +4 -0
- package/dist/modules/components/primitives/sheet/Sheet.vue.js +186 -0
- package/dist/modules/components/primitives/sheet/Sheet2.vue.js +4 -0
- package/dist/modules/components/primitives/sheet/phone.js +17 -0
- package/dist/modules/components/primitives/size-bar/SizeBar.vue.js +40 -0
- package/dist/modules/components/primitives/size-bar/SizeBar2.vue.js +4 -0
- package/dist/modules/components/primitives/skeleton/SectionSkeleton.vue.js +171 -0
- package/dist/modules/components/primitives/skeleton/SectionSkeleton2.vue.js +4 -0
- package/dist/modules/components/primitives/skeleton/Skeleton.vue.js +21 -0
- package/dist/modules/components/primitives/skeleton/Skeleton2.vue.js +4 -0
- package/dist/modules/components/primitives/slider/Slider.vue.js +173 -0
- package/dist/modules/components/primitives/slider/Slider2.vue.js +4 -0
- package/dist/modules/components/primitives/space/Space.vue.js +39 -0
- package/dist/modules/components/primitives/space/Space2.vue.js +4 -0
- package/dist/modules/components/primitives/space/space.js +21 -0
- package/dist/modules/components/primitives/spinner/Spinner.vue.js +41 -0
- package/dist/modules/components/primitives/spinner/Spinner2.vue.js +4 -0
- package/dist/modules/components/primitives/split-button/SplitButton.vue.js +72 -0
- package/dist/modules/components/primitives/split-button/SplitButton2.vue.js +4 -0
- package/dist/modules/components/primitives/status-dot/StatusDot.vue.js +24 -0
- package/dist/modules/components/primitives/status-dot/StatusDot2.vue.js +4 -0
- package/dist/modules/components/primitives/superbox-select/SuperboxSelect.vue.js +51 -0
- package/dist/modules/components/primitives/superbox-select/SuperboxSelect2.vue.js +4 -0
- package/dist/modules/components/primitives/surface/Surface.vue.js +30 -0
- package/dist/modules/components/primitives/surface/Surface2.vue.js +4 -0
- package/dist/modules/components/primitives/switch/Switch.vue.js +58 -0
- package/dist/modules/components/primitives/switch/Switch2.vue.js +4 -0
- package/dist/modules/components/primitives/tabs/Tabs.vue.js +74 -0
- package/dist/modules/components/primitives/tabs/Tabs2.vue.js +4 -0
- package/dist/modules/components/primitives/tag/Tag.vue.js +133 -0
- package/dist/modules/components/primitives/tag/Tag2.vue.js +4 -0
- package/dist/modules/components/primitives/toast/ToastProvider.vue.js +197 -0
- package/dist/modules/components/primitives/toast/ToastProvider2.vue.js +4 -0
- package/dist/modules/components/primitives/toast/toast.js +24 -0
- package/dist/modules/components/primitives/toggle-button/ToggleButton.vue.js +69 -0
- package/dist/modules/components/primitives/toggle-button/ToggleButton2.vue.js +4 -0
- package/dist/modules/components/primitives/toggle-button/ToggleButtonGroup.vue.js +45 -0
- package/dist/modules/components/primitives/toggle-button/ToggleButtonGroup2.vue.js +4 -0
- package/dist/modules/components/primitives/toggle-button/toggleButton.js +5 -0
- package/dist/modules/components/primitives/tooltip/OverflowTooltip.vue.js +149 -0
- package/dist/modules/components/primitives/tooltip/OverflowTooltip2.vue.js +4 -0
- package/dist/modules/components/primitives/tooltip/Tooltip.vue.js +87 -0
- package/dist/modules/components/primitives/tooltip/Tooltip2.vue.js +4 -0
- package/dist/modules/components/primitives/tooltip/tooltipStyle.js +21 -0
- package/dist/modules/components/primitives/typography/TypoA.vue.js +15 -0
- package/dist/modules/components/primitives/typography/TypoBlockquote.vue.js +16 -0
- package/dist/modules/components/primitives/typography/TypoBlockquote2.vue.js +4 -0
- package/dist/modules/components/primitives/typography/TypoCode.vue.js +20 -0
- package/dist/modules/components/primitives/typography/TypoCode2.vue.js +4 -0
- package/dist/modules/components/primitives/typography/TypoDivider.vue.js +13 -0
- package/dist/modules/components/primitives/typography/TypoHeader.vue.js +42 -0
- package/dist/modules/components/primitives/typography/TypoHeader2.vue.js +4 -0
- package/dist/modules/components/primitives/typography/TypoHr.vue.js +13 -0
- package/dist/modules/components/primitives/typography/TypoLi.vue.js +20 -0
- package/dist/modules/components/primitives/typography/TypoLi2.vue.js +4 -0
- package/dist/modules/components/primitives/typography/TypoList.vue.js +16 -0
- package/dist/modules/components/primitives/typography/TypoList2.vue.js +4 -0
- package/dist/modules/components/primitives/typography/TypoP.vue.js +16 -0
- package/dist/modules/components/primitives/typography/TypoP2.vue.js +4 -0
- package/dist/modules/components/primitives/typography/TypoTable.vue.js +26 -0
- package/dist/modules/components/primitives/typography/TypoTable2.vue.js +4 -0
- package/dist/modules/components/primitives/typography/TypoText.vue.js +31 -0
- package/dist/modules/components/primitives/typography/TypoText2.vue.js +4 -0
- package/dist/modules/components/primitives/typography/TypoTip.vue.js +33 -0
- package/dist/modules/components/primitives/typography/TypoTip2.vue.js +4 -0
- package/dist/modules/components/primitives/typography/typography.js +34 -0
- package/dist/modules/composables/backDismiss.js +58 -0
- package/dist/modules/composables/buttonKind.js +13 -0
- package/dist/modules/composables/collisionBoundary.js +15 -0
- package/dist/modules/composables/configCascade.js +80 -0
- package/dist/modules/composables/elementWidth.js +44 -0
- package/dist/modules/composables/fitHeight.js +60 -0
- package/dist/modules/composables/floatingHost.js +91 -0
- package/dist/modules/composables/floatingPlacement.js +67 -0
- package/dist/modules/composables/focusOwner.js +11 -0
- package/dist/modules/composables/formControl.js +69 -0
- package/dist/modules/composables/formGroup.js +14 -0
- package/dist/modules/composables/inputModality.js +16 -0
- package/dist/modules/composables/openerFocus.js +42 -0
- package/dist/modules/composables/pageWindow.js +55 -0
- package/dist/modules/composables/pendingClick.js +21 -0
- package/dist/modules/composables/phone.js +10 -0
- package/dist/modules/composables/phoneSurface.js +26 -0
- package/dist/modules/composables/scrollEdges.js +34 -0
- package/dist/modules/composables/sidebarPreference.js +24 -0
- package/dist/modules/composables/softKeyboard.js +64 -0
- package/dist/modules/composables/stickyRoom.js +34 -0
- package/dist/modules/composables/tabIndicator.js +25 -0
- package/dist/modules/composables/tabStripScroll.js +33 -0
- package/dist/modules/composables/visualViewport.js +56 -0
- package/dist/modules/dnd/autoScroll.js +38 -0
- package/dist/modules/dnd/dragKit.js +485 -0
- package/dist/modules/dnd/layout.js +81 -0
- package/dist/modules/dnd/vue.js +30 -0
- package/dist/modules/feedback/StatusSlot.vue.js +58 -0
- package/dist/modules/feedback/StatusSlot2.vue.js +4 -0
- package/dist/modules/feedback/showAfter.js +19 -0
- package/dist/modules/feedback/stackMotion.js +34 -0
- package/dist/modules/feedback/timing.js +18 -0
- package/dist/modules/i18n/filePicker.js +203 -0
- package/dist/modules/i18n/locale.js +41 -0
- package/dist/modules/i18n/text.js +2484 -0
- package/dist/modules/interaction/editSession.js +76 -0
- package/dist/modules/interaction/focus.js +35 -0
- package/dist/modules/interaction/gesture.js +62 -0
- package/dist/modules/interaction/ime.js +45 -0
- package/dist/modules/interaction/outside.js +77 -0
- package/dist/modules/interaction/velocity.js +72 -0
- package/dist/modules/interaction/vue.js +46 -0
- package/dist/modules/lib/accent.js +28 -0
- package/dist/modules/lib/adaptiveLayout.js +36 -0
- package/dist/modules/lib/appRoot.js +5 -0
- package/dist/modules/lib/clipboard.js +24 -0
- package/dist/modules/lib/cn.js +6 -0
- package/dist/modules/lib/color.js +49 -0
- package/dist/modules/lib/controllable.js +14 -0
- package/dist/modules/lib/deviceViewport.js +30 -0
- package/dist/modules/lib/fieldWidth.js +10 -0
- package/dist/modules/lib/fileAccept.js +21 -0
- package/dist/modules/lib/fileSize.js +21 -0
- package/dist/modules/lib/files.js +11 -0
- package/dist/modules/lib/floatingDialog.js +33 -0
- package/dist/modules/lib/format.js +54 -0
- package/dist/modules/lib/localModal.js +275 -0
- package/dist/modules/lib/mentions.js +19 -0
- package/dist/modules/lib/motion.js +64 -0
- package/dist/modules/lib/nativeShell.js +30 -0
- package/dist/modules/lib/numberField.js +47 -0
- package/dist/modules/lib/overflow.js +17 -0
- package/dist/modules/lib/richText.js +216 -0
- package/dist/modules/lib/scroll.js +38 -0
- package/dist/modules/lib/slots.js +10 -0
- package/dist/modules/lib/truncation.js +68 -0
- package/dist/modules/lib/typeScale.js +23 -0
- package/dist/modules/lib/uploadQueue.js +76 -0
- package/dist/modules/vendor/@floating-ui/core/dist/floating-ui.core.js +511 -0
- package/dist/modules/vendor/@floating-ui/dom/dist/floating-ui.dom.js +395 -0
- package/dist/modules/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/modules/vendor/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
- package/dist/modules/vendor/@floating-ui/vue/dist/floating-ui.vue.js +130 -0
- package/dist/modules/vendor/@tanstack/virtual-core/dist/esm/index.js +852 -0
- package/dist/modules/vendor/@tanstack/virtual-core/dist/esm/lazy-measurements.js +37 -0
- package/dist/modules/vendor/@tanstack/virtual-core/dist/esm/utils.js +63 -0
- package/dist/modules/vendor/@tanstack/vue-virtual/dist/esm/index.js +49 -0
- package/dist/modules/vendor/@vueuse/core/dist/index.js +289 -0
- package/dist/modules/vendor/@vueuse/shared/dist/index.js +191 -0
- package/dist/modules/vendor/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/modules/vendor/defu/dist/defu.js +35 -0
- package/dist/modules/vendor/ohash/dist/_chunks/is-equal.js +138 -0
- package/dist/modules/vendor/reka-ui/dist/Accordion/AccordionContent.js +54 -0
- package/dist/modules/vendor/reka-ui/dist/Accordion/AccordionHeader.js +41 -0
- package/dist/modules/vendor/reka-ui/dist/Accordion/AccordionItem.js +97 -0
- package/dist/modules/vendor/reka-ui/dist/Accordion/AccordionRoot.js +82 -0
- package/dist/modules/vendor/reka-ui/dist/Accordion/AccordionTrigger.js +56 -0
- package/dist/modules/vendor/reka-ui/dist/Calendar/CalendarCell.js +44 -0
- package/dist/modules/vendor/reka-ui/dist/Calendar/CalendarCellTrigger.js +203 -0
- package/dist/modules/vendor/reka-ui/dist/Calendar/CalendarGrid.js +39 -0
- package/dist/modules/vendor/reka-ui/dist/Calendar/CalendarGridBody.js +26 -0
- package/dist/modules/vendor/reka-ui/dist/Calendar/CalendarGridHead.js +26 -0
- package/dist/modules/vendor/reka-ui/dist/Calendar/CalendarGridRow.js +26 -0
- package/dist/modules/vendor/reka-ui/dist/Calendar/CalendarHeadCell.js +26 -0
- package/dist/modules/vendor/reka-ui/dist/Calendar/CalendarHeader.js +26 -0
- package/dist/modules/vendor/reka-ui/dist/Calendar/CalendarHeading.js +27 -0
- package/dist/modules/vendor/reka-ui/dist/Calendar/CalendarNext.js +50 -0
- package/dist/modules/vendor/reka-ui/dist/Calendar/CalendarPrev.js +50 -0
- package/dist/modules/vendor/reka-ui/dist/Calendar/CalendarRoot.js +291 -0
- package/dist/modules/vendor/reka-ui/dist/Calendar/useCalendar.js +197 -0
- package/dist/modules/vendor/reka-ui/dist/Checkbox/CheckboxGroupRoot.js +6 -0
- package/dist/modules/vendor/reka-ui/dist/Checkbox/CheckboxIndicator.js +49 -0
- package/dist/modules/vendor/reka-ui/dist/Checkbox/CheckboxRoot.js +198 -0
- package/dist/modules/vendor/reka-ui/dist/Checkbox/utils.js +10 -0
- package/dist/modules/vendor/reka-ui/dist/Collapsible/CollapsibleContent.js +86 -0
- package/dist/modules/vendor/reka-ui/dist/Collapsible/CollapsibleRoot.js +71 -0
- package/dist/modules/vendor/reka-ui/dist/Collapsible/CollapsibleTrigger.js +50 -0
- package/dist/modules/vendor/reka-ui/dist/Collection/Collection.js +68 -0
- package/dist/modules/vendor/reka-ui/dist/Combobox/ComboboxAnchor.js +41 -0
- package/dist/modules/vendor/reka-ui/dist/Combobox/ComboboxContent.js +148 -0
- package/dist/modules/vendor/reka-ui/dist/Combobox/ComboboxContentImpl.js +234 -0
- package/dist/modules/vendor/reka-ui/dist/Combobox/ComboboxGroup.js +44 -0
- package/dist/modules/vendor/reka-ui/dist/Combobox/ComboboxInput.js +131 -0
- package/dist/modules/vendor/reka-ui/dist/Combobox/ComboboxItem.js +73 -0
- package/dist/modules/vendor/reka-ui/dist/Combobox/ComboboxItemIndicator.js +30 -0
- package/dist/modules/vendor/reka-ui/dist/Combobox/ComboboxLabel.js +38 -0
- package/dist/modules/vendor/reka-ui/dist/Combobox/ComboboxPortal.js +33 -0
- package/dist/modules/vendor/reka-ui/dist/Combobox/ComboboxRoot.js +231 -0
- package/dist/modules/vendor/reka-ui/dist/Combobox/ComboboxViewport.js +50 -0
- package/dist/modules/vendor/reka-ui/dist/Combobox/useComboboxContentPositioning.js +32 -0
- package/dist/modules/vendor/reka-ui/dist/ConfigProvider/ConfigProvider.js +54 -0
- package/dist/modules/vendor/reka-ui/dist/ContextMenu/ContextMenuCheckboxItem.js +43 -0
- package/dist/modules/vendor/reka-ui/dist/ContextMenu/ContextMenuContent.js +132 -0
- package/dist/modules/vendor/reka-ui/dist/ContextMenu/ContextMenuItem.js +39 -0
- package/dist/modules/vendor/reka-ui/dist/ContextMenu/ContextMenuItemIndicator.js +30 -0
- package/dist/modules/vendor/reka-ui/dist/ContextMenu/ContextMenuPortal.js +33 -0
- package/dist/modules/vendor/reka-ui/dist/ContextMenu/ContextMenuRoot.js +67 -0
- package/dist/modules/vendor/reka-ui/dist/ContextMenu/ContextMenuSeparator.js +26 -0
- package/dist/modules/vendor/reka-ui/dist/ContextMenu/ContextMenuSub.js +37 -0
- package/dist/modules/vendor/reka-ui/dist/ContextMenu/ContextMenuSubContent.js +118 -0
- package/dist/modules/vendor/reka-ui/dist/ContextMenu/ContextMenuSubTrigger.js +38 -0
- package/dist/modules/vendor/reka-ui/dist/ContextMenu/ContextMenuTrigger.js +101 -0
- package/dist/modules/vendor/reka-ui/dist/ContextMenu/utils.js +6 -0
- package/dist/modules/vendor/reka-ui/dist/DatePicker/DatePickerCalendar.js +49 -0
- package/dist/modules/vendor/reka-ui/dist/DatePicker/DatePickerCell.js +29 -0
- package/dist/modules/vendor/reka-ui/dist/DatePicker/DatePickerCellTrigger.js +33 -0
- package/dist/modules/vendor/reka-ui/dist/DatePicker/DatePickerContent.js +139 -0
- package/dist/modules/vendor/reka-ui/dist/DatePicker/DatePickerGrid.js +25 -0
- package/dist/modules/vendor/reka-ui/dist/DatePicker/DatePickerGridBody.js +25 -0
- package/dist/modules/vendor/reka-ui/dist/DatePicker/DatePickerGridHead.js +25 -0
- package/dist/modules/vendor/reka-ui/dist/DatePicker/DatePickerGridRow.js +25 -0
- package/dist/modules/vendor/reka-ui/dist/DatePicker/DatePickerHeadCell.js +25 -0
- package/dist/modules/vendor/reka-ui/dist/DatePicker/DatePickerHeader.js +25 -0
- package/dist/modules/vendor/reka-ui/dist/DatePicker/DatePickerHeading.js +25 -0
- package/dist/modules/vendor/reka-ui/dist/DatePicker/DatePickerNext.js +29 -0
- package/dist/modules/vendor/reka-ui/dist/DatePicker/DatePickerPrev.js +29 -0
- package/dist/modules/vendor/reka-ui/dist/DatePicker/DatePickerRoot.js +235 -0
- package/dist/modules/vendor/reka-ui/dist/DatePicker/DatePickerTrigger.js +31 -0
- package/dist/modules/vendor/reka-ui/dist/Dialog/DialogClose.js +33 -0
- package/dist/modules/vendor/reka-ui/dist/Dialog/DialogContent.js +72 -0
- package/dist/modules/vendor/reka-ui/dist/Dialog/DialogContentImpl.js +102 -0
- package/dist/modules/vendor/reka-ui/dist/Dialog/DialogContentModal.js +84 -0
- package/dist/modules/vendor/reka-ui/dist/Dialog/DialogContentNonModal.js +74 -0
- package/dist/modules/vendor/reka-ui/dist/Dialog/DialogDescription.js +30 -0
- package/dist/modules/vendor/reka-ui/dist/Dialog/DialogOverlay.js +48 -0
- package/dist/modules/vendor/reka-ui/dist/Dialog/DialogOverlayImpl.js +48 -0
- package/dist/modules/vendor/reka-ui/dist/Dialog/DialogPortal.js +33 -0
- package/dist/modules/vendor/reka-ui/dist/Dialog/DialogRoot.js +63 -0
- package/dist/modules/vendor/reka-ui/dist/Dialog/DialogTitle.js +28 -0
- package/dist/modules/vendor/reka-ui/dist/Dialog/DialogTrigger.js +45 -0
- package/dist/modules/vendor/reka-ui/dist/Dialog/utils.js +17 -0
- package/dist/modules/vendor/reka-ui/dist/DismissableLayer/DismissableLayer.js +98 -0
- package/dist/modules/vendor/reka-ui/dist/DismissableLayer/DismissableLayerBranch.js +35 -0
- package/dist/modules/vendor/reka-ui/dist/DismissableLayer/context.js +9 -0
- package/dist/modules/vendor/reka-ui/dist/DismissableLayer/utils.js +70 -0
- package/dist/modules/vendor/reka-ui/dist/Drawer/DrawerClose.js +33 -0
- package/dist/modules/vendor/reka-ui/dist/Drawer/DrawerContent.js +108 -0
- package/dist/modules/vendor/reka-ui/dist/Drawer/DrawerContentImpl.js +250 -0
- package/dist/modules/vendor/reka-ui/dist/Drawer/DrawerDescription.js +30 -0
- package/dist/modules/vendor/reka-ui/dist/Drawer/DrawerOverlay.js +48 -0
- package/dist/modules/vendor/reka-ui/dist/Drawer/DrawerOverlayImpl.js +51 -0
- package/dist/modules/vendor/reka-ui/dist/Drawer/DrawerPortal.js +32 -0
- package/dist/modules/vendor/reka-ui/dist/Drawer/DrawerProvider.js +6 -0
- package/dist/modules/vendor/reka-ui/dist/Drawer/DrawerRoot.js +159 -0
- package/dist/modules/vendor/reka-ui/dist/Drawer/DrawerTitle.js +28 -0
- package/dist/modules/vendor/reka-ui/dist/Drawer/DrawerTrigger.js +46 -0
- package/dist/modules/vendor/reka-ui/dist/Drawer/DrawerViewport.js +37 -0
- package/dist/modules/vendor/reka-ui/dist/Drawer/DrawerVirtualKeyboardProvider.js +23 -0
- package/dist/modules/vendor/reka-ui/dist/Drawer/utils.js +116 -0
- package/dist/modules/vendor/reka-ui/dist/DropdownMenu/DropdownMenuCheckboxItem.js +43 -0
- package/dist/modules/vendor/reka-ui/dist/DropdownMenu/DropdownMenuContent.js +151 -0
- package/dist/modules/vendor/reka-ui/dist/DropdownMenu/DropdownMenuItem.js +39 -0
- package/dist/modules/vendor/reka-ui/dist/DropdownMenu/DropdownMenuItemIndicator.js +30 -0
- package/dist/modules/vendor/reka-ui/dist/DropdownMenu/DropdownMenuPortal.js +33 -0
- package/dist/modules/vendor/reka-ui/dist/DropdownMenu/DropdownMenuRadioGroup.js +35 -0
- package/dist/modules/vendor/reka-ui/dist/DropdownMenu/DropdownMenuRadioItem.js +40 -0
- package/dist/modules/vendor/reka-ui/dist/DropdownMenu/DropdownMenuRoot.js +69 -0
- package/dist/modules/vendor/reka-ui/dist/DropdownMenu/DropdownMenuSeparator.js +26 -0
- package/dist/modules/vendor/reka-ui/dist/DropdownMenu/DropdownMenuSub.js +35 -0
- package/dist/modules/vendor/reka-ui/dist/DropdownMenu/DropdownMenuSubContent.js +118 -0
- package/dist/modules/vendor/reka-ui/dist/DropdownMenu/DropdownMenuSubTrigger.js +38 -0
- package/dist/modules/vendor/reka-ui/dist/DropdownMenu/DropdownMenuTrigger.js +75 -0
- package/dist/modules/vendor/reka-ui/dist/Field/FieldRoot.js +6 -0
- package/dist/modules/vendor/reka-ui/dist/FocusScope/FocusScope.js +139 -0
- package/dist/modules/vendor/reka-ui/dist/FocusScope/stack.js +22 -0
- package/dist/modules/vendor/reka-ui/dist/FocusScope/utils.js +61 -0
- package/dist/modules/vendor/reka-ui/dist/Listbox/ListboxContent.js +65 -0
- package/dist/modules/vendor/reka-ui/dist/Listbox/ListboxFilter.js +99 -0
- package/dist/modules/vendor/reka-ui/dist/Listbox/ListboxGroup.js +29 -0
- package/dist/modules/vendor/reka-ui/dist/Listbox/ListboxGroupLabel.js +31 -0
- package/dist/modules/vendor/reka-ui/dist/Listbox/ListboxItem.js +90 -0
- package/dist/modules/vendor/reka-ui/dist/Listbox/ListboxItemIndicator.js +46 -0
- package/dist/modules/vendor/reka-ui/dist/Listbox/ListboxRoot.js +320 -0
- package/dist/modules/vendor/reka-ui/dist/Listbox/utils.js +11 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuAnchor.js +29 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuCheckboxItem.js +53 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuContent.js +134 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuContentImpl.js +305 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuGroup.js +29 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuItem.js +61 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuItemImpl.js +80 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuItemIndicator.js +46 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuPortal.js +33 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuRadioGroup.js +42 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuRadioItem.js +49 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuRoot.js +56 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuRootContentModal.js +125 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuRootContentNonModal.js +121 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuSeparator.js +28 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuSub.js +47 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuSubContent.js +151 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/MenuSubTrigger.js +127 -0
- package/dist/modules/vendor/reka-ui/dist/Menu/utils.js +69 -0
- package/dist/modules/vendor/reka-ui/dist/Popover/PopoverAnchor.js +37 -0
- package/dist/modules/vendor/reka-ui/dist/Popover/PopoverContent.js +133 -0
- package/dist/modules/vendor/reka-ui/dist/Popover/PopoverContentImpl.js +165 -0
- package/dist/modules/vendor/reka-ui/dist/Popover/PopoverContentModal.js +139 -0
- package/dist/modules/vendor/reka-ui/dist/Popover/PopoverContentNonModal.js +131 -0
- package/dist/modules/vendor/reka-ui/dist/Popover/PopoverPortal.js +33 -0
- package/dist/modules/vendor/reka-ui/dist/Popover/PopoverRoot.js +56 -0
- package/dist/modules/vendor/reka-ui/dist/Popover/PopoverTrigger.js +55 -0
- package/dist/modules/vendor/reka-ui/dist/Popper/PopperAnchor.js +37 -0
- package/dist/modules/vendor/reka-ui/dist/Popper/PopperArrow.js +84 -0
- package/dist/modules/vendor/reka-ui/dist/Popper/PopperContent.js +272 -0
- package/dist/modules/vendor/reka-ui/dist/Popper/PopperRoot.js +18 -0
- package/dist/modules/vendor/reka-ui/dist/Popper/utils.js +34 -0
- package/dist/modules/vendor/reka-ui/dist/Presence/Presence.js +41 -0
- package/dist/modules/vendor/reka-ui/dist/Presence/usePresence.js +73 -0
- package/dist/modules/vendor/reka-ui/dist/Primitive/Primitive.js +27 -0
- package/dist/modules/vendor/reka-ui/dist/Primitive/Slot.js +23 -0
- package/dist/modules/vendor/reka-ui/dist/Primitive/usePrimitiveElement.js +12 -0
- package/dist/modules/vendor/reka-ui/dist/RadioGroup/Radio.js +111 -0
- package/dist/modules/vendor/reka-ui/dist/RadioGroup/RadioGroupIndicator.js +47 -0
- package/dist/modules/vendor/reka-ui/dist/RadioGroup/RadioGroupItem.js +115 -0
- package/dist/modules/vendor/reka-ui/dist/RadioGroup/RadioGroupRoot.js +123 -0
- package/dist/modules/vendor/reka-ui/dist/RadioGroup/utils.js +11 -0
- package/dist/modules/vendor/reka-ui/dist/RovingFocus/RovingFocusGroup.js +121 -0
- package/dist/modules/vendor/reka-ui/dist/RovingFocus/RovingFocusItem.js +110 -0
- package/dist/modules/vendor/reka-ui/dist/RovingFocus/utils.js +38 -0
- package/dist/modules/vendor/reka-ui/dist/Select/BubbleSelect.js +67 -0
- package/dist/modules/vendor/reka-ui/dist/Select/SelectContent.js +162 -0
- package/dist/modules/vendor/reka-ui/dist/Select/SelectContentImpl.js +288 -0
- package/dist/modules/vendor/reka-ui/dist/Select/SelectGroup.js +29 -0
- package/dist/modules/vendor/reka-ui/dist/Select/SelectIcon.js +29 -0
- package/dist/modules/vendor/reka-ui/dist/Select/SelectItem.js +116 -0
- package/dist/modules/vendor/reka-ui/dist/Select/SelectItemAlignedPosition.js +93 -0
- package/dist/modules/vendor/reka-ui/dist/Select/SelectItemIndicator.js +46 -0
- package/dist/modules/vendor/reka-ui/dist/Select/SelectItemText.js +45 -0
- package/dist/modules/vendor/reka-ui/dist/Select/SelectLabel.js +31 -0
- package/dist/modules/vendor/reka-ui/dist/Select/SelectPopperPosition.js +116 -0
- package/dist/modules/vendor/reka-ui/dist/Select/SelectPortal.js +33 -0
- package/dist/modules/vendor/reka-ui/dist/Select/SelectProvider.js +17 -0
- package/dist/modules/vendor/reka-ui/dist/Select/SelectRoot.js +165 -0
- package/dist/modules/vendor/reka-ui/dist/Select/SelectTrigger.js +152 -0
- package/dist/modules/vendor/reka-ui/dist/Select/SelectValue.js +55 -0
- package/dist/modules/vendor/reka-ui/dist/Select/SelectViewport.js +72 -0
- package/dist/modules/vendor/reka-ui/dist/Select/utils.js +24 -0
- package/dist/modules/vendor/reka-ui/dist/Slider/SliderHorizontal.js +80 -0
- package/dist/modules/vendor/reka-ui/dist/Slider/SliderImpl.js +51 -0
- package/dist/modules/vendor/reka-ui/dist/Slider/SliderRange.js +46 -0
- package/dist/modules/vendor/reka-ui/dist/Slider/SliderRoot.js +184 -0
- package/dist/modules/vendor/reka-ui/dist/Slider/SliderThumb.js +28 -0
- package/dist/modules/vendor/reka-ui/dist/Slider/SliderThumbImpl.js +78 -0
- package/dist/modules/vendor/reka-ui/dist/Slider/SliderTrack.js +38 -0
- package/dist/modules/vendor/reka-ui/dist/Slider/SliderVertical.js +73 -0
- package/dist/modules/vendor/reka-ui/dist/Slider/utils.js +93 -0
- package/dist/modules/vendor/reka-ui/dist/Switch/SwitchRoot.js +137 -0
- package/dist/modules/vendor/reka-ui/dist/Switch/SwitchThumb.js +38 -0
- package/dist/modules/vendor/reka-ui/dist/Tabs/TabsContent.js +70 -0
- package/dist/modules/vendor/reka-ui/dist/Tabs/TabsList.js +55 -0
- package/dist/modules/vendor/reka-ui/dist/Tabs/TabsRoot.js +94 -0
- package/dist/modules/vendor/reka-ui/dist/Tabs/TabsTrigger.js +80 -0
- package/dist/modules/vendor/reka-ui/dist/Tabs/utils.js +10 -0
- package/dist/modules/vendor/reka-ui/dist/Teleport/Teleport.js +40 -0
- package/dist/modules/vendor/reka-ui/dist/Toast/FocusProxy.js +24 -0
- package/dist/modules/vendor/reka-ui/dist/Toast/ToastAnnounce.js +27 -0
- package/dist/modules/vendor/reka-ui/dist/Toast/ToastAnnounceExclude.js +37 -0
- package/dist/modules/vendor/reka-ui/dist/Toast/ToastClose.js +36 -0
- package/dist/modules/vendor/reka-ui/dist/Toast/ToastDescription.js +29 -0
- package/dist/modules/vendor/reka-ui/dist/Toast/ToastPortal.js +33 -0
- package/dist/modules/vendor/reka-ui/dist/Toast/ToastPositioner.js +6 -0
- package/dist/modules/vendor/reka-ui/dist/Toast/ToastProvider.js +125 -0
- package/dist/modules/vendor/reka-ui/dist/Toast/ToastRoot.js +126 -0
- package/dist/modules/vendor/reka-ui/dist/Toast/ToastRootImpl.js +215 -0
- package/dist/modules/vendor/reka-ui/dist/Toast/ToastTitle.js +29 -0
- package/dist/modules/vendor/reka-ui/dist/Toast/ToastViewport.js +146 -0
- package/dist/modules/vendor/reka-ui/dist/Toast/createToastManager.js +29 -0
- package/dist/modules/vendor/reka-ui/dist/Toast/useToastStore.js +64 -0
- package/dist/modules/vendor/reka-ui/dist/Toast/utils.js +37 -0
- package/dist/modules/vendor/reka-ui/dist/Toggle/Toggle.js +98 -0
- package/dist/modules/vendor/reka-ui/dist/ToggleGroup/ToggleGroupItem.js +54 -0
- package/dist/modules/vendor/reka-ui/dist/ToggleGroup/ToggleGroupRoot.js +113 -0
- package/dist/modules/vendor/reka-ui/dist/Tooltip/TooltipArrow.js +37 -0
- package/dist/modules/vendor/reka-ui/dist/Tooltip/TooltipContent.js +90 -0
- package/dist/modules/vendor/reka-ui/dist/Tooltip/TooltipContentHoverable.js +93 -0
- package/dist/modules/vendor/reka-ui/dist/Tooltip/TooltipContentImpl.js +138 -0
- package/dist/modules/vendor/reka-ui/dist/Tooltip/TooltipPortal.js +33 -0
- package/dist/modules/vendor/reka-ui/dist/Tooltip/TooltipProvider.js +70 -0
- package/dist/modules/vendor/reka-ui/dist/Tooltip/TooltipRoot.js +102 -0
- package/dist/modules/vendor/reka-ui/dist/Tooltip/TooltipTrigger.js +88 -0
- package/dist/modules/vendor/reka-ui/dist/Tooltip/utils.js +4 -0
- package/dist/modules/vendor/reka-ui/dist/Tree/TreeItem.js +153 -0
- package/dist/modules/vendor/reka-ui/dist/Tree/TreeRoot.js +216 -0
- package/dist/modules/vendor/reka-ui/dist/Tree/utils.js +6 -0
- package/dist/modules/vendor/reka-ui/dist/VisuallyHidden/VisuallyHidden.js +57 -0
- package/dist/modules/vendor/reka-ui/dist/VisuallyHidden/VisuallyHiddenInput.js +65 -0
- package/dist/modules/vendor/reka-ui/dist/VisuallyHidden/VisuallyHiddenInputBubble.js +55 -0
- package/dist/modules/vendor/reka-ui/dist/color/convert.js +157 -0
- package/dist/modules/vendor/reka-ui/dist/color/parse.js +70 -0
- package/dist/modules/vendor/reka-ui/dist/component/Arrow.js +58 -0
- package/dist/modules/vendor/reka-ui/dist/composables/useDrawerSnapPoints.js +81 -0
- package/dist/modules/vendor/reka-ui/dist/composables/useDrawerVirtualKeyboard.js +343 -0
- package/dist/modules/vendor/reka-ui/dist/composables/useSwipeDismiss.js +280 -0
- package/dist/modules/vendor/reka-ui/dist/date/calendar.js +60 -0
- package/dist/modules/vendor/reka-ui/dist/date/comparators.js +72 -0
- package/dist/modules/vendor/reka-ui/dist/date/utils.js +17 -0
- package/dist/modules/vendor/reka-ui/dist/shared/arrays.js +10 -0
- package/dist/modules/vendor/reka-ui/dist/shared/bodyPointerEvents.js +17 -0
- package/dist/modules/vendor/reka-ui/dist/shared/clamp.js +6 -0
- package/dist/modules/vendor/reka-ui/dist/shared/createContext.js +12 -0
- package/dist/modules/vendor/reka-ui/dist/shared/getActiveElement.js +9 -0
- package/dist/modules/vendor/reka-ui/dist/shared/handleAndDispatchCustomEvent.js +11 -0
- package/dist/modules/vendor/reka-ui/dist/shared/isHTMLElement.js +8 -0
- package/dist/modules/vendor/reka-ui/dist/shared/isValueEqualOrExist.js +8 -0
- package/dist/modules/vendor/reka-ui/dist/shared/nullish.js +6 -0
- package/dist/modules/vendor/reka-ui/dist/shared/renderSlotFragments.js +7 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useArrowNavigation.js +32 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useBodyScrollLock.js +83 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useCalendarKeyboardNavigation.js +70 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useComposing.js +29 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useDateFormatter.js +125 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useDirection.js +9 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useEmitAsProps.js +10 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useFilter.js +23 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useFocusGuards.js +20 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useFormControl.js +8 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useForwardExpose.js +50 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useForwardProps.js +19 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useForwardPropsEmits.js +13 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useForwardScopeId.js +8 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useGraceArea.js +162 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useHideOthers.js +21 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useId.js +12 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useIsUsingKeyboard.js +23 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useKbd.js +41 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useLocale.js +9 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useNonce.js +9 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useSelectionBehavior.js +44 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useSingleOrMultipleValue.js +45 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useSize.js +34 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useStateMachine.js +16 -0
- package/dist/modules/vendor/reka-ui/dist/shared/useTypeahead.js +36 -0
- package/dist/modules/virtual/cardHeight.js +32 -0
- package/dist/modules/virtual/galleryColumns.js +38 -0
- package/dist/modules/virtual/layoutMotion.js +51 -0
- package/dist/reka-runtime.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,1327 @@
|
|
|
1
|
+
import { defineComponent as Ja, useSlots as Qa, getCurrentInstance as el, computed as i, ref as b, watch as De, useTemplateRef as Je, onBeforeUnmount as tl, provide as al, openBlock as o, createElementBlock as s, unref as f, normalizeClass as h, createVNode as g, Fragment as k, createElementVNode as c, toDisplayString as y, withCtx as w, createCommentVNode as v, normalizeStyle as R, renderSlot as _, createTextVNode as K, renderList as A, createBlock as m, withModifiers as S, mergeProps as de, withKeys as Vt } from "vue";
|
|
2
|
+
import { useInsertedKeys as ll } from "../../../lib/motion.js";
|
|
3
|
+
import { useUiText as rl } from "../../../i18n/text.js";
|
|
4
|
+
import { FORM_FIELD_KEY as ol } from "../form/context.js";
|
|
5
|
+
import { SlidersHorizontal as nl, ChevronDown as Qe, ChevronRight as ce, RefreshCw as et, ArrowUp as sl, ArrowDown as il, ChevronUp as ul, Columns3 as dl, GripVertical as Ft, ChevronLeft as cl } from "@lucide/vue";
|
|
6
|
+
import { onLongPress as vl } from "../../../vendor/@vueuse/core/dist/index.js";
|
|
7
|
+
import Gt from "../../primitives/button/Button.vue.js";
|
|
8
|
+
import pl from "../../primitives/sheet/BottomSheet.vue.js";
|
|
9
|
+
import fl from "../../primitives/pagination/Pagination.vue.js";
|
|
10
|
+
import { usePhonePresentation as gl, PHONE_MIN_CAP as hl } from "../../primitives/sheet/phone.js";
|
|
11
|
+
import tt from "../../primitives/checkbox/Checkbox.vue.js";
|
|
12
|
+
import yl from "../../primitives/select/Select.vue.js";
|
|
13
|
+
import wl from "../scroll-edges/ScrollEdges.vue.js";
|
|
14
|
+
import P from "../../primitives/button/IconButton.vue.js";
|
|
15
|
+
import bl from "../../primitives/dropdown-menu/DropdownMenu.vue.js";
|
|
16
|
+
import jt from "../../primitives/loading/LoadingMask.vue.js";
|
|
17
|
+
import xl from "../../primitives/tooltip/OverflowTooltip.vue.js";
|
|
18
|
+
import Xt from "./DataGridSelectBox.vue.js";
|
|
19
|
+
import { provideOverflowTooltipRegion as kl } from "../../../lib/truncation.js";
|
|
20
|
+
import { localizedDataGridLabels as _l } from "./labels.js";
|
|
21
|
+
import { useElementWidth as ml } from "../../../composables/elementWidth.js";
|
|
22
|
+
import { orderColumns as Cl, moveKey as Yt } from "./columnState.js";
|
|
23
|
+
import { normalizeFilter as Sl, rowMatches as Kl } from "./rowFilter.js";
|
|
24
|
+
import { loadGridState as zl, saveGridState as Dl } from "./viewState.js";
|
|
25
|
+
import { columnHasTabularDigits as Zt, columnAlignClass as El, ACTIONS_CELL_CLASS as Rl } from "./columnType.js";
|
|
26
|
+
import { listLayout as $l } from "./listLayout.js";
|
|
27
|
+
import { columnsHiddenByWidth as Tl, distributeColumnWidths as Ol, FLEX_MIN_COLUMN_WIDTH as Al, DEFAULT_MIN_COLUMN_WIDTH as Ll, toPixels as qt, KEYBOARD_RESIZE_STEP as Jt, clampWidth as Qt } from "./columnWidths.js";
|
|
28
|
+
const Il = ["data-fill", "data-ui-natural-height", "data-ui-data-view"], Hl = { class: "min-w-0 flex-1 truncate text-[length:var(--ui-font-size-sm)] text-[var(--ui-text-secondary)]" }, Ml = {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: "px-[var(--ui-inset-x)] py-8 text-center text-[var(--ui-text-secondary)]"
|
|
31
|
+
}, Wl = ["data-group-row"], Pl = ["aria-expanded", "onClick"], Bl = ["data-expand-row"], Ul = ["data-row-key", "data-ui-row-new", "data-selected", "tabindex", "onClick", "onKeydown"], Nl = { class: "min-w-0 flex-1" }, Vl = ["data-column"], Fl = {
|
|
32
|
+
key: 1,
|
|
33
|
+
"data-grid-list-subtitle": "",
|
|
34
|
+
class: "flex min-w-0 items-center gap-1 text-[length:var(--ui-font-size-sm)] text-[var(--ui-text-secondary)]"
|
|
35
|
+
}, Gl = ["data-column"], jl = ["data-column", "onClick"], Xl = {
|
|
36
|
+
class: "min-w-0 flex-1 truncate",
|
|
37
|
+
"aria-live": "polite"
|
|
38
|
+
}, Yl = {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: "min-w-0"
|
|
41
|
+
}, Zl = {
|
|
42
|
+
key: 2,
|
|
43
|
+
class: "flex min-h-[var(--ui-control-md)] items-center gap-2"
|
|
44
|
+
}, ql = { class: "min-w-0 flex-1 truncate text-[length:var(--ui-font-size-sm)] text-[var(--ui-text-secondary)]" }, Jl = { class: "flex flex-col gap-4" }, Ql = ["aria-label"], er = {
|
|
45
|
+
"aria-hidden": "true",
|
|
46
|
+
class: "m-0 pb-1 text-[length:var(--ui-font-size-sm)] text-[var(--ui-text-secondary)]"
|
|
47
|
+
}, tr = ["data-sort-option", "aria-pressed", "onClick"], ar = { class: "min-w-0 flex-1 truncate" }, lr = { class: "text-[length:var(--ui-font-size-sm)] text-[var(--ui-text-secondary)]" }, rr = ["aria-label"], or = {
|
|
48
|
+
"aria-hidden": "true",
|
|
49
|
+
class: "m-0 pb-1 text-[length:var(--ui-font-size-sm)] text-[var(--ui-text-secondary)]"
|
|
50
|
+
}, nr = ["data-column-option"], sr = { class: "min-w-0 flex-1 truncate" }, ir = {
|
|
51
|
+
key: 0,
|
|
52
|
+
"aria-hidden": "true",
|
|
53
|
+
class: "h-[var(--ui-grid-header-height)] border-b border-[var(--ui-border-subtle)] p-0"
|
|
54
|
+
}, ur = {
|
|
55
|
+
key: 1,
|
|
56
|
+
"data-ui-grid-select-all": "",
|
|
57
|
+
class: "h-[var(--ui-grid-header-height)] border-b border-[var(--ui-border-subtle)] px-2 text-center font-normal"
|
|
58
|
+
}, dr = { class: "flex items-center justify-center" }, cr = ["data-column", "data-column-type", "aria-sort", "tabindex", "draggable", "aria-keyshortcuts", "onClick", "onKeydown", "onDragstart", "onDragover", "onDrop"], vr = {
|
|
59
|
+
"data-ui-grid-header-label": "",
|
|
60
|
+
class: "min-w-0 truncate"
|
|
61
|
+
}, pr = ["aria-label", "onPointerdown", "onKeydown"], fr = {
|
|
62
|
+
key: 2,
|
|
63
|
+
"aria-hidden": "true",
|
|
64
|
+
class: "h-[var(--ui-grid-header-height)] border-b border-[var(--ui-border-subtle)] p-0"
|
|
65
|
+
}, gr = {
|
|
66
|
+
key: 3,
|
|
67
|
+
class: "sticky right-0 h-[var(--ui-grid-header-height)] border-b border-[var(--ui-border-subtle)] bg-[var(--ui-surface)] p-0 text-center font-normal"
|
|
68
|
+
}, hr = { key: 0 }, yr = ["colspan"], wr = ["data-group-row"], br = ["colspan"], xr = ["aria-expanded", "onClick"], kr = { class: "min-w-0 truncate" }, _r = ["data-expand-row"], mr = ["colspan"], Cr = { class: "min-w-0 [overflow-wrap:anywhere]" }, Sr = ["data-row-key", "data-ui-row-new", "draggable", "tabindex", "aria-selected", "onClick", "onKeydown", "onDblclick", "onDragstart", "onDragover", "onDrop"], Kr = {
|
|
69
|
+
key: 0,
|
|
70
|
+
class: "h-[calc(var(--ui-grid-row-height)+1px)] px-1 text-center"
|
|
71
|
+
}, zr = ["aria-expanded", "aria-label", "onClick"], Dr = { class: "flex items-center justify-center" }, Er = ["data-column", "data-column-type"], Rr = ["aria-label", "onKeydown"], $r = {
|
|
72
|
+
key: 2,
|
|
73
|
+
class: "h-[calc(var(--ui-grid-row-height)+1px)] px-1 text-center"
|
|
74
|
+
}, Tr = ["aria-label", "onKeydown"], Or = {
|
|
75
|
+
key: 3,
|
|
76
|
+
"aria-hidden": "true",
|
|
77
|
+
class: "p-0"
|
|
78
|
+
}, Ar = { class: "min-w-0 flex-1" }, Lr = { class: "flex items-center gap-1" }, Ir = {
|
|
79
|
+
key: 1,
|
|
80
|
+
"data-page-size": "",
|
|
81
|
+
class: "block w-[72px] shrink-0"
|
|
82
|
+
}, Hr = { class: "sr-only" }, Mr = {
|
|
83
|
+
key: 2,
|
|
84
|
+
class: "h-4 border-l border-[var(--ui-border)]",
|
|
85
|
+
"aria-hidden": "true"
|
|
86
|
+
}, at = 40, lt = 32, ea = 32, rt = 32, ta = "__reset__", Wr = 20, Pr = 8, aa = 16, go = /* @__PURE__ */ Ja({
|
|
87
|
+
__name: "DataGrid",
|
|
88
|
+
props: {
|
|
89
|
+
columns: {},
|
|
90
|
+
rows: {},
|
|
91
|
+
rowKey: { default: "id" },
|
|
92
|
+
sort: { default: void 0 },
|
|
93
|
+
defaultSort: { default: null },
|
|
94
|
+
selectedKeys: { default: () => [] },
|
|
95
|
+
selectable: { type: Boolean, default: !1 },
|
|
96
|
+
selectOnRowClick: { type: Boolean, default: !1 },
|
|
97
|
+
rowSelectable: { type: Function, default: void 0 },
|
|
98
|
+
rowSelectDisabledReason: { type: Function, default: void 0 },
|
|
99
|
+
selectAllScope: { default: "page" },
|
|
100
|
+
singleSelect: { type: Boolean, default: !1 },
|
|
101
|
+
page: { default: void 0 },
|
|
102
|
+
pageSize: { default: void 0 },
|
|
103
|
+
pageSizes: {},
|
|
104
|
+
totalRows: {},
|
|
105
|
+
filter: { default: "" },
|
|
106
|
+
filterRow: {},
|
|
107
|
+
localFilter: { type: Boolean, default: !0 },
|
|
108
|
+
localSort: { type: Boolean, default: !0 },
|
|
109
|
+
localPagination: { type: Boolean, default: !0 },
|
|
110
|
+
loading: { type: Boolean, default: !1 },
|
|
111
|
+
loadingText: { default: "" },
|
|
112
|
+
loadingRows: { default: 5 },
|
|
113
|
+
stickyHeader: { type: Boolean, default: !0 },
|
|
114
|
+
resizable: { type: Boolean, default: !0 },
|
|
115
|
+
columnWidths: {},
|
|
116
|
+
columnOrder: { default: void 0 },
|
|
117
|
+
hiddenColumns: { default: void 0 },
|
|
118
|
+
stateKey: {},
|
|
119
|
+
columnChooser: { type: Boolean, default: !1 },
|
|
120
|
+
columnReorder: { type: Boolean, default: !1 },
|
|
121
|
+
footer: { type: Boolean, default: void 0 },
|
|
122
|
+
refreshable: { type: Boolean, default: !1 },
|
|
123
|
+
refreshing: { type: Boolean, default: !1 },
|
|
124
|
+
maxHeight: {},
|
|
125
|
+
fill: { type: Boolean, default: !0 },
|
|
126
|
+
labels: {},
|
|
127
|
+
emptyText: {},
|
|
128
|
+
group: { default: null },
|
|
129
|
+
expandable: { default: null },
|
|
130
|
+
expandedKeys: { default: void 0 },
|
|
131
|
+
defaultExpandedKeys: { default: () => [] },
|
|
132
|
+
draggable: { type: [Boolean, Object], default: !1 },
|
|
133
|
+
mobileView: { default: "auto" }
|
|
134
|
+
},
|
|
135
|
+
emits: ["update:sort", "update:selectedKeys", "update:page", "update:pageSize", "update:columnWidths", "update:columnOrder", "update:hiddenColumns", "update:rows", "update:expandedKeys", "columnResize", "refresh", "rowClick", "rowDblclick", "rowActivate", "rowExpand", "rowCollapse", "groupToggle", "reorder", "cellEditStart", "cellEditEnd", "cellUpdate"],
|
|
136
|
+
setup(la, { expose: ra, emit: oa }) {
|
|
137
|
+
const na = rl(), l = la, p = oa, sa = Qa(), ia = el(), ot = i(() => l.singleSelect || l.selectable && l.selectOnRowClick || typeof ia?.vnode.props?.onRowClick == "function"), d = i(() => ({
|
|
138
|
+
..._l(na),
|
|
139
|
+
...l.emptyText ? { empty: l.emptyText } : {},
|
|
140
|
+
...l.labels
|
|
141
|
+
}));
|
|
142
|
+
function u(e, a = 0) {
|
|
143
|
+
return String(e[l.rowKey] ?? a);
|
|
144
|
+
}
|
|
145
|
+
const Ee = b(null);
|
|
146
|
+
De(() => l.rows, () => {
|
|
147
|
+
Ee.value = null;
|
|
148
|
+
});
|
|
149
|
+
const x = i(() => Ee.value ?? l.rows);
|
|
150
|
+
function Re(e) {
|
|
151
|
+
Ee.value = e, p("update:rows", e);
|
|
152
|
+
}
|
|
153
|
+
const Y = l.stateKey ? zl(l.stateKey) : {}, ve = b(Y.sort !== void 0 ? Y.sort : l.defaultSort), z = i(() => l.sort !== void 0 ? l.sort : ve.value);
|
|
154
|
+
function ua(e, a) {
|
|
155
|
+
return e == null && a == null ? 0 : e == null ? -1 : a == null ? 1 : typeof e == "number" && typeof a == "number" ? e - a : e instanceof Date && a instanceof Date ? e.getTime() - a.getTime() : String(e).localeCompare(String(a), void 0, { numeric: !0, sensitivity: "base" });
|
|
156
|
+
}
|
|
157
|
+
const nt = i(() => l.localFilter ? Sl(l.filter) : ""), $e = i(() => {
|
|
158
|
+
const e = nt.value;
|
|
159
|
+
return e ? x.value.filter((a) => l.filterRow ? l.filterRow(a, e) : Kl(a, G.value, e)) : x.value;
|
|
160
|
+
}), te = i(() => {
|
|
161
|
+
const e = z.value;
|
|
162
|
+
if (!l.localSort || !e) return $e.value;
|
|
163
|
+
const a = l.columns.find((n) => n.key === e.key);
|
|
164
|
+
if (!a) return $e.value;
|
|
165
|
+
const t = e.direction === "asc" ? 1 : -1, r = a.compare ?? ua;
|
|
166
|
+
return [...$e.value].sort((n, E) => r(n[a.key], E[a.key], n, E) * t);
|
|
167
|
+
});
|
|
168
|
+
function da(e) {
|
|
169
|
+
if (e.sortable)
|
|
170
|
+
return z.value?.key !== e.key ? "none" : z.value.direction === "asc" ? "ascending" : "descending";
|
|
171
|
+
}
|
|
172
|
+
function ca(e) {
|
|
173
|
+
const a = z.value;
|
|
174
|
+
return !a || a.key !== e.key ? { key: e.key, direction: "asc" } : a.direction === "asc" ? { key: e.key, direction: "desc" } : null;
|
|
175
|
+
}
|
|
176
|
+
function pe(e) {
|
|
177
|
+
if (!e.sortable) return;
|
|
178
|
+
const a = ca(e);
|
|
179
|
+
ve.value = a, p("update:sort", a);
|
|
180
|
+
}
|
|
181
|
+
const st = b(1), ae = b(Y.pageSize ?? null), B = i(() => l.pageSize ?? ae.value ?? l.pageSizes?.[0] ?? Wr), L = i(() => l.localPagination ? te.value.length : l.totalRows ?? l.rows.length), fe = i(() => nt.value !== ""), O = i(() => Math.max(1, Math.ceil(L.value / B.value))), $ = i(() => Math.min(Math.max(1, l.page ?? st.value), O.value)), le = i(() => {
|
|
182
|
+
if (!l.localPagination) return te.value;
|
|
183
|
+
const e = ($.value - 1) * B.value;
|
|
184
|
+
return te.value.slice(e, e + B.value);
|
|
185
|
+
}), Te = i(() => new Map(le.value.map((e, a) => [e, a])));
|
|
186
|
+
function it(e) {
|
|
187
|
+
st.value = e, p("update:page", e);
|
|
188
|
+
}
|
|
189
|
+
function Oe(e) {
|
|
190
|
+
it(Math.min(O.value, Math.max(1, e)));
|
|
191
|
+
}
|
|
192
|
+
De([() => l.filter, z, B], () => {
|
|
193
|
+
$.value !== 1 && it(1);
|
|
194
|
+
});
|
|
195
|
+
const Z = i(() => (l.pageSizes ?? []).map((e) => ({ label: String(e), value: String(e) })));
|
|
196
|
+
function ut(e) {
|
|
197
|
+
const a = Number(e);
|
|
198
|
+
!Number.isFinite(a) || a <= 0 || a === B.value || (ae.value = a, p("update:pageSize", a));
|
|
199
|
+
}
|
|
200
|
+
const dt = i(() => l.footer ?? (O.value > 1 || !!sa.footer || Z.value.length > 0 && x.value.length > Math.min(...l.pageSizes))), Ae = i(() => le.value.map((e, a) => u(e, a)));
|
|
201
|
+
function q(e) {
|
|
202
|
+
return l.rowSelectable ? l.rowSelectable(e) : !0;
|
|
203
|
+
}
|
|
204
|
+
function va(e) {
|
|
205
|
+
return q(e) ? void 0 : l.rowSelectDisabledReason?.(e) || void 0;
|
|
206
|
+
}
|
|
207
|
+
const J = i(() => (l.selectAllScope === "all" ? te.value : le.value).flatMap((a, t) => q(a) ? [u(a, t)] : [])), I = i(() => new Set(l.selectedKeys)), ct = i(() => J.value.filter((e) => I.value.has(e)).length), ge = i(() => J.value.length > 0 && ct.value === J.value.length), vt = i(() => ct.value > 0 && !ge.value);
|
|
208
|
+
function re(e, a) {
|
|
209
|
+
const t = new Set(l.selectedKeys);
|
|
210
|
+
a ? t.add(e) : t.delete(e), p("update:selectedKeys", [...t]);
|
|
211
|
+
}
|
|
212
|
+
function pt(e) {
|
|
213
|
+
const a = new Set(l.selectedKeys), t = e && !ge.value;
|
|
214
|
+
for (const r of J.value)
|
|
215
|
+
t ? a.add(r) : a.delete(r);
|
|
216
|
+
p("update:selectedKeys", [...a]);
|
|
217
|
+
}
|
|
218
|
+
function pa(e, a, t) {
|
|
219
|
+
if (p("rowClick", a), l.singleSelect) {
|
|
220
|
+
p("update:selectedKeys", [t]);
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
!l.selectable || !l.selectOnRowClick || (e.ctrlKey || e.metaKey ? re(t, !l.selectedKeys.includes(t)) : p("update:selectedKeys", [t]));
|
|
224
|
+
}
|
|
225
|
+
const he = i(() => {
|
|
226
|
+
const e = l.group;
|
|
227
|
+
if (!e) return null;
|
|
228
|
+
const a = /* @__PURE__ */ new Map();
|
|
229
|
+
for (const r of le.value) {
|
|
230
|
+
const n = r[e.field], E = String(n), T = a.get(E);
|
|
231
|
+
T ? T.rows.push(r) : a.set(E, { key: n, rows: [r] });
|
|
232
|
+
}
|
|
233
|
+
const t = [...a.entries()].map(([r, n]) => ({
|
|
234
|
+
id: r,
|
|
235
|
+
key: n.key,
|
|
236
|
+
rows: n.rows,
|
|
237
|
+
label: e.label?.(n.key, n.rows) ?? (n.key == null ? "" : String(n.key))
|
|
238
|
+
}));
|
|
239
|
+
return e.compare && t.sort((r, n) => e.compare(r.key, n.key)), t;
|
|
240
|
+
}), Le = b({});
|
|
241
|
+
function ft(e) {
|
|
242
|
+
return Le.value[e] ?? l.group?.defaultExpanded ?? !0;
|
|
243
|
+
}
|
|
244
|
+
function Ie(e, a) {
|
|
245
|
+
Le.value = { ...Le.value, [e]: a }, p("groupToggle", e, a);
|
|
246
|
+
}
|
|
247
|
+
function ye(e) {
|
|
248
|
+
Ie(e, !ft(e));
|
|
249
|
+
}
|
|
250
|
+
const gt = (e) => ({ keys: e.map((a, t) => u(a, t)) }), ht = i(() => !!l.expandable), U = i(() => ht.value && l.expandable?.type !== "cell"), yt = i(() => l.expandable?.slot ?? "expand"), oe = b([...l.defaultExpandedKeys]), H = i(() => l.expandedKeys ?? oe.value);
|
|
251
|
+
function He(e, a) {
|
|
252
|
+
const t = a ? [.../* @__PURE__ */ new Set([...H.value, e])] : H.value.filter((r) => r !== e);
|
|
253
|
+
t.length !== H.value.length && (oe.value = t, p("update:expandedKeys", t), p(a ? "rowExpand" : "rowCollapse", e));
|
|
254
|
+
}
|
|
255
|
+
const wt = i(() => (U.value ? lt : 0) + (l.selectable ? at : 0) + Pr), fa = (e) => He(e, !0), ga = (e) => He(e, !1), ha = () => {
|
|
256
|
+
const e = [.../* @__PURE__ */ new Set([...H.value, ...Ae.value])];
|
|
257
|
+
oe.value = e, p("update:expandedKeys", e);
|
|
258
|
+
}, ya = () => {
|
|
259
|
+
const e = new Set(Ae.value), a = H.value.filter((t) => !e.has(t));
|
|
260
|
+
oe.value = a, p("update:expandedKeys", a);
|
|
261
|
+
}, wa = (e) => {
|
|
262
|
+
oe.value = [...e], p("update:expandedKeys", [...e]);
|
|
263
|
+
}, ba = () => {
|
|
264
|
+
for (const e of he.value ?? []) Ie(e.id, !0);
|
|
265
|
+
}, xa = () => {
|
|
266
|
+
for (const e of he.value ?? []) Ie(e.id, !1);
|
|
267
|
+
};
|
|
268
|
+
function we(e) {
|
|
269
|
+
He(e, !H.value.includes(e));
|
|
270
|
+
}
|
|
271
|
+
const be = i(() => l.draggable ? typeof l.draggable == "object" ? l.draggable : {} : null), bt = i(() => !!be.value), ne = i(() => bt.value && !be.value?.pivotColumn ? "__drag__" : null), N = b(null), xe = b(null);
|
|
272
|
+
function xt(e, a) {
|
|
273
|
+
const t = [...x.value];
|
|
274
|
+
if (e === a || e < 0 || a < 0 || e >= t.length || a >= t.length) return;
|
|
275
|
+
const [r] = t.splice(e, 1);
|
|
276
|
+
t.splice(a, 0, r), Re(t), p("reorder", { rows: t, key: u(r), from: e, to: a });
|
|
277
|
+
}
|
|
278
|
+
const kt = (e) => {
|
|
279
|
+
const a = x.value.indexOf(e);
|
|
280
|
+
a > 0 && xt(a, a - 1);
|
|
281
|
+
}, _t = (e) => {
|
|
282
|
+
const a = x.value.indexOf(e);
|
|
283
|
+
a >= 0 && a < x.value.length - 1 && xt(a, a + 1);
|
|
284
|
+
};
|
|
285
|
+
function ka(e, a) {
|
|
286
|
+
N.value = u(a), e.dataTransfer?.setData("text/plain", N.value), e.dataTransfer && (e.dataTransfer.effectAllowed = "move");
|
|
287
|
+
}
|
|
288
|
+
function mt(e) {
|
|
289
|
+
const a = x.value.find((t) => u(t) === N.value);
|
|
290
|
+
return !a || a === e ? !1 : be.value?.withinGroup && l.group ? a[l.group.field] === e[l.group.field] : !0;
|
|
291
|
+
}
|
|
292
|
+
function _a(e, a, t) {
|
|
293
|
+
mt(a) && (xe.value = t, e.dataTransfer && (e.dataTransfer.dropEffect = "move"));
|
|
294
|
+
}
|
|
295
|
+
function ma(e, a) {
|
|
296
|
+
if (xe.value = null, !mt(a)) return;
|
|
297
|
+
const t = x.value.find((X) => u(X) === N.value);
|
|
298
|
+
if (N.value = null, !t) return;
|
|
299
|
+
const r = [...x.value], n = r.indexOf(t), E = r.indexOf(a);
|
|
300
|
+
r.splice(n, 1);
|
|
301
|
+
const T = r.indexOf(a);
|
|
302
|
+
r.splice(n < E ? T + 1 : T, 0, t), Re(r), p("reorder", { rows: r, key: u(t), from: n, to: r.indexOf(t) });
|
|
303
|
+
}
|
|
304
|
+
function Ca() {
|
|
305
|
+
N.value = null, xe.value = null;
|
|
306
|
+
}
|
|
307
|
+
function Ct(e, a) {
|
|
308
|
+
e.key === "ArrowUp" ? (e.preventDefault(), kt(a)) : e.key === "ArrowDown" && (e.preventDefault(), _t(a));
|
|
309
|
+
}
|
|
310
|
+
const ke = b(null);
|
|
311
|
+
function St(e, a) {
|
|
312
|
+
return ke.value?.key === u(e) && ke.value?.column === a.key;
|
|
313
|
+
}
|
|
314
|
+
function Sa(e, a) {
|
|
315
|
+
ke.value = { key: u(e), column: a.key }, p("cellEditStart", { row: e, column: a, key: u(e) });
|
|
316
|
+
}
|
|
317
|
+
function Ka(e, a) {
|
|
318
|
+
St(e, a) && (ke.value = null, p("cellEditEnd", { row: e, column: a, key: u(e) }));
|
|
319
|
+
}
|
|
320
|
+
function za(e, a, t) {
|
|
321
|
+
const r = e[a.key];
|
|
322
|
+
Re(x.value.map((n) => n === e ? { ...n, [a.key]: t } : n)), p("cellUpdate", { row: e, column: a, key: u(e), value: t, previous: r });
|
|
323
|
+
}
|
|
324
|
+
const Me = b(Y.columnOrder ?? null), We = b(Y.hiddenColumns ?? null), V = i(() => Cl(l.columns, l.columnOrder ?? Me.value ?? [])), Kt = i(() => l.columns.filter((e) => e.defaultHidden).map((e) => e.key)), F = i(() => l.hiddenColumns ?? We.value ?? Kt.value), G = i(() => V.value.filter((e) => e.hideable === !1 || !F.value.includes(e.key)));
|
|
325
|
+
function Pe(e) {
|
|
326
|
+
Me.value = e, p("update:columnOrder", e);
|
|
327
|
+
}
|
|
328
|
+
function Be(e) {
|
|
329
|
+
We.value = e, p("update:hiddenColumns", e);
|
|
330
|
+
}
|
|
331
|
+
function Da(e, a) {
|
|
332
|
+
const t = C.value[C.value.indexOf(e) + a];
|
|
333
|
+
if (!t) return;
|
|
334
|
+
const r = V.value.map((n) => n.key);
|
|
335
|
+
Pe(Yt(r, e.key, r.indexOf(t.key)));
|
|
336
|
+
}
|
|
337
|
+
function Ea(e, a) {
|
|
338
|
+
const t = e.key === "ArrowLeft" ? -1 : e.key === "ArrowRight" ? 1 : 0;
|
|
339
|
+
!l.columnReorder || !e.altKey || t === 0 || (e.preventDefault(), Da(a, t));
|
|
340
|
+
}
|
|
341
|
+
const Q = b(null), Ue = b(null);
|
|
342
|
+
function Ra(e, a) {
|
|
343
|
+
if (ee) {
|
|
344
|
+
e.preventDefault();
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
Q.value = a.key, e.dataTransfer?.setData("text/plain", a.key), e.dataTransfer && (e.dataTransfer.effectAllowed = "move");
|
|
348
|
+
}
|
|
349
|
+
function $a(e, a) {
|
|
350
|
+
!Q.value || Q.value === a.key || (e.preventDefault(), Ue.value = a.key, e.dataTransfer && (e.dataTransfer.dropEffect = "move"));
|
|
351
|
+
}
|
|
352
|
+
function Ta(e) {
|
|
353
|
+
const a = Q.value;
|
|
354
|
+
if (zt(), !a || a === e.key) return;
|
|
355
|
+
const t = V.value.map((r) => r.key);
|
|
356
|
+
Pe(Yt(t, a, t.indexOf(e.key)));
|
|
357
|
+
}
|
|
358
|
+
function zt() {
|
|
359
|
+
Q.value = null, Ue.value = null;
|
|
360
|
+
}
|
|
361
|
+
const Oa = i(() => [
|
|
362
|
+
...V.value.map((e) => ({
|
|
363
|
+
type: "checkbox",
|
|
364
|
+
key: e.key,
|
|
365
|
+
label: e.label,
|
|
366
|
+
hint: Et.value.includes(e.key) ? d.value.hiddenByWidth : void 0,
|
|
367
|
+
// The last shown column stays, so the grid never loses all its columns.
|
|
368
|
+
disabled: e.hideable === !1 || C.value.length === 1 && C.value[0] === e
|
|
369
|
+
})),
|
|
370
|
+
{ type: "separator", key: "__separator__" },
|
|
371
|
+
{ key: ta, label: d.value.resetColumns }
|
|
372
|
+
]);
|
|
373
|
+
function Aa(e, a) {
|
|
374
|
+
ie.value = a ? [...ie.value, e] : ie.value.filter((t) => t !== e), !(a && !F.value.includes(e)) && Be(a ? F.value.filter((t) => t !== e) : [...F.value, e]);
|
|
375
|
+
}
|
|
376
|
+
function Ne() {
|
|
377
|
+
Pe(l.columns.map((e) => e.key)), Be([...Kt.value]), ie.value = [], j.value = {}, p("update:columnWidths", {});
|
|
378
|
+
}
|
|
379
|
+
function La(e) {
|
|
380
|
+
e === ta && Ne();
|
|
381
|
+
}
|
|
382
|
+
const Dt = Je("scroller"), Ve = ml(i(() => Dt.value?.viewport)), j = b(Y.columnWidths ?? {});
|
|
383
|
+
De(() => l.columnWidths, () => {
|
|
384
|
+
j.value = {};
|
|
385
|
+
});
|
|
386
|
+
const Ia = (e) => Fe(e) === void 0 && !/%\s*$/.test(String(e.width ?? ""));
|
|
387
|
+
function se(e) {
|
|
388
|
+
return qt(e.minWidth) ?? (Ia(e) ? Al : Ll);
|
|
389
|
+
}
|
|
390
|
+
function Fe(e) {
|
|
391
|
+
return j.value[e.key] ?? l.columnWidths?.[e.key] ?? qt(e.width);
|
|
392
|
+
}
|
|
393
|
+
const Ge = i(() => (l.selectable ? at : 0) + (U.value ? lt : 0) + (ne.value ? ea : 0) + (l.columnChooser ? rt : 0)), ie = b([]), Et = i(() => Tl(G.value.map((e) => ({
|
|
394
|
+
key: e.key,
|
|
395
|
+
minWidth: Fe(e) ?? se(e),
|
|
396
|
+
// A fixed (`hideable: false`) column only drops when the author gave it a priority.
|
|
397
|
+
priority: e.hideable === !1 && e.priority === void 0 || ie.value.includes(e.key) ? void 0 : e.priority
|
|
398
|
+
})), Ve.value - Ge.value)), C = i(() => G.value.filter((e) => !Et.value.includes(e.key))), je = i(() => {
|
|
399
|
+
const e = Math.max(0, Ve.value - Ge.value);
|
|
400
|
+
return Ol(C.value.map((a) => {
|
|
401
|
+
const t = /^\s*(\d+(\.\d+)?)%\s*$/.exec(String(a.width ?? "")), r = Fe(a) ?? (t ? Math.max(se(a), Math.floor(e * Number(t[1]) / 100)) : void 0);
|
|
402
|
+
return { key: a.key, width: r, minWidth: se(a), flex: a.flex ?? 1 };
|
|
403
|
+
}), e);
|
|
404
|
+
}), Rt = () => ({ ...je.value }), Ha = i(() => (l.selectable ? 1 : 0) + (U.value ? 1 : 0) + (ne.value ? 1 : 0) + (l.columnChooser ? 1 : 0)), Ma = i(() => Object.values(je.value).reduce((e, a) => e + a, 0) + Ge.value), $t = (e) => e.resizable ?? l.resizable, Tt = (e) => !!e.label || $t(e), Wa = (e, a) => {
|
|
405
|
+
const t = C.value[a + 1];
|
|
406
|
+
return !!t && Tt(e) && Tt(t);
|
|
407
|
+
};
|
|
408
|
+
function Ot(e, a) {
|
|
409
|
+
j.value = a, p("update:columnWidths", a), p("columnResize", { key: e.key, width: a[e.key] });
|
|
410
|
+
}
|
|
411
|
+
let ee;
|
|
412
|
+
function Pa(e, a) {
|
|
413
|
+
const t = Rt(), r = e.clientX, n = (X) => ({ ...t, [a.key]: Qt(t[a.key] + X - r, se(a)) }), E = (X) => {
|
|
414
|
+
j.value = n(X.clientX);
|
|
415
|
+
}, T = (X) => {
|
|
416
|
+
ee?.(), Ot(a, n(X.clientX));
|
|
417
|
+
};
|
|
418
|
+
ee = () => {
|
|
419
|
+
document.removeEventListener("pointermove", E), document.removeEventListener("pointerup", T), document.removeEventListener("pointercancel", T), ee = void 0;
|
|
420
|
+
}, document.addEventListener("pointermove", E), document.addEventListener("pointerup", T), document.addEventListener("pointercancel", T);
|
|
421
|
+
}
|
|
422
|
+
function Ba(e, a) {
|
|
423
|
+
const t = e.key === "ArrowRight" ? Jt : e.key === "ArrowLeft" ? -Jt : 0;
|
|
424
|
+
if (t === 0) return;
|
|
425
|
+
e.preventDefault();
|
|
426
|
+
const r = Rt();
|
|
427
|
+
Ot(a, { ...r, [a.key]: Qt(r[a.key] + t, se(a)) });
|
|
428
|
+
}
|
|
429
|
+
tl(() => ee?.()), kl();
|
|
430
|
+
const At = Je("gridRoot");
|
|
431
|
+
function Ua({ scope: e }) {
|
|
432
|
+
const a = C.value.find((n) => n.key === e.dataset.column);
|
|
433
|
+
if (!a) return;
|
|
434
|
+
if (e.tagName === "TH") return a.headerTooltip === !1 ? !1 : a.label;
|
|
435
|
+
if (a.tooltip === !1) return !1;
|
|
436
|
+
if (typeof a.tooltip != "function") return;
|
|
437
|
+
const t = e.closest("tr[data-row-key]")?.dataset.rowKey, r = M.value.find((n) => n.kind === "row" && u(n.row, n.index) === t);
|
|
438
|
+
return r && r.kind === "row" ? a.tooltip(r.row) : void 0;
|
|
439
|
+
}
|
|
440
|
+
if (l.stateKey) {
|
|
441
|
+
const e = l.stateKey;
|
|
442
|
+
De([Me, We, j, ve, ae], () => {
|
|
443
|
+
ee || Dl(e, {
|
|
444
|
+
columnOrder: V.value.map((a) => a.key),
|
|
445
|
+
hiddenColumns: [...F.value],
|
|
446
|
+
columnWidths: { ...j.value },
|
|
447
|
+
sort: ve.value,
|
|
448
|
+
...ae.value ? { pageSize: ae.value } : {}
|
|
449
|
+
});
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
const Lt = El;
|
|
453
|
+
function ue(e, a) {
|
|
454
|
+
return {
|
|
455
|
+
row: e.row,
|
|
456
|
+
value: e.row[a.key],
|
|
457
|
+
column: a,
|
|
458
|
+
index: e.index,
|
|
459
|
+
expanded: e.expanded,
|
|
460
|
+
editing: St(e.row, a),
|
|
461
|
+
startEdit: () => Sa(e.row, a),
|
|
462
|
+
stopEdit: () => Ka(e.row, a),
|
|
463
|
+
toggleExpand: () => we(u(e.row, e.index)),
|
|
464
|
+
update: (t) => za(e.row, a, t)
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
const M = i(() => {
|
|
468
|
+
const e = [], a = (t) => {
|
|
469
|
+
const r = u(t, Te.value.get(t) ?? 0), n = ht.value && H.value.includes(r);
|
|
470
|
+
e.push({ kind: "row", id: `row-${r}`, row: t, index: Te.value.get(t) ?? 0, expanded: n }), n && e.push({ kind: "detail", id: `detail-${r}`, row: t, index: Te.value.get(t) ?? 0 });
|
|
471
|
+
};
|
|
472
|
+
if (he.value) {
|
|
473
|
+
for (const t of he.value) {
|
|
474
|
+
const r = ft(t.id);
|
|
475
|
+
e.push({ kind: "group", id: `group-${t.id}`, groupId: t.id, label: t.label, rows: t.rows, expanded: r }), r && t.rows.forEach(a);
|
|
476
|
+
}
|
|
477
|
+
return e;
|
|
478
|
+
}
|
|
479
|
+
return le.value.forEach(a), e;
|
|
480
|
+
}), _e = i(() => M.value.flatMap((e) => e.kind === "row" ? [u(e.row, e.index)] : [])), It = ll(() => M.value.flatMap((e) => e.kind === "row" && e.row[l.rowKey] != null ? [String(e.row[l.rowKey])] : []), { busy: () => l.loading || l.refreshing }), Ht = i(() => l.singleSelect ? _e.value.find((e) => l.selectedKeys.includes(e)) ?? _e.value[0] ?? null : null), Na = { ArrowUp: -1, ArrowDown: 1 };
|
|
481
|
+
function Va(e, a, t) {
|
|
482
|
+
if (!l.singleSelect || e.target !== e.currentTarget) return;
|
|
483
|
+
if (e.key === "Enter") {
|
|
484
|
+
e.preventDefault(), p("rowActivate", a);
|
|
485
|
+
return;
|
|
486
|
+
}
|
|
487
|
+
const r = Na[e.key];
|
|
488
|
+
if (!r) return;
|
|
489
|
+
e.preventDefault();
|
|
490
|
+
const n = _e.value[_e.value.indexOf(t) + r];
|
|
491
|
+
if (n === void 0) return;
|
|
492
|
+
p("update:selectedKeys", [n]), e.currentTarget.parentElement?.querySelector(`[data-row-key="${CSS.escape(n)}"]`)?.focus();
|
|
493
|
+
}
|
|
494
|
+
const me = gl(), Ce = i(() => l.mobileView === "list" || l.mobileView === "auto" && me.value), D = i(() => l.fill && !me.value), Xe = i(() => l.maxHeight && me.value ? `max(${l.maxHeight}, ${hl})` : l.maxHeight), W = i(() => $l(G.value)), Se = i(() => l.selectable && !l.singleSelect), Ke = i(() => Ce.value && Se.value && l.selectedKeys.length > 0), Mt = i(() => ot.value || Ke.value), Wt = Je("listEl"), Ye = b(!1), Ze = i(() => V.value.filter((e) => e.sortable)), Pt = i(() => Ze.value.length > 0 || l.columnChooser), Fa = i(() => {
|
|
495
|
+
const e = z.value, a = e && l.columns.find((t) => t.key === e.key);
|
|
496
|
+
return a ? `${a.label}, ${e.direction === "asc" ? d.value.ascending : d.value.descending}` : "";
|
|
497
|
+
}), Bt = i(() => fe.value && l.localPagination ? d.value.filtered(L.value, x.value.length) : d.value.items(L.value)), Ga = i(() => te.value.filter((e, a) => I.value.has(u(e, a))));
|
|
498
|
+
function Ut() {
|
|
499
|
+
p("update:selectedKeys", []);
|
|
500
|
+
}
|
|
501
|
+
function ja(e) {
|
|
502
|
+
const a = M.value.find((t) => t.kind === "row" && u(t.row, t.index) === e);
|
|
503
|
+
return a && a.kind === "row" ? a.row : void 0;
|
|
504
|
+
}
|
|
505
|
+
let ze = !1;
|
|
506
|
+
vl(Wt, (e) => {
|
|
507
|
+
if (!Se.value) return;
|
|
508
|
+
const a = e.target?.closest("[data-row-key]")?.dataset.rowKey, t = a === void 0 ? void 0 : ja(a);
|
|
509
|
+
!t || !q(t) || a === void 0 || (ze = !0, I.value.has(a) || re(a, !0));
|
|
510
|
+
}, { delay: 500, distanceThreshold: 10 });
|
|
511
|
+
function Xa() {
|
|
512
|
+
ze = !1;
|
|
513
|
+
}
|
|
514
|
+
function Nt(e, a) {
|
|
515
|
+
if (ze) {
|
|
516
|
+
ze = !1;
|
|
517
|
+
return;
|
|
518
|
+
}
|
|
519
|
+
if (Ke.value) {
|
|
520
|
+
q(e) && re(a, !I.value.has(a));
|
|
521
|
+
return;
|
|
522
|
+
}
|
|
523
|
+
p("rowClick", e), l.singleSelect && p("update:selectedKeys", [a]);
|
|
524
|
+
}
|
|
525
|
+
function Ya(e, a, t) {
|
|
526
|
+
e.target !== e.currentTarget || e.key !== "Enter" && e.key !== " " || (e.preventDefault(), Nt(a, t));
|
|
527
|
+
}
|
|
528
|
+
function Za(e) {
|
|
529
|
+
return e.hideable === !1 || G.value.length === 1 && G.value[0] === e;
|
|
530
|
+
}
|
|
531
|
+
function qa(e, a) {
|
|
532
|
+
Be(a ? F.value.filter((t) => t !== e) : [.../* @__PURE__ */ new Set([...F.value, e])]);
|
|
533
|
+
}
|
|
534
|
+
const qe = i(() => C.value.length + Ha.value + 1);
|
|
535
|
+
return ra({
|
|
536
|
+
expandRow: fa,
|
|
537
|
+
collapseRow: ga,
|
|
538
|
+
expandAllRows: ha,
|
|
539
|
+
collapseAllRows: ya,
|
|
540
|
+
/** Keys of the rows shown now (this page, after filtering and sorting). */
|
|
541
|
+
visibleRowKeys: Ae,
|
|
542
|
+
/** Keys of the expanded rows. */
|
|
543
|
+
expandedRowKeys: H,
|
|
544
|
+
setExpandedKeys: wa,
|
|
545
|
+
expandAllGroups: ba,
|
|
546
|
+
collapseAllGroups: xa,
|
|
547
|
+
moveRowUp: kt,
|
|
548
|
+
moveRowDown: _t,
|
|
549
|
+
resetColumns: Ne
|
|
550
|
+
}), al(ol, null), (e, a) => (o(), s("div", {
|
|
551
|
+
ref_key: "gridRoot",
|
|
552
|
+
ref: At,
|
|
553
|
+
class: h(["flex min-w-0 flex-col text-[length:var(--ui-font-size)]", D.value && "min-h-0 flex-1"]),
|
|
554
|
+
"data-fill": D.value || void 0,
|
|
555
|
+
"data-ui-natural-height": f(me) ? "" : void 0,
|
|
556
|
+
"data-ui-data-view": Ce.value ? "list" : "table",
|
|
557
|
+
"data-ui-data-grid": "",
|
|
558
|
+
"data-syno-pkg-land-ui": ""
|
|
559
|
+
}, [
|
|
560
|
+
g(xl, {
|
|
561
|
+
target: At.value,
|
|
562
|
+
resolve: Ua
|
|
563
|
+
}, null, 8, ["target"]),
|
|
564
|
+
Ce.value ? (o(), s(k, { key: 0 }, [
|
|
565
|
+
Pt.value ? (o(), s("div", {
|
|
566
|
+
key: 0,
|
|
567
|
+
"data-grid-list-bar": "",
|
|
568
|
+
class: h([!D.value && "ui-grid-list-bar-sticky", "flex min-h-[var(--ui-list-row-height)] shrink-0 items-center gap-2 border-b border-[var(--ui-border-subtle)] pl-3 pr-1"])
|
|
569
|
+
}, [
|
|
570
|
+
c("span", Hl, y(Fa.value), 1),
|
|
571
|
+
g(P, {
|
|
572
|
+
"data-grid-view-options": "",
|
|
573
|
+
label: d.value.viewOptions,
|
|
574
|
+
"aria-haspopup": "dialog",
|
|
575
|
+
onClick: a[0] || (a[0] = (t) => Ye.value = !0)
|
|
576
|
+
}, {
|
|
577
|
+
default: w(() => [
|
|
578
|
+
g(f(nl), { class: "size-4" })
|
|
579
|
+
]),
|
|
580
|
+
_: 1
|
|
581
|
+
}, 8, ["label"])
|
|
582
|
+
], 2)) : v("", !0),
|
|
583
|
+
g(jt, {
|
|
584
|
+
class: h(D.value && "min-h-0 flex-1"),
|
|
585
|
+
loading: l.loading,
|
|
586
|
+
text: l.loadingText
|
|
587
|
+
}, {
|
|
588
|
+
default: w(() => [
|
|
589
|
+
c("div", {
|
|
590
|
+
class: h(D.value ? "h-full overflow-y-auto overscroll-contain" : Xe.value ? "overflow-y-auto overscroll-contain" : "overflow-x-clip"),
|
|
591
|
+
style: R({ maxHeight: Xe.value })
|
|
592
|
+
}, [
|
|
593
|
+
M.value.length === 0 ? (o(), s("div", Ml, [
|
|
594
|
+
l.loading ? v("", !0) : _(e.$slots, "empty", {}, () => [
|
|
595
|
+
K(y(fe.value && x.value.length ? d.value.noMatch : d.value.empty), 1)
|
|
596
|
+
], void 0, 0)
|
|
597
|
+
])) : (o(), s("ul", {
|
|
598
|
+
key: 1,
|
|
599
|
+
ref_key: "listEl",
|
|
600
|
+
ref: Wt,
|
|
601
|
+
"data-grid-list": "",
|
|
602
|
+
role: "list",
|
|
603
|
+
class: "m-0 list-none p-0"
|
|
604
|
+
}, [
|
|
605
|
+
(o(!0), s(k, null, A(M.value, (t) => (o(), s(k, {
|
|
606
|
+
key: t.id
|
|
607
|
+
}, [
|
|
608
|
+
t.kind === "group" ? (o(), s("li", {
|
|
609
|
+
key: 0,
|
|
610
|
+
"data-group-row": t.groupId,
|
|
611
|
+
class: "border-b border-[var(--ui-border-subtle)] bg-[var(--ui-surface-subtle)]"
|
|
612
|
+
}, [
|
|
613
|
+
c("button", {
|
|
614
|
+
type: "button",
|
|
615
|
+
"data-group-toggle": "",
|
|
616
|
+
"aria-expanded": t.expanded,
|
|
617
|
+
class: "flex min-h-[var(--ui-list-row-height)] w-full items-center gap-2 border-0 bg-transparent px-[var(--ui-inset-x)] text-left text-[length:var(--ui-font-size-sm)] font-semibold text-[var(--ui-text-secondary)] outline-none focus-visible:shadow-[var(--ui-shadow-focus-inset)]",
|
|
618
|
+
onClick: (r) => ye(t.groupId)
|
|
619
|
+
}, [
|
|
620
|
+
t.expanded ? (o(), m(f(Qe), {
|
|
621
|
+
key: 0,
|
|
622
|
+
class: "size-4 shrink-0",
|
|
623
|
+
"aria-hidden": "true"
|
|
624
|
+
})) : (o(), m(f(ce), {
|
|
625
|
+
key: 1,
|
|
626
|
+
class: "size-4 shrink-0",
|
|
627
|
+
"aria-hidden": "true"
|
|
628
|
+
})),
|
|
629
|
+
c("span", {
|
|
630
|
+
class: h(e.$slots["group-title"] ? "min-w-0 flex-1 whitespace-normal py-1 [overflow-wrap:anywhere]" : "min-w-0 truncate"),
|
|
631
|
+
"data-group-title": ""
|
|
632
|
+
}, [
|
|
633
|
+
_(e.$slots, "group-title", {
|
|
634
|
+
group: t.groupId,
|
|
635
|
+
label: t.label,
|
|
636
|
+
rows: t.rows,
|
|
637
|
+
category: { key: t.groupId, keys: gt(t.rows).keys },
|
|
638
|
+
expanded: t.expanded,
|
|
639
|
+
toggle: () => ye(t.groupId)
|
|
640
|
+
}, () => [
|
|
641
|
+
K(y(t.label), 1)
|
|
642
|
+
])
|
|
643
|
+
], 2)
|
|
644
|
+
], 8, Pl)
|
|
645
|
+
], 8, Wl)) : t.kind === "detail" ? (o(), s("li", {
|
|
646
|
+
key: 1,
|
|
647
|
+
"data-expand-row": u(t.row, t.index),
|
|
648
|
+
class: "min-w-0 border-b border-[var(--ui-border-subtle)] [overflow-wrap:anywhere]",
|
|
649
|
+
style: R({ "--ui-grid-detail-indent": `${aa}px` })
|
|
650
|
+
}, [
|
|
651
|
+
_(e.$slots, yt.value, {
|
|
652
|
+
row: t.row,
|
|
653
|
+
index: t.index,
|
|
654
|
+
indent: aa
|
|
655
|
+
})
|
|
656
|
+
], 12, Bl)) : (o(), s("li", {
|
|
657
|
+
key: 2,
|
|
658
|
+
"data-row-key": u(t.row, t.index),
|
|
659
|
+
"data-ui-row-new": f(It).has(u(t.row, t.index)) ? "" : void 0,
|
|
660
|
+
"data-selected": I.value.has(u(t.row, t.index)) || void 0,
|
|
661
|
+
tabindex: Mt.value ? 0 : void 0,
|
|
662
|
+
class: h([
|
|
663
|
+
"flex min-h-[var(--ui-list-row-height)] min-w-0 items-center gap-3 border-b border-[var(--ui-border-subtle)] px-[var(--ui-inset-x)] py-2 outline-none focus-visible:shadow-[var(--ui-shadow-focus-inset)]",
|
|
664
|
+
Se.value && "select-none [-webkit-touch-callout:none]",
|
|
665
|
+
Mt.value && "cursor-pointer active:bg-[var(--ui-pressed)]",
|
|
666
|
+
I.value.has(u(t.row, t.index)) && "bg-[var(--ui-surface-selected)]"
|
|
667
|
+
]),
|
|
668
|
+
onPointerdown: Xa,
|
|
669
|
+
onClick: (r) => Nt(t.row, u(t.row, t.index)),
|
|
670
|
+
onKeydown: (r) => Ya(r, t.row, u(t.row, t.index)),
|
|
671
|
+
onContextmenu: a[2] || (a[2] = (r) => Se.value && r.preventDefault())
|
|
672
|
+
}, [
|
|
673
|
+
U.value ? (o(), m(P, {
|
|
674
|
+
key: 0,
|
|
675
|
+
"data-expand-toggle": "",
|
|
676
|
+
class: "-ml-2",
|
|
677
|
+
"aria-expanded": t.expanded,
|
|
678
|
+
label: t.expanded ? d.value.collapseRow(u(t.row, t.index)) : d.value.expandRow(u(t.row, t.index)),
|
|
679
|
+
onClick: S((r) => we(u(t.row, t.index)), ["stop"])
|
|
680
|
+
}, {
|
|
681
|
+
default: w(() => [
|
|
682
|
+
g(f(ce), {
|
|
683
|
+
class: h(["size-4 transition-transform", t.expanded && "rotate-90"]),
|
|
684
|
+
"aria-hidden": "true"
|
|
685
|
+
}, null, 8, ["class"])
|
|
686
|
+
]),
|
|
687
|
+
_: 2
|
|
688
|
+
}, 1032, ["aria-expanded", "label", "onClick"])) : v("", !0),
|
|
689
|
+
Ke.value ? (o(), s("span", {
|
|
690
|
+
key: 1,
|
|
691
|
+
"data-grid-list-check": "",
|
|
692
|
+
class: "-my-2 -ml-[var(--ui-inset-x)] -mr-1 flex w-[max(var(--ui-hit-min),36px)] shrink-0 items-center justify-center self-stretch",
|
|
693
|
+
onClick: a[1] || (a[1] = S(() => {
|
|
694
|
+
}, ["stop"]))
|
|
695
|
+
}, [
|
|
696
|
+
g(Xt, {
|
|
697
|
+
"row-key": u(t.row, t.index),
|
|
698
|
+
checked: I.value.has(u(t.row, t.index)),
|
|
699
|
+
disabled: !q(t.row),
|
|
700
|
+
label: d.value.selectRow(u(t.row, t.index), t.row),
|
|
701
|
+
onToggle: re
|
|
702
|
+
}, null, 8, ["row-key", "checked", "disabled", "label"])
|
|
703
|
+
])) : v("", !0),
|
|
704
|
+
c("div", Nl, [
|
|
705
|
+
W.value.title ? (o(), s("div", {
|
|
706
|
+
key: 0,
|
|
707
|
+
"data-grid-list-title": "",
|
|
708
|
+
"data-column": W.value.title.key,
|
|
709
|
+
class: "min-w-0 truncate text-[length:var(--ui-font-size)] text-[var(--ui-text)]"
|
|
710
|
+
}, [
|
|
711
|
+
_(e.$slots, `cell-${W.value.title.key}`, de({ ref_for: !0 }, ue(t, W.value.title)), () => [
|
|
712
|
+
K(y(t.row[W.value.title.key]), 1)
|
|
713
|
+
])
|
|
714
|
+
], 8, Vl)) : v("", !0),
|
|
715
|
+
W.value.subtitle.length ? (o(), s("div", Fl, [
|
|
716
|
+
(o(!0), s(k, null, A(W.value.subtitle, (r, n) => (o(), s("span", {
|
|
717
|
+
key: r.key,
|
|
718
|
+
"data-column": r.key,
|
|
719
|
+
class: h(["min-w-0 truncate", f(Zt)(r) && "tabular-nums", n === 0 ? "shrink" : "shrink-[2]"])
|
|
720
|
+
}, [
|
|
721
|
+
_(e.$slots, `cell-${r.key}`, de({ ref_for: !0 }, ue(t, r)), () => [
|
|
722
|
+
K(y(t.row[r.key]), 1)
|
|
723
|
+
])
|
|
724
|
+
], 10, Gl))), 128))
|
|
725
|
+
])) : v("", !0)
|
|
726
|
+
]),
|
|
727
|
+
(o(!0), s(k, null, A(W.value.trailing, (r) => (o(), s("div", {
|
|
728
|
+
key: r.key,
|
|
729
|
+
"data-grid-list-trailing": "",
|
|
730
|
+
"data-column": r.key,
|
|
731
|
+
class: h(["flex min-w-0 max-w-[45%] shrink-0 items-center justify-end gap-[max(4px,var(--ui-tap-gap,0px))]", r.type === "actions" && "-mr-2"]),
|
|
732
|
+
onClick: (n) => r.type === "actions" && n.stopPropagation()
|
|
733
|
+
}, [
|
|
734
|
+
_(e.$slots, `cell-${r.key}`, de({ ref_for: !0 }, ue(t, r)), () => [
|
|
735
|
+
K(y(t.row[r.key]), 1)
|
|
736
|
+
])
|
|
737
|
+
], 10, jl))), 128))
|
|
738
|
+
], 42, Ul))
|
|
739
|
+
], 64))), 128))
|
|
740
|
+
], 512))
|
|
741
|
+
], 6)
|
|
742
|
+
]),
|
|
743
|
+
_: 3
|
|
744
|
+
}, 8, ["class", "loading", "text"]),
|
|
745
|
+
Ke.value ? (o(), s("div", {
|
|
746
|
+
key: 1,
|
|
747
|
+
"data-grid-selection-bar": "",
|
|
748
|
+
class: h([!D.value && "ui-grid-selection-bar-sticky", "flex min-h-[var(--ui-chrome-height)] shrink-0 items-center gap-2 border-t border-[var(--ui-border)] bg-[var(--ui-surface)] pl-4 pr-1"])
|
|
749
|
+
}, [
|
|
750
|
+
g(tt, {
|
|
751
|
+
"model-value": ge.value,
|
|
752
|
+
indeterminate: vt.value,
|
|
753
|
+
disabled: !J.value.length,
|
|
754
|
+
"aria-label": d.value.selectAll,
|
|
755
|
+
"onUpdate:modelValue": pt
|
|
756
|
+
}, null, 8, ["model-value", "indeterminate", "disabled", "aria-label"]),
|
|
757
|
+
c("span", Xl, y(d.value.selected(l.selectedKeys.length)), 1),
|
|
758
|
+
_(e.$slots, "selection-actions", {
|
|
759
|
+
keys: l.selectedKeys,
|
|
760
|
+
rows: Ga.value,
|
|
761
|
+
clear: Ut
|
|
762
|
+
}),
|
|
763
|
+
g(Gt, {
|
|
764
|
+
variant: "ghost",
|
|
765
|
+
"data-grid-selection-cancel": "",
|
|
766
|
+
onClick: Ut
|
|
767
|
+
}, {
|
|
768
|
+
default: w(() => [
|
|
769
|
+
K(y(d.value.cancelSelection), 1)
|
|
770
|
+
]),
|
|
771
|
+
_: 1
|
|
772
|
+
})
|
|
773
|
+
], 2)) : dt.value ? (o(), s("div", {
|
|
774
|
+
key: 2,
|
|
775
|
+
"data-grid-footer": "",
|
|
776
|
+
class: h([D.value && "ui-grid-footer-pinned", "flex shrink-0 flex-col gap-1 border-t border-[var(--ui-border-subtle)] px-3 py-1 text-[var(--ui-text)]"])
|
|
777
|
+
}, [
|
|
778
|
+
e.$slots.footer ? (o(), s("div", Yl, [
|
|
779
|
+
_(e.$slots, "footer", {
|
|
780
|
+
total: L.value,
|
|
781
|
+
page: $.value,
|
|
782
|
+
pageCount: O.value
|
|
783
|
+
})
|
|
784
|
+
])) : v("", !0),
|
|
785
|
+
O.value > 1 || Z.value.length ? (o(), m(fl, {
|
|
786
|
+
key: 1,
|
|
787
|
+
"model-value": $.value,
|
|
788
|
+
total: L.value,
|
|
789
|
+
"page-size": B.value,
|
|
790
|
+
"items-per-page": Z.value.length ? Z.value.map((t) => ({ label: t.label, value: Number(t.value) })) : !1,
|
|
791
|
+
"page-shift-unit": 1,
|
|
792
|
+
mode: "phone",
|
|
793
|
+
refresh: !1,
|
|
794
|
+
"onUpdate:modelValue": Oe,
|
|
795
|
+
"onUpdate:pageSize": a[4] || (a[4] = (t) => ut(String(t)))
|
|
796
|
+
}, {
|
|
797
|
+
total: w(() => [
|
|
798
|
+
K(y(Bt.value), 1)
|
|
799
|
+
]),
|
|
800
|
+
"right-wrapper": w(() => [
|
|
801
|
+
l.refreshable ? (o(), m(P, {
|
|
802
|
+
key: 0,
|
|
803
|
+
"data-refresh": "",
|
|
804
|
+
label: d.value.refresh,
|
|
805
|
+
disabled: l.refreshing,
|
|
806
|
+
onClick: a[3] || (a[3] = (t) => p("refresh"))
|
|
807
|
+
}, {
|
|
808
|
+
default: w(() => [
|
|
809
|
+
g(f(et), {
|
|
810
|
+
class: h(["size-4", l.refreshing && "animate-spin"])
|
|
811
|
+
}, null, 8, ["class"])
|
|
812
|
+
]),
|
|
813
|
+
_: 1
|
|
814
|
+
}, 8, ["label", "disabled"])) : v("", !0)
|
|
815
|
+
]),
|
|
816
|
+
_: 1
|
|
817
|
+
}, 8, ["model-value", "total", "page-size", "items-per-page"])) : (o(), s("div", Zl, [
|
|
818
|
+
c("span", ql, y(Bt.value), 1),
|
|
819
|
+
l.refreshable ? (o(), m(P, {
|
|
820
|
+
key: 0,
|
|
821
|
+
"data-refresh": "",
|
|
822
|
+
label: d.value.refresh,
|
|
823
|
+
disabled: l.refreshing,
|
|
824
|
+
onClick: a[5] || (a[5] = (t) => p("refresh"))
|
|
825
|
+
}, {
|
|
826
|
+
default: w(() => [
|
|
827
|
+
g(f(et), {
|
|
828
|
+
class: h(["size-4", l.refreshing && "animate-spin"])
|
|
829
|
+
}, null, 8, ["class"])
|
|
830
|
+
]),
|
|
831
|
+
_: 1
|
|
832
|
+
}, 8, ["label", "disabled"])) : v("", !0)
|
|
833
|
+
]))
|
|
834
|
+
], 2)) : v("", !0),
|
|
835
|
+
Pt.value ? (o(), m(pl, {
|
|
836
|
+
key: 3,
|
|
837
|
+
open: Ye.value,
|
|
838
|
+
"onUpdate:open": a[6] || (a[6] = (t) => Ye.value = t),
|
|
839
|
+
title: d.value.viewOptions
|
|
840
|
+
}, {
|
|
841
|
+
default: w(() => [
|
|
842
|
+
c("div", Jl, [
|
|
843
|
+
Ze.value.length ? (o(), s("div", {
|
|
844
|
+
key: 0,
|
|
845
|
+
role: "group",
|
|
846
|
+
"aria-label": d.value.sortBy,
|
|
847
|
+
"data-grid-sort-options": ""
|
|
848
|
+
}, [
|
|
849
|
+
c("p", er, y(d.value.sortBy), 1),
|
|
850
|
+
(o(!0), s(k, null, A(Ze.value, (t) => (o(), s("button", {
|
|
851
|
+
key: t.key,
|
|
852
|
+
type: "button",
|
|
853
|
+
"data-sort-option": t.key,
|
|
854
|
+
"aria-pressed": z.value?.key === t.key,
|
|
855
|
+
class: "flex min-h-[max(var(--ui-menu-row-height),var(--ui-hit-min))] w-full items-center gap-2 rounded-[var(--ui-radius-inner)] border-0 bg-transparent px-2 text-left text-[length:var(--ui-font-size)] text-[var(--ui-text)] outline-none focus-visible:shadow-[var(--ui-shadow-focus)]",
|
|
856
|
+
onClick: (r) => pe(t)
|
|
857
|
+
}, [
|
|
858
|
+
c("span", ar, y(t.label), 1),
|
|
859
|
+
z.value?.key === t.key ? (o(), s(k, { key: 0 }, [
|
|
860
|
+
c("span", lr, y(z.value.direction === "asc" ? d.value.ascending : d.value.descending), 1),
|
|
861
|
+
z.value.direction === "asc" ? (o(), m(f(sl), {
|
|
862
|
+
key: 0,
|
|
863
|
+
class: "size-4 shrink-0 text-[var(--ui-primary)]",
|
|
864
|
+
"aria-hidden": "true"
|
|
865
|
+
})) : (o(), m(f(il), {
|
|
866
|
+
key: 1,
|
|
867
|
+
class: "size-4 shrink-0 text-[var(--ui-primary)]",
|
|
868
|
+
"aria-hidden": "true"
|
|
869
|
+
}))
|
|
870
|
+
], 64)) : v("", !0)
|
|
871
|
+
], 8, tr))), 128))
|
|
872
|
+
], 8, Ql)) : v("", !0),
|
|
873
|
+
l.columnChooser ? (o(), s("div", {
|
|
874
|
+
key: 1,
|
|
875
|
+
role: "group",
|
|
876
|
+
"aria-label": d.value.columns,
|
|
877
|
+
"data-grid-column-options": ""
|
|
878
|
+
}, [
|
|
879
|
+
c("p", or, y(d.value.columns), 1),
|
|
880
|
+
(o(!0), s(k, null, A(V.value, (t) => (o(), s("label", {
|
|
881
|
+
key: t.key,
|
|
882
|
+
"data-column-option": t.key,
|
|
883
|
+
class: "flex min-h-[max(var(--ui-menu-row-height),calc(var(--ui-hit-min)+4px))] items-center gap-3 px-2 text-[length:var(--ui-font-size)] text-[var(--ui-text)]"
|
|
884
|
+
}, [
|
|
885
|
+
g(tt, {
|
|
886
|
+
"model-value": G.value.includes(t),
|
|
887
|
+
disabled: Za(t),
|
|
888
|
+
"onUpdate:modelValue": (r) => qa(t.key, r)
|
|
889
|
+
}, null, 8, ["model-value", "disabled", "onUpdate:modelValue"]),
|
|
890
|
+
c("span", sr, y(t.label), 1)
|
|
891
|
+
], 8, nr))), 128)),
|
|
892
|
+
g(Gt, {
|
|
893
|
+
variant: "ghost",
|
|
894
|
+
class: "mt-1",
|
|
895
|
+
onClick: Ne
|
|
896
|
+
}, {
|
|
897
|
+
default: w(() => [
|
|
898
|
+
K(y(d.value.resetColumns), 1)
|
|
899
|
+
]),
|
|
900
|
+
_: 1
|
|
901
|
+
})
|
|
902
|
+
], 8, rr)) : v("", !0)
|
|
903
|
+
])
|
|
904
|
+
]),
|
|
905
|
+
_: 1
|
|
906
|
+
}, 8, ["open", "title"])) : v("", !0)
|
|
907
|
+
], 64)) : (o(), m(jt, {
|
|
908
|
+
key: 1,
|
|
909
|
+
class: h(D.value && "min-h-0 flex-1"),
|
|
910
|
+
loading: l.loading,
|
|
911
|
+
text: l.loadingText
|
|
912
|
+
}, {
|
|
913
|
+
default: w(() => [
|
|
914
|
+
g(wl, {
|
|
915
|
+
ref_key: "scroller",
|
|
916
|
+
ref: Dt,
|
|
917
|
+
class: h(D.value && "h-full"),
|
|
918
|
+
"viewport-class": D.value ? "h-full overflow-auto" : "overflow-auto",
|
|
919
|
+
"viewport-style": { maxHeight: Xe.value }
|
|
920
|
+
}, {
|
|
921
|
+
default: w(() => [
|
|
922
|
+
c("table", {
|
|
923
|
+
class: "border-separate border-spacing-0",
|
|
924
|
+
style: R({ tableLayout: "fixed", width: `${Ma.value}px`, minWidth: "100%" })
|
|
925
|
+
}, [
|
|
926
|
+
c("colgroup", null, [
|
|
927
|
+
U.value ? (o(), s("col", {
|
|
928
|
+
key: 0,
|
|
929
|
+
style: R({ width: `${lt}px` })
|
|
930
|
+
}, null, 4)) : v("", !0),
|
|
931
|
+
l.selectable ? (o(), s("col", {
|
|
932
|
+
key: 1,
|
|
933
|
+
style: R({ width: `${at}px` })
|
|
934
|
+
}, null, 4)) : v("", !0),
|
|
935
|
+
(o(!0), s(k, null, A(C.value, (t) => (o(), s("col", {
|
|
936
|
+
key: t.key,
|
|
937
|
+
style: R({ width: `${je.value[t.key]}px` })
|
|
938
|
+
}, null, 4))), 128)),
|
|
939
|
+
ne.value ? (o(), s("col", {
|
|
940
|
+
key: 2,
|
|
941
|
+
style: R({ width: `${ea}px` })
|
|
942
|
+
}, null, 4)) : v("", !0),
|
|
943
|
+
a[14] || (a[14] = c("col", { "data-grid-filler": "" }, null, -1)),
|
|
944
|
+
l.columnChooser ? (o(), s("col", {
|
|
945
|
+
key: 3,
|
|
946
|
+
style: R({ width: `${rt}px` })
|
|
947
|
+
}, null, 4)) : v("", !0)
|
|
948
|
+
]),
|
|
949
|
+
c("thead", {
|
|
950
|
+
class: h(["bg-[var(--ui-surface)] text-[var(--ui-text-secondary)]", l.stickyHeader && "sticky top-0 z-10"])
|
|
951
|
+
}, [
|
|
952
|
+
c("tr", null, [
|
|
953
|
+
U.value ? (o(), s("th", ir)) : v("", !0),
|
|
954
|
+
l.selectable ? (o(), s("th", ur, [
|
|
955
|
+
c("div", dr, [
|
|
956
|
+
g(tt, {
|
|
957
|
+
"model-value": ge.value,
|
|
958
|
+
indeterminate: vt.value,
|
|
959
|
+
disabled: !J.value.length,
|
|
960
|
+
"aria-label": d.value.selectAll,
|
|
961
|
+
"onUpdate:modelValue": pt
|
|
962
|
+
}, null, 8, ["model-value", "indeterminate", "disabled", "aria-label"])
|
|
963
|
+
])
|
|
964
|
+
])) : v("", !0),
|
|
965
|
+
(o(!0), s(k, null, A(C.value, (t, r) => (o(), s("th", {
|
|
966
|
+
key: t.key,
|
|
967
|
+
"data-column": t.key,
|
|
968
|
+
"data-column-type": t.type ?? "text",
|
|
969
|
+
"aria-sort": da(t),
|
|
970
|
+
tabindex: t.sortable || l.columnReorder ? 0 : void 0,
|
|
971
|
+
draggable: l.columnReorder || void 0,
|
|
972
|
+
"aria-keyshortcuts": l.columnReorder ? "Alt+ArrowLeft Alt+ArrowRight" : void 0,
|
|
973
|
+
style: R(l.columnChooser && t === C.value[C.value.length - 1] ? { paddingInlineEnd: `${rt}px` } : void 0),
|
|
974
|
+
class: h(["relative h-[var(--ui-grid-header-height)] select-none overflow-hidden border-b border-[var(--ui-border-subtle)] px-2 font-normal text-ellipsis whitespace-nowrap outline-none focus-visible:shadow-[var(--ui-shadow-focus-inset)]", [
|
|
975
|
+
f(Lt)(t),
|
|
976
|
+
Wa(t, r) && "border-r",
|
|
977
|
+
t.sortable && "cursor-pointer hover:bg-[var(--ui-surface-hover)]",
|
|
978
|
+
Q.value === t.key && "opacity-40",
|
|
979
|
+
Ue.value === t.key && "shadow-[inset_2px_0_0_0_var(--ui-primary)]"
|
|
980
|
+
]]),
|
|
981
|
+
onClick: (n) => pe(t),
|
|
982
|
+
onKeydown: [
|
|
983
|
+
Vt(S((n) => pe(t), ["prevent"]), ["enter"]),
|
|
984
|
+
Vt(S((n) => pe(t), ["prevent"]), ["space"]),
|
|
985
|
+
(n) => Ea(n, t)
|
|
986
|
+
],
|
|
987
|
+
onDragstart: (n) => Ra(n, t),
|
|
988
|
+
onDragover: (n) => $a(n, t),
|
|
989
|
+
onDrop: S((n) => Ta(t), ["prevent"]),
|
|
990
|
+
onDragend: zt
|
|
991
|
+
}, [
|
|
992
|
+
c("div", {
|
|
993
|
+
class: h(["inline-flex max-w-full items-center gap-1", t.align === "right" && "flex-row-reverse"])
|
|
994
|
+
}, [
|
|
995
|
+
c("span", vr, [
|
|
996
|
+
_(e.$slots, `header-${t.key}`, { column: t }, () => [
|
|
997
|
+
K(y(t.label), 1)
|
|
998
|
+
])
|
|
999
|
+
]),
|
|
1000
|
+
t.sortable && z.value?.key === t.key ? (o(), s(k, { key: 0 }, [
|
|
1001
|
+
z.value.direction === "asc" ? (o(), m(f(ul), {
|
|
1002
|
+
key: 0,
|
|
1003
|
+
class: "size-3 shrink-0 text-[var(--ui-text)]",
|
|
1004
|
+
"aria-hidden": "true"
|
|
1005
|
+
})) : (o(), m(f(Qe), {
|
|
1006
|
+
key: 1,
|
|
1007
|
+
class: "size-3 shrink-0 text-[var(--ui-text)]",
|
|
1008
|
+
"aria-hidden": "true"
|
|
1009
|
+
}))
|
|
1010
|
+
], 64)) : v("", !0)
|
|
1011
|
+
], 2),
|
|
1012
|
+
$t(t) ? (o(), s("span", {
|
|
1013
|
+
key: 0,
|
|
1014
|
+
"data-resize-handle": "",
|
|
1015
|
+
role: "separator",
|
|
1016
|
+
"aria-orientation": "vertical",
|
|
1017
|
+
tabindex: "0",
|
|
1018
|
+
"aria-label": d.value.resizeColumn(t.label),
|
|
1019
|
+
class: "absolute top-0 right-0 z-10 h-full w-2 cursor-col-resize touch-none outline-none hover:bg-[var(--ui-primary-soft)] focus-visible:bg-[var(--ui-primary-soft)]",
|
|
1020
|
+
onPointerdown: S((n) => Pa(n, t), ["stop", "prevent"]),
|
|
1021
|
+
onClick: a[7] || (a[7] = S(() => {
|
|
1022
|
+
}, ["stop"])),
|
|
1023
|
+
onKeydown: S((n) => Ba(n, t), ["stop"])
|
|
1024
|
+
}, null, 40, pr)) : v("", !0)
|
|
1025
|
+
], 46, cr))), 128)),
|
|
1026
|
+
ne.value ? (o(), s("th", fr)) : v("", !0),
|
|
1027
|
+
a[15] || (a[15] = c("th", {
|
|
1028
|
+
"data-grid-filler": "",
|
|
1029
|
+
"aria-hidden": "true",
|
|
1030
|
+
class: "h-[var(--ui-grid-header-height)] border-b border-[var(--ui-border-subtle)] p-0"
|
|
1031
|
+
}, null, -1)),
|
|
1032
|
+
l.columnChooser ? (o(), s("th", gr, [
|
|
1033
|
+
g(bl, {
|
|
1034
|
+
items: Oa.value,
|
|
1035
|
+
align: "end",
|
|
1036
|
+
"checked-keys": C.value.map((t) => t.key),
|
|
1037
|
+
onToggle: Aa,
|
|
1038
|
+
onSelect: La
|
|
1039
|
+
}, {
|
|
1040
|
+
trigger: w(() => [
|
|
1041
|
+
g(P, {
|
|
1042
|
+
"data-column-chooser": "",
|
|
1043
|
+
label: d.value.columns,
|
|
1044
|
+
size: "sm"
|
|
1045
|
+
}, {
|
|
1046
|
+
default: w(() => [
|
|
1047
|
+
g(f(dl), { class: "size-3.5" })
|
|
1048
|
+
]),
|
|
1049
|
+
_: 1
|
|
1050
|
+
}, 8, ["label"])
|
|
1051
|
+
]),
|
|
1052
|
+
_: 1
|
|
1053
|
+
}, 8, ["items", "checked-keys"])
|
|
1054
|
+
])) : v("", !0)
|
|
1055
|
+
])
|
|
1056
|
+
], 2),
|
|
1057
|
+
c("tbody", null, [
|
|
1058
|
+
M.value.length === 0 ? (o(), s("tr", hr, [
|
|
1059
|
+
c("td", {
|
|
1060
|
+
colspan: qe.value,
|
|
1061
|
+
class: "h-28 p-0 text-center text-[var(--ui-text-secondary)]"
|
|
1062
|
+
}, [
|
|
1063
|
+
c("div", {
|
|
1064
|
+
class: "sticky left-0 box-border px-2",
|
|
1065
|
+
style: R({ width: `${f(Ve)}px` })
|
|
1066
|
+
}, [
|
|
1067
|
+
l.loading ? v("", !0) : _(e.$slots, "empty", {}, () => [
|
|
1068
|
+
K(y(fe.value && x.value.length ? d.value.noMatch : d.value.empty), 1)
|
|
1069
|
+
], void 0, 0)
|
|
1070
|
+
], 4)
|
|
1071
|
+
], 8, yr)
|
|
1072
|
+
])) : v("", !0),
|
|
1073
|
+
(o(!0), s(k, null, A(M.value, (t) => (o(), s(k, {
|
|
1074
|
+
key: t.id
|
|
1075
|
+
}, [
|
|
1076
|
+
t.kind === "group" ? (o(), s("tr", {
|
|
1077
|
+
key: 0,
|
|
1078
|
+
"data-group-row": t.groupId,
|
|
1079
|
+
class: "border-b border-[var(--ui-border-subtle)] bg-[var(--ui-surface-subtle)]"
|
|
1080
|
+
}, [
|
|
1081
|
+
c("td", {
|
|
1082
|
+
colspan: qe.value,
|
|
1083
|
+
class: "h-[var(--ui-grid-header-height)] px-2"
|
|
1084
|
+
}, [
|
|
1085
|
+
c("button", {
|
|
1086
|
+
type: "button",
|
|
1087
|
+
"data-group-toggle": "",
|
|
1088
|
+
"aria-expanded": t.expanded,
|
|
1089
|
+
class: "inline-flex max-w-full items-center gap-1 rounded-[var(--ui-radius-inner)] border-0 bg-transparent px-1 text-left text-[length:var(--ui-font-size-sm)] font-semibold text-[var(--ui-text-secondary)] outline-none hover:text-[var(--ui-text)] focus-visible:shadow-[var(--ui-shadow-focus-inset)]",
|
|
1090
|
+
onClick: (r) => ye(t.groupId)
|
|
1091
|
+
}, [
|
|
1092
|
+
t.expanded ? (o(), m(f(Qe), {
|
|
1093
|
+
key: 0,
|
|
1094
|
+
class: "size-3.5 shrink-0",
|
|
1095
|
+
"aria-hidden": "true"
|
|
1096
|
+
})) : (o(), m(f(ce), {
|
|
1097
|
+
key: 1,
|
|
1098
|
+
class: "size-3.5 shrink-0",
|
|
1099
|
+
"aria-hidden": "true"
|
|
1100
|
+
})),
|
|
1101
|
+
c("span", kr, [
|
|
1102
|
+
_(e.$slots, "group-title", {
|
|
1103
|
+
group: t.groupId,
|
|
1104
|
+
label: t.label,
|
|
1105
|
+
rows: t.rows,
|
|
1106
|
+
category: { key: t.groupId, keys: gt(t.rows).keys },
|
|
1107
|
+
expanded: t.expanded,
|
|
1108
|
+
toggle: () => ye(t.groupId)
|
|
1109
|
+
}, () => [
|
|
1110
|
+
K(y(t.label), 1)
|
|
1111
|
+
])
|
|
1112
|
+
])
|
|
1113
|
+
], 8, xr)
|
|
1114
|
+
], 8, br)
|
|
1115
|
+
], 8, wr)) : t.kind === "detail" ? (o(), s("tr", {
|
|
1116
|
+
key: 1,
|
|
1117
|
+
"data-expand-row": u(t.row, t.index),
|
|
1118
|
+
class: "border-b border-[var(--ui-border-subtle)]"
|
|
1119
|
+
}, [
|
|
1120
|
+
c("td", {
|
|
1121
|
+
colspan: qe.value,
|
|
1122
|
+
class: "p-0",
|
|
1123
|
+
style: R({ "--ui-grid-detail-indent": `${wt.value}px` })
|
|
1124
|
+
}, [
|
|
1125
|
+
c("div", Cr, [
|
|
1126
|
+
_(e.$slots, yt.value, {
|
|
1127
|
+
row: t.row,
|
|
1128
|
+
index: t.index,
|
|
1129
|
+
indent: wt.value
|
|
1130
|
+
})
|
|
1131
|
+
])
|
|
1132
|
+
], 12, mr)
|
|
1133
|
+
], 8, _r)) : (o(), s("tr", {
|
|
1134
|
+
key: 2,
|
|
1135
|
+
"data-row-key": u(t.row, t.index),
|
|
1136
|
+
"data-ui-row-new": f(It).has(u(t.row, t.index)) ? "" : void 0,
|
|
1137
|
+
draggable: bt.value || void 0,
|
|
1138
|
+
tabindex: Ht.value === null ? void 0 : Ht.value === u(t.row, t.index) ? 0 : -1,
|
|
1139
|
+
"aria-selected": l.selectable || l.singleSelect ? l.selectedKeys.includes(u(t.row, t.index)) : void 0,
|
|
1140
|
+
class: h([
|
|
1141
|
+
"border-b border-[var(--ui-border-subtle)] hover:bg-[var(--ui-surface-hover)]",
|
|
1142
|
+
l.selectedKeys.includes(u(t.row, t.index)) && "bg-[var(--ui-surface-selected)] hover:bg-[var(--ui-surface-selected)]",
|
|
1143
|
+
ot.value && "cursor-pointer",
|
|
1144
|
+
l.singleSelect && "outline-none focus-visible:shadow-[var(--ui-shadow-focus-inset)]",
|
|
1145
|
+
N.value === u(t.row, t.index) && "opacity-40",
|
|
1146
|
+
xe.value === t.index && "shadow-[inset_0_2px_0_0_var(--ui-primary)]"
|
|
1147
|
+
]),
|
|
1148
|
+
onClick: (r) => pa(r, t.row, u(t.row, t.index)),
|
|
1149
|
+
onKeydown: (r) => Va(r, t.row, u(t.row, t.index)),
|
|
1150
|
+
onDblclick: (r) => {
|
|
1151
|
+
p("rowDblclick", t.row), l.expandable?.type !== "cell" && we(u(t.row, t.index));
|
|
1152
|
+
},
|
|
1153
|
+
onDragstart: (r) => ka(r, t.row),
|
|
1154
|
+
onDragover: S((r) => _a(r, t.row, t.index), ["prevent"]),
|
|
1155
|
+
onDrop: S((r) => ma(r, t.row), ["prevent"]),
|
|
1156
|
+
onDragend: Ca
|
|
1157
|
+
}, [
|
|
1158
|
+
U.value ? (o(), s("td", Kr, [
|
|
1159
|
+
c("button", {
|
|
1160
|
+
type: "button",
|
|
1161
|
+
"data-expand-toggle": "",
|
|
1162
|
+
"aria-expanded": t.expanded,
|
|
1163
|
+
"aria-label": t.expanded ? d.value.collapseRow(u(t.row, t.index)) : d.value.expandRow(u(t.row, t.index)),
|
|
1164
|
+
class: "inline-flex size-5 items-center justify-center rounded-[var(--ui-radius-inner)] border-0 bg-transparent text-[var(--ui-text-secondary)] outline-none hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)] focus-visible:shadow-[var(--ui-shadow-focus)]",
|
|
1165
|
+
onClick: S((r) => we(u(t.row, t.index)), ["stop"])
|
|
1166
|
+
}, [
|
|
1167
|
+
g(f(ce), {
|
|
1168
|
+
class: h(["size-3.5 transition-transform", t.expanded && "rotate-90"]),
|
|
1169
|
+
"aria-hidden": "true"
|
|
1170
|
+
}, null, 8, ["class"])
|
|
1171
|
+
], 8, zr)
|
|
1172
|
+
])) : v("", !0),
|
|
1173
|
+
l.selectable ? (o(), s("td", {
|
|
1174
|
+
key: 1,
|
|
1175
|
+
class: "h-[calc(var(--ui-grid-row-height)+1px)] px-2 text-center",
|
|
1176
|
+
onClick: a[8] || (a[8] = S(() => {
|
|
1177
|
+
}, ["stop"]))
|
|
1178
|
+
}, [
|
|
1179
|
+
c("div", Dr, [
|
|
1180
|
+
g(Xt, {
|
|
1181
|
+
"row-key": u(t.row, t.index),
|
|
1182
|
+
checked: I.value.has(u(t.row, t.index)),
|
|
1183
|
+
disabled: !q(t.row),
|
|
1184
|
+
reason: va(t.row),
|
|
1185
|
+
label: d.value.selectRow(u(t.row, t.index), t.row),
|
|
1186
|
+
onToggle: re
|
|
1187
|
+
}, null, 8, ["row-key", "checked", "disabled", "reason", "label"])
|
|
1188
|
+
])
|
|
1189
|
+
])) : v("", !0),
|
|
1190
|
+
(o(!0), s(k, null, A(C.value, (r) => (o(), s("td", {
|
|
1191
|
+
key: r.key,
|
|
1192
|
+
"data-column": r.key,
|
|
1193
|
+
"data-column-type": r.type ?? "text",
|
|
1194
|
+
class: h(["h-[calc(var(--ui-grid-row-height)+1px)] px-2 text-[var(--ui-text)]", [f(Lt)(r), f(Zt)(r) && "tabular-nums", r.type === "actions" ? "" : r.wrap ? "py-1 [overflow-wrap:anywhere]" : "truncate"]])
|
|
1195
|
+
}, [
|
|
1196
|
+
be.value?.pivotColumn === r.key ? (o(), s("span", {
|
|
1197
|
+
key: 0,
|
|
1198
|
+
"data-drag-handle": "",
|
|
1199
|
+
role: "button",
|
|
1200
|
+
tabindex: "0",
|
|
1201
|
+
"aria-label": d.value.reorderRow(u(t.row, t.index)),
|
|
1202
|
+
class: "mr-1 inline-flex size-5 shrink-0 cursor-grab items-center justify-center rounded-[var(--ui-radius-inner)] align-middle text-[var(--ui-text-secondary)] outline-none hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)] focus-visible:shadow-[var(--ui-shadow-focus)]",
|
|
1203
|
+
onClick: a[9] || (a[9] = S(() => {
|
|
1204
|
+
}, ["stop"])),
|
|
1205
|
+
onKeydown: (n) => Ct(n, t.row)
|
|
1206
|
+
}, [
|
|
1207
|
+
g(f(Ft), {
|
|
1208
|
+
class: "size-3.5",
|
|
1209
|
+
"aria-hidden": "true"
|
|
1210
|
+
})
|
|
1211
|
+
], 40, Rr)) : v("", !0),
|
|
1212
|
+
r.type === "actions" ? (o(), s("div", {
|
|
1213
|
+
key: 1,
|
|
1214
|
+
"data-grid-actions": "",
|
|
1215
|
+
class: h(f(Rl))
|
|
1216
|
+
}, [
|
|
1217
|
+
_(e.$slots, `cell-${r.key}`, de({ ref_for: !0 }, ue(t, r)), () => [
|
|
1218
|
+
K(y(t.row[r.key]), 1)
|
|
1219
|
+
])
|
|
1220
|
+
], 2)) : _(e.$slots, `cell-${r.key}`, de({ ref_for: !0 }, ue(t, r)), () => [
|
|
1221
|
+
K(y(t.row[r.key]), 1)
|
|
1222
|
+
], void 0, 2)
|
|
1223
|
+
], 10, Er))), 128)),
|
|
1224
|
+
ne.value ? (o(), s("td", $r, [
|
|
1225
|
+
c("span", {
|
|
1226
|
+
"data-drag-handle": "",
|
|
1227
|
+
role: "button",
|
|
1228
|
+
tabindex: "0",
|
|
1229
|
+
"aria-label": d.value.reorderRow(u(t.row, t.index)),
|
|
1230
|
+
class: "inline-flex size-5 cursor-grab items-center justify-center rounded-[var(--ui-radius-inner)] text-[var(--ui-text-secondary)] outline-none hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)] focus-visible:shadow-[var(--ui-shadow-focus)]",
|
|
1231
|
+
onClick: a[10] || (a[10] = S(() => {
|
|
1232
|
+
}, ["stop"])),
|
|
1233
|
+
onKeydown: (r) => Ct(r, t.row)
|
|
1234
|
+
}, [
|
|
1235
|
+
g(f(Ft), {
|
|
1236
|
+
class: "size-3.5",
|
|
1237
|
+
"aria-hidden": "true"
|
|
1238
|
+
})
|
|
1239
|
+
], 40, Tr)
|
|
1240
|
+
])) : v("", !0),
|
|
1241
|
+
a[16] || (a[16] = c("td", {
|
|
1242
|
+
"data-grid-filler": "",
|
|
1243
|
+
"aria-hidden": "true",
|
|
1244
|
+
class: "p-0"
|
|
1245
|
+
}, null, -1)),
|
|
1246
|
+
l.columnChooser ? (o(), s("td", Or)) : v("", !0)
|
|
1247
|
+
], 42, Sr))
|
|
1248
|
+
], 64))), 128))
|
|
1249
|
+
])
|
|
1250
|
+
], 4)
|
|
1251
|
+
]),
|
|
1252
|
+
_: 3
|
|
1253
|
+
}, 8, ["class", "viewport-class", "viewport-style"])
|
|
1254
|
+
]),
|
|
1255
|
+
_: 3
|
|
1256
|
+
}, 8, ["class", "loading", "text"])),
|
|
1257
|
+
!Ce.value && dt.value ? (o(), s("div", {
|
|
1258
|
+
key: 2,
|
|
1259
|
+
"data-grid-footer": "",
|
|
1260
|
+
class: h([D.value && "ui-grid-footer-pinned", "flex h-[var(--ui-grid-footer-height)] shrink-0 items-center gap-3 border-y border-[var(--ui-border-subtle)] border-b-[color:var(--ui-border)] px-2 text-[var(--ui-text)]"])
|
|
1261
|
+
}, [
|
|
1262
|
+
c("div", Ar, [
|
|
1263
|
+
_(e.$slots, "footer", {
|
|
1264
|
+
total: L.value,
|
|
1265
|
+
page: $.value,
|
|
1266
|
+
pageCount: O.value
|
|
1267
|
+
})
|
|
1268
|
+
]),
|
|
1269
|
+
O.value > 1 ? (o(), s(k, { key: 0 }, [
|
|
1270
|
+
c("span", null, y(d.value.page($.value, O.value)), 1),
|
|
1271
|
+
c("div", Lr, [
|
|
1272
|
+
g(P, {
|
|
1273
|
+
label: d.value.previous,
|
|
1274
|
+
size: "sm",
|
|
1275
|
+
disabled: $.value <= 1,
|
|
1276
|
+
onClick: a[11] || (a[11] = (t) => Oe($.value - 1))
|
|
1277
|
+
}, {
|
|
1278
|
+
default: w(() => [
|
|
1279
|
+
g(f(cl), { class: "size-3.5" })
|
|
1280
|
+
]),
|
|
1281
|
+
_: 1
|
|
1282
|
+
}, 8, ["label", "disabled"]),
|
|
1283
|
+
g(P, {
|
|
1284
|
+
label: d.value.next,
|
|
1285
|
+
size: "sm",
|
|
1286
|
+
disabled: $.value >= O.value,
|
|
1287
|
+
onClick: a[12] || (a[12] = (t) => Oe($.value + 1))
|
|
1288
|
+
}, {
|
|
1289
|
+
default: w(() => [
|
|
1290
|
+
g(f(ce), { class: "size-3.5" })
|
|
1291
|
+
]),
|
|
1292
|
+
_: 1
|
|
1293
|
+
}, 8, ["label", "disabled"])
|
|
1294
|
+
])
|
|
1295
|
+
], 64)) : v("", !0),
|
|
1296
|
+
Z.value.length ? (o(), s("label", Ir, [
|
|
1297
|
+
c("span", Hr, y(d.value.pageSize), 1),
|
|
1298
|
+
g(yl, {
|
|
1299
|
+
"model-value": String(B.value),
|
|
1300
|
+
options: Z.value,
|
|
1301
|
+
"onUpdate:modelValue": ut
|
|
1302
|
+
}, null, 8, ["model-value", "options"])
|
|
1303
|
+
])) : v("", !0),
|
|
1304
|
+
c("span", null, y(fe.value && l.localPagination ? d.value.filtered(L.value, x.value.length) : d.value.items(L.value)), 1),
|
|
1305
|
+
l.refreshable ? (o(), s("span", Mr)) : v("", !0),
|
|
1306
|
+
l.refreshable ? (o(), m(P, {
|
|
1307
|
+
key: 3,
|
|
1308
|
+
"data-refresh": "",
|
|
1309
|
+
label: d.value.refresh,
|
|
1310
|
+
size: "sm",
|
|
1311
|
+
disabled: l.refreshing,
|
|
1312
|
+
onClick: a[13] || (a[13] = (t) => p("refresh"))
|
|
1313
|
+
}, {
|
|
1314
|
+
default: w(() => [
|
|
1315
|
+
g(f(et), {
|
|
1316
|
+
class: h(["size-3.5", l.refreshing && "animate-spin"])
|
|
1317
|
+
}, null, 8, ["class"])
|
|
1318
|
+
]),
|
|
1319
|
+
_: 1
|
|
1320
|
+
}, 8, ["label", "disabled"])) : v("", !0)
|
|
1321
|
+
], 2)) : v("", !0)
|
|
1322
|
+
], 10, Il));
|
|
1323
|
+
}
|
|
1324
|
+
});
|
|
1325
|
+
export {
|
|
1326
|
+
go as default
|
|
1327
|
+
};
|