naive-ui 2.30.6 → 2.31.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/README.zh-CN.md +2 -2
- package/dist/index.js +4233 -2556
- package/dist/index.prod.js +2 -2
- package/es/_internal/close/src/Close.js +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.js +8 -2
- package/es/_internal/scrollbar/src/styles/index.cssr.js +1 -0
- package/es/_internal/select-menu/src/styles/index.cssr.js +1 -1
- package/es/_internal/selection/src/styles/index.cssr.js +1 -0
- package/es/_mixins/use-rtl.d.ts +1 -1
- package/es/_mixins/use-rtl.js +1 -1
- package/es/_utils/env/browser.d.ts +3 -0
- package/es/_utils/env/browser.js +4 -0
- package/es/_utils/env/is-native-lazy-load.d.ts +1 -0
- package/es/_utils/env/is-native-lazy-load.js +3 -0
- package/es/affix/index.d.ts +1 -1
- package/es/affix/index.js +1 -1
- package/es/alert/index.d.ts +1 -1
- package/es/alert/index.js +1 -1
- package/es/alert/src/Alert.d.ts +1 -1
- package/es/alert/src/Alert.js +2 -2
- package/es/anchor/index.d.ts +2 -2
- package/es/anchor/index.js +2 -2
- package/es/anchor/src/AnchorAdapter.d.ts +1 -1
- package/es/anchor/src/AnchorAdapter.js +1 -1
- package/es/anchor/src/Link.d.ts +1 -1
- package/es/anchor/src/Link.js +1 -1
- package/es/auto-complete/index.d.ts +1 -1
- package/es/auto-complete/index.js +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +1 -1
- package/es/auto-complete/src/AutoComplete.js +1 -1
- package/es/avatar/index.d.ts +1 -1
- package/es/avatar/index.js +1 -1
- package/es/avatar/src/Avatar.d.ts +13 -1
- package/es/avatar/src/Avatar.js +61 -8
- package/es/avatar-group/index.d.ts +1 -1
- package/es/avatar-group/index.js +1 -1
- package/es/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/es/avatar-group/src/AvatarGroup.js +2 -2
- package/es/back-top/index.d.ts +1 -1
- package/es/back-top/index.js +1 -1
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/back-top/src/BackTop.js +1 -1
- package/es/badge/index.d.ts +1 -1
- package/es/badge/index.js +1 -1
- package/es/badge/src/Badge.d.ts +1 -1
- package/es/badge/src/Badge.js +2 -2
- package/es/breadcrumb/index.d.ts +2 -2
- package/es/breadcrumb/index.js +2 -2
- package/es/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/es/breadcrumb/src/Breadcrumb.js +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.js +1 -1
- package/es/breadcrumb/src/styles/index.cssr.js +1 -0
- package/es/button/index.d.ts +1 -1
- package/es/button/index.js +1 -1
- package/es/button/src/Button.d.ts +13 -4
- package/es/button/src/Button.js +8 -4
- package/es/button/src/styles/index.cssr.js +4 -0
- package/es/button-group/index.d.ts +1 -1
- package/es/button-group/index.js +1 -1
- package/es/button-group/src/ButtonGroup.d.ts +1 -1
- package/es/button-group/src/ButtonGroup.js +2 -2
- package/es/calendar/index.d.ts +1 -1
- package/es/calendar/index.js +1 -1
- package/es/calendar/src/Calendar.d.ts +1 -1
- package/es/calendar/src/Calendar.js +1 -1
- package/es/card/index.d.ts +1 -1
- package/es/card/index.js +1 -1
- package/es/card/src/Card.d.ts +2 -2
- package/es/card/src/Card.js +2 -2
- package/es/carousel/index.d.ts +1 -1
- package/es/carousel/index.js +1 -1
- package/es/carousel/src/Carousel.d.ts +1 -1
- package/es/carousel/src/Carousel.js +1 -1
- package/es/carousel/src/styles/index.cssr.js +1 -0
- package/es/cascader/index.d.ts +1 -1
- package/es/cascader/index.js +1 -1
- package/es/cascader/src/Cascader.d.ts +1 -1
- package/es/cascader/src/Cascader.js +1 -1
- package/es/cascader/src/utils.d.ts +1 -4
- package/es/cascader/src/utils.js +18 -28
- package/es/checkbox/index.d.ts +2 -2
- package/es/checkbox/index.js +2 -2
- package/es/checkbox/src/Checkbox.d.ts +1 -1
- package/es/checkbox/src/Checkbox.js +2 -2
- package/es/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/es/checkbox/src/CheckboxGroup.js +1 -1
- package/es/checkbox/src/styles/index.cssr.js +2 -0
- package/es/code/index.d.ts +1 -1
- package/es/code/index.js +1 -1
- package/es/code/src/Code.d.ts +1 -1
- package/es/code/src/Code.js +1 -1
- package/es/collapse/index.d.ts +2 -2
- package/es/collapse/index.js +2 -2
- package/es/collapse/src/Collapse.d.ts +1 -1
- package/es/collapse/src/Collapse.js +2 -2
- package/es/collapse/src/CollapseItem.d.ts +1 -1
- package/es/collapse/src/CollapseItem.js +2 -2
- package/es/collapse-transition/index.d.ts +1 -1
- package/es/collapse-transition/index.js +1 -1
- package/es/collapse-transition/src/CollapseTransition.d.ts +2 -2
- package/es/collapse-transition/src/CollapseTransition.js +3 -3
- package/es/color-picker/index.d.ts +1 -1
- package/es/color-picker/index.js +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +2 -2
- package/es/color-picker/src/ColorPicker.js +2 -2
- package/es/countdown/index.d.ts +2 -2
- package/es/countdown/index.js +1 -1
- package/es/countdown/src/Countdown.d.ts +9 -2
- package/es/countdown/src/Countdown.js +42 -26
- package/es/data-table/index.d.ts +1 -1
- package/es/data-table/index.js +1 -1
- package/es/data-table/src/TableParts/Body.d.ts +4 -0
- package/es/data-table/src/TableParts/Body.js +50 -34
- package/es/data-table/src/TableParts/BodyRadio.d.ts +30 -0
- package/es/data-table/src/TableParts/BodyRadio.js +30 -0
- package/es/data-table/src/TableParts/Header.js +2 -2
- package/es/data-table/src/interface.d.ts +2 -1
- package/es/data-table/src/use-check.d.ts +1 -1
- package/es/data-table/src/use-check.js +15 -3
- package/es/date-picker/index.d.ts +1 -1
- package/es/date-picker/index.js +1 -1
- package/es/date-picker/src/DatePicker.d.ts +41 -1
- package/es/date-picker/src/DatePicker.js +34 -13
- package/es/date-picker/src/config.d.ts +1 -1
- package/es/date-picker/src/panel/date.d.ts +4 -0
- package/es/date-picker/src/panel/daterange.d.ts +7 -1
- package/es/date-picker/src/panel/daterange.js +1 -1
- package/es/date-picker/src/panel/datetime.d.ts +4 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +7 -1
- package/es/date-picker/src/panel/datetimerange.js +1 -1
- package/es/date-picker/src/panel/month.d.ts +4 -0
- package/es/date-picker/src/panel/month.js +1 -1
- package/es/date-picker/src/panel/monthrange.d.ts +11 -5
- package/es/date-picker/src/panel/monthrange.js +13 -7
- package/es/date-picker/src/panel/panelHeader.d.ts +8 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +9 -3
- package/es/date-picker/src/panel/use-dual-calendar.js +26 -6
- package/es/date-picker/src/panel/use-panel-common.d.ts +4 -0
- package/es/date-picker/src/styles/index.cssr.js +4 -0
- package/es/date-picker/src/utils.d.ts +1 -1
- package/es/date-picker/src/utils.js +2 -2
- package/es/date-picker/styles/_common.d.ts +4 -0
- package/es/date-picker/styles/_common.js +5 -1
- package/es/date-picker/styles/light.d.ts +8 -0
- package/es/descriptions/index.d.ts +2 -2
- package/es/descriptions/index.js +2 -2
- package/es/descriptions/src/Descriptions.d.ts +2 -2
- package/es/descriptions/src/Descriptions.js +2 -2
- package/es/descriptions/src/DescriptionsItem.d.ts +2 -2
- package/es/descriptions/src/DescriptionsItem.js +2 -2
- package/es/dialog/index.d.ts +2 -1
- package/es/dialog/index.js +2 -1
- package/es/dialog/src/DialogProvider.d.ts +1 -1
- package/es/dialog/src/DialogProvider.js +1 -1
- package/es/divider/index.d.ts +1 -1
- package/es/divider/index.js +1 -1
- package/es/divider/src/Divider.d.ts +1 -1
- package/es/divider/src/Divider.js +1 -1
- package/es/drawer/index.d.ts +2 -2
- package/es/drawer/index.js +2 -2
- package/es/drawer/src/Drawer.d.ts +60 -27
- package/es/drawer/src/Drawer.js +39 -18
- package/es/drawer/src/DrawerBodyWrapper.d.ts +9 -0
- package/es/drawer/src/DrawerBodyWrapper.js +98 -3
- package/es/drawer/src/DrawerContent.d.ts +2 -1
- package/es/drawer/src/DrawerContent.js +1 -1
- package/es/drawer/src/interface.d.ts +2 -0
- package/es/drawer/src/styles/index.cssr.js +42 -5
- package/es/drawer/styles/light.d.ts +2 -0
- package/es/drawer/styles/light.js +3 -2
- package/es/dropdown/index.d.ts +2 -2
- package/es/dropdown/index.js +1 -1
- package/es/dropdown/src/Dropdown.d.ts +10 -2
- package/es/dropdown/src/Dropdown.js +15 -4
- package/es/dropdown/src/DropdownMenu.d.ts +3 -0
- package/es/dropdown/src/DropdownMenu.js +23 -15
- package/es/dropdown/src/DropdownOption.d.ts +5 -0
- package/es/dropdown/src/DropdownOption.js +32 -10
- package/es/dropdown/src/interface.d.ts +2 -1
- package/es/dropdown/src/styles/index.cssr.js +17 -11
- package/es/dynamic-input/index.d.ts +1 -1
- package/es/dynamic-input/index.js +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/es/dynamic-input/src/DynamicInput.js +2 -2
- package/es/dynamic-tags/index.d.ts +1 -1
- package/es/dynamic-tags/index.js +1 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.js +1 -1
- package/es/element/index.d.ts +1 -1
- package/es/element/index.js +1 -1
- package/es/element/src/Element.d.ts +1 -1
- package/es/element/src/Element.js +1 -1
- package/es/ellipsis/index.d.ts +1 -1
- package/es/ellipsis/index.js +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.js +1 -1
- package/es/empty/index.d.ts +1 -1
- package/es/empty/index.js +1 -1
- package/es/empty/src/Empty.d.ts +1 -1
- package/es/empty/src/Empty.js +1 -1
- package/es/form/index.d.ts +3 -3
- package/es/form/index.js +3 -3
- package/es/form/src/Form.d.ts +1 -1
- package/es/form/src/Form.js +1 -1
- package/es/form/src/FormItemRow.d.ts +1 -1
- package/es/form/src/FormItemRow.js +1 -1
- package/es/form/src/styles/form-item.cssr.js +2 -0
- package/es/gradient-text/index.d.ts +1 -1
- package/es/gradient-text/index.js +1 -1
- package/es/gradient-text/src/GradientText.d.ts +1 -1
- package/es/gradient-text/src/GradientText.js +1 -1
- package/es/grid/index.d.ts +3 -3
- package/es/grid/index.js +3 -3
- package/es/grid/src/Grid.d.ts +1 -1
- package/es/grid/src/Grid.js +2 -2
- package/es/icon/index.d.ts +1 -1
- package/es/icon/index.js +1 -1
- package/es/icon/src/Icon.d.ts +1 -2
- package/es/icon/src/Icon.js +1 -1
- package/es/icon-wrapper/index.d.ts +1 -1
- package/es/icon-wrapper/index.js +1 -1
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -2
- package/es/icon-wrapper/src/IconWrapper.js +1 -1
- package/es/image/index.d.ts +2 -2
- package/es/image/index.js +2 -2
- package/es/image/src/Image.d.ts +1 -1
- package/es/image/src/Image.js +17 -10
- package/es/image/src/ImageGroup.d.ts +1 -1
- package/es/image/src/ImageGroup.js +1 -1
- package/es/image/src/styles/index.cssr.js +1 -0
- package/es/input/index.d.ts +3 -3
- package/es/input/index.js +3 -3
- package/es/input/src/Input.d.ts +1 -1
- package/es/input/src/Input.js +2 -2
- package/es/input/src/InputGroup.d.ts +1 -1
- package/es/input/src/InputGroup.js +1 -1
- package/es/input/src/InputGroupLabel.d.ts +1 -1
- package/es/input/src/InputGroupLabel.js +1 -1
- package/es/input/src/styles/input-group-label.cssr.js +1 -0
- package/es/input/src/styles/input.cssr.js +3 -0
- package/es/input-number/index.d.ts +1 -1
- package/es/input-number/index.js +1 -1
- package/es/input-number/src/InputNumber.d.ts +1 -1
- package/es/input-number/src/InputNumber.js +2 -2
- package/es/layout/index.d.ts +4 -4
- package/es/layout/index.js +4 -4
- package/es/layout/src/Layout.d.ts +1 -1
- package/es/layout/src/Layout.js +1 -1
- package/es/layout/src/LayoutFooter.d.ts +1 -1
- package/es/layout/src/LayoutFooter.js +1 -1
- package/es/layout/src/LayoutHeader.d.ts +1 -1
- package/es/layout/src/LayoutHeader.js +1 -1
- package/es/layout/src/LayoutSider.d.ts +1 -1
- package/es/layout/src/LayoutSider.js +1 -1
- package/es/legacy-grid/index.d.ts +2 -2
- package/es/legacy-grid/index.js +2 -2
- package/es/list/index.d.ts +1 -1
- package/es/list/index.js +1 -1
- package/es/list/src/List.d.ts +1 -1
- package/es/list/src/List.js +1 -1
- package/es/loading-bar/index.d.ts +1 -1
- package/es/loading-bar/index.js +1 -1
- package/es/loading-bar/src/LoadingBarProvider.d.ts +3 -3
- package/es/loading-bar/src/LoadingBarProvider.js +2 -2
- package/es/locales/common/ukUA.js +14 -18
- package/es/locales/common/viVN.d.ts +3 -0
- package/es/locales/common/viVN.js +113 -0
- package/es/locales/date/viVN.d.ts +3 -0
- package/es/locales/date/viVN.js +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -0
- package/es/log/index.d.ts +1 -1
- package/es/log/index.js +1 -1
- package/es/log/src/Log.d.ts +1 -1
- package/es/log/src/Log.js +1 -1
- package/es/mention/index.d.ts +1 -1
- package/es/mention/index.js +1 -1
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/Mention.js +1 -1
- package/es/menu/index.d.ts +1 -1
- package/es/menu/index.js +1 -1
- package/es/menu/src/Menu.d.ts +1 -1
- package/es/menu/src/Menu.js +1 -1
- package/es/message/index.d.ts +1 -1
- package/es/message/index.js +1 -1
- package/es/message/src/MessageProvider.d.ts +1 -1
- package/es/message/src/MessageProvider.js +1 -1
- package/es/modal/index.d.ts +1 -1
- package/es/modal/index.js +1 -1
- package/es/modal/src/Modal.d.ts +1 -1
- package/es/modal/src/Modal.js +1 -1
- package/es/modal/src/presetProps.d.ts +1 -1
- package/es/modal/src/styles/index.cssr.js +1 -0
- package/es/notification/index.d.ts +1 -1
- package/es/notification/index.js +1 -1
- package/es/notification/src/Notification.d.ts +4 -0
- package/es/notification/src/Notification.js +11 -4
- package/es/notification/src/NotificationContainer.d.ts +3 -0
- package/es/notification/src/NotificationContainer.js +1 -1
- package/es/notification/src/NotificationProvider.d.ts +28 -1
- package/es/notification/src/NotificationProvider.js +1 -1
- package/es/notification/src/styles/index.cssr.js +7 -6
- package/es/notification/src/styles/rtl.cssr.d.ts +2 -0
- package/es/notification/src/styles/rtl.cssr.js +22 -0
- package/es/notification/styles/_common.d.ts +3 -0
- package/es/notification/styles/_common.js +4 -1
- package/es/notification/styles/index.d.ts +1 -0
- package/es/notification/styles/index.js +1 -0
- package/es/notification/styles/light.d.ts +6 -0
- package/es/notification/styles/rtl.d.ts +2 -0
- package/es/notification/styles/rtl.js +5 -0
- package/es/number-animation/index.d.ts +1 -1
- package/es/number-animation/index.js +1 -1
- package/es/number-animation/src/NumberAnimation.d.ts +5 -1
- package/es/number-animation/src/NumberAnimation.js +5 -2
- package/es/page-header/index.d.ts +1 -1
- package/es/page-header/index.js +1 -1
- package/es/page-header/src/PageHeader.d.ts +1 -1
- package/es/page-header/src/PageHeader.js +2 -2
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/index.js +1 -1
- package/es/pagination/src/Pagination.d.ts +1 -1
- package/es/pagination/src/Pagination.js +2 -2
- package/es/pagination/src/styles/index.cssr.js +1 -0
- package/es/popconfirm/index.d.ts +1 -1
- package/es/popconfirm/index.js +1 -1
- package/es/popconfirm/src/Popconfirm.d.ts +4 -1
- package/es/popconfirm/src/Popconfirm.js +1 -1
- package/es/popover/index.d.ts +1 -1
- package/es/popover/index.js +1 -1
- package/es/popover/src/Popover.d.ts +8 -1
- package/es/popover/src/Popover.js +4 -2
- package/es/popover/src/PopoverBody.d.ts +6 -0
- package/es/popover/src/PopoverBody.js +23 -14
- package/es/popover/src/styles/index.cssr.js +19 -15
- package/es/popselect/index.d.ts +1 -1
- package/es/popselect/index.js +1 -1
- package/es/popselect/src/Popselect.d.ts +4 -1
- package/es/popselect/src/Popselect.js +1 -1
- package/es/progress/index.d.ts +1 -1
- package/es/progress/index.js +1 -1
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/progress/src/Progress.js +1 -1
- package/es/radio/index.d.ts +3 -3
- package/es/radio/index.js +3 -3
- package/es/radio/src/Radio.d.ts +25 -0
- package/es/radio/src/Radio.js +2 -1
- package/es/radio/src/RadioButton.d.ts +25 -0
- package/es/radio/src/RadioButton.js +1 -0
- package/es/radio/src/RadioGroup.d.ts +1 -1
- package/es/radio/src/RadioGroup.js +2 -2
- package/es/radio/src/styles/radio-group.cssr.js +2 -0
- package/es/radio/src/styles/radio.cssr.js +1 -0
- package/es/rate/index.d.ts +1 -1
- package/es/rate/index.js +1 -1
- package/es/rate/src/Rate.d.ts +1 -1
- package/es/rate/src/Rate.js +1 -1
- package/es/result/index.d.ts +1 -1
- package/es/result/index.js +1 -1
- package/es/result/src/Result.d.ts +1 -1
- package/es/result/src/Result.js +1 -1
- package/es/scrollbar/index.d.ts +1 -1
- package/es/scrollbar/index.js +1 -1
- package/es/scrollbar/src/Scrollbar.d.ts +1 -1
- package/es/scrollbar/src/Scrollbar.js +1 -1
- package/es/select/index.d.ts +2 -2
- package/es/select/index.js +1 -1
- package/es/select/src/Select.d.ts +5 -5
- package/es/select/src/Select.js +11 -2
- package/es/select/src/interface.d.ts +1 -0
- package/es/skeleton/index.d.ts +1 -1
- package/es/skeleton/index.js +1 -1
- package/es/skeleton/src/Skeleton.d.ts +1 -1
- package/es/skeleton/src/Skeleton.js +1 -1
- package/es/slider/index.d.ts +1 -1
- package/es/slider/index.js +1 -1
- package/es/slider/src/Slider.d.ts +1 -1
- package/es/slider/src/Slider.js +1 -1
- package/es/slider/src/styles/index.cssr.js +1 -0
- package/es/space/index.d.ts +1 -1
- package/es/space/index.js +1 -1
- package/es/space/src/Space.d.ts +1 -1
- package/es/space/src/Space.js +2 -2
- package/es/spin/index.d.ts +1 -1
- package/es/spin/index.js +1 -1
- package/es/spin/src/Spin.d.ts +1 -1
- package/es/spin/src/Spin.js +1 -1
- package/es/spin/src/styles/index.cssr.js +1 -0
- package/es/statistic/index.d.ts +1 -1
- package/es/statistic/index.js +1 -1
- package/es/statistic/src/Statistic.d.ts +1 -1
- package/es/statistic/src/Statistic.js +1 -1
- package/es/steps/index.d.ts +2 -2
- package/es/steps/index.js +2 -2
- package/es/steps/src/Step.d.ts +1 -1
- package/es/steps/src/Step.js +1 -1
- package/es/steps/src/Steps.d.ts +1 -1
- package/es/steps/src/Steps.js +1 -1
- package/es/switch/index.d.ts +1 -1
- package/es/switch/index.js +1 -1
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/switch/src/Switch.js +1 -1
- package/es/switch/src/styles/index.cssr.js +1 -0
- package/es/table/index.d.ts +1 -1
- package/es/table/index.js +1 -1
- package/es/table/src/Table.d.ts +1 -1
- package/es/table/src/Table.js +2 -2
- package/es/tabs/index.d.ts +3 -3
- package/es/tabs/index.js +3 -3
- package/es/tabs/src/Tab.d.ts +2 -2
- package/es/tabs/src/Tab.js +2 -2
- package/es/tabs/src/Tabs.d.ts +1 -1
- package/es/tabs/src/Tabs.js +2 -2
- package/es/tag/index.d.ts +1 -1
- package/es/tag/index.js +1 -1
- package/es/tag/src/Tag.d.ts +1 -1
- package/es/tag/src/Tag.js +2 -2
- package/es/thing/index.d.ts +1 -1
- package/es/thing/index.js +1 -1
- package/es/thing/src/Thing.d.ts +1 -1
- package/es/thing/src/Thing.js +1 -1
- package/es/time/index.d.ts +1 -1
- package/es/time/index.js +1 -1
- package/es/time/src/Time.d.ts +1 -1
- package/es/time/src/Time.js +1 -1
- package/es/time-picker/index.d.ts +1 -1
- package/es/time-picker/index.js +1 -1
- package/es/time-picker/src/TimePicker.d.ts +1 -1
- package/es/time-picker/src/TimePicker.js +1 -1
- package/es/timeline/index.d.ts +2 -2
- package/es/timeline/index.js +2 -2
- package/es/timeline/src/Timeline.d.ts +1 -1
- package/es/timeline/src/Timeline.js +1 -1
- package/es/timeline/src/TimelineItem.d.ts +1 -1
- package/es/timeline/src/TimelineItem.js +1 -1
- package/es/tooltip/index.d.ts +1 -1
- package/es/tooltip/index.js +1 -1
- package/es/tooltip/src/Tooltip.d.ts +4 -1
- package/es/tooltip/src/Tooltip.js +1 -1
- package/es/transfer/index.d.ts +1 -1
- package/es/transfer/index.js +1 -1
- package/es/transfer/src/Transfer.d.ts +1 -1
- package/es/transfer/src/Transfer.js +1 -1
- package/es/tree/index.d.ts +1 -1
- package/es/tree/index.js +1 -1
- package/es/tree/src/Tree.d.ts +23 -5
- package/es/tree/src/Tree.js +47 -20
- package/es/tree/src/TreeNode.d.ts +1 -1
- package/es/tree/src/TreeNode.js +21 -6
- package/es/tree/src/interface.d.ts +3 -1
- package/es/tree-select/index.d.ts +2 -2
- package/es/tree-select/index.js +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +29 -7
- package/es/tree-select/src/TreeSelect.js +21 -5
- package/es/tree-select/src/interface.d.ts +17 -1
- package/es/typography/index.d.ts +7 -6
- package/es/typography/index.js +7 -6
- package/es/typography/src/a.d.ts +1 -1
- package/es/typography/src/a.js +1 -1
- package/es/typography/src/blockquote.d.ts +1 -1
- package/es/typography/src/blockquote.js +1 -1
- package/es/typography/src/create-header.d.ts +1 -1
- package/es/typography/src/create-header.js +1 -1
- package/es/typography/src/ol.d.ts +1 -1
- package/es/typography/src/ol.js +1 -1
- package/es/typography/src/p.d.ts +1 -1
- package/es/typography/src/p.js +1 -1
- package/es/typography/src/text.d.ts +1 -1
- package/es/typography/src/text.js +1 -1
- package/es/typography/src/ul.d.ts +1 -1
- package/es/typography/src/ul.js +1 -1
- package/es/upload/index.d.ts +1 -1
- package/es/upload/index.js +1 -1
- package/es/upload/src/Upload.d.ts +1 -1
- package/es/upload/src/Upload.js +1 -1
- package/es/upload/src/UploadFile.d.ts +2 -2
- package/es/upload/src/UploadFile.js +8 -4
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/index.d.ts +1 -1
- package/es/watermark/index.js +1 -1
- package/es/watermark/src/Watermark.d.ts +1 -1
- package/es/watermark/src/Watermark.js +1 -1
- package/es/watermark/src/styles/index.cssr.js +4 -1
- package/lib/_internal/close/src/Close.js +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.js +8 -2
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +1 -0
- package/lib/_internal/select-menu/src/styles/index.cssr.js +1 -1
- package/lib/_internal/selection/src/styles/index.cssr.js +1 -0
- package/lib/_mixins/use-rtl.d.ts +1 -1
- package/lib/_mixins/use-rtl.js +2 -1
- package/lib/_utils/env/browser.d.ts +3 -0
- package/lib/_utils/env/browser.js +7 -0
- package/lib/_utils/env/is-native-lazy-load.d.ts +1 -0
- package/lib/_utils/env/is-native-lazy-load.js +6 -0
- package/lib/affix/index.d.ts +1 -1
- package/lib/affix/index.js +2 -1
- package/lib/alert/index.d.ts +1 -1
- package/lib/alert/index.js +2 -1
- package/lib/alert/src/Alert.d.ts +1 -1
- package/lib/alert/src/Alert.js +5 -4
- package/lib/anchor/index.d.ts +2 -2
- package/lib/anchor/index.js +3 -1
- package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
- package/lib/anchor/src/AnchorAdapter.js +3 -2
- package/lib/anchor/src/Link.d.ts +1 -1
- package/lib/anchor/src/Link.js +3 -3
- package/lib/auto-complete/index.d.ts +1 -1
- package/lib/auto-complete/index.js +2 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
- package/lib/auto-complete/src/AutoComplete.js +3 -2
- package/lib/avatar/index.d.ts +1 -1
- package/lib/avatar/index.js +2 -1
- package/lib/avatar/src/Avatar.d.ts +13 -1
- package/lib/avatar/src/Avatar.js +60 -7
- package/lib/avatar-group/index.d.ts +1 -1
- package/lib/avatar-group/index.js +2 -1
- package/lib/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/lib/avatar-group/src/AvatarGroup.js +5 -4
- package/lib/back-top/index.d.ts +1 -1
- package/lib/back-top/index.js +2 -1
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/back-top/src/BackTop.js +3 -2
- package/lib/badge/index.d.ts +1 -1
- package/lib/badge/index.js +2 -1
- package/lib/badge/src/Badge.d.ts +1 -1
- package/lib/badge/src/Badge.js +5 -4
- package/lib/breadcrumb/index.d.ts +2 -2
- package/lib/breadcrumb/index.js +3 -1
- package/lib/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/src/Breadcrumb.js +3 -3
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/lib/breadcrumb/src/BreadcrumbItem.js +3 -2
- package/lib/breadcrumb/src/styles/index.cssr.js +1 -0
- package/lib/button/index.d.ts +1 -1
- package/lib/button/index.js +2 -1
- package/lib/button/src/Button.d.ts +13 -4
- package/lib/button/src/Button.js +11 -7
- package/lib/button/src/styles/index.cssr.js +4 -0
- package/lib/button-group/index.d.ts +1 -1
- package/lib/button-group/index.js +2 -1
- package/lib/button-group/src/ButtonGroup.d.ts +1 -1
- package/lib/button-group/src/ButtonGroup.js +5 -4
- package/lib/calendar/index.d.ts +1 -1
- package/lib/calendar/index.js +2 -1
- package/lib/calendar/src/Calendar.d.ts +1 -1
- package/lib/calendar/src/Calendar.js +3 -2
- package/lib/card/index.d.ts +1 -1
- package/lib/card/index.js +2 -1
- package/lib/card/src/Card.d.ts +2 -2
- package/lib/card/src/Card.js +5 -5
- package/lib/carousel/index.d.ts +1 -1
- package/lib/carousel/index.js +2 -1
- package/lib/carousel/src/Carousel.d.ts +1 -1
- package/lib/carousel/src/Carousel.js +3 -2
- package/lib/carousel/src/styles/index.cssr.js +1 -0
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/index.js +2 -1
- package/lib/cascader/src/Cascader.d.ts +1 -1
- package/lib/cascader/src/Cascader.js +3 -2
- package/lib/cascader/src/utils.d.ts +1 -4
- package/lib/cascader/src/utils.js +18 -29
- package/lib/checkbox/index.d.ts +2 -2
- package/lib/checkbox/index.js +3 -1
- package/lib/checkbox/src/Checkbox.d.ts +1 -1
- package/lib/checkbox/src/Checkbox.js +5 -4
- package/lib/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox/src/CheckboxGroup.js +3 -3
- package/lib/checkbox/src/styles/index.cssr.js +2 -0
- package/lib/code/index.d.ts +1 -1
- package/lib/code/index.js +2 -1
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/code/src/Code.js +3 -2
- package/lib/collapse/index.d.ts +2 -2
- package/lib/collapse/index.js +3 -1
- package/lib/collapse/src/Collapse.d.ts +1 -1
- package/lib/collapse/src/Collapse.js +5 -5
- package/lib/collapse/src/CollapseItem.d.ts +1 -1
- package/lib/collapse/src/CollapseItem.js +5 -4
- package/lib/collapse-transition/index.d.ts +1 -1
- package/lib/collapse-transition/index.js +2 -1
- package/lib/collapse-transition/src/CollapseTransition.d.ts +2 -2
- package/lib/collapse-transition/src/CollapseTransition.js +5 -4
- package/lib/color-picker/index.d.ts +1 -1
- package/lib/color-picker/index.js +2 -1
- package/lib/color-picker/src/ColorPicker.d.ts +2 -2
- package/lib/color-picker/src/ColorPicker.js +3 -3
- package/lib/countdown/index.d.ts +2 -2
- package/lib/countdown/index.js +2 -1
- package/lib/countdown/src/Countdown.d.ts +9 -2
- package/lib/countdown/src/Countdown.js +44 -27
- package/lib/data-table/index.d.ts +1 -1
- package/lib/data-table/index.js +2 -1
- package/lib/data-table/src/TableParts/Body.d.ts +4 -0
- package/lib/data-table/src/TableParts/Body.js +50 -34
- package/lib/data-table/src/TableParts/BodyRadio.d.ts +30 -0
- package/lib/data-table/src/TableParts/BodyRadio.js +32 -0
- package/lib/data-table/src/TableParts/Header.js +2 -2
- package/lib/data-table/src/interface.d.ts +2 -1
- package/lib/data-table/src/use-check.d.ts +1 -1
- package/lib/data-table/src/use-check.js +15 -3
- package/lib/date-picker/index.d.ts +1 -1
- package/lib/date-picker/index.js +2 -1
- package/lib/date-picker/src/DatePicker.d.ts +41 -1
- package/lib/date-picker/src/DatePicker.js +36 -14
- package/lib/date-picker/src/config.d.ts +1 -1
- package/lib/date-picker/src/panel/date.d.ts +4 -0
- package/lib/date-picker/src/panel/daterange.d.ts +7 -1
- package/lib/date-picker/src/panel/daterange.js +1 -1
- package/lib/date-picker/src/panel/datetime.d.ts +4 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +7 -1
- package/lib/date-picker/src/panel/datetimerange.js +1 -1
- package/lib/date-picker/src/panel/month.d.ts +4 -0
- package/lib/date-picker/src/panel/month.js +1 -1
- package/lib/date-picker/src/panel/monthrange.d.ts +11 -5
- package/lib/date-picker/src/panel/monthrange.js +13 -7
- package/lib/date-picker/src/panel/panelHeader.d.ts +8 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +9 -3
- package/lib/date-picker/src/panel/use-dual-calendar.js +24 -4
- package/lib/date-picker/src/panel/use-panel-common.d.ts +4 -0
- package/lib/date-picker/src/styles/index.cssr.js +4 -0
- package/lib/date-picker/src/utils.d.ts +1 -1
- package/lib/date-picker/src/utils.js +2 -2
- package/lib/date-picker/styles/_common.d.ts +4 -0
- package/lib/date-picker/styles/_common.js +5 -1
- package/lib/date-picker/styles/light.d.ts +8 -0
- package/lib/descriptions/index.d.ts +2 -2
- package/lib/descriptions/index.js +3 -1
- package/lib/descriptions/src/Descriptions.d.ts +2 -2
- package/lib/descriptions/src/Descriptions.js +3 -2
- package/lib/descriptions/src/DescriptionsItem.d.ts +2 -2
- package/lib/descriptions/src/DescriptionsItem.js +3 -2
- package/lib/dialog/index.d.ts +2 -1
- package/lib/dialog/index.js +4 -1
- package/lib/dialog/src/DialogProvider.d.ts +1 -1
- package/lib/dialog/src/DialogProvider.js +3 -3
- package/lib/divider/index.d.ts +1 -1
- package/lib/divider/index.js +2 -1
- package/lib/divider/src/Divider.d.ts +1 -1
- package/lib/divider/src/Divider.js +3 -2
- package/lib/drawer/index.d.ts +2 -2
- package/lib/drawer/index.js +3 -1
- package/lib/drawer/src/Drawer.d.ts +60 -27
- package/lib/drawer/src/Drawer.js +39 -17
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +9 -0
- package/lib/drawer/src/DrawerBodyWrapper.js +97 -2
- package/lib/drawer/src/DrawerContent.d.ts +2 -1
- package/lib/drawer/src/DrawerContent.js +3 -2
- package/lib/drawer/src/interface.d.ts +2 -0
- package/lib/drawer/src/styles/index.cssr.js +42 -5
- package/lib/drawer/styles/light.d.ts +2 -0
- package/lib/drawer/styles/light.js +3 -2
- package/lib/dropdown/index.d.ts +2 -2
- package/lib/dropdown/index.js +2 -1
- package/lib/dropdown/src/Dropdown.d.ts +10 -2
- package/lib/dropdown/src/Dropdown.js +17 -5
- package/lib/dropdown/src/DropdownMenu.d.ts +3 -0
- package/lib/dropdown/src/DropdownMenu.js +23 -15
- package/lib/dropdown/src/DropdownOption.d.ts +5 -0
- package/lib/dropdown/src/DropdownOption.js +32 -10
- package/lib/dropdown/src/interface.d.ts +2 -1
- package/lib/dropdown/src/styles/index.cssr.js +16 -10
- package/lib/dynamic-input/index.d.ts +1 -1
- package/lib/dynamic-input/index.js +2 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/lib/dynamic-input/src/DynamicInput.js +5 -4
- package/lib/dynamic-tags/index.d.ts +1 -1
- package/lib/dynamic-tags/index.js +2 -1
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.js +3 -2
- package/lib/element/index.d.ts +1 -1
- package/lib/element/index.js +2 -1
- package/lib/element/src/Element.d.ts +1 -1
- package/lib/element/src/Element.js +3 -2
- package/lib/ellipsis/index.d.ts +1 -1
- package/lib/ellipsis/index.js +2 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.js +3 -2
- package/lib/empty/index.d.ts +1 -1
- package/lib/empty/index.js +2 -1
- package/lib/empty/src/Empty.d.ts +1 -1
- package/lib/empty/src/Empty.js +3 -2
- package/lib/form/index.d.ts +3 -3
- package/lib/form/index.js +5 -1
- package/lib/form/src/Form.d.ts +1 -1
- package/lib/form/src/Form.js +3 -2
- package/lib/form/src/FormItemRow.d.ts +1 -1
- package/lib/form/src/FormItemRow.js +3 -2
- package/lib/form/src/styles/form-item.cssr.js +2 -0
- package/lib/gradient-text/index.d.ts +1 -1
- package/lib/gradient-text/index.js +2 -1
- package/lib/gradient-text/src/GradientText.d.ts +1 -1
- package/lib/gradient-text/src/GradientText.js +3 -2
- package/lib/grid/index.d.ts +3 -3
- package/lib/grid/index.js +4 -1
- package/lib/grid/src/Grid.d.ts +1 -1
- package/lib/grid/src/Grid.js +4 -3
- package/lib/icon/index.d.ts +1 -1
- package/lib/icon/index.js +2 -1
- package/lib/icon/src/Icon.d.ts +1 -2
- package/lib/icon/src/Icon.js +3 -3
- package/lib/icon-wrapper/index.d.ts +1 -1
- package/lib/icon-wrapper/index.js +2 -1
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -2
- package/lib/icon-wrapper/src/IconWrapper.js +3 -3
- package/lib/image/index.d.ts +2 -2
- package/lib/image/index.js +3 -1
- package/lib/image/src/Image.d.ts +1 -1
- package/lib/image/src/Image.js +19 -11
- package/lib/image/src/ImageGroup.d.ts +1 -1
- package/lib/image/src/ImageGroup.js +3 -3
- package/lib/image/src/styles/index.cssr.js +1 -0
- package/lib/input/index.d.ts +3 -3
- package/lib/input/index.js +4 -1
- package/lib/input/src/Input.d.ts +1 -1
- package/lib/input/src/Input.js +5 -4
- package/lib/input/src/InputGroup.d.ts +1 -1
- package/lib/input/src/InputGroup.js +3 -2
- package/lib/input/src/InputGroupLabel.d.ts +1 -1
- package/lib/input/src/InputGroupLabel.js +3 -2
- package/lib/input/src/styles/input-group-label.cssr.js +1 -0
- package/lib/input/src/styles/input.cssr.js +3 -0
- package/lib/input-number/index.d.ts +1 -1
- package/lib/input-number/index.js +2 -1
- package/lib/input-number/src/InputNumber.d.ts +1 -1
- package/lib/input-number/src/InputNumber.js +5 -4
- package/lib/layout/index.d.ts +4 -4
- package/lib/layout/index.js +6 -1
- package/lib/layout/src/Layout.d.ts +1 -1
- package/lib/layout/src/Layout.js +3 -3
- package/lib/layout/src/LayoutFooter.d.ts +1 -1
- package/lib/layout/src/LayoutFooter.js +3 -2
- package/lib/layout/src/LayoutHeader.d.ts +1 -1
- package/lib/layout/src/LayoutHeader.js +3 -2
- package/lib/layout/src/LayoutSider.d.ts +1 -1
- package/lib/layout/src/LayoutSider.js +3 -2
- package/lib/legacy-grid/index.d.ts +2 -2
- package/lib/legacy-grid/index.js +3 -1
- package/lib/list/index.d.ts +1 -1
- package/lib/list/index.js +2 -1
- package/lib/list/src/List.d.ts +1 -1
- package/lib/list/src/List.js +3 -3
- package/lib/loading-bar/index.d.ts +1 -1
- package/lib/loading-bar/index.js +2 -1
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +3 -3
- package/lib/loading-bar/src/LoadingBarProvider.js +3 -2
- package/lib/locales/common/ukUA.js +14 -18
- package/lib/locales/common/viVN.d.ts +3 -0
- package/lib/locales/common/viVN.js +115 -0
- package/lib/locales/date/viVN.d.ts +3 -0
- package/lib/locales/date/viVN.js +11 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +5 -1
- package/lib/log/index.d.ts +1 -1
- package/lib/log/index.js +2 -1
- package/lib/log/src/Log.d.ts +1 -1
- package/lib/log/src/Log.js +3 -2
- package/lib/mention/index.d.ts +1 -1
- package/lib/mention/index.js +2 -1
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/Mention.js +3 -2
- package/lib/menu/index.d.ts +1 -1
- package/lib/menu/index.js +2 -1
- package/lib/menu/src/Menu.d.ts +1 -1
- package/lib/menu/src/Menu.js +3 -2
- package/lib/message/index.d.ts +1 -1
- package/lib/message/index.js +2 -1
- package/lib/message/src/MessageProvider.d.ts +1 -1
- package/lib/message/src/MessageProvider.js +3 -2
- package/lib/modal/index.d.ts +1 -1
- package/lib/modal/index.js +2 -1
- package/lib/modal/src/Modal.d.ts +1 -1
- package/lib/modal/src/Modal.js +3 -2
- package/lib/modal/src/presetProps.d.ts +1 -1
- package/lib/modal/src/styles/index.cssr.js +1 -0
- package/lib/notification/index.d.ts +1 -1
- package/lib/notification/index.js +2 -1
- package/lib/notification/src/Notification.d.ts +4 -0
- package/lib/notification/src/Notification.js +11 -4
- package/lib/notification/src/NotificationContainer.d.ts +3 -0
- package/lib/notification/src/NotificationContainer.js +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +28 -1
- package/lib/notification/src/NotificationProvider.js +3 -3
- package/lib/notification/src/styles/index.cssr.js +7 -6
- package/lib/notification/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/notification/src/styles/rtl.cssr.js +29 -0
- package/lib/notification/styles/_common.d.ts +3 -0
- package/lib/notification/styles/_common.js +4 -1
- package/lib/notification/styles/index.d.ts +1 -0
- package/lib/notification/styles/index.js +3 -1
- package/lib/notification/styles/light.d.ts +6 -0
- package/lib/notification/styles/rtl.d.ts +2 -0
- package/lib/notification/styles/rtl.js +11 -0
- package/lib/number-animation/index.d.ts +1 -1
- package/lib/number-animation/index.js +2 -1
- package/lib/number-animation/src/NumberAnimation.d.ts +5 -1
- package/lib/number-animation/src/NumberAnimation.js +7 -3
- package/lib/page-header/index.d.ts +1 -1
- package/lib/page-header/index.js +2 -1
- package/lib/page-header/src/PageHeader.d.ts +1 -1
- package/lib/page-header/src/PageHeader.js +5 -4
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/index.js +2 -1
- package/lib/pagination/src/Pagination.d.ts +1 -1
- package/lib/pagination/src/Pagination.js +5 -4
- package/lib/pagination/src/styles/index.cssr.js +1 -0
- package/lib/popconfirm/index.d.ts +1 -1
- package/lib/popconfirm/index.js +2 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +4 -1
- package/lib/popconfirm/src/Popconfirm.js +3 -2
- package/lib/popover/index.d.ts +1 -1
- package/lib/popover/index.js +2 -1
- package/lib/popover/src/Popover.d.ts +8 -1
- package/lib/popover/src/Popover.js +6 -4
- package/lib/popover/src/PopoverBody.d.ts +6 -0
- package/lib/popover/src/PopoverBody.js +23 -14
- package/lib/popover/src/styles/index.cssr.js +19 -15
- package/lib/popselect/index.d.ts +1 -1
- package/lib/popselect/index.js +2 -1
- package/lib/popselect/src/Popselect.d.ts +4 -1
- package/lib/popselect/src/Popselect.js +3 -2
- package/lib/progress/index.d.ts +1 -1
- package/lib/progress/index.js +2 -1
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/progress/src/Progress.js +3 -2
- package/lib/radio/index.d.ts +3 -3
- package/lib/radio/index.js +4 -1
- package/lib/radio/src/Radio.d.ts +25 -0
- package/lib/radio/src/Radio.js +4 -2
- package/lib/radio/src/RadioButton.d.ts +25 -0
- package/lib/radio/src/RadioButton.js +2 -0
- package/lib/radio/src/RadioGroup.d.ts +1 -1
- package/lib/radio/src/RadioGroup.js +5 -4
- package/lib/radio/src/styles/radio-group.cssr.js +2 -0
- package/lib/radio/src/styles/radio.cssr.js +1 -0
- package/lib/rate/index.d.ts +1 -1
- package/lib/rate/index.js +2 -1
- package/lib/rate/src/Rate.d.ts +1 -1
- package/lib/rate/src/Rate.js +3 -2
- package/lib/result/index.d.ts +1 -1
- package/lib/result/index.js +2 -1
- package/lib/result/src/Result.d.ts +1 -1
- package/lib/result/src/Result.js +3 -2
- package/lib/scrollbar/index.d.ts +1 -1
- package/lib/scrollbar/index.js +2 -1
- package/lib/scrollbar/src/Scrollbar.d.ts +1 -1
- package/lib/scrollbar/src/Scrollbar.js +3 -2
- package/lib/select/index.d.ts +2 -2
- package/lib/select/index.js +2 -1
- package/lib/select/src/Select.d.ts +5 -5
- package/lib/select/src/Select.js +13 -3
- package/lib/select/src/interface.d.ts +1 -0
- package/lib/skeleton/index.d.ts +1 -1
- package/lib/skeleton/index.js +2 -1
- package/lib/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/skeleton/src/Skeleton.js +3 -2
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +2 -1
- package/lib/slider/src/Slider.d.ts +1 -1
- package/lib/slider/src/Slider.js +3 -2
- package/lib/slider/src/styles/index.cssr.js +1 -0
- package/lib/space/index.d.ts +1 -1
- package/lib/space/index.js +2 -1
- package/lib/space/src/Space.d.ts +1 -1
- package/lib/space/src/Space.js +5 -7
- package/lib/spin/index.d.ts +1 -1
- package/lib/spin/index.js +2 -1
- package/lib/spin/src/Spin.d.ts +1 -1
- package/lib/spin/src/Spin.js +3 -2
- package/lib/spin/src/styles/index.cssr.js +1 -0
- package/lib/statistic/index.d.ts +1 -1
- package/lib/statistic/index.js +2 -1
- package/lib/statistic/src/Statistic.d.ts +1 -1
- package/lib/statistic/src/Statistic.js +3 -2
- package/lib/steps/index.d.ts +2 -2
- package/lib/steps/index.js +3 -1
- package/lib/steps/src/Step.d.ts +1 -1
- package/lib/steps/src/Step.js +3 -2
- package/lib/steps/src/Steps.d.ts +1 -1
- package/lib/steps/src/Steps.js +3 -3
- package/lib/switch/index.d.ts +1 -1
- package/lib/switch/index.js +2 -1
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/switch/src/Switch.js +3 -2
- package/lib/switch/src/styles/index.cssr.js +1 -0
- package/lib/table/index.d.ts +1 -1
- package/lib/table/index.js +2 -1
- package/lib/table/src/Table.d.ts +1 -1
- package/lib/table/src/Table.js +5 -4
- package/lib/tabs/index.d.ts +3 -3
- package/lib/tabs/index.js +4 -1
- package/lib/tabs/src/Tab.d.ts +2 -2
- package/lib/tabs/src/Tab.js +3 -2
- package/lib/tabs/src/Tabs.d.ts +1 -1
- package/lib/tabs/src/Tabs.js +4 -3
- package/lib/tag/index.d.ts +1 -1
- package/lib/tag/index.js +2 -1
- package/lib/tag/src/Tag.d.ts +1 -1
- package/lib/tag/src/Tag.js +5 -5
- package/lib/thing/index.d.ts +1 -1
- package/lib/thing/index.js +2 -1
- package/lib/thing/src/Thing.d.ts +1 -1
- package/lib/thing/src/Thing.js +3 -2
- package/lib/time/index.d.ts +1 -1
- package/lib/time/index.js +2 -1
- package/lib/time/src/Time.d.ts +1 -1
- package/lib/time/src/Time.js +3 -2
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/time-picker/index.js +2 -1
- package/lib/time-picker/src/TimePicker.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.js +3 -2
- package/lib/timeline/index.d.ts +2 -2
- package/lib/timeline/index.js +3 -1
- package/lib/timeline/src/Timeline.d.ts +1 -1
- package/lib/timeline/src/Timeline.js +3 -3
- package/lib/timeline/src/TimelineItem.d.ts +1 -1
- package/lib/timeline/src/TimelineItem.js +3 -2
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tooltip/index.js +2 -1
- package/lib/tooltip/src/Tooltip.d.ts +4 -1
- package/lib/tooltip/src/Tooltip.js +3 -2
- package/lib/transfer/index.d.ts +1 -1
- package/lib/transfer/index.js +2 -1
- package/lib/transfer/src/Transfer.d.ts +1 -1
- package/lib/transfer/src/Transfer.js +3 -2
- package/lib/tree/index.d.ts +1 -1
- package/lib/tree/index.js +2 -1
- package/lib/tree/src/Tree.d.ts +23 -5
- package/lib/tree/src/Tree.js +49 -22
- package/lib/tree/src/TreeNode.d.ts +1 -1
- package/lib/tree/src/TreeNode.js +21 -6
- package/lib/tree/src/interface.d.ts +3 -1
- package/lib/tree-select/index.d.ts +2 -2
- package/lib/tree-select/index.js +2 -1
- package/lib/tree-select/src/TreeSelect.d.ts +29 -7
- package/lib/tree-select/src/TreeSelect.js +22 -5
- package/lib/tree-select/src/interface.d.ts +17 -1
- package/lib/typography/index.d.ts +7 -6
- package/lib/typography/index.js +14 -1
- package/lib/typography/src/a.d.ts +1 -1
- package/lib/typography/src/a.js +3 -2
- package/lib/typography/src/blockquote.d.ts +1 -1
- package/lib/typography/src/blockquote.js +3 -2
- package/lib/typography/src/create-header.d.ts +1 -1
- package/lib/typography/src/create-header.js +3 -2
- package/lib/typography/src/ol.d.ts +1 -1
- package/lib/typography/src/ol.js +3 -2
- package/lib/typography/src/p.d.ts +1 -1
- package/lib/typography/src/p.js +3 -2
- package/lib/typography/src/text.d.ts +1 -1
- package/lib/typography/src/text.js +3 -2
- package/lib/typography/src/ul.d.ts +1 -1
- package/lib/typography/src/ul.js +3 -2
- package/lib/upload/index.d.ts +1 -1
- package/lib/upload/index.js +2 -1
- package/lib/upload/src/Upload.d.ts +1 -1
- package/lib/upload/src/Upload.js +3 -2
- package/lib/upload/src/UploadFile.d.ts +2 -2
- package/lib/upload/src/UploadFile.js +8 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/index.d.ts +1 -1
- package/lib/watermark/index.js +2 -1
- package/lib/watermark/src/Watermark.d.ts +1 -1
- package/lib/watermark/src/Watermark.js +3 -2
- package/lib/watermark/src/styles/index.cssr.js +4 -1
- package/package.json +2 -2
- package/web-types.json +203 -11
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vue_1 = require("vue");
|
|
4
|
+
const radio_1 = require("../../../radio");
|
|
5
|
+
const interface_1 = require("../interface");
|
|
6
|
+
// Extract the radio to avoid useless rendering in table body
|
|
7
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
8
|
+
name: 'DataTableBodyRadio',
|
|
9
|
+
props: {
|
|
10
|
+
rowKey: {
|
|
11
|
+
type: [String, Number],
|
|
12
|
+
required: true
|
|
13
|
+
},
|
|
14
|
+
disabled: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
required: true
|
|
17
|
+
},
|
|
18
|
+
onUpdateChecked: {
|
|
19
|
+
type: Function,
|
|
20
|
+
required: true
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(props) {
|
|
24
|
+
const { mergedCheckedRowKeySetRef, componentId
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
26
|
+
} = (0, vue_1.inject)(interface_1.dataTableInjectionKey);
|
|
27
|
+
return () => {
|
|
28
|
+
const { rowKey } = props;
|
|
29
|
+
return ((0, vue_1.h)(radio_1.NRadio, { name: componentId, disabled: props.disabled, checked: mergedCheckedRowKeySetRef.value.has(rowKey), onUpdateChecked: props.onUpdateChecked }));
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
@@ -111,9 +111,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
111
111
|
handleColHeaderClick(e, column);
|
|
112
112
|
}
|
|
113
113
|
: undefined },
|
|
114
|
-
column.type === 'selection' ? ((0, vue_1.h)(vue_1.Fragment, null,
|
|
114
|
+
column.type === 'selection' ? (column.multiple !== false ? ((0, vue_1.h)(vue_1.Fragment, null,
|
|
115
115
|
(0, vue_1.h)(checkbox_1.NCheckbox, { key: currentPage, privateInsideTable: true, checked: allRowsChecked, indeterminate: someRowsChecked, disabled: headerCheckboxDisabled, onUpdateChecked: handleCheckboxUpdateChecked }),
|
|
116
|
-
checkOptions ? ((0, vue_1.h)(SelectionMenu_1.default, { clsPrefix: mergedClsPrefix })) : null)) : ellipsis === true || (ellipsis && !ellipsis.tooltip) ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-data-table-th__ellipsis` }, renderTitle(column))) // eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
116
|
+
checkOptions ? ((0, vue_1.h)(SelectionMenu_1.default, { clsPrefix: mergedClsPrefix })) : null)) : null) : ellipsis === true || (ellipsis && !ellipsis.tooltip) ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-data-table-th__ellipsis` }, renderTitle(column))) // eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
117
117
|
: ellipsis && typeof ellipsis === 'object' ? ((0, vue_1.h)(ellipsis_1.NEllipsis, Object.assign({}, ellipsis, { theme: mergedTheme.peers.Ellipsis, themeOverrides: mergedTheme.peerOverrides.Ellipsis }), {
|
|
118
118
|
default: () => renderTitle(column)
|
|
119
119
|
})) : (renderTitle(column)),
|
|
@@ -82,6 +82,7 @@ export declare type TableBaseColumn<T = InternalRowData> = {
|
|
|
82
82
|
} & CommonColumnInfo<T>;
|
|
83
83
|
export declare type TableSelectionColumn<T = InternalRowData> = {
|
|
84
84
|
type: 'selection';
|
|
85
|
+
multiple?: boolean;
|
|
85
86
|
disabled?: (row: T) => boolean;
|
|
86
87
|
options?: DataTableSelectionOptions;
|
|
87
88
|
sorter?: never;
|
|
@@ -169,7 +170,7 @@ export interface DataTableInjection {
|
|
|
169
170
|
deriveNextSorter: (sorter: SortState | null) => void;
|
|
170
171
|
doUncheckAll: (checkWholeTable?: boolean) => void;
|
|
171
172
|
doCheckAll: (checkWholeTable?: boolean) => void;
|
|
172
|
-
doCheck: (rowKey: RowKey | RowKey[]) => void;
|
|
173
|
+
doCheck: (rowKey: RowKey | RowKey[], single: boolean) => void;
|
|
173
174
|
doUncheck: (rowKey: RowKey | RowKey[]) => void;
|
|
174
175
|
handleTableHeaderScroll: (e: Event) => void;
|
|
175
176
|
handleTableBodyScroll: (e: Event) => void;
|
|
@@ -16,6 +16,6 @@ export declare function useCheck(props: DataTableSetupProps, data: {
|
|
|
16
16
|
doUpdateCheckedRowKeys: (keys: RowKey[]) => void;
|
|
17
17
|
doCheckAll: (checkWholeTable?: boolean) => void;
|
|
18
18
|
doUncheckAll: (checkWholeTable?: boolean) => void;
|
|
19
|
-
doCheck: (rowKey: RowKey | RowKey[]) => void;
|
|
19
|
+
doCheck: (rowKey: RowKey | RowKey[], single?: boolean) => void;
|
|
20
20
|
doUncheck: (rowKey: RowKey | RowKey[]) => void;
|
|
21
21
|
};
|
|
@@ -8,10 +8,18 @@ function useCheck(props, data) {
|
|
|
8
8
|
const { paginatedDataRef, treeMateRef, selectionColumnRef } = data;
|
|
9
9
|
const uncontrolledCheckedRowKeysRef = (0, vue_1.ref)(props.defaultCheckedRowKeys);
|
|
10
10
|
const mergedCheckState = (0, vue_1.computed)(() => {
|
|
11
|
+
var _a;
|
|
11
12
|
const { checkedRowKeys } = props;
|
|
12
|
-
|
|
13
|
+
const sourceKeys = checkedRowKeys === undefined
|
|
13
14
|
? uncontrolledCheckedRowKeysRef.value
|
|
14
|
-
: checkedRowKeys
|
|
15
|
+
: checkedRowKeys;
|
|
16
|
+
if (((_a = selectionColumnRef.value) === null || _a === void 0 ? void 0 : _a.multiple) === false) {
|
|
17
|
+
return {
|
|
18
|
+
checkedKeys: sourceKeys.slice(0, 1),
|
|
19
|
+
indeterminateKeys: []
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
return treeMateRef.value.getCheckedKeys(sourceKeys, {
|
|
15
23
|
cascade: props.cascade,
|
|
16
24
|
allowNotLoaded: props.allowCheckingNotLoaded
|
|
17
25
|
});
|
|
@@ -69,9 +77,13 @@ function useCheck(props, data) {
|
|
|
69
77
|
(0, _utils_1.call)(onCheckedRowKeysChange, keys, rows);
|
|
70
78
|
uncontrolledCheckedRowKeysRef.value = keys;
|
|
71
79
|
}
|
|
72
|
-
function doCheck(rowKey) {
|
|
80
|
+
function doCheck(rowKey, single = false) {
|
|
73
81
|
if (props.loading)
|
|
74
82
|
return;
|
|
83
|
+
if (single) {
|
|
84
|
+
doUpdateCheckedRowKeys(Array.isArray(rowKey) ? rowKey.slice(0, 1) : [rowKey]);
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
75
87
|
doUpdateCheckedRowKeys(treeMateRef.value.check(rowKey, mergedCheckedRowKeysRef.value, {
|
|
76
88
|
cascade: props.cascade,
|
|
77
89
|
allowNotLoaded: props.allowCheckingNotLoaded
|
package/lib/date-picker/index.js
CHANGED
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.NDatePicker = void 0;
|
|
6
|
+
exports.datePickerProps = exports.NDatePicker = void 0;
|
|
7
7
|
var DatePicker_1 = require("./src/DatePicker");
|
|
8
8
|
Object.defineProperty(exports, "NDatePicker", { enumerable: true, get: function () { return __importDefault(DatePicker_1).default; } });
|
|
9
|
+
Object.defineProperty(exports, "datePickerProps", { enumerable: true, get: function () { return DatePicker_1.datePickerProps; } });
|
|
@@ -5,7 +5,7 @@ import type { FormValidationStatus } from '../../form/src/interface';
|
|
|
5
5
|
import type { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
|
|
6
6
|
import { DatePickerType } from './config';
|
|
7
7
|
import type { OnUpdateValue, Value, IsDateDisabled, IsTimeDisabled, Shortcuts, FirstDayOfWeek, DefaultTime, FormattedValue, OnUpdateFormattedValue } from './interface';
|
|
8
|
-
declare const datePickerProps: {
|
|
8
|
+
export declare const datePickerProps: {
|
|
9
9
|
readonly to: {
|
|
10
10
|
type: PropType<string | boolean | HTMLElement>;
|
|
11
11
|
default: undefined;
|
|
@@ -121,6 +121,8 @@ declare const datePickerProps: {
|
|
|
121
121
|
calendarLeftPaddingYear: string;
|
|
122
122
|
calendarLeftPaddingQuarter: string;
|
|
123
123
|
calendarLeftPaddingMonthrange: string;
|
|
124
|
+
calendarLeftPaddingQuarterrange: string;
|
|
125
|
+
calendarLeftPaddingYearrange: string;
|
|
124
126
|
calendarRightPaddingDate: string;
|
|
125
127
|
calendarRightPaddingDatetime: string;
|
|
126
128
|
calendarRightPaddingDaterange: string;
|
|
@@ -129,6 +131,8 @@ declare const datePickerProps: {
|
|
|
129
131
|
calendarRightPaddingYear: string;
|
|
130
132
|
calendarRightPaddingQuarter: string;
|
|
131
133
|
calendarRightPaddingMonthrange: string;
|
|
134
|
+
calendarRightPaddingQuarterrange: string;
|
|
135
|
+
calendarRightPaddingYearrange: string;
|
|
132
136
|
}, {
|
|
133
137
|
Input: import("../../_mixins").Theme<"Input", {
|
|
134
138
|
countTextColor: string;
|
|
@@ -735,6 +739,8 @@ declare const datePickerProps: {
|
|
|
735
739
|
calendarLeftPaddingYear: string;
|
|
736
740
|
calendarLeftPaddingQuarter: string;
|
|
737
741
|
calendarLeftPaddingMonthrange: string;
|
|
742
|
+
calendarLeftPaddingQuarterrange: string;
|
|
743
|
+
calendarLeftPaddingYearrange: string;
|
|
738
744
|
calendarRightPaddingDate: string;
|
|
739
745
|
calendarRightPaddingDatetime: string;
|
|
740
746
|
calendarRightPaddingDaterange: string;
|
|
@@ -743,6 +749,8 @@ declare const datePickerProps: {
|
|
|
743
749
|
calendarRightPaddingYear: string;
|
|
744
750
|
calendarRightPaddingQuarter: string;
|
|
745
751
|
calendarRightPaddingMonthrange: string;
|
|
752
|
+
calendarRightPaddingQuarterrange: string;
|
|
753
|
+
calendarRightPaddingYearrange: string;
|
|
746
754
|
}, {
|
|
747
755
|
Input: import("../../_mixins").Theme<"Input", {
|
|
748
756
|
countTextColor: string;
|
|
@@ -1349,6 +1357,8 @@ declare const datePickerProps: {
|
|
|
1349
1357
|
calendarLeftPaddingYear: string;
|
|
1350
1358
|
calendarLeftPaddingQuarter: string;
|
|
1351
1359
|
calendarLeftPaddingMonthrange: string;
|
|
1360
|
+
calendarLeftPaddingQuarterrange: string;
|
|
1361
|
+
calendarLeftPaddingYearrange: string;
|
|
1352
1362
|
calendarRightPaddingDate: string;
|
|
1353
1363
|
calendarRightPaddingDatetime: string;
|
|
1354
1364
|
calendarRightPaddingDaterange: string;
|
|
@@ -1357,6 +1367,8 @@ declare const datePickerProps: {
|
|
|
1357
1367
|
calendarRightPaddingYear: string;
|
|
1358
1368
|
calendarRightPaddingQuarter: string;
|
|
1359
1369
|
calendarRightPaddingMonthrange: string;
|
|
1370
|
+
calendarRightPaddingQuarterrange: string;
|
|
1371
|
+
calendarRightPaddingYearrange: string;
|
|
1360
1372
|
}, {
|
|
1361
1373
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1362
1374
|
countTextColor: string;
|
|
@@ -2032,6 +2044,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2032
2044
|
calendarLeftPaddingYear: string;
|
|
2033
2045
|
calendarLeftPaddingQuarter: string;
|
|
2034
2046
|
calendarLeftPaddingMonthrange: string;
|
|
2047
|
+
calendarLeftPaddingQuarterrange: string;
|
|
2048
|
+
calendarLeftPaddingYearrange: string;
|
|
2035
2049
|
calendarRightPaddingDate: string;
|
|
2036
2050
|
calendarRightPaddingDatetime: string;
|
|
2037
2051
|
calendarRightPaddingDaterange: string;
|
|
@@ -2040,6 +2054,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2040
2054
|
calendarRightPaddingYear: string;
|
|
2041
2055
|
calendarRightPaddingQuarter: string;
|
|
2042
2056
|
calendarRightPaddingMonthrange: string;
|
|
2057
|
+
calendarRightPaddingQuarterrange: string;
|
|
2058
|
+
calendarRightPaddingYearrange: string;
|
|
2043
2059
|
}, {
|
|
2044
2060
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2045
2061
|
countTextColor: string;
|
|
@@ -2646,6 +2662,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2646
2662
|
calendarLeftPaddingYear: string;
|
|
2647
2663
|
calendarLeftPaddingQuarter: string;
|
|
2648
2664
|
calendarLeftPaddingMonthrange: string;
|
|
2665
|
+
calendarLeftPaddingQuarterrange: string;
|
|
2666
|
+
calendarLeftPaddingYearrange: string;
|
|
2649
2667
|
calendarRightPaddingDate: string;
|
|
2650
2668
|
calendarRightPaddingDatetime: string;
|
|
2651
2669
|
calendarRightPaddingDaterange: string;
|
|
@@ -2654,6 +2672,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2654
2672
|
calendarRightPaddingYear: string;
|
|
2655
2673
|
calendarRightPaddingQuarter: string;
|
|
2656
2674
|
calendarRightPaddingMonthrange: string;
|
|
2675
|
+
calendarRightPaddingQuarterrange: string;
|
|
2676
|
+
calendarRightPaddingYearrange: string;
|
|
2657
2677
|
}, {
|
|
2658
2678
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2659
2679
|
countTextColor: string;
|
|
@@ -3260,6 +3280,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3260
3280
|
calendarLeftPaddingYear: string;
|
|
3261
3281
|
calendarLeftPaddingQuarter: string;
|
|
3262
3282
|
calendarLeftPaddingMonthrange: string;
|
|
3283
|
+
calendarLeftPaddingQuarterrange: string;
|
|
3284
|
+
calendarLeftPaddingYearrange: string;
|
|
3263
3285
|
calendarRightPaddingDate: string;
|
|
3264
3286
|
calendarRightPaddingDatetime: string;
|
|
3265
3287
|
calendarRightPaddingDaterange: string;
|
|
@@ -3268,6 +3290,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3268
3290
|
calendarRightPaddingYear: string;
|
|
3269
3291
|
calendarRightPaddingQuarter: string;
|
|
3270
3292
|
calendarRightPaddingMonthrange: string;
|
|
3293
|
+
calendarRightPaddingQuarterrange: string;
|
|
3294
|
+
calendarRightPaddingYearrange: string;
|
|
3271
3295
|
}, {
|
|
3272
3296
|
Input: import("../../_mixins").Theme<"Input", {
|
|
3273
3297
|
countTextColor: string;
|
|
@@ -4120,6 +4144,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4120
4144
|
calendarLeftPaddingYear: string;
|
|
4121
4145
|
calendarLeftPaddingQuarter: string;
|
|
4122
4146
|
calendarLeftPaddingMonthrange: string;
|
|
4147
|
+
calendarLeftPaddingQuarterrange: string;
|
|
4148
|
+
calendarLeftPaddingYearrange: string;
|
|
4123
4149
|
calendarRightPaddingDate: string;
|
|
4124
4150
|
calendarRightPaddingDatetime: string;
|
|
4125
4151
|
calendarRightPaddingDaterange: string;
|
|
@@ -4128,6 +4154,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4128
4154
|
calendarRightPaddingYear: string;
|
|
4129
4155
|
calendarRightPaddingQuarter: string;
|
|
4130
4156
|
calendarRightPaddingMonthrange: string;
|
|
4157
|
+
calendarRightPaddingQuarterrange: string;
|
|
4158
|
+
calendarRightPaddingYearrange: string;
|
|
4131
4159
|
};
|
|
4132
4160
|
peers: {
|
|
4133
4161
|
Input: import("../../_mixins").Theme<"Input", {
|
|
@@ -5148,6 +5176,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5148
5176
|
calendarLeftPaddingYear: string;
|
|
5149
5177
|
calendarLeftPaddingQuarter: string;
|
|
5150
5178
|
calendarLeftPaddingMonthrange: string;
|
|
5179
|
+
calendarLeftPaddingQuarterrange: string;
|
|
5180
|
+
calendarLeftPaddingYearrange: string;
|
|
5151
5181
|
calendarRightPaddingDate: string;
|
|
5152
5182
|
calendarRightPaddingDatetime: string;
|
|
5153
5183
|
calendarRightPaddingDaterange: string;
|
|
@@ -5156,6 +5186,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5156
5186
|
calendarRightPaddingYear: string;
|
|
5157
5187
|
calendarRightPaddingQuarter: string;
|
|
5158
5188
|
calendarRightPaddingMonthrange: string;
|
|
5189
|
+
calendarRightPaddingQuarterrange: string;
|
|
5190
|
+
calendarRightPaddingYearrange: string;
|
|
5159
5191
|
}, {
|
|
5160
5192
|
Input: import("../../_mixins").Theme<"Input", {
|
|
5161
5193
|
countTextColor: string;
|
|
@@ -5762,6 +5794,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5762
5794
|
calendarLeftPaddingYear: string;
|
|
5763
5795
|
calendarLeftPaddingQuarter: string;
|
|
5764
5796
|
calendarLeftPaddingMonthrange: string;
|
|
5797
|
+
calendarLeftPaddingQuarterrange: string;
|
|
5798
|
+
calendarLeftPaddingYearrange: string;
|
|
5765
5799
|
calendarRightPaddingDate: string;
|
|
5766
5800
|
calendarRightPaddingDatetime: string;
|
|
5767
5801
|
calendarRightPaddingDaterange: string;
|
|
@@ -5770,6 +5804,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5770
5804
|
calendarRightPaddingYear: string;
|
|
5771
5805
|
calendarRightPaddingQuarter: string;
|
|
5772
5806
|
calendarRightPaddingMonthrange: string;
|
|
5807
|
+
calendarRightPaddingQuarterrange: string;
|
|
5808
|
+
calendarRightPaddingYearrange: string;
|
|
5773
5809
|
}, {
|
|
5774
5810
|
Input: import("../../_mixins").Theme<"Input", {
|
|
5775
5811
|
countTextColor: string;
|
|
@@ -6376,6 +6412,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6376
6412
|
calendarLeftPaddingYear: string;
|
|
6377
6413
|
calendarLeftPaddingQuarter: string;
|
|
6378
6414
|
calendarLeftPaddingMonthrange: string;
|
|
6415
|
+
calendarLeftPaddingQuarterrange: string;
|
|
6416
|
+
calendarLeftPaddingYearrange: string;
|
|
6379
6417
|
calendarRightPaddingDate: string;
|
|
6380
6418
|
calendarRightPaddingDatetime: string;
|
|
6381
6419
|
calendarRightPaddingDaterange: string;
|
|
@@ -6384,6 +6422,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6384
6422
|
calendarRightPaddingYear: string;
|
|
6385
6423
|
calendarRightPaddingQuarter: string;
|
|
6386
6424
|
calendarRightPaddingMonthrange: string;
|
|
6425
|
+
calendarRightPaddingQuarterrange: string;
|
|
6426
|
+
calendarRightPaddingYearrange: string;
|
|
6387
6427
|
}, {
|
|
6388
6428
|
Input: import("../../_mixins").Theme<"Input", {
|
|
6389
6429
|
countTextColor: string;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.datePickerProps = void 0;
|
|
6
7
|
const vue_1 = require("vue");
|
|
7
8
|
const vueuc_1 = require("vueuc");
|
|
8
9
|
const vdirs_1 = require("vdirs");
|
|
@@ -25,7 +26,7 @@ const daterange_1 = __importDefault(require("./panel/daterange"));
|
|
|
25
26
|
const month_1 = __importDefault(require("./panel/month"));
|
|
26
27
|
const monthrange_1 = __importDefault(require("./panel/monthrange"));
|
|
27
28
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
28
|
-
|
|
29
|
+
exports.datePickerProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { to: _utils_1.useAdjustedTo.propTo, bordered: {
|
|
29
30
|
type: Boolean,
|
|
30
31
|
default: undefined
|
|
31
32
|
}, clearable: Boolean, updateValueOnClose: Boolean, defaultValue: [Number, Array], defaultFormattedValue: [String, Array], defaultTime: [Number, String, Array], disabled: {
|
|
@@ -45,7 +46,7 @@ const datePickerProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props
|
|
|
45
46
|
onChange: [Function, Array] });
|
|
46
47
|
exports.default = (0, vue_1.defineComponent)({
|
|
47
48
|
name: 'DatePicker',
|
|
48
|
-
props: datePickerProps,
|
|
49
|
+
props: exports.datePickerProps,
|
|
49
50
|
setup(props, { slots }) {
|
|
50
51
|
var _a;
|
|
51
52
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -82,11 +83,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
82
83
|
case 'datetimerange':
|
|
83
84
|
return localeRef.value.dateTimeFormat;
|
|
84
85
|
case 'year':
|
|
86
|
+
case 'yearrange':
|
|
85
87
|
return localeRef.value.yearTypeFormat;
|
|
86
88
|
case 'month':
|
|
87
89
|
case 'monthrange':
|
|
88
90
|
return localeRef.value.monthTypeFormat;
|
|
89
91
|
case 'quarter':
|
|
92
|
+
case 'quarterrange':
|
|
90
93
|
return localeRef.value.quarterFormat;
|
|
91
94
|
}
|
|
92
95
|
});
|
|
@@ -133,7 +136,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
133
136
|
return (((_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.DatePicker) === null || _b === void 0 ? void 0 : _b.timePickerSize) || 'small');
|
|
134
137
|
});
|
|
135
138
|
const isRangeRef = (0, vue_1.computed)(() => {
|
|
136
|
-
return [
|
|
139
|
+
return [
|
|
140
|
+
'daterange',
|
|
141
|
+
'datetimerange',
|
|
142
|
+
'monthrange',
|
|
143
|
+
'quarterrange',
|
|
144
|
+
'yearrange'
|
|
145
|
+
].includes(props.type);
|
|
137
146
|
});
|
|
138
147
|
const localizedPlacehoderRef = (0, vue_1.computed)(() => {
|
|
139
148
|
const { placeholder } = props;
|
|
@@ -193,35 +202,46 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
193
202
|
}
|
|
194
203
|
});
|
|
195
204
|
const mergedActionsRef = (0, vue_1.computed)(() => {
|
|
196
|
-
const { actions, type } = props;
|
|
205
|
+
const { actions, type, clearable } = props;
|
|
197
206
|
if (actions === null)
|
|
198
207
|
return [];
|
|
199
208
|
if (actions !== undefined)
|
|
200
209
|
return actions;
|
|
210
|
+
const result = clearable ? ['clear'] : [];
|
|
201
211
|
switch (type) {
|
|
202
212
|
case 'date': {
|
|
203
|
-
|
|
213
|
+
result.push('now');
|
|
214
|
+
return result;
|
|
204
215
|
}
|
|
205
216
|
case 'datetime': {
|
|
206
|
-
|
|
217
|
+
result.push('now', 'confirm');
|
|
218
|
+
return result;
|
|
207
219
|
}
|
|
208
220
|
case 'daterange': {
|
|
209
|
-
|
|
221
|
+
result.push('confirm');
|
|
222
|
+
return result;
|
|
210
223
|
}
|
|
211
224
|
case 'datetimerange': {
|
|
212
|
-
|
|
225
|
+
result.push('confirm');
|
|
226
|
+
return result;
|
|
213
227
|
}
|
|
214
228
|
case 'month': {
|
|
215
|
-
|
|
229
|
+
result.push('now', 'confirm');
|
|
230
|
+
return result;
|
|
216
231
|
}
|
|
217
232
|
case 'year': {
|
|
218
|
-
|
|
233
|
+
result.push('now');
|
|
234
|
+
return result;
|
|
219
235
|
}
|
|
220
236
|
case 'quarter': {
|
|
221
|
-
|
|
237
|
+
result.push('now', 'confirm');
|
|
238
|
+
return result;
|
|
222
239
|
}
|
|
223
|
-
case 'monthrange':
|
|
224
|
-
|
|
240
|
+
case 'monthrange':
|
|
241
|
+
case 'yearrange':
|
|
242
|
+
case 'quarterrange': {
|
|
243
|
+
result.push('confirm');
|
|
244
|
+
return result;
|
|
225
245
|
}
|
|
226
246
|
default: {
|
|
227
247
|
(0, _utils_1.warn)('data-picker', "The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");
|
|
@@ -648,7 +668,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
648
668
|
};
|
|
649
669
|
const renderPanel = () => {
|
|
650
670
|
const { type } = this;
|
|
651
|
-
return type === 'datetime' ? ((0, vue_1.h)(datetime_1.default, Object.assign({}, commonPanelProps))) : type === 'daterange' ? ((0, vue_1.h)(daterange_1.default, Object.assign({}, commonPanelProps, { defaultCalendarStartTime: this.defaultCalendarStartTime, defaultCalendarEndTime: this.defaultCalendarEndTime, bindCalendarMonths: this.bindCalendarMonths }))) : type === 'datetimerange' ? ((0, vue_1.h)(datetimerange_1.default, Object.assign({}, commonPanelProps, { defaultCalendarStartTime: this.defaultCalendarStartTime, defaultCalendarEndTime: this.defaultCalendarEndTime, bindCalendarMonths: this.bindCalendarMonths }))) : type === 'month' || type === 'year' || type === 'quarter' ? ((0, vue_1.h)(month_1.default, Object.assign({}, commonPanelProps, { type: type, key: type }))) : type === 'monthrange'
|
|
671
|
+
return type === 'datetime' ? ((0, vue_1.h)(datetime_1.default, Object.assign({}, commonPanelProps))) : type === 'daterange' ? ((0, vue_1.h)(daterange_1.default, Object.assign({}, commonPanelProps, { defaultCalendarStartTime: this.defaultCalendarStartTime, defaultCalendarEndTime: this.defaultCalendarEndTime, bindCalendarMonths: this.bindCalendarMonths }))) : type === 'datetimerange' ? ((0, vue_1.h)(datetimerange_1.default, Object.assign({}, commonPanelProps, { defaultCalendarStartTime: this.defaultCalendarStartTime, defaultCalendarEndTime: this.defaultCalendarEndTime, bindCalendarMonths: this.bindCalendarMonths }))) : type === 'month' || type === 'year' || type === 'quarter' ? ((0, vue_1.h)(month_1.default, Object.assign({}, commonPanelProps, { type: type, key: type }))) : type === 'monthrange' ||
|
|
672
|
+
type === 'yearrange' ||
|
|
673
|
+
type === 'quarterrange' ? ((0, vue_1.h)(monthrange_1.default, Object.assign({}, commonPanelProps, { type: type }))) : ((0, vue_1.h)(date_1.default, Object.assign({}, commonPanelProps)));
|
|
652
674
|
};
|
|
653
675
|
if (this.panel) {
|
|
654
676
|
return renderPanel();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const START_YEAR = 1901;
|
|
2
2
|
export declare const MONTH_ITEM_HEIGHT = 40;
|
|
3
|
-
export declare type DatePickerType = 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'month' | 'year' | 'quarter' | 'monthrange';
|
|
3
|
+
export declare type DatePickerType = 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'month' | 'year' | 'quarter' | 'monthrange' | 'quarterrange' | 'yearrange';
|
|
@@ -214,6 +214,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
214
214
|
calendarLeftPaddingYear: string;
|
|
215
215
|
calendarLeftPaddingQuarter: string;
|
|
216
216
|
calendarLeftPaddingMonthrange: string;
|
|
217
|
+
calendarLeftPaddingQuarterrange: string;
|
|
218
|
+
calendarLeftPaddingYearrange: string;
|
|
217
219
|
calendarRightPaddingDate: string;
|
|
218
220
|
calendarRightPaddingDatetime: string;
|
|
219
221
|
calendarRightPaddingDaterange: string;
|
|
@@ -222,6 +224,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
222
224
|
calendarRightPaddingYear: string;
|
|
223
225
|
calendarRightPaddingQuarter: string;
|
|
224
226
|
calendarRightPaddingMonthrange: string;
|
|
227
|
+
calendarRightPaddingQuarterrange: string;
|
|
228
|
+
calendarRightPaddingYearrange: string;
|
|
225
229
|
};
|
|
226
230
|
peers: {
|
|
227
231
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -234,6 +234,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
234
234
|
calendarLeftPaddingYear: string;
|
|
235
235
|
calendarLeftPaddingQuarter: string;
|
|
236
236
|
calendarLeftPaddingMonthrange: string;
|
|
237
|
+
calendarLeftPaddingQuarterrange: string;
|
|
238
|
+
calendarLeftPaddingYearrange: string;
|
|
237
239
|
calendarRightPaddingDate: string;
|
|
238
240
|
calendarRightPaddingDatetime: string;
|
|
239
241
|
calendarRightPaddingDaterange: string;
|
|
@@ -242,6 +244,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
242
244
|
calendarRightPaddingYear: string;
|
|
243
245
|
calendarRightPaddingQuarter: string;
|
|
244
246
|
calendarRightPaddingMonthrange: string;
|
|
247
|
+
calendarRightPaddingQuarterrange: string;
|
|
248
|
+
calendarRightPaddingYearrange: string;
|
|
245
249
|
};
|
|
246
250
|
peers: {
|
|
247
251
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -1143,7 +1147,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1143
1147
|
endDatesElRef: import("vue").Ref<HTMLElement | null>;
|
|
1144
1148
|
resetSelectingStatus: (e: MouseEvent) => void;
|
|
1145
1149
|
handleDateClick: (dateItem: import("../utils").DateItem) => void;
|
|
1146
|
-
handleColItemClick: (dateItem: import("../utils").MonthItem | import("../utils").YearItem, clickType: "start" | "end") => void;
|
|
1150
|
+
handleColItemClick: (dateItem: import("../utils").MonthItem | import("../utils").YearItem | import("../utils").QuarterItem, clickType: "start" | "end") => void;
|
|
1147
1151
|
handleDateMouseEnter: (dateItem: import("../utils").DateItem) => void;
|
|
1148
1152
|
handleConfirmClick: () => void;
|
|
1149
1153
|
startCalendarPrevYear: () => void;
|
|
@@ -1166,8 +1170,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1166
1170
|
endDateArray: import("vue").ComputedRef<import("../utils").DateItem[]>;
|
|
1167
1171
|
startYearArray: import("vue").ComputedRef<import("../utils").YearItem[]>;
|
|
1168
1172
|
startMonthArray: import("vue").ComputedRef<import("../utils").MonthItem[]>;
|
|
1173
|
+
startQuarterArray: import("vue").ComputedRef<import("../utils").QuarterItem[]>;
|
|
1169
1174
|
endYearArray: import("vue").ComputedRef<import("../utils").YearItem[]>;
|
|
1170
1175
|
endMonthArray: import("vue").ComputedRef<import("../utils").MonthItem[]>;
|
|
1176
|
+
endQuarterArray: import("vue").ComputedRef<import("../utils").QuarterItem[]>;
|
|
1171
1177
|
isSelecting: import("vue").Ref<boolean>;
|
|
1172
1178
|
handleRangeShortcutMouseenter: (shortcut: number | [number, number] | (() => number) | readonly [number, number] | (() => [number, number] | readonly [number, number])) => void;
|
|
1173
1179
|
handleRangeShortcutClick: (shortcut: number | [number, number] | (() => number) | readonly [number, number] | (() => [number, number] | readonly [number, number])) => void;
|
|
@@ -107,7 +107,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
107
107
|
})),
|
|
108
108
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-actions__suffix` },
|
|
109
109
|
((_b = this.actions) === null || _b === void 0 ? void 0 : _b.includes('clear')) ? ((0, vue_1.h)(button_1.NButton, { theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, size: "tiny", onClick: this.handleClearClick }, { default: () => this.locale.clear })) : null,
|
|
110
|
-
((_c = this.actions) === null || _c === void 0 ? void 0 : _c.includes('confirm')) ? ((0, vue_1.h)(button_1.NButton, { theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, size: "tiny", type: "primary", disabled: this.isRangeInvalid, onClick: this.handleConfirmClick }, { default: () => this.locale.confirm })) : null))) : null,
|
|
110
|
+
((_c = this.actions) === null || _c === void 0 ? void 0 : _c.includes('confirm')) ? ((0, vue_1.h)(button_1.NButton, { theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, size: "tiny", type: "primary", disabled: this.isRangeInvalid || this.isSelecting, onClick: this.handleConfirmClick }, { default: () => this.locale.confirm })) : null))) : null,
|
|
111
111
|
(0, vue_1.h)(_internal_1.NBaseFocusDetector, { onFocus: this.handleFocusDetectorFocus })));
|
|
112
112
|
}
|
|
113
113
|
});
|
|
@@ -203,6 +203,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
203
203
|
calendarLeftPaddingYear: string;
|
|
204
204
|
calendarLeftPaddingQuarter: string;
|
|
205
205
|
calendarLeftPaddingMonthrange: string;
|
|
206
|
+
calendarLeftPaddingQuarterrange: string;
|
|
207
|
+
calendarLeftPaddingYearrange: string;
|
|
206
208
|
calendarRightPaddingDate: string;
|
|
207
209
|
calendarRightPaddingDatetime: string;
|
|
208
210
|
calendarRightPaddingDaterange: string;
|
|
@@ -211,6 +213,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
211
213
|
calendarRightPaddingYear: string;
|
|
212
214
|
calendarRightPaddingQuarter: string;
|
|
213
215
|
calendarRightPaddingMonthrange: string;
|
|
216
|
+
calendarRightPaddingQuarterrange: string;
|
|
217
|
+
calendarRightPaddingYearrange: string;
|
|
214
218
|
};
|
|
215
219
|
peers: {
|
|
216
220
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -234,6 +234,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
234
234
|
calendarLeftPaddingYear: string;
|
|
235
235
|
calendarLeftPaddingQuarter: string;
|
|
236
236
|
calendarLeftPaddingMonthrange: string;
|
|
237
|
+
calendarLeftPaddingQuarterrange: string;
|
|
238
|
+
calendarLeftPaddingYearrange: string;
|
|
237
239
|
calendarRightPaddingDate: string;
|
|
238
240
|
calendarRightPaddingDatetime: string;
|
|
239
241
|
calendarRightPaddingDaterange: string;
|
|
@@ -242,6 +244,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
242
244
|
calendarRightPaddingYear: string;
|
|
243
245
|
calendarRightPaddingQuarter: string;
|
|
244
246
|
calendarRightPaddingMonthrange: string;
|
|
247
|
+
calendarRightPaddingQuarterrange: string;
|
|
248
|
+
calendarRightPaddingYearrange: string;
|
|
245
249
|
};
|
|
246
250
|
peers: {
|
|
247
251
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -1143,7 +1147,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1143
1147
|
endDatesElRef: import("vue").Ref<HTMLElement | null>;
|
|
1144
1148
|
resetSelectingStatus: (e: MouseEvent) => void;
|
|
1145
1149
|
handleDateClick: (dateItem: import("../utils").DateItem) => void;
|
|
1146
|
-
handleColItemClick: (dateItem: import("../utils").MonthItem | import("../utils").YearItem, clickType: "start" | "end") => void;
|
|
1150
|
+
handleColItemClick: (dateItem: import("../utils").MonthItem | import("../utils").YearItem | import("../utils").QuarterItem, clickType: "start" | "end") => void;
|
|
1147
1151
|
handleDateMouseEnter: (dateItem: import("../utils").DateItem) => void;
|
|
1148
1152
|
handleConfirmClick: () => void;
|
|
1149
1153
|
startCalendarPrevYear: () => void;
|
|
@@ -1166,8 +1170,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1166
1170
|
endDateArray: import("vue").ComputedRef<import("../utils").DateItem[]>;
|
|
1167
1171
|
startYearArray: import("vue").ComputedRef<import("../utils").YearItem[]>;
|
|
1168
1172
|
startMonthArray: import("vue").ComputedRef<import("../utils").MonthItem[]>;
|
|
1173
|
+
startQuarterArray: import("vue").ComputedRef<import("../utils").QuarterItem[]>;
|
|
1169
1174
|
endYearArray: import("vue").ComputedRef<import("../utils").YearItem[]>;
|
|
1170
1175
|
endMonthArray: import("vue").ComputedRef<import("../utils").MonthItem[]>;
|
|
1176
|
+
endQuarterArray: import("vue").ComputedRef<import("../utils").QuarterItem[]>;
|
|
1171
1177
|
isSelecting: import("vue").Ref<boolean>;
|
|
1172
1178
|
handleRangeShortcutMouseenter: (shortcut: number | [number, number] | (() => number) | readonly [number, number] | (() => [number, number] | readonly [number, number])) => void;
|
|
1173
1179
|
handleRangeShortcutClick: (shortcut: number | [number, number] | (() => number) | readonly [number, number] | (() => [number, number] | readonly [number, number])) => void;
|
|
@@ -128,7 +128,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
128
128
|
})),
|
|
129
129
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-actions__suffix` },
|
|
130
130
|
((_b = this.actions) === null || _b === void 0 ? void 0 : _b.includes('clear')) ? ((0, vue_1.h)(button_1.NButton, { theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, size: "tiny", onClick: this.handleClearClick }, { default: () => this.locale.clear })) : null,
|
|
131
|
-
((_c = this.actions) === null || _c === void 0 ? void 0 : _c.includes('confirm')) ? ((0, vue_1.h)(button_1.NButton, { theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, size: "tiny", type: "primary", disabled: this.isRangeInvalid, onClick: this.handleConfirmClick }, { default: () => this.locale.confirm })) : null))) : null,
|
|
131
|
+
((_c = this.actions) === null || _c === void 0 ? void 0 : _c.includes('confirm')) ? ((0, vue_1.h)(button_1.NButton, { theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, size: "tiny", type: "primary", disabled: this.isRangeInvalid || this.isSelecting, onClick: this.handleConfirmClick }, { default: () => this.locale.confirm })) : null))) : null,
|
|
132
132
|
(0, vue_1.h)(_internal_1.NBaseFocusDetector, { onFocus: this.handleFocusDetectorFocus })));
|
|
133
133
|
}
|
|
134
134
|
});
|
|
@@ -211,6 +211,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
211
211
|
calendarLeftPaddingYear: string;
|
|
212
212
|
calendarLeftPaddingQuarter: string;
|
|
213
213
|
calendarLeftPaddingMonthrange: string;
|
|
214
|
+
calendarLeftPaddingQuarterrange: string;
|
|
215
|
+
calendarLeftPaddingYearrange: string;
|
|
214
216
|
calendarRightPaddingDate: string;
|
|
215
217
|
calendarRightPaddingDatetime: string;
|
|
216
218
|
calendarRightPaddingDaterange: string;
|
|
@@ -219,6 +221,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
219
221
|
calendarRightPaddingYear: string;
|
|
220
222
|
calendarRightPaddingQuarter: string;
|
|
221
223
|
calendarRightPaddingMonthrange: string;
|
|
224
|
+
calendarRightPaddingQuarterrange: string;
|
|
225
|
+
calendarRightPaddingYearrange: string;
|
|
222
226
|
};
|
|
223
227
|
peers: {
|
|
224
228
|
Input: import("../../../_mixins").Theme<"Input", {
|