naive-ui 2.43.2 → 2.44.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/README.zh-CN.md +2 -1
- package/dist/index.js +1001 -446
- package/dist/index.mjs +1001 -446
- 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 +19 -9
- package/es/_mixins/use-form-item.d.ts +1 -2
- package/es/auto-complete/index.d.ts +1 -0
- package/es/auto-complete/src/AutoComplete.d.ts +9 -4
- package/es/auto-complete/src/AutoComplete.mjs +21 -3
- package/es/auto-complete/src/public-types.d.ts +1 -0
- 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/public-types.mjs +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 +12 -5
- package/es/cascader/src/Cascader.mjs +22 -2
- 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 +3 -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/index.d.ts +1 -0
- package/es/color-picker/src/ColorPicker.d.ts +11 -5
- package/es/color-picker/src/ColorPicker.mjs +56 -23
- package/es/color-picker/src/ColorPickerTrigger.mjs +3 -3
- package/es/color-picker/src/public-types.d.ts +1 -0
- package/es/color-picker/src/public-types.mjs +1 -0
- package/es/color-picker/src/styles/index.cssr.mjs +11 -14
- package/es/config-provider/src/internal-interface.d.ts +127 -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 +8 -22
- 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 -10
- package/es/data-table/src/interface.mjs +2 -8
- 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 +10 -3
- package/es/date-picker/src/DatePicker.mjs +23 -6
- 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 +4 -1
- package/es/date-picker/src/props.mjs +2 -0
- package/es/date-picker/src/public-types.d.ts +1 -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 +9 -17
- package/es/dropdown/src/Dropdown.mjs +11 -8
- 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 +6 -5
- package/es/input/src/Input.mjs +19 -3
- 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/input-number/src/InputNumber.d.ts +1 -1
- package/es/input-number/src/InputNumber.mjs +18 -2
- package/es/input-number/src/interface.d.ts +2 -1
- package/es/input-number/src/public-types.d.ts +1 -0
- package/es/input-number/src/public-types.mjs +1 -0
- package/es/input-otp/src/InputOtp.mjs +18 -2
- 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/index.d.ts +1 -0
- package/es/mention/src/Mention.d.ts +9 -5
- package/es/mention/src/Mention.mjs +21 -3
- package/es/mention/src/public-types.d.ts +1 -0
- package/es/mention/src/public-types.mjs +1 -0
- 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 +26 -9
- package/es/select/src/Select.mjs +32 -4
- 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 +3 -13
- package/es/tag/src/Tag.mjs +8 -4
- package/es/tag/src/common-props.d.ts +2 -4
- package/es/tag/src/common-props.mjs +1 -4
- 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 +6 -5
- package/es/time-picker/src/TimePicker.mjs +18 -2
- 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/index.d.ts +1 -0
- package/es/transfer/src/Transfer.d.ts +5 -4
- package/es/transfer/src/Transfer.mjs +18 -2
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/transfer/src/TransferList.mjs +12 -2
- package/es/transfer/src/public-types.d.ts +1 -0
- package/es/transfer/src/public-types.mjs +1 -0
- 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/index.d.ts +1 -0
- package/es/tree-select/src/TreeSelect.d.ts +10 -4
- package/es/tree-select/src/TreeSelect.mjs +32 -6
- package/es/tree-select/src/public-types.d.ts +1 -0
- package/es/tree-select/src/public-types.mjs +1 -0
- 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 +15 -7
- package/lib/_mixins/use-form-item.d.ts +1 -2
- package/lib/auto-complete/index.d.ts +1 -0
- package/lib/auto-complete/src/AutoComplete.d.ts +9 -4
- package/lib/auto-complete/src/AutoComplete.js +18 -4
- package/lib/auto-complete/src/public-types.d.ts +1 -0
- 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/public-types.js +2 -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 +12 -5
- package/lib/cascader/src/Cascader.js +19 -3
- 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 +3 -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/index.d.ts +1 -0
- package/lib/color-picker/src/ColorPicker.d.ts +11 -5
- package/lib/color-picker/src/ColorPicker.js +62 -28
- package/lib/color-picker/src/ColorPickerTrigger.js +4 -4
- package/lib/color-picker/src/public-types.d.ts +1 -0
- package/lib/color-picker/src/public-types.js +2 -0
- package/lib/color-picker/src/styles/index.cssr.js +11 -14
- package/lib/config-provider/src/internal-interface.d.ts +127 -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 +8 -22
- 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 -10
- package/lib/data-table/src/interface.js +2 -5
- 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 +10 -3
- package/lib/date-picker/src/DatePicker.js +18 -2
- 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 +4 -1
- package/lib/date-picker/src/props.js +1 -1
- package/lib/date-picker/src/public-types.d.ts +1 -0
- 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 +9 -17
- package/lib/dropdown/src/Dropdown.js +16 -8
- 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 +6 -5
- package/lib/input/src/Input.js +17 -2
- 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/input-number/src/InputNumber.d.ts +1 -1
- package/lib/input-number/src/InputNumber.js +16 -2
- package/lib/input-number/src/interface.d.ts +2 -1
- package/lib/input-number/src/public-types.d.ts +1 -0
- package/lib/input-number/src/public-types.js +2 -0
- package/lib/input-otp/src/InputOtp.js +16 -2
- 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/index.d.ts +1 -0
- package/lib/mention/src/Mention.d.ts +9 -5
- package/lib/mention/src/Mention.js +18 -4
- package/lib/mention/src/public-types.d.ts +1 -0
- package/lib/mention/src/public-types.js +2 -0
- 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 +26 -9
- package/lib/select/src/Select.js +26 -6
- 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 +3 -13
- package/lib/tag/src/Tag.js +9 -4
- package/lib/tag/src/common-props.d.ts +2 -4
- package/lib/tag/src/common-props.js +1 -4
- 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 +6 -5
- package/lib/time-picker/src/TimePicker.js +16 -2
- 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/index.d.ts +1 -0
- package/lib/transfer/src/Transfer.d.ts +5 -4
- package/lib/transfer/src/Transfer.js +16 -2
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/transfer/src/TransferList.js +9 -1
- package/lib/transfer/src/public-types.d.ts +1 -0
- package/lib/transfer/src/public-types.js +2 -0
- 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/index.d.ts +1 -0
- package/lib/tree-select/src/TreeSelect.d.ts +10 -4
- package/lib/tree-select/src/TreeSelect.js +28 -7
- package/lib/tree-select/src/public-types.d.ts +1 -0
- package/lib/tree-select/src/public-types.js +2 -0
- 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 +249 -61
- package/es/button/src/interface.d.ts +0 -2
- package/lib/button/src/interface.d.ts +0 -2
- /package/es/{button/src/interface.mjs → auto-complete/src/public-types.mjs} +0 -0
- /package/es/{data-table/src/publicTypes.mjs → button/src/public-types.mjs} +0 -0
- /package/lib/{button/src/interface.js → auto-complete/src/public-types.js} +0 -0
- /package/lib/{data-table/src/publicTypes.js → button/src/public-types.js} +0 -0
|
@@ -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;
|
|
@@ -697,7 +698,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
697
698
|
isComposing: import("vue").Ref<boolean, boolean>;
|
|
698
699
|
activated: import("vue").Ref<boolean, boolean>;
|
|
699
700
|
showClearButton: import("vue").ComputedRef<boolean>;
|
|
700
|
-
mergedSize: import("vue").ComputedRef<
|
|
701
|
+
mergedSize: import("vue").ComputedRef<InputSize>;
|
|
701
702
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
702
703
|
textDecorationStyle: import("vue").ComputedRef<string[] | {
|
|
703
704
|
textDecoration: string;
|
|
@@ -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;
|
package/es/input/src/Input.mjs
CHANGED
|
@@ -114,7 +114,8 @@ export default defineComponent({
|
|
|
114
114
|
mergedClsPrefixRef,
|
|
115
115
|
mergedBorderedRef,
|
|
116
116
|
inlineThemeDisabled,
|
|
117
|
-
mergedRtlRef
|
|
117
|
+
mergedRtlRef,
|
|
118
|
+
mergedComponentPropsRef
|
|
118
119
|
} = useConfig(props);
|
|
119
120
|
const themeRef = useTheme('Input', '-input', style, inputLight, props, mergedClsPrefixRef);
|
|
120
121
|
if (isSafari) {
|
|
@@ -139,7 +140,22 @@ export default defineComponent({
|
|
|
139
140
|
const controlledValueRef = toRef(props, 'value');
|
|
140
141
|
const mergedValueRef = useMergedState(controlledValueRef, uncontrolledValueRef);
|
|
141
142
|
// form-item
|
|
142
|
-
const formItem = useFormItem(props
|
|
143
|
+
const formItem = useFormItem(props, {
|
|
144
|
+
mergedSize: NFormItem => {
|
|
145
|
+
var _a, _b;
|
|
146
|
+
const {
|
|
147
|
+
size
|
|
148
|
+
} = props;
|
|
149
|
+
if (size) return size;
|
|
150
|
+
const {
|
|
151
|
+
mergedSize: formItemSize
|
|
152
|
+
} = NFormItem || {};
|
|
153
|
+
if (formItemSize === null || formItemSize === void 0 ? void 0 : formItemSize.value) return formItemSize.value;
|
|
154
|
+
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;
|
|
155
|
+
if (configSize) return configSize;
|
|
156
|
+
return 'medium';
|
|
157
|
+
}
|
|
158
|
+
});
|
|
143
159
|
const {
|
|
144
160
|
mergedSizeRef,
|
|
145
161
|
mergedDisabledRef,
|
|
@@ -1015,7 +1031,7 @@ export default defineComponent({
|
|
|
1015
1031
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
1016
1032
|
return h("div", {
|
|
1017
1033
|
ref: "wrapperElRef",
|
|
1018
|
-
class: [`${mergedClsPrefix}-input`, themeClass, mergedStatus && `${mergedClsPrefix}-input--${mergedStatus}-status`, {
|
|
1034
|
+
class: [`${mergedClsPrefix}-input`, `${mergedClsPrefix}-input--${this.mergedSize}-size`, themeClass, mergedStatus && `${mergedClsPrefix}-input--${mergedStatus}-status`, {
|
|
1019
1035
|
[`${mergedClsPrefix}-input--rtl`]: this.rtlEnabled,
|
|
1020
1036
|
[`${mergedClsPrefix}-input--disabled`]: this.mergedDisabled,
|
|
1021
1037
|
[`${mergedClsPrefix}-input--textarea`]: type === 'textarea',
|
|
@@ -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 {};
|
|
@@ -1895,7 +1895,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1895
1895
|
mergedValue: import("vue").ComputedRef<number | null>;
|
|
1896
1896
|
mergedPlaceholder: import("vue").ComputedRef<string>;
|
|
1897
1897
|
displayedValueInvalid: import("vue").ComputedRef<boolean>;
|
|
1898
|
-
mergedSize: import("vue").ComputedRef<"
|
|
1898
|
+
mergedSize: import("vue").ComputedRef<import("./public-types").InputNumberSize>;
|
|
1899
1899
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
1900
1900
|
displayedValue: import("vue").Ref<string, string>;
|
|
1901
1901
|
addable: import("vue").ComputedRef<boolean>;
|
|
@@ -92,13 +92,29 @@ export default defineComponent({
|
|
|
92
92
|
const {
|
|
93
93
|
mergedBorderedRef,
|
|
94
94
|
mergedClsPrefixRef,
|
|
95
|
-
mergedRtlRef
|
|
95
|
+
mergedRtlRef,
|
|
96
|
+
mergedComponentPropsRef
|
|
96
97
|
} = useConfig(props);
|
|
97
98
|
const themeRef = useTheme('InputNumber', '-input-number', style, inputNumberLight, props, mergedClsPrefixRef);
|
|
98
99
|
const {
|
|
99
100
|
localeRef
|
|
100
101
|
} = useLocale('InputNumber');
|
|
101
|
-
const formItem = useFormItem(props
|
|
102
|
+
const formItem = useFormItem(props, {
|
|
103
|
+
mergedSize: NFormItem => {
|
|
104
|
+
var _a, _b;
|
|
105
|
+
const {
|
|
106
|
+
size
|
|
107
|
+
} = props;
|
|
108
|
+
if (size) return size;
|
|
109
|
+
const {
|
|
110
|
+
mergedSize: formItemSize
|
|
111
|
+
} = NFormItem || {};
|
|
112
|
+
if (formItemSize === null || formItemSize === void 0 ? void 0 : formItemSize.value) return formItemSize.value;
|
|
113
|
+
const configSize = (_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.InputNumber) === null || _b === void 0 ? void 0 : _b.size;
|
|
114
|
+
if (configSize) return configSize;
|
|
115
|
+
return 'medium';
|
|
116
|
+
}
|
|
117
|
+
});
|
|
102
118
|
const {
|
|
103
119
|
mergedSizeRef,
|
|
104
120
|
mergedDisabledRef,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { InputNumberSize } from './public-types';
|
|
1
2
|
export type OnUpdateValue = (value: number | null) => void;
|
|
2
|
-
export type Size =
|
|
3
|
+
export type Size = InputNumberSize;
|
|
3
4
|
export interface InputNumberInst {
|
|
4
5
|
focus: () => void;
|
|
5
6
|
blur: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type InputNumberSize = 'tiny' | 'small' | 'medium' | 'large';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -50,12 +50,28 @@ export default defineComponent({
|
|
|
50
50
|
const {
|
|
51
51
|
mergedClsPrefixRef,
|
|
52
52
|
mergedRtlRef,
|
|
53
|
-
inlineThemeDisabled
|
|
53
|
+
inlineThemeDisabled,
|
|
54
|
+
mergedComponentPropsRef
|
|
54
55
|
} = useConfig(props);
|
|
55
56
|
const themeRef = useTheme('InputOtp', '-input-otp', style, inputOtpLight, props, mergedClsPrefixRef);
|
|
56
57
|
const rtlEnabledRef = useRtl('InputOtp', mergedRtlRef, mergedClsPrefixRef);
|
|
57
58
|
// form-item
|
|
58
|
-
const formItem = useFormItem(props
|
|
59
|
+
const formItem = useFormItem(props, {
|
|
60
|
+
mergedSize: NFormItem => {
|
|
61
|
+
var _a, _b;
|
|
62
|
+
const {
|
|
63
|
+
size
|
|
64
|
+
} = props;
|
|
65
|
+
if (size) return size;
|
|
66
|
+
const {
|
|
67
|
+
mergedSize: formItemSize
|
|
68
|
+
} = NFormItem || {};
|
|
69
|
+
if (formItemSize === null || formItemSize === void 0 ? void 0 : formItemSize.value) return formItemSize.value;
|
|
70
|
+
const configSize = (_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.InputOtp) === null || _b === void 0 ? void 0 : _b.size;
|
|
71
|
+
if (configSize) return configSize;
|
|
72
|
+
return 'medium';
|
|
73
|
+
}
|
|
74
|
+
});
|
|
59
75
|
const {
|
|
60
76
|
mergedSizeRef,
|
|
61
77
|
mergedDisabledRef,
|
|
@@ -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);
|
package/es/mention/index.d.ts
CHANGED