naive-ui 2.20.0 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_internal/select-menu/src/SelectMenu.d.ts +4 -1
- package/es/_internal/selection/src/Selection.d.ts +4 -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 +1 -1
- package/es/_styles/common/light.d.ts +3 -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 +3 -0
- package/es/alert/src/Alert.js +3 -3
- package/es/auto-complete/src/AutoComplete.d.ts +8 -1
- package/es/auto-complete/src/AutoComplete.js +2 -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 +131 -58
- 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 +143 -50
- package/es/calendar/styles/light.d.ts +14 -5
- package/es/card/src/Card.d.ts +3 -0
- package/es/cascader/src/Cascader.d.ts +3 -0
- package/es/cascader/src/Cascader.js +2 -2
- package/es/cascader/src/CascaderOption.d.ts +3 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +3 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +3 -0
- package/es/checkbox/src/Checkbox.d.ts +8 -5
- package/es/checkbox/src/Checkbox.js +8 -9
- package/es/collapse/src/Collapse.d.ts +3 -0
- package/es/color-picker/src/ColorInputUnit.d.ts +17 -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 +183 -51
- package/es/data-table/src/DataTable.js +11 -6
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +20 -5
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +20 -5
- package/es/data-table/src/TableParts/Body.d.ts +25 -6
- package/es/data-table/src/TableParts/Body.js +60 -22
- package/es/data-table/src/TableParts/BodyCheckbox.js +1 -1
- package/es/data-table/src/TableParts/Cell.d.ts +40 -10
- package/es/data-table/src/TableParts/Header.d.ts +20 -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 +8 -9
- package/es/data-table/styles/light.d.ts +20 -5
- package/es/data-table/styles/light.js +3 -3
- package/es/date-picker/src/DatePicker.d.ts +328 -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 +51 -19
- package/es/date-picker/src/panel/daterange.d.ts +49 -17
- package/es/date-picker/src/panel/datetime.d.ts +51 -19
- package/es/date-picker/src/panel/datetimerange.d.ts +49 -17
- package/es/date-picker/src/panel/month.d.ts +86 -60
- package/es/date-picker/src/panel/month.js +9 -6
- package/es/date-picker/src/panel/use-calendar.d.ts +59 -27
- package/es/date-picker/src/panel/use-calendar.js +7 -2
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +47 -15
- package/es/date-picker/src/panel/use-panel-common.d.ts +47 -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 +104 -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 +3 -0
- package/es/drawer/src/DrawerBodyWrapper.d.ts +3 -0
- package/es/drawer/src/DrawerContent.d.ts +3 -0
- package/es/dropdown/index.d.ts +1 -1
- package/es/dropdown/src/Dropdown.d.ts +5 -2
- package/es/dropdown/src/DropdownGroup.d.ts +2 -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 +2 -2
- package/es/dropdown/src/DropdownRenderOption.d.ts +2 -3
- package/es/dropdown/src/interface.d.ts +9 -30
- package/es/dropdown/src/utils.d.ts +1 -0
- package/es/dropdown/src/utils.js +10 -0
- package/es/dynamic-input/src/DynamicInput.d.ts +143 -50
- package/es/dynamic-input/src/InputPreset.d.ts +17 -5
- package/es/dynamic-input/src/PairPreset.d.ts +17 -5
- package/es/dynamic-input/styles/light.d.ts +14 -5
- package/es/dynamic-tags/src/DynamicTags.d.ts +144 -50
- package/es/dynamic-tags/styles/light.d.ts +14 -5
- package/es/ellipsis/src/Ellipsis.d.ts +3 -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.js +3 -2
- package/es/image/src/icons.d.ts +1 -0
- package/es/image/src/icons.js +2 -0
- package/es/input/src/Input.d.ts +4 -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 +144 -50
- package/es/input-number/styles/light.d.ts +14 -5
- package/es/layout/src/Layout.d.ts +6 -0
- package/es/layout/src/LayoutContent.d.ts +3 -0
- package/es/layout/src/LayoutSider.d.ts +3 -0
- package/es/locales/common/deDE.d.ts +3 -0
- package/es/locales/common/deDE.js +93 -0
- package/es/locales/common/nbNO.d.ts +3 -0
- package/es/locales/common/nbNO.js +93 -0
- package/es/locales/date/deDE.d.ts +3 -0
- package/es/locales/date/deDE.js +6 -0
- package/es/locales/date/nbNO.d.ts +3 -0
- package/es/locales/date/nbNO.js +6 -0
- package/es/locales/index.d.ts +6 -0
- package/es/locales/index.js +5 -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 +3 -0
- package/es/mention/src/Mention.d.ts +4 -0
- package/es/menu/index.d.ts +1 -1
- package/es/menu/src/Menu.d.ts +32 -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 +11 -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 +33 -12
- package/es/modal/src/BodyWrapper.js +6 -0
- package/es/modal/src/Modal.d.ts +185 -65
- package/es/modal/src/Modal.js +5 -1
- package/es/modal/src/interface.d.ts +1 -0
- 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 +3 -0
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +20 -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 +145 -52
- package/es/popconfirm/src/PopconfirmPanel.d.ts +2 -2
- package/es/popconfirm/styles/light.d.ts +14 -5
- package/es/popselect/src/Popselect.d.ts +3 -0
- package/es/popselect/src/PopselectPanel.d.ts +3 -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 +9 -2
- package/es/select/src/Select.js +20 -14
- package/es/slider/src/Slider.d.ts +70 -91
- package/es/slider/src/Slider.js +326 -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 +14 -17
- package/es/tabs/src/TabPane.d.ts +1 -0
- package/es/tabs/src/TabPane.js +2 -1
- package/es/tabs/src/Tabs.d.ts +4 -0
- package/es/tabs/src/Tabs.js +65 -21
- package/es/tabs/src/interface.d.ts +3 -2
- 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 +3 -0
- package/es/time-picker/src/Panel.d.ts +17 -5
- package/es/time-picker/src/TimePicker.d.ts +144 -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 +3 -0
- package/es/transfer/src/Transfer.d.ts +145 -52
- package/es/transfer/src/TransferFilter.d.ts +17 -5
- package/es/transfer/src/TransferList.d.ts +17 -5
- package/es/transfer/src/TransferListItem.d.ts +17 -5
- package/es/transfer/styles/light.d.ts +14 -5
- package/es/tree/src/Tree.d.ts +13 -9
- package/es/tree/src/Tree.js +59 -23
- package/es/tree/src/TreeNode.js +4 -4
- package/es/tree/src/TreeNodeCheckbox.d.ts +3 -0
- package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/es/tree/src/interface.d.ts +1 -1
- package/es/tree/src/utils.d.ts +1 -1
- package/es/tree/src/utils.js +4 -4
- package/es/tree-select/src/TreeSelect.d.ts +5 -2
- package/es/upload/src/Upload.d.ts +146 -52
- package/es/upload/src/Upload.js +6 -10
- package/es/upload/src/UploadFile.d.ts +18 -6
- package/es/upload/src/UploadFile.js +1 -1
- package/es/upload/src/UploadProgress.d.ts +17 -5
- package/es/upload/src/UploadTrigger.js +2 -2
- package/es/upload/src/interface.d.ts +2 -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/select-menu/src/SelectMenu.d.ts +4 -1
- package/lib/_internal/selection/src/Selection.d.ts +4 -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 +1 -1
- package/lib/_styles/common/light.d.ts +3 -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 +3 -0
- package/lib/alert/src/Alert.js +3 -3
- package/lib/auto-complete/src/AutoComplete.d.ts +8 -1
- package/lib/auto-complete/src/AutoComplete.js +2 -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 +129 -56
- 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 +143 -50
- package/lib/calendar/styles/light.d.ts +14 -5
- package/lib/card/src/Card.d.ts +3 -0
- package/lib/cascader/src/Cascader.d.ts +3 -0
- package/lib/cascader/src/Cascader.js +2 -2
- package/lib/cascader/src/CascaderOption.d.ts +3 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +3 -0
- package/lib/checkbox/src/Checkbox.d.ts +8 -5
- package/lib/checkbox/src/Checkbox.js +8 -9
- package/lib/collapse/src/Collapse.d.ts +3 -0
- package/lib/color-picker/src/ColorInputUnit.d.ts +17 -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 +183 -51
- package/lib/data-table/src/DataTable.js +11 -6
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +20 -5
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +20 -5
- package/lib/data-table/src/TableParts/Body.d.ts +25 -6
- package/lib/data-table/src/TableParts/Body.js +60 -22
- package/lib/data-table/src/TableParts/BodyCheckbox.js +1 -1
- package/lib/data-table/src/TableParts/Cell.d.ts +40 -10
- package/lib/data-table/src/TableParts/Header.d.ts +20 -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 +8 -9
- package/lib/data-table/styles/light.d.ts +20 -5
- package/lib/data-table/styles/light.js +3 -3
- package/lib/date-picker/src/DatePicker.d.ts +328 -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 +51 -19
- package/lib/date-picker/src/panel/daterange.d.ts +49 -17
- package/lib/date-picker/src/panel/datetime.d.ts +51 -19
- package/lib/date-picker/src/panel/datetimerange.d.ts +49 -17
- package/lib/date-picker/src/panel/month.d.ts +86 -60
- package/lib/date-picker/src/panel/month.js +9 -6
- package/lib/date-picker/src/panel/use-calendar.d.ts +59 -27
- package/lib/date-picker/src/panel/use-calendar.js +6 -1
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +47 -15
- package/lib/date-picker/src/panel/use-panel-common.d.ts +47 -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 +104 -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 +3 -0
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +3 -0
- package/lib/drawer/src/DrawerContent.d.ts +3 -0
- package/lib/dropdown/index.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +5 -2
- package/lib/dropdown/src/DropdownGroup.d.ts +2 -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 +1 -1
- package/lib/dropdown/src/DropdownRenderOption.d.ts +2 -3
- package/lib/dropdown/src/interface.d.ts +9 -30
- package/lib/dropdown/src/utils.d.ts +1 -0
- package/lib/dropdown/src/utils.js +12 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +143 -50
- package/lib/dynamic-input/src/InputPreset.d.ts +17 -5
- package/lib/dynamic-input/src/PairPreset.d.ts +17 -5
- package/lib/dynamic-input/styles/light.d.ts +14 -5
- package/lib/dynamic-tags/src/DynamicTags.d.ts +144 -50
- package/lib/dynamic-tags/styles/light.d.ts +14 -5
- package/lib/ellipsis/src/Ellipsis.d.ts +3 -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.js +2 -1
- package/lib/image/src/icons.d.ts +1 -0
- package/lib/image/src/icons.js +3 -1
- package/lib/input/src/Input.d.ts +4 -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 +144 -50
- package/lib/input-number/styles/light.d.ts +14 -5
- package/lib/layout/src/Layout.d.ts +6 -0
- package/lib/layout/src/LayoutContent.d.ts +3 -0
- package/lib/layout/src/LayoutSider.d.ts +3 -0
- package/lib/locales/common/deDE.d.ts +3 -0
- package/lib/locales/common/deDE.js +95 -0
- package/lib/locales/common/nbNO.d.ts +3 -0
- package/lib/locales/common/nbNO.js +95 -0
- package/lib/locales/date/deDE.d.ts +3 -0
- package/lib/locales/date/deDE.js +11 -0
- package/lib/locales/date/nbNO.d.ts +3 -0
- package/lib/locales/date/nbNO.js +11 -0
- package/lib/locales/index.d.ts +6 -0
- package/lib/locales/index.js +11 -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 +3 -0
- package/lib/mention/src/Mention.d.ts +4 -0
- package/lib/menu/index.d.ts +1 -1
- package/lib/menu/src/Menu.d.ts +32 -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 +11 -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 +33 -12
- package/lib/modal/src/BodyWrapper.js +6 -0
- package/lib/modal/src/Modal.d.ts +185 -65
- package/lib/modal/src/Modal.js +5 -1
- package/lib/modal/src/interface.d.ts +1 -0
- 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 +3 -0
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +20 -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 +145 -52
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +2 -2
- package/lib/popconfirm/styles/light.d.ts +14 -5
- package/lib/popselect/src/Popselect.d.ts +3 -0
- package/lib/popselect/src/PopselectPanel.d.ts +3 -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 +9 -2
- package/lib/select/src/Select.js +20 -14
- package/lib/slider/src/Slider.d.ts +70 -91
- package/lib/slider/src/Slider.js +324 -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 +13 -16
- package/lib/tabs/src/TabPane.d.ts +1 -0
- package/lib/tabs/src/TabPane.js +2 -1
- package/lib/tabs/src/Tabs.d.ts +4 -0
- package/lib/tabs/src/Tabs.js +64 -20
- package/lib/tabs/src/interface.d.ts +3 -2
- 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 +3 -0
- package/lib/time-picker/src/Panel.d.ts +17 -5
- package/lib/time-picker/src/TimePicker.d.ts +144 -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 +3 -0
- package/lib/transfer/src/Transfer.d.ts +145 -52
- package/lib/transfer/src/TransferFilter.d.ts +17 -5
- package/lib/transfer/src/TransferList.d.ts +17 -5
- package/lib/transfer/src/TransferListItem.d.ts +17 -5
- package/lib/transfer/styles/light.d.ts +14 -5
- package/lib/tree/src/Tree.d.ts +13 -9
- package/lib/tree/src/Tree.js +58 -22
- package/lib/tree/src/TreeNode.js +4 -4
- package/lib/tree/src/TreeNodeCheckbox.d.ts +3 -0
- package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/lib/tree/src/interface.d.ts +1 -1
- package/lib/tree/src/utils.d.ts +1 -1
- package/lib/tree/src/utils.js +4 -4
- package/lib/tree-select/src/TreeSelect.d.ts +5 -2
- package/lib/upload/src/Upload.d.ts +146 -52
- package/lib/upload/src/Upload.js +6 -10
- package/lib/upload/src/UploadFile.d.ts +18 -6
- package/lib/upload/src/UploadFile.js +1 -1
- package/lib/upload/src/UploadProgress.d.ts +17 -5
- package/lib/upload/src/UploadTrigger.js +2 -2
- package/lib/upload/src/interface.d.ts +2 -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 +5 -5
- package/web-types.json +182 -9
|
@@ -15,7 +15,7 @@ export declare const panelProps: {
|
|
|
15
15
|
readonly required: true;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
export declare const panelPropKeys: ("
|
|
18
|
+
export declare const panelPropKeys: ("positiveText" | "negativeText" | "showIcon" | "onPositiveClick" | "onNegativeClick")[];
|
|
19
19
|
declare const _default: import("vue").DefineComponent<{
|
|
20
20
|
readonly positiveText: StringConstructor;
|
|
21
21
|
readonly negativeText: StringConstructor;
|
|
@@ -59,8 +59,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
59
|
onPositiveClick: (e: MouseEvent) => void;
|
|
60
60
|
onNegativeClick: (e: MouseEvent) => void;
|
|
61
61
|
} & {
|
|
62
|
-
negativeText?: string | undefined;
|
|
63
62
|
positiveText?: string | undefined;
|
|
63
|
+
negativeText?: string | undefined;
|
|
64
64
|
}>, {
|
|
65
65
|
showIcon: boolean;
|
|
66
66
|
}>;
|
|
@@ -24,20 +24,30 @@ declare const popconfirmLight: import("../../_mixins").Theme<"Popconfirm", {
|
|
|
24
24
|
fontSizeMedium: string;
|
|
25
25
|
fontSizeLarge: string;
|
|
26
26
|
opacityDisabled: string;
|
|
27
|
+
colorOpacitySecondary: number;
|
|
28
|
+
colorOpacitySecondaryHover: number;
|
|
29
|
+
colorOpacitySecondaryPressed: number;
|
|
30
|
+
colorSecondary: string;
|
|
31
|
+
colorSecondaryHover: string;
|
|
32
|
+
colorSecondaryPressed: string;
|
|
33
|
+
colorTertiary: string;
|
|
34
|
+
colorTertiaryHover: string;
|
|
35
|
+
colorTertiaryPressed: string;
|
|
36
|
+
colorQuaternary: string;
|
|
37
|
+
colorQuaternaryHover: string;
|
|
38
|
+
colorQuaternaryPressed: string;
|
|
27
39
|
color: string;
|
|
28
40
|
colorHover: string;
|
|
29
41
|
colorPressed: string;
|
|
30
42
|
colorFocus: string;
|
|
31
43
|
colorDisabled: string;
|
|
32
44
|
textColor: string;
|
|
45
|
+
textColorTertiary: string;
|
|
33
46
|
textColorHover: string;
|
|
34
47
|
textColorPressed: string;
|
|
35
48
|
textColorFocus: string;
|
|
36
49
|
textColorDisabled: string;
|
|
37
50
|
textColorText: string;
|
|
38
|
-
textColorTextDepth1: string;
|
|
39
|
-
textColorTextDepth2: string;
|
|
40
|
-
textColorTextDepth3: string;
|
|
41
51
|
textColorTextHover: string;
|
|
42
52
|
textColorTextPressed: string;
|
|
43
53
|
textColorTextFocus: string;
|
|
@@ -184,9 +194,8 @@ declare const popconfirmLight: import("../../_mixins").Theme<"Popconfirm", {
|
|
|
184
194
|
borderDisabledError: string;
|
|
185
195
|
rippleColorError: string;
|
|
186
196
|
waveOpacity: string;
|
|
187
|
-
fontWeightText: string;
|
|
188
197
|
fontWeight: string;
|
|
189
|
-
|
|
198
|
+
fontWeightStrong: string;
|
|
190
199
|
paddingTiny: string;
|
|
191
200
|
paddingSmall: string;
|
|
192
201
|
paddingMedium: string;
|
|
@@ -675,6 +675,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
675
675
|
pressedColor: string;
|
|
676
676
|
opacityDisabled: string;
|
|
677
677
|
inputColorDisabled: string;
|
|
678
|
+
buttonColor2: string;
|
|
679
|
+
buttonColor2Hover: string;
|
|
680
|
+
buttonColor2Pressed: string;
|
|
678
681
|
boxShadow1: string;
|
|
679
682
|
boxShadow2: string;
|
|
680
683
|
boxShadow3: string;
|
|
@@ -134,6 +134,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
134
134
|
pressedColor: string;
|
|
135
135
|
opacityDisabled: string;
|
|
136
136
|
inputColorDisabled: string;
|
|
137
|
+
buttonColor2: string;
|
|
138
|
+
buttonColor2Hover: string;
|
|
139
|
+
buttonColor2Pressed: string;
|
|
137
140
|
boxShadow1: string;
|
|
138
141
|
boxShadow2: string;
|
|
139
142
|
boxShadow3: string;
|
package/lib/radio/src/Radio.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
readonly default: undefined;
|
|
18
18
|
};
|
|
19
19
|
size: import("vue").PropType<"small" | "medium" | "large">;
|
|
20
|
+
onUpdateChecked: import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void> | undefined>;
|
|
20
21
|
'onUpdate:checked': import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void> | undefined>;
|
|
21
22
|
checkedValue: {
|
|
22
23
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
@@ -156,6 +157,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
156
157
|
defaultChecked?: unknown;
|
|
157
158
|
disabled?: unknown;
|
|
158
159
|
size?: unknown;
|
|
160
|
+
onUpdateChecked?: unknown;
|
|
159
161
|
'onUpdate:checked'?: unknown;
|
|
160
162
|
checkedValue?: unknown;
|
|
161
163
|
theme?: unknown;
|
|
@@ -278,6 +280,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
278
280
|
labelPadding: string;
|
|
279
281
|
}, any>> | undefined;
|
|
280
282
|
"onUpdate:checked"?: import("../../_utils").MaybeArray<(value: boolean) => void> | undefined;
|
|
283
|
+
onUpdateChecked?: import("../../_utils").MaybeArray<(value: boolean) => void> | undefined;
|
|
281
284
|
checkedValue?: boolean | undefined;
|
|
282
285
|
}>, {
|
|
283
286
|
value: string | number;
|
|
@@ -17,6 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
readonly default: undefined;
|
|
18
18
|
};
|
|
19
19
|
readonly size: import("vue").PropType<"small" | "medium" | "large">;
|
|
20
|
+
readonly onUpdateChecked: import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void> | undefined>;
|
|
20
21
|
readonly 'onUpdate:checked': import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void> | undefined>;
|
|
21
22
|
readonly checkedValue: {
|
|
22
23
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
@@ -30,6 +31,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
31
|
readonly defaultChecked?: unknown;
|
|
31
32
|
readonly disabled?: unknown;
|
|
32
33
|
readonly size?: unknown;
|
|
34
|
+
readonly onUpdateChecked?: unknown;
|
|
33
35
|
readonly 'onUpdate:checked'?: unknown;
|
|
34
36
|
readonly checkedValue?: unknown;
|
|
35
37
|
} & {
|
|
@@ -41,6 +43,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
43
|
disabled?: boolean | undefined;
|
|
42
44
|
checked?: boolean | undefined;
|
|
43
45
|
"onUpdate:checked"?: import("../../_utils").MaybeArray<(value: boolean) => void> | undefined;
|
|
46
|
+
onUpdateChecked?: import("../../_utils").MaybeArray<(value: boolean) => void> | undefined;
|
|
44
47
|
checkedValue?: boolean | undefined;
|
|
45
48
|
}>, {
|
|
46
49
|
value: string | number;
|
|
@@ -17,6 +17,7 @@ declare const radioProps: {
|
|
|
17
17
|
readonly default: undefined;
|
|
18
18
|
};
|
|
19
19
|
readonly size: PropType<"small" | "medium" | "large">;
|
|
20
|
+
readonly onUpdateChecked: PropType<MaybeArray<(value: boolean) => void> | undefined>;
|
|
20
21
|
readonly 'onUpdate:checked': PropType<MaybeArray<(value: boolean) => void> | undefined>;
|
|
21
22
|
readonly checkedValue: {
|
|
22
23
|
readonly type: PropType<boolean | undefined>;
|
|
@@ -68,6 +69,7 @@ declare namespace setup {
|
|
|
68
69
|
readonly default: undefined;
|
|
69
70
|
};
|
|
70
71
|
readonly size: PropType<"small" | "medium" | "large">;
|
|
72
|
+
readonly onUpdateChecked: PropType<MaybeArray<(value: boolean) => void> | undefined>;
|
|
71
73
|
readonly 'onUpdate:checked': PropType<MaybeArray<(value: boolean) => void> | undefined>;
|
|
72
74
|
readonly checkedValue: {
|
|
73
75
|
readonly type: PropType<boolean | undefined>;
|
|
@@ -21,6 +21,7 @@ const radioProps = {
|
|
|
21
21
|
default: undefined
|
|
22
22
|
},
|
|
23
23
|
size: String,
|
|
24
|
+
onUpdateChecked: [Function, Array],
|
|
24
25
|
'onUpdate:checked': [Function, Array],
|
|
25
26
|
// deprecated
|
|
26
27
|
checkedValue: {
|
|
@@ -87,10 +88,12 @@ function setup(props) {
|
|
|
87
88
|
(0, _utils_1.call)(doUpdateValue, value);
|
|
88
89
|
}
|
|
89
90
|
else {
|
|
90
|
-
const { 'onUpdate:checked':
|
|
91
|
+
const { onUpdateChecked, 'onUpdate:checked': _onUpdateChecked } = props;
|
|
91
92
|
const { nTriggerFormInput, nTriggerFormChange } = formItem;
|
|
92
|
-
if (
|
|
93
|
-
(0, _utils_1.call)(
|
|
93
|
+
if (onUpdateChecked)
|
|
94
|
+
(0, _utils_1.call)(onUpdateChecked, true);
|
|
95
|
+
if (_onUpdateChecked)
|
|
96
|
+
(0, _utils_1.call)(_onUpdateChecked, true);
|
|
94
97
|
nTriggerFormInput();
|
|
95
98
|
nTriggerFormChange();
|
|
96
99
|
uncontrolledCheckedRef.value = true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType, InputHTMLAttributes } from 'vue';
|
|
1
|
+
import { PropType, InputHTMLAttributes, HTMLAttributes } from 'vue';
|
|
2
2
|
import { TreeNode } from 'treemate';
|
|
3
3
|
import { FollowerPlacement } from 'vueuc';
|
|
4
4
|
import { RenderLabel, RenderOption } from '../../_internal/select-menu/src/interface';
|
|
@@ -27,6 +27,7 @@ declare const selectProps: {
|
|
|
27
27
|
};
|
|
28
28
|
readonly value: PropType<Value | null>;
|
|
29
29
|
readonly placeholder: StringConstructor;
|
|
30
|
+
readonly menuProps: PropType<HTMLAttributes>;
|
|
30
31
|
readonly multiple: BooleanConstructor;
|
|
31
32
|
readonly size: PropType<Size>;
|
|
32
33
|
readonly filterable: BooleanConstructor;
|
|
@@ -502,6 +503,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
502
503
|
};
|
|
503
504
|
readonly value: PropType<Value | null>;
|
|
504
505
|
readonly placeholder: StringConstructor;
|
|
506
|
+
readonly menuProps: PropType<HTMLAttributes>;
|
|
505
507
|
readonly multiple: BooleanConstructor;
|
|
506
508
|
readonly size: PropType<Size>;
|
|
507
509
|
readonly filterable: BooleanConstructor;
|
|
@@ -1000,7 +1002,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1000
1002
|
handleKeyDown: (e: KeyboardEvent) => void;
|
|
1001
1003
|
handleKeyUp: (e: KeyboardEvent) => void;
|
|
1002
1004
|
syncPosition: () => void;
|
|
1003
|
-
|
|
1005
|
+
handleMenuAfterLeave: () => void;
|
|
1004
1006
|
handleMenuClickOutside: (e: MouseEvent) => void;
|
|
1005
1007
|
handleMenuScroll: (e: Event) => void;
|
|
1006
1008
|
handleMenuKeyup: (e: KeyboardEvent) => void;
|
|
@@ -1079,6 +1081,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1079
1081
|
pressedColor: string;
|
|
1080
1082
|
opacityDisabled: string;
|
|
1081
1083
|
inputColorDisabled: string;
|
|
1084
|
+
buttonColor2: string;
|
|
1085
|
+
buttonColor2Hover: string;
|
|
1086
|
+
buttonColor2Pressed: string;
|
|
1082
1087
|
boxShadow1: string;
|
|
1083
1088
|
boxShadow2: string;
|
|
1084
1089
|
boxShadow3: string;
|
|
@@ -1284,6 +1289,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1284
1289
|
readonly defaultValue?: unknown;
|
|
1285
1290
|
readonly value?: unknown;
|
|
1286
1291
|
readonly placeholder?: unknown;
|
|
1292
|
+
readonly menuProps?: unknown;
|
|
1287
1293
|
readonly multiple?: unknown;
|
|
1288
1294
|
readonly size?: unknown;
|
|
1289
1295
|
readonly filterable?: unknown;
|
|
@@ -1731,6 +1737,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1731
1737
|
inputProps?: InputHTMLAttributes | undefined;
|
|
1732
1738
|
renderTag?: RenderTag | undefined;
|
|
1733
1739
|
maxTagCount?: number | "responsive" | undefined;
|
|
1740
|
+
menuProps?: HTMLAttributes | undefined;
|
|
1734
1741
|
"onUpdate:value"?: MaybeArray<OnUpdateValue> | undefined;
|
|
1735
1742
|
onUpdateValue?: MaybeArray<OnUpdateValue> | undefined;
|
|
1736
1743
|
onSearch?: MaybeArray<(value: string) => void> | undefined;
|
package/lib/select/src/Select.js
CHANGED
|
@@ -24,7 +24,7 @@ const selectProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), {
|
|
|
24
24
|
}, defaultValue: {
|
|
25
25
|
type: [String, Number, Array],
|
|
26
26
|
default: null
|
|
27
|
-
}, value: [String, Number, Array], placeholder: String, multiple: Boolean, size: String, filterable: Boolean, disabled: {
|
|
27
|
+
}, value: [String, Number, Array], placeholder: String, menuProps: Object, multiple: Boolean, size: String, filterable: Boolean, disabled: {
|
|
28
28
|
type: Boolean,
|
|
29
29
|
default: undefined
|
|
30
30
|
}, remote: Boolean, loading: Boolean, filter: {
|
|
@@ -98,7 +98,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
98
98
|
const focusedRef = (0, vue_1.ref)(false);
|
|
99
99
|
const patternRef = (0, vue_1.ref)('');
|
|
100
100
|
const treeMateRef = (0, vue_1.computed)(() => (0, treemate_1.createTreeMate)(filteredOptionsRef.value, utils_1.tmOptions));
|
|
101
|
-
const valOptMapRef = (0, vue_1.computed)(() => (0, utils_1.createValOptMap)(
|
|
101
|
+
const valOptMapRef = (0, vue_1.computed)(() => (0, utils_1.createValOptMap)(localOptionsRef.value));
|
|
102
102
|
const uncontrolledShowRef = (0, vue_1.ref)(false);
|
|
103
103
|
const mergedShowRef = (0, vooks_1.useMergedState)((0, vue_1.toRef)(props, 'show'), uncontrolledShowRef);
|
|
104
104
|
const triggerRef = (0, vue_1.ref)(null);
|
|
@@ -270,7 +270,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
270
270
|
function closeMenu() {
|
|
271
271
|
doUpdateShow(false);
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function handleMenuAfterLeave() {
|
|
274
274
|
patternRef.value = '';
|
|
275
275
|
}
|
|
276
276
|
function handleTriggerClick() {
|
|
@@ -570,7 +570,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
570
570
|
handleKeyDown,
|
|
571
571
|
handleKeyUp,
|
|
572
572
|
syncPosition,
|
|
573
|
-
|
|
573
|
+
handleMenuAfterLeave,
|
|
574
574
|
handleMenuClickOutside,
|
|
575
575
|
handleMenuScroll,
|
|
576
576
|
handleMenuKeyup: handleKeyUp,
|
|
@@ -594,16 +594,22 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
594
594
|
default: () => ((0, vue_1.h)(_internal_1.NInternalSelection, { ref: "triggerRef", inputProps: this.inputProps, clsPrefix: mergedClsPrefix, showArrow: this.showArrow, maxTagCount: this.maxTagCount, bordered: this.mergedBordered, active: this.mergedShow, pattern: this.pattern, placeholder: this.localizedPlaceholder, selectedOption: this.selectedOption, selectedOptions: this.selectedOptions, multiple: this.multiple, renderTag: this.renderTag, renderLabel: this.renderLabel, filterable: this.filterable, clearable: this.clearable, disabled: this.mergedDisabled, size: this.mergedSize, theme: this.mergedTheme.peers.InternalSelection, themeOverrides: this.mergedTheme.peerOverrides.InternalSelection, loading: this.loading, focused: this.focused, onClick: this.handleTriggerClick, onDeleteOption: this.handleDeleteOption, onPatternInput: this.handlePatternInput, onClear: this.handleClear, onBlur: this.handleTriggerBlur, onFocus: this.handleTriggerFocus, onKeydown: this.handleKeyDown, onKeyup: this.handleKeyUp }))
|
|
595
595
|
}),
|
|
596
596
|
(0, vue_1.h)(vueuc_1.VFollower, { ref: "followerRef", show: this.mergedShow, to: this.adjustedTo, teleportDisabled: this.adjustedTo === _utils_1.useAdjustedTo.tdkey, containerClass: this.namespace, width: this.consistentMenuWidth ? 'target' : undefined, minWidth: "target", placement: this.placement }, {
|
|
597
|
-
default: () => ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted,
|
|
598
|
-
default: () =>
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
597
|
+
default: () => ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted, onAfterLeave: this.handleMenuAfterLeave }, {
|
|
598
|
+
default: () => {
|
|
599
|
+
var _a, _b;
|
|
600
|
+
return (this.mergedShow ||
|
|
601
|
+
this.displayDirective === 'show') &&
|
|
602
|
+
(0, vue_1.withDirectives)((0, vue_1.h)(_internal_1.NInternalSelectMenu, Object.assign({}, this.menuProps, { ref: "menuRef", virtualScroll: this.consistentMenuWidth && this.virtualScroll, class: [
|
|
603
|
+
`${mergedClsPrefix}-select-menu`,
|
|
604
|
+
(_a = this.menuProps) === null || _a === void 0 ? void 0 : _a.class
|
|
605
|
+
], clsPrefix: mergedClsPrefix, focusable: true, autoPending: true, theme: this.mergedTheme.peers.InternalSelectMenu, themeOverrides: this.mergedTheme.peerOverrides
|
|
606
|
+
.InternalSelectMenu, treeMate: this.treeMate, multiple: this.multiple, size: 'medium', renderOption: this.renderOption, renderLabel: this.renderLabel, value: this.mergedValue, style: [(_b = this.menuProps) === null || _b === void 0 ? void 0 : _b.style, this.cssVars], onToggle: this.handleToggle, onScroll: this.handleMenuScroll, onFocus: this.handleMenuFocus, onBlur: this.handleMenuBlur, onKeyup: this.handleMenuKeyup, onKeydown: this.handleMenuKeydown, onTabOut: this.handleMenuTabOut, onMousedown: this.handleMenuMousedown, show: this.mergedShow }), $slots), this.displayDirective === 'show'
|
|
607
|
+
? [
|
|
608
|
+
[vue_1.vShow, this.mergedShow],
|
|
609
|
+
[vdirs_1.clickoutside, this.handleMenuClickOutside]
|
|
610
|
+
]
|
|
611
|
+
: [[vdirs_1.clickoutside, this.handleMenuClickOutside]]);
|
|
612
|
+
}
|
|
607
613
|
}))
|
|
608
614
|
})
|
|
609
615
|
]
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { FollowerPlacement } from 'vueuc';
|
|
3
|
-
import
|
|
3
|
+
import { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
|
|
4
|
+
export interface ClosestMark {
|
|
5
|
+
value: number;
|
|
6
|
+
distance: number;
|
|
7
|
+
index: number;
|
|
8
|
+
}
|
|
4
9
|
declare const sliderProps: {
|
|
5
10
|
readonly to: {
|
|
6
11
|
type: PropType<string | boolean | HTMLElement>;
|
|
7
12
|
default: undefined;
|
|
8
13
|
};
|
|
9
14
|
readonly defaultValue: {
|
|
10
|
-
readonly type: PropType<number | [
|
|
15
|
+
readonly type: PropType<number | number[]>;
|
|
11
16
|
readonly default: 0;
|
|
12
17
|
};
|
|
13
18
|
readonly marks: PropType<Record<string, string>>;
|
|
@@ -25,15 +30,12 @@ declare const sliderProps: {
|
|
|
25
30
|
readonly default: 100;
|
|
26
31
|
};
|
|
27
32
|
readonly step: {
|
|
28
|
-
readonly type:
|
|
33
|
+
readonly type: PropType<number | "mark">;
|
|
29
34
|
readonly default: 1;
|
|
30
35
|
};
|
|
31
36
|
readonly range: BooleanConstructor;
|
|
32
|
-
readonly value: PropType<number | [
|
|
33
|
-
readonly placement:
|
|
34
|
-
readonly type: PropType<FollowerPlacement>;
|
|
35
|
-
readonly default: "top";
|
|
36
|
-
};
|
|
37
|
+
readonly value: PropType<number | number[]>;
|
|
38
|
+
readonly placement: PropType<FollowerPlacement>;
|
|
37
39
|
readonly showTooltip: {
|
|
38
40
|
readonly type: PropType<boolean | undefined>;
|
|
39
41
|
readonly default: undefined;
|
|
@@ -42,13 +44,10 @@ declare const sliderProps: {
|
|
|
42
44
|
readonly type: BooleanConstructor;
|
|
43
45
|
readonly default: true;
|
|
44
46
|
};
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
readonly
|
|
48
|
-
|
|
49
|
-
readonly validator: () => boolean;
|
|
50
|
-
readonly default: undefined;
|
|
51
|
-
};
|
|
47
|
+
readonly vertical: BooleanConstructor;
|
|
48
|
+
readonly reverse: BooleanConstructor;
|
|
49
|
+
readonly 'onUpdate:value': PropType<MaybeArray<(value: number & number[]) => void>>;
|
|
50
|
+
readonly onUpdateValue: PropType<MaybeArray<(value: number & number[]) => void>>;
|
|
52
51
|
readonly theme: PropType<import("../../_mixins").Theme<"Slider", {
|
|
53
52
|
fontSize: string;
|
|
54
53
|
railColor: string;
|
|
@@ -72,6 +71,7 @@ declare const sliderProps: {
|
|
|
72
71
|
dotBorderActive: string;
|
|
73
72
|
dotBoxShadow: string;
|
|
74
73
|
railHeight: string;
|
|
74
|
+
railWidthVertical: string;
|
|
75
75
|
handleSize: string;
|
|
76
76
|
dotHeight: string;
|
|
77
77
|
dotWidth: string;
|
|
@@ -100,6 +100,7 @@ declare const sliderProps: {
|
|
|
100
100
|
dotBorderActive: string;
|
|
101
101
|
dotBoxShadow: string;
|
|
102
102
|
railHeight: string;
|
|
103
|
+
railWidthVertical: string;
|
|
103
104
|
handleSize: string;
|
|
104
105
|
dotHeight: string;
|
|
105
106
|
dotWidth: string;
|
|
@@ -128,6 +129,7 @@ declare const sliderProps: {
|
|
|
128
129
|
dotBorderActive: string;
|
|
129
130
|
dotBoxShadow: string;
|
|
130
131
|
railHeight: string;
|
|
132
|
+
railWidthVertical: string;
|
|
131
133
|
handleSize: string;
|
|
132
134
|
dotHeight: string;
|
|
133
135
|
dotWidth: string;
|
|
@@ -141,7 +143,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
141
143
|
default: undefined;
|
|
142
144
|
};
|
|
143
145
|
readonly defaultValue: {
|
|
144
|
-
readonly type: PropType<number | [
|
|
146
|
+
readonly type: PropType<number | number[]>;
|
|
145
147
|
readonly default: 0;
|
|
146
148
|
};
|
|
147
149
|
readonly marks: PropType<Record<string, string>>;
|
|
@@ -159,15 +161,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
159
161
|
readonly default: 100;
|
|
160
162
|
};
|
|
161
163
|
readonly step: {
|
|
162
|
-
readonly type:
|
|
164
|
+
readonly type: PropType<number | "mark">;
|
|
163
165
|
readonly default: 1;
|
|
164
166
|
};
|
|
165
167
|
readonly range: BooleanConstructor;
|
|
166
|
-
readonly value: PropType<number | [
|
|
167
|
-
readonly placement:
|
|
168
|
-
readonly type: PropType<FollowerPlacement>;
|
|
169
|
-
readonly default: "top";
|
|
170
|
-
};
|
|
168
|
+
readonly value: PropType<number | number[]>;
|
|
169
|
+
readonly placement: PropType<FollowerPlacement>;
|
|
171
170
|
readonly showTooltip: {
|
|
172
171
|
readonly type: PropType<boolean | undefined>;
|
|
173
172
|
readonly default: undefined;
|
|
@@ -176,13 +175,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
176
175
|
readonly type: BooleanConstructor;
|
|
177
176
|
readonly default: true;
|
|
178
177
|
};
|
|
179
|
-
readonly
|
|
180
|
-
readonly
|
|
181
|
-
readonly
|
|
182
|
-
|
|
183
|
-
readonly validator: () => boolean;
|
|
184
|
-
readonly default: undefined;
|
|
185
|
-
};
|
|
178
|
+
readonly vertical: BooleanConstructor;
|
|
179
|
+
readonly reverse: BooleanConstructor;
|
|
180
|
+
readonly 'onUpdate:value': PropType<MaybeArray<(value: number & number[]) => void>>;
|
|
181
|
+
readonly onUpdateValue: PropType<MaybeArray<(value: number & number[]) => void>>;
|
|
186
182
|
readonly theme: PropType<import("../../_mixins").Theme<"Slider", {
|
|
187
183
|
fontSize: string;
|
|
188
184
|
railColor: string;
|
|
@@ -206,6 +202,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
206
202
|
dotBorderActive: string;
|
|
207
203
|
dotBoxShadow: string;
|
|
208
204
|
railHeight: string;
|
|
205
|
+
railWidthVertical: string;
|
|
209
206
|
handleSize: string;
|
|
210
207
|
dotHeight: string;
|
|
211
208
|
dotWidth: string;
|
|
@@ -234,6 +231,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
234
231
|
dotBorderActive: string;
|
|
235
232
|
dotBoxShadow: string;
|
|
236
233
|
railHeight: string;
|
|
234
|
+
railWidthVertical: string;
|
|
237
235
|
handleSize: string;
|
|
238
236
|
dotHeight: string;
|
|
239
237
|
dotWidth: string;
|
|
@@ -262,6 +260,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
262
260
|
dotBorderActive: string;
|
|
263
261
|
dotBoxShadow: string;
|
|
264
262
|
railHeight: string;
|
|
263
|
+
railWidthVertical: string;
|
|
265
264
|
handleSize: string;
|
|
266
265
|
dotHeight: string;
|
|
267
266
|
dotWidth: string;
|
|
@@ -270,69 +269,43 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
270
269
|
}, {
|
|
271
270
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
272
271
|
namespace: import("vue").ComputedRef<string | undefined>;
|
|
273
|
-
uncontrolledValue: import("vue").Ref<number | [
|
|
274
|
-
mergedValue: import("vue").ComputedRef<number | [
|
|
272
|
+
uncontrolledValue: import("vue").Ref<number | number[]>;
|
|
273
|
+
mergedValue: import("vue").ComputedRef<number | number[]>;
|
|
275
274
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
275
|
+
mergedPlacement: import("vue").ComputedRef<FollowerPlacement>;
|
|
276
276
|
isMounted: Readonly<import("vue").Ref<boolean>>;
|
|
277
277
|
adjustedTo: import("vue").ComputedRef<string | HTMLElement>;
|
|
278
|
-
handleValue1: import("vue").ComputedRef<number>;
|
|
279
|
-
handleValue2: import("vue").ComputedRef<number>;
|
|
280
|
-
mergedShowTooltip1: import("vue").ComputedRef<boolean>;
|
|
281
|
-
mergedShowTooltip2: import("vue").ComputedRef<boolean>;
|
|
282
|
-
handleActive1: import("vue").Ref<boolean>;
|
|
283
|
-
handleActive2: import("vue").Ref<boolean>;
|
|
284
|
-
handleClicked1: import("vue").Ref<boolean>;
|
|
285
|
-
handleClicked2: import("vue").Ref<boolean>;
|
|
286
|
-
memoziedOtherValue: import("vue").Ref<number>;
|
|
287
|
-
active: import("vue").ComputedRef<boolean>;
|
|
288
|
-
prevActive: import("vue").Ref<boolean>;
|
|
289
|
-
clicked: import("vue").ComputedRef<boolean>;
|
|
290
278
|
dotTransitionDisabled: import("vue").Ref<boolean>;
|
|
291
279
|
markInfos: import("vue").ComputedRef<{
|
|
292
280
|
active: boolean;
|
|
293
281
|
label: string;
|
|
294
282
|
style: {
|
|
295
|
-
|
|
283
|
+
[x: string]: string;
|
|
296
284
|
};
|
|
297
285
|
}[]>;
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
} | null>;
|
|
304
|
-
followerRef2: import("vue").Ref<{
|
|
305
|
-
syncPosition: () => void;
|
|
306
|
-
} | null>;
|
|
307
|
-
firstHandleStyle: import("vue").ComputedRef<{
|
|
308
|
-
left: string;
|
|
309
|
-
transform: string;
|
|
310
|
-
zIndex: number;
|
|
311
|
-
}>;
|
|
312
|
-
secondHandleStyle: import("vue").ComputedRef<{
|
|
313
|
-
left: string;
|
|
314
|
-
transform: string;
|
|
315
|
-
zIndex: number;
|
|
316
|
-
}>;
|
|
286
|
+
isShowTooltip: (index: number) => boolean;
|
|
287
|
+
isSkipCSSDetection: (index: number) => boolean;
|
|
288
|
+
handleRailRef: import("vue").Ref<HTMLElement | null>;
|
|
289
|
+
setHandleRefs: (key: number) => (el: any) => void;
|
|
290
|
+
setFollowerRefs: (key: number) => (el: any) => void;
|
|
317
291
|
fillStyle: import("vue").ComputedRef<{
|
|
318
|
-
|
|
319
|
-
|
|
292
|
+
[x: string]: string;
|
|
293
|
+
height: string;
|
|
294
|
+
width?: undefined;
|
|
320
295
|
} | {
|
|
321
|
-
|
|
296
|
+
[x: string]: string;
|
|
322
297
|
width: string;
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
handleSecondHandleMouseEnter: () => void;
|
|
335
|
-
handleSecondHandleMouseLeave: () => void;
|
|
298
|
+
height?: undefined;
|
|
299
|
+
} | undefined>;
|
|
300
|
+
getHandleStyle: (value: number, index: number) => Record<string, any>;
|
|
301
|
+
activeIndex: import("vue").Ref<number>;
|
|
302
|
+
arrifiedValues: import("vue").ComputedRef<number[]>;
|
|
303
|
+
handleRailMouseDown: (event: MouseEvent | TouchEvent) => void;
|
|
304
|
+
handleHandleFocus: (index: number) => void;
|
|
305
|
+
handleHandleBlur: (index: number) => void;
|
|
306
|
+
handleHandleMouseEnter: (index: number) => void;
|
|
307
|
+
handleHandleMouseLeave: (index: number) => void;
|
|
308
|
+
handleRailKeyDown: (e: KeyboardEvent) => void;
|
|
336
309
|
indicatorCssVars: import("vue").ComputedRef<{
|
|
337
310
|
'--font-size': string;
|
|
338
311
|
'--indicator-border-radius': string;
|
|
@@ -364,6 +337,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
364
337
|
'--rail-color': string;
|
|
365
338
|
'--rail-color-hover': string;
|
|
366
339
|
'--rail-height': string;
|
|
340
|
+
'--rail-width-vertical': string;
|
|
367
341
|
}>;
|
|
368
342
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
369
343
|
readonly to?: unknown;
|
|
@@ -379,24 +353,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
379
353
|
readonly placement?: unknown;
|
|
380
354
|
readonly showTooltip?: unknown;
|
|
381
355
|
readonly tooltip?: unknown;
|
|
356
|
+
readonly vertical?: unknown;
|
|
357
|
+
readonly reverse?: unknown;
|
|
382
358
|
readonly 'onUpdate:value'?: unknown;
|
|
383
359
|
readonly onUpdateValue?: unknown;
|
|
384
|
-
readonly onChange?: unknown;
|
|
385
360
|
readonly theme?: unknown;
|
|
386
361
|
readonly themeOverrides?: unknown;
|
|
387
362
|
readonly builtinThemeOverrides?: unknown;
|
|
388
363
|
} & {
|
|
389
364
|
range: boolean;
|
|
365
|
+
reverse: boolean;
|
|
366
|
+
vertical: boolean;
|
|
390
367
|
tooltip: boolean;
|
|
391
|
-
step: number;
|
|
368
|
+
step: number | "mark";
|
|
392
369
|
max: number;
|
|
393
370
|
min: number;
|
|
394
|
-
|
|
395
|
-
defaultValue: number | [number, number];
|
|
371
|
+
defaultValue: number | number[];
|
|
396
372
|
} & {
|
|
397
|
-
value?: number | [
|
|
373
|
+
value?: number | number[] | undefined;
|
|
398
374
|
disabled?: boolean | undefined;
|
|
399
|
-
onChange?: MaybeArray<(<T_2 extends number & [number, number]>(value: T_2) => void)> | undefined;
|
|
400
375
|
to?: string | boolean | HTMLElement | undefined;
|
|
401
376
|
theme?: import("../../_mixins").Theme<"Slider", {
|
|
402
377
|
fontSize: string;
|
|
@@ -421,6 +396,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
421
396
|
dotBorderActive: string;
|
|
422
397
|
dotBoxShadow: string;
|
|
423
398
|
railHeight: string;
|
|
399
|
+
railWidthVertical: string;
|
|
424
400
|
handleSize: string;
|
|
425
401
|
dotHeight: string;
|
|
426
402
|
dotWidth: string;
|
|
@@ -449,6 +425,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
449
425
|
dotBorderActive: string;
|
|
450
426
|
dotBoxShadow: string;
|
|
451
427
|
railHeight: string;
|
|
428
|
+
railWidthVertical: string;
|
|
452
429
|
handleSize: string;
|
|
453
430
|
dotHeight: string;
|
|
454
431
|
dotWidth: string;
|
|
@@ -477,27 +454,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
477
454
|
dotBorderActive: string;
|
|
478
455
|
dotBoxShadow: string;
|
|
479
456
|
railHeight: string;
|
|
457
|
+
railWidthVertical: string;
|
|
480
458
|
handleSize: string;
|
|
481
459
|
dotHeight: string;
|
|
482
460
|
dotWidth: string;
|
|
483
461
|
dotBorderRadius: string;
|
|
484
462
|
}, any>> | undefined;
|
|
485
|
-
|
|
486
|
-
|
|
463
|
+
placement?: FollowerPlacement | undefined;
|
|
464
|
+
"onUpdate:value"?: MaybeArray<(value: number & number[]) => void> | undefined;
|
|
465
|
+
onUpdateValue?: MaybeArray<(value: number & number[]) => void> | undefined;
|
|
487
466
|
marks?: Record<string, string> | undefined;
|
|
488
467
|
formatTooltip?: ((value: number) => string | number) | undefined;
|
|
489
468
|
showTooltip?: boolean | undefined;
|
|
490
469
|
}>, {
|
|
491
470
|
range: boolean;
|
|
471
|
+
reverse: boolean;
|
|
472
|
+
vertical: boolean;
|
|
492
473
|
tooltip: boolean;
|
|
493
474
|
disabled: boolean | undefined;
|
|
494
|
-
step: number;
|
|
495
|
-
onChange: MaybeArray<(<T_2 extends number & [number, number]>(value: T_2) => void)>;
|
|
475
|
+
step: number | "mark";
|
|
496
476
|
max: number;
|
|
497
477
|
min: number;
|
|
498
478
|
to: string | boolean | HTMLElement;
|
|
499
|
-
|
|
500
|
-
defaultValue: number | [number, number];
|
|
479
|
+
defaultValue: number | number[];
|
|
501
480
|
showTooltip: boolean | undefined;
|
|
502
481
|
}>;
|
|
503
482
|
export default _default;
|