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
|
@@ -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.collapseItemProps = void 0;
|
|
6
7
|
const vue_1 = require("vue");
|
|
7
8
|
const seemly_1 = require("seemly");
|
|
8
9
|
const vooks_1 = require("vooks");
|
|
@@ -11,16 +12,16 @@ const _internal_1 = require("../../_internal");
|
|
|
11
12
|
const _utils_1 = require("../../_utils");
|
|
12
13
|
const Collapse_1 = require("./Collapse");
|
|
13
14
|
const CollapseItemContent_1 = __importDefault(require("./CollapseItemContent"));
|
|
14
|
-
const use_rtl_1 =
|
|
15
|
+
const use_rtl_1 = require("../../_mixins/use-rtl");
|
|
15
16
|
const _mixins_1 = require("../../_mixins");
|
|
16
|
-
|
|
17
|
+
exports.collapseItemProps = {
|
|
17
18
|
title: String,
|
|
18
19
|
name: [String, Number],
|
|
19
20
|
displayDirective: String
|
|
20
21
|
};
|
|
21
22
|
exports.default = (0, vue_1.defineComponent)({
|
|
22
23
|
name: 'CollapseItem',
|
|
23
|
-
props: collapseItemProps,
|
|
24
|
+
props: exports.collapseItemProps,
|
|
24
25
|
setup(props) {
|
|
25
26
|
const { mergedRtlRef } = (0, _mixins_1.useConfig)(props);
|
|
26
27
|
const randomName = (0, seemly_1.createId)();
|
|
@@ -45,7 +46,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
45
46
|
}
|
|
46
47
|
return true;
|
|
47
48
|
});
|
|
48
|
-
const rtlEnabledRef = (0, use_rtl_1.
|
|
49
|
+
const rtlEnabledRef = (0, use_rtl_1.useRtl)('Collapse', mergedRtlRef, mergedClsPrefixRef);
|
|
49
50
|
return {
|
|
50
51
|
rtlEnabled: rtlEnabledRef,
|
|
51
52
|
collapseSlots,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as NCollapseTransition } from './src/CollapseTransition';
|
|
1
|
+
export { default as NCollapseTransition, collapseTransitionProps } from './src/CollapseTransition';
|
|
2
2
|
export type { CollapseTransitionProps } from './src/CollapseTransition';
|
|
@@ -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.NCollapseTransition = void 0;
|
|
6
|
+
exports.collapseTransitionProps = exports.NCollapseTransition = void 0;
|
|
7
7
|
var CollapseTransition_1 = require("./src/CollapseTransition");
|
|
8
8
|
Object.defineProperty(exports, "NCollapseTransition", { enumerable: true, get: function () { return __importDefault(CollapseTransition_1).default; } });
|
|
9
|
+
Object.defineProperty(exports, "collapseTransitionProps", { enumerable: true, get: function () { return CollapseTransition_1.collapseTransitionProps; } });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
|
-
declare const
|
|
3
|
+
export declare const collapseTransitionProps: {
|
|
4
4
|
readonly show: {
|
|
5
5
|
readonly type: BooleanConstructor;
|
|
6
6
|
readonly default: true;
|
|
@@ -21,7 +21,7 @@ declare const collapseProps: {
|
|
|
21
21
|
bezier: string;
|
|
22
22
|
}, any>>>;
|
|
23
23
|
};
|
|
24
|
-
export declare type CollapseTransitionProps = ExtractPublicPropTypes<typeof
|
|
24
|
+
export declare type CollapseTransitionProps = ExtractPublicPropTypes<typeof collapseTransitionProps>;
|
|
25
25
|
declare const _default: import("vue").DefineComponent<{
|
|
26
26
|
readonly show: {
|
|
27
27
|
readonly type: BooleanConstructor;
|
|
@@ -3,14 +3,15 @@ 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.collapseTransitionProps = void 0;
|
|
6
7
|
const vue_1 = require("vue");
|
|
7
8
|
const _mixins_1 = require("../../_mixins");
|
|
8
|
-
const use_rtl_1 =
|
|
9
|
+
const use_rtl_1 = require("../../_mixins/use-rtl");
|
|
9
10
|
const _utils_1 = require("../../_utils");
|
|
10
11
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
11
12
|
const styles_1 = require("../styles");
|
|
12
13
|
const _internal_1 = require("../../_internal");
|
|
13
|
-
|
|
14
|
+
exports.collapseTransitionProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { show: {
|
|
14
15
|
type: Boolean,
|
|
15
16
|
default: true
|
|
16
17
|
}, appear: Boolean,
|
|
@@ -24,7 +25,7 @@ const collapseProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
24
25
|
} });
|
|
25
26
|
exports.default = (0, vue_1.defineComponent)({
|
|
26
27
|
name: 'CollapseTransition',
|
|
27
|
-
props:
|
|
28
|
+
props: exports.collapseTransitionProps,
|
|
28
29
|
inheritAttrs: false,
|
|
29
30
|
setup(props) {
|
|
30
31
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -36,7 +37,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
36
37
|
}
|
|
37
38
|
const { mergedClsPrefixRef, inlineThemeDisabled, mergedRtlRef } = (0, _mixins_1.useConfig)(props);
|
|
38
39
|
const mergedThemeRef = (0, _mixins_1.useTheme)('CollapseTransition', '-collapse-transition', index_cssr_1.default, styles_1.collapseTransitionLight, props, mergedClsPrefixRef);
|
|
39
|
-
const rtlEnabledRef = (0, use_rtl_1.
|
|
40
|
+
const rtlEnabledRef = (0, use_rtl_1.useRtl)('CollapseTransition', mergedRtlRef, mergedClsPrefixRef);
|
|
40
41
|
const mergedShowRef = (0, vue_1.computed)(() => {
|
|
41
42
|
if (props.collapsed !== undefined) {
|
|
42
43
|
// No mistake, it's implemented with error at first, just keep it here
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as NColorPicker } from './src/ColorPicker';
|
|
1
|
+
export { default as NColorPicker, colorPickerProps } from './src/ColorPicker';
|
|
2
2
|
export type { ColorPickerProps } from './src/ColorPicker';
|
|
@@ -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.NColorPicker = void 0;
|
|
6
|
+
exports.colorPickerProps = exports.NColorPicker = void 0;
|
|
7
7
|
var ColorPicker_1 = require("./src/ColorPicker");
|
|
8
8
|
Object.defineProperty(exports, "NColorPicker", { enumerable: true, get: function () { return __importDefault(ColorPicker_1).default; } });
|
|
9
|
+
Object.defineProperty(exports, "colorPickerProps", { enumerable: true, get: function () { return ColorPicker_1.colorPickerProps; } });
|
|
@@ -4,7 +4,7 @@ import { FollowerPlacement } from 'vueuc';
|
|
|
4
4
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
5
5
|
import type { ColorPickerMode } from './utils';
|
|
6
6
|
import { OnUpdateValue, RenderLabel } from './interface';
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const colorPickerProps: {
|
|
8
8
|
readonly value: PropType<string | null>;
|
|
9
9
|
readonly show: {
|
|
10
10
|
readonly type: PropType<boolean | undefined>;
|
|
@@ -888,7 +888,7 @@ export declare const colorPickerPanelProps: {
|
|
|
888
888
|
}, any>;
|
|
889
889
|
}>>>;
|
|
890
890
|
};
|
|
891
|
-
export declare type ColorPickerProps = ExtractPublicPropTypes<typeof
|
|
891
|
+
export declare type ColorPickerProps = ExtractPublicPropTypes<typeof colorPickerProps>;
|
|
892
892
|
declare const _default: import("vue").DefineComponent<{
|
|
893
893
|
readonly value: PropType<string | null>;
|
|
894
894
|
readonly show: {
|
|
@@ -3,7 +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.
|
|
6
|
+
exports.colorPickerProps = void 0;
|
|
7
7
|
const vue_1 = require("vue");
|
|
8
8
|
const seemly_1 = require("seemly");
|
|
9
9
|
const vooks_1 = require("vooks");
|
|
@@ -23,7 +23,7 @@ const ColorPickerSwatches_1 = __importDefault(require("./ColorPickerSwatches"));
|
|
|
23
23
|
const ColorPreview_1 = __importDefault(require("./ColorPreview"));
|
|
24
24
|
const context_1 = require("./context");
|
|
25
25
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
26
|
-
exports.
|
|
26
|
+
exports.colorPickerProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { value: String, show: {
|
|
27
27
|
type: Boolean,
|
|
28
28
|
default: undefined
|
|
29
29
|
}, defaultShow: Boolean, defaultValue: String, modes: {
|
|
@@ -45,7 +45,7 @@ exports.colorPickerPanelProps = Object.assign(Object.assign({}, _mixins_1.useThe
|
|
|
45
45
|
}, internalActions: Array, size: String, renderLabel: Function, onComplete: Function, onConfirm: Function, 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array] });
|
|
46
46
|
exports.default = (0, vue_1.defineComponent)({
|
|
47
47
|
name: 'ColorPicker',
|
|
48
|
-
props: exports.
|
|
48
|
+
props: exports.colorPickerProps,
|
|
49
49
|
setup(props, { slots }) {
|
|
50
50
|
const selfRef = (0, vue_1.ref)(null);
|
|
51
51
|
let upcomingValue = null;
|
package/lib/countdown/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as NCountdown } from './src/Countdown';
|
|
2
|
-
export type { CountdownProps, CountdownTimeInfo } from './src/Countdown';
|
|
1
|
+
export { default as NCountdown, countdownProps } from './src/Countdown';
|
|
2
|
+
export type { CountdownProps, CountdownTimeInfo, CountdownInst } from './src/Countdown';
|
package/lib/countdown/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.NCountdown = void 0;
|
|
6
|
+
exports.countdownProps = exports.NCountdown = void 0;
|
|
7
7
|
var Countdown_1 = require("./src/Countdown");
|
|
8
8
|
Object.defineProperty(exports, "NCountdown", { enumerable: true, get: function () { return __importDefault(Countdown_1).default; } });
|
|
9
|
+
Object.defineProperty(exports, "countdownProps", { enumerable: true, get: function () { return Countdown_1.countdownProps; } });
|
|
@@ -6,7 +6,10 @@ export interface CountdownTimeInfo {
|
|
|
6
6
|
seconds: number;
|
|
7
7
|
milliseconds: number;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
export interface CountdownInst {
|
|
10
|
+
reset: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const countdownProps: {
|
|
10
13
|
duration: {
|
|
11
14
|
type: NumberConstructor;
|
|
12
15
|
default: number;
|
|
@@ -38,7 +41,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
41
|
};
|
|
39
42
|
render: PropType<(props: CountdownTimeInfo) => VNodeChild>;
|
|
40
43
|
onFinish: PropType<() => void>;
|
|
41
|
-
},
|
|
44
|
+
}, CountdownInst & {
|
|
45
|
+
distance: import("vue").Ref<number>;
|
|
46
|
+
getTimeInfo: (distance: number) => CountdownTimeInfo;
|
|
47
|
+
getDisplayValue: (info: CountdownTimeInfo) => string;
|
|
48
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
49
|
duration: {
|
|
43
50
|
type: NumberConstructor;
|
|
44
51
|
default: number;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.countdownProps = void 0;
|
|
3
4
|
const vue_1 = require("vue");
|
|
4
|
-
|
|
5
|
+
exports.countdownProps = {
|
|
5
6
|
duration: {
|
|
6
7
|
type: Number,
|
|
7
8
|
default: 0
|
|
@@ -19,7 +20,7 @@ const countdownProps = {
|
|
|
19
20
|
};
|
|
20
21
|
exports.default = (0, vue_1.defineComponent)({
|
|
21
22
|
name: 'Countdown',
|
|
22
|
-
props: countdownProps,
|
|
23
|
+
props: exports.countdownProps,
|
|
23
24
|
setup(props) {
|
|
24
25
|
let timerId = null;
|
|
25
26
|
let rafId = null;
|
|
@@ -114,32 +115,48 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
114
115
|
(0, vue_1.onBeforeUnmount)(() => {
|
|
115
116
|
stopTimer();
|
|
116
117
|
});
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
timeInfo = getTimeInfo(distance + 999);
|
|
124
|
-
timeInfo.milliseconds = 0;
|
|
125
|
-
break;
|
|
126
|
-
case 1:
|
|
127
|
-
timeInfo = getTimeInfo(distance + 99);
|
|
128
|
-
timeInfo.milliseconds = Math.floor(timeInfo.milliseconds / 100) * 100;
|
|
129
|
-
break;
|
|
130
|
-
case 2:
|
|
131
|
-
timeInfo = getTimeInfo(distance + 9);
|
|
132
|
-
timeInfo.milliseconds = Math.floor(timeInfo.milliseconds / 10) * 10;
|
|
133
|
-
break;
|
|
134
|
-
case 3:
|
|
135
|
-
timeInfo = getTimeInfo(distance);
|
|
136
|
-
}
|
|
137
|
-
if (render) {
|
|
138
|
-
return render(timeInfo);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
return getDisplayValue(timeInfo);
|
|
118
|
+
function reset() {
|
|
119
|
+
distanceRef.value = props.duration;
|
|
120
|
+
elapsed = 0;
|
|
121
|
+
pnow = performance.now();
|
|
122
|
+
if (props.active && finished) {
|
|
123
|
+
frame();
|
|
142
124
|
}
|
|
125
|
+
finished = false;
|
|
126
|
+
}
|
|
127
|
+
const countdownExposedMethod = {
|
|
128
|
+
reset
|
|
143
129
|
};
|
|
130
|
+
return Object.assign(countdownExposedMethod, {
|
|
131
|
+
distance: distanceRef,
|
|
132
|
+
getTimeInfo,
|
|
133
|
+
getDisplayValue
|
|
134
|
+
});
|
|
135
|
+
},
|
|
136
|
+
render() {
|
|
137
|
+
const { render, precision, distance, getTimeInfo, getDisplayValue } = this;
|
|
138
|
+
let timeInfo;
|
|
139
|
+
switch (precision) {
|
|
140
|
+
case 0:
|
|
141
|
+
timeInfo = getTimeInfo(distance + 999);
|
|
142
|
+
timeInfo.milliseconds = 0;
|
|
143
|
+
break;
|
|
144
|
+
case 1:
|
|
145
|
+
timeInfo = getTimeInfo(distance + 99);
|
|
146
|
+
timeInfo.milliseconds = Math.floor(timeInfo.milliseconds / 100) * 100;
|
|
147
|
+
break;
|
|
148
|
+
case 2:
|
|
149
|
+
timeInfo = getTimeInfo(distance + 9);
|
|
150
|
+
timeInfo.milliseconds = Math.floor(timeInfo.milliseconds / 10) * 10;
|
|
151
|
+
break;
|
|
152
|
+
case 3:
|
|
153
|
+
timeInfo = getTimeInfo(distance);
|
|
154
|
+
}
|
|
155
|
+
if (render) {
|
|
156
|
+
return render(timeInfo);
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
return getDisplayValue(timeInfo);
|
|
160
|
+
}
|
|
144
161
|
}
|
|
145
162
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as NDataTable } from './src/DataTable';
|
|
1
|
+
export { default as NDataTable, dataTableProps } from './src/DataTable';
|
|
2
2
|
export type { DataTableProps } from './src/DataTable';
|
|
3
3
|
export type { RowKey as DataTableRowKey, RenderFilter as DataTableRenderFilter, RenderSorter as DataTableRenderSorter, RenderFilterIcon as DataTableRenderFilterIcon, RenderSorterIcon as DataTableRenderSorterIcon, ColumnKey as DataTableColumnKey, TableColumn as DataTableColumn, TableColumns as DataTableColumns, TableBaseColumn as DataTableBaseColumn, TableSelectionColumn as DataTableSelectionColumn, TableExpandColumn as DataTableExpandColumn, CreateRowClassName as DataTableCreateRowClassName, CreateRowKey as DataTableCreateRowKey, CreateRowProps as DataTableCreateRowProps, DataTableInst, CreateSummary as DataTableCreateSummary, FilterState as DataTableFilterState, SortState as DataTableSortState } from './src/interface';
|
package/lib/data-table/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.NDataTable = void 0;
|
|
6
|
+
exports.dataTableProps = exports.NDataTable = void 0;
|
|
7
7
|
var DataTable_1 = require("./src/DataTable");
|
|
8
8
|
Object.defineProperty(exports, "NDataTable", { enumerable: true, get: function () { return __importDefault(DataTable_1).default; } });
|
|
9
|
+
Object.defineProperty(exports, "dataTableProps", { enumerable: true, get: function () { return DataTable_1.dataTableProps; } });
|
|
@@ -1176,6 +1176,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1176
1176
|
tmNode: TmNode;
|
|
1177
1177
|
key: import("treemate").Key;
|
|
1178
1178
|
striped: boolean;
|
|
1179
|
+
index: number;
|
|
1179
1180
|
}[];
|
|
1180
1181
|
hasChildren: boolean;
|
|
1181
1182
|
}>;
|
|
@@ -1212,6 +1213,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1212
1213
|
handleCheckboxUpdateChecked: (tmNode: {
|
|
1213
1214
|
key: RowKey;
|
|
1214
1215
|
}, checked: boolean, shiftKey: boolean) => void;
|
|
1216
|
+
handleRadioUpdateChecked: (tmNode: {
|
|
1217
|
+
key: RowKey;
|
|
1218
|
+
}) => void;
|
|
1215
1219
|
handleUpdateExpanded: (key: RowKey, tmNode: TmNode | null) => void;
|
|
1216
1220
|
renderCell: import("vue").Ref<((value: any, rowData: object, column: import("../interface").TableBaseColumn<import("../interface").InternalRowData>) => import("vue").VNodeChild) | undefined>;
|
|
1217
1221
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -18,24 +18,27 @@ const utils_1 = require("../utils");
|
|
|
18
18
|
const Cell_1 = __importDefault(require("./Cell"));
|
|
19
19
|
const ExpandTrigger_1 = __importDefault(require("./ExpandTrigger"));
|
|
20
20
|
const BodyCheckbox_1 = __importDefault(require("./BodyCheckbox"));
|
|
21
|
+
const BodyRadio_1 = __importDefault(require("./BodyRadio"));
|
|
21
22
|
const Header_1 = __importDefault(require("./Header"));
|
|
22
23
|
function flatten(rowInfos, expandedRowKeys) {
|
|
23
24
|
const fRows = [];
|
|
24
|
-
function traverse(rs) {
|
|
25
|
+
function traverse(rs, rootIndex) {
|
|
25
26
|
rs.forEach((r) => {
|
|
26
27
|
if (r.children && expandedRowKeys.has(r.key)) {
|
|
27
28
|
fRows.push({
|
|
28
29
|
tmNode: r,
|
|
29
30
|
striped: false,
|
|
30
|
-
key: r.key
|
|
31
|
+
key: r.key,
|
|
32
|
+
index: rootIndex
|
|
31
33
|
});
|
|
32
|
-
traverse(r.children);
|
|
34
|
+
traverse(r.children, rootIndex);
|
|
33
35
|
}
|
|
34
36
|
else {
|
|
35
37
|
fRows.push({
|
|
36
38
|
key: r.key,
|
|
37
39
|
tmNode: r,
|
|
38
|
-
striped: false
|
|
40
|
+
striped: false,
|
|
41
|
+
index: rootIndex
|
|
39
42
|
});
|
|
40
43
|
}
|
|
41
44
|
});
|
|
@@ -44,7 +47,7 @@ function flatten(rowInfos, expandedRowKeys) {
|
|
|
44
47
|
fRows.push(rowInfo);
|
|
45
48
|
const { children } = rowInfo.tmNode;
|
|
46
49
|
if (children && expandedRowKeys.has(rowInfo.key)) {
|
|
47
|
-
traverse(children);
|
|
50
|
+
traverse(children, rowInfo.index);
|
|
48
51
|
}
|
|
49
52
|
});
|
|
50
53
|
return fRows;
|
|
@@ -114,7 +117,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
114
117
|
}
|
|
115
118
|
});
|
|
116
119
|
if (checked) {
|
|
117
|
-
doCheck(rowKeysToCheck);
|
|
120
|
+
doCheck(rowKeysToCheck, false);
|
|
118
121
|
}
|
|
119
122
|
else {
|
|
120
123
|
doUncheck(rowKeysToCheck);
|
|
@@ -124,13 +127,16 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
124
127
|
}
|
|
125
128
|
}
|
|
126
129
|
if (checked) {
|
|
127
|
-
doCheck(tmNode.key);
|
|
130
|
+
doCheck(tmNode.key, false);
|
|
128
131
|
}
|
|
129
132
|
else {
|
|
130
133
|
doUncheck(tmNode.key);
|
|
131
134
|
}
|
|
132
135
|
lastSelectedKey = tmNode.key;
|
|
133
136
|
}
|
|
137
|
+
function handleRadioUpdateChecked(tmNode) {
|
|
138
|
+
doCheck(tmNode.key, true);
|
|
139
|
+
}
|
|
134
140
|
function getScrollContainer() {
|
|
135
141
|
if (!shouldDisplaySomeTablePartRef.value) {
|
|
136
142
|
const { value: emptyEl } = emptyElRef;
|
|
@@ -288,16 +294,18 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
288
294
|
return {
|
|
289
295
|
tmNode,
|
|
290
296
|
key: tmNode.key,
|
|
291
|
-
striped: index % 2 === 1
|
|
297
|
+
striped: index % 2 === 1,
|
|
298
|
+
index
|
|
292
299
|
};
|
|
293
300
|
}
|
|
294
|
-
: (tmNode) => {
|
|
301
|
+
: (tmNode, index) => {
|
|
295
302
|
if (!tmNode.isLeaf)
|
|
296
303
|
hasChildren = true;
|
|
297
304
|
return {
|
|
298
305
|
tmNode,
|
|
299
306
|
key: tmNode.key,
|
|
300
|
-
striped: false
|
|
307
|
+
striped: false,
|
|
308
|
+
index
|
|
301
309
|
};
|
|
302
310
|
});
|
|
303
311
|
return {
|
|
@@ -313,6 +321,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
313
321
|
virtualListContent,
|
|
314
322
|
handleTableBodyScroll,
|
|
315
323
|
handleCheckboxUpdateChecked,
|
|
324
|
+
handleRadioUpdateChecked,
|
|
316
325
|
handleUpdateExpanded,
|
|
317
326
|
renderCell }, exposedMethods);
|
|
318
327
|
},
|
|
@@ -336,7 +345,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
336
345
|
const cordToPass = {};
|
|
337
346
|
// coordinate to related hover keys
|
|
338
347
|
const cordKey = {};
|
|
339
|
-
const { cols, paginatedDataAndInfo, mergedTheme, fixedColumnLeftMap, fixedColumnRightMap, currentPage, rowClassName, mergedSortState, mergedExpandedRowKeySet, componentId, childTriggerColIndex, rowProps, handleMouseenterTable, handleMouseleaveTable, renderExpand, summary, handleCheckboxUpdateChecked, handleUpdateExpanded } = this;
|
|
348
|
+
const { cols, paginatedDataAndInfo, mergedTheme, fixedColumnLeftMap, fixedColumnRightMap, currentPage, rowClassName, mergedSortState, mergedExpandedRowKeySet, componentId, childTriggerColIndex, rowProps, handleMouseenterTable, handleMouseleaveTable, renderExpand, summary, handleCheckboxUpdateChecked, handleRadioUpdateChecked, handleUpdateExpanded } = this;
|
|
340
349
|
const { length: colCount } = cols;
|
|
341
350
|
let mergedData;
|
|
342
351
|
// if there is children in data, we should expand mergedData first
|
|
@@ -355,7 +364,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
355
364
|
tmNode: {
|
|
356
365
|
rawNode: row,
|
|
357
366
|
disabled: true
|
|
358
|
-
}
|
|
367
|
+
},
|
|
368
|
+
index: -1
|
|
359
369
|
}))
|
|
360
370
|
];
|
|
361
371
|
}
|
|
@@ -368,7 +378,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
368
378
|
tmNode: {
|
|
369
379
|
rawNode: summaryRows,
|
|
370
380
|
disabled: true
|
|
371
|
-
}
|
|
381
|
+
},
|
|
382
|
+
index: -1
|
|
372
383
|
}
|
|
373
384
|
];
|
|
374
385
|
}
|
|
@@ -386,7 +397,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
386
397
|
displayedData.push(rowInfo, {
|
|
387
398
|
isExpandedRow: true,
|
|
388
399
|
key: `${rowInfo.key}-expand`,
|
|
389
|
-
tmNode: rowInfo.tmNode
|
|
400
|
+
tmNode: rowInfo.tmNode,
|
|
401
|
+
index: rowInfo.index
|
|
390
402
|
});
|
|
391
403
|
}
|
|
392
404
|
else {
|
|
@@ -398,26 +410,29 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
398
410
|
paginatedData.forEach(({ tmNode }, rowIndex) => {
|
|
399
411
|
rowIndexToKey[rowIndex] = tmNode.key;
|
|
400
412
|
});
|
|
401
|
-
const renderRow = (rowInfo,
|
|
413
|
+
const renderRow = (rowInfo, displayedRowIndex, isVirtual) => {
|
|
414
|
+
const { index: actualRowIndex } = rowInfo;
|
|
402
415
|
if ('isExpandedRow' in rowInfo) {
|
|
403
416
|
const { tmNode: { key, rawNode } } = rowInfo;
|
|
404
417
|
return ((0, vue_1.h)("tr", { class: `${mergedClsPrefix}-data-table-tr`, key: `${key}__expand` },
|
|
405
418
|
(0, vue_1.h)("td", { class: [
|
|
406
419
|
`${mergedClsPrefix}-data-table-td`,
|
|
407
420
|
`${mergedClsPrefix}-data-table-td--last-col`,
|
|
408
|
-
|
|
421
|
+
displayedRowIndex + 1 === rowCount &&
|
|
409
422
|
`${mergedClsPrefix}-data-table-td--last-row`
|
|
410
|
-
], colspan: colCount }, renderExpand(rawNode,
|
|
423
|
+
], colspan: colCount }, renderExpand(rawNode, actualRowIndex))));
|
|
411
424
|
}
|
|
412
425
|
const isSummary = 'isSummaryRow' in rowInfo;
|
|
413
426
|
const striped = !isSummary && rowInfo.striped;
|
|
414
427
|
const { tmNode, key: rowKey } = rowInfo;
|
|
415
428
|
const { rawNode: rowData } = tmNode;
|
|
416
429
|
const expanded = mergedExpandedRowKeySet.has(rowKey);
|
|
417
|
-
const props = rowProps
|
|
430
|
+
const props = rowProps
|
|
431
|
+
? rowProps(rowData, actualRowIndex)
|
|
432
|
+
: undefined;
|
|
418
433
|
const mergedRowClassName = typeof rowClassName === 'string'
|
|
419
434
|
? rowClassName
|
|
420
|
-
: (0, utils_1.createRowClassName)(rowData,
|
|
435
|
+
: (0, utils_1.createRowClassName)(rowData, actualRowIndex, rowClassName);
|
|
421
436
|
const row = ((0, vue_1.h)("tr", Object.assign({ onMouseenter: () => {
|
|
422
437
|
this.hoverKey = rowKey;
|
|
423
438
|
}, key: rowKey, class: [
|
|
@@ -427,8 +442,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
427
442
|
mergedRowClassName
|
|
428
443
|
] }, props), cols.map((col, colIndex) => {
|
|
429
444
|
var _a, _b, _c, _d, _e;
|
|
430
|
-
if (
|
|
431
|
-
const cordOfRowToPass = cordToPass[
|
|
445
|
+
if (displayedRowIndex in cordToPass) {
|
|
446
|
+
const cordOfRowToPass = cordToPass[displayedRowIndex];
|
|
432
447
|
const indexInCordOfRowToPass = cordOfRowToPass.indexOf(colIndex);
|
|
433
448
|
if (~indexInCordOfRowToPass) {
|
|
434
449
|
cordOfRowToPass.splice(indexInCordOfRowToPass, 1);
|
|
@@ -442,29 +457,30 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
442
457
|
const mergedColSpan = isSummary
|
|
443
458
|
? ((_a = rowInfo.tmNode.rawNode[colKey]) === null || _a === void 0 ? void 0 : _a.colSpan) || 1 // optional for #1276
|
|
444
459
|
: colSpan
|
|
445
|
-
? colSpan(rowData,
|
|
460
|
+
? colSpan(rowData, actualRowIndex)
|
|
446
461
|
: 1;
|
|
447
462
|
const mergedRowSpan = isSummary
|
|
448
463
|
? ((_b = rowInfo.tmNode.rawNode[colKey]) === null || _b === void 0 ? void 0 : _b.rowSpan) || 1 // optional for #1276
|
|
449
464
|
: rowSpan
|
|
450
|
-
? rowSpan(rowData,
|
|
465
|
+
? rowSpan(rowData, actualRowIndex)
|
|
451
466
|
: 1;
|
|
452
467
|
const isLastCol = colIndex + mergedColSpan === colCount;
|
|
453
|
-
const isLastRow =
|
|
468
|
+
const isLastRow = displayedRowIndex + mergedRowSpan === rowCount;
|
|
454
469
|
const isCrossRowTd = mergedRowSpan > 1;
|
|
455
470
|
if (isCrossRowTd) {
|
|
456
|
-
cordKey[
|
|
471
|
+
cordKey[displayedRowIndex] = {
|
|
457
472
|
[colIndex]: []
|
|
458
473
|
};
|
|
459
474
|
}
|
|
460
475
|
if (mergedColSpan > 1 || isCrossRowTd) {
|
|
461
|
-
for (let i =
|
|
476
|
+
for (let i = displayedRowIndex; i < displayedRowIndex + mergedRowSpan; ++i) {
|
|
462
477
|
if (isCrossRowTd) {
|
|
463
|
-
cordKey[
|
|
478
|
+
cordKey[displayedRowIndex][colIndex].push(rowIndexToKey[i]);
|
|
464
479
|
}
|
|
465
480
|
for (let j = colIndex; j < colIndex + mergedColSpan; ++j) {
|
|
466
|
-
if (i ===
|
|
481
|
+
if (i === displayedRowIndex && j === colIndex) {
|
|
467
482
|
continue;
|
|
483
|
+
}
|
|
468
484
|
if (!(i in cordToPass)) {
|
|
469
485
|
cordToPass[i] = [j];
|
|
470
486
|
}
|
|
@@ -476,7 +492,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
476
492
|
}
|
|
477
493
|
const hoverKey = isCrossRowTd ? this.hoverKey : null;
|
|
478
494
|
const { cellProps } = column;
|
|
479
|
-
const resolvedCellProps = cellProps === null || cellProps === void 0 ? void 0 : cellProps(rowData,
|
|
495
|
+
const resolvedCellProps = cellProps === null || cellProps === void 0 ? void 0 : cellProps(rowData, actualRowIndex);
|
|
480
496
|
return ((0, vue_1.h)("td", Object.assign({}, resolvedCellProps, { key: colKey, style: [
|
|
481
497
|
{
|
|
482
498
|
textAlign: column.align || undefined,
|
|
@@ -491,7 +507,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
491
507
|
isSummary &&
|
|
492
508
|
`${mergedClsPrefix}-data-table-td--summary`,
|
|
493
509
|
((hoverKey !== null &&
|
|
494
|
-
cordKey[
|
|
510
|
+
cordKey[displayedRowIndex][colIndex].includes(hoverKey)) ||
|
|
495
511
|
(0, utils_1.isColumnSorting)(column, mergedSortState)) &&
|
|
496
512
|
`${mergedClsPrefix}-data-table-td--hover`,
|
|
497
513
|
column.fixed &&
|
|
@@ -513,8 +529,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
513
529
|
} }))
|
|
514
530
|
]
|
|
515
531
|
: null,
|
|
516
|
-
column.type === 'selection' ? (!isSummary ? ((0, vue_1.h)(BodyCheckbox_1.default, { key: currentPage, rowKey: rowKey, disabled: rowInfo.tmNode.disabled, onUpdateChecked: (checked, e) => handleCheckboxUpdateChecked(rowInfo.tmNode, checked, e.shiftKey) })) : null) : column.type === 'expand' ? (!isSummary ? (!column.expandable ||
|
|
517
|
-
((_e = column.expandable) === null || _e === void 0 ? void 0 : _e.call(column, rowData)) ? ((0, vue_1.h)(ExpandTrigger_1.default, { clsPrefix: mergedClsPrefix, expanded: expanded, onClick: () => handleUpdateExpanded(rowKey, null) })) : null) : null) : ((0, vue_1.h)(Cell_1.default, { clsPrefix: mergedClsPrefix, index:
|
|
532
|
+
column.type === 'selection' ? (!isSummary ? (column.multiple === false ? ((0, vue_1.h)(BodyRadio_1.default, { key: currentPage, rowKey: rowKey, disabled: rowInfo.tmNode.disabled, onUpdateChecked: () => handleRadioUpdateChecked(rowInfo.tmNode) })) : ((0, vue_1.h)(BodyCheckbox_1.default, { key: currentPage, rowKey: rowKey, disabled: rowInfo.tmNode.disabled, onUpdateChecked: (checked, e) => handleCheckboxUpdateChecked(rowInfo.tmNode, checked, e.shiftKey) }))) : null) : column.type === 'expand' ? (!isSummary ? (!column.expandable ||
|
|
533
|
+
((_e = column.expandable) === null || _e === void 0 ? void 0 : _e.call(column, rowData)) ? ((0, vue_1.h)(ExpandTrigger_1.default, { clsPrefix: mergedClsPrefix, expanded: expanded, onClick: () => handleUpdateExpanded(rowKey, null) })) : null) : null) : ((0, vue_1.h)(Cell_1.default, { clsPrefix: mergedClsPrefix, index: actualRowIndex, row: rowData, column: column, isSummary: isSummary, mergedTheme: mergedTheme, renderCell: this.renderCell }))));
|
|
518
534
|
})));
|
|
519
535
|
return row;
|
|
520
536
|
};
|
|
@@ -524,8 +540,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
524
540
|
} },
|
|
525
541
|
(0, vue_1.h)("colgroup", null, cols.map((col) => ((0, vue_1.h)("col", { key: col.key, style: col.style })))),
|
|
526
542
|
this.showHeader ? (0, vue_1.h)(Header_1.default, { discrete: false }) : null,
|
|
527
|
-
!this.empty ? ((0, vue_1.h)("tbody", { "data-n-id": componentId, class: `${mergedClsPrefix}-data-table-tbody` }, displayedData.map((rowInfo,
|
|
528
|
-
return renderRow(rowInfo,
|
|
543
|
+
!this.empty ? ((0, vue_1.h)("tbody", { "data-n-id": componentId, class: `${mergedClsPrefix}-data-table-tbody` }, displayedData.map((rowInfo, displayedRowIndex) => {
|
|
544
|
+
return renderRow(rowInfo, displayedRowIndex, false);
|
|
529
545
|
}))) : null));
|
|
530
546
|
}
|
|
531
547
|
else {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { RowKey } from '../interface';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
rowKey: {
|
|
5
|
+
type: PropType<RowKey>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
disabled: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
onUpdateChecked: {
|
|
13
|
+
type: PropType<(checked: boolean) => void>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
rowKey: {
|
|
18
|
+
type: PropType<RowKey>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
disabled: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
onUpdateChecked: {
|
|
26
|
+
type: PropType<(checked: boolean) => void>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
}>>, {}>;
|
|
30
|
+
export default _default;
|