-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom-elements.json
530 lines (530 loc) · 18.4 KB
/
custom-elements.json
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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
{
"version": "experimental",
"tags": [
{
"name": "form-control",
"path": "./src/components/form-control/form-control.ts",
"description": "Wrap <ui-button> or any component that emit `formcontrol` event to behave like [native <button>](https://developer.mozilla.org/fr/docs/Web/HTML/Element/Button).",
"attributes": [
{
"name": "name",
"description": "Defines the form data name when the associated form is submitted.",
"type": "string | undefined"
},
{
"name": "value",
"description": "Defines the form data value when the associated form is submitted."
},
{
"name": "type",
"description": "Defines the default behavior for the associated form:\n`submit` sent associated form data to server, *default behavior when no attibute*,\n`reset` restore all associated form controls to their initial values.",
"type": "string | undefined",
"default": "\"submit\""
},
{
"name": "formaction",
"description": "Specifies URL where to send the form data when associated form is submitted. Only for type=\"submit\".",
"type": "string | undefined"
},
{
"name": "formenctype",
"description": "Specifies how form data should be encoded when associated form is submitted. Only for type=\"submit\".\nPossible values are `application/x-www-form-urlencoded`, `multipart/form-data` or `text/plain`.",
"type": "string | undefined"
},
{
"name": "formmethod",
"description": "Specifies which HTTP method to use to send the form data. Only for type=\"submit\".\nPossible values are `get` or `post`.",
"type": "string | undefined"
},
{
"name": "formnovalidate",
"description": "Specifies that the form data should not be validated before submission. Only for type=\"submit\".",
"type": "boolean | undefined",
"default": "false"
},
{
"name": "formtarget",
"description": "Specifies where to display the response after submitting the form. Only for type=\"submit\".\nPossible values are `_blank`, `_self`, `_parent`, `_top` or a *framename*.",
"type": "string | undefined"
},
{
"name": "form",
"description": "Associated form anywhere in the document by specifying it's *id*, it can override an ancestor form element.",
"type": "HTMLFormElement | null"
}
],
"properties": [
{
"name": "name",
"attribute": "name",
"description": "Defines the form data name when the associated form is submitted.",
"type": "string | undefined"
},
{
"name": "value",
"attribute": "value",
"description": "Defines the form data value when the associated form is submitted."
},
{
"name": "type",
"attribute": "type",
"description": "Defines the default behavior for the associated form:\n`submit` sent associated form data to server, *default behavior when no attibute*,\n`reset` restore all associated form controls to their initial values.",
"type": "string | undefined",
"default": "\"submit\""
},
{
"name": "formAction",
"attribute": "formaction",
"description": "Specifies URL where to send the form data when associated form is submitted. Only for type=\"submit\".",
"type": "string | undefined"
},
{
"name": "formEnctype",
"attribute": "formenctype",
"description": "Specifies how form data should be encoded when associated form is submitted. Only for type=\"submit\".\nPossible values are `application/x-www-form-urlencoded`, `multipart/form-data` or `text/plain`.",
"type": "string | undefined"
},
{
"name": "formMethod",
"attribute": "formmethod",
"description": "Specifies which HTTP method to use to send the form data. Only for type=\"submit\".\nPossible values are `get` or `post`.",
"type": "string | undefined"
},
{
"name": "formNoValidate",
"attribute": "formnovalidate",
"description": "Specifies that the form data should not be validated before submission. Only for type=\"submit\".",
"type": "boolean | undefined",
"default": "false"
},
{
"name": "formTarget",
"attribute": "formtarget",
"description": "Specifies where to display the response after submitting the form. Only for type=\"submit\".\nPossible values are `_blank`, `_self`, `_parent`, `_top` or a *framename*.",
"type": "string | undefined"
},
{
"name": "labels",
"description": "Get list of attached `label` elements.",
"type": "NodeListOf<HTMLLabelElement>"
},
{
"name": "form",
"attribute": "form",
"description": "Associated form anywhere in the document by specifying it's *id*, it can override an ancestor form element.",
"type": "HTMLFormElement | null"
}
]
},
{
"name": "ui-avatar",
"path": "./src/components/ui-avatar/ui-avatar.ts",
"description": "Avatar displays user picture or initials.",
"attributes": [
{
"name": "user",
"description": "Avatar's user name, defaults to text content or child image `alt`.",
"type": "string",
"default": "\"?\""
},
{
"name": "textonly",
"description": "Display text initials only.",
"type": "boolean",
"default": "\"false\""
}
],
"properties": [
{
"name": "user",
"attribute": "user",
"description": "Avatar's user name, defaults to text content or child image `alt`.",
"type": "string",
"default": "\"?\""
},
{
"name": "textonly",
"attribute": "textonly",
"description": "Display text initials only.",
"type": "boolean",
"default": "\"false\""
}
],
"slots": [
{
"name": "default",
"description": "Renders avatar."
}
],
"cssProperties": [
{
"name": "--ui-badge-border-color",
"description": "Badge border color.",
"default": "\"transparent\""
}
]
},
{
"name": "ui-avatar-group",
"path": "./src/components/ui-avatar-group/ui-avatar-group.ts",
"attributes": [
{
"name": "avatars",
"description": "List of group's avatars.",
"type": "NodeListOf<UiAvatar>"
},
{
"name": "show",
"description": "Maximum avatars to display.",
"type": "number",
"default": "3"
},
{
"name": "textonly",
"description": "Display avatar text initials only.",
"type": "boolean",
"default": "false"
}
],
"properties": [
{
"name": "avatars",
"attribute": "avatars",
"description": "List of group's avatars.",
"type": "NodeListOf<UiAvatar>"
},
{
"name": "show",
"attribute": "show",
"description": "Maximum avatars to display.",
"type": "number",
"default": "3"
},
{
"name": "textonly",
"attribute": "textonly",
"description": "Display avatar text initials only.",
"type": "boolean",
"default": "false"
}
]
},
{
"name": "ui-badge",
"path": "./src/components/ui-badge/ui-badge.ts",
"description": "Badge displays small text tags that can be used anywhere, including inside <ui-button>.",
"attributes": [
{
"name": "theme",
"description": "Use predefined UI styles, that can be combined like classes:\n\n- `action`, `danger` or `valid` are (blue, red & green) colored button;\n- `outline` have border only, until hovered;",
"type": "string | undefined"
},
{
"name": "hidden",
"description": "Hides the badge.",
"type": "boolean",
"default": "false"
}
],
"properties": [
{
"name": "theme",
"attribute": "theme",
"description": "Use predefined UI styles, that can be combined like classes:\n\n- `action`, `danger` or `valid` are (blue, red & green) colored button;\n- `outline` have border only, until hovered;",
"type": "string | undefined"
},
{
"name": "hidden",
"attribute": "hidden",
"description": "Hides the badge.",
"type": "boolean",
"default": "false"
}
],
"slots": [
{
"name": "default",
"description": "Renders badge content."
}
],
"cssProperties": [
{
"name": "--ui-badge-background-color",
"description": "Badge background color.",
"default": "\"lightgrey\""
},
{
"name": "--ui-badge-border-color",
"description": "Badge border color.",
"default": "\"transparent\""
},
{
"name": "--ui-badge-text-color",
"description": "Badge text color.",
"default": "\"black\""
}
]
},
{
"name": "ui-button",
"path": "./src/components/ui-button/ui-button.ts",
"description": "Buttons with a modern UI isolated from global style in a web component.",
"attributes": [
{
"name": "active",
"description": "Displays (emulated) `:active` state.",
"type": "boolean",
"default": "false"
},
{
"name": "busy",
"description": "Prevents interaction: the button cannot be pressed or focused, but displays an animated UI.",
"type": "boolean",
"default": "false"
},
{
"name": "disabled",
"description": "Prevents interaction : the button cannot be pressed or focused, and displays a dimmed UI.",
"type": "boolean",
"default": "false"
},
{
"name": "hidden",
"description": "Hides the button.",
"type": "boolean",
"default": "false"
},
{
"name": "theme",
"description": "Use predefined UI styles, that can be combined like classes:\n\n- `action`, `danger` or `valid` are (blue, red & green) colored button;\n- `outline` have border only, until hovered and `ghost` are fully transparent button;\n- `round` are rounded button;\n- `small` have reduced padding;\n- `push` are 3d push button;\n- `dropdown` adds a dropdown arrow on button's end.",
"type": "string | undefined"
}
],
"properties": [
{
"name": "labels",
"description": "Node list of attached labels.",
"type": "NodeListOf<HTMLLabelElement>"
},
{
"name": "active",
"attribute": "active",
"description": "Displays (emulated) `:active` state.",
"type": "boolean",
"default": "false"
},
{
"name": "busy",
"attribute": "busy",
"description": "Prevents interaction: the button cannot be pressed or focused, but displays an animated UI.",
"type": "boolean",
"default": "false"
},
{
"name": "disabled",
"attribute": "disabled",
"description": "Prevents interaction : the button cannot be pressed or focused, and displays a dimmed UI.",
"type": "boolean",
"default": "false"
},
{
"name": "hidden",
"attribute": "hidden",
"description": "Hides the button.",
"type": "boolean",
"default": "false"
},
{
"name": "theme",
"attribute": "theme",
"description": "Use predefined UI styles, that can be combined like classes:\n\n- `action`, `danger` or `valid` are (blue, red & green) colored button;\n- `outline` have border only, until hovered and `ghost` are fully transparent button;\n- `round` are rounded button;\n- `small` have reduced padding;\n- `push` are 3d push button;\n- `dropdown` adds a dropdown arrow on button's end.",
"type": "string | undefined"
}
],
"events": [
{
"name": "formcontrol",
"description": "Custom event triggered on click to interact with parent <form-control> component.\n`formcontrol` event is not dispatched when <ui-button> is `disabled`, `busy` nor when `click` event is canceled."
}
],
"slots": [
{
"name": "default",
"description": "Renders content inside shadow button."
}
],
"cssProperties": [
{
"name": "--ui-button-text-color",
"description": "Button text color.",
"default": "\"inherit\""
},
{
"name": "--ui-button-background-color",
"description": "Button background color.",
"default": "\"transparent\""
},
{
"name": "--ui-button-border-color",
"description": "Button border color.",
"default": "\"currentColor\""
},
{
"name": "--ui-button-focus-color",
"description": "Button focus outline color.",
"default": "\"hsla(210, 5%, 55%, 50%)\""
},
{
"name": "--ui-button-border-radius",
"description": "Button border radius.",
"default": "\"0.25rem\""
},
{
"name": "--ui-button-padding",
"description": "Button padding.",
"default": "\"0.75em\""
}
],
"cssParts": [
{
"name": "button",
"description": "Reflects host state with customized style and aria attributes."
}
]
},
{
"name": "ui-button-group",
"path": "./src/components/ui-button-group/ui-button-group.ts",
"description": "Displays buttons grouped together.",
"attributes": [
{
"name": "busy",
"description": "Prevents interaction: the buttons cannot be pressed or focused, but displays an animated UI.",
"type": "boolean",
"default": "false"
},
{
"name": "disabled",
"description": "Prevents interaction : the buttons cannot be pressed or focused, and displays a dimmed UI.",
"type": "boolean"
},
{
"name": "theme",
"description": "Use predefined UI styles, that can be combined like classes:\n\n- `action`, `danger` or `valid` are (blue, red & green) colored button;\n- `outline` have border only, until hovered and `ghost` are fully transparent button;\n- `round` are rounded button;\n- `small` have reduced padding;",
"type": "string | undefined"
}
],
"properties": [
{
"name": "buttons",
"description": "Node list of children ui-buttons.",
"type": "NodeListOf<UiButton>"
},
{
"name": "busy",
"attribute": "busy",
"description": "Prevents interaction: the buttons cannot be pressed or focused, but displays an animated UI.",
"type": "boolean",
"default": "false"
},
{
"name": "disabled",
"attribute": "disabled",
"description": "Prevents interaction : the buttons cannot be pressed or focused, and displays a dimmed UI.",
"type": "boolean"
},
{
"name": "theme",
"attribute": "theme",
"description": "Use predefined UI styles, that can be combined like classes:\n\n- `action`, `danger` or `valid` are (blue, red & green) colored button;\n- `outline` have border only, until hovered and `ghost` are fully transparent button;\n- `round` are rounded button;\n- `small` have reduced padding;",
"type": "string | undefined"
}
],
"slots": [
{
"name": "default",
"description": "Renders grouped buttons."
}
]
},
{
"name": "ui-icon",
"path": "./src/components/ui-icon/ui-icon.ts",
"description": "Icon allows to style / size SVG like text and use colored emoji font.",
"attributes": [
{
"name": "hidden",
"description": "Hides the badge.",
"type": "boolean",
"default": "false"
}
],
"properties": [
{
"name": "hidden",
"attribute": "hidden",
"description": "Hides the badge.",
"type": "boolean",
"default": "false"
}
],
"slots": [
{
"name": "default",
"description": "Renders icon."
}
],
"cssProperties": [
{
"name": "--ui-icon-stroke-color",
"description": "Icon SVG stroke color.",
"default": "\"currentColor\""
},
{
"name": "--ui-icon-fill-color",
"description": "Icon SVG fill color.",
"default": "\"currentColor\""
}
]
},
{
"name": "ui-ripple",
"path": "./src/components/ui-ripple/ui-ripple.ts",
"description": "Ripple animation played on parent element click.",
"attributes": [
{
"name": "unbounded",
"description": "Display ripple over offsetParent element, instead of direct parent.",
"type": "boolean",
"default": "false"
}
],
"properties": [
{
"name": "unbounded",
"attribute": "unbounded",
"description": "Display ripple over offsetParent element, instead of direct parent.",
"type": "boolean",
"default": "false"
}
],
"cssProperties": [
{
"name": "--ui-ripple-color",
"description": "Ripple effect color.",
"default": "\"currentColor\""
},
{
"name": "--ui-ripple-opacity",
"description": "Ripple effect opacity.",
"default": "\"0.25\""
},
{
"name": "--ui-ripple-duration",
"description": "Ripple effect duration.",
"default": "\"0.5s\""
}
]
}
]
}