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
|
@@ -6,6 +6,7 @@ import type { InternalSelectionTheme } from '../../_internal/selection/styles';
|
|
|
6
6
|
import type { Hljs } from '../../_mixins';
|
|
7
7
|
import type { AlertTheme } from '../../alert/styles';
|
|
8
8
|
import type { AnchorTheme } from '../../anchor/styles';
|
|
9
|
+
import type { AutoCompleteSize } from '../../auto-complete/src/public-types';
|
|
9
10
|
import type { AutoCompleteTheme } from '../../auto-complete/styles';
|
|
10
11
|
import type { AvatarGroupTheme } from '../../avatar-group/styles';
|
|
11
12
|
import type { AvatarTheme } from '../../avatar/styles';
|
|
@@ -13,27 +14,36 @@ import type { BackTopTheme } from '../../back-top/styles';
|
|
|
13
14
|
import type { BadgeTheme } from '../../badge/styles';
|
|
14
15
|
import type { BreadcrumbTheme } from '../../breadcrumb/styles';
|
|
15
16
|
import type { ButtonGroupTheme } from '../../button-group/styles/light';
|
|
16
|
-
import type {
|
|
17
|
+
import type { ButtonSize } from '../../button/src/public-types';
|
|
17
18
|
import type { ButtonTheme } from '../../button/styles';
|
|
18
19
|
import type { CalendarTheme } from '../../calendar/styles';
|
|
20
|
+
import type { CardSize } from '../../card/src/public-types';
|
|
19
21
|
import type { CardTheme } from '../../card/styles';
|
|
20
22
|
import type { CarouselTheme } from '../../carousel/styles';
|
|
23
|
+
import type { CascaderSize } from '../../cascader/src/public-types';
|
|
21
24
|
import type { CascaderTheme } from '../../cascader/styles';
|
|
25
|
+
import type { CheckboxSize } from '../../checkbox/src/public-types';
|
|
22
26
|
import type { CheckboxTheme } from '../../checkbox/styles';
|
|
23
27
|
import type { CodeTheme } from '../../code/styles';
|
|
24
28
|
import type { CollapseTransitionTheme } from '../../collapse-transition/styles';
|
|
25
29
|
import type { CollapseTheme } from '../../collapse/styles';
|
|
30
|
+
import type { ColorPickerSize } from '../../color-picker/src/public-types';
|
|
26
31
|
import type { ColorPickerTheme } from '../../color-picker/styles';
|
|
27
32
|
import type { DataTableRenderFilter, DataTableRenderSorter } from '../../data-table';
|
|
33
|
+
import type { DataTableSize } from '../../data-table/src/public-types';
|
|
28
34
|
import type { DataTableTheme } from '../../data-table/styles';
|
|
35
|
+
import type { DatePickerSize } from '../../date-picker/src/public-types';
|
|
29
36
|
import type { DatePickerTheme } from '../../date-picker/styles';
|
|
37
|
+
import type { DescriptionsSize } from '../../descriptions/src/public-types';
|
|
30
38
|
import type { DescriptionsTheme } from '../../descriptions/styles';
|
|
31
39
|
import type { IconPlacement } from '../../dialog/src/interface';
|
|
32
40
|
import type { DialogTheme } from '../../dialog/styles';
|
|
33
41
|
import type { DividerTheme } from '../../divider/styles';
|
|
34
42
|
import type { DrawerTheme } from '../../drawer/styles';
|
|
43
|
+
import type { DropdownSize } from '../../dropdown/src/public-types';
|
|
35
44
|
import type { DropdownTheme } from '../../dropdown/styles';
|
|
36
45
|
import type { DynamicInputTheme } from '../../dynamic-input/styles';
|
|
46
|
+
import type { DynamicTagsSize } from '../../dynamic-tags/src/public-types';
|
|
37
47
|
import type { DynamicTagsTheme } from '../../dynamic-tags/styles';
|
|
38
48
|
import type { ElementTheme } from '../../element/styles';
|
|
39
49
|
import type { EllipsisTheme } from '../../ellipsis/styles';
|
|
@@ -43,15 +53,18 @@ import type { EquationTheme } from '../../equation/styles';
|
|
|
43
53
|
import type { FlexTheme } from '../../flex/styles';
|
|
44
54
|
import type { FloatButtonGroupTheme } from '../../float-button-group/styles';
|
|
45
55
|
import type { FloatButtonTheme } from '../../float-button/styles';
|
|
56
|
+
import type { FormSize } from '../../form/src/public-types';
|
|
46
57
|
import type { FormTheme } from '../../form/styles';
|
|
47
58
|
import type { GradientTextTheme } from '../../gradient-text/styles';
|
|
48
59
|
import type { HeatmapTheme } from '../../heatmap/styles';
|
|
49
60
|
import type { IconWrapperTheme } from '../../icon-wrapper/styles';
|
|
50
61
|
import type { IconTheme } from '../../icon/styles';
|
|
51
62
|
import type { ImageTheme } from '../../image/styles';
|
|
63
|
+
import type { InputNumberSize } from '../../input-number/src/public-types';
|
|
52
64
|
import type { InputNumberTheme } from '../../input-number/styles';
|
|
65
|
+
import type { InputOtpSize } from '../../input-otp/src/public-types';
|
|
53
66
|
import type { InputOtpTheme } from '../../input-otp/styles';
|
|
54
|
-
import type {
|
|
67
|
+
import type { InputSize } from '../../input/src/public-types';
|
|
55
68
|
import type { InputTheme } from '../../input/styles';
|
|
56
69
|
import type { LayoutTheme } from '../../layout/styles';
|
|
57
70
|
import type { RowTheme } from '../../legacy-grid/styles';
|
|
@@ -61,40 +74,54 @@ import type { LoadingBarTheme } from '../../loading-bar/styles';
|
|
|
61
74
|
import type { NDateLocale, NLocale } from '../../locales';
|
|
62
75
|
import type { LogTheme } from '../../log/styles';
|
|
63
76
|
import type { MarqueeTheme } from '../../marquee/styles';
|
|
77
|
+
import type { MentionSize } from '../../mention/src/public-types';
|
|
64
78
|
import type { MentionTheme } from '../../mention/styles';
|
|
65
79
|
import type { MenuTheme } from '../../menu/styles';
|
|
66
80
|
import type { MessageTheme } from '../../message/styles';
|
|
67
81
|
import type { ModalTheme } from '../../modal/styles';
|
|
68
82
|
import type { NotificationTheme } from '../../notification/styles';
|
|
69
83
|
import type { PageHeaderTheme } from '../../page-header/styles';
|
|
84
|
+
import type { PaginationSize } from '../../pagination/src/public-types';
|
|
70
85
|
import type { PaginationTheme } from '../../pagination/styles';
|
|
71
86
|
import type { PopconfirmTheme } from '../../popconfirm/styles';
|
|
72
87
|
import type { PopoverTheme } from '../../popover/styles';
|
|
88
|
+
import type { PopselectSize } from '../../popselect/src/public-types';
|
|
73
89
|
import type { PopselectTheme } from '../../popselect/styles';
|
|
74
90
|
import type { ProgressTheme } from '../../progress/styles';
|
|
75
91
|
import type { QrCodeTheme } from '../../qr-code/styles';
|
|
92
|
+
import type { RadioSize } from '../../radio/src/public-types';
|
|
76
93
|
import type { RadioTheme } from '../../radio/styles';
|
|
94
|
+
import type { RateSize } from '../../rate/src/public-types';
|
|
77
95
|
import type { RateTheme } from '../../rate/styles';
|
|
96
|
+
import type { ResultSize } from '../../result/src/public-types';
|
|
78
97
|
import type { ResultTheme } from '../../result/styles';
|
|
79
|
-
import type {
|
|
98
|
+
import type { SelectSize } from '../../select/src/public-types';
|
|
80
99
|
import type { SelectTheme } from '../../select/styles';
|
|
100
|
+
import type { SkeletonSize } from '../../skeleton/src/public-types';
|
|
81
101
|
import type { SkeletonTheme } from '../../skeleton/styles';
|
|
82
102
|
import type { SliderTheme } from '../../slider/styles';
|
|
103
|
+
import type { SpaceSize } from '../../space/src/public-types';
|
|
83
104
|
import type { SpaceTheme } from '../../space/styles';
|
|
84
105
|
import type { SpinTheme } from '../../spin/styles';
|
|
85
106
|
import type { SplitTheme } from '../../split/styles';
|
|
86
107
|
import type { StatisticTheme } from '../../statistic/styles';
|
|
87
108
|
import type { StepsTheme } from '../../steps/styles';
|
|
109
|
+
import type { SwitchSize } from '../../switch/src/public-types';
|
|
88
110
|
import type { SwitchTheme } from '../../switch/styles';
|
|
111
|
+
import type { TableSize } from '../../table/src/public-types';
|
|
89
112
|
import type { TableTheme } from '../../table/styles';
|
|
113
|
+
import type { TabsSize } from '../../tabs/src/public-types';
|
|
90
114
|
import type { TabsTheme } from '../../tabs/styles';
|
|
115
|
+
import type { TagSize } from '../../tag/src/public-types';
|
|
91
116
|
import type { TagTheme } from '../../tag/styles';
|
|
92
117
|
import type { ThingTheme } from '../../thing/styles';
|
|
93
|
-
import type {
|
|
118
|
+
import type { TimePickerSize } from '../../time-picker/src/public-types';
|
|
94
119
|
import type { TimePickerTheme } from '../../time-picker/styles';
|
|
95
120
|
import type { TimelineTheme } from '../../timeline/styles';
|
|
96
121
|
import type { TooltipTheme } from '../../tooltip/styles';
|
|
122
|
+
import type { TransferSize } from '../../transfer/src/public-types';
|
|
97
123
|
import type { TransferTheme } from '../../transfer/styles';
|
|
124
|
+
import type { TreeSelectSize } from '../../tree-select/src/public-types';
|
|
98
125
|
import type { TreeSelectTheme } from '../../tree-select/styles';
|
|
99
126
|
import type { TreeTheme } from '../../tree/styles';
|
|
100
127
|
import type { TypographyTheme } from '../../typography/styles';
|
|
@@ -145,6 +172,7 @@ export interface GlobalThemeWithoutCommon {
|
|
|
145
172
|
Image?: ImageTheme;
|
|
146
173
|
Input?: InputTheme;
|
|
147
174
|
InputNumber?: InputNumberTheme;
|
|
175
|
+
InputOtp?: InputOtpTheme;
|
|
148
176
|
Layout?: LayoutTheme;
|
|
149
177
|
LegacyTransfer?: LegacyTransferTheme;
|
|
150
178
|
List?: ListTheme;
|
|
@@ -193,27 +221,121 @@ export interface GlobalThemeWithoutCommon {
|
|
|
193
221
|
Heatmap?: HeatmapTheme;
|
|
194
222
|
InternalSelectMenu?: InternalSelectMenuTheme;
|
|
195
223
|
InternalSelection?: InternalSelectionTheme;
|
|
196
|
-
InputOtp?: InputOtpTheme;
|
|
197
224
|
}
|
|
198
225
|
export interface GlobalComponentConfig {
|
|
226
|
+
AutoComplete?: {
|
|
227
|
+
size?: AutoCompleteSize;
|
|
228
|
+
};
|
|
229
|
+
Cascader?: {
|
|
230
|
+
size?: CascaderSize;
|
|
231
|
+
renderEmpty?: () => VNodeChild;
|
|
232
|
+
};
|
|
233
|
+
Button?: {
|
|
234
|
+
size?: ButtonSize;
|
|
235
|
+
};
|
|
236
|
+
Card?: {
|
|
237
|
+
size?: CardSize;
|
|
238
|
+
};
|
|
239
|
+
Checkbox?: {
|
|
240
|
+
size?: CheckboxSize;
|
|
241
|
+
};
|
|
199
242
|
Pagination?: {
|
|
243
|
+
size?: PaginationSize;
|
|
200
244
|
inputSize?: InputSize;
|
|
201
245
|
selectSize?: SelectSize;
|
|
202
246
|
};
|
|
247
|
+
ColorPicker?: {
|
|
248
|
+
size?: ColorPickerSize;
|
|
249
|
+
};
|
|
203
250
|
DatePicker?: {
|
|
251
|
+
size?: DatePickerSize;
|
|
204
252
|
timePickerSize?: TimePickerSize;
|
|
205
253
|
};
|
|
206
254
|
Dialog?: {
|
|
207
255
|
iconPlacement?: IconPlacement;
|
|
208
256
|
};
|
|
209
257
|
DataTable?: {
|
|
258
|
+
size?: DataTableSize;
|
|
210
259
|
renderFilter?: DataTableRenderFilter;
|
|
211
260
|
renderSorter?: DataTableRenderSorter;
|
|
261
|
+
renderEmpty?: () => VNodeChild;
|
|
262
|
+
};
|
|
263
|
+
Descriptions?: {
|
|
264
|
+
size?: DescriptionsSize;
|
|
265
|
+
};
|
|
266
|
+
Dropdown?: {
|
|
267
|
+
size?: DropdownSize;
|
|
212
268
|
};
|
|
213
269
|
DynamicInput?: {
|
|
214
270
|
buttonSize?: ButtonSize;
|
|
215
271
|
};
|
|
272
|
+
DynamicTags?: {
|
|
273
|
+
size?: DynamicTagsSize;
|
|
274
|
+
};
|
|
216
275
|
Empty?: Pick<EmptyProps, 'description' | 'renderIcon'>;
|
|
276
|
+
Form?: {
|
|
277
|
+
size?: FormSize;
|
|
278
|
+
};
|
|
279
|
+
Input?: {
|
|
280
|
+
size?: InputSize;
|
|
281
|
+
};
|
|
282
|
+
InputNumber?: {
|
|
283
|
+
size?: InputNumberSize;
|
|
284
|
+
};
|
|
285
|
+
InputOtp?: {
|
|
286
|
+
size?: InputOtpSize;
|
|
287
|
+
};
|
|
288
|
+
Mention?: {
|
|
289
|
+
size?: MentionSize;
|
|
290
|
+
};
|
|
291
|
+
Select?: {
|
|
292
|
+
size?: SelectSize;
|
|
293
|
+
renderEmpty?: () => VNodeChild;
|
|
294
|
+
};
|
|
295
|
+
Popselect?: {
|
|
296
|
+
size?: PopselectSize;
|
|
297
|
+
};
|
|
298
|
+
Radio?: {
|
|
299
|
+
size?: RadioSize;
|
|
300
|
+
};
|
|
301
|
+
Rate?: {
|
|
302
|
+
size?: RateSize;
|
|
303
|
+
};
|
|
304
|
+
Result?: {
|
|
305
|
+
size?: ResultSize;
|
|
306
|
+
};
|
|
307
|
+
Skeleton?: {
|
|
308
|
+
size?: SkeletonSize;
|
|
309
|
+
};
|
|
310
|
+
Space?: {
|
|
311
|
+
size?: SpaceSize;
|
|
312
|
+
};
|
|
313
|
+
Switch?: {
|
|
314
|
+
size?: SwitchSize;
|
|
315
|
+
};
|
|
316
|
+
Table?: {
|
|
317
|
+
size?: TableSize;
|
|
318
|
+
};
|
|
319
|
+
Tabs?: {
|
|
320
|
+
size?: TabsSize;
|
|
321
|
+
};
|
|
322
|
+
Tag?: {
|
|
323
|
+
size?: TagSize;
|
|
324
|
+
};
|
|
325
|
+
TimePicker?: {
|
|
326
|
+
size?: TimePickerSize;
|
|
327
|
+
};
|
|
328
|
+
Transfer?: {
|
|
329
|
+
size?: TransferSize;
|
|
330
|
+
renderEmpty?: () => VNodeChild;
|
|
331
|
+
};
|
|
332
|
+
Tree?: {
|
|
333
|
+
renderEmpty?: () => VNodeChild;
|
|
334
|
+
};
|
|
335
|
+
TreeSelect?: {
|
|
336
|
+
size?: TreeSelectSize;
|
|
337
|
+
renderEmpty?: () => VNodeChild;
|
|
338
|
+
};
|
|
217
339
|
}
|
|
218
340
|
export interface GlobalIconConfig {
|
|
219
341
|
attach?: () => VNodeChild;
|
|
@@ -61,8 +61,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
61
61
|
render: PropType<(props: CountdownTimeInfo) => VNodeChild>;
|
|
62
62
|
onFinish: PropType<() => void>;
|
|
63
63
|
}>> & Readonly<{}>, {
|
|
64
|
-
active: boolean;
|
|
65
64
|
duration: number;
|
|
65
|
+
active: boolean;
|
|
66
66
|
precision: 0 | 1 | 3 | 2;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
68
68
|
export default _default;
|
package/es/data-table/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as NDataTable } from './src/DataTable';
|
|
2
2
|
export { dataTableProps } from './src/interface';
|
|
3
3
|
export type { TableBaseColumn as DataTableBaseColumn, TableColumn as DataTableColumn, TableColumnGroup as DataTableColumnGroup, ColumnKey as DataTableColumnKey, TableColumns as DataTableColumns, CreateRowClassName as DataTableCreateRowClassName, CreateRowKey as DataTableCreateRowKey, CreateRowProps as DataTableCreateRowProps, CreateSummary as DataTableCreateSummary, TableExpandColumn as DataTableExpandColumn, FilterState as DataTableFilterState, DataTableInst, DataTableProps, RenderFilter as DataTableRenderFilter, RenderFilterIcon as DataTableRenderFilterIcon, RenderSorter as DataTableRenderSorter, RenderSorterIcon as DataTableRenderSorterIcon, RowData as DataTableRowData, RowKey as DataTableRowKey, TableSelectionColumn as DataTableSelectionColumn, DataTableSlots, SortOrder as DataTableSortOrder, SortState as DataTableSortState } from './src/interface';
|
|
4
|
-
export * from './src/
|
|
4
|
+
export type * from './src/public-types';
|
package/es/data-table/index.mjs
CHANGED
|
@@ -45,10 +45,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
45
45
|
readonly default: true;
|
|
46
46
|
};
|
|
47
47
|
readonly singleColumn: BooleanConstructor;
|
|
48
|
-
readonly size:
|
|
49
|
-
readonly type: import("vue").PropType<"small" | "medium" | "large">;
|
|
50
|
-
readonly default: "medium";
|
|
51
|
-
};
|
|
48
|
+
readonly size: import("vue").PropType<import("./public-types").DataTableSize>;
|
|
52
49
|
readonly remote: BooleanConstructor;
|
|
53
50
|
readonly defaultExpandedRowKeys: {
|
|
54
51
|
readonly type: import("vue").PropType<RowKey[]>;
|
|
@@ -99,12 +96,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
99
96
|
readonly scrollbarProps: import("vue").PropType<import("../..").ScrollbarProps>;
|
|
100
97
|
readonly renderCell: import("vue").PropType<(value: any, rowData: object, column: import("./interface").TableBaseColumn) => import("vue").VNodeChild>;
|
|
101
98
|
readonly renderExpandIcon: import("vue").PropType<import("./interface").RenderExpandIcon>;
|
|
102
|
-
readonly spinProps:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
};
|
|
106
|
-
readonly getCsvCell: import("vue").PropType<import("./publicTypes").DataTableGetCsvCell>;
|
|
107
|
-
readonly getCsvHeader: import("vue").PropType<import("./publicTypes").DataTableGetCsvHeader>;
|
|
99
|
+
readonly spinProps: import("vue").PropType<import("./public-types").DataTableSpinProps>;
|
|
100
|
+
readonly getCsvCell: import("vue").PropType<import("./public-types").DataTableGetCsvCell>;
|
|
101
|
+
readonly getCsvHeader: import("vue").PropType<import("./public-types").DataTableGetCsvHeader>;
|
|
108
102
|
readonly onLoad: import("vue").PropType<import("./interface").DataTableOnLoad>;
|
|
109
103
|
readonly 'onUpdate:page': import("vue").PropType<import("../..").PaginationProps["onUpdate:page"]>;
|
|
110
104
|
readonly onUpdatePage: import("vue").PropType<import("../..").PaginationProps["onUpdate:page"]>;
|
|
@@ -4314,10 +4308,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4314
4308
|
readonly default: true;
|
|
4315
4309
|
};
|
|
4316
4310
|
readonly singleColumn: BooleanConstructor;
|
|
4317
|
-
readonly size:
|
|
4318
|
-
readonly type: import("vue").PropType<"small" | "medium" | "large">;
|
|
4319
|
-
readonly default: "medium";
|
|
4320
|
-
};
|
|
4311
|
+
readonly size: import("vue").PropType<import("./public-types").DataTableSize>;
|
|
4321
4312
|
readonly remote: BooleanConstructor;
|
|
4322
4313
|
readonly defaultExpandedRowKeys: {
|
|
4323
4314
|
readonly type: import("vue").PropType<RowKey[]>;
|
|
@@ -4368,12 +4359,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4368
4359
|
readonly scrollbarProps: import("vue").PropType<import("../..").ScrollbarProps>;
|
|
4369
4360
|
readonly renderCell: import("vue").PropType<(value: any, rowData: object, column: import("./interface").TableBaseColumn) => import("vue").VNodeChild>;
|
|
4370
4361
|
readonly renderExpandIcon: import("vue").PropType<import("./interface").RenderExpandIcon>;
|
|
4371
|
-
readonly spinProps:
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
};
|
|
4375
|
-
readonly getCsvCell: import("vue").PropType<import("./publicTypes").DataTableGetCsvCell>;
|
|
4376
|
-
readonly getCsvHeader: import("vue").PropType<import("./publicTypes").DataTableGetCsvHeader>;
|
|
4362
|
+
readonly spinProps: import("vue").PropType<import("./public-types").DataTableSpinProps>;
|
|
4363
|
+
readonly getCsvCell: import("vue").PropType<import("./public-types").DataTableGetCsvCell>;
|
|
4364
|
+
readonly getCsvHeader: import("vue").PropType<import("./public-types").DataTableGetCsvHeader>;
|
|
4377
4365
|
readonly onLoad: import("vue").PropType<import("./interface").DataTableOnLoad>;
|
|
4378
4366
|
readonly 'onUpdate:page': import("vue").PropType<import("../..").PaginationProps["onUpdate:page"]>;
|
|
4379
4367
|
readonly onUpdatePage: import("vue").PropType<import("../..").PaginationProps["onUpdate:page"]>;
|
|
@@ -7109,9 +7097,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7109
7097
|
}>;
|
|
7110
7098
|
}>>>;
|
|
7111
7099
|
}>> & Readonly<{}>, {
|
|
7112
|
-
readonly size: "small" | "medium" | "large";
|
|
7113
7100
|
readonly data: import("./interface").RowData[];
|
|
7114
|
-
readonly spinProps: import("../../_internal").BaseLoadingExposedProps;
|
|
7115
7101
|
readonly bordered: boolean | undefined;
|
|
7116
7102
|
readonly loading: boolean;
|
|
7117
7103
|
readonly allowCheckingNotLoaded: boolean;
|
|
@@ -46,9 +46,14 @@ export default defineComponent({
|
|
|
46
46
|
mergedBorderedRef,
|
|
47
47
|
mergedClsPrefixRef,
|
|
48
48
|
inlineThemeDisabled,
|
|
49
|
-
mergedRtlRef
|
|
49
|
+
mergedRtlRef,
|
|
50
|
+
mergedComponentPropsRef
|
|
50
51
|
} = useConfig(props);
|
|
51
52
|
const rtlEnabledRef = useRtl('DataTable', mergedRtlRef, mergedClsPrefixRef);
|
|
53
|
+
const mergedSizeRef = computed(() => {
|
|
54
|
+
var _a, _b;
|
|
55
|
+
return props.size || ((_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.DataTable) === null || _b === void 0 ? void 0 : _b.size) || 'medium';
|
|
56
|
+
});
|
|
52
57
|
const mergedBottomBorderedRef = computed(() => {
|
|
53
58
|
const {
|
|
54
59
|
bottomBordered
|
|
@@ -134,6 +139,16 @@ export default defineComponent({
|
|
|
134
139
|
expandableRef,
|
|
135
140
|
doUpdateExpandedRowKeys
|
|
136
141
|
} = useExpand(props, treeMateRef);
|
|
142
|
+
const maxHeightRef = toRef(props, 'maxHeight');
|
|
143
|
+
const mergedTableLayoutRef = computed(() => {
|
|
144
|
+
// Layout
|
|
145
|
+
// virtual |descrete header | ellpisis => fixed
|
|
146
|
+
// = virtual | maxHeight | ellpisis => fixed
|
|
147
|
+
if (props.virtualScroll || props.flexHeight || props.maxHeight !== undefined || hasEllipsisRef.value) {
|
|
148
|
+
return 'fixed';
|
|
149
|
+
}
|
|
150
|
+
return props.tableLayout;
|
|
151
|
+
});
|
|
137
152
|
const {
|
|
138
153
|
handleTableBodyScroll,
|
|
139
154
|
handleTableHeaderScroll,
|
|
@@ -146,25 +161,22 @@ export default defineComponent({
|
|
|
146
161
|
leftFixedColumnsRef,
|
|
147
162
|
rightFixedColumnsRef,
|
|
148
163
|
fixedColumnLeftMapRef,
|
|
149
|
-
fixedColumnRightMapRef
|
|
164
|
+
fixedColumnRightMapRef,
|
|
165
|
+
xScrollableRef,
|
|
166
|
+
explicitlyScrollableRef
|
|
150
167
|
} = useScroll(props, {
|
|
151
168
|
bodyWidthRef,
|
|
152
169
|
mainTableInstRef,
|
|
153
|
-
mergedCurrentPageRef
|
|
170
|
+
mergedCurrentPageRef,
|
|
171
|
+
maxHeightRef,
|
|
172
|
+
mergedTableLayoutRef
|
|
154
173
|
});
|
|
155
174
|
const {
|
|
156
175
|
localeRef
|
|
157
176
|
} = useLocale('DataTable');
|
|
158
|
-
const mergedTableLayoutRef = computed(() => {
|
|
159
|
-
// Layout
|
|
160
|
-
// virtual |descrete header | ellpisis => fixed
|
|
161
|
-
// = virtual | maxHeight | ellpisis => fixed
|
|
162
|
-
if (props.virtualScroll || props.flexHeight || props.maxHeight !== undefined || hasEllipsisRef.value) {
|
|
163
|
-
return 'fixed';
|
|
164
|
-
}
|
|
165
|
-
return props.tableLayout;
|
|
166
|
-
});
|
|
167
177
|
provide(dataTableInjectionKey, {
|
|
178
|
+
xScrollableRef,
|
|
179
|
+
explicitlyScrollableRef,
|
|
168
180
|
props,
|
|
169
181
|
treeMateRef,
|
|
170
182
|
renderExpandIconRef: toRef(props, 'renderExpandIcon'),
|
|
@@ -236,7 +248,7 @@ export default defineComponent({
|
|
|
236
248
|
}),
|
|
237
249
|
onLoadRef: toRef(props, 'onLoad'),
|
|
238
250
|
mergedTableLayoutRef,
|
|
239
|
-
maxHeightRef
|
|
251
|
+
maxHeightRef,
|
|
240
252
|
minHeightRef: toRef(props, 'minHeight'),
|
|
241
253
|
flexHeightRef: toRef(props, 'flexHeight'),
|
|
242
254
|
headerCheckboxDisabledRef,
|
|
@@ -277,9 +289,7 @@ export default defineComponent({
|
|
|
277
289
|
}
|
|
278
290
|
};
|
|
279
291
|
const cssVarsRef = computed(() => {
|
|
280
|
-
const
|
|
281
|
-
size
|
|
282
|
-
} = props;
|
|
292
|
+
const mergedSize = mergedSizeRef.value;
|
|
283
293
|
const {
|
|
284
294
|
common: {
|
|
285
295
|
cubicBezierEaseInOut
|
|
@@ -328,9 +338,9 @@ export default defineComponent({
|
|
|
328
338
|
tdColorStriped,
|
|
329
339
|
tdColorStripedModal,
|
|
330
340
|
tdColorStripedPopover,
|
|
331
|
-
[createKey('fontSize',
|
|
332
|
-
[createKey('thPadding',
|
|
333
|
-
[createKey('tdPadding',
|
|
341
|
+
[createKey('fontSize', mergedSize)]: fontSize,
|
|
342
|
+
[createKey('thPadding', mergedSize)]: thPadding,
|
|
343
|
+
[createKey('tdPadding', mergedSize)]: tdPadding
|
|
334
344
|
}
|
|
335
345
|
} = themeRef.value;
|
|
336
346
|
return {
|
|
@@ -383,7 +393,7 @@ export default defineComponent({
|
|
|
383
393
|
'--n-th-color-sorting-popover': thColorSortingPopover
|
|
384
394
|
};
|
|
385
395
|
});
|
|
386
|
-
const themeClassHandle = inlineThemeDisabled ? useThemeClass('data-table', computed(() =>
|
|
396
|
+
const themeClassHandle = inlineThemeDisabled ? useThemeClass('data-table', computed(() => mergedSizeRef.value[0]), cssVarsRef, props) : undefined;
|
|
387
397
|
const mergedShowPaginationRef = computed(() => {
|
|
388
398
|
if (!props.pagination) return false;
|
|
389
399
|
if (props.paginateSinglePage) return true;
|
|
@@ -26,5 +26,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
26
26
|
}>;
|
|
27
27
|
flexHeight: import("vue").Ref<boolean, boolean>;
|
|
28
28
|
handleBodyResize: (entry: ResizeObserverEntry) => void;
|
|
29
|
+
scrollX: import("vue").Ref<string | number | undefined, string | number | undefined>;
|
|
29
30
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
30
31
|
export default _default;
|
|
@@ -15,7 +15,8 @@ export default defineComponent({
|
|
|
15
15
|
minHeightRef,
|
|
16
16
|
flexHeightRef,
|
|
17
17
|
virtualScrollHeaderRef,
|
|
18
|
-
syncScrollState
|
|
18
|
+
syncScrollState,
|
|
19
|
+
scrollXRef
|
|
19
20
|
} = inject(dataTableInjectionKey);
|
|
20
21
|
const headerInstRef = ref(null);
|
|
21
22
|
const bodyInstRef = ref(null);
|
|
@@ -87,7 +88,8 @@ export default defineComponent({
|
|
|
87
88
|
bodyInstRef,
|
|
88
89
|
bodyStyle: bodyStyleRef,
|
|
89
90
|
flexHeight: flexHeightRef,
|
|
90
|
-
handleBodyResize
|
|
91
|
+
handleBodyResize,
|
|
92
|
+
scrollX: scrollXRef
|
|
91
93
|
}, exposedMethods);
|
|
92
94
|
},
|
|
93
95
|
render() {
|
|
@@ -2755,11 +2755,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2755
2755
|
} | undefined;
|
|
2756
2756
|
};
|
|
2757
2757
|
}>;
|
|
2758
|
+
mergedRenderEmpty: import("vue").ComputedRef<(() => VNodeChild) | undefined>;
|
|
2758
2759
|
scrollX: import("vue").Ref<string | number | undefined, string | number | undefined>;
|
|
2759
2760
|
cols: import("vue").Ref<ColItem[], ColItem[]>;
|
|
2760
2761
|
loading: import("vue").Ref<boolean, boolean>;
|
|
2761
|
-
|
|
2762
|
-
shouldDisplaySomeTablePart: import("vue").ComputedRef<boolean>;
|
|
2762
|
+
shouldDisplayVirtualList: import("vue").ComputedRef<boolean>;
|
|
2763
2763
|
empty: import("vue").ComputedRef<boolean>;
|
|
2764
2764
|
paginatedDataAndInfo: import("vue").ComputedRef<{
|
|
2765
2765
|
data: {
|
|
@@ -2799,7 +2799,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2799
2799
|
childTriggerColIndex: import("vue").Ref<number, number>;
|
|
2800
2800
|
indent: import("vue").Ref<number, number>;
|
|
2801
2801
|
rowProps: import("vue").Ref<import("../interface").CreateRowProps<import("../interface").InternalRowData> | undefined, import("../interface").CreateRowProps<import("../interface").InternalRowData> | undefined>;
|
|
2802
|
-
maxHeight: import("vue").Ref<string | number | undefined, string | number | undefined>;
|
|
2803
2802
|
loadingKeySet: import("vue").Ref<Set<RowKey>, Set<RowKey>>;
|
|
2804
2803
|
expandable: import("vue").Ref<import("../interface").Expandable<any> | undefined, import("../interface").Expandable<any> | undefined>;
|
|
2805
2804
|
stickyExpandedRows: import("vue").Ref<boolean, boolean>;
|
|
@@ -2820,6 +2819,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2820
2819
|
}) => void;
|
|
2821
2820
|
handleUpdateExpanded: (key: RowKey, tmNode: TmNode | null) => void;
|
|
2822
2821
|
renderCell: import("vue").Ref<((value: any, rowData: object, column: import("../interface").TableBaseColumn) => VNodeChild) | undefined, ((value: any, rowData: object, column: import("../interface").TableBaseColumn) => VNodeChild) | undefined>;
|
|
2822
|
+
explicitlyScrollable: import("vue").Ref<boolean, boolean>;
|
|
2823
|
+
xScrollable: import("vue").Ref<boolean, boolean>;
|
|
2823
2824
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2824
2825
|
onResize: PropType<(e: ResizeObserverEntry) => void>;
|
|
2825
2826
|
showHeader: BooleanConstructor;
|