@coreui/vue-pro 4.2.0 → 4.3.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.
Files changed (77) hide show
  1. package/README.md +1 -1
  2. package/dist/components/calendar/CCalendar.d.ts +198 -0
  3. package/dist/components/calendar/index.d.ts +6 -0
  4. package/dist/components/carousel/CCarousel.d.ts +1 -1
  5. package/dist/components/date-picker/CDatePicker.d.ts +414 -0
  6. package/dist/components/date-picker/index.d.ts +6 -0
  7. package/dist/components/date-range-picker/CDateRangePicker.d.ts +563 -0
  8. package/dist/components/date-range-picker/index.d.ts +6 -0
  9. package/dist/components/form/CFormCheck.d.ts +88 -39
  10. package/dist/components/form/CFormControlValidation.d.ts +98 -0
  11. package/dist/components/form/CFormControlWrapper.d.ts +6 -0
  12. package/dist/components/form/CFormFeedback.d.ts +2 -2
  13. package/dist/components/form/CFormInput.d.ts +125 -25
  14. package/dist/components/form/CFormRange.d.ts +18 -16
  15. package/dist/components/form/CFormSelect.d.ts +125 -16
  16. package/dist/components/form/CFormSwitch.d.ts +0 -23
  17. package/dist/components/form/CFormTextarea.d.ts +125 -24
  18. package/dist/components/index.d.ts +5 -0
  19. package/dist/components/modal/CModal.d.ts +1 -1
  20. package/dist/components/multi-select/CMultiSelect.d.ts +2 -2
  21. package/dist/components/offcanvas/COffcanvas.d.ts +1 -1
  22. package/dist/components/picker/CPicker.d.ts +11 -0
  23. package/dist/components/picker/index.d.ts +6 -0
  24. package/dist/components/popover/CPopover.d.ts +1 -1
  25. package/dist/components/sidebar/CSidebar.d.ts +1 -1
  26. package/dist/components/smart-table/CSmartTable.d.ts +35 -99
  27. package/dist/components/smart-table/CSmartTableInterface.d.ts +3 -3
  28. package/dist/components/time-picker/CTimePicker.d.ts +10 -0
  29. package/dist/components/time-picker/CTimePickerRollCol.d.ts +27 -0
  30. package/dist/components/time-picker/index.d.ts +6 -0
  31. package/dist/components/toast/CToast.d.ts +8 -2
  32. package/dist/index.es.js +6249 -1276
  33. package/dist/index.es.js.map +1 -1
  34. package/dist/index.js +6256 -1273
  35. package/dist/index.js.map +1 -1
  36. package/dist/utils/calendar.d.ts +23 -0
  37. package/dist/utils/time.d.ts +21 -0
  38. package/dist/utils/transition.d.ts +3 -0
  39. package/package.json +11 -10
  40. package/src/components/backdrop/CBackdrop.ts +8 -6
  41. package/src/components/button/CButton.ts +2 -2
  42. package/src/components/calendar/CCalendar.ts +616 -0
  43. package/src/components/calendar/index.ts +10 -0
  44. package/src/components/collapse/CCollapse.ts +5 -6
  45. package/src/components/date-picker/CDatePicker.ts +240 -0
  46. package/src/components/date-picker/index.ts +10 -0
  47. package/src/components/date-range-picker/CDateRangePicker.ts +733 -0
  48. package/src/components/date-range-picker/index.ts +10 -0
  49. package/src/components/dropdown/CDropdownMenu.ts +4 -2
  50. package/src/components/dropdown/CDropdownToggle.ts +24 -9
  51. package/src/components/form/CFormCheck.ts +119 -94
  52. package/src/components/form/CFormControlValidation.ts +97 -0
  53. package/src/components/form/CFormControlWrapper.ts +106 -0
  54. package/src/components/form/CFormInput.ts +113 -29
  55. package/src/components/form/CFormRange.ts +25 -11
  56. package/src/components/form/CFormSelect.ts +126 -41
  57. package/src/components/form/CFormSwitch.ts +2 -21
  58. package/src/components/form/CFormTextarea.ts +105 -25
  59. package/src/components/index.ts +5 -0
  60. package/src/components/modal/CModal.ts +14 -6
  61. package/src/components/nav/CNavGroup.ts +4 -6
  62. package/src/components/offcanvas/COffcanvas.ts +5 -7
  63. package/src/components/pagination/CSmartPagination.ts +4 -4
  64. package/src/components/picker/CPicker.ts +221 -0
  65. package/src/components/picker/index.ts +10 -0
  66. package/src/components/popover/CPopover.ts +5 -5
  67. package/src/components/smart-table/CSmartTable.ts +17 -49
  68. package/src/components/smart-table/CSmartTableInterface.ts +5 -3
  69. package/src/components/tabs/CTabPane.ts +4 -6
  70. package/src/components/time-picker/CTimePicker.ts +405 -0
  71. package/src/components/time-picker/CTimePickerRollCol.ts +58 -0
  72. package/src/components/time-picker/index.ts +10 -0
  73. package/src/components/toast/CToast.ts +17 -12
  74. package/src/components/tooltip/CTooltip.ts +5 -5
  75. package/src/utils/calendar.ts +270 -0
  76. package/src/utils/time.ts +84 -0
  77. package/src/utils/transition.ts +65 -0
