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
|
@@ -48,12 +48,29 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
48
48
|
props: exports.colorPickerProps,
|
|
49
49
|
slots: Object,
|
|
50
50
|
setup(props, { slots }) {
|
|
51
|
-
|
|
51
|
+
let triggerRef = null;
|
|
52
|
+
function setTriggerRef(el) {
|
|
53
|
+
triggerRef = el;
|
|
54
|
+
}
|
|
52
55
|
let upcomingValue = null;
|
|
53
|
-
const
|
|
56
|
+
const { mergedClsPrefixRef, namespaceRef, inlineThemeDisabled, mergedComponentPropsRef } = (0, _mixins_1.useConfig)(props);
|
|
57
|
+
const formItem = (0, _mixins_1.useFormItem)(props, {
|
|
58
|
+
mergedSize: (NFormItem) => {
|
|
59
|
+
var _a, _b;
|
|
60
|
+
const { size } = props;
|
|
61
|
+
if (size)
|
|
62
|
+
return size;
|
|
63
|
+
const { mergedSize: formItemSize } = NFormItem || {};
|
|
64
|
+
if (formItemSize === null || formItemSize === void 0 ? void 0 : formItemSize.value)
|
|
65
|
+
return formItemSize.value;
|
|
66
|
+
const configSize = (_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.ColorPicker) === null || _b === void 0 ? void 0 : _b.size;
|
|
67
|
+
if (configSize)
|
|
68
|
+
return configSize;
|
|
69
|
+
return 'medium';
|
|
70
|
+
}
|
|
71
|
+
});
|
|
54
72
|
const { mergedSizeRef, mergedDisabledRef } = formItem;
|
|
55
73
|
const { localeRef } = (0, _mixins_1.useLocale)('global');
|
|
56
|
-
const { mergedClsPrefixRef, namespaceRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
57
74
|
const themeRef = (0, _mixins_1.useTheme)('ColorPicker', '-color-picker', index_cssr_1.default, styles_1.colorPickerLight, props, mergedClsPrefixRef);
|
|
58
75
|
(0, vue_1.provide)(context_1.colorPickerInjectionKey, {
|
|
59
76
|
themeRef,
|
|
@@ -406,7 +423,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
406
423
|
return {
|
|
407
424
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
408
425
|
namespace: namespaceRef,
|
|
409
|
-
selfRef,
|
|
410
426
|
hsla: hslaRef,
|
|
411
427
|
rgba: rgbaRef,
|
|
412
428
|
mergedShow: mergedShowRef,
|
|
@@ -415,12 +431,22 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
415
431
|
adjustedTo: (0, _utils_1.useAdjustedTo)(props),
|
|
416
432
|
mergedValue: mergedValueRef,
|
|
417
433
|
handleTriggerClick() {
|
|
434
|
+
if (mergedDisabledRef.value) {
|
|
435
|
+
return;
|
|
436
|
+
}
|
|
418
437
|
doUpdateShow(true);
|
|
419
438
|
},
|
|
439
|
+
setTriggerRef,
|
|
420
440
|
handleClickOutside(e) {
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
441
|
+
if (triggerRef instanceof Element) {
|
|
442
|
+
if (triggerRef.contains((0, seemly_1.getPreciseEventTarget)(e))) {
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
else if (triggerRef) {
|
|
447
|
+
if (triggerRef.$el.contains((0, seemly_1.getPreciseEventTarget)(e))) {
|
|
448
|
+
return;
|
|
449
|
+
}
|
|
424
450
|
}
|
|
425
451
|
doUpdateShow(false);
|
|
426
452
|
},
|
|
@@ -433,27 +459,35 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
433
459
|
render() {
|
|
434
460
|
const { mergedClsPrefix, onRender } = this;
|
|
435
461
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
436
|
-
return ((0, vue_1.h)(
|
|
437
|
-
(
|
|
438
|
-
|
|
439
|
-
(0,
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
?
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
this.handleClickOutside,
|
|
449
|
-
undefined,
|
|
450
|
-
{ capture: true }
|
|
451
|
-
]
|
|
452
|
-
])
|
|
453
|
-
: null
|
|
454
|
-
}))
|
|
462
|
+
return ((0, vue_1.h)(vueuc_1.VBinder, null, {
|
|
463
|
+
default: () => [
|
|
464
|
+
(0, vue_1.h)(vueuc_1.VTarget, null, {
|
|
465
|
+
default: () => (0, _utils_1.resolveWrappedSlotWithProps)(this.$slots.trigger, {
|
|
466
|
+
value: this.mergedValue,
|
|
467
|
+
onClick: this.handleTriggerClick,
|
|
468
|
+
ref: this.setTriggerRef
|
|
469
|
+
}, (children) => {
|
|
470
|
+
const triggerNode = children || ((0, vue_1.h)(ColorPickerTrigger_1.default, { clsPrefix: mergedClsPrefix, value: this.mergedValue, hsla: this.hsla, style: this.cssVars, ref: this.setTriggerRef, disabled: this.mergedDisabled, class: this.themeClass, onClick: this.mergedDisabled
|
|
471
|
+
? undefined
|
|
472
|
+
: this.handleTriggerClick }));
|
|
473
|
+
return triggerNode;
|
|
455
474
|
})
|
|
456
|
-
|
|
457
|
-
|
|
475
|
+
}),
|
|
476
|
+
(0, vue_1.h)(vueuc_1.VFollower, { placement: this.placement, show: this.mergedShow, containerClass: this.namespace, teleportDisabled: this.adjustedTo === _utils_1.useAdjustedTo.tdkey, to: this.adjustedTo }, {
|
|
477
|
+
default: () => ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted }, {
|
|
478
|
+
default: () => this.mergedShow
|
|
479
|
+
? (0, vue_1.withDirectives)(this.renderPanel(), [
|
|
480
|
+
[
|
|
481
|
+
vdirs_1.clickoutside,
|
|
482
|
+
this.handleClickOutside,
|
|
483
|
+
undefined,
|
|
484
|
+
{ capture: true }
|
|
485
|
+
]
|
|
486
|
+
])
|
|
487
|
+
: null
|
|
488
|
+
}))
|
|
489
|
+
})
|
|
490
|
+
]
|
|
491
|
+
}));
|
|
458
492
|
}
|
|
459
493
|
});
|
|
@@ -29,10 +29,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
29
29
|
const { hsla, value, clsPrefix, onClick, disabled } = props;
|
|
30
30
|
const renderLabel = colorPickerSlots.label || renderLabelRef.value;
|
|
31
31
|
return ((0, vue_1.h)("div", { class: [
|
|
32
|
-
`${clsPrefix}-color-picker
|
|
33
|
-
disabled && `${clsPrefix}-color-picker
|
|
32
|
+
`${clsPrefix}-color-picker`,
|
|
33
|
+
disabled && `${clsPrefix}-color-picker--disabled`
|
|
34
34
|
], onClick: disabled ? undefined : onClick },
|
|
35
|
-
(0, vue_1.h)("div", { class: `${clsPrefix}-color-
|
|
35
|
+
(0, vue_1.h)("div", { class: `${clsPrefix}-color-picker__fill` },
|
|
36
36
|
(0, vue_1.h)("div", { class: `${clsPrefix}-color-picker-checkboard` }),
|
|
37
37
|
(0, vue_1.h)("div", { style: {
|
|
38
38
|
position: 'absolute',
|
|
@@ -42,7 +42,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
42
42
|
bottom: 0,
|
|
43
43
|
backgroundColor: hsla ? (0, seemly_1.toHslaString)(hsla) : ''
|
|
44
44
|
} }),
|
|
45
|
-
value && hsla ? ((0, vue_1.h)("div", { class: `${clsPrefix}-color-
|
|
45
|
+
value && hsla ? ((0, vue_1.h)("div", { class: `${clsPrefix}-color-picker__value`, style: {
|
|
46
46
|
color: (0, utils_1.getWCAGContrast)(hsla) ? 'white' : 'black'
|
|
47
47
|
} }, renderLabel ? renderLabel(value) : value)) : null)));
|
|
48
48
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ColorPickerSize = 'small' | 'medium' | 'large';
|
|
@@ -15,14 +15,7 @@ const cssr_1 = require("../../../_utils/cssr");
|
|
|
15
15
|
// --n-height
|
|
16
16
|
// --n-box-shadow
|
|
17
17
|
// --n-divider-color
|
|
18
|
-
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('color-picker', `
|
|
19
|
-
display: inline-block;
|
|
20
|
-
box-sizing: border-box;
|
|
21
|
-
height: var(--n-height);
|
|
22
|
-
font-size: var(--n-font-size);
|
|
23
|
-
width: 100%;
|
|
24
|
-
position: relative;
|
|
25
|
-
`), (0, cssr_1.cB)('color-picker-panel', `
|
|
18
|
+
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('color-picker-panel', `
|
|
26
19
|
margin: 4px 0;
|
|
27
20
|
width: 240px;
|
|
28
21
|
font-size: var(--n-panel-font-size);
|
|
@@ -137,14 +130,18 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('color-picker', `
|
|
|
137
130
|
border-top: 1px solid var(--n-divider-color);
|
|
138
131
|
padding: 8px 12px;
|
|
139
132
|
justify-content: flex-end;
|
|
140
|
-
`, [(0, cssr_1.cB)('button', 'margin-left: 8px;')]), (0, cssr_1.cB)('color-picker
|
|
141
|
-
|
|
142
|
-
height: 100%;
|
|
133
|
+
`, [(0, cssr_1.cB)('button', 'margin-left: 8px;')]), (0, cssr_1.cB)('color-picker', `
|
|
134
|
+
display: inline-block;
|
|
143
135
|
box-sizing: border-box;
|
|
136
|
+
height: var(--n-height);
|
|
137
|
+
font-size: var(--n-font-size);
|
|
138
|
+
width: 100%;
|
|
139
|
+
position: relative;
|
|
140
|
+
cursor: pointer;
|
|
141
|
+
border: var(--n-border);
|
|
144
142
|
border-radius: var(--n-border-radius);
|
|
145
143
|
transition: border-color .3s var(--n-bezier);
|
|
146
|
-
cursor:
|
|
147
|
-
`, [(0, cssr_1.cE)('value', `
|
|
144
|
+
`, [(0, cssr_1.cM)('disabled', 'cursor: not-allowed'), (0, cssr_1.cE)('value', `
|
|
148
145
|
white-space: nowrap;
|
|
149
146
|
position: relative;
|
|
150
147
|
`), (0, cssr_1.cE)('fill', `
|
|
@@ -157,7 +154,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('color-picker', `
|
|
|
157
154
|
right: 4px;
|
|
158
155
|
top: 4px;
|
|
159
156
|
bottom: 4px;
|
|
160
|
-
`), (0, cssr_1.
|
|
157
|
+
`), (0, cssr_1.cB)('color-picker-checkboard', `
|
|
161
158
|
border-radius: var(--n-border-radius);
|
|
162
159
|
`, [(0, cssr_1.c)('&::after', `
|
|
163
160
|
--n-block-size: calc((var(--n-height) - 8px) / 3);
|
|
@@ -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;
|
|
@@ -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/lib/data-table/index.js
CHANGED
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
4
|
};
|
|
@@ -22,4 +8,3 @@ var DataTable_1 = require("./src/DataTable");
|
|
|
22
8
|
Object.defineProperty(exports, "NDataTable", { enumerable: true, get: function () { return __importDefault(DataTable_1).default; } });
|
|
23
9
|
var interface_1 = require("./src/interface");
|
|
24
10
|
Object.defineProperty(exports, "dataTableProps", { enumerable: true, get: function () { return interface_1.dataTableProps; } });
|
|
25
|
-
__exportStar(require("./src/publicTypes"), exports);
|
|
@@ -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("../../pagination").PaginationProps["onUpdate:page"]>;
|
|
110
104
|
readonly onUpdatePage: import("vue").PropType<import("../../pagination").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("../../pagination").PaginationProps["onUpdate:page"]>;
|
|
4379
4367
|
readonly onUpdatePage: import("vue").PropType<import("../../pagination").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;
|
|
@@ -45,8 +45,14 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
const { mergedBorderedRef, mergedClsPrefixRef, inlineThemeDisabled, mergedRtlRef } = (0, _mixins_1.useConfig)(props);
|
|
48
|
+
const { mergedBorderedRef, mergedClsPrefixRef, inlineThemeDisabled, mergedRtlRef, mergedComponentPropsRef } = (0, _mixins_1.useConfig)(props);
|
|
49
49
|
const rtlEnabledRef = (0, _mixins_1.useRtl)('DataTable', mergedRtlRef, mergedClsPrefixRef);
|
|
50
|
+
const mergedSizeRef = (0, vue_1.computed)(() => {
|
|
51
|
+
var _a, _b;
|
|
52
|
+
return (props.size
|
|
53
|
+
|| ((_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)
|
|
54
|
+
|| 'medium');
|
|
55
|
+
});
|
|
50
56
|
const mergedBottomBorderedRef = (0, vue_1.computed)(() => {
|
|
51
57
|
const { bottomBordered } = props;
|
|
52
58
|
// do not add bottom bordered class if bordered is true
|
|
@@ -78,12 +84,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
78
84
|
paginatedDataRef
|
|
79
85
|
});
|
|
80
86
|
const { stickyExpandedRowsRef, mergedExpandedRowKeysRef, renderExpandRef, expandableRef, doUpdateExpandedRowKeys } = (0, use_expand_1.useExpand)(props, treeMateRef);
|
|
81
|
-
const
|
|
82
|
-
bodyWidthRef,
|
|
83
|
-
mainTableInstRef,
|
|
84
|
-
mergedCurrentPageRef
|
|
85
|
-
});
|
|
86
|
-
const { localeRef } = (0, _mixins_1.useLocale)('DataTable');
|
|
87
|
+
const maxHeightRef = (0, vue_1.toRef)(props, 'maxHeight');
|
|
87
88
|
const mergedTableLayoutRef = (0, vue_1.computed)(() => {
|
|
88
89
|
// Layout
|
|
89
90
|
// virtual |descrete header | ellpisis => fixed
|
|
@@ -96,7 +97,17 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
96
97
|
}
|
|
97
98
|
return props.tableLayout;
|
|
98
99
|
});
|
|
100
|
+
const { handleTableBodyScroll, handleTableHeaderScroll, syncScrollState, setHeaderScrollLeft, leftActiveFixedColKeyRef, leftActiveFixedChildrenColKeysRef, rightActiveFixedColKeyRef, rightActiveFixedChildrenColKeysRef, leftFixedColumnsRef, rightFixedColumnsRef, fixedColumnLeftMapRef, fixedColumnRightMapRef, xScrollableRef, explicitlyScrollableRef } = (0, use_scroll_1.useScroll)(props, {
|
|
101
|
+
bodyWidthRef,
|
|
102
|
+
mainTableInstRef,
|
|
103
|
+
mergedCurrentPageRef,
|
|
104
|
+
maxHeightRef,
|
|
105
|
+
mergedTableLayoutRef
|
|
106
|
+
});
|
|
107
|
+
const { localeRef } = (0, _mixins_1.useLocale)('DataTable');
|
|
99
108
|
(0, vue_1.provide)(interface_1.dataTableInjectionKey, {
|
|
109
|
+
xScrollableRef,
|
|
110
|
+
explicitlyScrollableRef,
|
|
100
111
|
props,
|
|
101
112
|
treeMateRef,
|
|
102
113
|
renderExpandIconRef: (0, vue_1.toRef)(props, 'renderExpandIcon'),
|
|
@@ -160,7 +171,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
160
171
|
}),
|
|
161
172
|
onLoadRef: (0, vue_1.toRef)(props, 'onLoad'),
|
|
162
173
|
mergedTableLayoutRef,
|
|
163
|
-
maxHeightRef
|
|
174
|
+
maxHeightRef,
|
|
164
175
|
minHeightRef: (0, vue_1.toRef)(props, 'minHeight'),
|
|
165
176
|
flexHeightRef: (0, vue_1.toRef)(props, 'flexHeight'),
|
|
166
177
|
headerCheckboxDisabledRef,
|
|
@@ -201,8 +212,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
201
212
|
}
|
|
202
213
|
};
|
|
203
214
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
204
|
-
const
|
|
205
|
-
const { common: { cubicBezierEaseInOut }, self: { borderColor, tdColorHover, tdColorSorting, tdColorSortingModal, tdColorSortingPopover, thColorSorting, thColorSortingModal, thColorSortingPopover, thColor, thColorHover, tdColor, tdTextColor, thTextColor, thFontWeight, thButtonColorHover, thIconColor, thIconColorActive, filterSize, borderRadius, lineHeight, tdColorModal, thColorModal, borderColorModal, thColorHoverModal, tdColorHoverModal, borderColorPopover, thColorPopover, tdColorPopover, tdColorHoverPopover, thColorHoverPopover, paginationMargin, emptyPadding, boxShadowAfter, boxShadowBefore, sorterSize, resizableContainerSize, resizableSize, loadingColor, loadingSize, opacityLoading, tdColorStriped, tdColorStripedModal, tdColorStripedPopover, [(0, _utils_1.createKey)('fontSize',
|
|
215
|
+
const mergedSize = mergedSizeRef.value;
|
|
216
|
+
const { common: { cubicBezierEaseInOut }, self: { borderColor, tdColorHover, tdColorSorting, tdColorSortingModal, tdColorSortingPopover, thColorSorting, thColorSortingModal, thColorSortingPopover, thColor, thColorHover, tdColor, tdTextColor, thTextColor, thFontWeight, thButtonColorHover, thIconColor, thIconColorActive, filterSize, borderRadius, lineHeight, tdColorModal, thColorModal, borderColorModal, thColorHoverModal, tdColorHoverModal, borderColorPopover, thColorPopover, tdColorPopover, tdColorHoverPopover, thColorHoverPopover, paginationMargin, emptyPadding, boxShadowAfter, boxShadowBefore, sorterSize, resizableContainerSize, resizableSize, loadingColor, loadingSize, opacityLoading, tdColorStriped, tdColorStripedModal, tdColorStripedPopover, [(0, _utils_1.createKey)('fontSize', mergedSize)]: fontSize, [(0, _utils_1.createKey)('thPadding', mergedSize)]: thPadding, [(0, _utils_1.createKey)('tdPadding', mergedSize)]: tdPadding } } = themeRef.value;
|
|
206
217
|
return {
|
|
207
218
|
'--n-font-size': fontSize,
|
|
208
219
|
'--n-th-padding': thPadding,
|
|
@@ -254,7 +265,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
254
265
|
};
|
|
255
266
|
});
|
|
256
267
|
const themeClassHandle = inlineThemeDisabled
|
|
257
|
-
? (0, _mixins_1.useThemeClass)('data-table', (0, vue_1.computed)(() =>
|
|
268
|
+
? (0, _mixins_1.useThemeClass)('data-table', (0, vue_1.computed)(() => mergedSizeRef.value[0]), cssVarsRef, props)
|
|
258
269
|
: undefined;
|
|
259
270
|
const mergedShowPaginationRef = (0, vue_1.computed)(() => {
|
|
260
271
|
if (!props.pagination)
|