@coreui/vue-pro 4.3.0-beta.1 → 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 (52) hide show
  1. package/README.md +1 -1
  2. package/dist/components/calendar/CCalendar.d.ts +15 -2
  3. package/dist/components/carousel/CCarousel.d.ts +1 -1
  4. package/dist/components/date-picker/CDatePicker.d.ts +10 -2
  5. package/dist/components/date-range-picker/CDateRangePicker.d.ts +86 -3
  6. package/dist/components/form/CFormCheck.d.ts +88 -39
  7. package/dist/components/form/CFormControlValidation.d.ts +98 -0
  8. package/dist/components/form/CFormControlWrapper.d.ts +6 -0
  9. package/dist/components/form/CFormFeedback.d.ts +2 -2
  10. package/dist/components/form/CFormInput.d.ts +125 -25
  11. package/dist/components/form/CFormRange.d.ts +18 -16
  12. package/dist/components/form/CFormSelect.d.ts +125 -16
  13. package/dist/components/form/CFormSwitch.d.ts +0 -23
  14. package/dist/components/form/CFormTextarea.d.ts +125 -24
  15. package/dist/components/modal/CModal.d.ts +1 -1
  16. package/dist/components/offcanvas/COffcanvas.d.ts +1 -1
  17. package/dist/components/time-picker/CTimePicker.d.ts +1 -1
  18. package/dist/components/toast/CToast.d.ts +7 -1
  19. package/dist/index.es.js +3583 -577
  20. package/dist/index.es.js.map +1 -1
  21. package/dist/index.js +3582 -576
  22. package/dist/index.js.map +1 -1
  23. package/dist/utils/calendar.d.ts +3 -1
  24. package/dist/utils/time.d.ts +6 -2
  25. package/dist/utils/transition.d.ts +3 -0
  26. package/package.json +11 -10
  27. package/src/components/backdrop/CBackdrop.ts +8 -6
  28. package/src/components/button/CButton.ts +2 -2
  29. package/src/components/calendar/CCalendar.ts +132 -62
  30. package/src/components/collapse/CCollapse.ts +5 -6
  31. package/src/components/date-picker/CDatePicker.ts +7 -10
  32. package/src/components/date-range-picker/CDateRangePicker.ts +198 -100
  33. package/src/components/form/CFormCheck.ts +119 -94
  34. package/src/components/form/CFormControlValidation.ts +97 -0
  35. package/src/components/form/CFormControlWrapper.ts +106 -0
  36. package/src/components/form/CFormInput.ts +113 -29
  37. package/src/components/form/CFormRange.ts +25 -11
  38. package/src/components/form/CFormSelect.ts +126 -41
  39. package/src/components/form/CFormSwitch.ts +2 -21
  40. package/src/components/form/CFormTextarea.ts +105 -25
  41. package/src/components/modal/CModal.ts +14 -6
  42. package/src/components/nav/CNavGroup.ts +4 -6
  43. package/src/components/offcanvas/COffcanvas.ts +5 -7
  44. package/src/components/picker/CPicker.ts +1 -0
  45. package/src/components/popover/CPopover.ts +5 -5
  46. package/src/components/tabs/CTabPane.ts +4 -6
  47. package/src/components/time-picker/CTimePicker.ts +12 -17
  48. package/src/components/toast/CToast.ts +17 -12
  49. package/src/components/tooltip/CTooltip.ts +5 -5
  50. package/src/utils/calendar.ts +86 -9
  51. package/src/utils/time.ts +29 -3
  52. package/src/utils/transition.ts +65 -0
@@ -6,12 +6,55 @@ declare const CFormInput: import("vue").DefineComponent<{
6
6
  type: BooleanConstructor;
7
7
  required: false;
8
8
  };
