niuma-ui 1.1.12 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -18
- package/README.en.md +12 -9
- package/README.md +13 -10
- package/dist/_virtual/_plugin-vue_export-helper.js +8 -0
- package/dist/components/RsAlert.css +111 -0
- package/dist/components/RsAlert.d.ts +32 -0
- package/dist/components/RsAlert.impl.js +83 -0
- package/dist/components/RsAlert.js +8 -0
- package/dist/components/RsAvatar.css +60 -0
- package/dist/components/RsAvatar.d.ts +30 -0
- package/dist/components/RsAvatar.impl.js +59 -0
- package/dist/components/RsAvatar.js +7 -0
- package/dist/components/RsBadge.css +41 -0
- package/dist/components/RsBadge.d.ts +18 -0
- package/dist/components/RsBadge.impl.js +13 -0
- package/dist/components/RsBadge.js +8 -0
- package/dist/components/RsBreadcrumb.css +37 -0
- package/dist/components/RsBreadcrumb.d.ts +11 -0
- package/dist/components/RsBreadcrumb.impl.js +26 -0
- package/dist/components/RsBreadcrumb.js +7 -0
- package/dist/components/RsBreadcrumbItems.d.ts +8 -0
- package/dist/components/RsBreadcrumbItems.impl.js +40 -0
- package/dist/components/RsBreadcrumbItems.js +5 -0
- package/dist/components/RsButton.css +298 -0
- package/dist/components/RsButton.d.ts +56 -0
- package/dist/components/RsButton.impl.js +244 -0
- package/dist/components/RsButton.js +8 -0
- package/dist/components/RsCalendarGrid.css +99 -0
- package/dist/components/RsCalendarGrid.d.ts +30 -0
- package/dist/components/RsCalendarGrid.impl.js +182 -0
- package/dist/components/RsCalendarGrid.js +8 -0
- package/dist/components/RsCard.css +282 -0
- package/dist/components/RsCard.d.ts +78 -0
- package/dist/components/RsCard.impl.js +104 -0
- package/dist/components/RsCard.js +7 -0
- package/dist/components/RsCheckbox.css +104 -0
- package/dist/components/RsCheckbox.d.ts +36 -0
- package/dist/components/RsCheckbox.impl.js +86 -0
- package/dist/components/RsCheckbox.js +7 -0
- package/dist/components/RsCodeBlock.css +102 -0
- package/dist/components/RsCodeBlock.d.ts +34 -0
- package/dist/components/RsCodeBlock.impl.js +173 -0
- package/dist/components/RsCodeBlock.js +8 -0
- package/dist/components/RsCodeEditor.css +214 -0
- package/dist/components/RsCodeEditor.d.ts +88 -0
- package/dist/components/RsCodeEditor.impl.js +308 -0
- package/dist/components/RsCodeEditor.js +8 -0
- package/dist/components/RsConfigProvider.css +7 -0
- package/dist/components/RsConfigProvider.d.ts +36 -0
- package/dist/components/RsConfigProvider.impl.js +49 -0
- package/dist/components/RsConfigProvider.js +8 -0
- package/dist/components/RsConfirmDialog.css +118 -0
- package/dist/components/RsConfirmDialog.d.ts +72 -0
- package/dist/components/RsConfirmDialog.impl.js +207 -0
- package/dist/components/RsConfirmDialog.js +7 -0
- package/dist/components/RsContainer.css +94 -0
- package/dist/components/RsContainer.d.ts +52 -0
- package/dist/components/RsContainer.impl.js +99 -0
- package/dist/components/RsContainer.js +8 -0
- package/dist/components/RsContextMenu.css +178 -0
- package/dist/components/RsContextMenu.d.ts +35 -0
- package/dist/components/RsContextMenu.impl.js +81 -0
- package/dist/components/RsContextMenu.js +7 -0
- package/dist/components/RsContextMenuItems.d.ts +11 -0
- package/dist/components/RsContextMenuItems.impl.js +90 -0
- package/dist/components/RsContextMenuItems.js +5 -0
- package/dist/components/RsDatePicker-1.css +157 -0
- package/dist/components/RsDatePicker.css +100 -0
- package/dist/components/RsDatePicker.d.ts +72 -0
- package/dist/components/RsDatePicker.impl.js +719 -0
- package/dist/components/RsDatePicker.js +10 -0
- package/dist/components/RsDateTimePicker.d.ts +50 -0
- package/dist/components/RsDateTimePicker.impl.js +70 -0
- package/dist/components/RsDateTimePicker.js +5 -0
- package/dist/components/RsDescriptions.css +86 -0
- package/dist/components/RsDescriptions.d.ts +34 -0
- package/dist/components/RsDescriptions.impl.js +69 -0
- package/dist/components/RsDescriptions.js +7 -0
- package/dist/components/RsDescriptionsItem.d.ts +21 -0
- package/dist/components/RsDescriptionsItem.impl.js +26 -0
- package/dist/components/RsDescriptionsItem.js +5 -0
- package/dist/components/RsDialog.css +298 -0
- package/dist/components/RsDialog.d.ts +143 -0
- package/dist/components/RsDialog.impl.js +410 -0
- package/dist/components/RsDialog.js +7 -0
- package/dist/components/RsDivider.css +51 -0
- package/dist/components/RsDivider.d.ts +20 -0
- package/dist/components/RsDivider.impl.js +31 -0
- package/dist/components/RsDivider.js +8 -0
- package/dist/components/RsDrawer.css +368 -0
- package/dist/components/RsDrawer.d.ts +104 -0
- package/dist/components/RsDrawer.impl.js +497 -0
- package/dist/components/RsDrawer.js +7 -0
- package/dist/components/RsDropdown.css +157 -0
- package/dist/components/RsDropdown.d.ts +34 -0
- package/dist/components/RsDropdown.impl.js +100 -0
- package/dist/components/RsDropdown.js +7 -0
- package/dist/components/RsDropdownItems.d.ts +15 -0
- package/dist/components/RsDropdownItems.impl.js +99 -0
- package/dist/components/RsDropdownItems.js +5 -0
- package/dist/components/RsDynamicTags.css +148 -0
- package/dist/components/RsDynamicTags.d.ts +71 -0
- package/dist/components/RsDynamicTags.impl.js +313 -0
- package/dist/components/RsDynamicTags.js +8 -0
- package/dist/components/RsEmpty.css +52 -0
- package/dist/components/RsEmpty.d.ts +32 -0
- package/dist/components/RsEmpty.impl.js +43 -0
- package/dist/components/RsEmpty.js +7 -0
- package/dist/components/RsForm.css +30 -0
- package/dist/components/RsForm.d.ts +80 -0
- package/dist/components/RsForm.impl.js +188 -0
- package/dist/components/RsForm.js +8 -0
- package/dist/components/RsFormItem.css +52 -0
- package/dist/components/RsFormItem.d.ts +78 -0
- package/dist/components/RsFormItem.impl.js +288 -0
- package/dist/components/RsFormItem.js +8 -0
- package/dist/components/RsFormItemControl.d.ts +21 -0
- package/dist/components/RsFormItemControl.impl.js +19 -0
- package/dist/components/RsFormItemControl.js +5 -0
- package/dist/components/RsFormList.d.ts +23 -0
- package/dist/components/RsFormList.impl.js +86 -0
- package/dist/components/RsFormList.js +5 -0
- package/dist/components/RsIcon.css +14 -0
- package/dist/components/RsIcon.d.ts +24 -0
- package/dist/components/RsIcon.impl.js +77 -0
- package/dist/components/RsIcon.js +8 -0
- package/dist/components/RsInput.css +528 -0
- package/dist/components/RsInput.d.ts +147 -0
- package/dist/components/RsInput.impl.js +439 -0
- package/dist/components/RsInput.js +8 -0
- package/dist/components/RsInputNumber.css +163 -0
- package/dist/components/RsInputNumber.d.ts +88 -0
- package/dist/components/RsInputNumber.impl.js +375 -0
- package/dist/components/RsInputNumber.js +8 -0
- package/dist/components/RsLabel.css +33 -0
- package/dist/components/RsLabel.d.ts +25 -0
- package/dist/components/RsLabel.impl.js +45 -0
- package/dist/components/RsLabel.js +8 -0
- package/dist/components/RsLink.css +45 -0
- package/dist/components/RsLink.d.ts +25 -0
- package/dist/components/RsLink.impl.js +59 -0
- package/dist/components/RsLink.js +7 -0
- package/dist/components/RsLoading.css +106 -0
- package/dist/components/RsLoading.d.ts +24 -0
- package/dist/components/RsLoading.impl.js +72 -0
- package/dist/components/RsLoading.js +7 -0
- package/dist/components/RsLoadingBar.css +20 -0
- package/dist/components/RsLoadingBar.d.ts +31 -0
- package/dist/components/RsLoadingBar.impl.js +111 -0
- package/dist/components/RsLoadingBar.js +8 -0
- package/dist/components/RsMarkdown.css +214 -0
- package/dist/components/RsMarkdown.d.ts +36 -0
- package/dist/components/RsMarkdown.impl.js +139 -0
- package/dist/components/RsMarkdown.js +7 -0
- package/dist/components/RsMenu.css +200 -0
- package/dist/components/RsMenu.d.ts +28 -0
- package/dist/components/RsMenu.impl.js +108 -0
- package/dist/components/RsMenu.js +7 -0
- package/dist/components/RsMenuItems.d.ts +25 -0
- package/dist/components/RsMenuItems.impl.js +282 -0
- package/dist/components/RsMenuItems.js +5 -0
- package/dist/components/RsMonacoEditor.css +28 -0
- package/dist/components/RsMonacoEditor.d.ts +105 -0
- package/dist/components/RsMonacoEditor.impl.js +353 -0
- package/dist/components/RsMonacoEditor.js +8 -0
- package/dist/components/RsPagination.css +83 -0
- package/dist/components/RsPagination.d.ts +44 -0
- package/dist/components/RsPagination.impl.js +208 -0
- package/dist/components/RsPagination.js +8 -0
- package/dist/components/RsPopover.css +24 -0
- package/dist/components/RsPopover.d.ts +43 -0
- package/dist/components/RsPopover.impl.js +71 -0
- package/dist/components/RsPopover.js +7 -0
- package/dist/components/RsProseEditor.css +19 -0
- package/dist/components/RsProseEditor.d.ts +38 -0
- package/dist/components/RsProseEditor.impl.js +137 -0
- package/dist/components/RsProseEditor.js +8 -0
- package/dist/components/RsRadio.css +19 -0
- package/dist/components/RsRadio.d.ts +34 -0
- package/dist/components/RsRadio.impl.js +66 -0
- package/dist/components/RsRadio.js +7 -0
- package/dist/components/RsRadioItem.css +90 -0
- package/dist/components/RsRadioItem.d.ts +23 -0
- package/dist/components/RsRadioItem.impl.js +55 -0
- package/dist/components/RsRadioItem.js +7 -0
- package/dist/components/RsScrollbar.css +68 -0
- package/dist/components/RsScrollbar.d.ts +31 -0
- package/dist/components/RsScrollbar.impl.js +81 -0
- package/dist/components/RsScrollbar.js +7 -0
- package/dist/components/RsSelect.css +233 -0
- package/dist/components/RsSelect.d.ts +148 -0
- package/dist/components/RsSelect.impl.js +506 -0
- package/dist/components/RsSelect.js +8 -0
- package/dist/components/RsSidebar.css +61 -0
- package/dist/components/RsSidebar.d.ts +44 -0
- package/dist/components/RsSidebar.impl.js +63 -0
- package/dist/components/RsSidebar.js +8 -0
- package/dist/components/RsSidebarGroup.css +15 -0
- package/dist/components/RsSidebarGroup.d.ts +17 -0
- package/dist/components/RsSidebarGroup.impl.js +22 -0
- package/dist/components/RsSidebarGroup.js +8 -0
- package/dist/components/RsSidebarItem.css +45 -0
- package/dist/components/RsSidebarItem.d.ts +20 -0
- package/dist/components/RsSidebarItem.impl.js +41 -0
- package/dist/components/RsSidebarItem.js +8 -0
- package/dist/components/RsSplitPane.css +183 -0
- package/dist/components/RsSplitPane.d.ts +51 -0
- package/dist/components/RsSplitPane.impl.js +408 -0
- package/dist/components/RsSplitPane.js +7 -0
- package/dist/components/RsStatCard.css +51 -0
- package/dist/components/RsStatCard.d.ts +26 -0
- package/dist/components/RsStatCard.impl.js +41 -0
- package/dist/components/RsStatCard.js +8 -0
- package/dist/components/RsSteps.css +83 -0
- package/dist/components/RsSteps.d.ts +22 -0
- package/dist/components/RsSteps.impl.js +55 -0
- package/dist/components/RsSteps.js +8 -0
- package/dist/components/RsSwitch.css +101 -0
- package/dist/components/RsSwitch.d.ts +41 -0
- package/dist/components/RsSwitch.impl.js +92 -0
- package/dist/components/RsSwitch.js +7 -0
- package/dist/components/RsTable.d.ts +139 -0
- package/dist/components/RsTable.impl.js +676 -0
- package/dist/components/RsTable.js +5 -0
- package/dist/components/RsTabs.css +616 -0
- package/dist/components/RsTabs.d.ts +92 -0
- package/dist/components/RsTabs.impl.js +526 -0
- package/dist/components/RsTabs.js +7 -0
- package/dist/components/RsTag.css +94 -0
- package/dist/components/RsTag.d.ts +33 -0
- package/dist/components/RsTag.impl.js +70 -0
- package/dist/components/RsTag.js +8 -0
- package/dist/components/RsTerminal.css +119 -0
- package/dist/components/RsTerminal.d.ts +85 -0
- package/dist/components/RsTerminal.impl.js +525 -0
- package/dist/components/RsTerminal.js +8 -0
- package/dist/components/RsTimePicker-1.css +98 -0
- package/dist/components/RsTimePicker.css +106 -0
- package/dist/components/RsTimePicker.d.ts +41 -0
- package/dist/components/RsTimePicker.impl.js +374 -0
- package/dist/components/RsTimePicker.js +10 -0
- package/dist/components/RsTimePickerColumns.css +104 -0
- package/dist/components/RsTimePickerColumns.d.ts +30 -0
- package/dist/components/RsTimePickerColumns.impl.js +172 -0
- package/dist/components/RsTimePickerColumns.js +8 -0
- package/dist/components/RsToaster.css +329 -0
- package/dist/components/RsToaster.d.ts +17 -0
- package/dist/components/RsToaster.impl.js +67 -0
- package/dist/components/RsToaster.js +7 -0
- package/dist/components/RsToolbar.css +61 -0
- package/dist/components/RsToolbar.d.ts +43 -0
- package/dist/components/RsToolbar.impl.js +57 -0
- package/dist/components/RsToolbar.js +7 -0
- package/dist/components/RsTooltip.css +59 -0
- package/dist/components/RsTooltip.d.ts +47 -0
- package/dist/components/RsTooltip.impl.js +88 -0
- package/dist/components/RsTooltip.js +7 -0
- package/dist/components/RsTooltipProvider.d.ts +26 -0
- package/dist/components/RsTooltipProvider.impl.js +32 -0
- package/dist/components/RsTooltipProvider.js +5 -0
- package/dist/components/RsTree.css +308 -0
- package/dist/components/RsTree.d.ts +131 -0
- package/dist/components/RsTree.impl.js +762 -0
- package/dist/components/RsTree.js +8 -0
- package/dist/components/RsUpload.css +191 -0
- package/dist/components/RsUpload.d.ts +38 -0
- package/dist/components/RsUpload.impl.js +198 -0
- package/dist/components/RsUpload.js +8 -0
- package/dist/components/RsVNodeHost.d.ts +18 -0
- package/dist/components/RsVNodeHost.impl.js +18 -0
- package/dist/components/RsVNodeHost.js +5 -0
- package/dist/components/RsVirtualList.css +29 -0
- package/dist/components/RsVirtualList.d.ts +37 -0
- package/dist/components/RsVirtualList.impl.js +138 -0
- package/dist/components/RsVirtualList.js +8 -0
- package/dist/components/avatar-utils.d.ts +11 -0
- package/dist/components/avatar-utils.js +13 -0
- package/dist/components/breadcrumb-utils.d.ts +12 -0
- package/dist/components/breadcrumb-utils.js +12 -0
- package/dist/components/button-utils.d.ts +17 -0
- package/dist/components/button-utils.js +13 -0
- package/dist/components/class-utils.d.ts +2 -0
- package/dist/components/code-editor-utils.d.ts +33 -0
- package/dist/components/code-editor-utils.js +64 -0
- package/dist/components/code-mirror-completion.d.ts +5 -0
- package/dist/components/code-mirror-completion.js +37 -0
- package/dist/components/code-mirror-diagnostics.d.ts +6 -0
- package/dist/components/code-mirror-diagnostics.js +35 -0
- package/dist/components/code-mirror-ghost.d.ts +8 -0
- package/dist/components/code-mirror-ghost.js +133 -0
- package/dist/components/code-mirror-inline-edit.d.ts +11 -0
- package/dist/components/code-mirror-inline-edit.js +51 -0
- package/dist/components/code-mirror-intel.d.ts +22 -0
- package/dist/components/code-mirror-intel.js +62 -0
- package/dist/components/code-mirror-lang.d.ts +10 -0
- package/dist/components/code-mirror-lang.js +113 -0
- package/dist/components/context-menu-utils.d.ts +21 -0
- package/dist/components/context-menu-utils.js +8 -0
- package/dist/components/date-picker-utils.d.ts +115 -0
- package/dist/components/date-picker-utils.js +270 -0
- package/dist/components/date-range-validation.d.ts +15 -0
- package/dist/components/date-range-validation.js +16 -0
- package/dist/components/date-validation.d.ts +15 -0
- package/dist/components/date-validation.js +46 -0
- package/dist/components/descriptions-utils.d.ts +18 -0
- package/dist/components/descriptions-utils.js +4 -0
- package/dist/components/dialog-utils.d.ts +95 -0
- package/dist/components/dialog-utils.js +58 -0
- package/dist/components/dialog-viewport.d.ts +14 -0
- package/dist/components/dialog-viewport.js +38 -0
- package/dist/components/dialog-window.d.ts +45 -0
- package/dist/components/dialog-window.js +275 -0
- package/dist/components/drawer-utils.d.ts +37 -0
- package/dist/components/drawer-utils.js +59 -0
- package/dist/components/dropdown-utils.d.ts +13 -0
- package/dist/components/dropdown-utils.js +12 -0
- package/dist/components/form-item-control.d.ts +7 -0
- package/dist/components/form-item-control.js +46 -0
- package/dist/components/form-path.d.ts +29 -0
- package/dist/components/form-path.js +78 -0
- package/dist/components/form-rules.d.ts +82 -0
- package/dist/components/form-rules.js +130 -0
- package/dist/components/form-utils.d.ts +120 -0
- package/dist/components/form-utils.js +67 -0
- package/dist/components/input-number-utils.d.ts +36 -0
- package/dist/components/input-number-utils.js +74 -0
- package/dist/components/input-rules.d.ts +15 -0
- package/dist/components/input-rules.js +59 -0
- package/dist/components/loading-utils.d.ts +6 -0
- package/dist/components/markdown-utils.d.ts +16 -0
- package/dist/components/markdown-utils.js +143 -0
- package/dist/components/menu-utils.d.ts +16 -0
- package/dist/components/menu-utils.js +29 -0
- package/dist/components/overlay-utils.d.ts +23 -0
- package/dist/components/overlay-utils.js +17 -0
- package/dist/components/pagination-utils.d.ts +9 -0
- package/dist/components/pagination-utils.js +53 -0
- package/dist/components/popover-utils.d.ts +6 -0
- package/dist/components/radio-utils.d.ts +9 -0
- package/dist/components/radio-utils.js +4 -0
- package/dist/components/reka.d.ts +2 -0
- package/dist/components/reka.js +2 -0
- package/dist/components/resolve-radius.d.ts +9 -0
- package/dist/components/resolve-radius.js +18 -0
- package/dist/components/resolve-size.d.ts +10 -0
- package/dist/components/resolve-size.js +20 -0
- package/dist/components/scrollbar-utils.d.ts +3 -0
- package/dist/components/scrollbar-utils.js +7 -0
- package/dist/components/select-utils.d.ts +83 -0
- package/dist/components/select-utils.js +211 -0
- package/dist/components/split-pane-utils.d.ts +74 -0
- package/dist/components/split-pane-utils.js +135 -0
- package/dist/components/steps-utils.d.ts +12 -0
- package/dist/components/steps-utils.js +12 -0
- package/dist/components/table/RsTableBody.d.ts +47 -0
- package/dist/components/table/RsTableBody.impl.js +312 -0
- package/dist/components/table/RsTableBody.js +5 -0
- package/dist/components/table/RsTableBodyRow.d.ts +149 -0
- package/dist/components/table/RsTableBodyRow.impl.js +438 -0
- package/dist/components/table/RsTableBodyRow.js +5 -0
- package/dist/components/table/RsTableCell.d.ts +59 -0
- package/dist/components/table/RsTableCell.impl.js +213 -0
- package/dist/components/table/RsTableCell.js +5 -0
- package/dist/components/table/RsTableCellContent.d.ts +19 -0
- package/dist/components/table/RsTableCellContent.js +25 -0
- package/dist/components/table/RsTableCellEditor.d.ts +46 -0
- package/dist/components/table/RsTableCellEditor.impl.js +341 -0
- package/dist/components/table/RsTableCellEditor.js +5 -0
- package/dist/components/table/RsTableColGroup.d.ts +18 -0
- package/dist/components/table/RsTableColGroup.impl.js +58 -0
- package/dist/components/table/RsTableColGroup.js +5 -0
- package/dist/components/table/RsTableEditGutter.d.ts +17 -0
- package/dist/components/table/RsTableEditGutter.impl.js +52 -0
- package/dist/components/table/RsTableEditGutter.js +5 -0
- package/dist/components/table/RsTableHeader.d.ts +22 -0
- package/dist/components/table/RsTableHeader.impl.js +184 -0
- package/dist/components/table/RsTableHeader.js +5 -0
- package/dist/components/table/RsTableHeaderFilter.css +24 -0
- package/dist/components/table/RsTableHeaderFilter.d.ts +19 -0
- package/dist/components/table/RsTableHeaderFilter.impl.js +102 -0
- package/dist/components/table/RsTableHeaderFilter.js +8 -0
- package/dist/components/table/RsTableRowStatus.css +30 -0
- package/dist/components/table/RsTableRowStatus.d.ts +14 -0
- package/dist/components/table/RsTableRowStatus.impl.js +44 -0
- package/dist/components/table/RsTableRowStatus.js +8 -0
- package/dist/components/table/RsTableSummaryRow.d.ts +37 -0
- package/dist/components/table/RsTableSummaryRow.impl.js +57 -0
- package/dist/components/table/RsTableSummaryRow.js +5 -0
- package/dist/components/table/rs-table-api.d.ts +65 -0
- package/dist/components/table/rs-table-api.js +22 -0
- package/dist/components/table/rs-table-compat-matrix.d.ts +24 -0
- package/dist/components/table/rs-table-compat-matrix.js +64 -0
- package/dist/components/table/rs-table-echarts-adapter.d.ts +47 -0
- package/dist/components/table/rs-table-echarts-adapter.js +49 -0
- package/dist/components/table/rs-table-feature-host.d.ts +61 -0
- package/dist/components/table/rs-table-feature-host.js +97 -0
- package/dist/components/table/rs-table-grid-nav.d.ts +22 -0
- package/dist/components/table/rs-table-grid-nav.js +80 -0
- package/dist/components/table/rs-table-header-types.d.ts +45 -0
- package/dist/components/table/rs-table-module-registry.d.ts +37 -0
- package/dist/components/table/rs-table-module-registry.js +51 -0
- package/dist/components/table/rs-table-props.d.ts +315 -0
- package/dist/components/table/rs-table-props.js +64 -0
- package/dist/components/table/rs-table-view-context.d.ts +218 -0
- package/dist/components/table/rs-table-view-context.js +47 -0
- package/dist/components/table/table-chart-utils.d.ts +62 -0
- package/dist/components/table/table-chart-utils.js +91 -0
- package/dist/components/table/table-context-menu.d.ts +13 -0
- package/dist/components/table/table-context-menu.js +30 -0
- package/dist/components/table/table-edit-utils.d.ts +94 -0
- package/dist/components/table/table-edit-utils.js +282 -0
- package/dist/components/table/table-features.d.ts +149 -0
- package/dist/components/table/table-features.js +119 -0
- package/dist/components/table/table-keys.d.ts +5 -0
- package/dist/components/table/table-keys.js +6 -0
- package/dist/components/table/table-summary-utils.d.ts +90 -0
- package/dist/components/table/table-summary-utils.js +97 -0
- package/dist/components/table-drag.d.ts +39 -0
- package/dist/components/table-drag.js +130 -0
- package/dist/components/table-utils.d.ts +440 -0
- package/dist/components/table-utils.js +722 -0
- package/dist/components/tabs-utils.d.ts +71 -0
- package/dist/components/tabs-utils.js +147 -0
- package/dist/components/terminal-utils.d.ts +59 -0
- package/dist/components/terminal-utils.js +210 -0
- package/dist/components/terminal-wheel.d.ts +24 -0
- package/dist/components/terminal-wheel.js +42 -0
- package/dist/components/time-picker-utils.d.ts +51 -0
- package/dist/components/time-picker-utils.js +158 -0
- package/dist/components/time-range-validation.d.ts +11 -0
- package/dist/components/time-range-validation.js +15 -0
- package/dist/components/time-validation.d.ts +11 -0
- package/dist/components/time-validation.js +22 -0
- package/dist/components/tree-utils.d.ts +112 -0
- package/dist/components/tree-utils.js +310 -0
- package/dist/components/upload-utils.d.ts +26 -0
- package/dist/components/upload-utils.js +177 -0
- package/dist/components/use-rs-select.d.ts +78 -0
- package/dist/components/use-rs-select.js +266 -0
- package/dist/components/virtual-list-utils.d.ts +7 -0
- package/dist/components/virtual-list-utils.js +28 -0
- package/dist/composables/assembleRsTableApi.d.ts +34 -0
- package/dist/composables/assembleRsTableApi.js +26 -0
- package/dist/composables/bindRsTableViewContext.d.ts +73 -0
- package/dist/composables/bindRsTableViewContext.js +104 -0
- package/dist/composables/createRsDialog.d.ts +77 -0
- package/dist/composables/createRsDialog.js +263 -0
- package/dist/composables/createRsTableEditEmitBridge.d.ts +16 -0
- package/dist/composables/createRsTableEditEmitBridge.js +25 -0
- package/dist/composables/useClickOutside.d.ts +2 -0
- package/dist/composables/useRsConfig.d.ts +26 -0
- package/dist/composables/useRsConfig.js +55 -0
- package/dist/composables/useRsI18n.d.ts +9 -0
- package/dist/composables/useRsI18n.js +25 -0
- package/dist/composables/useRsLoadingBar.d.ts +13 -0
- package/dist/composables/useRsLoadingBar.js +30 -0
- package/dist/composables/useRsTable.d.ts +61 -0
- package/dist/composables/useRsTable.js +57 -0
- package/dist/composables/useRsTableA11y.d.ts +35 -0
- package/dist/composables/useRsTableA11y.js +34 -0
- package/dist/composables/useRsTableChartBridge.d.ts +37 -0
- package/dist/composables/useRsTableChartBridge.js +47 -0
- package/dist/composables/useRsTableColumnLayout.d.ts +75 -0
- package/dist/composables/useRsTableColumnLayout.js +250 -0
- package/dist/composables/useRsTableColumnResize.d.ts +35 -0
- package/dist/composables/useRsTableColumnResize.js +182 -0
- package/dist/composables/useRsTableColumnVirtual.d.ts +76 -0
- package/dist/composables/useRsTableColumnVirtual.js +116 -0
- package/dist/composables/useRsTableColumns.d.ts +70 -0
- package/dist/composables/useRsTableColumns.js +132 -0
- package/dist/composables/useRsTableContextMenu.d.ts +83 -0
- package/dist/composables/useRsTableContextMenu.js +152 -0
- package/dist/composables/useRsTableCore.d.ts +177 -0
- package/dist/composables/useRsTableCore.js +164 -0
- package/dist/composables/useRsTableEditActions.d.ts +129 -0
- package/dist/composables/useRsTableEditActions.js +376 -0
- package/dist/composables/useRsTableEditLayer.d.ts +228 -0
- package/dist/composables/useRsTableEditLayer.js +146 -0
- package/dist/composables/useRsTableEngine.d.ts +115 -0
- package/dist/composables/useRsTableEngine.js +225 -0
- package/dist/composables/useRsTableGridKeyboard.d.ts +38 -0
- package/dist/composables/useRsTableGridKeyboard.js +70 -0
- package/dist/composables/useRsTableHeadless.d.ts +138 -0
- package/dist/composables/useRsTableHeadless.js +105 -0
- package/dist/composables/useRsTableInteraction.d.ts +145 -0
- package/dist/composables/useRsTableInteraction.js +249 -0
- package/dist/composables/useRsTableScrollHost.d.ts +25 -0
- package/dist/composables/useRsTableScrollHost.js +42 -0
- package/dist/composables/useRsTableScrollLayout.d.ts +42 -0
- package/dist/composables/useRsTableScrollLayout.js +195 -0
- package/dist/composables/useRsTableSelectionSource.d.ts +38 -0
- package/dist/composables/useRsTableSelectionSource.js +57 -0
- package/dist/composables/useRsTableShell.d.ts +380 -0
- package/dist/composables/useRsTableShell.js +237 -0
- package/dist/composables/useRsTableShellChrome.d.ts +126 -0
- package/dist/composables/useRsTableShellChrome.js +110 -0
- package/dist/composables/useRsTableSummary.d.ts +44 -0
- package/dist/composables/useRsTableSummary.js +52 -0
- package/dist/composables/useRsTableViewProvide.d.ts +111 -0
- package/dist/composables/useRsTableViewProvide.js +93 -0
- package/dist/composables/useRsTableVirtual.d.ts +75 -0
- package/dist/composables/useRsTableVirtual.js +83 -0
- package/dist/composables/useRsTabsNav.d.ts +33 -0
- package/dist/composables/useRsTabsNav.js +137 -0
- package/dist/composables/useRsToast.d.ts +15 -0
- package/dist/composables/useRsToast.js +30 -0
- package/dist/composables/useTableCellTooltip.d.ts +28 -0
- package/dist/composables/useTableCellTooltip.js +177 -0
- package/dist/composables/useTableEdit.d.ts +63 -0
- package/dist/composables/useTableEdit.js +176 -0
- package/dist/composables/useTableRowHighlight.d.ts +14 -0
- package/dist/composables/useTableRowHighlight.js +35 -0
- package/dist/dev/vite-codemirror-deps.d.ts +20 -0
- package/dist/dev/vite-codemirror-deps.js +16 -0
- package/dist/dev/vite-xterm-deps.d.ts +8 -0
- package/dist/dev/vite-xterm-deps.js +3 -0
- package/dist/icons/custom/api.d.ts +37 -0
- package/dist/icons/custom/api.js +56 -0
- package/dist/icons/custom/clickhouse.d.ts +37 -0
- package/dist/icons/custom/clickhouse.js +61 -0
- package/dist/icons/custom/dameng.d.ts +37 -0
- package/dist/icons/custom/dameng.js +81 -0
- package/dist/icons/custom/ftp.d.ts +37 -0
- package/dist/icons/custom/ftp.js +62 -0
- package/dist/icons/custom/kingbase.d.ts +37 -0
- package/dist/icons/custom/kingbase.js +61 -0
- package/dist/icons/custom/mongodb.d.ts +37 -0
- package/dist/icons/custom/mongodb.js +59 -0
- package/dist/icons/custom/mysql.d.ts +37 -0
- package/dist/icons/custom/mysql.js +60 -0
- package/dist/icons/custom/oracle.d.ts +37 -0
- package/dist/icons/custom/oracle.js +61 -0
- package/dist/icons/custom/postgres.d.ts +37 -0
- package/dist/icons/custom/postgres.js +61 -0
- package/dist/icons/custom/redis.d.ts +38 -0
- package/dist/icons/custom/redis.js +60 -0
- package/dist/icons/custom/sqlite.d.ts +37 -0
- package/dist/icons/custom/sqlite.js +59 -0
- package/dist/icons/custom/sqlserver.d.ts +37 -0
- package/dist/icons/custom/sqlserver.js +61 -0
- package/dist/icons/custom/vastbase.d.ts +37 -0
- package/dist/icons/custom/vastbase.js +67 -0
- package/dist/icons/lucide.d.ts +7 -0
- package/dist/icons/lucide.js +74 -0
- package/dist/icons/registry.d.ts +3 -0
- package/dist/icons/registry.js +31 -0
- package/dist/index.d.ts +209 -0
- package/dist/index.js +156 -0
- package/dist/lib/iso-local-datetime.d.ts +17 -0
- package/dist/lib/iso-local-datetime.js +103 -0
- package/dist/lib/rs-dayjs.d.ts +15 -0
- package/dist/lib/rs-dayjs.js +41 -0
- package/dist/locale/interpolate.d.ts +14 -0
- package/dist/locale/interpolate.js +24 -0
- package/dist/locale/messages.d.ts +7 -0
- package/dist/locale/messages.js +407 -0
- package/dist/locale/types.d.ts +3 -0
- package/dist/locale/types.js +4 -0
- package/dist/monaco/debug-decorations.d.ts +21 -0
- package/dist/monaco/debug-decorations2.js +44 -0
- package/dist/monaco/index.d.ts +5 -0
- package/dist/monaco/languages/index.d.ts +3 -0
- package/dist/monaco/languages/mongodb-shell.d.ts +7 -0
- package/dist/monaco/languages/mongodb-shell.js +222 -0
- package/dist/monaco/languages/types.d.ts +30 -0
- package/dist/monaco/languages/types.js +25 -0
- package/dist/monaco/setup.d.ts +9 -0
- package/dist/monaco/setup.js +53 -0
- package/dist/styles.css +2005 -0
- package/dist/theme/apply.d.ts +6 -0
- package/dist/theme/apply.js +10 -0
- package/dist/theme/css-token.d.ts +27 -0
- package/dist/theme/css-token.js +72 -0
- package/dist/theme/presets.d.ts +7 -0
- package/dist/theme/presets.js +74 -0
- package/dist/theme/types.d.ts +97 -0
- package/dist/theme/types.js +65 -0
- package/dist/utils/rs-clipboard.d.ts +17 -0
- package/dist/utils/rs-clipboard.js +187 -0
- package/dist/vite-plugins/monaco-zh-nls.d.ts +2 -0
- package/dist/vite-plugins/monaco-zh-nls.js +92 -0
- package/dist/vite-plugins/silence-antlr-parse-console.d.ts +9 -0
- package/dist/vite-plugins/silence-antlr-parse-console.js +26 -0
- package/package.json +38 -15
- package/src/__tests__/RsBadge.spec.ts +0 -40
- package/src/__tests__/RsBreadcrumb.spec.ts +0 -172
- package/src/__tests__/RsButton.spec.ts +0 -188
- package/src/__tests__/RsCalendarGrid.spec.ts +0 -101
- package/src/__tests__/RsCard.spec.ts +0 -256
- package/src/__tests__/RsCheckbox.spec.ts +0 -36
- package/src/__tests__/RsCodeEditor.spec.ts +0 -111
- package/src/__tests__/RsConfirmDialog.spec.ts +0 -285
- package/src/__tests__/RsContainer.spec.ts +0 -89
- package/src/__tests__/RsContextMenu.spec.ts +0 -130
- package/src/__tests__/RsDatePicker.spec.ts +0 -109
- package/src/__tests__/RsDateTimePicker.spec.ts +0 -80
- package/src/__tests__/RsDescriptions.spec.ts +0 -50
- package/src/__tests__/RsDialog.spec.ts +0 -595
- package/src/__tests__/RsDrawer.spec.ts +0 -292
- package/src/__tests__/RsDropdown.spec.ts +0 -135
- package/src/__tests__/RsDynamicTags.spec.ts +0 -52
- package/src/__tests__/RsEmpty.spec.ts +0 -99
- package/src/__tests__/RsForm.spec.ts +0 -417
- package/src/__tests__/RsFormItem.spec.ts +0 -478
- package/src/__tests__/RsFormList.spec.ts +0 -109
- package/src/__tests__/RsIcon.spec.ts +0 -258
- package/src/__tests__/RsInput.spec.ts +0 -377
- package/src/__tests__/RsInputNumber.spec.ts +0 -151
- package/src/__tests__/RsLabel.spec.ts +0 -106
- package/src/__tests__/RsLink.spec.ts +0 -49
- package/src/__tests__/RsLoading.spec.ts +0 -84
- package/src/__tests__/RsMarkdown.spec.ts +0 -180
- package/src/__tests__/RsMenu.spec.ts +0 -511
- package/src/__tests__/RsNewComponents.spec.ts +0 -17
- package/src/__tests__/RsPagination.spec.ts +0 -223
- package/src/__tests__/RsPopover.spec.ts +0 -140
- package/src/__tests__/RsScrollbar.spec.ts +0 -53
- package/src/__tests__/RsSelect.spec.ts +0 -850
- package/src/__tests__/RsSidebar.spec.ts +0 -119
- package/src/__tests__/RsSplitPane.spec.ts +0 -177
- package/src/__tests__/RsStatCard.spec.ts +0 -79
- package/src/__tests__/RsSteps.spec.ts +0 -125
- package/src/__tests__/RsSwitch.spec.ts +0 -74
- package/src/__tests__/RsTable.a11y.spec.ts +0 -83
- package/src/__tests__/RsTable.dom-baseline.spec.ts +0 -87
- package/src/__tests__/RsTable.perf.spec.ts +0 -122
- package/src/__tests__/RsTable.spec.ts +0 -1207
- package/src/__tests__/RsTable.ssr.spec.ts +0 -71
- package/src/__tests__/RsTable.summary.spec.ts +0 -45
- package/src/__tests__/RsTabs.spec.ts +0 -426
- package/src/__tests__/RsTerminal.spec.ts +0 -218
- package/src/__tests__/RsTimePicker.spec.ts +0 -97
- package/src/__tests__/RsToaster.spec.ts +0 -95
- package/src/__tests__/RsToolbar.spec.ts +0 -75
- package/src/__tests__/RsTooltip.spec.ts +0 -154
- package/src/__tests__/RsTree.spec.ts +0 -573
- package/src/__tests__/RsUpload.spec.ts +0 -216
- package/src/__tests__/RsVirtualList.spec.ts +0 -77
- package/src/__tests__/createRsDialog.spec.ts +0 -158
- package/src/__tests__/css-token.spec.ts +0 -51
- package/src/__tests__/date-picker-utils.spec.ts +0 -119
- package/src/__tests__/dialog-utils.spec.ts +0 -43
- package/src/__tests__/dialog-viewport.spec.ts +0 -38
- package/src/__tests__/form-path.spec.ts +0 -46
- package/src/__tests__/form-rules.spec.ts +0 -139
- package/src/__tests__/iso-local-datetime.spec.ts +0 -58
- package/src/__tests__/perf-budgets.ts +0 -32
- package/src/__tests__/rs-clipboard.spec.ts +0 -142
- package/src/__tests__/rs-select-model.types.spec.ts +0 -28
- package/src/__tests__/rs-table-api.spec.ts +0 -206
- package/src/__tests__/rs-table-compat-matrix.spec.ts +0 -108
- package/src/__tests__/rs-table-echarts-adapter.spec.ts +0 -43
- package/src/__tests__/rs-table-grid-nav.spec.ts +0 -63
- package/src/__tests__/rs-table-isolation.spec.ts +0 -158
- package/src/__tests__/rs-table-slots.types.spec.ts +0 -20
- package/src/__tests__/setup.ts +0 -12
- package/src/__tests__/split-pane-utils.spec.ts +0 -157
- package/src/__tests__/table-chart-utils.spec.ts +0 -88
- package/src/__tests__/table-drag.spec.ts +0 -35
- package/src/__tests__/table-edit-utils.spec.ts +0 -194
- package/src/__tests__/table-summary-utils.spec.ts +0 -62
- package/src/__tests__/table-utils.spec.ts +0 -410
- package/src/__tests__/theme.spec.ts +0 -49
- package/src/__tests__/tree-utils.spec.ts +0 -234
- package/src/__tests__/useRsTableColumnResize.spec.ts +0 -25
- package/src/__tests__/useRsTableCore.perf.spec.ts +0 -170
- package/src/__tests__/useTableCellTooltip.spec.ts +0 -101
- package/src/components/RsAlert.vue +0 -212
- package/src/components/RsAvatar.vue +0 -115
- package/src/components/RsBadge.vue +0 -59
- package/src/components/RsBreadcrumb.vue +0 -65
- package/src/components/RsBreadcrumbItems.vue +0 -36
- package/src/components/RsButton.vue +0 -596
- package/src/components/RsCalendarGrid.vue +0 -318
- package/src/components/RsCard.vue +0 -421
- package/src/components/RsCheckbox.vue +0 -189
- package/src/components/RsCodeBlock.vue +0 -327
- package/src/components/RsCodeEditor.vue +0 -597
- package/src/components/RsConfigProvider.vue +0 -92
- package/src/components/RsConfirmDialog.vue +0 -365
- package/src/components/RsContainer.vue +0 -235
- package/src/components/RsContextMenu.vue +0 -277
- package/src/components/RsContextMenuItems.vue +0 -77
- package/src/components/RsDatePicker.vue +0 -1033
- package/src/components/RsDateTimePicker.vue +0 -67
- package/src/components/RsDescriptions.vue +0 -186
- package/src/components/RsDescriptionsItem.vue +0 -32
- package/src/components/RsDialog.vue +0 -813
- package/src/components/RsDivider.vue +0 -89
- package/src/components/RsDrawer.vue +0 -979
- package/src/components/RsDropdown.vue +0 -283
- package/src/components/RsDropdownItems.vue +0 -90
- package/src/components/RsDynamicTags.vue +0 -531
- package/src/components/RsEmpty.vue +0 -107
- package/src/components/RsForm.vue +0 -287
- package/src/components/RsFormItem.vue +0 -423
- package/src/components/RsFormItemControl.vue +0 -21
- package/src/components/RsFormList.vue +0 -117
- package/src/components/RsIcon.vue +0 -104
- package/src/components/RsInput.vue +0 -1508
- package/src/components/RsInputNumber.vue +0 -582
- package/src/components/RsLabel.vue +0 -69
- package/src/components/RsLink.vue +0 -106
- package/src/components/RsLoading.vue +0 -171
- package/src/components/RsLoadingBar.vue +0 -151
- package/src/components/RsMarkdown.vue +0 -348
- package/src/components/RsMenu.vue +0 -314
- package/src/components/RsMenuItems.vue +0 -263
- package/src/components/RsMonacoEditor.vue +0 -567
- package/src/components/RsPagination.vue +0 -263
- package/src/components/RsPopover.vue +0 -79
- package/src/components/RsProseEditor.vue +0 -160
- package/src/components/RsRadio.vue +0 -81
- package/src/components/RsRadioItem.vue +0 -156
- package/src/components/RsScrollbar.vue +0 -171
- package/src/components/RsSelect.vue +0 -786
- package/src/components/RsSidebar.vue +0 -121
- package/src/components/RsSidebarGroup.vue +0 -32
- package/src/components/RsSidebarItem.vue +0 -72
- package/src/components/RsSplitPane.vue +0 -714
- package/src/components/RsStatCard.vue +0 -85
- package/src/components/RsSteps.vue +0 -138
- package/src/components/RsSwitch.vue +0 -192
- package/src/components/RsTable.vue +0 -762
- package/src/components/RsTabs.vue +0 -1283
- package/src/components/RsTag.vue +0 -191
- package/src/components/RsTerminal.vue +0 -840
- package/src/components/RsTimePicker.vue +0 -617
- package/src/components/RsTimePickerColumns.vue +0 -285
- package/src/components/RsToaster.vue +0 -436
- package/src/components/RsToolbar.vue +0 -135
- package/src/components/RsTooltip.vue +0 -151
- package/src/components/RsTooltipProvider.vue +0 -30
- package/src/components/RsTree.vue +0 -1270
- package/src/components/RsUpload.vue +0 -412
- package/src/components/RsVNodeHost.vue +0 -20
- package/src/components/RsVirtualList.vue +0 -217
- package/src/components/avatar-utils.ts +0 -19
- package/src/components/breadcrumb-utils.ts +0 -19
- package/src/components/button-utils.ts +0 -39
- package/src/components/class-utils.ts +0 -29
- package/src/components/code-editor-utils.ts +0 -106
- package/src/components/code-mirror-completion.ts +0 -40
- package/src/components/code-mirror-diagnostics.ts +0 -52
- package/src/components/code-mirror-ghost.ts +0 -158
- package/src/components/code-mirror-inline-edit.ts +0 -55
- package/src/components/code-mirror-intel.ts +0 -81
- package/src/components/code-mirror-lang.ts +0 -128
- package/src/components/context-menu-utils.ts +0 -26
- package/src/components/date-picker-utils.ts +0 -475
- package/src/components/date-range-validation.ts +0 -29
- package/src/components/date-validation.ts +0 -38
- package/src/components/descriptions-utils.ts +0 -24
- package/src/components/dialog-utils.ts +0 -183
- package/src/components/dialog-viewport.ts +0 -48
- package/src/components/dialog-window.ts +0 -318
- package/src/components/drawer-utils.ts +0 -109
- package/src/components/dropdown-utils.ts +0 -31
- package/src/components/form-item-control.ts +0 -55
- package/src/components/form-path.ts +0 -92
- package/src/components/form-rules.ts +0 -311
- package/src/components/form-utils.ts +0 -219
- package/src/components/input-number-utils.ts +0 -128
- package/src/components/input-rules.ts +0 -84
- package/src/components/loading-utils.ts +0 -8
- package/src/components/markdown-utils.ts +0 -174
- package/src/components/menu-utils.ts +0 -59
- package/src/components/overlay-utils.ts +0 -50
- package/src/components/pagination-utils.ts +0 -38
- package/src/components/popover-utils.ts +0 -8
- package/src/components/radio-utils.ts +0 -12
- package/src/components/reka.ts +0 -111
- package/src/components/resolve-radius.ts +0 -22
- package/src/components/resolve-size.ts +0 -29
- package/src/components/scrollbar-utils.ts +0 -10
- package/src/components/select-utils.ts +0 -372
- package/src/components/split-pane-utils.ts +0 -254
- package/src/components/steps-utils.ts +0 -22
- package/src/components/table/RsTableBody.vue +0 -217
- package/src/components/table/RsTableBodyRow.vue +0 -376
- package/src/components/table/RsTableCell.vue +0 -239
- package/src/components/table/RsTableCellContent.ts +0 -18
- package/src/components/table/RsTableCellEditor.vue +0 -352
- package/src/components/table/RsTableColGroup.vue +0 -41
- package/src/components/table/RsTableEditGutter.vue +0 -54
- package/src/components/table/RsTableHeader.vue +0 -158
- package/src/components/table/RsTableHeaderFilter.vue +0 -107
- package/src/components/table/RsTableRowStatus.vue +0 -69
- package/src/components/table/RsTableSummaryRow.vue +0 -52
- package/src/components/table/rs-table-api.ts +0 -99
- package/src/components/table/rs-table-compat-matrix.ts +0 -71
- package/src/components/table/rs-table-echarts-adapter.ts +0 -81
- package/src/components/table/rs-table-feature-host.ts +0 -178
- package/src/components/table/rs-table-grid-nav.ts +0 -122
- package/src/components/table/rs-table-header-types.ts +0 -47
- package/src/components/table/rs-table-module-registry.ts +0 -72
- package/src/components/table/rs-table-props.ts +0 -340
- package/src/components/table/rs-table-view-context.ts +0 -258
- package/src/components/table/table-chart-utils.ts +0 -165
- package/src/components/table/table-context-menu.ts +0 -53
- package/src/components/table/table-edit-utils.ts +0 -496
- package/src/components/table/table-features.ts +0 -284
- package/src/components/table/table-keys.ts +0 -12
- package/src/components/table/table-summary-utils.ts +0 -194
- package/src/components/table-drag.ts +0 -215
- package/src/components/table-utils.ts +0 -1400
- package/src/components/tabs-utils.ts +0 -247
- package/src/components/terminal-utils.ts +0 -323
- package/src/components/terminal-wheel.ts +0 -74
- package/src/components/time-picker-utils.ts +0 -240
- package/src/components/time-range-validation.ts +0 -23
- package/src/components/time-validation.ts +0 -20
- package/src/components/tree-utils.ts +0 -518
- package/src/components/upload-utils.ts +0 -177
- package/src/components/use-rs-select.ts +0 -451
- package/src/components/virtual-list-utils.ts +0 -30
- package/src/composables/assembleRsTableApi.ts +0 -79
- package/src/composables/bindRsTableViewContext.ts +0 -269
- package/src/composables/createRsDialog.ts +0 -408
- package/src/composables/createRsTableEditEmitBridge.ts +0 -38
- package/src/composables/useClickOutside.ts +0 -22
- package/src/composables/useRsConfig.ts +0 -98
- package/src/composables/useRsI18n.ts +0 -33
- package/src/composables/useRsLoadingBar.ts +0 -36
- package/src/composables/useRsTable.ts +0 -134
- package/src/composables/useRsTableA11y.ts +0 -52
- package/src/composables/useRsTableChartBridge.ts +0 -79
- package/src/composables/useRsTableColumnLayout.ts +0 -320
- package/src/composables/useRsTableColumnResize.ts +0 -244
- package/src/composables/useRsTableColumnVirtual.ts +0 -180
- package/src/composables/useRsTableColumns.ts +0 -200
- package/src/composables/useRsTableContextMenu.ts +0 -257
- package/src/composables/useRsTableCore.ts +0 -258
- package/src/composables/useRsTableEditActions.ts +0 -606
- package/src/composables/useRsTableEditLayer.ts +0 -251
- package/src/composables/useRsTableEngine.ts +0 -357
- package/src/composables/useRsTableGridKeyboard.ts +0 -123
- package/src/composables/useRsTableHeadless.ts +0 -145
- package/src/composables/useRsTableInteraction.ts +0 -433
- package/src/composables/useRsTableScrollHost.ts +0 -75
- package/src/composables/useRsTableScrollLayout.ts +0 -255
- package/src/composables/useRsTableSelectionSource.ts +0 -89
- package/src/composables/useRsTableShell.ts +0 -416
- package/src/composables/useRsTableShellChrome.ts +0 -170
- package/src/composables/useRsTableSummary.ts +0 -113
- package/src/composables/useRsTableViewProvide.ts +0 -263
- package/src/composables/useRsTableVirtual.ts +0 -154
- package/src/composables/useRsTabsNav.ts +0 -191
- package/src/composables/useRsToast.ts +0 -48
- package/src/composables/useTableCellTooltip.ts +0 -240
- package/src/composables/useTableEdit.ts +0 -271
- package/src/composables/useTableRowHighlight.ts +0 -50
- package/src/dev/vite-codemirror-deps.ts +0 -20
- package/src/dev/vite-xterm-deps.ts +0 -8
- package/src/icons/custom/api.ts +0 -54
- package/src/icons/custom/clickhouse.ts +0 -52
- package/src/icons/custom/dameng.ts +0 -83
- package/src/icons/custom/ftp.ts +0 -61
- package/src/icons/custom/kingbase.ts +0 -52
- package/src/icons/custom/mongodb.ts +0 -50
- package/src/icons/custom/mysql.ts +0 -51
- package/src/icons/custom/oracle.ts +0 -52
- package/src/icons/custom/postgres.ts +0 -52
- package/src/icons/custom/redis.ts +0 -51
- package/src/icons/custom/sqlite.ts +0 -50
- package/src/icons/custom/sqlserver.ts +0 -52
- package/src/icons/custom/vastbase.ts +0 -57
- package/src/icons/lucide.ts +0 -94
- package/src/icons/registry.ts +0 -35
- package/src/index.ts +0 -813
- package/src/lib/iso-local-datetime.ts +0 -152
- package/src/lib/rs-dayjs.ts +0 -56
- package/src/locale/interpolate.ts +0 -32
- package/src/locale/messages.ts +0 -408
- package/src/locale/types.ts +0 -5
- package/src/monaco/debug-decorations.ts +0 -70
- package/src/monaco/index.ts +0 -23
- package/src/monaco/languages/index.ts +0 -22
- package/src/monaco/languages/mongodb-shell.ts +0 -125
- package/src/monaco/languages/types.ts +0 -59
- package/src/monaco/setup.ts +0 -101
- package/src/styles.css +0 -1364
- package/src/theme/apply.ts +0 -12
- package/src/theme/css-token.ts +0 -107
- package/src/theme/presets.ts +0 -73
- package/src/theme/types.ts +0 -149
- package/src/utils/rs-clipboard.ts +0 -272
- package/src/vite-env.d.ts +0 -7
- package/vite-plugins/monaco-zh-nls.ts +0 -101
- package/vite-plugins/silence-antlr-parse-console.ts +0 -29
- /package/{src → dist}/components/table/rs-table.css +0 -0
- /package/{src → dist}/monaco/debug-decorations.css +0 -0
- /package/{src → dist}/theme/brand.example.css +0 -0
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
import { useRsI18n } from "../composables/useRsI18n.js";
|
|
2
|
+
import RsButton_default from "./RsButton.js";
|
|
3
|
+
import { DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogRoot, DialogTitle } from "./reka.js";
|
|
4
|
+
import { RS_DRAWER_MAX_VIEWPORT_RATIO, clampRsDrawerSize, resolveDrawerOverlayStyle, resolveRsDrawerDimensionCss, resolveRsDrawerSizeCss, resolveRsDrawerSizePx, runRsDrawerBeforeClose } from "./drawer-utils.js";
|
|
5
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, ref, renderSlot, toDisplayString, unref, useModel, watch, withCtx } from "vue";
|
|
6
|
+
//#region src/components/RsDrawer.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var _hoisted_1 = [
|
|
8
|
+
"aria-label",
|
|
9
|
+
"aria-orientation",
|
|
10
|
+
"aria-valuenow"
|
|
11
|
+
];
|
|
12
|
+
var _hoisted_2 = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "rs-drawer__header"
|
|
15
|
+
};
|
|
16
|
+
var _hoisted_3 = { class: "rs-drawer__heading" };
|
|
17
|
+
var _hoisted_4 = { class: "rs-drawer__body" };
|
|
18
|
+
var _hoisted_5 = {
|
|
19
|
+
key: 4,
|
|
20
|
+
class: "rs-drawer__footer"
|
|
21
|
+
};
|
|
22
|
+
var RsDrawer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
23
|
+
inheritAttrs: false,
|
|
24
|
+
__name: "RsDrawer",
|
|
25
|
+
props: /*@__PURE__*/ mergeModels({
|
|
26
|
+
title: { default: "" },
|
|
27
|
+
description: {},
|
|
28
|
+
side: { default: "right" },
|
|
29
|
+
size: { default: "md" },
|
|
30
|
+
width: {},
|
|
31
|
+
height: {},
|
|
32
|
+
resizable: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: true
|
|
35
|
+
},
|
|
36
|
+
minSize: {},
|
|
37
|
+
maxSize: {},
|
|
38
|
+
modal: { type: Boolean },
|
|
39
|
+
showOverlay: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: true
|
|
42
|
+
},
|
|
43
|
+
overlayOpacity: {},
|
|
44
|
+
overlayBlur: {},
|
|
45
|
+
showClose: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: true
|
|
48
|
+
},
|
|
49
|
+
closeOnOverlayClick: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: true
|
|
52
|
+
},
|
|
53
|
+
closeOnEsc: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: true
|
|
56
|
+
},
|
|
57
|
+
teleportTo: { type: [String, Boolean] },
|
|
58
|
+
beforeClose: {}
|
|
59
|
+
}, {
|
|
60
|
+
"open": {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: false
|
|
63
|
+
},
|
|
64
|
+
"openModifiers": {}
|
|
65
|
+
}),
|
|
66
|
+
emits: /*@__PURE__*/ mergeModels([
|
|
67
|
+
"openChange",
|
|
68
|
+
"afterOpen",
|
|
69
|
+
"afterClose",
|
|
70
|
+
"resize",
|
|
71
|
+
"update:width",
|
|
72
|
+
"update:height"
|
|
73
|
+
], ["update:open"]),
|
|
74
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
75
|
+
const open = useModel(__props, "open");
|
|
76
|
+
const props = __props;
|
|
77
|
+
const emit = __emit;
|
|
78
|
+
const { t } = useRsI18n();
|
|
79
|
+
/** 挂到自定义容器或就地渲染时按 contained 模式定位,避免盖住布局顶栏 */
|
|
80
|
+
const contained = computed(() => props.teleportTo !== void 0);
|
|
81
|
+
/** 未显式传 modal 时:有遮罩=模态,无遮罩=可点背后 */
|
|
82
|
+
const isModal = computed(() => props.modal ?? props.showOverlay);
|
|
83
|
+
const overlayStyle = computed(() => resolveDrawerOverlayStyle({
|
|
84
|
+
overlayOpacity: props.overlayOpacity,
|
|
85
|
+
overlayBlur: props.overlayBlur
|
|
86
|
+
}));
|
|
87
|
+
const isHorizontal = computed(() => props.side === "left" || props.side === "right");
|
|
88
|
+
const enableResizable = computed(() => props.resizable && props.size !== "full");
|
|
89
|
+
/** 本次打开后拖拽得到的像素尺寸;关闭时清空,回到 size/width/height */
|
|
90
|
+
const liveSizePx = ref(void 0);
|
|
91
|
+
const resizing = ref(false);
|
|
92
|
+
const contentRef = ref(null);
|
|
93
|
+
const panelSizeCss = computed(() => {
|
|
94
|
+
if (liveSizePx.value != null) return `${liveSizePx.value}px`;
|
|
95
|
+
if (isHorizontal.value) return resolveRsDrawerDimensionCss(props.width) ?? resolveRsDrawerSizeCss(props.size) ?? void 0;
|
|
96
|
+
return resolveRsDrawerDimensionCss(props.height) ?? resolveRsDrawerSizeCss(props.size) ?? void 0;
|
|
97
|
+
});
|
|
98
|
+
const contentStyle = computed(() => {
|
|
99
|
+
const style = {};
|
|
100
|
+
const size = panelSizeCss.value;
|
|
101
|
+
if (size && props.size !== "full") style["--rs-drawer-panel-size"] = size;
|
|
102
|
+
if (liveSizePx.value != null && props.size !== "full") if (isHorizontal.value) style.width = `${liveSizePx.value}px`;
|
|
103
|
+
else style.height = `${liveSizePx.value}px`;
|
|
104
|
+
if (props.side === "right") {
|
|
105
|
+
style.left = "auto";
|
|
106
|
+
style.right = "0";
|
|
107
|
+
style.top = "0";
|
|
108
|
+
style.bottom = "0";
|
|
109
|
+
style.height = "100%";
|
|
110
|
+
style.maxHeight = "none";
|
|
111
|
+
style.transform = "none";
|
|
112
|
+
} else if (props.side === "left") {
|
|
113
|
+
style.left = "0";
|
|
114
|
+
style.right = "auto";
|
|
115
|
+
style.top = "0";
|
|
116
|
+
style.bottom = "0";
|
|
117
|
+
style.height = "100%";
|
|
118
|
+
style.maxHeight = "none";
|
|
119
|
+
style.transform = "none";
|
|
120
|
+
} else if (props.side === "top") {
|
|
121
|
+
style.left = "0";
|
|
122
|
+
style.right = "0";
|
|
123
|
+
style.top = "0";
|
|
124
|
+
style.bottom = "auto";
|
|
125
|
+
style.width = "100%";
|
|
126
|
+
style.maxWidth = "none";
|
|
127
|
+
style.transform = "none";
|
|
128
|
+
} else if (props.side === "bottom") {
|
|
129
|
+
style.left = "0";
|
|
130
|
+
style.right = "0";
|
|
131
|
+
style.top = "auto";
|
|
132
|
+
style.bottom = "0";
|
|
133
|
+
style.width = "100%";
|
|
134
|
+
style.maxWidth = "none";
|
|
135
|
+
style.transform = "none";
|
|
136
|
+
}
|
|
137
|
+
return Object.keys(style).length ? style : void 0;
|
|
138
|
+
});
|
|
139
|
+
const contentClass = computed(() => [
|
|
140
|
+
`rs-drawer__content--${props.side}`,
|
|
141
|
+
`rs-drawer__content--${props.size}`,
|
|
142
|
+
{
|
|
143
|
+
"rs-drawer__content--contained": contained.value,
|
|
144
|
+
"rs-drawer__content--custom-size": Boolean(panelSizeCss.value) && props.size !== "full",
|
|
145
|
+
"rs-drawer__content--resizable": enableResizable.value,
|
|
146
|
+
"rs-drawer__content--resizing": resizing.value
|
|
147
|
+
}
|
|
148
|
+
]);
|
|
149
|
+
const closing = ref(false);
|
|
150
|
+
let pendingCloseReason = "programmatic";
|
|
151
|
+
let afterOpenTimer = 0;
|
|
152
|
+
/** 跟踪当前按下指针数,用于判断打开是否发生在手势中途 */
|
|
153
|
+
let pointersDown = 0;
|
|
154
|
+
let pointerTrackingBound = false;
|
|
155
|
+
function ensurePointerTracking() {
|
|
156
|
+
if (pointerTrackingBound || typeof window === "undefined") return;
|
|
157
|
+
pointerTrackingBound = true;
|
|
158
|
+
window.addEventListener("pointerdown", () => {
|
|
159
|
+
pointersDown += 1;
|
|
160
|
+
}, true);
|
|
161
|
+
window.addEventListener("pointerup", () => {
|
|
162
|
+
pointersDown = Math.max(0, pointersDown - 1);
|
|
163
|
+
}, true);
|
|
164
|
+
window.addEventListener("pointercancel", () => {
|
|
165
|
+
pointersDown = Math.max(0, pointersDown - 1);
|
|
166
|
+
}, true);
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* 打开若发生在 pointer 按下期间(或同轮事件冒泡中),抑制 outside dismiss,
|
|
170
|
+
* 直到指针抬起,并再刷一次 macrotask(吞掉打开点击残留的 outside)。
|
|
171
|
+
* 不使用固定毫秒锁,避免拖慢正常点遮罩关闭。
|
|
172
|
+
*/
|
|
173
|
+
const suppressOutsideUntilGestureEnd = ref(false);
|
|
174
|
+
let gestureReleaseBound = false;
|
|
175
|
+
let gestureMacrotaskTimer = 0;
|
|
176
|
+
function releaseOutsideSuppress() {
|
|
177
|
+
suppressOutsideUntilGestureEnd.value = false;
|
|
178
|
+
if (gestureMacrotaskTimer) {
|
|
179
|
+
window.clearTimeout(gestureMacrotaskTimer);
|
|
180
|
+
gestureMacrotaskTimer = 0;
|
|
181
|
+
}
|
|
182
|
+
if (!gestureReleaseBound) return;
|
|
183
|
+
gestureReleaseBound = false;
|
|
184
|
+
window.removeEventListener("pointerup", onGesturePointerRelease, true);
|
|
185
|
+
window.removeEventListener("pointercancel", onGesturePointerRelease, true);
|
|
186
|
+
}
|
|
187
|
+
function onGesturePointerRelease() {
|
|
188
|
+
if (pointersDown > 0) return;
|
|
189
|
+
if (gestureMacrotaskTimer) window.clearTimeout(gestureMacrotaskTimer);
|
|
190
|
+
gestureMacrotaskTimer = window.setTimeout(() => {
|
|
191
|
+
gestureMacrotaskTimer = 0;
|
|
192
|
+
releaseOutsideSuppress();
|
|
193
|
+
}, 0);
|
|
194
|
+
}
|
|
195
|
+
function armOutsideSuppressForOpenGesture() {
|
|
196
|
+
ensurePointerTracking();
|
|
197
|
+
releaseOutsideSuppress();
|
|
198
|
+
suppressOutsideUntilGestureEnd.value = true;
|
|
199
|
+
if (pointersDown > 0) {
|
|
200
|
+
gestureReleaseBound = true;
|
|
201
|
+
window.addEventListener("pointerup", onGesturePointerRelease, true);
|
|
202
|
+
window.addEventListener("pointercancel", onGesturePointerRelease, true);
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
gestureMacrotaskTimer = window.setTimeout(() => {
|
|
206
|
+
gestureMacrotaskTimer = 0;
|
|
207
|
+
releaseOutsideSuppress();
|
|
208
|
+
}, 0);
|
|
209
|
+
}
|
|
210
|
+
function clearAfterOpenTimer() {
|
|
211
|
+
if (!afterOpenTimer) return;
|
|
212
|
+
window.clearTimeout(afterOpenTimer);
|
|
213
|
+
afterOpenTimer = 0;
|
|
214
|
+
}
|
|
215
|
+
function queueAfterOpen() {
|
|
216
|
+
clearAfterOpenTimer();
|
|
217
|
+
afterOpenTimer = window.setTimeout(() => {
|
|
218
|
+
afterOpenTimer = 0;
|
|
219
|
+
if (open.value) emit("afterOpen");
|
|
220
|
+
}, 280);
|
|
221
|
+
}
|
|
222
|
+
watch(open, (isOpen, wasOpen) => {
|
|
223
|
+
if (isOpen && !wasOpen) {
|
|
224
|
+
armOutsideSuppressForOpenGesture();
|
|
225
|
+
emit("openChange", true);
|
|
226
|
+
queueAfterOpen();
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
if (!isOpen && wasOpen) {
|
|
230
|
+
liveSizePx.value = void 0;
|
|
231
|
+
stopResize();
|
|
232
|
+
releaseOutsideSuppress();
|
|
233
|
+
clearAfterOpenTimer();
|
|
234
|
+
emit("openChange", false);
|
|
235
|
+
if (!closing.value) emit("afterClose", "programmatic");
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
onBeforeUnmount(() => {
|
|
239
|
+
stopResize();
|
|
240
|
+
releaseOutsideSuppress();
|
|
241
|
+
clearAfterOpenTimer();
|
|
242
|
+
});
|
|
243
|
+
async function requestClose(reason) {
|
|
244
|
+
if (!open.value || closing.value) return false;
|
|
245
|
+
closing.value = true;
|
|
246
|
+
pendingCloseReason = reason;
|
|
247
|
+
try {
|
|
248
|
+
if (!await runRsDrawerBeforeClose(props.beforeClose, reason)) return false;
|
|
249
|
+
open.value = false;
|
|
250
|
+
await nextTick();
|
|
251
|
+
emit("afterClose", reason);
|
|
252
|
+
return true;
|
|
253
|
+
} finally {
|
|
254
|
+
closing.value = false;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
/** DialogRoot 受控更新:打开直通;关闭统一走 beforeClose */
|
|
258
|
+
async function onUpdateOpen(next) {
|
|
259
|
+
if (next) {
|
|
260
|
+
open.value = true;
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
await requestClose(pendingCloseReason);
|
|
264
|
+
pendingCloseReason = "programmatic";
|
|
265
|
+
}
|
|
266
|
+
function onEscapeKeyDown(event) {
|
|
267
|
+
if (!props.closeOnEsc) {
|
|
268
|
+
event.preventDefault();
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
pendingCloseReason = "escape";
|
|
272
|
+
}
|
|
273
|
+
function shouldBlockOutsideDismiss() {
|
|
274
|
+
return !props.closeOnOverlayClick || suppressOutsideUntilGestureEnd.value || resizing.value;
|
|
275
|
+
}
|
|
276
|
+
function onPointerDownOutside(event) {
|
|
277
|
+
if (shouldBlockOutsideDismiss()) {
|
|
278
|
+
event.preventDefault();
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
pendingCloseReason = "overlay";
|
|
282
|
+
}
|
|
283
|
+
function onInteractOutside(event) {
|
|
284
|
+
if (shouldBlockOutsideDismiss()) {
|
|
285
|
+
event.preventDefault();
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
pendingCloseReason = "overlay";
|
|
289
|
+
}
|
|
290
|
+
function onFocusOutside(event) {
|
|
291
|
+
event.preventDefault();
|
|
292
|
+
}
|
|
293
|
+
async function onHeaderCloseClick() {
|
|
294
|
+
await requestClose("close");
|
|
295
|
+
}
|
|
296
|
+
function resolveContentEl() {
|
|
297
|
+
const inst = contentRef.value;
|
|
298
|
+
if (!inst) return null;
|
|
299
|
+
if (inst instanceof HTMLElement) return inst;
|
|
300
|
+
const el = inst.$el;
|
|
301
|
+
return el instanceof HTMLElement ? el : null;
|
|
302
|
+
}
|
|
303
|
+
function rootFontPx() {
|
|
304
|
+
const raw = getComputedStyle(document.documentElement).fontSize;
|
|
305
|
+
const n = Number.parseFloat(raw);
|
|
306
|
+
return Number.isFinite(n) && n > 0 ? n : 16;
|
|
307
|
+
}
|
|
308
|
+
function viewportPx() {
|
|
309
|
+
return isHorizontal.value ? window.innerWidth : window.innerHeight;
|
|
310
|
+
}
|
|
311
|
+
function sizeBounds() {
|
|
312
|
+
const vp = viewportPx();
|
|
313
|
+
const root = rootFontPx();
|
|
314
|
+
return {
|
|
315
|
+
min: resolveRsDrawerSizePx(props.minSize, 256, root, vp),
|
|
316
|
+
max: resolveRsDrawerSizePx(props.maxSize, Math.round(vp * RS_DRAWER_MAX_VIEWPORT_RATIO), root, vp)
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
function applyLiveSize(px) {
|
|
320
|
+
const { min, max } = sizeBounds();
|
|
321
|
+
const next = clampRsDrawerSize(px, min, max);
|
|
322
|
+
const el = resolveContentEl();
|
|
323
|
+
if (el) {
|
|
324
|
+
el.style.setProperty("--rs-drawer-panel-size", `${next}px`);
|
|
325
|
+
if (isHorizontal.value) el.style.width = `${next}px`;
|
|
326
|
+
else el.style.height = `${next}px`;
|
|
327
|
+
}
|
|
328
|
+
return next;
|
|
329
|
+
}
|
|
330
|
+
let resizePointerId = null;
|
|
331
|
+
let resizeStartClient = 0;
|
|
332
|
+
let resizeStartSize = 0;
|
|
333
|
+
function stopResize() {
|
|
334
|
+
if (resizePointerId != null) {
|
|
335
|
+
window.removeEventListener("pointermove", onResizePointerMove);
|
|
336
|
+
window.removeEventListener("pointerup", onResizePointerUp);
|
|
337
|
+
window.removeEventListener("pointercancel", onResizePointerUp);
|
|
338
|
+
resizePointerId = null;
|
|
339
|
+
}
|
|
340
|
+
resizing.value = false;
|
|
341
|
+
document.body.style.removeProperty("cursor");
|
|
342
|
+
document.body.style.removeProperty("user-select");
|
|
343
|
+
}
|
|
344
|
+
function currentPanelPx() {
|
|
345
|
+
const el = resolveContentEl();
|
|
346
|
+
if (!el) return 256;
|
|
347
|
+
const rect = el.getBoundingClientRect();
|
|
348
|
+
return isHorizontal.value ? rect.width : rect.height;
|
|
349
|
+
}
|
|
350
|
+
function onResizePointerDown(event) {
|
|
351
|
+
if (!enableResizable.value || event.button !== 0) return;
|
|
352
|
+
event.preventDefault();
|
|
353
|
+
event.stopPropagation();
|
|
354
|
+
resizeStartClient = isHorizontal.value ? event.clientX : event.clientY;
|
|
355
|
+
resizeStartSize = currentPanelPx();
|
|
356
|
+
resizePointerId = event.pointerId;
|
|
357
|
+
resizing.value = true;
|
|
358
|
+
document.body.style.cursor = isHorizontal.value ? "ew-resize" : "ns-resize";
|
|
359
|
+
document.body.style.userSelect = "none";
|
|
360
|
+
window.addEventListener("pointermove", onResizePointerMove);
|
|
361
|
+
window.addEventListener("pointerup", onResizePointerUp);
|
|
362
|
+
window.addEventListener("pointercancel", onResizePointerUp);
|
|
363
|
+
}
|
|
364
|
+
function deltaForPointer(event) {
|
|
365
|
+
const raw = (isHorizontal.value ? event.clientX : event.clientY) - resizeStartClient;
|
|
366
|
+
if (props.side === "right" || props.side === "bottom") return -raw;
|
|
367
|
+
return raw;
|
|
368
|
+
}
|
|
369
|
+
function onResizePointerMove(event) {
|
|
370
|
+
if (resizePointerId == null || event.pointerId !== resizePointerId) return;
|
|
371
|
+
const next = applyLiveSize(resizeStartSize + deltaForPointer(event));
|
|
372
|
+
emit("resize", next);
|
|
373
|
+
}
|
|
374
|
+
function commitResize(next) {
|
|
375
|
+
liveSizePx.value = next;
|
|
376
|
+
emit("resize", next);
|
|
377
|
+
if (isHorizontal.value) emit("update:width", next);
|
|
378
|
+
else emit("update:height", next);
|
|
379
|
+
}
|
|
380
|
+
function onResizePointerUp(event) {
|
|
381
|
+
if (resizePointerId == null || event.pointerId !== resizePointerId) return;
|
|
382
|
+
const next = applyLiveSize(resizeStartSize + deltaForPointer(event));
|
|
383
|
+
stopResize();
|
|
384
|
+
commitResize(next);
|
|
385
|
+
}
|
|
386
|
+
function onResizeKeydown(event) {
|
|
387
|
+
if (!enableResizable.value) return;
|
|
388
|
+
const step = event.shiftKey ? 48 : 16;
|
|
389
|
+
let delta = 0;
|
|
390
|
+
if (props.side === "right") {
|
|
391
|
+
if (event.key === "ArrowLeft") delta = step;
|
|
392
|
+
else if (event.key === "ArrowRight") delta = -step;
|
|
393
|
+
} else if (props.side === "left") {
|
|
394
|
+
if (event.key === "ArrowRight") delta = step;
|
|
395
|
+
else if (event.key === "ArrowLeft") delta = -step;
|
|
396
|
+
} else if (props.side === "top") {
|
|
397
|
+
if (event.key === "ArrowDown") delta = step;
|
|
398
|
+
else if (event.key === "ArrowUp") delta = -step;
|
|
399
|
+
} else if (props.side === "bottom") {
|
|
400
|
+
if (event.key === "ArrowUp") delta = step;
|
|
401
|
+
else if (event.key === "ArrowDown") delta = -step;
|
|
402
|
+
}
|
|
403
|
+
if (!delta) return;
|
|
404
|
+
event.preventDefault();
|
|
405
|
+
commitResize(applyLiveSize(currentPanelPx() + delta));
|
|
406
|
+
}
|
|
407
|
+
__expose({
|
|
408
|
+
/** 请求关闭(走 beforeClose) */
|
|
409
|
+
close: (reason = "programmatic") => requestClose(reason),
|
|
410
|
+
/** 打开抽屉 */
|
|
411
|
+
openDrawer: () => {
|
|
412
|
+
open.value = true;
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
return (_ctx, _cache) => {
|
|
416
|
+
return openBlock(), createBlock(unref(DialogRoot), {
|
|
417
|
+
open: open.value,
|
|
418
|
+
modal: isModal.value,
|
|
419
|
+
"onUpdate:open": onUpdateOpen
|
|
420
|
+
}, {
|
|
421
|
+
default: withCtx(() => [createVNode(unref(DialogPortal), {
|
|
422
|
+
disabled: __props.teleportTo === false,
|
|
423
|
+
to: __props.teleportTo === false ? void 0 : __props.teleportTo
|
|
424
|
+
}, {
|
|
425
|
+
default: withCtx(() => [__props.showOverlay ? (openBlock(), createBlock(unref(DialogOverlay), {
|
|
426
|
+
key: 0,
|
|
427
|
+
class: normalizeClass(["rs-drawer__overlay rs-motion-reduce", { "rs-drawer__overlay--contained": contained.value }]),
|
|
428
|
+
style: normalizeStyle(overlayStyle.value)
|
|
429
|
+
}, null, 8, ["class", "style"])) : createCommentVNode("", true), createVNode(unref(DialogContent), {
|
|
430
|
+
ref_key: "contentRef",
|
|
431
|
+
ref: contentRef,
|
|
432
|
+
class: normalizeClass(["rs-drawer__content rs-motion-reduce", contentClass.value]),
|
|
433
|
+
style: normalizeStyle(contentStyle.value),
|
|
434
|
+
onPointerDownOutside,
|
|
435
|
+
onInteractOutside,
|
|
436
|
+
onFocusOutside,
|
|
437
|
+
onEscapeKeyDown
|
|
438
|
+
}, {
|
|
439
|
+
default: withCtx(() => [
|
|
440
|
+
enableResizable.value ? (openBlock(), createElementBlock("button", {
|
|
441
|
+
key: 0,
|
|
442
|
+
type: "button",
|
|
443
|
+
class: "rs-drawer__resize",
|
|
444
|
+
"aria-label": unref(t)("drawer.resize"),
|
|
445
|
+
"aria-orientation": isHorizontal.value ? "vertical" : "horizontal",
|
|
446
|
+
"aria-valuenow": liveSizePx.value != null ? Math.round(liveSizePx.value) : void 0,
|
|
447
|
+
onPointerdown: onResizePointerDown,
|
|
448
|
+
onKeydown: onResizeKeydown
|
|
449
|
+
}, null, 40, _hoisted_1)) : createCommentVNode("", true),
|
|
450
|
+
__props.title || __props.description || __props.showClose || _ctx.$slots.header ? (openBlock(), createElementBlock("header", _hoisted_2, [renderSlot(_ctx.$slots, "header", {}, () => [createElementVNode("div", _hoisted_3, [__props.title ? (openBlock(), createBlock(unref(DialogTitle), {
|
|
451
|
+
key: 0,
|
|
452
|
+
class: "rs-drawer__title"
|
|
453
|
+
}, {
|
|
454
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.title), 1)]),
|
|
455
|
+
_: 1
|
|
456
|
+
})) : createCommentVNode("", true), __props.description ? (openBlock(), createBlock(unref(DialogDescription), {
|
|
457
|
+
key: 1,
|
|
458
|
+
class: "rs-drawer__description"
|
|
459
|
+
}, {
|
|
460
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.description), 1)]),
|
|
461
|
+
_: 1
|
|
462
|
+
})) : createCommentVNode("", true)])]), __props.showClose ? (openBlock(), createBlock(RsButton_default, {
|
|
463
|
+
key: 0,
|
|
464
|
+
variant: "ghost",
|
|
465
|
+
size: "sm",
|
|
466
|
+
icon: "x",
|
|
467
|
+
tooltip: unref(t)("dialog.close"),
|
|
468
|
+
onClick: onHeaderCloseClick
|
|
469
|
+
}, null, 8, ["tooltip"])) : createCommentVNode("", true)])) : createCommentVNode("", true),
|
|
470
|
+
_ctx.$slots.header || !__props.title ? (openBlock(), createBlock(unref(DialogTitle), {
|
|
471
|
+
key: 2,
|
|
472
|
+
class: "rs-drawer__title rs-drawer__title--sr-only"
|
|
473
|
+
}, {
|
|
474
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.title || " "), 1)]),
|
|
475
|
+
_: 1
|
|
476
|
+
})) : createCommentVNode("", true),
|
|
477
|
+
!__props.description || _ctx.$slots.header ? (openBlock(), createBlock(unref(DialogDescription), {
|
|
478
|
+
key: 3,
|
|
479
|
+
class: "rs-drawer__description rs-drawer__description--sr-only"
|
|
480
|
+
}, {
|
|
481
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.description || __props.title || " "), 1)]),
|
|
482
|
+
_: 1
|
|
483
|
+
})) : createCommentVNode("", true),
|
|
484
|
+
createElementVNode("div", _hoisted_4, [renderSlot(_ctx.$slots, "default")]),
|
|
485
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_5, [renderSlot(_ctx.$slots, "footer")])) : createCommentVNode("", true)
|
|
486
|
+
]),
|
|
487
|
+
_: 3
|
|
488
|
+
}, 8, ["class", "style"])]),
|
|
489
|
+
_: 3
|
|
490
|
+
}, 8, ["disabled", "to"])]),
|
|
491
|
+
_: 3
|
|
492
|
+
}, 8, ["open", "modal"]);
|
|
493
|
+
};
|
|
494
|
+
}
|
|
495
|
+
});
|
|
496
|
+
//#endregion
|
|
497
|
+
export { RsDrawer_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import './RsDrawer.css'
|
|
2
|
+
import RsDrawer_vue_vue_type_script_setup_true_lang_default from "./RsDrawer.impl.js";
|
|
3
|
+
|
|
4
|
+
//#region src/components/RsDrawer.vue
|
|
5
|
+
var RsDrawer_default = RsDrawer_vue_vue_type_script_setup_true_lang_default;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { RsDrawer_default as default };
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
|
|
2
|
+
/* Dropdown 为浮层菜单,样式独立于 RsSelect 列表,对齐 RsContextMenu / 设计规范 */
|
|
3
|
+
.rs-dropdown {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
min-width: 10rem;
|
|
6
|
+
}
|
|
7
|
+
.rs-dropdown--action {
|
|
8
|
+
min-width: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* 自定义 #trigger:不套默认输入框铬边,由业务控制外观 */
|
|
12
|
+
.rs-dropdown__trigger-slot {
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
border: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
margin: 0;
|
|
18
|
+
background: transparent;
|
|
19
|
+
color: inherit;
|
|
20
|
+
font: inherit;
|
|
21
|
+
line-height: inherit;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
}
|
|
24
|
+
.rs-dropdown__trigger-slot[data-disabled] {
|
|
25
|
+
opacity: 0.38;
|
|
26
|
+
cursor: not-allowed;
|
|
27
|
+
}
|
|
28
|
+
.rs-dropdown__trigger {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
gap: var(--rs-space-sm);
|
|
33
|
+
width: 100%;
|
|
34
|
+
min-height: var(--rs-control-height-md);
|
|
35
|
+
padding: 0 var(--rs-space-md);
|
|
36
|
+
border-radius: var(--rs-radius-sm);
|
|
37
|
+
border: 1px solid var(--rs-input-border, var(--rs-border));
|
|
38
|
+
background: var(--rs-input-bg);
|
|
39
|
+
color: var(--rs-text);
|
|
40
|
+
font-size: var(--rs-font-size-sm);
|
|
41
|
+
line-height: var(--rs-line-height-normal);
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
box-shadow: var(--rs-input-shadow, none);
|
|
44
|
+
transition:
|
|
45
|
+
border-color var(--rs-transition-fast),
|
|
46
|
+
box-shadow var(--rs-transition-fast),
|
|
47
|
+
background var(--rs-transition-fast);
|
|
48
|
+
}
|
|
49
|
+
.rs-dropdown__trigger:hover:not([data-disabled]) {
|
|
50
|
+
border-color: var(--rs-input-border-hover, var(--rs-border));
|
|
51
|
+
}
|
|
52
|
+
.rs-dropdown__trigger:focus-visible {
|
|
53
|
+
outline: none;
|
|
54
|
+
border-color: var(--rs-focus-border, var(--rs-primary));
|
|
55
|
+
background: var(--rs-input-bg);
|
|
56
|
+
box-shadow:
|
|
57
|
+
var(--rs-input-shadow, none),
|
|
58
|
+
0 0 0 var(--rs-focus-ring-width, 2px) var(--rs-focus-ring);
|
|
59
|
+
}
|
|
60
|
+
.rs-dropdown__trigger[data-disabled] {
|
|
61
|
+
opacity: 0.38;
|
|
62
|
+
cursor: not-allowed;
|
|
63
|
+
background: var(--rs-surface-hover);
|
|
64
|
+
}
|
|
65
|
+
.rs-dropdown__value {
|
|
66
|
+
flex: 1;
|
|
67
|
+
min-width: 0;
|
|
68
|
+
text-align: left;
|
|
69
|
+
}
|
|
70
|
+
.rs-dropdown__label {
|
|
71
|
+
display: block;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
text-overflow: ellipsis;
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
}
|
|
76
|
+
.rs-dropdown__label--placeholder {
|
|
77
|
+
color: var(--rs-placeholder);
|
|
78
|
+
}
|
|
79
|
+
.rs-dropdown__icon {
|
|
80
|
+
flex-shrink: 0;
|
|
81
|
+
color: var(--rs-muted);
|
|
82
|
+
}
|
|
83
|
+
.rs-dropdown__content {
|
|
84
|
+
z-index: var(--rs-z-dropdown);
|
|
85
|
+
min-width: var(--reka-dropdown-menu-trigger-width);
|
|
86
|
+
padding: var(--rs-space-xs);
|
|
87
|
+
border-radius: var(--rs-radius);
|
|
88
|
+
border: 1px solid var(--rs-border);
|
|
89
|
+
background: var(--rs-surface-elevated);
|
|
90
|
+
box-shadow: var(--rs-shadow);
|
|
91
|
+
outline: none;
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
}
|
|
94
|
+
.rs-dropdown__group + .rs-dropdown__group {
|
|
95
|
+
margin-top: var(--rs-space-md);
|
|
96
|
+
padding-top: 0;
|
|
97
|
+
border-top: 1px solid var(--rs-border-subtle);
|
|
98
|
+
}
|
|
99
|
+
.rs-dropdown__group-label {
|
|
100
|
+
display: block;
|
|
101
|
+
padding: 0.375rem var(--rs-space-md) 0.125rem;
|
|
102
|
+
font-size: var(--rs-font-size-xs);
|
|
103
|
+
font-weight: var(--rs-font-weight-semibold);
|
|
104
|
+
color: var(--rs-muted);
|
|
105
|
+
letter-spacing: 0.04em;
|
|
106
|
+
line-height: var(--rs-line-height-tight);
|
|
107
|
+
user-select: none;
|
|
108
|
+
}
|
|
109
|
+
.rs-dropdown__group + .rs-dropdown__group .rs-dropdown__group-label {
|
|
110
|
+
position: relative;
|
|
111
|
+
top: -0.55em;
|
|
112
|
+
margin-bottom: 0.125rem;
|
|
113
|
+
padding: 0 0.375rem;
|
|
114
|
+
margin-left: var(--rs-space-md);
|
|
115
|
+
width: fit-content;
|
|
116
|
+
max-width: calc(100% - var(--rs-space-md) * 2);
|
|
117
|
+
background: var(--rs-surface-elevated);
|
|
118
|
+
line-height: 1;
|
|
119
|
+
}
|
|
120
|
+
.rs-dropdown__item {
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
gap: var(--rs-space-sm);
|
|
124
|
+
padding: var(--rs-space-sm) var(--rs-space-md);
|
|
125
|
+
border-radius: var(--rs-radius-sm);
|
|
126
|
+
font-size: var(--rs-font-size-sm);
|
|
127
|
+
line-height: var(--rs-line-height-tight);
|
|
128
|
+
color: var(--rs-text);
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
outline: none;
|
|
131
|
+
user-select: none;
|
|
132
|
+
transition:
|
|
133
|
+
background var(--rs-transition-fast),
|
|
134
|
+
color var(--rs-transition-fast);
|
|
135
|
+
}
|
|
136
|
+
.rs-dropdown__item-icon {
|
|
137
|
+
flex-shrink: 0;
|
|
138
|
+
color: var(--rs-muted);
|
|
139
|
+
}
|
|
140
|
+
.rs-dropdown__item-label {
|
|
141
|
+
flex: 1;
|
|
142
|
+
min-width: 0;
|
|
143
|
+
overflow: hidden;
|
|
144
|
+
text-overflow: ellipsis;
|
|
145
|
+
white-space: nowrap;
|
|
146
|
+
}
|
|
147
|
+
.rs-dropdown__item[data-highlighted] {
|
|
148
|
+
background: var(--rs-item-hover);
|
|
149
|
+
}
|
|
150
|
+
.rs-dropdown__item[data-state='checked'] {
|
|
151
|
+
color: var(--rs-primary);
|
|
152
|
+
background: color-mix(in srgb, var(--rs-primary) 12%, transparent);
|
|
153
|
+
}
|
|
154
|
+
.rs-dropdown__item[data-disabled] {
|
|
155
|
+
opacity: 0.38;
|
|
156
|
+
cursor: not-allowed;
|
|
157
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type RsDropdownItems as RsDropdownData } from './dropdown-utils';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
items: RsDropdownData;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
/** 选中后是否在触发器回显选项 label;false 时固定显示 placeholder(操作菜单) */
|
|
7
|
+
showSelected?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_ModelProps = {
|
|
10
|
+
modelValue?: string;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
|
+
declare var __VLS_14: {};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
trigger?: (props: typeof __VLS_14) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
select: (value: string) => any;
|
|
19
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
+
onSelect?: ((value: string) => any) | undefined;
|
|
22
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
showSelected: boolean;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|