naive-ui 2.20.0 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_internal/select-menu/src/SelectMenu.d.ts +4 -1
- package/es/_internal/selection/src/Selection.d.ts +4 -1
- package/es/_internal/suffix/src/Suffix.d.ts +5 -2
- package/es/_internal/suffix/src/Suffix.js +4 -1
- package/es/_styles/common/dark.js +1 -1
- package/es/_styles/common/light.d.ts +3 -0
- package/es/_styles/common/light.js +5 -2
- package/es/_styles/global/index.cssr.js +9 -4
- package/es/_styles/transitions/icon-switch.cssr.js +6 -2
- package/es/_utils/naive/extract-public-props.d.ts +1 -1
- package/es/alert/src/Alert.d.ts +3 -0
- package/es/alert/src/Alert.js +3 -3
- package/es/auto-complete/src/AutoComplete.d.ts +8 -1
- package/es/auto-complete/src/AutoComplete.js +2 -2
- package/es/avatar/src/Avatar.d.ts +8 -1
- package/es/avatar/src/Avatar.js +41 -9
- package/es/avatar/src/styles/index.cssr.js +2 -2
- package/es/button/src/Button.d.ts +149 -52
- package/es/button/src/Button.js +131 -58
- package/es/button/src/interface.d.ts +1 -1
- package/es/button/src/styles/button.cssr.js +1 -0
- package/es/button/styles/dark.js +3 -0
- package/es/button/styles/light.d.ts +14 -5
- package/es/button/styles/light.js +10 -3
- package/es/calendar/src/Calendar.d.ts +143 -50
- package/es/calendar/styles/light.d.ts +14 -5
- package/es/card/src/Card.d.ts +3 -0
- package/es/cascader/src/Cascader.d.ts +3 -0
- package/es/cascader/src/Cascader.js +2 -2
- package/es/cascader/src/CascaderOption.d.ts +3 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +3 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +3 -0
- package/es/checkbox/src/Checkbox.d.ts +8 -5
- package/es/checkbox/src/Checkbox.js +8 -9
- package/es/collapse/src/Collapse.d.ts +3 -0
- package/es/color-picker/src/ColorInputUnit.d.ts +17 -5
- package/es/color-picker/src/ColorPicker.d.ts +126 -45
- package/es/color-picker/styles/light.d.ts +14 -5
- package/es/data-table/src/DataTable.d.ts +183 -51
- package/es/data-table/src/DataTable.js +11 -6
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +20 -5
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +20 -5
- package/es/data-table/src/TableParts/Body.d.ts +25 -6
- package/es/data-table/src/TableParts/Body.js +60 -22
- package/es/data-table/src/TableParts/BodyCheckbox.js +1 -1
- package/es/data-table/src/TableParts/Cell.d.ts +40 -10
- package/es/data-table/src/TableParts/Header.d.ts +20 -5
- package/es/data-table/src/TableParts/Header.js +1 -1
- package/es/data-table/src/interface.d.ts +4 -1
- package/es/data-table/src/styles/index.cssr.js +8 -9
- package/es/data-table/styles/light.d.ts +20 -5
- package/es/data-table/styles/light.js +3 -3
- package/es/date-picker/src/DatePicker.d.ts +328 -127
- package/es/date-picker/src/DatePicker.js +7 -17
- package/es/date-picker/src/config.d.ts +9 -0
- package/es/date-picker/src/config.js +8 -0
- package/es/date-picker/src/panel/date.d.ts +51 -19
- package/es/date-picker/src/panel/daterange.d.ts +49 -17
- package/es/date-picker/src/panel/datetime.d.ts +51 -19
- package/es/date-picker/src/panel/datetimerange.d.ts +49 -17
- package/es/date-picker/src/panel/month.d.ts +86 -60
- package/es/date-picker/src/panel/month.js +9 -6
- package/es/date-picker/src/panel/use-calendar.d.ts +59 -27
- package/es/date-picker/src/panel/use-calendar.js +7 -2
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +47 -15
- package/es/date-picker/src/panel/use-panel-common.d.ts +47 -15
- package/es/date-picker/styles/_common.d.ts +2 -0
- package/es/date-picker/styles/_common.js +3 -1
- package/es/date-picker/styles/light.d.ts +32 -10
- package/es/dialog/src/Dialog.d.ts +104 -38
- package/es/dialog/src/DialogEnvironment.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +2 -2
- package/es/dialog/styles/light.d.ts +14 -5
- package/es/drawer/src/Drawer.d.ts +3 -0
- package/es/drawer/src/DrawerBodyWrapper.d.ts +3 -0
- package/es/drawer/src/DrawerContent.d.ts +3 -0
- package/es/dropdown/index.d.ts +1 -1
- package/es/dropdown/src/Dropdown.d.ts +5 -2
- package/es/dropdown/src/DropdownGroup.d.ts +2 -3
- package/es/dropdown/src/DropdownMenu.d.ts +3 -4
- package/es/dropdown/src/DropdownMenu.js +5 -4
- package/es/dropdown/src/DropdownOption.d.ts +3 -4
- package/es/dropdown/src/DropdownOption.js +2 -2
- package/es/dropdown/src/DropdownRenderOption.d.ts +2 -3
- package/es/dropdown/src/interface.d.ts +9 -30
- package/es/dropdown/src/utils.d.ts +1 -0
- package/es/dropdown/src/utils.js +10 -0
- package/es/dynamic-input/src/DynamicInput.d.ts +143 -50
- package/es/dynamic-input/src/InputPreset.d.ts +17 -5
- package/es/dynamic-input/src/PairPreset.d.ts +17 -5
- package/es/dynamic-input/styles/light.d.ts +14 -5
- package/es/dynamic-tags/src/DynamicTags.d.ts +144 -50
- package/es/dynamic-tags/styles/light.d.ts +14 -5
- package/es/ellipsis/src/Ellipsis.d.ts +3 -0
- package/es/form/src/FormItemGridItem.d.ts +2 -2
- package/es/global-style/src/GlobalStyle.js +2 -0
- package/es/grid/src/Grid.js +1 -0
- package/es/grid/src/GridItem.d.ts +2 -2
- package/es/image/src/ImagePreview.js +3 -2
- package/es/image/src/icons.d.ts +1 -0
- package/es/image/src/icons.js +2 -0
- package/es/input/src/Input.d.ts +4 -0
- package/es/input/src/Input.js +9 -3
- package/es/input/src/interface.d.ts +1 -0
- package/es/input-number/src/InputNumber.d.ts +144 -50
- package/es/input-number/styles/light.d.ts +14 -5
- package/es/layout/src/Layout.d.ts +6 -0
- package/es/layout/src/LayoutContent.d.ts +3 -0
- package/es/layout/src/LayoutSider.d.ts +3 -0
- package/es/locales/common/deDE.d.ts +3 -0
- package/es/locales/common/deDE.js +93 -0
- package/es/locales/common/nbNO.d.ts +3 -0
- package/es/locales/common/nbNO.js +93 -0
- package/es/locales/date/deDE.d.ts +3 -0
- package/es/locales/date/deDE.js +6 -0
- package/es/locales/date/nbNO.d.ts +3 -0
- package/es/locales/date/nbNO.js +6 -0
- package/es/locales/index.d.ts +6 -0
- package/es/locales/index.js +5 -0
- package/es/locales/utils/index.d.ts +8 -0
- package/es/locales/utils/index.js +4 -0
- package/es/log/src/Log.d.ts +3 -0
- package/es/mention/src/Mention.d.ts +4 -0
- package/es/menu/index.d.ts +1 -1
- package/es/menu/src/Menu.d.ts +32 -8
- package/es/menu/src/Menu.js +32 -10
- package/es/menu/src/MenuDivider.d.ts +2 -0
- package/es/menu/src/MenuDivider.js +11 -0
- package/es/menu/src/MenuOption.d.ts +11 -2
- package/es/menu/src/MenuOptionContent.d.ts +7 -2
- package/es/menu/src/Submenu.d.ts +21 -17
- package/es/menu/src/interface.d.ts +23 -4
- package/es/menu/src/styles/index.cssr.js +6 -1
- package/es/menu/src/utils.d.ts +4 -2
- package/es/menu/src/utils.js +16 -2
- package/es/menu/styles/light.d.ts +2 -0
- package/es/menu/styles/light.js +3 -2
- package/es/modal/src/BodyWrapper.d.ts +33 -12
- package/es/modal/src/BodyWrapper.js +6 -0
- package/es/modal/src/Modal.d.ts +185 -65
- package/es/modal/src/Modal.js +5 -1
- package/es/modal/src/interface.d.ts +1 -0
- package/es/modal/src/presetProps.d.ts +1 -1
- package/es/modal/styles/light.d.ts +14 -5
- package/es/notification/src/NotificationContainer.d.ts +3 -0
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +20 -12
- package/es/pagination/src/Pagination.js +16 -6
- package/es/pagination/src/interface.d.ts +2 -0
- package/es/popconfirm/src/Popconfirm.d.ts +145 -52
- package/es/popconfirm/src/PopconfirmPanel.d.ts +2 -2
- package/es/popconfirm/styles/light.d.ts +14 -5
- package/es/popselect/src/Popselect.d.ts +3 -0
- package/es/popselect/src/PopselectPanel.d.ts +3 -0
- package/es/radio/src/Radio.d.ts +3 -0
- package/es/radio/src/RadioButton.d.ts +3 -0
- package/es/radio/src/use-radio.d.ts +2 -0
- package/es/radio/src/use-radio.js +6 -3
- package/es/select/src/Select.d.ts +9 -2
- package/es/select/src/Select.js +20 -14
- package/es/slider/src/Slider.d.ts +70 -91
- package/es/slider/src/Slider.js +326 -583
- package/es/slider/src/interface.d.ts +1 -1
- package/es/slider/src/styles/index.cssr.js +86 -16
- package/es/slider/src/utils.d.ts +10 -1
- package/es/slider/src/utils.js +9 -0
- package/es/slider/styles/_common.d.ts +1 -0
- package/es/slider/styles/_common.js +1 -0
- package/es/slider/styles/light.d.ts +1 -0
- package/es/space/src/Space.js +2 -0
- package/es/steps/src/Step.js +1 -1
- package/es/table/src/Table.d.ts +35 -0
- package/es/table/src/Table.js +8 -4
- package/es/table/src/styles/index.cssr.js +1 -1
- package/es/table/styles/light.d.ts +3 -0
- package/es/table/styles/light.js +2 -2
- package/es/tabs/index.d.ts +2 -0
- package/es/tabs/index.js +1 -0
- package/es/tabs/src/Tab.d.ts +35 -18
- package/es/tabs/src/Tab.js +14 -17
- package/es/tabs/src/TabPane.d.ts +1 -0
- package/es/tabs/src/TabPane.js +2 -1
- package/es/tabs/src/Tabs.d.ts +4 -0
- package/es/tabs/src/Tabs.js +65 -21
- package/es/tabs/src/interface.d.ts +3 -2
- package/es/tag/src/Tag.d.ts +8 -3
- package/es/tag/src/Tag.js +10 -2
- package/es/tag/src/styles/index.cssr.js +10 -5
- package/es/tag/src/styles/rtl.cssr.js +7 -1
- package/es/theme-editor/src/ThemeEditor.d.ts +3 -0
- package/es/time-picker/src/Panel.d.ts +17 -5
- package/es/time-picker/src/TimePicker.d.ts +144 -50
- package/es/time-picker/src/TimePicker.js +3 -0
- package/es/time-picker/styles/light.d.ts +14 -5
- package/es/tooltip/src/Tooltip.d.ts +3 -0
- package/es/transfer/src/Transfer.d.ts +145 -52
- package/es/transfer/src/TransferFilter.d.ts +17 -5
- package/es/transfer/src/TransferList.d.ts +17 -5
- package/es/transfer/src/TransferListItem.d.ts +17 -5
- package/es/transfer/styles/light.d.ts +14 -5
- package/es/tree/src/Tree.d.ts +13 -9
- package/es/tree/src/Tree.js +59 -23
- package/es/tree/src/TreeNode.js +4 -4
- package/es/tree/src/TreeNodeCheckbox.d.ts +3 -0
- package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/es/tree/src/interface.d.ts +1 -1
- package/es/tree/src/utils.d.ts +1 -1
- package/es/tree/src/utils.js +4 -4
- package/es/tree-select/src/TreeSelect.d.ts +5 -2
- package/es/upload/src/Upload.d.ts +146 -52
- package/es/upload/src/Upload.js +6 -10
- package/es/upload/src/UploadFile.d.ts +18 -6
- package/es/upload/src/UploadFile.js +1 -1
- package/es/upload/src/UploadProgress.d.ts +17 -5
- package/es/upload/src/UploadTrigger.js +2 -2
- package/es/upload/src/interface.d.ts +2 -1
- package/es/upload/styles/light.d.ts +14 -5
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +4 -1
- package/lib/_internal/selection/src/Selection.d.ts +4 -1
- package/lib/_internal/suffix/src/Suffix.d.ts +5 -2
- package/lib/_internal/suffix/src/Suffix.js +4 -1
- package/lib/_styles/common/dark.js +1 -1
- package/lib/_styles/common/light.d.ts +3 -0
- package/lib/_styles/common/light.js +5 -2
- package/lib/_styles/global/index.cssr.js +10 -5
- package/lib/_styles/transitions/icon-switch.cssr.js +7 -2
- package/lib/_utils/naive/extract-public-props.d.ts +1 -1
- package/lib/alert/src/Alert.d.ts +3 -0
- package/lib/alert/src/Alert.js +3 -3
- package/lib/auto-complete/src/AutoComplete.d.ts +8 -1
- package/lib/auto-complete/src/AutoComplete.js +2 -2
- package/lib/avatar/src/Avatar.d.ts +8 -1
- package/lib/avatar/src/Avatar.js +40 -8
- package/lib/avatar/src/styles/index.cssr.js +2 -2
- package/lib/button/src/Button.d.ts +149 -52
- package/lib/button/src/Button.js +129 -56
- package/lib/button/src/interface.d.ts +1 -1
- package/lib/button/src/styles/button.cssr.js +1 -0
- package/lib/button/styles/dark.js +3 -0
- package/lib/button/styles/light.d.ts +14 -5
- package/lib/button/styles/light.js +10 -3
- package/lib/calendar/src/Calendar.d.ts +143 -50
- package/lib/calendar/styles/light.d.ts +14 -5
- package/lib/card/src/Card.d.ts +3 -0
- package/lib/cascader/src/Cascader.d.ts +3 -0
- package/lib/cascader/src/Cascader.js +2 -2
- package/lib/cascader/src/CascaderOption.d.ts +3 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +3 -0
- package/lib/checkbox/src/Checkbox.d.ts +8 -5
- package/lib/checkbox/src/Checkbox.js +8 -9
- package/lib/collapse/src/Collapse.d.ts +3 -0
- package/lib/color-picker/src/ColorInputUnit.d.ts +17 -5
- package/lib/color-picker/src/ColorPicker.d.ts +126 -45
- package/lib/color-picker/styles/light.d.ts +14 -5
- package/lib/data-table/src/DataTable.d.ts +183 -51
- package/lib/data-table/src/DataTable.js +11 -6
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +20 -5
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +20 -5
- package/lib/data-table/src/TableParts/Body.d.ts +25 -6
- package/lib/data-table/src/TableParts/Body.js +60 -22
- package/lib/data-table/src/TableParts/BodyCheckbox.js +1 -1
- package/lib/data-table/src/TableParts/Cell.d.ts +40 -10
- package/lib/data-table/src/TableParts/Header.d.ts +20 -5
- package/lib/data-table/src/TableParts/Header.js +1 -1
- package/lib/data-table/src/interface.d.ts +4 -1
- package/lib/data-table/src/styles/index.cssr.js +8 -9
- package/lib/data-table/styles/light.d.ts +20 -5
- package/lib/data-table/styles/light.js +3 -3
- package/lib/date-picker/src/DatePicker.d.ts +328 -127
- package/lib/date-picker/src/DatePicker.js +7 -17
- package/lib/date-picker/src/config.d.ts +9 -0
- package/lib/date-picker/src/config.js +9 -1
- package/lib/date-picker/src/panel/date.d.ts +51 -19
- package/lib/date-picker/src/panel/daterange.d.ts +49 -17
- package/lib/date-picker/src/panel/datetime.d.ts +51 -19
- package/lib/date-picker/src/panel/datetimerange.d.ts +49 -17
- package/lib/date-picker/src/panel/month.d.ts +86 -60
- package/lib/date-picker/src/panel/month.js +9 -6
- package/lib/date-picker/src/panel/use-calendar.d.ts +59 -27
- package/lib/date-picker/src/panel/use-calendar.js +6 -1
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +47 -15
- package/lib/date-picker/src/panel/use-panel-common.d.ts +47 -15
- package/lib/date-picker/styles/_common.d.ts +2 -0
- package/lib/date-picker/styles/_common.js +3 -1
- package/lib/date-picker/styles/light.d.ts +32 -10
- package/lib/dialog/src/Dialog.d.ts +104 -38
- package/lib/dialog/src/DialogEnvironment.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +2 -2
- package/lib/dialog/styles/light.d.ts +14 -5
- package/lib/drawer/src/Drawer.d.ts +3 -0
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +3 -0
- package/lib/drawer/src/DrawerContent.d.ts +3 -0
- package/lib/dropdown/index.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +5 -2
- package/lib/dropdown/src/DropdownGroup.d.ts +2 -3
- package/lib/dropdown/src/DropdownMenu.d.ts +3 -4
- package/lib/dropdown/src/DropdownMenu.js +5 -4
- package/lib/dropdown/src/DropdownOption.d.ts +3 -4
- package/lib/dropdown/src/DropdownOption.js +1 -1
- package/lib/dropdown/src/DropdownRenderOption.d.ts +2 -3
- package/lib/dropdown/src/interface.d.ts +9 -30
- package/lib/dropdown/src/utils.d.ts +1 -0
- package/lib/dropdown/src/utils.js +12 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +143 -50
- package/lib/dynamic-input/src/InputPreset.d.ts +17 -5
- package/lib/dynamic-input/src/PairPreset.d.ts +17 -5
- package/lib/dynamic-input/styles/light.d.ts +14 -5
- package/lib/dynamic-tags/src/DynamicTags.d.ts +144 -50
- package/lib/dynamic-tags/styles/light.d.ts +14 -5
- package/lib/ellipsis/src/Ellipsis.d.ts +3 -0
- package/lib/form/src/FormItemGridItem.d.ts +2 -2
- package/lib/global-style/src/GlobalStyle.js +2 -0
- package/lib/grid/src/Grid.js +1 -0
- package/lib/grid/src/GridItem.d.ts +2 -2
- package/lib/image/src/ImagePreview.js +2 -1
- package/lib/image/src/icons.d.ts +1 -0
- package/lib/image/src/icons.js +3 -1
- package/lib/input/src/Input.d.ts +4 -0
- package/lib/input/src/Input.js +9 -3
- package/lib/input/src/interface.d.ts +1 -0
- package/lib/input-number/src/InputNumber.d.ts +144 -50
- package/lib/input-number/styles/light.d.ts +14 -5
- package/lib/layout/src/Layout.d.ts +6 -0
- package/lib/layout/src/LayoutContent.d.ts +3 -0
- package/lib/layout/src/LayoutSider.d.ts +3 -0
- package/lib/locales/common/deDE.d.ts +3 -0
- package/lib/locales/common/deDE.js +95 -0
- package/lib/locales/common/nbNO.d.ts +3 -0
- package/lib/locales/common/nbNO.js +95 -0
- package/lib/locales/date/deDE.d.ts +3 -0
- package/lib/locales/date/deDE.js +11 -0
- package/lib/locales/date/nbNO.d.ts +3 -0
- package/lib/locales/date/nbNO.js +11 -0
- package/lib/locales/index.d.ts +6 -0
- package/lib/locales/index.js +11 -1
- package/lib/locales/utils/index.d.ts +8 -0
- package/lib/locales/utils/index.js +8 -0
- package/lib/log/src/Log.d.ts +3 -0
- package/lib/mention/src/Mention.d.ts +4 -0
- package/lib/menu/index.d.ts +1 -1
- package/lib/menu/src/Menu.d.ts +32 -8
- package/lib/menu/src/Menu.js +31 -9
- package/lib/menu/src/MenuDivider.d.ts +2 -0
- package/lib/menu/src/MenuDivider.js +13 -0
- package/lib/menu/src/MenuOption.d.ts +11 -2
- package/lib/menu/src/MenuOptionContent.d.ts +7 -2
- package/lib/menu/src/Submenu.d.ts +21 -17
- package/lib/menu/src/interface.d.ts +23 -4
- package/lib/menu/src/styles/index.cssr.js +6 -1
- package/lib/menu/src/utils.d.ts +4 -2
- package/lib/menu/src/utils.js +22 -3
- package/lib/menu/styles/light.d.ts +2 -0
- package/lib/menu/styles/light.js +3 -2
- package/lib/modal/src/BodyWrapper.d.ts +33 -12
- package/lib/modal/src/BodyWrapper.js +6 -0
- package/lib/modal/src/Modal.d.ts +185 -65
- package/lib/modal/src/Modal.js +5 -1
- package/lib/modal/src/interface.d.ts +1 -0
- package/lib/modal/src/presetProps.d.ts +1 -1
- package/lib/modal/styles/light.d.ts +14 -5
- package/lib/notification/src/NotificationContainer.d.ts +3 -0
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +20 -12
- package/lib/pagination/src/Pagination.js +16 -6
- package/lib/pagination/src/interface.d.ts +2 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +145 -52
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +2 -2
- package/lib/popconfirm/styles/light.d.ts +14 -5
- package/lib/popselect/src/Popselect.d.ts +3 -0
- package/lib/popselect/src/PopselectPanel.d.ts +3 -0
- package/lib/radio/src/Radio.d.ts +3 -0
- package/lib/radio/src/RadioButton.d.ts +3 -0
- package/lib/radio/src/use-radio.d.ts +2 -0
- package/lib/radio/src/use-radio.js +6 -3
- package/lib/select/src/Select.d.ts +9 -2
- package/lib/select/src/Select.js +20 -14
- package/lib/slider/src/Slider.d.ts +70 -91
- package/lib/slider/src/Slider.js +324 -581
- package/lib/slider/src/interface.d.ts +1 -1
- package/lib/slider/src/styles/index.cssr.js +86 -16
- package/lib/slider/src/utils.d.ts +10 -1
- package/lib/slider/src/utils.js +11 -1
- package/lib/slider/styles/_common.d.ts +1 -0
- package/lib/slider/styles/_common.js +1 -0
- package/lib/slider/styles/light.d.ts +1 -0
- package/lib/space/src/Space.js +2 -0
- package/lib/steps/src/Step.js +1 -1
- package/lib/table/src/Table.d.ts +35 -0
- package/lib/table/src/Table.js +8 -4
- package/lib/table/src/styles/index.cssr.js +1 -1
- package/lib/table/styles/light.d.ts +3 -0
- package/lib/table/styles/light.js +2 -2
- package/lib/tabs/index.d.ts +2 -0
- package/lib/tabs/index.js +3 -1
- package/lib/tabs/src/Tab.d.ts +35 -18
- package/lib/tabs/src/Tab.js +13 -16
- package/lib/tabs/src/TabPane.d.ts +1 -0
- package/lib/tabs/src/TabPane.js +2 -1
- package/lib/tabs/src/Tabs.d.ts +4 -0
- package/lib/tabs/src/Tabs.js +64 -20
- package/lib/tabs/src/interface.d.ts +3 -2
- package/lib/tag/src/Tag.d.ts +8 -3
- package/lib/tag/src/Tag.js +10 -1
- package/lib/tag/src/styles/index.cssr.js +10 -5
- package/lib/tag/src/styles/rtl.cssr.js +7 -1
- package/lib/theme-editor/src/ThemeEditor.d.ts +3 -0
- package/lib/time-picker/src/Panel.d.ts +17 -5
- package/lib/time-picker/src/TimePicker.d.ts +144 -50
- package/lib/time-picker/src/TimePicker.js +3 -0
- package/lib/time-picker/styles/light.d.ts +14 -5
- package/lib/tooltip/src/Tooltip.d.ts +3 -0
- package/lib/transfer/src/Transfer.d.ts +145 -52
- package/lib/transfer/src/TransferFilter.d.ts +17 -5
- package/lib/transfer/src/TransferList.d.ts +17 -5
- package/lib/transfer/src/TransferListItem.d.ts +17 -5
- package/lib/transfer/styles/light.d.ts +14 -5
- package/lib/tree/src/Tree.d.ts +13 -9
- package/lib/tree/src/Tree.js +58 -22
- package/lib/tree/src/TreeNode.js +4 -4
- package/lib/tree/src/TreeNodeCheckbox.d.ts +3 -0
- package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/lib/tree/src/interface.d.ts +1 -1
- package/lib/tree/src/utils.d.ts +1 -1
- package/lib/tree/src/utils.js +4 -4
- package/lib/tree-select/src/TreeSelect.d.ts +5 -2
- package/lib/upload/src/Upload.d.ts +146 -52
- package/lib/upload/src/Upload.js +6 -10
- package/lib/upload/src/UploadFile.d.ts +18 -6
- package/lib/upload/src/UploadFile.js +1 -1
- package/lib/upload/src/UploadProgress.d.ts +17 -5
- package/lib/upload/src/UploadTrigger.js +2 -2
- package/lib/upload/src/interface.d.ts +2 -1
- package/lib/upload/styles/light.d.ts +14 -5
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +5 -5
- package/web-types.json +182 -9
|
@@ -128,6 +128,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
128
128
|
pressedColor: string;
|
|
129
129
|
opacityDisabled: string;
|
|
130
130
|
inputColorDisabled: string;
|
|
131
|
+
buttonColor2: string;
|
|
132
|
+
buttonColor2Hover: string;
|
|
133
|
+
buttonColor2Pressed: string;
|
|
131
134
|
boxShadow1: string;
|
|
132
135
|
boxShadow2: string;
|
|
133
136
|
boxShadow3: string;
|
|
@@ -201,11 +204,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
201
204
|
calendarLeftPaddingDaterange: string;
|
|
202
205
|
calendarLeftPaddingDatetimerange: string;
|
|
203
206
|
calendarLeftPaddingMonth: string;
|
|
207
|
+
calendarLeftPaddingYear: string;
|
|
204
208
|
calendarRightPaddingDate: string;
|
|
205
209
|
calendarRightPaddingDatetime: string;
|
|
206
210
|
calendarRightPaddingDaterange: string;
|
|
207
211
|
calendarRightPaddingDatetimerange: string;
|
|
208
212
|
calendarRightPaddingMonth: string;
|
|
213
|
+
calendarRightPaddingYear: string;
|
|
209
214
|
};
|
|
210
215
|
peers: {
|
|
211
216
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -282,20 +287,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
282
287
|
fontSizeMedium: string;
|
|
283
288
|
fontSizeLarge: string;
|
|
284
289
|
opacityDisabled: string;
|
|
290
|
+
colorOpacitySecondary: number;
|
|
291
|
+
colorOpacitySecondaryHover: number;
|
|
292
|
+
colorOpacitySecondaryPressed: number;
|
|
293
|
+
colorSecondary: string;
|
|
294
|
+
colorSecondaryHover: string;
|
|
295
|
+
colorSecondaryPressed: string;
|
|
296
|
+
colorTertiary: string;
|
|
297
|
+
colorTertiaryHover: string;
|
|
298
|
+
colorTertiaryPressed: string;
|
|
299
|
+
colorQuaternary: string;
|
|
300
|
+
colorQuaternaryHover: string;
|
|
301
|
+
colorQuaternaryPressed: string;
|
|
285
302
|
color: string;
|
|
286
303
|
colorHover: string;
|
|
287
304
|
colorPressed: string;
|
|
288
305
|
colorFocus: string;
|
|
289
306
|
colorDisabled: string;
|
|
290
307
|
textColor: string;
|
|
308
|
+
textColorTertiary: string;
|
|
291
309
|
textColorHover: string;
|
|
292
310
|
textColorPressed: string;
|
|
293
311
|
textColorFocus: string;
|
|
294
312
|
textColorDisabled: string;
|
|
295
313
|
textColorText: string;
|
|
296
|
-
textColorTextDepth1: string;
|
|
297
|
-
textColorTextDepth2: string;
|
|
298
|
-
textColorTextDepth3: string;
|
|
299
314
|
textColorTextHover: string;
|
|
300
315
|
textColorTextPressed: string;
|
|
301
316
|
textColorTextFocus: string;
|
|
@@ -442,9 +457,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
442
457
|
borderDisabledError: string;
|
|
443
458
|
rippleColorError: string;
|
|
444
459
|
waveOpacity: string;
|
|
445
|
-
fontWeightText: string;
|
|
446
460
|
fontWeight: string;
|
|
447
|
-
|
|
461
|
+
fontWeightStrong: string;
|
|
448
462
|
paddingTiny: string;
|
|
449
463
|
paddingSmall: string;
|
|
450
464
|
paddingMedium: string;
|
|
@@ -498,20 +512,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
498
512
|
fontSizeMedium: string;
|
|
499
513
|
fontSizeLarge: string;
|
|
500
514
|
opacityDisabled: string;
|
|
515
|
+
colorOpacitySecondary: number;
|
|
516
|
+
colorOpacitySecondaryHover: number;
|
|
517
|
+
colorOpacitySecondaryPressed: number;
|
|
518
|
+
colorSecondary: string;
|
|
519
|
+
colorSecondaryHover: string;
|
|
520
|
+
colorSecondaryPressed: string;
|
|
521
|
+
colorTertiary: string;
|
|
522
|
+
colorTertiaryHover: string;
|
|
523
|
+
colorTertiaryPressed: string;
|
|
524
|
+
colorQuaternary: string;
|
|
525
|
+
colorQuaternaryHover: string;
|
|
526
|
+
colorQuaternaryPressed: string;
|
|
501
527
|
color: string;
|
|
502
528
|
colorHover: string;
|
|
503
529
|
colorPressed: string;
|
|
504
530
|
colorFocus: string;
|
|
505
531
|
colorDisabled: string;
|
|
506
532
|
textColor: string;
|
|
533
|
+
textColorTertiary: string;
|
|
507
534
|
textColorHover: string;
|
|
508
535
|
textColorPressed: string;
|
|
509
536
|
textColorFocus: string;
|
|
510
537
|
textColorDisabled: string;
|
|
511
538
|
textColorText: string;
|
|
512
|
-
textColorTextDepth1: string;
|
|
513
|
-
textColorTextDepth2: string;
|
|
514
|
-
textColorTextDepth3: string;
|
|
515
539
|
textColorTextHover: string;
|
|
516
540
|
textColorTextPressed: string;
|
|
517
541
|
textColorTextFocus: string;
|
|
@@ -658,9 +682,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
658
682
|
borderDisabledError: string;
|
|
659
683
|
rippleColorError: string;
|
|
660
684
|
waveOpacity: string;
|
|
661
|
-
fontWeightText: string;
|
|
662
685
|
fontWeight: string;
|
|
663
|
-
|
|
686
|
+
fontWeightStrong: string;
|
|
664
687
|
paddingTiny: string;
|
|
665
688
|
paddingSmall: string;
|
|
666
689
|
paddingMedium: string;
|
|
@@ -776,20 +799,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
776
799
|
fontSizeMedium: string;
|
|
777
800
|
fontSizeLarge: string;
|
|
778
801
|
opacityDisabled: string;
|
|
802
|
+
colorOpacitySecondary: number;
|
|
803
|
+
colorOpacitySecondaryHover: number;
|
|
804
|
+
colorOpacitySecondaryPressed: number;
|
|
805
|
+
colorSecondary: string;
|
|
806
|
+
colorSecondaryHover: string;
|
|
807
|
+
colorSecondaryPressed: string;
|
|
808
|
+
colorTertiary: string;
|
|
809
|
+
colorTertiaryHover: string;
|
|
810
|
+
colorTertiaryPressed: string;
|
|
811
|
+
colorQuaternary: string;
|
|
812
|
+
colorQuaternaryHover: string;
|
|
813
|
+
colorQuaternaryPressed: string;
|
|
779
814
|
color: string;
|
|
780
815
|
colorHover: string;
|
|
781
816
|
colorPressed: string;
|
|
782
817
|
colorFocus: string;
|
|
783
818
|
colorDisabled: string;
|
|
784
819
|
textColor: string;
|
|
820
|
+
textColorTertiary: string;
|
|
785
821
|
textColorHover: string;
|
|
786
822
|
textColorPressed: string;
|
|
787
823
|
textColorFocus: string;
|
|
788
824
|
textColorDisabled: string;
|
|
789
825
|
textColorText: string;
|
|
790
|
-
textColorTextDepth1: string;
|
|
791
|
-
textColorTextDepth2: string;
|
|
792
|
-
textColorTextDepth3: string;
|
|
793
826
|
textColorTextHover: string;
|
|
794
827
|
textColorTextPressed: string;
|
|
795
828
|
textColorTextFocus: string;
|
|
@@ -936,9 +969,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
936
969
|
borderDisabledError: string;
|
|
937
970
|
rippleColorError: string;
|
|
938
971
|
waveOpacity: string;
|
|
939
|
-
fontWeightText: string;
|
|
940
972
|
fontWeight: string;
|
|
941
|
-
|
|
973
|
+
fontWeightStrong: string;
|
|
942
974
|
paddingTiny: string;
|
|
943
975
|
paddingSmall: string;
|
|
944
976
|
paddingMedium: string;
|
|
@@ -1104,9 +1136,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1104
1136
|
} & {
|
|
1105
1137
|
value: import("../interface").Value | null;
|
|
1106
1138
|
active: boolean;
|
|
1139
|
+
dateFormat: string;
|
|
1107
1140
|
onUpdateValue: import("../interface").OnPanelUpdateValue;
|
|
1108
1141
|
actions: unknown[];
|
|
1109
|
-
dateFormat: string;
|
|
1110
1142
|
timeFormat: string;
|
|
1111
1143
|
} & {
|
|
1112
1144
|
onTabOut?: Function | undefined;
|
|
@@ -1116,8 +1148,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1116
1148
|
}>, {
|
|
1117
1149
|
value: import("../interface").Value | null;
|
|
1118
1150
|
active: boolean;
|
|
1119
|
-
actions: unknown[];
|
|
1120
1151
|
dateFormat: string;
|
|
1152
|
+
actions: unknown[];
|
|
1121
1153
|
timeFormat: string;
|
|
1122
1154
|
}>;
|
|
1123
1155
|
export default _default;
|
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
import { VNode } from 'vue';
|
|
1
|
+
import { VNode, PropType } from 'vue';
|
|
2
2
|
import type { MonthItem, YearItem } from '../utils';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type: {
|
|
5
|
+
type: PropType<"month" | "year">;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
actions: {
|
|
9
|
+
readonly type: PropType<string[]>;
|
|
6
10
|
readonly default: () => string[];
|
|
7
11
|
};
|
|
8
|
-
|
|
9
|
-
|
|
12
|
+
active: BooleanConstructor;
|
|
13
|
+
dateFormat: {
|
|
10
14
|
readonly type: StringConstructor;
|
|
11
15
|
readonly default: "yyyy-MM-dd";
|
|
12
16
|
};
|
|
13
|
-
|
|
17
|
+
timeFormat: {
|
|
14
18
|
readonly type: StringConstructor;
|
|
15
19
|
readonly default: "HH:mm:ss";
|
|
16
20
|
};
|
|
17
|
-
|
|
18
|
-
readonly type:
|
|
21
|
+
value: {
|
|
22
|
+
readonly type: PropType<import("../interface").Value | null>;
|
|
19
23
|
readonly default: null;
|
|
20
24
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
readonly type:
|
|
25
|
+
shortcuts: PropType<import("../interface").Shortcuts>;
|
|
26
|
+
onConfirm: FunctionConstructor;
|
|
27
|
+
onClose: PropType<import("../interface").OnClose>;
|
|
28
|
+
onTabOut: FunctionConstructor;
|
|
29
|
+
onUpdateValue: {
|
|
30
|
+
readonly type: PropType<import("../interface").OnPanelUpdateValue>;
|
|
27
31
|
readonly required: true;
|
|
28
32
|
};
|
|
29
33
|
}, {
|
|
@@ -133,6 +137,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
133
137
|
pressedColor: string;
|
|
134
138
|
opacityDisabled: string;
|
|
135
139
|
inputColorDisabled: string;
|
|
140
|
+
buttonColor2: string;
|
|
141
|
+
buttonColor2Hover: string;
|
|
142
|
+
buttonColor2Pressed: string;
|
|
136
143
|
boxShadow1: string;
|
|
137
144
|
boxShadow2: string;
|
|
138
145
|
boxShadow3: string;
|
|
@@ -141,6 +148,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
141
148
|
fontWeight: string;
|
|
142
149
|
fontWeightStrong: string;
|
|
143
150
|
cubicBezierEaseInOut: string;
|
|
151
|
+
/**
|
|
152
|
+
* Month Panel
|
|
153
|
+
* Update picker value on:
|
|
154
|
+
* 1. item click
|
|
155
|
+
* 2. clear click
|
|
156
|
+
*/
|
|
144
157
|
cubicBezierEaseOut: string;
|
|
145
158
|
cubicBezierEaseIn: string;
|
|
146
159
|
borderRadius: string;
|
|
@@ -206,11 +219,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
206
219
|
calendarLeftPaddingDaterange: string;
|
|
207
220
|
calendarLeftPaddingDatetimerange: string;
|
|
208
221
|
calendarLeftPaddingMonth: string;
|
|
222
|
+
calendarLeftPaddingYear: string;
|
|
209
223
|
calendarRightPaddingDate: string;
|
|
210
224
|
calendarRightPaddingDatetime: string;
|
|
211
225
|
calendarRightPaddingDaterange: string;
|
|
212
226
|
calendarRightPaddingDatetimerange: string;
|
|
213
227
|
calendarRightPaddingMonth: string;
|
|
228
|
+
calendarRightPaddingYear: string;
|
|
214
229
|
};
|
|
215
230
|
peers: {
|
|
216
231
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -287,20 +302,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
287
302
|
fontSizeMedium: string;
|
|
288
303
|
fontSizeLarge: string;
|
|
289
304
|
opacityDisabled: string;
|
|
305
|
+
colorOpacitySecondary: number;
|
|
306
|
+
colorOpacitySecondaryHover: number;
|
|
307
|
+
colorOpacitySecondaryPressed: number;
|
|
308
|
+
colorSecondary: string;
|
|
309
|
+
colorSecondaryHover: string;
|
|
310
|
+
colorSecondaryPressed: string;
|
|
311
|
+
colorTertiary: string;
|
|
312
|
+
colorTertiaryHover: string;
|
|
313
|
+
colorTertiaryPressed: string;
|
|
314
|
+
colorQuaternary: string;
|
|
315
|
+
colorQuaternaryHover: string;
|
|
316
|
+
colorQuaternaryPressed: string;
|
|
290
317
|
color: string;
|
|
291
318
|
colorHover: string;
|
|
292
319
|
colorPressed: string;
|
|
293
320
|
colorFocus: string;
|
|
294
321
|
colorDisabled: string;
|
|
295
322
|
textColor: string;
|
|
323
|
+
textColorTertiary: string;
|
|
296
324
|
textColorHover: string;
|
|
297
325
|
textColorPressed: string;
|
|
298
326
|
textColorFocus: string;
|
|
299
327
|
textColorDisabled: string;
|
|
300
328
|
textColorText: string;
|
|
301
|
-
textColorTextDepth1: string;
|
|
302
|
-
textColorTextDepth2: string;
|
|
303
|
-
textColorTextDepth3: string;
|
|
304
329
|
textColorTextHover: string;
|
|
305
330
|
textColorTextPressed: string;
|
|
306
331
|
textColorTextFocus: string;
|
|
@@ -447,9 +472,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
447
472
|
borderDisabledError: string;
|
|
448
473
|
rippleColorError: string;
|
|
449
474
|
waveOpacity: string;
|
|
450
|
-
fontWeightText: string;
|
|
451
475
|
fontWeight: string;
|
|
452
|
-
|
|
476
|
+
fontWeightStrong: string;
|
|
453
477
|
paddingTiny: string;
|
|
454
478
|
paddingSmall: string;
|
|
455
479
|
paddingMedium: string;
|
|
@@ -462,12 +486,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
462
486
|
iconMarginSmall: string;
|
|
463
487
|
iconMarginMedium: string;
|
|
464
488
|
iconMarginLarge: string;
|
|
465
|
-
/**
|
|
466
|
-
* Month Panel
|
|
467
|
-
* Update picker value on:
|
|
468
|
-
* 1. item click
|
|
469
|
-
* 2. clear click
|
|
470
|
-
*/
|
|
471
489
|
iconSizeTiny: string;
|
|
472
490
|
iconSizeSmall: string;
|
|
473
491
|
iconSizeMedium: string;
|
|
@@ -509,20 +527,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
509
527
|
fontSizeMedium: string;
|
|
510
528
|
fontSizeLarge: string;
|
|
511
529
|
opacityDisabled: string;
|
|
530
|
+
colorOpacitySecondary: number;
|
|
531
|
+
colorOpacitySecondaryHover: number;
|
|
532
|
+
colorOpacitySecondaryPressed: number;
|
|
533
|
+
colorSecondary: string;
|
|
534
|
+
colorSecondaryHover: string;
|
|
535
|
+
colorSecondaryPressed: string;
|
|
536
|
+
colorTertiary: string;
|
|
537
|
+
colorTertiaryHover: string;
|
|
538
|
+
colorTertiaryPressed: string;
|
|
539
|
+
colorQuaternary: string;
|
|
540
|
+
colorQuaternaryHover: string;
|
|
541
|
+
colorQuaternaryPressed: string;
|
|
512
542
|
color: string;
|
|
513
543
|
colorHover: string;
|
|
514
544
|
colorPressed: string;
|
|
515
545
|
colorFocus: string;
|
|
516
546
|
colorDisabled: string;
|
|
517
547
|
textColor: string;
|
|
548
|
+
textColorTertiary: string;
|
|
518
549
|
textColorHover: string;
|
|
519
550
|
textColorPressed: string;
|
|
520
551
|
textColorFocus: string;
|
|
521
552
|
textColorDisabled: string;
|
|
522
553
|
textColorText: string;
|
|
523
|
-
textColorTextDepth1: string;
|
|
524
|
-
textColorTextDepth2: string;
|
|
525
|
-
textColorTextDepth3: string;
|
|
526
554
|
textColorTextHover: string;
|
|
527
555
|
textColorTextPressed: string;
|
|
528
556
|
textColorTextFocus: string;
|
|
@@ -669,9 +697,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
669
697
|
borderDisabledError: string;
|
|
670
698
|
rippleColorError: string;
|
|
671
699
|
waveOpacity: string;
|
|
672
|
-
fontWeightText: string;
|
|
673
700
|
fontWeight: string;
|
|
674
|
-
|
|
701
|
+
fontWeightStrong: string;
|
|
675
702
|
paddingTiny: string;
|
|
676
703
|
paddingSmall: string;
|
|
677
704
|
paddingMedium: string;
|
|
@@ -684,12 +711,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
684
711
|
iconMarginSmall: string;
|
|
685
712
|
iconMarginMedium: string;
|
|
686
713
|
iconMarginLarge: string;
|
|
687
|
-
/**
|
|
688
|
-
* Month Panel
|
|
689
|
-
* Update picker value on:
|
|
690
|
-
* 1. item click
|
|
691
|
-
* 2. clear click
|
|
692
|
-
*/
|
|
693
714
|
iconSizeTiny: string;
|
|
694
715
|
iconSizeSmall: string;
|
|
695
716
|
iconSizeMedium: string;
|
|
@@ -793,20 +814,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
793
814
|
fontSizeMedium: string;
|
|
794
815
|
fontSizeLarge: string;
|
|
795
816
|
opacityDisabled: string;
|
|
817
|
+
colorOpacitySecondary: number;
|
|
818
|
+
colorOpacitySecondaryHover: number;
|
|
819
|
+
colorOpacitySecondaryPressed: number;
|
|
820
|
+
colorSecondary: string;
|
|
821
|
+
colorSecondaryHover: string;
|
|
822
|
+
colorSecondaryPressed: string;
|
|
823
|
+
colorTertiary: string;
|
|
824
|
+
colorTertiaryHover: string;
|
|
825
|
+
colorTertiaryPressed: string;
|
|
826
|
+
colorQuaternary: string;
|
|
827
|
+
colorQuaternaryHover: string;
|
|
828
|
+
colorQuaternaryPressed: string;
|
|
796
829
|
color: string;
|
|
797
830
|
colorHover: string;
|
|
798
831
|
colorPressed: string;
|
|
799
832
|
colorFocus: string;
|
|
800
833
|
colorDisabled: string;
|
|
801
834
|
textColor: string;
|
|
835
|
+
textColorTertiary: string;
|
|
802
836
|
textColorHover: string;
|
|
803
837
|
textColorPressed: string;
|
|
804
838
|
textColorFocus: string;
|
|
805
839
|
textColorDisabled: string;
|
|
806
840
|
textColorText: string;
|
|
807
|
-
textColorTextDepth1: string;
|
|
808
|
-
textColorTextDepth2: string;
|
|
809
|
-
textColorTextDepth3: string;
|
|
810
841
|
textColorTextHover: string;
|
|
811
842
|
textColorTextPressed: string;
|
|
812
843
|
textColorTextFocus: string;
|
|
@@ -953,9 +984,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
953
984
|
borderDisabledError: string;
|
|
954
985
|
rippleColorError: string;
|
|
955
986
|
waveOpacity: string;
|
|
956
|
-
fontWeightText: string;
|
|
957
987
|
fontWeight: string;
|
|
958
|
-
|
|
988
|
+
fontWeightStrong: string;
|
|
959
989
|
paddingTiny: string;
|
|
960
990
|
paddingSmall: string;
|
|
961
991
|
paddingMedium: string;
|
|
@@ -968,12 +998,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
968
998
|
iconMarginSmall: string;
|
|
969
999
|
iconMarginMedium: string;
|
|
970
1000
|
iconMarginLarge: string;
|
|
971
|
-
/**
|
|
972
|
-
* Month Panel
|
|
973
|
-
* Update picker value on:
|
|
974
|
-
* 1. item click
|
|
975
|
-
* 2. clear click
|
|
976
|
-
*/
|
|
977
1001
|
iconSizeTiny: string;
|
|
978
1002
|
iconSizeSmall: string;
|
|
979
1003
|
iconSizeMedium: string;
|
|
@@ -1112,22 +1136,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1112
1136
|
handleSingleShortcutMouseenter: (shortcut: number | [number, number] | (() => number) | (() => [number, number])) => void;
|
|
1113
1137
|
handleSingleShortcutClick: (shortcut: number | [number, number] | (() => number) | (() => [number, number])) => void;
|
|
1114
1138
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1139
|
+
type?: unknown;
|
|
1140
|
+
actions?: unknown;
|
|
1141
|
+
active?: unknown;
|
|
1142
|
+
dateFormat?: unknown;
|
|
1143
|
+
timeFormat?: unknown;
|
|
1144
|
+
value?: unknown;
|
|
1145
|
+
shortcuts?: unknown;
|
|
1146
|
+
onConfirm?: unknown;
|
|
1147
|
+
onClose?: unknown;
|
|
1148
|
+
onTabOut?: unknown;
|
|
1149
|
+
onUpdateValue?: unknown;
|
|
1125
1150
|
} & {
|
|
1151
|
+
type: "month" | "year";
|
|
1126
1152
|
value: import("../interface").Value | null;
|
|
1127
1153
|
active: boolean;
|
|
1128
|
-
onUpdateValue: import("../interface").OnPanelUpdateValue;
|
|
1129
|
-
actions: unknown[];
|
|
1130
1154
|
dateFormat: string;
|
|
1155
|
+
onUpdateValue: import("../interface").OnPanelUpdateValue;
|
|
1156
|
+
actions: string[];
|
|
1131
1157
|
timeFormat: string;
|
|
1132
1158
|
} & {
|
|
1133
1159
|
onTabOut?: Function | undefined;
|
|
@@ -1137,8 +1163,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1137
1163
|
}>, {
|
|
1138
1164
|
value: import("../interface").Value | null;
|
|
1139
1165
|
active: boolean;
|
|
1140
|
-
actions: unknown[];
|
|
1141
1166
|
dateFormat: string;
|
|
1167
|
+
actions: string[];
|
|
1142
1168
|
timeFormat: string;
|
|
1143
1169
|
}>;
|
|
1144
1170
|
/**
|
|
@@ -14,9 +14,12 @@ const config_1 = require("../config");
|
|
|
14
14
|
*/
|
|
15
15
|
exports.default = (0, vue_1.defineComponent)({
|
|
16
16
|
name: 'MonthPanel',
|
|
17
|
-
props: use_calendar_1.useCalendar.props,
|
|
17
|
+
props: Object.assign(Object.assign({}, use_calendar_1.useCalendar.props), { type: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: true
|
|
20
|
+
} }),
|
|
18
21
|
setup(props) {
|
|
19
|
-
const useCalendarRef = (0, use_calendar_1.useCalendar)(props,
|
|
22
|
+
const useCalendarRef = (0, use_calendar_1.useCalendar)(props, props.type);
|
|
20
23
|
const renderItem = (item, i, mergedClsPrefix) => {
|
|
21
24
|
const { mergedIsDateDisabled, handleDateClick } = useCalendarRef;
|
|
22
25
|
return ((0, vue_1.h)("div", { "data-n-date": true, key: i, class: [
|
|
@@ -35,23 +38,23 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
35
38
|
return Object.assign(Object.assign({}, useCalendarRef), { renderItem });
|
|
36
39
|
},
|
|
37
40
|
render() {
|
|
38
|
-
const { mergedClsPrefix, mergedTheme, shortcuts, actions, renderItem } = this;
|
|
41
|
+
const { mergedClsPrefix, mergedTheme, shortcuts, actions, renderItem, type } = this;
|
|
39
42
|
return ((0, vue_1.h)("div", { ref: "selfRef", tabindex: 0, class: `${mergedClsPrefix}-date-panel ${mergedClsPrefix}-date-panel--month`, onFocus: this.handlePanelFocus, onKeydown: this.handlePanelKeyDown },
|
|
40
43
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month-calendar` },
|
|
41
44
|
(0, vue_1.h)(_internal_1.NScrollbar, { ref: "scrollbarInstRef", class: `${mergedClsPrefix}-date-panel-month-calendar__picker-col`, theme: mergedTheme.peers.Scrollbar, themeOverrides: mergedTheme.peerOverrides.Scrollbar, container: this.virtualListContainer, content: this.virtualListContent, horizontalRailStyle: { zIndex: 1 }, verticalRailStyle: { zIndex: 1 } }, {
|
|
42
|
-
default: () => ((0, vue_1.h)(vueuc_1.VirtualList, { ref: "yearScrollRef", items: this.yearArray, itemSize: config_1.MONTH_ITEM_HEIGHT, showScrollbar: false, keyField: "ts", onScroll: this.handleVirtualListScroll }, {
|
|
45
|
+
default: () => ((0, vue_1.h)(vueuc_1.VirtualList, { ref: "yearScrollRef", items: this.yearArray, itemSize: config_1.MONTH_ITEM_HEIGHT, showScrollbar: false, keyField: "ts", onScroll: this.handleVirtualListScroll, paddingBottom: 4 }, {
|
|
43
46
|
default: ({ item, index }) => {
|
|
44
47
|
return renderItem(item, index, mergedClsPrefix);
|
|
45
48
|
}
|
|
46
49
|
}))
|
|
47
50
|
}),
|
|
48
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month-calendar__picker-col` },
|
|
51
|
+
type === 'month' ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month-calendar__picker-col` },
|
|
49
52
|
(0, vue_1.h)(_internal_1.NScrollbar, { ref: "monthScrollRef", theme: mergedTheme.peers.Scrollbar, themeOverrides: mergedTheme.peerOverrides.Scrollbar }, {
|
|
50
53
|
default: () => [
|
|
51
54
|
this.monthArray.map((monthItem, i) => renderItem(monthItem, i, mergedClsPrefix)),
|
|
52
55
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month-calendar__padding` })
|
|
53
56
|
]
|
|
54
|
-
}))),
|
|
57
|
+
}))) : null),
|
|
55
58
|
this.datePickerSlots.footer ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-footer` }, {
|
|
56
59
|
default: this.datePickerSlots.footer
|
|
57
60
|
})) : null,
|