@coreui/vue-pro 4.3.0-beta.0 → 4.3.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 +113 -5
- package/dist/components/accordion/index.d.ts +1 -2
- package/dist/components/calendar/CCalendar.d.ts +15 -2
- package/dist/components/carousel/CCarousel.d.ts +1 -1
- package/dist/components/date-picker/CDatePicker.d.ts +24 -2
- package/dist/components/date-range-picker/CDateRangePicker.d.ts +102 -3
- package/dist/components/form/CFormCheck.d.ts +88 -39
- package/dist/components/form/CFormControlValidation.d.ts +98 -0
- package/dist/components/form/CFormControlWrapper.d.ts +6 -0
- package/dist/components/form/CFormFeedback.d.ts +2 -2
- package/dist/components/form/CFormInput.d.ts +133 -27
- package/dist/components/form/CFormRange.d.ts +18 -16
- package/dist/components/form/CFormSelect.d.ts +125 -16
- package/dist/components/form/CFormSwitch.d.ts +0 -23
- package/dist/components/form/CFormTextarea.d.ts +125 -24
- package/dist/components/modal/CModal.d.ts +1 -1
- package/dist/components/offcanvas/COffcanvas.d.ts +1 -1
- package/dist/components/smart-table/CSmartTable.d.ts +34 -98
- package/dist/components/smart-table/CSmartTableInterface.d.ts +3 -3
- package/dist/components/time-picker/CTimePicker.d.ts +1 -1
- package/dist/components/toast/CToast.d.ts +7 -1
- package/dist/components/widgets/CWidgetStatsB.d.ts +3 -8
- package/dist/components/widgets/CWidgetStatsC.d.ts +3 -8
- package/dist/directives/v-c-popover.d.ts +1 -1
- package/dist/directives/v-c-tooltip.d.ts +1 -1
- package/dist/index.es.js +5523 -644
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +5522 -644
- package/dist/index.js.map +1 -1
- package/dist/utils/calendar.d.ts +4 -2
- package/dist/utils/time.d.ts +6 -2
- package/dist/utils/transition.d.ts +3 -0
- package/package.json +12 -11
- package/src/components/accordion/index.ts +0 -3
- package/src/components/backdrop/CBackdrop.ts +8 -6
- package/src/components/button/CButton.ts +2 -2
- package/src/components/calendar/CCalendar.ts +132 -62
- package/src/components/close-button/CCloseButton.ts +1 -0
- package/src/components/close-button/__tests__/__snapshots__/CCloseButton.spec.ts.snap +2 -2
- package/src/components/collapse/CCollapse.ts +5 -6
- package/src/components/date-picker/CDatePicker.ts +14 -10
- package/src/components/date-range-picker/CDateRangePicker.ts +209 -100
- package/src/components/form/CFormCheck.ts +118 -95
- package/src/components/form/CFormControlValidation.ts +97 -0
- package/src/components/form/CFormControlWrapper.ts +106 -0
- package/src/components/form/CFormInput.ts +115 -30
- package/src/components/form/CFormRange.ts +25 -11
- package/src/components/form/CFormSelect.ts +127 -41
- package/src/components/form/CFormSwitch.ts +2 -21
- package/src/components/form/CFormTextarea.ts +113 -25
- package/src/components/form/__tests__/CFormInput.spec.ts +11 -11
- package/src/components/form/__tests__/CFormRange.spec.ts +9 -9
- package/src/components/form/__tests__/CFormSelect.spec.ts +4 -4
- package/src/components/form/__tests__/CFormTextarea.spec.ts +4 -4
- package/src/components/form/__tests__/__snapshots__/CFormCheck.spec.ts.snap +8 -2
- package/src/components/form/__tests__/__snapshots__/CFormRange.spec.ts.snap +1 -1
- package/src/components/modal/CModal.ts +14 -6
- package/src/components/modal/__tests__/__snapshots__/CModal.spec.ts.snap +1 -2
- package/src/components/modal/__tests__/__snapshots__/CModalHeader.spec.ts.snap +2 -2
- package/src/components/nav/CNavGroup.ts +4 -6
- package/src/components/offcanvas/COffcanvas.ts +5 -7
- package/src/components/pagination/CSmartPagination.ts +4 -4
- package/src/components/picker/CPicker.ts +1 -0
- package/src/components/popover/CPopover.ts +5 -5
- package/src/components/sidebar/__tests__/__snapshots__/CSidebar.spec.ts.snap +2 -8
- package/src/components/smart-table/CSmartTable.ts +17 -49
- package/src/components/smart-table/CSmartTableInterface.ts +5 -3
- package/src/components/tabs/CTabPane.ts +4 -6
- package/src/components/time-picker/CTimePicker.ts +12 -17
- package/src/components/toast/CToast.ts +17 -12
- package/src/components/toast/__tests__/__snapshots__/CToastClose.spec.ts.snap +1 -1
- package/src/components/toast/__tests__/__snapshots__/CToastHeader.spec.ts.snap +1 -1
- package/src/components/tooltip/CTooltip.ts +5 -5
- package/src/directives/v-c-popover.ts +1 -1
- package/src/directives/v-c-tooltip.ts +1 -1
- package/src/utils/calendar.ts +86 -9
- package/src/utils/time.ts +29 -3
- package/src/utils/transition.ts +65 -0
|
@@ -1,20 +1,48 @@
|
|
|
1
1
|
declare const CFormCheck: import("vue").DefineComponent<{
|
|
2
2
|
/**
|
|
3
3
|
* Create button-like checkboxes and radio buttons.
|
|
4
|
+
*
|
|
5
|
+
* @see http://coreui.io/vue/docs/components/button.html
|
|
6
|
+
*/
|
|
7
|
+
button: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Provide valuable, actionable feedback.
|
|
12
|
+
*
|
|
13
|
+
* @since 4.3.0
|
|
14
|
+
*/
|
|
15
|
+
feedback: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Provide valuable, actionable feedback.
|
|
20
|
+
*
|
|
21
|
+
* @since 4.3.0
|
|
4
22
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
23
|
+
feedbackInvalid: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
|
|
28
|
+
*
|
|
29
|
+
* @since 4.3.0
|
|
30
|
+
*/
|
|
31
|
+
feedbackValid: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Sets hit area to the full area of the component.
|
|
36
|
+
*/
|
|
37
|
+
hitArea: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
validator: (value: string) => boolean;
|
|
40
|
+
};
|
|
11
41
|
/**
|
|
12
42
|
* The id global attribute defines an identifier (ID) that must be unique in the whole document.
|
|
13
43
|
*/
|
|
14
44
|
id: {
|
|
15
45
|
type: StringConstructor;
|
|
16
|
-
default: undefined;
|
|
17
|
-
required: false;
|
|
18
46
|
};
|
|
19
47
|
/**
|
|
20
48
|
* Input Checkbox indeterminate Property
|
|
@@ -25,22 +53,16 @@ declare const CFormCheck: import("vue").DefineComponent<{
|
|
|
25
53
|
*/
|
|
26
54
|
inline: {
|
|
27
55
|
type: BooleanConstructor;
|
|
28
|
-
required: false;
|
|
29
56
|
};
|
|
30
57
|
/**
|
|
31
58
|
* Set component validation state to invalid.
|
|
32
59
|
*/
|
|
33
|
-
invalid:
|
|
34
|
-
type: BooleanConstructor;
|
|
35
|
-
required: false;
|
|
36
|
-
};
|
|
60
|
+
invalid: BooleanConstructor;
|
|
37
61
|
/**
|
|
38
62
|
* The element represents a caption for a component.
|
|
39
63
|
*/
|
|
40
64
|
label: {
|
|
41
65
|
type: StringConstructor;
|
|
42
|
-
default: undefined;
|
|
43
|
-
required: false;
|
|
44
66
|
};
|
|
45
67
|
/**
|
|
46
68
|
* The default name for a value passed using v-model.
|
|
@@ -48,8 +70,13 @@ declare const CFormCheck: import("vue").DefineComponent<{
|
|
|
48
70
|
modelValue: {
|
|
49
71
|
type: (StringConstructor | BooleanConstructor)[];
|
|
50
72
|
value: undefined;
|
|
51
|
-
required: false;
|
|
52
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
* Display validation feedback in a styled tooltip.
|
|
76
|
+
*
|
|
77
|
+
* @since 4.3.0
|
|
78
|
+
*/
|
|
79
|
+
tooltipFeedback: BooleanConstructor;
|
|
53
80
|
/**
|
|
54
81
|
* Specifies the type of component.
|
|
55
82
|
*
|
|
@@ -58,14 +85,12 @@ declare const CFormCheck: import("vue").DefineComponent<{
|
|
|
58
85
|
type: {
|
|
59
86
|
type: StringConstructor;
|
|
60
87
|
default: string;
|
|
61
|
-
required: false;
|
|
62
88
|
};
|
|
63
89
|
/**
|
|
64
90
|
* Set component validation state to valid.
|
|
65
91
|
*/
|
|
66
92
|
valid: {
|
|
67
93
|
type: BooleanConstructor;
|
|
68
|
-
required: false;
|
|
69
94
|
};
|
|
70
95
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
71
96
|
[key: string]: any;
|
|
@@ -74,20 +99,48 @@ declare const CFormCheck: import("vue").DefineComponent<{
|
|
|
74
99
|
}> | 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<{
|
|
75
100
|
/**
|
|
76
101
|
* Create button-like checkboxes and radio buttons.
|
|
102
|
+
*
|
|
103
|
+
* @see http://coreui.io/vue/docs/components/button.html
|
|
77
104
|
*/
|
|
78
|
-
button:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
105
|
+
button: {
|
|
106
|
+
type: ObjectConstructor;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Provide valuable, actionable feedback.
|
|
110
|
+
*
|
|
111
|
+
* @since 4.3.0
|
|
112
|
+
*/
|
|
113
|
+
feedback: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Provide valuable, actionable feedback.
|
|
118
|
+
*
|
|
119
|
+
* @since 4.3.0
|
|
120
|
+
*/
|
|
121
|
+
feedbackInvalid: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
|
|
126
|
+
*
|
|
127
|
+
* @since 4.3.0
|
|
128
|
+
*/
|
|
129
|
+
feedbackValid: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Sets hit area to the full area of the component.
|
|
134
|
+
*/
|
|
135
|
+
hitArea: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
validator: (value: string) => boolean;
|
|
138
|
+
};
|
|
84
139
|
/**
|
|
85
140
|
* The id global attribute defines an identifier (ID) that must be unique in the whole document.
|
|
86
141
|
*/
|
|
87
142
|
id: {
|
|
88
143
|
type: StringConstructor;
|
|
89
|
-
default: undefined;
|
|
90
|
-
required: false;
|
|
91
144
|
};
|
|
92
145
|
/**
|
|
93
146
|
* Input Checkbox indeterminate Property
|
|
@@ -98,22 +151,16 @@ declare const CFormCheck: import("vue").DefineComponent<{
|
|
|
98
151
|
*/
|
|
99
152
|
inline: {
|
|
100
153
|
type: BooleanConstructor;
|
|
101
|
-
required: false;
|
|
102
154
|
};
|
|
103
155
|
/**
|
|
104
156
|
* Set component validation state to invalid.
|
|
105
157
|
*/
|
|
106
|
-
invalid:
|
|
107
|
-
type: BooleanConstructor;
|
|
108
|
-
required: false;
|
|
109
|
-
};
|
|
158
|
+
invalid: BooleanConstructor;
|
|
110
159
|
/**
|
|
111
160
|
* The element represents a caption for a component.
|
|
112
161
|
*/
|
|
113
162
|
label: {
|
|
114
163
|
type: StringConstructor;
|
|
115
|
-
default: undefined;
|
|
116
|
-
required: false;
|
|
117
164
|
};
|
|
118
165
|
/**
|
|
119
166
|
* The default name for a value passed using v-model.
|
|
@@ -121,8 +168,13 @@ declare const CFormCheck: import("vue").DefineComponent<{
|
|
|
121
168
|
modelValue: {
|
|
122
169
|
type: (StringConstructor | BooleanConstructor)[];
|
|
123
170
|
value: undefined;
|
|
124
|
-
required: false;
|
|
125
171
|
};
|
|
172
|
+
/**
|
|
173
|
+
* Display validation feedback in a styled tooltip.
|
|
174
|
+
*
|
|
175
|
+
* @since 4.3.0
|
|
176
|
+
*/
|
|
177
|
+
tooltipFeedback: BooleanConstructor;
|
|
126
178
|
/**
|
|
127
179
|
* Specifies the type of component.
|
|
128
180
|
*
|
|
@@ -131,25 +183,22 @@ declare const CFormCheck: import("vue").DefineComponent<{
|
|
|
131
183
|
type: {
|
|
132
184
|
type: StringConstructor;
|
|
133
185
|
default: string;
|
|
134
|
-
required: false;
|
|
135
186
|
};
|
|
136
187
|
/**
|
|
137
188
|
* Set component validation state to valid.
|
|
138
189
|
*/
|
|
139
190
|
valid: {
|
|
140
191
|
type: BooleanConstructor;
|
|
141
|
-
required: false;
|
|
142
192
|
};
|
|
143
193
|
}>> & {
|
|
144
194
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
145
195
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
146
196
|
}, {
|
|
147
197
|
type: string;
|
|
148
|
-
id: string;
|
|
149
198
|
invalid: boolean;
|
|
150
|
-
|
|
199
|
+
valid: boolean;
|
|
200
|
+
tooltipFeedback: boolean;
|
|
151
201
|
indeterminate: boolean;
|
|
152
202
|
inline: boolean;
|
|
153
|
-
valid: boolean;
|
|
154
203
|
}>;
|
|
155
204
|
export { CFormCheck };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
declare const CFormControlValidation: import("vue").DefineComponent<{
|
|
2
|
+
/**
|
|
3
|
+
* @ignore
|
|
4
|
+
*/
|
|
5
|
+
describedby: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Provide valuable, actionable feedback.
|
|
10
|
+
*
|
|
11
|
+
* @since 4.3.0
|
|
12
|
+
*/
|
|
13
|
+
feedback: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Provide valuable, actionable feedback.
|
|
18
|
+
*
|
|
19
|
+
* @since 4.3.0
|
|
20
|
+
*/
|
|
21
|
+
feedbackInvalid: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
|
|
26
|
+
*
|
|
27
|
+
* @since 4.3.0
|
|
28
|
+
*/
|
|
29
|
+
feedbackValid: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Set component validation state to invalid.
|
|
34
|
+
*/
|
|
35
|
+
invalid: BooleanConstructor;
|
|
36
|
+
/**
|
|
37
|
+
* Display validation feedback in a styled tooltip.
|
|
38
|
+
*
|
|
39
|
+
* @since 4.3.0
|
|
40
|
+
*/
|
|
41
|
+
tooltipFeedback: BooleanConstructor;
|
|
42
|
+
/**
|
|
43
|
+
* Set component validation state to valid.
|
|
44
|
+
*/
|
|
45
|
+
valid: BooleanConstructor;
|
|
46
|
+
}, () => (false | "" | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
}> | 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<{
|
|
49
|
+
/**
|
|
50
|
+
* @ignore
|
|
51
|
+
*/
|
|
52
|
+
describedby: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Provide valuable, actionable feedback.
|
|
57
|
+
*
|
|
58
|
+
* @since 4.3.0
|
|
59
|
+
*/
|
|
60
|
+
feedback: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Provide valuable, actionable feedback.
|
|
65
|
+
*
|
|
66
|
+
* @since 4.3.0
|
|
67
|
+
*/
|
|
68
|
+
feedbackInvalid: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
|
|
73
|
+
*
|
|
74
|
+
* @since 4.3.0
|
|
75
|
+
*/
|
|
76
|
+
feedbackValid: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Set component validation state to invalid.
|
|
81
|
+
*/
|
|
82
|
+
invalid: BooleanConstructor;
|
|
83
|
+
/**
|
|
84
|
+
* Display validation feedback in a styled tooltip.
|
|
85
|
+
*
|
|
86
|
+
* @since 4.3.0
|
|
87
|
+
*/
|
|
88
|
+
tooltipFeedback: BooleanConstructor;
|
|
89
|
+
/**
|
|
90
|
+
* Set component validation state to valid.
|
|
91
|
+
*/
|
|
92
|
+
valid: BooleanConstructor;
|
|
93
|
+
}>>, {
|
|
94
|
+
invalid: boolean;
|
|
95
|
+
valid: boolean;
|
|
96
|
+
tooltipFeedback: boolean;
|
|
97
|
+
}>;
|
|
98
|
+
export { CFormControlValidation };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const CFormControlWrapper: import("vue").DefineComponent<any, () => any[] | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
}>;
|
|
6
|
+
export { CFormControlWrapper };
|
|
@@ -43,9 +43,9 @@ declare const CFormFeedback: import("vue").DefineComponent<{
|
|
|
43
43
|
*/
|
|
44
44
|
valid: BooleanConstructor;
|
|
45
45
|
}>>, {
|
|
46
|
-
component: string;
|
|
47
46
|
invalid: boolean;
|
|
48
|
-
|
|
47
|
+
component: string;
|
|
49
48
|
tooltip: boolean;
|
|
49
|
+
valid: boolean;
|
|
50
50
|
}>;
|
|
51
51
|
export { CFormFeedback };
|
|
@@ -6,20 +6,65 @@ 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
|
-
|
|
14
|
-
|
|
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.
|
|
18
61
|
*/
|
|
19
62
|
modelValue: {
|
|
20
|
-
type: StringConstructor
|
|
63
|
+
type: (NumberConstructor | StringConstructor | {
|
|
64
|
+
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag | undefined): File;
|
|
65
|
+
prototype: File;
|
|
66
|
+
})[];
|
|
21
67
|
default: undefined;
|
|
22
|
-
require: boolean;
|
|
23
68
|
};
|
|
24
69
|
/**
|
|
25
70
|
* 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 +87,22 @@ declare const CFormInput: import("vue").DefineComponent<{
|
|
|
42
87
|
*/
|
|
43
88
|
size: {
|
|
44
89
|
type: StringConstructor;
|
|
45
|
-
default: undefined;
|
|
46
|
-
require: boolean;
|
|
47
90
|
validator: (value: string) => boolean;
|
|
48
91
|
};
|
|
92
|
+
/**
|
|
93
|
+
* Add helper text to the component.
|
|
94
|
+
*
|
|
95
|
+
* @since 4.3.0
|
|
96
|
+
*/
|
|
97
|
+
text: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Display validation feedback in a styled tooltip.
|
|
102
|
+
*
|
|
103
|
+
* @since 4.3.0
|
|
104
|
+
*/
|
|
105
|
+
tooltipFeedback: BooleanConstructor;
|
|
49
106
|
/**
|
|
50
107
|
* Specifies the type of component.
|
|
51
108
|
*
|
|
@@ -54,15 +111,11 @@ declare const CFormInput: import("vue").DefineComponent<{
|
|
|
54
111
|
type: {
|
|
55
112
|
type: StringConstructor;
|
|
56
113
|
default: string;
|
|
57
|
-
require: boolean;
|
|
58
114
|
};
|
|
59
115
|
/**
|
|
60
116
|
* Set component validation state to valid.
|
|
61
117
|
*/
|
|
62
|
-
valid:
|
|
63
|
-
type: BooleanConstructor;
|
|
64
|
-
required: false;
|
|
65
|
-
};
|
|
118
|
+
valid: BooleanConstructor;
|
|
66
119
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
67
120
|
[key: string]: any;
|
|
68
121
|
}>, 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,20 +126,65 @@ declare const CFormInput: import("vue").DefineComponent<{
|
|
|
73
126
|
type: BooleanConstructor;
|
|
74
127
|
required: false;
|
|
75
128
|
};
|
|
129
|
+
/**
|
|
130
|
+
* Provide valuable, actionable feedback.
|
|
131
|
+
*
|
|
132
|
+
* @since 4.3.0
|
|
133
|
+
*/
|
|
134
|
+
feedback: {
|
|
135
|
+
type: StringConstructor;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Provide valuable, actionable feedback.
|
|
139
|
+
*
|
|
140
|
+
* @since 4.3.0
|
|
141
|
+
*/
|
|
142
|
+
feedbackInvalid: {
|
|
143
|
+
type: StringConstructor;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
|
|
147
|
+
*
|
|
148
|
+
* @since 4.3.0
|
|
149
|
+
*/
|
|
150
|
+
feedbackValid: {
|
|
151
|
+
type: StringConstructor;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
|
|
155
|
+
*
|
|
156
|
+
* @since 4.3.0
|
|
157
|
+
*/
|
|
158
|
+
floatingLabel: {
|
|
159
|
+
type: StringConstructor;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* The id global attribute defines an identifier (ID) that must be unique in the whole document.
|
|
163
|
+
*/
|
|
164
|
+
id: {
|
|
165
|
+
type: StringConstructor;
|
|
166
|
+
};
|
|
76
167
|
/**
|
|
77
168
|
* Set component validation state to invalid.
|
|
78
169
|
*/
|
|
79
|
-
invalid:
|
|
80
|
-
|
|
81
|
-
|
|
170
|
+
invalid: BooleanConstructor;
|
|
171
|
+
/**
|
|
172
|
+
* Add a caption for a component.
|
|
173
|
+
*
|
|
174
|
+
* @since 4.3.0
|
|
175
|
+
*/
|
|
176
|
+
label: {
|
|
177
|
+
type: StringConstructor;
|
|
82
178
|
};
|
|
83
179
|
/**
|
|
84
180
|
* The default name for a value passed using v-model.
|
|
85
181
|
*/
|
|
86
182
|
modelValue: {
|
|
87
|
-
type: StringConstructor
|
|
183
|
+
type: (NumberConstructor | StringConstructor | {
|
|
184
|
+
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag | undefined): File;
|
|
185
|
+
prototype: File;
|
|
186
|
+
})[];
|
|
88
187
|
default: undefined;
|
|
89
|
-
require: boolean;
|
|
90
188
|
};
|
|
91
189
|
/**
|
|
92
190
|
* 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 +207,22 @@ declare const CFormInput: import("vue").DefineComponent<{
|
|
|
109
207
|
*/
|
|
110
208
|
size: {
|
|
111
209
|
type: StringConstructor;
|
|
112
|
-
default: undefined;
|
|
113
|
-
require: boolean;
|
|
114
210
|
validator: (value: string) => boolean;
|
|
115
211
|
};
|
|
212
|
+
/**
|
|
213
|
+
* Add helper text to the component.
|
|
214
|
+
*
|
|
215
|
+
* @since 4.3.0
|
|
216
|
+
*/
|
|
217
|
+
text: {
|
|
218
|
+
type: StringConstructor;
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* Display validation feedback in a styled tooltip.
|
|
222
|
+
*
|
|
223
|
+
* @since 4.3.0
|
|
224
|
+
*/
|
|
225
|
+
tooltipFeedback: BooleanConstructor;
|
|
116
226
|
/**
|
|
117
227
|
* Specifies the type of component.
|
|
118
228
|
*
|
|
@@ -121,26 +231,22 @@ declare const CFormInput: import("vue").DefineComponent<{
|
|
|
121
231
|
type: {
|
|
122
232
|
type: StringConstructor;
|
|
123
233
|
default: string;
|
|
124
|
-
require: boolean;
|
|
125
234
|
};
|
|
126
235
|
/**
|
|
127
236
|
* Set component validation state to valid.
|
|
128
237
|
*/
|
|
129
|
-
valid:
|
|
130
|
-
type: BooleanConstructor;
|
|
131
|
-
required: false;
|
|
132
|
-
};
|
|
238
|
+
valid: BooleanConstructor;
|
|
133
239
|
}>> & {
|
|
134
240
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
135
241
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
136
242
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
137
243
|
}, {
|
|
138
244
|
type: string;
|
|
139
|
-
disabled: boolean;
|
|
140
|
-
size: string;
|
|
141
245
|
invalid: boolean;
|
|
142
|
-
|
|
246
|
+
disabled: boolean;
|
|
143
247
|
valid: boolean;
|
|
248
|
+
tooltipFeedback: boolean;
|
|
249
|
+
modelValue: string | number | File;
|
|
144
250
|
plainText: boolean;
|
|
145
251
|
readonly: boolean;
|
|
146
252
|
}>;
|