@coreui/vue-pro 4.5.0 → 4.7.0-alpha.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/dist/components/Types.d.ts +5 -5
- package/dist/components/calendar/CCalendar.d.ts +41 -3
- package/dist/components/date-picker/CDatePicker.d.ts +43 -4
- package/dist/components/date-range-picker/CDateRangePicker.d.ts +191 -4
- package/dist/components/form/CFormInput.d.ts +166 -1
- package/dist/components/form/CFormSelect.d.ts +1 -1
- package/dist/components/grid/CCol.d.ts +3 -3
- package/dist/components/grid/CRow.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/multi-select/CMultiSelect.d.ts +143 -4
- package/dist/components/multi-select/CMultiSelectOptions.d.ts +11 -0
- package/dist/components/multi-select/CMultiSelectSelection.d.ts +3 -3
- package/dist/components/pagination/index.d.ts +1 -2
- package/dist/components/picker/CPicker.d.ts +1 -1
- package/dist/components/popover/CPopover.d.ts +1 -1
- package/dist/components/smart-pagination/CSmartPagination.d.ts +257 -0
- package/dist/components/smart-pagination/index.d.ts +6 -0
- package/dist/components/smart-table/CSmartTable.d.ts +6 -4
- package/dist/components/smart-table/CSmartTableFilter.d.ts +2 -2
- package/dist/components/smart-table/CSmartTableHead.d.ts +2 -2
- package/dist/components/smart-table/CSmartTableInterface.d.ts +4 -1
- package/dist/components/table/CTable.d.ts +1 -1
- package/dist/components/table/CTableCaption.d.ts +2 -8
- package/dist/components/time-picker/CTimePicker.d.ts +2 -1
- package/dist/components/tooltip/CTooltip.d.ts +1 -1
- package/dist/components/widgets/CWidgetStatsD.d.ts +1 -1
- package/dist/index.es.js +1560 -1017
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1559 -1015
- package/dist/index.js.map +1 -1
- package/dist/utils/getNextSibling.d.ts +2 -0
- package/dist/utils/getPreviousSibling.d.ts +2 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/isVisible.d.ts +2 -0
- package/dist/utils/time.d.ts +2 -2
- package/package.json +2 -2
- package/src/components/calendar/CCalendar.ts +46 -4
- package/src/components/carousel/CCarousel.ts +1 -9
- package/src/components/date-picker/CDatePicker.ts +44 -3
- package/src/components/date-range-picker/CDateRangePicker.ts +340 -170
- package/src/components/form/CFormInput.ts +2 -0
- package/src/components/index.ts +1 -0
- package/src/components/loading-button/CLoadingButton.ts +1 -2
- package/src/components/multi-select/CMultiSelect.ts +295 -173
- package/src/components/multi-select/CMultiSelectOptions.ts +48 -10
- package/src/components/multi-select/CMultiSelectSelection.ts +1 -1
- package/src/components/pagination/index.ts +1 -3
- package/src/components/sidebar/CSidebar.ts +2 -10
- package/src/components/{pagination → smart-pagination}/CSmartPagination.ts +1 -2
- package/src/components/smart-pagination/index.ts +10 -0
- package/src/components/smart-table/CSmartTable.ts +10 -5
- package/src/components/smart-table/CSmartTableInterface.ts +4 -0
- package/src/components/table/CTableCaption.ts +0 -1
- package/src/components/time-picker/CTimePicker.ts +198 -64
- package/src/components/time-picker/CTimePickerRollCol.ts +9 -0
- package/src/utils/getNextSibling.ts +18 -0
- package/src/utils/getPreviousSibling.ts +18 -0
- package/src/utils/index.ts +5 -0
- package/src/utils/isVisible.ts +11 -0
- package/src/utils/time.ts +14 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
1
|
+
export type Breakpoints = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
2
|
+
export type Colors = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | 'primary-gradient' | 'secondary-gradient' | 'success-gradient' | 'danger-gradient' | 'warning-gradient' | 'info-gradient' | 'dark-gradient' | 'light-gradient' | string;
|
|
3
|
+
export type Placements = 'auto' | 'auto-start' | 'auto-end' | 'top-end' | 'top' | 'top-start' | 'bottom-end' | 'bottom' | 'bottom-start' | 'right-start' | 'right' | 'right-end' | 'left-start' | 'left' | 'left-end' | undefined;
|
|
4
|
+
export type Shapes = 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string;
|
|
5
|
+
export type Triggers = 'hover' | 'focus' | 'click';
|
|
@@ -13,6 +13,18 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
13
13
|
type: NumberConstructor;
|
|
14
14
|
default: number;
|
|
15
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Set the format of day name.
|
|
18
|
+
*
|
|
19
|
+
* @default 'numeric'
|
|
20
|
+
* @since 4.6.0
|
|
21
|
+
*/
|
|
22
|
+
dayFormat: {
|
|
23
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
24
|
+
default: string;
|
|
25
|
+
required: false;
|
|
26
|
+
validator: (value: string) => boolean;
|
|
27
|
+
};
|
|
16
28
|
/**
|
|
17
29
|
* Specify the list of dates that cannot be selected.
|
|
18
30
|
*/
|
|
@@ -65,6 +77,12 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
65
77
|
type: BooleanConstructor;
|
|
66
78
|
default: boolean;
|
|
67
79
|
};
|
|
80
|
+
/**
|
|
81
|
+
* Reorder year-month navigation, and render year first.
|
|
82
|
+
*
|
|
83
|
+
* @since 4.6.0
|
|
84
|
+
*/
|
|
85
|
+
navYearFirst: BooleanConstructor;
|
|
68
86
|
/**
|
|
69
87
|
* Allow range selection.
|
|
70
88
|
*/
|
|
@@ -85,7 +103,7 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
85
103
|
* @type number | 'long' | 'narrow' | 'short'
|
|
86
104
|
*/
|
|
87
105
|
weekdayFormat: {
|
|
88
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
106
|
+
type: (NumberConstructor | StringConstructor | FunctionConstructor)[];
|
|
89
107
|
default: number;
|
|
90
108
|
validator: (value: string | number) => boolean;
|
|
91
109
|
};
|
|
@@ -105,6 +123,18 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
105
123
|
type: NumberConstructor;
|
|
106
124
|
default: number;
|
|
107
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* Set the format of day name.
|
|
128
|
+
*
|
|
129
|
+
* @default 'numeric'
|
|
130
|
+
* @since 4.6.0
|
|
131
|
+
*/
|
|
132
|
+
dayFormat: {
|
|
133
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
134
|
+
default: string;
|
|
135
|
+
required: false;
|
|
136
|
+
validator: (value: string) => boolean;
|
|
137
|
+
};
|
|
108
138
|
/**
|
|
109
139
|
* Specify the list of dates that cannot be selected.
|
|
110
140
|
*/
|
|
@@ -157,6 +187,12 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
157
187
|
type: BooleanConstructor;
|
|
158
188
|
default: boolean;
|
|
159
189
|
};
|
|
190
|
+
/**
|
|
191
|
+
* Reorder year-month navigation, and render year first.
|
|
192
|
+
*
|
|
193
|
+
* @since 4.6.0
|
|
194
|
+
*/
|
|
195
|
+
navYearFirst: BooleanConstructor;
|
|
160
196
|
/**
|
|
161
197
|
* Allow range selection.
|
|
162
198
|
*/
|
|
@@ -177,7 +213,7 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
177
213
|
* @type number | 'long' | 'narrow' | 'short'
|
|
178
214
|
*/
|
|
179
215
|
weekdayFormat: {
|
|
180
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
216
|
+
type: (NumberConstructor | StringConstructor | FunctionConstructor)[];
|
|
181
217
|
default: number;
|
|
182
218
|
validator: (value: string | number) => boolean;
|
|
183
219
|
};
|
|
@@ -188,11 +224,13 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
188
224
|
"onEnd-date-change"?: ((...args: any[]) => any) | undefined;
|
|
189
225
|
}, {
|
|
190
226
|
calendars: number;
|
|
227
|
+
dayFormat: string | Function;
|
|
191
228
|
firstDayOfWeek: number;
|
|
192
229
|
locale: string;
|
|
193
230
|
navigation: boolean;
|
|
231
|
+
navYearFirst: boolean;
|
|
194
232
|
range: boolean;
|
|
195
233
|
selectEndDate: boolean;
|
|
196
|
-
weekdayFormat: string | number;
|
|
234
|
+
weekdayFormat: string | number | Function;
|
|
197
235
|
}>;
|
|
198
236
|
export { CCalendar };
|
|
@@ -86,6 +86,18 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
86
86
|
type: StringConstructor;
|
|
87
87
|
validator: (value: string) => boolean;
|
|
88
88
|
};
|
|
89
|
+
/**
|
|
90
|
+
* Set the format of day name.
|
|
91
|
+
*
|
|
92
|
+
* @default 'numeric'
|
|
93
|
+
* @since 4.6.0
|
|
94
|
+
*/
|
|
95
|
+
dayFormat: {
|
|
96
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
97
|
+
default: string;
|
|
98
|
+
required: false;
|
|
99
|
+
validator: (value: string) => boolean;
|
|
100
|
+
};
|
|
89
101
|
/**
|
|
90
102
|
* Toggle the disabled state for the component.
|
|
91
103
|
*/
|
|
@@ -170,6 +182,12 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
170
182
|
type: BooleanConstructor;
|
|
171
183
|
default: boolean;
|
|
172
184
|
};
|
|
185
|
+
/**
|
|
186
|
+
* Reorder year-month navigation, and render year first.
|
|
187
|
+
*
|
|
188
|
+
* @since 4.6.0
|
|
189
|
+
*/
|
|
190
|
+
navYearFirst: BooleanConstructor;
|
|
173
191
|
/**
|
|
174
192
|
* Specifies a short hint that is visible in the input.
|
|
175
193
|
*/
|
|
@@ -197,13 +215,13 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
197
215
|
* @type number | 'long' | 'narrow' | 'short'
|
|
198
216
|
*/
|
|
199
217
|
weekdayFormat: {
|
|
200
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
218
|
+
type: (NumberConstructor | StringConstructor | FunctionConstructor)[];
|
|
201
219
|
default: number;
|
|
202
220
|
validator: (value: string | number) => boolean;
|
|
203
221
|
};
|
|
204
222
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
205
223
|
[key: string]: any;
|
|
206
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "date-change"[], "date-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
224
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("date-change" | "update:date")[], "date-change" | "update:date", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
207
225
|
/**
|
|
208
226
|
* Default date of the component
|
|
209
227
|
*/
|
|
@@ -290,6 +308,18 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
290
308
|
type: StringConstructor;
|
|
291
309
|
validator: (value: string) => boolean;
|
|
292
310
|
};
|
|
311
|
+
/**
|
|
312
|
+
* Set the format of day name.
|
|
313
|
+
*
|
|
314
|
+
* @default 'numeric'
|
|
315
|
+
* @since 4.6.0
|
|
316
|
+
*/
|
|
317
|
+
dayFormat: {
|
|
318
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
319
|
+
default: string;
|
|
320
|
+
required: false;
|
|
321
|
+
validator: (value: string) => boolean;
|
|
322
|
+
};
|
|
293
323
|
/**
|
|
294
324
|
* Toggle the disabled state for the component.
|
|
295
325
|
*/
|
|
@@ -374,6 +404,12 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
374
404
|
type: BooleanConstructor;
|
|
375
405
|
default: boolean;
|
|
376
406
|
};
|
|
407
|
+
/**
|
|
408
|
+
* Reorder year-month navigation, and render year first.
|
|
409
|
+
*
|
|
410
|
+
* @since 4.6.0
|
|
411
|
+
*/
|
|
412
|
+
navYearFirst: BooleanConstructor;
|
|
377
413
|
/**
|
|
378
414
|
* Specifies a short hint that is visible in the input.
|
|
379
415
|
*/
|
|
@@ -401,18 +437,21 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
401
437
|
* @type number | 'long' | 'narrow' | 'short'
|
|
402
438
|
*/
|
|
403
439
|
weekdayFormat: {
|
|
404
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
440
|
+
type: (NumberConstructor | StringConstructor | FunctionConstructor)[];
|
|
405
441
|
default: number;
|
|
406
442
|
validator: (value: string | number) => boolean;
|
|
407
443
|
};
|
|
408
444
|
}>> & {
|
|
409
445
|
"onDate-change"?: ((...args: any[]) => any) | undefined;
|
|
446
|
+
"onUpdate:date"?: ((...args: any[]) => any) | undefined;
|
|
410
447
|
}, {
|
|
411
448
|
disabled: boolean;
|
|
449
|
+
dayFormat: string | Function;
|
|
412
450
|
firstDayOfWeek: number;
|
|
413
451
|
locale: string;
|
|
414
452
|
navigation: boolean;
|
|
415
|
-
|
|
453
|
+
navYearFirst: boolean;
|
|
454
|
+
weekdayFormat: string | number | Function;
|
|
416
455
|
cancelButton: string | boolean;
|
|
417
456
|
cancelButtonColor: string;
|
|
418
457
|
cancelButtonSize: string;
|
|
@@ -57,6 +57,15 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
57
57
|
type: BooleanConstructor;
|
|
58
58
|
default: boolean;
|
|
59
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
* If true the dropdown will be immediately closed after submitting the full date.
|
|
62
|
+
*
|
|
63
|
+
* @since 4.7.0
|
|
64
|
+
*/
|
|
65
|
+
closeOnSelect: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
60
69
|
/**
|
|
61
70
|
* Toggle visibility or set the content of confirm button.
|
|
62
71
|
*/
|
|
@@ -93,6 +102,18 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
93
102
|
type: StringConstructor;
|
|
94
103
|
validator: (value: string) => boolean;
|
|
95
104
|
};
|
|
105
|
+
/**
|
|
106
|
+
* Set the format of day name.
|
|
107
|
+
*
|
|
108
|
+
* @default 'numeric'
|
|
109
|
+
* @since 4.6.0
|
|
110
|
+
*/
|
|
111
|
+
dayFormat: {
|
|
112
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
113
|
+
default: string;
|
|
114
|
+
required: false;
|
|
115
|
+
validator: (value: string) => boolean;
|
|
116
|
+
};
|
|
96
117
|
/**
|
|
97
118
|
* Toggle the disabled state for the component.
|
|
98
119
|
*/
|
|
@@ -110,6 +131,30 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
110
131
|
type: (StringConstructor | DateConstructor)[];
|
|
111
132
|
required: false;
|
|
112
133
|
};
|
|
134
|
+
/**
|
|
135
|
+
* Provide valuable, actionable feedback.
|
|
136
|
+
*
|
|
137
|
+
* @since 4.6.0
|
|
138
|
+
*/
|
|
139
|
+
feedback: {
|
|
140
|
+
type: StringConstructor;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Provide valuable, actionable feedback.
|
|
144
|
+
*
|
|
145
|
+
* @since 4.6.0
|
|
146
|
+
*/
|
|
147
|
+
feedbackInvalid: {
|
|
148
|
+
type: StringConstructor;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
|
|
152
|
+
*
|
|
153
|
+
* @since 4.6.0
|
|
154
|
+
*/
|
|
155
|
+
feedbackValid: {
|
|
156
|
+
type: StringConstructor;
|
|
157
|
+
};
|
|
113
158
|
/**
|
|
114
159
|
* Sets the day of start week.
|
|
115
160
|
* - 0 - Sunday,
|
|
@@ -152,6 +197,20 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
152
197
|
* Toggle the readonly state for the component.
|
|
153
198
|
*/
|
|
154
199
|
inputReadOnly: BooleanConstructor;
|
|
200
|
+
/**
|
|
201
|
+
* Set component validation state to invalid.
|
|
202
|
+
*
|
|
203
|
+
* @since 4.6.0
|
|
204
|
+
*/
|
|
205
|
+
invalid: BooleanConstructor;
|
|
206
|
+
/**
|
|
207
|
+
* Add a caption for a component.
|
|
208
|
+
*
|
|
209
|
+
* @since 4.6.0
|
|
210
|
+
*/
|
|
211
|
+
label: {
|
|
212
|
+
type: StringConstructor;
|
|
213
|
+
};
|
|
155
214
|
/**
|
|
156
215
|
* Sets the default locale for components. If not set, it is inherited from the navigator.language.
|
|
157
216
|
*/
|
|
@@ -178,6 +237,12 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
178
237
|
type: BooleanConstructor;
|
|
179
238
|
default: boolean;
|
|
180
239
|
};
|
|
240
|
+
/**
|
|
241
|
+
* Reorder year-month navigation, and render year first.
|
|
242
|
+
*
|
|
243
|
+
* @since 4.6.0
|
|
244
|
+
*/
|
|
245
|
+
navYearFirst: BooleanConstructor;
|
|
181
246
|
/**
|
|
182
247
|
* Specifies a short hint that is visible in the input.
|
|
183
248
|
*/
|
|
@@ -223,6 +288,14 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
223
288
|
startDate: {
|
|
224
289
|
type: (StringConstructor | DateConstructor)[];
|
|
225
290
|
};
|
|
291
|
+
/**
|
|
292
|
+
* Add helper text to the component.
|
|
293
|
+
*
|
|
294
|
+
* @since 4.6.0
|
|
295
|
+
*/
|
|
296
|
+
text: {
|
|
297
|
+
type: StringConstructor;
|
|
298
|
+
};
|
|
226
299
|
/**
|
|
227
300
|
* Provide an additional time selection by adding select boxes to choose times.
|
|
228
301
|
*/
|
|
@@ -263,19 +336,35 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
263
336
|
type: StringConstructor;
|
|
264
337
|
validator: (value: string) => boolean;
|
|
265
338
|
};
|
|
339
|
+
/**
|
|
340
|
+
* Display validation feedback in a styled tooltip.
|
|
341
|
+
*
|
|
342
|
+
* @since 4.6.0
|
|
343
|
+
*/
|
|
344
|
+
tooltipFeedback: BooleanConstructor;
|
|
345
|
+
/**
|
|
346
|
+
* Set component validation state to valid.
|
|
347
|
+
*
|
|
348
|
+
* @since 4.6.0
|
|
349
|
+
*/
|
|
350
|
+
valid: BooleanConstructor;
|
|
351
|
+
/**
|
|
352
|
+
* Toggle the visibility of the component.
|
|
353
|
+
*/
|
|
354
|
+
visible: BooleanConstructor;
|
|
266
355
|
/**
|
|
267
356
|
* Set length or format of day name.
|
|
268
357
|
*
|
|
269
358
|
* @type number | 'long' | 'narrow' | 'short'
|
|
270
359
|
*/
|
|
271
360
|
weekdayFormat: {
|
|
272
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
361
|
+
type: (NumberConstructor | StringConstructor | FunctionConstructor)[];
|
|
273
362
|
default: number;
|
|
274
363
|
validator: (value: string | number) => boolean;
|
|
275
364
|
};
|
|
276
365
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
277
366
|
[key: string]: any;
|
|
278
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hide" | "show" | "start-date-change" | "end-date-change")[], "hide" | "show" | "start-date-change" | "end-date-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
367
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hide" | "show" | "start-date-change" | "end-date-change" | "update:start-date" | "update:end-date")[], "hide" | "show" | "start-date-change" | "end-date-change" | "update:start-date" | "update:end-date", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
279
368
|
/**
|
|
280
369
|
* The number of calendars that render on desktop devices.
|
|
281
370
|
*/
|
|
@@ -333,6 +422,15 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
333
422
|
type: BooleanConstructor;
|
|
334
423
|
default: boolean;
|
|
335
424
|
};
|
|
425
|
+
/**
|
|
426
|
+
* If true the dropdown will be immediately closed after submitting the full date.
|
|
427
|
+
*
|
|
428
|
+
* @since 4.7.0
|
|
429
|
+
*/
|
|
430
|
+
closeOnSelect: {
|
|
431
|
+
type: BooleanConstructor;
|
|
432
|
+
default: boolean;
|
|
433
|
+
};
|
|
336
434
|
/**
|
|
337
435
|
* Toggle visibility or set the content of confirm button.
|
|
338
436
|
*/
|
|
@@ -369,6 +467,18 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
369
467
|
type: StringConstructor;
|
|
370
468
|
validator: (value: string) => boolean;
|
|
371
469
|
};
|
|
470
|
+
/**
|
|
471
|
+
* Set the format of day name.
|
|
472
|
+
*
|
|
473
|
+
* @default 'numeric'
|
|
474
|
+
* @since 4.6.0
|
|
475
|
+
*/
|
|
476
|
+
dayFormat: {
|
|
477
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
478
|
+
default: string;
|
|
479
|
+
required: false;
|
|
480
|
+
validator: (value: string) => boolean;
|
|
481
|
+
};
|
|
372
482
|
/**
|
|
373
483
|
* Toggle the disabled state for the component.
|
|
374
484
|
*/
|
|
@@ -386,6 +496,30 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
386
496
|
type: (StringConstructor | DateConstructor)[];
|
|
387
497
|
required: false;
|
|
388
498
|
};
|
|
499
|
+
/**
|
|
500
|
+
* Provide valuable, actionable feedback.
|
|
501
|
+
*
|
|
502
|
+
* @since 4.6.0
|
|
503
|
+
*/
|
|
504
|
+
feedback: {
|
|
505
|
+
type: StringConstructor;
|
|
506
|
+
};
|
|
507
|
+
/**
|
|
508
|
+
* Provide valuable, actionable feedback.
|
|
509
|
+
*
|
|
510
|
+
* @since 4.6.0
|
|
511
|
+
*/
|
|
512
|
+
feedbackInvalid: {
|
|
513
|
+
type: StringConstructor;
|
|
514
|
+
};
|
|
515
|
+
/**
|
|
516
|
+
* Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
|
|
517
|
+
*
|
|
518
|
+
* @since 4.6.0
|
|
519
|
+
*/
|
|
520
|
+
feedbackValid: {
|
|
521
|
+
type: StringConstructor;
|
|
522
|
+
};
|
|
389
523
|
/**
|
|
390
524
|
* Sets the day of start week.
|
|
391
525
|
* - 0 - Sunday,
|
|
@@ -428,6 +562,20 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
428
562
|
* Toggle the readonly state for the component.
|
|
429
563
|
*/
|
|
430
564
|
inputReadOnly: BooleanConstructor;
|
|
565
|
+
/**
|
|
566
|
+
* Set component validation state to invalid.
|
|
567
|
+
*
|
|
568
|
+
* @since 4.6.0
|
|
569
|
+
*/
|
|
570
|
+
invalid: BooleanConstructor;
|
|
571
|
+
/**
|
|
572
|
+
* Add a caption for a component.
|
|
573
|
+
*
|
|
574
|
+
* @since 4.6.0
|
|
575
|
+
*/
|
|
576
|
+
label: {
|
|
577
|
+
type: StringConstructor;
|
|
578
|
+
};
|
|
431
579
|
/**
|
|
432
580
|
* Sets the default locale for components. If not set, it is inherited from the navigator.language.
|
|
433
581
|
*/
|
|
@@ -454,6 +602,12 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
454
602
|
type: BooleanConstructor;
|
|
455
603
|
default: boolean;
|
|
456
604
|
};
|
|
605
|
+
/**
|
|
606
|
+
* Reorder year-month navigation, and render year first.
|
|
607
|
+
*
|
|
608
|
+
* @since 4.6.0
|
|
609
|
+
*/
|
|
610
|
+
navYearFirst: BooleanConstructor;
|
|
457
611
|
/**
|
|
458
612
|
* Specifies a short hint that is visible in the input.
|
|
459
613
|
*/
|
|
@@ -499,6 +653,14 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
499
653
|
startDate: {
|
|
500
654
|
type: (StringConstructor | DateConstructor)[];
|
|
501
655
|
};
|
|
656
|
+
/**
|
|
657
|
+
* Add helper text to the component.
|
|
658
|
+
*
|
|
659
|
+
* @since 4.6.0
|
|
660
|
+
*/
|
|
661
|
+
text: {
|
|
662
|
+
type: StringConstructor;
|
|
663
|
+
};
|
|
502
664
|
/**
|
|
503
665
|
* Provide an additional time selection by adding select boxes to choose times.
|
|
504
666
|
*/
|
|
@@ -539,13 +701,29 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
539
701
|
type: StringConstructor;
|
|
540
702
|
validator: (value: string) => boolean;
|
|
541
703
|
};
|
|
704
|
+
/**
|
|
705
|
+
* Display validation feedback in a styled tooltip.
|
|
706
|
+
*
|
|
707
|
+
* @since 4.6.0
|
|
708
|
+
*/
|
|
709
|
+
tooltipFeedback: BooleanConstructor;
|
|
710
|
+
/**
|
|
711
|
+
* Set component validation state to valid.
|
|
712
|
+
*
|
|
713
|
+
* @since 4.6.0
|
|
714
|
+
*/
|
|
715
|
+
valid: BooleanConstructor;
|
|
716
|
+
/**
|
|
717
|
+
* Toggle the visibility of the component.
|
|
718
|
+
*/
|
|
719
|
+
visible: BooleanConstructor;
|
|
542
720
|
/**
|
|
543
721
|
* Set length or format of day name.
|
|
544
722
|
*
|
|
545
723
|
* @type number | 'long' | 'narrow' | 'short'
|
|
546
724
|
*/
|
|
547
725
|
weekdayFormat: {
|
|
548
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
726
|
+
type: (NumberConstructor | StringConstructor | FunctionConstructor)[];
|
|
549
727
|
default: number;
|
|
550
728
|
validator: (value: string | number) => boolean;
|
|
551
729
|
};
|
|
@@ -554,15 +732,23 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
554
732
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
555
733
|
"onStart-date-change"?: ((...args: any[]) => any) | undefined;
|
|
556
734
|
"onEnd-date-change"?: ((...args: any[]) => any) | undefined;
|
|
735
|
+
"onUpdate:start-date"?: ((...args: any[]) => any) | undefined;
|
|
736
|
+
"onUpdate:end-date"?: ((...args: any[]) => any) | undefined;
|
|
557
737
|
}, {
|
|
738
|
+
invalid: boolean;
|
|
739
|
+
visible: boolean;
|
|
558
740
|
disabled: boolean;
|
|
559
741
|
calendars: number;
|
|
742
|
+
dayFormat: string | Function;
|
|
560
743
|
firstDayOfWeek: number;
|
|
561
744
|
locale: string;
|
|
562
745
|
navigation: boolean;
|
|
746
|
+
navYearFirst: boolean;
|
|
563
747
|
range: boolean;
|
|
564
748
|
selectEndDate: boolean;
|
|
565
|
-
weekdayFormat: string | number;
|
|
749
|
+
weekdayFormat: string | number | Function;
|
|
750
|
+
valid: boolean;
|
|
751
|
+
tooltipFeedback: boolean;
|
|
566
752
|
cancelButton: string | boolean;
|
|
567
753
|
cancelButtonColor: string;
|
|
568
754
|
cancelButtonSize: string;
|
|
@@ -575,6 +761,7 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
575
761
|
indicator: boolean;
|
|
576
762
|
inputReadOnly: boolean;
|
|
577
763
|
placeholder: String | String[];
|
|
764
|
+
closeOnSelect: boolean;
|
|
578
765
|
separator: boolean;
|
|
579
766
|
timepicker: boolean;
|
|
580
767
|
todayButton: string | boolean;
|