niuma-ui 1.1.11 → 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 +23 -17
- package/README.en.md +13 -10
- package/README.md +18 -11
- 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,143 @@
|
|
|
1
|
+
import type { RsFeedbackTone } from './overlay-utils';
|
|
2
|
+
import { type RsDialogBeforeClose, type RsDialogCloseReason, type RsDialogLayout, type RsDialogWidth } from './dialog-utils';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** 标题文案;也可用 `#title` / `#header` 插槽。缺省时用空格满足无障碍 Title */
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
/**
|
|
8
|
+
* 宽度:`sm` / `md` / `lg`,或 number(px) / `px` / `rem` / `%`。
|
|
9
|
+
* window:打开时折成像素后居中(`%` 相对视口扣除 inset),之后可拖拽缩放。
|
|
10
|
+
* form / confirm:自定义宽度按 CSS 写入。
|
|
11
|
+
*/
|
|
12
|
+
width?: RsDialogWidth;
|
|
13
|
+
tone?: RsFeedbackTone;
|
|
14
|
+
/**
|
|
15
|
+
* window:可拖拽/缩放工作窗。
|
|
16
|
+
* form:居中轻量表单/说明窗(高度随内容,默认不可缩放)。
|
|
17
|
+
* confirm:历史别名,等同 form;确认/提示请用 RsConfirmDialog。
|
|
18
|
+
*/
|
|
19
|
+
layout?: RsDialogLayout;
|
|
20
|
+
draggable?: boolean;
|
|
21
|
+
resizable?: boolean;
|
|
22
|
+
fullscreenable?: boolean;
|
|
23
|
+
/** 是否模态(false 时不锁焦点/不挡背后交互,适合页签内浮层) */
|
|
24
|
+
modal?: boolean;
|
|
25
|
+
showOverlay?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* 遮罩不透明度 0–1;覆盖主题默认(最浅)。
|
|
28
|
+
* 例:0.08 最浅、0.35 适中、0.55 较深。
|
|
29
|
+
*/
|
|
30
|
+
overlayOpacity?: number;
|
|
31
|
+
/** 遮罩模糊;number 为 px。默认主题为 0(无模糊,背后内容清晰) */
|
|
32
|
+
overlayBlur?: number | string;
|
|
33
|
+
showClose?: boolean;
|
|
34
|
+
/** 点击外部是否关闭;默认 false。与 modal 独立:非模态也可保持打开。 */
|
|
35
|
+
closeOnOverlayClick?: boolean;
|
|
36
|
+
/** 按 Esc 是否关闭;默认 true(与 Reka 默认一致) */
|
|
37
|
+
closeOnEsc?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* DialogPortal 挂载目标
|
|
40
|
+
* - string / HTMLElement:Teleport 到指定节点
|
|
41
|
+
* - false:禁用 Teleport,就地渲染(不挂到 body / 全局挂载点)
|
|
42
|
+
* - undefined:走 Reka 默认(通常为 body,或 ConfigProvider.teleportTo)
|
|
43
|
+
*
|
|
44
|
+
* 全屏时若未禁用 Teleport,会临时改挂到默认目标(通常为 body),
|
|
45
|
+
* 避免业务容器内的层叠上下文(如 isolation:isolate)低于应用顶栏。
|
|
46
|
+
*/
|
|
47
|
+
teleportTo?: string | HTMLElement | false;
|
|
48
|
+
/**
|
|
49
|
+
* 延后挂载 #body 插槽,避免与打开动画/重组件 init 争抢主线程。
|
|
50
|
+
* 默认:window 布局为 true,confirm 为 false。
|
|
51
|
+
*/
|
|
52
|
+
deferBodyMount?: boolean;
|
|
53
|
+
/** 全屏/还原时是否播放 bounds 过渡(含编辑器时建议保持 false) */
|
|
54
|
+
boundsTransition?: boolean;
|
|
55
|
+
/** 关闭前钩子;返回 false 可阻止关闭(支持 async) */
|
|
56
|
+
beforeClose?: RsDialogBeforeClose;
|
|
57
|
+
/**
|
|
58
|
+
* 显示内置底部按钮区。默认 false,避免影响仅用 `#footer` 或不需要按钮的旧用法。
|
|
59
|
+
* 无 `#footer` 且为 true 时渲染取消/确定。
|
|
60
|
+
* 危险确认/提示请用 RsConfirmDialog,不要用本 footer 冒充确认 UI。
|
|
61
|
+
*/
|
|
62
|
+
showFooter?: boolean;
|
|
63
|
+
showCancel?: boolean;
|
|
64
|
+
showConfirm?: boolean;
|
|
65
|
+
cancelText?: string;
|
|
66
|
+
confirmText?: string;
|
|
67
|
+
confirmLoading?: boolean;
|
|
68
|
+
confirmVariant?: 'primary' | 'danger';
|
|
69
|
+
/** 点击确定后是否自动关闭(仍会走 beforeClose) */
|
|
70
|
+
autoCloseOnConfirm?: boolean;
|
|
71
|
+
};
|
|
72
|
+
declare function onBuiltinCancel(): Promise<void>;
|
|
73
|
+
declare function onBuiltinConfirm(): Promise<void>;
|
|
74
|
+
type __VLS_ModelProps = {
|
|
75
|
+
'open'?: boolean;
|
|
76
|
+
};
|
|
77
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
78
|
+
declare var __VLS_33: {}, __VLS_41: {}, __VLS_49: {}, __VLS_65: {}, __VLS_67: {}, __VLS_69: {
|
|
79
|
+
confirmLoading: boolean;
|
|
80
|
+
onConfirm: typeof onBuiltinConfirm;
|
|
81
|
+
onCancel: typeof onBuiltinCancel;
|
|
82
|
+
};
|
|
83
|
+
type __VLS_Slots = {} & {
|
|
84
|
+
header?: (props: typeof __VLS_33) => any;
|
|
85
|
+
} & {
|
|
86
|
+
title?: (props: typeof __VLS_41) => any;
|
|
87
|
+
} & {
|
|
88
|
+
description?: (props: typeof __VLS_49) => any;
|
|
89
|
+
} & {
|
|
90
|
+
body?: (props: typeof __VLS_65) => any;
|
|
91
|
+
} & {
|
|
92
|
+
'body-placeholder'?: (props: typeof __VLS_67) => any;
|
|
93
|
+
} & {
|
|
94
|
+
footer?: (props: typeof __VLS_69) => any;
|
|
95
|
+
};
|
|
96
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
97
|
+
/** 请求关闭(走 beforeClose) */
|
|
98
|
+
close: (reason?: RsDialogCloseReason) => Promise<boolean>;
|
|
99
|
+
/** 打开对话框 */
|
|
100
|
+
openDialog: () => void;
|
|
101
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
102
|
+
cancel: () => any;
|
|
103
|
+
"update:open": (value: boolean) => any;
|
|
104
|
+
confirm: () => any;
|
|
105
|
+
openChange: (open: boolean) => any;
|
|
106
|
+
afterOpen: () => any;
|
|
107
|
+
afterClose: (reason: RsDialogCloseReason) => any;
|
|
108
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
109
|
+
onCancel?: (() => any) | undefined;
|
|
110
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
111
|
+
onConfirm?: (() => any) | undefined;
|
|
112
|
+
onOpenChange?: ((open: boolean) => any) | undefined;
|
|
113
|
+
onAfterOpen?: (() => any) | undefined;
|
|
114
|
+
onAfterClose?: ((reason: RsDialogCloseReason) => any) | undefined;
|
|
115
|
+
}>, {
|
|
116
|
+
title: string;
|
|
117
|
+
width: RsDialogWidth;
|
|
118
|
+
tone: RsFeedbackTone;
|
|
119
|
+
modal: boolean;
|
|
120
|
+
draggable: boolean;
|
|
121
|
+
layout: RsDialogLayout;
|
|
122
|
+
resizable: boolean;
|
|
123
|
+
fullscreenable: boolean;
|
|
124
|
+
showOverlay: boolean;
|
|
125
|
+
showClose: boolean;
|
|
126
|
+
closeOnOverlayClick: boolean;
|
|
127
|
+
closeOnEsc: boolean;
|
|
128
|
+
boundsTransition: boolean;
|
|
129
|
+
showFooter: boolean;
|
|
130
|
+
showCancel: boolean;
|
|
131
|
+
showConfirm: boolean;
|
|
132
|
+
confirmLoading: boolean;
|
|
133
|
+
confirmVariant: "primary" | "danger";
|
|
134
|
+
autoCloseOnConfirm: boolean;
|
|
135
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
136
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
137
|
+
declare const _default: typeof __VLS_export;
|
|
138
|
+
export default _default;
|
|
139
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
140
|
+
new (): {
|
|
141
|
+
$slots: S;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
@@ -0,0 +1,410 @@
|
|
|
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 { isRsDialogWidthPreset, resolveDialogOverlayStyle, resolveRsDialogCssWidth, resolveRsDialogWidthPx, runRsDialogBeforeClose } from "./dialog-utils.js";
|
|
5
|
+
import { useRsDialogWindow } from "./dialog-window.js";
|
|
6
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, toRef, unref, useAttrs, useModel, useSlots, watch, withCtx, withModifiers } from "vue";
|
|
7
|
+
//#region src/components/RsDialog.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var _hoisted_1 = ["onPointerdown"];
|
|
9
|
+
var _hoisted_2 = { class: "rs-dialog__heading" };
|
|
10
|
+
var _hoisted_3 = { class: "rs-dialog__actions" };
|
|
11
|
+
var _hoisted_4 = ["aria-busy"];
|
|
12
|
+
var _hoisted_5 = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "rs-dialog__body-placeholder"
|
|
15
|
+
};
|
|
16
|
+
var _hoisted_6 = {
|
|
17
|
+
key: 1,
|
|
18
|
+
class: "rs-dialog__footer"
|
|
19
|
+
};
|
|
20
|
+
var RsDialog_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
21
|
+
inheritAttrs: false,
|
|
22
|
+
__name: "RsDialog",
|
|
23
|
+
props: /*@__PURE__*/ mergeModels({
|
|
24
|
+
title: { default: "" },
|
|
25
|
+
description: {},
|
|
26
|
+
width: { default: "md" },
|
|
27
|
+
tone: { default: "default" },
|
|
28
|
+
layout: { default: "window" },
|
|
29
|
+
draggable: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false
|
|
32
|
+
},
|
|
33
|
+
resizable: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: true
|
|
36
|
+
},
|
|
37
|
+
fullscreenable: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: true
|
|
40
|
+
},
|
|
41
|
+
modal: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: true
|
|
44
|
+
},
|
|
45
|
+
showOverlay: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false
|
|
48
|
+
},
|
|
49
|
+
overlayOpacity: {},
|
|
50
|
+
overlayBlur: {},
|
|
51
|
+
showClose: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: true
|
|
54
|
+
},
|
|
55
|
+
closeOnOverlayClick: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: false
|
|
58
|
+
},
|
|
59
|
+
closeOnEsc: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: true
|
|
62
|
+
},
|
|
63
|
+
teleportTo: { type: [String, Boolean] },
|
|
64
|
+
deferBodyMount: { type: Boolean },
|
|
65
|
+
boundsTransition: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: false
|
|
68
|
+
},
|
|
69
|
+
beforeClose: {},
|
|
70
|
+
showFooter: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: false
|
|
73
|
+
},
|
|
74
|
+
showCancel: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: true
|
|
77
|
+
},
|
|
78
|
+
showConfirm: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: true
|
|
81
|
+
},
|
|
82
|
+
cancelText: {},
|
|
83
|
+
confirmText: {},
|
|
84
|
+
confirmLoading: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
default: false
|
|
87
|
+
},
|
|
88
|
+
confirmVariant: { default: "primary" },
|
|
89
|
+
autoCloseOnConfirm: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: false
|
|
92
|
+
}
|
|
93
|
+
}, {
|
|
94
|
+
"open": {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
default: false
|
|
97
|
+
},
|
|
98
|
+
"openModifiers": {}
|
|
99
|
+
}),
|
|
100
|
+
emits: /*@__PURE__*/ mergeModels([
|
|
101
|
+
"openChange",
|
|
102
|
+
"afterOpen",
|
|
103
|
+
"afterClose",
|
|
104
|
+
"confirm",
|
|
105
|
+
"cancel"
|
|
106
|
+
], ["update:open"]),
|
|
107
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
108
|
+
const open = useModel(__props, "open");
|
|
109
|
+
const props = __props;
|
|
110
|
+
const emit = __emit;
|
|
111
|
+
const attrs = useAttrs();
|
|
112
|
+
const slots = useSlots();
|
|
113
|
+
const { t } = useRsI18n();
|
|
114
|
+
const isCompactLayout = computed(() => props.layout === "form" || props.layout === "confirm");
|
|
115
|
+
const isWindowLayout = computed(() => !isCompactLayout.value);
|
|
116
|
+
const enableDraggable = computed(() => props.draggable && isWindowLayout.value);
|
|
117
|
+
const enableResizable = computed(() => props.resizable && isWindowLayout.value);
|
|
118
|
+
const deferBodyMount = computed(() => props.deferBodyMount ?? isWindowLayout.value);
|
|
119
|
+
const overlayStyle = computed(() => resolveDialogOverlayStyle({
|
|
120
|
+
overlayOpacity: props.overlayOpacity,
|
|
121
|
+
overlayBlur: props.overlayBlur
|
|
122
|
+
}));
|
|
123
|
+
const widthPreset = computed(() => isRsDialogWidthPreset(props.width) ? props.width : "md");
|
|
124
|
+
const initialWidthPx = computed(() => resolveRsDialogWidthPx(props.width));
|
|
125
|
+
const customCssWidth = computed(() => resolveRsDialogCssWidth(props.width));
|
|
126
|
+
const bodyReady = ref(false);
|
|
127
|
+
const closing = ref(false);
|
|
128
|
+
let pendingCloseReason = "programmatic";
|
|
129
|
+
let bodyMountFrameOuter = 0;
|
|
130
|
+
let bodyMountFrameInner = 0;
|
|
131
|
+
let afterOpenTimer = 0;
|
|
132
|
+
function resetBodyMount() {
|
|
133
|
+
if (bodyMountFrameOuter) {
|
|
134
|
+
cancelAnimationFrame(bodyMountFrameOuter);
|
|
135
|
+
bodyMountFrameOuter = 0;
|
|
136
|
+
}
|
|
137
|
+
if (bodyMountFrameInner) {
|
|
138
|
+
cancelAnimationFrame(bodyMountFrameInner);
|
|
139
|
+
bodyMountFrameInner = 0;
|
|
140
|
+
}
|
|
141
|
+
bodyReady.value = false;
|
|
142
|
+
}
|
|
143
|
+
function scheduleBodyMount() {
|
|
144
|
+
resetBodyMount();
|
|
145
|
+
bodyMountFrameOuter = requestAnimationFrame(() => {
|
|
146
|
+
bodyMountFrameOuter = 0;
|
|
147
|
+
bodyMountFrameInner = requestAnimationFrame(() => {
|
|
148
|
+
bodyMountFrameInner = 0;
|
|
149
|
+
if (open.value) bodyReady.value = true;
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
watch([open, deferBodyMount], ([isOpen, defer]) => {
|
|
154
|
+
if (!isOpen || !defer) {
|
|
155
|
+
resetBodyMount();
|
|
156
|
+
if (isOpen) bodyReady.value = true;
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
scheduleBodyMount();
|
|
160
|
+
}, { immediate: true });
|
|
161
|
+
function clearAfterOpenTimer() {
|
|
162
|
+
if (!afterOpenTimer) return;
|
|
163
|
+
window.clearTimeout(afterOpenTimer);
|
|
164
|
+
afterOpenTimer = 0;
|
|
165
|
+
}
|
|
166
|
+
function queueAfterOpen() {
|
|
167
|
+
clearAfterOpenTimer();
|
|
168
|
+
afterOpenTimer = window.setTimeout(() => {
|
|
169
|
+
afterOpenTimer = 0;
|
|
170
|
+
if (open.value) emit("afterOpen");
|
|
171
|
+
}, 230);
|
|
172
|
+
}
|
|
173
|
+
watch(open, (isOpen, wasOpen) => {
|
|
174
|
+
if (isOpen && !wasOpen) {
|
|
175
|
+
emit("openChange", true);
|
|
176
|
+
queueAfterOpen();
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
if (!isOpen && wasOpen) {
|
|
180
|
+
emit("openChange", false);
|
|
181
|
+
if (!closing.value) emit("afterClose", "programmatic");
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
onMounted(() => {});
|
|
185
|
+
onBeforeUnmount(() => {
|
|
186
|
+
resetBodyMount();
|
|
187
|
+
clearAfterOpenTimer();
|
|
188
|
+
});
|
|
189
|
+
const showBodyContent = computed(() => !deferBodyMount.value || bodyReady.value);
|
|
190
|
+
const showBuiltinFooter = computed(() => props.showFooter && !slots.footer && (props.showCancel || props.showConfirm));
|
|
191
|
+
const resolvedTitle = computed(() => {
|
|
192
|
+
return props.title?.trim() || " ";
|
|
193
|
+
});
|
|
194
|
+
const contentClass = computed(() => {
|
|
195
|
+
const presetClass = isRsDialogWidthPreset(props.width) ? `rs-dialog__content--${props.width}` : "rs-dialog__content--custom-width";
|
|
196
|
+
return [
|
|
197
|
+
isCompactLayout.value ? "rs-dialog__content--form" : "rs-dialog__content--window",
|
|
198
|
+
props.layout === "confirm" ? "rs-dialog__content--confirm" : void 0,
|
|
199
|
+
presetClass,
|
|
200
|
+
`rs-dialog__content--tone-${props.tone}`,
|
|
201
|
+
{
|
|
202
|
+
"rs-dialog__content--fullscreen": isFullscreen.value,
|
|
203
|
+
"rs-dialog__content--draggable": enableDraggable.value,
|
|
204
|
+
"rs-dialog__content--bounds-transition": boundsTransitionEnabled.value
|
|
205
|
+
}
|
|
206
|
+
];
|
|
207
|
+
});
|
|
208
|
+
const contentStyle = computed(() => {
|
|
209
|
+
const base = isWindowLayout.value ? dialogStyle.value : void 0;
|
|
210
|
+
if (isWindowLayout.value) return base;
|
|
211
|
+
const cssW = customCssWidth.value;
|
|
212
|
+
if (!cssW) return base;
|
|
213
|
+
return {
|
|
214
|
+
...base ?? {},
|
|
215
|
+
maxWidth: cssW
|
|
216
|
+
};
|
|
217
|
+
});
|
|
218
|
+
async function requestClose(reason) {
|
|
219
|
+
if (!open.value || closing.value) return false;
|
|
220
|
+
closing.value = true;
|
|
221
|
+
pendingCloseReason = reason;
|
|
222
|
+
try {
|
|
223
|
+
if (!await runRsDialogBeforeClose(props.beforeClose, reason)) return false;
|
|
224
|
+
open.value = false;
|
|
225
|
+
await nextTick();
|
|
226
|
+
emit("afterClose", reason);
|
|
227
|
+
return true;
|
|
228
|
+
} finally {
|
|
229
|
+
closing.value = false;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
/** DialogRoot 受控更新:打开直通;关闭统一走 beforeClose */
|
|
233
|
+
async function onUpdateOpen(next) {
|
|
234
|
+
if (next) {
|
|
235
|
+
open.value = true;
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
await requestClose(pendingCloseReason);
|
|
239
|
+
pendingCloseReason = "programmatic";
|
|
240
|
+
}
|
|
241
|
+
function onEscapeKeyDown(event) {
|
|
242
|
+
if (!props.closeOnEsc || props.confirmLoading) {
|
|
243
|
+
event.preventDefault();
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
pendingCloseReason = "escape";
|
|
247
|
+
}
|
|
248
|
+
/** 是否因外部交互关闭:与 modal 无关;非模态仍允许背后操作,仅控制是否 dismiss。 */
|
|
249
|
+
function onPointerDownOutside(event) {
|
|
250
|
+
if (!props.closeOnOverlayClick || props.confirmLoading) {
|
|
251
|
+
event.preventDefault();
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
pendingCloseReason = "overlay";
|
|
255
|
+
}
|
|
256
|
+
function onInteractOutside(event) {
|
|
257
|
+
if (!props.closeOnOverlayClick || props.confirmLoading) {
|
|
258
|
+
event.preventDefault();
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
pendingCloseReason = "overlay";
|
|
262
|
+
}
|
|
263
|
+
async function onHeaderCloseClick() {
|
|
264
|
+
await requestClose("close");
|
|
265
|
+
}
|
|
266
|
+
async function onBuiltinCancel() {
|
|
267
|
+
emit("cancel");
|
|
268
|
+
await requestClose("cancel");
|
|
269
|
+
}
|
|
270
|
+
async function onBuiltinConfirm() {
|
|
271
|
+
emit("confirm");
|
|
272
|
+
if (props.autoCloseOnConfirm) await requestClose("confirm");
|
|
273
|
+
}
|
|
274
|
+
const { isFullscreen, boundsTransitionEnabled, dialogStyle, resizeHandles, setPanelEl, toggleFullscreen, onHeaderPointerDown, onResizePointerDown } = useRsDialogWindow({
|
|
275
|
+
open,
|
|
276
|
+
widthPreset,
|
|
277
|
+
initialWidth: initialWidthPx,
|
|
278
|
+
draggable: enableDraggable,
|
|
279
|
+
resizable: enableResizable,
|
|
280
|
+
compact: isCompactLayout,
|
|
281
|
+
boundsTransition: toRef(props, "boundsTransition")
|
|
282
|
+
});
|
|
283
|
+
/**
|
|
284
|
+
* 全屏时跳出业务挂载点,挂到默认 portal(通常 body),
|
|
285
|
+
* 还原后仍回到 props.teleportTo,以保留页签内浮层的生命周期绑定。
|
|
286
|
+
*/
|
|
287
|
+
const resolvedTeleportTo = computed(() => {
|
|
288
|
+
if (isFullscreen.value && props.teleportTo !== false) return;
|
|
289
|
+
return props.teleportTo;
|
|
290
|
+
});
|
|
291
|
+
const contentRef = ref(null);
|
|
292
|
+
watch(contentRef, (inst) => {
|
|
293
|
+
if (!inst) {
|
|
294
|
+
setPanelEl(null);
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
const el = inst instanceof HTMLElement ? inst : inst.$el ?? null;
|
|
298
|
+
setPanelEl(el instanceof HTMLElement ? el : null);
|
|
299
|
+
}, { flush: "post" });
|
|
300
|
+
__expose({
|
|
301
|
+
/** 请求关闭(走 beforeClose) */
|
|
302
|
+
close: (reason = "programmatic") => requestClose(reason),
|
|
303
|
+
/** 打开对话框 */
|
|
304
|
+
openDialog: () => {
|
|
305
|
+
open.value = true;
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
return (_ctx, _cache) => {
|
|
309
|
+
return openBlock(), createBlock(unref(DialogRoot), {
|
|
310
|
+
open: open.value,
|
|
311
|
+
modal: __props.modal,
|
|
312
|
+
"onUpdate:open": onUpdateOpen
|
|
313
|
+
}, {
|
|
314
|
+
default: withCtx(() => [createVNode(unref(DialogPortal), {
|
|
315
|
+
disabled: resolvedTeleportTo.value === false,
|
|
316
|
+
to: resolvedTeleportTo.value === false ? void 0 : resolvedTeleportTo.value
|
|
317
|
+
}, {
|
|
318
|
+
default: withCtx(() => [__props.showOverlay ? (openBlock(), createBlock(unref(DialogOverlay), {
|
|
319
|
+
key: 0,
|
|
320
|
+
class: "rs-dialog__overlay rs-motion-reduce",
|
|
321
|
+
style: normalizeStyle(overlayStyle.value)
|
|
322
|
+
}, null, 8, ["style"])) : createCommentVNode("", true), createVNode(unref(DialogContent), mergeProps({
|
|
323
|
+
ref_key: "contentRef",
|
|
324
|
+
ref: contentRef
|
|
325
|
+
}, unref(attrs), {
|
|
326
|
+
class: ["rs-dialog__content rs-motion-reduce", contentClass.value],
|
|
327
|
+
style: contentStyle.value,
|
|
328
|
+
onPointerDownOutside,
|
|
329
|
+
onInteractOutside,
|
|
330
|
+
onEscapeKeyDown
|
|
331
|
+
}), {
|
|
332
|
+
default: withCtx(() => [
|
|
333
|
+
enableResizable.value && !unref(isFullscreen) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(resizeHandles), (handle) => {
|
|
334
|
+
return openBlock(), createElementBlock("div", {
|
|
335
|
+
key: handle,
|
|
336
|
+
class: normalizeClass(["rs-dialog__resize-handle", `rs-dialog__resize-handle--${handle}`]),
|
|
337
|
+
"aria-hidden": true,
|
|
338
|
+
onPointerdown: withModifiers(($event) => unref(onResizePointerDown)(handle, $event), ["stop"])
|
|
339
|
+
}, null, 42, _hoisted_1);
|
|
340
|
+
}), 128)) : createCommentVNode("", true),
|
|
341
|
+
createElementVNode("header", {
|
|
342
|
+
class: "rs-dialog__header",
|
|
343
|
+
onPointerdown: _cache[0] || (_cache[0] = (...args) => unref(onHeaderPointerDown) && unref(onHeaderPointerDown)(...args))
|
|
344
|
+
}, [renderSlot(_ctx.$slots, "header", {}, () => [createElementVNode("div", _hoisted_2, [createVNode(unref(DialogTitle), { class: "rs-dialog__title" }, {
|
|
345
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "title", {}, () => [createTextVNode(toDisplayString(resolvedTitle.value), 1)])]),
|
|
346
|
+
_: 3
|
|
347
|
+
}), createVNode(unref(DialogDescription), { class: normalizeClass(["rs-dialog__description", { "rs-dialog__description--sr-only": !__props.description && !_ctx.$slots.description }]) }, {
|
|
348
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description || resolvedTitle.value), 1)])]),
|
|
349
|
+
_: 3
|
|
350
|
+
}, 8, ["class"])])]), createElementVNode("div", _hoisted_3, [__props.fullscreenable && isWindowLayout.value ? (openBlock(), createBlock(RsButton_default, {
|
|
351
|
+
key: 0,
|
|
352
|
+
variant: "ghost",
|
|
353
|
+
size: "sm",
|
|
354
|
+
"icon-only": "",
|
|
355
|
+
icon: unref(isFullscreen) ? "minimize-2" : "maximize-2",
|
|
356
|
+
tooltip: unref(isFullscreen) ? unref(t)("dialog.restore") : unref(t)("dialog.fullscreen"),
|
|
357
|
+
onClick: unref(toggleFullscreen)
|
|
358
|
+
}, null, 8, [
|
|
359
|
+
"icon",
|
|
360
|
+
"tooltip",
|
|
361
|
+
"onClick"
|
|
362
|
+
])) : createCommentVNode("", true), __props.showClose ? (openBlock(), createBlock(RsButton_default, {
|
|
363
|
+
key: 1,
|
|
364
|
+
variant: "ghost",
|
|
365
|
+
size: "sm",
|
|
366
|
+
"icon-only": "",
|
|
367
|
+
icon: "x",
|
|
368
|
+
disabled: __props.confirmLoading,
|
|
369
|
+
tooltip: unref(t)("dialog.close"),
|
|
370
|
+
onClick: onHeaderCloseClick
|
|
371
|
+
}, null, 8, ["disabled", "tooltip"])) : createCommentVNode("", true)])], 32),
|
|
372
|
+
createElementVNode("div", {
|
|
373
|
+
class: "rs-dialog__body",
|
|
374
|
+
"aria-busy": deferBodyMount.value && !bodyReady.value ? "true" : void 0
|
|
375
|
+
}, [showBodyContent.value ? renderSlot(_ctx.$slots, "body", {}, void 0, void 0, 0) : (openBlock(), createElementBlock("div", _hoisted_5, [renderSlot(_ctx.$slots, "body-placeholder")]))], 8, _hoisted_4),
|
|
376
|
+
_ctx.$slots.footer || showBuiltinFooter.value ? (openBlock(), createElementBlock("footer", _hoisted_6, [renderSlot(_ctx.$slots, "footer", {
|
|
377
|
+
confirmLoading: __props.confirmLoading,
|
|
378
|
+
onConfirm: onBuiltinConfirm,
|
|
379
|
+
onCancel: onBuiltinCancel
|
|
380
|
+
}, () => [showBuiltinFooter.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [__props.showCancel ? (openBlock(), createBlock(RsButton_default, {
|
|
381
|
+
key: 0,
|
|
382
|
+
variant: "default",
|
|
383
|
+
size: "sm",
|
|
384
|
+
disabled: __props.confirmLoading,
|
|
385
|
+
onClick: onBuiltinCancel
|
|
386
|
+
}, {
|
|
387
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.cancelText ?? unref(t)("common.cancel")), 1)]),
|
|
388
|
+
_: 1
|
|
389
|
+
}, 8, ["disabled"])) : createCommentVNode("", true), __props.showConfirm ? (openBlock(), createBlock(RsButton_default, {
|
|
390
|
+
key: 1,
|
|
391
|
+
variant: __props.confirmVariant,
|
|
392
|
+
size: "sm",
|
|
393
|
+
loading: __props.confirmLoading,
|
|
394
|
+
onClick: onBuiltinConfirm
|
|
395
|
+
}, {
|
|
396
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.confirmText ?? unref(t)("common.confirm")), 1)]),
|
|
397
|
+
_: 1
|
|
398
|
+
}, 8, ["variant", "loading"])) : createCommentVNode("", true)], 64)) : createCommentVNode("", true)])])) : createCommentVNode("", true)
|
|
399
|
+
]),
|
|
400
|
+
_: 3
|
|
401
|
+
}, 16, ["class", "style"])]),
|
|
402
|
+
_: 3
|
|
403
|
+
}, 8, ["disabled", "to"])]),
|
|
404
|
+
_: 3
|
|
405
|
+
}, 8, ["open", "modal"]);
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
//#endregion
|
|
410
|
+
export { RsDialog_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import './RsDialog.css'
|
|
2
|
+
import RsDialog_vue_vue_type_script_setup_true_lang_default from "./RsDialog.impl.js";
|
|
3
|
+
|
|
4
|
+
//#region src/components/RsDialog.vue
|
|
5
|
+
var RsDialog_default = RsDialog_vue_vue_type_script_setup_true_lang_default;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { RsDialog_default as default };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
.rs-divider[data-v-7140d491] {
|
|
3
|
+
flex-shrink: 0;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
border: 0;
|
|
6
|
+
background: transparent;
|
|
7
|
+
}
|
|
8
|
+
.rs-divider--horizontal[data-v-7140d491] {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
width: 100%;
|
|
12
|
+
margin: var(--rs-space-md) 0;
|
|
13
|
+
}
|
|
14
|
+
.rs-divider--horizontal[data-v-7140d491]:not(.rs-divider--with-label)::before {
|
|
15
|
+
content: '';
|
|
16
|
+
display: block;
|
|
17
|
+
width: 100%;
|
|
18
|
+
border-top: 1px solid var(--rs-border);
|
|
19
|
+
}
|
|
20
|
+
.rs-divider--horizontal.rs-divider--dashed[data-v-7140d491]:not(.rs-divider--with-label)::before {
|
|
21
|
+
border-top-style: dashed;
|
|
22
|
+
}
|
|
23
|
+
.rs-divider--horizontal.rs-divider--with-label[data-v-7140d491]::before,
|
|
24
|
+
.rs-divider--horizontal.rs-divider--with-label[data-v-7140d491]::after {
|
|
25
|
+
content: '';
|
|
26
|
+
flex: 1 1 auto;
|
|
27
|
+
border-top: 1px solid var(--rs-border);
|
|
28
|
+
}
|
|
29
|
+
.rs-divider--horizontal.rs-divider--dashed.rs-divider--with-label[data-v-7140d491]::before,
|
|
30
|
+
.rs-divider--horizontal.rs-divider--dashed.rs-divider--with-label[data-v-7140d491]::after {
|
|
31
|
+
border-top-style: dashed;
|
|
32
|
+
}
|
|
33
|
+
.rs-divider__label[data-v-7140d491] {
|
|
34
|
+
flex-shrink: 0;
|
|
35
|
+
padding: 0 var(--rs-space-md);
|
|
36
|
+
font-size: var(--rs-font-size-xs);
|
|
37
|
+
color: var(--rs-muted);
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
}
|
|
40
|
+
.rs-divider--vertical[data-v-7140d491] {
|
|
41
|
+
display: inline-block;
|
|
42
|
+
align-self: stretch;
|
|
43
|
+
width: 0;
|
|
44
|
+
min-height: 1em;
|
|
45
|
+
margin: 0 var(--rs-space-md);
|
|
46
|
+
border-left: 1px solid var(--rs-border);
|
|
47
|
+
vertical-align: middle;
|
|
48
|
+
}
|
|
49
|
+
.rs-divider--vertical.rs-divider--dashed[data-v-7140d491] {
|
|
50
|
+
border-left-style: dashed;
|
|
51
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
orientation?: 'horizontal' | 'vertical';
|
|
3
|
+
dashed?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
orientation: "horizontal" | "vertical";
|
|
11
|
+
dashed: boolean;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createCommentVNode, createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot } from "vue";
|
|
2
|
+
//#region src/components/RsDivider.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var _hoisted_1 = ["aria-orientation"];
|
|
4
|
+
var _hoisted_2 = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "rs-divider__label"
|
|
7
|
+
};
|
|
8
|
+
var RsDivider_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
9
|
+
__name: "RsDivider",
|
|
10
|
+
props: {
|
|
11
|
+
orientation: { default: "horizontal" },
|
|
12
|
+
dashed: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: false
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
setup(__props) {
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return openBlock(), createElementBlock("div", {
|
|
20
|
+
class: normalizeClass(["rs-divider", [`rs-divider--${__props.orientation}`, {
|
|
21
|
+
"rs-divider--dashed": __props.dashed,
|
|
22
|
+
"rs-divider--with-label": _ctx.$slots.default
|
|
23
|
+
}]]),
|
|
24
|
+
role: "separator",
|
|
25
|
+
"aria-orientation": __props.orientation
|
|
26
|
+
}, [_ctx.$slots.default && __props.orientation === "horizontal" ? (openBlock(), createElementBlock("span", _hoisted_2, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])) : createCommentVNode("", true)], 10, _hoisted_1);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { RsDivider_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './RsDivider.css'
|
|
2
|
+
import _plugin_vue_export_helper_default from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
import RsDivider_vue_vue_type_script_setup_true_lang_default from "./RsDivider.impl.js";
|
|
4
|
+
|
|
5
|
+
//#region src/components/RsDivider.vue
|
|
6
|
+
var RsDivider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(RsDivider_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-7140d491"]]);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { RsDivider_default as default };
|