9
+ /**
10
+ * Provide valuable, actionable feedback.
11
+ *
12
+ * @since 4.3.0
13
+ */
14
+ feedback: {
15
+ type: StringConstructor;
16
+ };
17
+ /**
18
+ * Provide valuable, actionable feedback.
19
+ *
20
+ * @since 4.3.0
21
+ */
22
+ feedbackInvalid: {
23
+ type: StringConstructor;
24
+ };
25
+ /**
26
+ * Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
27
+ *
28
+ * @since 4.3.0
29
+ */
30
+ feedbackValid: {
31
+ type: StringConstructor;
32
+ };
33
+ /**
34
+ * Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
35
+ *
36
+ * @since 4.3.0
37
+ */
38
+ floatingLabel: {
39
+ type: StringConstructor;
40
+ };
41
+ /**
42
+ * The id global attribute defines an identifier (ID) that must be unique in the whole document.
43
+ */
44
+ id: {
45
+ type: StringConstructor;
46
+ };
9
47
  /**
10
48
  * Set component validation state to invalid.
11
49
  */
12
- invalid: {
13
- type: BooleanConstructor;
14
- required: false;
50
+ invalid: BooleanConstructor;
51
+ /**
52
+ * Add a caption for a component.
53
+ *
54
+ * @since 4.3.0
55
+ */
56
+ label: {
57
+ type: StringConstructor;
15
58
  };
16
59
  /**
17
60
  * The default name for a value passed using v-model.
@@ -19,7 +62,6 @@ declare const CFormInput: import("vue").DefineComponent<{
19
62
  modelValue: {
20
63
  type: StringConstructor;
21
64
  default: undefined;
22
- require: boolean;
23
65
  };
24
66
  /**
25
67
  * Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use only along side `readonly`.
@@ -42,10 +84,22 @@ declare const CFormInput: import("vue").DefineComponent<{
42
84
  */
43
85
  size: {
44
86
  type: StringConstructor;
45
- default: undefined;
46
- require: boolean;
47
87
  validator: (value: string) => boolean;
48
88
  };
89
+ /**
90
+ * Add helper text to the component.
91
+ *
92
+ * @since 4.3.0
93
+ */
94
+ text: {
95
+ type: StringConstructor;
96
+ };
97
+ /**
98
+ * Display validation feedback in a styled tooltip.
99
+ *
100
+ * @since 4.3.0
101
+ */
102
+ tooltipFeedback: BooleanConstructor;
49
103
  /**
50
104
  * Specifies the type of component.
51
105
  *
@@ -54,15 +108,11 @@ declare const CFormInput: import("vue").DefineComponent<{
54
108
  type: {
55
109
  type: StringConstructor;
56
110
  default: string;
57
- require: boolean;
58
111
  };
59
112
  /**
60
113
  * Set component validation state to valid.
61
114
  */
62
- valid: {
63
- type: BooleanConstructor;
64
- required: false;
65
- };
115
+ valid: BooleanConstructor;
66
116
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
67
117
  [key: string]: any;
68
118
  }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input" | "update:modelValue")[], "change" | "input" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -73,12 +123,55 @@ declare const CFormInput: import("vue").DefineComponent<{
73
123
  type: BooleanConstructor;
74
124
  required: false;
75
125
  };
126
+ /**
127
+ * Provide valuable, actionable feedback.
128
+ *
129
+ * @since 4.3.0
130
+ */
131
+ feedback: {
132
+ type: StringConstructor;
133
+ };
134
+ /**
135
+ * Provide valuable, actionable feedback.
136
+ *
137
+ * @since 4.3.0
138
+ */
139
+ feedbackInvalid: {
140
+ type: StringConstructor;
141
+ };
142
+ /**
143
+ * Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
144
+ *
145
+ * @since 4.3.0
146
+ */
147
+ feedbackValid: {
148
+ type: StringConstructor;
149
+ };
150
+ /**
151
+ * Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
152
+ *
153
+ * @since 4.3.0
154
+ */
155
+ floatingLabel: {
156
+ type: StringConstructor;
157
+ };
158
+ /**
159
+ * The id global attribute defines an identifier (ID) that must be unique in the whole document.
160
+ */
161
+ id: {
162
+ type: StringConstructor;
163
+ };
76
164
  /**
77
165
  * Set component validation state to invalid.
78
166
  */
