naive-ui 2.43.2 → 2.44.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/dist/index.js +790 -414
- package/dist/index.mjs +790 -414
- package/dist/index.prod.js +1 -1
- package/dist/index.prod.mjs +1 -1
- package/es/_internal/index.d.ts +1 -1
- package/es/_internal/loading/index.d.ts +1 -1
- package/es/_internal/loading/src/Loading.d.ts +26 -18
- package/es/_internal/loading/src/Loading.mjs +9 -9
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +8 -3
- package/es/_internal/scrollbar/src/Scrollbar.mjs +6 -2
- package/es/_internal/select-menu/src/SelectMenu.d.ts +5 -1
- package/es/_internal/select-menu/src/SelectMenu.mjs +18 -8
- package/es/_mixins/use-form-item.d.ts +1 -2
- package/es/auto-complete/src/AutoComplete.d.ts +4 -0
- package/es/auto-complete/src/AutoComplete.mjs +3 -1
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +13 -0
- package/es/breadcrumb/src/BreadcrumbItem.mjs +5 -1
- package/es/button/index.d.ts +1 -0
- package/es/button/src/Button.d.ts +11 -8
- package/es/button/src/Button.mjs +14 -11
- package/es/button/src/public-types.d.ts +4 -0
- package/es/button-group/src/ButtonGroup.d.ts +5 -15
- package/es/button-group/src/ButtonGroup.mjs +1 -4
- package/es/card/index.d.ts +1 -0
- package/es/card/src/Card.d.ts +11 -18
- package/es/card/src/Card.mjs +25 -17
- package/es/card/src/public-types.d.ts +1 -0
- package/es/card/src/styles/index.cssr.mjs +44 -21
- package/es/carousel/src/Carousel.d.ts +1 -1
- package/es/carousel/src/CarouselDots.d.ts +1 -1
- package/es/cascader/index.d.ts +1 -0
- package/es/cascader/src/Cascader.d.ts +8 -1
- package/es/cascader/src/Cascader.mjs +4 -0
- package/es/cascader/src/CascaderMenu.d.ts +1 -0
- package/es/cascader/src/CascaderMenu.mjs +16 -5
- package/es/cascader/src/CascaderOption.d.ts +1 -0
- package/es/cascader/src/CascaderOption.mjs +4 -2
- package/es/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/es/cascader/src/CascaderSelectMenu.mjs +5 -2
- package/es/cascader/src/interface.d.ts +4 -0
- package/es/cascader/src/public-types.d.ts +2 -0
- package/es/cascader/src/public-types.mjs +1 -0
- package/es/checkbox/index.d.ts +1 -0
- package/es/checkbox/src/Checkbox.d.ts +4 -3
- package/es/checkbox/src/Checkbox.mjs +5 -1
- package/es/checkbox/src/public-types.d.ts +1 -0
- package/es/checkbox/src/public-types.mjs +1 -0
- package/es/color-picker/src/ColorPicker.d.ts +7 -2
- package/es/color-picker/src/ColorPicker.mjs +34 -17
- package/es/color-picker/src/ColorPickerTrigger.mjs +3 -3
- package/es/color-picker/src/styles/index.cssr.mjs +11 -14
- package/es/config-provider/src/internal-interface.d.ts +95 -5
- package/es/countdown/src/Countdown.d.ts +1 -1
- package/es/data-table/index.d.ts +1 -1
- package/es/data-table/index.mjs +1 -2
- package/es/data-table/src/DataTable.d.ts +9 -16
- package/es/data-table/src/DataTable.mjs +30 -20
- package/es/data-table/src/MainTable.d.ts +1 -0
- package/es/data-table/src/MainTable.mjs +4 -2
- package/es/data-table/src/TableParts/Body.d.ts +4 -3
- package/es/data-table/src/TableParts/Body.mjs +46 -54
- package/es/data-table/src/interface.d.ts +5 -7
- package/es/data-table/src/interface.mjs +1 -4
- package/{lib/data-table/src/publicTypes.d.ts → es/data-table/src/public-types.d.ts} +3 -0
- package/es/data-table/src/public-types.mjs +1 -0
- package/es/data-table/src/use-scroll.d.ts +5 -1
- package/es/data-table/src/use-scroll.mjs +16 -4
- package/es/data-table/src/utils.d.ts +1 -1
- package/es/date-picker/src/DatePicker.d.ts +6 -0
- package/es/date-picker/src/DatePicker.mjs +2 -0
- package/es/date-picker/src/panel/date.d.ts +10 -0
- package/es/date-picker/src/panel/date.mjs +2 -0
- package/es/date-picker/src/panel/daterange.d.ts +10 -0
- package/es/date-picker/src/panel/daterange.mjs +4 -0
- package/es/date-picker/src/panel/datetime.d.ts +10 -0
- package/es/date-picker/src/panel/datetime.mjs +2 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +10 -0
- package/es/date-picker/src/panel/datetimerange.mjs +4 -0
- package/es/date-picker/src/panel/month.d.ts +10 -0
- package/es/date-picker/src/panel/month.mjs +6 -0
- package/es/date-picker/src/panel/monthrange.d.ts +10 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +34 -1
- package/es/date-picker/src/panel/panelHeader.mjs +21 -2
- package/es/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +4 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +4 -0
- package/es/date-picker/src/panel/use-panel-common.mjs +4 -0
- package/es/date-picker/src/props.d.ts +2 -0
- package/es/date-picker/src/props.mjs +2 -0
- package/es/descriptions/index.d.ts +1 -0
- package/es/descriptions/src/Descriptions.d.ts +5 -13
- package/es/descriptions/src/Descriptions.mjs +16 -14
- package/es/descriptions/src/public-types.d.ts +1 -0
- package/es/descriptions/src/public-types.mjs +1 -0
- package/es/dialog/src/DialogProvider.d.ts +40 -16
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/dropdown/index.d.ts +1 -0
- package/es/dropdown/src/Dropdown.d.ts +8 -17
- package/es/dropdown/src/Dropdown.mjs +9 -7
- package/es/dropdown/src/DropdownMenu.d.ts +1 -1
- package/es/dropdown/src/DropdownOption.d.ts +1 -1
- package/es/dropdown/src/public-types.d.ts +1 -0
- package/es/dropdown/src/public-types.mjs +1 -0
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/es/dynamic-tags/index.d.ts +1 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +5 -13
- package/es/dynamic-tags/src/DynamicTags.mjs +11 -8
- package/es/dynamic-tags/src/public-types.d.ts +1 -0
- package/es/dynamic-tags/src/public-types.mjs +1 -0
- package/es/float-button/src/FloatButton.d.ts +1 -1
- package/es/form/src/Form.d.ts +5 -4
- package/es/form/src/Form.mjs +11 -1
- package/es/form/src/FormItem.d.ts +5 -4
- package/es/form/src/FormItem.mjs +16 -13
- package/es/form/src/FormItemCol.d.ts +3 -1
- package/es/form/src/FormItemGridItem.d.ts +6 -3
- package/es/form/src/FormItemGridItem.mjs +1 -0
- package/es/form/src/FormItemRow.d.ts +2 -0
- package/es/form/src/interface.d.ts +8 -2
- package/es/form/src/public-types.d.ts +2 -0
- package/es/form/src/utils.d.ts +3 -2
- package/es/form/src/utils.mjs +7 -0
- package/es/input/index.d.ts +1 -0
- package/es/input/src/Input.d.ts +5 -4
- package/es/input/src/InputGroupLabel.d.ts +4 -4
- package/es/input/src/InputGroupLabel.mjs +16 -10
- package/es/input/src/interface.d.ts +0 -1
- package/es/input/src/public-types.d.ts +1 -0
- package/es/input/src/public-types.mjs +1 -0
- package/es/legacy-transfer/src/TransferList.d.ts +1 -0
- package/es/legacy-transfer/src/TransferList.mjs +17 -5
- package/es/log/index.d.ts +1 -0
- package/es/log/src/Log.d.ts +4 -0
- package/es/log/src/Log.mjs +3 -1
- package/es/log/src/LogLoader.d.ts +4 -0
- package/es/log/src/LogLoader.mjs +4 -3
- package/es/log/src/public-types.d.ts +2 -0
- package/es/log/src/public-types.mjs +1 -0
- package/es/marquee/src/Marquee.mjs +5 -3
- package/es/mention/src/Mention.d.ts +5 -1
- package/es/mention/src/Mention.mjs +3 -1
- package/es/menu/src/MenuOptionContent.d.ts +1 -1
- package/es/message/index.d.ts +1 -0
- package/es/message/src/Message.d.ts +3 -0
- package/es/message/src/Message.mjs +4 -4
- package/es/message/src/MessageEnvironment.d.ts +2 -0
- package/es/message/src/MessageEnvironment.mjs +1 -0
- package/es/message/src/MessageProvider.d.ts +1 -1
- package/es/message/src/message-props.d.ts +2 -0
- package/es/message/src/message-props.mjs +1 -0
- package/es/message/src/public-types.d.ts +2 -0
- package/es/message/src/public-types.mjs +1 -0
- package/es/message/src/types.d.ts +2 -0
- package/es/modal/src/BodyWrapper.d.ts +5 -9
- package/es/modal/src/Modal.d.ts +7 -13
- package/es/modal/src/ModalEnvironment.d.ts +5 -9
- package/es/modal/src/composables.mjs +31 -4
- package/es/modal/src/presetProps.d.ts +3 -5
- package/es/notification/src/NotificationProvider.d.ts +3 -3
- package/es/number-animation/src/NumberAnimation.d.ts +2 -2
- package/es/pagination/index.d.ts +1 -0
- package/es/pagination/src/Pagination.d.ts +11 -16
- package/es/pagination/src/Pagination.mjs +12 -13
- package/es/pagination/src/interface.d.ts +0 -1
- package/es/pagination/src/public-types.d.ts +1 -0
- package/es/pagination/src/public-types.mjs +1 -0
- package/es/popconfirm/src/Popconfirm.d.ts +4 -4
- package/es/popover/src/Popover.d.ts +4 -4
- package/es/popover/src/PopoverBody.d.ts +1 -1
- package/es/popselect/index.d.ts +1 -0
- package/es/popselect/src/Popselect.d.ts +41 -47
- package/es/popselect/src/Popselect.mjs +4 -2
- package/es/popselect/src/PopselectPanel.d.ts +8 -16
- package/es/popselect/src/PopselectPanel.mjs +12 -7
- package/es/popselect/src/interface.d.ts +0 -1
- package/es/popselect/src/public-types.d.ts +1 -0
- package/es/popselect/src/public-types.mjs +1 -0
- package/es/radio/index.d.ts +1 -0
- package/es/radio/src/Radio.d.ts +3 -3
- package/es/radio/src/RadioButton.d.ts +3 -3
- package/es/radio/src/public-types.d.ts +1 -0
- package/es/radio/src/public-types.mjs +1 -0
- package/es/radio/src/use-radio.d.ts +4 -3
- package/es/radio/src/use-radio.mjs +8 -1
- package/es/rate/index.d.ts +1 -0
- package/es/rate/src/Rate.d.ts +4 -13
- package/es/rate/src/Rate.mjs +19 -9
- package/es/rate/src/public-types.d.ts +1 -0
- package/es/rate/src/public-types.mjs +1 -0
- package/es/result/index.d.ts +1 -0
- package/es/result/src/Result.d.ts +4 -13
- package/es/result/src/Result.mjs +9 -7
- package/es/result/src/public-types.d.ts +1 -0
- package/es/result/src/public-types.mjs +1 -0
- package/es/select/index.d.ts +1 -0
- package/es/select/src/Select.d.ts +25 -8
- package/es/select/src/Select.mjs +14 -2
- package/es/select/src/interface.d.ts +0 -1
- package/es/select/src/public-types.d.ts +1 -0
- package/es/select/src/public-types.mjs +1 -0
- package/es/skeleton/index.d.ts +1 -0
- package/es/skeleton/src/Skeleton.d.ts +4 -3
- package/es/skeleton/src/Skeleton.mjs +9 -4
- package/es/skeleton/src/public-types.d.ts +1 -0
- package/es/skeleton/src/public-types.mjs +1 -0
- package/es/space/index.d.ts +1 -0
- package/es/space/src/Space.d.ts +4 -13
- package/es/space/src/Space.mjs +8 -8
- package/es/space/src/public-types.d.ts +1 -0
- package/es/space/src/public-types.mjs +1 -0
- package/es/spin/src/Spin.d.ts +52 -6
- package/es/spin/src/Spin.mjs +5 -4
- package/es/switch/index.d.ts +1 -0
- package/es/switch/src/Switch.d.ts +7 -14
- package/es/switch/src/Switch.mjs +18 -8
- package/es/switch/src/public-types.d.ts +3 -0
- package/es/switch/src/public-types.mjs +1 -0
- package/es/table/index.d.ts +1 -0
- package/es/table/src/Table.d.ts +4 -13
- package/es/table/src/Table.mjs +9 -9
- package/es/table/src/public-types.d.ts +1 -0
- package/es/table/src/public-types.mjs +1 -0
- package/es/tabs/index.d.ts +1 -0
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/Tabs.d.ts +9 -18
- package/es/tabs/src/Tabs.mjs +13 -8
- package/es/tabs/src/public-types.d.ts +1 -0
- package/es/tabs/src/public-types.mjs +1 -0
- package/es/tag/index.d.ts +1 -0
- package/es/tag/src/Tag.d.ts +4 -4
- package/es/tag/src/Tag.mjs +8 -4
- package/es/tag/src/common-props.d.ts +2 -1
- package/es/tag/src/public-types.d.ts +1 -0
- package/es/tag/src/public-types.mjs +1 -0
- package/es/time-picker/index.d.ts +1 -0
- package/es/time-picker/src/TimePicker.d.ts +5 -4
- package/es/time-picker/src/interface.d.ts +0 -1
- package/es/time-picker/src/public-types.d.ts +1 -0
- package/es/time-picker/src/public-types.mjs +1 -0
- package/es/tooltip/src/Tooltip.d.ts +4 -4
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/transfer/src/TransferList.mjs +12 -2
- package/es/tree/index.d.ts +1 -0
- package/es/tree/src/Tree.d.ts +5 -0
- package/es/tree/src/Tree.mjs +25 -11
- package/es/tree/src/TreeNodeSwitcher.mjs +4 -3
- package/es/tree/src/interface.d.ts +2 -0
- package/es/tree/src/public-types.d.ts +2 -0
- package/es/tree/src/public-types.mjs +1 -0
- package/es/tree-select/src/TreeSelect.d.ts +5 -0
- package/es/tree-select/src/TreeSelect.mjs +16 -5
- package/es/upload/src/Upload.d.ts +4 -1
- package/es/upload/src/Upload.mjs +5 -2
- package/es/upload/src/UploadFile.mjs +3 -1
- package/es/upload/src/interface.d.ts +4 -1
- package/es/upload/src/public-types.d.ts +4 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/virtual-list/src/VirtualList.d.ts +1 -1
- package/es/watermark/src/Watermark.d.ts +2 -2
- package/lib/_internal/index.d.ts +1 -1
- package/lib/_internal/loading/index.d.ts +1 -1
- package/lib/_internal/loading/src/Loading.d.ts +26 -18
- package/lib/_internal/loading/src/Loading.js +11 -8
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +8 -3
- package/lib/_internal/scrollbar/src/Scrollbar.js +8 -3
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +5 -1
- package/lib/_internal/select-menu/src/SelectMenu.js +14 -7
- package/lib/_mixins/use-form-item.d.ts +1 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +4 -0
- package/lib/auto-complete/src/AutoComplete.js +2 -2
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +13 -0
- package/lib/breadcrumb/src/BreadcrumbItem.js +6 -2
- package/lib/button/index.d.ts +1 -0
- package/lib/button/src/Button.d.ts +11 -8
- package/lib/button/src/Button.js +8 -5
- package/lib/button/src/public-types.d.ts +4 -0
- package/lib/button-group/src/ButtonGroup.d.ts +5 -15
- package/lib/button-group/src/ButtonGroup.js +1 -4
- package/lib/card/index.d.ts +1 -0
- package/lib/card/src/Card.d.ts +11 -18
- package/lib/card/src/Card.js +17 -10
- package/lib/card/src/public-types.d.ts +1 -0
- package/lib/card/src/styles/index.cssr.js +44 -21
- package/lib/carousel/src/Carousel.d.ts +1 -1
- package/lib/carousel/src/CarouselDots.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -0
- package/lib/cascader/src/Cascader.d.ts +8 -1
- package/lib/cascader/src/Cascader.js +3 -1
- package/lib/cascader/src/CascaderMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderMenu.js +12 -4
- package/lib/cascader/src/CascaderOption.d.ts +1 -0
- package/lib/cascader/src/CascaderOption.js +3 -2
- package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderSelectMenu.js +3 -3
- package/lib/cascader/src/interface.d.ts +4 -0
- package/lib/cascader/src/public-types.d.ts +2 -0
- package/lib/cascader/src/public-types.js +2 -0
- package/lib/checkbox/index.d.ts +1 -0
- package/lib/checkbox/src/Checkbox.d.ts +4 -3
- package/lib/checkbox/src/Checkbox.js +5 -1
- package/lib/checkbox/src/public-types.d.ts +1 -0
- package/lib/checkbox/src/public-types.js +2 -0
- package/lib/color-picker/src/ColorPicker.d.ts +7 -2
- package/lib/color-picker/src/ColorPicker.js +46 -26
- package/lib/color-picker/src/ColorPickerTrigger.js +4 -4
- package/lib/color-picker/src/styles/index.cssr.js +11 -14
- package/lib/config-provider/src/internal-interface.d.ts +95 -5
- package/lib/countdown/src/Countdown.d.ts +1 -1
- package/lib/data-table/index.d.ts +1 -1
- package/lib/data-table/index.js +0 -15
- package/lib/data-table/src/DataTable.d.ts +9 -16
- package/lib/data-table/src/DataTable.js +22 -11
- package/lib/data-table/src/MainTable.d.ts +1 -0
- package/lib/data-table/src/MainTable.js +2 -2
- package/lib/data-table/src/TableParts/Body.d.ts +4 -3
- package/lib/data-table/src/TableParts/Body.js +56 -59
- package/lib/data-table/src/interface.d.ts +5 -7
- package/lib/data-table/src/interface.js +1 -1
- package/{es/data-table/src/publicTypes.d.ts → lib/data-table/src/public-types.d.ts} +3 -0
- package/lib/data-table/src/public-types.js +2 -0
- package/lib/data-table/src/use-scroll.d.ts +5 -1
- package/lib/data-table/src/use-scroll.js +16 -5
- package/lib/data-table/src/utils.d.ts +1 -1
- package/lib/date-picker/src/DatePicker.d.ts +6 -0
- package/lib/date-picker/src/DatePicker.js +2 -0
- package/lib/date-picker/src/panel/date.d.ts +10 -0
- package/lib/date-picker/src/panel/date.js +1 -1
- package/lib/date-picker/src/panel/daterange.d.ts +10 -0
- package/lib/date-picker/src/panel/daterange.js +2 -2
- package/lib/date-picker/src/panel/datetime.d.ts +10 -0
- package/lib/date-picker/src/panel/datetime.js +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +10 -0
- package/lib/date-picker/src/panel/datetimerange.js +2 -2
- package/lib/date-picker/src/panel/month.d.ts +10 -0
- package/lib/date-picker/src/panel/month.js +7 -0
- package/lib/date-picker/src/panel/monthrange.d.ts +10 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +34 -1
- package/lib/date-picker/src/panel/panelHeader.js +20 -3
- package/lib/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +4 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +4 -0
- package/lib/date-picker/src/panel/use-panel-common.js +4 -0
- package/lib/date-picker/src/props.d.ts +2 -0
- package/lib/date-picker/src/props.js +1 -1
- package/lib/descriptions/index.d.ts +1 -0
- package/lib/descriptions/src/Descriptions.d.ts +5 -13
- package/lib/descriptions/src/Descriptions.js +17 -12
- package/lib/descriptions/src/public-types.d.ts +1 -0
- package/lib/descriptions/src/public-types.js +2 -0
- package/lib/dialog/src/DialogProvider.d.ts +40 -16
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/dropdown/index.d.ts +1 -0
- package/lib/dropdown/src/Dropdown.d.ts +8 -17
- package/lib/dropdown/src/Dropdown.js +9 -7
- package/lib/dropdown/src/DropdownMenu.d.ts +1 -1
- package/lib/dropdown/src/DropdownOption.d.ts +1 -1
- package/lib/dropdown/src/public-types.d.ts +1 -0
- package/lib/dropdown/src/public-types.js +2 -0
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/lib/dynamic-tags/index.d.ts +1 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +5 -13
- package/lib/dynamic-tags/src/DynamicTags.js +12 -8
- package/lib/dynamic-tags/src/public-types.d.ts +1 -0
- package/lib/dynamic-tags/src/public-types.js +2 -0
- package/lib/float-button/src/FloatButton.d.ts +1 -1
- package/lib/form/src/Form.d.ts +5 -4
- package/lib/form/src/Form.js +11 -1
- package/lib/form/src/FormItem.d.ts +5 -4
- package/lib/form/src/FormItem.js +17 -14
- package/lib/form/src/FormItemCol.d.ts +3 -1
- package/lib/form/src/FormItemGridItem.d.ts +6 -3
- package/lib/form/src/FormItemGridItem.js +1 -0
- package/lib/form/src/FormItemRow.d.ts +2 -0
- package/lib/form/src/interface.d.ts +8 -2
- package/lib/form/src/public-types.d.ts +2 -0
- package/lib/form/src/utils.d.ts +3 -2
- package/lib/form/src/utils.js +6 -0
- package/lib/input/index.d.ts +1 -0
- package/lib/input/src/Input.d.ts +5 -4
- package/lib/input/src/InputGroupLabel.d.ts +4 -4
- package/lib/input/src/InputGroupLabel.js +16 -7
- package/lib/input/src/interface.d.ts +0 -1
- package/lib/input/src/public-types.d.ts +1 -0
- package/lib/input/src/public-types.js +2 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferList.js +13 -1
- package/lib/log/index.d.ts +1 -0
- package/lib/log/src/Log.d.ts +4 -0
- package/lib/log/src/Log.js +2 -2
- package/lib/log/src/LogLoader.d.ts +4 -0
- package/lib/log/src/LogLoader.js +3 -2
- package/lib/log/src/public-types.d.ts +2 -0
- package/lib/log/src/public-types.js +2 -0
- package/lib/marquee/src/Marquee.js +3 -2
- package/lib/mention/src/Mention.d.ts +5 -1
- package/lib/mention/src/Mention.js +2 -2
- package/lib/menu/src/MenuOptionContent.d.ts +1 -1
- package/lib/message/index.d.ts +1 -0
- package/lib/message/src/Message.d.ts +3 -0
- package/lib/message/src/Message.js +3 -4
- package/lib/message/src/MessageEnvironment.d.ts +2 -0
- package/lib/message/src/MessageEnvironment.js +1 -1
- package/lib/message/src/MessageProvider.d.ts +1 -1
- package/lib/message/src/message-props.d.ts +2 -0
- package/lib/message/src/message-props.js +1 -0
- package/lib/message/src/public-types.d.ts +2 -0
- package/lib/message/src/public-types.js +2 -0
- package/lib/message/src/types.d.ts +2 -0
- package/lib/modal/src/BodyWrapper.d.ts +5 -9
- package/lib/modal/src/Modal.d.ts +7 -13
- package/lib/modal/src/ModalEnvironment.d.ts +5 -9
- package/lib/modal/src/composables.js +28 -4
- package/lib/modal/src/presetProps.d.ts +3 -5
- package/lib/notification/src/NotificationProvider.d.ts +3 -3
- package/lib/number-animation/src/NumberAnimation.d.ts +2 -2
- package/lib/pagination/index.d.ts +1 -0
- package/lib/pagination/src/Pagination.d.ts +11 -16
- package/lib/pagination/src/Pagination.js +14 -12
- package/lib/pagination/src/interface.d.ts +0 -1
- package/lib/pagination/src/public-types.d.ts +1 -0
- package/lib/pagination/src/public-types.js +2 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +4 -4
- package/lib/popover/src/Popover.d.ts +4 -4
- package/lib/popover/src/PopoverBody.d.ts +1 -1
- package/lib/popselect/index.d.ts +1 -0
- package/lib/popselect/src/Popselect.d.ts +41 -47
- package/lib/popselect/src/Popselect.js +2 -2
- package/lib/popselect/src/PopselectPanel.d.ts +8 -16
- package/lib/popselect/src/PopselectPanel.js +12 -7
- package/lib/popselect/src/interface.d.ts +0 -1
- package/lib/popselect/src/public-types.d.ts +1 -0
- package/lib/popselect/src/public-types.js +2 -0
- package/lib/radio/index.d.ts +1 -0
- package/lib/radio/src/Radio.d.ts +3 -3
- package/lib/radio/src/RadioButton.d.ts +3 -3
- package/lib/radio/src/public-types.d.ts +1 -0
- package/lib/radio/src/public-types.js +2 -0
- package/lib/radio/src/use-radio.d.ts +4 -3
- package/lib/radio/src/use-radio.js +6 -1
- package/lib/rate/index.d.ts +1 -0
- package/lib/rate/src/Rate.d.ts +4 -13
- package/lib/rate/src/Rate.js +18 -7
- package/lib/rate/src/public-types.d.ts +1 -0
- package/lib/rate/src/public-types.js +2 -0
- package/lib/result/index.d.ts +1 -0
- package/lib/result/src/Result.d.ts +4 -13
- package/lib/result/src/Result.js +10 -7
- package/lib/result/src/public-types.d.ts +1 -0
- package/lib/result/src/public-types.js +2 -0
- package/lib/select/index.d.ts +1 -0
- package/lib/select/src/Select.d.ts +25 -8
- package/lib/select/src/Select.js +10 -4
- package/lib/select/src/interface.d.ts +0 -1
- package/lib/select/src/public-types.d.ts +1 -0
- package/lib/select/src/public-types.js +2 -0
- package/lib/skeleton/index.d.ts +1 -0
- package/lib/skeleton/src/Skeleton.d.ts +4 -3
- package/lib/skeleton/src/Skeleton.js +9 -4
- package/lib/skeleton/src/public-types.d.ts +1 -0
- package/lib/skeleton/src/public-types.js +2 -0
- package/lib/space/index.d.ts +1 -0
- package/lib/space/src/Space.d.ts +4 -13
- package/lib/space/src/Space.js +7 -6
- package/lib/space/src/public-types.d.ts +1 -0
- package/lib/space/src/public-types.js +2 -0
- package/lib/spin/src/Spin.d.ts +52 -6
- package/lib/spin/src/Spin.js +5 -4
- package/lib/switch/index.d.ts +1 -0
- package/lib/switch/src/Switch.d.ts +7 -14
- package/lib/switch/src/Switch.js +18 -8
- package/lib/switch/src/public-types.d.ts +3 -0
- package/lib/switch/src/public-types.js +2 -0
- package/lib/table/index.d.ts +1 -0
- package/lib/table/src/Table.d.ts +4 -13
- package/lib/table/src/Table.js +8 -7
- package/lib/table/src/public-types.d.ts +1 -0
- package/lib/table/src/public-types.js +2 -0
- package/lib/tabs/index.d.ts +1 -0
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/Tabs.d.ts +9 -18
- package/lib/tabs/src/Tabs.js +14 -8
- package/lib/tabs/src/public-types.d.ts +1 -0
- package/lib/tabs/src/public-types.js +2 -0
- package/lib/tag/index.d.ts +1 -0
- package/lib/tag/src/Tag.d.ts +4 -4
- package/lib/tag/src/Tag.js +9 -4
- package/lib/tag/src/common-props.d.ts +2 -1
- package/lib/tag/src/public-types.d.ts +1 -0
- package/lib/tag/src/public-types.js +2 -0
- package/lib/time-picker/index.d.ts +1 -0
- package/lib/time-picker/src/TimePicker.d.ts +5 -4
- package/lib/time-picker/src/interface.d.ts +0 -1
- package/lib/time-picker/src/public-types.d.ts +1 -0
- package/lib/time-picker/src/public-types.js +2 -0
- package/lib/tooltip/src/Tooltip.d.ts +4 -4
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/transfer/src/TransferList.js +9 -1
- package/lib/tree/index.d.ts +1 -0
- package/lib/tree/src/Tree.d.ts +5 -0
- package/lib/tree/src/Tree.js +20 -9
- package/lib/tree/src/TreeNodeSwitcher.js +2 -2
- package/lib/tree/src/interface.d.ts +2 -0
- package/lib/tree/src/public-types.d.ts +2 -0
- package/lib/tree/src/public-types.js +2 -0
- package/lib/tree-select/src/TreeSelect.d.ts +5 -0
- package/lib/tree-select/src/TreeSelect.js +13 -6
- package/lib/upload/src/Upload.d.ts +4 -1
- package/lib/upload/src/Upload.js +2 -2
- package/lib/upload/src/UploadFile.js +1 -1
- package/lib/upload/src/interface.d.ts +4 -1
- package/lib/upload/src/public-types.d.ts +4 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/src/VirtualList.d.ts +1 -1
- package/lib/watermark/src/Watermark.d.ts +2 -2
- package/package.json +5 -3
- package/web-types.json +232 -39
- package/es/button/src/interface.d.ts +0 -2
- package/lib/button/src/interface.d.ts +0 -2
- /package/es/button/src/{interface.mjs → public-types.mjs} +0 -0
- /package/es/{data-table/src/publicTypes.mjs → card/src/public-types.mjs} +0 -0
- /package/lib/button/src/{interface.js → public-types.js} +0 -0
- /package/lib/{data-table/src/publicTypes.js → card/src/public-types.js} +0 -0
package/es/form/src/FormItem.mjs
CHANGED
|
@@ -97,6 +97,7 @@ function wrapValidator(validator, async) {
|
|
|
97
97
|
export default defineComponent({
|
|
98
98
|
name: 'FormItem',
|
|
99
99
|
props: formItemProps,
|
|
100
|
+
slots: Object,
|
|
100
101
|
setup(props) {
|
|
101
102
|
useInjectionInstanceCollection(formItemInstsInjectionKey, 'formItems', toRef(props, 'path'));
|
|
102
103
|
const {
|
|
@@ -124,12 +125,24 @@ export default defineComponent({
|
|
|
124
125
|
} = formItemMiscRefs;
|
|
125
126
|
const renderExplainsRef = ref([]);
|
|
126
127
|
const feedbackIdRef = ref(createId());
|
|
128
|
+
const labelElementRef = ref(null);
|
|
127
129
|
const mergedDisabledRef = NForm ? toRef(NForm.props, 'disabled') : ref(false);
|
|
128
130
|
const themeRef = useTheme('Form', '-form-item', style, formLight, props, mergedClsPrefixRef);
|
|
129
131
|
watch(toRef(props, 'path'), () => {
|
|
130
132
|
if (props.ignorePathChange) return;
|
|
131
133
|
restoreValidation();
|
|
132
134
|
});
|
|
135
|
+
function invalidateLabelWidth() {
|
|
136
|
+
if (!formItemMiscRefs.isAutoLabelWidth.value) return;
|
|
137
|
+
const labelElement = labelElementRef.value;
|
|
138
|
+
if (labelElement !== null) {
|
|
139
|
+
const memoizedWhitespace = labelElement.style.whiteSpace;
|
|
140
|
+
labelElement.style.whiteSpace = 'nowrap';
|
|
141
|
+
labelElement.style.width = '';
|
|
142
|
+
NForm === null || NForm === void 0 ? void 0 : NForm.deriveMaxChildLabelWidth(Number(getComputedStyle(labelElement).width.slice(0, -2)));
|
|
143
|
+
labelElement.style.whiteSpace = memoizedWhitespace;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
133
146
|
function restoreValidation() {
|
|
134
147
|
renderExplainsRef.value = [];
|
|
135
148
|
validationErroredRef.value = false;
|
|
@@ -320,20 +333,10 @@ export default defineComponent({
|
|
|
320
333
|
const exposedRef = {
|
|
321
334
|
validate,
|
|
322
335
|
restoreValidation,
|
|
323
|
-
internalValidate
|
|
336
|
+
internalValidate,
|
|
337
|
+
invalidateLabelWidth
|
|
324
338
|
};
|
|
325
|
-
|
|
326
|
-
onMounted(() => {
|
|
327
|
-
if (!formItemMiscRefs.isAutoLabelWidth.value) return;
|
|
328
|
-
const labelElement = labelElementRef.value;
|
|
329
|
-
if (labelElement !== null) {
|
|
330
|
-
const memoizedWhitespace = labelElement.style.whiteSpace;
|
|
331
|
-
labelElement.style.whiteSpace = 'nowrap';
|
|
332
|
-
labelElement.style.width = '';
|
|
333
|
-
NForm === null || NForm === void 0 ? void 0 : NForm.deriveMaxChildLabelWidth(Number(getComputedStyle(labelElement).width.slice(0, -2)));
|
|
334
|
-
labelElement.style.whiteSpace = memoizedWhitespace;
|
|
335
|
-
}
|
|
336
|
-
});
|
|
339
|
+
onMounted(invalidateLabelWidth);
|
|
337
340
|
const cssVarsRef = computed(() => {
|
|
338
341
|
var _a;
|
|
339
342
|
const {
|
|
@@ -146,7 +146,7 @@ export declare const formItemColProps: {
|
|
|
146
146
|
readonly default: 0;
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
|
-
export declare const formItemColPropKeys: ("label" | "push" | "size" | "theme" | "themeOverrides" | "builtinThemeOverrides" | "
|
|
149
|
+
export declare const formItemColPropKeys: ("label" | "push" | "size" | "theme" | "themeOverrides" | "builtinThemeOverrides" | "contentClass" | "contentStyle" | "offset" | "span" | "first" | "labelPlacement" | "labelAlign" | "labelStyle" | "required" | "labelWidth" | "showRequireMark" | "requireMarkPlacement" | "showFeedback" | "showLabel" | "path" | "rulePath" | "rule" | "ignorePathChange" | "validationStatus" | "feedback" | "feedbackClass" | "feedbackStyle" | "labelProps" | "pull")[];
|
|
150
150
|
export type FormItemColProps = ExtractPublicPropTypes<typeof formItemColProps>;
|
|
151
151
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
152
152
|
readonly label: StringConstructor;
|
|
@@ -297,11 +297,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
297
297
|
formItemInstRef: import("vue").Ref<{
|
|
298
298
|
validate: import("./interface").FormItemValidate;
|
|
299
299
|
restoreValidation: () => void;
|
|
300
|
+
invalidateLabelWidth: () => void;
|
|
300
301
|
path?: string | undefined;
|
|
301
302
|
internalValidate: import("./interface").FormItemInternalValidate;
|
|
302
303
|
} | null, FormItemInst | {
|
|
303
304
|
validate: import("./interface").FormItemValidate;
|
|
304
305
|
restoreValidation: () => void;
|
|
306
|
+
invalidateLabelWidth: () => void;
|
|
305
307
|
path?: string | undefined;
|
|
306
308
|
internalValidate: import("./interface").FormItemInternalValidate;
|
|
307
309
|
} | null>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { SlotsType } from 'vue';
|
|
1
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
-
import type { FormItemInst } from './interface';
|
|
3
|
+
import type { FormItemInst, FormItemSlots } from './interface';
|
|
3
4
|
export declare const formItemGiProps: {
|
|
4
5
|
readonly label: StringConstructor;
|
|
5
6
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
@@ -146,7 +147,7 @@ export declare const formItemGiProps: {
|
|
|
146
147
|
readonly default: true;
|
|
147
148
|
};
|
|
148
149
|
};
|
|
149
|
-
export declare const formItemGiPropKeys: ("label" | "size" | "theme" | "themeOverrides" | "builtinThemeOverrides" | "
|
|
150
|
+
export declare const formItemGiPropKeys: ("label" | "size" | "theme" | "themeOverrides" | "builtinThemeOverrides" | "contentClass" | "contentStyle" | "offset" | "span" | "suffix" | "first" | "labelPlacement" | "labelAlign" | "labelStyle" | "required" | "labelWidth" | "showRequireMark" | "requireMarkPlacement" | "showFeedback" | "showLabel" | "path" | "rulePath" | "rule" | "ignorePathChange" | "validationStatus" | "feedback" | "feedbackClass" | "feedbackStyle" | "labelProps" | "privateOffset" | "privateSpan" | "privateColStart" | "privateShow")[];
|
|
150
151
|
export type FormItemGiProps = ExtractPublicPropTypes<typeof formItemGiProps>;
|
|
151
152
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
152
153
|
readonly label: StringConstructor;
|
|
@@ -297,11 +298,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
297
298
|
formItemInstRef: import("vue").Ref<{
|
|
298
299
|
validate: import("./interface").FormItemValidate;
|
|
299
300
|
restoreValidation: () => void;
|
|
301
|
+
invalidateLabelWidth: () => void;
|
|
300
302
|
path?: string | undefined;
|
|
301
303
|
internalValidate: import("./interface").FormItemInternalValidate;
|
|
302
304
|
} | null, FormItemInst | {
|
|
303
305
|
validate: import("./interface").FormItemValidate;
|
|
304
306
|
restoreValidation: () => void;
|
|
307
|
+
invalidateLabelWidth: () => void;
|
|
305
308
|
path?: string | undefined;
|
|
306
309
|
internalValidate: import("./interface").FormItemInternalValidate;
|
|
307
310
|
} | null>;
|
|
@@ -463,5 +466,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
463
466
|
readonly showLabel: boolean | undefined;
|
|
464
467
|
readonly ignorePathChange: boolean;
|
|
465
468
|
readonly privateShow: boolean;
|
|
466
|
-
},
|
|
469
|
+
}, SlotsType<FormItemSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
467
470
|
export default _default;
|
|
@@ -307,11 +307,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
307
307
|
formItemColInstRef: import("vue").Ref<{
|
|
308
308
|
validate: import("./interface").FormItemValidate;
|
|
309
309
|
restoreValidation: () => void;
|
|
310
|
+
invalidateLabelWidth: () => void;
|
|
310
311
|
path?: string | undefined;
|
|
311
312
|
internalValidate: import("./interface").FormItemInternalValidate;
|
|
312
313
|
} | null, import("./interface").FormItemInst | {
|
|
313
314
|
validate: import("./interface").FormItemValidate;
|
|
314
315
|
restoreValidation: () => void;
|
|
316
|
+
invalidateLabelWidth: () => void;
|
|
315
317
|
path?: string | undefined;
|
|
316
318
|
internalValidate: import("./interface").FormItemInternalValidate;
|
|
317
319
|
} | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RuleItem, ValidateError, ValidateMessages, ValidateOption } from 'async-validator';
|
|
2
|
-
import type { Ref, VNodeChild } from 'vue';
|
|
2
|
+
import type { Ref, VNode, VNodeChild } from 'vue';
|
|
3
3
|
import type { FormSetupProps } from './Form';
|
|
4
4
|
export interface FormRules {
|
|
5
5
|
[path: string]: FormRules | FormItemRule | FormItemRule[];
|
|
@@ -36,6 +36,7 @@ export type FormItemValidate = ((options: FormItemValidateOptions) => Promise<{
|
|
|
36
36
|
export interface FormItemInst {
|
|
37
37
|
validate: FormItemValidate;
|
|
38
38
|
restoreValidation: () => void;
|
|
39
|
+
invalidateLabelWidth: () => void;
|
|
39
40
|
path?: string;
|
|
40
41
|
internalValidate: FormItemInternalValidate;
|
|
41
42
|
}
|
|
@@ -48,7 +49,6 @@ export interface FormInjection {
|
|
|
48
49
|
}
|
|
49
50
|
export type LabelAlign = 'left' | 'center' | 'right';
|
|
50
51
|
export type LabelPlacement = 'left' | 'top';
|
|
51
|
-
export type Size = 'small' | 'medium' | 'large';
|
|
52
52
|
export type ValidationTrigger = 'input' | 'change' | 'blur' | 'focus';
|
|
53
53
|
export type ShouldRuleBeApplied = (rule: FormItemRule) => boolean;
|
|
54
54
|
export type ValidateCallback = (errors: ValidateError[] | undefined, extra: {
|
|
@@ -64,7 +64,13 @@ export type FormValidationError = ValidateError[];
|
|
|
64
64
|
export interface FormInst {
|
|
65
65
|
validate: FormValidate;
|
|
66
66
|
restoreValidation: () => void;
|
|
67
|
+
invalidateLabelWidth: () => void;
|
|
67
68
|
}
|
|
68
69
|
export interface FormValidateMessages extends ValidateMessages {
|
|
69
70
|
}
|
|
71
|
+
export interface FormItemSlots {
|
|
72
|
+
default?: () => VNode[];
|
|
73
|
+
feedback?: () => VNode[];
|
|
74
|
+
label?: () => VNode[];
|
|
75
|
+
}
|
|
70
76
|
export {};
|
package/es/form/src/utils.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { ComputedRef } from 'vue';
|
|
2
2
|
import type { FormItemSetupProps } from './FormItem';
|
|
3
|
-
import type { FormItemRule
|
|
3
|
+
import type { FormItemRule } from './interface';
|
|
4
|
+
import type { FormItemSize } from './public-types';
|
|
4
5
|
export declare function formItemSize(props: FormItemSetupProps): {
|
|
5
|
-
mergedSize: ComputedRef<
|
|
6
|
+
mergedSize: ComputedRef<FormItemSize>;
|
|
6
7
|
};
|
|
7
8
|
export declare function formItemMisc(props: FormItemSetupProps): {
|
|
8
9
|
validationErrored: import("vue").Ref<boolean, boolean>;
|
package/es/form/src/utils.mjs
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { get } from 'lodash-es';
|
|
2
2
|
import { computed, inject, ref } from 'vue';
|
|
3
|
+
import { useConfig } from "../../_mixins/index.mjs";
|
|
3
4
|
import { formatLength } from "../../_utils/index.mjs";
|
|
4
5
|
import { formInjectionKey } from "./context.mjs";
|
|
5
6
|
export function formItemSize(props) {
|
|
6
7
|
const NForm = inject(formInjectionKey, null);
|
|
8
|
+
const {
|
|
9
|
+
mergedComponentPropsRef
|
|
10
|
+
} = useConfig(props);
|
|
7
11
|
return {
|
|
8
12
|
mergedSize: computed(() => {
|
|
13
|
+
var _a, _b;
|
|
9
14
|
if (props.size !== undefined) return props.size;
|
|
10
15
|
if ((NForm === null || NForm === void 0 ? void 0 : NForm.props.size) !== undefined) return NForm.props.size;
|
|
16
|
+
const configSize = (_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.Form) === null || _b === void 0 ? void 0 : _b.size;
|
|
17
|
+
if (configSize) return configSize;
|
|
11
18
|
return 'medium';
|
|
12
19
|
})
|
|
13
20
|
};
|
package/es/input/index.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export type { InputGroupProps } from './src/InputGroup';
|
|
|
5
5
|
export { inputGroupLabelProps, default as NInputGroupLabel } from './src/InputGroupLabel';
|
|
6
6
|
export type { InputGroupLabelProps } from './src/InputGroupLabel';
|
|
7
7
|
export type { InputInst } from './src/interface';
|
|
8
|
+
export type * from './src/public-types';
|
package/es/input/src/Input.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import type { InputHTMLAttributes, PropType, SlotsType, TextareaHTMLAttributes,
|
|
|
2
2
|
import type { ScrollbarInst } from '../../_internal';
|
|
3
3
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
4
4
|
import type { FormValidationStatus } from '../../form/src/public-types';
|
|
5
|
-
import type { OnUpdateValue
|
|
5
|
+
import type { OnUpdateValue } from './interface';
|
|
6
|
+
import type { InputSize } from './public-types';
|
|
6
7
|
export declare const inputProps: {
|
|
7
8
|
bordered: {
|
|
8
9
|
type: PropType<boolean | undefined>;
|
|
@@ -22,7 +23,7 @@ export declare const inputProps: {
|
|
|
22
23
|
type: PropType<boolean | undefined>;
|
|
23
24
|
default: undefined;
|
|
24
25
|
};
|
|
25
|
-
size: PropType<
|
|
26
|
+
size: PropType<InputSize>;
|
|
26
27
|
rows: {
|
|
27
28
|
type: PropType<number | string>;
|
|
28
29
|
default: number;
|
|
@@ -355,7 +356,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
355
356
|
type: PropType<boolean | undefined>;
|
|
356
357
|
default: undefined;
|
|
357
358
|
};
|
|
358
|
-
size: PropType<
|
|
359
|
+
size: PropType<InputSize>;
|
|
359
360
|
rows: {
|
|
360
361
|
type: PropType<number | string>;
|
|
361
362
|
default: number;
|
|
@@ -900,7 +901,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
900
901
|
type: PropType<boolean | undefined>;
|
|
901
902
|
default: undefined;
|
|
902
903
|
};
|
|
903
|
-
size: PropType<
|
|
904
|
+
size: PropType<InputSize>;
|
|
904
905
|
rows: {
|
|
905
906
|
type: PropType<number | string>;
|
|
906
907
|
default: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
|
-
import type {
|
|
3
|
+
import type { InputSize } from './public-types';
|
|
4
4
|
export declare const inputGroupLabelProps: {
|
|
5
|
-
readonly size: PropType<
|
|
5
|
+
readonly size: PropType<InputSize>;
|
|
6
6
|
readonly bordered: {
|
|
7
7
|
readonly type: PropType<boolean | undefined>;
|
|
8
8
|
readonly default: undefined;
|
|
@@ -235,7 +235,7 @@ export declare const inputGroupLabelProps: {
|
|
|
235
235
|
};
|
|
236
236
|
export type InputGroupLabelProps = ExtractPublicPropTypes<typeof inputGroupLabelProps>;
|
|
237
237
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
238
|
-
readonly size: PropType<
|
|
238
|
+
readonly size: PropType<InputSize>;
|
|
239
239
|
readonly bordered: {
|
|
240
240
|
readonly type: PropType<boolean | undefined>;
|
|
241
241
|
readonly default: undefined;
|
|
@@ -481,7 +481,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
481
481
|
themeClass: import("vue").Ref<string, string> | undefined;
|
|
482
482
|
onRender: (() => void) | undefined;
|
|
483
483
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
484
|
-
readonly size: PropType<
|
|
484
|
+
readonly size: PropType<InputSize>;
|
|
485
485
|
readonly bordered: {
|
|
486
486
|
readonly type: PropType<boolean | undefined>;
|
|
487
487
|
readonly default: undefined;
|
|
@@ -17,13 +17,24 @@ export default defineComponent({
|
|
|
17
17
|
const {
|
|
18
18
|
mergedBorderedRef,
|
|
19
19
|
mergedClsPrefixRef,
|
|
20
|
-
inlineThemeDisabled
|
|
20
|
+
inlineThemeDisabled,
|
|
21
|
+
mergedComponentPropsRef
|
|
21
22
|
} = useConfig(props);
|
|
22
|
-
const
|
|
23
|
+
const themeRef = useTheme('Input', '-input-group-label', style, inputLight, props, mergedClsPrefixRef);
|
|
23
24
|
const {
|
|
24
25
|
mergedSizeRef
|
|
25
|
-
} =
|
|
26
|
-
|
|
26
|
+
} = useFormItem(props, {
|
|
27
|
+
mergedSize(NFormItem) {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
if (props.size !== undefined) return props.size;
|
|
30
|
+
if (NFormItem) {
|
|
31
|
+
return NFormItem.mergedSize.value;
|
|
32
|
+
}
|
|
33
|
+
const configSize = (_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.Input) === null || _b === void 0 ? void 0 : _b.size;
|
|
34
|
+
if (configSize) return configSize;
|
|
35
|
+
return 'medium';
|
|
36
|
+
}
|
|
37
|
+
});
|
|
27
38
|
const cssVarsRef = computed(() => {
|
|
28
39
|
const {
|
|
29
40
|
value: size
|
|
@@ -53,12 +64,7 @@ export default defineComponent({
|
|
|
53
64
|
'--n-height': height
|
|
54
65
|
};
|
|
55
66
|
});
|
|
56
|
-
const themeClassHandle = inlineThemeDisabled ? useThemeClass('input-group-label', computed(() =>
|
|
57
|
-
const {
|
|
58
|
-
value: size
|
|
59
|
-
} = mergedSizeRef;
|
|
60
|
-
return size[0];
|
|
61
|
-
}), cssVarsRef, props) : undefined;
|
|
67
|
+
const themeClassHandle = inlineThemeDisabled ? useThemeClass('input-group-label', computed(() => mergedSizeRef.value[0]), cssVarsRef, props) : undefined;
|
|
62
68
|
return {
|
|
63
69
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
64
70
|
mergedBordered: mergedBorderedRef,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type InputSize = 'tiny' | 'small' | 'medium' | 'large';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -838,6 +838,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
838
838
|
};
|
|
839
839
|
}>;
|
|
840
840
|
mergedClsPrefix: import("vue").Ref<string, string>;
|
|
841
|
+
mergedRenderEmpty: import("vue").ComputedRef<(() => import("vue").VNodeChild) | undefined>;
|
|
841
842
|
scrollerInstRef: import("vue").Ref<{
|
|
842
843
|
$el: HTMLElement;
|
|
843
844
|
containerRef: HTMLElement | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, Fragment, h, inject, ref, Transition, TransitionGroup } from 'vue';
|
|
1
|
+
import { computed, defineComponent, Fragment, h, inject, ref, Transition, TransitionGroup } from 'vue';
|
|
2
2
|
import { VirtualList } from 'vueuc';
|
|
3
3
|
import { NScrollbar } from "../../_internal/index.mjs";
|
|
4
|
+
import { useConfig } from "../../_mixins/index.mjs";
|
|
4
5
|
import { NEmpty } from "../../empty/index.mjs";
|
|
5
6
|
import { transferInjectionKey } from "./interface.mjs";
|
|
6
7
|
import NTransferListItem from "./TransferListItem.mjs";
|
|
@@ -41,8 +42,15 @@ export default defineComponent({
|
|
|
41
42
|
mergedThemeRef,
|
|
42
43
|
mergedClsPrefixRef
|
|
43
44
|
} = inject(transferInjectionKey);
|
|
45
|
+
const {
|
|
46
|
+
mergedComponentPropsRef
|
|
47
|
+
} = useConfig();
|
|
44
48
|
const scrollerInstRef = ref(null);
|
|
45
49
|
const vlInstRef = ref(null);
|
|
50
|
+
const mergedRenderEmptyRef = computed(() => {
|
|
51
|
+
var _a, _b;
|
|
52
|
+
return (_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.Transfer) === null || _b === void 0 ? void 0 : _b.renderEmpty;
|
|
53
|
+
});
|
|
46
54
|
function syncVLScroller() {
|
|
47
55
|
var _a;
|
|
48
56
|
(_a = scrollerInstRef.value) === null || _a === void 0 ? void 0 : _a.sync();
|
|
@@ -70,6 +78,7 @@ export default defineComponent({
|
|
|
70
78
|
return {
|
|
71
79
|
mergedTheme: mergedThemeRef,
|
|
72
80
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
81
|
+
mergedRenderEmpty: mergedRenderEmptyRef,
|
|
73
82
|
scrollerInstRef,
|
|
74
83
|
vlInstRef,
|
|
75
84
|
syncVLScroller,
|
|
@@ -145,10 +154,13 @@ export default defineComponent({
|
|
|
145
154
|
appear: this.isMounted,
|
|
146
155
|
css: !this.isInputing
|
|
147
156
|
}, {
|
|
148
|
-
default: () =>
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
157
|
+
default: () => {
|
|
158
|
+
var _a;
|
|
159
|
+
return this.options.length ? null : ((_a = this.mergedRenderEmpty) === null || _a === void 0 ? void 0 : _a.call(this)) || h(NEmpty, {
|
|
160
|
+
theme: mergedTheme.peers.Empty,
|
|
161
|
+
themeOverrides: mergedTheme.peerOverrides.Empty
|
|
162
|
+
});
|
|
163
|
+
}
|
|
152
164
|
}));
|
|
153
165
|
}
|
|
154
166
|
});
|
package/es/log/index.d.ts
CHANGED
package/es/log/src/Log.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { PropType, Ref } from 'vue';
|
|
|
2
2
|
import type { ScrollbarInst } from '../../_internal';
|
|
3
3
|
import type { Hljs } from '../../_mixins';
|
|
4
4
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
5
|
+
import type { LogSpinProps } from './public-types';
|
|
5
6
|
export interface LogInjection {
|
|
6
7
|
trimRef: Ref<boolean>;
|
|
7
8
|
languageRef: Ref<string | undefined>;
|
|
@@ -47,6 +48,7 @@ export declare const logProps: {
|
|
|
47
48
|
readonly default: 0;
|
|
48
49
|
};
|
|
49
50
|
readonly hljs: ObjectConstructor;
|
|
51
|
+
readonly spinProps: PropType<LogSpinProps>;
|
|
50
52
|
readonly onReachTop: PropType<() => void>;
|
|
51
53
|
readonly onReachBottom: PropType<() => void>;
|
|
52
54
|
readonly onRequireMore: PropType<(from: "top" | "bottom") => void>;
|
|
@@ -187,6 +189,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
187
189
|
readonly default: 0;
|
|
188
190
|
};
|
|
189
191
|
readonly hljs: ObjectConstructor;
|
|
192
|
+
readonly spinProps: PropType<LogSpinProps>;
|
|
190
193
|
readonly onReachTop: PropType<() => void>;
|
|
191
194
|
readonly onReachBottom: PropType<() => void>;
|
|
192
195
|
readonly onRequireMore: PropType<(from: "top" | "bottom") => void>;
|
|
@@ -424,6 +427,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
424
427
|
readonly default: 0;
|
|
425
428
|
};
|
|
426
429
|
readonly hljs: ObjectConstructor;
|
|
430
|
+
readonly spinProps: PropType<LogSpinProps>;
|
|
427
431
|
readonly onReachTop: PropType<() => void>;
|
|
428
432
|
readonly onReachBottom: PropType<() => void>;
|
|
429
433
|
readonly onRequireMore: PropType<(from: "top" | "bottom") => void>;
|
package/es/log/src/Log.mjs
CHANGED
|
@@ -41,6 +41,7 @@ export const logProps = Object.assign(Object.assign({}, useTheme.props), {
|
|
|
41
41
|
default: 0
|
|
42
42
|
},
|
|
43
43
|
hljs: Object,
|
|
44
|
+
spinProps: Object,
|
|
44
45
|
onReachTop: Function,
|
|
45
46
|
onReachBottom: Function,
|
|
46
47
|
onRequireMore: Function
|
|
@@ -260,7 +261,8 @@ export default defineComponent({
|
|
|
260
261
|
name: "fade-in-scale-up-transition"
|
|
261
262
|
}, {
|
|
262
263
|
default: () => this.loading ? h(NLogLoader, {
|
|
263
|
-
clsPrefix: mergedClsPrefix
|
|
264
|
+
clsPrefix: mergedClsPrefix,
|
|
265
|
+
spinProps: this.spinProps
|
|
264
266
|
}) : null
|
|
265
267
|
})]);
|
|
266
268
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { LogSpinProps } from './public-types';
|
|
1
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
4
|
clsPrefix: {
|
|
3
5
|
type: StringConstructor;
|
|
4
6
|
required: true;
|
|
5
7
|
};
|
|
8
|
+
spinProps: PropType<LogSpinProps>;
|
|
6
9
|
}>, {
|
|
7
10
|
locale: import("vue").Ref<{
|
|
8
11
|
loading: string;
|
|
@@ -14,5 +17,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
14
17
|
type: StringConstructor;
|
|
15
18
|
required: true;
|
|
16
19
|
};
|
|
20
|
+
spinProps: PropType<LogSpinProps>;
|
|
17
21
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
22
|
export default _default;
|
package/es/log/src/LogLoader.mjs
CHANGED
|
@@ -7,7 +7,8 @@ export default defineComponent({
|
|
|
7
7
|
clsPrefix: {
|
|
8
8
|
type: String,
|
|
9
9
|
required: true
|
|
10
|
-
}
|
|
10
|
+
},
|
|
11
|
+
spinProps: Object
|
|
11
12
|
},
|
|
12
13
|
setup() {
|
|
13
14
|
return {
|
|
@@ -20,11 +21,11 @@ export default defineComponent({
|
|
|
20
21
|
} = this;
|
|
21
22
|
return h("div", {
|
|
22
23
|
class: `${clsPrefix}-log-loader`
|
|
23
|
-
}, h(NBaseLoading, {
|
|
24
|
+
}, h(NBaseLoading, Object.assign({
|
|
24
25
|
clsPrefix: clsPrefix,
|
|
25
26
|
strokeWidth: 24,
|
|
26
27
|
scale: 0.85
|
|
27
|
-
}), h("span", {
|
|
28
|
+
}, this.spinProps)), h("span", {
|
|
28
29
|
class: `${clsPrefix}-log-loader__content`
|
|
29
30
|
}, this.locale.loading));
|
|
30
31
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -82,9 +82,11 @@ export default defineComponent({
|
|
|
82
82
|
} = this;
|
|
83
83
|
const originalNode = h(VResizeObserver, {
|
|
84
84
|
onResize: this.handleContentResize
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
}, {
|
|
86
|
+
default: () => h("div", {
|
|
87
|
+
class: `${mergedClsPrefix}-marquee__item ${mergedClsPrefix}-marquee__original-item`
|
|
88
|
+
}, $slots)
|
|
89
|
+
});
|
|
88
90
|
const mirrorNode = h("div", {
|
|
89
91
|
class: `${mergedClsPrefix}-marquee__item`
|
|
90
92
|
}, $slots);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { TreeNode } from 'treemate';
|
|
2
2
|
import type { PropType, SlotsType, VNode } from 'vue';
|
|
3
3
|
import type { FollowerInst, FollowerPlacement } from 'vueuc';
|
|
4
|
+
import type { ScrollbarProps } from '../../_internal';
|
|
4
5
|
import type { RenderLabel } from '../../_internal/select-menu/src/interface';
|
|
5
6
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
6
7
|
import type { FormValidationStatus } from '../../form/src/public-types';
|
|
7
|
-
import type {
|
|
8
|
+
import type { InputSize } from '../../input/src/public-types';
|
|
8
9
|
import type { SelectBaseOption, SelectGroupOption, SelectIgnoredOption } from '../../select/src/interface';
|
|
9
10
|
import type { MentionOption } from './interface';
|
|
10
11
|
export declare const mentionProps: {
|
|
@@ -67,6 +68,7 @@ export declare const mentionProps: {
|
|
|
67
68
|
readonly onSelect: PropType<(option: MentionOption, prefix: string) => void>;
|
|
68
69
|
readonly onFocus: PropType<(e: FocusEvent) => void>;
|
|
69
70
|
readonly onBlur: PropType<(e: FocusEvent) => void>;
|
|
71
|
+
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
70
72
|
readonly internalDebug: BooleanConstructor;
|
|
71
73
|
readonly theme: PropType<import("../../_mixins").Theme<"Mention", {
|
|
72
74
|
menuBoxShadow: string;
|
|
@@ -572,6 +574,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
572
574
|
readonly onSelect: PropType<(option: MentionOption, prefix: string) => void>;
|
|
573
575
|
readonly onFocus: PropType<(e: FocusEvent) => void>;
|
|
574
576
|
readonly onBlur: PropType<(e: FocusEvent) => void>;
|
|
577
|
+
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
575
578
|
readonly internalDebug: BooleanConstructor;
|
|
576
579
|
readonly theme: PropType<import("../../_mixins").Theme<"Mention", {
|
|
577
580
|
menuBoxShadow: string;
|
|
@@ -1354,6 +1357,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1354
1357
|
readonly onSelect: PropType<(option: MentionOption, prefix: string) => void>;
|
|
1355
1358
|
readonly onFocus: PropType<(e: FocusEvent) => void>;
|
|
1356
1359
|
readonly onBlur: PropType<(e: FocusEvent) => void>;
|
|
1360
|
+
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
1357
1361
|
readonly internalDebug: BooleanConstructor;
|
|
1358
1362
|
readonly theme: PropType<import("../../_mixins").Theme<"Mention", {
|
|
1359
1363
|
menuBoxShadow: string;
|
|
@@ -78,6 +78,7 @@ export const mentionProps = Object.assign(Object.assign({}, useTheme.props), {
|
|
|
78
78
|
onSelect: Function,
|
|
79
79
|
onFocus: Function,
|
|
80
80
|
onBlur: Function,
|
|
81
|
+
scrollbarProps: Object,
|
|
81
82
|
// private
|
|
82
83
|
internalDebug: Boolean
|
|
83
84
|
});
|
|
@@ -446,7 +447,8 @@ export default defineComponent({
|
|
|
446
447
|
virtualScroll: false,
|
|
447
448
|
style: this.cssVars,
|
|
448
449
|
onToggle: this.handleSelect,
|
|
449
|
-
renderLabel: this.renderLabel
|
|
450
|
+
renderLabel: this.renderLabel,
|
|
451
|
+
scrollbarProps: this.scrollbarProps
|
|
450
452
|
}, $slots) : null;
|
|
451
453
|
}
|
|
452
454
|
})
|
|
@@ -79,8 +79,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
79
79
|
isEllipsisPlaceholder: BooleanConstructor;
|
|
80
80
|
}>> & Readonly<{}>, {
|
|
81
81
|
disabled: boolean;
|
|
82
|
-
selected: boolean;
|
|
83
82
|
hover: boolean;
|
|
83
|
+
selected: boolean;
|
|
84
84
|
showArrow: boolean;
|
|
85
85
|
collapsed: boolean;
|
|
86
86
|
childActive: boolean;
|
package/es/message/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { messageProviderProps, default as NMessageProvider } from './src/MessageProvider';
|
|
2
2
|
export type { MessageApiInjection as MessageApi, MessageProviderInst, MessageProviderProps, MessageReactive } from './src/MessageProvider';
|
|
3
|
+
export type * from './src/public-types';
|
|
3
4
|
export type { MessageOptions, MessageRenderMessage, MessageType } from './src/types';
|
|
4
5
|
export { useMessage } from './src/use-message';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PropType, VNodeChild } from 'vue';
|
|
2
|
+
import type { MessageSpinProps } from './public-types';
|
|
2
3
|
import type { MessageRenderMessage, MessageType } from './types';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
5
|
render: PropType<MessageRenderMessage>;
|
|
@@ -14,6 +15,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
14
15
|
};
|
|
15
16
|
closable: BooleanConstructor;
|
|
16
17
|
keepAliveOnHover: BooleanConstructor;
|
|
18
|
+
spinProps: PropType<MessageSpinProps>;
|
|
17
19
|
onClose: PropType<() => void>;
|
|
18
20
|
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
19
21
|
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
@@ -68,6 +70,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
68
70
|
};
|
|
69
71
|
closable: BooleanConstructor;
|
|
70
72
|
keepAliveOnHover: BooleanConstructor;
|
|
73
|
+
spinProps: PropType<MessageSpinProps>;
|
|
71
74
|
onClose: PropType<() => void>;
|
|
72
75
|
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
73
76
|
onMouseleave: PropType<(e: MouseEvent) => void>;
|