naive-ui 2.30.6 → 2.30.7
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/README.zh-CN.md +2 -2
- package/dist/index.js +1966 -1277
- package/dist/index.prod.js +2 -2
- package/es/_internal/close/src/Close.js +1 -1
- package/es/button/src/styles/index.cssr.js +3 -0
- package/es/date-picker/src/DatePicker.d.ts +40 -0
- package/es/date-picker/src/DatePicker.js +15 -3
- package/es/date-picker/src/config.d.ts +1 -1
- package/es/date-picker/src/panel/date.d.ts +4 -0
- package/es/date-picker/src/panel/daterange.d.ts +7 -1
- package/es/date-picker/src/panel/datetime.d.ts +4 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +7 -1
- package/es/date-picker/src/panel/month.d.ts +4 -0
- package/es/date-picker/src/panel/monthrange.d.ts +11 -5
- package/es/date-picker/src/panel/monthrange.js +13 -7
- package/es/date-picker/src/panel/panelHeader.d.ts +8 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +9 -3
- package/es/date-picker/src/panel/use-dual-calendar.js +26 -6
- package/es/date-picker/src/panel/use-panel-common.d.ts +4 -0
- package/es/date-picker/src/utils.d.ts +1 -1
- package/es/date-picker/src/utils.js +2 -2
- package/es/date-picker/styles/_common.d.ts +4 -0
- package/es/date-picker/styles/_common.js +5 -1
- package/es/date-picker/styles/light.d.ts +8 -0
- package/es/drawer/src/DrawerBodyWrapper.js +1 -1
- package/es/grid/src/Grid.js +1 -1
- package/es/locales/common/viVN.d.ts +3 -0
- package/es/locales/common/viVN.js +113 -0
- package/es/locales/date/viVN.d.ts +3 -0
- package/es/locales/date/viVN.js +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -0
- package/es/modal/src/styles/index.cssr.js +1 -0
- package/es/notification/src/Notification.d.ts +3 -0
- package/es/notification/src/Notification.js +5 -2
- package/es/notification/src/NotificationContainer.d.ts +3 -0
- package/es/notification/src/NotificationProvider.d.ts +27 -0
- package/es/notification/src/styles/index.cssr.js +6 -3
- package/es/notification/styles/_common.d.ts +3 -0
- package/es/notification/styles/_common.js +4 -1
- package/es/notification/styles/light.d.ts +6 -0
- package/es/select/index.d.ts +1 -1
- package/es/select/src/Select.d.ts +4 -4
- package/es/select/src/Select.js +10 -1
- package/es/select/src/interface.d.ts +1 -0
- package/es/tabs/src/Tabs.js +1 -1
- package/es/tree/src/Tree.d.ts +4 -3
- package/es/tree/src/Tree.js +2 -1
- package/es/tree/src/TreeNode.d.ts +1 -1
- package/es/tree/src/interface.d.ts +1 -1
- package/es/tree-select/index.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +27 -5
- package/es/tree-select/src/TreeSelect.js +19 -3
- package/es/tree-select/src/interface.d.ts +17 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/close/src/Close.js +1 -1
- package/lib/button/src/styles/index.cssr.js +3 -0
- package/lib/date-picker/src/DatePicker.d.ts +40 -0
- package/lib/date-picker/src/DatePicker.js +15 -3
- package/lib/date-picker/src/config.d.ts +1 -1
- package/lib/date-picker/src/panel/date.d.ts +4 -0
- package/lib/date-picker/src/panel/daterange.d.ts +7 -1
- package/lib/date-picker/src/panel/datetime.d.ts +4 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +7 -1
- package/lib/date-picker/src/panel/month.d.ts +4 -0
- package/lib/date-picker/src/panel/monthrange.d.ts +11 -5
- package/lib/date-picker/src/panel/monthrange.js +13 -7
- package/lib/date-picker/src/panel/panelHeader.d.ts +8 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +9 -3
- package/lib/date-picker/src/panel/use-dual-calendar.js +24 -4
- package/lib/date-picker/src/panel/use-panel-common.d.ts +4 -0
- package/lib/date-picker/src/utils.d.ts +1 -1
- package/lib/date-picker/src/utils.js +2 -2
- package/lib/date-picker/styles/_common.d.ts +4 -0
- package/lib/date-picker/styles/_common.js +5 -1
- package/lib/date-picker/styles/light.d.ts +8 -0
- package/lib/drawer/src/DrawerBodyWrapper.js +1 -1
- package/lib/grid/src/Grid.js +1 -1
- package/lib/locales/common/viVN.d.ts +3 -0
- package/lib/locales/common/viVN.js +115 -0
- package/lib/locales/date/viVN.d.ts +3 -0
- package/lib/locales/date/viVN.js +11 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +5 -1
- package/lib/modal/src/styles/index.cssr.js +1 -0
- package/lib/notification/src/Notification.d.ts +3 -0
- package/lib/notification/src/Notification.js +5 -2
- package/lib/notification/src/NotificationContainer.d.ts +3 -0
- package/lib/notification/src/NotificationProvider.d.ts +27 -0
- package/lib/notification/src/styles/index.cssr.js +6 -3
- package/lib/notification/styles/_common.d.ts +3 -0
- package/lib/notification/styles/_common.js +4 -1
- package/lib/notification/styles/light.d.ts +6 -0
- package/lib/select/index.d.ts +1 -1
- package/lib/select/src/Select.d.ts +4 -4
- package/lib/select/src/Select.js +10 -1
- package/lib/select/src/interface.d.ts +1 -0
- package/lib/tabs/src/Tabs.js +1 -1
- package/lib/tree/src/Tree.d.ts +4 -3
- package/lib/tree/src/Tree.js +2 -1
- package/lib/tree/src/TreeNode.d.ts +1 -1
- package/lib/tree/src/interface.d.ts +1 -1
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +27 -5
- package/lib/tree-select/src/TreeSelect.js +19 -3
- package/lib/tree-select/src/interface.d.ts +17 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +64 -10
|
@@ -26,7 +26,7 @@ export default defineComponent({
|
|
|
26
26
|
useStyle('-base-close', style, toRef(props, 'clsPrefix'));
|
|
27
27
|
return () => {
|
|
28
28
|
const { clsPrefix, disabled, absolute, round } = props;
|
|
29
|
-
return (h("button", { tabindex: disabled || !props.focusable ? -1 : 0, "aria-disabled": disabled, "aria-label": "close", disabled: disabled, class: [
|
|
29
|
+
return (h("button", { type: "button", tabindex: disabled || !props.focusable ? -1 : 0, "aria-disabled": disabled, "aria-label": "close", disabled: disabled, class: [
|
|
30
30
|
`${clsPrefix}-base-close`,
|
|
31
31
|
absolute && `${clsPrefix}-base-close--absolute`,
|
|
32
32
|
disabled && `${clsPrefix}-base-close--disabled`,
|
|
@@ -149,6 +149,8 @@ export default c([cB('button', `
|
|
|
149
149
|
top: 50%;
|
|
150
150
|
transform: translateY(-50%);
|
|
151
151
|
display: flex;
|
|
152
|
+
align-items: center;
|
|
153
|
+
justify-content: center;
|
|
152
154
|
`, [iconSwitchTransition({
|
|
153
155
|
top: '50%',
|
|
154
156
|
originalTransform: 'translateY(-50%)'
|
|
@@ -156,6 +158,7 @@ export default c([cB('button', `
|
|
|
156
158
|
display: flex;
|
|
157
159
|
align-items: center;
|
|
158
160
|
flex-wrap: nowrap;
|
|
161
|
+
min-width: 0;
|
|
159
162
|
`, [c('~', [cE('icon', {
|
|
160
163
|
margin: 'var(--n-icon-margin)',
|
|
161
164
|
marginRight: 0
|
|
@@ -121,6 +121,8 @@ declare const datePickerProps: {
|
|
|
121
121
|
calendarLeftPaddingYear: string;
|
|
122
122
|
calendarLeftPaddingQuarter: string;
|
|
123
123
|
calendarLeftPaddingMonthrange: string;
|
|
124
|
+
calendarLeftPaddingQuarterrange: string;
|
|
125
|
+
calendarLeftPaddingYearrange: string;
|
|
124
126
|
calendarRightPaddingDate: string;
|
|
125
127
|
calendarRightPaddingDatetime: string;
|
|
126
128
|
calendarRightPaddingDaterange: string;
|
|
@@ -129,6 +131,8 @@ declare const datePickerProps: {
|
|
|
129
131
|
calendarRightPaddingYear: string;
|
|
130
132
|
calendarRightPaddingQuarter: string;
|
|
131
133
|
calendarRightPaddingMonthrange: string;
|
|
134
|
+
calendarRightPaddingQuarterrange: string;
|
|
135
|
+
calendarRightPaddingYearrange: string;
|
|
132
136
|
}, {
|
|
133
137
|
Input: import("../../_mixins").Theme<"Input", {
|
|
134
138
|
countTextColor: string;
|
|
@@ -735,6 +739,8 @@ declare const datePickerProps: {
|
|
|
735
739
|
calendarLeftPaddingYear: string;
|
|
736
740
|
calendarLeftPaddingQuarter: string;
|
|
737
741
|
calendarLeftPaddingMonthrange: string;
|
|
742
|
+
calendarLeftPaddingQuarterrange: string;
|
|
743
|
+
calendarLeftPaddingYearrange: string;
|
|
738
744
|
calendarRightPaddingDate: string;
|
|
739
745
|
calendarRightPaddingDatetime: string;
|
|
740
746
|
calendarRightPaddingDaterange: string;
|
|
@@ -743,6 +749,8 @@ declare const datePickerProps: {
|
|
|
743
749
|
calendarRightPaddingYear: string;
|
|
744
750
|
calendarRightPaddingQuarter: string;
|
|
745
751
|
calendarRightPaddingMonthrange: string;
|
|
752
|
+
calendarRightPaddingQuarterrange: string;
|
|
753
|
+
calendarRightPaddingYearrange: string;
|
|
746
754
|
}, {
|
|
747
755
|
Input: import("../../_mixins").Theme<"Input", {
|
|
748
756
|
countTextColor: string;
|
|
@@ -1349,6 +1357,8 @@ declare const datePickerProps: {
|
|
|
1349
1357
|
calendarLeftPaddingYear: string;
|
|
1350
1358
|
calendarLeftPaddingQuarter: string;
|
|
1351
1359
|
calendarLeftPaddingMonthrange: string;
|
|
1360
|
+
calendarLeftPaddingQuarterrange: string;
|
|
1361
|
+
calendarLeftPaddingYearrange: string;
|
|
1352
1362
|
calendarRightPaddingDate: string;
|
|
1353
1363
|
calendarRightPaddingDatetime: string;
|
|
1354
1364
|
calendarRightPaddingDaterange: string;
|
|
@@ -1357,6 +1367,8 @@ declare const datePickerProps: {
|
|
|
1357
1367
|
calendarRightPaddingYear: string;
|
|
1358
1368
|
calendarRightPaddingQuarter: string;
|
|
1359
1369
|
calendarRightPaddingMonthrange: string;
|
|
1370
|
+
calendarRightPaddingQuarterrange: string;
|
|
1371
|
+
calendarRightPaddingYearrange: string;
|
|
1360
1372
|
}, {
|
|
1361
1373
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1362
1374
|
countTextColor: string;
|
|
@@ -2032,6 +2044,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2032
2044
|
calendarLeftPaddingYear: string;
|
|
2033
2045
|
calendarLeftPaddingQuarter: string;
|
|
2034
2046
|
calendarLeftPaddingMonthrange: string;
|
|
2047
|
+
calendarLeftPaddingQuarterrange: string;
|
|
2048
|
+
calendarLeftPaddingYearrange: string;
|
|
2035
2049
|
calendarRightPaddingDate: string;
|
|
2036
2050
|
calendarRightPaddingDatetime: string;
|
|
2037
2051
|
calendarRightPaddingDaterange: string;
|
|
@@ -2040,6 +2054,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2040
2054
|
calendarRightPaddingYear: string;
|
|
2041
2055
|
calendarRightPaddingQuarter: string;
|
|
2042
2056
|
calendarRightPaddingMonthrange: string;
|
|
2057
|
+
calendarRightPaddingQuarterrange: string;
|
|
2058
|
+
calendarRightPaddingYearrange: string;
|
|
2043
2059
|
}, {
|
|
2044
2060
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2045
2061
|
countTextColor: string;
|
|
@@ -2646,6 +2662,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2646
2662
|
calendarLeftPaddingYear: string;
|
|
2647
2663
|
calendarLeftPaddingQuarter: string;
|
|
2648
2664
|
calendarLeftPaddingMonthrange: string;
|
|
2665
|
+
calendarLeftPaddingQuarterrange: string;
|
|
2666
|
+
calendarLeftPaddingYearrange: string;
|
|
2649
2667
|
calendarRightPaddingDate: string;
|
|
2650
2668
|
calendarRightPaddingDatetime: string;
|
|
2651
2669
|
calendarRightPaddingDaterange: string;
|
|
@@ -2654,6 +2672,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2654
2672
|
calendarRightPaddingYear: string;
|
|
2655
2673
|
calendarRightPaddingQuarter: string;
|
|
2656
2674
|
calendarRightPaddingMonthrange: string;
|
|
2675
|
+
calendarRightPaddingQuarterrange: string;
|
|
2676
|
+
calendarRightPaddingYearrange: string;
|
|
2657
2677
|
}, {
|
|
2658
2678
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2659
2679
|
countTextColor: string;
|
|
@@ -3260,6 +3280,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3260
3280
|
calendarLeftPaddingYear: string;
|
|
3261
3281
|
calendarLeftPaddingQuarter: string;
|
|
3262
3282
|
calendarLeftPaddingMonthrange: string;
|
|
3283
|
+
calendarLeftPaddingQuarterrange: string;
|
|
3284
|
+
calendarLeftPaddingYearrange: string;
|
|
3263
3285
|
calendarRightPaddingDate: string;
|
|
3264
3286
|
calendarRightPaddingDatetime: string;
|
|
3265
3287
|
calendarRightPaddingDaterange: string;
|
|
@@ -3268,6 +3290,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3268
3290
|
calendarRightPaddingYear: string;
|
|
3269
3291
|
calendarRightPaddingQuarter: string;
|
|
3270
3292
|
calendarRightPaddingMonthrange: string;
|
|
3293
|
+
calendarRightPaddingQuarterrange: string;
|
|
3294
|
+
calendarRightPaddingYearrange: string;
|
|
3271
3295
|
}, {
|
|
3272
3296
|
Input: import("../../_mixins").Theme<"Input", {
|
|
3273
3297
|
countTextColor: string;
|
|
@@ -4120,6 +4144,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4120
4144
|
calendarLeftPaddingYear: string;
|
|
4121
4145
|
calendarLeftPaddingQuarter: string;
|
|
4122
4146
|
calendarLeftPaddingMonthrange: string;
|
|
4147
|
+
calendarLeftPaddingQuarterrange: string;
|
|
4148
|
+
calendarLeftPaddingYearrange: string;
|
|
4123
4149
|
calendarRightPaddingDate: string;
|
|
4124
4150
|
calendarRightPaddingDatetime: string;
|
|
4125
4151
|
calendarRightPaddingDaterange: string;
|
|
@@ -4128,6 +4154,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4128
4154
|
calendarRightPaddingYear: string;
|
|
4129
4155
|
calendarRightPaddingQuarter: string;
|
|
4130
4156
|
calendarRightPaddingMonthrange: string;
|
|
4157
|
+
calendarRightPaddingQuarterrange: string;
|
|
4158
|
+
calendarRightPaddingYearrange: string;
|
|
4131
4159
|
};
|
|
4132
4160
|
peers: {
|
|
4133
4161
|
Input: import("../../_mixins").Theme<"Input", {
|
|
@@ -5148,6 +5176,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5148
5176
|
calendarLeftPaddingYear: string;
|
|
5149
5177
|
calendarLeftPaddingQuarter: string;
|
|
5150
5178
|
calendarLeftPaddingMonthrange: string;
|
|
5179
|
+
calendarLeftPaddingQuarterrange: string;
|
|
5180
|
+
calendarLeftPaddingYearrange: string;
|
|
5151
5181
|
calendarRightPaddingDate: string;
|
|
5152
5182
|
calendarRightPaddingDatetime: string;
|
|
5153
5183
|
calendarRightPaddingDaterange: string;
|
|
@@ -5156,6 +5186,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5156
5186
|
calendarRightPaddingYear: string;
|
|
5157
5187
|
calendarRightPaddingQuarter: string;
|
|
5158
5188
|
calendarRightPaddingMonthrange: string;
|
|
5189
|
+
calendarRightPaddingQuarterrange: string;
|
|
5190
|
+
calendarRightPaddingYearrange: string;
|
|
5159
5191
|
}, {
|
|
5160
5192
|
Input: import("../../_mixins").Theme<"Input", {
|
|
5161
5193
|
countTextColor: string;
|
|
@@ -5762,6 +5794,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5762
5794
|
calendarLeftPaddingYear: string;
|
|
5763
5795
|
calendarLeftPaddingQuarter: string;
|
|
5764
5796
|
calendarLeftPaddingMonthrange: string;
|
|
5797
|
+
calendarLeftPaddingQuarterrange: string;
|
|
5798
|
+
calendarLeftPaddingYearrange: string;
|
|
5765
5799
|
calendarRightPaddingDate: string;
|
|
5766
5800
|
calendarRightPaddingDatetime: string;
|
|
5767
5801
|
calendarRightPaddingDaterange: string;
|
|
@@ -5770,6 +5804,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5770
5804
|
calendarRightPaddingYear: string;
|
|
5771
5805
|
calendarRightPaddingQuarter: string;
|
|
5772
5806
|
calendarRightPaddingMonthrange: string;
|
|
5807
|
+
calendarRightPaddingQuarterrange: string;
|
|
5808
|
+
calendarRightPaddingYearrange: string;
|
|
5773
5809
|
}, {
|
|
5774
5810
|
Input: import("../../_mixins").Theme<"Input", {
|
|
5775
5811
|
countTextColor: string;
|
|
@@ -6376,6 +6412,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6376
6412
|
calendarLeftPaddingYear: string;
|
|
6377
6413
|
calendarLeftPaddingQuarter: string;
|
|
6378
6414
|
calendarLeftPaddingMonthrange: string;
|
|
6415
|
+
calendarLeftPaddingQuarterrange: string;
|
|
6416
|
+
calendarLeftPaddingYearrange: string;
|
|
6379
6417
|
calendarRightPaddingDate: string;
|
|
6380
6418
|
calendarRightPaddingDatetime: string;
|
|
6381
6419
|
calendarRightPaddingDaterange: string;
|
|
@@ -6384,6 +6422,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6384
6422
|
calendarRightPaddingYear: string;
|
|
6385
6423
|
calendarRightPaddingQuarter: string;
|
|
6386
6424
|
calendarRightPaddingMonthrange: string;
|
|
6425
|
+
calendarRightPaddingQuarterrange: string;
|
|
6426
|
+
calendarRightPaddingYearrange: string;
|
|
6387
6427
|
}, {
|
|
6388
6428
|
Input: import("../../_mixins").Theme<"Input", {
|
|
6389
6429
|
countTextColor: string;
|
|
@@ -77,11 +77,13 @@ export default defineComponent({
|
|
|
77
77
|
case 'datetimerange':
|
|
78
78
|
return localeRef.value.dateTimeFormat;
|
|
79
79
|
case 'year':
|
|
80
|
+
case 'yearrange':
|
|
80
81
|
return localeRef.value.yearTypeFormat;
|
|
81
82
|
case 'month':
|
|
82
83
|
case 'monthrange':
|
|
83
84
|
return localeRef.value.monthTypeFormat;
|
|
84
85
|
case 'quarter':
|
|
86
|
+
case 'quarterrange':
|
|
85
87
|
return localeRef.value.quarterFormat;
|
|
86
88
|
}
|
|
87
89
|
});
|
|
@@ -128,7 +130,13 @@ export default defineComponent({
|
|
|
128
130
|
return (((_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.DatePicker) === null || _b === void 0 ? void 0 : _b.timePickerSize) || 'small');
|
|
129
131
|
});
|
|
130
132
|
const isRangeRef = computed(() => {
|
|
131
|
-
return [
|
|
133
|
+
return [
|
|
134
|
+
'daterange',
|
|
135
|
+
'datetimerange',
|
|
136
|
+
'monthrange',
|
|
137
|
+
'quarterrange',
|
|
138
|
+
'yearrange'
|
|
139
|
+
].includes(props.type);
|
|
132
140
|
});
|
|
133
141
|
const localizedPlacehoderRef = computed(() => {
|
|
134
142
|
const { placeholder } = props;
|
|
@@ -215,7 +223,9 @@ export default defineComponent({
|
|
|
215
223
|
case 'quarter': {
|
|
216
224
|
return ['clear', 'now', 'confirm'];
|
|
217
225
|
}
|
|
218
|
-
case 'monthrange':
|
|
226
|
+
case 'monthrange':
|
|
227
|
+
case 'yearrange':
|
|
228
|
+
case 'quarterrange': {
|
|
219
229
|
return ['clear', 'confirm'];
|
|
220
230
|
}
|
|
221
231
|
default: {
|
|
@@ -643,7 +653,9 @@ export default defineComponent({
|
|
|
643
653
|
};
|
|
644
654
|
const renderPanel = () => {
|
|
645
655
|
const { type } = this;
|
|
646
|
-
return type === 'datetime' ? (h(DatetimePanel, Object.assign({}, commonPanelProps))) : type === 'daterange' ? (h(DaterangePanel, Object.assign({}, commonPanelProps, { defaultCalendarStartTime: this.defaultCalendarStartTime, defaultCalendarEndTime: this.defaultCalendarEndTime, bindCalendarMonths: this.bindCalendarMonths }))) : type === 'datetimerange' ? (h(DatetimerangePanel, Object.assign({}, commonPanelProps, { defaultCalendarStartTime: this.defaultCalendarStartTime, defaultCalendarEndTime: this.defaultCalendarEndTime, bindCalendarMonths: this.bindCalendarMonths }))) : type === 'month' || type === 'year' || type === 'quarter' ? (h(MonthPanel, Object.assign({}, commonPanelProps, { type: type, key: type }))) : type === 'monthrange'
|
|
656
|
+
return type === 'datetime' ? (h(DatetimePanel, Object.assign({}, commonPanelProps))) : type === 'daterange' ? (h(DaterangePanel, Object.assign({}, commonPanelProps, { defaultCalendarStartTime: this.defaultCalendarStartTime, defaultCalendarEndTime: this.defaultCalendarEndTime, bindCalendarMonths: this.bindCalendarMonths }))) : type === 'datetimerange' ? (h(DatetimerangePanel, Object.assign({}, commonPanelProps, { defaultCalendarStartTime: this.defaultCalendarStartTime, defaultCalendarEndTime: this.defaultCalendarEndTime, bindCalendarMonths: this.bindCalendarMonths }))) : type === 'month' || type === 'year' || type === 'quarter' ? (h(MonthPanel, Object.assign({}, commonPanelProps, { type: type, key: type }))) : type === 'monthrange' ||
|
|
657
|
+
type === 'yearrange' ||
|
|
658
|
+
type === 'quarterrange' ? (h(MonthRangePanel, Object.assign({}, commonPanelProps, { type: type }))) : (h(DatePanel, Object.assign({}, commonPanelProps)));
|
|
647
659
|
};
|
|
648
660
|
if (this.panel) {
|
|
649
661
|
return renderPanel();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const START_YEAR = 1901;
|
|
2
2
|
export declare const MONTH_ITEM_HEIGHT = 40;
|
|
3
|
-
export declare type DatePickerType = 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'month' | 'year' | 'quarter' | 'monthrange';
|
|
3
|
+
export declare type DatePickerType = 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'month' | 'year' | 'quarter' | 'monthrange' | 'quarterrange' | 'yearrange';
|
|
@@ -214,6 +214,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
214
214
|
calendarLeftPaddingYear: string;
|
|
215
215
|
calendarLeftPaddingQuarter: string;
|
|
216
216
|
calendarLeftPaddingMonthrange: string;
|
|
217
|
+
calendarLeftPaddingQuarterrange: string;
|
|
218
|
+
calendarLeftPaddingYearrange: string;
|
|
217
219
|
calendarRightPaddingDate: string;
|
|
218
220
|
calendarRightPaddingDatetime: string;
|
|
219
221
|
calendarRightPaddingDaterange: string;
|
|
@@ -222,6 +224,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
222
224
|
calendarRightPaddingYear: string;
|
|
223
225
|
calendarRightPaddingQuarter: string;
|
|
224
226
|
calendarRightPaddingMonthrange: string;
|
|
227
|
+
calendarRightPaddingQuarterrange: string;
|
|
228
|
+
calendarRightPaddingYearrange: string;
|
|
225
229
|
};
|
|
226
230
|
peers: {
|
|
227
231
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -234,6 +234,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
234
234
|
calendarLeftPaddingYear: string;
|
|
235
235
|
calendarLeftPaddingQuarter: string;
|
|
236
236
|
calendarLeftPaddingMonthrange: string;
|
|
237
|
+
calendarLeftPaddingQuarterrange: string;
|
|
238
|
+
calendarLeftPaddingYearrange: string;
|
|
237
239
|
calendarRightPaddingDate: string;
|
|
238
240
|
calendarRightPaddingDatetime: string;
|
|
239
241
|
calendarRightPaddingDaterange: string;
|
|
@@ -242,6 +244,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
242
244
|
calendarRightPaddingYear: string;
|
|
243
245
|
calendarRightPaddingQuarter: string;
|
|
244
246
|
calendarRightPaddingMonthrange: string;
|
|
247
|
+
calendarRightPaddingQuarterrange: string;
|
|
248
|
+
calendarRightPaddingYearrange: string;
|
|
245
249
|
};
|
|
246
250
|
peers: {
|
|
247
251
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -1143,7 +1147,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1143
1147
|
endDatesElRef: import("vue").Ref<HTMLElement | null>;
|
|
1144
1148
|
resetSelectingStatus: (e: MouseEvent) => void;
|
|
1145
1149
|
handleDateClick: (dateItem: import("../utils").DateItem) => void;
|
|
1146
|
-
handleColItemClick: (dateItem: import("../utils").MonthItem | import("../utils").YearItem, clickType: "start" | "end") => void;
|
|
1150
|
+
handleColItemClick: (dateItem: import("../utils").MonthItem | import("../utils").YearItem | import("../utils").QuarterItem, clickType: "start" | "end") => void;
|
|
1147
1151
|
handleDateMouseEnter: (dateItem: import("../utils").DateItem) => void;
|
|
1148
1152
|
handleConfirmClick: () => void;
|
|
1149
1153
|
startCalendarPrevYear: () => void;
|
|
@@ -1166,8 +1170,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1166
1170
|
endDateArray: import("vue").ComputedRef<import("../utils").DateItem[]>;
|
|
1167
1171
|
startYearArray: import("vue").ComputedRef<import("../utils").YearItem[]>;
|
|
1168
1172
|
startMonthArray: import("vue").ComputedRef<import("../utils").MonthItem[]>;
|
|
1173
|
+
startQuarterArray: import("vue").ComputedRef<import("../utils").QuarterItem[]>;
|
|
1169
1174
|
endYearArray: import("vue").ComputedRef<import("../utils").YearItem[]>;
|
|
1170
1175
|
endMonthArray: import("vue").ComputedRef<import("../utils").MonthItem[]>;
|
|
1176
|
+
endQuarterArray: import("vue").ComputedRef<import("../utils").QuarterItem[]>;
|
|
1171
1177
|
isSelecting: import("vue").Ref<boolean>;
|
|
1172
1178
|
handleRangeShortcutMouseenter: (shortcut: number | [number, number] | (() => number) | readonly [number, number] | (() => [number, number] | readonly [number, number])) => void;
|
|
1173
1179
|
handleRangeShortcutClick: (shortcut: number | [number, number] | (() => number) | readonly [number, number] | (() => [number, number] | readonly [number, number])) => void;
|
|
@@ -203,6 +203,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
203
203
|
calendarLeftPaddingYear: string;
|
|
204
204
|
calendarLeftPaddingQuarter: string;
|
|
205
205
|
calendarLeftPaddingMonthrange: string;
|
|
206
|
+
calendarLeftPaddingQuarterrange: string;
|
|
207
|
+
calendarLeftPaddingYearrange: string;
|
|
206
208
|
calendarRightPaddingDate: string;
|
|
207
209
|
calendarRightPaddingDatetime: string;
|
|
208
210
|
calendarRightPaddingDaterange: string;
|
|
@@ -211,6 +213,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
211
213
|
calendarRightPaddingYear: string;
|
|
212
214
|
calendarRightPaddingQuarter: string;
|
|
213
215
|
calendarRightPaddingMonthrange: string;
|
|
216
|
+
calendarRightPaddingQuarterrange: string;
|
|
217
|
+
calendarRightPaddingYearrange: string;
|
|
214
218
|
};
|
|
215
219
|
peers: {
|
|
216
220
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -234,6 +234,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
234
234
|
calendarLeftPaddingYear: string;
|
|
235
235
|
calendarLeftPaddingQuarter: string;
|
|
236
236
|
calendarLeftPaddingMonthrange: string;
|
|
237
|
+
calendarLeftPaddingQuarterrange: string;
|
|
238
|
+
calendarLeftPaddingYearrange: string;
|
|
237
239
|
calendarRightPaddingDate: string;
|
|
238
240
|
calendarRightPaddingDatetime: string;
|
|
239
241
|
calendarRightPaddingDaterange: string;
|
|
@@ -242,6 +244,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
242
244
|
calendarRightPaddingYear: string;
|
|
243
245
|
calendarRightPaddingQuarter: string;
|
|
244
246
|
calendarRightPaddingMonthrange: string;
|
|
247
|
+
calendarRightPaddingQuarterrange: string;
|
|
248
|
+
calendarRightPaddingYearrange: string;
|
|
245
249
|
};
|
|
246
250
|
peers: {
|
|
247
251
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -1143,7 +1147,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1143
1147
|
endDatesElRef: import("vue").Ref<HTMLElement | null>;
|
|
1144
1148
|
resetSelectingStatus: (e: MouseEvent) => void;
|
|
1145
1149
|
handleDateClick: (dateItem: import("../utils").DateItem) => void;
|
|
1146
|
-
handleColItemClick: (dateItem: import("../utils").MonthItem | import("../utils").YearItem, clickType: "start" | "end") => void;
|
|
1150
|
+
handleColItemClick: (dateItem: import("../utils").MonthItem | import("../utils").YearItem | import("../utils").QuarterItem, clickType: "start" | "end") => void;
|
|
1147
1151
|
handleDateMouseEnter: (dateItem: import("../utils").DateItem) => void;
|
|
1148
1152
|
handleConfirmClick: () => void;
|
|
1149
1153
|
startCalendarPrevYear: () => void;
|
|
@@ -1166,8 +1170,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1166
1170
|
endDateArray: import("vue").ComputedRef<import("../utils").DateItem[]>;
|
|
1167
1171
|
startYearArray: import("vue").ComputedRef<import("../utils").YearItem[]>;
|
|
1168
1172
|
startMonthArray: import("vue").ComputedRef<import("../utils").MonthItem[]>;
|
|
1173
|
+
startQuarterArray: import("vue").ComputedRef<import("../utils").QuarterItem[]>;
|
|
1169
1174
|
endYearArray: import("vue").ComputedRef<import("../utils").YearItem[]>;
|
|
1170
1175
|
endMonthArray: import("vue").ComputedRef<import("../utils").MonthItem[]>;
|
|
1176
|
+
endQuarterArray: import("vue").ComputedRef<import("../utils").QuarterItem[]>;
|
|
1171
1177
|
isSelecting: import("vue").Ref<boolean>;
|
|
1172
1178
|
handleRangeShortcutMouseenter: (shortcut: number | [number, number] | (() => number) | readonly [number, number] | (() => [number, number] | readonly [number, number])) => void;
|
|
1173
1179
|
handleRangeShortcutClick: (shortcut: number | [number, number] | (() => number) | readonly [number, number] | (() => [number, number] | readonly [number, number])) => void;
|
|
@@ -211,6 +211,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
211
211
|
calendarLeftPaddingYear: string;
|
|
212
212
|
calendarLeftPaddingQuarter: string;
|
|
213
213
|
calendarLeftPaddingMonthrange: string;
|
|
214
|
+
calendarLeftPaddingQuarterrange: string;
|
|
215
|
+
calendarLeftPaddingYearrange: string;
|
|
214
216
|
calendarRightPaddingDate: string;
|
|
215
217
|
calendarRightPaddingDatetime: string;
|
|
216
218
|
calendarRightPaddingDaterange: string;
|
|
@@ -219,6 +221,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
219
221
|
calendarRightPaddingYear: string;
|
|
220
222
|
calendarRightPaddingQuarter: string;
|
|
221
223
|
calendarRightPaddingMonthrange: string;
|
|
224
|
+
calendarRightPaddingQuarterrange: string;
|
|
225
|
+
calendarRightPaddingYearrange: string;
|
|
222
226
|
};
|
|
223
227
|
peers: {
|
|
224
228
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PropType, VNode } from 'vue';
|
|
2
|
-
import type { MonthItem, YearItem } from '../utils';
|
|
2
|
+
import type { MonthItem, QuarterItem, YearItem } from '../utils';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
type: {
|
|
5
|
-
type: PropType<"monthrange">;
|
|
5
|
+
type: PropType<"monthrange" | "quarterrange" | "yearrange">;
|
|
6
6
|
required: true;
|
|
7
7
|
};
|
|
8
8
|
defaultCalendarStartTime: NumberConstructor;
|
|
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
36
|
onRender: PropType<(() => void) | undefined>;
|
|
37
37
|
panel: BooleanConstructor;
|
|
38
38
|
}, {
|
|
39
|
-
renderItem: (item: YearItem | MonthItem, i: number, mergedClsPrefix: string, type: 'start' | 'end') => VNode;
|
|
39
|
+
renderItem: (item: YearItem | MonthItem | QuarterItem, i: number, mergedClsPrefix: string, type: 'start' | 'end') => VNode;
|
|
40
40
|
startDateDisplayString: import("vue").Ref<string>;
|
|
41
41
|
endDateInput: import("vue").Ref<string>;
|
|
42
42
|
timePickerSize: import("vue").Ref<"small" | "medium" | "large">;
|
|
@@ -241,6 +241,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
241
241
|
calendarLeftPaddingYear: string;
|
|
242
242
|
calendarLeftPaddingQuarter: string;
|
|
243
243
|
calendarLeftPaddingMonthrange: string;
|
|
244
|
+
calendarLeftPaddingQuarterrange: string;
|
|
245
|
+
calendarLeftPaddingYearrange: string;
|
|
244
246
|
calendarRightPaddingDate: string;
|
|
245
247
|
calendarRightPaddingDatetime: string;
|
|
246
248
|
calendarRightPaddingDaterange: string;
|
|
@@ -249,6 +251,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
249
251
|
calendarRightPaddingYear: string;
|
|
250
252
|
calendarRightPaddingQuarter: string;
|
|
251
253
|
calendarRightPaddingMonthrange: string;
|
|
254
|
+
calendarRightPaddingQuarterrange: string;
|
|
255
|
+
calendarRightPaddingYearrange: string;
|
|
252
256
|
};
|
|
253
257
|
peers: {
|
|
254
258
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -1150,7 +1154,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1150
1154
|
endDatesElRef: import("vue").Ref<HTMLElement | null>;
|
|
1151
1155
|
resetSelectingStatus: (e: MouseEvent) => void;
|
|
1152
1156
|
handleDateClick: (dateItem: import("../utils").DateItem) => void;
|
|
1153
|
-
handleColItemClick: (dateItem: MonthItem | YearItem, clickType: "start" | "end") => void;
|
|
1157
|
+
handleColItemClick: (dateItem: MonthItem | YearItem | QuarterItem, clickType: "start" | "end") => void;
|
|
1154
1158
|
handleDateMouseEnter: (dateItem: import("../utils").DateItem) => void;
|
|
1155
1159
|
handleConfirmClick: () => void;
|
|
1156
1160
|
startCalendarPrevYear: () => void;
|
|
@@ -1173,14 +1177,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1173
1177
|
endDateArray: import("vue").ComputedRef<import("../utils").DateItem[]>;
|
|
1174
1178
|
startYearArray: import("vue").ComputedRef<YearItem[]>;
|
|
1175
1179
|
startMonthArray: import("vue").ComputedRef<MonthItem[]>;
|
|
1180
|
+
startQuarterArray: import("vue").ComputedRef<QuarterItem[]>;
|
|
1176
1181
|
endYearArray: import("vue").ComputedRef<YearItem[]>;
|
|
1177
1182
|
endMonthArray: import("vue").ComputedRef<MonthItem[]>;
|
|
1183
|
+
endQuarterArray: import("vue").ComputedRef<QuarterItem[]>;
|
|
1178
1184
|
isSelecting: import("vue").Ref<boolean>;
|
|
1179
1185
|
handleRangeShortcutMouseenter: (shortcut: number | [number, number] | (() => number) | readonly [number, number] | (() => [number, number] | readonly [number, number])) => void;
|
|
1180
1186
|
handleRangeShortcutClick: (shortcut: number | [number, number] | (() => number) | readonly [number, number] | (() => [number, number] | readonly [number, number])) => void;
|
|
1181
1187
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1182
1188
|
type: {
|
|
1183
|
-
type: PropType<"monthrange">;
|
|
1189
|
+
type: PropType<"monthrange" | "quarterrange" | "yearrange">;
|
|
1184
1190
|
required: true;
|
|
1185
1191
|
};
|
|
1186
1192
|
defaultCalendarStartTime: NumberConstructor;
|
|
@@ -40,7 +40,9 @@ export default defineComponent({
|
|
|
40
40
|
handleColItemClick(item, type);
|
|
41
41
|
} }, item.type === 'month'
|
|
42
42
|
? item.dateObject.month + 1
|
|
43
|
-
: item.
|
|
43
|
+
: item.type === 'quarter'
|
|
44
|
+
? item.dateObject.quarter
|
|
45
|
+
: item.dateObject.year));
|
|
44
46
|
};
|
|
45
47
|
onMounted(() => {
|
|
46
48
|
useCalendarRef.justifyColumnsScrollState();
|
|
@@ -64,11 +66,13 @@ export default defineComponent({
|
|
|
64
66
|
}
|
|
65
67
|
}))
|
|
66
68
|
}),
|
|
67
|
-
type === 'monthrange' ? (h("div", { class: `${mergedClsPrefix}-date-panel-month-calendar__picker-col` },
|
|
69
|
+
type === 'monthrange' || type === 'quarterrange' ? (h("div", { class: `${mergedClsPrefix}-date-panel-month-calendar__picker-col` },
|
|
68
70
|
h(NScrollbar, { ref: "startMonthScrollbarRef", theme: mergedTheme.peers.Scrollbar, themeOverrides: mergedTheme.peerOverrides.Scrollbar }, {
|
|
69
71
|
default: () => [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
+
(type === 'monthrange'
|
|
73
|
+
? this.startMonthArray
|
|
74
|
+
: this.startQuarterArray).map((item, i) => renderItem(item, i, mergedClsPrefix, 'start')),
|
|
75
|
+
type === 'monthrange' && (h("div", { class: `${mergedClsPrefix}-date-panel-month-calendar__padding` }))
|
|
72
76
|
]
|
|
73
77
|
}))) : null)),
|
|
74
78
|
h("div", { class: `${mergedClsPrefix}-date-panel__vertical-divider` }),
|
|
@@ -81,11 +85,13 @@ export default defineComponent({
|
|
|
81
85
|
}
|
|
82
86
|
}))
|
|
83
87
|
}),
|
|
84
|
-
type === 'monthrange' ? (h("div", { class: `${mergedClsPrefix}-date-panel-month-calendar__picker-col` },
|
|
88
|
+
type === 'monthrange' || type === 'quarterrange' ? (h("div", { class: `${mergedClsPrefix}-date-panel-month-calendar__picker-col` },
|
|
85
89
|
h(NScrollbar, { ref: "endMonthScrollbarRef", theme: mergedTheme.peers.Scrollbar, themeOverrides: mergedTheme.peerOverrides.Scrollbar }, {
|
|
86
90
|
default: () => [
|
|
87
|
-
|
|
88
|
-
|
|
91
|
+
(type === 'monthrange'
|
|
92
|
+
? this.endMonthArray
|
|
93
|
+
: this.endQuarterArray).map((item, i) => renderItem(item, i, mergedClsPrefix, 'end')),
|
|
94
|
+
type === 'monthrange' && (h("div", { class: `${mergedClsPrefix}-date-panel-month-calendar__padding` }))
|
|
89
95
|
]
|
|
90
96
|
}))) : null)),
|
|
91
97
|
this.datePickerSlots.footer ? (h("div", { class: `${mergedClsPrefix}-date-panel-footer` }, renderSlot(this.datePickerSlots, 'footer'))) : null,
|
|
@@ -293,6 +293,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
293
293
|
calendarLeftPaddingYear: string;
|
|
294
294
|
calendarLeftPaddingQuarter: string;
|
|
295
295
|
calendarLeftPaddingMonthrange: string;
|
|
296
|
+
calendarLeftPaddingQuarterrange: string;
|
|
297
|
+
calendarLeftPaddingYearrange: string;
|
|
296
298
|
calendarRightPaddingDate: string;
|
|
297
299
|
calendarRightPaddingDatetime: string;
|
|
298
300
|
calendarRightPaddingDaterange: string;
|
|
@@ -301,6 +303,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
301
303
|
calendarRightPaddingYear: string;
|
|
302
304
|
calendarRightPaddingQuarter: string;
|
|
303
305
|
calendarRightPaddingMonthrange: string;
|
|
306
|
+
calendarRightPaddingQuarterrange: string;
|
|
307
|
+
calendarRightPaddingYearrange: string;
|
|
304
308
|
};
|
|
305
309
|
peers: {
|
|
306
310
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -1462,6 +1466,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1462
1466
|
calendarLeftPaddingYear: string;
|
|
1463
1467
|
calendarLeftPaddingQuarter: string;
|
|
1464
1468
|
calendarLeftPaddingMonthrange: string;
|
|
1469
|
+
calendarLeftPaddingQuarterrange: string;
|
|
1470
|
+
calendarLeftPaddingYearrange: string;
|
|
1465
1471
|
calendarRightPaddingDate: string;
|
|
1466
1472
|
calendarRightPaddingDatetime: string;
|
|
1467
1473
|
calendarRightPaddingDaterange: string;
|
|
@@ -1470,6 +1476,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1470
1476
|
calendarRightPaddingYear: string;
|
|
1471
1477
|
calendarRightPaddingQuarter: string;
|
|
1472
1478
|
calendarRightPaddingMonthrange: string;
|
|
1479
|
+
calendarRightPaddingQuarterrange: string;
|
|
1480
|
+
calendarRightPaddingYearrange: string;
|
|
1473
1481
|
};
|
|
1474
1482
|
peers: {
|
|
1475
1483
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -209,6 +209,8 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
209
209
|
calendarLeftPaddingYear: string;
|
|
210
210
|
calendarLeftPaddingQuarter: string;
|
|
211
211
|
calendarLeftPaddingMonthrange: string;
|
|
212
|
+
calendarLeftPaddingQuarterrange: string;
|
|
213
|
+
calendarLeftPaddingYearrange: string;
|
|
212
214
|
calendarRightPaddingDate: string;
|
|
213
215
|
calendarRightPaddingDatetime: string;
|
|
214
216
|
calendarRightPaddingDaterange: string;
|
|
@@ -217,6 +219,8 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
217
219
|
calendarRightPaddingYear: string;
|
|
218
220
|
calendarRightPaddingQuarter: string;
|
|
219
221
|
calendarRightPaddingMonthrange: string;
|
|
222
|
+
calendarRightPaddingQuarterrange: string;
|
|
223
|
+
calendarRightPaddingYearrange: string;
|
|
220
224
|
};
|
|
221
225
|
peers: {
|
|
222
226
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { VirtualListInst } from 'vueuc';
|
|
3
|
-
import { DateItem, MonthItem, YearItem } from '../utils';
|
|
3
|
+
import { DateItem, MonthItem, YearItem, QuarterItem } from '../utils';
|
|
4
4
|
import { Shortcuts } from '../interface';
|
|
5
5
|
import { ScrollbarInst } from '../../../_internal';
|
|
6
6
|
declare const useDualCalendarProps: {
|
|
@@ -35,7 +35,7 @@ declare const useDualCalendarProps: {
|
|
|
35
35
|
readonly onRender: import("vue").PropType<(() => void) | undefined>;
|
|
36
36
|
readonly panel: BooleanConstructor;
|
|
37
37
|
};
|
|
38
|
-
declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarProps>, type: 'daterange' | 'datetimerange' | 'monthrange'): {
|
|
38
|
+
declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarProps>, type: 'daterange' | 'datetimerange' | 'monthrange' | 'quarterrange' | 'yearrange'): {
|
|
39
39
|
startDateDisplayString: import("vue").Ref<string>;
|
|
40
40
|
endDateInput: import("vue").Ref<string>;
|
|
41
41
|
timePickerSize: import("vue").Ref<"small" | "medium" | "large">;
|
|
@@ -240,6 +240,8 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
240
240
|
calendarLeftPaddingYear: string;
|
|
241
241
|
calendarLeftPaddingQuarter: string;
|
|
242
242
|
calendarLeftPaddingMonthrange: string;
|
|
243
|
+
calendarLeftPaddingQuarterrange: string;
|
|
244
|
+
calendarLeftPaddingYearrange: string;
|
|
243
245
|
calendarRightPaddingDate: string;
|
|
244
246
|
calendarRightPaddingDatetime: string;
|
|
245
247
|
calendarRightPaddingDaterange: string;
|
|
@@ -248,6 +250,8 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
248
250
|
calendarRightPaddingYear: string;
|
|
249
251
|
calendarRightPaddingQuarter: string;
|
|
250
252
|
calendarRightPaddingMonthrange: string;
|
|
253
|
+
calendarRightPaddingQuarterrange: string;
|
|
254
|
+
calendarRightPaddingYearrange: string;
|
|
251
255
|
};
|
|
252
256
|
peers: {
|
|
253
257
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
@@ -1149,7 +1153,7 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
1149
1153
|
endDatesElRef: import("vue").Ref<HTMLElement | null>;
|
|
1150
1154
|
resetSelectingStatus: (e: MouseEvent) => void;
|
|
1151
1155
|
handleDateClick: (dateItem: DateItem) => void;
|
|
1152
|
-
handleColItemClick: (dateItem: MonthItem | YearItem, clickType: 'start' | 'end') => void;
|
|
1156
|
+
handleColItemClick: (dateItem: MonthItem | QuarterItem | YearItem, clickType: 'start' | 'end') => void;
|
|
1153
1157
|
handleDateMouseEnter: (dateItem: DateItem) => void;
|
|
1154
1158
|
handleConfirmClick: () => void;
|
|
1155
1159
|
startCalendarPrevYear: () => void;
|
|
@@ -1172,8 +1176,10 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
1172
1176
|
endDateArray: import("vue").ComputedRef<DateItem[]>;
|
|
1173
1177
|
startYearArray: import("vue").ComputedRef<YearItem[]>;
|
|
1174
1178
|
startMonthArray: import("vue").ComputedRef<MonthItem[]>;
|
|
1179
|
+
startQuarterArray: import("vue").ComputedRef<QuarterItem[]>;
|
|
1175
1180
|
endYearArray: import("vue").ComputedRef<YearItem[]>;
|
|
1176
1181
|
endMonthArray: import("vue").ComputedRef<MonthItem[]>;
|
|
1182
|
+
endQuarterArray: import("vue").ComputedRef<QuarterItem[]>;
|
|
1177
1183
|
isSelecting: import("vue").Ref<boolean>;
|
|
1178
1184
|
handleRangeShortcutMouseenter: (shortcut: Shortcuts[string]) => void;
|
|
1179
1185
|
handleRangeShortcutClick: (shortcut: Shortcuts[string]) => void;
|