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
|
@@ -52,9 +52,18 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('drawer', `
|
|
|
52
52
|
background-color: var(--n-color);
|
|
53
53
|
color: var(--n-text-color);
|
|
54
54
|
box-sizing: border-box;
|
|
55
|
-
`, [(0, slide_in_from_right_1.slideInFromRightTransition)(), (0, slide_in_from_left_1.slideInFromLeftTransition)(), (0, slide_in_from_top_1.slideInFromTopTransition)(), (0, slide_in_from_bottom_1.slideInFromBottomTransition)(), (0, cssr_1.cM)('
|
|
55
|
+
`, [(0, slide_in_from_right_1.slideInFromRightTransition)(), (0, slide_in_from_left_1.slideInFromLeftTransition)(), (0, slide_in_from_top_1.slideInFromTopTransition)(), (0, slide_in_from_bottom_1.slideInFromBottomTransition)(), (0, cssr_1.cM)('unselectable', `
|
|
56
|
+
user-select: none;
|
|
57
|
+
-webkit-user-select: none;
|
|
58
|
+
`), (0, cssr_1.cM)('native-scrollbar', [(0, cssr_1.cB)('drawer-content-wrapper', `
|
|
56
59
|
overflow: auto;
|
|
57
60
|
height: 100%;
|
|
61
|
+
`)]), (0, cssr_1.cE)('resize-trigger', `
|
|
62
|
+
position: absolute;
|
|
63
|
+
background-color: #0000;
|
|
64
|
+
transition: background-color .3s var(--n-bezier);
|
|
65
|
+
`, [(0, cssr_1.cM)('hover', `
|
|
66
|
+
background-color: var(--n-resize-trigger-color-hover);
|
|
58
67
|
`)]), (0, cssr_1.cB)('drawer-content-wrapper', `
|
|
59
68
|
box-sizing: border-box;
|
|
60
69
|
`), (0, cssr_1.cB)('drawer-content', `
|
|
@@ -97,19 +106,47 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('drawer', `
|
|
|
97
106
|
top: 0;
|
|
98
107
|
bottom: 0;
|
|
99
108
|
right: 0;
|
|
100
|
-
|
|
109
|
+
`, [(0, cssr_1.cE)('resize-trigger', `
|
|
110
|
+
width: 3px;
|
|
111
|
+
height: 100%;
|
|
112
|
+
top: 0;
|
|
113
|
+
left: 0;
|
|
114
|
+
transform: translateX(-1.5px);
|
|
115
|
+
cursor: ew-resize;
|
|
116
|
+
`)]), (0, cssr_1.cM)('left-placement', `
|
|
101
117
|
top: 0;
|
|
102
118
|
bottom: 0;
|
|
103
119
|
left: 0;
|
|
104
|
-
|
|
120
|
+
`, [(0, cssr_1.cE)('resize-trigger', `
|
|
121
|
+
width: 3px;
|
|
122
|
+
height: 100%;
|
|
123
|
+
top: 0;
|
|
124
|
+
right: 0;
|
|
125
|
+
transform: translateX(1.5px);
|
|
126
|
+
cursor: ew-resize;
|
|
127
|
+
`)]), (0, cssr_1.cM)('top-placement', `
|
|
105
128
|
top: 0;
|
|
106
129
|
left: 0;
|
|
107
130
|
right: 0;
|
|
108
|
-
|
|
131
|
+
`, [(0, cssr_1.cE)('resize-trigger', `
|
|
132
|
+
width: 100%;
|
|
133
|
+
height: 3px;
|
|
134
|
+
bottom: 0;
|
|
135
|
+
left: 0;
|
|
136
|
+
transform: translateY(1.5px);
|
|
137
|
+
cursor: ns-resize;
|
|
138
|
+
`)]), (0, cssr_1.cM)('bottom-placement', `
|
|
109
139
|
left: 0;
|
|
110
140
|
bottom: 0;
|
|
111
141
|
right: 0;
|
|
112
|
-
|
|
142
|
+
`, [(0, cssr_1.cE)('resize-trigger', `
|
|
143
|
+
width: 100%;
|
|
144
|
+
height: 3px;
|
|
145
|
+
top: 0;
|
|
146
|
+
left: 0;
|
|
147
|
+
transform: translateY(-1.5px);
|
|
148
|
+
cursor: ns-resize;
|
|
149
|
+
`)])]), (0, cssr_1.c)('body', [(0, cssr_1.c)('>', [(0, cssr_1.cB)('drawer-container', {
|
|
113
150
|
position: 'fixed'
|
|
114
151
|
})])]), (0, cssr_1.cB)('drawer-container', `
|
|
115
152
|
position: relative;
|
|
@@ -20,6 +20,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
20
20
|
closeColorHover: string;
|
|
21
21
|
closeColorPressed: string;
|
|
22
22
|
closeBorderRadius: string;
|
|
23
|
+
resizableTriggerColorHover: string;
|
|
23
24
|
};
|
|
24
25
|
export declare type DrawerThemeVars = ReturnType<typeof self>;
|
|
25
26
|
declare const drawerLight: import("../../_mixins").Theme<"Drawer", {
|
|
@@ -43,6 +44,7 @@ declare const drawerLight: import("../../_mixins").Theme<"Drawer", {
|
|
|
43
44
|
closeColorHover: string;
|
|
44
45
|
closeColorPressed: string;
|
|
45
46
|
closeBorderRadius: string;
|
|
47
|
+
resizableTriggerColorHover: string;
|
|
46
48
|
}, {
|
|
47
49
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
48
50
|
color: string;
|
|
@@ -5,7 +5,7 @@ const common_1 = require("../../_styles/common");
|
|
|
5
5
|
const styles_1 = require("../../_internal/scrollbar/styles");
|
|
6
6
|
const _mixins_1 = require("../../_mixins");
|
|
7
7
|
const self = (vars) => {
|
|
8
|
-
const { modalColor, textColor1, textColor2, boxShadow3, lineHeight, fontWeightStrong, dividerColor, closeColorHover, closeColorPressed, closeIconColor, closeIconColorHover, closeIconColorPressed, borderRadius } = vars;
|
|
8
|
+
const { modalColor, textColor1, textColor2, boxShadow3, lineHeight, fontWeightStrong, dividerColor, closeColorHover, closeColorPressed, closeIconColor, closeIconColorHover, closeIconColorPressed, borderRadius, primaryColorHover } = vars;
|
|
9
9
|
return {
|
|
10
10
|
bodyPadding: '16px 24px',
|
|
11
11
|
headerPadding: '16px 24px',
|
|
@@ -26,7 +26,8 @@ const self = (vars) => {
|
|
|
26
26
|
closeIconSize: '18px',
|
|
27
27
|
closeColorHover,
|
|
28
28
|
closeColorPressed,
|
|
29
|
-
closeBorderRadius: borderRadius
|
|
29
|
+
closeBorderRadius: borderRadius,
|
|
30
|
+
resizableTriggerColorHover: primaryColorHover
|
|
30
31
|
};
|
|
31
32
|
};
|
|
32
33
|
exports.self = self;
|
package/lib/dropdown/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as NDropdown } from './src/Dropdown';
|
|
1
|
+
export { default as NDropdown, dropdownProps } from './src/Dropdown';
|
|
2
2
|
export type { DropdownProps } from './src/Dropdown';
|
|
3
|
-
export type { DropdownOption, DropdownGroupOption, DropdownDividerOption, DropdownRenderOption, NodeProps as DropdownNodeProps } from './src/interface';
|
|
3
|
+
export type { DropdownOption, DropdownGroupOption, DropdownDividerOption, DropdownRenderOption, NodeProps as DropdownNodeProps, DropdownMenuProps } from './src/interface';
|
package/lib/dropdown/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.NDropdown = void 0;
|
|
6
|
+
exports.dropdownProps = exports.NDropdown = void 0;
|
|
7
7
|
var Dropdown_1 = require("./src/Dropdown");
|
|
8
8
|
Object.defineProperty(exports, "NDropdown", { enumerable: true, get: function () { return __importDefault(Dropdown_1).default; } });
|
|
9
|
+
Object.defineProperty(exports, "dropdownProps", { enumerable: true, get: function () { return Dropdown_1.dropdownProps; } });
|
|
@@ -2,11 +2,12 @@ import { PropType, Ref } from 'vue';
|
|
|
2
2
|
import { Key, TreeNode } from 'treemate';
|
|
3
3
|
import { FollowerPlacement } from 'vueuc';
|
|
4
4
|
import { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
|
|
5
|
-
import { DropdownMixedOption, OnUpdateValue, OnUpdateValueImpl, RenderLabel, RenderIcon, RenderLabelImpl, RenderIconImpl, RenderOption, NodeProps, RenderOptionImpl } from './interface';
|
|
5
|
+
import { DropdownMixedOption, OnUpdateValue, OnUpdateValueImpl, RenderLabel, RenderIcon, RenderLabelImpl, RenderIconImpl, RenderOption, NodeProps, RenderOptionImpl, DropdownMenuProps } from './interface';
|
|
6
6
|
export interface DropdownInjection {
|
|
7
7
|
renderLabelRef: Ref<RenderLabelImpl | undefined>;
|
|
8
8
|
renderIconRef: Ref<RenderIconImpl | undefined>;
|
|
9
9
|
renderOptionRef: Ref<RenderOptionImpl | undefined>;
|
|
10
|
+
menuPropsRef: Ref<DropdownMenuProps | undefined>;
|
|
10
11
|
nodePropsRef: Ref<NodeProps | undefined>;
|
|
11
12
|
hoverKeyRef: Ref<Key | null>;
|
|
12
13
|
keyboardKeyRef: Ref<Key | null>;
|
|
@@ -20,7 +21,7 @@ export interface DropdownInjection {
|
|
|
20
21
|
doSelect: OnUpdateValueImpl;
|
|
21
22
|
doUpdateShow: (value: boolean) => void;
|
|
22
23
|
}
|
|
23
|
-
declare const dropdownProps: {
|
|
24
|
+
export declare const dropdownProps: {
|
|
24
25
|
readonly theme: PropType<import("../../_mixins").Theme<"Dropdown", {
|
|
25
26
|
optionHeightSmall: string;
|
|
26
27
|
optionHeightMedium: string;
|
|
@@ -253,6 +254,7 @@ declare const dropdownProps: {
|
|
|
253
254
|
readonly type: PropType<DropdownMixedOption[]>;
|
|
254
255
|
readonly default: () => never[];
|
|
255
256
|
};
|
|
257
|
+
readonly menuProps: PropType<DropdownMenuProps>;
|
|
256
258
|
readonly showArrow: BooleanConstructor;
|
|
257
259
|
readonly renderLabel: PropType<RenderLabel>;
|
|
258
260
|
readonly renderIcon: PropType<RenderIcon>;
|
|
@@ -320,6 +322,7 @@ declare const dropdownProps: {
|
|
|
320
322
|
readonly scrollable: BooleanConstructor;
|
|
321
323
|
readonly contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
322
324
|
readonly headerStyle: PropType<string | import("vue").CSSProperties>;
|
|
325
|
+
readonly footerStyle: PropType<string | import("vue").CSSProperties>;
|
|
323
326
|
readonly onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
324
327
|
readonly 'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
|
|
325
328
|
readonly onUpdateShow: PropType<MaybeArray<(value: boolean) => void>>;
|
|
@@ -577,6 +580,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
577
580
|
readonly type: PropType<DropdownMixedOption[]>;
|
|
578
581
|
readonly default: () => never[];
|
|
579
582
|
};
|
|
583
|
+
readonly menuProps: PropType<DropdownMenuProps>;
|
|
580
584
|
readonly showArrow: BooleanConstructor;
|
|
581
585
|
readonly renderLabel: PropType<RenderLabel>;
|
|
582
586
|
readonly renderIcon: PropType<RenderIcon>;
|
|
@@ -644,6 +648,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
644
648
|
readonly scrollable: BooleanConstructor;
|
|
645
649
|
readonly contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
646
650
|
readonly headerStyle: PropType<string | import("vue").CSSProperties>;
|
|
651
|
+
readonly footerStyle: PropType<string | import("vue").CSSProperties>;
|
|
647
652
|
readonly onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
648
653
|
readonly 'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
|
|
649
654
|
readonly onUpdateShow: PropType<MaybeArray<(value: boolean) => void>>;
|
|
@@ -855,6 +860,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
855
860
|
}>;
|
|
856
861
|
tmNodes: import("vue").ComputedRef<TreeNode<import("../..").MenuOption | import("../../menu/src/interface").MenuRenderOption, import("../..").MenuGroupOption, import("../../menu/src/interface").MenuIgnoredOption>[]>;
|
|
857
862
|
mergedShow: import("vue").ComputedRef<boolean>;
|
|
863
|
+
handleAfterLeave: () => void;
|
|
858
864
|
doUpdateShow: (value: boolean) => void;
|
|
859
865
|
cssVars: import("vue").ComputedRef<any> | undefined;
|
|
860
866
|
themeClass: Ref<string> | undefined;
|
|
@@ -1092,6 +1098,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1092
1098
|
readonly type: PropType<DropdownMixedOption[]>;
|
|
1093
1099
|
readonly default: () => never[];
|
|
1094
1100
|
};
|
|
1101
|
+
readonly menuProps: PropType<DropdownMenuProps>;
|
|
1095
1102
|
readonly showArrow: BooleanConstructor;
|
|
1096
1103
|
readonly renderLabel: PropType<RenderLabel>;
|
|
1097
1104
|
readonly renderIcon: PropType<RenderIcon>;
|
|
@@ -1159,6 +1166,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1159
1166
|
readonly scrollable: BooleanConstructor;
|
|
1160
1167
|
readonly contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
1161
1168
|
readonly headerStyle: PropType<string | import("vue").CSSProperties>;
|
|
1169
|
+
readonly footerStyle: PropType<string | import("vue").CSSProperties>;
|
|
1162
1170
|
readonly onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
1163
1171
|
readonly 'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
|
|
1164
1172
|
readonly onUpdateShow: PropType<MaybeArray<(value: boolean) => void>>;
|
|
@@ -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.dropdownProps = void 0;
|
|
6
7
|
const vue_1 = require("vue");
|
|
7
8
|
const treemate_1 = require("treemate");
|
|
8
9
|
const vooks_1 = require("vooks");
|
|
@@ -37,6 +38,7 @@ const dropdownBaseProps = {
|
|
|
37
38
|
type: Array,
|
|
38
39
|
default: () => []
|
|
39
40
|
},
|
|
41
|
+
menuProps: Function,
|
|
40
42
|
showArrow: Boolean,
|
|
41
43
|
renderLabel: Function,
|
|
42
44
|
renderIcon: Function,
|
|
@@ -58,11 +60,11 @@ const dropdownBaseProps = {
|
|
|
58
60
|
value: [String, Number]
|
|
59
61
|
};
|
|
60
62
|
const popoverPropKeys = Object.keys(Popover_1.popoverBaseProps);
|
|
61
|
-
|
|
63
|
+
exports.dropdownProps = Object.assign(Object.assign(Object.assign({}, Popover_1.popoverBaseProps), dropdownBaseProps), _mixins_1.useTheme.props);
|
|
62
64
|
exports.default = (0, vue_1.defineComponent)({
|
|
63
65
|
name: 'Dropdown',
|
|
64
66
|
inheritAttrs: false,
|
|
65
|
-
props: dropdownProps,
|
|
67
|
+
props: exports.dropdownProps,
|
|
66
68
|
setup(props) {
|
|
67
69
|
const uncontrolledShowRef = (0, vue_1.ref)(false);
|
|
68
70
|
const mergedShowRef = (0, vooks_1.useMergedState)((0, vue_1.toRef)(props, 'show'), uncontrolledShowRef);
|
|
@@ -138,13 +140,15 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
138
140
|
mergedShowRef: mergedShowRef,
|
|
139
141
|
nodePropsRef: (0, vue_1.toRef)(props, 'nodeProps'),
|
|
140
142
|
renderOptionRef: (0, vue_1.toRef)(props, 'renderOption'),
|
|
143
|
+
menuPropsRef: (0, vue_1.toRef)(props, 'menuProps'),
|
|
141
144
|
doSelect,
|
|
142
145
|
doUpdateShow
|
|
143
146
|
});
|
|
144
147
|
// watch
|
|
145
148
|
(0, vue_1.watch)(mergedShowRef, (value) => {
|
|
146
|
-
if (!value)
|
|
149
|
+
if (!props.animated && !value) {
|
|
147
150
|
clearPendingState();
|
|
151
|
+
}
|
|
148
152
|
});
|
|
149
153
|
// methods
|
|
150
154
|
function doSelect(key, node) {
|
|
@@ -291,6 +295,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
291
295
|
// show
|
|
292
296
|
mergedShow: mergedShowRef,
|
|
293
297
|
// methods
|
|
298
|
+
handleAfterLeave: () => {
|
|
299
|
+
if (!props.animated)
|
|
300
|
+
return;
|
|
301
|
+
clearPendingState();
|
|
302
|
+
},
|
|
294
303
|
doUpdateShow,
|
|
295
304
|
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
296
305
|
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
@@ -300,8 +309,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
300
309
|
render() {
|
|
301
310
|
const renderPopoverBody = (className, ref, style, onMouseenter, onMouseleave) => {
|
|
302
311
|
var _a;
|
|
303
|
-
const { mergedClsPrefix } = this;
|
|
312
|
+
const { mergedClsPrefix, menuProps } = this;
|
|
304
313
|
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
314
|
+
const menuNodeProps = (menuProps === null || menuProps === void 0 ? void 0 : menuProps(undefined, this.tmNodes.map((v) => v.rawNode))) || {};
|
|
305
315
|
const dropdownProps = {
|
|
306
316
|
ref: (0, _utils_1.createRefSetter)(ref),
|
|
307
317
|
class: [className, `${mergedClsPrefix}-dropdown`, this.themeClass],
|
|
@@ -310,16 +320,18 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
310
320
|
style: [style, this.cssVars],
|
|
311
321
|
showArrow: this.showArrow,
|
|
312
322
|
arrowStyle: this.arrowStyle,
|
|
323
|
+
scrollable: this.scrollable,
|
|
313
324
|
onMouseenter,
|
|
314
325
|
onMouseleave
|
|
315
326
|
};
|
|
316
|
-
return (0, vue_1.h)(DropdownMenu_1.default, (0, vue_1.mergeProps)(this.$attrs, dropdownProps));
|
|
327
|
+
return (0, vue_1.h)(DropdownMenu_1.default, (0, vue_1.mergeProps)(this.$attrs, dropdownProps, menuNodeProps));
|
|
317
328
|
};
|
|
318
329
|
const { mergedTheme } = this;
|
|
319
330
|
const popoverProps = {
|
|
320
331
|
show: this.mergedShow,
|
|
321
332
|
theme: mergedTheme.peers.Popover,
|
|
322
333
|
themeOverrides: mergedTheme.peerOverrides.Popover,
|
|
334
|
+
internalOnAfterLeave: this.handleAfterLeave,
|
|
323
335
|
internalRenderBody: renderPopoverBody,
|
|
324
336
|
onUpdateShow: this.doUpdateShow,
|
|
325
337
|
'onUpdate:show': undefined
|
|
@@ -5,6 +5,7 @@ export interface NDropdownMenuInjection {
|
|
|
5
5
|
hasSubmenuRef: Ref<boolean>;
|
|
6
6
|
}
|
|
7
7
|
declare const _default: import("vue").DefineComponent<{
|
|
8
|
+
scrollable: BooleanConstructor;
|
|
8
9
|
showArrow: BooleanConstructor;
|
|
9
10
|
arrowStyle: PropType<string | CSSProperties>;
|
|
10
11
|
clsPrefix: {
|
|
@@ -22,6 +23,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
23
|
}, {
|
|
23
24
|
bodyRef: Ref<HTMLElement | null>;
|
|
24
25
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
scrollable: BooleanConstructor;
|
|
25
27
|
showArrow: BooleanConstructor;
|
|
26
28
|
arrowStyle: PropType<string | CSSProperties>;
|
|
27
29
|
clsPrefix: {
|
|
@@ -37,6 +39,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
39
|
default: null;
|
|
38
40
|
};
|
|
39
41
|
}>>, {
|
|
42
|
+
scrollable: boolean;
|
|
40
43
|
showArrow: boolean;
|
|
41
44
|
parentKey: string | number;
|
|
42
45
|
tmNodes: TreeNode<import("../..").MenuOption, import("../..").MenuGroupOption, import("../../menu/src/interface").MenuIgnoredOption>[];
|
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const vue_1 = require("vue");
|
|
7
7
|
const PopoverBody_1 = require("../../popover/src/PopoverBody");
|
|
8
|
+
const scrollbar_1 = require("../../_internal/scrollbar");
|
|
8
9
|
const DropdownDivider_1 = __importDefault(require("./DropdownDivider"));
|
|
9
10
|
// eslint-disable-next-line import/no-cycle
|
|
10
11
|
const DropdownGroup_1 = __importDefault(require("./DropdownGroup"));
|
|
@@ -19,6 +20,7 @@ const interface_3 = require("../../popover/src/interface");
|
|
|
19
20
|
exports.default = (0, vue_1.defineComponent)({
|
|
20
21
|
name: 'DropdownMenu',
|
|
21
22
|
props: {
|
|
23
|
+
scrollable: Boolean,
|
|
22
24
|
showArrow: Boolean,
|
|
23
25
|
arrowStyle: [String, Object],
|
|
24
26
|
clsPrefix: {
|
|
@@ -70,21 +72,27 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
70
72
|
};
|
|
71
73
|
},
|
|
72
74
|
render() {
|
|
73
|
-
const { parentKey, clsPrefix } = this;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
75
|
+
const { parentKey, clsPrefix, scrollable } = this;
|
|
76
|
+
const menuOptionsNode = this.tmNodes.map((tmNode) => {
|
|
77
|
+
const { rawNode } = tmNode;
|
|
78
|
+
if ((0, utils_1.isRenderNode)(rawNode)) {
|
|
79
|
+
return ((0, vue_1.h)(DropdownRenderOption_1.default, { tmNode: tmNode, key: tmNode.key }));
|
|
80
|
+
}
|
|
81
|
+
if ((0, utils_1.isDividerNode)(rawNode)) {
|
|
82
|
+
return (0, vue_1.h)(DropdownDivider_1.default, { clsPrefix: clsPrefix, key: tmNode.key });
|
|
83
|
+
}
|
|
84
|
+
if ((0, utils_1.isGroupNode)(rawNode)) {
|
|
85
|
+
return ((0, vue_1.h)(DropdownGroup_1.default, { clsPrefix: clsPrefix, tmNode: tmNode, parentKey: parentKey, key: tmNode.key }));
|
|
86
|
+
}
|
|
87
|
+
return ((0, vue_1.h)(DropdownOption_1.default, { clsPrefix: clsPrefix, tmNode: tmNode, parentKey: parentKey, key: tmNode.key, props: rawNode.props, scrollable: scrollable }));
|
|
88
|
+
});
|
|
89
|
+
return ((0, vue_1.h)("div", { class: [
|
|
90
|
+
`${clsPrefix}-dropdown-menu`,
|
|
91
|
+
scrollable && `${clsPrefix}-dropdown-menu--scrollable`
|
|
92
|
+
], ref: "bodyRef" },
|
|
93
|
+
scrollable ? ((0, vue_1.h)(scrollbar_1.NxScrollbar, { contentClass: `${clsPrefix}-dropdown-menu__content` }, {
|
|
94
|
+
default: () => menuOptionsNode
|
|
95
|
+
})) : (menuOptionsNode),
|
|
88
96
|
this.showArrow
|
|
89
97
|
? (0, PopoverBody_1.renderArrow)({
|
|
90
98
|
clsPrefix,
|
|
@@ -22,12 +22,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
24
|
props: PropType<HTMLAttributes>;
|
|
25
|
+
scrollable: BooleanConstructor;
|
|
25
26
|
}, {
|
|
26
27
|
labelField: Ref<string>;
|
|
27
28
|
renderLabel: Ref<import("./interface").RenderLabelImpl | undefined>;
|
|
28
29
|
renderIcon: Ref<import("./interface").RenderIconImpl | undefined>;
|
|
29
30
|
siblingHasIcon: Ref<boolean>;
|
|
30
31
|
siblingHasSubmenu: Ref<boolean>;
|
|
32
|
+
menuProps: Ref<import("./interface").DropdownMenuProps | undefined>;
|
|
33
|
+
popoverBody: Ref<HTMLElement | null>;
|
|
31
34
|
animated: Ref<boolean>;
|
|
32
35
|
mergedShowSubmenu: import("vue").ComputedRef<boolean>;
|
|
33
36
|
rawNode: import("vue").ComputedRef<import("../..").MenuOption | import("../..").MenuGroupOption | import("../../menu/src/interface").MenuIgnoredOption>;
|
|
@@ -62,8 +65,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
65
|
default: string;
|
|
63
66
|
};
|
|
64
67
|
props: PropType<HTMLAttributes>;
|
|
68
|
+
scrollable: BooleanConstructor;
|
|
65
69
|
}>>, {
|
|
66
70
|
placement: FollowerPlacement;
|
|
71
|
+
scrollable: boolean;
|
|
67
72
|
parentKey: string | number | null;
|
|
68
73
|
}>;
|
|
69
74
|
export default _default;
|
|
@@ -12,6 +12,7 @@ const icon_1 = require("../../icon");
|
|
|
12
12
|
// eslint-disable-next-line import/no-cycle
|
|
13
13
|
const DropdownMenu_1 = __importDefault(require("./DropdownMenu"));
|
|
14
14
|
const context_1 = require("./context");
|
|
15
|
+
const interface_1 = require("../../popover/src/interface");
|
|
15
16
|
const utils_1 = require("./utils");
|
|
16
17
|
const seemly_1 = require("seemly");
|
|
17
18
|
exports.default = (0, vue_1.defineComponent)({
|
|
@@ -33,15 +34,18 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
33
34
|
type: String,
|
|
34
35
|
default: 'right-start'
|
|
35
36
|
},
|
|
36
|
-
props: Object
|
|
37
|
+
props: Object,
|
|
38
|
+
scrollable: Boolean
|
|
37
39
|
},
|
|
38
40
|
setup(props) {
|
|
39
41
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
40
42
|
const NDropdown = (0, vue_1.inject)(context_1.dropdownInjectionKey);
|
|
41
|
-
const { hoverKeyRef, keyboardKeyRef, lastToggledSubmenuKeyRef, pendingKeyPathRef, activeKeyPathRef, animatedRef, mergedShowRef, renderLabelRef, renderIconRef, labelFieldRef, childrenFieldRef, renderOptionRef, nodePropsRef } = NDropdown;
|
|
43
|
+
const { hoverKeyRef, keyboardKeyRef, lastToggledSubmenuKeyRef, pendingKeyPathRef, activeKeyPathRef, animatedRef, mergedShowRef, renderLabelRef, renderIconRef, labelFieldRef, childrenFieldRef, renderOptionRef, nodePropsRef, menuPropsRef } = NDropdown;
|
|
42
44
|
const NDropdownOption = (0, vue_1.inject)(context_1.dropdownOptionInjectionKey, null);
|
|
43
45
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
44
46
|
const NDropdownMenu = (0, vue_1.inject)(context_1.dropdownMenuInjectionKey);
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
48
|
+
const NPopoverBody = (0, vue_1.inject)(interface_1.popoverBodyInjectionKey);
|
|
45
49
|
const rawNodeRef = (0, vue_1.computed)(() => props.tmNode.rawNode);
|
|
46
50
|
const hasSubmenuRef = (0, vue_1.computed)(() => {
|
|
47
51
|
const { value: childrenField } = childrenFieldRef;
|
|
@@ -91,6 +95,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
91
95
|
}
|
|
92
96
|
function handleMouseEnter() {
|
|
93
97
|
const { parentKey, tmNode } = props;
|
|
98
|
+
if (tmNode.disabled)
|
|
99
|
+
return;
|
|
94
100
|
if (!mergedShowRef.value)
|
|
95
101
|
return;
|
|
96
102
|
lastToggledSubmenuKeyRef.value = parentKey;
|
|
@@ -99,6 +105,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
99
105
|
}
|
|
100
106
|
function handleMouseMove() {
|
|
101
107
|
const { tmNode } = props;
|
|
108
|
+
if (tmNode.disabled)
|
|
109
|
+
return;
|
|
102
110
|
if (!mergedShowRef.value)
|
|
103
111
|
return;
|
|
104
112
|
if (hoverKeyRef.value === tmNode.key)
|
|
@@ -106,11 +114,14 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
106
114
|
handleMouseEnter();
|
|
107
115
|
}
|
|
108
116
|
function handleMouseLeave(e) {
|
|
117
|
+
if (props.tmNode.disabled)
|
|
118
|
+
return;
|
|
109
119
|
if (!mergedShowRef.value)
|
|
110
120
|
return;
|
|
111
121
|
const { relatedTarget } = e;
|
|
112
122
|
if (relatedTarget &&
|
|
113
|
-
!(0, seemly_1.happensIn)({ target: relatedTarget }, 'dropdownOption')
|
|
123
|
+
!(0, seemly_1.happensIn)({ target: relatedTarget }, 'dropdownOption') &&
|
|
124
|
+
!(0, seemly_1.happensIn)({ target: relatedTarget }, 'scrollbarRail')) {
|
|
114
125
|
hoverKeyRef.value = null;
|
|
115
126
|
}
|
|
116
127
|
}
|
|
@@ -130,6 +141,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
130
141
|
renderIcon: renderIconRef,
|
|
131
142
|
siblingHasIcon: NDropdownMenu.showIconRef,
|
|
132
143
|
siblingHasSubmenu: NDropdownMenu.hasSubmenuRef,
|
|
144
|
+
menuProps: menuPropsRef,
|
|
145
|
+
popoverBody: NPopoverBody,
|
|
133
146
|
animated: animatedRef,
|
|
134
147
|
mergedShowSubmenu: (0, vue_1.computed)(() => {
|
|
135
148
|
return deferredShowSubmenuRef.value && !parentEnteringSubmenuRef.value;
|
|
@@ -169,9 +182,15 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
169
182
|
};
|
|
170
183
|
},
|
|
171
184
|
render() {
|
|
172
|
-
var _a;
|
|
173
|
-
const { animated, rawNode, mergedShowSubmenu, clsPrefix, siblingHasIcon, siblingHasSubmenu, renderLabel, renderIcon, renderOption, nodeProps, props } = this;
|
|
174
|
-
|
|
185
|
+
var _a, _b;
|
|
186
|
+
const { animated, rawNode, mergedShowSubmenu, clsPrefix, siblingHasIcon, siblingHasSubmenu, renderLabel, renderIcon, renderOption, nodeProps, props, scrollable } = this;
|
|
187
|
+
let submenuVNode = null;
|
|
188
|
+
if (mergedShowSubmenu) {
|
|
189
|
+
const submenuNodeProps = (_a = this.menuProps) === null || _a === void 0 ? void 0 : _a.call(this, rawNode,
|
|
190
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
191
|
+
rawNode.children);
|
|
192
|
+
submenuVNode = ((0, vue_1.h)(DropdownMenu_1.default, Object.assign({}, submenuNodeProps, { clsPrefix: clsPrefix, scrollable: this.scrollable, tmNodes: this.tmNode.children, parentKey: this.tmNode.key })));
|
|
193
|
+
}
|
|
175
194
|
const builtinProps = {
|
|
176
195
|
class: [
|
|
177
196
|
`${clsPrefix}-dropdown-option-body`,
|
|
@@ -185,16 +204,17 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
185
204
|
onMouseleave: this.handleMouseLeave,
|
|
186
205
|
onClick: this.handleClick
|
|
187
206
|
};
|
|
188
|
-
const
|
|
207
|
+
const optionNodeProps = nodeProps === null || nodeProps === void 0 ? void 0 : nodeProps(rawNode);
|
|
208
|
+
const node = ((0, vue_1.h)("div", Object.assign({ class: [`${clsPrefix}-dropdown-option`, optionNodeProps === null || optionNodeProps === void 0 ? void 0 : optionNodeProps.class], "data-dropdown-option": true }, optionNodeProps),
|
|
189
209
|
(0, vue_1.h)('div', (0, vue_1.mergeProps)(builtinProps, props), [
|
|
190
|
-
(0, vue_1.h)("div", {
|
|
210
|
+
(0, vue_1.h)("div", { class: [
|
|
191
211
|
`${clsPrefix}-dropdown-option-body__prefix`,
|
|
192
212
|
siblingHasIcon &&
|
|
193
213
|
`${clsPrefix}-dropdown-option-body__prefix--show-icon`
|
|
194
214
|
] }, [renderIcon ? renderIcon(rawNode) : (0, _utils_1.render)(rawNode.icon)]),
|
|
195
215
|
(0, vue_1.h)("div", { "data-dropdown-option": true, class: `${clsPrefix}-dropdown-option-body__label` }, renderLabel
|
|
196
216
|
? renderLabel(rawNode)
|
|
197
|
-
: (0, _utils_1.render)((
|
|
217
|
+
: (0, _utils_1.render)((_b = rawNode[this.labelField]) !== null && _b !== void 0 ? _b : rawNode.title)),
|
|
198
218
|
(0, vue_1.h)("div", { "data-dropdown-option": true, class: [
|
|
199
219
|
`${clsPrefix}-dropdown-option-body__suffix`,
|
|
200
220
|
siblingHasSubmenu &&
|
|
@@ -207,7 +227,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
207
227
|
default: () => [
|
|
208
228
|
(0, vue_1.h)(vueuc_1.VTarget, null, {
|
|
209
229
|
default: () => ((0, vue_1.h)("div", { class: `${clsPrefix}-dropdown-offset-container` },
|
|
210
|
-
(0, vue_1.h)(vueuc_1.VFollower, { show: this.mergedShowSubmenu, placement: this.placement,
|
|
230
|
+
(0, vue_1.h)(vueuc_1.VFollower, { show: this.mergedShowSubmenu, placement: this.placement, to: scrollable
|
|
231
|
+
? this.popoverBody || undefined
|
|
232
|
+
: undefined, teleportDisabled: !scrollable }, {
|
|
211
233
|
default: () => {
|
|
212
234
|
return ((0, vue_1.h)("div", { class: `${clsPrefix}-dropdown-menu-wrapper` }, animated ? ((0, vue_1.h)(vue_1.Transition, { onBeforeEnter: this.handleSubmenuBeforeEnter, onAfterEnter: this.handleSubmenuAfterEnter, name: "fade-in-scale-up-transition", appear: true }, {
|
|
213
235
|
default: () => submenuVNode
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TreeNode } from 'treemate';
|
|
2
|
-
import { VNode, VNodeChild } from 'vue';
|
|
2
|
+
import { HTMLAttributes, VNode, VNodeChild } from 'vue';
|
|
3
3
|
import type { MenuOption, MenuGroupOption, MenuDividerOption, MenuIgnoredOption, MenuRenderOption, MenuNodeProps } from '../../menu/src/interface';
|
|
4
4
|
export declare type Key = string | number;
|
|
5
5
|
export declare type DropdownOption = MenuOption;
|
|
@@ -27,3 +27,4 @@ export declare type RenderOptionImpl = (info: {
|
|
|
27
27
|
option: DropdownOption | DropdownGroupOption;
|
|
28
28
|
}) => VNodeChild;
|
|
29
29
|
export declare type NodeProps = MenuNodeProps;
|
|
30
|
+
export declare type DropdownMenuProps = (option: DropdownOption | undefined, options: Array<DropdownOption | DropdownGroupOption>) => HTMLAttributes & Record<string, string | number | undefined>;
|
|
@@ -33,8 +33,7 @@ const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-sc
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
exports.default = (0, cssr_1.cB)('dropdown-menu', `
|
|
36
|
-
transform-origin:
|
|
37
|
-
padding: var(--n-padding);
|
|
36
|
+
transform-origin: var(--v-transform-origin);
|
|
38
37
|
background-color: var(--n-color);
|
|
39
38
|
border-radius: var(--n-border-radius);
|
|
40
39
|
box-shadow: var(--n-box-shadow);
|
|
@@ -73,7 +72,7 @@ exports.default = (0, cssr_1.cB)('dropdown-menu', `
|
|
|
73
72
|
right: 4px;
|
|
74
73
|
transition: background-color .3s var(--n-bezier);
|
|
75
74
|
border-radius: var(--n-border-radius);
|
|
76
|
-
`), (0, cssr_1.cM)('pending', {
|
|
75
|
+
`), (0, cssr_1.cNotM)('disabled', [(0, cssr_1.cM)('pending', {
|
|
77
76
|
color: 'var(--n-option-text-color-hover)'
|
|
78
77
|
}, [(0, cssr_1.cE)('prefix, suffix', {
|
|
79
78
|
color: 'var(--n-option-text-color-hover)'
|
|
@@ -81,14 +80,14 @@ exports.default = (0, cssr_1.cB)('dropdown-menu', `
|
|
|
81
80
|
color: 'var(--n-option-text-color-active)'
|
|
82
81
|
}, [(0, cssr_1.cE)('prefix, suffix', {
|
|
83
82
|
color: 'var(--n-option-text-color-active)'
|
|
84
|
-
}), (0, cssr_1.c)('&::before', 'background-color: var(--n-option-color-active);')]), (0, cssr_1.cM)('
|
|
85
|
-
cursor: 'not-allowed',
|
|
86
|
-
opacity: 'var(--n-option-opacity-disabled)'
|
|
87
|
-
}), (0, cssr_1.cM)('child-active', {
|
|
83
|
+
}), (0, cssr_1.c)('&::before', 'background-color: var(--n-option-color-active);')]), (0, cssr_1.cM)('child-active', {
|
|
88
84
|
color: 'var(--n-option-text-color-child-active)'
|
|
89
85
|
}, [(0, cssr_1.cE)('prefix, suffix', {
|
|
90
86
|
color: 'var(--n-option-text-color-child-active)'
|
|
91
|
-
})]), (0, cssr_1.cM)('
|
|
87
|
+
})])]), (0, cssr_1.cM)('disabled', {
|
|
88
|
+
cursor: 'not-allowed',
|
|
89
|
+
opacity: 'var(--n-option-opacity-disabled)'
|
|
90
|
+
}), (0, cssr_1.cM)('group', {
|
|
92
91
|
fontSize: 'calc(var(--n-font-size) - 1px)',
|
|
93
92
|
color: 'var(--n-group-header-text-color)'
|
|
94
93
|
}, [(0, cssr_1.cE)('prefix', {
|
|
@@ -138,6 +137,13 @@ exports.default = (0, cssr_1.cB)('dropdown-menu', `
|
|
|
138
137
|
height: 1px;
|
|
139
138
|
margin: 4px 0;
|
|
140
139
|
`), (0, cssr_1.cB)('dropdown-menu-wrapper', `
|
|
141
|
-
transform-origin:
|
|
140
|
+
transform-origin: var(--v-transform-origin);
|
|
142
141
|
width: fit-content;
|
|
143
|
-
`)
|
|
142
|
+
`), (0, cssr_1.c)('>', [(0, cssr_1.cB)('scrollbar', `
|
|
143
|
+
height: inherit;
|
|
144
|
+
max-height: inherit;
|
|
145
|
+
`)]), (0, cssr_1.cNotM)('scrollable', `
|
|
146
|
+
padding: var(--n-padding);
|
|
147
|
+
`), (0, cssr_1.cM)('scrollable', [(0, cssr_1.cE)('content', `
|
|
148
|
+
padding: var(--n-padding);
|
|
149
|
+
`)])]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as NDynamicInput } from './src/DynamicInput';
|
|
1
|
+
export { default as NDynamicInput, dynamicInputProps } from './src/DynamicInput';
|
|
2
2
|
export type { DynamicInputProps } from './src/DynamicInput';
|
|
@@ -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.NDynamicInput = void 0;
|
|
6
|
+
exports.dynamicInputProps = exports.NDynamicInput = void 0;
|
|
7
7
|
var DynamicInput_1 = require("./src/DynamicInput");
|
|
8
8
|
Object.defineProperty(exports, "NDynamicInput", { enumerable: true, get: function () { return __importDefault(DynamicInput_1).default; } });
|
|
9
|
+
Object.defineProperty(exports, "dynamicInputProps", { enumerable: true, get: function () { return DynamicInput_1.dynamicInputProps; } });
|
|
@@ -2,7 +2,7 @@ import { PropType, CSSProperties } from 'vue';
|
|
|
2
2
|
import type { ButtonProps } from '../../button';
|
|
3
3
|
import type { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
|
|
4
4
|
import type { OnUpdateValue } from './interface';
|
|
5
|
-
declare const dynamicInputProps: {
|
|
5
|
+
export declare const dynamicInputProps: {
|
|
6
6
|
readonly max: NumberConstructor;
|
|
7
7
|
readonly min: {
|
|
8
8
|
readonly type: NumberConstructor;
|