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
package/es/upload/src/Upload.js
CHANGED
|
@@ -68,6 +68,45 @@ function createXhrHandlers(inst, file, XHR) {
|
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
+
function customSubmitImpl(options) {
|
|
72
|
+
const { inst, file, data, headers, withCredentials, action, customRequest } = options;
|
|
73
|
+
const { doChange } = options.inst;
|
|
74
|
+
let percentage = 0;
|
|
75
|
+
customRequest({
|
|
76
|
+
file,
|
|
77
|
+
data,
|
|
78
|
+
headers,
|
|
79
|
+
withCredentials,
|
|
80
|
+
action,
|
|
81
|
+
onProgress(event) {
|
|
82
|
+
const fileAfterChange = Object.assign({}, file, {
|
|
83
|
+
status: 'uploading'
|
|
84
|
+
});
|
|
85
|
+
const progress = event.percent;
|
|
86
|
+
fileAfterChange.percentage = progress;
|
|
87
|
+
percentage = progress;
|
|
88
|
+
doChange(fileAfterChange);
|
|
89
|
+
},
|
|
90
|
+
onFinish() {
|
|
91
|
+
var _a;
|
|
92
|
+
let fileAfterChange = Object.assign({}, file, {
|
|
93
|
+
status: 'finished',
|
|
94
|
+
percentage,
|
|
95
|
+
file: null
|
|
96
|
+
});
|
|
97
|
+
fileAfterChange =
|
|
98
|
+
((_a = inst.onFinish) === null || _a === void 0 ? void 0 : _a.call(inst, { file: fileAfterChange })) || fileAfterChange;
|
|
99
|
+
doChange(fileAfterChange);
|
|
100
|
+
},
|
|
101
|
+
onError() {
|
|
102
|
+
const fileAfterChange = Object.assign({}, file, {
|
|
103
|
+
status: 'error',
|
|
104
|
+
percentage
|
|
105
|
+
});
|
|
106
|
+
doChange(fileAfterChange);
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
71
110
|
function registerHandler(inst, file, request) {
|
|
72
111
|
const handlers = createXhrHandlers(inst, file, request);
|
|
73
112
|
request.onabort = handlers.handleXHRAbort;
|
|
@@ -120,7 +159,7 @@ function submitImpl(inst, file, formData, { method, action, withCredentials, hea
|
|
|
120
159
|
const uploadProps = Object.assign(Object.assign({}, useTheme.props), { name: {
|
|
121
160
|
type: String,
|
|
122
161
|
default: 'file'
|
|
123
|
-
}, accept: String, action: String,
|
|
162
|
+
}, accept: String, action: String, customRequest: Function,
|
|
124
163
|
// to be impl
|
|
125
164
|
// directory: {
|
|
126
165
|
// type: Boolean,
|
|
@@ -149,10 +188,7 @@ const uploadProps = Object.assign(Object.assign({}, useTheme.props), { name: {
|
|
|
149
188
|
}, showRemoveButton: {
|
|
150
189
|
type: Boolean,
|
|
151
190
|
default: true
|
|
152
|
-
}, showDownloadButton: {
|
|
153
|
-
type: Boolean,
|
|
154
|
-
default: false
|
|
155
|
-
}, showRetryButton: {
|
|
191
|
+
}, showDownloadButton: Boolean, showRetryButton: {
|
|
156
192
|
type: Boolean,
|
|
157
193
|
default: true
|
|
158
194
|
}, showPreviewButton: {
|
|
@@ -264,17 +300,34 @@ export default defineComponent({
|
|
|
264
300
|
if (status === 'pending' || (status === 'error' && shouldReupload)) {
|
|
265
301
|
const formData = new FormData();
|
|
266
302
|
formData.append(fieldName, file.file);
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
303
|
+
if (props.customRequest) {
|
|
304
|
+
customSubmitImpl({
|
|
305
|
+
inst: {
|
|
306
|
+
doChange,
|
|
307
|
+
XhrMap,
|
|
308
|
+
onFinish: props.onFinish
|
|
309
|
+
},
|
|
310
|
+
file,
|
|
311
|
+
action,
|
|
312
|
+
withCredentials,
|
|
313
|
+
headers,
|
|
314
|
+
data,
|
|
315
|
+
customRequest: props.customRequest
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
else {
|
|
319
|
+
submitImpl({
|
|
320
|
+
doChange,
|
|
321
|
+
XhrMap,
|
|
322
|
+
onFinish: props.onFinish
|
|
323
|
+
}, file, formData, {
|
|
324
|
+
method,
|
|
325
|
+
action,
|
|
326
|
+
withCredentials,
|
|
327
|
+
headers,
|
|
328
|
+
data
|
|
329
|
+
});
|
|
330
|
+
}
|
|
278
331
|
}
|
|
279
332
|
});
|
|
280
333
|
}
|
|
@@ -84,9 +84,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
84
|
tableHeaderColor: string;
|
|
85
85
|
hoverColor: string;
|
|
86
86
|
tableColorHover: string;
|
|
87
|
+
tableColorStriped: string;
|
|
87
88
|
pressedColor: string;
|
|
88
89
|
opacityDisabled: string;
|
|
89
90
|
inputColorDisabled: string;
|
|
91
|
+
buttonColor2: string;
|
|
92
|
+
buttonColor2Hover: string;
|
|
93
|
+
buttonColor2Pressed: string;
|
|
90
94
|
boxShadow1: string;
|
|
91
95
|
boxShadow2: string;
|
|
92
96
|
boxShadow3: string;
|
|
@@ -146,20 +150,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
146
150
|
fontSizeMedium: string;
|
|
147
151
|
fontSizeLarge: string;
|
|
148
152
|
opacityDisabled: string;
|
|
153
|
+
colorOpacitySecondary: number;
|
|
154
|
+
colorOpacitySecondaryHover: number;
|
|
155
|
+
colorOpacitySecondaryPressed: number;
|
|
156
|
+
colorSecondary: string;
|
|
157
|
+
colorSecondaryHover: string;
|
|
158
|
+
colorSecondaryPressed: string;
|
|
159
|
+
colorTertiary: string;
|
|
160
|
+
colorTertiaryHover: string;
|
|
161
|
+
colorTertiaryPressed: string;
|
|
162
|
+
colorQuaternary: string;
|
|
163
|
+
colorQuaternaryHover: string;
|
|
164
|
+
colorQuaternaryPressed: string;
|
|
149
165
|
color: string;
|
|
150
166
|
colorHover: string;
|
|
151
167
|
colorPressed: string;
|
|
152
168
|
colorFocus: string;
|
|
153
169
|
colorDisabled: string;
|
|
154
170
|
textColor: string;
|
|
171
|
+
textColorTertiary: string;
|
|
155
172
|
textColorHover: string;
|
|
156
173
|
textColorPressed: string;
|
|
157
174
|
textColorFocus: string;
|
|
158
175
|
textColorDisabled: string;
|
|
159
176
|
textColorText: string;
|
|
160
|
-
textColorTextDepth1: string;
|
|
161
|
-
textColorTextDepth2: string;
|
|
162
|
-
textColorTextDepth3: string;
|
|
163
177
|
textColorTextHover: string;
|
|
164
178
|
textColorTextPressed: string;
|
|
165
179
|
textColorTextFocus: string;
|
|
@@ -205,7 +219,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
205
219
|
colorHoverInfo: string;
|
|
206
220
|
colorPressedInfo: string;
|
|
207
221
|
colorFocusInfo: string;
|
|
208
|
-
colorDisabledInfo: string;
|
|
222
|
+
colorDisabledInfo: string; /** I haven't figure out its usage, so just leave it here */
|
|
209
223
|
textColorInfo: string;
|
|
210
224
|
textColorHoverInfo: string;
|
|
211
225
|
textColorPressedInfo: string;
|
|
@@ -306,9 +320,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
306
320
|
borderDisabledError: string;
|
|
307
321
|
rippleColorError: string;
|
|
308
322
|
waveOpacity: string;
|
|
309
|
-
fontWeightText: string;
|
|
310
323
|
fontWeight: string;
|
|
311
|
-
|
|
324
|
+
fontWeightStrong: string;
|
|
312
325
|
paddingTiny: string;
|
|
313
326
|
paddingSmall: string;
|
|
314
327
|
paddingMedium: string;
|
|
@@ -80,9 +80,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
80
|
tableHeaderColor: string;
|
|
81
81
|
hoverColor: string;
|
|
82
82
|
tableColorHover: string;
|
|
83
|
+
tableColorStriped: string;
|
|
83
84
|
pressedColor: string;
|
|
84
85
|
opacityDisabled: string;
|
|
85
86
|
inputColorDisabled: string;
|
|
87
|
+
buttonColor2: string;
|
|
88
|
+
buttonColor2Hover: string;
|
|
89
|
+
buttonColor2Pressed: string;
|
|
86
90
|
boxShadow1: string;
|
|
87
91
|
boxShadow2: string;
|
|
88
92
|
boxShadow3: string;
|
|
@@ -142,20 +146,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
142
146
|
fontSizeMedium: string;
|
|
143
147
|
fontSizeLarge: string;
|
|
144
148
|
opacityDisabled: string;
|
|
149
|
+
colorOpacitySecondary: number;
|
|
150
|
+
colorOpacitySecondaryHover: number;
|
|
151
|
+
colorOpacitySecondaryPressed: number;
|
|
152
|
+
colorSecondary: string;
|
|
153
|
+
colorSecondaryHover: string;
|
|
154
|
+
colorSecondaryPressed: string;
|
|
155
|
+
colorTertiary: string;
|
|
156
|
+
colorTertiaryHover: string;
|
|
157
|
+
colorTertiaryPressed: string;
|
|
158
|
+
colorQuaternary: string;
|
|
159
|
+
colorQuaternaryHover: string;
|
|
160
|
+
colorQuaternaryPressed: string;
|
|
145
161
|
color: string;
|
|
146
162
|
colorHover: string;
|
|
147
163
|
colorPressed: string;
|
|
148
164
|
colorFocus: string;
|
|
149
165
|
colorDisabled: string;
|
|
150
166
|
textColor: string;
|
|
167
|
+
textColorTertiary: string;
|
|
151
168
|
textColorHover: string;
|
|
152
169
|
textColorPressed: string;
|
|
153
170
|
textColorFocus: string;
|
|
154
171
|
textColorDisabled: string;
|
|
155
172
|
textColorText: string;
|
|
156
|
-
textColorTextDepth1: string;
|
|
157
|
-
textColorTextDepth2: string;
|
|
158
|
-
textColorTextDepth3: string;
|
|
159
173
|
textColorTextHover: string;
|
|
160
174
|
textColorTextPressed: string;
|
|
161
175
|
textColorTextFocus: string;
|
|
@@ -302,9 +316,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
302
316
|
borderDisabledError: string;
|
|
303
317
|
rippleColorError: string;
|
|
304
318
|
waveOpacity: string;
|
|
305
|
-
fontWeightText: string;
|
|
306
319
|
fontWeight: string;
|
|
307
|
-
|
|
320
|
+
fontWeightStrong: string;
|
|
308
321
|
paddingTiny: string;
|
|
309
322
|
paddingSmall: string;
|
|
310
323
|
paddingMedium: string;
|
|
@@ -21,7 +21,7 @@ export declare type OnChange = (data: {
|
|
|
21
21
|
}) => void;
|
|
22
22
|
export declare type OnFinish = ({ file, event }: {
|
|
23
23
|
file: FileInfo;
|
|
24
|
-
event
|
|
24
|
+
event?: Event;
|
|
25
25
|
}) => FileInfo | undefined;
|
|
26
26
|
export declare type OnRemove = (data: {
|
|
27
27
|
file: FileInfo;
|
|
@@ -85,3 +85,16 @@ export declare type OnBeforeUpload = (data: {
|
|
|
85
85
|
export declare type listType = 'text' | 'image' | 'image-card';
|
|
86
86
|
export declare type OnPreview = (file: FileInfo) => void;
|
|
87
87
|
export declare type CreateThumbnailUrl = (file: File) => Promise<string>;
|
|
88
|
+
export interface CustomRequestOptions {
|
|
89
|
+
file: FileInfo;
|
|
90
|
+
action?: string;
|
|
91
|
+
withCredentials?: boolean;
|
|
92
|
+
data?: FuncOrRecordOrUndef;
|
|
93
|
+
headers?: FuncOrRecordOrUndef;
|
|
94
|
+
onProgress: (e: {
|
|
95
|
+
percent: number;
|
|
96
|
+
}) => void;
|
|
97
|
+
onFinish: () => void;
|
|
98
|
+
onError: () => void;
|
|
99
|
+
}
|
|
100
|
+
export declare type CustomRequest = (options: CustomRequestOptions) => void;
|
|
@@ -48,20 +48,30 @@ declare const uploadLight: import("../../_mixins").Theme<"Upload", {
|
|
|
48
48
|
fontSizeMedium: string;
|
|
49
49
|
fontSizeLarge: string;
|
|
50
50
|
opacityDisabled: string;
|
|
51
|
+
colorOpacitySecondary: number;
|
|
52
|
+
colorOpacitySecondaryHover: number;
|
|
53
|
+
colorOpacitySecondaryPressed: number;
|
|
54
|
+
colorSecondary: string;
|
|
55
|
+
colorSecondaryHover: string;
|
|
56
|
+
colorSecondaryPressed: string;
|
|
57
|
+
colorTertiary: string;
|
|
58
|
+
colorTertiaryHover: string;
|
|
59
|
+
colorTertiaryPressed: string;
|
|
60
|
+
colorQuaternary: string;
|
|
61
|
+
colorQuaternaryHover: string;
|
|
62
|
+
colorQuaternaryPressed: string;
|
|
51
63
|
color: string;
|
|
52
64
|
colorHover: string;
|
|
53
65
|
colorPressed: string;
|
|
54
66
|
colorFocus: string;
|
|
55
67
|
colorDisabled: string;
|
|
56
68
|
textColor: string;
|
|
69
|
+
textColorTertiary: string;
|
|
57
70
|
textColorHover: string;
|
|
58
71
|
textColorPressed: string;
|
|
59
72
|
textColorFocus: string;
|
|
60
73
|
textColorDisabled: string;
|
|
61
74
|
textColorText: string;
|
|
62
|
-
textColorTextDepth1: string;
|
|
63
|
-
textColorTextDepth2: string;
|
|
64
|
-
textColorTextDepth3: string;
|
|
65
75
|
textColorTextHover: string;
|
|
66
76
|
textColorTextPressed: string;
|
|
67
77
|
textColorTextFocus: string;
|
|
@@ -208,9 +218,8 @@ declare const uploadLight: import("../../_mixins").Theme<"Upload", {
|
|
|
208
218
|
borderDisabledError: string;
|
|
209
219
|
rippleColorError: string;
|
|
210
220
|
waveOpacity: string;
|
|
211
|
-
fontWeightText: string;
|
|
212
221
|
fontWeight: string;
|
|
213
|
-
|
|
222
|
+
fontWeightStrong: string;
|
|
214
223
|
paddingTiny: string;
|
|
215
224
|
paddingSmall: string;
|
|
216
225
|
paddingMedium: string;
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.
|
|
1
|
+
declare const _default: "2.21.2";
|
|
2
2
|
export default _default;
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '2.
|
|
1
|
+
export default '2.21.2';
|
|
@@ -120,6 +120,7 @@ declare const Scrollbar: import("vue").DefineComponent<{
|
|
|
120
120
|
scrollTo: ScrollTo;
|
|
121
121
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
122
122
|
containerScrollTop: import("vue").Ref<number>;
|
|
123
|
+
wrapperRef: import("vue").Ref<HTMLElement | null>;
|
|
123
124
|
containerRef: import("vue").Ref<HTMLElement | null>;
|
|
124
125
|
contentRef: import("vue").Ref<HTMLElement | null>;
|
|
125
126
|
yRailRef: import("vue").Ref<HTMLElement | null>;
|
|
@@ -33,6 +33,7 @@ const Scrollbar = (0, vue_1.defineComponent)({
|
|
|
33
33
|
setup(props) {
|
|
34
34
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
35
35
|
// dom ref
|
|
36
|
+
const wrapperRef = (0, vue_1.ref)(null);
|
|
36
37
|
const containerRef = (0, vue_1.ref)(null);
|
|
37
38
|
const contentRef = (0, vue_1.ref)(null);
|
|
38
39
|
const yRailRef = (0, vue_1.ref)(null);
|
|
@@ -291,6 +292,10 @@ const Scrollbar = (0, vue_1.defineComponent)({
|
|
|
291
292
|
syncPositionState();
|
|
292
293
|
syncScrollState();
|
|
293
294
|
}
|
|
295
|
+
function isMouseUpAway(e) {
|
|
296
|
+
var _a;
|
|
297
|
+
return !((_a = wrapperRef.value) === null || _a === void 0 ? void 0 : _a.contains(e.target));
|
|
298
|
+
}
|
|
294
299
|
function handleXScrollMouseDown(e) {
|
|
295
300
|
e.preventDefault();
|
|
296
301
|
e.stopPropagation();
|
|
@@ -335,8 +340,7 @@ const Scrollbar = (0, vue_1.defineComponent)({
|
|
|
335
340
|
(0, evtd_1.off)('mouseup', window, handleXScrollMouseUp, true);
|
|
336
341
|
xBarPressed = false;
|
|
337
342
|
sync();
|
|
338
|
-
|
|
339
|
-
if (!(container === null || container === void 0 ? void 0 : container.contains(e.target))) {
|
|
343
|
+
if (isMouseUpAway(e)) {
|
|
340
344
|
hideBar();
|
|
341
345
|
}
|
|
342
346
|
}
|
|
@@ -381,8 +385,7 @@ const Scrollbar = (0, vue_1.defineComponent)({
|
|
|
381
385
|
(0, evtd_1.off)('mouseup', window, handleYScrollMouseUp, true);
|
|
382
386
|
yBarPressed = false;
|
|
383
387
|
sync();
|
|
384
|
-
|
|
385
|
-
if (!(container === null || container === void 0 ? void 0 : container.contains(e.target))) {
|
|
388
|
+
if (isMouseUpAway(e)) {
|
|
386
389
|
hideBar();
|
|
387
390
|
}
|
|
388
391
|
}
|
|
@@ -438,6 +441,7 @@ const Scrollbar = (0, vue_1.defineComponent)({
|
|
|
438
441
|
scrollTo,
|
|
439
442
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
440
443
|
containerScrollTop: containerScrollTopRef,
|
|
444
|
+
wrapperRef,
|
|
441
445
|
containerRef,
|
|
442
446
|
contentRef,
|
|
443
447
|
yRailRef,
|
|
@@ -476,6 +480,7 @@ const Scrollbar = (0, vue_1.defineComponent)({
|
|
|
476
480
|
if (!this.scrollable)
|
|
477
481
|
return (0, vue_1.renderSlot)($slots, 'default');
|
|
478
482
|
const createChildren = () => (0, vue_1.h)('div', (0, vue_1.mergeProps)(this.$attrs, {
|
|
483
|
+
ref: 'wrapperRef',
|
|
479
484
|
class: `${mergedClsPrefix}-scrollbar`,
|
|
480
485
|
style: this.cssVars,
|
|
481
486
|
onMouseenter: this.handleMouseEnterWrapper,
|
|
@@ -279,9 +279,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
279
279
|
tableHeaderColor: string;
|
|
280
280
|
hoverColor: string;
|
|
281
281
|
tableColorHover: string;
|
|
282
|
+
tableColorStriped: string;
|
|
282
283
|
pressedColor: string;
|
|
283
284
|
opacityDisabled: string;
|
|
284
285
|
inputColorDisabled: string;
|
|
286
|
+
buttonColor2: string;
|
|
287
|
+
buttonColor2Hover: string;
|
|
288
|
+
buttonColor2Pressed: string;
|
|
285
289
|
boxShadow1: string;
|
|
286
290
|
boxShadow2: string;
|
|
287
291
|
boxShadow3: string;
|
|
@@ -460,8 +464,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
460
464
|
show: boolean;
|
|
461
465
|
multiple: boolean;
|
|
462
466
|
focusable: boolean;
|
|
463
|
-
clsPrefix: string;
|
|
464
467
|
loading: boolean;
|
|
468
|
+
clsPrefix: string;
|
|
465
469
|
scrollable: boolean;
|
|
466
470
|
treeMate: SelectTreeMate;
|
|
467
471
|
autoPending: boolean;
|
|
@@ -332,9 +332,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
332
332
|
tableHeaderColor: string;
|
|
333
333
|
hoverColor: string;
|
|
334
334
|
tableColorHover: string;
|
|
335
|
+
tableColorStriped: string;
|
|
335
336
|
pressedColor: string;
|
|
336
337
|
opacityDisabled: string;
|
|
337
338
|
inputColorDisabled: string;
|
|
339
|
+
buttonColor2: string;
|
|
340
|
+
buttonColor2Hover: string;
|
|
341
|
+
buttonColor2Pressed: string;
|
|
338
342
|
boxShadow1: string;
|
|
339
343
|
boxShadow2: string;
|
|
340
344
|
boxShadow3: string;
|
|
@@ -569,8 +573,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
569
573
|
active: boolean;
|
|
570
574
|
disabled: boolean;
|
|
571
575
|
autofocus: boolean;
|
|
572
|
-
clsPrefix: string;
|
|
573
576
|
loading: boolean;
|
|
577
|
+
clsPrefix: string;
|
|
574
578
|
showArrow: boolean;
|
|
575
579
|
selectedOption: SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)> | null;
|
|
576
580
|
selectedOptions: SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>[] | null;
|
|
@@ -12,7 +12,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
type: BooleanConstructor;
|
|
13
13
|
default: undefined;
|
|
14
14
|
};
|
|
15
|
-
loading:
|
|
15
|
+
loading: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
16
19
|
onClear: PropType<(e: MouseEvent) => void>;
|
|
17
20
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
18
21
|
clsPrefix?: unknown;
|
|
@@ -21,8 +24,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
24
|
loading?: unknown;
|
|
22
25
|
onClear?: unknown;
|
|
23
26
|
} & {
|
|
24
|
-
clsPrefix: string;
|
|
25
27
|
loading: boolean;
|
|
28
|
+
clsPrefix: string;
|
|
26
29
|
} & {
|
|
27
30
|
showArrow?: boolean | undefined;
|
|
28
31
|
onClear?: ((e: MouseEvent) => void) | undefined;
|
|
@@ -23,6 +23,7 @@ const base = {
|
|
|
23
23
|
alphaDisabledInput: '0.06',
|
|
24
24
|
alphaPending: '0.09',
|
|
25
25
|
alphaTablePending: '0.06',
|
|
26
|
+
alphaTableStriped: '0.05',
|
|
26
27
|
alphaPressed: '0.05',
|
|
27
28
|
alphaAvatar: '0.18',
|
|
28
29
|
alphaRail: '0.2',
|
|
@@ -92,5 +93,5 @@ const derived = Object.assign(Object.assign({ name: 'common' }, _common_1.defaul
|
|
|
92
93
|
// close
|
|
93
94
|
closeColorHover: overlay(Number(base.alphaClose) * 1.25), closeColor: overlay(Number(base.alphaClose)), closeColorPressed: overlay(Number(base.alphaClose) * 0.8), closeColorDisabled: overlay(base.alpha4),
|
|
94
95
|
// clear
|
|
95
|
-
clearColor: overlay(base.alpha4), clearColorHover: (0, seemly_1.scaleColor)(overlay(base.alpha4), { alpha: 1.25 }), clearColorPressed: (0, seemly_1.scaleColor)(overlay(base.alpha4), { alpha: 0.8 }), scrollbarColor: overlay(base.alphaScrollbar), scrollbarColorHover: overlay(base.alphaScrollbarHover), scrollbarWidth: '5px', scrollbarHeight: '5px', scrollbarBorderRadius: '5px', progressRailColor: overlay(base.alphaProgressRail), railColor: overlay(base.alphaRail), popoverColor: base.neutralPopover, tableColor: base.neutralCard, cardColor: base.neutralCard, modalColor: base.neutralModal, bodyColor: base.neutralBody, tagColor: neutral(base.alphaTag), avatarColor: overlay(base.alphaAvatar), invertedColor: base.neutralBase, inputColor: overlay(base.alphaInput), codeColor: overlay(base.alphaCode), tabColor: overlay(base.alphaTab), actionColor: overlay(base.alphaAction), tableHeaderColor: overlay(base.alphaAction), hoverColor: overlay(base.alphaPending), tableColorHover: overlay(base.alphaTablePending), pressedColor: overlay(base.alphaPressed), opacityDisabled: base.alphaDisabled, inputColorDisabled: overlay(base.alphaDisabledInput), boxShadow1: '0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)', boxShadow2: '0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)', boxShadow3: '0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)' });
|
|
96
|
+
clearColor: overlay(base.alpha4), clearColorHover: (0, seemly_1.scaleColor)(overlay(base.alpha4), { alpha: 1.25 }), clearColorPressed: (0, seemly_1.scaleColor)(overlay(base.alpha4), { alpha: 0.8 }), scrollbarColor: overlay(base.alphaScrollbar), scrollbarColorHover: overlay(base.alphaScrollbarHover), scrollbarWidth: '5px', scrollbarHeight: '5px', scrollbarBorderRadius: '5px', progressRailColor: overlay(base.alphaProgressRail), railColor: overlay(base.alphaRail), popoverColor: base.neutralPopover, tableColor: base.neutralCard, cardColor: base.neutralCard, modalColor: base.neutralModal, bodyColor: base.neutralBody, tagColor: neutral(base.alphaTag), avatarColor: overlay(base.alphaAvatar), invertedColor: base.neutralBase, inputColor: overlay(base.alphaInput), codeColor: overlay(base.alphaCode), tabColor: overlay(base.alphaTab), actionColor: overlay(base.alphaAction), tableHeaderColor: overlay(base.alphaAction), hoverColor: overlay(base.alphaPending), tableColorHover: overlay(base.alphaTablePending), tableColorStriped: overlay(base.alphaTableStriped), pressedColor: overlay(base.alphaPressed), opacityDisabled: base.alphaDisabled, inputColorDisabled: overlay(base.alphaDisabledInput), buttonColor2: 'rgba(255, 255, 255, .06)', buttonColor2Hover: 'rgba(255, 255, 255, .09)', buttonColor2Pressed: 'rgba(255, 255, 255, .05)', boxShadow1: '0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)', boxShadow2: '0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)', boxShadow3: '0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)' });
|
|
96
97
|
exports.default = derived;
|
|
@@ -67,9 +67,13 @@ declare const derived: {
|
|
|
67
67
|
tableHeaderColor: string;
|
|
68
68
|
hoverColor: string;
|
|
69
69
|
tableColorHover: string;
|
|
70
|
+
tableColorStriped: string;
|
|
70
71
|
pressedColor: string;
|
|
71
72
|
opacityDisabled: string;
|
|
72
73
|
inputColorDisabled: string;
|
|
74
|
+
buttonColor2: string;
|
|
75
|
+
buttonColor2Hover: string;
|
|
76
|
+
buttonColor2Pressed: string;
|
|
73
77
|
boxShadow1: string;
|
|
74
78
|
boxShadow2: string;
|
|
75
79
|
boxShadow3: string;
|
|
@@ -85,7 +85,7 @@ const derived = Object.assign(Object.assign({ name: 'common' }, _common_1.defaul
|
|
|
85
85
|
// error color
|
|
86
86
|
errorColor: base.errorDefault, errorColorHover: base.errorHover, errorColorPressed: base.errorActive, errorColorSuppl: base.errorSuppl,
|
|
87
87
|
// text color
|
|
88
|
-
textColorBase: base.neutralTextBase, textColor1: 'rgb(31, 34, 37)', textColor2: 'rgb(51, 54, 57)', textColor3: 'rgb(
|
|
88
|
+
textColorBase: base.neutralTextBase, textColor1: 'rgb(31, 34, 37)', textColor2: 'rgb(51, 54, 57)', textColor3: 'rgb(118, 124, 130)',
|
|
89
89
|
// textColor4: neutral(base.alpha4), // disabled, placeholder, icon
|
|
90
90
|
// textColor5: neutral(base.alpha5),
|
|
91
91
|
textColorDisabled: neutral(base.alpha4), placeholderColor: neutral(base.alpha4), placeholderColorDisabled: neutral(base.alpha5), iconColor: neutral(base.alpha4), iconColorHover: (0, seemly_1.scaleColor)(neutral(base.alpha4), { lightness: 0.75 }), iconColorPressed: (0, seemly_1.scaleColor)(neutral(base.alpha4), { lightness: 0.9 }), iconColorDisabled: neutral(base.alpha5), opacity1: base.alpha1, opacity2: base.alpha2, opacity3: base.alpha3, opacity4: base.alpha4, opacity5: base.alpha5, dividerColor: 'rgb(239, 239, 245)', borderColor: 'rgb(224, 224, 230)',
|
|
@@ -94,5 +94,8 @@ const derived = Object.assign(Object.assign({ name: 'common' }, _common_1.defaul
|
|
|
94
94
|
// clear
|
|
95
95
|
clearColor: neutral(base.alpha4), clearColorHover: (0, seemly_1.scaleColor)(neutral(base.alpha4), { lightness: 0.75 }), clearColorPressed: (0, seemly_1.scaleColor)(neutral(base.alpha4), { lightness: 0.9 }), scrollbarColor: overlay(base.alphaScrollbar), scrollbarColorHover: overlay(base.alphaScrollbarHover), scrollbarWidth: '5px', scrollbarHeight: '5px', scrollbarBorderRadius: '5px', progressRailColor: neutral(base.alphaProgressRail), railColor: 'rgb(219, 219, 223)', popoverColor: base.neutralPopover, tableColor: base.neutralCard, cardColor: base.neutralCard, modalColor: base.neutralModal, bodyColor: base.neutralBody, tagColor: 'rgb(250, 250, 252)', avatarColor: neutral(base.alphaAvatar), invertedColor: 'rgb(0, 20, 40)', inputColor: neutral(base.alphaInput), codeColor: 'rgb(244, 244, 248)', tabColor: 'rgb(247, 247, 250)', actionColor: 'rgb(250, 250, 252)', tableHeaderColor: 'rgb(250, 250, 252)', hoverColor: 'rgb(243, 243, 245)',
|
|
96
96
|
// use color with alpha since it can be nested with header filter & sorter effect
|
|
97
|
-
tableColorHover: 'rgba(0, 0, 100, 0.
|
|
97
|
+
tableColorHover: 'rgba(0, 0, 100, 0.03)', tableColorStriped: 'rgba(0, 0, 100, 0.02)', pressedColor: 'rgb(237, 237, 239)', opacityDisabled: base.alphaDisabled, inputColorDisabled: 'rgb(250, 250, 252)',
|
|
98
|
+
// secondary button color
|
|
99
|
+
// can also be used in tertiary button & quaternary button
|
|
100
|
+
buttonColor2: 'rgba(46, 51, 56, .05)', buttonColor2Hover: 'rgba(46, 51, 56, .09)', buttonColor2Pressed: 'rgba(46, 51, 56, .13)', boxShadow1: '0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)', boxShadow2: '0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)', boxShadow3: '0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)' });
|
|
98
101
|
exports.default = derived;
|
|
@@ -12,7 +12,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
12
12
|
|
|
13
13
|
const cssr_1 = require("../../_utils/cssr");
|
|
14
14
|
|
|
15
|
-
const _common_1 = __importDefault(require("../common/_common"));
|
|
15
|
+
const _common_1 = __importDefault(require("../common/_common"));
|
|
16
|
+
|
|
17
|
+
const {
|
|
18
|
+
fontSize,
|
|
19
|
+
fontFamily,
|
|
20
|
+
lineHeight
|
|
21
|
+
} = _common_1.default; // All the components need the style
|
|
16
22
|
// It is static and won't be changed in the app's lifetime
|
|
17
23
|
// If user want to overrides it they need to use `n-global-style` is provided
|
|
18
24
|
//
|
|
@@ -23,12 +29,11 @@ const _common_1 = __importDefault(require("../common/_common")); // All the comp
|
|
|
23
29
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-tap-highlight-color
|
|
24
30
|
// In some android devices, there will be the style.
|
|
25
31
|
|
|
26
|
-
|
|
27
32
|
exports.default = (0, cssr_1.c)('body', `
|
|
28
33
|
margin: 0;
|
|
29
|
-
font-size: ${
|
|
30
|
-
font-family: ${
|
|
31
|
-
line-height: ${
|
|
34
|
+
font-size: ${fontSize};
|
|
35
|
+
font-family: ${fontFamily};
|
|
36
|
+
line-height: ${lineHeight};
|
|
32
37
|
-webkit-text-size-adjust: 100%;
|
|
33
38
|
-webkit-tap-highlight-color: transparent;
|
|
34
39
|
`, [(0, cssr_1.c)('input', `
|
|
@@ -14,11 +14,16 @@ const cssr_1 = require("../../_utils/cssr");
|
|
|
14
14
|
|
|
15
15
|
const _common_1 = __importDefault(require("../common/_common"));
|
|
16
16
|
|
|
17
|
+
const {
|
|
18
|
+
cubicBezierEaseInOut,
|
|
19
|
+
transformDebounceScale
|
|
20
|
+
} = _common_1.default;
|
|
21
|
+
|
|
17
22
|
function default_1({
|
|
18
23
|
originalTransform = '',
|
|
19
24
|
left = 0,
|
|
20
25
|
top = 0,
|
|
21
|
-
transition = `all .3s ${
|
|
26
|
+
transition = `all .3s ${cubicBezierEaseInOut} !important`
|
|
22
27
|
} = {}) {
|
|
23
28
|
return [(0, cssr_1.c)('&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to', {
|
|
24
29
|
transform: originalTransform + ' scale(0.75)',
|
|
@@ -26,7 +31,7 @@ function default_1({
|
|
|
26
31
|
top,
|
|
27
32
|
opacity: 0
|
|
28
33
|
}), (0, cssr_1.c)('&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from', {
|
|
29
|
-
transform: `${
|
|
34
|
+
transform: `${transformDebounceScale} ${originalTransform}`,
|
|
30
35
|
left,
|
|
31
36
|
top,
|
|
32
37
|
opacity: 1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { useTheme } from '../../_mixins';
|
|
3
3
|
declare type themePropKeys = keyof typeof useTheme.props;
|
|
4
|
-
export declare type ExtractPublicPropTypes<T> = Omit<Partial<ExtractPropTypes<T>>, themePropKeys | Extract<keyof T, `internal${string}`>>;
|
|
4
|
+
export declare type ExtractPublicPropTypes<T> = Omit<Partial<ExtractPropTypes<T>>, Exclude<themePropKeys, 'themeOverrides'> | Extract<keyof T, `internal${string}`>>;
|
|
5
5
|
export declare type ExtractInternalPropTypes<T> = Partial<ExtractPropTypes<T>>;
|
|
6
6
|
export {};
|
package/lib/alert/src/Alert.d.ts
CHANGED
|
@@ -437,9 +437,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
437
437
|
tableHeaderColor: string;
|
|
438
438
|
hoverColor: string;
|
|
439
439
|
tableColorHover: string;
|
|
440
|
+
tableColorStriped: string;
|
|
440
441
|
pressedColor: string;
|
|
441
442
|
opacityDisabled: string;
|
|
442
443
|
inputColorDisabled: string;
|
|
444
|
+
buttonColor2: string;
|
|
445
|
+
buttonColor2Hover: string;
|
|
446
|
+
buttonColor2Pressed: string;
|
|
443
447
|
boxShadow1: string;
|
|
444
448
|
boxShadow2: string;
|
|
445
449
|
boxShadow3: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, InputHTMLAttributes } from 'vue';
|
|
2
2
|
import { TreeNode } from 'treemate';
|
|
3
3
|
import { MaybeArray } from '../../_utils';
|
|
4
4
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
@@ -34,6 +34,7 @@ declare const autoCompleteProps: {
|
|
|
34
34
|
readonly blurAfterSelect: BooleanConstructor;
|
|
35
35
|
readonly clearAfterSelect: BooleanConstructor;
|
|
36
36
|
readonly getShow: PropType<(inputValue: string) => boolean>;
|
|
37
|
+
readonly inputProps: PropType<InputHTMLAttributes>;
|
|
37
38
|
readonly size: PropType<"small" | "medium" | "large">;
|
|
38
39
|
readonly options: {
|
|
39
40
|
readonly type: PropType<AutoCompleteOptions>;
|
|
@@ -430,6 +431,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
430
431
|
readonly blurAfterSelect: BooleanConstructor;
|
|
431
432
|
readonly clearAfterSelect: BooleanConstructor;
|
|
432
433
|
readonly getShow: PropType<(inputValue: string) => boolean>;
|
|
434
|
+
readonly inputProps: PropType<InputHTMLAttributes>;
|
|
433
435
|
readonly size: PropType<"small" | "medium" | "large">;
|
|
434
436
|
readonly options: {
|
|
435
437
|
readonly type: PropType<AutoCompleteOptions>;
|
|
@@ -889,9 +891,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
889
891
|
tableHeaderColor: string;
|
|
890
892
|
hoverColor: string;
|
|
891
893
|
tableColorHover: string;
|
|
894
|
+
tableColorStriped: string;
|
|
892
895
|
pressedColor: string;
|
|
893
896
|
opacityDisabled: string;
|
|
894
897
|
inputColorDisabled: string;
|
|
898
|
+
buttonColor2: string;
|
|
899
|
+
buttonColor2Hover: string;
|
|
900
|
+
buttonColor2Pressed: string;
|
|
895
901
|
boxShadow1: string;
|
|
896
902
|
boxShadow2: string;
|
|
897
903
|
boxShadow3: string;
|
|
@@ -1084,6 +1090,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1084
1090
|
readonly blurAfterSelect?: unknown;
|
|
1085
1091
|
readonly clearAfterSelect?: unknown;
|
|
1086
1092
|
readonly getShow?: unknown;
|
|
1093
|
+
readonly inputProps?: unknown;
|
|
1087
1094
|
readonly size?: unknown;
|
|
1088
1095
|
readonly options?: unknown;
|
|
1089
1096
|
readonly zIndex?: unknown;
|
|
@@ -1463,6 +1470,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1463
1470
|
loading?: boolean | undefined;
|
|
1464
1471
|
bordered?: boolean | undefined;
|
|
1465
1472
|
clearable?: boolean | undefined;
|
|
1473
|
+
inputProps?: InputHTMLAttributes | undefined;
|
|
1466
1474
|
"onUpdate:value"?: MaybeArray<OnUpdateValue> | undefined;
|
|
1467
1475
|
onUpdateValue?: MaybeArray<OnUpdateValue> | undefined;
|
|
1468
1476
|
getShow?: ((inputValue: string) => boolean) | undefined;
|