@coreui/vue-pro 4.1.4 → 4.3.0-beta.1
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.md +1 -1
- package/dist/components/button/CButton.d.ts +29 -2
- package/dist/components/calendar/CCalendar.d.ts +185 -0
- package/dist/components/calendar/index.d.ts +6 -0
- package/dist/components/date-picker/CDatePicker.d.ts +406 -0
- package/dist/components/date-picker/index.d.ts +6 -0
- package/dist/components/date-range-picker/CDateRangePicker.d.ts +480 -0
- package/dist/components/date-range-picker/index.d.ts +6 -0
- package/dist/components/dropdown/CDropdown.d.ts +25 -0
- package/dist/components/dropdown/CDropdownToggle.d.ts +35 -1
- package/dist/components/index.d.ts +5 -0
- package/dist/components/multi-select/CMultiSelect.d.ts +2 -2
- package/dist/components/picker/CPicker.d.ts +11 -0
- package/dist/components/picker/index.d.ts +6 -0
- package/dist/components/popover/CPopover.d.ts +1 -1
- package/dist/components/sidebar/CSidebar.d.ts +1 -1
- package/dist/components/smart-table/CSmartTable.d.ts +35 -99
- package/dist/components/smart-table/CSmartTableInterface.d.ts +3 -3
- package/dist/components/time-picker/CTimePicker.d.ts +10 -0
- package/dist/components/time-picker/CTimePickerRollCol.d.ts +27 -0
- package/dist/components/time-picker/index.d.ts +6 -0
- package/dist/components/toast/CToast.d.ts +1 -1
- package/dist/index.es.js +3726 -1646
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3734 -1644
- package/dist/index.js.map +1 -1
- package/dist/utils/calendar.d.ts +21 -0
- package/dist/utils/time.d.ts +17 -0
- package/package.json +9 -9
- package/src/components/accordion/CAccordionButton.ts +1 -0
- package/src/components/accordion/__tests__/__snapshots__/CAccordionButton.spec.ts.snap +1 -1
- package/src/components/accordion/__tests__/__snapshots__/CAccordionHeader.spec.ts.snap +1 -1
- package/src/components/button/CButton.ts +30 -1
- package/src/components/button/__tests__/__snapshots__/CButton.spec.ts.snap +1 -1
- package/src/components/calendar/CCalendar.ts +546 -0
- package/src/components/calendar/index.ts +10 -0
- package/src/components/close-button/CCloseButton.ts +4 -1
- package/src/components/date-picker/CDatePicker.ts +243 -0
- package/src/components/date-picker/index.ts +10 -0
- package/src/components/date-range-picker/CDateRangePicker.ts +635 -0
- package/src/components/date-range-picker/index.ts +10 -0
- package/src/components/dropdown/CDropdown.ts +48 -49
- package/src/components/dropdown/CDropdownMenu.ts +52 -7
- package/src/components/dropdown/CDropdownToggle.ts +93 -29
- package/src/components/dropdown/__tests__/CDropdownMenu.spec.ts +7 -7
- package/src/components/dropdown/__tests__/CDropdownToggle.spec.ts +4 -5
- package/src/components/dropdown/__tests__/__snapshots__/CDropdownToggle.spec.ts.snap +2 -2
- package/src/components/form/CFormCheck.ts +2 -1
- package/src/components/form/CFormSwitch.ts +1 -7
- package/src/components/form/__tests__/__snapshots__/CFormCheck.spec.ts.snap +2 -8
- package/src/components/index.ts +5 -0
- package/src/components/modal/__tests__/__snapshots__/CModal.spec.ts.snap +2 -1
- package/src/components/pagination/CSmartPagination.ts +4 -4
- package/src/components/picker/CPicker.ts +220 -0
- package/src/components/picker/index.ts +10 -0
- package/src/components/sidebar/__tests__/__snapshots__/CSidebar.spec.ts.snap +8 -2
- package/src/components/smart-table/CSmartTable.ts +17 -49
- package/src/components/smart-table/CSmartTableInterface.ts +5 -3
- package/src/components/time-picker/CTimePicker.ts +410 -0
- package/src/components/time-picker/CTimePickerRollCol.ts +58 -0
- package/src/components/time-picker/index.ts +10 -0
- package/src/components/toast/__tests__/__snapshots__/CToastClose.spec.ts.snap +1 -1
- package/src/utils/calendar.ts +193 -0
- package/src/utils/time.ts +58 -0
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
3
|
+
/**
|
|
4
|
+
* The number of calendars that render on desktop devices.
|
|
5
|
+
*/
|
|
6
|
+
calendars: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Default date of the component
|
|
12
|
+
*/
|
|
13
|
+
calendarDate: {
|
|
14
|
+
type: (StringConstructor | DateConstructor)[];
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Toggle visibility or set the content of cancel button.
|
|
18
|
+
*/
|
|
19
|
+
cancelButton: {
|
|
20
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Sets the color context of the cancel button to one of CoreUI’s themed colors.
|
|
25
|
+
*
|
|
26
|
+
* @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
|
|
27
|
+
*/
|
|
28
|
+
cancelButtonColor: {
|
|
29
|
+
default: string;
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
validator: (value: string) => boolean;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Size the cancel button small or large.
|
|
35
|
+
*
|
|
36
|
+
* @values 'sm', 'lg'
|
|
37
|
+
*/
|
|
38
|
+
cancelButtonSize: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
validator: (value: string) => boolean;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Set the cancel button variant to an outlined button or a ghost button.
|
|
45
|
+
*
|
|
46
|
+
* @values 'ghost', 'outline'
|
|
47
|
+
*/
|
|
48
|
+
cancelButtonVariant: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
validator: (value: string) => boolean;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Toggle visibility of the cleaner button.
|
|
55
|
+
*/
|
|
56
|
+
cleaner: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Toggle visibility or set the content of confirm button.
|
|
62
|
+
*/
|
|
63
|
+
confirmButton: {
|
|
64
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Sets the color context of the confirm button to one of CoreUI’s themed colors.
|
|
69
|
+
*
|
|
70
|
+
* @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
|
|
71
|
+
*/
|
|
72
|
+
confirmButtonColor: {
|
|
73
|
+
default: string;
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
validator: (value: string) => boolean;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Size the confirm button small or large.
|
|
79
|
+
*
|
|
80
|
+
* @values 'sm', 'lg'
|
|
81
|
+
*/
|
|
82
|
+
confirmButtonSize: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: string;
|
|
85
|
+
validator: (value: string) => boolean;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Set the confirm button variant to an outlined button or a ghost button.
|
|
89
|
+
*
|
|
90
|
+
* @values 'ghost', 'outline'
|
|
91
|
+
*/
|
|
92
|
+
confirmButtonVariant: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
validator: (value: string) => boolean;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Toggle the disabled state for the component.
|
|
98
|
+
*/
|
|
99
|
+
disabled: BooleanConstructor;
|
|
100
|
+
/**
|
|
101
|
+
* Specify the list of dates that cannot be selected.
|
|
102
|
+
*/
|
|
103
|
+
disabledDates: {
|
|
104
|
+
type: PropType<Date[] | Date[][]>;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Initial selected to date (range).
|
|
108
|
+
*/
|
|
109
|
+
endDate: {
|
|
110
|
+
type: (StringConstructor | DateConstructor)[];
|
|
111
|
+
required: false;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Sets the day of start week.
|
|
115
|
+
* - 0 - Sunday,
|
|
116
|
+
* - 1 - Monday,
|
|
117
|
+
* - 2 - Tuesday,
|
|
118
|
+
* - 3 - Wednesday,
|
|
119
|
+
* - 4 - Thursday,
|
|
120
|
+
* - 5 - Friday,
|
|
121
|
+
* - 6 - Saturday,
|
|
122
|
+
* - 7 - Sunday
|
|
123
|
+
*/
|
|
124
|
+
firstDayOfWeek: {
|
|
125
|
+
type: NumberConstructor;
|
|
126
|
+
default: number;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Toggle visibility of footer element or set the content of footer.
|
|
130
|
+
*/
|
|
131
|
+
footer: BooleanConstructor;
|
|
132
|
+
/**
|
|
133
|
+
* Toggle visibility or set the content of the input indicator.
|
|
134
|
+
*/
|
|
135
|
+
indicator: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Toggle the readonly state for the component.
|
|
141
|
+
*/
|
|
142
|
+
inputReadOnly: BooleanConstructor;
|
|
143
|
+
/**
|
|
144
|
+
* Sets the default locale for components. If not set, it is inherited from the navigator.language.
|
|
145
|
+
*/
|
|
146
|
+
locale: {
|
|
147
|
+
type: StringConstructor;
|
|
148
|
+
default: string;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Max selectable date.
|
|
152
|
+
*/
|
|
153
|
+
maxDate: {
|
|
154
|
+
type: (StringConstructor | DateConstructor)[];
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Min selectable date.
|
|
158
|
+
*/
|
|
159
|
+
minDate: {
|
|
160
|
+
type: (StringConstructor | DateConstructor)[];
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Show arrows navigation.
|
|
164
|
+
*/
|
|
165
|
+
navigation: {
|
|
166
|
+
type: BooleanConstructor;
|
|
167
|
+
default: boolean;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Specifies a short hint that is visible in the input.
|
|
171
|
+
*/
|
|
172
|
+
placeholder: {
|
|
173
|
+
type: PropType<String | String[]>;
|
|
174
|
+
default: () => string[];
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* @ignore
|
|
178
|
+
*/
|
|
179
|
+
range: {
|
|
180
|
+
type: BooleanConstructor;
|
|
181
|
+
default: boolean;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Predefined date ranges the user can select from.
|
|
185
|
+
*/
|
|
186
|
+
ranges: ObjectConstructor;
|
|
187
|
+
/**
|
|
188
|
+
* Toggle select mode between start and end date.
|
|
189
|
+
*/
|
|
190
|
+
selectEndDate: BooleanConstructor;
|
|
191
|
+
/**
|
|
192
|
+
* Default icon or character character that separates two dates.
|
|
193
|
+
*/
|
|
194
|
+
separator: {
|
|
195
|
+
type: BooleanConstructor;
|
|
196
|
+
default: boolean;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Size the component small or large.
|
|
200
|
+
*
|
|
201
|
+
* @values 'sm', 'lg'
|
|
202
|
+
*/
|
|
203
|
+
size: {
|
|
204
|
+
type: StringConstructor;
|
|
205
|
+
required: false;
|
|
206
|
+
validator: (value: string) => boolean;
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* Initial selected date.
|
|
210
|
+
*/
|
|
211
|
+
startDate: {
|
|
212
|
+
type: (StringConstructor | DateConstructor)[];
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Provide an additional time selection by adding select boxes to choose times.
|
|
216
|
+
*/
|
|
217
|
+
timepicker: BooleanConstructor;
|
|
218
|
+
/**
|
|
219
|
+
* Set length or format of day name.
|
|
220
|
+
*
|
|
221
|
+
* @type number | 'long' | 'narrow' | 'short'
|
|
222
|
+
*/
|
|
223
|
+
weekdayFormat: {
|
|
224
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
225
|
+
default: number;
|
|
226
|
+
validator: (value: string | number) => boolean;
|
|
227
|
+
};
|
|
228
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
229
|
+
[key: string]: any;
|
|
230
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
231
|
+
/**
|
|
232
|
+
* The number of calendars that render on desktop devices.
|
|
233
|
+
*/
|
|
234
|
+
calendars: {
|
|
235
|
+
type: NumberConstructor;
|
|
236
|
+
default: number;
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* Default date of the component
|
|
240
|
+
*/
|
|
241
|
+
calendarDate: {
|
|
242
|
+
type: (StringConstructor | DateConstructor)[];
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* Toggle visibility or set the content of cancel button.
|
|
246
|
+
*/
|
|
247
|
+
cancelButton: {
|
|
248
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
249
|
+
default: string;
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* Sets the color context of the cancel button to one of CoreUI’s themed colors.
|
|
253
|
+
*
|
|
254
|
+
* @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
|
|
255
|
+
*/
|
|
256
|
+
cancelButtonColor: {
|
|
257
|
+
default: string;
|
|
258
|
+
type: StringConstructor;
|
|
259
|
+
validator: (value: string) => boolean;
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* Size the cancel button small or large.
|
|
263
|
+
*
|
|
264
|
+
* @values 'sm', 'lg'
|
|
265
|
+
*/
|
|
266
|
+
cancelButtonSize: {
|
|
267
|
+
type: StringConstructor;
|
|
268
|
+
default: string;
|
|
269
|
+
validator: (value: string) => boolean;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* Set the cancel button variant to an outlined button or a ghost button.
|
|
273
|
+
*
|
|
274
|
+
* @values 'ghost', 'outline'
|
|
275
|
+
*/
|
|
276
|
+
cancelButtonVariant: {
|
|
277
|
+
type: StringConstructor;
|
|
278
|
+
default: string;
|
|
279
|
+
validator: (value: string) => boolean;
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* Toggle visibility of the cleaner button.
|
|
283
|
+
*/
|
|
284
|
+
cleaner: {
|
|
285
|
+
type: BooleanConstructor;
|
|
286
|
+
default: boolean;
|
|
287
|
+
};
|
|
288
|
+
/**
|
|
289
|
+
* Toggle visibility or set the content of confirm button.
|
|
290
|
+
*/
|
|
291
|
+
confirmButton: {
|
|
292
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
293
|
+
default: string;
|
|
294
|
+
};
|
|
295
|
+
/**
|
|
296
|
+
* Sets the color context of the confirm button to one of CoreUI’s themed colors.
|
|
297
|
+
*
|
|
298
|
+
* @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
|
|
299
|
+
*/
|
|
300
|
+
confirmButtonColor: {
|
|
301
|
+
default: string;
|
|
302
|
+
type: StringConstructor;
|
|
303
|
+
validator: (value: string) => boolean;
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* Size the confirm button small or large.
|
|
307
|
+
*
|
|
308
|
+
* @values 'sm', 'lg'
|
|
309
|
+
*/
|
|
310
|
+
confirmButtonSize: {
|
|
311
|
+
type: StringConstructor;
|
|
312
|
+
default: string;
|
|
313
|
+
validator: (value: string) => boolean;
|
|
314
|
+
};
|
|
315
|
+
/**
|
|
316
|
+
* Set the confirm button variant to an outlined button or a ghost button.
|
|
317
|
+
*
|
|
318
|
+
* @values 'ghost', 'outline'
|
|
319
|
+
*/
|
|
320
|
+
confirmButtonVariant: {
|
|
321
|
+
type: StringConstructor;
|
|
322
|
+
validator: (value: string) => boolean;
|
|
323
|
+
};
|
|
324
|
+
/**
|
|
325
|
+
* Toggle the disabled state for the component.
|
|
326
|
+
*/
|
|
327
|
+
disabled: BooleanConstructor;
|
|
328
|
+
/**
|
|
329
|
+
* Specify the list of dates that cannot be selected.
|
|
330
|
+
*/
|
|
331
|
+
disabledDates: {
|
|
332
|
+
type: PropType<Date[] | Date[][]>;
|
|
333
|
+
};
|
|
334
|
+
/**
|
|
335
|
+
* Initial selected to date (range).
|
|
336
|
+
*/
|
|
337
|
+
endDate: {
|
|
338
|
+
type: (StringConstructor | DateConstructor)[];
|
|
339
|
+
required: false;
|
|
340
|
+
};
|
|
341
|
+
/**
|
|
342
|
+
* Sets the day of start week.
|
|
343
|
+
* - 0 - Sunday,
|
|
344
|
+
* - 1 - Monday,
|
|
345
|
+
* - 2 - Tuesday,
|
|
346
|
+
* - 3 - Wednesday,
|
|
347
|
+
* - 4 - Thursday,
|
|
348
|
+
* - 5 - Friday,
|
|
349
|
+
* - 6 - Saturday,
|
|
350
|
+
* - 7 - Sunday
|
|
351
|
+
*/
|
|
352
|
+
firstDayOfWeek: {
|
|
353
|
+
type: NumberConstructor;
|
|
354
|
+
default: number;
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* Toggle visibility of footer element or set the content of footer.
|
|
358
|
+
*/
|
|
359
|
+
footer: BooleanConstructor;
|
|
360
|
+
/**
|
|
361
|
+
* Toggle visibility or set the content of the input indicator.
|
|
362
|
+
*/
|
|
363
|
+
indicator: {
|
|
364
|
+
type: BooleanConstructor;
|
|
365
|
+
default: boolean;
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* Toggle the readonly state for the component.
|
|
369
|
+
*/
|
|
370
|
+
inputReadOnly: BooleanConstructor;
|
|
371
|
+
/**
|
|
372
|
+
* Sets the default locale for components. If not set, it is inherited from the navigator.language.
|
|
373
|
+
*/
|
|
374
|
+
locale: {
|
|
375
|
+
type: StringConstructor;
|
|
376
|
+
default: string;
|
|
377
|
+
};
|
|
378
|
+
/**
|
|
379
|
+
* Max selectable date.
|
|
380
|
+
*/
|
|
381
|
+
maxDate: {
|
|
382
|
+
type: (StringConstructor | DateConstructor)[];
|
|
383
|
+
};
|
|
384
|
+
/**
|
|
385
|
+
* Min selectable date.
|
|
386
|
+
*/
|
|
387
|
+
minDate: {
|
|
388
|
+
type: (StringConstructor | DateConstructor)[];
|
|
389
|
+
};
|
|
390
|
+
/**
|
|
391
|
+
* Show arrows navigation.
|
|
392
|
+
*/
|
|
393
|
+
navigation: {
|
|
394
|
+
type: BooleanConstructor;
|
|
395
|
+
default: boolean;
|
|
396
|
+
};
|
|
397
|
+
/**
|
|
398
|
+
* Specifies a short hint that is visible in the input.
|
|
399
|
+
*/
|
|
400
|
+
placeholder: {
|
|
401
|
+
type: PropType<String | String[]>;
|
|
402
|
+
default: () => string[];
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* @ignore
|
|
406
|
+
*/
|
|
407
|
+
range: {
|
|
408
|
+
type: BooleanConstructor;
|
|
409
|
+
default: boolean;
|
|
410
|
+
};
|
|
411
|
+
/**
|
|
412
|
+
* Predefined date ranges the user can select from.
|
|
413
|
+
*/
|
|
414
|
+
ranges: ObjectConstructor;
|
|
415
|
+
/**
|
|
416
|
+
* Toggle select mode between start and end date.
|
|
417
|
+
*/
|
|
418
|
+
selectEndDate: BooleanConstructor;
|
|
419
|
+
/**
|
|
420
|
+
* Default icon or character character that separates two dates.
|
|
421
|
+
*/
|
|
422
|
+
separator: {
|
|
423
|
+
type: BooleanConstructor;
|
|
424
|
+
default: boolean;
|
|
425
|
+
};
|
|
426
|
+
/**
|
|
427
|
+
* Size the component small or large.
|
|
428
|
+
*
|
|
429
|
+
* @values 'sm', 'lg'
|
|
430
|
+
*/
|
|
431
|
+
size: {
|
|
432
|
+
type: StringConstructor;
|
|
433
|
+
required: false;
|
|
434
|
+
validator: (value: string) => boolean;
|
|
435
|
+
};
|
|
436
|
+
/**
|
|
437
|
+
* Initial selected date.
|
|
438
|
+
*/
|
|
439
|
+
startDate: {
|
|
440
|
+
type: (StringConstructor | DateConstructor)[];
|
|
441
|
+
};
|
|
442
|
+
/**
|
|
443
|
+
* Provide an additional time selection by adding select boxes to choose times.
|
|
444
|
+
*/
|
|
445
|
+
timepicker: BooleanConstructor;
|
|
446
|
+
/**
|
|
447
|
+
* Set length or format of day name.
|
|
448
|
+
*
|
|
449
|
+
* @type number | 'long' | 'narrow' | 'short'
|
|
450
|
+
*/
|
|
451
|
+
weekdayFormat: {
|
|
452
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
453
|
+
default: number;
|
|
454
|
+
validator: (value: string | number) => boolean;
|
|
455
|
+
};
|
|
456
|
+
}>>, {
|
|
457
|
+
disabled: boolean;
|
|
458
|
+
firstDayOfWeek: number;
|
|
459
|
+
locale: string;
|
|
460
|
+
navigation: boolean;
|
|
461
|
+
range: boolean;
|
|
462
|
+
selectEndDate: boolean;
|
|
463
|
+
weekdayFormat: string | number;
|
|
464
|
+
cancelButton: string | boolean;
|
|
465
|
+
cancelButtonColor: string;
|
|
466
|
+
cancelButtonSize: string;
|
|
467
|
+
cancelButtonVariant: string;
|
|
468
|
+
confirmButton: string | boolean;
|
|
469
|
+
confirmButtonColor: string;
|
|
470
|
+
confirmButtonSize: string;
|
|
471
|
+
footer: boolean;
|
|
472
|
+
cleaner: boolean;
|
|
473
|
+
indicator: boolean;
|
|
474
|
+
inputReadOnly: boolean;
|
|
475
|
+
placeholder: String | String[];
|
|
476
|
+
calendars: number;
|
|
477
|
+
separator: boolean;
|
|
478
|
+
timepicker: boolean;
|
|
479
|
+
}>;
|
|
480
|
+
export { CDateRangePicker };
|
|
@@ -12,6 +12,18 @@ declare const CDropdown: import("vue").DefineComponent<{
|
|
|
12
12
|
required: false;
|
|
13
13
|
validator: (value: string | any) => boolean;
|
|
14
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* Configure the auto close behavior of the dropdown:
|
|
17
|
+
* - `true` - the dropdown will be closed by clicking outside or inside the dropdown menu.
|
|
18
|
+
* - `false` - the dropdown will be closed by clicking the toggle button and manually calling hide or toggle method. (Also will not be closed by pressing esc key)
|
|
19
|
+
* - `'inside'` - the dropdown will be closed (only) by clicking inside the dropdown menu.
|
|
20
|
+
* - `'outside'` - the dropdown will be closed (only) by clicking outside the dropdown menu.
|
|
21
|
+
*/
|
|
22
|
+
autoClose: {
|
|
23
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
24
|
+
default: boolean;
|
|
25
|
+
validator: (value: boolean | string) => boolean;
|
|
26
|
+
};
|
|
15
27
|
/**
|
|
16
28
|
* Sets a darker color scheme to match a dark navbar.
|
|
17
29
|
*/
|
|
@@ -97,6 +109,18 @@ declare const CDropdown: import("vue").DefineComponent<{
|
|
|
97
109
|
required: false;
|
|
98
110
|
validator: (value: string | any) => boolean;
|
|
99
111
|
};
|
|
112
|
+
/**
|
|
113
|
+
* Configure the auto close behavior of the dropdown:
|
|
114
|
+
* - `true` - the dropdown will be closed by clicking outside or inside the dropdown menu.
|
|
115
|
+
* - `false` - the dropdown will be closed by clicking the toggle button and manually calling hide or toggle method. (Also will not be closed by pressing esc key)
|
|
116
|
+
* - `'inside'` - the dropdown will be closed (only) by clicking inside the dropdown menu.
|
|
117
|
+
* - `'outside'` - the dropdown will be closed (only) by clicking outside the dropdown menu.
|
|
118
|
+
*/
|
|
119
|
+
autoClose: {
|
|
120
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
121
|
+
default: boolean;
|
|
122
|
+
validator: (value: boolean | string) => boolean;
|
|
123
|
+
};
|
|
100
124
|
/**
|
|
101
125
|
* Sets a darker color scheme to match a dark navbar.
|
|
102
126
|
*/
|
|
@@ -176,6 +200,7 @@ declare const CDropdown: import("vue").DefineComponent<{
|
|
|
176
200
|
variant: string;
|
|
177
201
|
direction: string;
|
|
178
202
|
alignment: string | Record<string, any>;
|
|
203
|
+
autoClose: string | boolean;
|
|
179
204
|
placement: Placement;
|
|
180
205
|
popper: boolean;
|
|
181
206
|
trigger: string | unknown[];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Triggers } from '../Types';
|
|
1
3
|
declare const CDropdownToggle: import("vue").DefineComponent<{
|
|
2
4
|
/**
|
|
3
5
|
* Toggle the active state for the component.
|
|
@@ -32,6 +34,10 @@ declare const CDropdownToggle: import("vue").DefineComponent<{
|
|
|
32
34
|
default: string;
|
|
33
35
|
require: boolean;
|
|
34
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* Create a custom toggler which accepts any content.
|
|
39
|
+
*/
|
|
40
|
+
custom: BooleanConstructor;
|
|
35
41
|
/**
|
|
36
42
|
* Toggle the disabled state for the component.
|
|
37
43
|
*/
|
|
@@ -64,6 +70,16 @@ declare const CDropdownToggle: import("vue").DefineComponent<{
|
|
|
64
70
|
type: BooleanConstructor;
|
|
65
71
|
required: false;
|
|
66
72
|
};
|
|
73
|
+
/**
|
|
74
|
+
* Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them.
|
|
75
|
+
*
|
|
76
|
+
* @type 'hover' | 'focus' | 'click'
|
|
77
|
+
*/
|
|
78
|
+
trigger: {
|
|
79
|
+
type: PropType<Triggers>;
|
|
80
|
+
default: string;
|
|
81
|
+
required: false;
|
|
82
|
+
};
|
|
67
83
|
/**
|
|
68
84
|
* Set the button variant to an outlined button or a ghost button.
|
|
69
85
|
*
|
|
@@ -77,7 +93,9 @@ declare const CDropdownToggle: import("vue").DefineComponent<{
|
|
|
77
93
|
};
|
|
78
94
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
79
95
|
[key: string]: any;
|
|
80
|
-
}
|
|
96
|
+
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
97
|
+
[key: string]: any;
|
|
98
|
+
}>[] | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
81
99
|
/**
|
|
82
100
|
* Toggle the active state for the component.
|
|
83
101
|
*/
|
|
@@ -111,6 +129,10 @@ declare const CDropdownToggle: import("vue").DefineComponent<{
|
|
|
111
129
|
default: string;
|
|
112
130
|
require: boolean;
|
|
113
131
|
};
|
|
132
|
+
/**
|
|
133
|
+
* Create a custom toggler which accepts any content.
|
|
134
|
+
*/
|
|
135
|
+
custom: BooleanConstructor;
|
|
114
136
|
/**
|
|
115
137
|
* Toggle the disabled state for the component.
|
|
116
138
|
*/
|
|
@@ -143,6 +165,16 @@ declare const CDropdownToggle: import("vue").DefineComponent<{
|
|
|
143
165
|
type: BooleanConstructor;
|
|
144
166
|
required: false;
|
|
145
167
|
};
|
|
168
|
+
/**
|
|
169
|
+
* Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them.
|
|
170
|
+
*
|
|
171
|
+
* @type 'hover' | 'focus' | 'click'
|
|
172
|
+
*/
|
|
173
|
+
trigger: {
|
|
174
|
+
type: PropType<Triggers>;
|
|
175
|
+
default: string;
|
|
176
|
+
required: false;
|
|
177
|
+
};
|
|
146
178
|
/**
|
|
147
179
|
* Set the button variant to an outlined button or a ghost button.
|
|
148
180
|
*
|
|
@@ -161,6 +193,8 @@ declare const CDropdownToggle: import("vue").DefineComponent<{
|
|
|
161
193
|
component: string;
|
|
162
194
|
size: string;
|
|
163
195
|
active: boolean;
|
|
196
|
+
trigger: Triggers;
|
|
164
197
|
caret: boolean;
|
|
198
|
+
custom: boolean;
|
|
165
199
|
}>;
|
|
166
200
|
export { CDropdownToggle };
|
|
@@ -6,11 +6,14 @@ export * from './badge';
|
|
|
6
6
|
export * from './breadcrumb';
|
|
7
7
|
export * from './button';
|
|
8
8
|
export * from './button-group';
|
|
9
|
+
export * from './calendar';
|
|
9
10
|
export * from './callout';
|
|
10
11
|
export * from './card';
|
|
11
12
|
export * from './carousel';
|
|
12
13
|
export * from './close-button';
|
|
13
14
|
export * from './collapse';
|
|
15
|
+
export * from './date-picker';
|
|
16
|
+
export * from './date-range-picker';
|
|
14
17
|
export * from './dropdown';
|
|
15
18
|
export * from './element-cover';
|
|
16
19
|
export * from './footer';
|
|
@@ -27,6 +30,7 @@ export * from './nav';
|
|
|
27
30
|
export * from './navbar';
|
|
28
31
|
export * from './offcanvas';
|
|
29
32
|
export * from './pagination';
|
|
33
|
+
export * from './picker';
|
|
30
34
|
export * from './placeholder';
|
|
31
35
|
export * from './progress';
|
|
32
36
|
export * from './popover';
|
|
@@ -35,6 +39,7 @@ export * from './smart-table';
|
|
|
35
39
|
export * from './spinner';
|
|
36
40
|
export * from './table';
|
|
37
41
|
export * from './tabs';
|
|
42
|
+
export * from './time-picker';
|
|
38
43
|
export * from './toast';
|
|
39
44
|
export * from './tooltip';
|
|
40
45
|
export * from './widgets';
|
|
@@ -275,13 +275,13 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
275
275
|
visible: boolean;
|
|
276
276
|
multiple: boolean;
|
|
277
277
|
options: Option[];
|
|
278
|
+
cleaner: boolean;
|
|
279
|
+
placeholder: string;
|
|
278
280
|
optionsMaxHeight: string | number;
|
|
279
281
|
optionsStyle: string;
|
|
280
282
|
searchNoResultsLabel: string;
|
|
281
283
|
selectionType: string;
|
|
282
284
|
selectionTypeCounterText: string;
|
|
283
|
-
cleaner: boolean;
|
|
284
|
-
placeholder: string;
|
|
285
285
|
selectAll: boolean;
|
|
286
286
|
selectAllLabel: string;
|
|
287
287
|
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const CPicker: import("vue").DefineComponent<any, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hide" | "show" | "cancel" | "confirm")[], "hide" | "show" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any> & {
|
|
4
|
+
onHide?: ((...args: any[]) => any) | undefined;
|
|
5
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
}, {} | {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
}>;
|
|
11
|
+
export { CPicker };
|
|
@@ -107,9 +107,9 @@ declare const CPopover: import("vue").DefineComponent<{
|
|
|
107
107
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
108
108
|
}, {
|
|
109
109
|
visible: boolean;
|
|
110
|
+
title: string;
|
|
110
111
|
placement: Placement;
|
|
111
112
|
trigger: string | string[];
|
|
112
|
-
title: string;
|
|
113
113
|
content: string;
|
|
114
114
|
offset: unknown[];
|
|
115
115
|
}>;
|
|
@@ -122,9 +122,9 @@ declare const CSidebar: import("vue").DefineComponent<{
|
|
|
122
122
|
visible: boolean;
|
|
123
123
|
size: string;
|
|
124
124
|
position: string;
|
|
125
|
+
narrow: boolean;
|
|
125
126
|
placement: string;
|
|
126
127
|
colorScheme: string;
|
|
127
|
-
narrow: boolean;
|
|
128
128
|
overlaid: boolean;
|
|
129
129
|
unfoldable: boolean;
|
|
130
130
|
}>;
|