79
- invalid: {
80
- type: BooleanConstructor;
81
- required: false;
167
+ invalid: BooleanConstructor;
168
+ /**
169
+ * Add a caption for a component.
170
+ *
171
+ * @since 4.3.0
172
+ */
173
+ label: {
174
+ type: StringConstructor;
82
175
  };
83
176
  /**
84
177
  * The default name for a value passed using v-model.
@@ -86,7 +179,6 @@ declare const CFormInput: import("vue").DefineComponent<{
86
179
  modelValue: {
87
180
  type: StringConstructor;
88
181
  default: undefined;
89
- require: boolean;
90
182
  };
91
183
  /**
92
184
  * Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use only along side `readonly`.
@@ -109,10 +201,22 @@ declare const CFormInput: import("vue").DefineComponent<{
109
201
  */
110
202
  size: {
111
203
  type: StringConstructor;
112
- default: undefined;
113
- require: boolean;
114
204
  validator: (value: string) => boolean;
115
205
  };
206
+ /**
207
+ * Add helper text to the component.
208
+ *
209
+ * @since 4.3.0
210
+ */
211
+ text: {
212
+ type: StringConstructor;
213
+ };
214
+ /**
215
+ * Display validation feedback in a styled tooltip.
216
+ *
217
+ * @since 4.3.0
218
+ */
219
+ tooltipFeedback: BooleanConstructor;
116
220
  /**
117
221
  * Specifies the type of component.
118
222
  *
@@ -121,26 +225,22 @@ declare const CFormInput: import("vue").DefineComponent<{
121
225
  type: {
122
226
  type: StringConstructor;
123
227
  default: string;
124
- require: boolean;
125
228
  };
126
229
  /**
127
230
  * Set component validation state to valid.
128
231
  */
129
- valid: {
130
- type: BooleanConstructor;
131
- required: false;
132
- };
232
+ valid: BooleanConstructor;
133
233
  }>> & {
134
234
  onChange?: ((...args: any[]) => any) | undefined;
135
235
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
136
236
  onInput?: ((...args: any[]) => any) | undefined;
137
237
  }, {
138
238
  type: string;
139
- disabled: boolean;
140
- size: string;
141
239
  invalid: boolean;
142
- modelValue: string;
240
+ disabled: boolean;
143
241
  valid: boolean;
242
+ tooltipFeedback: boolean;
243
+ modelValue: string;
144
244
  plainText: boolean;
145
245
  readonly: boolean;
146
246
  }>;
