naive-ui 2.21.5 → 2.23.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/clear/src/styles/index.cssr.js +10 -10
- package/es/_internal/close/src/styles/index.cssr.js +8 -8
- package/es/_internal/icons/Close.js +1 -1
- package/es/_internal/scrollbar/src/ScrollBar.d.ts +10 -6
- package/es/_internal/scrollbar/src/ScrollBar.js +15 -11
- package/es/_internal/scrollbar/src/styles/index.cssr.js +15 -15
- package/es/_internal/select-menu/src/SelectMenu.d.ts +21 -21
- package/es/_internal/select-menu/src/SelectMenu.js +21 -21
- package/es/_internal/select-menu/src/styles/index.cssr.js +35 -35
- package/es/_internal/select-menu/styles/_common.js +1 -1
- package/es/_internal/selection/src/Selection.d.ts +44 -44
- package/es/_internal/selection/src/Selection.js +55 -53
- package/es/_internal/selection/src/styles/index.cssr.js +84 -80
- package/es/_mixins/common.d.ts +1 -0
- package/es/_mixins/common.js +1 -0
- package/es/_mixins/index.d.ts +1 -0
- package/es/_mixins/index.js +1 -0
- package/es/_mixins/use-css-vars-class.d.ts +2 -0
- package/es/_mixins/use-css-vars-class.js +22 -0
- package/es/_mixins/use-rtl.js +2 -0
- package/es/_mixins/use-style.js +3 -0
- package/es/_mixins/use-theme.js +3 -0
- package/es/_utils/composable/use-houdini.js +12 -9
- package/es/alert/src/Alert.d.ts +22 -22
- package/es/alert/src/Alert.js +22 -22
- package/es/alert/src/styles/index.cssr.js +45 -45
- package/es/anchor/src/AnchorAdapter.js +12 -12
- package/es/anchor/src/styles/index.cssr.js +41 -41
- package/es/auto-complete/src/AutoComplete.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.js +2 -2
- package/es/auto-complete/src/styles/index.cssr.js +4 -4
- package/es/avatar/index.d.ts +2 -0
- package/es/avatar/index.js +1 -0
- package/es/avatar/src/Avatar.d.ts +77 -36
- package/es/avatar/src/Avatar.js +46 -16
- package/es/avatar/src/AvatarGroup.d.ts +52 -0
- package/es/avatar/src/AvatarGroup.js +61 -0
- package/es/avatar/src/interface.d.ts +2 -0
- package/es/avatar/src/interface.js +1 -0
- package/es/avatar/src/styles/avatar-group.cssr.d.ts +2 -0
- package/es/avatar/src/styles/avatar-group.cssr.js +14 -0
- package/es/avatar/src/styles/index.cssr.js +21 -18
- package/es/avatar/styles/light.d.ts +3 -0
- package/es/avatar/styles/light.js +6 -2
- package/es/back-top/src/BackTop.d.ts +13 -13
- package/es/back-top/src/BackTop.js +13 -13
- package/es/back-top/src/styles/index.cssr.js +29 -29
- package/es/badge/src/Badge.d.ts +6 -6
- package/es/badge/src/Badge.js +6 -6
- package/es/badge/src/styles/index.cssr.js +15 -15
- package/es/breadcrumb/src/Breadcrumb.d.ts +8 -8
- package/es/breadcrumb/src/Breadcrumb.js +8 -8
- package/es/breadcrumb/src/styles/index.cssr.js +23 -23
- package/es/button/src/Button.d.ts +43 -38
- package/es/button/src/Button.js +124 -116
- package/es/button/src/styles/button.cssr.js +83 -80
- package/es/button/styles/light.js +1 -1
- package/es/calendar/src/Calendar.d.ts +23 -21
- package/es/calendar/src/Calendar.js +21 -21
- package/es/calendar/src/styles/index.cssr.js +57 -57
- package/es/card/src/Card.d.ts +28 -23
- package/es/card/src/Card.js +24 -23
- package/es/card/src/styles/index.cssr.js +71 -69
- package/es/carousel/src/Carousel.d.ts +5 -5
- package/es/carousel/src/Carousel.js +5 -5
- package/es/carousel/src/styles/index.cssr.js +10 -10
- package/es/cascader/src/Cascader.d.ts +160 -17
- package/es/cascader/src/Cascader.js +32 -24
- package/es/cascader/src/CascaderMenu.d.ts +345 -0
- package/es/cascader/src/CascaderMenu.js +7 -6
- package/es/cascader/src/CascaderOption.d.ts +18 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +18 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +18 -0
- package/es/cascader/src/styles/index.cssr.js +44 -44
- package/es/cascader/styles/dark.js +3 -1
- package/es/cascader/styles/light.d.ts +13 -0
- package/es/cascader/styles/light.js +4 -2
- package/es/checkbox/src/Checkbox.d.ts +23 -23
- package/es/checkbox/src/Checkbox.js +23 -23
- package/es/checkbox/src/styles/index.cssr.js +58 -58
- package/es/code/src/Code.d.ts +14 -14
- package/es/code/src/Code.js +26 -17
- package/es/code/src/styles/index.cssr.js +28 -28
- package/es/collapse/src/Collapse.d.ts +8 -8
- package/es/collapse/src/Collapse.js +8 -8
- package/es/collapse/src/styles/index.cssr.js +24 -24
- package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/es/collapse-transition/src/CollapseTransition.js +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +10 -10
- package/es/color-picker/src/ColorPicker.js +10 -10
- package/es/color-picker/src/styles/index.cssr.js +28 -28
- package/es/components.d.ts +2 -0
- package/es/components.js +2 -0
- package/es/config-provider/src/ConfigProvider.d.ts +6 -0
- package/es/countdown/index.d.ts +2 -0
- package/es/countdown/index.js +1 -0
- package/es/countdown/src/Countdown.d.ts +72 -0
- package/es/countdown/src/Countdown.js +126 -0
- package/es/countdown/src/utils.d.ts +0 -0
- package/es/countdown/src/utils.js +1 -0
- package/es/data-table/src/DataTable.d.ts +39 -39
- package/es/data-table/src/DataTable.js +49 -55
- package/es/data-table/src/MainTable.js +2 -3
- package/es/data-table/src/TableParts/Body.d.ts +15 -4
- package/es/data-table/src/TableParts/Body.js +82 -28
- package/es/data-table/src/TableParts/Cell.js +2 -3
- package/es/data-table/src/TableParts/Header.js +2 -2
- package/es/data-table/src/interface.d.ts +4 -1
- package/es/data-table/src/styles/index.cssr.js +133 -132
- package/es/data-table/src/use-check.js +6 -2
- package/es/data-table/src/use-scroll.d.ts +2 -0
- package/es/data-table/src/use-scroll.js +34 -4
- package/es/data-table/src/use-table-data.js +3 -1
- package/es/data-table/styles/_common.js +1 -1
- package/es/date-picker/src/DatePicker.d.ts +70 -46
- package/es/date-picker/src/DatePicker.js +61 -52
- package/es/date-picker/src/config.d.ts +1 -1
- package/es/date-picker/src/interface.d.ts +2 -1
- package/es/date-picker/src/panel/date.d.ts +13 -10
- package/es/date-picker/src/panel/date.js +2 -2
- package/es/date-picker/src/panel/daterange.d.ts +11 -9
- package/es/date-picker/src/panel/daterange.js +2 -2
- package/es/date-picker/src/panel/datetime.d.ts +13 -16
- package/es/date-picker/src/panel/datetime.js +2 -2
- package/es/date-picker/src/panel/datetimerange.d.ts +11 -9
- package/es/date-picker/src/panel/datetimerange.js +2 -2
- package/es/date-picker/src/panel/month.d.ts +17 -20
- package/es/date-picker/src/panel/month.js +23 -12
- package/es/date-picker/src/panel/use-calendar.d.ts +13 -39
- package/es/date-picker/src/panel/use-calendar.js +41 -23
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +9 -36
- package/es/date-picker/src/panel/use-dual-calendar.js +35 -21
- package/es/date-picker/src/panel/use-panel-common.d.ts +9 -32
- package/es/date-picker/src/panel/use-panel-common.js +4 -8
- package/es/date-picker/src/styles/index.cssr.js +115 -115
- package/es/date-picker/src/utils.d.ts +19 -3
- package/es/date-picker/src/utils.js +40 -5
- 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 +4 -0
- package/es/descriptions/src/Descriptions.d.ts +18 -18
- package/es/descriptions/src/Descriptions.js +19 -20
- package/es/descriptions/src/styles/index.cssr.js +61 -61
- package/es/dialog/src/Dialog.d.ts +24 -24
- package/es/dialog/src/Dialog.js +22 -22
- package/es/dialog/src/DialogEnvironment.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +1 -1
- package/es/dialog/src/styles/index.cssr.js +45 -45
- package/es/divider/src/Divider.d.ts +4 -4
- package/es/divider/src/Divider.js +4 -4
- package/es/divider/src/styles/index.cssr.js +12 -12
- package/es/drawer/src/Drawer.d.ts +19 -19
- package/es/drawer/src/Drawer.js +19 -19
- package/es/drawer/src/styles/index.cssr.js +41 -40
- package/es/dropdown/src/Dropdown.js +34 -32
- package/es/dropdown/src/styles/index.cssr.js +59 -59
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.js +1 -1
- package/es/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/es/empty/src/Empty.d.ts +19 -15
- package/es/empty/src/Empty.js +12 -12
- package/es/empty/src/styles/index.cssr.js +20 -19
- package/es/form/src/Form.d.ts +27 -27
- package/es/form/src/FormItem.d.ts +42 -42
- package/es/form/src/FormItem.js +15 -15
- package/es/form/src/FormItemCol.d.ts +33 -27
- package/es/form/src/FormItemCol.js +1 -0
- package/es/form/src/FormItemGridItem.d.ts +33 -27
- package/es/form/src/FormItemGridItem.js +1 -0
- package/es/form/src/FormItemRow.d.ts +33 -27
- package/es/form/src/FormItemRow.js +1 -0
- package/es/form/src/styles/form-item.cssr.js +37 -37
- package/es/form/styles/_common.d.ts +0 -3
- package/es/form/styles/_common.js +0 -3
- package/es/form/styles/light.d.ts +3 -3
- package/es/form/styles/light.js +2 -2
- package/es/gradient-text/src/GradientText.d.ts +5 -5
- package/es/gradient-text/src/GradientText.js +5 -5
- package/es/gradient-text/src/styles/index.cssr.js +9 -9
- package/es/icon/src/Icon.d.ts +6 -6
- package/es/icon/src/Icon.js +4 -4
- package/es/icon/src/styles/index.cssr.js +7 -7
- package/es/image/src/Image.js +8 -12
- package/es/image/src/ImagePreview.d.ts +2 -2
- package/es/image/src/ImagePreview.js +13 -12
- package/es/image/src/styles/index.cssr.js +5 -5
- package/es/input/src/Input.d.ts +52 -47
- package/es/input/src/Input.js +54 -49
- package/es/input/src/InputGroupLabel.d.ts +8 -8
- package/es/input/src/InputGroupLabel.js +8 -8
- package/es/input/src/styles/input-group-label.cssr.js +18 -18
- package/es/input/src/styles/input.cssr.js +108 -109
- package/es/input-number/src/InputNumber.d.ts +11 -0
- package/es/input-number/src/InputNumber.js +5 -2
- package/es/input-number/src/utils.js +2 -1
- package/es/layout/src/Layout.d.ts +6 -6
- package/es/layout/src/Layout.js +3 -3
- package/es/layout/src/LayoutContent.d.ts +3 -3
- package/es/layout/src/LayoutFooter.js +7 -7
- package/es/layout/src/LayoutHeader.js +7 -7
- package/es/layout/src/LayoutSider.js +13 -13
- package/es/layout/src/styles/layout-footer.cssr.js +11 -11
- package/es/layout/src/styles/layout-header.cssr.js +11 -11
- package/es/layout/src/styles/layout-sider.cssr.js +32 -32
- package/es/layout/src/styles/layout.cssr.js +8 -8
- package/es/list/src/List.d.ts +10 -10
- package/es/list/src/List.js +10 -10
- package/es/list/src/styles/index.cssr.js +30 -30
- package/es/loading-bar/src/LoadingBar.d.ts +3 -3
- package/es/loading-bar/src/LoadingBar.js +3 -3
- package/es/loading-bar/src/styles/index.cssr.js +7 -7
- package/es/locales/common/deDE.js +2 -0
- package/es/locales/common/enUS.d.ts +2 -0
- package/es/locales/common/enUS.js +2 -0
- package/es/locales/common/frFR.js +7 -5
- package/es/locales/common/idID.js +2 -0
- package/es/locales/common/jaJP.js +2 -0
- package/es/locales/common/nbNO.js +2 -0
- package/es/locales/common/ruRU.js +2 -0
- package/es/locales/common/ukUA.js +2 -0
- package/es/locales/common/zhCN.js +2 -0
- package/es/locales/common/zhTW.d.ts +3 -0
- package/es/locales/common/zhTW.js +100 -0
- package/es/locales/date/zhTW.d.ts +3 -0
- package/es/locales/date/zhTW.js +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -0
- package/es/log/src/Log.d.ts +6 -6
- package/es/log/src/Log.js +6 -6
- package/es/log/src/styles/index.cssr.js +16 -18
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/Mention.js +1 -1
- package/es/mention/src/styles/index.cssr.js +2 -2
- package/es/menu/src/Menu.js +43 -40
- package/es/menu/src/styles/index.cssr.js +71 -71
- package/es/message/src/Message.d.ts +22 -22
- package/es/message/src/Message.js +22 -22
- package/es/message/src/styles/index.cssr.js +48 -48
- package/es/modal/src/BodyWrapper.d.ts +11 -2
- package/es/modal/src/BodyWrapper.js +23 -17
- package/es/modal/src/Modal.d.ts +14 -8
- package/es/modal/src/Modal.js +13 -7
- package/es/modal/src/presetProps.d.ts +2 -1
- package/es/modal/src/styles/index.cssr.js +8 -8
- package/es/notification/src/Notification.d.ts +24 -24
- package/es/notification/src/Notification.js +24 -24
- package/es/notification/src/styles/index.cssr.js +65 -65
- package/es/number-animation/index.d.ts +3 -0
- package/es/number-animation/index.js +1 -0
- package/es/number-animation/src/NumberAnimation.d.ts +79 -0
- package/es/number-animation/src/NumberAnimation.js +81 -0
- package/es/number-animation/src/utils.d.ts +8 -0
- package/es/number-animation/src/utils.js +17 -0
- package/es/page-header/src/PageHeader.d.ts +10 -10
- package/es/page-header/src/PageHeader.js +13 -13
- package/es/page-header/src/styles/index.cssr.js +25 -27
- package/es/pagination/src/Pagination.d.ts +42 -41
- package/es/pagination/src/Pagination.js +52 -45
- package/es/pagination/src/styles/index.cssr.js +81 -81
- package/es/popconfirm/src/Popconfirm.d.ts +2 -2
- package/es/popconfirm/src/PopconfirmPanel.d.ts +4 -4
- package/es/popconfirm/src/PopconfirmPanel.js +4 -4
- package/es/popconfirm/src/styles/index.cssr.js +8 -8
- package/es/popover/src/Popover.js +4 -1
- package/es/popover/src/PopoverBody.js +18 -18
- package/es/popover/src/styles/index.cssr.js +62 -62
- package/es/popselect/src/Popselect.d.ts +2 -11
- package/es/popselect/src/Popselect.js +2 -2
- package/es/popselect/src/PopselectPanel.d.ts +3 -11
- package/es/popselect/src/PopselectPanel.js +17 -11
- package/es/progress/src/Progress.d.ts +14 -14
- package/es/progress/src/Progress.js +14 -14
- package/es/progress/src/styles/index.cssr.js +53 -53
- package/es/radio/src/Radio.d.ts +15 -15
- package/es/radio/src/Radio.js +18 -18
- package/es/radio/src/RadioButton.js +4 -5
- package/es/radio/src/RadioGroup.d.ts +14 -14
- package/es/radio/src/RadioGroup.js +14 -14
- package/es/radio/src/styles/radio-group.cssr.js +51 -47
- package/es/radio/src/styles/radio.cssr.js +44 -40
- package/es/radio/src/use-radio.d.ts +0 -3
- package/es/radio/src/use-radio.js +1 -26
- package/es/rate/src/Rate.d.ts +4 -4
- package/es/rate/src/Rate.js +4 -4
- package/es/rate/src/styles/index.cssr.js +11 -11
- package/es/result/src/Result.d.ts +9 -9
- package/es/result/src/Result.js +9 -9
- package/es/result/src/styles/index.cssr.js +20 -20
- package/es/select/src/Select.d.ts +1 -1
- package/es/select/src/Select.js +1 -1
- package/es/select/src/styles/index.cssr.js +2 -2
- package/es/skeleton/src/Skeleton.d.ts +3 -3
- package/es/skeleton/src/Skeleton.js +3 -3
- package/es/skeleton/src/styles/index.cssr.js +12 -12
- package/es/slider/src/Slider.d.ts +29 -29
- package/es/slider/src/Slider.js +29 -29
- package/es/slider/src/styles/index.cssr.js +87 -87
- package/es/spin/src/Spin.d.ts +5 -5
- package/es/spin/src/Spin.js +5 -5
- package/es/spin/src/styles/index.cssr.js +15 -15
- package/es/statistic/src/Statistic.d.ts +25 -45
- package/es/statistic/src/Statistic.js +12 -19
- package/es/statistic/src/styles/index.cssr.js +19 -19
- package/es/steps/src/Step.d.ts +12 -12
- package/es/steps/src/Step.js +12 -12
- package/es/steps/src/styles/index.cssr.js +46 -46
- package/es/switch/src/Switch.d.ts +19 -19
- package/es/switch/src/Switch.js +26 -19
- package/es/switch/src/styles/index.cssr.js +59 -57
- package/es/table/src/Table.d.ts +21 -21
- package/es/table/src/Table.js +21 -21
- package/es/table/src/styles/index.cssr.js +55 -55
- package/es/tabs/src/styles/index.cssr.js +5 -1
- package/es/tabs/styles/light.js +1 -1
- package/es/tag/src/Tag.d.ts +27 -26
- package/es/tag/src/Tag.js +27 -26
- package/es/tag/src/styles/index.cssr.js +55 -55
- package/es/tag/src/styles/rtl.cssr.js +1 -1
- package/es/thing/src/Thing.js +5 -5
- package/es/thing/src/styles/index.cssr.js +11 -11
- package/es/time-picker/src/TimePicker.d.ts +19 -19
- package/es/time-picker/src/TimePicker.js +17 -17
- package/es/time-picker/src/styles/index.cssr.js +47 -47
- package/es/timeline/src/TimelineItem.d.ts +12 -12
- package/es/timeline/src/TimelineItem.js +12 -12
- package/es/timeline/src/styles/index.cssr.js +44 -44
- package/es/transfer/src/Transfer.d.ts +21 -21
- package/es/transfer/src/Transfer.js +21 -21
- package/es/transfer/src/TransferList.js +5 -7
- package/es/transfer/src/styles/index.cssr.js +47 -42
- package/es/tree/src/Tree.d.ts +11 -11
- package/es/tree/src/Tree.js +11 -11
- package/es/tree/src/dnd.js +2 -2
- package/es/tree/src/styles/index.cssr.js +33 -33
- package/es/tree-select/src/TreeSelect.d.ts +43 -6
- package/es/tree-select/src/TreeSelect.js +29 -14
- package/es/tree-select/src/styles/index.cssr.js +20 -11
- package/es/tree-select/styles/light.d.ts +6 -0
- package/es/tree-select/styles/light.js +5 -2
- package/es/typography/src/a.d.ts +2 -2
- package/es/typography/src/a.js +2 -2
- package/es/typography/src/blockquote.d.ts +5 -5
- package/es/typography/src/blockquote.js +5 -5
- package/es/typography/src/create-header.d.ts +8 -8
- package/es/typography/src/create-header.js +8 -8
- package/es/typography/src/headers.d.ts +48 -48
- package/es/typography/src/hr.d.ts +2 -1
- package/es/typography/src/hr.js +3 -1
- package/es/typography/src/ol.d.ts +7 -7
- package/es/typography/src/ol.js +7 -7
- package/es/typography/src/p.d.ts +5 -5
- package/es/typography/src/p.js +5 -5
- package/es/typography/src/styles/a.cssr.js +6 -6
- package/es/typography/src/styles/blockquote.cssr.js +11 -11
- package/es/typography/src/styles/header.cssr.js +19 -19
- package/es/typography/src/styles/hr.cssr.js +3 -3
- package/es/typography/src/styles/list.cssr.js +15 -15
- package/es/typography/src/styles/p.cssr.js +10 -10
- package/es/typography/src/styles/text.cssr.js +18 -18
- package/es/typography/src/text.d.ts +8 -7
- package/es/typography/src/text.js +9 -8
- package/es/typography/src/ul.d.ts +7 -7
- package/es/typography/src/ul.js +7 -7
- package/es/upload/src/Upload.d.ts +1 -1
- package/es/upload/src/Upload.js +16 -16
- package/es/upload/src/styles/index.cssr.js +36 -36
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/styles/index.cssr.js +10 -10
- package/lib/_internal/close/src/styles/index.cssr.js +8 -8
- package/lib/_internal/icons/Close.js +1 -1
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +10 -6
- package/lib/_internal/scrollbar/src/ScrollBar.js +15 -11
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +15 -15
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +21 -21
- package/lib/_internal/select-menu/src/SelectMenu.js +21 -21
- package/lib/_internal/select-menu/src/styles/index.cssr.js +35 -35
- package/lib/_internal/select-menu/styles/_common.js +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +44 -44
- package/lib/_internal/selection/src/Selection.js +55 -53
- package/lib/_internal/selection/src/styles/index.cssr.js +84 -80
- package/lib/_mixins/common.d.ts +1 -0
- package/lib/_mixins/common.js +4 -0
- package/lib/_mixins/index.d.ts +1 -0
- package/lib/_mixins/index.js +3 -1
- package/lib/_mixins/use-css-vars-class.d.ts +2 -0
- package/lib/_mixins/use-css-vars-class.js +29 -0
- package/lib/_mixins/use-rtl.js +2 -0
- package/lib/_mixins/use-style.js +3 -0
- package/lib/_mixins/use-theme.js +3 -0
- package/lib/_utils/composable/use-houdini.js +12 -9
- package/lib/alert/src/Alert.d.ts +22 -22
- package/lib/alert/src/Alert.js +22 -22
- package/lib/alert/src/styles/index.cssr.js +45 -45
- package/lib/anchor/src/AnchorAdapter.js +12 -12
- package/lib/anchor/src/styles/index.cssr.js +41 -41
- package/lib/auto-complete/src/AutoComplete.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.js +2 -2
- package/lib/auto-complete/src/styles/index.cssr.js +4 -4
- package/lib/avatar/index.d.ts +2 -0
- package/lib/avatar/index.js +3 -1
- package/lib/avatar/src/Avatar.d.ts +77 -36
- package/lib/avatar/src/Avatar.js +48 -17
- package/lib/avatar/src/AvatarGroup.d.ts +52 -0
- package/lib/avatar/src/AvatarGroup.js +67 -0
- package/lib/avatar/src/interface.d.ts +2 -0
- package/lib/avatar/src/interface.js +2 -0
- package/lib/avatar/src/styles/avatar-group.cssr.d.ts +2 -0
- package/lib/avatar/src/styles/avatar-group.cssr.js +21 -0
- package/lib/avatar/src/styles/index.cssr.js +20 -17
- package/lib/avatar/styles/light.d.ts +3 -0
- package/lib/avatar/styles/light.js +6 -2
- package/lib/back-top/src/BackTop.d.ts +13 -13
- package/lib/back-top/src/BackTop.js +13 -13
- package/lib/back-top/src/styles/index.cssr.js +29 -29
- package/lib/badge/src/Badge.d.ts +6 -6
- package/lib/badge/src/Badge.js +6 -6
- package/lib/badge/src/styles/index.cssr.js +15 -15
- package/lib/breadcrumb/src/Breadcrumb.d.ts +8 -8
- package/lib/breadcrumb/src/Breadcrumb.js +8 -8
- package/lib/breadcrumb/src/styles/index.cssr.js +23 -23
- package/lib/button/src/Button.d.ts +43 -38
- package/lib/button/src/Button.js +123 -115
- package/lib/button/src/styles/button.cssr.js +83 -80
- package/lib/button/styles/light.js +1 -1
- package/lib/calendar/src/Calendar.d.ts +23 -21
- package/lib/calendar/src/Calendar.js +21 -21
- package/lib/calendar/src/styles/index.cssr.js +57 -57
- package/lib/card/src/Card.d.ts +28 -23
- package/lib/card/src/Card.js +24 -23
- package/lib/card/src/styles/index.cssr.js +71 -69
- package/lib/carousel/src/Carousel.d.ts +5 -5
- package/lib/carousel/src/Carousel.js +5 -5
- package/lib/carousel/src/styles/index.cssr.js +10 -10
- package/lib/cascader/src/Cascader.d.ts +160 -17
- package/lib/cascader/src/Cascader.js +32 -24
- package/lib/cascader/src/CascaderMenu.d.ts +345 -0
- package/lib/cascader/src/CascaderMenu.js +7 -6
- package/lib/cascader/src/CascaderOption.d.ts +18 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +18 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +18 -0
- package/lib/cascader/src/styles/index.cssr.js +44 -44
- package/lib/cascader/styles/dark.js +3 -1
- package/lib/cascader/styles/light.d.ts +13 -0
- package/lib/cascader/styles/light.js +4 -2
- package/lib/checkbox/src/Checkbox.d.ts +23 -23
- package/lib/checkbox/src/Checkbox.js +23 -23
- package/lib/checkbox/src/styles/index.cssr.js +58 -58
- package/lib/code/src/Code.d.ts +14 -14
- package/lib/code/src/Code.js +26 -17
- package/lib/code/src/styles/index.cssr.js +28 -28
- package/lib/collapse/src/Collapse.d.ts +8 -8
- package/lib/collapse/src/Collapse.js +8 -8
- package/lib/collapse/src/styles/index.cssr.js +24 -24
- package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/collapse-transition/src/CollapseTransition.js +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +10 -10
- package/lib/color-picker/src/ColorPicker.js +10 -10
- package/lib/color-picker/src/styles/index.cssr.js +28 -28
- package/lib/components.d.ts +2 -0
- package/lib/components.js +2 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +6 -0
- package/lib/countdown/index.d.ts +2 -0
- package/lib/countdown/index.js +8 -0
- package/lib/countdown/src/Countdown.d.ts +72 -0
- package/lib/countdown/src/Countdown.js +128 -0
- package/lib/countdown/src/utils.d.ts +0 -0
- package/lib/countdown/src/utils.js +1 -0
- package/lib/data-table/src/DataTable.d.ts +39 -39
- package/lib/data-table/src/DataTable.js +48 -54
- package/lib/data-table/src/MainTable.js +1 -2
- package/lib/data-table/src/TableParts/Body.d.ts +15 -4
- package/lib/data-table/src/TableParts/Body.js +80 -26
- package/lib/data-table/src/TableParts/Cell.js +2 -3
- package/lib/data-table/src/TableParts/Header.js +2 -2
- package/lib/data-table/src/interface.d.ts +4 -1
- package/lib/data-table/src/styles/index.cssr.js +133 -132
- package/lib/data-table/src/use-check.js +6 -2
- package/lib/data-table/src/use-scroll.d.ts +2 -0
- package/lib/data-table/src/use-scroll.js +34 -4
- package/lib/data-table/src/use-table-data.js +3 -1
- package/lib/data-table/styles/_common.js +1 -1
- package/lib/date-picker/src/DatePicker.d.ts +70 -46
- package/lib/date-picker/src/DatePicker.js +61 -52
- package/lib/date-picker/src/config.d.ts +1 -1
- package/lib/date-picker/src/interface.d.ts +2 -1
- package/lib/date-picker/src/panel/date.d.ts +13 -10
- package/lib/date-picker/src/panel/date.js +1 -1
- package/lib/date-picker/src/panel/daterange.d.ts +11 -9
- package/lib/date-picker/src/panel/daterange.js +1 -1
- package/lib/date-picker/src/panel/datetime.d.ts +13 -16
- package/lib/date-picker/src/panel/datetime.js +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +11 -9
- package/lib/date-picker/src/panel/datetimerange.js +2 -2
- package/lib/date-picker/src/panel/month.d.ts +17 -20
- package/lib/date-picker/src/panel/month.js +23 -12
- package/lib/date-picker/src/panel/use-calendar.d.ts +13 -39
- package/lib/date-picker/src/panel/use-calendar.js +40 -21
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +9 -36
- package/lib/date-picker/src/panel/use-dual-calendar.js +34 -19
- package/lib/date-picker/src/panel/use-panel-common.d.ts +9 -32
- package/lib/date-picker/src/panel/use-panel-common.js +5 -8
- package/lib/date-picker/src/styles/index.cssr.js +115 -115
- package/lib/date-picker/src/utils.d.ts +19 -3
- package/lib/date-picker/src/utils.js +41 -4
- 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 +4 -0
- package/lib/descriptions/src/Descriptions.d.ts +18 -18
- package/lib/descriptions/src/Descriptions.js +19 -20
- package/lib/descriptions/src/styles/index.cssr.js +61 -61
- package/lib/dialog/src/Dialog.d.ts +24 -24
- package/lib/dialog/src/Dialog.js +22 -22
- package/lib/dialog/src/DialogEnvironment.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +1 -1
- package/lib/dialog/src/styles/index.cssr.js +45 -45
- package/lib/divider/src/Divider.d.ts +4 -4
- package/lib/divider/src/Divider.js +4 -4
- package/lib/divider/src/styles/index.cssr.js +12 -12
- package/lib/drawer/src/Drawer.d.ts +19 -19
- package/lib/drawer/src/Drawer.js +19 -19
- package/lib/drawer/src/styles/index.cssr.js +41 -40
- package/lib/dropdown/src/Dropdown.js +34 -32
- package/lib/dropdown/src/styles/index.cssr.js +59 -59
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.js +1 -1
- package/lib/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/lib/empty/src/Empty.d.ts +19 -15
- package/lib/empty/src/Empty.js +12 -12
- package/lib/empty/src/styles/index.cssr.js +19 -18
- package/lib/form/src/Form.d.ts +27 -27
- package/lib/form/src/FormItem.d.ts +42 -42
- package/lib/form/src/FormItem.js +15 -15
- package/lib/form/src/FormItemCol.d.ts +33 -27
- package/lib/form/src/FormItemCol.js +1 -0
- package/lib/form/src/FormItemGridItem.d.ts +33 -27
- package/lib/form/src/FormItemGridItem.js +1 -0
- package/lib/form/src/FormItemRow.d.ts +33 -27
- package/lib/form/src/FormItemRow.js +1 -0
- package/lib/form/src/styles/form-item.cssr.js +37 -37
- package/lib/form/styles/_common.d.ts +0 -3
- package/lib/form/styles/_common.js +0 -3
- package/lib/form/styles/light.d.ts +3 -3
- package/lib/form/styles/light.js +2 -2
- package/lib/gradient-text/src/GradientText.d.ts +5 -5
- package/lib/gradient-text/src/GradientText.js +5 -5
- package/lib/gradient-text/src/styles/index.cssr.js +9 -9
- package/lib/icon/src/Icon.d.ts +6 -6
- package/lib/icon/src/Icon.js +4 -4
- package/lib/icon/src/styles/index.cssr.js +7 -7
- package/lib/image/src/Image.js +7 -11
- package/lib/image/src/ImagePreview.d.ts +2 -2
- package/lib/image/src/ImagePreview.js +12 -11
- package/lib/image/src/styles/index.cssr.js +5 -5
- package/lib/input/src/Input.d.ts +52 -47
- package/lib/input/src/Input.js +54 -49
- package/lib/input/src/InputGroupLabel.d.ts +8 -8
- package/lib/input/src/InputGroupLabel.js +8 -8
- package/lib/input/src/styles/input-group-label.cssr.js +18 -18
- package/lib/input/src/styles/input.cssr.js +108 -109
- package/lib/input-number/src/InputNumber.d.ts +11 -0
- package/lib/input-number/src/InputNumber.js +5 -2
- package/lib/input-number/src/utils.js +2 -1
- package/lib/layout/src/Layout.d.ts +6 -6
- package/lib/layout/src/Layout.js +3 -3
- package/lib/layout/src/LayoutContent.d.ts +3 -3
- package/lib/layout/src/LayoutFooter.js +7 -7
- package/lib/layout/src/LayoutHeader.js +7 -7
- package/lib/layout/src/LayoutSider.js +13 -13
- package/lib/layout/src/styles/layout-footer.cssr.js +11 -11
- package/lib/layout/src/styles/layout-header.cssr.js +11 -11
- package/lib/layout/src/styles/layout-sider.cssr.js +32 -32
- package/lib/layout/src/styles/layout.cssr.js +8 -8
- package/lib/list/src/List.d.ts +10 -10
- package/lib/list/src/List.js +10 -10
- package/lib/list/src/styles/index.cssr.js +30 -30
- package/lib/loading-bar/src/LoadingBar.d.ts +3 -3
- package/lib/loading-bar/src/LoadingBar.js +3 -3
- package/lib/loading-bar/src/styles/index.cssr.js +7 -7
- package/lib/locales/common/deDE.js +2 -0
- package/lib/locales/common/enUS.d.ts +2 -0
- package/lib/locales/common/enUS.js +2 -0
- package/lib/locales/common/frFR.js +7 -5
- package/lib/locales/common/idID.js +2 -0
- package/lib/locales/common/jaJP.js +2 -0
- package/lib/locales/common/nbNO.js +2 -0
- package/lib/locales/common/ruRU.js +2 -0
- package/lib/locales/common/ukUA.js +2 -0
- package/lib/locales/common/zhCN.js +2 -0
- package/lib/locales/common/zhTW.d.ts +3 -0
- package/lib/locales/common/zhTW.js +102 -0
- package/lib/locales/date/zhTW.d.ts +3 -0
- package/lib/locales/date/zhTW.js +11 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +5 -1
- package/lib/log/src/Log.d.ts +6 -6
- package/lib/log/src/Log.js +6 -6
- package/lib/log/src/styles/index.cssr.js +16 -18
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/Mention.js +1 -1
- package/lib/mention/src/styles/index.cssr.js +2 -2
- package/lib/menu/src/Menu.js +43 -40
- package/lib/menu/src/styles/index.cssr.js +71 -71
- package/lib/message/src/Message.d.ts +22 -22
- package/lib/message/src/Message.js +22 -22
- package/lib/message/src/styles/index.cssr.js +48 -48
- package/lib/modal/src/BodyWrapper.d.ts +11 -2
- package/lib/modal/src/BodyWrapper.js +23 -17
- package/lib/modal/src/Modal.d.ts +14 -8
- package/lib/modal/src/Modal.js +13 -7
- package/lib/modal/src/presetProps.d.ts +2 -1
- package/lib/modal/src/styles/index.cssr.js +8 -8
- package/lib/notification/src/Notification.d.ts +24 -24
- package/lib/notification/src/Notification.js +24 -24
- package/lib/notification/src/styles/index.cssr.js +65 -65
- package/lib/number-animation/index.d.ts +3 -0
- package/lib/number-animation/index.js +8 -0
- package/lib/number-animation/src/NumberAnimation.d.ts +79 -0
- package/lib/number-animation/src/NumberAnimation.js +83 -0
- package/lib/number-animation/src/utils.d.ts +8 -0
- package/lib/number-animation/src/utils.js +21 -0
- package/lib/page-header/src/PageHeader.d.ts +10 -10
- package/lib/page-header/src/PageHeader.js +13 -13
- package/lib/page-header/src/styles/index.cssr.js +25 -27
- package/lib/pagination/src/Pagination.d.ts +42 -41
- package/lib/pagination/src/Pagination.js +52 -45
- package/lib/pagination/src/styles/index.cssr.js +81 -81
- package/lib/popconfirm/src/Popconfirm.d.ts +2 -2
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +4 -4
- package/lib/popconfirm/src/PopconfirmPanel.js +4 -4
- package/lib/popconfirm/src/styles/index.cssr.js +8 -8
- package/lib/popover/src/Popover.js +4 -1
- package/lib/popover/src/PopoverBody.js +18 -18
- package/lib/popover/src/styles/index.cssr.js +62 -62
- package/lib/popselect/src/Popselect.d.ts +2 -11
- package/lib/popselect/src/Popselect.js +2 -2
- package/lib/popselect/src/PopselectPanel.d.ts +3 -11
- package/lib/popselect/src/PopselectPanel.js +16 -10
- package/lib/progress/src/Progress.d.ts +14 -14
- package/lib/progress/src/Progress.js +14 -14
- package/lib/progress/src/styles/index.cssr.js +53 -53
- package/lib/radio/src/Radio.d.ts +15 -15
- package/lib/radio/src/Radio.js +18 -18
- package/lib/radio/src/RadioButton.js +4 -5
- package/lib/radio/src/RadioGroup.d.ts +14 -14
- package/lib/radio/src/RadioGroup.js +14 -14
- package/lib/radio/src/styles/radio-group.cssr.js +51 -47
- package/lib/radio/src/styles/radio.cssr.js +44 -40
- package/lib/radio/src/use-radio.d.ts +0 -3
- package/lib/radio/src/use-radio.js +1 -26
- package/lib/rate/src/Rate.d.ts +4 -4
- package/lib/rate/src/Rate.js +4 -4
- package/lib/rate/src/styles/index.cssr.js +11 -11
- package/lib/result/src/Result.d.ts +9 -9
- package/lib/result/src/Result.js +9 -9
- package/lib/result/src/styles/index.cssr.js +20 -20
- package/lib/select/src/Select.d.ts +1 -1
- package/lib/select/src/Select.js +1 -1
- package/lib/select/src/styles/index.cssr.js +2 -2
- package/lib/skeleton/src/Skeleton.d.ts +3 -3
- package/lib/skeleton/src/Skeleton.js +3 -3
- package/lib/skeleton/src/styles/index.cssr.js +12 -12
- package/lib/slider/src/Slider.d.ts +29 -29
- package/lib/slider/src/Slider.js +29 -29
- package/lib/slider/src/styles/index.cssr.js +87 -87
- package/lib/spin/src/Spin.d.ts +5 -5
- package/lib/spin/src/Spin.js +5 -5
- package/lib/spin/src/styles/index.cssr.js +15 -15
- package/lib/statistic/src/Statistic.d.ts +25 -45
- package/lib/statistic/src/Statistic.js +12 -19
- package/lib/statistic/src/styles/index.cssr.js +19 -19
- package/lib/steps/src/Step.d.ts +12 -12
- package/lib/steps/src/Step.js +12 -12
- package/lib/steps/src/styles/index.cssr.js +46 -46
- package/lib/switch/src/Switch.d.ts +19 -19
- package/lib/switch/src/Switch.js +26 -19
- package/lib/switch/src/styles/index.cssr.js +59 -57
- package/lib/table/src/Table.d.ts +21 -21
- package/lib/table/src/Table.js +21 -21
- package/lib/table/src/styles/index.cssr.js +55 -55
- package/lib/tabs/src/styles/index.cssr.js +5 -1
- package/lib/tabs/styles/light.js +1 -1
- package/lib/tag/src/Tag.d.ts +27 -26
- package/lib/tag/src/Tag.js +27 -26
- package/lib/tag/src/styles/index.cssr.js +55 -55
- package/lib/tag/src/styles/rtl.cssr.js +1 -1
- package/lib/thing/src/Thing.js +5 -5
- package/lib/thing/src/styles/index.cssr.js +11 -11
- package/lib/time-picker/src/TimePicker.d.ts +19 -19
- package/lib/time-picker/src/TimePicker.js +17 -17
- package/lib/time-picker/src/styles/index.cssr.js +47 -47
- package/lib/timeline/src/TimelineItem.d.ts +12 -12
- package/lib/timeline/src/TimelineItem.js +12 -12
- package/lib/timeline/src/styles/index.cssr.js +44 -44
- package/lib/transfer/src/Transfer.d.ts +21 -21
- package/lib/transfer/src/Transfer.js +21 -21
- package/lib/transfer/src/TransferList.js +5 -7
- package/lib/transfer/src/styles/index.cssr.js +47 -42
- package/lib/tree/src/Tree.d.ts +11 -11
- package/lib/tree/src/Tree.js +11 -11
- package/lib/tree/src/dnd.js +2 -2
- package/lib/tree/src/styles/index.cssr.js +33 -33
- package/lib/tree-select/src/TreeSelect.d.ts +43 -6
- package/lib/tree-select/src/TreeSelect.js +28 -13
- package/lib/tree-select/src/styles/index.cssr.js +20 -11
- package/lib/tree-select/styles/light.d.ts +6 -0
- package/lib/tree-select/styles/light.js +5 -2
- package/lib/typography/src/a.d.ts +2 -2
- package/lib/typography/src/a.js +2 -2
- package/lib/typography/src/blockquote.d.ts +5 -5
- package/lib/typography/src/blockquote.js +5 -5
- package/lib/typography/src/create-header.d.ts +8 -8
- package/lib/typography/src/create-header.js +8 -8
- package/lib/typography/src/headers.d.ts +48 -48
- package/lib/typography/src/hr.d.ts +2 -1
- package/lib/typography/src/hr.js +3 -1
- package/lib/typography/src/ol.d.ts +7 -7
- package/lib/typography/src/ol.js +7 -7
- package/lib/typography/src/p.d.ts +5 -5
- package/lib/typography/src/p.js +5 -5
- package/lib/typography/src/styles/a.cssr.js +6 -6
- package/lib/typography/src/styles/blockquote.cssr.js +11 -11
- package/lib/typography/src/styles/header.cssr.js +19 -19
- package/lib/typography/src/styles/hr.cssr.js +3 -3
- package/lib/typography/src/styles/list.cssr.js +15 -15
- package/lib/typography/src/styles/p.cssr.js +10 -10
- package/lib/typography/src/styles/text.cssr.js +18 -18
- package/lib/typography/src/text.d.ts +8 -7
- package/lib/typography/src/text.js +9 -8
- package/lib/typography/src/ul.d.ts +7 -7
- package/lib/typography/src/ul.js +7 -7
- package/lib/upload/src/Upload.d.ts +1 -1
- package/lib/upload/src/Upload.js +16 -16
- package/lib/upload/src/styles/index.cssr.js +36 -36
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +38 -36
- package/web-types.json +252 -11
|
@@ -2,7 +2,7 @@ import { PropType, ExtractPropTypes, Ref } from 'vue';
|
|
|
2
2
|
import { FollowerPlacement } from 'vueuc';
|
|
3
3
|
import type { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
|
|
4
4
|
import { DatePickerType } from './config';
|
|
5
|
-
import type { OnUpdateValue, Value, IsDateDisabled, IsTimeDisabled, Shortcuts, FirstDayOfWeek } from './interface';
|
|
5
|
+
import type { OnUpdateValue, Value, IsDateDisabled, IsTimeDisabled, Shortcuts, FirstDayOfWeek, DefaultTime } from './interface';
|
|
6
6
|
declare const datePickerProps: {
|
|
7
7
|
readonly to: {
|
|
8
8
|
type: PropType<string | boolean | HTMLElement>;
|
|
@@ -18,6 +18,7 @@ declare const datePickerProps: {
|
|
|
18
18
|
readonly type: PropType<Value | null>;
|
|
19
19
|
readonly default: null;
|
|
20
20
|
};
|
|
21
|
+
readonly defaultTime: PropType<DefaultTime>;
|
|
21
22
|
readonly disabled: {
|
|
22
23
|
readonly type: PropType<boolean | undefined>;
|
|
23
24
|
readonly default: undefined;
|
|
@@ -109,12 +110,14 @@ declare const datePickerProps: {
|
|
|
109
110
|
calendarLeftPaddingDatetimerange: string;
|
|
110
111
|
calendarLeftPaddingMonth: string;
|
|
111
112
|
calendarLeftPaddingYear: string;
|
|
113
|
+
calendarLeftPaddingQuarter: string;
|
|
112
114
|
calendarRightPaddingDate: string;
|
|
113
115
|
calendarRightPaddingDatetime: string;
|
|
114
116
|
calendarRightPaddingDaterange: string;
|
|
115
117
|
calendarRightPaddingDatetimerange: string;
|
|
116
118
|
calendarRightPaddingMonth: string;
|
|
117
119
|
calendarRightPaddingYear: string;
|
|
120
|
+
calendarRightPaddingQuarter: string;
|
|
118
121
|
}, {
|
|
119
122
|
Input: import("../../_mixins").Theme<"Input", {
|
|
120
123
|
countTextColor: string;
|
|
@@ -718,12 +721,14 @@ declare const datePickerProps: {
|
|
|
718
721
|
calendarLeftPaddingDatetimerange: string;
|
|
719
722
|
calendarLeftPaddingMonth: string;
|
|
720
723
|
calendarLeftPaddingYear: string;
|
|
724
|
+
calendarLeftPaddingQuarter: string;
|
|
721
725
|
calendarRightPaddingDate: string;
|
|
722
726
|
calendarRightPaddingDatetime: string;
|
|
723
727
|
calendarRightPaddingDaterange: string;
|
|
724
728
|
calendarRightPaddingDatetimerange: string;
|
|
725
729
|
calendarRightPaddingMonth: string;
|
|
726
730
|
calendarRightPaddingYear: string;
|
|
731
|
+
calendarRightPaddingQuarter: string;
|
|
727
732
|
}, {
|
|
728
733
|
Input: import("../../_mixins").Theme<"Input", {
|
|
729
734
|
countTextColor: string;
|
|
@@ -1327,12 +1332,14 @@ declare const datePickerProps: {
|
|
|
1327
1332
|
calendarLeftPaddingDatetimerange: string;
|
|
1328
1333
|
calendarLeftPaddingMonth: string;
|
|
1329
1334
|
calendarLeftPaddingYear: string;
|
|
1335
|
+
calendarLeftPaddingQuarter: string;
|
|
1330
1336
|
calendarRightPaddingDate: string;
|
|
1331
1337
|
calendarRightPaddingDatetime: string;
|
|
1332
1338
|
calendarRightPaddingDaterange: string;
|
|
1333
1339
|
calendarRightPaddingDatetimerange: string;
|
|
1334
1340
|
calendarRightPaddingMonth: string;
|
|
1335
1341
|
calendarRightPaddingYear: string;
|
|
1342
|
+
calendarRightPaddingQuarter: string;
|
|
1336
1343
|
}, {
|
|
1337
1344
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1338
1345
|
countTextColor: string;
|
|
@@ -1907,6 +1914,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1907
1914
|
readonly type: PropType<Value | null>;
|
|
1908
1915
|
readonly default: null;
|
|
1909
1916
|
};
|
|
1917
|
+
readonly defaultTime: PropType<DefaultTime>;
|
|
1910
1918
|
readonly disabled: {
|
|
1911
1919
|
readonly type: PropType<boolean | undefined>;
|
|
1912
1920
|
readonly default: undefined;
|
|
@@ -1998,12 +2006,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1998
2006
|
calendarLeftPaddingDatetimerange: string;
|
|
1999
2007
|
calendarLeftPaddingMonth: string;
|
|
2000
2008
|
calendarLeftPaddingYear: string;
|
|
2009
|
+
calendarLeftPaddingQuarter: string;
|
|
2001
2010
|
calendarRightPaddingDate: string;
|
|
2002
2011
|
calendarRightPaddingDatetime: string;
|
|
2003
2012
|
calendarRightPaddingDaterange: string;
|
|
2004
2013
|
calendarRightPaddingDatetimerange: string;
|
|
2005
2014
|
calendarRightPaddingMonth: string;
|
|
2006
2015
|
calendarRightPaddingYear: string;
|
|
2016
|
+
calendarRightPaddingQuarter: string;
|
|
2007
2017
|
}, {
|
|
2008
2018
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2009
2019
|
countTextColor: string;
|
|
@@ -2607,12 +2617,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2607
2617
|
calendarLeftPaddingDatetimerange: string;
|
|
2608
2618
|
calendarLeftPaddingMonth: string;
|
|
2609
2619
|
calendarLeftPaddingYear: string;
|
|
2620
|
+
calendarLeftPaddingQuarter: string;
|
|
2610
2621
|
calendarRightPaddingDate: string;
|
|
2611
2622
|
calendarRightPaddingDatetime: string;
|
|
2612
2623
|
calendarRightPaddingDaterange: string;
|
|
2613
2624
|
calendarRightPaddingDatetimerange: string;
|
|
2614
2625
|
calendarRightPaddingMonth: string;
|
|
2615
2626
|
calendarRightPaddingYear: string;
|
|
2627
|
+
calendarRightPaddingQuarter: string;
|
|
2616
2628
|
}, {
|
|
2617
2629
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2618
2630
|
countTextColor: string;
|
|
@@ -3216,12 +3228,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3216
3228
|
calendarLeftPaddingDatetimerange: string;
|
|
3217
3229
|
calendarLeftPaddingMonth: string;
|
|
3218
3230
|
calendarLeftPaddingYear: string;
|
|
3231
|
+
calendarLeftPaddingQuarter: string;
|
|
3219
3232
|
calendarRightPaddingDate: string;
|
|
3220
3233
|
calendarRightPaddingDatetime: string;
|
|
3221
3234
|
calendarRightPaddingDaterange: string;
|
|
3222
3235
|
calendarRightPaddingDatetimerange: string;
|
|
3223
3236
|
calendarRightPaddingMonth: string;
|
|
3224
3237
|
calendarRightPaddingYear: string;
|
|
3238
|
+
calendarRightPaddingQuarter: string;
|
|
3225
3239
|
}, {
|
|
3226
3240
|
Input: import("../../_mixins").Theme<"Input", {
|
|
3227
3241
|
countTextColor: string;
|
|
@@ -3991,12 +4005,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3991
4005
|
calendarLeftPaddingDatetimerange: string;
|
|
3992
4006
|
calendarLeftPaddingMonth: string;
|
|
3993
4007
|
calendarLeftPaddingYear: string;
|
|
4008
|
+
calendarLeftPaddingQuarter: string;
|
|
3994
4009
|
calendarRightPaddingDate: string;
|
|
3995
4010
|
calendarRightPaddingDatetime: string;
|
|
3996
4011
|
calendarRightPaddingDaterange: string;
|
|
3997
4012
|
calendarRightPaddingDatetimerange: string;
|
|
3998
4013
|
calendarRightPaddingMonth: string;
|
|
3999
4014
|
calendarRightPaddingYear: string;
|
|
4015
|
+
calendarRightPaddingQuarter: string;
|
|
4000
4016
|
};
|
|
4001
4017
|
peers: {
|
|
4002
4018
|
Input: import("../../_mixins").Theme<"Input", {
|
|
@@ -4846,53 +4862,53 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4846
4862
|
}>;
|
|
4847
4863
|
actions: import("vue").ComputedRef<string[] | undefined>;
|
|
4848
4864
|
triggerCssVars: import("vue").ComputedRef<{
|
|
4849
|
-
'--bezier': string;
|
|
4850
|
-
'--icon-color': string;
|
|
4851
|
-
'--icon-color-disabled': string;
|
|
4865
|
+
'--n-bezier': string;
|
|
4866
|
+
'--n-icon-color': string;
|
|
4867
|
+
'--n-icon-color-disabled': string;
|
|
4852
4868
|
}>;
|
|
4853
4869
|
cssVars: import("vue").ComputedRef<{
|
|
4854
|
-
'--bezier': string;
|
|
4855
|
-
'--panel-border-radius': string;
|
|
4856
|
-
'--panel-color': string;
|
|
4857
|
-
'--panel-box-shadow': string;
|
|
4858
|
-
'--panel-text-color': string;
|
|
4859
|
-
'--panel-header-padding': string;
|
|
4860
|
-
'--panel-header-divider-color': string;
|
|
4861
|
-
'--calendar-left-padding': string;
|
|
4862
|
-
'--calendar-right-padding': string;
|
|
4863
|
-
'--calendar-title-height': string;
|
|
4864
|
-
'--calendar-title-padding': string;
|
|
4865
|
-
'--calendar-title-font-size': string;
|
|
4866
|
-
'--calendar-title-font-weight': string;
|
|
4867
|
-
'--calendar-title-text-color': string;
|
|
4868
|
-
'--calendar-title-grid-template-columns': string;
|
|
4869
|
-
'--calendar-days-height': string;
|
|
4870
|
-
'--calendar-days-divider-color': string;
|
|
4871
|
-
'--calendar-days-font-size': string;
|
|
4872
|
-
'--calendar-days-text-color': string;
|
|
4873
|
-
'--calendar-divider-color': string;
|
|
4874
|
-
'--panel-action-padding': string;
|
|
4875
|
-
'--panel-extra-footer-padding': string;
|
|
4876
|
-
'--panel-action-divider-color': string;
|
|
4877
|
-
'--item-font-size': string;
|
|
4878
|
-
'--item-border-radius': string;
|
|
4879
|
-
'--item-size': string;
|
|
4880
|
-
'--item-cell-width': string;
|
|
4881
|
-
'--item-cell-height': string;
|
|
4882
|
-
'--item-text-color': string;
|
|
4883
|
-
'--item-color-included': string;
|
|
4884
|
-
'--item-color-disabled': string;
|
|
4885
|
-
'--item-color-hover': string;
|
|
4886
|
-
'--item-color-active': string;
|
|
4887
|
-
'--item-text-color-disabled': string;
|
|
4888
|
-
'--item-text-color-active': string;
|
|
4889
|
-
'--scroll-item-width': string;
|
|
4890
|
-
'--scroll-item-height': string;
|
|
4891
|
-
'--scroll-item-border-radius': string;
|
|
4892
|
-
'--arrow-size': string;
|
|
4893
|
-
'--arrow-color': string;
|
|
4894
|
-
'--icon-color': string;
|
|
4895
|
-
'--icon-color-disabled': string;
|
|
4870
|
+
'--n-bezier': string;
|
|
4871
|
+
'--n-panel-border-radius': string;
|
|
4872
|
+
'--n-panel-color': string;
|
|
4873
|
+
'--n-panel-box-shadow': string;
|
|
4874
|
+
'--n-panel-text-color': string;
|
|
4875
|
+
'--n-panel-header-padding': string;
|
|
4876
|
+
'--n-panel-header-divider-color': string;
|
|
4877
|
+
'--n-calendar-left-padding': string;
|
|
4878
|
+
'--n-calendar-right-padding': string;
|
|
4879
|
+
'--n-calendar-title-height': string;
|
|
4880
|
+
'--n-calendar-title-padding': string;
|
|
4881
|
+
'--n-calendar-title-font-size': string;
|
|
4882
|
+
'--n-calendar-title-font-weight': string;
|
|
4883
|
+
'--n-calendar-title-text-color': string;
|
|
4884
|
+
'--n-calendar-title-grid-template-columns': string;
|
|
4885
|
+
'--n-calendar-days-height': string;
|
|
4886
|
+
'--n-calendar-days-divider-color': string;
|
|
4887
|
+
'--n-calendar-days-font-size': string;
|
|
4888
|
+
'--n-calendar-days-text-color': string;
|
|
4889
|
+
'--n-calendar-divider-color': string;
|
|
4890
|
+
'--n-panel-action-padding': string;
|
|
4891
|
+
'--n-panel-extra-footer-padding': string;
|
|
4892
|
+
'--n-panel-action-divider-color': string;
|
|
4893
|
+
'--n-item-font-size': string;
|
|
4894
|
+
'--n-item-border-radius': string;
|
|
4895
|
+
'--n-item-size': string;
|
|
4896
|
+
'--n-item-cell-width': string;
|
|
4897
|
+
'--n-item-cell-height': string;
|
|
4898
|
+
'--n-item-text-color': string;
|
|
4899
|
+
'--n-item-color-included': string;
|
|
4900
|
+
'--n-item-color-disabled': string;
|
|
4901
|
+
'--n-item-color-hover': string;
|
|
4902
|
+
'--n-item-color-active': string;
|
|
4903
|
+
'--n-item-text-color-disabled': string;
|
|
4904
|
+
'--n-item-text-color-active': string;
|
|
4905
|
+
'--n-scroll-item-width': string;
|
|
4906
|
+
'--n-scroll-item-height': string;
|
|
4907
|
+
'--n-scroll-item-border-radius': string;
|
|
4908
|
+
'--n-arrow-size': string;
|
|
4909
|
+
'--n-arrow-color': string;
|
|
4910
|
+
'--n-icon-color': string;
|
|
4911
|
+
'--n-icon-color-disabled': string;
|
|
4896
4912
|
}>;
|
|
4897
4913
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
4898
4914
|
readonly to?: unknown;
|
|
@@ -4900,6 +4916,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4900
4916
|
readonly clearable?: unknown;
|
|
4901
4917
|
readonly updateValueOnClose?: unknown;
|
|
4902
4918
|
readonly defaultValue?: unknown;
|
|
4919
|
+
readonly defaultTime?: unknown;
|
|
4903
4920
|
readonly disabled?: unknown;
|
|
4904
4921
|
readonly placement?: unknown;
|
|
4905
4922
|
readonly value?: unknown;
|
|
@@ -4998,12 +5015,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4998
5015
|
calendarLeftPaddingDatetimerange: string;
|
|
4999
5016
|
calendarLeftPaddingMonth: string;
|
|
5000
5017
|
calendarLeftPaddingYear: string;
|
|
5018
|
+
calendarLeftPaddingQuarter: string;
|
|
5001
5019
|
calendarRightPaddingDate: string;
|
|
5002
5020
|
calendarRightPaddingDatetime: string;
|
|
5003
5021
|
calendarRightPaddingDaterange: string;
|
|
5004
5022
|
calendarRightPaddingDatetimerange: string;
|
|
5005
5023
|
calendarRightPaddingMonth: string;
|
|
5006
5024
|
calendarRightPaddingYear: string;
|
|
5025
|
+
calendarRightPaddingQuarter: string;
|
|
5007
5026
|
}, {
|
|
5008
5027
|
Input: import("../../_mixins").Theme<"Input", {
|
|
5009
5028
|
countTextColor: string;
|
|
@@ -5607,12 +5626,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5607
5626
|
calendarLeftPaddingDatetimerange: string;
|
|
5608
5627
|
calendarLeftPaddingMonth: string;
|
|
5609
5628
|
calendarLeftPaddingYear: string;
|
|
5629
|
+
calendarLeftPaddingQuarter: string;
|
|
5610
5630
|
calendarRightPaddingDate: string;
|
|
5611
5631
|
calendarRightPaddingDatetime: string;
|
|
5612
5632
|
calendarRightPaddingDaterange: string;
|
|
5613
5633
|
calendarRightPaddingDatetimerange: string;
|
|
5614
5634
|
calendarRightPaddingMonth: string;
|
|
5615
5635
|
calendarRightPaddingYear: string;
|
|
5636
|
+
calendarRightPaddingQuarter: string;
|
|
5616
5637
|
}, {
|
|
5617
5638
|
Input: import("../../_mixins").Theme<"Input", {
|
|
5618
5639
|
countTextColor: string;
|
|
@@ -6216,12 +6237,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6216
6237
|
calendarLeftPaddingDatetimerange: string;
|
|
6217
6238
|
calendarLeftPaddingMonth: string;
|
|
6218
6239
|
calendarLeftPaddingYear: string;
|
|
6240
|
+
calendarLeftPaddingQuarter: string;
|
|
6219
6241
|
calendarRightPaddingDate: string;
|
|
6220
6242
|
calendarRightPaddingDatetime: string;
|
|
6221
6243
|
calendarRightPaddingDaterange: string;
|
|
6222
6244
|
calendarRightPaddingDatetimerange: string;
|
|
6223
6245
|
calendarRightPaddingMonth: string;
|
|
6224
6246
|
calendarRightPaddingYear: string;
|
|
6247
|
+
calendarRightPaddingQuarter: string;
|
|
6225
6248
|
}, {
|
|
6226
6249
|
Input: import("../../_mixins").Theme<"Input", {
|
|
6227
6250
|
countTextColor: string;
|
|
@@ -6787,6 +6810,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6787
6810
|
onUpdateValue?: MaybeArray<OnUpdateValue> | undefined;
|
|
6788
6811
|
isDateDisabled?: IsDateDisabled | undefined;
|
|
6789
6812
|
actions?: ("clear" | "confirm" | "now")[] | undefined;
|
|
6813
|
+
defaultTime?: DefaultTime | undefined;
|
|
6790
6814
|
startPlaceholder?: string | undefined;
|
|
6791
6815
|
endPlaceholder?: string | undefined;
|
|
6792
6816
|
timeFormat?: string | undefined;
|
|
@@ -26,7 +26,7 @@ const datePickerProps = Object.assign(Object.assign({}, useTheme.props), { to: u
|
|
|
26
26
|
}, clearable: Boolean, updateValueOnClose: Boolean, defaultValue: {
|
|
27
27
|
type: [Number, Array],
|
|
28
28
|
default: null
|
|
29
|
-
}, disabled: {
|
|
29
|
+
}, defaultTime: [Number, String, Array], disabled: {
|
|
30
30
|
type: Boolean,
|
|
31
31
|
default: undefined
|
|
32
32
|
}, placement: {
|
|
@@ -101,6 +101,8 @@ export default defineComponent({
|
|
|
101
101
|
return localeRef.value.monthPlaceholder;
|
|
102
102
|
case 'year':
|
|
103
103
|
return localeRef.value.yearPlaceholder;
|
|
104
|
+
case 'quarter':
|
|
105
|
+
return localeRef.value.quarterPlaceholder;
|
|
104
106
|
default:
|
|
105
107
|
return '';
|
|
106
108
|
}
|
|
@@ -152,6 +154,8 @@ export default defineComponent({
|
|
|
152
154
|
return localeRef.value.yearTypeFormat;
|
|
153
155
|
case 'month':
|
|
154
156
|
return localeRef.value.monthTypeFormat;
|
|
157
|
+
case 'quarter':
|
|
158
|
+
return localeRef.value.quarterFormat;
|
|
155
159
|
}
|
|
156
160
|
});
|
|
157
161
|
const mergedActionsRef = computed(() => {
|
|
@@ -177,6 +181,9 @@ export default defineComponent({
|
|
|
177
181
|
case 'year': {
|
|
178
182
|
return ['clear', 'now'];
|
|
179
183
|
}
|
|
184
|
+
case 'quarter': {
|
|
185
|
+
return ['clear', 'now', 'confirm'];
|
|
186
|
+
}
|
|
180
187
|
default: {
|
|
181
188
|
warn('data-picker', "The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");
|
|
182
189
|
break;
|
|
@@ -259,7 +266,7 @@ export default defineComponent({
|
|
|
259
266
|
disableUpdateOnClose
|
|
260
267
|
});
|
|
261
268
|
}
|
|
262
|
-
function
|
|
269
|
+
function scrollPickerColumns(value) {
|
|
263
270
|
if (!panelInstRef.value)
|
|
264
271
|
return;
|
|
265
272
|
const { monthScrollRef, yearScrollRef } = panelInstRef.value;
|
|
@@ -405,8 +412,9 @@ export default defineComponent({
|
|
|
405
412
|
if (mergedDisabledRef.value || mergedShowRef.value)
|
|
406
413
|
return;
|
|
407
414
|
doUpdateShow(true);
|
|
408
|
-
|
|
409
|
-
|
|
415
|
+
const { type } = props;
|
|
416
|
+
if (type === 'month' || type === 'year' || type === 'quarter') {
|
|
417
|
+
void nextTick(scrollPickerColumns);
|
|
410
418
|
}
|
|
411
419
|
}
|
|
412
420
|
function closeCalendar({ returnFocus, disableUpdateOnClose }) {
|
|
@@ -442,7 +450,7 @@ export default defineComponent({
|
|
|
442
450
|
// use pending value to do validation
|
|
443
451
|
const uniVaidation = uniCalendarValidation(props, pendingValueRef);
|
|
444
452
|
const dualValidation = dualCalendarValidation(props, pendingValueRef);
|
|
445
|
-
provide(datePickerInjectionKey, Object.assign(Object.assign(Object.assign({
|
|
453
|
+
provide(datePickerInjectionKey, Object.assign(Object.assign(Object.assign({ scrollPickerColumns,
|
|
446
454
|
mergedClsPrefixRef, mergedThemeRef: themeRef, timePickerSizeRef,
|
|
447
455
|
localeRef,
|
|
448
456
|
dateLocaleRef, firstDayOfWeekRef: toRef(props, 'firstDayOfWeek'), isDateDisabledRef: toRef(props, 'isDateDisabled'), rangesRef: toRef(props, 'ranges'), closeOnSelectRef: toRef(props, 'closeOnSelect'), updateValueOnCloseRef: toRef(props, 'updateValueOnClose') }, uniVaidation), dualValidation), { datePickerSlots: slots }));
|
|
@@ -489,64 +497,64 @@ export default defineComponent({
|
|
|
489
497
|
triggerCssVars: computed(() => {
|
|
490
498
|
const { common: { cubicBezierEaseInOut }, self: { iconColor, iconColorDisabled } } = themeRef.value;
|
|
491
499
|
return {
|
|
492
|
-
'--bezier': cubicBezierEaseInOut,
|
|
493
|
-
'--icon-color': iconColor,
|
|
494
|
-
'--icon-color-disabled': iconColorDisabled
|
|
500
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
501
|
+
'--n-icon-color': iconColor,
|
|
502
|
+
'--n-icon-color-disabled': iconColorDisabled
|
|
495
503
|
};
|
|
496
504
|
}),
|
|
497
505
|
cssVars: computed(() => {
|
|
498
506
|
const { type } = props;
|
|
499
507
|
const { common: { cubicBezierEaseInOut }, self: { calendarTitleFontSize, calendarDaysFontSize, itemFontSize, itemTextColor, itemColorDisabled, itemColorIncluded, itemColorHover, itemColorActive, itemBorderRadius, itemTextColorDisabled, itemTextColorActive, panelColor, panelTextColor, arrowColor, calendarTitleTextColor, panelActionDividerColor, panelHeaderDividerColor, calendarDaysDividerColor, panelBoxShadow, panelBorderRadius, calendarTitleFontWeight, panelExtraFooterPadding, panelActionPadding, itemSize, itemCellWidth, itemCellHeight, scrollItemWidth, scrollItemHeight, calendarTitlePadding, calendarTitleHeight, calendarDaysHeight, calendarDaysTextColor, arrowSize, panelHeaderPadding, calendarDividerColor, calendarTitleGridTempateColumns, iconColor, iconColorDisabled, scrollItemBorderRadius, [createKey('calendarLeftPadding', type)]: calendarLeftPadding, [createKey('calendarRightPadding', type)]: calendarRightPadding } } = themeRef.value;
|
|
500
508
|
return {
|
|
501
|
-
'--bezier': cubicBezierEaseInOut,
|
|
502
|
-
'--panel-border-radius': panelBorderRadius,
|
|
503
|
-
'--panel-color': panelColor,
|
|
504
|
-
'--panel-box-shadow': panelBoxShadow,
|
|
505
|
-
'--panel-text-color': panelTextColor,
|
|
509
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
510
|
+
'--n-panel-border-radius': panelBorderRadius,
|
|
511
|
+
'--n-panel-color': panelColor,
|
|
512
|
+
'--n-panel-box-shadow': panelBoxShadow,
|
|
513
|
+
'--n-panel-text-color': panelTextColor,
|
|
506
514
|
// panel header
|
|
507
|
-
'--panel-header-padding': panelHeaderPadding,
|
|
508
|
-
'--panel-header-divider-color': panelHeaderDividerColor,
|
|
515
|
+
'--n-panel-header-padding': panelHeaderPadding,
|
|
516
|
+
'--n-panel-header-divider-color': panelHeaderDividerColor,
|
|
509
517
|
// panel calendar
|
|
510
|
-
'--calendar-left-padding': calendarLeftPadding,
|
|
511
|
-
'--calendar-right-padding': calendarRightPadding,
|
|
512
|
-
'--calendar-title-height': calendarTitleHeight,
|
|
513
|
-
'--calendar-title-padding': calendarTitlePadding,
|
|
514
|
-
'--calendar-title-font-size': calendarTitleFontSize,
|
|
515
|
-
'--calendar-title-font-weight': calendarTitleFontWeight,
|
|
516
|
-
'--calendar-title-text-color': calendarTitleTextColor,
|
|
517
|
-
'--calendar-title-grid-template-columns': calendarTitleGridTempateColumns,
|
|
518
|
-
'--calendar-days-height': calendarDaysHeight,
|
|
519
|
-
'--calendar-days-divider-color': calendarDaysDividerColor,
|
|
520
|
-
'--calendar-days-font-size': calendarDaysFontSize,
|
|
521
|
-
'--calendar-days-text-color': calendarDaysTextColor,
|
|
522
|
-
'--calendar-divider-color': calendarDividerColor,
|
|
518
|
+
'--n-calendar-left-padding': calendarLeftPadding,
|
|
519
|
+
'--n-calendar-right-padding': calendarRightPadding,
|
|
520
|
+
'--n-calendar-title-height': calendarTitleHeight,
|
|
521
|
+
'--n-calendar-title-padding': calendarTitlePadding,
|
|
522
|
+
'--n-calendar-title-font-size': calendarTitleFontSize,
|
|
523
|
+
'--n-calendar-title-font-weight': calendarTitleFontWeight,
|
|
524
|
+
'--n-calendar-title-text-color': calendarTitleTextColor,
|
|
525
|
+
'--n-calendar-title-grid-template-columns': calendarTitleGridTempateColumns,
|
|
526
|
+
'--n-calendar-days-height': calendarDaysHeight,
|
|
527
|
+
'--n-calendar-days-divider-color': calendarDaysDividerColor,
|
|
528
|
+
'--n-calendar-days-font-size': calendarDaysFontSize,
|
|
529
|
+
'--n-calendar-days-text-color': calendarDaysTextColor,
|
|
530
|
+
'--n-calendar-divider-color': calendarDividerColor,
|
|
523
531
|
// panel action
|
|
524
|
-
'--panel-action-padding': panelActionPadding,
|
|
525
|
-
'--panel-extra-footer-padding': panelExtraFooterPadding,
|
|
526
|
-
'--panel-action-divider-color': panelActionDividerColor,
|
|
532
|
+
'--n-panel-action-padding': panelActionPadding,
|
|
533
|
+
'--n-panel-extra-footer-padding': panelExtraFooterPadding,
|
|
534
|
+
'--n-panel-action-divider-color': panelActionDividerColor,
|
|
527
535
|
// panel item
|
|
528
|
-
'--item-font-size': itemFontSize,
|
|
529
|
-
'--item-border-radius': itemBorderRadius,
|
|
530
|
-
'--item-size': itemSize,
|
|
531
|
-
'--item-cell-width': itemCellWidth,
|
|
532
|
-
'--item-cell-height': itemCellHeight,
|
|
533
|
-
'--item-text-color': itemTextColor,
|
|
534
|
-
'--item-color-included': itemColorIncluded,
|
|
535
|
-
'--item-color-disabled': itemColorDisabled,
|
|
536
|
-
'--item-color-hover': itemColorHover,
|
|
537
|
-
'--item-color-active': itemColorActive,
|
|
538
|
-
'--item-text-color-disabled': itemTextColorDisabled,
|
|
539
|
-
'--item-text-color-active': itemTextColorActive,
|
|
536
|
+
'--n-item-font-size': itemFontSize,
|
|
537
|
+
'--n-item-border-radius': itemBorderRadius,
|
|
538
|
+
'--n-item-size': itemSize,
|
|
539
|
+
'--n-item-cell-width': itemCellWidth,
|
|
540
|
+
'--n-item-cell-height': itemCellHeight,
|
|
541
|
+
'--n-item-text-color': itemTextColor,
|
|
542
|
+
'--n-item-color-included': itemColorIncluded,
|
|
543
|
+
'--n-item-color-disabled': itemColorDisabled,
|
|
544
|
+
'--n-item-color-hover': itemColorHover,
|
|
545
|
+
'--n-item-color-active': itemColorActive,
|
|
546
|
+
'--n-item-text-color-disabled': itemTextColorDisabled,
|
|
547
|
+
'--n-item-text-color-active': itemTextColorActive,
|
|
540
548
|
// scroll item
|
|
541
|
-
'--scroll-item-width': scrollItemWidth,
|
|
542
|
-
'--scroll-item-height': scrollItemHeight,
|
|
543
|
-
'--scroll-item-border-radius': scrollItemBorderRadius,
|
|
549
|
+
'--n-scroll-item-width': scrollItemWidth,
|
|
550
|
+
'--n-scroll-item-height': scrollItemHeight,
|
|
551
|
+
'--n-scroll-item-border-radius': scrollItemBorderRadius,
|
|
544
552
|
// panel arrow
|
|
545
|
-
'--arrow-size': arrowSize,
|
|
546
|
-
'--arrow-color': arrowColor,
|
|
553
|
+
'--n-arrow-size': arrowSize,
|
|
554
|
+
'--n-arrow-color': arrowColor,
|
|
547
555
|
// icon in trigger
|
|
548
|
-
'--icon-color': iconColor,
|
|
549
|
-
'--icon-color-disabled': iconColorDisabled
|
|
556
|
+
'--n-icon-color': iconColor,
|
|
557
|
+
'--n-icon-color-disabled': iconColorDisabled
|
|
550
558
|
};
|
|
551
559
|
})
|
|
552
560
|
};
|
|
@@ -578,7 +586,8 @@ export default defineComponent({
|
|
|
578
586
|
active: this.mergedShow,
|
|
579
587
|
actions: this.actions,
|
|
580
588
|
shortcuts: this.shortcuts,
|
|
581
|
-
style: this.cssVars
|
|
589
|
+
style: this.cssVars,
|
|
590
|
+
defaultTime: this.defaultTime
|
|
582
591
|
};
|
|
583
592
|
const { mergedClsPrefix } = this;
|
|
584
593
|
return (h("div", { ref: "triggerElRef", class: [
|
|
@@ -607,7 +616,7 @@ export default defineComponent({
|
|
|
607
616
|
h(VFollower, { show: this.mergedShow, containerClass: this.namespace, to: this.adjustedTo, teleportDisabled: this.adjustedTo === useAdjustedTo.tdkey, placement: "bottom-start" }, {
|
|
608
617
|
default: () => (h(Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted }, {
|
|
609
618
|
default: () => this.mergedShow
|
|
610
|
-
? withDirectives(this.type === 'datetime' ? (h(DatetimePanel, Object.assign({}, commonPanelProps))) : this.type === 'daterange' ? (h(DaterangePanel, Object.assign({}, commonPanelProps))) : this.type === 'datetimerange' ? (h(DatetimerangePanel, Object.assign({}, commonPanelProps))) : this.type === 'month' ? (h(MonthPanel, Object.assign({}, commonPanelProps, { type: "month", key: "month" }))) : this.type === 'year' ? (h(MonthPanel, Object.assign({}, commonPanelProps, { type: "year", key: "year" }))) : (h(DatePanel, Object.assign({}, commonPanelProps))), [[clickoutside, this.handleClickOutside]])
|
|
619
|
+
? withDirectives(this.type === 'datetime' ? (h(DatetimePanel, Object.assign({}, commonPanelProps))) : this.type === 'daterange' ? (h(DaterangePanel, Object.assign({}, commonPanelProps))) : this.type === 'datetimerange' ? (h(DatetimerangePanel, Object.assign({}, commonPanelProps))) : this.type === 'month' ? (h(MonthPanel, Object.assign({}, commonPanelProps, { type: "month", key: "month" }))) : this.type === 'year' ? (h(MonthPanel, Object.assign({}, commonPanelProps, { type: "year", key: "year" }))) : this.type === 'quarter' ? (h(MonthPanel, Object.assign({}, commonPanelProps, { type: "quarter", key: "quarter" }))) : (h(DatePanel, Object.assign({}, commonPanelProps))), [[clickoutside, this.handleClickOutside]])
|
|
611
620
|
: null
|
|
612
621
|
}))
|
|
613
622
|
})
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const START_YEAR = 1901;
|
|
2
2
|
export declare const MONTH_ITEM_HEIGHT = 40;
|
|
3
|
-
export declare type DatePickerType = 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'month' | 'year';
|
|
3
|
+
export declare type DatePickerType = 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'month' | 'year' | 'quarter';
|
|
@@ -7,6 +7,7 @@ import { MergedTheme } from '../../_mixins';
|
|
|
7
7
|
import { DatePickerTheme } from '../styles/light';
|
|
8
8
|
import { uniCalendarValidation, dualCalendarValidation } from './validation-utils';
|
|
9
9
|
export declare type Value = number | [number, number];
|
|
10
|
+
export declare type DefaultTime = string | [string | undefined, string | undefined];
|
|
10
11
|
export declare type Shortcuts = Record<string, number | (() => number)> | Record<string, [number, number] | (() => [number, number])>;
|
|
11
12
|
export declare type OnUpdateValue = (value: number & (number | null) & [number, number] & ([number, number] | null)) => void;
|
|
12
13
|
export declare type OnUpdateValueImpl = (value: Value | null) => void;
|
|
@@ -34,7 +35,7 @@ export declare type DatePickerInjection = {
|
|
|
34
35
|
updateValueOnCloseRef: Ref<boolean>;
|
|
35
36
|
firstDayOfWeekRef: Ref<FirstDayOfWeek | undefined>;
|
|
36
37
|
datePickerSlots: Slots;
|
|
37
|
-
|
|
38
|
+
scrollPickerColumns: (value?: number) => void;
|
|
38
39
|
} & ReturnType<typeof uniCalendarValidation> & ReturnType<typeof dualCalendarValidation>;
|
|
39
40
|
export declare const datePickerInjectionKey: InjectionKey<DatePickerInjection>;
|
|
40
41
|
export declare type IsDateDisabled = IsSingleDateDisabled | IsRangeDateDisabled;
|
|
@@ -4,19 +4,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4
4
|
readonly default: () => string[];
|
|
5
5
|
};
|
|
6
6
|
readonly active: BooleanConstructor;
|
|
7
|
-
readonly dateFormat:
|
|
8
|
-
readonly type: StringConstructor;
|
|
9
|
-
readonly default: "yyyy-MM-dd";
|
|
10
|
-
};
|
|
7
|
+
readonly dateFormat: StringConstructor;
|
|
11
8
|
readonly timeFormat: {
|
|
12
9
|
readonly type: StringConstructor;
|
|
13
|
-
readonly
|
|
10
|
+
readonly value: "HH:mm:ss";
|
|
14
11
|
};
|
|
15
12
|
readonly value: {
|
|
16
13
|
readonly type: import("vue").PropType<import("../interface").Value | null>;
|
|
17
14
|
readonly default: null;
|
|
18
15
|
};
|
|
19
16
|
readonly shortcuts: import("vue").PropType<import("../interface").Shortcuts>;
|
|
17
|
+
readonly defaultTime: import("vue").PropType<import("../interface").DefaultTime>;
|
|
20
18
|
readonly onConfirm: FunctionConstructor;
|
|
21
19
|
readonly onClose: import("vue").PropType<import("../interface").OnClose>;
|
|
22
20
|
readonly onTabOut: FunctionConstructor;
|
|
@@ -25,7 +23,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
23
|
readonly required: true;
|
|
26
24
|
};
|
|
27
25
|
}, {
|
|
28
|
-
handleDateClick: (dateItem: import("../utils").DateItem | import("../utils").MonthItem | import("../utils").YearItem) => void;
|
|
26
|
+
handleDateClick: (dateItem: import("../utils").DateItem | import("../utils").MonthItem | import("../utils").YearItem | import("../utils").QuarterItem) => void;
|
|
29
27
|
handleDateInputBlur: () => void;
|
|
30
28
|
handleDateInput: (value: string) => void;
|
|
31
29
|
handleTimePickerChange: (value: number | null) => void;
|
|
@@ -208,12 +206,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
208
206
|
calendarLeftPaddingDatetimerange: string;
|
|
209
207
|
calendarLeftPaddingMonth: string;
|
|
210
208
|
calendarLeftPaddingYear: string;
|
|
209
|
+
calendarLeftPaddingQuarter: string;
|
|
211
210
|
calendarRightPaddingDate: string;
|
|
212
211
|
calendarRightPaddingDatetime: string;
|
|
213
212
|
calendarRightPaddingDaterange: string;
|
|
214
213
|
calendarRightPaddingDatetimerange: string;
|
|
215
214
|
calendarRightPaddingMonth: string;
|
|
216
215
|
calendarRightPaddingYear: string;
|
|
216
|
+
calendarRightPaddingQuarter: string;
|
|
217
217
|
};
|
|
218
218
|
peers: {
|
|
219
219
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -1074,6 +1074,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1074
1074
|
monthTypeFormat: string;
|
|
1075
1075
|
dateFormat: string;
|
|
1076
1076
|
dateTimeFormat: string;
|
|
1077
|
+
quarterFormat: string;
|
|
1077
1078
|
clear: string;
|
|
1078
1079
|
now: string;
|
|
1079
1080
|
confirm: string;
|
|
@@ -1083,6 +1084,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1083
1084
|
datetimePlaceholder: string;
|
|
1084
1085
|
monthPlaceholder: string;
|
|
1085
1086
|
yearPlaceholder: string;
|
|
1087
|
+
quarterPlaceholder: string;
|
|
1086
1088
|
startDatePlaceholder: string;
|
|
1087
1089
|
endDatePlaceholder: string;
|
|
1088
1090
|
startDatetimePlaceholder: string;
|
|
@@ -1116,6 +1118,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1116
1118
|
dateArray: import("vue").ComputedRef<import("../utils").DateItem[]>;
|
|
1117
1119
|
monthArray: import("vue").ComputedRef<import("../utils").MonthItem[]>;
|
|
1118
1120
|
yearArray: import("vue").ComputedRef<import("../utils").YearItem[]>;
|
|
1121
|
+
quarterArray: import("vue").ComputedRef<import("../utils").QuarterItem[]>;
|
|
1119
1122
|
calendarYear: import("vue").ComputedRef<string>;
|
|
1120
1123
|
calendarMonth: import("vue").ComputedRef<string>;
|
|
1121
1124
|
weekdays: import("vue").ComputedRef<string[]>;
|
|
@@ -1135,6 +1138,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1135
1138
|
readonly timeFormat?: unknown;
|
|
1136
1139
|
readonly value?: unknown;
|
|
1137
1140
|
readonly shortcuts?: unknown;
|
|
1141
|
+
readonly defaultTime?: unknown;
|
|
1138
1142
|
readonly onConfirm?: unknown;
|
|
1139
1143
|
readonly onClose?: unknown;
|
|
1140
1144
|
readonly onTabOut?: unknown;
|
|
@@ -1142,21 +1146,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1142
1146
|
} & {
|
|
1143
1147
|
value: import("../interface").Value | null;
|
|
1144
1148
|
active: boolean;
|
|
1145
|
-
dateFormat: string;
|
|
1146
1149
|
onUpdateValue: import("../interface").OnPanelUpdateValue;
|
|
1147
1150
|
actions: string[];
|
|
1148
|
-
timeFormat: string;
|
|
1149
1151
|
} & {
|
|
1152
|
+
dateFormat?: string | undefined;
|
|
1150
1153
|
onTabOut?: Function | undefined;
|
|
1151
1154
|
onClose?: import("../interface").OnClose | undefined;
|
|
1152
1155
|
onConfirm?: Function | undefined;
|
|
1156
|
+
defaultTime?: import("../interface").DefaultTime | undefined;
|
|
1157
|
+
timeFormat?: string | undefined;
|
|
1153
1158
|
shortcuts?: import("../interface").Shortcuts | undefined;
|
|
1154
1159
|
}>, {
|
|
1155
1160
|
value: import("../interface").Value | null;
|
|
1156
1161
|
active: boolean;
|
|
1157
|
-
dateFormat: string;
|
|
1158
1162
|
actions: string[];
|
|
1159
|
-
timeFormat: string;
|
|
1160
1163
|
}>;
|
|
1161
1164
|
/**
|
|
1162
1165
|
* Date Panel
|
|
@@ -2,7 +2,7 @@ import { h, defineComponent, renderSlot, watchEffect } from 'vue';
|
|
|
2
2
|
import { NButton, NxButton } from '../../../button';
|
|
3
3
|
import { BackwardIcon, FastBackwardIcon, ForwardIcon, FastForwardIcon } from '../../../_internal/icons';
|
|
4
4
|
import { NBaseFocusDetector } from '../../../_internal';
|
|
5
|
-
import { useCalendar } from './use-calendar';
|
|
5
|
+
import { useCalendar, useCalendarProps } from './use-calendar';
|
|
6
6
|
import { warnOnce } from '../../../_utils';
|
|
7
7
|
/**
|
|
8
8
|
* Date Panel
|
|
@@ -12,7 +12,7 @@ import { warnOnce } from '../../../_utils';
|
|
|
12
12
|
*/
|
|
13
13
|
export default defineComponent({
|
|
14
14
|
name: 'DatePanel',
|
|
15
|
-
props:
|
|
15
|
+
props: useCalendarProps,
|
|
16
16
|
setup(props) {
|
|
17
17
|
if (process.env.NODE_ENV !== 'production') {
|
|
18
18
|
watchEffect(() => {
|