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,719 @@
|
|
|
1
|
+
import { useRsI18n } from "../composables/useRsI18n.js";
|
|
2
|
+
import RsIcon_default from "./RsIcon.js";
|
|
3
|
+
import { RS_COMPONENT_SIZE_ICON_PX } from "../theme/types.js";
|
|
4
|
+
import { buildLocalInputRules, runFormFieldRules } from "./form-rules.js";
|
|
5
|
+
import { isRsFormItemBoundControl, useRsFormContext, useRsFormField, useRsFormItemContext } from "./form-utils.js";
|
|
6
|
+
import { useResolvedRsComponentSize } from "./resolve-size.js";
|
|
7
|
+
import { PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger } from "./reka.js";
|
|
8
|
+
import { EMPTY_DATE_RANGE, compareDates, extractTimeFromDateTime, formatDateDisplay, formatDateParts, formatDateRangeLabel, formatDateTimeDisplay, formatDateTimeParts, formatDateTimeRangeLabel, formatTimestampValue, fromInternalPickerValue, getNextMonth, getNowDateTime, getTodayDate, isDateRangeEmpty, isDateRangeOrdered, isDateWithinBounds, isTimestampRange, normalizeShortcutValue, parseDateTimeValue, parseDateValue, parseTimestampValue, toInternalPickerValue, toRangeEndpointString } from "./date-picker-utils.js";
|
|
9
|
+
import RsCalendarGrid_default from "./RsCalendarGrid.js";
|
|
10
|
+
import { formatTimeParts } from "./time-picker-utils.js";
|
|
11
|
+
import RsTimePicker_default from "./RsTimePicker.js";
|
|
12
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, openBlock, ref, renderList, toDisplayString, unref, useAttrs, useId, useModel, watch, withCtx } from "vue";
|
|
13
|
+
//#region src/components/RsDatePicker.vue?vue&type=script&setup=true&lang.ts
|
|
14
|
+
var _hoisted_1 = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "rs-field__label"
|
|
17
|
+
};
|
|
18
|
+
var _hoisted_2 = ["for"];
|
|
19
|
+
var _hoisted_3 = {
|
|
20
|
+
key: 2,
|
|
21
|
+
class: "rs-field__required",
|
|
22
|
+
"aria-hidden": "true"
|
|
23
|
+
};
|
|
24
|
+
var _hoisted_4 = { class: "rs-date-picker__leading" };
|
|
25
|
+
var _hoisted_5 = { class: "rs-date-picker__value" };
|
|
26
|
+
var _hoisted_6 = {
|
|
27
|
+
key: 0,
|
|
28
|
+
class: "rs-date-picker__panel"
|
|
29
|
+
};
|
|
30
|
+
var _hoisted_7 = {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "rs-date-picker__range-grid"
|
|
33
|
+
};
|
|
34
|
+
var _hoisted_8 = { class: "rs-date-picker__range-pane" };
|
|
35
|
+
var _hoisted_9 = { class: "rs-date-picker__pane-title" };
|
|
36
|
+
var _hoisted_10 = {
|
|
37
|
+
key: 0,
|
|
38
|
+
class: "rs-date-picker__time-row"
|
|
39
|
+
};
|
|
40
|
+
var _hoisted_11 = { class: "rs-date-picker__time-label" };
|
|
41
|
+
var _hoisted_12 = { class: "rs-date-picker__range-pane" };
|
|
42
|
+
var _hoisted_13 = { class: "rs-date-picker__pane-title" };
|
|
43
|
+
var _hoisted_14 = {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: "rs-date-picker__time-row"
|
|
46
|
+
};
|
|
47
|
+
var _hoisted_15 = { class: "rs-date-picker__time-label" };
|
|
48
|
+
var _hoisted_16 = {
|
|
49
|
+
key: 0,
|
|
50
|
+
class: "rs-date-picker__time-row"
|
|
51
|
+
};
|
|
52
|
+
var _hoisted_17 = { class: "rs-date-picker__time-label" };
|
|
53
|
+
var _hoisted_18 = { class: "rs-date-picker__footer" };
|
|
54
|
+
var _hoisted_19 = { class: "rs-date-picker__footer-start" };
|
|
55
|
+
var _hoisted_20 = {
|
|
56
|
+
key: 0,
|
|
57
|
+
class: "rs-date-picker__shortcuts"
|
|
58
|
+
};
|
|
59
|
+
var _hoisted_21 = ["disabled", "onClick"];
|
|
60
|
+
var _hoisted_22 = { class: "rs-date-picker__actions" };
|
|
61
|
+
var _hoisted_23 = ["disabled"];
|
|
62
|
+
var _hoisted_24 = {
|
|
63
|
+
key: 1,
|
|
64
|
+
class: "rs-date-picker-field__error",
|
|
65
|
+
role: "alert"
|
|
66
|
+
};
|
|
67
|
+
var _hoisted_25 = {
|
|
68
|
+
key: 2,
|
|
69
|
+
class: "rs-field__hint"
|
|
70
|
+
};
|
|
71
|
+
var RsDatePicker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
72
|
+
inheritAttrs: false,
|
|
73
|
+
__name: "RsDatePicker",
|
|
74
|
+
props: /*@__PURE__*/ mergeModels({
|
|
75
|
+
name: {},
|
|
76
|
+
label: {},
|
|
77
|
+
hint: {},
|
|
78
|
+
placeholder: {},
|
|
79
|
+
disabled: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: false
|
|
82
|
+
},
|
|
83
|
+
required: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: false
|
|
86
|
+
},
|
|
87
|
+
range: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: false
|
|
90
|
+
},
|
|
91
|
+
minDate: {},
|
|
92
|
+
maxDate: {},
|
|
93
|
+
withTime: {
|
|
94
|
+
type: Boolean,
|
|
95
|
+
default: false
|
|
96
|
+
},
|
|
97
|
+
withSeconds: { type: Boolean },
|
|
98
|
+
valueFormat: { default: "string" },
|
|
99
|
+
labelPosition: { default: "top" },
|
|
100
|
+
shortcuts: {},
|
|
101
|
+
size: {},
|
|
102
|
+
id: {},
|
|
103
|
+
invalid: { type: Boolean },
|
|
104
|
+
showValidateMessage: {
|
|
105
|
+
type: Boolean,
|
|
106
|
+
default: true
|
|
107
|
+
}
|
|
108
|
+
}, {
|
|
109
|
+
"modelValue": { default: "" },
|
|
110
|
+
"modelModifiers": {},
|
|
111
|
+
"open": {
|
|
112
|
+
type: Boolean,
|
|
113
|
+
default: false
|
|
114
|
+
},
|
|
115
|
+
"openModifiers": {}
|
|
116
|
+
}),
|
|
117
|
+
emits: ["update:modelValue", "update:open"],
|
|
118
|
+
setup(__props, { expose: __expose }) {
|
|
119
|
+
function isRangeModel(value) {
|
|
120
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) && ("start" in value || "end" in value);
|
|
121
|
+
}
|
|
122
|
+
const model = useModel(__props, "modelValue");
|
|
123
|
+
const open = useModel(__props, "open");
|
|
124
|
+
const props = __props;
|
|
125
|
+
const fieldId = useId();
|
|
126
|
+
const attrs = useAttrs();
|
|
127
|
+
const { t } = useRsI18n();
|
|
128
|
+
const resolvedSize = useResolvedRsComponentSize(() => props.size);
|
|
129
|
+
const triggerIconSize = computed(() => RS_COMPONENT_SIZE_ICON_PX[resolvedSize.value]);
|
|
130
|
+
/** withTime 默认带秒;显式 withSeconds 优先(勿与 prop 同名,避免模板取到未传 prop) */
|
|
131
|
+
const resolvedWithSeconds = computed(() => props.withSeconds !== void 0 ? props.withSeconds : props.withTime);
|
|
132
|
+
const formContext = useRsFormContext();
|
|
133
|
+
const formItem = useRsFormItemContext();
|
|
134
|
+
const boundToItem = computed(() => isRsFormItemBoundControl(formItem, {
|
|
135
|
+
id: props.id,
|
|
136
|
+
name: props.name
|
|
137
|
+
}));
|
|
138
|
+
const autoMessage = ref("");
|
|
139
|
+
const isInvalid = computed(() => Boolean(props.invalid || boundToItem.value && formItem?.invalid.value || !boundToItem.value && autoMessage.value));
|
|
140
|
+
const triggerId = computed(() => props.id || fieldId);
|
|
141
|
+
const visibleMessage = computed(() => boundToItem.value || props.showValidateMessage === false ? "" : autoMessage.value);
|
|
142
|
+
const viewYear = ref(getTodayDate().year);
|
|
143
|
+
const viewMonth = ref(getTodayDate().month);
|
|
144
|
+
const startViewYear = ref(getTodayDate().year);
|
|
145
|
+
const startViewMonth = ref(getTodayDate().month);
|
|
146
|
+
const endViewYear = ref(getTodayDate().year);
|
|
147
|
+
const endViewMonth = ref(getTodayDate().month);
|
|
148
|
+
const draftDate = ref(null);
|
|
149
|
+
const draftStart = ref(null);
|
|
150
|
+
const draftEnd = ref(null);
|
|
151
|
+
const draftTime = ref("");
|
|
152
|
+
const draftStartTime = ref("");
|
|
153
|
+
const draftEndTime = ref("");
|
|
154
|
+
const convertOptions = computed(() => ({
|
|
155
|
+
valueFormat: props.valueFormat ?? "string",
|
|
156
|
+
withTime: props.withTime
|
|
157
|
+
}));
|
|
158
|
+
const useTimestamp = computed(() => props.valueFormat === "timestamp");
|
|
159
|
+
const rangeModel = computed({
|
|
160
|
+
get() {
|
|
161
|
+
if (!props.range) return { ...EMPTY_DATE_RANGE };
|
|
162
|
+
const value = model.value;
|
|
163
|
+
const opts = convertOptions.value;
|
|
164
|
+
if (isTimestampRange(value)) return {
|
|
165
|
+
start: formatTimestampValue(value[0], opts.withTime),
|
|
166
|
+
end: formatTimestampValue(value[1], opts.withTime)
|
|
167
|
+
};
|
|
168
|
+
if (!isRangeModel(value)) return { ...EMPTY_DATE_RANGE };
|
|
169
|
+
return {
|
|
170
|
+
start: toInternalPickerValue(value.start, opts) || void 0,
|
|
171
|
+
end: toInternalPickerValue(value.end, opts) || void 0
|
|
172
|
+
};
|
|
173
|
+
},
|
|
174
|
+
set(value) {
|
|
175
|
+
const opts = convertOptions.value;
|
|
176
|
+
if (useTimestamp.value) {
|
|
177
|
+
const start = parseTimestampValue(value.start);
|
|
178
|
+
const end = parseTimestampValue(value.end);
|
|
179
|
+
model.value = start != null && end != null ? [start, end] : null;
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
model.value = {
|
|
183
|
+
start: toRangeEndpointString(fromInternalPickerValue(value.start || "", opts)),
|
|
184
|
+
end: toRangeEndpointString(fromInternalPickerValue(value.end || "", opts))
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
const singleModel = computed({
|
|
189
|
+
get() {
|
|
190
|
+
if (props.range) return "";
|
|
191
|
+
return toInternalPickerValue(model.value, convertOptions.value);
|
|
192
|
+
},
|
|
193
|
+
set(value) {
|
|
194
|
+
model.value = fromInternalPickerValue(value, convertOptions.value);
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
const startMaxDate = computed(() => {
|
|
198
|
+
if (!draftEnd.value) return props.maxDate;
|
|
199
|
+
return formatDateParts(draftEnd.value);
|
|
200
|
+
});
|
|
201
|
+
const endMinDate = computed(() => {
|
|
202
|
+
if (!draftStart.value) return props.minDate;
|
|
203
|
+
return formatDateParts(draftStart.value);
|
|
204
|
+
});
|
|
205
|
+
const isEmpty = computed(() => props.range ? isDateRangeEmpty(rangeModel.value) : !singleModel.value);
|
|
206
|
+
const displayValue = computed(() => {
|
|
207
|
+
if (props.range) {
|
|
208
|
+
const formatted = props.withTime ? formatDateTimeRangeLabel(rangeModel.value, t("datePicker.separator")) : formatDateRangeLabel(rangeModel.value, t("datePicker.separator"));
|
|
209
|
+
if (formatted) return formatted;
|
|
210
|
+
if (props.placeholder) return props.placeholder;
|
|
211
|
+
return props.withTime ? t("dateTimePicker.rangePlaceholder") : t("datePicker.rangePlaceholder");
|
|
212
|
+
}
|
|
213
|
+
if (!singleModel.value) return props.placeholder ?? (props.withTime ? t("dateTimePicker.placeholder") : t("datePicker.placeholder"));
|
|
214
|
+
return props.withTime ? formatDateTimeDisplay(singleModel.value) : formatDateDisplay(singleModel.value);
|
|
215
|
+
});
|
|
216
|
+
const triggerIcon = computed(() => {
|
|
217
|
+
if (props.range || props.withTime) return "calendar-clock";
|
|
218
|
+
return "calendar-days";
|
|
219
|
+
});
|
|
220
|
+
function currentTimeValue() {
|
|
221
|
+
const now = getNowDateTime();
|
|
222
|
+
return formatTimeParts(now.hour, now.minute, resolvedWithSeconds.value ? now.second : void 0);
|
|
223
|
+
}
|
|
224
|
+
function resetRangeTimeDrafts() {
|
|
225
|
+
const time = currentTimeValue();
|
|
226
|
+
draftStartTime.value = time;
|
|
227
|
+
draftEndTime.value = time;
|
|
228
|
+
}
|
|
229
|
+
function combineDraftDateTime(date, time) {
|
|
230
|
+
return formatDateTimeParts(date, time, resolvedWithSeconds.value);
|
|
231
|
+
}
|
|
232
|
+
function setEndViewFromStart(start) {
|
|
233
|
+
const next = getNextMonth(start.year, start.month);
|
|
234
|
+
endViewYear.value = next.year;
|
|
235
|
+
endViewMonth.value = next.month;
|
|
236
|
+
}
|
|
237
|
+
function syncSingleDraft() {
|
|
238
|
+
if (props.withTime) {
|
|
239
|
+
const parsed = parseDateTimeValue(singleModel.value);
|
|
240
|
+
if (parsed) {
|
|
241
|
+
draftDate.value = {
|
|
242
|
+
year: parsed.year,
|
|
243
|
+
month: parsed.month,
|
|
244
|
+
day: parsed.day
|
|
245
|
+
};
|
|
246
|
+
draftTime.value = extractTimeFromDateTime(singleModel.value, resolvedWithSeconds.value);
|
|
247
|
+
viewYear.value = parsed.year;
|
|
248
|
+
viewMonth.value = parsed.month;
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
const today = getTodayDate();
|
|
252
|
+
draftDate.value = null;
|
|
253
|
+
draftTime.value = currentTimeValue();
|
|
254
|
+
viewYear.value = today.year;
|
|
255
|
+
viewMonth.value = today.month;
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
const parsed = parseDateValue(singleModel.value);
|
|
259
|
+
if (parsed) {
|
|
260
|
+
draftDate.value = parsed;
|
|
261
|
+
viewYear.value = parsed.year;
|
|
262
|
+
viewMonth.value = parsed.month;
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
const today = getTodayDate();
|
|
266
|
+
draftDate.value = null;
|
|
267
|
+
viewYear.value = today.year;
|
|
268
|
+
viewMonth.value = today.month;
|
|
269
|
+
}
|
|
270
|
+
function syncRangeDraft() {
|
|
271
|
+
const today = getTodayDate();
|
|
272
|
+
const value = rangeModel.value;
|
|
273
|
+
if (props.withTime) {
|
|
274
|
+
const start = parseDateTimeValue(value.start);
|
|
275
|
+
const end = parseDateTimeValue(value.end);
|
|
276
|
+
draftStart.value = start ? {
|
|
277
|
+
year: start.year,
|
|
278
|
+
month: start.month,
|
|
279
|
+
day: start.day
|
|
280
|
+
} : null;
|
|
281
|
+
draftEnd.value = end ? {
|
|
282
|
+
year: end.year,
|
|
283
|
+
month: end.month,
|
|
284
|
+
day: end.day
|
|
285
|
+
} : null;
|
|
286
|
+
if (start) {
|
|
287
|
+
draftStartTime.value = extractTimeFromDateTime(value.start, resolvedWithSeconds.value);
|
|
288
|
+
startViewYear.value = start.year;
|
|
289
|
+
startViewMonth.value = start.month;
|
|
290
|
+
} else {
|
|
291
|
+
resetRangeTimeDrafts();
|
|
292
|
+
startViewYear.value = today.year;
|
|
293
|
+
startViewMonth.value = today.month;
|
|
294
|
+
}
|
|
295
|
+
if (end) {
|
|
296
|
+
draftEndTime.value = extractTimeFromDateTime(value.end, resolvedWithSeconds.value);
|
|
297
|
+
endViewYear.value = end.year;
|
|
298
|
+
endViewMonth.value = end.month;
|
|
299
|
+
} else if (start) {
|
|
300
|
+
draftEndTime.value = draftStartTime.value;
|
|
301
|
+
setEndViewFromStart(start);
|
|
302
|
+
} else {
|
|
303
|
+
const next = getNextMonth(today.year, today.month);
|
|
304
|
+
endViewYear.value = next.year;
|
|
305
|
+
endViewMonth.value = next.month;
|
|
306
|
+
}
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
const start = parseDateValue(value.start);
|
|
310
|
+
const end = parseDateValue(value.end);
|
|
311
|
+
draftStart.value = start;
|
|
312
|
+
draftEnd.value = end;
|
|
313
|
+
if (start) {
|
|
314
|
+
startViewYear.value = start.year;
|
|
315
|
+
startViewMonth.value = start.month;
|
|
316
|
+
} else {
|
|
317
|
+
startViewYear.value = today.year;
|
|
318
|
+
startViewMonth.value = today.month;
|
|
319
|
+
}
|
|
320
|
+
if (end) {
|
|
321
|
+
endViewYear.value = end.year;
|
|
322
|
+
endViewMonth.value = end.month;
|
|
323
|
+
} else if (start) setEndViewFromStart(start);
|
|
324
|
+
else {
|
|
325
|
+
const next = getNextMonth(today.year, today.month);
|
|
326
|
+
endViewYear.value = next.year;
|
|
327
|
+
endViewMonth.value = next.month;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
function syncDraftFromModel() {
|
|
331
|
+
if (props.range) {
|
|
332
|
+
syncRangeDraft();
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
335
|
+
syncSingleDraft();
|
|
336
|
+
}
|
|
337
|
+
function confirmSingleSelection() {
|
|
338
|
+
if (!draftDate.value) return;
|
|
339
|
+
if (props.withTime) {
|
|
340
|
+
const combined = combineDraftDateTime(draftDate.value, draftTime.value);
|
|
341
|
+
if (!combined) return;
|
|
342
|
+
singleModel.value = combined;
|
|
343
|
+
open.value = false;
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
if (!isDateWithinBounds(draftDate.value.year, draftDate.value.month, draftDate.value.day, {
|
|
347
|
+
minDate: props.minDate,
|
|
348
|
+
maxDate: props.maxDate
|
|
349
|
+
})) return;
|
|
350
|
+
singleModel.value = formatDateParts(draftDate.value);
|
|
351
|
+
open.value = false;
|
|
352
|
+
}
|
|
353
|
+
function confirmRangeSelection() {
|
|
354
|
+
if (!draftStart.value || !draftEnd.value) return;
|
|
355
|
+
if (props.withTime) {
|
|
356
|
+
const start = combineDraftDateTime(draftStart.value, draftStartTime.value);
|
|
357
|
+
const end = combineDraftDateTime(draftEnd.value, draftEndTime.value);
|
|
358
|
+
if (!start || !end) return;
|
|
359
|
+
if (!isDateRangeOrdered({
|
|
360
|
+
start,
|
|
361
|
+
end
|
|
362
|
+
})) return;
|
|
363
|
+
rangeModel.value = {
|
|
364
|
+
start,
|
|
365
|
+
end
|
|
366
|
+
};
|
|
367
|
+
open.value = false;
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
const start = formatDateParts(draftStart.value);
|
|
371
|
+
const end = formatDateParts(draftEnd.value);
|
|
372
|
+
if (!isDateRangeOrdered({
|
|
373
|
+
start,
|
|
374
|
+
end
|
|
375
|
+
})) return;
|
|
376
|
+
if (!isDateWithinBounds(draftStart.value.year, draftStart.value.month, draftStart.value.day, {
|
|
377
|
+
minDate: props.minDate,
|
|
378
|
+
maxDate: props.maxDate
|
|
379
|
+
}) || !isDateWithinBounds(draftEnd.value.year, draftEnd.value.month, draftEnd.value.day, {
|
|
380
|
+
minDate: props.minDate,
|
|
381
|
+
maxDate: props.maxDate
|
|
382
|
+
})) return;
|
|
383
|
+
rangeModel.value = {
|
|
384
|
+
start,
|
|
385
|
+
end
|
|
386
|
+
};
|
|
387
|
+
open.value = false;
|
|
388
|
+
}
|
|
389
|
+
function confirmSelection() {
|
|
390
|
+
if (props.range) {
|
|
391
|
+
confirmRangeSelection();
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
confirmSingleSelection();
|
|
395
|
+
}
|
|
396
|
+
function applyShortcut(shortcut) {
|
|
397
|
+
if (props.disabled) return;
|
|
398
|
+
const normalized = normalizeShortcutValue(shortcut.value(), { withTime: props.withTime });
|
|
399
|
+
if (!normalized) return;
|
|
400
|
+
if (props.range) {
|
|
401
|
+
const rangeValue = typeof normalized === "string" ? {
|
|
402
|
+
start: normalized,
|
|
403
|
+
end: normalized
|
|
404
|
+
} : normalized;
|
|
405
|
+
if (!rangeValue.start || !rangeValue.end) return;
|
|
406
|
+
if (!isDateRangeOrdered(rangeValue)) return;
|
|
407
|
+
rangeModel.value = rangeValue;
|
|
408
|
+
open.value = false;
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
if (typeof normalized !== "string") return;
|
|
412
|
+
singleModel.value = normalized;
|
|
413
|
+
open.value = false;
|
|
414
|
+
}
|
|
415
|
+
function clearSelection() {
|
|
416
|
+
if (props.range) {
|
|
417
|
+
if (useTimestamp.value) model.value = null;
|
|
418
|
+
else rangeModel.value = { ...EMPTY_DATE_RANGE };
|
|
419
|
+
draftStart.value = null;
|
|
420
|
+
draftEnd.value = null;
|
|
421
|
+
if (props.withTime) resetRangeTimeDrafts();
|
|
422
|
+
} else {
|
|
423
|
+
singleModel.value = "";
|
|
424
|
+
draftDate.value = null;
|
|
425
|
+
if (props.withTime) draftTime.value = currentTimeValue();
|
|
426
|
+
}
|
|
427
|
+
open.value = false;
|
|
428
|
+
}
|
|
429
|
+
function selectToday() {
|
|
430
|
+
const today = getTodayDate();
|
|
431
|
+
const now = getNowDateTime();
|
|
432
|
+
if (props.range) {
|
|
433
|
+
draftStart.value = today;
|
|
434
|
+
draftEnd.value = today;
|
|
435
|
+
startViewYear.value = today.year;
|
|
436
|
+
startViewMonth.value = today.month;
|
|
437
|
+
endViewYear.value = today.year;
|
|
438
|
+
endViewMonth.value = today.month;
|
|
439
|
+
if (props.withTime) {
|
|
440
|
+
const time = formatTimeParts(now.hour, now.minute, resolvedWithSeconds.value ? now.second : void 0);
|
|
441
|
+
draftStartTime.value = time;
|
|
442
|
+
draftEndTime.value = time;
|
|
443
|
+
}
|
|
444
|
+
confirmRangeSelection();
|
|
445
|
+
return;
|
|
446
|
+
}
|
|
447
|
+
draftDate.value = today;
|
|
448
|
+
viewYear.value = today.year;
|
|
449
|
+
viewMonth.value = today.month;
|
|
450
|
+
if (props.withTime) draftTime.value = formatTimeParts(now.hour, now.minute, resolvedWithSeconds.value ? now.second : void 0);
|
|
451
|
+
confirmSingleSelection();
|
|
452
|
+
}
|
|
453
|
+
function handleDateSelect(date) {
|
|
454
|
+
draftDate.value = date;
|
|
455
|
+
viewYear.value = date.year;
|
|
456
|
+
viewMonth.value = date.month;
|
|
457
|
+
}
|
|
458
|
+
function handleStartSelect(date) {
|
|
459
|
+
if (!isDateWithinBounds(date.year, date.month, date.day, {
|
|
460
|
+
minDate: props.minDate,
|
|
461
|
+
maxDate: startMaxDate.value
|
|
462
|
+
})) return;
|
|
463
|
+
draftStart.value = date;
|
|
464
|
+
startViewYear.value = date.year;
|
|
465
|
+
startViewMonth.value = date.month;
|
|
466
|
+
if (draftEnd.value && compareDates(date, draftEnd.value) > 0) {
|
|
467
|
+
draftEnd.value = null;
|
|
468
|
+
setEndViewFromStart(date);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
function handleEndSelect(date) {
|
|
472
|
+
if (!isDateWithinBounds(date.year, date.month, date.day, {
|
|
473
|
+
minDate: endMinDate.value,
|
|
474
|
+
maxDate: props.maxDate
|
|
475
|
+
})) return;
|
|
476
|
+
if (draftStart.value && compareDates(date, draftStart.value) < 0) return;
|
|
477
|
+
draftEnd.value = date;
|
|
478
|
+
endViewYear.value = date.year;
|
|
479
|
+
endViewMonth.value = date.month;
|
|
480
|
+
}
|
|
481
|
+
function clearValidation() {
|
|
482
|
+
autoMessage.value = "";
|
|
483
|
+
}
|
|
484
|
+
function setFieldValue(value) {
|
|
485
|
+
if (props.range) {
|
|
486
|
+
if (isRangeModel(value)) {
|
|
487
|
+
model.value = value;
|
|
488
|
+
return;
|
|
489
|
+
}
|
|
490
|
+
if (Array.isArray(value) && value.length >= 2) {
|
|
491
|
+
model.value = {
|
|
492
|
+
start: String(value[0] ?? ""),
|
|
493
|
+
end: String(value[1] ?? "")
|
|
494
|
+
};
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
497
|
+
model.value = { ...EMPTY_DATE_RANGE };
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
model.value = value == null ? "" : value;
|
|
501
|
+
}
|
|
502
|
+
async function runValidate(trigger = "submit") {
|
|
503
|
+
const formRules = formContext?.getFieldRules(props.name) ?? [];
|
|
504
|
+
const localRules = buildLocalInputRules({ required: props.required });
|
|
505
|
+
const rules = [...formRules, ...localRules];
|
|
506
|
+
if (!rules.length) {
|
|
507
|
+
autoMessage.value = "";
|
|
508
|
+
return {
|
|
509
|
+
valid: true,
|
|
510
|
+
name: props.name
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
const result = await runFormFieldRules(model.value, rules, { trigger });
|
|
514
|
+
autoMessage.value = result.message ?? "";
|
|
515
|
+
return {
|
|
516
|
+
valid: result.valid,
|
|
517
|
+
message: result.message,
|
|
518
|
+
name: props.name
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
useRsFormField(() => ({
|
|
522
|
+
get name() {
|
|
523
|
+
return props.name;
|
|
524
|
+
},
|
|
525
|
+
getValue: () => model.value,
|
|
526
|
+
setValue: setFieldValue,
|
|
527
|
+
validate: (trigger) => runValidate(trigger ?? "submit"),
|
|
528
|
+
clearValidation,
|
|
529
|
+
setError: (message) => {
|
|
530
|
+
autoMessage.value = message;
|
|
531
|
+
}
|
|
532
|
+
}));
|
|
533
|
+
__expose({
|
|
534
|
+
setValue: setFieldValue,
|
|
535
|
+
clearValidation,
|
|
536
|
+
validate: runValidate
|
|
537
|
+
});
|
|
538
|
+
watch(open, (isOpen) => {
|
|
539
|
+
if (isOpen) syncDraftFromModel();
|
|
540
|
+
if (!isOpen && props.name) runValidate("change");
|
|
541
|
+
});
|
|
542
|
+
return (_ctx, _cache) => {
|
|
543
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(["rs-field", `rs-field--label-${__props.labelPosition}`]) }, [
|
|
544
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_1, [__props.labelPosition === "left" ? (openBlock(), createElementBlock("label", {
|
|
545
|
+
key: 0,
|
|
546
|
+
for: unref(fieldId)
|
|
547
|
+
}, toDisplayString(__props.label), 9, _hoisted_2)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(__props.label), 1)], 64)), __props.required ? (openBlock(), createElementBlock("span", _hoisted_3, "*")) : createCommentVNode("", true)])) : createCommentVNode("", true),
|
|
548
|
+
createElementVNode("div", { class: normalizeClass(["rs-date-picker", `rs-date-picker--${unref(resolvedSize)}`]) }, [createVNode(unref(PopoverRoot), {
|
|
549
|
+
open: open.value,
|
|
550
|
+
"onUpdate:open": _cache[9] || (_cache[9] = ($event) => open.value = $event)
|
|
551
|
+
}, {
|
|
552
|
+
default: withCtx(() => [createVNode(unref(PopoverTrigger), mergeProps(unref(attrs), {
|
|
553
|
+
id: triggerId.value,
|
|
554
|
+
type: "button",
|
|
555
|
+
class: ["rs-date-picker__trigger", {
|
|
556
|
+
"rs-date-picker__trigger--placeholder": isEmpty.value,
|
|
557
|
+
"rs-date-picker__trigger--invalid": isInvalid.value
|
|
558
|
+
}],
|
|
559
|
+
disabled: __props.disabled,
|
|
560
|
+
"aria-invalid": isInvalid.value || void 0
|
|
561
|
+
}), {
|
|
562
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_4, [createVNode(RsIcon_default, {
|
|
563
|
+
name: triggerIcon.value,
|
|
564
|
+
size: triggerIconSize.value,
|
|
565
|
+
class: "rs-date-picker__icon"
|
|
566
|
+
}, null, 8, ["name", "size"]), createElementVNode("span", _hoisted_5, toDisplayString(displayValue.value), 1)]), createVNode(RsIcon_default, {
|
|
567
|
+
name: "chevron-down",
|
|
568
|
+
size: triggerIconSize.value,
|
|
569
|
+
class: "rs-date-picker__chevron"
|
|
570
|
+
}, null, 8, ["size"])]),
|
|
571
|
+
_: 1
|
|
572
|
+
}, 16, [
|
|
573
|
+
"id",
|
|
574
|
+
"class",
|
|
575
|
+
"disabled",
|
|
576
|
+
"aria-invalid"
|
|
577
|
+
]), createVNode(unref(PopoverPortal), null, {
|
|
578
|
+
default: withCtx(() => [createVNode(unref(PopoverContent), {
|
|
579
|
+
class: normalizeClass(["rs-date-picker__content", { "rs-date-picker__content--range": __props.range }]),
|
|
580
|
+
"side-offset": 6,
|
|
581
|
+
align: "start"
|
|
582
|
+
}, {
|
|
583
|
+
default: withCtx(() => [open.value ? (openBlock(), createElementBlock("div", _hoisted_6, [__props.range ? (openBlock(), createElementBlock("div", _hoisted_7, [createElementVNode("section", _hoisted_8, [
|
|
584
|
+
createElementVNode("span", _hoisted_9, toDisplayString(__props.withTime ? unref(t)("dateTimePicker.rangeStart") : unref(t)("datePicker.rangeStart")), 1),
|
|
585
|
+
createVNode(RsCalendarGrid_default, {
|
|
586
|
+
"view-year": startViewYear.value,
|
|
587
|
+
"onUpdate:viewYear": _cache[0] || (_cache[0] = ($event) => startViewYear.value = $event),
|
|
588
|
+
"view-month": startViewMonth.value,
|
|
589
|
+
"onUpdate:viewMonth": _cache[1] || (_cache[1] = ($event) => startViewMonth.value = $event),
|
|
590
|
+
selected: draftStart.value,
|
|
591
|
+
"range-start": draftStart.value,
|
|
592
|
+
"range-end": draftEnd.value,
|
|
593
|
+
"min-date": __props.minDate,
|
|
594
|
+
"max-date": startMaxDate.value,
|
|
595
|
+
onSelect: handleStartSelect
|
|
596
|
+
}, null, 8, [
|
|
597
|
+
"view-year",
|
|
598
|
+
"view-month",
|
|
599
|
+
"selected",
|
|
600
|
+
"range-start",
|
|
601
|
+
"range-end",
|
|
602
|
+
"min-date",
|
|
603
|
+
"max-date"
|
|
604
|
+
]),
|
|
605
|
+
__props.withTime ? (openBlock(), createElementBlock("div", _hoisted_10, [createElementVNode("span", _hoisted_11, toDisplayString(unref(t)("dateTimePicker.time")), 1), createVNode(RsTimePicker_default, {
|
|
606
|
+
modelValue: draftStartTime.value,
|
|
607
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => draftStartTime.value = $event),
|
|
608
|
+
class: "rs-date-picker__time-picker",
|
|
609
|
+
embedded: "",
|
|
610
|
+
size: unref(resolvedSize),
|
|
611
|
+
"with-seconds": resolvedWithSeconds.value,
|
|
612
|
+
disabled: !draftStart.value || __props.disabled
|
|
613
|
+
}, null, 8, [
|
|
614
|
+
"modelValue",
|
|
615
|
+
"size",
|
|
616
|
+
"with-seconds",
|
|
617
|
+
"disabled"
|
|
618
|
+
])])) : createCommentVNode("", true)
|
|
619
|
+
]), createElementVNode("section", _hoisted_12, [
|
|
620
|
+
createElementVNode("span", _hoisted_13, toDisplayString(__props.withTime ? unref(t)("dateTimePicker.rangeEnd") : unref(t)("datePicker.rangeEnd")), 1),
|
|
621
|
+
createVNode(RsCalendarGrid_default, {
|
|
622
|
+
"view-year": endViewYear.value,
|
|
623
|
+
"onUpdate:viewYear": _cache[3] || (_cache[3] = ($event) => endViewYear.value = $event),
|
|
624
|
+
"view-month": endViewMonth.value,
|
|
625
|
+
"onUpdate:viewMonth": _cache[4] || (_cache[4] = ($event) => endViewMonth.value = $event),
|
|
626
|
+
selected: draftEnd.value,
|
|
627
|
+
"range-start": draftStart.value,
|
|
628
|
+
"range-end": draftEnd.value,
|
|
629
|
+
"min-date": endMinDate.value,
|
|
630
|
+
"max-date": __props.maxDate,
|
|
631
|
+
onSelect: handleEndSelect
|
|
632
|
+
}, null, 8, [
|
|
633
|
+
"view-year",
|
|
634
|
+
"view-month",
|
|
635
|
+
"selected",
|
|
636
|
+
"range-start",
|
|
637
|
+
"range-end",
|
|
638
|
+
"min-date",
|
|
639
|
+
"max-date"
|
|
640
|
+
]),
|
|
641
|
+
__props.withTime ? (openBlock(), createElementBlock("div", _hoisted_14, [createElementVNode("span", _hoisted_15, toDisplayString(unref(t)("dateTimePicker.time")), 1), createVNode(RsTimePicker_default, {
|
|
642
|
+
modelValue: draftEndTime.value,
|
|
643
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => draftEndTime.value = $event),
|
|
644
|
+
class: "rs-date-picker__time-picker",
|
|
645
|
+
embedded: "",
|
|
646
|
+
size: unref(resolvedSize),
|
|
647
|
+
"with-seconds": resolvedWithSeconds.value,
|
|
648
|
+
disabled: !draftEnd.value || __props.disabled
|
|
649
|
+
}, null, 8, [
|
|
650
|
+
"modelValue",
|
|
651
|
+
"size",
|
|
652
|
+
"with-seconds",
|
|
653
|
+
"disabled"
|
|
654
|
+
])])) : createCommentVNode("", true)
|
|
655
|
+
])])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createVNode(RsCalendarGrid_default, {
|
|
656
|
+
"view-year": viewYear.value,
|
|
657
|
+
"onUpdate:viewYear": _cache[6] || (_cache[6] = ($event) => viewYear.value = $event),
|
|
658
|
+
"view-month": viewMonth.value,
|
|
659
|
+
"onUpdate:viewMonth": _cache[7] || (_cache[7] = ($event) => viewMonth.value = $event),
|
|
660
|
+
selected: draftDate.value,
|
|
661
|
+
"min-date": __props.minDate,
|
|
662
|
+
"max-date": __props.maxDate,
|
|
663
|
+
onSelect: handleDateSelect
|
|
664
|
+
}, null, 8, [
|
|
665
|
+
"view-year",
|
|
666
|
+
"view-month",
|
|
667
|
+
"selected",
|
|
668
|
+
"min-date",
|
|
669
|
+
"max-date"
|
|
670
|
+
]), __props.withTime ? (openBlock(), createElementBlock("div", _hoisted_16, [createElementVNode("span", _hoisted_17, toDisplayString(unref(t)("dateTimePicker.time")), 1), createVNode(RsTimePicker_default, {
|
|
671
|
+
modelValue: draftTime.value,
|
|
672
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => draftTime.value = $event),
|
|
673
|
+
class: "rs-date-picker__time-picker",
|
|
674
|
+
embedded: "",
|
|
675
|
+
size: unref(resolvedSize),
|
|
676
|
+
"with-seconds": resolvedWithSeconds.value,
|
|
677
|
+
disabled: !draftDate.value || __props.disabled
|
|
678
|
+
}, null, 8, [
|
|
679
|
+
"modelValue",
|
|
680
|
+
"size",
|
|
681
|
+
"with-seconds",
|
|
682
|
+
"disabled"
|
|
683
|
+
])])) : createCommentVNode("", true)], 64)), createElementVNode("footer", _hoisted_18, [createElementVNode("div", _hoisted_19, [__props.shortcuts?.length ? (openBlock(), createElementBlock("div", _hoisted_20, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.shortcuts, (item) => {
|
|
684
|
+
return openBlock(), createElementBlock("button", {
|
|
685
|
+
key: item.label,
|
|
686
|
+
type: "button",
|
|
687
|
+
class: "rs-date-picker__shortcut",
|
|
688
|
+
disabled: __props.disabled,
|
|
689
|
+
onClick: ($event) => applyShortcut(item)
|
|
690
|
+
}, toDisplayString(item.label), 9, _hoisted_21);
|
|
691
|
+
}), 128))])) : (openBlock(), createElementBlock("button", {
|
|
692
|
+
key: 1,
|
|
693
|
+
type: "button",
|
|
694
|
+
class: "rs-date-picker__link",
|
|
695
|
+
onClick: selectToday
|
|
696
|
+
}, toDisplayString(__props.range ? __props.withTime ? unref(t)("dateTimePicker.now") : unref(t)("datePicker.rangeToday") : __props.withTime ? unref(t)("dateTimePicker.now") : unref(t)("datePicker.today")), 1))]), createElementVNode("div", _hoisted_22, [createElementVNode("button", {
|
|
697
|
+
type: "button",
|
|
698
|
+
class: "rs-date-picker__ghost",
|
|
699
|
+
onClick: clearSelection
|
|
700
|
+
}, toDisplayString(__props.withTime ? unref(t)("dateTimePicker.clear") : unref(t)("datePicker.clear")), 1), createElementVNode("button", {
|
|
701
|
+
type: "button",
|
|
702
|
+
class: "rs-date-picker__confirm",
|
|
703
|
+
disabled: __props.range ? !draftStart.value || !draftEnd.value : !draftDate.value || __props.withTime && !draftTime.value,
|
|
704
|
+
onClick: confirmSelection
|
|
705
|
+
}, toDisplayString(unref(t)("datePicker.confirm")), 9, _hoisted_23)])])])) : createCommentVNode("", true)]),
|
|
706
|
+
_: 1
|
|
707
|
+
}, 8, ["class"])]),
|
|
708
|
+
_: 1
|
|
709
|
+
})]),
|
|
710
|
+
_: 1
|
|
711
|
+
}, 8, ["open"])], 2),
|
|
712
|
+
visibleMessage.value ? (openBlock(), createElementBlock("p", _hoisted_24, toDisplayString(visibleMessage.value), 1)) : createCommentVNode("", true),
|
|
713
|
+
__props.hint ? (openBlock(), createElementBlock("span", _hoisted_25, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
714
|
+
], 2);
|
|
715
|
+
};
|
|
716
|
+
}
|
|
717
|
+
});
|
|
718
|
+
//#endregion
|
|
719
|
+
export { RsDatePicker_vue_vue_type_script_setup_true_lang_default as default };
|