naive-ui 2.20.2 → 2.21.2
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/es/_internal/scrollbar/src/ScrollBar.d.ts +1 -0
- package/es/_internal/scrollbar/src/ScrollBar.js +9 -4
- package/es/_internal/select-menu/src/SelectMenu.d.ts +5 -1
- package/es/_internal/selection/src/Selection.d.ts +5 -1
- package/es/_internal/suffix/src/Suffix.d.ts +5 -2
- package/es/_internal/suffix/src/Suffix.js +4 -1
- package/es/_styles/common/dark.js +2 -1
- package/es/_styles/common/light.d.ts +4 -0
- package/es/_styles/common/light.js +5 -2
- package/es/_styles/global/index.cssr.js +9 -4
- package/es/_styles/transitions/icon-switch.cssr.js +6 -2
- package/es/_utils/naive/extract-public-props.d.ts +1 -1
- package/es/alert/src/Alert.d.ts +4 -0
- package/es/auto-complete/src/AutoComplete.d.ts +9 -1
- package/es/auto-complete/src/AutoComplete.js +5 -2
- package/es/avatar/src/Avatar.d.ts +8 -1
- package/es/avatar/src/Avatar.js +41 -9
- package/es/avatar/src/styles/index.cssr.js +2 -2
- package/es/button/src/Button.d.ts +149 -52
- package/es/button/src/Button.js +128 -56
- package/es/button/src/interface.d.ts +1 -1
- package/es/button/src/styles/button.cssr.js +1 -0
- package/es/button/styles/dark.js +3 -0
- package/es/button/styles/light.d.ts +14 -5
- package/es/button/styles/light.js +10 -3
- package/es/calendar/src/Calendar.d.ts +144 -50
- package/es/calendar/styles/light.d.ts +14 -5
- package/es/card/src/Card.d.ts +4 -0
- package/es/cascader/src/Cascader.d.ts +4 -0
- package/es/cascader/src/CascaderOption.d.ts +4 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +4 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +4 -0
- package/es/checkbox/src/Checkbox.d.ts +9 -5
- package/es/checkbox/src/Checkbox.js +8 -9
- package/es/collapse/src/Collapse.d.ts +4 -0
- package/es/color-picker/src/ColorInputUnit.d.ts +18 -5
- package/es/color-picker/src/ColorPicker.d.ts +126 -45
- package/es/color-picker/styles/light.d.ts +14 -5
- package/es/data-table/src/DataTable.d.ts +184 -51
- package/es/data-table/src/DataTable.js +11 -6
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +21 -5
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +22 -6
- package/es/data-table/src/TableParts/Body.d.ts +26 -6
- package/es/data-table/src/TableParts/Body.js +77 -39
- package/es/data-table/src/TableParts/BodyCheckbox.js +1 -1
- package/es/data-table/src/TableParts/Cell.d.ts +42 -10
- package/es/data-table/src/TableParts/Header.d.ts +21 -5
- package/es/data-table/src/TableParts/Header.js +1 -1
- package/es/data-table/src/interface.d.ts +4 -1
- package/es/data-table/src/styles/index.cssr.js +9 -10
- package/es/data-table/src/use-table-data.js +3 -3
- package/es/data-table/styles/light.d.ts +20 -5
- package/es/data-table/styles/light.js +4 -4
- package/es/date-picker/src/DatePicker.d.ts +329 -127
- package/es/date-picker/src/DatePicker.js +7 -17
- package/es/date-picker/src/config.d.ts +9 -0
- package/es/date-picker/src/config.js +8 -0
- package/es/date-picker/src/panel/date.d.ts +53 -20
- package/es/date-picker/src/panel/daterange.d.ts +52 -19
- package/es/date-picker/src/panel/datetime.d.ts +53 -20
- package/es/date-picker/src/panel/datetimerange.d.ts +52 -19
- package/es/date-picker/src/panel/month.d.ts +88 -61
- package/es/date-picker/src/panel/month.js +9 -6
- package/es/date-picker/src/panel/use-calendar.d.ts +61 -28
- package/es/date-picker/src/panel/use-calendar.js +9 -2
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +50 -17
- package/es/date-picker/src/panel/use-dual-calendar.js +4 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +48 -15
- package/es/date-picker/styles/_common.d.ts +2 -0
- package/es/date-picker/styles/_common.js +3 -1
- package/es/date-picker/styles/light.d.ts +32 -10
- package/es/dialog/src/Dialog.d.ts +105 -38
- package/es/dialog/src/DialogEnvironment.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +2 -2
- package/es/dialog/styles/light.d.ts +14 -5
- package/es/drawer/src/Drawer.d.ts +4 -0
- package/es/drawer/src/DrawerBodyWrapper.d.ts +4 -0
- package/es/drawer/src/DrawerContent.d.ts +4 -0
- package/es/dropdown/index.d.ts +1 -1
- package/es/dropdown/src/Dropdown.d.ts +11 -7
- package/es/dropdown/src/DropdownGroup.d.ts +2 -3
- package/es/dropdown/src/DropdownGroupHeader.js +3 -3
- package/es/dropdown/src/DropdownMenu.d.ts +3 -4
- package/es/dropdown/src/DropdownMenu.js +5 -4
- package/es/dropdown/src/DropdownOption.d.ts +3 -4
- package/es/dropdown/src/DropdownOption.js +5 -4
- package/es/dropdown/src/DropdownRenderOption.d.ts +2 -3
- package/es/dropdown/src/interface.d.ts +9 -30
- package/es/dynamic-input/src/DynamicInput.d.ts +144 -50
- package/es/dynamic-input/src/InputPreset.d.ts +18 -5
- package/es/dynamic-input/src/PairPreset.d.ts +18 -5
- package/es/dynamic-input/styles/light.d.ts +14 -5
- package/es/dynamic-tags/src/DynamicTags.d.ts +145 -50
- package/es/dynamic-tags/styles/light.d.ts +14 -5
- package/es/ellipsis/src/Ellipsis.d.ts +4 -0
- package/es/form/src/FormItemGridItem.d.ts +2 -2
- package/es/global-style/src/GlobalStyle.js +2 -0
- package/es/grid/src/Grid.js +1 -0
- package/es/grid/src/GridItem.d.ts +2 -2
- package/es/image/src/ImagePreview.d.ts +1 -0
- package/es/image/src/ImagePreview.js +51 -4
- package/es/image/src/interface.d.ts +6 -0
- package/es/image/src/interface.js +1 -0
- package/es/input/src/Input.d.ts +5 -0
- package/es/input/src/Input.js +9 -3
- package/es/input/src/interface.d.ts +1 -0
- package/es/input-number/src/InputNumber.d.ts +179 -50
- package/es/input-number/src/InputNumber.js +22 -6
- package/es/input-number/styles/light.d.ts +14 -5
- package/es/layout/src/Layout.d.ts +8 -0
- package/es/layout/src/LayoutContent.d.ts +4 -0
- package/es/layout/src/LayoutSider.d.ts +4 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +1 -0
- package/es/locales/utils/index.d.ts +8 -0
- package/es/locales/utils/index.js +4 -0
- package/es/log/src/Log.d.ts +10 -25
- package/es/log/src/Log.js +2 -11
- package/es/log/src/LogLine.d.ts +1 -0
- package/es/log/src/LogLine.js +12 -10
- package/es/mention/src/Mention.d.ts +5 -0
- package/es/menu/index.d.ts +1 -1
- package/es/menu/src/Menu.d.ts +33 -8
- package/es/menu/src/Menu.js +32 -10
- package/es/menu/src/MenuDivider.d.ts +2 -0
- package/es/menu/src/MenuDivider.js +11 -0
- package/es/menu/src/MenuOption.d.ts +12 -2
- package/es/menu/src/MenuOptionContent.d.ts +7 -2
- package/es/menu/src/Submenu.d.ts +21 -17
- package/es/menu/src/interface.d.ts +23 -4
- package/es/menu/src/styles/index.cssr.js +6 -1
- package/es/menu/src/utils.d.ts +4 -2
- package/es/menu/src/utils.js +16 -2
- package/es/menu/styles/light.d.ts +2 -0
- package/es/menu/styles/light.js +3 -2
- package/es/modal/src/BodyWrapper.d.ts +34 -12
- package/es/modal/src/Modal.d.ts +174 -66
- package/es/modal/src/presetProps.d.ts +1 -1
- package/es/modal/styles/light.d.ts +14 -5
- package/es/notification/src/NotificationContainer.d.ts +11 -0
- package/es/notification/src/NotificationContainer.js +7 -2
- package/es/notification/src/NotificationProvider.d.ts +17 -0
- package/es/notification/src/NotificationProvider.js +38 -3
- package/es/notification/src/styles/index.cssr.d.ts +2 -1
- package/es/notification/src/styles/index.cssr.js +41 -12
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +21 -12
- package/es/pagination/src/Pagination.js +16 -6
- package/es/pagination/src/interface.d.ts +2 -0
- package/es/popconfirm/src/Popconfirm.d.ts +151 -57
- package/es/popconfirm/src/PopconfirmPanel.d.ts +2 -2
- package/es/popconfirm/styles/light.d.ts +14 -5
- package/es/popover/src/Popover.d.ts +6 -6
- package/es/popover/src/Popover.js +2 -5
- package/es/popover/src/PopoverBody.d.ts +5 -5
- package/es/popover/src/PopoverBody.js +2 -1
- package/es/popover/src/styles/index.cssr.js +0 -1
- package/es/popselect/src/Popselect.d.ts +9 -5
- package/es/popselect/src/PopselectPanel.d.ts +4 -0
- package/es/radio/src/Radio.d.ts +3 -0
- package/es/radio/src/RadioButton.d.ts +3 -0
- package/es/radio/src/use-radio.d.ts +2 -0
- package/es/radio/src/use-radio.js +6 -3
- package/es/select/src/Select.d.ts +4 -0
- package/es/slider/src/Slider.d.ts +71 -91
- package/es/slider/src/Slider.js +342 -583
- package/es/slider/src/interface.d.ts +1 -1
- package/es/slider/src/styles/index.cssr.js +86 -16
- package/es/slider/src/utils.d.ts +10 -1
- package/es/slider/src/utils.js +9 -0
- package/es/slider/styles/_common.d.ts +1 -0
- package/es/slider/styles/_common.js +1 -0
- package/es/slider/styles/light.d.ts +1 -0
- package/es/space/src/Space.js +2 -0
- package/es/steps/src/Step.js +1 -1
- package/es/table/src/Table.d.ts +35 -0
- package/es/table/src/Table.js +8 -4
- package/es/table/src/styles/index.cssr.js +1 -1
- package/es/table/styles/light.d.ts +3 -0
- package/es/table/styles/light.js +2 -2
- package/es/tabs/index.d.ts +2 -0
- package/es/tabs/index.js +1 -0
- package/es/tabs/src/Tab.d.ts +35 -18
- package/es/tabs/src/Tab.js +11 -12
- package/es/tabs/src/Tabs.js +58 -18
- package/es/tag/src/Tag.d.ts +8 -3
- package/es/tag/src/Tag.js +10 -2
- package/es/tag/src/styles/index.cssr.js +10 -5
- package/es/tag/src/styles/rtl.cssr.js +7 -1
- package/es/theme-editor/src/ThemeEditor.d.ts +4 -0
- package/es/time-picker/src/Panel.d.ts +18 -5
- package/es/time-picker/src/TimePicker.d.ts +145 -50
- package/es/time-picker/src/TimePicker.js +3 -0
- package/es/time-picker/styles/light.d.ts +14 -5
- package/es/tooltip/src/Tooltip.d.ts +9 -5
- package/es/transfer/src/Transfer.d.ts +146 -52
- package/es/transfer/src/TransferFilter.d.ts +18 -5
- package/es/transfer/src/TransferList.d.ts +18 -5
- package/es/transfer/src/TransferListItem.d.ts +18 -5
- package/es/transfer/styles/light.d.ts +14 -5
- package/es/tree/src/Tree.d.ts +10 -6
- package/es/tree/src/TreeNodeCheckbox.d.ts +4 -0
- package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +6 -2
- package/es/upload/index.d.ts +1 -2
- package/es/upload/src/Upload.d.ts +151 -59
- package/es/upload/src/Upload.js +69 -16
- package/es/upload/src/UploadFile.d.ts +19 -6
- package/es/upload/src/UploadProgress.d.ts +18 -5
- package/es/upload/src/interface.d.ts +14 -1
- package/es/upload/styles/light.d.ts +14 -5
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +1 -0
- package/lib/_internal/scrollbar/src/ScrollBar.js +9 -4
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +5 -1
- package/lib/_internal/selection/src/Selection.d.ts +5 -1
- package/lib/_internal/suffix/src/Suffix.d.ts +5 -2
- package/lib/_internal/suffix/src/Suffix.js +4 -1
- package/lib/_styles/common/dark.js +2 -1
- package/lib/_styles/common/light.d.ts +4 -0
- package/lib/_styles/common/light.js +5 -2
- package/lib/_styles/global/index.cssr.js +10 -5
- package/lib/_styles/transitions/icon-switch.cssr.js +7 -2
- package/lib/_utils/naive/extract-public-props.d.ts +1 -1
- package/lib/alert/src/Alert.d.ts +4 -0
- package/lib/auto-complete/src/AutoComplete.d.ts +9 -1
- package/lib/auto-complete/src/AutoComplete.js +5 -2
- package/lib/avatar/src/Avatar.d.ts +8 -1
- package/lib/avatar/src/Avatar.js +40 -8
- package/lib/avatar/src/styles/index.cssr.js +2 -2
- package/lib/button/src/Button.d.ts +149 -52
- package/lib/button/src/Button.js +126 -54
- package/lib/button/src/interface.d.ts +1 -1
- package/lib/button/src/styles/button.cssr.js +1 -0
- package/lib/button/styles/dark.js +3 -0
- package/lib/button/styles/light.d.ts +14 -5
- package/lib/button/styles/light.js +10 -3
- package/lib/calendar/src/Calendar.d.ts +144 -50
- package/lib/calendar/styles/light.d.ts +14 -5
- package/lib/card/src/Card.d.ts +4 -0
- package/lib/cascader/src/Cascader.d.ts +4 -0
- package/lib/cascader/src/CascaderOption.d.ts +4 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +4 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +4 -0
- package/lib/checkbox/src/Checkbox.d.ts +9 -5
- package/lib/checkbox/src/Checkbox.js +8 -9
- package/lib/collapse/src/Collapse.d.ts +4 -0
- package/lib/color-picker/src/ColorInputUnit.d.ts +18 -5
- package/lib/color-picker/src/ColorPicker.d.ts +126 -45
- package/lib/color-picker/styles/light.d.ts +14 -5
- package/lib/data-table/src/DataTable.d.ts +184 -51
- package/lib/data-table/src/DataTable.js +11 -6
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +21 -5
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +22 -6
- package/lib/data-table/src/TableParts/Body.d.ts +26 -6
- package/lib/data-table/src/TableParts/Body.js +77 -39
- package/lib/data-table/src/TableParts/BodyCheckbox.js +1 -1
- package/lib/data-table/src/TableParts/Cell.d.ts +42 -10
- package/lib/data-table/src/TableParts/Header.d.ts +21 -5
- package/lib/data-table/src/TableParts/Header.js +1 -1
- package/lib/data-table/src/interface.d.ts +4 -1
- package/lib/data-table/src/styles/index.cssr.js +9 -10
- package/lib/data-table/src/use-table-data.js +3 -3
- package/lib/data-table/styles/light.d.ts +20 -5
- package/lib/data-table/styles/light.js +4 -4
- package/lib/date-picker/src/DatePicker.d.ts +329 -127
- package/lib/date-picker/src/DatePicker.js +7 -17
- package/lib/date-picker/src/config.d.ts +9 -0
- package/lib/date-picker/src/config.js +9 -1
- package/lib/date-picker/src/panel/date.d.ts +53 -20
- package/lib/date-picker/src/panel/daterange.d.ts +52 -19
- package/lib/date-picker/src/panel/datetime.d.ts +53 -20
- package/lib/date-picker/src/panel/datetimerange.d.ts +52 -19
- package/lib/date-picker/src/panel/month.d.ts +88 -61
- package/lib/date-picker/src/panel/month.js +9 -6
- package/lib/date-picker/src/panel/use-calendar.d.ts +61 -28
- package/lib/date-picker/src/panel/use-calendar.js +8 -1
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +50 -17
- package/lib/date-picker/src/panel/use-dual-calendar.js +4 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +48 -15
- package/lib/date-picker/styles/_common.d.ts +2 -0
- package/lib/date-picker/styles/_common.js +3 -1
- package/lib/date-picker/styles/light.d.ts +32 -10
- package/lib/dialog/src/Dialog.d.ts +105 -38
- package/lib/dialog/src/DialogEnvironment.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +2 -2
- package/lib/dialog/styles/light.d.ts +14 -5
- package/lib/drawer/src/Drawer.d.ts +4 -0
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +4 -0
- package/lib/drawer/src/DrawerContent.d.ts +4 -0
- package/lib/dropdown/index.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +11 -7
- package/lib/dropdown/src/DropdownGroup.d.ts +2 -3
- package/lib/dropdown/src/DropdownGroupHeader.js +3 -3
- package/lib/dropdown/src/DropdownMenu.d.ts +3 -4
- package/lib/dropdown/src/DropdownMenu.js +5 -4
- package/lib/dropdown/src/DropdownOption.d.ts +3 -4
- package/lib/dropdown/src/DropdownOption.js +5 -4
- package/lib/dropdown/src/DropdownRenderOption.d.ts +2 -3
- package/lib/dropdown/src/interface.d.ts +9 -30
- package/lib/dynamic-input/src/DynamicInput.d.ts +144 -50
- package/lib/dynamic-input/src/InputPreset.d.ts +18 -5
- package/lib/dynamic-input/src/PairPreset.d.ts +18 -5
- package/lib/dynamic-input/styles/light.d.ts +14 -5
- package/lib/dynamic-tags/src/DynamicTags.d.ts +145 -50
- package/lib/dynamic-tags/styles/light.d.ts +14 -5
- package/lib/ellipsis/src/Ellipsis.d.ts +4 -0
- package/lib/form/src/FormItemGridItem.d.ts +2 -2
- package/lib/global-style/src/GlobalStyle.js +2 -0
- package/lib/grid/src/Grid.js +1 -0
- package/lib/grid/src/GridItem.d.ts +2 -2
- package/lib/image/src/ImagePreview.d.ts +1 -0
- package/lib/image/src/ImagePreview.js +51 -4
- package/lib/image/src/interface.d.ts +6 -0
- package/lib/image/src/interface.js +2 -0
- package/lib/input/src/Input.d.ts +5 -0
- package/lib/input/src/Input.js +9 -3
- package/lib/input/src/interface.d.ts +1 -0
- package/lib/input-number/src/InputNumber.d.ts +179 -50
- package/lib/input-number/src/InputNumber.js +22 -6
- package/lib/input-number/styles/light.d.ts +14 -5
- package/lib/layout/src/Layout.d.ts +8 -0
- package/lib/layout/src/LayoutContent.d.ts +4 -0
- package/lib/layout/src/LayoutSider.d.ts +4 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +3 -1
- package/lib/locales/utils/index.d.ts +8 -0
- package/lib/locales/utils/index.js +8 -0
- package/lib/log/src/Log.d.ts +10 -25
- package/lib/log/src/Log.js +2 -11
- package/lib/log/src/LogLine.d.ts +1 -0
- package/lib/log/src/LogLine.js +11 -9
- package/lib/mention/src/Mention.d.ts +5 -0
- package/lib/menu/index.d.ts +1 -1
- package/lib/menu/src/Menu.d.ts +33 -8
- package/lib/menu/src/Menu.js +31 -9
- package/lib/menu/src/MenuDivider.d.ts +2 -0
- package/lib/menu/src/MenuDivider.js +13 -0
- package/lib/menu/src/MenuOption.d.ts +12 -2
- package/lib/menu/src/MenuOptionContent.d.ts +7 -2
- package/lib/menu/src/Submenu.d.ts +21 -17
- package/lib/menu/src/interface.d.ts +23 -4
- package/lib/menu/src/styles/index.cssr.js +6 -1
- package/lib/menu/src/utils.d.ts +4 -2
- package/lib/menu/src/utils.js +22 -3
- package/lib/menu/styles/light.d.ts +2 -0
- package/lib/menu/styles/light.js +3 -2
- package/lib/modal/src/BodyWrapper.d.ts +34 -12
- package/lib/modal/src/Modal.d.ts +174 -66
- package/lib/modal/src/presetProps.d.ts +1 -1
- package/lib/modal/styles/light.d.ts +14 -5
- package/lib/notification/src/NotificationContainer.d.ts +11 -0
- package/lib/notification/src/NotificationContainer.js +7 -2
- package/lib/notification/src/NotificationProvider.d.ts +17 -0
- package/lib/notification/src/NotificationProvider.js +38 -3
- package/lib/notification/src/styles/index.cssr.d.ts +2 -1
- package/lib/notification/src/styles/index.cssr.js +41 -12
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +21 -12
- package/lib/pagination/src/Pagination.js +16 -6
- package/lib/pagination/src/interface.d.ts +2 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +151 -57
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +2 -2
- package/lib/popconfirm/styles/light.d.ts +14 -5
- package/lib/popover/src/Popover.d.ts +6 -6
- package/lib/popover/src/Popover.js +2 -5
- package/lib/popover/src/PopoverBody.d.ts +5 -5
- package/lib/popover/src/PopoverBody.js +2 -1
- package/lib/popover/src/styles/index.cssr.js +0 -1
- package/lib/popselect/src/Popselect.d.ts +9 -5
- package/lib/popselect/src/PopselectPanel.d.ts +4 -0
- package/lib/radio/src/Radio.d.ts +3 -0
- package/lib/radio/src/RadioButton.d.ts +3 -0
- package/lib/radio/src/use-radio.d.ts +2 -0
- package/lib/radio/src/use-radio.js +6 -3
- package/lib/select/src/Select.d.ts +4 -0
- package/lib/slider/src/Slider.d.ts +71 -91
- package/lib/slider/src/Slider.js +340 -581
- package/lib/slider/src/interface.d.ts +1 -1
- package/lib/slider/src/styles/index.cssr.js +86 -16
- package/lib/slider/src/utils.d.ts +10 -1
- package/lib/slider/src/utils.js +11 -1
- package/lib/slider/styles/_common.d.ts +1 -0
- package/lib/slider/styles/_common.js +1 -0
- package/lib/slider/styles/light.d.ts +1 -0
- package/lib/space/src/Space.js +2 -0
- package/lib/steps/src/Step.js +1 -1
- package/lib/table/src/Table.d.ts +35 -0
- package/lib/table/src/Table.js +8 -4
- package/lib/table/src/styles/index.cssr.js +1 -1
- package/lib/table/styles/light.d.ts +3 -0
- package/lib/table/styles/light.js +2 -2
- package/lib/tabs/index.d.ts +2 -0
- package/lib/tabs/index.js +3 -1
- package/lib/tabs/src/Tab.d.ts +35 -18
- package/lib/tabs/src/Tab.js +10 -11
- package/lib/tabs/src/Tabs.js +57 -17
- package/lib/tag/src/Tag.d.ts +8 -3
- package/lib/tag/src/Tag.js +10 -1
- package/lib/tag/src/styles/index.cssr.js +10 -5
- package/lib/tag/src/styles/rtl.cssr.js +7 -1
- package/lib/theme-editor/src/ThemeEditor.d.ts +4 -0
- package/lib/time-picker/src/Panel.d.ts +18 -5
- package/lib/time-picker/src/TimePicker.d.ts +145 -50
- package/lib/time-picker/src/TimePicker.js +3 -0
- package/lib/time-picker/styles/light.d.ts +14 -5
- package/lib/tooltip/src/Tooltip.d.ts +9 -5
- package/lib/transfer/src/Transfer.d.ts +146 -52
- package/lib/transfer/src/TransferFilter.d.ts +18 -5
- package/lib/transfer/src/TransferList.d.ts +18 -5
- package/lib/transfer/src/TransferListItem.d.ts +18 -5
- package/lib/transfer/styles/light.d.ts +14 -5
- package/lib/tree/src/Tree.d.ts +10 -6
- package/lib/tree/src/TreeNodeCheckbox.d.ts +4 -0
- package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +6 -2
- package/lib/upload/index.d.ts +1 -2
- package/lib/upload/src/Upload.d.ts +151 -59
- package/lib/upload/src/Upload.js +69 -16
- package/lib/upload/src/UploadFile.d.ts +19 -6
- package/lib/upload/src/UploadProgress.d.ts +18 -5
- package/lib/upload/src/interface.d.ts +14 -1
- package/lib/upload/styles/light.d.ts +14 -5
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +10 -9
- package/web-types.json +205 -14
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TreeNode } from 'treemate';
|
|
3
|
-
import { DropdownGroupOption, DropdownIgnoredOption, DropdownOption } from './interface';
|
|
4
3
|
declare const _default: import("vue").DefineComponent<{
|
|
5
4
|
clsPrefix: {
|
|
6
5
|
type: StringConstructor;
|
|
7
6
|
required: true;
|
|
8
7
|
};
|
|
9
8
|
tmNode: {
|
|
10
|
-
type: PropType<TreeNode<
|
|
9
|
+
type: PropType<TreeNode<import("../..").MenuOption, import("../..").MenuGroupOption, import("../../menu/src/interface").MenuIgnoredOption>>;
|
|
11
10
|
required: true;
|
|
12
11
|
};
|
|
13
12
|
parentKey: {
|
|
@@ -20,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
19
|
parentKey?: unknown;
|
|
21
20
|
} & {
|
|
22
21
|
clsPrefix: string;
|
|
23
|
-
tmNode: TreeNode<
|
|
22
|
+
tmNode: TreeNode<import("../..").MenuOption, import("../..").MenuGroupOption, import("../../menu/src/interface").MenuIgnoredOption>;
|
|
24
23
|
parentKey: string | number | null;
|
|
25
24
|
} & {}>, {
|
|
26
25
|
parentKey: string | number | null;
|
|
@@ -33,17 +33,17 @@ export default defineComponent({
|
|
|
33
33
|
const { rawNode } = this.tmNode;
|
|
34
34
|
return (h("div", { class: `${clsPrefix}-dropdown-option` },
|
|
35
35
|
h("div", { class: `${clsPrefix}-dropdown-option-body ${clsPrefix}-dropdown-option-body--group` },
|
|
36
|
-
h("div", { "
|
|
36
|
+
h("div", { "data-dropdown-option": true, class: [
|
|
37
37
|
`${clsPrefix}-dropdown-option-body__prefix`,
|
|
38
38
|
showIcon && `${clsPrefix}-dropdown-option-body__prefix--show-icon`
|
|
39
39
|
] }, render(rawNode.icon)),
|
|
40
|
-
h("div", { class: `${clsPrefix}-dropdown-option-body__label`, "
|
|
40
|
+
h("div", { class: `${clsPrefix}-dropdown-option-body__label`, "data-dropdown-option": true }, renderLabel
|
|
41
41
|
? renderLabel(rawNode)
|
|
42
42
|
: render((_a = rawNode.title) !== null && _a !== void 0 ? _a : rawNode[this.labelField])),
|
|
43
43
|
h("div", { class: [
|
|
44
44
|
`${clsPrefix}-dropdown-option-body__suffix`,
|
|
45
45
|
hasSubmenu &&
|
|
46
46
|
`${clsPrefix}-dropdown-option-body__suffix--has-submenu`
|
|
47
|
-
], "
|
|
47
|
+
], "data-dropdown-option": true }))));
|
|
48
48
|
}
|
|
49
49
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { InjectionKey, PropType, Ref, CSSProperties } from 'vue';
|
|
2
2
|
import { TreeNode } from 'treemate';
|
|
3
|
-
import { DropdownGroupOption, DropdownIgnoredOption, DropdownOption } from './interface';
|
|
4
3
|
export interface NDropdownMenuInjection {
|
|
5
4
|
showIconRef: Ref<boolean>;
|
|
6
5
|
hasSubmenuRef: Ref<boolean>;
|
|
@@ -14,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
13
|
required: true;
|
|
15
14
|
};
|
|
16
15
|
tmNodes: {
|
|
17
|
-
type: PropType<TreeNode<
|
|
16
|
+
type: PropType<TreeNode<import("../..").MenuOption, import("../..").MenuGroupOption, import("../../menu/src/interface").MenuIgnoredOption>[]>;
|
|
18
17
|
default: () => never[];
|
|
19
18
|
};
|
|
20
19
|
parentKey: {
|
|
@@ -31,12 +30,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
30
|
clsPrefix: string;
|
|
32
31
|
showArrow: boolean;
|
|
33
32
|
parentKey: string | number;
|
|
34
|
-
tmNodes: TreeNode<
|
|
33
|
+
tmNodes: TreeNode<import("../..").MenuOption, import("../..").MenuGroupOption, import("../../menu/src/interface").MenuIgnoredOption>[];
|
|
35
34
|
} & {
|
|
36
35
|
arrowStyle?: string | CSSProperties | undefined;
|
|
37
36
|
}>, {
|
|
38
37
|
showArrow: boolean;
|
|
39
38
|
parentKey: string | number;
|
|
40
|
-
tmNodes: TreeNode<
|
|
39
|
+
tmNodes: TreeNode<import("../..").MenuOption, import("../..").MenuGroupOption, import("../../menu/src/interface").MenuIgnoredOption>[];
|
|
41
40
|
}>;
|
|
42
41
|
export default _default;
|
|
@@ -57,16 +57,17 @@ export default defineComponent({
|
|
|
57
57
|
const { parentKey, clsPrefix } = this;
|
|
58
58
|
return (h("div", { class: `${clsPrefix}-dropdown-menu` },
|
|
59
59
|
this.tmNodes.map((tmNode) => {
|
|
60
|
-
|
|
60
|
+
const { rawNode } = tmNode;
|
|
61
|
+
if (isRenderNode(rawNode)) {
|
|
61
62
|
return (h(NDropdownRenderOption, { tmNode: tmNode, key: tmNode.key }));
|
|
62
63
|
}
|
|
63
|
-
if (isDividerNode(
|
|
64
|
+
if (isDividerNode(rawNode)) {
|
|
64
65
|
return h(NDropdownDivider, { clsPrefix: clsPrefix, key: tmNode.key });
|
|
65
66
|
}
|
|
66
|
-
if (isGroupNode(
|
|
67
|
+
if (isGroupNode(rawNode)) {
|
|
67
68
|
return (h(NDropdownGroup, { clsPrefix: clsPrefix, tmNode: tmNode, parentKey: parentKey, key: tmNode.key }));
|
|
68
69
|
}
|
|
69
|
-
return (h(NDropdownOption, { clsPrefix: clsPrefix, tmNode: tmNode, parentKey: parentKey, key: tmNode.key, props:
|
|
70
|
+
return (h(NDropdownOption, { clsPrefix: clsPrefix, tmNode: tmNode, parentKey: parentKey, key: tmNode.key, props: rawNode.props }));
|
|
70
71
|
}),
|
|
71
72
|
this.showArrow
|
|
72
73
|
? renderArrow({
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { PropType, Ref, HTMLAttributes } from 'vue';
|
|
2
2
|
import { FollowerPlacement } from 'vueuc';
|
|
3
3
|
import { TreeNode } from 'treemate';
|
|
4
|
-
import { DropdownGroupOption, DropdownIgnoredOption, DropdownOption } from './interface';
|
|
5
4
|
declare const _default: import("vue").DefineComponent<{
|
|
6
5
|
clsPrefix: {
|
|
7
6
|
type: StringConstructor;
|
|
8
7
|
required: true;
|
|
9
8
|
};
|
|
10
9
|
tmNode: {
|
|
11
|
-
type: PropType<TreeNode<
|
|
10
|
+
type: PropType<TreeNode<import("../..").MenuOption, import("../..").MenuGroupOption, import("../../menu/src/interface").MenuIgnoredOption>>;
|
|
12
11
|
required: true;
|
|
13
12
|
};
|
|
14
13
|
parentKey: {
|
|
@@ -28,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
27
|
siblingHasSubmenu: Ref<boolean>;
|
|
29
28
|
animated: Ref<boolean>;
|
|
30
29
|
mergedShowSubmenu: import("vue").ComputedRef<boolean>;
|
|
31
|
-
rawNode: import("vue").ComputedRef<
|
|
30
|
+
rawNode: import("vue").ComputedRef<import("../..").MenuOption | import("../..").MenuGroupOption | import("../../menu/src/interface").MenuIgnoredOption>;
|
|
32
31
|
hasSubmenu: import("vue").ComputedRef<boolean>;
|
|
33
32
|
pending: import("vue").ComputedRef<boolean>;
|
|
34
33
|
childActive: import("vue").ComputedRef<boolean>;
|
|
@@ -49,7 +48,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
48
|
} & {
|
|
50
49
|
clsPrefix: string;
|
|
51
50
|
placement: FollowerPlacement;
|
|
52
|
-
tmNode: TreeNode<
|
|
51
|
+
tmNode: TreeNode<import("../..").MenuOption, import("../..").MenuGroupOption, import("../../menu/src/interface").MenuIgnoredOption>;
|
|
53
52
|
parentKey: string | number | null;
|
|
54
53
|
} & {
|
|
55
54
|
props?: HTMLAttributes | undefined;
|
|
@@ -7,6 +7,7 @@ import { NIcon } from '../../icon';
|
|
|
7
7
|
import NDropdownMenu, { dropdownMenuInjectionKey } from './DropdownMenu';
|
|
8
8
|
import { dropdownInjectionKey } from './Dropdown';
|
|
9
9
|
import { isSubmenuNode } from './utils';
|
|
10
|
+
import { happensIn } from 'seemly';
|
|
10
11
|
const dropdownOptionInjectionKey = Symbol('dropdown-option');
|
|
11
12
|
export default defineComponent({
|
|
12
13
|
name: 'DropdownOption',
|
|
@@ -104,7 +105,7 @@ export default defineComponent({
|
|
|
104
105
|
return;
|
|
105
106
|
const { relatedTarget } = e;
|
|
106
107
|
if (relatedTarget &&
|
|
107
|
-
!relatedTarget
|
|
108
|
+
!happensIn({ target: relatedTarget }, 'dropdownOption')) {
|
|
108
109
|
hoverKeyRef.value = null;
|
|
109
110
|
}
|
|
110
111
|
}
|
|
@@ -179,15 +180,15 @@ export default defineComponent({
|
|
|
179
180
|
};
|
|
180
181
|
return (h("div", { class: `${clsPrefix}-dropdown-option` },
|
|
181
182
|
h('div', mergeProps(builtinProps, props), [
|
|
182
|
-
h("div", { "
|
|
183
|
+
h("div", { "data-dropdown-option": true, class: [
|
|
183
184
|
`${clsPrefix}-dropdown-option-body__prefix`,
|
|
184
185
|
siblingHasIcon &&
|
|
185
186
|
`${clsPrefix}-dropdown-option-body__prefix--show-icon`
|
|
186
187
|
] }, [renderIcon ? renderIcon(rawNode) : render(rawNode.icon)]),
|
|
187
|
-
h("div", { "
|
|
188
|
+
h("div", { "data-dropdown-option": true, class: `${clsPrefix}-dropdown-option-body__label` }, renderLabel
|
|
188
189
|
? renderLabel(rawNode)
|
|
189
190
|
: render((_a = rawNode[this.labelField]) !== null && _a !== void 0 ? _a : rawNode.title)),
|
|
190
|
-
h("div", { "
|
|
191
|
+
h("div", { "data-dropdown-option": true, class: [
|
|
191
192
|
`${clsPrefix}-dropdown-option-body__suffix`,
|
|
192
193
|
siblingHasSubmenu &&
|
|
193
194
|
`${clsPrefix}-dropdown-option-body__suffix--has-submenu`
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TreeNode } from 'treemate';
|
|
3
|
-
import { DropdownRenderOption } from './interface';
|
|
4
3
|
declare const _default: import("vue").DefineComponent<{
|
|
5
4
|
tmNode: {
|
|
6
|
-
type: PropType<TreeNode<
|
|
5
|
+
type: PropType<TreeNode<import("../../menu/src/interface").MenuRenderOption, import("../../menu/src/interface").MenuRenderOption, import("../../menu/src/interface").MenuRenderOption>>;
|
|
7
6
|
required: true;
|
|
8
7
|
};
|
|
9
8
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
10
9
|
tmNode?: unknown;
|
|
11
10
|
} & {
|
|
12
|
-
tmNode: TreeNode<
|
|
11
|
+
tmNode: TreeNode<import("../../menu/src/interface").MenuRenderOption, import("../../menu/src/interface").MenuRenderOption, import("../../menu/src/interface").MenuRenderOption>;
|
|
13
12
|
} & {}>, {}>;
|
|
14
13
|
export default _default;
|
|
@@ -1,35 +1,14 @@
|
|
|
1
1
|
import { TreeNode } from 'treemate';
|
|
2
|
-
import { VNodeChild
|
|
3
|
-
import { MenuOption, MenuGroupOption } from '../../menu/src/interface';
|
|
2
|
+
import { VNodeChild } from 'vue';
|
|
3
|
+
import { MenuOption, MenuGroupOption, MenuDividerOption, MenuIgnoredOption, MenuRenderOption } from '../../menu/src/interface';
|
|
4
4
|
export declare type Key = string | number;
|
|
5
|
-
export declare type
|
|
6
|
-
export declare type
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare type
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export interface DropdownIgnoredOption {
|
|
13
|
-
key?: Key;
|
|
14
|
-
type: 'render' | 'divider';
|
|
15
|
-
props?: HTMLAttributes;
|
|
16
|
-
render?: () => VNodeChild;
|
|
17
|
-
[key: string]: unknown;
|
|
18
|
-
}
|
|
19
|
-
export declare type DropdownMixedOption = DropdownOption | DropdownGroupOption | DropdownIgnoredOption;
|
|
20
|
-
export declare type DropdownIntersectionOption = DropdownOption & DropdownGroupOption & DropdownIgnoredOption;
|
|
21
|
-
export interface DropdownRenderOption {
|
|
22
|
-
key?: Key;
|
|
23
|
-
type: 'render';
|
|
24
|
-
props?: HTMLAttributes;
|
|
25
|
-
render?: () => VNodeChild;
|
|
26
|
-
[key: string]: unknown;
|
|
27
|
-
}
|
|
28
|
-
export interface DropdownDividerOption {
|
|
29
|
-
key?: Key;
|
|
30
|
-
type: 'divider';
|
|
31
|
-
[key: string]: unknown;
|
|
32
|
-
}
|
|
5
|
+
export declare type DropdownOption = MenuOption;
|
|
6
|
+
export declare type DropdownGroupOption = MenuGroupOption;
|
|
7
|
+
export declare type DropdownDividerOption = MenuDividerOption;
|
|
8
|
+
export declare type DropdownRenderOption = MenuRenderOption;
|
|
9
|
+
export declare type DropdownMixedOption = DropdownOption | DropdownGroupOption | DropdownDividerOption | DropdownRenderOption;
|
|
10
|
+
export declare type DropdownIgnoredOption = MenuIgnoredOption;
|
|
11
|
+
export declare type DropdownIntersectionOption = DropdownOption & DropdownGroupOption;
|
|
33
12
|
export declare type TmNode = TreeNode<DropdownOption, DropdownGroupOption, DropdownIgnoredOption>;
|
|
34
13
|
export declare type OnUpdateValue = <T extends string & number & (string | number)>(value: T, option: DropdownOption) => void;
|
|
35
14
|
export declare type OnUpdateKeys = <T extends string[] & number[] & Array<string | number>>(keys: T) => void;
|