naive-ui 2.43.2 → 2.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +790 -414
- package/dist/index.mjs +790 -414
- package/dist/index.prod.js +1 -1
- package/dist/index.prod.mjs +1 -1
- package/es/_internal/index.d.ts +1 -1
- package/es/_internal/loading/index.d.ts +1 -1
- package/es/_internal/loading/src/Loading.d.ts +26 -18
- package/es/_internal/loading/src/Loading.mjs +9 -9
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +8 -3
- package/es/_internal/scrollbar/src/Scrollbar.mjs +6 -2
- package/es/_internal/select-menu/src/SelectMenu.d.ts +5 -1
- package/es/_internal/select-menu/src/SelectMenu.mjs +18 -8
- package/es/_mixins/use-form-item.d.ts +1 -2
- package/es/auto-complete/src/AutoComplete.d.ts +4 -0
- package/es/auto-complete/src/AutoComplete.mjs +3 -1
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +13 -0
- package/es/breadcrumb/src/BreadcrumbItem.mjs +5 -1
- package/es/button/index.d.ts +1 -0
- package/es/button/src/Button.d.ts +11 -8
- package/es/button/src/Button.mjs +14 -11
- package/es/button/src/public-types.d.ts +4 -0
- package/es/button-group/src/ButtonGroup.d.ts +5 -15
- package/es/button-group/src/ButtonGroup.mjs +1 -4
- package/es/card/index.d.ts +1 -0
- package/es/card/src/Card.d.ts +11 -18
- package/es/card/src/Card.mjs +25 -17
- package/es/card/src/public-types.d.ts +1 -0
- package/es/card/src/styles/index.cssr.mjs +44 -21
- package/es/carousel/src/Carousel.d.ts +1 -1
- package/es/carousel/src/CarouselDots.d.ts +1 -1
- package/es/cascader/index.d.ts +1 -0
- package/es/cascader/src/Cascader.d.ts +8 -1
- package/es/cascader/src/Cascader.mjs +4 -0
- package/es/cascader/src/CascaderMenu.d.ts +1 -0
- package/es/cascader/src/CascaderMenu.mjs +16 -5
- package/es/cascader/src/CascaderOption.d.ts +1 -0
- package/es/cascader/src/CascaderOption.mjs +4 -2
- package/es/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/es/cascader/src/CascaderSelectMenu.mjs +5 -2
- package/es/cascader/src/interface.d.ts +4 -0
- package/es/cascader/src/public-types.d.ts +2 -0
- package/es/cascader/src/public-types.mjs +1 -0
- package/es/checkbox/index.d.ts +1 -0
- package/es/checkbox/src/Checkbox.d.ts +4 -3
- package/es/checkbox/src/Checkbox.mjs +5 -1
- package/es/checkbox/src/public-types.d.ts +1 -0
- package/es/checkbox/src/public-types.mjs +1 -0
- package/es/color-picker/src/ColorPicker.d.ts +7 -2
- package/es/color-picker/src/ColorPicker.mjs +34 -17
- package/es/color-picker/src/ColorPickerTrigger.mjs +3 -3
- package/es/color-picker/src/styles/index.cssr.mjs +11 -14
- package/es/config-provider/src/internal-interface.d.ts +95 -5
- package/es/countdown/src/Countdown.d.ts +1 -1
- package/es/data-table/index.d.ts +1 -1
- package/es/data-table/index.mjs +1 -2
- package/es/data-table/src/DataTable.d.ts +9 -16
- package/es/data-table/src/DataTable.mjs +30 -20
- package/es/data-table/src/MainTable.d.ts +1 -0
- package/es/data-table/src/MainTable.mjs +4 -2
- package/es/data-table/src/TableParts/Body.d.ts +4 -3
- package/es/data-table/src/TableParts/Body.mjs +46 -54
- package/es/data-table/src/interface.d.ts +5 -7
- package/es/data-table/src/interface.mjs +1 -4
- package/{lib/data-table/src/publicTypes.d.ts → es/data-table/src/public-types.d.ts} +3 -0
- package/es/data-table/src/public-types.mjs +1 -0
- package/es/data-table/src/use-scroll.d.ts +5 -1
- package/es/data-table/src/use-scroll.mjs +16 -4
- package/es/data-table/src/utils.d.ts +1 -1
- package/es/date-picker/src/DatePicker.d.ts +6 -0
- package/es/date-picker/src/DatePicker.mjs +2 -0
- package/es/date-picker/src/panel/date.d.ts +10 -0
- package/es/date-picker/src/panel/date.mjs +2 -0
- package/es/date-picker/src/panel/daterange.d.ts +10 -0
- package/es/date-picker/src/panel/daterange.mjs +4 -0
- package/es/date-picker/src/panel/datetime.d.ts +10 -0
- package/es/date-picker/src/panel/datetime.mjs +2 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +10 -0
- package/es/date-picker/src/panel/datetimerange.mjs +4 -0
- package/es/date-picker/src/panel/month.d.ts +10 -0
- package/es/date-picker/src/panel/month.mjs +6 -0
- package/es/date-picker/src/panel/monthrange.d.ts +10 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +34 -1
- package/es/date-picker/src/panel/panelHeader.mjs +21 -2
- package/es/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +4 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +4 -0
- package/es/date-picker/src/panel/use-panel-common.mjs +4 -0
- package/es/date-picker/src/props.d.ts +2 -0
- package/es/date-picker/src/props.mjs +2 -0
- package/es/descriptions/index.d.ts +1 -0
- package/es/descriptions/src/Descriptions.d.ts +5 -13
- package/es/descriptions/src/Descriptions.mjs +16 -14
- package/es/descriptions/src/public-types.d.ts +1 -0
- package/es/descriptions/src/public-types.mjs +1 -0
- package/es/dialog/src/DialogProvider.d.ts +40 -16
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/dropdown/index.d.ts +1 -0
- package/es/dropdown/src/Dropdown.d.ts +8 -17
- package/es/dropdown/src/Dropdown.mjs +9 -7
- package/es/dropdown/src/DropdownMenu.d.ts +1 -1
- package/es/dropdown/src/DropdownOption.d.ts +1 -1
- package/es/dropdown/src/public-types.d.ts +1 -0
- package/es/dropdown/src/public-types.mjs +1 -0
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/es/dynamic-tags/index.d.ts +1 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +5 -13
- package/es/dynamic-tags/src/DynamicTags.mjs +11 -8
- package/es/dynamic-tags/src/public-types.d.ts +1 -0
- package/es/dynamic-tags/src/public-types.mjs +1 -0
- package/es/float-button/src/FloatButton.d.ts +1 -1
- package/es/form/src/Form.d.ts +5 -4
- package/es/form/src/Form.mjs +11 -1
- package/es/form/src/FormItem.d.ts +5 -4
- package/es/form/src/FormItem.mjs +16 -13
- package/es/form/src/FormItemCol.d.ts +3 -1
- package/es/form/src/FormItemGridItem.d.ts +6 -3
- package/es/form/src/FormItemGridItem.mjs +1 -0
- package/es/form/src/FormItemRow.d.ts +2 -0
- package/es/form/src/interface.d.ts +8 -2
- package/es/form/src/public-types.d.ts +2 -0
- package/es/form/src/utils.d.ts +3 -2
- package/es/form/src/utils.mjs +7 -0
- package/es/input/index.d.ts +1 -0
- package/es/input/src/Input.d.ts +5 -4
- package/es/input/src/InputGroupLabel.d.ts +4 -4
- package/es/input/src/InputGroupLabel.mjs +16 -10
- package/es/input/src/interface.d.ts +0 -1
- package/es/input/src/public-types.d.ts +1 -0
- package/es/input/src/public-types.mjs +1 -0
- package/es/legacy-transfer/src/TransferList.d.ts +1 -0
- package/es/legacy-transfer/src/TransferList.mjs +17 -5
- package/es/log/index.d.ts +1 -0
- package/es/log/src/Log.d.ts +4 -0
- package/es/log/src/Log.mjs +3 -1
- package/es/log/src/LogLoader.d.ts +4 -0
- package/es/log/src/LogLoader.mjs +4 -3
- package/es/log/src/public-types.d.ts +2 -0
- package/es/log/src/public-types.mjs +1 -0
- package/es/marquee/src/Marquee.mjs +5 -3
- package/es/mention/src/Mention.d.ts +5 -1
- package/es/mention/src/Mention.mjs +3 -1
- package/es/menu/src/MenuOptionContent.d.ts +1 -1
- package/es/message/index.d.ts +1 -0
- package/es/message/src/Message.d.ts +3 -0
- package/es/message/src/Message.mjs +4 -4
- package/es/message/src/MessageEnvironment.d.ts +2 -0
- package/es/message/src/MessageEnvironment.mjs +1 -0
- package/es/message/src/MessageProvider.d.ts +1 -1
- package/es/message/src/message-props.d.ts +2 -0
- package/es/message/src/message-props.mjs +1 -0
- package/es/message/src/public-types.d.ts +2 -0
- package/es/message/src/public-types.mjs +1 -0
- package/es/message/src/types.d.ts +2 -0
- package/es/modal/src/BodyWrapper.d.ts +5 -9
- package/es/modal/src/Modal.d.ts +7 -13
- package/es/modal/src/ModalEnvironment.d.ts +5 -9
- package/es/modal/src/composables.mjs +31 -4
- package/es/modal/src/presetProps.d.ts +3 -5
- package/es/notification/src/NotificationProvider.d.ts +3 -3
- package/es/number-animation/src/NumberAnimation.d.ts +2 -2
- package/es/pagination/index.d.ts +1 -0
- package/es/pagination/src/Pagination.d.ts +11 -16
- package/es/pagination/src/Pagination.mjs +12 -13
- package/es/pagination/src/interface.d.ts +0 -1
- package/es/pagination/src/public-types.d.ts +1 -0
- package/es/pagination/src/public-types.mjs +1 -0
- package/es/popconfirm/src/Popconfirm.d.ts +4 -4
- package/es/popover/src/Popover.d.ts +4 -4
- package/es/popover/src/PopoverBody.d.ts +1 -1
- package/es/popselect/index.d.ts +1 -0
- package/es/popselect/src/Popselect.d.ts +41 -47
- package/es/popselect/src/Popselect.mjs +4 -2
- package/es/popselect/src/PopselectPanel.d.ts +8 -16
- package/es/popselect/src/PopselectPanel.mjs +12 -7
- package/es/popselect/src/interface.d.ts +0 -1
- package/es/popselect/src/public-types.d.ts +1 -0
- package/es/popselect/src/public-types.mjs +1 -0
- package/es/radio/index.d.ts +1 -0
- package/es/radio/src/Radio.d.ts +3 -3
- package/es/radio/src/RadioButton.d.ts +3 -3
- package/es/radio/src/public-types.d.ts +1 -0
- package/es/radio/src/public-types.mjs +1 -0
- package/es/radio/src/use-radio.d.ts +4 -3
- package/es/radio/src/use-radio.mjs +8 -1
- package/es/rate/index.d.ts +1 -0
- package/es/rate/src/Rate.d.ts +4 -13
- package/es/rate/src/Rate.mjs +19 -9
- package/es/rate/src/public-types.d.ts +1 -0
- package/es/rate/src/public-types.mjs +1 -0
- package/es/result/index.d.ts +1 -0
- package/es/result/src/Result.d.ts +4 -13
- package/es/result/src/Result.mjs +9 -7
- package/es/result/src/public-types.d.ts +1 -0
- package/es/result/src/public-types.mjs +1 -0
- package/es/select/index.d.ts +1 -0
- package/es/select/src/Select.d.ts +25 -8
- package/es/select/src/Select.mjs +14 -2
- package/es/select/src/interface.d.ts +0 -1
- package/es/select/src/public-types.d.ts +1 -0
- package/es/select/src/public-types.mjs +1 -0
- package/es/skeleton/index.d.ts +1 -0
- package/es/skeleton/src/Skeleton.d.ts +4 -3
- package/es/skeleton/src/Skeleton.mjs +9 -4
- package/es/skeleton/src/public-types.d.ts +1 -0
- package/es/skeleton/src/public-types.mjs +1 -0
- package/es/space/index.d.ts +1 -0
- package/es/space/src/Space.d.ts +4 -13
- package/es/space/src/Space.mjs +8 -8
- package/es/space/src/public-types.d.ts +1 -0
- package/es/space/src/public-types.mjs +1 -0
- package/es/spin/src/Spin.d.ts +52 -6
- package/es/spin/src/Spin.mjs +5 -4
- package/es/switch/index.d.ts +1 -0
- package/es/switch/src/Switch.d.ts +7 -14
- package/es/switch/src/Switch.mjs +18 -8
- package/es/switch/src/public-types.d.ts +3 -0
- package/es/switch/src/public-types.mjs +1 -0
- package/es/table/index.d.ts +1 -0
- package/es/table/src/Table.d.ts +4 -13
- package/es/table/src/Table.mjs +9 -9
- package/es/table/src/public-types.d.ts +1 -0
- package/es/table/src/public-types.mjs +1 -0
- package/es/tabs/index.d.ts +1 -0
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/Tabs.d.ts +9 -18
- package/es/tabs/src/Tabs.mjs +13 -8
- package/es/tabs/src/public-types.d.ts +1 -0
- package/es/tabs/src/public-types.mjs +1 -0
- package/es/tag/index.d.ts +1 -0
- package/es/tag/src/Tag.d.ts +4 -4
- package/es/tag/src/Tag.mjs +8 -4
- package/es/tag/src/common-props.d.ts +2 -1
- package/es/tag/src/public-types.d.ts +1 -0
- package/es/tag/src/public-types.mjs +1 -0
- package/es/time-picker/index.d.ts +1 -0
- package/es/time-picker/src/TimePicker.d.ts +5 -4
- package/es/time-picker/src/interface.d.ts +0 -1
- package/es/time-picker/src/public-types.d.ts +1 -0
- package/es/time-picker/src/public-types.mjs +1 -0
- package/es/tooltip/src/Tooltip.d.ts +4 -4
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/transfer/src/TransferList.mjs +12 -2
- package/es/tree/index.d.ts +1 -0
- package/es/tree/src/Tree.d.ts +5 -0
- package/es/tree/src/Tree.mjs +25 -11
- package/es/tree/src/TreeNodeSwitcher.mjs +4 -3
- package/es/tree/src/interface.d.ts +2 -0
- package/es/tree/src/public-types.d.ts +2 -0
- package/es/tree/src/public-types.mjs +1 -0
- package/es/tree-select/src/TreeSelect.d.ts +5 -0
- package/es/tree-select/src/TreeSelect.mjs +16 -5
- package/es/upload/src/Upload.d.ts +4 -1
- package/es/upload/src/Upload.mjs +5 -2
- package/es/upload/src/UploadFile.mjs +3 -1
- package/es/upload/src/interface.d.ts +4 -1
- package/es/upload/src/public-types.d.ts +4 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/virtual-list/src/VirtualList.d.ts +1 -1
- package/es/watermark/src/Watermark.d.ts +2 -2
- package/lib/_internal/index.d.ts +1 -1
- package/lib/_internal/loading/index.d.ts +1 -1
- package/lib/_internal/loading/src/Loading.d.ts +26 -18
- package/lib/_internal/loading/src/Loading.js +11 -8
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +8 -3
- package/lib/_internal/scrollbar/src/Scrollbar.js +8 -3
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +5 -1
- package/lib/_internal/select-menu/src/SelectMenu.js +14 -7
- package/lib/_mixins/use-form-item.d.ts +1 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +4 -0
- package/lib/auto-complete/src/AutoComplete.js +2 -2
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +13 -0
- package/lib/breadcrumb/src/BreadcrumbItem.js +6 -2
- package/lib/button/index.d.ts +1 -0
- package/lib/button/src/Button.d.ts +11 -8
- package/lib/button/src/Button.js +8 -5
- package/lib/button/src/public-types.d.ts +4 -0
- package/lib/button-group/src/ButtonGroup.d.ts +5 -15
- package/lib/button-group/src/ButtonGroup.js +1 -4
- package/lib/card/index.d.ts +1 -0
- package/lib/card/src/Card.d.ts +11 -18
- package/lib/card/src/Card.js +17 -10
- package/lib/card/src/public-types.d.ts +1 -0
- package/lib/card/src/styles/index.cssr.js +44 -21
- package/lib/carousel/src/Carousel.d.ts +1 -1
- package/lib/carousel/src/CarouselDots.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -0
- package/lib/cascader/src/Cascader.d.ts +8 -1
- package/lib/cascader/src/Cascader.js +3 -1
- package/lib/cascader/src/CascaderMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderMenu.js +12 -4
- package/lib/cascader/src/CascaderOption.d.ts +1 -0
- package/lib/cascader/src/CascaderOption.js +3 -2
- package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderSelectMenu.js +3 -3
- package/lib/cascader/src/interface.d.ts +4 -0
- package/lib/cascader/src/public-types.d.ts +2 -0
- package/lib/cascader/src/public-types.js +2 -0
- package/lib/checkbox/index.d.ts +1 -0
- package/lib/checkbox/src/Checkbox.d.ts +4 -3
- package/lib/checkbox/src/Checkbox.js +5 -1
- package/lib/checkbox/src/public-types.d.ts +1 -0
- package/lib/checkbox/src/public-types.js +2 -0
- package/lib/color-picker/src/ColorPicker.d.ts +7 -2
- package/lib/color-picker/src/ColorPicker.js +46 -26
- package/lib/color-picker/src/ColorPickerTrigger.js +4 -4
- package/lib/color-picker/src/styles/index.cssr.js +11 -14
- package/lib/config-provider/src/internal-interface.d.ts +95 -5
- package/lib/countdown/src/Countdown.d.ts +1 -1
- package/lib/data-table/index.d.ts +1 -1
- package/lib/data-table/index.js +0 -15
- package/lib/data-table/src/DataTable.d.ts +9 -16
- package/lib/data-table/src/DataTable.js +22 -11
- package/lib/data-table/src/MainTable.d.ts +1 -0
- package/lib/data-table/src/MainTable.js +2 -2
- package/lib/data-table/src/TableParts/Body.d.ts +4 -3
- package/lib/data-table/src/TableParts/Body.js +56 -59
- package/lib/data-table/src/interface.d.ts +5 -7
- package/lib/data-table/src/interface.js +1 -1
- package/{es/data-table/src/publicTypes.d.ts → lib/data-table/src/public-types.d.ts} +3 -0
- package/lib/data-table/src/public-types.js +2 -0
- package/lib/data-table/src/use-scroll.d.ts +5 -1
- package/lib/data-table/src/use-scroll.js +16 -5
- package/lib/data-table/src/utils.d.ts +1 -1
- package/lib/date-picker/src/DatePicker.d.ts +6 -0
- package/lib/date-picker/src/DatePicker.js +2 -0
- package/lib/date-picker/src/panel/date.d.ts +10 -0
- package/lib/date-picker/src/panel/date.js +1 -1
- package/lib/date-picker/src/panel/daterange.d.ts +10 -0
- package/lib/date-picker/src/panel/daterange.js +2 -2
- package/lib/date-picker/src/panel/datetime.d.ts +10 -0
- package/lib/date-picker/src/panel/datetime.js +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +10 -0
- package/lib/date-picker/src/panel/datetimerange.js +2 -2
- package/lib/date-picker/src/panel/month.d.ts +10 -0
- package/lib/date-picker/src/panel/month.js +7 -0
- package/lib/date-picker/src/panel/monthrange.d.ts +10 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +34 -1
- package/lib/date-picker/src/panel/panelHeader.js +20 -3
- package/lib/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +4 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +4 -0
- package/lib/date-picker/src/panel/use-panel-common.js +4 -0
- package/lib/date-picker/src/props.d.ts +2 -0
- package/lib/date-picker/src/props.js +1 -1
- package/lib/descriptions/index.d.ts +1 -0
- package/lib/descriptions/src/Descriptions.d.ts +5 -13
- package/lib/descriptions/src/Descriptions.js +17 -12
- package/lib/descriptions/src/public-types.d.ts +1 -0
- package/lib/descriptions/src/public-types.js +2 -0
- package/lib/dialog/src/DialogProvider.d.ts +40 -16
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/dropdown/index.d.ts +1 -0
- package/lib/dropdown/src/Dropdown.d.ts +8 -17
- package/lib/dropdown/src/Dropdown.js +9 -7
- package/lib/dropdown/src/DropdownMenu.d.ts +1 -1
- package/lib/dropdown/src/DropdownOption.d.ts +1 -1
- package/lib/dropdown/src/public-types.d.ts +1 -0
- package/lib/dropdown/src/public-types.js +2 -0
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/lib/dynamic-tags/index.d.ts +1 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +5 -13
- package/lib/dynamic-tags/src/DynamicTags.js +12 -8
- package/lib/dynamic-tags/src/public-types.d.ts +1 -0
- package/lib/dynamic-tags/src/public-types.js +2 -0
- package/lib/float-button/src/FloatButton.d.ts +1 -1
- package/lib/form/src/Form.d.ts +5 -4
- package/lib/form/src/Form.js +11 -1
- package/lib/form/src/FormItem.d.ts +5 -4
- package/lib/form/src/FormItem.js +17 -14
- package/lib/form/src/FormItemCol.d.ts +3 -1
- package/lib/form/src/FormItemGridItem.d.ts +6 -3
- package/lib/form/src/FormItemGridItem.js +1 -0
- package/lib/form/src/FormItemRow.d.ts +2 -0
- package/lib/form/src/interface.d.ts +8 -2
- package/lib/form/src/public-types.d.ts +2 -0
- package/lib/form/src/utils.d.ts +3 -2
- package/lib/form/src/utils.js +6 -0
- package/lib/input/index.d.ts +1 -0
- package/lib/input/src/Input.d.ts +5 -4
- package/lib/input/src/InputGroupLabel.d.ts +4 -4
- package/lib/input/src/InputGroupLabel.js +16 -7
- package/lib/input/src/interface.d.ts +0 -1
- package/lib/input/src/public-types.d.ts +1 -0
- package/lib/input/src/public-types.js +2 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferList.js +13 -1
- package/lib/log/index.d.ts +1 -0
- package/lib/log/src/Log.d.ts +4 -0
- package/lib/log/src/Log.js +2 -2
- package/lib/log/src/LogLoader.d.ts +4 -0
- package/lib/log/src/LogLoader.js +3 -2
- package/lib/log/src/public-types.d.ts +2 -0
- package/lib/log/src/public-types.js +2 -0
- package/lib/marquee/src/Marquee.js +3 -2
- package/lib/mention/src/Mention.d.ts +5 -1
- package/lib/mention/src/Mention.js +2 -2
- package/lib/menu/src/MenuOptionContent.d.ts +1 -1
- package/lib/message/index.d.ts +1 -0
- package/lib/message/src/Message.d.ts +3 -0
- package/lib/message/src/Message.js +3 -4
- package/lib/message/src/MessageEnvironment.d.ts +2 -0
- package/lib/message/src/MessageEnvironment.js +1 -1
- package/lib/message/src/MessageProvider.d.ts +1 -1
- package/lib/message/src/message-props.d.ts +2 -0
- package/lib/message/src/message-props.js +1 -0
- package/lib/message/src/public-types.d.ts +2 -0
- package/lib/message/src/public-types.js +2 -0
- package/lib/message/src/types.d.ts +2 -0
- package/lib/modal/src/BodyWrapper.d.ts +5 -9
- package/lib/modal/src/Modal.d.ts +7 -13
- package/lib/modal/src/ModalEnvironment.d.ts +5 -9
- package/lib/modal/src/composables.js +28 -4
- package/lib/modal/src/presetProps.d.ts +3 -5
- package/lib/notification/src/NotificationProvider.d.ts +3 -3
- package/lib/number-animation/src/NumberAnimation.d.ts +2 -2
- package/lib/pagination/index.d.ts +1 -0
- package/lib/pagination/src/Pagination.d.ts +11 -16
- package/lib/pagination/src/Pagination.js +14 -12
- package/lib/pagination/src/interface.d.ts +0 -1
- package/lib/pagination/src/public-types.d.ts +1 -0
- package/lib/pagination/src/public-types.js +2 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +4 -4
- package/lib/popover/src/Popover.d.ts +4 -4
- package/lib/popover/src/PopoverBody.d.ts +1 -1
- package/lib/popselect/index.d.ts +1 -0
- package/lib/popselect/src/Popselect.d.ts +41 -47
- package/lib/popselect/src/Popselect.js +2 -2
- package/lib/popselect/src/PopselectPanel.d.ts +8 -16
- package/lib/popselect/src/PopselectPanel.js +12 -7
- package/lib/popselect/src/interface.d.ts +0 -1
- package/lib/popselect/src/public-types.d.ts +1 -0
- package/lib/popselect/src/public-types.js +2 -0
- package/lib/radio/index.d.ts +1 -0
- package/lib/radio/src/Radio.d.ts +3 -3
- package/lib/radio/src/RadioButton.d.ts +3 -3
- package/lib/radio/src/public-types.d.ts +1 -0
- package/lib/radio/src/public-types.js +2 -0
- package/lib/radio/src/use-radio.d.ts +4 -3
- package/lib/radio/src/use-radio.js +6 -1
- package/lib/rate/index.d.ts +1 -0
- package/lib/rate/src/Rate.d.ts +4 -13
- package/lib/rate/src/Rate.js +18 -7
- package/lib/rate/src/public-types.d.ts +1 -0
- package/lib/rate/src/public-types.js +2 -0
- package/lib/result/index.d.ts +1 -0
- package/lib/result/src/Result.d.ts +4 -13
- package/lib/result/src/Result.js +10 -7
- package/lib/result/src/public-types.d.ts +1 -0
- package/lib/result/src/public-types.js +2 -0
- package/lib/select/index.d.ts +1 -0
- package/lib/select/src/Select.d.ts +25 -8
- package/lib/select/src/Select.js +10 -4
- package/lib/select/src/interface.d.ts +0 -1
- package/lib/select/src/public-types.d.ts +1 -0
- package/lib/select/src/public-types.js +2 -0
- package/lib/skeleton/index.d.ts +1 -0
- package/lib/skeleton/src/Skeleton.d.ts +4 -3
- package/lib/skeleton/src/Skeleton.js +9 -4
- package/lib/skeleton/src/public-types.d.ts +1 -0
- package/lib/skeleton/src/public-types.js +2 -0
- package/lib/space/index.d.ts +1 -0
- package/lib/space/src/Space.d.ts +4 -13
- package/lib/space/src/Space.js +7 -6
- package/lib/space/src/public-types.d.ts +1 -0
- package/lib/space/src/public-types.js +2 -0
- package/lib/spin/src/Spin.d.ts +52 -6
- package/lib/spin/src/Spin.js +5 -4
- package/lib/switch/index.d.ts +1 -0
- package/lib/switch/src/Switch.d.ts +7 -14
- package/lib/switch/src/Switch.js +18 -8
- package/lib/switch/src/public-types.d.ts +3 -0
- package/lib/switch/src/public-types.js +2 -0
- package/lib/table/index.d.ts +1 -0
- package/lib/table/src/Table.d.ts +4 -13
- package/lib/table/src/Table.js +8 -7
- package/lib/table/src/public-types.d.ts +1 -0
- package/lib/table/src/public-types.js +2 -0
- package/lib/tabs/index.d.ts +1 -0
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/Tabs.d.ts +9 -18
- package/lib/tabs/src/Tabs.js +14 -8
- package/lib/tabs/src/public-types.d.ts +1 -0
- package/lib/tabs/src/public-types.js +2 -0
- package/lib/tag/index.d.ts +1 -0
- package/lib/tag/src/Tag.d.ts +4 -4
- package/lib/tag/src/Tag.js +9 -4
- package/lib/tag/src/common-props.d.ts +2 -1
- package/lib/tag/src/public-types.d.ts +1 -0
- package/lib/tag/src/public-types.js +2 -0
- package/lib/time-picker/index.d.ts +1 -0
- package/lib/time-picker/src/TimePicker.d.ts +5 -4
- package/lib/time-picker/src/interface.d.ts +0 -1
- package/lib/time-picker/src/public-types.d.ts +1 -0
- package/lib/time-picker/src/public-types.js +2 -0
- package/lib/tooltip/src/Tooltip.d.ts +4 -4
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/transfer/src/TransferList.js +9 -1
- package/lib/tree/index.d.ts +1 -0
- package/lib/tree/src/Tree.d.ts +5 -0
- package/lib/tree/src/Tree.js +20 -9
- package/lib/tree/src/TreeNodeSwitcher.js +2 -2
- package/lib/tree/src/interface.d.ts +2 -0
- package/lib/tree/src/public-types.d.ts +2 -0
- package/lib/tree/src/public-types.js +2 -0
- package/lib/tree-select/src/TreeSelect.d.ts +5 -0
- package/lib/tree-select/src/TreeSelect.js +13 -6
- package/lib/upload/src/Upload.d.ts +4 -1
- package/lib/upload/src/Upload.js +2 -2
- package/lib/upload/src/UploadFile.js +1 -1
- package/lib/upload/src/interface.d.ts +4 -1
- package/lib/upload/src/public-types.d.ts +4 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/src/VirtualList.d.ts +1 -1
- package/lib/watermark/src/Watermark.d.ts +2 -2
- package/package.json +5 -3
- package/web-types.json +232 -39
- package/es/button/src/interface.d.ts +0 -2
- package/lib/button/src/interface.d.ts +0 -2
- /package/es/button/src/{interface.mjs → public-types.mjs} +0 -0
- /package/es/{data-table/src/publicTypes.mjs → card/src/public-types.mjs} +0 -0
- /package/lib/button/src/{interface.js → public-types.js} +0 -0
- /package/lib/{data-table/src/publicTypes.js → card/src/public-types.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/checkbox/index.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ export type { CheckboxProps } from './src/Checkbox';
|
|
|
3
3
|
export { checkboxGroupProps, default as NCheckboxGroup } from './src/CheckboxGroup';
|
|
4
4
|
export type { CheckboxGroupProps } from './src/CheckboxGroup';
|
|
5
5
|
export type { CheckboxInst } from './src/interface';
|
|
6
|
+
export type * from './src/public-types';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
3
3
|
import type { CheckboxInst, OnUpdateChecked } from './interface';
|
|
4
|
+
import type { CheckboxSize } from './public-types';
|
|
4
5
|
export declare const checkboxProps: {
|
|
5
|
-
size: PropType<
|
|
6
|
+
size: PropType<CheckboxSize>;
|
|
6
7
|
checked: {
|
|
7
8
|
type: PropType<boolean | string | number | undefined>;
|
|
8
9
|
default: undefined;
|
|
@@ -127,7 +128,7 @@ export declare const checkboxProps: {
|
|
|
127
128
|
};
|
|
128
129
|
export type CheckboxProps = ExtractPublicPropTypes<typeof checkboxProps>;
|
|
129
130
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
130
|
-
size: PropType<
|
|
131
|
+
size: PropType<CheckboxSize>;
|
|
131
132
|
checked: {
|
|
132
133
|
type: PropType<boolean | string | number | undefined>;
|
|
133
134
|
default: undefined;
|
|
@@ -326,7 +327,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
326
327
|
themeClass: import("vue").Ref<string, string> | undefined;
|
|
327
328
|
onRender: (() => void) | undefined;
|
|
328
329
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
329
|
-
size: PropType<
|
|
330
|
+
size: PropType<CheckboxSize>;
|
|
330
331
|
checked: {
|
|
331
332
|
type: PropType<boolean | string | number | undefined>;
|
|
332
333
|
default: undefined;
|
|
@@ -63,7 +63,8 @@ export default defineComponent({
|
|
|
63
63
|
const {
|
|
64
64
|
mergedClsPrefixRef,
|
|
65
65
|
inlineThemeDisabled,
|
|
66
|
-
mergedRtlRef
|
|
66
|
+
mergedRtlRef,
|
|
67
|
+
mergedComponentPropsRef
|
|
67
68
|
} = useConfig(props);
|
|
68
69
|
const uncontrolledCheckedRef = ref(props.defaultChecked);
|
|
69
70
|
const controlledCheckedRef = toRef(props, 'checked');
|
|
@@ -81,6 +82,7 @@ export default defineComponent({
|
|
|
81
82
|
});
|
|
82
83
|
const formItem = useFormItem(props, {
|
|
83
84
|
mergedSize(NFormItem) {
|
|
85
|
+
var _a, _b;
|
|
84
86
|
const {
|
|
85
87
|
size
|
|
86
88
|
} = props;
|
|
@@ -99,6 +101,8 @@ export default defineComponent({
|
|
|
99
101
|
} = NFormItem;
|
|
100
102
|
if (mergedSize !== undefined) return mergedSize.value;
|
|
101
103
|
}
|
|
104
|
+
const configSize = (_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.Checkbox) === null || _b === void 0 ? void 0 : _b.size;
|
|
105
|
+
if (configSize) return configSize;
|
|
102
106
|
return 'medium';
|
|
103
107
|
},
|
|
104
108
|
mergedDisabled(NFormItem) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CheckboxSize = 'small' | 'medium' | 'large';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HSLA, RGBA } from 'seemly';
|
|
2
|
-
import type { PropType, Ref, SlotsType, VNode } from 'vue';
|
|
2
|
+
import type { ComponentPublicInstance, PropType, Ref, SlotsType, VNode } from 'vue';
|
|
3
3
|
import type { FollowerPlacement } from 'vueuc';
|
|
4
4
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
5
5
|
import type { OnClear, OnUpdateValue, RenderLabel } from './interface';
|
|
@@ -939,6 +939,11 @@ export interface ColorPickerSlots {
|
|
|
939
939
|
default?: () => VNode[];
|
|
940
940
|
label?: (color: string | null) => VNode[];
|
|
941
941
|
action?: () => VNode[];
|
|
942
|
+
trigger?: (props: {
|
|
943
|
+
value: string | null;
|
|
944
|
+
onClick: () => void;
|
|
945
|
+
ref: (el: any) => void;
|
|
946
|
+
}) => VNode[];
|
|
942
947
|
}
|
|
943
948
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
944
949
|
readonly value: PropType<string | null>;
|
|
@@ -1872,7 +1877,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1872
1877
|
}>, {
|
|
1873
1878
|
mergedClsPrefix: Ref<string, string>;
|
|
1874
1879
|
namespace: import("vue").ComputedRef<string | undefined>;
|
|
1875
|
-
selfRef: Ref<HTMLElement | null, HTMLElement | null>;
|
|
1876
1880
|
hsla: import("vue").ComputedRef<HSLA | null>;
|
|
1877
1881
|
rgba: import("vue").ComputedRef<RGBA | null>;
|
|
1878
1882
|
mergedShow: import("vue").ComputedRef<boolean>;
|
|
@@ -1881,6 +1885,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1881
1885
|
adjustedTo: import("vue").ComputedRef<string | HTMLElement>;
|
|
1882
1886
|
mergedValue: import("vue").ComputedRef<string | null>;
|
|
1883
1887
|
handleTriggerClick(): void;
|
|
1888
|
+
setTriggerRef: (el: Element | ComponentPublicInstance | null) => void;
|
|
1884
1889
|
handleClickOutside(e: MouseEvent): void;
|
|
1885
1890
|
renderPanel: () => VNode;
|
|
1886
1891
|
cssVars: import("vue").ComputedRef<{
|
|
@@ -4,7 +4,7 @@ import { useIsMounted, useMergedState } from 'vooks';
|
|
|
4
4
|
import { computed, defineComponent, h, nextTick, provide, ref, toRef, Transition, watch, watchEffect, withDirectives } from 'vue';
|
|
5
5
|
import { VBinder, VFollower, VTarget } from 'vueuc';
|
|
6
6
|
import { useConfig, useFormItem, useLocale, useTheme, useThemeClass } from "../../_mixins/index.mjs";
|
|
7
|
-
import { call, createKey, useAdjustedTo } from "../../_utils/index.mjs";
|
|
7
|
+
import { call, createKey, resolveWrappedSlotWithProps, useAdjustedTo } from "../../_utils/index.mjs";
|
|
8
8
|
import { NButton } from "../../button/index.mjs";
|
|
9
9
|
import { colorPickerLight } from "../styles/index.mjs";
|
|
10
10
|
import AlphaSlider from "./AlphaSlider.mjs";
|
|
@@ -67,7 +67,10 @@ export default defineComponent({
|
|
|
67
67
|
setup(props, {
|
|
68
68
|
slots
|
|
69
69
|
}) {
|
|
70
|
-
|
|
70
|
+
let triggerRef = null;
|
|
71
|
+
function setTriggerRef(el) {
|
|
72
|
+
triggerRef = el;
|
|
73
|
+
}
|
|
71
74
|
let upcomingValue = null;
|
|
72
75
|
const formItem = useFormItem(props);
|
|
73
76
|
const {
|
|
@@ -552,7 +555,6 @@ export default defineComponent({
|
|
|
552
555
|
return {
|
|
553
556
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
554
557
|
namespace: namespaceRef,
|
|
555
|
-
selfRef,
|
|
556
558
|
hsla: hslaRef,
|
|
557
559
|
rgba: rgbaRef,
|
|
558
560
|
mergedShow: mergedShowRef,
|
|
@@ -561,12 +563,21 @@ export default defineComponent({
|
|
|
561
563
|
adjustedTo: useAdjustedTo(props),
|
|
562
564
|
mergedValue: mergedValueRef,
|
|
563
565
|
handleTriggerClick() {
|
|
566
|
+
if (mergedDisabledRef.value) {
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
564
569
|
doUpdateShow(true);
|
|
565
570
|
},
|
|
571
|
+
setTriggerRef,
|
|
566
572
|
handleClickOutside(e) {
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
573
|
+
if (triggerRef instanceof Element) {
|
|
574
|
+
if (triggerRef.contains(getPreciseEventTarget(e))) {
|
|
575
|
+
return;
|
|
576
|
+
}
|
|
577
|
+
} else if (triggerRef) {
|
|
578
|
+
if (triggerRef.$el.contains(getPreciseEventTarget(e))) {
|
|
579
|
+
return;
|
|
580
|
+
}
|
|
570
581
|
}
|
|
571
582
|
doUpdateShow(false);
|
|
572
583
|
},
|
|
@@ -582,18 +593,24 @@ export default defineComponent({
|
|
|
582
593
|
onRender
|
|
583
594
|
} = this;
|
|
584
595
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
585
|
-
return h(
|
|
586
|
-
class: [this.themeClass, `${mergedClsPrefix}-color-picker`],
|
|
587
|
-
ref: "selfRef",
|
|
588
|
-
style: this.cssVars
|
|
589
|
-
}, h(VBinder, null, {
|
|
596
|
+
return h(VBinder, null, {
|
|
590
597
|
default: () => [h(VTarget, null, {
|
|
591
|
-
default: () =>
|
|
592
|
-
clsPrefix: mergedClsPrefix,
|
|
598
|
+
default: () => resolveWrappedSlotWithProps(this.$slots.trigger, {
|
|
593
599
|
value: this.mergedValue,
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
600
|
+
onClick: this.handleTriggerClick,
|
|
601
|
+
ref: this.setTriggerRef
|
|
602
|
+
}, children => {
|
|
603
|
+
const triggerNode = children || h(ColorPickerTrigger, {
|
|
604
|
+
clsPrefix: mergedClsPrefix,
|
|
605
|
+
value: this.mergedValue,
|
|
606
|
+
hsla: this.hsla,
|
|
607
|
+
style: this.cssVars,
|
|
608
|
+
ref: this.setTriggerRef,
|
|
609
|
+
disabled: this.mergedDisabled,
|
|
610
|
+
class: this.themeClass,
|
|
611
|
+
onClick: this.mergedDisabled ? undefined : this.handleTriggerClick
|
|
612
|
+
});
|
|
613
|
+
return triggerNode;
|
|
597
614
|
})
|
|
598
615
|
}), h(VFollower, {
|
|
599
616
|
placement: this.placement,
|
|
@@ -611,6 +628,6 @@ export default defineComponent({
|
|
|
611
628
|
}]]) : null
|
|
612
629
|
})
|
|
613
630
|
})]
|
|
614
|
-
})
|
|
631
|
+
});
|
|
615
632
|
}
|
|
616
633
|
});
|
|
@@ -36,10 +36,10 @@ export default defineComponent({
|
|
|
36
36
|
} = props;
|
|
37
37
|
const renderLabel = colorPickerSlots.label || renderLabelRef.value;
|
|
38
38
|
return h("div", {
|
|
39
|
-
class: [`${clsPrefix}-color-picker
|
|
39
|
+
class: [`${clsPrefix}-color-picker`, disabled && `${clsPrefix}-color-picker--disabled`],
|
|
40
40
|
onClick: disabled ? undefined : onClick
|
|
41
41
|
}, h("div", {
|
|
42
|
-
class: `${clsPrefix}-color-
|
|
42
|
+
class: `${clsPrefix}-color-picker__fill`
|
|
43
43
|
}, h("div", {
|
|
44
44
|
class: `${clsPrefix}-color-picker-checkboard`
|
|
45
45
|
}), h("div", {
|
|
@@ -52,7 +52,7 @@ export default defineComponent({
|
|
|
52
52
|
backgroundColor: hsla ? toHslaString(hsla) : ''
|
|
53
53
|
}
|
|
54
54
|
}), value && hsla ? h("div", {
|
|
55
|
-
class: `${clsPrefix}-color-
|
|
55
|
+
class: `${clsPrefix}-color-picker__value`,
|
|
56
56
|
style: {
|
|
57
57
|
color: getWCAGContrast(hsla) ? 'white' : 'black'
|
|
58
58
|
}
|
|
@@ -10,14 +10,7 @@ import { c, cB, cE, cM } from "../../../_utils/cssr/index.mjs";
|
|
|
10
10
|
// --n-height
|
|
11
11
|
// --n-box-shadow
|
|
12
12
|
// --n-divider-color
|
|
13
|
-
export default c([cB('color-picker', `
|
|
14
|
-
display: inline-block;
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
height: var(--n-height);
|
|
17
|
-
font-size: var(--n-font-size);
|
|
18
|
-
width: 100%;
|
|
19
|
-
position: relative;
|
|
20
|
-
`), cB('color-picker-panel', `
|
|
13
|
+
export default c([cB('color-picker-panel', `
|
|
21
14
|
margin: 4px 0;
|
|
22
15
|
width: 240px;
|
|
23
16
|
font-size: var(--n-panel-font-size);
|
|
@@ -132,14 +125,18 @@ export default c([cB('color-picker', `
|
|
|
132
125
|
border-top: 1px solid var(--n-divider-color);
|
|
133
126
|
padding: 8px 12px;
|
|
134
127
|
justify-content: flex-end;
|
|
135
|
-
`, [cB('button', 'margin-left: 8px;')]), cB('color-picker
|
|
136
|
-
|
|
137
|
-
height: 100%;
|
|
128
|
+
`, [cB('button', 'margin-left: 8px;')]), cB('color-picker', `
|
|
129
|
+
display: inline-block;
|
|
138
130
|
box-sizing: border-box;
|
|
131
|
+
height: var(--n-height);
|
|
132
|
+
font-size: var(--n-font-size);
|
|
133
|
+
width: 100%;
|
|
134
|
+
position: relative;
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
border: var(--n-border);
|
|
139
137
|
border-radius: var(--n-border-radius);
|
|
140
138
|
transition: border-color .3s var(--n-bezier);
|
|
141
|
-
cursor:
|
|
142
|
-
`, [cE('value', `
|
|
139
|
+
`, [cM('disabled', 'cursor: not-allowed'), cE('value', `
|
|
143
140
|
white-space: nowrap;
|
|
144
141
|
position: relative;
|
|
145
142
|
`), cE('fill', `
|
|
@@ -152,7 +149,7 @@ export default c([cB('color-picker', `
|
|
|
152
149
|
right: 4px;
|
|
153
150
|
top: 4px;
|
|
154
151
|
bottom: 4px;
|
|
155
|
-
`),
|
|
152
|
+
`), cB('color-picker-checkboard', `
|
|
156
153
|
border-radius: var(--n-border-radius);
|
|
157
154
|
`, [c('&::after', `
|
|
158
155
|
--n-block-size: calc((var(--n-height) - 8px) / 3);
|
|
@@ -13,27 +13,33 @@ import type { BackTopTheme } from '../../back-top/styles';
|
|
|
13
13
|
import type { BadgeTheme } from '../../badge/styles';
|
|
14
14
|
import type { BreadcrumbTheme } from '../../breadcrumb/styles';
|
|
15
15
|
import type { ButtonGroupTheme } from '../../button-group/styles/light';
|
|
16
|
-
import type {
|
|
16
|
+
import type { ButtonSize } from '../../button/src/public-types';
|
|
17
17
|
import type { ButtonTheme } from '../../button/styles';
|
|
18
18
|
import type { CalendarTheme } from '../../calendar/styles';
|
|
19
|
+
import type { CardSize } from '../../card/src/public-types';
|
|
19
20
|
import type { CardTheme } from '../../card/styles';
|
|
20
21
|
import type { CarouselTheme } from '../../carousel/styles';
|
|
21
22
|
import type { CascaderTheme } from '../../cascader/styles';
|
|
23
|
+
import type { CheckboxSize } from '../../checkbox/src/public-types';
|
|
22
24
|
import type { CheckboxTheme } from '../../checkbox/styles';
|
|
23
25
|
import type { CodeTheme } from '../../code/styles';
|
|
24
26
|
import type { CollapseTransitionTheme } from '../../collapse-transition/styles';
|
|
25
27
|
import type { CollapseTheme } from '../../collapse/styles';
|
|
26
28
|
import type { ColorPickerTheme } from '../../color-picker/styles';
|
|
27
29
|
import type { DataTableRenderFilter, DataTableRenderSorter } from '../../data-table';
|
|
30
|
+
import type { DataTableSize } from '../../data-table/src/public-types';
|
|
28
31
|
import type { DataTableTheme } from '../../data-table/styles';
|
|
29
32
|
import type { DatePickerTheme } from '../../date-picker/styles';
|
|
33
|
+
import type { DescriptionsSize } from '../../descriptions/src/public-types';
|
|
30
34
|
import type { DescriptionsTheme } from '../../descriptions/styles';
|
|
31
35
|
import type { IconPlacement } from '../../dialog/src/interface';
|
|
32
36
|
import type { DialogTheme } from '../../dialog/styles';
|
|
33
37
|
import type { DividerTheme } from '../../divider/styles';
|
|
34
38
|
import type { DrawerTheme } from '../../drawer/styles';
|
|
39
|
+
import type { DropdownSize } from '../../dropdown/src/public-types';
|
|
35
40
|
import type { DropdownTheme } from '../../dropdown/styles';
|
|
36
41
|
import type { DynamicInputTheme } from '../../dynamic-input/styles';
|
|
42
|
+
import type { DynamicTagsSize } from '../../dynamic-tags/src/public-types';
|
|
37
43
|
import type { DynamicTagsTheme } from '../../dynamic-tags/styles';
|
|
38
44
|
import type { ElementTheme } from '../../element/styles';
|
|
39
45
|
import type { EllipsisTheme } from '../../ellipsis/styles';
|
|
@@ -43,6 +49,7 @@ import type { EquationTheme } from '../../equation/styles';
|
|
|
43
49
|
import type { FlexTheme } from '../../flex/styles';
|
|
44
50
|
import type { FloatButtonGroupTheme } from '../../float-button-group/styles';
|
|
45
51
|
import type { FloatButtonTheme } from '../../float-button/styles';
|
|
52
|
+
import type { FormSize } from '../../form/src/public-types';
|
|
46
53
|
import type { FormTheme } from '../../form/styles';
|
|
47
54
|
import type { GradientTextTheme } from '../../gradient-text/styles';
|
|
48
55
|
import type { HeatmapTheme } from '../../heatmap/styles';
|
|
@@ -51,7 +58,7 @@ import type { IconTheme } from '../../icon/styles';
|
|
|
51
58
|
import type { ImageTheme } from '../../image/styles';
|
|
52
59
|
import type { InputNumberTheme } from '../../input-number/styles';
|
|
53
60
|
import type { InputOtpTheme } from '../../input-otp/styles';
|
|
54
|
-
import type {
|
|
61
|
+
import type { InputSize } from '../../input/src/public-types';
|
|
55
62
|
import type { InputTheme } from '../../input/styles';
|
|
56
63
|
import type { LayoutTheme } from '../../layout/styles';
|
|
57
64
|
import type { RowTheme } from '../../legacy-grid/styles';
|
|
@@ -67,30 +74,41 @@ import type { MessageTheme } from '../../message/styles';
|
|
|
67
74
|
import type { ModalTheme } from '../../modal/styles';
|
|
68
75
|
import type { NotificationTheme } from '../../notification/styles';
|
|
69
76
|
import type { PageHeaderTheme } from '../../page-header/styles';
|
|
77
|
+
import type { PaginationSize } from '../../pagination/src/public-types';
|
|
70
78
|
import type { PaginationTheme } from '../../pagination/styles';
|
|
71
79
|
import type { PopconfirmTheme } from '../../popconfirm/styles';
|
|
72
80
|
import type { PopoverTheme } from '../../popover/styles';
|
|
81
|
+
import type { PopselectSize } from '../../popselect/src/public-types';
|
|
73
82
|
import type { PopselectTheme } from '../../popselect/styles';
|
|
74
83
|
import type { ProgressTheme } from '../../progress/styles';
|
|
75
84
|
import type { QrCodeTheme } from '../../qr-code/styles';
|
|
85
|
+
import type { RadioSize } from '../../radio/src/public-types';
|
|
76
86
|
import type { RadioTheme } from '../../radio/styles';
|
|
87
|
+
import type { RateSize } from '../../rate/src/public-types';
|
|
77
88
|
import type { RateTheme } from '../../rate/styles';
|
|
89
|
+
import type { ResultSize } from '../../result/src/public-types';
|
|
78
90
|
import type { ResultTheme } from '../../result/styles';
|
|
79
|
-
import type {
|
|
91
|
+
import type { SelectSize } from '../../select/src/public-types';
|
|
80
92
|
import type { SelectTheme } from '../../select/styles';
|
|
93
|
+
import type { SkeletonSize } from '../../skeleton/src/public-types';
|
|
81
94
|
import type { SkeletonTheme } from '../../skeleton/styles';
|
|
82
95
|
import type { SliderTheme } from '../../slider/styles';
|
|
96
|
+
import type { SpaceSize } from '../../space/src/public-types';
|
|
83
97
|
import type { SpaceTheme } from '../../space/styles';
|
|
84
98
|
import type { SpinTheme } from '../../spin/styles';
|
|
85
99
|
import type { SplitTheme } from '../../split/styles';
|
|
86
100
|
import type { StatisticTheme } from '../../statistic/styles';
|
|
87
101
|
import type { StepsTheme } from '../../steps/styles';
|
|
102
|
+
import type { SwitchSize } from '../../switch/src/public-types';
|
|
88
103
|
import type { SwitchTheme } from '../../switch/styles';
|
|
104
|
+
import type { TableSize } from '../../table/src/public-types';
|
|
89
105
|
import type { TableTheme } from '../../table/styles';
|
|
106
|
+
import type { TabsSize } from '../../tabs/src/public-types';
|
|
90
107
|
import type { TabsTheme } from '../../tabs/styles';
|
|
108
|
+
import type { TagSize } from '../../tag/src/public-types';
|
|
91
109
|
import type { TagTheme } from '../../tag/styles';
|
|
92
110
|
import type { ThingTheme } from '../../thing/styles';
|
|
93
|
-
import type {
|
|
111
|
+
import type { TimePickerSize } from '../../time-picker/src/public-types';
|
|
94
112
|
import type { TimePickerTheme } from '../../time-picker/styles';
|
|
95
113
|
import type { TimelineTheme } from '../../timeline/styles';
|
|
96
114
|
import type { TooltipTheme } from '../../tooltip/styles';
|
|
@@ -145,6 +163,7 @@ export interface GlobalThemeWithoutCommon {
|
|
|
145
163
|
Image?: ImageTheme;
|
|
146
164
|
Input?: InputTheme;
|
|
147
165
|
InputNumber?: InputNumberTheme;
|
|
166
|
+
InputOtp?: InputOtpTheme;
|
|
148
167
|
Layout?: LayoutTheme;
|
|
149
168
|
LegacyTransfer?: LegacyTransferTheme;
|
|
150
169
|
List?: ListTheme;
|
|
@@ -193,10 +212,22 @@ export interface GlobalThemeWithoutCommon {
|
|
|
193
212
|
Heatmap?: HeatmapTheme;
|
|
194
213
|
InternalSelectMenu?: InternalSelectMenuTheme;
|
|
195
214
|
InternalSelection?: InternalSelectionTheme;
|
|
196
|
-
InputOtp?: InputOtpTheme;
|
|
197
215
|
}
|
|
198
216
|
export interface GlobalComponentConfig {
|
|
217
|
+
Cascader?: {
|
|
218
|
+
renderEmpty?: () => VNodeChild;
|
|
219
|
+
};
|
|
220
|
+
Button?: {
|
|
221
|
+
size?: ButtonSize;
|
|
222
|
+
};
|
|
223
|
+
Card?: {
|
|
224
|
+
size?: CardSize;
|
|
225
|
+
};
|
|
226
|
+
Checkbox?: {
|
|
227
|
+
size?: CheckboxSize;
|
|
228
|
+
};
|
|
199
229
|
Pagination?: {
|
|
230
|
+
size?: PaginationSize;
|
|
200
231
|
inputSize?: InputSize;
|
|
201
232
|
selectSize?: SelectSize;
|
|
202
233
|
};
|
|
@@ -207,13 +238,72 @@ export interface GlobalComponentConfig {
|
|
|
207
238
|
iconPlacement?: IconPlacement;
|
|
208
239
|
};
|
|
209
240
|
DataTable?: {
|
|
241
|
+
size?: DataTableSize;
|
|
210
242
|
renderFilter?: DataTableRenderFilter;
|
|
211
243
|
renderSorter?: DataTableRenderSorter;
|
|
244
|
+
renderEmpty?: () => VNodeChild;
|
|
245
|
+
};
|
|
246
|
+
Descriptions?: {
|
|
247
|
+
size?: DescriptionsSize;
|
|
248
|
+
};
|
|
249
|
+
Dropdown?: {
|
|
250
|
+
size?: DropdownSize;
|
|
212
251
|
};
|
|
213
252
|
DynamicInput?: {
|
|
214
253
|
buttonSize?: ButtonSize;
|
|
215
254
|
};
|
|
255
|
+
DynamicTags?: {
|
|
256
|
+
size?: DynamicTagsSize;
|
|
257
|
+
};
|
|
216
258
|
Empty?: Pick<EmptyProps, 'description' | 'renderIcon'>;
|
|
259
|
+
Form?: {
|
|
260
|
+
size?: FormSize;
|
|
261
|
+
};
|
|
262
|
+
Input?: {
|
|
263
|
+
size?: InputSize;
|
|
264
|
+
};
|
|
265
|
+
Select?: {
|
|
266
|
+
renderEmpty?: () => VNodeChild;
|
|
267
|
+
};
|
|
268
|
+
Popselect?: {
|
|
269
|
+
size?: PopselectSize;
|
|
270
|
+
};
|
|
271
|
+
Radio?: {
|
|
272
|
+
size?: RadioSize;
|
|
273
|
+
};
|
|
274
|
+
Rate?: {
|
|
275
|
+
size?: RateSize;
|
|
276
|
+
};
|
|
277
|
+
Result?: {
|
|
278
|
+
size?: ResultSize;
|
|
279
|
+
};
|
|
280
|
+
Skeleton?: {
|
|
281
|
+
size?: SkeletonSize;
|
|
282
|
+
};
|
|
283
|
+
Space?: {
|
|
284
|
+
size?: SpaceSize;
|
|
285
|
+
};
|
|
286
|
+
Switch?: {
|
|
287
|
+
size?: SwitchSize;
|
|
288
|
+
};
|
|
289
|
+
Table?: {
|
|
290
|
+
size?: TableSize;
|
|
291
|
+
};
|
|
292
|
+
Tabs?: {
|
|
293
|
+
size?: TabsSize;
|
|
294
|
+
};
|
|
295
|
+
Tag?: {
|
|
296
|
+
size?: TagSize;
|
|
297
|
+
};
|
|
298
|
+
Transfer?: {
|
|
299
|
+
renderEmpty?: () => VNodeChild;
|
|
300
|
+
};
|
|
301
|
+
Tree?: {
|
|
302
|
+
renderEmpty?: () => VNodeChild;
|
|
303
|
+
};
|
|
304
|
+
TreeSelect?: {
|
|
305
|
+
renderEmpty?: () => VNodeChild;
|
|
306
|
+
};
|
|
217
307
|
}
|
|
218
308
|
export interface GlobalIconConfig {
|
|
219
309
|
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
|
@@ -46,7 +46,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
46
46
|
};
|
|
47
47
|
readonly singleColumn: BooleanConstructor;
|
|
48
48
|
readonly size: {
|
|
49
|
-
readonly type: import("vue").PropType<"
|
|
49
|
+
readonly type: import("vue").PropType<import("./public-types").DataTableSize>;
|
|
50
50
|
readonly default: "medium";
|
|
51
51
|
};
|
|
52
52
|
readonly remote: BooleanConstructor;
|
|
@@ -99,12 +99,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
99
99
|
readonly scrollbarProps: import("vue").PropType<import("../..").ScrollbarProps>;
|
|
100
100
|
readonly renderCell: import("vue").PropType<(value: any, rowData: object, column: import("./interface").TableBaseColumn) => import("vue").VNodeChild>;
|
|
101
101
|
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>;
|
|
102
|
+
readonly spinProps: import("vue").PropType<import("./public-types").DataTableSpinProps>;
|
|
103
|
+
readonly getCsvCell: import("vue").PropType<import("./public-types").DataTableGetCsvCell>;
|
|
104
|
+
readonly getCsvHeader: import("vue").PropType<import("./public-types").DataTableGetCsvHeader>;
|
|
108
105
|
readonly onLoad: import("vue").PropType<import("./interface").DataTableOnLoad>;
|
|
109
106
|
readonly 'onUpdate:page': import("vue").PropType<import("../..").PaginationProps["onUpdate:page"]>;
|
|
110
107
|
readonly onUpdatePage: import("vue").PropType<import("../..").PaginationProps["onUpdate:page"]>;
|
|
@@ -4315,7 +4312,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4315
4312
|
};
|
|
4316
4313
|
readonly singleColumn: BooleanConstructor;
|
|
4317
4314
|
readonly size: {
|
|
4318
|
-
readonly type: import("vue").PropType<"
|
|
4315
|
+
readonly type: import("vue").PropType<import("./public-types").DataTableSize>;
|
|
4319
4316
|
readonly default: "medium";
|
|
4320
4317
|
};
|
|
4321
4318
|
readonly remote: BooleanConstructor;
|
|
@@ -4368,12 +4365,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4368
4365
|
readonly scrollbarProps: import("vue").PropType<import("../..").ScrollbarProps>;
|
|
4369
4366
|
readonly renderCell: import("vue").PropType<(value: any, rowData: object, column: import("./interface").TableBaseColumn) => import("vue").VNodeChild>;
|
|
4370
4367
|
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>;
|
|
4368
|
+
readonly spinProps: import("vue").PropType<import("./public-types").DataTableSpinProps>;
|
|
4369
|
+
readonly getCsvCell: import("vue").PropType<import("./public-types").DataTableGetCsvCell>;
|
|
4370
|
+
readonly getCsvHeader: import("vue").PropType<import("./public-types").DataTableGetCsvHeader>;
|
|
4377
4371
|
readonly onLoad: import("vue").PropType<import("./interface").DataTableOnLoad>;
|
|
4378
4372
|
readonly 'onUpdate:page': import("vue").PropType<import("../..").PaginationProps["onUpdate:page"]>;
|
|
4379
4373
|
readonly onUpdatePage: import("vue").PropType<import("../..").PaginationProps["onUpdate:page"]>;
|
|
@@ -7109,9 +7103,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7109
7103
|
}>;
|
|
7110
7104
|
}>>>;
|
|
7111
7105
|
}>> & Readonly<{}>, {
|
|
7112
|
-
readonly size: "
|
|
7106
|
+
readonly size: import("./public-types").DataTableSize;
|
|
7113
7107
|
readonly data: import("./interface").RowData[];
|
|
7114
|
-
readonly spinProps: import("../../_internal").BaseLoadingExposedProps;
|
|
7115
7108
|
readonly bordered: boolean | undefined;
|
|
7116
7109
|
readonly loading: boolean;
|
|
7117
7110
|
readonly allowCheckingNotLoaded: boolean;
|