@@ -5,7 +5,14 @@ declare const CFormRange: import("vue").DefineComponent<{
5
5
  disabled: {
6
6
  type: BooleanConstructor;
7
7
  default: undefined;
8
- required: false;
8
+ };
9
+ /**
10
+ * Add a caption for a component.
11
+ *
12
+ * @since 4.3.0
13
+ */
14
+ label: {
15
+ type: StringConstructor;
9
16
  };
10
17
  /**
11
18
  * Specifies the maximum value for the component.
@@ -13,7 +20,6 @@ declare const CFormRange: import("vue").DefineComponent<{
13
20
  max: {
14
21
  type: NumberConstructor;
15
22
  default: undefined;
16
- required: false;
17
23
  };
18
24
  /**
19
25
  * Specifies the minimum value for the component.
@@ -21,7 +27,6 @@ declare const CFormRange: import("vue").DefineComponent<{
21
27
  min: {
22
28
  type: NumberConstructor;
23
29
  default: undefined;
24
- required: false;
25
30
  };
26
31
  /**
27
32
  * The default name for a value passed using v-model.
@@ -29,14 +34,12 @@ declare const CFormRange: import("vue").DefineComponent<{
29
34
  modelValue: {
30
35
  type: StringConstructor;
31
36
  value: undefined;
32
- required: false;
33
37
  };
34
38
  /**
35
39
  * Toggle the readonly state for the component.
36
40
  */
37
41
  readonly: {
38
42
  type: BooleanConstructor;
39
- required: false;
40
43
  };
41
44
  /**
42
45
  * Specifies the interval between legal numbers in the component.
@@ -44,7 +47,6 @@ declare const CFormRange: import("vue").DefineComponent<{
44
47
  steps: {
45
48
  type: NumberConstructor;
46
49
  default: undefined;
47
- required: false;
48
50
  };
49
51
  /**
50
52
  * The `value` attribute of component.
@@ -54,18 +56,24 @@ declare const CFormRange: import("vue").DefineComponent<{
54
56
  value: {
55
57
  type: NumberConstructor;
56
58
  default: undefined;
57
- required: false;
58
59
  };
59
- }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
60
+ }, () => ("" | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
60
61
  [key: string]: any;
61
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
62
+ }> | undefined)[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
62
63
  /**
63
64
  * Toggle the disabled state for the component.
64
65
  */
65
66
  disabled: {
66
67
  type: BooleanConstructor;
67
68
  default: undefined;
68
- required: false;
69
+ };
70
+ /**
71
+ * Add a caption for a component.
72
+ *
73
+ * @since 4.3.0
74
+ */
75
+ label: {
76
+ type: StringConstructor;
69
77
  };
70
78
  /**
71
79
  * Specifies the maximum value for the component.
@@ -73,7 +81,6 @@ declare const CFormRange: import("vue").DefineComponent<{
73
81
  max: {
74
82
  type: NumberConstructor;
75
83
  default: undefined;
76
- required: false;
77
84
  };
78
85
  /**
79
86
  * Specifies the minimum value for the component.
@@ -81,7 +88,6 @@ declare const CFormRange: import("vue").DefineComponent<{
81
88
  min: {
82
89
  type: NumberConstructor;
83
90
  default: undefined;
84
- required: false;
85
91
  };
86
92
  /**
87
93
  * The default name for a value passed using v-model.
@@ -89,14 +95,12 @@ declare const CFormRange: import("vue").DefineComponent<{
89
95
  modelValue: {
90
96
  type: StringConstructor;
91
97
  value: undefined;
92
- required: false;
93
98
  };
94
99
  /**
95
100
  * Toggle the readonly state for the component.
96
101
  */
97
102
  readonly: {
98
103
  type: BooleanConstructor;
99
- required: false;
100
104
  };
101
105
  /**
102
106
  * Specifies the interval between legal numbers in the component.
@@ -104,7 +108,6 @@ declare const CFormRange: import("vue").DefineComponent<{
104
108
  steps: {
105
109
  type: NumberConstructor;
106
110
  default: undefined;
107
- required: false;
108
111
  };
109
112
  /**
110
113
  * The `value` attribute of component.
@@ -114,7 +117,6 @@ declare const CFormRange: import("vue").DefineComponent<{
114
117
  value: {
115
118
  type: NumberConstructor;
116
119
  default: undefined;
117
- required: false;
118
120
  };
119
121
  }>> & {
120
122
  onChange?: ((...args: any[]) => any) | undefined;
@@ -6,6 +6,38 @@ declare type Option = {
6
6
  value?: string;
7
7
  };
8
8
  declare const CFormSelect: import("vue").DefineComponent<{
9
+ /**
10
+ * Provide valuable, actionable feedback.
11
+ *
12
+ * @since 4.3.0
13
+ */
14
+ feedback: {
15
+ type: StringConstructor;
16
+ };
17
+ /**
18
+ * Provide valuable, actionable feedback.
19
+ *
20
+ * @since 4.3.0
21
+ */
22
+ feedbackInvalid: {
23
+ type: StringConstructor;
24
+ };
25
+ /**
26
+ * Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
27
+ *
28
+ * @since 4.3.0
29
+ */
30
+ feedbackValid: {
31
+ type: StringConstructor;
32
+ };
33
+ /**
34
+ * Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
35
+ *
36
+ * @since 4.3.0
37
+ */
38
+ floatingLabel: {
39
+ type: StringConstructor;
40
+ };
9
41
  /**
10
42
  * Specifies the number of visible options in a drop-down list.
11
43
  */
@@ -14,12 +46,23 @@ declare const CFormSelect: import("vue").DefineComponent<{
14
46
  default: undefined;
15
47
  required: false;
16
48
  };
49
+ /**
50
+ * The id global attribute defines an identifier (ID) that must be unique in the whole document.
51
+ */
52
+ id: {
53
+ type: StringConstructor;
54
+ };
17
55
  /**
18
56
  * Set component validation state to invalid.
19
57
  */
20
- invalid: {
21
- type: BooleanConstructor;
22
- required: false;
58
+ invalid: BooleanConstructor;
59
+ /**
60
+ * Add a caption for a component.
61
+ *
62
+ * @since 4.3.0
63
+ */
64
+ label: {
65
+ type: StringConstructor;
23
66
  };
24
67
  /**
25
68
  * The default name for a value passed using v-model.
@@ -56,15 +99,58 @@ declare const CFormSelect: import("vue").DefineComponent<{
56
99
  validator: (value: string) => boolean;
57
100
  };
58
101
  /**
59
- * Set component validation state to valid.
102
+ * Add helper text to the component.
103
+ *
104
+ * @since 4.3.0
60
105
  */
61
- valid: {
62
- type: BooleanConstructor;
63
- required: false;
106
+ text: {
107
+ type: StringConstructor;
64
108
  };
109
+ /**
110
+ * Display validation feedback in a styled tooltip.
111
+ *
112
+ * @since 4.3.0
113
+ */
114
+ tooltipFeedback: BooleanConstructor;
115
+ /**
116
+ * Set component validation state to valid.
117
+ */
118
+ valid: BooleanConstructor;
65
119
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
66
120
  [key: string]: any;
67
121
  }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
122
+ /**
123
+ * Provide valuable, actionable feedback.
124
+ *
125
+ * @since 4.3.0
126
+ */
127
+ feedback: {
128
+ type: StringConstructor;
129
+ };
130
+ /**
131
+ * Provide valuable, actionable feedback.
132
+ *
133
+ * @since 4.3.0
134
+ */
135
+ feedbackInvalid: {
136
+ type: StringConstructor;
137
+ };
138
+ /**
139
+ * Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
140
+ *
141
+ * @since 4.3.0
142
+ */
143
+ feedbackValid: {
144
+ type: StringConstructor;
145
+ };
146
+ /**
147
+ * Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
148
+ *
149
+ * @since 4.3.0
150
+ */
151
+ floatingLabel: {
152
+ type: StringConstructor;
153
+ };
68
154
  /**
69
155
  * Specifies the number of visible options in a drop-down list.
70
156
  */
@@ -73,12 +159,23 @@ declare const CFormSelect: import("vue").DefineComponent<{
73
159
  default: undefined;
74
160
  required: false;
75
161
  };
162
+ /**
163
+ * The id global attribute defines an identifier (ID) that must be unique in the whole document.
164
+ */
165
+ id: {
166
+ type: StringConstructor;
167
+ };
76
168
  /**
77
169
  * Set component validation state to invalid.
78
170
  */
79
- invalid: {
80
- type: BooleanConstructor;
81
- required: false;
171
+ invalid: BooleanConstructor;
172
+ /**
173
+ * Add a caption for a component.
174
+ *
175
+ * @since 4.3.0
176
+ */
177
+ label: {
178
+ type: StringConstructor;
82
179
  };
83
180
  /**
84
181
  * The default name for a value passed using v-model.
@@ -115,20 +212,32 @@ declare const CFormSelect: import("vue").DefineComponent<{
115
212
  validator: (value: string) => boolean;
116
213
  };
117
214
  /**
118
- * Set component validation state to valid.
215
+ * Add helper text to the component.
216
+ *
217
+ * @since 4.3.0
119
218
  */
120
- valid: {
121
- type: BooleanConstructor;
122
- required: false;
219
+ text: {
220
+ type: StringConstructor;
123
221
  };
222
+ /**
223
+ * Display validation feedback in a styled tooltip.
224
+ *
225
+ * @since 4.3.0
226
+ */
227
+ tooltipFeedback: BooleanConstructor;
228
+ /**
229
+ * Set component validation state to valid.
230
+ */
231
+ valid: BooleanConstructor;
124
232
  }>> & {
125
233
  onChange?: ((...args: any[]) => any) | undefined;
126
234
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
127
235
  }, {
128
- size: string;
129
236
  invalid: boolean;
130
- modelValue: string | string[];
237
+ size: string;
131
238
  valid: boolean;
239
+ tooltipFeedback: boolean;
240
+ modelValue: string | string[];
132
241
  htmlSize: number;
133
242
  multiple: boolean;
134
243
  options: string[] | Option[];
@@ -4,23 +4,18 @@ declare const CFormSwitch: import("vue").DefineComponent<{
4
4
  */
5
5
  id: {
6
6
  type: StringConstructor;
7
- default: undefined;
8
- required: false;
9
7
  };
10
8
  /**
11
9
  * Set component validation state to invalid.
12
10
  */
13
11
  invalid: {
14
12
  type: BooleanConstructor;
15
- required: false;
16
13
  };
17
14
  /**
18
15
  * The element represents a caption for a component.
19
16
  */
20
17
  label: {
21
18
  type: StringConstructor;
22
- default: undefined;
23
- required: false;
24
19
  };
25
20
  /**
26
21
  * The default name for a value passed using v-model.
@@ -28,7 +23,6 @@ declare const CFormSwitch: import("vue").DefineComponent<{
28
23
  modelValue: {
29
24
  type: (StringConstructor | BooleanConstructor)[];
30
25
  value: undefined;
31
- required: false;
32
26
  };
33
27
  /**
34
28
  * Size the component large or extra large. Works only with `switch`.
@@ -37,8 +31,6 @@ declare const CFormSwitch: import("vue").DefineComponent<{
37
31
  */
38
32
  size: {
39
33
  type: StringConstructor;
40
- default: undefined;
41
- required: false;
42
34
  validator: (value: string) => boolean;
43
35
  };
44
36
  /**
@@ -49,14 +41,12 @@ declare const CFormSwitch: import("vue").DefineComponent<{
49
41
  type: {
50
42
  type: StringConstructor;
51
43
  default: string;
52
- required: false;
53
44
  };
54
45
  /**
55
46
  * Set component validation state to valid.
56
47
  */
57
48
  valid: {
58
49
  type: BooleanConstructor;
59
- required: false;
60
50
  };
61
51
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
62
52
  [key: string]: any;
@@ -66,23 +56,18 @@ declare const CFormSwitch: import("vue").DefineComponent<{
66
56
  */
67
57
  id: {
68
58
  type: StringConstructor;
69
- default: undefined;
70
- required: false;
71
59
  };
72
60
  /**
73
61
  * Set component validation state to invalid.
74
62
  */
75
63
  invalid: {
76
64
  type: BooleanConstructor;
77
- required: false;
78
65
  };
79
66
  /**
80
67
  * The element represents a caption for a component.
81
68
  */
82
69
  label: {
83
70
  type: StringConstructor;
84
- default: undefined;
85
- required: false;
86
71
  };
87
72
  /**
88
73
  * The default name for a value passed using v-model.
@@ -90,7 +75,6 @@ declare const CFormSwitch: import("vue").DefineComponent<{
90
75
  modelValue: {
91
76
  type: (StringConstructor | BooleanConstructor)[];
92
77
  value: undefined;
93
- required: false;
94
78
  };
95
79
  /**
96
80
  * Size the component large or extra large. Works only with `switch`.
@@ -99,8 +83,6 @@ declare const CFormSwitch: import("vue").DefineComponent<{
99
83
  */
100
84
  size: {
101
85
  type: StringConstructor;
102
- default: undefined;
103
- required: false;
104
86
  validator: (value: string) => boolean;
105
87
  };
106
88
  /**
@@ -111,24 +93,19 @@ declare const CFormSwitch: import("vue").DefineComponent<{
111
93
  type: {
112
94
  type: StringConstructor;
113
95
  default: string;
114
- required: false;
115
96
  };
116
97
  /**
117
98
  * Set component validation state to valid.
118
99
  */
119
100
  valid: {
120
101
  type: BooleanConstructor;
121
- required: false;
122
102
  };
123
103
  }>> & {
124
104
  onChange?: ((...args: any[]) => any) | undefined;
125
105
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
126
106
  }, {
127
107
  type: string;
128
- size: string;
129
- id: string;
130
108
  invalid: boolean;
131
- label: string;
132
109
  valid: boolean;
133
110
  }>;
134
111
  export { CFormSwitch };