@@ -0,0 +1,563 @@
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
+ */
123
+ firstDayOfWeek: {
124
+ type: NumberConstructor;
125
+ default: number;
126
+ };
127
+ /**
128
+ * Set date format.
129
+ * We use date-fns to format dates. Visit https://date-fns.org/v2.28.0/docs/format to check accepted patterns.
130
+ */
131
+ format: StringConstructor;
132
+ /**
133
+ * Toggle visibility of footer element or set the content of footer.
134
+ */
135
+ footer: BooleanConstructor;
136
+ /**
137
+ * Toggle visibility or set the content of the input indicator.
138
+ */
139
+ indicator: {
140
+ type: BooleanConstructor;
141
+ default: boolean;
142
+ };
143
+ /**
144
+ * Toggle the readonly state for the component.
145
+ */
146
+ inputReadOnly: BooleanConstructor;
147
+ /**
148
+ * Sets the default locale for components. If not set, it is inherited from the navigator.language.
149
+ */
150
+ locale: {
151
+ type: StringConstructor;
152
+ default: string;
153
+ };
154
+ /**
155
+ * Max selectable date.
156
+ */
157
+ maxDate: {
158
+ type: (StringConstructor | DateConstructor)[];
159
+ };
160
+ /**
161
+ * Min selectable date.
162
+ */
163
+ minDate: {
164
+ type: (StringConstructor | DateConstructor)[];
165
+ };
166
+ /**
167
+ * Show arrows navigation.
168
+ */
169
+ navigation: {
170
+ type: BooleanConstructor;
171
+ default: boolean;
172
+ };
173
+ /**
174
+ * Specifies a short hint that is visible in the input.
175
+ */
176
+ placeholder: {
177
+ type: PropType<String | String[]>;
178
+ default: () => string[];
179
+ };
180
+ /**
181
+ * @ignore
182
+ */
183
+ range: {
184
+ type: BooleanConstructor;
185
+ default: boolean;
186
+ };
187
+ /**
188
+ * Predefined date ranges the user can select from.
189
+ */
190
+ ranges: ObjectConstructor;
191
+ /**
192
+ * Toggle select mode between start and end date.
193
+ */
194
+ selectEndDate: BooleanConstructor;
195
+ /**
196
+ * Default icon or character character that separates two dates.
197
+ */
198
+ separator: {
199
+ type: BooleanConstructor;
200
+ default: boolean;
201
+ };
202
+ /**
203
+ * Size the component small or large.
204
+ *
205
+ * @values 'sm', 'lg'
206
+ */
207
+ size: {
208
+ type: StringConstructor;
209
+ required: false;
210
+ validator: (value: string) => boolean;
211
+ };
212
+ /**
213
+ * Initial selected date.
214
+ */
215
+ startDate: {
216
+ type: (StringConstructor | DateConstructor)[];
217
+ };
218
+ /**
219
+ * Provide an additional time selection by adding select boxes to choose times.
220
+ */
221
+ timepicker: BooleanConstructor;
222
+ /**
223
+ * Toggle visibility or set the content of today button.
224
+ */
225
+ todayButton: {
226
+ type: (StringConstructor | BooleanConstructor)[];
227
+ default: string;
228
+ };
229
+ /**
230
+ * Sets the color context of the today button to one of CoreUI’s themed colors.
231
+ *
232
+ * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
233
+ */
234
+ todayButtonColor: {
235
+ default: string;
236
+ type: StringConstructor;
237
+ validator: (value: string) => boolean;
238
+ };
239
+ /**
240
+ * Size the today button small or large.
241
+ *
242
+ * @values 'sm', 'lg'
243
+ */
244
+ todayButtonSize: {
245
+ type: StringConstructor;
246
+ default: string;
247
+ validator: (value: string) => boolean;
248
+ };
249
+ /**
250
+ * Set the today button variant to an outlined button or a ghost button.
251
+ *
252
+ * @values 'ghost', 'outline'
253
+ */
254
+ todayButtonVariant: {
255
+ type: StringConstructor;
256
+ validator: (value: string) => boolean;
257
+ };
258
+ /**
259
+ * Set length or format of day name.
260
+ *
261
+ * @type number | 'long' | 'narrow' | 'short'
262
+ */
263
+ weekdayFormat: {
264
+ type: (NumberConstructor | StringConstructor)[];
265
+ default: number;
266
+ validator: (value: string | number) => boolean;
267
+ };
268
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
269
+ [key: string]: any;
270
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
271
+ /**
272
+ * The number of calendars that render on desktop devices.
273
+ */
274
+ calendars: {
275
+ type: NumberConstructor;
276
+ default: number;
277
+ };
278
+ /**
279
+ * Default date of the component
280
+ */
281
+ calendarDate: {
282
+ type: (StringConstructor | DateConstructor)[];
283
+ };
284
+ /**
285
+ * Toggle visibility or set the content of cancel button.
286
+ */
287
+ cancelButton: {
288
+ type: (StringConstructor | BooleanConstructor)[];
289
+ default: string;
290
+ };
291
+ /**
292
+ * Sets the color context of the cancel button to one of CoreUI’s themed colors.
293
+ *
294
+ * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
295
+ */
296
+ cancelButtonColor: {
297
+ default: string;
298
+ type: StringConstructor;
299
+ validator: (value: string) => boolean;
300
+ };
301
+ /**
302
+ * Size the cancel button small or large.
303
+ *
304
+ * @values 'sm', 'lg'
305
+ */
306
+ cancelButtonSize: {
307
+ type: StringConstructor;
308
+ default: string;
309
+ validator: (value: string) => boolean;
310
+ };
311
+ /**
312
+ * Set the cancel button variant to an outlined button or a ghost button.
313
+ *
314
+ * @values 'ghost', 'outline'
315
+ */
316
+ cancelButtonVariant: {
317
+ type: StringConstructor;
318
+ default: string;
319
+ validator: (value: string) => boolean;
320
+ };
321
+ /**
322
+ * Toggle visibility of the cleaner button.
323
+ */
324
+ cleaner: {
325
+ type: BooleanConstructor;
326
+ default: boolean;
327
+ };
328
+ /**
329
+ * Toggle visibility or set the content of confirm button.
330
+ */
331
+ confirmButton: {
332
+ type: (StringConstructor | BooleanConstructor)[];
333
+ default: string;
334
+ };
335
+ /**
336
+ * Sets the color context of the confirm button to one of CoreUI’s themed colors.
337
+ *
338
+ * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
339
+ */
340
+ confirmButtonColor: {
341
+ default: string;
342
+ type: StringConstructor;
343
+ validator: (value: string) => boolean;
344
+ };
345
+ /**
346
+ * Size the confirm button small or large.
347
+ *
348
+ * @values 'sm', 'lg'
349
+ */
350
+ confirmButtonSize: {
351
+ type: StringConstructor;
352
+ default: string;
353
+ validator: (value: string) => boolean;
354
+ };
355
+ /**
356
+ * Set the confirm button variant to an outlined button or a ghost button.
357
+ *
358
+ * @values 'ghost', 'outline'
359
+ */
360
+ confirmButtonVariant: {
361
+ type: StringConstructor;
362
+ validator: (value: string) => boolean;
363
+ };
364
+ /**
365
+ * Toggle the disabled state for the component.
366
+ */
367
+ disabled: BooleanConstructor;
368
+ /**
369
+ * Specify the list of dates that cannot be selected.
370
+ */
371
+ disabledDates: {
372
+ type: PropType<Date[] | Date[][]>;
373
+ };
374
+ /**
375
+ * Initial selected to date (range).
376
+ */
377
+ endDate: {
378
+ type: (StringConstructor | DateConstructor)[];
379
+ required: false;
380
+ };
381
+ /**
382
+ * Sets the day of start week.
383
+ * - 0 - Sunday,
384
+ * - 1 - Monday,
385
+ * - 2 - Tuesday,
386
+ * - 3 - Wednesday,
387
+ * - 4 - Thursday,
388
+ * - 5 - Friday,
389
+ * - 6 - Saturday,
390
+ */
391
+ firstDayOfWeek: {
392
+ type: NumberConstructor;
393
+ default: number;
394
+ };
395
+ /**
396
+ * Set date format.
397
+ * We use date-fns to format dates. Visit https://date-fns.org/v2.28.0/docs/format to check accepted patterns.
398
+ */
399
+ format: StringConstructor;
400
+ /**
401
+ * Toggle visibility of footer element or set the content of footer.
402
+ */
403
+ footer: BooleanConstructor;
404
+ /**
405
+ * Toggle visibility or set the content of the input indicator.
406
+ */
407
+ indicator: {
408
+ type: BooleanConstructor;
409
+ default: boolean;
410
+ };
411
+ /**
412
+ * Toggle the readonly state for the component.
413
+ */
414
+ inputReadOnly: BooleanConstructor;
415
+ /**
416
+ * Sets the default locale for components. If not set, it is inherited from the navigator.language.
417
+ */
418
+ locale: {
419
+ type: StringConstructor;
420
+ default: string;
421
+ };
422
+ /**
423
+ * Max selectable date.
424
+ */
425
+ maxDate: {
426
+ type: (StringConstructor | DateConstructor)[];
427
+ };
428
+ /**
429
+ * Min selectable date.
430
+ */
431
+ minDate: {
432
+ type: (StringConstructor | DateConstructor)[];
433
+ };
434
+ /**
435
+ * Show arrows navigation.
436
+ */
437
+ navigation: {
438
+ type: BooleanConstructor;
439
+ default: boolean;
440
+ };
441
+ /**
442
+ * Specifies a short hint that is visible in the input.
443
+ */
444
+ placeholder: {
445
+ type: PropType<String | String[]>;
446
+ default: () => string[];
447
+ };
448
+ /**
449
+ * @ignore
450
+ */
451
+ range: {
452
+ type: BooleanConstructor;
453
+ default: boolean;
454
+ };
455
+ /**
456
+ * Predefined date ranges the user can select from.
457
+ */
458
+ ranges: ObjectConstructor;
459
+ /**
460
+ * Toggle select mode between start and end date.
461
+ */
462
+ selectEndDate: BooleanConstructor;
463
+ /**
464
+ * Default icon or character character that separates two dates.
465
+ */
466
+ separator: {
467
+ type: BooleanConstructor;
468
+ default: boolean;
469
+ };
470
+ /**
471
+ * Size the component small or large.
472
+ *
473
+ * @values 'sm', 'lg'
474
+ */
475
+ size: {
476
+ type: StringConstructor;
477
+ required: false;
478
+ validator: (value: string) => boolean;
479
+ };
480
+ /**
481
+ * Initial selected date.
482
+ */
483
+ startDate: {
484
+ type: (StringConstructor | DateConstructor)[];
485
+ };
486
+ /**
487
+ * Provide an additional time selection by adding select boxes to choose times.
488
+ */
489
+ timepicker: BooleanConstructor;
490
+ /**
491
+ * Toggle visibility or set the content of today button.
492
+ */
493
+ todayButton: {
494
+ type: (StringConstructor | BooleanConstructor)[];
495
+ default: string;
496
+ };
497
+ /**
498
+ * Sets the color context of the today button to one of CoreUI’s themed colors.
499
+ *
500
+ * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
501
+ */
502
+ todayButtonColor: {
503
+ default: string;
504
+ type: StringConstructor;
505
+ validator: (value: string) => boolean;
506
+ };
507
+ /**
508
+ * Size the today button small or large.
509
+ *
510
+ * @values 'sm', 'lg'
511
+ */
512
+ todayButtonSize: {
513
+ type: StringConstructor;
514
+ default: string;
515
+ validator: (value: string) => boolean;
516
+ };
517
+ /**
518
+ * Set the today button variant to an outlined button or a ghost button.
519
+ *
520
+ * @values 'ghost', 'outline'
521
+ */
522
+ todayButtonVariant: {
523
+ type: StringConstructor;
524
+ validator: (value: string) => boolean;
525
+ };
526
+ /**
527
+ * Set length or format of day name.
528
+ *
529
+ * @type number | 'long' | 'narrow' | 'short'
530
+ */
531
+ weekdayFormat: {
532
+ type: (NumberConstructor | StringConstructor)[];
533
+ default: number;
534
+ validator: (value: string | number) => boolean;
535
+ };
536
+ }>>, {
537
+ disabled: boolean;
538
+ calendars: number;
539
+ firstDayOfWeek: number;
540
+ locale: string;
541
+ navigation: boolean;
542
+ range: boolean;
543
+ selectEndDate: boolean;
544
+ weekdayFormat: string | number;
545
+ cancelButton: string | boolean;
546
+ cancelButtonColor: string;
547
+ cancelButtonSize: string;
548
+ cancelButtonVariant: string;
549
+ confirmButton: string | boolean;
550
+ confirmButtonColor: string;
551
+ confirmButtonSize: string;
552
+ footer: boolean;
553
+ cleaner: boolean;
554
+ indicator: boolean;
555
+ inputReadOnly: boolean;
556
+ placeholder: String | String[];
557
+ separator: boolean;
558
+ timepicker: boolean;
559
+ todayButton: string | boolean;
560
+ todayButtonColor: string;
561
+ todayButtonSize: string;
562
+ }>;
563
+ export { CDateRangePicker };
@@ -0,0 +1,6 @@
1
+ import { App } from 'vue';
2
+ import { CDateRangePicker } from './CDateRangePicker';
3
+ declare const CDateRangePickerPlugin: {
4
+ install: (app: App) => void;
5
+ };
6
+ export { CDateRangePickerPlugin, CDateRangePicker };