forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__QField.json
More file actions
306 lines (265 loc) · 8.21 KB
/
__QField.json
File metadata and controls
306 lines (265 loc) · 8.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
{
"mixins": [ "mixins/validate" ],
"props": {
"label": {
"type": "String",
"desc": "A text label that will “float” up above the input field, once the field gets focus",
"examples": [ "Username" ],
"category": "content"
},
"stack-label": {
"type": "Boolean",
"desc": "Label will be always shown above the field regardless of field content (if any)",
"category": "content"
},
"hint": {
"type": "String",
"desc": "Helper (hint) text which gets placed below your wrapped form component",
"examples": [ "Fill in between 3 and 12 characters" ],
"category": "content"
},
"hide-hint": {
"type": "Boolean",
"desc": "Hide the helper (hint) text when field doesn't have focus",
"category": "content"
},
"prefix": {
"type": "String",
"desc": "Prefix",
"examples": [ "$" ],
"category": "content"
},
"suffix": {
"type": "String",
"desc": "Suffix",
"examples": [ "@gmail.com" ],
"category": "content"
},
"label-color" : {
"extends": "color",
"desc": "Color name for the label from the Quasar Color Palette; Overrides the 'color' prop; The difference from 'color' prop is that the label will always have this color, even when field is not focused",
"addedIn": "v1.7.0"
},
"color": {
"extends": "color"
},
"bg-color": {
"extends": "color"
},
"dark": {
"extends": "dark"
},
"loading": {
"type": "Boolean",
"desc": "Signals the user a process is in progress by displaying a spinner; Spinner can be customized by using the 'loading' slot.",
"category": "behavior|content"
},
"clearable": {
"type": "Boolean",
"desc": "Appends clearable icon when a value (not undefined or null) is set; When clicked, model becomes null",
"category": "behavior|content"
},
"clear-icon": {
"type": "String",
"desc": "Custom icon to use for the clear button when using along with 'clearable' prop",
"examples": [ "close" ],
"category": "content"
},
"filled": {
"type": "Boolean",
"desc": "Use 'filled' design for the field",
"category": "style"
},
"outlined": {
"type": "Boolean",
"desc": "Use 'outlined' design for the field",
"category": "style"
},
"borderless": {
"type": "Boolean",
"desc": "Use 'borderless' design for the field",
"category": "style"
},
"standout": {
"type": [ "Boolean", "String" ],
"desc": "Use 'standout' design for the field; Specifies classes to be applied when focused (overriding default ones)",
"examples": [
"standout",
"standout=\"bg-primary text-white\""
],
"category": "style"
},
"label-slot": {
"type": "Boolean",
"desc": "Enables label slot; You need to set it to force use of the 'label' slot if the 'label' prop is not set",
"category": "content",
"addedIn": "v1.12.9"
},
"bottom-slots": {
"type": "Boolean",
"desc": "Enables bottom slots ('error', 'hint', 'counter')",
"category": "content"
},
"hide-bottom-space": {
"type": "Boolean",
"desc": "Do not reserve space for hint/error/counter anymore when these are not used; As a result, it also disables the animation for those; It also allows the hint/error area to stretch vertically based on its content",
"category": "style"
},
"counter": {
"type": "Boolean",
"desc": "Show an automatic counter on bottom right",
"category": "content"
},
"rounded": {
"extends": "rounded"
},
"square": {
"type": "Boolean",
"desc": "Remove border-radius so borders are squared; Overrides 'rounded' prop",
"category": "style"
},
"dense": {
"extends": "dense"
},
"item-aligned": {
"type": "Boolean",
"desc": "Match inner content alignment to that of QItem",
"category": "style"
},
"disable": {
"extends": "disable"
},
"readonly": {
"extends": "readonly"
},
"autofocus": {
"type": "Boolean",
"desc": "Focus field on initial component render",
"category": "behavior"
},
"for": {
"type": "String",
"desc": "Used to specify the 'id' of the control and also the 'for' attribute of the label that wraps it; If no 'name' prop is specified, then it is used for this attribute as well",
"examples": [ "myFieldsId" ],
"category": "behavior",
"addedIn": "v1.4.2"
},
"name": {
"type": "String",
"desc": "Used to specify the name of the control; Useful if dealing with forms; If not specified, it takes the value of 'for' prop, if it exists",
"examples": [ "car_id" ],
"category": "behavior",
"addedIn": "v1.9.0"
}
},
"slots": {
"default": {
"desc": "Field main content"
},
"prepend": {
"desc": "Prepend inner field; Suggestions: QIcon, QBtn"
},
"append": {
"desc": "Append to inner field; Suggestions: QIcon, QBtn"
},
"before": {
"desc": "Prepend outer field; Suggestions: QIcon, QBtn"
},
"after": {
"desc": "Append outer field; Suggestions: QIcon, QBtn"
},
"label": {
"desc": "Slot for label; Used only if 'label-slot' prop is set or the 'label' prop is set; When it is used the text in the 'label' prop is ignored",
"addedIn": "v1.12.9"
},
"counter": {
"desc": "Slot for counter text; Enabled only if 'bottom-slots' prop is used; Suggestion: <div>"
},
"loading": {
"desc": "Override default spinner when component is in loading mode; Use in conjunction with 'loading' prop"
}
},
"scopedSlots": {
"error": {
"desc": "Slot for errors; Enabled only if 'bottom-slots' prop is used; Suggestion: <div>",
"scope": {
"id": {
"type": "String",
"desc": "Element id used in the `for` attribute of the field label. Can be used to link the control to the label",
"examples": [ "qf_363270c0-7a83-62b1-8dcf-6dfd64ee38fa" ]
},
"field": {
"type": "Object",
"desc": "DOM element of the field",
"__exemption": [ "examples" ]
},
"editable": {
"type": "Boolean",
"desc": "Field is editable"
},
"focused": {
"type": "Boolean",
"desc": "Field has focus"
},
"value": {
"type": "Any",
"desc": "Field's value",
"examples": [ 0.241, "Text" ]
},
"errorMessage": {
"type": "String",
"desc": "Error message (from errorMessage prop or generated by rules)",
"examples": [ "The field is required" ]
}
},
"addedIn": "v1.17"
},
"hint": {
"desc": "Slot for hint text; Enabled only if 'bottom-slots' prop is used; Suggestion: <div>",
"scope": {
"id": {
"type": "String",
"desc": "Element id used in the `for` attribute of the field label. Can be used to link the control to the label",
"examples": [ "qf_363270c0-7a83-62b1-8dcf-6dfd64ee38fa" ]
},
"field": {
"type": "Object",
"desc": "DOM element of the field",
"__exemption": [ "examples" ]
},
"editable": {
"type": "Boolean",
"desc": "Field is editable"
},
"focused": {
"type": "Boolean",
"desc": "Field has focus"
},
"value": {
"type": "Any",
"desc": "Field's value",
"examples": [ 0.241, "Text" ]
},
"errorMessage": {
"type": "String",
"desc": "Error message (from errorMessage prop or generated by rules)",
"examples": [ "The field is required" ]
}
},
"addedIn": "v1.17"
}
},
"events": {
"clear": {
"desc": "When using the 'clearable' property, this event is emitted when the clear icon is clicked",
"addedIn": "v1.1.5",
"params": {
"value": {
"type": [ "Any" ],
"desc": "The previous value before clearing it",
"__exemption": [ "examples" ]
}
}
}
}
}