naive-ui 2.20.2 → 2.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_internal/scrollbar/src/ScrollBar.d.ts +1 -0
- package/es/_internal/scrollbar/src/ScrollBar.js +9 -4
- package/es/_internal/select-menu/src/SelectMenu.d.ts +5 -1
- package/es/_internal/selection/src/Selection.d.ts +5 -1
- package/es/_internal/suffix/src/Suffix.d.ts +5 -2
- package/es/_internal/suffix/src/Suffix.js +4 -1
- package/es/_styles/common/dark.js +2 -1
- package/es/_styles/common/light.d.ts +4 -0
- package/es/_styles/common/light.js +5 -2
- package/es/_styles/global/index.cssr.js +9 -4
- package/es/_styles/transitions/icon-switch.cssr.js +6 -2
- package/es/_utils/naive/extract-public-props.d.ts +1 -1
- package/es/alert/src/Alert.d.ts +4 -0
- package/es/auto-complete/src/AutoComplete.d.ts +9 -1
- package/es/auto-complete/src/AutoComplete.js +5 -2
- package/es/avatar/src/Avatar.d.ts +8 -1
- package/es/avatar/src/Avatar.js +41 -9
- package/es/avatar/src/styles/index.cssr.js +2 -2
- package/es/button/src/Button.d.ts +149 -52
- package/es/button/src/Button.js +128 -56
- package/es/button/src/interface.d.ts +1 -1
- package/es/button/src/styles/button.cssr.js +1 -0
- package/es/button/styles/dark.js +3 -0
- package/es/button/styles/light.d.ts +14 -5
- package/es/button/styles/light.js +10 -3
- package/es/calendar/src/Calendar.d.ts +144 -50
- package/es/calendar/styles/light.d.ts +14 -5
- package/es/card/src/Card.d.ts +4 -0
- package/es/cascader/src/Cascader.d.ts +4 -0
- package/es/cascader/src/CascaderOption.d.ts +4 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +4 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +4 -0
- package/es/checkbox/src/Checkbox.d.ts +9 -5
- package/es/checkbox/src/Checkbox.js +8 -9
- package/es/collapse/src/Collapse.d.ts +4 -0
- package/es/color-picker/src/ColorInputUnit.d.ts +18 -5
- package/es/color-picker/src/ColorPicker.d.ts +126 -45
- package/es/color-picker/styles/light.d.ts +14 -5
- package/es/data-table/src/DataTable.d.ts +184 -51
- package/es/data-table/src/DataTable.js +11 -6
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +21 -5
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +22 -6
- package/es/data-table/src/TableParts/Body.d.ts +26 -6
- package/es/data-table/src/TableParts/Body.js +77 -39
- package/es/data-table/src/TableParts/BodyCheckbox.js +1 -1
- package/es/data-table/src/TableParts/Cell.d.ts +42 -10
- package/es/data-table/src/TableParts/Header.d.ts +21 -5
- package/es/data-table/src/TableParts/Header.js +1 -1
- package/es/data-table/src/interface.d.ts +4 -1
- package/es/data-table/src/styles/index.cssr.js +9 -10
- package/es/data-table/src/use-table-data.js +3 -3
- package/es/data-table/styles/light.d.ts +20 -5
- package/es/data-table/styles/light.js +4 -4
- package/es/date-picker/src/DatePicker.d.ts +329 -127
- package/es/date-picker/src/DatePicker.js +7 -17
- package/es/date-picker/src/config.d.ts +9 -0
- package/es/date-picker/src/config.js +8 -0
- package/es/date-picker/src/panel/date.d.ts +53 -20
- package/es/date-picker/src/panel/daterange.d.ts +52 -19
- package/es/date-picker/src/panel/datetime.d.ts +53 -20
- package/es/date-picker/src/panel/datetimerange.d.ts +52 -19
- package/es/date-picker/src/panel/month.d.ts +88 -61
- package/es/date-picker/src/panel/month.js +9 -6
- package/es/date-picker/src/panel/use-calendar.d.ts +61 -28
- package/es/date-picker/src/panel/use-calendar.js +9 -2
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +50 -17
- package/es/date-picker/src/panel/use-dual-calendar.js +4 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +48 -15
- package/es/date-picker/styles/_common.d.ts +2 -0
- package/es/date-picker/styles/_common.js +3 -1
- package/es/date-picker/styles/light.d.ts +32 -10
- package/es/dialog/src/Dialog.d.ts +105 -38
- package/es/dialog/src/DialogEnvironment.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +2 -2
- package/es/dialog/styles/light.d.ts +14 -5
- package/es/drawer/src/Drawer.d.ts +4 -0
- package/es/drawer/src/DrawerBodyWrapper.d.ts +4 -0
- package/es/drawer/src/DrawerContent.d.ts +4 -0
- package/es/dropdown/index.d.ts +1 -1
- package/es/dropdown/src/Dropdown.d.ts +11 -7
- package/es/dropdown/src/DropdownGroup.d.ts +2 -3
- package/es/dropdown/src/DropdownGroupHeader.js +3 -3
- package/es/dropdown/src/DropdownMenu.d.ts +3 -4
- package/es/dropdown/src/DropdownMenu.js +5 -4
- package/es/dropdown/src/DropdownOption.d.ts +3 -4
- package/es/dropdown/src/DropdownOption.js +5 -4
- package/es/dropdown/src/DropdownRenderOption.d.ts +2 -3
- package/es/dropdown/src/interface.d.ts +9 -30
- package/es/dynamic-input/src/DynamicInput.d.ts +144 -50
- package/es/dynamic-input/src/InputPreset.d.ts +18 -5
- package/es/dynamic-input/src/PairPreset.d.ts +18 -5
- package/es/dynamic-input/styles/light.d.ts +14 -5
- package/es/dynamic-tags/src/DynamicTags.d.ts +145 -50
- package/es/dynamic-tags/styles/light.d.ts +14 -5
- package/es/ellipsis/src/Ellipsis.d.ts +4 -0
- package/es/form/src/FormItemGridItem.d.ts +2 -2
- package/es/global-style/src/GlobalStyle.js +2 -0
- package/es/grid/src/Grid.js +1 -0
- package/es/grid/src/GridItem.d.ts +2 -2
- package/es/image/src/ImagePreview.d.ts +1 -0
- package/es/image/src/ImagePreview.js +51 -4
- package/es/image/src/interface.d.ts +6 -0
- package/es/image/src/interface.js +1 -0
- package/es/input/src/Input.d.ts +5 -0
- package/es/input/src/Input.js +9 -3
- package/es/input/src/interface.d.ts +1 -0
- package/es/input-number/src/InputNumber.d.ts +179 -50
- package/es/input-number/src/InputNumber.js +22 -6
- package/es/input-number/styles/light.d.ts +14 -5
- package/es/layout/src/Layout.d.ts +8 -0
- package/es/layout/src/LayoutContent.d.ts +4 -0
- package/es/layout/src/LayoutSider.d.ts +4 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +1 -0
- package/es/locales/utils/index.d.ts +8 -0
- package/es/locales/utils/index.js +4 -0
- package/es/log/src/Log.d.ts +10 -25
- package/es/log/src/Log.js +2 -11
- package/es/log/src/LogLine.d.ts +1 -0
- package/es/log/src/LogLine.js +12 -10
- package/es/mention/src/Mention.d.ts +5 -0
- package/es/menu/index.d.ts +1 -1
- package/es/menu/src/Menu.d.ts +33 -8
- package/es/menu/src/Menu.js +32 -10
- package/es/menu/src/MenuDivider.d.ts +2 -0
- package/es/menu/src/MenuDivider.js +11 -0
- package/es/menu/src/MenuOption.d.ts +12 -2
- package/es/menu/src/MenuOptionContent.d.ts +7 -2
- package/es/menu/src/Submenu.d.ts +21 -17
- package/es/menu/src/interface.d.ts +23 -4
- package/es/menu/src/styles/index.cssr.js +6 -1
- package/es/menu/src/utils.d.ts +4 -2
- package/es/menu/src/utils.js +16 -2
- package/es/menu/styles/light.d.ts +2 -0
- package/es/menu/styles/light.js +3 -2
- package/es/modal/src/BodyWrapper.d.ts +34 -12
- package/es/modal/src/Modal.d.ts +174 -66
- package/es/modal/src/presetProps.d.ts +1 -1
- package/es/modal/styles/light.d.ts +14 -5
- package/es/notification/src/NotificationContainer.d.ts +11 -0
- package/es/notification/src/NotificationContainer.js +7 -2
- package/es/notification/src/NotificationProvider.d.ts +17 -0
- package/es/notification/src/NotificationProvider.js +38 -3
- package/es/notification/src/styles/index.cssr.d.ts +2 -1
- package/es/notification/src/styles/index.cssr.js +41 -12
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +21 -12
- package/es/pagination/src/Pagination.js +16 -6
- package/es/pagination/src/interface.d.ts +2 -0
- package/es/popconfirm/src/Popconfirm.d.ts +151 -57
- package/es/popconfirm/src/PopconfirmPanel.d.ts +2 -2
- package/es/popconfirm/styles/light.d.ts +14 -5
- package/es/popover/src/Popover.d.ts +6 -6
- package/es/popover/src/Popover.js +2 -5
- package/es/popover/src/PopoverBody.d.ts +5 -5
- package/es/popover/src/PopoverBody.js +2 -1
- package/es/popover/src/styles/index.cssr.js +0 -1
- package/es/popselect/src/Popselect.d.ts +9 -5
- package/es/popselect/src/PopselectPanel.d.ts +4 -0
- package/es/radio/src/Radio.d.ts +3 -0
- package/es/radio/src/RadioButton.d.ts +3 -0
- package/es/radio/src/use-radio.d.ts +2 -0
- package/es/radio/src/use-radio.js +6 -3
- package/es/select/src/Select.d.ts +4 -0
- package/es/slider/src/Slider.d.ts +71 -91
- package/es/slider/src/Slider.js +342 -583
- package/es/slider/src/interface.d.ts +1 -1
- package/es/slider/src/styles/index.cssr.js +86 -16
- package/es/slider/src/utils.d.ts +10 -1
- package/es/slider/src/utils.js +9 -0
- package/es/slider/styles/_common.d.ts +1 -0
- package/es/slider/styles/_common.js +1 -0
- package/es/slider/styles/light.d.ts +1 -0
- package/es/space/src/Space.js +2 -0
- package/es/steps/src/Step.js +1 -1
- package/es/table/src/Table.d.ts +35 -0
- package/es/table/src/Table.js +8 -4
- package/es/table/src/styles/index.cssr.js +1 -1
- package/es/table/styles/light.d.ts +3 -0
- package/es/table/styles/light.js +2 -2
- package/es/tabs/index.d.ts +2 -0
- package/es/tabs/index.js +1 -0
- package/es/tabs/src/Tab.d.ts +35 -18
- package/es/tabs/src/Tab.js +11 -12
- package/es/tabs/src/Tabs.js +58 -18
- package/es/tag/src/Tag.d.ts +8 -3
- package/es/tag/src/Tag.js +10 -2
- package/es/tag/src/styles/index.cssr.js +10 -5
- package/es/tag/src/styles/rtl.cssr.js +7 -1
- package/es/theme-editor/src/ThemeEditor.d.ts +4 -0
- package/es/time-picker/src/Panel.d.ts +18 -5
- package/es/time-picker/src/TimePicker.d.ts +145 -50
- package/es/time-picker/src/TimePicker.js +3 -0
- package/es/time-picker/styles/light.d.ts +14 -5
- package/es/tooltip/src/Tooltip.d.ts +9 -5
- package/es/transfer/src/Transfer.d.ts +146 -52
- package/es/transfer/src/TransferFilter.d.ts +18 -5
- package/es/transfer/src/TransferList.d.ts +18 -5
- package/es/transfer/src/TransferListItem.d.ts +18 -5
- package/es/transfer/styles/light.d.ts +14 -5
- package/es/tree/src/Tree.d.ts +10 -6
- package/es/tree/src/TreeNodeCheckbox.d.ts +4 -0
- package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +6 -2
- package/es/upload/index.d.ts +1 -2
- package/es/upload/src/Upload.d.ts +151 -59
- package/es/upload/src/Upload.js +69 -16
- package/es/upload/src/UploadFile.d.ts +19 -6
- package/es/upload/src/UploadProgress.d.ts +18 -5
- package/es/upload/src/interface.d.ts +14 -1
- package/es/upload/styles/light.d.ts +14 -5
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +1 -0
- package/lib/_internal/scrollbar/src/ScrollBar.js +9 -4
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +5 -1
- package/lib/_internal/selection/src/Selection.d.ts +5 -1
- package/lib/_internal/suffix/src/Suffix.d.ts +5 -2
- package/lib/_internal/suffix/src/Suffix.js +4 -1
- package/lib/_styles/common/dark.js +2 -1
- package/lib/_styles/common/light.d.ts +4 -0
- package/lib/_styles/common/light.js +5 -2
- package/lib/_styles/global/index.cssr.js +10 -5
- package/lib/_styles/transitions/icon-switch.cssr.js +7 -2
- package/lib/_utils/naive/extract-public-props.d.ts +1 -1
- package/lib/alert/src/Alert.d.ts +4 -0
- package/lib/auto-complete/src/AutoComplete.d.ts +9 -1
- package/lib/auto-complete/src/AutoComplete.js +5 -2
- package/lib/avatar/src/Avatar.d.ts +8 -1
- package/lib/avatar/src/Avatar.js +40 -8
- package/lib/avatar/src/styles/index.cssr.js +2 -2
- package/lib/button/src/Button.d.ts +149 -52
- package/lib/button/src/Button.js +126 -54
- package/lib/button/src/interface.d.ts +1 -1
- package/lib/button/src/styles/button.cssr.js +1 -0
- package/lib/button/styles/dark.js +3 -0
- package/lib/button/styles/light.d.ts +14 -5
- package/lib/button/styles/light.js +10 -3
- package/lib/calendar/src/Calendar.d.ts +144 -50
- package/lib/calendar/styles/light.d.ts +14 -5
- package/lib/card/src/Card.d.ts +4 -0
- package/lib/cascader/src/Cascader.d.ts +4 -0
- package/lib/cascader/src/CascaderOption.d.ts +4 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +4 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +4 -0
- package/lib/checkbox/src/Checkbox.d.ts +9 -5
- package/lib/checkbox/src/Checkbox.js +8 -9
- package/lib/collapse/src/Collapse.d.ts +4 -0
- package/lib/color-picker/src/ColorInputUnit.d.ts +18 -5
- package/lib/color-picker/src/ColorPicker.d.ts +126 -45
- package/lib/color-picker/styles/light.d.ts +14 -5
- package/lib/data-table/src/DataTable.d.ts +184 -51
- package/lib/data-table/src/DataTable.js +11 -6
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +21 -5
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +22 -6
- package/lib/data-table/src/TableParts/Body.d.ts +26 -6
- package/lib/data-table/src/TableParts/Body.js +77 -39
- package/lib/data-table/src/TableParts/BodyCheckbox.js +1 -1
- package/lib/data-table/src/TableParts/Cell.d.ts +42 -10
- package/lib/data-table/src/TableParts/Header.d.ts +21 -5
- package/lib/data-table/src/TableParts/Header.js +1 -1
- package/lib/data-table/src/interface.d.ts +4 -1
- package/lib/data-table/src/styles/index.cssr.js +9 -10
- package/lib/data-table/src/use-table-data.js +3 -3
- package/lib/data-table/styles/light.d.ts +20 -5
- package/lib/data-table/styles/light.js +4 -4
- package/lib/date-picker/src/DatePicker.d.ts +329 -127
- package/lib/date-picker/src/DatePicker.js +7 -17
- package/lib/date-picker/src/config.d.ts +9 -0
- package/lib/date-picker/src/config.js +9 -1
- package/lib/date-picker/src/panel/date.d.ts +53 -20
- package/lib/date-picker/src/panel/daterange.d.ts +52 -19
- package/lib/date-picker/src/panel/datetime.d.ts +53 -20
- package/lib/date-picker/src/panel/datetimerange.d.ts +52 -19
- package/lib/date-picker/src/panel/month.d.ts +88 -61
- package/lib/date-picker/src/panel/month.js +9 -6
- package/lib/date-picker/src/panel/use-calendar.d.ts +61 -28
- package/lib/date-picker/src/panel/use-calendar.js +8 -1
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +50 -17
- package/lib/date-picker/src/panel/use-dual-calendar.js +4 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +48 -15
- package/lib/date-picker/styles/_common.d.ts +2 -0
- package/lib/date-picker/styles/_common.js +3 -1
- package/lib/date-picker/styles/light.d.ts +32 -10
- package/lib/dialog/src/Dialog.d.ts +105 -38
- package/lib/dialog/src/DialogEnvironment.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +2 -2
- package/lib/dialog/styles/light.d.ts +14 -5
- package/lib/drawer/src/Drawer.d.ts +4 -0
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +4 -0
- package/lib/drawer/src/DrawerContent.d.ts +4 -0
- package/lib/dropdown/index.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +11 -7
- package/lib/dropdown/src/DropdownGroup.d.ts +2 -3
- package/lib/dropdown/src/DropdownGroupHeader.js +3 -3
- package/lib/dropdown/src/DropdownMenu.d.ts +3 -4
- package/lib/dropdown/src/DropdownMenu.js +5 -4
- package/lib/dropdown/src/DropdownOption.d.ts +3 -4
- package/lib/dropdown/src/DropdownOption.js +5 -4
- package/lib/dropdown/src/DropdownRenderOption.d.ts +2 -3
- package/lib/dropdown/src/interface.d.ts +9 -30
- package/lib/dynamic-input/src/DynamicInput.d.ts +144 -50
- package/lib/dynamic-input/src/InputPreset.d.ts +18 -5
- package/lib/dynamic-input/src/PairPreset.d.ts +18 -5
- package/lib/dynamic-input/styles/light.d.ts +14 -5
- package/lib/dynamic-tags/src/DynamicTags.d.ts +145 -50
- package/lib/dynamic-tags/styles/light.d.ts +14 -5
- package/lib/ellipsis/src/Ellipsis.d.ts +4 -0
- package/lib/form/src/FormItemGridItem.d.ts +2 -2
- package/lib/global-style/src/GlobalStyle.js +2 -0
- package/lib/grid/src/Grid.js +1 -0
- package/lib/grid/src/GridItem.d.ts +2 -2
- package/lib/image/src/ImagePreview.d.ts +1 -0
- package/lib/image/src/ImagePreview.js +51 -4
- package/lib/image/src/interface.d.ts +6 -0
- package/lib/image/src/interface.js +2 -0
- package/lib/input/src/Input.d.ts +5 -0
- package/lib/input/src/Input.js +9 -3
- package/lib/input/src/interface.d.ts +1 -0
- package/lib/input-number/src/InputNumber.d.ts +179 -50
- package/lib/input-number/src/InputNumber.js +22 -6
- package/lib/input-number/styles/light.d.ts +14 -5
- package/lib/layout/src/Layout.d.ts +8 -0
- package/lib/layout/src/LayoutContent.d.ts +4 -0
- package/lib/layout/src/LayoutSider.d.ts +4 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +3 -1
- package/lib/locales/utils/index.d.ts +8 -0
- package/lib/locales/utils/index.js +8 -0
- package/lib/log/src/Log.d.ts +10 -25
- package/lib/log/src/Log.js +2 -11
- package/lib/log/src/LogLine.d.ts +1 -0
- package/lib/log/src/LogLine.js +11 -9
- package/lib/mention/src/Mention.d.ts +5 -0
- package/lib/menu/index.d.ts +1 -1
- package/lib/menu/src/Menu.d.ts +33 -8
- package/lib/menu/src/Menu.js +31 -9
- package/lib/menu/src/MenuDivider.d.ts +2 -0
- package/lib/menu/src/MenuDivider.js +13 -0
- package/lib/menu/src/MenuOption.d.ts +12 -2
- package/lib/menu/src/MenuOptionContent.d.ts +7 -2
- package/lib/menu/src/Submenu.d.ts +21 -17
- package/lib/menu/src/interface.d.ts +23 -4
- package/lib/menu/src/styles/index.cssr.js +6 -1
- package/lib/menu/src/utils.d.ts +4 -2
- package/lib/menu/src/utils.js +22 -3
- package/lib/menu/styles/light.d.ts +2 -0
- package/lib/menu/styles/light.js +3 -2
- package/lib/modal/src/BodyWrapper.d.ts +34 -12
- package/lib/modal/src/Modal.d.ts +174 -66
- package/lib/modal/src/presetProps.d.ts +1 -1
- package/lib/modal/styles/light.d.ts +14 -5
- package/lib/notification/src/NotificationContainer.d.ts +11 -0
- package/lib/notification/src/NotificationContainer.js +7 -2
- package/lib/notification/src/NotificationProvider.d.ts +17 -0
- package/lib/notification/src/NotificationProvider.js +38 -3
- package/lib/notification/src/styles/index.cssr.d.ts +2 -1
- package/lib/notification/src/styles/index.cssr.js +41 -12
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +21 -12
- package/lib/pagination/src/Pagination.js +16 -6
- package/lib/pagination/src/interface.d.ts +2 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +151 -57
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +2 -2
- package/lib/popconfirm/styles/light.d.ts +14 -5
- package/lib/popover/src/Popover.d.ts +6 -6
- package/lib/popover/src/Popover.js +2 -5
- package/lib/popover/src/PopoverBody.d.ts +5 -5
- package/lib/popover/src/PopoverBody.js +2 -1
- package/lib/popover/src/styles/index.cssr.js +0 -1
- package/lib/popselect/src/Popselect.d.ts +9 -5
- package/lib/popselect/src/PopselectPanel.d.ts +4 -0
- package/lib/radio/src/Radio.d.ts +3 -0
- package/lib/radio/src/RadioButton.d.ts +3 -0
- package/lib/radio/src/use-radio.d.ts +2 -0
- package/lib/radio/src/use-radio.js +6 -3
- package/lib/select/src/Select.d.ts +4 -0
- package/lib/slider/src/Slider.d.ts +71 -91
- package/lib/slider/src/Slider.js +340 -581
- package/lib/slider/src/interface.d.ts +1 -1
- package/lib/slider/src/styles/index.cssr.js +86 -16
- package/lib/slider/src/utils.d.ts +10 -1
- package/lib/slider/src/utils.js +11 -1
- package/lib/slider/styles/_common.d.ts +1 -0
- package/lib/slider/styles/_common.js +1 -0
- package/lib/slider/styles/light.d.ts +1 -0
- package/lib/space/src/Space.js +2 -0
- package/lib/steps/src/Step.js +1 -1
- package/lib/table/src/Table.d.ts +35 -0
- package/lib/table/src/Table.js +8 -4
- package/lib/table/src/styles/index.cssr.js +1 -1
- package/lib/table/styles/light.d.ts +3 -0
- package/lib/table/styles/light.js +2 -2
- package/lib/tabs/index.d.ts +2 -0
- package/lib/tabs/index.js +3 -1
- package/lib/tabs/src/Tab.d.ts +35 -18
- package/lib/tabs/src/Tab.js +10 -11
- package/lib/tabs/src/Tabs.js +57 -17
- package/lib/tag/src/Tag.d.ts +8 -3
- package/lib/tag/src/Tag.js +10 -1
- package/lib/tag/src/styles/index.cssr.js +10 -5
- package/lib/tag/src/styles/rtl.cssr.js +7 -1
- package/lib/theme-editor/src/ThemeEditor.d.ts +4 -0
- package/lib/time-picker/src/Panel.d.ts +18 -5
- package/lib/time-picker/src/TimePicker.d.ts +145 -50
- package/lib/time-picker/src/TimePicker.js +3 -0
- package/lib/time-picker/styles/light.d.ts +14 -5
- package/lib/tooltip/src/Tooltip.d.ts +9 -5
- package/lib/transfer/src/Transfer.d.ts +146 -52
- package/lib/transfer/src/TransferFilter.d.ts +18 -5
- package/lib/transfer/src/TransferList.d.ts +18 -5
- package/lib/transfer/src/TransferListItem.d.ts +18 -5
- package/lib/transfer/styles/light.d.ts +14 -5
- package/lib/tree/src/Tree.d.ts +10 -6
- package/lib/tree/src/TreeNodeCheckbox.d.ts +4 -0
- package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +6 -2
- package/lib/upload/index.d.ts +1 -2
- package/lib/upload/src/Upload.d.ts +151 -59
- package/lib/upload/src/Upload.js +69 -16
- package/lib/upload/src/UploadFile.d.ts +19 -6
- package/lib/upload/src/UploadProgress.d.ts +18 -5
- package/lib/upload/src/interface.d.ts +14 -1
- package/lib/upload/styles/light.d.ts +14 -5
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +10 -9
- package/web-types.json +205 -14
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { Shortcuts } from '../interface';
|
|
3
3
|
import type { DateItem, MonthItem, YearItem } from '../utils';
|
|
4
4
|
declare const useCalendarProps: {
|
|
5
5
|
readonly actions: {
|
|
6
|
-
readonly type:
|
|
6
|
+
readonly type: PropType<string[]>;
|
|
7
7
|
readonly default: () => string[];
|
|
8
8
|
};
|
|
9
9
|
readonly active: BooleanConstructor;
|
|
@@ -16,23 +16,23 @@ declare const useCalendarProps: {
|
|
|
16
16
|
readonly default: "HH:mm:ss";
|
|
17
17
|
};
|
|
18
18
|
readonly value: {
|
|
19
|
-
readonly type:
|
|
19
|
+
readonly type: PropType<import("../interface").Value | null>;
|
|
20
20
|
readonly default: null;
|
|
21
21
|
};
|
|
22
|
-
readonly shortcuts:
|
|
22
|
+
readonly shortcuts: PropType<Shortcuts>;
|
|
23
23
|
readonly onConfirm: FunctionConstructor;
|
|
24
|
-
readonly onClose:
|
|
24
|
+
readonly onClose: PropType<import("../interface").OnClose>;
|
|
25
25
|
readonly onTabOut: FunctionConstructor;
|
|
26
26
|
readonly onUpdateValue: {
|
|
27
|
-
readonly type:
|
|
27
|
+
readonly type: PropType<import("../interface").OnPanelUpdateValue>;
|
|
28
28
|
readonly required: true;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, type: 'date' | 'datetime' | 'month'): {
|
|
31
|
+
declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, type: 'date' | 'datetime' | 'month' | 'year'): {
|
|
32
32
|
handleDateClick: (dateItem: DateItem | MonthItem | YearItem) => void;
|
|
33
33
|
handleDateInputBlur: () => void;
|
|
34
34
|
handleDateInput: (value: string) => void;
|
|
35
|
-
handleTimePickerChange: (value: number) => void;
|
|
35
|
+
handleTimePickerChange: (value: number | null) => void;
|
|
36
36
|
clearSelectedDateTime: () => void;
|
|
37
37
|
virtualListContainer: () => HTMLElement;
|
|
38
38
|
virtualListContent: () => HTMLElement;
|
|
@@ -131,9 +131,13 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
131
131
|
tableHeaderColor: string;
|
|
132
132
|
hoverColor: string;
|
|
133
133
|
tableColorHover: string;
|
|
134
|
+
tableColorStriped: string;
|
|
134
135
|
pressedColor: string;
|
|
135
136
|
opacityDisabled: string;
|
|
136
137
|
inputColorDisabled: string;
|
|
138
|
+
buttonColor2: string;
|
|
139
|
+
buttonColor2Hover: string;
|
|
140
|
+
buttonColor2Pressed: string;
|
|
137
141
|
boxShadow1: string;
|
|
138
142
|
boxShadow2: string;
|
|
139
143
|
boxShadow3: string;
|
|
@@ -207,11 +211,13 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
207
211
|
calendarLeftPaddingDaterange: string;
|
|
208
212
|
calendarLeftPaddingDatetimerange: string;
|
|
209
213
|
calendarLeftPaddingMonth: string;
|
|
214
|
+
calendarLeftPaddingYear: string;
|
|
210
215
|
calendarRightPaddingDate: string;
|
|
211
216
|
calendarRightPaddingDatetime: string;
|
|
212
217
|
calendarRightPaddingDaterange: string;
|
|
213
218
|
calendarRightPaddingDatetimerange: string;
|
|
214
219
|
calendarRightPaddingMonth: string;
|
|
220
|
+
calendarRightPaddingYear: string;
|
|
215
221
|
};
|
|
216
222
|
peers: {
|
|
217
223
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -288,20 +294,30 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
288
294
|
fontSizeMedium: string;
|
|
289
295
|
fontSizeLarge: string;
|
|
290
296
|
opacityDisabled: string;
|
|
297
|
+
colorOpacitySecondary: number;
|
|
298
|
+
colorOpacitySecondaryHover: number;
|
|
299
|
+
colorOpacitySecondaryPressed: number;
|
|
300
|
+
colorSecondary: string;
|
|
301
|
+
colorSecondaryHover: string;
|
|
302
|
+
colorSecondaryPressed: string;
|
|
303
|
+
colorTertiary: string;
|
|
304
|
+
colorTertiaryHover: string;
|
|
305
|
+
colorTertiaryPressed: string;
|
|
306
|
+
colorQuaternary: string;
|
|
307
|
+
colorQuaternaryHover: string;
|
|
308
|
+
colorQuaternaryPressed: string;
|
|
291
309
|
color: string;
|
|
292
310
|
colorHover: string;
|
|
293
311
|
colorPressed: string;
|
|
294
312
|
colorFocus: string;
|
|
295
313
|
colorDisabled: string;
|
|
296
314
|
textColor: string;
|
|
315
|
+
textColorTertiary: string;
|
|
297
316
|
textColorHover: string;
|
|
298
317
|
textColorPressed: string;
|
|
299
318
|
textColorFocus: string;
|
|
300
319
|
textColorDisabled: string;
|
|
301
320
|
textColorText: string;
|
|
302
|
-
textColorTextDepth1: string;
|
|
303
|
-
textColorTextDepth2: string;
|
|
304
|
-
textColorTextDepth3: string;
|
|
305
321
|
textColorTextHover: string;
|
|
306
322
|
textColorTextPressed: string;
|
|
307
323
|
textColorTextFocus: string;
|
|
@@ -448,9 +464,8 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
448
464
|
borderDisabledError: string;
|
|
449
465
|
rippleColorError: string;
|
|
450
466
|
waveOpacity: string;
|
|
451
|
-
fontWeightText: string;
|
|
452
467
|
fontWeight: string;
|
|
453
|
-
|
|
468
|
+
fontWeightStrong: string;
|
|
454
469
|
paddingTiny: string;
|
|
455
470
|
paddingSmall: string;
|
|
456
471
|
paddingMedium: string;
|
|
@@ -504,20 +519,30 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
504
519
|
fontSizeMedium: string;
|
|
505
520
|
fontSizeLarge: string;
|
|
506
521
|
opacityDisabled: string;
|
|
522
|
+
colorOpacitySecondary: number;
|
|
523
|
+
colorOpacitySecondaryHover: number;
|
|
524
|
+
colorOpacitySecondaryPressed: number;
|
|
525
|
+
colorSecondary: string;
|
|
526
|
+
colorSecondaryHover: string;
|
|
527
|
+
colorSecondaryPressed: string;
|
|
528
|
+
colorTertiary: string;
|
|
529
|
+
colorTertiaryHover: string;
|
|
530
|
+
colorTertiaryPressed: string;
|
|
531
|
+
colorQuaternary: string;
|
|
532
|
+
colorQuaternaryHover: string;
|
|
533
|
+
colorQuaternaryPressed: string;
|
|
507
534
|
color: string;
|
|
508
535
|
colorHover: string;
|
|
509
536
|
colorPressed: string;
|
|
510
537
|
colorFocus: string;
|
|
511
538
|
colorDisabled: string;
|
|
512
539
|
textColor: string;
|
|
540
|
+
textColorTertiary: string;
|
|
513
541
|
textColorHover: string;
|
|
514
542
|
textColorPressed: string;
|
|
515
543
|
textColorFocus: string;
|
|
516
544
|
textColorDisabled: string;
|
|
517
545
|
textColorText: string;
|
|
518
|
-
textColorTextDepth1: string;
|
|
519
|
-
textColorTextDepth2: string;
|
|
520
|
-
textColorTextDepth3: string;
|
|
521
546
|
textColorTextHover: string;
|
|
522
547
|
textColorTextPressed: string;
|
|
523
548
|
textColorTextFocus: string;
|
|
@@ -664,9 +689,8 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
664
689
|
borderDisabledError: string;
|
|
665
690
|
rippleColorError: string;
|
|
666
691
|
waveOpacity: string;
|
|
667
|
-
fontWeightText: string;
|
|
668
692
|
fontWeight: string;
|
|
669
|
-
|
|
693
|
+
fontWeightStrong: string;
|
|
670
694
|
paddingTiny: string;
|
|
671
695
|
paddingSmall: string;
|
|
672
696
|
paddingMedium: string;
|
|
@@ -782,20 +806,30 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
782
806
|
fontSizeMedium: string;
|
|
783
807
|
fontSizeLarge: string;
|
|
784
808
|
opacityDisabled: string;
|
|
809
|
+
colorOpacitySecondary: number;
|
|
810
|
+
colorOpacitySecondaryHover: number;
|
|
811
|
+
colorOpacitySecondaryPressed: number;
|
|
812
|
+
colorSecondary: string;
|
|
813
|
+
colorSecondaryHover: string;
|
|
814
|
+
colorSecondaryPressed: string;
|
|
815
|
+
colorTertiary: string;
|
|
816
|
+
colorTertiaryHover: string;
|
|
817
|
+
colorTertiaryPressed: string;
|
|
818
|
+
colorQuaternary: string;
|
|
819
|
+
colorQuaternaryHover: string;
|
|
820
|
+
colorQuaternaryPressed: string;
|
|
785
821
|
color: string;
|
|
786
822
|
colorHover: string;
|
|
787
823
|
colorPressed: string;
|
|
788
824
|
colorFocus: string;
|
|
789
825
|
colorDisabled: string;
|
|
790
826
|
textColor: string;
|
|
827
|
+
textColorTertiary: string;
|
|
791
828
|
textColorHover: string;
|
|
792
829
|
textColorPressed: string;
|
|
793
830
|
textColorFocus: string;
|
|
794
831
|
textColorDisabled: string;
|
|
795
832
|
textColorText: string;
|
|
796
|
-
textColorTextDepth1: string;
|
|
797
|
-
textColorTextDepth2: string;
|
|
798
|
-
textColorTextDepth3: string;
|
|
799
833
|
textColorTextHover: string;
|
|
800
834
|
textColorTextPressed: string;
|
|
801
835
|
textColorTextFocus: string;
|
|
@@ -942,9 +976,8 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
942
976
|
borderDisabledError: string;
|
|
943
977
|
rippleColorError: string;
|
|
944
978
|
waveOpacity: string;
|
|
945
|
-
fontWeightText: string;
|
|
946
979
|
fontWeight: string;
|
|
947
|
-
|
|
980
|
+
fontWeightStrong: string;
|
|
948
981
|
paddingTiny: string;
|
|
949
982
|
paddingSmall: string;
|
|
950
983
|
paddingMedium: string;
|
|
@@ -1098,7 +1131,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
1098
1131
|
declare namespace useCalendar {
|
|
1099
1132
|
var props: {
|
|
1100
1133
|
readonly actions: {
|
|
1101
|
-
readonly type:
|
|
1134
|
+
readonly type: PropType<string[]>;
|
|
1102
1135
|
readonly default: () => string[];
|
|
1103
1136
|
};
|
|
1104
1137
|
readonly active: BooleanConstructor;
|
|
@@ -1111,15 +1144,15 @@ declare namespace useCalendar {
|
|
|
1111
1144
|
readonly default: "HH:mm:ss";
|
|
1112
1145
|
};
|
|
1113
1146
|
readonly value: {
|
|
1114
|
-
readonly type:
|
|
1147
|
+
readonly type: PropType<import("../interface").Value | null>;
|
|
1115
1148
|
readonly default: null;
|
|
1116
1149
|
};
|
|
1117
|
-
readonly shortcuts:
|
|
1150
|
+
readonly shortcuts: PropType<Shortcuts>;
|
|
1118
1151
|
readonly onConfirm: FunctionConstructor;
|
|
1119
|
-
readonly onClose:
|
|
1152
|
+
readonly onClose: PropType<import("../interface").OnClose>;
|
|
1120
1153
|
readonly onTabOut: FunctionConstructor;
|
|
1121
1154
|
readonly onUpdateValue: {
|
|
1122
|
-
readonly type:
|
|
1155
|
+
readonly type: PropType<import("../interface").OnPanelUpdateValue>;
|
|
1123
1156
|
readonly required: true;
|
|
1124
1157
|
};
|
|
1125
1158
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, computed, inject, watch } from 'vue';
|
|
2
|
-
import { addMonths, addYears, isSameMonth, getTime, format, set, getYear, getMonth, getDate, isValid, startOfDay, startOfSecond, startOfMonth } from 'date-fns';
|
|
2
|
+
import { addMonths, addYears, isSameMonth, getTime, format, set, getYear, getMonth, getDate, isValid, startOfDay, startOfSecond, startOfMonth, startOfYear } from 'date-fns';
|
|
3
3
|
import { dateArray, monthArray, strictParse, yearArray } from '../utils';
|
|
4
4
|
import { usePanelCommon } from './use-panel-common';
|
|
5
5
|
import { datePickerInjectionKey } from '../interface';
|
|
@@ -74,6 +74,8 @@ function useCalendar(props, type) {
|
|
|
74
74
|
return getTime(startOfSecond(value));
|
|
75
75
|
if (type === 'month')
|
|
76
76
|
return getTime(startOfMonth(value));
|
|
77
|
+
if (type === 'year')
|
|
78
|
+
return getTime(startOfYear(value));
|
|
77
79
|
return getTime(startOfDay(value));
|
|
78
80
|
}
|
|
79
81
|
function mergedIsDateDisabled(ts) {
|
|
@@ -142,7 +144,7 @@ function useCalendar(props, type) {
|
|
|
142
144
|
newValue = Date.now();
|
|
143
145
|
}
|
|
144
146
|
newValue = getTime(set(newValue, dateItem.dateObject));
|
|
145
|
-
panelCommon.doUpdateValue(sanitizeValue(newValue), type === 'date');
|
|
147
|
+
panelCommon.doUpdateValue(sanitizeValue(newValue), type === 'date' || type === 'year');
|
|
146
148
|
if (type === 'date') {
|
|
147
149
|
panelCommon.doClose();
|
|
148
150
|
}
|
|
@@ -150,6 +152,9 @@ function useCalendar(props, type) {
|
|
|
150
152
|
panelCommon.disableTransitionOneTick();
|
|
151
153
|
scrollYearMonth(newValue);
|
|
152
154
|
}
|
|
155
|
+
else if (type === 'year') {
|
|
156
|
+
panelCommon.doClose();
|
|
157
|
+
}
|
|
153
158
|
}
|
|
154
159
|
function deriveDateInputValue(time) {
|
|
155
160
|
// If not selected, display nothing,
|
|
@@ -203,6 +208,8 @@ function useCalendar(props, type) {
|
|
|
203
208
|
(_a = scrollbarInstRef.value) === null || _a === void 0 ? void 0 : _a.sync();
|
|
204
209
|
}
|
|
205
210
|
function handleTimePickerChange(value) {
|
|
211
|
+
if (value === null)
|
|
212
|
+
return;
|
|
206
213
|
panelCommon.doUpdateValue(value, false);
|
|
207
214
|
}
|
|
208
215
|
function handleSingleShortcutMouseenter(shortcut) {
|
|
@@ -35,8 +35,8 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
35
35
|
startTimeValue: import("vue").ComputedRef<number | null>;
|
|
36
36
|
endTimeValue: import("vue").ComputedRef<number | null>;
|
|
37
37
|
handleFocusDetectorFocus: () => void;
|
|
38
|
-
handleStartTimePickerChange: (value: number) => void;
|
|
39
|
-
handleEndTimePickerChange: (value: number) => void;
|
|
38
|
+
handleStartTimePickerChange: (value: number | null) => void;
|
|
39
|
+
handleEndTimePickerChange: (value: number | null) => void;
|
|
40
40
|
handleStartDateInput: (value: string) => void;
|
|
41
41
|
handleStartDateInputBlur: () => void;
|
|
42
42
|
handleEndDateInput: (value: string) => void;
|
|
@@ -129,9 +129,13 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
129
129
|
tableHeaderColor: string;
|
|
130
130
|
hoverColor: string;
|
|
131
131
|
tableColorHover: string;
|
|
132
|
+
tableColorStriped: string;
|
|
132
133
|
pressedColor: string;
|
|
133
134
|
opacityDisabled: string;
|
|
134
135
|
inputColorDisabled: string;
|
|
136
|
+
buttonColor2: string;
|
|
137
|
+
buttonColor2Hover: string;
|
|
138
|
+
buttonColor2Pressed: string;
|
|
135
139
|
boxShadow1: string;
|
|
136
140
|
boxShadow2: string;
|
|
137
141
|
boxShadow3: string;
|
|
@@ -205,11 +209,13 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
205
209
|
calendarLeftPaddingDaterange: string;
|
|
206
210
|
calendarLeftPaddingDatetimerange: string;
|
|
207
211
|
calendarLeftPaddingMonth: string;
|
|
212
|
+
calendarLeftPaddingYear: string;
|
|
208
213
|
calendarRightPaddingDate: string;
|
|
209
214
|
calendarRightPaddingDatetime: string;
|
|
210
215
|
calendarRightPaddingDaterange: string;
|
|
211
216
|
calendarRightPaddingDatetimerange: string;
|
|
212
217
|
calendarRightPaddingMonth: string;
|
|
218
|
+
calendarRightPaddingYear: string;
|
|
213
219
|
};
|
|
214
220
|
peers: {
|
|
215
221
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -286,20 +292,30 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
286
292
|
fontSizeMedium: string;
|
|
287
293
|
fontSizeLarge: string;
|
|
288
294
|
opacityDisabled: string;
|
|
295
|
+
colorOpacitySecondary: number;
|
|
296
|
+
colorOpacitySecondaryHover: number;
|
|
297
|
+
colorOpacitySecondaryPressed: number;
|
|
298
|
+
colorSecondary: string;
|
|
299
|
+
colorSecondaryHover: string;
|
|
300
|
+
colorSecondaryPressed: string;
|
|
301
|
+
colorTertiary: string;
|
|
302
|
+
colorTertiaryHover: string;
|
|
303
|
+
colorTertiaryPressed: string;
|
|
304
|
+
colorQuaternary: string;
|
|
305
|
+
colorQuaternaryHover: string;
|
|
306
|
+
colorQuaternaryPressed: string;
|
|
289
307
|
color: string;
|
|
290
308
|
colorHover: string;
|
|
291
309
|
colorPressed: string;
|
|
292
310
|
colorFocus: string;
|
|
293
311
|
colorDisabled: string;
|
|
294
312
|
textColor: string;
|
|
313
|
+
textColorTertiary: string;
|
|
295
314
|
textColorHover: string;
|
|
296
315
|
textColorPressed: string;
|
|
297
316
|
textColorFocus: string;
|
|
298
317
|
textColorDisabled: string;
|
|
299
318
|
textColorText: string;
|
|
300
|
-
textColorTextDepth1: string;
|
|
301
|
-
textColorTextDepth2: string;
|
|
302
|
-
textColorTextDepth3: string;
|
|
303
319
|
textColorTextHover: string;
|
|
304
320
|
textColorTextPressed: string;
|
|
305
321
|
textColorTextFocus: string;
|
|
@@ -446,9 +462,8 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
446
462
|
borderDisabledError: string;
|
|
447
463
|
rippleColorError: string;
|
|
448
464
|
waveOpacity: string;
|
|
449
|
-
fontWeightText: string;
|
|
450
465
|
fontWeight: string;
|
|
451
|
-
|
|
466
|
+
fontWeightStrong: string;
|
|
452
467
|
paddingTiny: string;
|
|
453
468
|
paddingSmall: string;
|
|
454
469
|
paddingMedium: string;
|
|
@@ -502,20 +517,30 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
502
517
|
fontSizeMedium: string;
|
|
503
518
|
fontSizeLarge: string;
|
|
504
519
|
opacityDisabled: string;
|
|
520
|
+
colorOpacitySecondary: number;
|
|
521
|
+
colorOpacitySecondaryHover: number;
|
|
522
|
+
colorOpacitySecondaryPressed: number;
|
|
523
|
+
colorSecondary: string;
|
|
524
|
+
colorSecondaryHover: string;
|
|
525
|
+
colorSecondaryPressed: string;
|
|
526
|
+
colorTertiary: string;
|
|
527
|
+
colorTertiaryHover: string;
|
|
528
|
+
colorTertiaryPressed: string;
|
|
529
|
+
colorQuaternary: string;
|
|
530
|
+
colorQuaternaryHover: string;
|
|
531
|
+
colorQuaternaryPressed: string;
|
|
505
532
|
color: string;
|
|
506
533
|
colorHover: string;
|
|
507
534
|
colorPressed: string;
|
|
508
535
|
colorFocus: string;
|
|
509
536
|
colorDisabled: string;
|
|
510
537
|
textColor: string;
|
|
538
|
+
textColorTertiary: string;
|
|
511
539
|
textColorHover: string;
|
|
512
540
|
textColorPressed: string;
|
|
513
541
|
textColorFocus: string;
|
|
514
542
|
textColorDisabled: string;
|
|
515
543
|
textColorText: string;
|
|
516
|
-
textColorTextDepth1: string;
|
|
517
|
-
textColorTextDepth2: string;
|
|
518
|
-
textColorTextDepth3: string;
|
|
519
544
|
textColorTextHover: string;
|
|
520
545
|
textColorTextPressed: string;
|
|
521
546
|
textColorTextFocus: string;
|
|
@@ -662,9 +687,8 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
662
687
|
borderDisabledError: string;
|
|
663
688
|
rippleColorError: string;
|
|
664
689
|
waveOpacity: string;
|
|
665
|
-
fontWeightText: string;
|
|
666
690
|
fontWeight: string;
|
|
667
|
-
|
|
691
|
+
fontWeightStrong: string;
|
|
668
692
|
paddingTiny: string;
|
|
669
693
|
paddingSmall: string;
|
|
670
694
|
paddingMedium: string;
|
|
@@ -780,20 +804,30 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
780
804
|
fontSizeMedium: string;
|
|
781
805
|
fontSizeLarge: string;
|
|
782
806
|
opacityDisabled: string;
|
|
807
|
+
colorOpacitySecondary: number;
|
|
808
|
+
colorOpacitySecondaryHover: number;
|
|
809
|
+
colorOpacitySecondaryPressed: number;
|
|
810
|
+
colorSecondary: string;
|
|
811
|
+
colorSecondaryHover: string;
|
|
812
|
+
colorSecondaryPressed: string;
|
|
813
|
+
colorTertiary: string;
|
|
814
|
+
colorTertiaryHover: string;
|
|
815
|
+
colorTertiaryPressed: string;
|
|
816
|
+
colorQuaternary: string;
|
|
817
|
+
colorQuaternaryHover: string;
|
|
818
|
+
colorQuaternaryPressed: string;
|
|
783
819
|
color: string;
|
|
784
820
|
colorHover: string;
|
|
785
821
|
colorPressed: string;
|
|
786
822
|
colorFocus: string;
|
|
787
823
|
colorDisabled: string;
|
|
788
824
|
textColor: string;
|
|
825
|
+
textColorTertiary: string;
|
|
789
826
|
textColorHover: string;
|
|
790
827
|
textColorPressed: string;
|
|
791
828
|
textColorFocus: string;
|
|
792
829
|
textColorDisabled: string;
|
|
793
830
|
textColorText: string;
|
|
794
|
-
textColorTextDepth1: string;
|
|
795
|
-
textColorTextDepth2: string;
|
|
796
|
-
textColorTextDepth3: string;
|
|
797
831
|
textColorTextHover: string;
|
|
798
832
|
textColorTextPressed: string;
|
|
799
833
|
textColorTextFocus: string;
|
|
@@ -940,9 +974,8 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
940
974
|
borderDisabledError: string;
|
|
941
975
|
rippleColorError: string;
|
|
942
976
|
waveOpacity: string;
|
|
943
|
-
fontWeightText: string;
|
|
944
977
|
fontWeight: string;
|
|
945
|
-
|
|
978
|
+
fontWeightStrong: string;
|
|
946
979
|
paddingTiny: string;
|
|
947
980
|
paddingSmall: string;
|
|
948
981
|
paddingMedium: string;
|
|
@@ -417,9 +417,13 @@ function useDualCalendar(props, type = 'datetime') {
|
|
|
417
417
|
endDateInputRef.value = format(times[1], dateFormat, panelCommon.dateFnsOptions.value);
|
|
418
418
|
}
|
|
419
419
|
function handleStartTimePickerChange(value) {
|
|
420
|
+
if (value === null)
|
|
421
|
+
return;
|
|
420
422
|
changeStartDateTime(value);
|
|
421
423
|
}
|
|
422
424
|
function handleEndTimePickerChange(value) {
|
|
425
|
+
if (value === null)
|
|
426
|
+
return;
|
|
423
427
|
changeEndDateTime(value);
|
|
424
428
|
}
|
|
425
429
|
function handleRangeShortcutMouseenter(shortcut) {
|
|
@@ -95,9 +95,13 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
|
|
|
95
95
|
tableHeaderColor: string;
|
|
96
96
|
hoverColor: string;
|
|
97
97
|
tableColorHover: string;
|
|
98
|
+
tableColorStriped: string;
|
|
98
99
|
pressedColor: string;
|
|
99
100
|
opacityDisabled: string;
|
|
100
101
|
inputColorDisabled: string;
|
|
102
|
+
buttonColor2: string;
|
|
103
|
+
buttonColor2Hover: string;
|
|
104
|
+
buttonColor2Pressed: string;
|
|
101
105
|
boxShadow1: string;
|
|
102
106
|
boxShadow2: string;
|
|
103
107
|
boxShadow3: string;
|
|
@@ -171,11 +175,13 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
|
|
|
171
175
|
calendarLeftPaddingDaterange: string;
|
|
172
176
|
calendarLeftPaddingDatetimerange: string;
|
|
173
177
|
calendarLeftPaddingMonth: string;
|
|
178
|
+
calendarLeftPaddingYear: string;
|
|
174
179
|
calendarRightPaddingDate: string;
|
|
175
180
|
calendarRightPaddingDatetime: string;
|
|
176
181
|
calendarRightPaddingDaterange: string;
|
|
177
182
|
calendarRightPaddingDatetimerange: string;
|
|
178
183
|
calendarRightPaddingMonth: string;
|
|
184
|
+
calendarRightPaddingYear: string;
|
|
179
185
|
};
|
|
180
186
|
peers: {
|
|
181
187
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -252,20 +258,30 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
|
|
|
252
258
|
fontSizeMedium: string;
|
|
253
259
|
fontSizeLarge: string;
|
|
254
260
|
opacityDisabled: string;
|
|
261
|
+
colorOpacitySecondary: number;
|
|
262
|
+
colorOpacitySecondaryHover: number;
|
|
263
|
+
colorOpacitySecondaryPressed: number;
|
|
264
|
+
colorSecondary: string;
|
|
265
|
+
colorSecondaryHover: string;
|
|
266
|
+
colorSecondaryPressed: string;
|
|
267
|
+
colorTertiary: string;
|
|
268
|
+
colorTertiaryHover: string;
|
|
269
|
+
colorTertiaryPressed: string;
|
|
270
|
+
colorQuaternary: string;
|
|
271
|
+
colorQuaternaryHover: string;
|
|
272
|
+
colorQuaternaryPressed: string;
|
|
255
273
|
color: string;
|
|
256
274
|
colorHover: string;
|
|
257
275
|
colorPressed: string;
|
|
258
276
|
colorFocus: string;
|
|
259
277
|
colorDisabled: string;
|
|
260
278
|
textColor: string;
|
|
279
|
+
textColorTertiary: string;
|
|
261
280
|
textColorHover: string;
|
|
262
281
|
textColorPressed: string;
|
|
263
282
|
textColorFocus: string;
|
|
264
283
|
textColorDisabled: string;
|
|
265
284
|
textColorText: string;
|
|
266
|
-
textColorTextDepth1: string;
|
|
267
|
-
textColorTextDepth2: string;
|
|
268
|
-
textColorTextDepth3: string;
|
|
269
285
|
textColorTextHover: string;
|
|
270
286
|
textColorTextPressed: string;
|
|
271
287
|
textColorTextFocus: string;
|
|
@@ -412,9 +428,8 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
|
|
|
412
428
|
borderDisabledError: string;
|
|
413
429
|
rippleColorError: string;
|
|
414
430
|
waveOpacity: string;
|
|
415
|
-
fontWeightText: string;
|
|
416
431
|
fontWeight: string;
|
|
417
|
-
|
|
432
|
+
fontWeightStrong: string;
|
|
418
433
|
paddingTiny: string;
|
|
419
434
|
paddingSmall: string;
|
|
420
435
|
paddingMedium: string;
|
|
@@ -468,20 +483,30 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
|
|
|
468
483
|
fontSizeMedium: string;
|
|
469
484
|
fontSizeLarge: string;
|
|
470
485
|
opacityDisabled: string;
|
|
486
|
+
colorOpacitySecondary: number;
|
|
487
|
+
colorOpacitySecondaryHover: number;
|
|
488
|
+
colorOpacitySecondaryPressed: number;
|
|
489
|
+
colorSecondary: string;
|
|
490
|
+
colorSecondaryHover: string;
|
|
491
|
+
colorSecondaryPressed: string;
|
|
492
|
+
colorTertiary: string;
|
|
493
|
+
colorTertiaryHover: string;
|
|
494
|
+
colorTertiaryPressed: string;
|
|
495
|
+
colorQuaternary: string;
|
|
496
|
+
colorQuaternaryHover: string;
|
|
497
|
+
colorQuaternaryPressed: string;
|
|
471
498
|
color: string;
|
|
472
499
|
colorHover: string;
|
|
473
500
|
colorPressed: string;
|
|
474
501
|
colorFocus: string;
|
|
475
502
|
colorDisabled: string;
|
|
476
503
|
textColor: string;
|
|
504
|
+
textColorTertiary: string;
|
|
477
505
|
textColorHover: string;
|
|
478
506
|
textColorPressed: string;
|
|
479
507
|
textColorFocus: string;
|
|
480
508
|
textColorDisabled: string;
|
|
481
509
|
textColorText: string;
|
|
482
|
-
textColorTextDepth1: string;
|
|
483
|
-
textColorTextDepth2: string;
|
|
484
|
-
textColorTextDepth3: string;
|
|
485
510
|
textColorTextHover: string;
|
|
486
511
|
textColorTextPressed: string;
|
|
487
512
|
textColorTextFocus: string;
|
|
@@ -628,9 +653,8 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
|
|
|
628
653
|
borderDisabledError: string;
|
|
629
654
|
rippleColorError: string;
|
|
630
655
|
waveOpacity: string;
|
|
631
|
-
fontWeightText: string;
|
|
632
656
|
fontWeight: string;
|
|
633
|
-
|
|
657
|
+
fontWeightStrong: string;
|
|
634
658
|
paddingTiny: string;
|
|
635
659
|
paddingSmall: string;
|
|
636
660
|
paddingMedium: string;
|
|
@@ -746,20 +770,30 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
|
|
|
746
770
|
fontSizeMedium: string;
|
|
747
771
|
fontSizeLarge: string;
|
|
748
772
|
opacityDisabled: string;
|
|
773
|
+
colorOpacitySecondary: number;
|
|
774
|
+
colorOpacitySecondaryHover: number;
|
|
775
|
+
colorOpacitySecondaryPressed: number;
|
|
776
|
+
colorSecondary: string;
|
|
777
|
+
colorSecondaryHover: string;
|
|
778
|
+
colorSecondaryPressed: string;
|
|
779
|
+
colorTertiary: string;
|
|
780
|
+
colorTertiaryHover: string;
|
|
781
|
+
colorTertiaryPressed: string;
|
|
782
|
+
colorQuaternary: string;
|
|
783
|
+
colorQuaternaryHover: string;
|
|
784
|
+
colorQuaternaryPressed: string;
|
|
749
785
|
color: string;
|
|
750
786
|
colorHover: string;
|
|
751
787
|
colorPressed: string;
|
|
752
788
|
colorFocus: string;
|
|
753
789
|
colorDisabled: string;
|
|
754
790
|
textColor: string;
|
|
791
|
+
textColorTertiary: string;
|
|
755
792
|
textColorHover: string;
|
|
756
793
|
textColorPressed: string;
|
|
757
794
|
textColorFocus: string;
|
|
758
795
|
textColorDisabled: string;
|
|
759
796
|
textColorText: string;
|
|
760
|
-
textColorTextDepth1: string;
|
|
761
|
-
textColorTextDepth2: string;
|
|
762
|
-
textColorTextDepth3: string;
|
|
763
797
|
textColorTextHover: string;
|
|
764
798
|
textColorTextPressed: string;
|
|
765
799
|
textColorTextFocus: string;
|
|
@@ -906,9 +940,8 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
|
|
|
906
940
|
borderDisabledError: string;
|
|
907
941
|
rippleColorError: string;
|
|
908
942
|
waveOpacity: string;
|
|
909
|
-
fontWeightText: string;
|
|
910
943
|
fontWeight: string;
|
|
911
|
-
|
|
944
|
+
fontWeightStrong: string;
|
|
912
945
|
paddingTiny: string;
|
|
913
946
|
paddingSmall: string;
|
|
914
947
|
paddingMedium: string;
|
|
@@ -17,10 +17,12 @@ declare const _default: {
|
|
|
17
17
|
calendarLeftPaddingDaterange: string;
|
|
18
18
|
calendarLeftPaddingDatetimerange: string;
|
|
19
19
|
calendarLeftPaddingMonth: string;
|
|
20
|
+
calendarLeftPaddingYear: string;
|
|
20
21
|
calendarRightPaddingDate: string;
|
|
21
22
|
calendarRightPaddingDatetime: string;
|
|
22
23
|
calendarRightPaddingDaterange: string;
|
|
23
24
|
calendarRightPaddingDatetimerange: string;
|
|
24
25
|
calendarRightPaddingMonth: string;
|
|
26
|
+
calendarRightPaddingYear: string;
|
|
25
27
|
};
|
|
26
28
|
export default _default;
|
|
@@ -18,9 +18,11 @@ export default {
|
|
|
18
18
|
calendarLeftPaddingDaterange: '6px 12px 4px 12px',
|
|
19
19
|
calendarLeftPaddingDatetimerange: '4px 12px',
|
|
20
20
|
calendarLeftPaddingMonth: '0',
|
|
21
|
+
calendarLeftPaddingYear: '0',
|
|
21
22
|
calendarRightPaddingDate: '6px 12px 4px 12px',
|
|
22
23
|
calendarRightPaddingDatetime: '4px 12px',
|
|
23
24
|
calendarRightPaddingDaterange: '6px 12px 4px 12px',
|
|
24
25
|
calendarRightPaddingDatetimerange: '4px 12px',
|
|
25
|
-
calendarRightPaddingMonth: '0'
|
|
26
|
+
calendarRightPaddingMonth: '0',
|
|
27
|
+
calendarRightPaddingYear: '0'
|
|
26
28
|
};
|