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
|
@@ -30,6 +30,17 @@ declare const inputNumberProps: {
|
|
|
30
30
|
};
|
|
31
31
|
readonly: BooleanConstructor;
|
|
32
32
|
clearable: BooleanConstructor;
|
|
33
|
+
keyboard: {
|
|
34
|
+
type: PropType<{
|
|
35
|
+
ArrowUp?: boolean | undefined;
|
|
36
|
+
ArrowDown?: boolean | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
default: {};
|
|
39
|
+
};
|
|
40
|
+
updateValueOnInput: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
33
44
|
'onUpdate:value': PropType<MaybeArray<OnUpdateValue>>;
|
|
34
45
|
onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
|
|
35
46
|
onFocus: PropType<MaybeArray<(e: FocusEvent) => void>>;
|
|
@@ -57,20 +68,30 @@ declare const inputNumberProps: {
|
|
|
57
68
|
fontSizeMedium: string;
|
|
58
69
|
fontSizeLarge: string;
|
|
59
70
|
opacityDisabled: string;
|
|
71
|
+
colorOpacitySecondary: number;
|
|
72
|
+
colorOpacitySecondaryHover: number;
|
|
73
|
+
colorOpacitySecondaryPressed: number;
|
|
74
|
+
colorSecondary: string;
|
|
75
|
+
colorSecondaryHover: string;
|
|
76
|
+
colorSecondaryPressed: string;
|
|
77
|
+
colorTertiary: string;
|
|
78
|
+
colorTertiaryHover: string;
|
|
79
|
+
colorTertiaryPressed: string;
|
|
80
|
+
colorQuaternary: string;
|
|
81
|
+
colorQuaternaryHover: string;
|
|
82
|
+
colorQuaternaryPressed: string;
|
|
60
83
|
color: string;
|
|
61
84
|
colorHover: string;
|
|
62
85
|
colorPressed: string;
|
|
63
86
|
colorFocus: string;
|
|
64
87
|
colorDisabled: string;
|
|
65
88
|
textColor: string;
|
|
89
|
+
textColorTertiary: string;
|
|
66
90
|
textColorHover: string;
|
|
67
91
|
textColorPressed: string;
|
|
68
92
|
textColorFocus: string;
|
|
69
93
|
textColorDisabled: string;
|
|
70
94
|
textColorText: string;
|
|
71
|
-
textColorTextDepth1: string;
|
|
72
|
-
textColorTextDepth2: string;
|
|
73
|
-
textColorTextDepth3: string;
|
|
74
95
|
textColorTextHover: string;
|
|
75
96
|
textColorTextPressed: string;
|
|
76
97
|
textColorTextFocus: string;
|
|
@@ -217,9 +238,8 @@ declare const inputNumberProps: {
|
|
|
217
238
|
borderDisabledError: string;
|
|
218
239
|
rippleColorError: string;
|
|
219
240
|
waveOpacity: string;
|
|
220
|
-
fontWeightText: string;
|
|
221
241
|
fontWeight: string;
|
|
222
|
-
|
|
242
|
+
fontWeightStrong: string;
|
|
223
243
|
paddingTiny: string;
|
|
224
244
|
paddingSmall: string;
|
|
225
245
|
paddingMedium: string;
|
|
@@ -316,20 +336,30 @@ declare const inputNumberProps: {
|
|
|
316
336
|
fontSizeMedium: string;
|
|
317
337
|
fontSizeLarge: string;
|
|
318
338
|
opacityDisabled: string;
|
|
339
|
+
colorOpacitySecondary: number;
|
|
340
|
+
colorOpacitySecondaryHover: number;
|
|
341
|
+
colorOpacitySecondaryPressed: number;
|
|
342
|
+
colorSecondary: string;
|
|
343
|
+
colorSecondaryHover: string;
|
|
344
|
+
colorSecondaryPressed: string;
|
|
345
|
+
colorTertiary: string;
|
|
346
|
+
colorTertiaryHover: string;
|
|
347
|
+
colorTertiaryPressed: string;
|
|
348
|
+
colorQuaternary: string;
|
|
349
|
+
colorQuaternaryHover: string;
|
|
350
|
+
colorQuaternaryPressed: string;
|
|
319
351
|
color: string;
|
|
320
352
|
colorHover: string;
|
|
321
353
|
colorPressed: string;
|
|
322
354
|
colorFocus: string;
|
|
323
355
|
colorDisabled: string;
|
|
324
356
|
textColor: string;
|
|
357
|
+
textColorTertiary: string;
|
|
325
358
|
textColorHover: string;
|
|
326
359
|
textColorPressed: string;
|
|
327
360
|
textColorFocus: string;
|
|
328
361
|
textColorDisabled: string;
|
|
329
362
|
textColorText: string;
|
|
330
|
-
textColorTextDepth1: string;
|
|
331
|
-
textColorTextDepth2: string;
|
|
332
|
-
textColorTextDepth3: string;
|
|
333
363
|
textColorTextHover: string;
|
|
334
364
|
textColorTextPressed: string;
|
|
335
365
|
textColorTextFocus: string;
|
|
@@ -476,9 +506,8 @@ declare const inputNumberProps: {
|
|
|
476
506
|
borderDisabledError: string;
|
|
477
507
|
rippleColorError: string;
|
|
478
508
|
waveOpacity: string;
|
|
479
|
-
fontWeightText: string;
|
|
480
509
|
fontWeight: string;
|
|
481
|
-
|
|
510
|
+
fontWeightStrong: string;
|
|
482
511
|
paddingTiny: string;
|
|
483
512
|
paddingSmall: string;
|
|
484
513
|
paddingMedium: string;
|
|
@@ -575,20 +604,30 @@ declare const inputNumberProps: {
|
|
|
575
604
|
fontSizeMedium: string;
|
|
576
605
|
fontSizeLarge: string;
|
|
577
606
|
opacityDisabled: string;
|
|
607
|
+
colorOpacitySecondary: number;
|
|
608
|
+
colorOpacitySecondaryHover: number;
|
|
609
|
+
colorOpacitySecondaryPressed: number;
|
|
610
|
+
colorSecondary: string;
|
|
611
|
+
colorSecondaryHover: string;
|
|
612
|
+
colorSecondaryPressed: string;
|
|
613
|
+
colorTertiary: string;
|
|
614
|
+
colorTertiaryHover: string;
|
|
615
|
+
colorTertiaryPressed: string;
|
|
616
|
+
colorQuaternary: string;
|
|
617
|
+
colorQuaternaryHover: string;
|
|
618
|
+
colorQuaternaryPressed: string;
|
|
578
619
|
color: string;
|
|
579
620
|
colorHover: string;
|
|
580
621
|
colorPressed: string;
|
|
581
622
|
colorFocus: string;
|
|
582
623
|
colorDisabled: string;
|
|
583
624
|
textColor: string;
|
|
625
|
+
textColorTertiary: string;
|
|
584
626
|
textColorHover: string;
|
|
585
627
|
textColorPressed: string;
|
|
586
628
|
textColorFocus: string;
|
|
587
629
|
textColorDisabled: string;
|
|
588
630
|
textColorText: string;
|
|
589
|
-
textColorTextDepth1: string;
|
|
590
|
-
textColorTextDepth2: string;
|
|
591
|
-
textColorTextDepth3: string;
|
|
592
631
|
textColorTextHover: string;
|
|
593
632
|
textColorTextPressed: string;
|
|
594
633
|
textColorTextFocus: string;
|
|
@@ -735,9 +774,8 @@ declare const inputNumberProps: {
|
|
|
735
774
|
borderDisabledError: string;
|
|
736
775
|
rippleColorError: string;
|
|
737
776
|
waveOpacity: string;
|
|
738
|
-
fontWeightText: string;
|
|
739
777
|
fontWeight: string;
|
|
740
|
-
|
|
778
|
+
fontWeightStrong: string;
|
|
741
779
|
paddingTiny: string;
|
|
742
780
|
paddingSmall: string;
|
|
743
781
|
paddingMedium: string;
|
|
@@ -848,6 +886,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
848
886
|
};
|
|
849
887
|
readonly: BooleanConstructor;
|
|
850
888
|
clearable: BooleanConstructor;
|
|
889
|
+
keyboard: {
|
|
890
|
+
type: PropType<{
|
|
891
|
+
ArrowUp?: boolean | undefined;
|
|
892
|
+
ArrowDown?: boolean | undefined;
|
|
893
|
+
}>;
|
|
894
|
+
default: {};
|
|
895
|
+
};
|
|
896
|
+
updateValueOnInput: {
|
|
897
|
+
type: BooleanConstructor;
|
|
898
|
+
default: boolean;
|
|
899
|
+
};
|
|
851
900
|
'onUpdate:value': PropType<MaybeArray<OnUpdateValue>>;
|
|
852
901
|
onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
|
|
853
902
|
onFocus: PropType<MaybeArray<(e: FocusEvent) => void>>;
|
|
@@ -875,20 +924,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
875
924
|
fontSizeMedium: string;
|
|
876
925
|
fontSizeLarge: string;
|
|
877
926
|
opacityDisabled: string;
|
|
927
|
+
colorOpacitySecondary: number;
|
|
928
|
+
colorOpacitySecondaryHover: number;
|
|
929
|
+
colorOpacitySecondaryPressed: number;
|
|
930
|
+
colorSecondary: string;
|
|
931
|
+
colorSecondaryHover: string;
|
|
932
|
+
colorSecondaryPressed: string;
|
|
933
|
+
colorTertiary: string;
|
|
934
|
+
colorTertiaryHover: string;
|
|
935
|
+
colorTertiaryPressed: string;
|
|
936
|
+
colorQuaternary: string;
|
|
937
|
+
colorQuaternaryHover: string;
|
|
938
|
+
colorQuaternaryPressed: string;
|
|
878
939
|
color: string;
|
|
879
940
|
colorHover: string;
|
|
880
941
|
colorPressed: string;
|
|
881
942
|
colorFocus: string;
|
|
882
943
|
colorDisabled: string;
|
|
883
944
|
textColor: string;
|
|
945
|
+
textColorTertiary: string;
|
|
884
946
|
textColorHover: string;
|
|
885
947
|
textColorPressed: string;
|
|
886
948
|
textColorFocus: string;
|
|
887
949
|
textColorDisabled: string;
|
|
888
950
|
textColorText: string;
|
|
889
|
-
textColorTextDepth1: string;
|
|
890
|
-
textColorTextDepth2: string;
|
|
891
|
-
textColorTextDepth3: string;
|
|
892
951
|
textColorTextHover: string;
|
|
893
952
|
textColorTextPressed: string;
|
|
894
953
|
textColorTextFocus: string;
|
|
@@ -1035,9 +1094,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1035
1094
|
borderDisabledError: string;
|
|
1036
1095
|
rippleColorError: string;
|
|
1037
1096
|
waveOpacity: string;
|
|
1038
|
-
fontWeightText: string;
|
|
1039
1097
|
fontWeight: string;
|
|
1040
|
-
|
|
1098
|
+
fontWeightStrong: string;
|
|
1041
1099
|
paddingTiny: string;
|
|
1042
1100
|
paddingSmall: string;
|
|
1043
1101
|
paddingMedium: string;
|
|
@@ -1134,20 +1192,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1134
1192
|
fontSizeMedium: string;
|
|
1135
1193
|
fontSizeLarge: string;
|
|
1136
1194
|
opacityDisabled: string;
|
|
1195
|
+
colorOpacitySecondary: number;
|
|
1196
|
+
colorOpacitySecondaryHover: number;
|
|
1197
|
+
colorOpacitySecondaryPressed: number;
|
|
1198
|
+
colorSecondary: string;
|
|
1199
|
+
colorSecondaryHover: string;
|
|
1200
|
+
colorSecondaryPressed: string;
|
|
1201
|
+
colorTertiary: string;
|
|
1202
|
+
colorTertiaryHover: string;
|
|
1203
|
+
colorTertiaryPressed: string;
|
|
1204
|
+
colorQuaternary: string;
|
|
1205
|
+
colorQuaternaryHover: string;
|
|
1206
|
+
colorQuaternaryPressed: string;
|
|
1137
1207
|
color: string;
|
|
1138
1208
|
colorHover: string;
|
|
1139
1209
|
colorPressed: string;
|
|
1140
1210
|
colorFocus: string;
|
|
1141
1211
|
colorDisabled: string;
|
|
1142
1212
|
textColor: string;
|
|
1213
|
+
textColorTertiary: string;
|
|
1143
1214
|
textColorHover: string;
|
|
1144
1215
|
textColorPressed: string;
|
|
1145
1216
|
textColorFocus: string;
|
|
1146
1217
|
textColorDisabled: string;
|
|
1147
1218
|
textColorText: string;
|
|
1148
|
-
textColorTextDepth1: string;
|
|
1149
|
-
textColorTextDepth2: string;
|
|
1150
|
-
textColorTextDepth3: string;
|
|
1151
1219
|
textColorTextHover: string;
|
|
1152
1220
|
textColorTextPressed: string;
|
|
1153
1221
|
textColorTextFocus: string;
|
|
@@ -1294,9 +1362,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1294
1362
|
borderDisabledError: string;
|
|
1295
1363
|
rippleColorError: string;
|
|
1296
1364
|
waveOpacity: string;
|
|
1297
|
-
fontWeightText: string;
|
|
1298
1365
|
fontWeight: string;
|
|
1299
|
-
|
|
1366
|
+
fontWeightStrong: string;
|
|
1300
1367
|
paddingTiny: string;
|
|
1301
1368
|
paddingSmall: string;
|
|
1302
1369
|
paddingMedium: string;
|
|
@@ -1393,20 +1460,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1393
1460
|
fontSizeMedium: string;
|
|
1394
1461
|
fontSizeLarge: string;
|
|
1395
1462
|
opacityDisabled: string;
|
|
1463
|
+
colorOpacitySecondary: number;
|
|
1464
|
+
colorOpacitySecondaryHover: number;
|
|
1465
|
+
colorOpacitySecondaryPressed: number;
|
|
1466
|
+
colorSecondary: string;
|
|
1467
|
+
colorSecondaryHover: string;
|
|
1468
|
+
colorSecondaryPressed: string;
|
|
1469
|
+
colorTertiary: string;
|
|
1470
|
+
colorTertiaryHover: string;
|
|
1471
|
+
colorTertiaryPressed: string;
|
|
1472
|
+
colorQuaternary: string;
|
|
1473
|
+
colorQuaternaryHover: string;
|
|
1474
|
+
colorQuaternaryPressed: string;
|
|
1396
1475
|
color: string;
|
|
1397
1476
|
colorHover: string;
|
|
1398
1477
|
colorPressed: string;
|
|
1399
1478
|
colorFocus: string;
|
|
1400
1479
|
colorDisabled: string;
|
|
1401
1480
|
textColor: string;
|
|
1481
|
+
textColorTertiary: string;
|
|
1402
1482
|
textColorHover: string;
|
|
1403
1483
|
textColorPressed: string;
|
|
1404
1484
|
textColorFocus: string;
|
|
1405
1485
|
textColorDisabled: string;
|
|
1406
1486
|
textColorText: string;
|
|
1407
|
-
textColorTextDepth1: string;
|
|
1408
|
-
textColorTextDepth2: string;
|
|
1409
|
-
textColorTextDepth3: string;
|
|
1410
1487
|
textColorTextHover: string;
|
|
1411
1488
|
textColorTextPressed: string;
|
|
1412
1489
|
textColorTextFocus: string;
|
|
@@ -1553,9 +1630,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1553
1630
|
borderDisabledError: string;
|
|
1554
1631
|
rippleColorError: string;
|
|
1555
1632
|
waveOpacity: string;
|
|
1556
|
-
fontWeightText: string;
|
|
1557
1633
|
fontWeight: string;
|
|
1558
|
-
|
|
1634
|
+
fontWeightStrong: string;
|
|
1559
1635
|
paddingTiny: string;
|
|
1560
1636
|
paddingSmall: string;
|
|
1561
1637
|
paddingMedium: string;
|
|
@@ -1643,6 +1719,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1643
1719
|
isCompositing: boolean;
|
|
1644
1720
|
blur: () => void;
|
|
1645
1721
|
focus: () => void;
|
|
1722
|
+
select: () => void;
|
|
1646
1723
|
activate: () => void;
|
|
1647
1724
|
deactivate: () => void;
|
|
1648
1725
|
} | null>;
|
|
@@ -1741,9 +1818,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1741
1818
|
tableHeaderColor: string;
|
|
1742
1819
|
hoverColor: string;
|
|
1743
1820
|
tableColorHover: string;
|
|
1821
|
+
tableColorStriped: string;
|
|
1744
1822
|
pressedColor: string;
|
|
1745
1823
|
opacityDisabled: string;
|
|
1746
1824
|
inputColorDisabled: string;
|
|
1825
|
+
buttonColor2: string;
|
|
1826
|
+
buttonColor2Hover: string;
|
|
1827
|
+
buttonColor2Pressed: string;
|
|
1747
1828
|
boxShadow1: string;
|
|
1748
1829
|
boxShadow2: string;
|
|
1749
1830
|
boxShadow3: string;
|
|
@@ -1789,20 +1870,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1789
1870
|
fontSizeMedium: string;
|
|
1790
1871
|
fontSizeLarge: string;
|
|
1791
1872
|
opacityDisabled: string;
|
|
1873
|
+
colorOpacitySecondary: number;
|
|
1874
|
+
colorOpacitySecondaryHover: number;
|
|
1875
|
+
colorOpacitySecondaryPressed: number;
|
|
1876
|
+
colorSecondary: string;
|
|
1877
|
+
colorSecondaryHover: string;
|
|
1878
|
+
colorSecondaryPressed: string;
|
|
1879
|
+
colorTertiary: string;
|
|
1880
|
+
colorTertiaryHover: string;
|
|
1881
|
+
colorTertiaryPressed: string;
|
|
1882
|
+
colorQuaternary: string;
|
|
1883
|
+
colorQuaternaryHover: string;
|
|
1884
|
+
colorQuaternaryPressed: string;
|
|
1792
1885
|
color: string;
|
|
1793
1886
|
colorHover: string;
|
|
1794
1887
|
colorPressed: string;
|
|
1795
1888
|
colorFocus: string;
|
|
1796
1889
|
colorDisabled: string;
|
|
1797
1890
|
textColor: string;
|
|
1891
|
+
textColorTertiary: string;
|
|
1798
1892
|
textColorHover: string;
|
|
1799
1893
|
textColorPressed: string;
|
|
1800
1894
|
textColorFocus: string;
|
|
1801
1895
|
textColorDisabled: string;
|
|
1802
1896
|
textColorText: string;
|
|
1803
|
-
textColorTextDepth1: string;
|
|
1804
|
-
textColorTextDepth2: string;
|
|
1805
|
-
textColorTextDepth3: string;
|
|
1806
1897
|
textColorTextHover: string;
|
|
1807
1898
|
textColorTextPressed: string;
|
|
1808
1899
|
textColorTextFocus: string;
|
|
@@ -1949,9 +2040,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1949
2040
|
borderDisabledError: string;
|
|
1950
2041
|
rippleColorError: string;
|
|
1951
2042
|
waveOpacity: string;
|
|
1952
|
-
fontWeightText: string;
|
|
1953
2043
|
fontWeight: string;
|
|
1954
|
-
|
|
2044
|
+
fontWeightStrong: string;
|
|
1955
2045
|
paddingTiny: string;
|
|
1956
2046
|
paddingSmall: string;
|
|
1957
2047
|
paddingMedium: string;
|
|
@@ -2069,6 +2159,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2069
2159
|
showButton?: unknown;
|
|
2070
2160
|
readonly?: unknown;
|
|
2071
2161
|
clearable?: unknown;
|
|
2162
|
+
keyboard?: unknown;
|
|
2163
|
+
updateValueOnInput?: unknown;
|
|
2072
2164
|
'onUpdate:value'?: unknown;
|
|
2073
2165
|
onUpdateValue?: unknown;
|
|
2074
2166
|
onFocus?: unknown;
|
|
@@ -2083,7 +2175,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2083
2175
|
step: string | number;
|
|
2084
2176
|
clearable: boolean;
|
|
2085
2177
|
defaultValue: number | null;
|
|
2178
|
+
keyboard: {
|
|
2179
|
+
ArrowUp?: boolean | undefined;
|
|
2180
|
+
ArrowDown?: boolean | undefined;
|
|
2181
|
+
};
|
|
2086
2182
|
showButton: boolean;
|
|
2183
|
+
updateValueOnInput: boolean;
|
|
2087
2184
|
} & {
|
|
2088
2185
|
value?: number | null | undefined;
|
|
2089
2186
|
size?: "small" | "medium" | "large" | undefined;
|
|
@@ -2111,20 +2208,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2111
2208
|
fontSizeMedium: string;
|
|
2112
2209
|
fontSizeLarge: string;
|
|
2113
2210
|
opacityDisabled: string;
|
|
2211
|
+
colorOpacitySecondary: number;
|
|
2212
|
+
colorOpacitySecondaryHover: number;
|
|
2213
|
+
colorOpacitySecondaryPressed: number;
|
|
2214
|
+
colorSecondary: string;
|
|
2215
|
+
colorSecondaryHover: string;
|
|
2216
|
+
colorSecondaryPressed: string;
|
|
2217
|
+
colorTertiary: string;
|
|
2218
|
+
colorTertiaryHover: string;
|
|
2219
|
+
colorTertiaryPressed: string;
|
|
2220
|
+
colorQuaternary: string;
|
|
2221
|
+
colorQuaternaryHover: string;
|
|
2222
|
+
colorQuaternaryPressed: string;
|
|
2114
2223
|
color: string;
|
|
2115
2224
|
colorHover: string;
|
|
2116
2225
|
colorPressed: string;
|
|
2117
2226
|
colorFocus: string;
|
|
2118
2227
|
colorDisabled: string;
|
|
2119
2228
|
textColor: string;
|
|
2229
|
+
textColorTertiary: string;
|
|
2120
2230
|
textColorHover: string;
|
|
2121
2231
|
textColorPressed: string;
|
|
2122
2232
|
textColorFocus: string;
|
|
2123
2233
|
textColorDisabled: string;
|
|
2124
2234
|
textColorText: string;
|
|
2125
|
-
textColorTextDepth1: string;
|
|
2126
|
-
textColorTextDepth2: string;
|
|
2127
|
-
textColorTextDepth3: string;
|
|
2128
2235
|
textColorTextHover: string;
|
|
2129
2236
|
textColorTextPressed: string;
|
|
2130
2237
|
textColorTextFocus: string;
|
|
@@ -2271,9 +2378,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2271
2378
|
borderDisabledError: string;
|
|
2272
2379
|
rippleColorError: string;
|
|
2273
2380
|
waveOpacity: string;
|
|
2274
|
-
fontWeightText: string;
|
|
2275
2381
|
fontWeight: string;
|
|
2276
|
-
|
|
2382
|
+
fontWeightStrong: string;
|
|
2277
2383
|
paddingTiny: string;
|
|
2278
2384
|
paddingSmall: string;
|
|
2279
2385
|
paddingMedium: string;
|
|
@@ -2370,20 +2476,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2370
2476
|
fontSizeMedium: string;
|
|
2371
2477
|
fontSizeLarge: string;
|
|
2372
2478
|
opacityDisabled: string;
|
|
2479
|
+
colorOpacitySecondary: number;
|
|
2480
|
+
colorOpacitySecondaryHover: number;
|
|
2481
|
+
colorOpacitySecondaryPressed: number;
|
|
2482
|
+
colorSecondary: string;
|
|
2483
|
+
colorSecondaryHover: string;
|
|
2484
|
+
colorSecondaryPressed: string;
|
|
2485
|
+
colorTertiary: string;
|
|
2486
|
+
colorTertiaryHover: string;
|
|
2487
|
+
colorTertiaryPressed: string;
|
|
2488
|
+
colorQuaternary: string;
|
|
2489
|
+
colorQuaternaryHover: string;
|
|
2490
|
+
colorQuaternaryPressed: string;
|
|
2373
2491
|
color: string;
|
|
2374
2492
|
colorHover: string;
|
|
2375
2493
|
colorPressed: string;
|
|
2376
2494
|
colorFocus: string;
|
|
2377
2495
|
colorDisabled: string;
|
|
2378
2496
|
textColor: string;
|
|
2497
|
+
textColorTertiary: string;
|
|
2379
2498
|
textColorHover: string;
|
|
2380
2499
|
textColorPressed: string;
|
|
2381
2500
|
textColorFocus: string;
|
|
2382
2501
|
textColorDisabled: string;
|
|
2383
2502
|
textColorText: string;
|
|
2384
|
-
textColorTextDepth1: string;
|
|
2385
|
-
textColorTextDepth2: string;
|
|
2386
|
-
textColorTextDepth3: string;
|
|
2387
2503
|
textColorTextHover: string;
|
|
2388
2504
|
textColorTextPressed: string;
|
|
2389
2505
|
textColorTextFocus: string;
|
|
@@ -2530,9 +2646,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2530
2646
|
borderDisabledError: string;
|
|
2531
2647
|
rippleColorError: string;
|
|
2532
2648
|
waveOpacity: string;
|
|
2533
|
-
fontWeightText: string;
|
|
2534
2649
|
fontWeight: string;
|
|
2535
|
-
|
|
2650
|
+
fontWeightStrong: string;
|
|
2536
2651
|
paddingTiny: string;
|
|
2537
2652
|
paddingSmall: string;
|
|
2538
2653
|
paddingMedium: string;
|
|
@@ -2629,20 +2744,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2629
2744
|
fontSizeMedium: string;
|
|
2630
2745
|
fontSizeLarge: string;
|
|
2631
2746
|
opacityDisabled: string;
|
|
2747
|
+
colorOpacitySecondary: number;
|
|
2748
|
+
colorOpacitySecondaryHover: number;
|
|
2749
|
+
colorOpacitySecondaryPressed: number;
|
|
2750
|
+
colorSecondary: string;
|
|
2751
|
+
colorSecondaryHover: string;
|
|
2752
|
+
colorSecondaryPressed: string;
|
|
2753
|
+
colorTertiary: string;
|
|
2754
|
+
colorTertiaryHover: string;
|
|
2755
|
+
colorTertiaryPressed: string;
|
|
2756
|
+
colorQuaternary: string;
|
|
2757
|
+
colorQuaternaryHover: string;
|
|
2758
|
+
colorQuaternaryPressed: string;
|
|
2632
2759
|
color: string;
|
|
2633
2760
|
colorHover: string;
|
|
2634
2761
|
colorPressed: string;
|
|
2635
2762
|
colorFocus: string;
|
|
2636
2763
|
colorDisabled: string;
|
|
2637
2764
|
textColor: string;
|
|
2765
|
+
textColorTertiary: string;
|
|
2638
2766
|
textColorHover: string;
|
|
2639
2767
|
textColorPressed: string;
|
|
2640
2768
|
textColorFocus: string;
|
|
2641
2769
|
textColorDisabled: string;
|
|
2642
2770
|
textColorText: string;
|
|
2643
|
-
textColorTextDepth1: string;
|
|
2644
|
-
textColorTextDepth2: string;
|
|
2645
|
-
textColorTextDepth3: string;
|
|
2646
2771
|
textColorTextHover: string;
|
|
2647
2772
|
textColorTextPressed: string;
|
|
2648
2773
|
textColorTextFocus: string;
|
|
@@ -2789,9 +2914,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2789
2914
|
borderDisabledError: string;
|
|
2790
2915
|
rippleColorError: string;
|
|
2791
2916
|
waveOpacity: string;
|
|
2792
|
-
fontWeightText: string;
|
|
2793
2917
|
fontWeight: string;
|
|
2794
|
-
|
|
2918
|
+
fontWeightStrong: string;
|
|
2795
2919
|
paddingTiny: string;
|
|
2796
2920
|
paddingSmall: string;
|
|
2797
2921
|
paddingMedium: string;
|
|
@@ -2884,6 +3008,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2884
3008
|
bordered: boolean | undefined;
|
|
2885
3009
|
clearable: boolean;
|
|
2886
3010
|
defaultValue: number | null;
|
|
3011
|
+
keyboard: {
|
|
3012
|
+
ArrowUp?: boolean | undefined;
|
|
3013
|
+
ArrowDown?: boolean | undefined;
|
|
3014
|
+
};
|
|
2887
3015
|
showButton: boolean;
|
|
3016
|
+
updateValueOnInput: boolean;
|
|
2888
3017
|
}>;
|
|
2889
3018
|
export default _default;
|
|
@@ -30,7 +30,13 @@ const inputNumberProps = Object.assign(Object.assign({}, _mixins_1.useTheme.prop
|
|
|
30
30
|
}, showButton: {
|
|
31
31
|
type: Boolean,
|
|
32
32
|
default: true
|
|
33
|
-
}, readonly: Boolean, clearable: Boolean,
|
|
33
|
+
}, readonly: Boolean, clearable: Boolean, keyboard: {
|
|
34
|
+
type: Object,
|
|
35
|
+
default: {}
|
|
36
|
+
}, updateValueOnInput: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: true
|
|
39
|
+
}, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array], onFocus: [Function, Array], onBlur: [Function, Array], onClear: [Function, Array],
|
|
34
40
|
// deprecated
|
|
35
41
|
onChange: {
|
|
36
42
|
type: [Function, Array],
|
|
@@ -96,8 +102,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
96
102
|
});
|
|
97
103
|
const doUpdateValue = (value) => {
|
|
98
104
|
const { value: mergedValue } = mergedValueRef;
|
|
99
|
-
if (value === mergedValue)
|
|
105
|
+
if (value === mergedValue) {
|
|
106
|
+
deriveDisplayedValueFromValue();
|
|
100
107
|
return;
|
|
108
|
+
}
|
|
101
109
|
const { 'onUpdate:value': _onUpdateValue, onUpdateValue, onChange } = props;
|
|
102
110
|
const { nTriggerFormInput, nTriggerFormChange } = formItem;
|
|
103
111
|
if (onChange)
|
|
@@ -110,7 +118,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
110
118
|
nTriggerFormInput();
|
|
111
119
|
nTriggerFormChange();
|
|
112
120
|
};
|
|
113
|
-
const deriveValueFromDisplayedValue = (offset = 0, doUpdateIfValid = true) => {
|
|
121
|
+
const deriveValueFromDisplayedValue = (offset = 0, doUpdateIfValid = true, applyMinMax = true) => {
|
|
114
122
|
const { value: displayedValue } = displayedValueRef;
|
|
115
123
|
const parsedValue = (0, utils_1.parse)(displayedValue);
|
|
116
124
|
if (parsedValue === null) {
|
|
@@ -125,13 +133,15 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
125
133
|
const { value: mergedMax } = mergedMaxRef;
|
|
126
134
|
const { value: mergedMin } = mergedMinRef;
|
|
127
135
|
if (mergedMax !== null && nextValue > mergedMax) {
|
|
128
|
-
if (!doUpdateIfValid)
|
|
136
|
+
if (!doUpdateIfValid || !applyMinMax)
|
|
129
137
|
return false;
|
|
138
|
+
// if doUpdateIfValid=true, we try to make it a valid value
|
|
130
139
|
nextValue = mergedMax;
|
|
131
140
|
}
|
|
132
141
|
if (mergedMin !== null && nextValue < mergedMin) {
|
|
133
|
-
if (!doUpdateIfValid)
|
|
142
|
+
if (!doUpdateIfValid || !applyMinMax)
|
|
134
143
|
return false;
|
|
144
|
+
// if doUpdateIfValid=true, we try to make it a valid value
|
|
135
145
|
nextValue = mergedMin;
|
|
136
146
|
}
|
|
137
147
|
if (props.validator && !props.validator(nextValue))
|
|
@@ -299,12 +309,16 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
299
309
|
}
|
|
300
310
|
}
|
|
301
311
|
else if (e.code === 'ArrowUp') {
|
|
312
|
+
if (props.keyboard.ArrowUp === false)
|
|
313
|
+
return;
|
|
302
314
|
const value = deriveValueFromDisplayedValue();
|
|
303
315
|
if (value !== false) {
|
|
304
316
|
doAdd();
|
|
305
317
|
}
|
|
306
318
|
}
|
|
307
319
|
else if (e.code === 'ArrowDown') {
|
|
320
|
+
if (props.keyboard.ArrowDown === false)
|
|
321
|
+
return;
|
|
308
322
|
const value = deriveValueFromDisplayedValue();
|
|
309
323
|
if (value !== false) {
|
|
310
324
|
doMinus();
|
|
@@ -313,7 +327,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
313
327
|
}
|
|
314
328
|
function handleUpdateDisplayedValue(value) {
|
|
315
329
|
displayedValueRef.value = value;
|
|
316
|
-
|
|
330
|
+
if (props.updateValueOnInput) {
|
|
331
|
+
deriveValueFromDisplayedValue(0, true, false);
|
|
332
|
+
}
|
|
317
333
|
}
|
|
318
334
|
(0, vue_1.watch)(mergedValueRef, () => {
|
|
319
335
|
deriveDisplayedValueFromValue();
|
|
@@ -20,20 +20,30 @@ declare const inputNumberLight: import("../../_mixins").Theme<"InputNumber", {
|
|
|
20
20
|
fontSizeMedium: string;
|
|
21
21
|
fontSizeLarge: string;
|
|
22
22
|
opacityDisabled: string;
|
|
23
|
+
colorOpacitySecondary: number;
|
|
24
|
+
colorOpacitySecondaryHover: number;
|
|
25
|
+
colorOpacitySecondaryPressed: number;
|
|
26
|
+
colorSecondary: string;
|
|
27
|
+
colorSecondaryHover: string;
|
|
28
|
+
colorSecondaryPressed: string;
|
|
29
|
+
colorTertiary: string;
|
|
30
|
+
colorTertiaryHover: string;
|
|
31
|
+
colorTertiaryPressed: string;
|
|
32
|
+
colorQuaternary: string;
|
|
33
|
+
colorQuaternaryHover: string;
|
|
34
|
+
colorQuaternaryPressed: string;
|
|
23
35
|
color: string;
|
|
24
36
|
colorHover: string;
|
|
25
37
|
colorPressed: string;
|
|
26
38
|
colorFocus: string;
|
|
27
39
|
colorDisabled: string;
|
|
28
40
|
textColor: string;
|
|
41
|
+
textColorTertiary: string;
|
|
29
42
|
textColorHover: string;
|
|
30
43
|
textColorPressed: string;
|
|
31
44
|
textColorFocus: string;
|
|
32
45
|
textColorDisabled: string;
|
|
33
46
|
textColorText: string;
|
|
34
|
-
textColorTextDepth1: string;
|
|
35
|
-
textColorTextDepth2: string;
|
|
36
|
-
textColorTextDepth3: string;
|
|
37
47
|
textColorTextHover: string;
|
|
38
48
|
textColorTextPressed: string;
|
|
39
49
|
textColorTextFocus: string;
|
|
@@ -180,9 +190,8 @@ declare const inputNumberLight: import("../../_mixins").Theme<"InputNumber", {
|
|
|
180
190
|
borderDisabledError: string;
|
|
181
191
|
rippleColorError: string;
|
|
182
192
|
waveOpacity: string;
|
|
183
|
-
fontWeightText: string;
|
|
184
193
|
fontWeight: string;
|
|
185
|
-
|
|
194
|
+
fontWeightStrong: string;
|
|
186
195
|
paddingTiny: string;
|
|
187
196
|
paddingSmall: string;
|
|
188
197
|
paddingMedium: string;
|
|
@@ -218,9 +218,13 @@ export declare function createLayoutComponent(isContent: boolean): import("vue")
|
|
|
218
218
|
tableHeaderColor: string;
|
|
219
219
|
hoverColor: string;
|
|
220
220
|
tableColorHover: string;
|
|
221
|
+
tableColorStriped: string;
|
|
221
222
|
pressedColor: string;
|
|
222
223
|
opacityDisabled: string;
|
|
223
224
|
inputColorDisabled: string;
|
|
225
|
+
buttonColor2: string;
|
|
226
|
+
buttonColor2Hover: string;
|
|
227
|
+
buttonColor2Pressed: string;
|
|
224
228
|
boxShadow1: string;
|
|
225
229
|
boxShadow2: string;
|
|
226
230
|
boxShadow3: string;
|
|
@@ -605,9 +609,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
605
609
|
tableHeaderColor: string;
|
|
606
610
|
hoverColor: string;
|
|
607
611
|
tableColorHover: string;
|
|
612
|
+
tableColorStriped: string;
|
|
608
613
|
pressedColor: string;
|
|
609
614
|
opacityDisabled: string;
|
|
610
615
|
inputColorDisabled: string;
|
|
616
|
+
buttonColor2: string;
|
|
617
|
+
buttonColor2Hover: string;
|
|
618
|
+
buttonColor2Pressed: string;
|
|
611
619
|
boxShadow1: string;
|
|
612
620
|
boxShadow2: string;
|
|
613
621
|
boxShadow3: string;
|