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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PropType, ExtractPropTypes, Ref } from 'vue';
|
|
2
2
|
import { FollowerPlacement } from 'vueuc';
|
|
3
3
|
import type { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
|
|
4
|
-
import
|
|
4
|
+
import { DatePickerType } from './config';
|
|
5
|
+
import type { OnUpdateValue, Value, IsDateDisabled, IsTimeDisabled, Shortcuts, FirstDayOfWeek, DefaultTime } from './interface';
|
|
5
6
|
declare const datePickerProps: {
|
|
6
7
|
readonly to: {
|
|
7
8
|
type: PropType<string | boolean | HTMLElement>;
|
|
@@ -17,6 +18,7 @@ declare const datePickerProps: {
|
|
|
17
18
|
readonly type: PropType<Value | null>;
|
|
18
19
|
readonly default: null;
|
|
19
20
|
};
|
|
21
|
+
readonly defaultTime: PropType<DefaultTime>;
|
|
20
22
|
readonly disabled: {
|
|
21
23
|
readonly type: PropType<boolean | undefined>;
|
|
22
24
|
readonly default: undefined;
|
|
@@ -28,7 +30,7 @@ declare const datePickerProps: {
|
|
|
28
30
|
readonly value: PropType<Value | null>;
|
|
29
31
|
readonly size: PropType<"small" | "medium" | "large">;
|
|
30
32
|
readonly type: {
|
|
31
|
-
readonly type: PropType<
|
|
33
|
+
readonly type: PropType<DatePickerType>;
|
|
32
34
|
readonly default: "date";
|
|
33
35
|
};
|
|
34
36
|
readonly separator: StringConstructor;
|
|
@@ -108,12 +110,14 @@ declare const datePickerProps: {
|
|
|
108
110
|
calendarLeftPaddingDatetimerange: string;
|
|
109
111
|
calendarLeftPaddingMonth: string;
|
|
110
112
|
calendarLeftPaddingYear: string;
|
|
113
|
+
calendarLeftPaddingQuarter: string;
|
|
111
114
|
calendarRightPaddingDate: string;
|
|
112
115
|
calendarRightPaddingDatetime: string;
|
|
113
116
|
calendarRightPaddingDaterange: string;
|
|
114
117
|
calendarRightPaddingDatetimerange: string;
|
|
115
118
|
calendarRightPaddingMonth: string;
|
|
116
119
|
calendarRightPaddingYear: string;
|
|
120
|
+
calendarRightPaddingQuarter: string;
|
|
117
121
|
}, {
|
|
118
122
|
Input: import("../../_mixins").Theme<"Input", {
|
|
119
123
|
countTextColor: string;
|
|
@@ -189,9 +193,9 @@ declare const datePickerProps: {
|
|
|
189
193
|
fontSizeMedium: string;
|
|
190
194
|
fontSizeLarge: string;
|
|
191
195
|
opacityDisabled: string;
|
|
192
|
-
colorOpacitySecondary:
|
|
193
|
-
colorOpacitySecondaryHover:
|
|
194
|
-
colorOpacitySecondaryPressed:
|
|
196
|
+
colorOpacitySecondary: string;
|
|
197
|
+
colorOpacitySecondaryHover: string;
|
|
198
|
+
colorOpacitySecondaryPressed: string;
|
|
195
199
|
colorSecondary: string;
|
|
196
200
|
colorSecondaryHover: string;
|
|
197
201
|
colorSecondaryPressed: string;
|
|
@@ -414,9 +418,9 @@ declare const datePickerProps: {
|
|
|
414
418
|
fontSizeMedium: string;
|
|
415
419
|
fontSizeLarge: string;
|
|
416
420
|
opacityDisabled: string;
|
|
417
|
-
colorOpacitySecondary:
|
|
418
|
-
colorOpacitySecondaryHover:
|
|
419
|
-
colorOpacitySecondaryPressed:
|
|
421
|
+
colorOpacitySecondary: string;
|
|
422
|
+
colorOpacitySecondaryHover: string;
|
|
423
|
+
colorOpacitySecondaryPressed: string;
|
|
420
424
|
colorSecondary: string;
|
|
421
425
|
colorSecondaryHover: string;
|
|
422
426
|
colorSecondaryPressed: string;
|
|
@@ -717,12 +721,14 @@ declare const datePickerProps: {
|
|
|
717
721
|
calendarLeftPaddingDatetimerange: string;
|
|
718
722
|
calendarLeftPaddingMonth: string;
|
|
719
723
|
calendarLeftPaddingYear: string;
|
|
724
|
+
calendarLeftPaddingQuarter: string;
|
|
720
725
|
calendarRightPaddingDate: string;
|
|
721
726
|
calendarRightPaddingDatetime: string;
|
|
722
727
|
calendarRightPaddingDaterange: string;
|
|
723
728
|
calendarRightPaddingDatetimerange: string;
|
|
724
729
|
calendarRightPaddingMonth: string;
|
|
725
730
|
calendarRightPaddingYear: string;
|
|
731
|
+
calendarRightPaddingQuarter: string;
|
|
726
732
|
}, {
|
|
727
733
|
Input: import("../../_mixins").Theme<"Input", {
|
|
728
734
|
countTextColor: string;
|
|
@@ -798,9 +804,9 @@ declare const datePickerProps: {
|
|
|
798
804
|
fontSizeMedium: string;
|
|
799
805
|
fontSizeLarge: string;
|
|
800
806
|
opacityDisabled: string;
|
|
801
|
-
colorOpacitySecondary:
|
|
802
|
-
colorOpacitySecondaryHover:
|
|
803
|
-
colorOpacitySecondaryPressed:
|
|
807
|
+
colorOpacitySecondary: string;
|
|
808
|
+
colorOpacitySecondaryHover: string;
|
|
809
|
+
colorOpacitySecondaryPressed: string;
|
|
804
810
|
colorSecondary: string;
|
|
805
811
|
colorSecondaryHover: string;
|
|
806
812
|
colorSecondaryPressed: string;
|
|
@@ -1023,9 +1029,9 @@ declare const datePickerProps: {
|
|
|
1023
1029
|
fontSizeMedium: string;
|
|
1024
1030
|
fontSizeLarge: string;
|
|
1025
1031
|
opacityDisabled: string;
|
|
1026
|
-
colorOpacitySecondary:
|
|
1027
|
-
colorOpacitySecondaryHover:
|
|
1028
|
-
colorOpacitySecondaryPressed:
|
|
1032
|
+
colorOpacitySecondary: string;
|
|
1033
|
+
colorOpacitySecondaryHover: string;
|
|
1034
|
+
colorOpacitySecondaryPressed: string;
|
|
1029
1035
|
colorSecondary: string;
|
|
1030
1036
|
colorSecondaryHover: string;
|
|
1031
1037
|
colorSecondaryPressed: string;
|
|
@@ -1326,12 +1332,14 @@ declare const datePickerProps: {
|
|
|
1326
1332
|
calendarLeftPaddingDatetimerange: string;
|
|
1327
1333
|
calendarLeftPaddingMonth: string;
|
|
1328
1334
|
calendarLeftPaddingYear: string;
|
|
1335
|
+
calendarLeftPaddingQuarter: string;
|
|
1329
1336
|
calendarRightPaddingDate: string;
|
|
1330
1337
|
calendarRightPaddingDatetime: string;
|
|
1331
1338
|
calendarRightPaddingDaterange: string;
|
|
1332
1339
|
calendarRightPaddingDatetimerange: string;
|
|
1333
1340
|
calendarRightPaddingMonth: string;
|
|
1334
1341
|
calendarRightPaddingYear: string;
|
|
1342
|
+
calendarRightPaddingQuarter: string;
|
|
1335
1343
|
}, {
|
|
1336
1344
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1337
1345
|
countTextColor: string;
|
|
@@ -1407,9 +1415,9 @@ declare const datePickerProps: {
|
|
|
1407
1415
|
fontSizeMedium: string;
|
|
1408
1416
|
fontSizeLarge: string;
|
|
1409
1417
|
opacityDisabled: string;
|
|
1410
|
-
colorOpacitySecondary:
|
|
1411
|
-
colorOpacitySecondaryHover:
|
|
1412
|
-
colorOpacitySecondaryPressed:
|
|
1418
|
+
colorOpacitySecondary: string;
|
|
1419
|
+
colorOpacitySecondaryHover: string;
|
|
1420
|
+
colorOpacitySecondaryPressed: string;
|
|
1413
1421
|
colorSecondary: string;
|
|
1414
1422
|
colorSecondaryHover: string;
|
|
1415
1423
|
colorSecondaryPressed: string;
|
|
@@ -1632,9 +1640,9 @@ declare const datePickerProps: {
|
|
|
1632
1640
|
fontSizeMedium: string;
|
|
1633
1641
|
fontSizeLarge: string;
|
|
1634
1642
|
opacityDisabled: string;
|
|
1635
|
-
colorOpacitySecondary:
|
|
1636
|
-
colorOpacitySecondaryHover:
|
|
1637
|
-
colorOpacitySecondaryPressed:
|
|
1643
|
+
colorOpacitySecondary: string;
|
|
1644
|
+
colorOpacitySecondaryHover: string;
|
|
1645
|
+
colorOpacitySecondaryPressed: string;
|
|
1638
1646
|
colorSecondary: string;
|
|
1639
1647
|
colorSecondaryHover: string;
|
|
1640
1648
|
colorSecondaryPressed: string;
|
|
@@ -1906,6 +1914,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1906
1914
|
readonly type: PropType<Value | null>;
|
|
1907
1915
|
readonly default: null;
|
|
1908
1916
|
};
|
|
1917
|
+
readonly defaultTime: PropType<DefaultTime>;
|
|
1909
1918
|
readonly disabled: {
|
|
1910
1919
|
readonly type: PropType<boolean | undefined>;
|
|
1911
1920
|
readonly default: undefined;
|
|
@@ -1917,7 +1926,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1917
1926
|
readonly value: PropType<Value | null>;
|
|
1918
1927
|
readonly size: PropType<"small" | "medium" | "large">;
|
|
1919
1928
|
readonly type: {
|
|
1920
|
-
readonly type: PropType<
|
|
1929
|
+
readonly type: PropType<DatePickerType>;
|
|
1921
1930
|
readonly default: "date";
|
|
1922
1931
|
};
|
|
1923
1932
|
readonly separator: StringConstructor;
|
|
@@ -1997,12 +2006,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1997
2006
|
calendarLeftPaddingDatetimerange: string;
|
|
1998
2007
|
calendarLeftPaddingMonth: string;
|
|
1999
2008
|
calendarLeftPaddingYear: string;
|
|
2009
|
+
calendarLeftPaddingQuarter: string;
|
|
2000
2010
|
calendarRightPaddingDate: string;
|
|
2001
2011
|
calendarRightPaddingDatetime: string;
|
|
2002
2012
|
calendarRightPaddingDaterange: string;
|
|
2003
2013
|
calendarRightPaddingDatetimerange: string;
|
|
2004
2014
|
calendarRightPaddingMonth: string;
|
|
2005
2015
|
calendarRightPaddingYear: string;
|
|
2016
|
+
calendarRightPaddingQuarter: string;
|
|
2006
2017
|
}, {
|
|
2007
2018
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2008
2019
|
countTextColor: string;
|
|
@@ -2078,9 +2089,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2078
2089
|
fontSizeMedium: string;
|
|
2079
2090
|
fontSizeLarge: string;
|
|
2080
2091
|
opacityDisabled: string;
|
|
2081
|
-
colorOpacitySecondary:
|
|
2082
|
-
colorOpacitySecondaryHover:
|
|
2083
|
-
colorOpacitySecondaryPressed:
|
|
2092
|
+
colorOpacitySecondary: string;
|
|
2093
|
+
colorOpacitySecondaryHover: string;
|
|
2094
|
+
colorOpacitySecondaryPressed: string;
|
|
2084
2095
|
colorSecondary: string;
|
|
2085
2096
|
colorSecondaryHover: string;
|
|
2086
2097
|
colorSecondaryPressed: string;
|
|
@@ -2303,9 +2314,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2303
2314
|
fontSizeMedium: string;
|
|
2304
2315
|
fontSizeLarge: string;
|
|
2305
2316
|
opacityDisabled: string;
|
|
2306
|
-
colorOpacitySecondary:
|
|
2307
|
-
colorOpacitySecondaryHover:
|
|
2308
|
-
colorOpacitySecondaryPressed:
|
|
2317
|
+
colorOpacitySecondary: string;
|
|
2318
|
+
colorOpacitySecondaryHover: string;
|
|
2319
|
+
colorOpacitySecondaryPressed: string;
|
|
2309
2320
|
colorSecondary: string;
|
|
2310
2321
|
colorSecondaryHover: string;
|
|
2311
2322
|
colorSecondaryPressed: string;
|
|
@@ -2606,12 +2617,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2606
2617
|
calendarLeftPaddingDatetimerange: string;
|
|
2607
2618
|
calendarLeftPaddingMonth: string;
|
|
2608
2619
|
calendarLeftPaddingYear: string;
|
|
2620
|
+
calendarLeftPaddingQuarter: string;
|
|
2609
2621
|
calendarRightPaddingDate: string;
|
|
2610
2622
|
calendarRightPaddingDatetime: string;
|
|
2611
2623
|
calendarRightPaddingDaterange: string;
|
|
2612
2624
|
calendarRightPaddingDatetimerange: string;
|
|
2613
2625
|
calendarRightPaddingMonth: string;
|
|
2614
2626
|
calendarRightPaddingYear: string;
|
|
2627
|
+
calendarRightPaddingQuarter: string;
|
|
2615
2628
|
}, {
|
|
2616
2629
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2617
2630
|
countTextColor: string;
|
|
@@ -2687,9 +2700,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2687
2700
|
fontSizeMedium: string;
|
|
2688
2701
|
fontSizeLarge: string;
|
|
2689
2702
|
opacityDisabled: string;
|
|
2690
|
-
colorOpacitySecondary:
|
|
2691
|
-
colorOpacitySecondaryHover:
|
|
2692
|
-
colorOpacitySecondaryPressed:
|
|
2703
|
+
colorOpacitySecondary: string;
|
|
2704
|
+
colorOpacitySecondaryHover: string;
|
|
2705
|
+
colorOpacitySecondaryPressed: string;
|
|
2693
2706
|
colorSecondary: string;
|
|
2694
2707
|
colorSecondaryHover: string;
|
|
2695
2708
|
colorSecondaryPressed: string;
|
|
@@ -2912,9 +2925,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2912
2925
|
fontSizeMedium: string;
|
|
2913
2926
|
fontSizeLarge: string;
|
|
2914
2927
|
opacityDisabled: string;
|
|
2915
|
-
colorOpacitySecondary:
|
|
2916
|
-
colorOpacitySecondaryHover:
|
|
2917
|
-
colorOpacitySecondaryPressed:
|
|
2928
|
+
colorOpacitySecondary: string;
|
|
2929
|
+
colorOpacitySecondaryHover: string;
|
|
2930
|
+
colorOpacitySecondaryPressed: string;
|
|
2918
2931
|
colorSecondary: string;
|
|
2919
2932
|
colorSecondaryHover: string;
|
|
2920
2933
|
colorSecondaryPressed: string;
|
|
@@ -3215,12 +3228,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3215
3228
|
calendarLeftPaddingDatetimerange: string;
|
|
3216
3229
|
calendarLeftPaddingMonth: string;
|
|
3217
3230
|
calendarLeftPaddingYear: string;
|
|
3231
|
+
calendarLeftPaddingQuarter: string;
|
|
3218
3232
|
calendarRightPaddingDate: string;
|
|
3219
3233
|
calendarRightPaddingDatetime: string;
|
|
3220
3234
|
calendarRightPaddingDaterange: string;
|
|
3221
3235
|
calendarRightPaddingDatetimerange: string;
|
|
3222
3236
|
calendarRightPaddingMonth: string;
|
|
3223
3237
|
calendarRightPaddingYear: string;
|
|
3238
|
+
calendarRightPaddingQuarter: string;
|
|
3224
3239
|
}, {
|
|
3225
3240
|
Input: import("../../_mixins").Theme<"Input", {
|
|
3226
3241
|
countTextColor: string;
|
|
@@ -3296,9 +3311,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3296
3311
|
fontSizeMedium: string;
|
|
3297
3312
|
fontSizeLarge: string;
|
|
3298
3313
|
opacityDisabled: string;
|
|
3299
|
-
colorOpacitySecondary:
|
|
3300
|
-
colorOpacitySecondaryHover:
|
|
3301
|
-
colorOpacitySecondaryPressed:
|
|
3314
|
+
colorOpacitySecondary: string;
|
|
3315
|
+
colorOpacitySecondaryHover: string;
|
|
3316
|
+
colorOpacitySecondaryPressed: string;
|
|
3302
3317
|
colorSecondary: string;
|
|
3303
3318
|
colorSecondaryHover: string;
|
|
3304
3319
|
colorSecondaryPressed: string;
|
|
@@ -3521,9 +3536,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3521
3536
|
fontSizeMedium: string;
|
|
3522
3537
|
fontSizeLarge: string;
|
|
3523
3538
|
opacityDisabled: string;
|
|
3524
|
-
colorOpacitySecondary:
|
|
3525
|
-
colorOpacitySecondaryHover:
|
|
3526
|
-
colorOpacitySecondaryPressed:
|
|
3539
|
+
colorOpacitySecondary: string;
|
|
3540
|
+
colorOpacitySecondaryHover: string;
|
|
3541
|
+
colorOpacitySecondaryPressed: string;
|
|
3527
3542
|
colorSecondary: string;
|
|
3528
3543
|
colorSecondaryHover: string;
|
|
3529
3544
|
colorSecondaryPressed: string;
|
|
@@ -3821,7 +3836,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3821
3836
|
localizedEndPlaceholder: import("vue").ComputedRef<string>;
|
|
3822
3837
|
mergedSize: import("vue").ComputedRef<"small" | "medium" | "large">;
|
|
3823
3838
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
3824
|
-
localizedPlacehoder: import("vue").ComputedRef<string
|
|
3839
|
+
localizedPlacehoder: import("vue").ComputedRef<string>;
|
|
3825
3840
|
isValueInvalid: import("vue").ComputedRef<boolean>;
|
|
3826
3841
|
isStartValueInvalid: import("vue").ComputedRef<boolean>;
|
|
3827
3842
|
isEndValueInvalid: import("vue").ComputedRef<boolean>;
|
|
@@ -3990,12 +4005,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3990
4005
|
calendarLeftPaddingDatetimerange: string;
|
|
3991
4006
|
calendarLeftPaddingMonth: string;
|
|
3992
4007
|
calendarLeftPaddingYear: string;
|
|
4008
|
+
calendarLeftPaddingQuarter: string;
|
|
3993
4009
|
calendarRightPaddingDate: string;
|
|
3994
4010
|
calendarRightPaddingDatetime: string;
|
|
3995
4011
|
calendarRightPaddingDaterange: string;
|
|
3996
4012
|
calendarRightPaddingDatetimerange: string;
|
|
3997
4013
|
calendarRightPaddingMonth: string;
|
|
3998
4014
|
calendarRightPaddingYear: string;
|
|
4015
|
+
calendarRightPaddingQuarter: string;
|
|
3999
4016
|
};
|
|
4000
4017
|
peers: {
|
|
4001
4018
|
Input: import("../../_mixins").Theme<"Input", {
|
|
@@ -4072,9 +4089,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4072
4089
|
fontSizeMedium: string;
|
|
4073
4090
|
fontSizeLarge: string;
|
|
4074
4091
|
opacityDisabled: string;
|
|
4075
|
-
colorOpacitySecondary:
|
|
4076
|
-
colorOpacitySecondaryHover:
|
|
4077
|
-
colorOpacitySecondaryPressed:
|
|
4092
|
+
colorOpacitySecondary: string;
|
|
4093
|
+
colorOpacitySecondaryHover: string;
|
|
4094
|
+
colorOpacitySecondaryPressed: string;
|
|
4078
4095
|
colorSecondary: string;
|
|
4079
4096
|
colorSecondaryHover: string;
|
|
4080
4097
|
colorSecondaryPressed: string;
|
|
@@ -4297,9 +4314,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4297
4314
|
fontSizeMedium: string;
|
|
4298
4315
|
fontSizeLarge: string;
|
|
4299
4316
|
opacityDisabled: string;
|
|
4300
|
-
colorOpacitySecondary:
|
|
4301
|
-
colorOpacitySecondaryHover:
|
|
4302
|
-
colorOpacitySecondaryPressed:
|
|
4317
|
+
colorOpacitySecondary: string;
|
|
4318
|
+
colorOpacitySecondaryHover: string;
|
|
4319
|
+
colorOpacitySecondaryPressed: string;
|
|
4303
4320
|
colorSecondary: string;
|
|
4304
4321
|
colorSecondaryHover: string;
|
|
4305
4322
|
colorSecondaryPressed: string;
|
|
@@ -4584,9 +4601,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4584
4601
|
fontSizeMedium: string;
|
|
4585
4602
|
fontSizeLarge: string;
|
|
4586
4603
|
opacityDisabled: string;
|
|
4587
|
-
colorOpacitySecondary:
|
|
4588
|
-
colorOpacitySecondaryHover:
|
|
4589
|
-
colorOpacitySecondaryPressed:
|
|
4604
|
+
colorOpacitySecondary: string;
|
|
4605
|
+
colorOpacitySecondaryHover: string;
|
|
4606
|
+
colorOpacitySecondaryPressed: string;
|
|
4590
4607
|
colorSecondary: string;
|
|
4591
4608
|
colorSecondaryHover: string;
|
|
4592
4609
|
colorSecondaryPressed: string;
|
|
@@ -4899,6 +4916,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4899
4916
|
readonly clearable?: unknown;
|
|
4900
4917
|
readonly updateValueOnClose?: unknown;
|
|
4901
4918
|
readonly defaultValue?: unknown;
|
|
4919
|
+
readonly defaultTime?: unknown;
|
|
4902
4920
|
readonly disabled?: unknown;
|
|
4903
4921
|
readonly placement?: unknown;
|
|
4904
4922
|
readonly value?: unknown;
|
|
@@ -4931,7 +4949,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4931
4949
|
readonly themeOverrides?: unknown;
|
|
4932
4950
|
readonly builtinThemeOverrides?: unknown;
|
|
4933
4951
|
} & {
|
|
4934
|
-
type:
|
|
4952
|
+
type: DatePickerType;
|
|
4935
4953
|
placement: FollowerPlacement;
|
|
4936
4954
|
clearable: boolean;
|
|
4937
4955
|
defaultValue: Value | null;
|
|
@@ -4997,12 +5015,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4997
5015
|
calendarLeftPaddingDatetimerange: string;
|
|
4998
5016
|
calendarLeftPaddingMonth: string;
|
|
4999
5017
|
calendarLeftPaddingYear: string;
|
|
5018
|
+
calendarLeftPaddingQuarter: string;
|
|
5000
5019
|
calendarRightPaddingDate: string;
|
|
5001
5020
|
calendarRightPaddingDatetime: string;
|
|
5002
5021
|
calendarRightPaddingDaterange: string;
|
|
5003
5022
|
calendarRightPaddingDatetimerange: string;
|
|
5004
5023
|
calendarRightPaddingMonth: string;
|
|
5005
5024
|
calendarRightPaddingYear: string;
|
|
5025
|
+
calendarRightPaddingQuarter: string;
|
|
5006
5026
|
}, {
|
|
5007
5027
|
Input: import("../../_mixins").Theme<"Input", {
|
|
5008
5028
|
countTextColor: string;
|
|
@@ -5078,9 +5098,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5078
5098
|
fontSizeMedium: string;
|
|
5079
5099
|
fontSizeLarge: string;
|
|
5080
5100
|
opacityDisabled: string;
|
|
5081
|
-
colorOpacitySecondary:
|
|
5082
|
-
colorOpacitySecondaryHover:
|
|
5083
|
-
colorOpacitySecondaryPressed:
|
|
5101
|
+
colorOpacitySecondary: string;
|
|
5102
|
+
colorOpacitySecondaryHover: string;
|
|
5103
|
+
colorOpacitySecondaryPressed: string;
|
|
5084
5104
|
colorSecondary: string;
|
|
5085
5105
|
colorSecondaryHover: string;
|
|
5086
5106
|
colorSecondaryPressed: string;
|
|
@@ -5303,9 +5323,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5303
5323
|
fontSizeMedium: string;
|
|
5304
5324
|
fontSizeLarge: string;
|
|
5305
5325
|
opacityDisabled: string;
|
|
5306
|
-
colorOpacitySecondary:
|
|
5307
|
-
colorOpacitySecondaryHover:
|
|
5308
|
-
colorOpacitySecondaryPressed:
|
|
5326
|
+
colorOpacitySecondary: string;
|
|
5327
|
+
colorOpacitySecondaryHover: string;
|
|
5328
|
+
colorOpacitySecondaryPressed: string;
|
|
5309
5329
|
colorSecondary: string;
|
|
5310
5330
|
colorSecondaryHover: string;
|
|
5311
5331
|
colorSecondaryPressed: string;
|
|
@@ -5606,12 +5626,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5606
5626
|
calendarLeftPaddingDatetimerange: string;
|
|
5607
5627
|
calendarLeftPaddingMonth: string;
|
|
5608
5628
|
calendarLeftPaddingYear: string;
|
|
5629
|
+
calendarLeftPaddingQuarter: string;
|
|
5609
5630
|
calendarRightPaddingDate: string;
|
|
5610
5631
|
calendarRightPaddingDatetime: string;
|
|
5611
5632
|
calendarRightPaddingDaterange: string;
|
|
5612
5633
|
calendarRightPaddingDatetimerange: string;
|
|
5613
5634
|
calendarRightPaddingMonth: string;
|
|
5614
5635
|
calendarRightPaddingYear: string;
|
|
5636
|
+
calendarRightPaddingQuarter: string;
|
|
5615
5637
|
}, {
|
|
5616
5638
|
Input: import("../../_mixins").Theme<"Input", {
|
|
5617
5639
|
countTextColor: string;
|
|
@@ -5687,9 +5709,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5687
5709
|
fontSizeMedium: string;
|
|
5688
5710
|
fontSizeLarge: string;
|
|
5689
5711
|
opacityDisabled: string;
|
|
5690
|
-
colorOpacitySecondary:
|
|
5691
|
-
colorOpacitySecondaryHover:
|
|
5692
|
-
colorOpacitySecondaryPressed:
|
|
5712
|
+
colorOpacitySecondary: string;
|
|
5713
|
+
colorOpacitySecondaryHover: string;
|
|
5714
|
+
colorOpacitySecondaryPressed: string;
|
|
5693
5715
|
colorSecondary: string;
|
|
5694
5716
|
colorSecondaryHover: string;
|
|
5695
5717
|
colorSecondaryPressed: string;
|
|
@@ -5912,9 +5934,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5912
5934
|
fontSizeMedium: string;
|
|
5913
5935
|
fontSizeLarge: string;
|
|
5914
5936
|
opacityDisabled: string;
|
|
5915
|
-
colorOpacitySecondary:
|
|
5916
|
-
colorOpacitySecondaryHover:
|
|
5917
|
-
colorOpacitySecondaryPressed:
|
|
5937
|
+
colorOpacitySecondary: string;
|
|
5938
|
+
colorOpacitySecondaryHover: string;
|
|
5939
|
+
colorOpacitySecondaryPressed: string;
|
|
5918
5940
|
colorSecondary: string;
|
|
5919
5941
|
colorSecondaryHover: string;
|
|
5920
5942
|
colorSecondaryPressed: string;
|
|
@@ -6215,12 +6237,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6215
6237
|
calendarLeftPaddingDatetimerange: string;
|
|
6216
6238
|
calendarLeftPaddingMonth: string;
|
|
6217
6239
|
calendarLeftPaddingYear: string;
|
|
6240
|
+
calendarLeftPaddingQuarter: string;
|
|
6218
6241
|
calendarRightPaddingDate: string;
|
|
6219
6242
|
calendarRightPaddingDatetime: string;
|
|
6220
6243
|
calendarRightPaddingDaterange: string;
|
|
6221
6244
|
calendarRightPaddingDatetimerange: string;
|
|
6222
6245
|
calendarRightPaddingMonth: string;
|
|
6223
6246
|
calendarRightPaddingYear: string;
|
|
6247
|
+
calendarRightPaddingQuarter: string;
|
|
6224
6248
|
}, {
|
|
6225
6249
|
Input: import("../../_mixins").Theme<"Input", {
|
|
6226
6250
|
countTextColor: string;
|
|
@@ -6296,9 +6320,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6296
6320
|
fontSizeMedium: string;
|
|
6297
6321
|
fontSizeLarge: string;
|
|
6298
6322
|
opacityDisabled: string;
|
|
6299
|
-
colorOpacitySecondary:
|
|
6300
|
-
colorOpacitySecondaryHover:
|
|
6301
|
-
colorOpacitySecondaryPressed:
|
|
6323
|
+
colorOpacitySecondary: string;
|
|
6324
|
+
colorOpacitySecondaryHover: string;
|
|
6325
|
+
colorOpacitySecondaryPressed: string;
|
|
6302
6326
|
colorSecondary: string;
|
|
6303
6327
|
colorSecondaryHover: string;
|
|
6304
6328
|
colorSecondaryPressed: string;
|
|
@@ -6521,9 +6545,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6521
6545
|
fontSizeMedium: string;
|
|
6522
6546
|
fontSizeLarge: string;
|
|
6523
6547
|
opacityDisabled: string;
|
|
6524
|
-
colorOpacitySecondary:
|
|
6525
|
-
colorOpacitySecondaryHover:
|
|
6526
|
-
colorOpacitySecondaryPressed:
|
|
6548
|
+
colorOpacitySecondary: string;
|
|
6549
|
+
colorOpacitySecondaryHover: string;
|
|
6550
|
+
colorOpacitySecondaryPressed: string;
|
|
6527
6551
|
colorSecondary: string;
|
|
6528
6552
|
colorSecondaryHover: string;
|
|
6529
6553
|
colorSecondaryPressed: string;
|
|
@@ -6786,6 +6810,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6786
6810
|
onUpdateValue?: MaybeArray<OnUpdateValue> | undefined;
|
|
6787
6811
|
isDateDisabled?: IsDateDisabled | undefined;
|
|
6788
6812
|
actions?: ("clear" | "confirm" | "now")[] | undefined;
|
|
6813
|
+
defaultTime?: DefaultTime | undefined;
|
|
6789
6814
|
startPlaceholder?: string | undefined;
|
|
6790
6815
|
endPlaceholder?: string | undefined;
|
|
6791
6816
|
timeFormat?: string | undefined;
|
|
@@ -6793,7 +6818,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6793
6818
|
isTimeDisabled?: IsTimeDisabled | undefined;
|
|
6794
6819
|
ranges?: Record<string, [number, number]> | undefined;
|
|
6795
6820
|
}>, {
|
|
6796
|
-
type:
|
|
6821
|
+
type: DatePickerType;
|
|
6797
6822
|
show: boolean | undefined;
|
|
6798
6823
|
disabled: boolean | undefined;
|
|
6799
6824
|
onChange: MaybeArray<OnUpdateValue>;
|
|
@@ -12,7 +12,7 @@ import { warn, call, useAdjustedTo, createKey } from '../../_utils';
|
|
|
12
12
|
import { datePickerLight } from '../styles';
|
|
13
13
|
import { strictParse } from './utils';
|
|
14
14
|
import { uniCalendarValidation, dualCalendarValidation } from './validation-utils';
|
|
15
|
-
import { MONTH_ITEM_HEIGHT, START_YEAR
|
|
15
|
+
import { MONTH_ITEM_HEIGHT, START_YEAR } from './config';
|
|
16
16
|
import { datePickerInjectionKey } from './interface';
|
|
17
17
|
import DatetimePanel from './panel/datetime';
|
|
18
18
|
import DatetimerangePanel from './panel/datetimerange';
|
|
@@ -26,7 +26,7 @@ const datePickerProps = Object.assign(Object.assign({}, useTheme.props), { to: u
|
|
|
26
26
|
}, clearable: Boolean, updateValueOnClose: Boolean, defaultValue: {
|
|
27
27
|
type: [Number, Array],
|
|
28
28
|
default: null
|
|
29
|
-
}, disabled: {
|
|
29
|
+
}, defaultTime: [Number, String, Array], disabled: {
|
|
30
30
|
type: Boolean,
|
|
31
31
|
default: undefined
|
|
32
32
|
}, placement: {
|
|
@@ -89,20 +89,26 @@ export default defineComponent({
|
|
|
89
89
|
return ['daterange', 'datetimerange'].includes(props.type);
|
|
90
90
|
});
|
|
91
91
|
const localizedPlacehoderRef = computed(() => {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
92
|
+
const { placeholder } = props;
|
|
93
|
+
if (placeholder === undefined) {
|
|
94
|
+
const { type } = props;
|
|
95
|
+
switch (type) {
|
|
96
|
+
case 'date':
|
|
97
|
+
return localeRef.value.datePlaceholder;
|
|
98
|
+
case 'datetime':
|
|
99
|
+
return localeRef.value.datetimePlaceholder;
|
|
100
|
+
case 'month':
|
|
101
|
+
return localeRef.value.monthPlaceholder;
|
|
102
|
+
case 'year':
|
|
103
|
+
return localeRef.value.yearPlaceholder;
|
|
104
|
+
case 'quarter':
|
|
105
|
+
return localeRef.value.quarterPlaceholder;
|
|
106
|
+
default:
|
|
107
|
+
return '';
|
|
101
108
|
}
|
|
102
|
-
return props.placeholder;
|
|
103
109
|
}
|
|
104
110
|
else {
|
|
105
|
-
return
|
|
111
|
+
return placeholder;
|
|
106
112
|
}
|
|
107
113
|
});
|
|
108
114
|
const localizedStartPlaceholderRef = computed(() => {
|
|
@@ -134,7 +140,23 @@ export default defineComponent({
|
|
|
134
140
|
}
|
|
135
141
|
});
|
|
136
142
|
const mergedFormatRef = computed(() => {
|
|
137
|
-
|
|
143
|
+
const { format } = props;
|
|
144
|
+
if (format)
|
|
145
|
+
return format;
|
|
146
|
+
switch (props.type) {
|
|
147
|
+
case 'date':
|
|
148
|
+
case 'daterange':
|
|
149
|
+
return localeRef.value.dateFormat;
|
|
150
|
+
case 'datetime':
|
|
151
|
+
case 'datetimerange':
|
|
152
|
+
return localeRef.value.dateTimeFormat;
|
|
153
|
+
case 'year':
|
|
154
|
+
return localeRef.value.yearTypeFormat;
|
|
155
|
+
case 'month':
|
|
156
|
+
return localeRef.value.monthTypeFormat;
|
|
157
|
+
case 'quarter':
|
|
158
|
+
return localeRef.value.quarterFormat;
|
|
159
|
+
}
|
|
138
160
|
});
|
|
139
161
|
const mergedActionsRef = computed(() => {
|
|
140
162
|
const { actions, type } = props;
|
|
@@ -159,6 +181,9 @@ export default defineComponent({
|
|
|
159
181
|
case 'year': {
|
|
160
182
|
return ['clear', 'now'];
|
|
161
183
|
}
|
|
184
|
+
case 'quarter': {
|
|
185
|
+
return ['clear', 'now', 'confirm'];
|
|
186
|
+
}
|
|
162
187
|
default: {
|
|
163
188
|
warn('data-picker', "The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");
|
|
164
189
|
break;
|
|
@@ -241,7 +266,7 @@ export default defineComponent({
|
|
|
241
266
|
disableUpdateOnClose
|
|
242
267
|
});
|
|
243
268
|
}
|
|
244
|
-
function
|
|
269
|
+
function scrollPickerColumns(value) {
|
|
245
270
|
if (!panelInstRef.value)
|
|
246
271
|
return;
|
|
247
272
|
const { monthScrollRef, yearScrollRef } = panelInstRef.value;
|
|
@@ -387,8 +412,9 @@ export default defineComponent({
|
|
|
387
412
|
if (mergedDisabledRef.value || mergedShowRef.value)
|
|
388
413
|
return;
|
|
389
414
|
doUpdateShow(true);
|
|
390
|
-
|
|
391
|
-
|
|
415
|
+
const { type } = props;
|
|
416
|
+
if (type === 'month' || type === 'year' || type === 'quarter') {
|
|
417
|
+
void nextTick(scrollPickerColumns);
|
|
392
418
|
}
|
|
393
419
|
}
|
|
394
420
|
function closeCalendar({ returnFocus, disableUpdateOnClose }) {
|
|
@@ -424,7 +450,7 @@ export default defineComponent({
|
|
|
424
450
|
// use pending value to do validation
|
|
425
451
|
const uniVaidation = uniCalendarValidation(props, pendingValueRef);
|
|
426
452
|
const dualValidation = dualCalendarValidation(props, pendingValueRef);
|
|
427
|
-
provide(datePickerInjectionKey, Object.assign(Object.assign(Object.assign({
|
|
453
|
+
provide(datePickerInjectionKey, Object.assign(Object.assign(Object.assign({ scrollPickerColumns,
|
|
428
454
|
mergedClsPrefixRef, mergedThemeRef: themeRef, timePickerSizeRef,
|
|
429
455
|
localeRef,
|
|
430
456
|
dateLocaleRef, firstDayOfWeekRef: toRef(props, 'firstDayOfWeek'), isDateDisabledRef: toRef(props, 'isDateDisabled'), rangesRef: toRef(props, 'ranges'), closeOnSelectRef: toRef(props, 'closeOnSelect'), updateValueOnCloseRef: toRef(props, 'updateValueOnClose') }, uniVaidation), dualValidation), { datePickerSlots: slots }));
|
|
@@ -560,7 +586,8 @@ export default defineComponent({
|
|
|
560
586
|
active: this.mergedShow,
|
|
561
587
|
actions: this.actions,
|
|
562
588
|
shortcuts: this.shortcuts,
|
|
563
|
-
style: this.cssVars
|
|
589
|
+
style: this.cssVars,
|
|
590
|
+
defaultTime: this.defaultTime
|
|
564
591
|
};
|
|
565
592
|
const { mergedClsPrefix } = this;
|
|
566
593
|
return (h("div", { ref: "triggerElRef", class: [
|
|
@@ -589,7 +616,7 @@ export default defineComponent({
|
|
|
589
616
|
h(VFollower, { show: this.mergedShow, containerClass: this.namespace, to: this.adjustedTo, teleportDisabled: this.adjustedTo === useAdjustedTo.tdkey, placement: "bottom-start" }, {
|
|
590
617
|
default: () => (h(Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted }, {
|
|
591
618
|
default: () => this.mergedShow
|
|
592
|
-
? withDirectives(this.type === 'datetime' ? (h(DatetimePanel, Object.assign({}, commonPanelProps))) : this.type === 'daterange' ? (h(DaterangePanel, Object.assign({}, commonPanelProps))) : this.type === 'datetimerange' ? (h(DatetimerangePanel, Object.assign({}, commonPanelProps))) : this.type === 'month' ? (h(MonthPanel, Object.assign({}, commonPanelProps, { type: "month", key: "month" }))) : this.type === 'year' ? (h(MonthPanel, Object.assign({}, commonPanelProps, { type: "year", key: "year" }))) : (h(DatePanel, Object.assign({}, commonPanelProps))), [[clickoutside, this.handleClickOutside]])
|
|
619
|
+
? withDirectives(this.type === 'datetime' ? (h(DatetimePanel, Object.assign({}, commonPanelProps))) : this.type === 'daterange' ? (h(DaterangePanel, Object.assign({}, commonPanelProps))) : this.type === 'datetimerange' ? (h(DatetimerangePanel, Object.assign({}, commonPanelProps))) : this.type === 'month' ? (h(MonthPanel, Object.assign({}, commonPanelProps, { type: "month", key: "month" }))) : this.type === 'year' ? (h(MonthPanel, Object.assign({}, commonPanelProps, { type: "year", key: "year" }))) : this.type === 'quarter' ? (h(MonthPanel, Object.assign({}, commonPanelProps, { type: "quarter", key: "quarter" }))) : (h(DatePanel, Object.assign({}, commonPanelProps))), [[clickoutside, this.handleClickOutside]])
|
|
593
620
|
: null
|
|
594
621
|
}))
|
|
595
622
|
})
|
|
@@ -1,11 +1,3 @@
|
|
|
1
1
|
export declare const START_YEAR = 1901;
|
|
2
2
|
export declare const MONTH_ITEM_HEIGHT = 40;
|
|
3
|
-
export declare
|
|
4
|
-
date: string;
|
|
5
|
-
datetime: string;
|
|
6
|
-
daterange: string;
|
|
7
|
-
datetimerange: string;
|
|
8
|
-
month: string;
|
|
9
|
-
year: string;
|
|
10
|
-
};
|
|
11
|
-
export declare type DatePickerType = keyof typeof DATE_FORMAT;
|
|
3
|
+
export declare type DatePickerType = 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'month' | 'year' | 'quarter';
|
|
@@ -1,11 +1,3 @@
|
|
|
1
1
|
export const START_YEAR = 1901;
|
|
2
2
|
// TODO: we need to remove it to make height customizable
|
|
3
3
|
export const MONTH_ITEM_HEIGHT = 40;
|
|
4
|
-
export const DATE_FORMAT = {
|
|
5
|
-
date: 'yyyy-MM-dd',
|
|
6
|
-
datetime: 'yyyy-MM-dd HH:mm:ss',
|
|
7
|
-
daterange: 'yyyy-MM-dd',
|
|
8
|
-
datetimerange: 'yyyy-MM-dd HH:mm:ss',
|
|
9
|
-
month: 'yyyy-MM',
|
|
10
|
-
year: 'yyyy'
|
|
11
|
-
};
|