naive-ui 2.43.0 → 2.43.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/README.zh-CN.md +10 -1
- package/dist/index.js +10297 -10084
- package/dist/index.mjs +10297 -10084
- package/dist/index.prod.js +1 -1
- package/dist/index.prod.mjs +1 -1
- package/es/_internal/clear/src/Clear.d.ts +1 -1
- package/es/_internal/close/src/Close.d.ts +2 -2
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +3 -3
- package/es/_internal/focus-detector/src/FocusDetector.d.ts +1 -1
- package/es/_internal/icon/src/Icon.d.ts +1 -1
- package/es/_internal/icons/replaceable.mjs +1 -1
- package/es/_internal/loading/src/Loading.d.ts +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +1 -1
- package/es/_internal/select-menu/src/SelectGroupHeader.d.ts +2 -2
- package/es/_internal/select-menu/src/SelectMenu.d.ts +6 -6
- package/es/_internal/select-menu/src/SelectOption.d.ts +2 -2
- package/es/_internal/selection/src/Selection.d.ts +9 -9
- package/es/_internal/slot-machine/src/SlotMachineNumber.d.ts +1 -1
- package/es/_internal/suffix/src/Suffix.d.ts +1 -1
- package/es/_mixins/use-config.d.ts +1 -1
- package/es/_mixins/use-css-vars-class.d.ts +1 -1
- package/es/_mixins/use-form-item.d.ts +1 -1
- package/es/_mixins/use-hljs.d.ts +1 -1
- package/es/_mixins/use-locale.d.ts +1 -1
- package/es/_mixins/use-rtl.d.ts +1 -1
- package/es/_mixins/use-style.d.ts +1 -1
- package/es/_mixins/use-theme.d.ts +1 -1
- package/es/_mixins/use-theme.mjs +1 -1
- package/es/_utils/composable/use-adjusted-to.d.ts +1 -1
- package/es/_utils/composable/use-browser-location.d.ts +1 -1
- package/es/_utils/composable/use-collection.d.ts +1 -1
- package/es/_utils/composable/use-deferred-true.d.ts +1 -1
- package/es/_utils/composable/use-is-composing.d.ts +1 -1
- package/es/_utils/composable/use-lock-html-scroll.d.ts +1 -1
- package/es/_utils/composable/use-resize.d.ts +1 -1
- package/es/_utils/cssr/index.d.ts +1 -1
- package/es/_utils/vue/flatten.d.ts +1 -1
- package/es/_utils/vue/is-node-v-show-false.d.ts +1 -1
- package/es/_utils/vue/render.d.ts +1 -1
- package/es/_utils/vue/resolve-slot.d.ts +1 -1
- package/es/affix/src/Affix.d.ts +3 -3
- package/es/alert/src/Alert.d.ts +2 -2
- package/es/anchor/src/AnchorAdapter.d.ts +2 -2
- package/es/anchor/src/BaseAnchor.d.ts +3 -3
- package/es/anchor/src/Link.d.ts +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +7 -7
- package/es/avatar/src/Avatar.d.ts +4 -4
- package/es/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/es/back-top/src/BackTop.d.ts +2 -2
- package/es/badge/src/Badge.d.ts +2 -2
- package/es/breadcrumb/src/Breadcrumb.d.ts +2 -2
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/es/button/src/Button.d.ts +11 -11
- package/es/button/src/styles/index.cssr.mjs +7 -7
- package/es/button-group/src/ButtonGroup.d.ts +1 -1
- package/es/calendar/src/Calendar.d.ts +1 -1
- package/es/card/src/Card.d.ts +3 -3
- package/es/carousel/src/Carousel.d.ts +6 -6
- package/es/carousel/src/CarouselDots.d.ts +1 -1
- package/es/carousel/src/CarouselItem.mjs +1 -1
- package/es/cascader/src/Cascader.d.ts +8 -8
- package/es/cascader/src/CascaderMenu.d.ts +2 -2
- package/es/cascader/src/CascaderOption.d.ts +2 -2
- package/es/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/es/cascader/src/CascaderSubmenu.d.ts +3 -3
- package/es/checkbox/src/Checkbox.d.ts +10 -10
- package/es/checkbox/src/CheckboxGroup.d.ts +2 -2
- package/es/code/src/Code.d.ts +4 -4
- package/es/collapse/src/Collapse.d.ts +2 -2
- package/es/collapse/src/CollapseItem.d.ts +2 -2
- package/es/collapse/src/CollapseItemContent.d.ts +1 -1
- package/es/collapse-transition/src/CollapseTransition.d.ts +2 -2
- package/es/color-picker/src/AlphaSlider.d.ts +3 -3
- package/es/color-picker/src/ColorInput.d.ts +2 -2
- package/es/color-picker/src/ColorInputUnit.d.ts +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +5 -5
- package/es/color-picker/src/ColorPickerSwatches.d.ts +2 -2
- package/es/color-picker/src/ColorPickerTrigger.d.ts +2 -2
- package/es/color-picker/src/ColorPreview.d.ts +2 -2
- package/es/color-picker/src/HueSlider.d.ts +1 -1
- package/es/color-picker/src/Pallete.d.ts +1 -1
- package/es/color-picker/src/utils.d.ts +1 -1
- package/es/composables/use-theme-vars.d.ts +1 -1
- package/es/config-provider/src/ConfigProvider.d.ts +5 -5
- package/es/config-provider/src/ConfigProvider.mjs +1 -1
- package/es/countdown/src/Countdown.d.ts +2 -2
- package/es/data-table/src/DataTable.d.ts +6 -6
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +1 -1
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -2
- package/es/data-table/src/HeaderButton/RenderFilter.d.ts +2 -2
- package/es/data-table/src/HeaderButton/RenderSorter.d.ts +1 -1
- package/es/data-table/src/HeaderButton/SortButton.d.ts +2 -2
- package/es/data-table/src/TableParts/Body.d.ts +2 -2
- package/es/data-table/src/TableParts/BodyCheckbox.d.ts +2 -2
- package/es/data-table/src/TableParts/BodyRadio.d.ts +2 -2
- package/es/data-table/src/TableParts/Cell.d.ts +1 -1
- package/es/data-table/src/TableParts/Cell.mjs +1 -1
- package/es/data-table/src/TableParts/ExpandTrigger.d.ts +2 -2
- package/es/data-table/src/TableParts/Header.d.ts +1 -1
- package/es/data-table/src/use-check.d.ts +1 -1
- package/es/data-table/src/use-expand.d.ts +1 -1
- package/es/data-table/src/use-group-header.d.ts +1 -1
- package/es/data-table/src/use-scroll.d.ts +1 -1
- package/es/data-table/src/use-sorter.d.ts +1 -1
- package/es/data-table/src/use-table-data.d.ts +1 -1
- package/es/date-picker/src/DatePicker.d.ts +4 -4
- package/es/date-picker/src/interface.d.ts +6 -19
- package/es/date-picker/src/panel/date.d.ts +1 -1
- package/es/date-picker/src/panel/month.d.ts +2 -2
- package/es/date-picker/src/panel/monthrange.d.ts +2 -2
- package/es/date-picker/src/panel/panelHeader.d.ts +1 -1
- package/es/date-picker/src/panel/use-calendar.d.ts +1 -1
- package/es/date-picker/src/panel/use-calendar.mjs +7 -2
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -2
- package/es/date-picker/src/panel/use-dual-calendar.mjs +5 -2
- package/es/date-picker/src/panel/use-panel-common.d.ts +2 -2
- package/es/date-picker/src/panel/use-panel-common.mjs +1 -1
- package/es/date-picker/src/props.mjs +1 -1
- package/es/date-picker/src/utils.d.ts +12 -2
- package/es/date-picker/src/utils.mjs +9 -1
- package/es/date-picker/src/validation-utils.d.ts +1 -1
- package/es/descriptions/src/Descriptions.d.ts +4 -4
- package/es/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/es/descriptions/styles/light.d.ts +1 -1
- package/es/dialog/src/Dialog.d.ts +3 -3
- package/es/dialog/src/DialogEnvironment.d.ts +4 -4
- package/es/dialog/src/DialogProvider.d.ts +1062 -720
- package/es/dialog/src/composables.d.ts +1 -1
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/dialog/src/styles/index.cssr.mjs +17 -17
- package/es/discrete/src/InjectionExtractor.d.ts +1 -1
- package/es/discrete/src/discreteApp.d.ts +7 -7
- package/es/divider/src/Divider.d.ts +2 -2
- package/es/drawer/src/Drawer.d.ts +3 -3
- package/es/drawer/src/DrawerBodyWrapper.d.ts +2 -2
- package/es/drawer/src/DrawerContent.d.ts +1 -1
- package/es/dropdown/src/Dropdown.d.ts +10 -10
- package/es/dropdown/src/DropdownGroup.d.ts +1 -1
- package/es/dropdown/src/DropdownMenu.d.ts +1 -1
- package/es/dropdown/src/DropdownOption.d.ts +2 -2
- package/es/dropdown/src/DropdownRenderOption.d.ts +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +3 -3
- package/es/dynamic-input/src/InputPreset.d.ts +1 -1
- package/es/dynamic-input/src/PairPreset.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +5 -5
- package/es/element/src/Element.mjs +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +1 -1
- package/es/empty/src/Empty.d.ts +2 -2
- package/es/equation/src/Equation.d.ts +1 -1
- package/es/flex/src/Flex.d.ts +4 -4
- package/es/float-button/src/FloatButton.d.ts +3 -3
- package/es/float-button-group/src/FloatButtonGroup.d.ts +2 -2
- package/es/form/src/Form.d.ts +3 -3
- package/es/form/src/FormItem.d.ts +3 -3
- package/es/form/src/FormItem.mjs +1 -1
- package/es/form/src/FormItemCol.d.ts +2 -2
- package/es/form/src/FormItemGridItem.d.ts +3 -3
- package/es/form/src/FormItemRow.d.ts +1 -1
- package/es/form/src/utils.d.ts +2 -2
- package/es/form/src/utils.mjs +1 -1
- package/es/global-style/src/GlobalStyle.mjs +1 -1
- package/es/gradient-text/src/GradientText.d.ts +3 -3
- package/es/grid/src/Grid.d.ts +6 -6
- package/es/grid/src/GridItem.d.ts +3 -3
- package/es/heatmap/src/Heatmap.d.ts +2 -2
- package/es/heatmap/src/Heatmap.mjs +1 -1
- package/es/heatmap/src/Rect.d.ts +1 -1
- package/es/heatmap/src/utils/index.mjs +1 -1
- package/es/heatmap/styles/light.d.ts +1 -1
- package/es/icon/src/Icon.d.ts +1 -1
- package/es/icon-wrapper/src/IconWrapper.d.ts +2 -2
- package/es/image/src/Image.d.ts +3 -3
- package/es/image/src/ImagePreview.d.ts +1 -1
- package/es/image/src/ImagePreview.mjs +1 -1
- package/es/infinite-scroll/src/InfiniteScroll.d.ts +2 -2
- package/es/input/src/Input.d.ts +17 -17
- package/es/input/src/InputGroupLabel.d.ts +1 -1
- package/es/input-number/src/InputNumber.d.ts +8 -8
- package/es/input-otp/src/InputOtp.d.ts +4 -4
- package/es/layout/src/Layout.d.ts +3 -3
- package/es/layout/src/LayoutContent.d.ts +1 -1
- package/es/layout/src/LayoutFooter.d.ts +1 -1
- package/es/layout/src/LayoutHeader.d.ts +1 -1
- package/es/layout/src/LayoutSider.d.ts +3 -3
- package/es/layout/src/ToggleBar.d.ts +1 -1
- package/es/layout/src/ToggleButton.d.ts +1 -1
- package/es/legacy-grid/src/Col.d.ts +4 -4
- package/es/legacy-grid/src/Row.d.ts +2 -2
- package/es/legacy-transfer/src/Transfer.d.ts +5 -5
- package/es/legacy-transfer/src/TransferFilter.d.ts +1 -1
- package/es/legacy-transfer/src/TransferHeader.d.ts +1 -1
- package/es/legacy-transfer/src/TransferList.d.ts +4 -4
- package/es/legacy-transfer/src/TransferListItem.d.ts +1 -1
- package/es/legacy-transfer/src/use-transfer-data.d.ts +1 -1
- package/es/list/src/List.d.ts +1 -1
- package/es/loading-bar/src/LoadingBar.d.ts +1 -1
- package/es/loading-bar/src/LoadingBarProvider.d.ts +1 -1
- package/es/locales/utils/index.mjs +1 -1
- package/es/log/src/Log.d.ts +5 -5
- package/es/log/src/Log.mjs +3 -1
- package/es/marquee/src/Marquee.d.ts +1 -1
- package/es/mention/src/Mention.d.ts +12 -12
- package/es/menu/src/Menu.d.ts +6 -6
- package/es/menu/src/MenuOption.d.ts +3 -3
- package/es/menu/src/MenuOptionContent.d.ts +1 -1
- package/es/menu/src/MenuOptionGroup.d.ts +2 -2
- package/es/menu/src/Submenu.d.ts +3 -3
- package/es/menu/src/use-menu-child.d.ts +1 -1
- package/es/menu/src/utils.d.ts +1 -1
- package/es/message/src/Message.d.ts +1 -1
- package/es/message/src/Message.mjs +0 -1
- package/es/message/src/MessageEnvironment.d.ts +2 -2
- package/es/message/src/MessageProvider.d.ts +2 -2
- package/es/modal/src/BodyWrapper.d.ts +7 -7
- package/es/modal/src/Modal.d.ts +7 -7
- package/es/modal/src/ModalEnvironment.d.ts +7 -7
- package/es/modal/src/presetProps.d.ts +1 -1
- package/es/modal/src/styles/index.cssr.mjs +2 -2
- package/es/notification/src/Notification.d.ts +3 -3
- package/es/notification/src/NotificationContainer.d.ts +1 -1
- package/es/notification/src/NotificationEnvironment.d.ts +2 -2
- package/es/notification/src/NotificationProvider.d.ts +25 -25
- package/es/number-animation/src/NumberAnimation.d.ts +2 -2
- package/es/number-animation/src/NumberAnimation.mjs +1 -1
- package/es/page-header/src/PageHeader.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +2 -2
- package/es/pagination/styles/light.d.ts +1 -1
- package/es/popconfirm/src/Popconfirm.d.ts +6 -6
- package/es/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/es/popconfirm/styles/light.d.ts +1 -1
- package/es/popover/src/Popover.d.ts +7 -7
- package/es/popover/src/PopoverBody.d.ts +4 -4
- package/es/popover/src/styles/index.cssr.mjs +1 -1
- package/es/popselect/src/Popselect.d.ts +63 -63
- package/es/popselect/src/PopselectPanel.d.ts +5 -5
- package/es/progress/src/Circle.mjs +1 -1
- package/es/progress/src/Line.d.ts +1 -1
- package/es/progress/src/MultipleCircle.d.ts +1 -1
- package/es/progress/src/Progress.d.ts +3 -3
- package/es/qr-code/src/QrCode.d.ts +3 -3
- package/es/radio/src/RadioButton.d.ts +5 -5
- package/es/radio/src/RadioGroup.d.ts +1 -1
- package/es/radio/src/use-radio.d.ts +1 -1
- package/es/rate/src/Rate.d.ts +2 -2
- package/es/result/src/Result.d.ts +2 -2
- package/es/scrollbar/src/Scrollbar.d.ts +2 -2
- package/es/select/src/Select.d.ts +12 -12
- package/es/skeleton/src/Skeleton.d.ts +3 -3
- package/es/slider/src/Slider.d.ts +8 -8
- package/es/slider/src/utils.d.ts +1 -1
- package/es/space/src/Space.d.ts +4 -4
- package/es/spin/src/Spin.d.ts +2 -2
- package/es/split/src/Split.d.ts +3 -3
- package/es/statistic/src/Statistic.d.ts +1 -1
- package/es/steps/src/Step.d.ts +3 -2
- package/es/steps/src/Step.mjs +35 -19
- package/es/steps/src/Steps.d.ts +14 -1
- package/es/steps/src/Steps.mjs +5 -1
- package/es/steps/src/styles/index.cssr.mjs +8 -1
- package/es/switch/src/Switch.d.ts +4 -4
- package/es/table/src/Table.d.ts +1 -1
- package/es/tabs/src/Tab.d.ts +9 -9
- package/es/tabs/src/TabPane.d.ts +1 -1
- package/es/tabs/src/Tabs.d.ts +9 -8
- package/es/tabs/src/Tabs.mjs +3 -1
- package/es/tag/src/Tag.d.ts +6 -6
- package/es/theme-editor/src/ThemeEditor.d.ts +1 -1
- package/es/theme-editor/src/ThemeEditor.mjs +1 -1
- package/es/thing/src/Thing.d.ts +1 -1
- package/es/time/src/Time.d.ts +2 -2
- package/es/time-picker/src/Panel.d.ts +3 -3
- package/es/time-picker/src/PanelCol.d.ts +1 -1
- package/es/time-picker/src/TimePicker.d.ts +5 -5
- package/es/time-picker/src/utils.d.ts +1 -1
- package/es/timeline/src/Timeline.d.ts +4 -4
- package/es/timeline/src/TimelineItem.d.ts +2 -2
- package/es/tooltip/src/Tooltip.d.ts +6 -6
- package/es/transfer/src/Transfer.d.ts +5 -5
- package/es/transfer/src/TransferFilter.d.ts +1 -1
- package/es/transfer/src/TransferHeader.d.ts +1 -1
- package/es/transfer/src/TransferList.d.ts +4 -4
- package/es/transfer/src/TransferListItem.d.ts +3 -3
- package/es/tree/src/MotionWrapper.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +8 -8
- package/es/tree/src/TreeNode.d.ts +2 -2
- package/es/tree/src/TreeNodeCheckbox.d.ts +3 -3
- package/es/tree/src/TreeNodeContent.d.ts +3 -3
- package/es/tree/src/TreeNodeSwitcher.d.ts +4 -4
- package/es/tree/src/dnd.d.ts +1 -1
- package/es/tree/src/keyboard.d.ts +1 -1
- package/es/tree/src/utils.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +11 -11
- package/es/typography/src/create-header.d.ts +3 -3
- package/es/typography/src/headers.d.ts +6 -6
- package/es/typography/src/p.d.ts +1 -1
- package/es/typography/src/text.d.ts +2 -2
- package/es/upload/src/Upload.d.ts +4 -4
- package/es/upload/src/UploadFile.d.ts +1 -1
- package/es/upload/src/UploadProgress.d.ts +1 -1
- package/es/upload/src/UploadTrigger.d.ts +3 -3
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/virtual-list/src/VirtualList.d.ts +4 -4
- package/es/vitest-setup.mjs +27 -0
- package/es/watermark/src/Watermark.d.ts +10 -10
- package/lib/_internal/clear/src/Clear.d.ts +1 -1
- package/lib/_internal/close/src/Close.d.ts +2 -2
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +3 -3
- package/lib/_internal/focus-detector/src/FocusDetector.d.ts +1 -1
- package/lib/_internal/icon/src/Icon.d.ts +1 -1
- package/lib/_internal/loading/src/Loading.d.ts +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +1 -1
- package/lib/_internal/select-menu/src/SelectGroupHeader.d.ts +2 -2
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +6 -6
- package/lib/_internal/select-menu/src/SelectOption.d.ts +2 -2
- package/lib/_internal/selection/src/Selection.d.ts +9 -9
- package/lib/_internal/slot-machine/src/SlotMachineNumber.d.ts +1 -1
- package/lib/_internal/suffix/src/Suffix.d.ts +1 -1
- package/lib/_mixins/use-config.d.ts +1 -1
- package/lib/_mixins/use-css-vars-class.d.ts +1 -1
- package/lib/_mixins/use-form-item.d.ts +1 -1
- package/lib/_mixins/use-hljs.d.ts +1 -1
- package/lib/_mixins/use-locale.d.ts +1 -1
- package/lib/_mixins/use-rtl.d.ts +1 -1
- package/lib/_mixins/use-style.d.ts +1 -1
- package/lib/_mixins/use-theme.d.ts +1 -1
- package/lib/_utils/composable/use-adjusted-to.d.ts +1 -1
- package/lib/_utils/composable/use-browser-location.d.ts +1 -1
- package/lib/_utils/composable/use-collection.d.ts +1 -1
- package/lib/_utils/composable/use-deferred-true.d.ts +1 -1
- package/lib/_utils/composable/use-is-composing.d.ts +1 -1
- package/lib/_utils/composable/use-lock-html-scroll.d.ts +1 -1
- package/lib/_utils/composable/use-resize.d.ts +1 -1
- package/lib/_utils/cssr/index.d.ts +1 -1
- package/lib/_utils/vue/flatten.d.ts +1 -1
- package/lib/_utils/vue/is-node-v-show-false.d.ts +1 -1
- package/lib/_utils/vue/render.d.ts +1 -1
- package/lib/_utils/vue/resolve-slot.d.ts +1 -1
- package/lib/affix/src/Affix.d.ts +3 -3
- package/lib/alert/src/Alert.d.ts +2 -2
- package/lib/anchor/src/AnchorAdapter.d.ts +2 -2
- package/lib/anchor/src/BaseAnchor.d.ts +3 -3
- package/lib/anchor/src/Link.d.ts +1 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +7 -7
- package/lib/avatar/src/Avatar.d.ts +4 -4
- package/lib/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/lib/back-top/src/BackTop.d.ts +2 -2
- package/lib/badge/src/Badge.d.ts +2 -2
- package/lib/breadcrumb/src/Breadcrumb.d.ts +2 -2
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/lib/button/src/Button.d.ts +11 -11
- package/lib/button/src/styles/index.cssr.js +7 -7
- package/lib/button-group/src/ButtonGroup.d.ts +1 -1
- package/lib/calendar/src/Calendar.d.ts +1 -1
- package/lib/card/src/Card.d.ts +3 -3
- package/lib/carousel/src/Carousel.d.ts +6 -6
- package/lib/carousel/src/CarouselDots.d.ts +1 -1
- package/lib/cascader/src/Cascader.d.ts +8 -8
- package/lib/cascader/src/CascaderMenu.d.ts +2 -2
- package/lib/cascader/src/CascaderOption.d.ts +2 -2
- package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/lib/cascader/src/CascaderSubmenu.d.ts +3 -3
- package/lib/checkbox/src/Checkbox.d.ts +10 -10
- package/lib/checkbox/src/CheckboxGroup.d.ts +2 -2
- package/lib/code/src/Code.d.ts +4 -4
- package/lib/collapse/src/Collapse.d.ts +2 -2
- package/lib/collapse/src/CollapseItem.d.ts +2 -2
- package/lib/collapse/src/CollapseItemContent.d.ts +1 -1
- package/lib/collapse-transition/src/CollapseTransition.d.ts +2 -2
- package/lib/color-picker/src/AlphaSlider.d.ts +3 -3
- package/lib/color-picker/src/ColorInput.d.ts +2 -2
- package/lib/color-picker/src/ColorInputUnit.d.ts +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +5 -5
- package/lib/color-picker/src/ColorPickerSwatches.d.ts +2 -2
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +2 -2
- package/lib/color-picker/src/ColorPreview.d.ts +2 -2
- package/lib/color-picker/src/HueSlider.d.ts +1 -1
- package/lib/color-picker/src/Pallete.d.ts +1 -1
- package/lib/color-picker/src/utils.d.ts +1 -1
- package/lib/composables/use-theme-vars.d.ts +1 -1
- package/lib/config-provider/src/ConfigProvider.d.ts +5 -5
- package/lib/countdown/src/Countdown.d.ts +2 -2
- package/lib/data-table/src/DataTable.d.ts +6 -6
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +1 -1
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -2
- package/lib/data-table/src/HeaderButton/RenderFilter.d.ts +2 -2
- package/lib/data-table/src/HeaderButton/RenderSorter.d.ts +1 -1
- package/lib/data-table/src/HeaderButton/SortButton.d.ts +2 -2
- package/lib/data-table/src/TableParts/Body.d.ts +2 -2
- package/lib/data-table/src/TableParts/BodyCheckbox.d.ts +2 -2
- package/lib/data-table/src/TableParts/BodyRadio.d.ts +2 -2
- package/lib/data-table/src/TableParts/Cell.d.ts +1 -1
- package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +2 -2
- package/lib/data-table/src/TableParts/Header.d.ts +1 -1
- package/lib/data-table/src/use-check.d.ts +1 -1
- package/lib/data-table/src/use-expand.d.ts +1 -1
- package/lib/data-table/src/use-group-header.d.ts +1 -1
- package/lib/data-table/src/use-scroll.d.ts +1 -1
- package/lib/data-table/src/use-sorter.d.ts +1 -1
- package/lib/data-table/src/use-table-data.d.ts +1 -1
- package/lib/date-picker/src/DatePicker.d.ts +4 -4
- package/lib/date-picker/src/interface.d.ts +6 -19
- package/lib/date-picker/src/panel/date.d.ts +1 -1
- package/lib/date-picker/src/panel/month.d.ts +2 -2
- package/lib/date-picker/src/panel/monthrange.d.ts +2 -2
- package/lib/date-picker/src/panel/panelHeader.d.ts +1 -1
- package/lib/date-picker/src/panel/use-calendar.d.ts +1 -1
- package/lib/date-picker/src/panel/use-calendar.js +7 -1
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -2
- package/lib/date-picker/src/panel/use-dual-calendar.js +5 -1
- package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -2
- package/lib/date-picker/src/panel/use-panel-common.js +1 -1
- package/lib/date-picker/src/props.js +1 -1
- package/lib/date-picker/src/utils.d.ts +12 -2
- package/lib/date-picker/src/utils.js +10 -0
- package/lib/date-picker/src/validation-utils.d.ts +1 -1
- package/lib/descriptions/src/Descriptions.d.ts +4 -4
- package/lib/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/lib/descriptions/styles/light.d.ts +1 -1
- package/lib/dialog/src/Dialog.d.ts +3 -3
- package/lib/dialog/src/DialogEnvironment.d.ts +4 -4
- package/lib/dialog/src/DialogProvider.d.ts +1062 -720
- package/lib/dialog/src/composables.d.ts +1 -1
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/dialog/src/styles/index.cssr.js +17 -17
- package/lib/discrete/src/InjectionExtractor.d.ts +1 -1
- package/lib/discrete/src/discreteApp.d.ts +7 -7
- package/lib/divider/src/Divider.d.ts +2 -2
- package/lib/drawer/src/Drawer.d.ts +3 -3
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +2 -2
- package/lib/drawer/src/DrawerContent.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +10 -10
- package/lib/dropdown/src/DropdownGroup.d.ts +1 -1
- package/lib/dropdown/src/DropdownMenu.d.ts +1 -1
- package/lib/dropdown/src/DropdownOption.d.ts +2 -2
- package/lib/dropdown/src/DropdownRenderOption.d.ts +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +3 -3
- package/lib/dynamic-input/src/InputPreset.d.ts +1 -1
- package/lib/dynamic-input/src/PairPreset.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.d.ts +5 -5
- package/lib/ellipsis/src/Ellipsis.d.ts +1 -1
- package/lib/empty/src/Empty.d.ts +2 -2
- package/lib/equation/src/Equation.d.ts +1 -1
- package/lib/flex/src/Flex.d.ts +4 -4
- package/lib/float-button/src/FloatButton.d.ts +3 -3
- package/lib/float-button-group/src/FloatButtonGroup.d.ts +2 -2
- package/lib/form/src/Form.d.ts +3 -3
- package/lib/form/src/FormItem.d.ts +3 -3
- package/lib/form/src/FormItemCol.d.ts +2 -2
- package/lib/form/src/FormItemGridItem.d.ts +3 -3
- package/lib/form/src/FormItemRow.d.ts +1 -1
- package/lib/form/src/utils.d.ts +2 -2
- package/lib/gradient-text/src/GradientText.d.ts +3 -3
- package/lib/grid/src/Grid.d.ts +6 -6
- package/lib/grid/src/GridItem.d.ts +3 -3
- package/lib/heatmap/src/Heatmap.d.ts +2 -2
- package/lib/heatmap/src/Rect.d.ts +1 -1
- package/lib/heatmap/styles/light.d.ts +1 -1
- package/lib/icon/src/Icon.d.ts +1 -1
- package/lib/icon-wrapper/src/IconWrapper.d.ts +2 -2
- package/lib/image/src/Image.d.ts +3 -3
- package/lib/image/src/ImagePreview.d.ts +1 -1
- package/lib/infinite-scroll/src/InfiniteScroll.d.ts +2 -2
- package/lib/input/src/Input.d.ts +17 -17
- package/lib/input/src/InputGroupLabel.d.ts +1 -1
- package/lib/input-number/src/InputNumber.d.ts +8 -8
- package/lib/input-otp/src/InputOtp.d.ts +4 -4
- package/lib/layout/src/Layout.d.ts +3 -3
- package/lib/layout/src/LayoutContent.d.ts +1 -1
- package/lib/layout/src/LayoutFooter.d.ts +1 -1
- package/lib/layout/src/LayoutHeader.d.ts +1 -1
- package/lib/layout/src/LayoutSider.d.ts +3 -3
- package/lib/layout/src/ToggleBar.d.ts +1 -1
- package/lib/layout/src/ToggleButton.d.ts +1 -1
- package/lib/legacy-grid/src/Col.d.ts +4 -4
- package/lib/legacy-grid/src/Row.d.ts +2 -2
- package/lib/legacy-transfer/src/Transfer.d.ts +5 -5
- package/lib/legacy-transfer/src/TransferFilter.d.ts +1 -1
- package/lib/legacy-transfer/src/TransferHeader.d.ts +1 -1
- package/lib/legacy-transfer/src/TransferList.d.ts +4 -4
- package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -1
- package/lib/legacy-transfer/src/use-transfer-data.d.ts +1 -1
- package/lib/list/src/List.d.ts +1 -1
- package/lib/loading-bar/src/LoadingBar.d.ts +1 -1
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +1 -1
- package/lib/log/src/Log.d.ts +5 -5
- package/lib/log/src/Log.js +3 -1
- package/lib/marquee/src/Marquee.d.ts +1 -1
- package/lib/mention/src/Mention.d.ts +12 -12
- package/lib/menu/src/Menu.d.ts +6 -6
- package/lib/menu/src/MenuOption.d.ts +3 -3
- package/lib/menu/src/MenuOptionContent.d.ts +1 -1
- package/lib/menu/src/MenuOptionGroup.d.ts +2 -2
- package/lib/menu/src/Submenu.d.ts +3 -3
- package/lib/menu/src/use-menu-child.d.ts +1 -1
- package/lib/menu/src/utils.d.ts +1 -1
- package/lib/message/src/Message.d.ts +1 -1
- package/lib/message/src/Message.js +0 -1
- package/lib/message/src/MessageEnvironment.d.ts +2 -2
- package/lib/message/src/MessageProvider.d.ts +2 -2
- package/lib/modal/src/BodyWrapper.d.ts +7 -7
- package/lib/modal/src/Modal.d.ts +7 -7
- package/lib/modal/src/ModalEnvironment.d.ts +7 -7
- package/lib/modal/src/presetProps.d.ts +1 -1
- package/lib/modal/src/styles/index.cssr.js +2 -2
- package/lib/notification/src/Notification.d.ts +3 -3
- package/lib/notification/src/NotificationContainer.d.ts +1 -1
- package/lib/notification/src/NotificationEnvironment.d.ts +2 -2
- package/lib/notification/src/NotificationProvider.d.ts +25 -25
- package/lib/number-animation/src/NumberAnimation.d.ts +2 -2
- package/lib/page-header/src/PageHeader.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +2 -2
- package/lib/pagination/styles/light.d.ts +1 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +6 -6
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/lib/popconfirm/styles/light.d.ts +1 -1
- package/lib/popover/src/Popover.d.ts +7 -7
- package/lib/popover/src/PopoverBody.d.ts +4 -4
- package/lib/popselect/src/Popselect.d.ts +63 -63
- package/lib/popselect/src/PopselectPanel.d.ts +5 -5
- package/lib/progress/src/Circle.js +1 -1
- package/lib/progress/src/Line.d.ts +1 -1
- package/lib/progress/src/MultipleCircle.d.ts +1 -1
- package/lib/progress/src/Progress.d.ts +3 -3
- package/lib/qr-code/src/QrCode.d.ts +3 -3
- package/lib/radio/src/RadioButton.d.ts +5 -5
- package/lib/radio/src/RadioGroup.d.ts +1 -1
- package/lib/radio/src/use-radio.d.ts +1 -1
- package/lib/rate/src/Rate.d.ts +2 -2
- package/lib/result/src/Result.d.ts +2 -2
- package/lib/scrollbar/src/Scrollbar.d.ts +2 -2
- package/lib/select/src/Select.d.ts +12 -12
- package/lib/skeleton/src/Skeleton.d.ts +3 -3
- package/lib/slider/src/Slider.d.ts +8 -8
- package/lib/slider/src/utils.d.ts +1 -1
- package/lib/space/src/Space.d.ts +4 -4
- package/lib/spin/src/Spin.d.ts +2 -2
- package/lib/split/src/Split.d.ts +3 -3
- package/lib/statistic/src/Statistic.d.ts +1 -1
- package/lib/steps/src/Step.d.ts +3 -2
- package/lib/steps/src/Step.js +48 -30
- package/lib/steps/src/Steps.d.ts +14 -1
- package/lib/steps/src/Steps.js +7 -2
- package/lib/steps/src/styles/index.cssr.js +8 -1
- package/lib/switch/src/Switch.d.ts +4 -4
- package/lib/table/src/Table.d.ts +1 -1
- package/lib/tabs/src/Tab.d.ts +9 -9
- package/lib/tabs/src/TabPane.d.ts +1 -1
- package/lib/tabs/src/Tabs.d.ts +9 -8
- package/lib/tabs/src/Tabs.js +5 -3
- package/lib/tag/src/Tag.d.ts +6 -6
- package/lib/theme-editor/src/ThemeEditor.d.ts +1 -1
- package/lib/thing/src/Thing.d.ts +1 -1
- package/lib/time/src/Time.d.ts +2 -2
- package/lib/time-picker/src/Panel.d.ts +3 -3
- package/lib/time-picker/src/PanelCol.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +5 -5
- package/lib/time-picker/src/utils.d.ts +1 -1
- package/lib/timeline/src/Timeline.d.ts +4 -4
- package/lib/timeline/src/TimelineItem.d.ts +2 -2
- package/lib/tooltip/src/Tooltip.d.ts +6 -6
- package/lib/transfer/src/Transfer.d.ts +5 -5
- package/lib/transfer/src/TransferFilter.d.ts +1 -1
- package/lib/transfer/src/TransferHeader.d.ts +1 -1
- package/lib/transfer/src/TransferList.d.ts +4 -4
- package/lib/transfer/src/TransferListItem.d.ts +3 -3
- package/lib/tree/src/MotionWrapper.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +8 -8
- package/lib/tree/src/TreeNode.d.ts +2 -2
- package/lib/tree/src/TreeNodeCheckbox.d.ts +3 -3
- package/lib/tree/src/TreeNodeContent.d.ts +3 -3
- package/lib/tree/src/TreeNodeSwitcher.d.ts +4 -4
- package/lib/tree/src/dnd.d.ts +1 -1
- package/lib/tree/src/keyboard.d.ts +1 -1
- package/lib/tree/src/utils.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +11 -11
- package/lib/typography/src/create-header.d.ts +3 -3
- package/lib/typography/src/headers.d.ts +6 -6
- package/lib/typography/src/p.d.ts +1 -1
- package/lib/typography/src/text.d.ts +2 -2
- package/lib/upload/src/Upload.d.ts +4 -4
- package/lib/upload/src/UploadFile.d.ts +1 -1
- package/lib/upload/src/UploadProgress.d.ts +1 -1
- package/lib/upload/src/UploadTrigger.d.ts +3 -3
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/src/VirtualList.d.ts +4 -4
- package/lib/vitest-setup.js +29 -0
- package/lib/watermark/src/Watermark.d.ts +10 -10
- package/package.json +45 -48
- package/web-types.json +12 -2
- package/es/jest-setup.mjs +0 -5
- package/lib/jest-setup.js +0 -7
- /package/es/{jest-setup.d.ts → vitest-setup.d.ts} +0 -0
- /package/lib/{jest-setup.d.ts → vitest-setup.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { TableBaseColumn } from '../interface';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
column: {
|
|
5
5
|
type: PropType<TableBaseColumn>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { CSSProperties, PropType, VNodeChild } from 'vue';
|
|
2
2
|
import type { VirtualListInst } from 'vueuc';
|
|
3
|
+
import type { ScrollbarInst } from '../../../_internal';
|
|
4
|
+
import type { ColumnKey, RowData, RowKey, TmNode } from '../interface';
|
|
3
5
|
import type { ColItem } from '../use-group-header';
|
|
4
|
-
import { type ScrollbarInst } from '../../../_internal';
|
|
5
|
-
import { type ColumnKey, type RowData, type RowKey, type TmNode } from '../interface';
|
|
6
6
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
7
|
onResize: PropType<(e: ResizeObserverEntry) => void>;
|
|
8
8
|
showHeader: BooleanConstructor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { RowKey } from '../interface';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
rowKey: {
|
|
5
5
|
type: PropType<RowKey>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { RowKey } from '../interface';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
rowKey: {
|
|
5
5
|
type: PropType<RowKey>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { PropType, VNodeChild } from 'vue';
|
|
1
2
|
import type { MergedTheme } from '../../../_mixins';
|
|
2
3
|
import type { DataTableTheme } from '../../styles';
|
|
3
4
|
import type { InternalRowData, TableBaseColumn } from '../interface';
|
|
4
|
-
import { type PropType, type VNodeChild } from 'vue';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
6
|
clsPrefix: {
|
|
7
7
|
type: StringConstructor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
1
2
|
import type { RenderExpandIcon, RowData } from '../interface';
|
|
2
|
-
import { type PropType } from 'vue';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
clsPrefix: {
|
|
5
5
|
type: StringConstructor;
|
|
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
37
37
|
required: true;
|
|
38
38
|
};
|
|
39
39
|
}>> & Readonly<{}>, {
|
|
40
|
-
expanded: boolean;
|
|
41
40
|
loading: boolean;
|
|
41
|
+
expanded: boolean;
|
|
42
42
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
43
43
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { VirtualListInst } from 'vueuc';
|
|
2
|
+
import type { ColumnKey, TableBaseColumn } from '../interface';
|
|
2
3
|
import type { ColItem, RowItem } from '../use-group-header';
|
|
3
|
-
import { type ColumnKey, type TableBaseColumn } from '../interface';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
5
|
discrete: {
|
|
6
6
|
type: BooleanConstructor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TreeMate } from 'treemate';
|
|
2
|
+
import type { ComputedRef } from 'vue';
|
|
2
3
|
import type { DataTableSetupProps, InternalRowData, RowData, RowKey, TableSelectionColumn, TmNode } from './interface';
|
|
3
|
-
import { type ComputedRef } from 'vue';
|
|
4
4
|
export declare function useCheck(props: DataTableSetupProps, data: {
|
|
5
5
|
selectionColumnRef: ComputedRef<TableSelectionColumn | null>;
|
|
6
6
|
paginatedDataRef: ComputedRef<TmNode[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TreeMate } from 'treemate';
|
|
2
|
+
import type { Ref } from 'vue';
|
|
2
3
|
import type { DataTableSetupProps, Expandable, InternalRowData, RowKey } from './interface';
|
|
3
|
-
import { type Ref } from 'vue';
|
|
4
4
|
export declare function useExpand(props: DataTableSetupProps, treeMateRef: Ref<TreeMate<InternalRowData, InternalRowData, InternalRowData>>): {
|
|
5
5
|
stickyExpandedRowsRef: Ref<boolean, boolean>;
|
|
6
6
|
mergedExpandedRowKeysRef: import("vue").ComputedRef<import("treemate").Key[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { ComputedRef, CSSProperties } from 'vue';
|
|
1
2
|
import type { ColumnKey, DataTableSetupProps, TableBaseColumn, TableColumn, TableExpandColumn, TableSelectionColumn } from './interface';
|
|
2
|
-
import { type ComputedRef, type CSSProperties } from 'vue';
|
|
3
3
|
export interface RowItem {
|
|
4
4
|
colSpan: number;
|
|
5
5
|
rowSpan: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
1
2
|
import type { ColumnKey, DataTableSetupProps, MainTableRef, TableColumn } from './interface';
|
|
2
|
-
import { type ComputedRef, type Ref } from 'vue';
|
|
3
3
|
export declare function useScroll(props: DataTableSetupProps, { mainTableInstRef, mergedCurrentPageRef, bodyWidthRef }: {
|
|
4
4
|
bodyWidthRef: Ref<null | number>;
|
|
5
5
|
mainTableInstRef: Ref<MainTableRef | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { ComputedRef } from 'vue';
|
|
1
2
|
import type { ColumnKey, DataTableSetupProps, InternalRowData, SortOrder, SortState, TableBaseColumn, TableExpandColumn, TableSelectionColumn, TmNode } from './interface';
|
|
2
|
-
import { type ComputedRef } from 'vue';
|
|
3
3
|
export declare function useSorter(props: DataTableSetupProps, { dataRelatedColsRef, filteredDataRef }: {
|
|
4
4
|
dataRelatedColsRef: ComputedRef<Array<TableSelectionColumn | TableBaseColumn | TableExpandColumn>>;
|
|
5
5
|
filteredDataRef: ComputedRef<TmNode[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { ComputedRef } from 'vue';
|
|
1
2
|
import type { PaginationProps } from '../../pagination/src/Pagination';
|
|
2
3
|
import type { ColumnKey, DataTableSetupProps, FilterState, InternalRowData, RowKey, TableBaseColumn, TableExpandColumn, TableSelectionColumn, TmNode } from './interface';
|
|
3
|
-
import { type ComputedRef } from 'vue';
|
|
4
4
|
export declare function useTableData(props: DataTableSetupProps, { dataRelatedColsRef }: {
|
|
5
5
|
dataRelatedColsRef: ComputedRef<Array<TableSelectionColumn | TableBaseColumn | TableExpandColumn>>;
|
|
6
6
|
}): {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { ExtractPropTypes, Ref, SlotsType, VNode } from 'vue';
|
|
1
2
|
import type { FormattedValue, PanelRef, Value } from './interface';
|
|
2
|
-
import { type ExtractPropTypes, type Ref, type SlotsType, type VNode } from 'vue';
|
|
3
3
|
import { datePickerProps } from './props';
|
|
4
4
|
export type DatePickerSetupProps = ExtractPropTypes<typeof datePickerProps>;
|
|
5
5
|
export interface DatePickerSlots {
|
|
@@ -5526,13 +5526,13 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
5526
5526
|
}, any>;
|
|
5527
5527
|
}>>>;
|
|
5528
5528
|
}>> & Readonly<{}>, {
|
|
5529
|
-
readonly type: import("./config").DatePickerType;
|
|
5530
|
-
readonly to: string | boolean | HTMLElement;
|
|
5531
5529
|
readonly disabled: boolean | undefined;
|
|
5532
|
-
readonly
|
|
5530
|
+
readonly type: import("./config").DatePickerType;
|
|
5533
5531
|
readonly bordered: boolean | undefined;
|
|
5532
|
+
readonly to: string | boolean | HTMLElement;
|
|
5534
5533
|
readonly clearable: boolean;
|
|
5535
5534
|
readonly placement: import("vueuc").FollowerPlacement;
|
|
5535
|
+
readonly show: boolean | undefined;
|
|
5536
5536
|
readonly inputReadonly: boolean;
|
|
5537
5537
|
readonly updateValueOnClose: boolean;
|
|
5538
5538
|
readonly calendarHeaderMonthYearSeparator: string;
|
|
@@ -10,34 +10,19 @@ import type { DatePickerTheme } from '../styles/light';
|
|
|
10
10
|
import type { DatePickerSlots } from './DatePicker';
|
|
11
11
|
import type { dualCalendarValidation, uniCalendarValidation } from './validation-utils';
|
|
12
12
|
export type Value = number | [number, number];
|
|
13
|
-
export type DefaultTime = string | [string | undefined, string | undefined];
|
|
13
|
+
export type DefaultTime = string | [string | undefined, string | undefined] | DatePickerGetDefaultTime | DatePickerGetRangeDefaultTime;
|
|
14
14
|
export type FormattedValue = string | [string, string];
|
|
15
15
|
export type NowButtonProps = Pick<ButtonProps, 'size' | 'onClick'>;
|
|
16
16
|
export type ClearButtonProps = Pick<ButtonProps, 'size' | 'onClick'>;
|
|
17
17
|
export type ConfirmButtonProps = Pick<ButtonProps, 'size' | 'onClick' | 'type' | 'disabled'>;
|
|
18
18
|
export type Shortcuts = Record<string, number | (() => number)> | Record<string, [number, number] | readonly [number, number] | (() => [number, number] | readonly [number, number])>;
|
|
19
|
-
export type OnUpdateValue = (value: number & (number | null) & [
|
|
20
|
-
number,
|
|
21
|
-
number
|
|
22
|
-
] & ([number, number] | null), formattedValue: string & (string | null) & [
|
|
23
|
-
string,
|
|
24
|
-
string
|
|
25
|
-
] & ([string, string] | null)) => void;
|
|
19
|
+
export type OnUpdateValue = (value: number & (number | null) & [number, number] & ([number, number] | null), formattedValue: string & (string | null) & [string, string] & ([string, string] | null)) => void;
|
|
26
20
|
export type OnConfirm = OnUpdateValue;
|
|
27
21
|
export type OnConfirmImpl = OnUpdateValueImpl;
|
|
28
|
-
export type OnUpdateFormattedValue = (value: string & (string | null) & [
|
|
29
|
-
string,
|
|
30
|
-
string
|
|
31
|
-
] & ([string, string] | null), timestampValue: number & (number | null) & [
|
|
32
|
-
number,
|
|
33
|
-
number
|
|
34
|
-
] & ([number, number] | null)) => void;
|
|
22
|
+
export type OnUpdateFormattedValue = (value: string & (string | null) & [string, string] & ([string, string] | null), timestampValue: number & (number | null) & [number, number] & ([number, number] | null)) => void;
|
|
35
23
|
export type OnUpdateFormattedValueImpl = (value: string | [string, string] | null, timestampValue: number | [number, number] | null) => void;
|
|
36
24
|
export type OnUpdateValueImpl = (value: Value | null, formattedValue: string | [string, string] | null) => void;
|
|
37
|
-
export type OnPanelUpdateValue = (value: number & (number | null) & [
|
|
38
|
-
number,
|
|
39
|
-
number
|
|
40
|
-
] & ([number, number] | null), doUpdate: boolean) => void;
|
|
25
|
+
export type OnPanelUpdateValue = (value: number & (number | null) & [number, number] & ([number, number] | null), doUpdate: boolean) => void;
|
|
41
26
|
export type OnPanelUpdateValueImpl = (value: Value | null, doUpdate: boolean) => void;
|
|
42
27
|
export type OnClose = (disableUpdateOnClose: boolean) => void;
|
|
43
28
|
export interface RangePanelChildComponentRefs {
|
|
@@ -106,3 +91,5 @@ export interface TimeValidator {
|
|
|
106
91
|
export type IsTimeDisabled = IsSingleTimeDisabled | IsRangeTimeDisabled;
|
|
107
92
|
export type IsSingleTimeDisabled = (date: number) => TimeValidator;
|
|
108
93
|
export type IsRangeTimeDisabled = (date: number, position: 'start' | 'end', value: [number, number]) => TimeValidator;
|
|
94
|
+
export type DatePickerGetDefaultTime = (timestamp: number) => string;
|
|
95
|
+
export type DatePickerGetRangeDefaultTime = (timestamp: number, position: 'start' | 'end', value: [number, number] | null) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { PropType, VNode } from 'vue';
|
|
2
|
+
import type { MonthItem, QuarterItem, YearItem } from '../utils';
|
|
3
3
|
/**
|
|
4
4
|
* Month Panel
|
|
5
5
|
* Update picker value on:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { PropType, VNode } from 'vue';
|
|
2
|
+
import type { MonthItem, QuarterItem, YearItem } from '../utils';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
type: {
|
|
5
5
|
type: PropType<"monthrange" | "yearrange" | "quarterrange">;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
1
2
|
import type { VirtualListInst } from 'vueuc';
|
|
2
3
|
import type { ScrollbarInst } from '../../../_internal';
|
|
3
4
|
import type { IsSingleDateDisabledDetail, Shortcuts } from '../interface';
|
|
4
5
|
import type { DateItem, MonthItem, QuarterItem, YearItem } from '../utils';
|
|
5
|
-
import { type ExtractPropTypes, type PropType } from 'vue';
|
|
6
6
|
declare const useCalendarProps: {
|
|
7
7
|
readonly defaultCalendarStartTime: NumberConstructor;
|
|
8
8
|
readonly actions: {
|
|
@@ -2,7 +2,7 @@ import { addMonths, addYears, format, getDate, getMonth, getTime, getYear, isSam
|
|
|
2
2
|
import { computed, inject, ref, watch } from 'vue';
|
|
3
3
|
import { MONTH_ITEM_HEIGHT } from "../config.mjs";
|
|
4
4
|
import { datePickerInjectionKey } from "../interface.mjs";
|
|
5
|
-
import { dateArray, getDefaultTime, monthArray, quarterArray, strictParse, yearArray } from "../utils.mjs";
|
|
5
|
+
import { dateArray, extractSingleDefaultTime, getDefaultTime, monthArray, quarterArray, strictParse, yearArray } from "../utils.mjs";
|
|
6
6
|
import { usePanelCommon, usePanelCommonProps } from "./use-panel-common.mjs";
|
|
7
7
|
const useCalendarProps = Object.assign(Object.assign({}, usePanelCommonProps), {
|
|
8
8
|
defaultCalendarStartTime: Number,
|
|
@@ -223,7 +223,12 @@ function useCalendar(props, type) {
|
|
|
223
223
|
newValue = Date.now();
|
|
224
224
|
}
|
|
225
225
|
if (type === 'datetime' && props.defaultTime !== null && !Array.isArray(props.defaultTime)) {
|
|
226
|
-
|
|
226
|
+
let time;
|
|
227
|
+
if (typeof props.defaultTime === 'function') {
|
|
228
|
+
time = extractSingleDefaultTime(dateItem.ts, props.defaultTime);
|
|
229
|
+
} else {
|
|
230
|
+
time = getDefaultTime(props.defaultTime);
|
|
231
|
+
}
|
|
227
232
|
if (time) {
|
|
228
233
|
newValue = getTime(set(newValue, time)); // setDate getTime(addMilliseconds(startOfDay(newValue), time))
|
|
229
234
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import type { VirtualListInst } from 'vueuc';
|
|
3
3
|
import type { ScrollbarInst } from '../../../_internal';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import type { Shortcuts } from '../interface';
|
|
5
|
+
import type { DateItem, MonthItem, QuarterItem, YearItem } from '../utils';
|
|
6
6
|
declare const useDualCalendarProps: {
|
|
7
7
|
readonly defaultCalendarStartTime: NumberConstructor;
|
|
8
8
|
readonly defaultCalendarEndTime: NumberConstructor;
|
|
@@ -2,7 +2,7 @@ import { addMonths, format, getDate, getMonth, getTime, getYear, isValid, set, s
|
|
|
2
2
|
import { computed, inject, ref, watch } from 'vue';
|
|
3
3
|
import { MONTH_ITEM_HEIGHT } from "../config.mjs";
|
|
4
4
|
import { datePickerInjectionKey } from "../interface.mjs";
|
|
5
|
-
import { dateArray, getDefaultTime, monthArray, pluckValueFromRange, quarterArray, strictParse, yearArray } from "../utils.mjs";
|
|
5
|
+
import { dateArray, extractRangeDefaultTime, getDefaultTime, monthArray, pluckValueFromRange, quarterArray, strictParse, yearArray } from "../utils.mjs";
|
|
6
6
|
import { usePanelCommon, usePanelCommonProps } from "./use-panel-common.mjs";
|
|
7
7
|
const useDualCalendarProps = Object.assign(Object.assign({}, usePanelCommonProps), {
|
|
8
8
|
defaultCalendarStartTime: Number,
|
|
@@ -354,7 +354,10 @@ function useDualCalendar(props, type) {
|
|
|
354
354
|
const {
|
|
355
355
|
defaultTime
|
|
356
356
|
} = props;
|
|
357
|
-
if (
|
|
357
|
+
if (typeof defaultTime === 'function') {
|
|
358
|
+
startDefaultTime = extractRangeDefaultTime(startTime, defaultTime, 'start', [startTime, endTime]);
|
|
359
|
+
endDefaultTime = extractRangeDefaultTime(endTime, defaultTime, 'end', [startTime, endTime]);
|
|
360
|
+
} else if (Array.isArray(defaultTime)) {
|
|
358
361
|
startDefaultTime = getDefaultTime(defaultTime[0]);
|
|
359
362
|
endDefaultTime = getDefaultTime(defaultTime[1]);
|
|
360
363
|
} else {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import type { DefaultTime, OnClose, OnPanelUpdateValue, Shortcuts, Value } from '../interface';
|
|
3
3
|
declare const usePanelCommonProps: {
|
|
4
4
|
readonly active: BooleanConstructor;
|
|
5
5
|
readonly dateFormat: StringConstructor;
|
|
@@ -21,7 +21,7 @@ export const datePickerProps = Object.assign(Object.assign({}, useTheme.props),
|
|
|
21
21
|
},
|
|
22
22
|
defaultValue: [Number, Array],
|
|
23
23
|
defaultFormattedValue: [String, Array],
|
|
24
|
-
defaultTime: [Number, String, Array],
|
|
24
|
+
defaultTime: [Number, String, Array, Function],
|
|
25
25
|
disabled: {
|
|
26
26
|
type: Boolean,
|
|
27
27
|
default: undefined
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
2
|
import type { NDateLocale } from '../../locales';
|
|
3
|
-
import type { FirstDayOfWeek, Value } from './interface';
|
|
3
|
+
import type { DatePickerGetDefaultTime, DatePickerGetRangeDefaultTime, FirstDayOfWeek, Value } from './interface';
|
|
4
4
|
declare function getDerivedTimeFromKeyboardEvent(prevValue: number | null, event: KeyboardEvent): number;
|
|
5
5
|
export declare function transformNaiveFirstDayOfWeekToDateFns(firstDayOfWeek: FirstDayOfWeek): FirstDayOfWeek;
|
|
6
6
|
export interface DateItem {
|
|
@@ -71,10 +71,20 @@ declare function yearArray(valueTs: number | null, currentTs: number, format: {
|
|
|
71
71
|
declare function strictParse(string: string, pattern: string, backup: Date, option: {
|
|
72
72
|
locale: NDateLocale['locale'];
|
|
73
73
|
}): Date;
|
|
74
|
+
declare function extractSingleDefaultTime(timestamp: number, defaultTimeExtractor: DatePickerGetDefaultTime): {
|
|
75
|
+
hours: number;
|
|
76
|
+
minutes: number;
|
|
77
|
+
seconds: number;
|
|
78
|
+
} | undefined;
|
|
79
|
+
declare function extractRangeDefaultTime(timestamp: number, defaultTimeExtractor: DatePickerGetRangeDefaultTime, position: 'start' | 'end', value: [number, number] | null): {
|
|
80
|
+
hours: number;
|
|
81
|
+
minutes: number;
|
|
82
|
+
seconds: number;
|
|
83
|
+
} | undefined;
|
|
74
84
|
declare function getDefaultTime(timeValue: string | undefined): {
|
|
75
85
|
hours: number;
|
|
76
86
|
minutes: number;
|
|
77
87
|
seconds: number;
|
|
78
88
|
} | undefined;
|
|
79
89
|
declare function pluckValueFromRange(value: Value | null, type: 'start' | 'end'): number | null;
|
|
80
|
-
export { dateArray, getDefaultTime, getDerivedTimeFromKeyboardEvent, getMonthString, getQuarterString, getYearString, monthArray, pluckValueFromRange, quarterArray, strictParse, yearArray };
|
|
90
|
+
export { dateArray, extractRangeDefaultTime, extractSingleDefaultTime, getDefaultTime, getDerivedTimeFromKeyboardEvent, getMonthString, getQuarterString, getYearString, monthArray, pluckValueFromRange, quarterArray, strictParse, yearArray };
|
|
@@ -224,6 +224,14 @@ function strictParse(string, pattern, backup, option) {
|
|
|
224
224
|
const result = parse(string, pattern, backup, option);
|
|
225
225
|
if (!isValid(result)) return result;else if (format(result, pattern, option) === string) return result;else return new Date(Number.NaN);
|
|
226
226
|
}
|
|
227
|
+
function extractSingleDefaultTime(timestamp, defaultTimeExtractor) {
|
|
228
|
+
const extractedTime = defaultTimeExtractor(timestamp);
|
|
229
|
+
return getDefaultTime(extractedTime);
|
|
230
|
+
}
|
|
231
|
+
function extractRangeDefaultTime(timestamp, defaultTimeExtractor, position, value) {
|
|
232
|
+
const extractedTime = defaultTimeExtractor(timestamp, position, value);
|
|
233
|
+
return getDefaultTime(extractedTime);
|
|
234
|
+
}
|
|
227
235
|
function getDefaultTime(timeValue) {
|
|
228
236
|
if (timeValue === undefined) {
|
|
229
237
|
return undefined;
|
|
@@ -241,4 +249,4 @@ function getDefaultTime(timeValue) {
|
|
|
241
249
|
function pluckValueFromRange(value, type) {
|
|
242
250
|
return Array.isArray(value) ? value[type === 'start' ? 0 : 1] : null;
|
|
243
251
|
}
|
|
244
|
-
export { dateArray, getDefaultTime, getDerivedTimeFromKeyboardEvent, getMonthString, getQuarterString, getYearString, monthArray, pluckValueFromRange, quarterArray, strictParse, yearArray };
|
|
252
|
+
export { dateArray, extractRangeDefaultTime, extractSingleDefaultTime, getDefaultTime, getDerivedTimeFromKeyboardEvent, getMonthString, getQuarterString, getYearString, monthArray, pluckValueFromRange, quarterArray, strictParse, yearArray };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
1
2
|
import type { DatePickerSetupProps } from './DatePicker';
|
|
2
|
-
import { type Ref } from 'vue';
|
|
3
3
|
export declare function uniCalendarValidation(props: DatePickerSetupProps, mergedValueRef: Ref<number | [number, number] | null>): {
|
|
4
4
|
isValueInvalidRef: import("vue").ComputedRef<boolean>;
|
|
5
5
|
isDateInvalidRef: import("vue").ComputedRef<boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { CSSProperties, PropType, SlotsType, VNode } from 'vue';
|
|
1
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
-
import { type CSSProperties, type PropType, type SlotsType, type VNode } from 'vue';
|
|
3
3
|
export declare const descriptionsProps: {
|
|
4
4
|
readonly title: StringConstructor;
|
|
5
5
|
readonly column: {
|
|
@@ -409,10 +409,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
409
409
|
}, any>>>;
|
|
410
410
|
}>> & Readonly<{}>, {
|
|
411
411
|
readonly size: "small" | "medium" | "large";
|
|
412
|
-
readonly column: number;
|
|
413
|
-
readonly separator: string;
|
|
414
412
|
readonly bordered: boolean;
|
|
415
|
-
readonly
|
|
413
|
+
readonly separator: string;
|
|
414
|
+
readonly column: number;
|
|
415
|
+
readonly labelPlacement: "top" | "left";
|
|
416
416
|
readonly labelAlign: "left" | "right" | "center";
|
|
417
417
|
}, SlotsType<DescriptionsSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
418
418
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { CSSProperties, PropType, SlotsType, VNode } from 'vue';
|
|
1
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
-
import { type CSSProperties, type PropType, type SlotsType, type VNode } from 'vue';
|
|
3
3
|
export declare const descriptionsItemProps: {
|
|
4
4
|
readonly label: StringConstructor;
|
|
5
5
|
readonly span: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Theme } from '../../_mixins/use-theme';
|
|
2
|
-
import {
|
|
2
|
+
import type { ThemeCommonVars } from '../../_styles/common';
|
|
3
3
|
export declare function self(vars: ThemeCommonVars): {
|
|
4
4
|
lineHeight: string;
|
|
5
5
|
fontSizeSmall: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CSSProperties, SlotsType, VNode } from 'vue';
|
|
2
2
|
export interface DialogSlots {
|
|
3
3
|
action?: () => VNode[];
|
|
4
4
|
default?: () => VNode[];
|
|
@@ -1784,10 +1784,10 @@ export declare const NDialog: import("vue").DefineComponent<import("vue").Extrac
|
|
|
1784
1784
|
}, any>;
|
|
1785
1785
|
}>>>;
|
|
1786
1786
|
}>> & Readonly<{}>, {
|
|
1787
|
-
type: "
|
|
1788
|
-
loading: boolean;
|
|
1787
|
+
type: "default" | "info" | "warning" | "error" | "success";
|
|
1789
1788
|
showIcon: boolean;
|
|
1790
1789
|
bordered: boolean;
|
|
1791
1790
|
closable: boolean;
|
|
1791
|
+
loading: boolean;
|
|
1792
1792
|
closeFocusable: boolean;
|
|
1793
1793
|
}, SlotsType<DialogSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { CSSProperties, PropType } from 'vue';
|
|
1
2
|
import type { ModalDraggableOptions } from '../../modal/src/interface';
|
|
2
|
-
import { type CSSProperties, type PropType } from 'vue';
|
|
3
3
|
export declare const exposedDialogEnvProps: {
|
|
4
4
|
readonly onAfterEnter: PropType<() => void>;
|
|
5
5
|
readonly onAfterLeave: PropType<() => void>;
|
|
@@ -204,14 +204,14 @@ export declare const NDialogEnvironment: import("vue").DefineComponent<import("v
|
|
|
204
204
|
actionStyle: PropType<string | CSSProperties>;
|
|
205
205
|
closeFocusable: BooleanConstructor;
|
|
206
206
|
}>> & Readonly<{}>, {
|
|
207
|
-
type: "
|
|
208
|
-
loading: boolean;
|
|
209
|
-
autoFocus: boolean;
|
|
207
|
+
type: "default" | "info" | "warning" | "error" | "success";
|
|
210
208
|
showIcon: boolean;
|
|
211
209
|
bordered: boolean;
|
|
212
210
|
closable: boolean;
|
|
211
|
+
loading: boolean;
|
|
213
212
|
closeFocusable: boolean;
|
|
214
213
|
blockScroll: boolean;
|
|
215
214
|
closeOnEsc: boolean;
|
|
215
|
+
autoFocus: boolean;
|
|
216
216
|
maskClosable: boolean;
|
|
217
217
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|