naive-ui 2.21.2 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_internal/close/src/styles/index.cssr.js +6 -5
- package/es/_internal/scrollbar/src/ScrollBar.d.ts +15 -0
- package/es/_internal/scrollbar/src/ScrollBar.js +13 -7
- package/es/_internal/selection/src/Selection.js +11 -9
- package/es/_internal/selection/src/styles/index.cssr.js +6 -2
- package/es/alert/src/Alert.d.ts +20 -20
- 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/avatar/src/Avatar.d.ts +5 -3
- package/es/avatar/src/Avatar.js +7 -5
- package/es/avatar/src/styles/index.cssr.js +3 -5
- package/es/button/src/Button.d.ts +60 -60
- package/es/button/src/Button.js +107 -106
- package/es/button/src/styles/button.cssr.js +83 -80
- package/es/button/styles/dark.js +3 -3
- package/es/button/styles/light.d.ts +3 -3
- package/es/button/styles/light.js +1 -1
- package/es/calendar/src/Calendar.d.ts +37 -30
- package/es/calendar/styles/light.d.ts +3 -3
- package/es/cascader/src/Cascader.d.ts +135 -0
- package/es/cascader/src/Cascader.js +2 -4
- package/es/cascader/src/CascaderMenu.d.ts +345 -0
- package/es/cascader/src/CascaderMenu.js +6 -5
- 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/styles/dark.js +3 -1
- package/es/cascader/styles/light.d.ts +13 -0
- package/es/cascader/styles/light.js +3 -1
- package/es/color-picker/src/ColorInputUnit.d.ts +3 -3
- package/es/color-picker/src/ColorPicker.d.ts +27 -27
- package/es/color-picker/styles/light.d.ts +3 -3
- package/es/config-provider/src/ConfigProvider.d.ts +21 -0
- package/es/data-table/src/DataTable.d.ts +30 -30
- package/es/data-table/src/DataTable.js +7 -14
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +3 -3
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +3 -3
- package/es/data-table/src/MainTable.js +2 -3
- package/es/data-table/src/TableParts/Body.d.ts +18 -7
- package/es/data-table/src/TableParts/Body.js +80 -28
- package/es/data-table/src/TableParts/Cell.d.ts +6 -6
- package/es/data-table/src/TableParts/Header.d.ts +3 -3
- package/es/data-table/src/TableParts/Header.js +1 -1
- package/es/data-table/src/interface.d.ts +4 -1
- package/es/data-table/src/styles/index.cssr.js +9 -12
- 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 +4 -1
- package/es/data-table/styles/_common.js +1 -1
- package/es/data-table/styles/light.d.ts +3 -3
- package/es/date-picker/src/DatePicker.d.ts +94 -69
- package/es/date-picker/src/DatePicker.js +47 -20
- package/es/date-picker/src/config.d.ts +1 -9
- package/es/date-picker/src/config.js +0 -8
- package/es/date-picker/src/interface.d.ts +2 -1
- package/es/date-picker/src/panel/date.d.ts +23 -10
- package/es/date-picker/src/panel/date.js +2 -2
- package/es/date-picker/src/panel/daterange.d.ts +21 -9
- package/es/date-picker/src/panel/daterange.js +2 -2
- package/es/date-picker/src/panel/datetime.d.ts +23 -16
- package/es/date-picker/src/panel/datetime.js +2 -2
- package/es/date-picker/src/panel/datetimerange.d.ts +21 -9
- package/es/date-picker/src/panel/datetimerange.js +2 -2
- package/es/date-picker/src/panel/month.d.ts +27 -20
- package/es/date-picker/src/panel/month.js +23 -12
- package/es/date-picker/src/panel/use-calendar.d.ts +25 -43
- package/es/date-picker/src/panel/use-calendar.js +35 -18
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +21 -40
- package/es/date-picker/src/panel/use-dual-calendar.js +23 -8
- package/es/date-picker/src/panel/use-panel-common.d.ts +21 -36
- package/es/date-picker/src/panel/use-panel-common.js +2 -2
- 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 +10 -6
- package/es/dialog/src/Dialog.d.ts +21 -21
- package/es/dialog/src/styles/index.cssr.js +1 -0
- package/es/dialog/styles/light.d.ts +3 -3
- package/es/dynamic-input/src/DynamicInput.d.ts +30 -30
- package/es/dynamic-input/src/InputPreset.d.ts +3 -3
- package/es/dynamic-input/src/PairPreset.d.ts +3 -3
- package/es/dynamic-input/styles/light.d.ts +3 -3
- package/es/dynamic-tags/src/DynamicTags.d.ts +30 -30
- package/es/dynamic-tags/styles/light.d.ts +3 -3
- package/es/element/index.d.ts +1 -0
- package/es/element/index.js +1 -0
- package/es/form/src/interface.d.ts +5 -4
- package/es/image/src/Image.d.ts +25 -16
- package/es/image/src/Image.js +35 -11
- package/es/image/src/ImageGroup.js +2 -2
- package/es/image/src/styles/index.cssr.js +4 -3
- package/es/input/src/Input.js +2 -0
- package/es/input/src/styles/input.cssr.js +2 -1
- package/es/input-number/src/InputNumber.d.ts +30 -30
- package/es/input-number/src/InputNumber.js +10 -5
- package/es/input-number/src/utils.d.ts +1 -0
- package/es/input-number/src/utils.js +4 -0
- package/es/input-number/styles/light.d.ts +3 -3
- package/es/locales/common/deDE.js +8 -0
- package/es/locales/common/enUS.d.ts +7 -0
- package/es/locales/common/enUS.js +8 -1
- package/es/locales/common/frFR.d.ts +3 -0
- package/es/locales/common/frFR.js +101 -0
- package/es/locales/common/idID.d.ts +2 -93
- package/es/locales/common/idID.js +8 -0
- package/es/locales/common/jaJP.js +8 -0
- package/es/locales/common/nbNO.js +8 -0
- package/es/locales/common/ruRU.js +8 -0
- package/es/locales/common/ukUA.js +8 -0
- package/es/locales/common/zhCN.js +7 -0
- package/es/locales/common/zhTW.d.ts +3 -0
- package/es/locales/common/zhTW.js +100 -0
- package/es/locales/date/frFR.d.ts +3 -0
- package/es/locales/date/frFR.js +6 -0
- package/es/locales/date/idID.d.ts +1 -6
- package/es/locales/date/zhTW.d.ts +3 -0
- package/es/locales/date/zhTW.js +6 -0
- package/es/locales/index.d.ts +4 -0
- package/es/locales/index.js +4 -0
- package/es/modal/src/BodyWrapper.d.ts +6 -6
- package/es/modal/src/Modal.d.ts +36 -36
- package/es/modal/styles/light.d.ts +3 -3
- package/es/page-header/src/PageHeader.js +3 -3
- package/es/page-header/src/styles/index.cssr.js +2 -4
- package/es/popconfirm/src/Popconfirm.d.ts +30 -30
- package/es/popconfirm/styles/light.d.ts +3 -3
- package/es/popover/src/Popover.js +4 -1
- package/es/popover/src/PopoverBody.js +3 -3
- 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/radio/src/Radio.js +3 -3
- package/es/radio/src/RadioButton.js +4 -5
- package/es/radio/src/styles/radio-group.cssr.js +8 -4
- package/es/radio/src/styles/radio.cssr.js +8 -4
- package/es/radio/src/use-radio.d.ts +0 -3
- package/es/radio/src/use-radio.js +1 -26
- package/es/switch/src/Switch.d.ts +16 -1
- package/es/switch/src/Switch.js +17 -4
- package/es/switch/src/styles/index.cssr.js +1 -1
- package/es/tabs/src/styles/index.cssr.js +1 -0
- package/es/tag/src/styles/index.cssr.js +1 -1
- package/es/theme-editor/src/ThemeEditor.js +9 -2
- package/es/time-picker/src/Panel.d.ts +3 -3
- package/es/time-picker/src/TimePicker.d.ts +30 -30
- package/es/time-picker/styles/light.d.ts +3 -3
- package/es/transfer/src/Transfer.d.ts +30 -30
- package/es/transfer/src/TransferFilter.d.ts +3 -3
- package/es/transfer/src/TransferList.d.ts +3 -3
- package/es/transfer/src/TransferListItem.d.ts +3 -3
- package/es/transfer/styles/light.d.ts +3 -3
- package/es/tree/src/Tree.d.ts +8 -4
- package/es/tree/src/Tree.js +32 -6
- package/es/tree-select/src/TreeSelect.d.ts +38 -1
- package/es/tree-select/src/TreeSelect.js +25 -10
- package/es/tree-select/src/styles/index.cssr.js +11 -2
- package/es/tree-select/styles/light.d.ts +6 -0
- package/es/tree-select/styles/light.js +5 -2
- package/es/upload/src/Upload.d.ts +41 -30
- package/es/upload/src/Upload.js +33 -23
- package/es/upload/src/UploadFile.d.ts +4 -4
- package/es/upload/src/UploadFileList.js +4 -2
- package/es/upload/src/UploadProgress.d.ts +3 -3
- package/es/upload/src/interface.d.ts +1 -0
- package/es/upload/src/styles/index.cssr.js +2 -3
- package/es/upload/styles/light.d.ts +3 -3
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/close/src/styles/index.cssr.js +6 -5
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +15 -0
- package/lib/_internal/scrollbar/src/ScrollBar.js +13 -7
- package/lib/_internal/selection/src/Selection.js +11 -9
- package/lib/_internal/selection/src/styles/index.cssr.js +6 -2
- package/lib/alert/src/Alert.d.ts +20 -20
- 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/avatar/src/Avatar.d.ts +5 -3
- package/lib/avatar/src/Avatar.js +7 -5
- package/lib/avatar/src/styles/index.cssr.js +3 -5
- package/lib/button/src/Button.d.ts +60 -60
- package/lib/button/src/Button.js +107 -106
- package/lib/button/src/styles/button.cssr.js +83 -80
- package/lib/button/styles/dark.js +3 -3
- package/lib/button/styles/light.d.ts +3 -3
- package/lib/button/styles/light.js +1 -1
- package/lib/calendar/src/Calendar.d.ts +37 -30
- package/lib/calendar/styles/light.d.ts +3 -3
- package/lib/cascader/src/Cascader.d.ts +135 -0
- package/lib/cascader/src/Cascader.js +2 -4
- package/lib/cascader/src/CascaderMenu.d.ts +345 -0
- package/lib/cascader/src/CascaderMenu.js +6 -5
- 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/styles/dark.js +3 -1
- package/lib/cascader/styles/light.d.ts +13 -0
- package/lib/cascader/styles/light.js +3 -1
- package/lib/color-picker/src/ColorInputUnit.d.ts +3 -3
- package/lib/color-picker/src/ColorPicker.d.ts +27 -27
- package/lib/color-picker/styles/light.d.ts +3 -3
- package/lib/config-provider/src/ConfigProvider.d.ts +21 -0
- package/lib/data-table/src/DataTable.d.ts +30 -30
- package/lib/data-table/src/DataTable.js +6 -13
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +3 -3
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +3 -3
- package/lib/data-table/src/MainTable.js +1 -2
- package/lib/data-table/src/TableParts/Body.d.ts +18 -7
- package/lib/data-table/src/TableParts/Body.js +78 -26
- package/lib/data-table/src/TableParts/Cell.d.ts +6 -6
- package/lib/data-table/src/TableParts/Header.d.ts +3 -3
- package/lib/data-table/src/TableParts/Header.js +1 -1
- package/lib/data-table/src/interface.d.ts +4 -1
- package/lib/data-table/src/styles/index.cssr.js +9 -12
- 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 +4 -1
- package/lib/data-table/styles/_common.js +1 -1
- package/lib/data-table/styles/light.d.ts +3 -3
- package/lib/date-picker/src/DatePicker.d.ts +94 -69
- package/lib/date-picker/src/DatePicker.js +46 -19
- package/lib/date-picker/src/config.d.ts +1 -9
- package/lib/date-picker/src/config.js +1 -9
- package/lib/date-picker/src/interface.d.ts +2 -1
- package/lib/date-picker/src/panel/date.d.ts +23 -10
- package/lib/date-picker/src/panel/date.js +1 -1
- package/lib/date-picker/src/panel/daterange.d.ts +21 -9
- package/lib/date-picker/src/panel/daterange.js +1 -1
- package/lib/date-picker/src/panel/datetime.d.ts +23 -16
- package/lib/date-picker/src/panel/datetime.js +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +21 -9
- package/lib/date-picker/src/panel/datetimerange.js +2 -2
- package/lib/date-picker/src/panel/month.d.ts +27 -20
- package/lib/date-picker/src/panel/month.js +23 -12
- package/lib/date-picker/src/panel/use-calendar.d.ts +25 -43
- package/lib/date-picker/src/panel/use-calendar.js +34 -16
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +21 -40
- package/lib/date-picker/src/panel/use-dual-calendar.js +22 -6
- package/lib/date-picker/src/panel/use-panel-common.d.ts +21 -36
- package/lib/date-picker/src/panel/use-panel-common.js +3 -2
- 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 +10 -6
- package/lib/dialog/src/Dialog.d.ts +21 -21
- package/lib/dialog/src/styles/index.cssr.js +1 -0
- package/lib/dialog/styles/light.d.ts +3 -3
- package/lib/dynamic-input/src/DynamicInput.d.ts +30 -30
- package/lib/dynamic-input/src/InputPreset.d.ts +3 -3
- package/lib/dynamic-input/src/PairPreset.d.ts +3 -3
- package/lib/dynamic-input/styles/light.d.ts +3 -3
- package/lib/dynamic-tags/src/DynamicTags.d.ts +30 -30
- package/lib/dynamic-tags/styles/light.d.ts +3 -3
- package/lib/element/index.d.ts +1 -0
- package/lib/element/index.js +3 -1
- package/lib/form/src/interface.d.ts +5 -4
- package/lib/image/src/Image.d.ts +25 -16
- package/lib/image/src/Image.js +34 -10
- package/lib/image/src/ImageGroup.js +2 -2
- package/lib/image/src/styles/index.cssr.js +3 -2
- package/lib/input/src/Input.js +2 -0
- package/lib/input/src/styles/input.cssr.js +2 -1
- package/lib/input-number/src/InputNumber.d.ts +30 -30
- package/lib/input-number/src/InputNumber.js +9 -4
- package/lib/input-number/src/utils.d.ts +1 -0
- package/lib/input-number/src/utils.js +6 -1
- package/lib/input-number/styles/light.d.ts +3 -3
- package/lib/locales/common/deDE.js +8 -0
- package/lib/locales/common/enUS.d.ts +7 -0
- package/lib/locales/common/enUS.js +8 -1
- package/lib/locales/common/frFR.d.ts +3 -0
- package/lib/locales/common/frFR.js +103 -0
- package/lib/locales/common/idID.d.ts +2 -93
- package/lib/locales/common/idID.js +8 -0
- package/lib/locales/common/jaJP.js +8 -0
- package/lib/locales/common/nbNO.js +8 -0
- package/lib/locales/common/ruRU.js +8 -0
- package/lib/locales/common/ukUA.js +8 -0
- package/lib/locales/common/zhCN.js +7 -0
- package/lib/locales/common/zhTW.d.ts +3 -0
- package/lib/locales/common/zhTW.js +102 -0
- package/lib/locales/date/frFR.d.ts +3 -0
- package/lib/locales/date/frFR.js +11 -0
- package/lib/locales/date/idID.d.ts +1 -6
- package/lib/locales/date/zhTW.d.ts +3 -0
- package/lib/locales/date/zhTW.js +11 -0
- package/lib/locales/index.d.ts +4 -0
- package/lib/locales/index.js +9 -1
- package/lib/modal/src/BodyWrapper.d.ts +6 -6
- package/lib/modal/src/Modal.d.ts +36 -36
- package/lib/modal/styles/light.d.ts +3 -3
- package/lib/page-header/src/PageHeader.js +3 -3
- package/lib/page-header/src/styles/index.cssr.js +2 -4
- package/lib/popconfirm/src/Popconfirm.d.ts +30 -30
- package/lib/popconfirm/styles/light.d.ts +3 -3
- package/lib/popover/src/Popover.js +4 -1
- package/lib/popover/src/PopoverBody.js +3 -3
- 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/radio/src/Radio.js +3 -3
- package/lib/radio/src/RadioButton.js +4 -5
- package/lib/radio/src/styles/radio-group.cssr.js +8 -4
- package/lib/radio/src/styles/radio.cssr.js +8 -4
- package/lib/radio/src/use-radio.d.ts +0 -3
- package/lib/radio/src/use-radio.js +1 -26
- package/lib/switch/src/Switch.d.ts +16 -1
- package/lib/switch/src/Switch.js +17 -4
- package/lib/switch/src/styles/index.cssr.js +1 -1
- package/lib/tabs/src/styles/index.cssr.js +1 -0
- package/lib/tag/src/styles/index.cssr.js +1 -1
- package/lib/theme-editor/src/ThemeEditor.js +9 -2
- package/lib/time-picker/src/Panel.d.ts +3 -3
- package/lib/time-picker/src/TimePicker.d.ts +30 -30
- package/lib/time-picker/styles/light.d.ts +3 -3
- package/lib/transfer/src/Transfer.d.ts +30 -30
- package/lib/transfer/src/TransferFilter.d.ts +3 -3
- package/lib/transfer/src/TransferList.d.ts +3 -3
- package/lib/transfer/src/TransferListItem.d.ts +3 -3
- package/lib/transfer/styles/light.d.ts +3 -3
- package/lib/tree/src/Tree.d.ts +8 -4
- package/lib/tree/src/Tree.js +32 -6
- package/lib/tree-select/src/TreeSelect.d.ts +38 -1
- package/lib/tree-select/src/TreeSelect.js +24 -9
- package/lib/tree-select/src/styles/index.cssr.js +11 -2
- package/lib/tree-select/styles/light.d.ts +6 -0
- package/lib/tree-select/styles/light.js +5 -2
- package/lib/upload/src/Upload.d.ts +41 -30
- package/lib/upload/src/Upload.js +33 -23
- package/lib/upload/src/UploadFile.d.ts +4 -4
- package/lib/upload/src/UploadFileList.js +4 -2
- package/lib/upload/src/UploadProgress.d.ts +3 -3
- package/lib/upload/src/interface.d.ts +1 -0
- package/lib/upload/src/styles/index.cssr.js +2 -3
- package/lib/upload/styles/light.d.ts +3 -3
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +5 -4
- package/web-types.json +99 -7
|
@@ -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;
|
|
@@ -17,6 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
readonly default: null;
|
|
18
18
|
};
|
|
19
19
|
readonly shortcuts: import("vue").PropType<import("../interface").Shortcuts>;
|
|
20
|
+
readonly defaultTime: import("vue").PropType<import("../interface").DefaultTime>;
|
|
20
21
|
readonly onConfirm: FunctionConstructor;
|
|
21
22
|
readonly onClose: import("vue").PropType<import("../interface").OnClose>;
|
|
22
23
|
readonly onTabOut: FunctionConstructor;
|
|
@@ -25,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
26
|
readonly required: true;
|
|
26
27
|
};
|
|
27
28
|
}, {
|
|
28
|
-
handleDateClick: (dateItem: import("../utils").DateItem | import("../utils").MonthItem | import("../utils").YearItem) => void;
|
|
29
|
+
handleDateClick: (dateItem: import("../utils").DateItem | import("../utils").MonthItem | import("../utils").YearItem | import("../utils").QuarterItem) => void;
|
|
29
30
|
handleDateInputBlur: () => void;
|
|
30
31
|
handleDateInput: (value: string) => void;
|
|
31
32
|
handleTimePickerChange: (value: number | null) => void;
|
|
@@ -208,12 +209,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
208
209
|
calendarLeftPaddingDatetimerange: string;
|
|
209
210
|
calendarLeftPaddingMonth: string;
|
|
210
211
|
calendarLeftPaddingYear: string;
|
|
212
|
+
calendarLeftPaddingQuarter: string;
|
|
211
213
|
calendarRightPaddingDate: string;
|
|
212
214
|
calendarRightPaddingDatetime: string;
|
|
213
215
|
calendarRightPaddingDaterange: string;
|
|
214
216
|
calendarRightPaddingDatetimerange: string;
|
|
215
217
|
calendarRightPaddingMonth: string;
|
|
216
218
|
calendarRightPaddingYear: string;
|
|
219
|
+
calendarRightPaddingQuarter: string;
|
|
217
220
|
};
|
|
218
221
|
peers: {
|
|
219
222
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -290,9 +293,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
290
293
|
fontSizeMedium: string;
|
|
291
294
|
fontSizeLarge: string;
|
|
292
295
|
opacityDisabled: string;
|
|
293
|
-
colorOpacitySecondary:
|
|
294
|
-
colorOpacitySecondaryHover:
|
|
295
|
-
colorOpacitySecondaryPressed:
|
|
296
|
+
colorOpacitySecondary: string;
|
|
297
|
+
colorOpacitySecondaryHover: string;
|
|
298
|
+
colorOpacitySecondaryPressed: string;
|
|
296
299
|
colorSecondary: string;
|
|
297
300
|
colorSecondaryHover: string;
|
|
298
301
|
colorSecondaryPressed: string;
|
|
@@ -515,9 +518,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
515
518
|
fontSizeMedium: string;
|
|
516
519
|
fontSizeLarge: string;
|
|
517
520
|
opacityDisabled: string;
|
|
518
|
-
colorOpacitySecondary:
|
|
519
|
-
colorOpacitySecondaryHover:
|
|
520
|
-
colorOpacitySecondaryPressed:
|
|
521
|
+
colorOpacitySecondary: string;
|
|
522
|
+
colorOpacitySecondaryHover: string;
|
|
523
|
+
colorOpacitySecondaryPressed: string;
|
|
521
524
|
colorSecondary: string;
|
|
522
525
|
colorSecondaryHover: string;
|
|
523
526
|
colorSecondaryPressed: string;
|
|
@@ -802,9 +805,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
802
805
|
fontSizeMedium: string;
|
|
803
806
|
fontSizeLarge: string;
|
|
804
807
|
opacityDisabled: string;
|
|
805
|
-
colorOpacitySecondary:
|
|
806
|
-
colorOpacitySecondaryHover:
|
|
807
|
-
colorOpacitySecondaryPressed:
|
|
808
|
+
colorOpacitySecondary: string;
|
|
809
|
+
colorOpacitySecondaryHover: string;
|
|
810
|
+
colorOpacitySecondaryPressed: string;
|
|
808
811
|
colorSecondary: string;
|
|
809
812
|
colorSecondaryHover: string;
|
|
810
813
|
colorSecondaryPressed: string;
|
|
@@ -1070,6 +1073,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1070
1073
|
yearFormat: string;
|
|
1071
1074
|
monthFormat: string;
|
|
1072
1075
|
dayFormat: string;
|
|
1076
|
+
yearTypeFormat: string;
|
|
1077
|
+
monthTypeFormat: string;
|
|
1078
|
+
dateFormat: string;
|
|
1079
|
+
dateTimeFormat: string;
|
|
1080
|
+
quarterFormat: string;
|
|
1073
1081
|
clear: string;
|
|
1074
1082
|
now: string;
|
|
1075
1083
|
confirm: string;
|
|
@@ -1078,6 +1086,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1078
1086
|
datePlaceholder: string;
|
|
1079
1087
|
datetimePlaceholder: string;
|
|
1080
1088
|
monthPlaceholder: string;
|
|
1089
|
+
yearPlaceholder: string;
|
|
1090
|
+
quarterPlaceholder: string;
|
|
1081
1091
|
startDatePlaceholder: string;
|
|
1082
1092
|
endDatePlaceholder: string;
|
|
1083
1093
|
startDatetimePlaceholder: string;
|
|
@@ -1111,6 +1121,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1111
1121
|
dateArray: import("vue").ComputedRef<import("../utils").DateItem[]>;
|
|
1112
1122
|
monthArray: import("vue").ComputedRef<import("../utils").MonthItem[]>;
|
|
1113
1123
|
yearArray: import("vue").ComputedRef<import("../utils").YearItem[]>;
|
|
1124
|
+
quarterArray: import("vue").ComputedRef<import("../utils").QuarterItem[]>;
|
|
1114
1125
|
calendarYear: import("vue").ComputedRef<string>;
|
|
1115
1126
|
calendarMonth: import("vue").ComputedRef<string>;
|
|
1116
1127
|
weekdays: import("vue").ComputedRef<string[]>;
|
|
@@ -1130,6 +1141,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1130
1141
|
readonly timeFormat?: unknown;
|
|
1131
1142
|
readonly value?: unknown;
|
|
1132
1143
|
readonly shortcuts?: unknown;
|
|
1144
|
+
readonly defaultTime?: unknown;
|
|
1133
1145
|
readonly onConfirm?: unknown;
|
|
1134
1146
|
readonly onClose?: unknown;
|
|
1135
1147
|
readonly onTabOut?: unknown;
|
|
@@ -1145,6 +1157,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1145
1157
|
onTabOut?: Function | undefined;
|
|
1146
1158
|
onClose?: import("../interface").OnClose | undefined;
|
|
1147
1159
|
onConfirm?: Function | undefined;
|
|
1160
|
+
defaultTime?: import("../interface").DefaultTime | undefined;
|
|
1148
1161
|
shortcuts?: import("../interface").Shortcuts | undefined;
|
|
1149
1162
|
}>, {
|
|
1150
1163
|
value: import("../interface").Value | null;
|
|
@@ -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(() => {
|
|
@@ -17,6 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
readonly default: null;
|
|
18
18
|
};
|
|
19
19
|
readonly shortcuts: import("vue").PropType<import("../interface").Shortcuts>;
|
|
20
|
+
readonly defaultTime: import("vue").PropType<import("../interface").DefaultTime>;
|
|
20
21
|
readonly onConfirm: FunctionConstructor;
|
|
21
22
|
readonly onClose: import("vue").PropType<import("../interface").OnClose>;
|
|
22
23
|
readonly onTabOut: FunctionConstructor;
|
|
@@ -206,12 +207,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
206
207
|
calendarLeftPaddingDatetimerange: string;
|
|
207
208
|
calendarLeftPaddingMonth: string;
|
|
208
209
|
calendarLeftPaddingYear: string;
|
|
210
|
+
calendarLeftPaddingQuarter: string;
|
|
209
211
|
calendarRightPaddingDate: string;
|
|
210
212
|
calendarRightPaddingDatetime: string;
|
|
211
213
|
calendarRightPaddingDaterange: string;
|
|
212
214
|
calendarRightPaddingDatetimerange: string;
|
|
213
215
|
calendarRightPaddingMonth: string;
|
|
214
216
|
calendarRightPaddingYear: string;
|
|
217
|
+
calendarRightPaddingQuarter: string;
|
|
215
218
|
};
|
|
216
219
|
peers: {
|
|
217
220
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -288,9 +291,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
288
291
|
fontSizeMedium: string;
|
|
289
292
|
fontSizeLarge: string;
|
|
290
293
|
opacityDisabled: string;
|
|
291
|
-
colorOpacitySecondary:
|
|
292
|
-
colorOpacitySecondaryHover:
|
|
293
|
-
colorOpacitySecondaryPressed:
|
|
294
|
+
colorOpacitySecondary: string;
|
|
295
|
+
colorOpacitySecondaryHover: string;
|
|
296
|
+
colorOpacitySecondaryPressed: string;
|
|
294
297
|
colorSecondary: string;
|
|
295
298
|
colorSecondaryHover: string;
|
|
296
299
|
colorSecondaryPressed: string;
|
|
@@ -513,9 +516,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
513
516
|
fontSizeMedium: string;
|
|
514
517
|
fontSizeLarge: string;
|
|
515
518
|
opacityDisabled: string;
|
|
516
|
-
colorOpacitySecondary:
|
|
517
|
-
colorOpacitySecondaryHover:
|
|
518
|
-
colorOpacitySecondaryPressed:
|
|
519
|
+
colorOpacitySecondary: string;
|
|
520
|
+
colorOpacitySecondaryHover: string;
|
|
521
|
+
colorOpacitySecondaryPressed: string;
|
|
519
522
|
colorSecondary: string;
|
|
520
523
|
colorSecondaryHover: string;
|
|
521
524
|
colorSecondaryPressed: string;
|
|
@@ -800,9 +803,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
800
803
|
fontSizeMedium: string;
|
|
801
804
|
fontSizeLarge: string;
|
|
802
805
|
opacityDisabled: string;
|
|
803
|
-
colorOpacitySecondary:
|
|
804
|
-
colorOpacitySecondaryHover:
|
|
805
|
-
colorOpacitySecondaryPressed:
|
|
806
|
+
colorOpacitySecondary: string;
|
|
807
|
+
colorOpacitySecondaryHover: string;
|
|
808
|
+
colorOpacitySecondaryPressed: string;
|
|
806
809
|
colorSecondary: string;
|
|
807
810
|
colorSecondaryHover: string;
|
|
808
811
|
colorSecondaryPressed: string;
|
|
@@ -1068,6 +1071,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1068
1071
|
yearFormat: string;
|
|
1069
1072
|
monthFormat: string;
|
|
1070
1073
|
dayFormat: string;
|
|
1074
|
+
yearTypeFormat: string;
|
|
1075
|
+
monthTypeFormat: string;
|
|
1076
|
+
dateFormat: string;
|
|
1077
|
+
dateTimeFormat: string;
|
|
1078
|
+
quarterFormat: string;
|
|
1071
1079
|
clear: string;
|
|
1072
1080
|
now: string;
|
|
1073
1081
|
confirm: string;
|
|
@@ -1076,6 +1084,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1076
1084
|
datePlaceholder: string;
|
|
1077
1085
|
datetimePlaceholder: string;
|
|
1078
1086
|
monthPlaceholder: string;
|
|
1087
|
+
yearPlaceholder: string;
|
|
1088
|
+
quarterPlaceholder: string;
|
|
1079
1089
|
startDatePlaceholder: string;
|
|
1080
1090
|
endDatePlaceholder: string;
|
|
1081
1091
|
startDatetimePlaceholder: string;
|
|
@@ -1130,6 +1140,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1130
1140
|
readonly timeFormat?: unknown;
|
|
1131
1141
|
readonly value?: unknown;
|
|
1132
1142
|
readonly shortcuts?: unknown;
|
|
1143
|
+
readonly defaultTime?: unknown;
|
|
1133
1144
|
readonly onConfirm?: unknown;
|
|
1134
1145
|
readonly onClose?: unknown;
|
|
1135
1146
|
readonly onTabOut?: unknown;
|
|
@@ -1145,6 +1156,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1145
1156
|
onTabOut?: Function | undefined;
|
|
1146
1157
|
onClose?: import("../interface").OnClose | undefined;
|
|
1147
1158
|
onConfirm?: Function | undefined;
|
|
1159
|
+
defaultTime?: import("../interface").DefaultTime | undefined;
|
|
1148
1160
|
shortcuts?: import("../interface").Shortcuts | undefined;
|
|
1149
1161
|
}>, {
|
|
1150
1162
|
value: import("../interface").Value | null;
|
|
@@ -2,11 +2,11 @@ import { defineComponent, h, 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 { useDualCalendar } from './use-dual-calendar';
|
|
5
|
+
import { useDualCalendar, useDualCalendarProps } from './use-dual-calendar';
|
|
6
6
|
import { warnOnce } from '../../../_utils';
|
|
7
7
|
export default defineComponent({
|
|
8
8
|
name: 'DateRangePanel',
|
|
9
|
-
props:
|
|
9
|
+
props: useDualCalendarProps,
|
|
10
10
|
setup(props) {
|
|
11
11
|
if (process.env.NODE_ENV !== 'production') {
|
|
12
12
|
watchEffect(() => {
|
|
@@ -17,6 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
readonly default: null;
|
|
18
18
|
};
|
|
19
19
|
readonly shortcuts: import("vue").PropType<import("../interface").Shortcuts>;
|
|
20
|
+
readonly defaultTime: import("vue").PropType<import("../interface").DefaultTime>;
|
|
20
21
|
readonly onConfirm: FunctionConstructor;
|
|
21
22
|
readonly onClose: import("vue").PropType<import("../interface").OnClose>;
|
|
22
23
|
readonly onTabOut: FunctionConstructor;
|
|
@@ -25,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
26
|
readonly required: true;
|
|
26
27
|
};
|
|
27
28
|
}, {
|
|
28
|
-
handleDateClick: (dateItem: import("../utils").DateItem | import("../utils").MonthItem | import("../utils").YearItem) => void;
|
|
29
|
+
handleDateClick: (dateItem: import("../utils").DateItem | import("../utils").MonthItem | import("../utils").YearItem | import("../utils").QuarterItem) => void;
|
|
29
30
|
handleDateInputBlur: () => void;
|
|
30
31
|
handleDateInput: (value: string) => void;
|
|
31
32
|
handleTimePickerChange: (value: number | null) => void;
|
|
@@ -143,12 +144,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
143
144
|
fontWeightStrong: string;
|
|
144
145
|
cubicBezierEaseInOut: string;
|
|
145
146
|
cubicBezierEaseOut: string;
|
|
146
|
-
/**
|
|
147
|
-
* DateTime Panel
|
|
148
|
-
* Update picker value on:
|
|
149
|
-
* 1. confirm click
|
|
150
|
-
* 2. clear click
|
|
151
|
-
*/
|
|
152
147
|
cubicBezierEaseIn: string;
|
|
153
148
|
borderRadius: string;
|
|
154
149
|
borderRadiusSmall: string;
|
|
@@ -214,12 +209,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
214
209
|
calendarLeftPaddingDatetimerange: string;
|
|
215
210
|
calendarLeftPaddingMonth: string;
|
|
216
211
|
calendarLeftPaddingYear: string;
|
|
212
|
+
calendarLeftPaddingQuarter: string;
|
|
217
213
|
calendarRightPaddingDate: string;
|
|
218
214
|
calendarRightPaddingDatetime: string;
|
|
219
215
|
calendarRightPaddingDaterange: string;
|
|
220
216
|
calendarRightPaddingDatetimerange: string;
|
|
221
217
|
calendarRightPaddingMonth: string;
|
|
222
218
|
calendarRightPaddingYear: string;
|
|
219
|
+
calendarRightPaddingQuarter: string;
|
|
223
220
|
};
|
|
224
221
|
peers: {
|
|
225
222
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -296,9 +293,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
296
293
|
fontSizeMedium: string;
|
|
297
294
|
fontSizeLarge: string;
|
|
298
295
|
opacityDisabled: string;
|
|
299
|
-
colorOpacitySecondary:
|
|
300
|
-
colorOpacitySecondaryHover:
|
|
301
|
-
colorOpacitySecondaryPressed:
|
|
296
|
+
colorOpacitySecondary: string;
|
|
297
|
+
colorOpacitySecondaryHover: string;
|
|
298
|
+
colorOpacitySecondaryPressed: string;
|
|
302
299
|
colorSecondary: string;
|
|
303
300
|
colorSecondaryHover: string;
|
|
304
301
|
colorSecondaryPressed: string;
|
|
@@ -521,9 +518,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
521
518
|
fontSizeMedium: string;
|
|
522
519
|
fontSizeLarge: string;
|
|
523
520
|
opacityDisabled: string;
|
|
524
|
-
colorOpacitySecondary:
|
|
525
|
-
colorOpacitySecondaryHover:
|
|
526
|
-
colorOpacitySecondaryPressed:
|
|
521
|
+
colorOpacitySecondary: string;
|
|
522
|
+
colorOpacitySecondaryHover: string;
|
|
523
|
+
colorOpacitySecondaryPressed: string;
|
|
527
524
|
colorSecondary: string;
|
|
528
525
|
colorSecondaryHover: string;
|
|
529
526
|
colorSecondaryPressed: string;
|
|
@@ -808,9 +805,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
808
805
|
fontSizeMedium: string;
|
|
809
806
|
fontSizeLarge: string;
|
|
810
807
|
opacityDisabled: string;
|
|
811
|
-
colorOpacitySecondary:
|
|
812
|
-
colorOpacitySecondaryHover:
|
|
813
|
-
colorOpacitySecondaryPressed:
|
|
808
|
+
colorOpacitySecondary: string;
|
|
809
|
+
colorOpacitySecondaryHover: string;
|
|
810
|
+
colorOpacitySecondaryPressed: string;
|
|
814
811
|
colorSecondary: string;
|
|
815
812
|
colorSecondaryHover: string;
|
|
816
813
|
colorSecondaryPressed: string;
|
|
@@ -1076,6 +1073,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1076
1073
|
yearFormat: string;
|
|
1077
1074
|
monthFormat: string;
|
|
1078
1075
|
dayFormat: string;
|
|
1076
|
+
yearTypeFormat: string;
|
|
1077
|
+
monthTypeFormat: string;
|
|
1078
|
+
dateFormat: string;
|
|
1079
|
+
dateTimeFormat: string;
|
|
1080
|
+
quarterFormat: string;
|
|
1079
1081
|
clear: string;
|
|
1080
1082
|
now: string;
|
|
1081
1083
|
confirm: string;
|
|
@@ -1084,6 +1086,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1084
1086
|
datePlaceholder: string;
|
|
1085
1087
|
datetimePlaceholder: string;
|
|
1086
1088
|
monthPlaceholder: string;
|
|
1089
|
+
yearPlaceholder: string;
|
|
1090
|
+
quarterPlaceholder: string;
|
|
1087
1091
|
startDatePlaceholder: string;
|
|
1088
1092
|
endDatePlaceholder: string;
|
|
1089
1093
|
startDatetimePlaceholder: string;
|
|
@@ -1117,6 +1121,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1117
1121
|
dateArray: import("vue").ComputedRef<import("../utils").DateItem[]>;
|
|
1118
1122
|
monthArray: import("vue").ComputedRef<import("../utils").MonthItem[]>;
|
|
1119
1123
|
yearArray: import("vue").ComputedRef<import("../utils").YearItem[]>;
|
|
1124
|
+
quarterArray: import("vue").ComputedRef<import("../utils").QuarterItem[]>;
|
|
1120
1125
|
calendarYear: import("vue").ComputedRef<string>;
|
|
1121
1126
|
calendarMonth: import("vue").ComputedRef<string>;
|
|
1122
1127
|
weekdays: import("vue").ComputedRef<string[]>;
|
|
@@ -1136,6 +1141,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1136
1141
|
readonly timeFormat?: unknown;
|
|
1137
1142
|
readonly value?: unknown;
|
|
1138
1143
|
readonly shortcuts?: unknown;
|
|
1144
|
+
readonly defaultTime?: unknown;
|
|
1139
1145
|
readonly onConfirm?: unknown;
|
|
1140
1146
|
readonly onClose?: unknown;
|
|
1141
1147
|
readonly onTabOut?: unknown;
|
|
@@ -1151,6 +1157,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1151
1157
|
onTabOut?: Function | undefined;
|
|
1152
1158
|
onClose?: import("../interface").OnClose | undefined;
|
|
1153
1159
|
onConfirm?: Function | undefined;
|
|
1160
|
+
defaultTime?: import("../interface").DefaultTime | undefined;
|
|
1154
1161
|
shortcuts?: import("../interface").Shortcuts | undefined;
|
|
1155
1162
|
}>, {
|
|
1156
1163
|
value: import("../interface").Value | null;
|
|
@@ -4,7 +4,7 @@ import { NTimePicker } from '../../../time-picker';
|
|
|
4
4
|
import { NInput } from '../../../input';
|
|
5
5
|
import { BackwardIcon, FastBackwardIcon, ForwardIcon, FastForwardIcon } from '../../../_internal/icons';
|
|
6
6
|
import { NBaseFocusDetector } from '../../../_internal';
|
|
7
|
-
import { useCalendar } from './use-calendar';
|
|
7
|
+
import { useCalendar, useCalendarProps } from './use-calendar';
|
|
8
8
|
/**
|
|
9
9
|
* DateTime Panel
|
|
10
10
|
* Update picker value on:
|
|
@@ -13,7 +13,7 @@ import { useCalendar } from './use-calendar';
|
|
|
13
13
|
*/
|
|
14
14
|
export default defineComponent({
|
|
15
15
|
name: 'DateTimePanel',
|
|
16
|
-
props:
|
|
16
|
+
props: useCalendarProps,
|
|
17
17
|
setup(props) {
|
|
18
18
|
return useCalendar(props, 'datetime');
|
|
19
19
|
},
|
|
@@ -17,6 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
readonly default: null;
|
|
18
18
|
};
|
|
19
19
|
readonly shortcuts: import("vue").PropType<import("../interface").Shortcuts>;
|
|
20
|
+
readonly defaultTime: import("vue").PropType<import("../interface").DefaultTime>;
|
|
20
21
|
readonly onConfirm: FunctionConstructor;
|
|
21
22
|
readonly onClose: import("vue").PropType<import("../interface").OnClose>;
|
|
22
23
|
readonly onTabOut: FunctionConstructor;
|
|
@@ -206,12 +207,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
206
207
|
calendarLeftPaddingDatetimerange: string;
|
|
207
208
|
calendarLeftPaddingMonth: string;
|
|
208
209
|
calendarLeftPaddingYear: string;
|
|
210
|
+
calendarLeftPaddingQuarter: string;
|
|
209
211
|
calendarRightPaddingDate: string;
|
|
210
212
|
calendarRightPaddingDatetime: string;
|
|
211
213
|
calendarRightPaddingDaterange: string;
|
|
212
214
|
calendarRightPaddingDatetimerange: string;
|
|
213
215
|
calendarRightPaddingMonth: string;
|
|
214
216
|
calendarRightPaddingYear: string;
|
|
217
|
+
calendarRightPaddingQuarter: string;
|
|
215
218
|
};
|
|
216
219
|
peers: {
|
|
217
220
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -288,9 +291,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
288
291
|
fontSizeMedium: string;
|
|
289
292
|
fontSizeLarge: string;
|
|
290
293
|
opacityDisabled: string;
|
|
291
|
-
colorOpacitySecondary:
|
|
292
|
-
colorOpacitySecondaryHover:
|
|
293
|
-
colorOpacitySecondaryPressed:
|
|
294
|
+
colorOpacitySecondary: string;
|
|
295
|
+
colorOpacitySecondaryHover: string;
|
|
296
|
+
colorOpacitySecondaryPressed: string;
|
|
294
297
|
colorSecondary: string;
|
|
295
298
|
colorSecondaryHover: string;
|
|
296
299
|
colorSecondaryPressed: string;
|
|
@@ -513,9 +516,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
513
516
|
fontSizeMedium: string;
|
|
514
517
|
fontSizeLarge: string;
|
|
515
518
|
opacityDisabled: string;
|
|
516
|
-
colorOpacitySecondary:
|
|
517
|
-
colorOpacitySecondaryHover:
|
|
518
|
-
colorOpacitySecondaryPressed:
|
|
519
|
+
colorOpacitySecondary: string;
|
|
520
|
+
colorOpacitySecondaryHover: string;
|
|
521
|
+
colorOpacitySecondaryPressed: string;
|
|
519
522
|
colorSecondary: string;
|
|
520
523
|
colorSecondaryHover: string;
|
|
521
524
|
colorSecondaryPressed: string;
|
|
@@ -800,9 +803,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
800
803
|
fontSizeMedium: string;
|
|
801
804
|
fontSizeLarge: string;
|
|
802
805
|
opacityDisabled: string;
|
|
803
|
-
colorOpacitySecondary:
|
|
804
|
-
colorOpacitySecondaryHover:
|
|
805
|
-
colorOpacitySecondaryPressed:
|
|
806
|
+
colorOpacitySecondary: string;
|
|
807
|
+
colorOpacitySecondaryHover: string;
|
|
808
|
+
colorOpacitySecondaryPressed: string;
|
|
806
809
|
colorSecondary: string;
|
|
807
810
|
colorSecondaryHover: string;
|
|
808
811
|
colorSecondaryPressed: string;
|
|
@@ -1068,6 +1071,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1068
1071
|
yearFormat: string;
|
|
1069
1072
|
monthFormat: string;
|
|
1070
1073
|
dayFormat: string;
|
|
1074
|
+
yearTypeFormat: string;
|
|
1075
|
+
monthTypeFormat: string;
|
|
1076
|
+
dateFormat: string;
|
|
1077
|
+
dateTimeFormat: string;
|
|
1078
|
+
quarterFormat: string;
|
|
1071
1079
|
clear: string;
|
|
1072
1080
|
now: string;
|
|
1073
1081
|
confirm: string;
|
|
@@ -1076,6 +1084,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1076
1084
|
datePlaceholder: string;
|
|
1077
1085
|
datetimePlaceholder: string;
|
|
1078
1086
|
monthPlaceholder: string;
|
|
1087
|
+
yearPlaceholder: string;
|
|
1088
|
+
quarterPlaceholder: string;
|
|
1079
1089
|
startDatePlaceholder: string;
|
|
1080
1090
|
endDatePlaceholder: string;
|
|
1081
1091
|
startDatetimePlaceholder: string;
|
|
@@ -1130,6 +1140,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1130
1140
|
readonly timeFormat?: unknown;
|
|
1131
1141
|
readonly value?: unknown;
|
|
1132
1142
|
readonly shortcuts?: unknown;
|
|
1143
|
+
readonly defaultTime?: unknown;
|
|
1133
1144
|
readonly onConfirm?: unknown;
|
|
1134
1145
|
readonly onClose?: unknown;
|
|
1135
1146
|
readonly onTabOut?: unknown;
|
|
@@ -1145,6 +1156,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1145
1156
|
onTabOut?: Function | undefined;
|
|
1146
1157
|
onClose?: import("../interface").OnClose | undefined;
|
|
1147
1158
|
onConfirm?: Function | undefined;
|
|
1159
|
+
defaultTime?: import("../interface").DefaultTime | undefined;
|
|
1148
1160
|
shortcuts?: import("../interface").Shortcuts | undefined;
|
|
1149
1161
|
}>, {
|
|
1150
1162
|
value: import("../interface").Value | null;
|
|
@@ -4,11 +4,11 @@ import { NInput } from '../../../input';
|
|
|
4
4
|
import { NTimePicker } from '../../../time-picker';
|
|
5
5
|
import { BackwardIcon, FastBackwardIcon, ForwardIcon, FastForwardIcon } from '../../../_internal/icons';
|
|
6
6
|
import { NBaseFocusDetector } from '../../../_internal';
|
|
7
|
-
import { useDualCalendar } from './use-dual-calendar';
|
|
8
7
|
import { warnOnce } from '../../../_utils';
|
|
8
|
+
import { useDualCalendar, useDualCalendarProps } from './use-dual-calendar';
|
|
9
9
|
export default defineComponent({
|
|
10
10
|
name: 'DateTimeRangePanel',
|
|
11
|
-
props:
|
|
11
|
+
props: useDualCalendarProps,
|
|
12
12
|
setup(props) {
|
|
13
13
|
if (process.env.NODE_ENV !== 'production') {
|
|
14
14
|
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: {
|
|
@@ -23,6 +23,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
23
|
readonly default: null;
|
|
24
24
|
};
|
|
25
25
|
shortcuts: PropType<import("../interface").Shortcuts>;
|
|
26
|
+
defaultTime: PropType<import("../interface").DefaultTime>;
|
|
26
27
|
onConfirm: FunctionConstructor;
|
|
27
28
|
onClose: PropType<import("../interface").OnClose>;
|
|
28
29
|
onTabOut: FunctionConstructor;
|
|
@@ -31,8 +32,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
32
|
readonly required: true;
|
|
32
33
|
};
|
|
33
34
|
}, {
|
|
34
|
-
renderItem: (item: YearItem | MonthItem, i: number, mergedClsPrefix: string) => VNode;
|
|
35
|
-
handleDateClick: (dateItem: import("../utils").DateItem | MonthItem | YearItem) => void;
|
|
35
|
+
renderItem: (item: YearItem | MonthItem | QuarterItem, i: number, mergedClsPrefix: string) => VNode;
|
|
36
|
+
handleDateClick: (dateItem: import("../utils").DateItem | MonthItem | YearItem | QuarterItem) => void;
|
|
36
37
|
handleDateInputBlur: () => void;
|
|
37
38
|
handleDateInput: (value: string) => void;
|
|
38
39
|
handleTimePickerChange: (value: number | null) => void;
|
|
@@ -149,12 +150,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
149
150
|
fontWeight: string;
|
|
150
151
|
fontWeightStrong: string;
|
|
151
152
|
cubicBezierEaseInOut: string;
|
|
152
|
-
/**
|
|
153
|
-
* Month Panel
|
|
154
|
-
* Update picker value on:
|
|
155
|
-
* 1. item click
|
|
156
|
-
* 2. clear click
|
|
157
|
-
*/
|
|
158
153
|
cubicBezierEaseOut: string;
|
|
159
154
|
cubicBezierEaseIn: string;
|
|
160
155
|
borderRadius: string;
|
|
@@ -221,12 +216,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
221
216
|
calendarLeftPaddingDatetimerange: string;
|
|
222
217
|
calendarLeftPaddingMonth: string;
|
|
223
218
|
calendarLeftPaddingYear: string;
|
|
219
|
+
calendarLeftPaddingQuarter: string;
|
|
224
220
|
calendarRightPaddingDate: string;
|
|
225
221
|
calendarRightPaddingDatetime: string;
|
|
226
222
|
calendarRightPaddingDaterange: string;
|
|
227
223
|
calendarRightPaddingDatetimerange: string;
|
|
228
224
|
calendarRightPaddingMonth: string;
|
|
229
225
|
calendarRightPaddingYear: string;
|
|
226
|
+
calendarRightPaddingQuarter: string;
|
|
230
227
|
};
|
|
231
228
|
peers: {
|
|
232
229
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -303,9 +300,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
303
300
|
fontSizeMedium: string;
|
|
304
301
|
fontSizeLarge: string;
|
|
305
302
|
opacityDisabled: string;
|
|
306
|
-
colorOpacitySecondary:
|
|
307
|
-
colorOpacitySecondaryHover:
|
|
308
|
-
colorOpacitySecondaryPressed:
|
|
303
|
+
colorOpacitySecondary: string;
|
|
304
|
+
colorOpacitySecondaryHover: string;
|
|
305
|
+
colorOpacitySecondaryPressed: string;
|
|
309
306
|
colorSecondary: string;
|
|
310
307
|
colorSecondaryHover: string;
|
|
311
308
|
colorSecondaryPressed: string;
|
|
@@ -528,9 +525,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
528
525
|
fontSizeMedium: string;
|
|
529
526
|
fontSizeLarge: string;
|
|
530
527
|
opacityDisabled: string;
|
|
531
|
-
colorOpacitySecondary:
|
|
532
|
-
colorOpacitySecondaryHover:
|
|
533
|
-
colorOpacitySecondaryPressed:
|
|
528
|
+
colorOpacitySecondary: string;
|
|
529
|
+
colorOpacitySecondaryHover: string;
|
|
530
|
+
colorOpacitySecondaryPressed: string;
|
|
534
531
|
colorSecondary: string;
|
|
535
532
|
colorSecondaryHover: string;
|
|
536
533
|
colorSecondaryPressed: string;
|
|
@@ -815,9 +812,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
815
812
|
fontSizeMedium: string;
|
|
816
813
|
fontSizeLarge: string;
|
|
817
814
|
opacityDisabled: string;
|
|
818
|
-
colorOpacitySecondary:
|
|
819
|
-
colorOpacitySecondaryHover:
|
|
820
|
-
colorOpacitySecondaryPressed:
|
|
815
|
+
colorOpacitySecondary: string;
|
|
816
|
+
colorOpacitySecondaryHover: string;
|
|
817
|
+
colorOpacitySecondaryPressed: string;
|
|
821
818
|
colorSecondary: string;
|
|
822
819
|
colorSecondaryHover: string;
|
|
823
820
|
colorSecondaryPressed: string;
|
|
@@ -1083,6 +1080,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1083
1080
|
yearFormat: string;
|
|
1084
1081
|
monthFormat: string;
|
|
1085
1082
|
dayFormat: string;
|
|
1083
|
+
yearTypeFormat: string;
|
|
1084
|
+
monthTypeFormat: string;
|
|
1085
|
+
dateFormat: string;
|
|
1086
|
+
dateTimeFormat: string;
|
|
1087
|
+
quarterFormat: string;
|
|
1086
1088
|
clear: string;
|
|
1087
1089
|
now: string;
|
|
1088
1090
|
confirm: string;
|
|
@@ -1091,6 +1093,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1091
1093
|
datePlaceholder: string;
|
|
1092
1094
|
datetimePlaceholder: string;
|
|
1093
1095
|
monthPlaceholder: string;
|
|
1096
|
+
yearPlaceholder: string;
|
|
1097
|
+
quarterPlaceholder: string;
|
|
1094
1098
|
startDatePlaceholder: string;
|
|
1095
1099
|
endDatePlaceholder: string;
|
|
1096
1100
|
startDatetimePlaceholder: string;
|
|
@@ -1124,6 +1128,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1124
1128
|
dateArray: import("vue").ComputedRef<import("../utils").DateItem[]>;
|
|
1125
1129
|
monthArray: import("vue").ComputedRef<MonthItem[]>;
|
|
1126
1130
|
yearArray: import("vue").ComputedRef<YearItem[]>;
|
|
1131
|
+
quarterArray: import("vue").ComputedRef<QuarterItem[]>;
|
|
1127
1132
|
calendarYear: import("vue").ComputedRef<string>;
|
|
1128
1133
|
calendarMonth: import("vue").ComputedRef<string>;
|
|
1129
1134
|
weekdays: import("vue").ComputedRef<string[]>;
|
|
@@ -1144,12 +1149,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1144
1149
|
timeFormat?: unknown;
|
|
1145
1150
|
value?: unknown;
|
|
1146
1151
|
shortcuts?: unknown;
|
|
1152
|
+
defaultTime?: unknown;
|
|
1147
1153
|
onConfirm?: unknown;
|
|
1148
1154
|
onClose?: unknown;
|
|
1149
1155
|
onTabOut?: unknown;
|
|
1150
1156
|
onUpdateValue?: unknown;
|
|
1151
1157
|
} & {
|
|
1152
|
-
type: "month" | "year";
|
|
1158
|
+
type: "month" | "year" | "quarter";
|
|
1153
1159
|
value: import("../interface").Value | null;
|
|
1154
1160
|
active: boolean;
|
|
1155
1161
|
dateFormat: string;
|
|
@@ -1160,6 +1166,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1160
1166
|
onTabOut?: Function | undefined;
|
|
1161
1167
|
onClose?: import("../interface").OnClose | undefined;
|
|
1162
1168
|
onConfirm?: Function | undefined;
|
|
1169
|
+
defaultTime?: import("../interface").DefaultTime | undefined;
|
|
1163
1170
|
shortcuts?: import("../interface").Shortcuts | undefined;
|
|
1164
1171
|
}>, {
|
|
1165
1172
|
value: import("../interface").Value | null;
|