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
|
@@ -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;
|
|
@@ -206,12 +204,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
206
204
|
calendarLeftPaddingDatetimerange: string;
|
|
207
205
|
calendarLeftPaddingMonth: string;
|
|
208
206
|
calendarLeftPaddingYear: string;
|
|
207
|
+
calendarLeftPaddingQuarter: string;
|
|
209
208
|
calendarRightPaddingDate: string;
|
|
210
209
|
calendarRightPaddingDatetime: string;
|
|
211
210
|
calendarRightPaddingDaterange: string;
|
|
212
211
|
calendarRightPaddingDatetimerange: string;
|
|
213
212
|
calendarRightPaddingMonth: string;
|
|
214
213
|
calendarRightPaddingYear: string;
|
|
214
|
+
calendarRightPaddingQuarter: string;
|
|
215
215
|
};
|
|
216
216
|
peers: {
|
|
217
217
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -1072,6 +1072,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1072
1072
|
monthTypeFormat: string;
|
|
1073
1073
|
dateFormat: string;
|
|
1074
1074
|
dateTimeFormat: string;
|
|
1075
|
+
quarterFormat: string;
|
|
1075
1076
|
clear: string;
|
|
1076
1077
|
now: string;
|
|
1077
1078
|
confirm: string;
|
|
@@ -1081,6 +1082,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1081
1082
|
datetimePlaceholder: string;
|
|
1082
1083
|
monthPlaceholder: string;
|
|
1083
1084
|
yearPlaceholder: string;
|
|
1085
|
+
quarterPlaceholder: string;
|
|
1084
1086
|
startDatePlaceholder: string;
|
|
1085
1087
|
endDatePlaceholder: string;
|
|
1086
1088
|
startDatetimePlaceholder: string;
|
|
@@ -1135,6 +1137,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1135
1137
|
readonly timeFormat?: unknown;
|
|
1136
1138
|
readonly value?: unknown;
|
|
1137
1139
|
readonly shortcuts?: unknown;
|
|
1140
|
+
readonly defaultTime?: unknown;
|
|
1138
1141
|
readonly onConfirm?: unknown;
|
|
1139
1142
|
readonly onClose?: unknown;
|
|
1140
1143
|
readonly onTabOut?: unknown;
|
|
@@ -1142,20 +1145,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1142
1145
|
} & {
|
|
1143
1146
|
value: import("../interface").Value | null;
|
|
1144
1147
|
active: boolean;
|
|
1145
|
-
dateFormat: string;
|
|
1146
1148
|
onUpdateValue: import("../interface").OnPanelUpdateValue;
|
|
1147
1149
|
actions: unknown[];
|
|
1148
|
-
timeFormat: string;
|
|
1149
1150
|
} & {
|
|
1151
|
+
dateFormat?: string | undefined;
|
|
1150
1152
|
onTabOut?: Function | undefined;
|
|
1151
1153
|
onClose?: import("../interface").OnClose | undefined;
|
|
1152
1154
|
onConfirm?: Function | undefined;
|
|
1155
|
+
defaultTime?: import("../interface").DefaultTime | undefined;
|
|
1156
|
+
timeFormat?: string | undefined;
|
|
1153
1157
|
shortcuts?: import("../interface").Shortcuts | undefined;
|
|
1154
1158
|
}>, {
|
|
1155
1159
|
value: import("../interface").Value | null;
|
|
1156
1160
|
active: boolean;
|
|
1157
|
-
dateFormat: string;
|
|
1158
1161
|
actions: unknown[];
|
|
1159
|
-
timeFormat: string;
|
|
1160
1162
|
}>;
|
|
1161
1163
|
export default _default;
|
|
@@ -8,7 +8,7 @@ const use_dual_calendar_1 = require("./use-dual-calendar");
|
|
|
8
8
|
const _utils_1 = require("../../../_utils");
|
|
9
9
|
exports.default = (0, vue_1.defineComponent)({
|
|
10
10
|
name: 'DateRangePanel',
|
|
11
|
-
props: use_dual_calendar_1.
|
|
11
|
+
props: use_dual_calendar_1.useDualCalendarProps,
|
|
12
12
|
setup(props) {
|
|
13
13
|
if (process.env.NODE_ENV !== 'production') {
|
|
14
14
|
(0, vue_1.watchEffect)(() => {
|
|
@@ -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;
|
|
@@ -143,12 +141,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
143
141
|
fontWeightStrong: string;
|
|
144
142
|
cubicBezierEaseInOut: string;
|
|
145
143
|
cubicBezierEaseOut: string;
|
|
146
|
-
/**
|
|
147
|
-
* DateTime Panel
|
|
148
|
-
* Update picker value on:
|
|
149
|
-
* 1. confirm click
|
|
150
|
-
* 2. clear click
|
|
151
|
-
*/
|
|
152
144
|
cubicBezierEaseIn: string;
|
|
153
145
|
borderRadius: string;
|
|
154
146
|
borderRadiusSmall: string;
|
|
@@ -214,12 +206,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
214
206
|
calendarLeftPaddingDatetimerange: string;
|
|
215
207
|
calendarLeftPaddingMonth: string;
|
|
216
208
|
calendarLeftPaddingYear: string;
|
|
209
|
+
calendarLeftPaddingQuarter: string;
|
|
217
210
|
calendarRightPaddingDate: string;
|
|
218
211
|
calendarRightPaddingDatetime: string;
|
|
219
212
|
calendarRightPaddingDaterange: string;
|
|
220
213
|
calendarRightPaddingDatetimerange: string;
|
|
221
214
|
calendarRightPaddingMonth: string;
|
|
222
215
|
calendarRightPaddingYear: string;
|
|
216
|
+
calendarRightPaddingQuarter: string;
|
|
223
217
|
};
|
|
224
218
|
peers: {
|
|
225
219
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -1080,6 +1074,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1080
1074
|
monthTypeFormat: string;
|
|
1081
1075
|
dateFormat: string;
|
|
1082
1076
|
dateTimeFormat: string;
|
|
1077
|
+
quarterFormat: string;
|
|
1083
1078
|
clear: string;
|
|
1084
1079
|
now: string;
|
|
1085
1080
|
confirm: string;
|
|
@@ -1089,6 +1084,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1089
1084
|
datetimePlaceholder: string;
|
|
1090
1085
|
monthPlaceholder: string;
|
|
1091
1086
|
yearPlaceholder: string;
|
|
1087
|
+
quarterPlaceholder: string;
|
|
1092
1088
|
startDatePlaceholder: string;
|
|
1093
1089
|
endDatePlaceholder: string;
|
|
1094
1090
|
startDatetimePlaceholder: string;
|
|
@@ -1122,6 +1118,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1122
1118
|
dateArray: import("vue").ComputedRef<import("../utils").DateItem[]>;
|
|
1123
1119
|
monthArray: import("vue").ComputedRef<import("../utils").MonthItem[]>;
|
|
1124
1120
|
yearArray: import("vue").ComputedRef<import("../utils").YearItem[]>;
|
|
1121
|
+
quarterArray: import("vue").ComputedRef<import("../utils").QuarterItem[]>;
|
|
1125
1122
|
calendarYear: import("vue").ComputedRef<string>;
|
|
1126
1123
|
calendarMonth: import("vue").ComputedRef<string>;
|
|
1127
1124
|
weekdays: import("vue").ComputedRef<string[]>;
|
|
@@ -1141,6 +1138,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1141
1138
|
readonly timeFormat?: unknown;
|
|
1142
1139
|
readonly value?: unknown;
|
|
1143
1140
|
readonly shortcuts?: unknown;
|
|
1141
|
+
readonly defaultTime?: unknown;
|
|
1144
1142
|
readonly onConfirm?: unknown;
|
|
1145
1143
|
readonly onClose?: unknown;
|
|
1146
1144
|
readonly onTabOut?: unknown;
|
|
@@ -1148,21 +1146,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1148
1146
|
} & {
|
|
1149
1147
|
value: import("../interface").Value | null;
|
|
1150
1148
|
active: boolean;
|
|
1151
|
-
dateFormat: string;
|
|
1152
1149
|
onUpdateValue: import("../interface").OnPanelUpdateValue;
|
|
1153
1150
|
actions: string[];
|
|
1154
|
-
timeFormat: string;
|
|
1155
1151
|
} & {
|
|
1152
|
+
dateFormat?: string | undefined;
|
|
1156
1153
|
onTabOut?: Function | undefined;
|
|
1157
1154
|
onClose?: import("../interface").OnClose | undefined;
|
|
1158
1155
|
onConfirm?: Function | undefined;
|
|
1156
|
+
defaultTime?: import("../interface").DefaultTime | undefined;
|
|
1157
|
+
timeFormat?: string | undefined;
|
|
1159
1158
|
shortcuts?: import("../interface").Shortcuts | undefined;
|
|
1160
1159
|
}>, {
|
|
1161
1160
|
value: import("../interface").Value | null;
|
|
1162
1161
|
active: boolean;
|
|
1163
|
-
dateFormat: string;
|
|
1164
1162
|
actions: string[];
|
|
1165
|
-
timeFormat: string;
|
|
1166
1163
|
}>;
|
|
1167
1164
|
/**
|
|
1168
1165
|
* DateTime Panel
|
|
@@ -15,7 +15,7 @@ const use_calendar_1 = require("./use-calendar");
|
|
|
15
15
|
*/
|
|
16
16
|
exports.default = (0, vue_1.defineComponent)({
|
|
17
17
|
name: 'DateTimePanel',
|
|
18
|
-
props: use_calendar_1.
|
|
18
|
+
props: use_calendar_1.useCalendarProps,
|
|
19
19
|
setup(props) {
|
|
20
20
|
return (0, use_calendar_1.useCalendar)(props, 'datetime');
|
|
21
21
|
},
|
|
@@ -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;
|
|
@@ -206,12 +204,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
206
204
|
calendarLeftPaddingDatetimerange: string;
|
|
207
205
|
calendarLeftPaddingMonth: string;
|
|
208
206
|
calendarLeftPaddingYear: string;
|
|
207
|
+
calendarLeftPaddingQuarter: string;
|
|
209
208
|
calendarRightPaddingDate: string;
|
|
210
209
|
calendarRightPaddingDatetime: string;
|
|
211
210
|
calendarRightPaddingDaterange: string;
|
|
212
211
|
calendarRightPaddingDatetimerange: string;
|
|
213
212
|
calendarRightPaddingMonth: string;
|
|
214
213
|
calendarRightPaddingYear: string;
|
|
214
|
+
calendarRightPaddingQuarter: string;
|
|
215
215
|
};
|
|
216
216
|
peers: {
|
|
217
217
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -1072,6 +1072,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1072
1072
|
monthTypeFormat: string;
|
|
1073
1073
|
dateFormat: string;
|
|
1074
1074
|
dateTimeFormat: string;
|
|
1075
|
+
quarterFormat: string;
|
|
1075
1076
|
clear: string;
|
|
1076
1077
|
now: string;
|
|
1077
1078
|
confirm: string;
|
|
@@ -1081,6 +1082,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1081
1082
|
datetimePlaceholder: string;
|
|
1082
1083
|
monthPlaceholder: string;
|
|
1083
1084
|
yearPlaceholder: string;
|
|
1085
|
+
quarterPlaceholder: string;
|
|
1084
1086
|
startDatePlaceholder: string;
|
|
1085
1087
|
endDatePlaceholder: string;
|
|
1086
1088
|
startDatetimePlaceholder: string;
|
|
@@ -1135,6 +1137,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1135
1137
|
readonly timeFormat?: unknown;
|
|
1136
1138
|
readonly value?: unknown;
|
|
1137
1139
|
readonly shortcuts?: unknown;
|
|
1140
|
+
readonly defaultTime?: unknown;
|
|
1138
1141
|
readonly onConfirm?: unknown;
|
|
1139
1142
|
readonly onClose?: unknown;
|
|
1140
1143
|
readonly onTabOut?: unknown;
|
|
@@ -1142,20 +1145,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1142
1145
|
} & {
|
|
1143
1146
|
value: import("../interface").Value | null;
|
|
1144
1147
|
active: boolean;
|
|
1145
|
-
dateFormat: string;
|
|
1146
1148
|
onUpdateValue: import("../interface").OnPanelUpdateValue;
|
|
1147
1149
|
actions: unknown[];
|
|
1148
|
-
timeFormat: string;
|
|
1149
1150
|
} & {
|
|
1151
|
+
dateFormat?: string | undefined;
|
|
1150
1152
|
onTabOut?: Function | undefined;
|
|
1151
1153
|
onClose?: import("../interface").OnClose | undefined;
|
|
1152
1154
|
onConfirm?: Function | undefined;
|
|
1155
|
+
defaultTime?: import("../interface").DefaultTime | undefined;
|
|
1156
|
+
timeFormat?: string | undefined;
|
|
1153
1157
|
shortcuts?: import("../interface").Shortcuts | undefined;
|
|
1154
1158
|
}>, {
|
|
1155
1159
|
value: import("../interface").Value | null;
|
|
1156
1160
|
active: boolean;
|
|
1157
|
-
dateFormat: string;
|
|
1158
1161
|
actions: unknown[];
|
|
1159
|
-
timeFormat: string;
|
|
1160
1162
|
}>;
|
|
1161
1163
|
export default _default;
|
|
@@ -6,11 +6,11 @@ const input_1 = require("../../../input");
|
|
|
6
6
|
const time_picker_1 = require("../../../time-picker");
|
|
7
7
|
const icons_1 = require("../../../_internal/icons");
|
|
8
8
|
const _internal_1 = require("../../../_internal");
|
|
9
|
-
const use_dual_calendar_1 = require("./use-dual-calendar");
|
|
10
9
|
const _utils_1 = require("../../../_utils");
|
|
10
|
+
const use_dual_calendar_1 = require("./use-dual-calendar");
|
|
11
11
|
exports.default = (0, vue_1.defineComponent)({
|
|
12
12
|
name: 'DateTimeRangePanel',
|
|
13
|
-
props: use_dual_calendar_1.
|
|
13
|
+
props: use_dual_calendar_1.useDualCalendarProps,
|
|
14
14
|
setup(props) {
|
|
15
15
|
if (process.env.NODE_ENV !== 'production') {
|
|
16
16
|
(0, vue_1.watchEffect)(() => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VNode, PropType } from 'vue';
|
|
2
|
-
import type { MonthItem, YearItem } from '../utils';
|
|
2
|
+
import type { MonthItem, YearItem, QuarterItem } from '../utils';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
type: {
|
|
5
|
-
type: PropType<"month" | "year">;
|
|
5
|
+
type: PropType<"month" | "year" | "quarter">;
|
|
6
6
|
required: true;
|
|
7
7
|
};
|
|
8
8
|
actions: {
|
|
@@ -10,19 +10,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
readonly default: () => string[];
|
|
11
11
|
};
|
|
12
12
|
active: BooleanConstructor;
|
|
13
|
-
dateFormat:
|
|
14
|
-
readonly type: StringConstructor;
|
|
15
|
-
readonly default: "yyyy-MM-dd";
|
|
16
|
-
};
|
|
13
|
+
dateFormat: StringConstructor;
|
|
17
14
|
timeFormat: {
|
|
18
15
|
readonly type: StringConstructor;
|
|
19
|
-
readonly
|
|
16
|
+
readonly value: "HH:mm:ss";
|
|
20
17
|
};
|
|
21
18
|
value: {
|
|
22
19
|
readonly type: PropType<import("../interface").Value | null>;
|
|
23
20
|
readonly default: null;
|
|
24
21
|
};
|
|
25
22
|
shortcuts: PropType<import("../interface").Shortcuts>;
|
|
23
|
+
defaultTime: PropType<import("../interface").DefaultTime>;
|
|
26
24
|
onConfirm: FunctionConstructor;
|
|
27
25
|
onClose: PropType<import("../interface").OnClose>;
|
|
28
26
|
onTabOut: FunctionConstructor;
|
|
@@ -31,8 +29,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
29
|
readonly required: true;
|
|
32
30
|
};
|
|
33
31
|
}, {
|
|
34
|
-
renderItem: (item: YearItem | MonthItem, i: number, mergedClsPrefix: string) => VNode;
|
|
35
|
-
handleDateClick: (dateItem: import("../utils").DateItem | MonthItem | YearItem) => void;
|
|
32
|
+
renderItem: (item: YearItem | MonthItem | QuarterItem, i: number, mergedClsPrefix: string) => VNode;
|
|
33
|
+
handleDateClick: (dateItem: import("../utils").DateItem | MonthItem | YearItem | QuarterItem) => void;
|
|
36
34
|
handleDateInputBlur: () => void;
|
|
37
35
|
handleDateInput: (value: string) => void;
|
|
38
36
|
handleTimePickerChange: (value: number | null) => void;
|
|
@@ -149,12 +147,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
149
147
|
fontWeight: string;
|
|
150
148
|
fontWeightStrong: string;
|
|
151
149
|
cubicBezierEaseInOut: string;
|
|
152
|
-
/**
|
|
153
|
-
* Month Panel
|
|
154
|
-
* Update picker value on:
|
|
155
|
-
* 1. item click
|
|
156
|
-
* 2. clear click
|
|
157
|
-
*/
|
|
158
150
|
cubicBezierEaseOut: string;
|
|
159
151
|
cubicBezierEaseIn: string;
|
|
160
152
|
borderRadius: string;
|
|
@@ -221,12 +213,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
221
213
|
calendarLeftPaddingDatetimerange: string;
|
|
222
214
|
calendarLeftPaddingMonth: string;
|
|
223
215
|
calendarLeftPaddingYear: string;
|
|
216
|
+
calendarLeftPaddingQuarter: string;
|
|
224
217
|
calendarRightPaddingDate: string;
|
|
225
218
|
calendarRightPaddingDatetime: string;
|
|
226
219
|
calendarRightPaddingDaterange: string;
|
|
227
220
|
calendarRightPaddingDatetimerange: string;
|
|
228
221
|
calendarRightPaddingMonth: string;
|
|
229
222
|
calendarRightPaddingYear: string;
|
|
223
|
+
calendarRightPaddingQuarter: string;
|
|
230
224
|
};
|
|
231
225
|
peers: {
|
|
232
226
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -1087,6 +1081,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1087
1081
|
monthTypeFormat: string;
|
|
1088
1082
|
dateFormat: string;
|
|
1089
1083
|
dateTimeFormat: string;
|
|
1084
|
+
quarterFormat: string;
|
|
1090
1085
|
clear: string;
|
|
1091
1086
|
now: string;
|
|
1092
1087
|
confirm: string;
|
|
@@ -1096,6 +1091,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1096
1091
|
datetimePlaceholder: string;
|
|
1097
1092
|
monthPlaceholder: string;
|
|
1098
1093
|
yearPlaceholder: string;
|
|
1094
|
+
quarterPlaceholder: string;
|
|
1099
1095
|
startDatePlaceholder: string;
|
|
1100
1096
|
endDatePlaceholder: string;
|
|
1101
1097
|
startDatetimePlaceholder: string;
|
|
@@ -1129,6 +1125,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1129
1125
|
dateArray: import("vue").ComputedRef<import("../utils").DateItem[]>;
|
|
1130
1126
|
monthArray: import("vue").ComputedRef<MonthItem[]>;
|
|
1131
1127
|
yearArray: import("vue").ComputedRef<YearItem[]>;
|
|
1128
|
+
quarterArray: import("vue").ComputedRef<QuarterItem[]>;
|
|
1132
1129
|
calendarYear: import("vue").ComputedRef<string>;
|
|
1133
1130
|
calendarMonth: import("vue").ComputedRef<string>;
|
|
1134
1131
|
weekdays: import("vue").ComputedRef<string[]>;
|
|
@@ -1149,29 +1146,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1149
1146
|
timeFormat?: unknown;
|
|
1150
1147
|
value?: unknown;
|
|
1151
1148
|
shortcuts?: unknown;
|
|
1149
|
+
defaultTime?: unknown;
|
|
1152
1150
|
onConfirm?: unknown;
|
|
1153
1151
|
onClose?: unknown;
|
|
1154
1152
|
onTabOut?: unknown;
|
|
1155
1153
|
onUpdateValue?: unknown;
|
|
1156
1154
|
} & {
|
|
1157
|
-
type: "month" | "year";
|
|
1155
|
+
type: "month" | "year" | "quarter";
|
|
1158
1156
|
value: import("../interface").Value | null;
|
|
1159
1157
|
active: boolean;
|
|
1160
|
-
dateFormat: string;
|
|
1161
1158
|
onUpdateValue: import("../interface").OnPanelUpdateValue;
|
|
1162
1159
|
actions: string[];
|
|
1163
|
-
timeFormat: string;
|
|
1164
1160
|
} & {
|
|
1161
|
+
dateFormat?: string | undefined;
|
|
1165
1162
|
onTabOut?: Function | undefined;
|
|
1166
1163
|
onClose?: import("../interface").OnClose | undefined;
|
|
1167
1164
|
onConfirm?: Function | undefined;
|
|
1165
|
+
defaultTime?: import("../interface").DefaultTime | undefined;
|
|
1166
|
+
timeFormat?: string | undefined;
|
|
1168
1167
|
shortcuts?: import("../interface").Shortcuts | undefined;
|
|
1169
1168
|
}>, {
|
|
1170
1169
|
value: import("../interface").Value | null;
|
|
1171
1170
|
active: boolean;
|
|
1172
|
-
dateFormat: string;
|
|
1173
1171
|
actions: string[];
|
|
1174
|
-
timeFormat: string;
|
|
1175
1172
|
}>;
|
|
1176
1173
|
/**
|
|
1177
1174
|
* Month Panel
|
|
@@ -4,8 +4,8 @@ const vue_1 = require("vue");
|
|
|
4
4
|
const vueuc_1 = require("vueuc");
|
|
5
5
|
const button_1 = require("../../../button");
|
|
6
6
|
const _internal_1 = require("../../../_internal");
|
|
7
|
-
const use_calendar_1 = require("./use-calendar");
|
|
8
7
|
const config_1 = require("../config");
|
|
8
|
+
const use_calendar_1 = require("./use-calendar");
|
|
9
9
|
/**
|
|
10
10
|
* Month Panel
|
|
11
11
|
* Update picker value on:
|
|
@@ -14,32 +14,41 @@ const config_1 = require("../config");
|
|
|
14
14
|
*/
|
|
15
15
|
exports.default = (0, vue_1.defineComponent)({
|
|
16
16
|
name: 'MonthPanel',
|
|
17
|
-
props: Object.assign(Object.assign({}, use_calendar_1.
|
|
17
|
+
props: Object.assign(Object.assign({}, use_calendar_1.useCalendarProps), { type: {
|
|
18
18
|
type: String,
|
|
19
19
|
required: true
|
|
20
20
|
} }),
|
|
21
21
|
setup(props) {
|
|
22
22
|
const useCalendarRef = (0, use_calendar_1.useCalendar)(props, props.type);
|
|
23
|
+
const getRenderContent = (item) => {
|
|
24
|
+
switch (item.type) {
|
|
25
|
+
case 'year':
|
|
26
|
+
return item.dateObject.year;
|
|
27
|
+
case 'month':
|
|
28
|
+
return item.dateObject.month + 1;
|
|
29
|
+
case 'quarter':
|
|
30
|
+
return `Q ${item.dateObject.quarter}`;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
23
33
|
const renderItem = (item, i, mergedClsPrefix) => {
|
|
24
34
|
const { mergedIsDateDisabled, handleDateClick } = useCalendarRef;
|
|
25
35
|
return ((0, vue_1.h)("div", { "data-n-date": true, key: i, class: [
|
|
26
36
|
`${mergedClsPrefix}-date-panel-month-calendar__picker-col-item`,
|
|
27
37
|
{
|
|
28
|
-
[`${mergedClsPrefix}-date-panel-month-calendar__picker-col-item--current`]: item.
|
|
29
|
-
? item.isCurrentMonth
|
|
30
|
-
: item.isCurrentYear,
|
|
38
|
+
[`${mergedClsPrefix}-date-panel-month-calendar__picker-col-item--current`]: item.isCurrent,
|
|
31
39
|
[`${mergedClsPrefix}-date-panel-month-calendar__picker-col-item--selected`]: item.selected,
|
|
32
40
|
[`${mergedClsPrefix}-date-panel-month-calendar__picker-col-item--disabled`]: mergedIsDateDisabled(item.ts)
|
|
33
41
|
}
|
|
34
|
-
], onClick: () => handleDateClick(item) }, item
|
|
35
|
-
? item.dateObject.month + 1
|
|
36
|
-
: item.dateObject.year));
|
|
42
|
+
], onClick: () => handleDateClick(item) }, getRenderContent(item)));
|
|
37
43
|
};
|
|
38
44
|
return Object.assign(Object.assign({}, useCalendarRef), { renderItem });
|
|
39
45
|
},
|
|
40
46
|
render() {
|
|
41
47
|
const { mergedClsPrefix, mergedTheme, shortcuts, actions, renderItem, type } = this;
|
|
42
|
-
return ((0, vue_1.h)("div", { ref: "selfRef", tabindex: 0, class:
|
|
48
|
+
return ((0, vue_1.h)("div", { ref: "selfRef", tabindex: 0, class: [
|
|
49
|
+
`${mergedClsPrefix}-date-panel`,
|
|
50
|
+
`${mergedClsPrefix}-date-panel--month`
|
|
51
|
+
], onFocus: this.handlePanelFocus, onKeydown: this.handlePanelKeyDown },
|
|
43
52
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month-calendar` },
|
|
44
53
|
(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 } }, {
|
|
45
54
|
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 }, {
|
|
@@ -48,11 +57,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
48
57
|
}
|
|
49
58
|
}))
|
|
50
59
|
}),
|
|
51
|
-
type === 'month' ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month-calendar__picker-col` },
|
|
60
|
+
type === 'month' || type === 'quarter' ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month-calendar__picker-col` },
|
|
52
61
|
(0, vue_1.h)(_internal_1.NScrollbar, { ref: "monthScrollRef", theme: mergedTheme.peers.Scrollbar, themeOverrides: mergedTheme.peerOverrides.Scrollbar }, {
|
|
53
62
|
default: () => [
|
|
54
|
-
|
|
55
|
-
|
|
63
|
+
(type === 'month'
|
|
64
|
+
? this.monthArray
|
|
65
|
+
: this.quarterArray).map((item, i) => renderItem(item, i, mergedClsPrefix)),
|
|
66
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-${type}-calendar__padding` })
|
|
56
67
|
]
|
|
57
68
|
}))) : null),
|
|
58
69
|
this.datePickerSlots.footer ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-footer` }, {
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import { Shortcuts } from '../interface';
|
|
3
|
-
import type { DateItem, MonthItem, YearItem } from '../utils';
|
|
2
|
+
import type { Shortcuts } from '../interface';
|
|
3
|
+
import type { DateItem, MonthItem, YearItem, QuarterItem } from '../utils';
|
|
4
4
|
declare const useCalendarProps: {
|
|
5
5
|
readonly actions: {
|
|
6
6
|
readonly type: PropType<string[]>;
|
|
7
7
|
readonly default: () => string[];
|
|
8
8
|
};
|
|
9
9
|
readonly active: BooleanConstructor;
|
|
10
|
-
readonly dateFormat:
|
|
11
|
-
readonly type: StringConstructor;
|
|
12
|
-
readonly default: "yyyy-MM-dd";
|
|
13
|
-
};
|
|
10
|
+
readonly dateFormat: StringConstructor;
|
|
14
11
|
readonly timeFormat: {
|
|
15
12
|
readonly type: StringConstructor;
|
|
16
|
-
readonly
|
|
13
|
+
readonly value: "HH:mm:ss";
|
|
17
14
|
};
|
|
18
15
|
readonly value: {
|
|
19
16
|
readonly type: PropType<import("../interface").Value | null>;
|
|
20
17
|
readonly default: null;
|
|
21
18
|
};
|
|
22
19
|
readonly shortcuts: PropType<Shortcuts>;
|
|
20
|
+
readonly defaultTime: PropType<import("../interface").DefaultTime>;
|
|
23
21
|
readonly onConfirm: FunctionConstructor;
|
|
24
22
|
readonly onClose: PropType<import("../interface").OnClose>;
|
|
25
23
|
readonly onTabOut: FunctionConstructor;
|
|
@@ -28,8 +26,8 @@ declare const useCalendarProps: {
|
|
|
28
26
|
readonly required: true;
|
|
29
27
|
};
|
|
30
28
|
};
|
|
31
|
-
declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, type: 'date' | 'datetime' | 'month' | 'year'): {
|
|
32
|
-
handleDateClick: (dateItem: DateItem | MonthItem | YearItem) => void;
|
|
29
|
+
declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, type: 'date' | 'datetime' | 'month' | 'year' | 'quarter'): {
|
|
30
|
+
handleDateClick: (dateItem: DateItem | MonthItem | YearItem | QuarterItem) => void;
|
|
33
31
|
handleDateInputBlur: () => void;
|
|
34
32
|
handleDateInput: (value: string) => void;
|
|
35
33
|
handleTimePickerChange: (value: number | null) => void;
|
|
@@ -212,12 +210,14 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
212
210
|
calendarLeftPaddingDatetimerange: string;
|
|
213
211
|
calendarLeftPaddingMonth: string;
|
|
214
212
|
calendarLeftPaddingYear: string;
|
|
213
|
+
calendarLeftPaddingQuarter: string;
|
|
215
214
|
calendarRightPaddingDate: string;
|
|
216
215
|
calendarRightPaddingDatetime: string;
|
|
217
216
|
calendarRightPaddingDaterange: string;
|
|
218
217
|
calendarRightPaddingDatetimerange: string;
|
|
219
218
|
calendarRightPaddingMonth: string;
|
|
220
219
|
calendarRightPaddingYear: string;
|
|
220
|
+
calendarRightPaddingQuarter: string;
|
|
221
221
|
};
|
|
222
222
|
peers: {
|
|
223
223
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -1078,6 +1078,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
1078
1078
|
monthTypeFormat: string;
|
|
1079
1079
|
dateFormat: string;
|
|
1080
1080
|
dateTimeFormat: string;
|
|
1081
|
+
quarterFormat: string;
|
|
1081
1082
|
clear: string;
|
|
1082
1083
|
now: string;
|
|
1083
1084
|
confirm: string;
|
|
@@ -1087,6 +1088,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
1087
1088
|
datetimePlaceholder: string;
|
|
1088
1089
|
monthPlaceholder: string;
|
|
1089
1090
|
yearPlaceholder: string;
|
|
1091
|
+
quarterPlaceholder: string;
|
|
1090
1092
|
startDatePlaceholder: string;
|
|
1091
1093
|
endDatePlaceholder: string;
|
|
1092
1094
|
startDatetimePlaceholder: string;
|
|
@@ -1120,6 +1122,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
1120
1122
|
dateArray: import("vue").ComputedRef<DateItem[]>;
|
|
1121
1123
|
monthArray: import("vue").ComputedRef<MonthItem[]>;
|
|
1122
1124
|
yearArray: import("vue").ComputedRef<YearItem[]>;
|
|
1125
|
+
quarterArray: import("vue").ComputedRef<QuarterItem[]>;
|
|
1123
1126
|
calendarYear: import("vue").ComputedRef<string>;
|
|
1124
1127
|
calendarMonth: import("vue").ComputedRef<string>;
|
|
1125
1128
|
weekdays: import("vue").ComputedRef<string[]>;
|
|
@@ -1133,33 +1136,4 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
1133
1136
|
handleSingleShortcutMouseenter: (shortcut: Shortcuts[string]) => void;
|
|
1134
1137
|
handleSingleShortcutClick: (shortcut: Shortcuts[string]) => void;
|
|
1135
1138
|
};
|
|
1136
|
-
|
|
1137
|
-
var props: {
|
|
1138
|
-
readonly actions: {
|
|
1139
|
-
readonly type: PropType<string[]>;
|
|
1140
|
-
readonly default: () => string[];
|
|
1141
|
-
};
|
|
1142
|
-
readonly active: BooleanConstructor;
|
|
1143
|
-
readonly dateFormat: {
|
|
1144
|
-
readonly type: StringConstructor;
|
|
1145
|
-
readonly default: "yyyy-MM-dd";
|
|
1146
|
-
};
|
|
1147
|
-
readonly timeFormat: {
|
|
1148
|
-
readonly type: StringConstructor;
|
|
1149
|
-
readonly default: "HH:mm:ss";
|
|
1150
|
-
};
|
|
1151
|
-
readonly value: {
|
|
1152
|
-
readonly type: PropType<import("../interface").Value | null>;
|
|
1153
|
-
readonly default: null;
|
|
1154
|
-
};
|
|
1155
|
-
readonly shortcuts: PropType<Shortcuts>;
|
|
1156
|
-
readonly onConfirm: FunctionConstructor;
|
|
1157
|
-
readonly onClose: PropType<import("../interface").OnClose>;
|
|
1158
|
-
readonly onTabOut: FunctionConstructor;
|
|
1159
|
-
readonly onUpdateValue: {
|
|
1160
|
-
readonly type: PropType<import("../interface").OnPanelUpdateValue>;
|
|
1161
|
-
readonly required: true;
|
|
1162
|
-
};
|
|
1163
|
-
};
|
|
1164
|
-
}
|
|
1165
|
-
export { useCalendar };
|
|
1139
|
+
export { useCalendar, useCalendarProps };
|