@ohmygame/plugin-ui 0.0.0-stage → 2.4.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.
- package/LICENSE +201 -0
- package/README.md +32 -2
- package/index.d.ts +170 -0
- package/index.js +127 -0
- package/package.json +28 -4
- package/plugin-ui.css +158 -0
- package/ui/1/base.js +107 -0
- package/ui/1/controls.js +231 -0
- package/ui/1/custom-elements.json +2472 -0
- package/ui/1/feedback.js +340 -0
- package/ui/1/forms.js +464 -0
- package/ui/1/index.d.ts +518 -0
- package/ui/1/index.js +9 -0
- package/ui/1/layout.js +419 -0
- package/ui/1/media.js +370 -0
- package/ui/1/navigation.js +161 -0
|
@@ -0,0 +1,2472 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "2.1.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "ui/1/controls.js",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "class",
|
|
11
|
+
"name": "OmgButton",
|
|
12
|
+
"tagName": "omg-button",
|
|
13
|
+
"customElement": true,
|
|
14
|
+
"description": "`<omg-button variant=\"secondary|primary|ghost|danger\" disabled busy>`: the app's button. Primary is ink; there is one per view. A busy button shows a spinner and takes no clicks.",
|
|
15
|
+
"superclass": {
|
|
16
|
+
"name": "HTMLElement",
|
|
17
|
+
"package": "global:"
|
|
18
|
+
},
|
|
19
|
+
"attributes": [
|
|
20
|
+
{
|
|
21
|
+
"name": "busy",
|
|
22
|
+
"description": "Shows a spinner and takes no clicks.",
|
|
23
|
+
"type": {
|
|
24
|
+
"text": "boolean"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "disabled",
|
|
29
|
+
"description": "Takes no clicks.",
|
|
30
|
+
"type": {
|
|
31
|
+
"text": "boolean"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "variant",
|
|
36
|
+
"description": "Secondary by default.",
|
|
37
|
+
"type": {
|
|
38
|
+
"text": "\"secondary\" | \"primary\" | \"ghost\" | \"danger\""
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"members": [
|
|
43
|
+
{
|
|
44
|
+
"kind": "field",
|
|
45
|
+
"name": "busy",
|
|
46
|
+
"description": "The `busy` attribute.",
|
|
47
|
+
"type": {
|
|
48
|
+
"text": "boolean"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"kind": "field",
|
|
53
|
+
"name": "disabled",
|
|
54
|
+
"description": "The `disabled` attribute.",
|
|
55
|
+
"type": {
|
|
56
|
+
"text": "boolean"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"events": [],
|
|
61
|
+
"slots": [
|
|
62
|
+
{
|
|
63
|
+
"name": "",
|
|
64
|
+
"description": "The label."
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"cssParts": [
|
|
68
|
+
{
|
|
69
|
+
"name": "button",
|
|
70
|
+
"description": "The button."
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "spinner",
|
|
74
|
+
"description": "The spinner shown while busy."
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"cssProperties": []
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"kind": "class",
|
|
81
|
+
"name": "OmgCommandButton",
|
|
82
|
+
"tagName": "omg-command-button",
|
|
83
|
+
"customElement": true,
|
|
84
|
+
"description": "`<omg-command-button command input variant concurrent quiet>`: runs one of the plugin's commands, by its manifest id, when clicked. `input` is JSON, or set the `input` property. While it runs, the button is busy and shows the command's progress beside it, and other command buttons wait unless they are `concurrent`. A failure shows beside it unless it is `quiet`, and is its `error` attribute until the next run, so a page that draws the button again can pass it on. Events: `omg-command-start` (cancelable, before it runs), `omg-command-result` with `detail.result`, and `omg-command-error` with `detail.error`, cancelable to show the failure yourself.",
|
|
85
|
+
"superclass": {
|
|
86
|
+
"name": "OmgButton",
|
|
87
|
+
"module": "ui/1/controls.js"
|
|
88
|
+
},
|
|
89
|
+
"attributes": [
|
|
90
|
+
{
|
|
91
|
+
"name": "busy",
|
|
92
|
+
"description": "Shows a spinner and takes no clicks.",
|
|
93
|
+
"type": {
|
|
94
|
+
"text": "boolean"
|
|
95
|
+
},
|
|
96
|
+
"inheritedFrom": {
|
|
97
|
+
"name": "OmgButton",
|
|
98
|
+
"module": "ui/1/controls.js"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "command",
|
|
103
|
+
"description": "The command's id in the manifest.",
|
|
104
|
+
"type": {
|
|
105
|
+
"text": "string"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "concurrent",
|
|
110
|
+
"description": "Runs while other command buttons run, and doesn't make them wait.",
|
|
111
|
+
"type": {
|
|
112
|
+
"text": "boolean"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "disabled",
|
|
117
|
+
"description": "Takes no clicks.",
|
|
118
|
+
"type": {
|
|
119
|
+
"text": "boolean"
|
|
120
|
+
},
|
|
121
|
+
"inheritedFrom": {
|
|
122
|
+
"name": "OmgButton",
|
|
123
|
+
"module": "ui/1/controls.js"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "error",
|
|
128
|
+
"description": "The last run's failure, until the next run.",
|
|
129
|
+
"type": {
|
|
130
|
+
"text": "string"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "input",
|
|
135
|
+
"description": "The command's input, as JSON.",
|
|
136
|
+
"type": {
|
|
137
|
+
"text": "string"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "quiet",
|
|
142
|
+
"description": "Doesn't show a failure beside it.",
|
|
143
|
+
"type": {
|
|
144
|
+
"text": "boolean"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "variant",
|
|
149
|
+
"description": "Secondary by default.",
|
|
150
|
+
"type": {
|
|
151
|
+
"text": "\"secondary\" | \"primary\" | \"ghost\" | \"danger\""
|
|
152
|
+
},
|
|
153
|
+
"inheritedFrom": {
|
|
154
|
+
"name": "OmgButton",
|
|
155
|
+
"module": "ui/1/controls.js"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"members": [
|
|
160
|
+
{
|
|
161
|
+
"kind": "field",
|
|
162
|
+
"name": "busy",
|
|
163
|
+
"description": "The `busy` attribute.",
|
|
164
|
+
"type": {
|
|
165
|
+
"text": "boolean"
|
|
166
|
+
},
|
|
167
|
+
"inheritedFrom": {
|
|
168
|
+
"name": "OmgButton",
|
|
169
|
+
"module": "ui/1/controls.js"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"kind": "field",
|
|
174
|
+
"name": "disabled",
|
|
175
|
+
"description": "The `disabled` attribute.",
|
|
176
|
+
"type": {
|
|
177
|
+
"text": "boolean"
|
|
178
|
+
},
|
|
179
|
+
"inheritedFrom": {
|
|
180
|
+
"name": "OmgButton",
|
|
181
|
+
"module": "ui/1/controls.js"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"kind": "field",
|
|
186
|
+
"name": "input",
|
|
187
|
+
"description": "The command's input; it takes the place of the attribute.",
|
|
188
|
+
"type": {
|
|
189
|
+
"text": "unknown"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"kind": "method",
|
|
194
|
+
"name": "run",
|
|
195
|
+
"description": "Runs the command, as a click does; resolves to its result, or undefined when it didn't run or failed.",
|
|
196
|
+
"return": {
|
|
197
|
+
"type": {
|
|
198
|
+
"text": "Promise<unknown>"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
"events": [
|
|
204
|
+
{
|
|
205
|
+
"name": "omg-command-error",
|
|
206
|
+
"description": "The command failed; cancel it to show the failure yourself.",
|
|
207
|
+
"type": {
|
|
208
|
+
"text": "CustomEvent<{ command: string; error: string }>"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "omg-command-result",
|
|
213
|
+
"description": "The command's result.",
|
|
214
|
+
"type": {
|
|
215
|
+
"text": "CustomEvent<{ command: string; result: unknown }>"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "omg-command-start",
|
|
220
|
+
"description": "Before it runs; cancel it to not run.",
|
|
221
|
+
"type": {
|
|
222
|
+
"text": "CustomEvent<{ command: string; input: unknown }>"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"slots": [
|
|
227
|
+
{
|
|
228
|
+
"name": "",
|
|
229
|
+
"description": "The label."
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
"cssParts": [
|
|
233
|
+
{
|
|
234
|
+
"name": "button",
|
|
235
|
+
"description": "The button."
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "error",
|
|
239
|
+
"description": "The failure."
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "progress",
|
|
243
|
+
"description": "The command's progress while it runs."
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "spinner",
|
|
247
|
+
"description": "The spinner shown while busy."
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"cssProperties": []
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"exports": [
|
|
254
|
+
{
|
|
255
|
+
"kind": "custom-element-definition",
|
|
256
|
+
"name": "omg-button",
|
|
257
|
+
"declaration": {
|
|
258
|
+
"name": "OmgButton",
|
|
259
|
+
"module": "ui/1/controls.js"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"kind": "custom-element-definition",
|
|
264
|
+
"name": "omg-command-button",
|
|
265
|
+
"declaration": {
|
|
266
|
+
"name": "OmgCommandButton",
|
|
267
|
+
"module": "ui/1/controls.js"
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"kind": "javascript-module",
|
|
274
|
+
"path": "ui/1/feedback.js",
|
|
275
|
+
"declarations": [
|
|
276
|
+
{
|
|
277
|
+
"kind": "class",
|
|
278
|
+
"name": "OmgStatus",
|
|
279
|
+
"tagName": "omg-status",
|
|
280
|
+
"customElement": true,
|
|
281
|
+
"description": "`<omg-status tone=\"neutral|good|warning|bad|busy\">`: a short state, such as \"Running\", after a coloured dot, or a spinner while busy. It is a live region, so a change is read out.",
|
|
282
|
+
"superclass": {
|
|
283
|
+
"name": "HTMLElement",
|
|
284
|
+
"package": "global:"
|
|
285
|
+
},
|
|
286
|
+
"attributes": [
|
|
287
|
+
{
|
|
288
|
+
"name": "tone",
|
|
289
|
+
"description": "Neutral by default.",
|
|
290
|
+
"type": {
|
|
291
|
+
"text": "\"neutral\" | \"good\" | \"warning\" | \"bad\" | \"busy\""
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
"members": [],
|
|
296
|
+
"events": [],
|
|
297
|
+
"slots": [
|
|
298
|
+
{
|
|
299
|
+
"name": "",
|
|
300
|
+
"description": "The state, in a few words."
|
|
301
|
+
}
|
|
302
|
+
],
|
|
303
|
+
"cssParts": [
|
|
304
|
+
{
|
|
305
|
+
"name": "indicator",
|
|
306
|
+
"description": "The dot."
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"name": "label",
|
|
310
|
+
"description": "The state."
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "spinner",
|
|
314
|
+
"description": "The spinner shown while busy."
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"cssProperties": [
|
|
318
|
+
{
|
|
319
|
+
"name": "--omg-accent",
|
|
320
|
+
"description": "The plugin's brand colour, for the busy spinner."
|
|
321
|
+
}
|
|
322
|
+
]
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"kind": "class",
|
|
326
|
+
"name": "OmgBanner",
|
|
327
|
+
"tagName": "omg-banner",
|
|
328
|
+
"customElement": true,
|
|
329
|
+
"description": "`<omg-banner tone=\"info|good|warning|bad\" heading>`: a message across the page, such as a failure and what to do about it. Slots: the message, and `actions`. A `bad` banner is an alert; the others are a status.",
|
|
330
|
+
"superclass": {
|
|
331
|
+
"name": "HTMLElement",
|
|
332
|
+
"package": "global:"
|
|
333
|
+
},
|
|
334
|
+
"attributes": [
|
|
335
|
+
{
|
|
336
|
+
"name": "heading",
|
|
337
|
+
"description": "A title above the message.",
|
|
338
|
+
"type": {
|
|
339
|
+
"text": "string"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"name": "tone",
|
|
344
|
+
"description": "Plain by default.",
|
|
345
|
+
"type": {
|
|
346
|
+
"text": "\"info\" | \"good\" | \"warning\" | \"bad\""
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"members": [],
|
|
351
|
+
"events": [],
|
|
352
|
+
"slots": [
|
|
353
|
+
{
|
|
354
|
+
"name": "",
|
|
355
|
+
"description": "The message."
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "actions",
|
|
359
|
+
"description": "Buttons after the message."
|
|
360
|
+
}
|
|
361
|
+
],
|
|
362
|
+
"cssParts": [
|
|
363
|
+
{
|
|
364
|
+
"name": "actions",
|
|
365
|
+
"description": "The buttons' row; hidden when empty."
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "heading",
|
|
369
|
+
"description": "The title."
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "message",
|
|
373
|
+
"description": "The message."
|
|
374
|
+
}
|
|
375
|
+
],
|
|
376
|
+
"cssProperties": []
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"kind": "class",
|
|
380
|
+
"name": "OmgLog",
|
|
381
|
+
"tagName": "omg-log",
|
|
382
|
+
"customElement": true,
|
|
383
|
+
"description": "`<omg-log empty=\"No lines yet.\" follow>`: lines of output in the app's monospace type, scrolling past `--omg-log-height` (280px). Its text is its content, or set `text`. With `follow`, it keeps the latest line in view unless the person scrolled up.",
|
|
384
|
+
"superclass": {
|
|
385
|
+
"name": "HTMLElement",
|
|
386
|
+
"package": "global:"
|
|
387
|
+
},
|
|
388
|
+
"attributes": [
|
|
389
|
+
{
|
|
390
|
+
"name": "empty",
|
|
391
|
+
"description": "What it says with no lines.",
|
|
392
|
+
"type": {
|
|
393
|
+
"text": "string"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"name": "follow",
|
|
398
|
+
"description": "Keeps the latest line in view.",
|
|
399
|
+
"type": {
|
|
400
|
+
"text": "boolean"
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
],
|
|
404
|
+
"members": [
|
|
405
|
+
{
|
|
406
|
+
"kind": "field",
|
|
407
|
+
"name": "text",
|
|
408
|
+
"description": "Its lines.",
|
|
409
|
+
"type": {
|
|
410
|
+
"text": "string"
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
"events": [],
|
|
415
|
+
"slots": [
|
|
416
|
+
{
|
|
417
|
+
"name": "",
|
|
418
|
+
"description": "Its lines, as text."
|
|
419
|
+
}
|
|
420
|
+
],
|
|
421
|
+
"cssParts": [
|
|
422
|
+
{
|
|
423
|
+
"name": "empty",
|
|
424
|
+
"description": "The text shown with no lines."
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"name": "log",
|
|
428
|
+
"description": "The lines; hidden with none."
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
"cssProperties": [
|
|
432
|
+
{
|
|
433
|
+
"name": "--omg-log-height",
|
|
434
|
+
"default": "280px",
|
|
435
|
+
"description": "How tall it grows before it scrolls."
|
|
436
|
+
}
|
|
437
|
+
]
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"kind": "class",
|
|
441
|
+
"name": "OmgSteps",
|
|
442
|
+
"tagName": "omg-steps",
|
|
443
|
+
"customElement": true,
|
|
444
|
+
"description": "`<omg-steps>`: the steps of a flow, numbered in order. Each is an `<omg-step heading state=\"pending|current|done|error\" open>`; a current or failed step shows its content, and `open` shows it in any state. Slots of a step: `summary`, always shown under its heading, and its content.",
|
|
445
|
+
"superclass": {
|
|
446
|
+
"name": "HTMLElement",
|
|
447
|
+
"package": "global:"
|
|
448
|
+
},
|
|
449
|
+
"attributes": [],
|
|
450
|
+
"members": [],
|
|
451
|
+
"events": [],
|
|
452
|
+
"slots": [
|
|
453
|
+
{
|
|
454
|
+
"name": "",
|
|
455
|
+
"description": "Its `omg-step` elements."
|
|
456
|
+
}
|
|
457
|
+
],
|
|
458
|
+
"cssParts": [],
|
|
459
|
+
"cssProperties": []
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"kind": "class",
|
|
463
|
+
"name": "OmgStep",
|
|
464
|
+
"tagName": "omg-step",
|
|
465
|
+
"customElement": true,
|
|
466
|
+
"description": "`<omg-step heading state open>`: one step of an `omg-steps` flow.",
|
|
467
|
+
"superclass": {
|
|
468
|
+
"name": "HTMLElement",
|
|
469
|
+
"package": "global:"
|
|
470
|
+
},
|
|
471
|
+
"attributes": [
|
|
472
|
+
{
|
|
473
|
+
"name": "heading",
|
|
474
|
+
"description": "What the step does.",
|
|
475
|
+
"type": {
|
|
476
|
+
"text": "string"
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"name": "number",
|
|
481
|
+
"description": "Its place in the flow, which `omg-steps` sets.",
|
|
482
|
+
"type": {
|
|
483
|
+
"text": "string"
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"name": "open",
|
|
488
|
+
"description": "Shows its content in any state.",
|
|
489
|
+
"type": {
|
|
490
|
+
"text": "boolean"
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"name": "state",
|
|
495
|
+
"description": "Pending by default.",
|
|
496
|
+
"type": {
|
|
497
|
+
"text": "\"pending\" | \"current\" | \"done\" | \"error\""
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
],
|
|
501
|
+
"members": [],
|
|
502
|
+
"events": [],
|
|
503
|
+
"slots": [
|
|
504
|
+
{
|
|
505
|
+
"name": "",
|
|
506
|
+
"description": "What the step shows while it is current or failed."
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"name": "summary",
|
|
510
|
+
"description": "Always shown under the heading, such as what a finished step did."
|
|
511
|
+
}
|
|
512
|
+
],
|
|
513
|
+
"cssParts": [
|
|
514
|
+
{
|
|
515
|
+
"name": "body",
|
|
516
|
+
"description": "The content."
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"name": "heading",
|
|
520
|
+
"description": "The heading."
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"name": "marker",
|
|
524
|
+
"description": "The number, check or failure mark."
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "summary",
|
|
528
|
+
"description": "The summary; hidden when empty."
|
|
529
|
+
}
|
|
530
|
+
],
|
|
531
|
+
"cssProperties": []
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"kind": "class",
|
|
535
|
+
"name": "OmgBadge",
|
|
536
|
+
"tagName": "omg-badge",
|
|
537
|
+
"customElement": true,
|
|
538
|
+
"description": "`<omg-badge tone>`: a short label for what something is or how it stands.",
|
|
539
|
+
"superclass": {
|
|
540
|
+
"name": "HTMLElement",
|
|
541
|
+
"package": "global:"
|
|
542
|
+
},
|
|
543
|
+
"attributes": [
|
|
544
|
+
{
|
|
545
|
+
"name": "tone",
|
|
546
|
+
"description": "Its colour; neutral by default.",
|
|
547
|
+
"type": {
|
|
548
|
+
"text": "\"neutral\" | \"info\" | \"good\" | \"warning\" | \"bad\""
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
],
|
|
552
|
+
"members": [],
|
|
553
|
+
"events": [],
|
|
554
|
+
"slots": [
|
|
555
|
+
{
|
|
556
|
+
"name": "",
|
|
557
|
+
"description": "The label."
|
|
558
|
+
}
|
|
559
|
+
],
|
|
560
|
+
"cssParts": [],
|
|
561
|
+
"cssProperties": []
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"kind": "class",
|
|
565
|
+
"name": "OmgProgress",
|
|
566
|
+
"tagName": "omg-progress",
|
|
567
|
+
"customElement": true,
|
|
568
|
+
"description": "`<omg-progress value max label>`: how far something has got, or a moving bar while nobody knows yet.",
|
|
569
|
+
"superclass": {
|
|
570
|
+
"name": "HTMLElement",
|
|
571
|
+
"package": "global:"
|
|
572
|
+
},
|
|
573
|
+
"attributes": [
|
|
574
|
+
{
|
|
575
|
+
"name": "label",
|
|
576
|
+
"description": "What is in progress, above the bar and for screen readers.",
|
|
577
|
+
"type": {
|
|
578
|
+
"text": "string"
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"name": "max",
|
|
583
|
+
"description": "What finished means; 100 by default.",
|
|
584
|
+
"type": {
|
|
585
|
+
"text": "number"
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"name": "value",
|
|
590
|
+
"description": "How far it has got; without one, the bar just moves.",
|
|
591
|
+
"type": {
|
|
592
|
+
"text": "number"
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
],
|
|
596
|
+
"members": [],
|
|
597
|
+
"events": [],
|
|
598
|
+
"slots": [],
|
|
599
|
+
"cssParts": [
|
|
600
|
+
{
|
|
601
|
+
"name": "bar",
|
|
602
|
+
"description": "The part that is done."
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"name": "label",
|
|
606
|
+
"description": "The label; hidden when empty."
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"name": "track",
|
|
610
|
+
"description": "The whole bar."
|
|
611
|
+
}
|
|
612
|
+
],
|
|
613
|
+
"cssProperties": []
|
|
614
|
+
}
|
|
615
|
+
],
|
|
616
|
+
"exports": [
|
|
617
|
+
{
|
|
618
|
+
"kind": "custom-element-definition",
|
|
619
|
+
"name": "omg-status",
|
|
620
|
+
"declaration": {
|
|
621
|
+
"name": "OmgStatus",
|
|
622
|
+
"module": "ui/1/feedback.js"
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"kind": "custom-element-definition",
|
|
627
|
+
"name": "omg-banner",
|
|
628
|
+
"declaration": {
|
|
629
|
+
"name": "OmgBanner",
|
|
630
|
+
"module": "ui/1/feedback.js"
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"kind": "custom-element-definition",
|
|
635
|
+
"name": "omg-log",
|
|
636
|
+
"declaration": {
|
|
637
|
+
"name": "OmgLog",
|
|
638
|
+
"module": "ui/1/feedback.js"
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"kind": "custom-element-definition",
|
|
643
|
+
"name": "omg-steps",
|
|
644
|
+
"declaration": {
|
|
645
|
+
"name": "OmgSteps",
|
|
646
|
+
"module": "ui/1/feedback.js"
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"kind": "custom-element-definition",
|
|
651
|
+
"name": "omg-step",
|
|
652
|
+
"declaration": {
|
|
653
|
+
"name": "OmgStep",
|
|
654
|
+
"module": "ui/1/feedback.js"
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"kind": "custom-element-definition",
|
|
659
|
+
"name": "omg-badge",
|
|
660
|
+
"declaration": {
|
|
661
|
+
"name": "OmgBadge",
|
|
662
|
+
"module": "ui/1/feedback.js"
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
"kind": "custom-element-definition",
|
|
667
|
+
"name": "omg-progress",
|
|
668
|
+
"declaration": {
|
|
669
|
+
"name": "OmgProgress",
|
|
670
|
+
"module": "ui/1/feedback.js"
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
]
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"kind": "javascript-module",
|
|
677
|
+
"path": "ui/1/forms.js",
|
|
678
|
+
"declarations": [
|
|
679
|
+
{
|
|
680
|
+
"kind": "class",
|
|
681
|
+
"name": "OmgInput",
|
|
682
|
+
"tagName": "omg-input",
|
|
683
|
+
"customElement": true,
|
|
684
|
+
"description": "`<omg-input label value type placeholder hint error>`: one line of text.",
|
|
685
|
+
"superclass": {
|
|
686
|
+
"name": "HTMLElement",
|
|
687
|
+
"package": "global:"
|
|
688
|
+
},
|
|
689
|
+
"attributes": [
|
|
690
|
+
{
|
|
691
|
+
"name": "aria-label",
|
|
692
|
+
"description": "Its name, without a label.",
|
|
693
|
+
"type": {
|
|
694
|
+
"text": "string"
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"name": "disabled",
|
|
699
|
+
"description": "Can't be changed.",
|
|
700
|
+
"type": {
|
|
701
|
+
"text": "boolean"
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"name": "error",
|
|
706
|
+
"description": "What's wrong with its value.",
|
|
707
|
+
"type": {
|
|
708
|
+
"text": "string"
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"name": "hint",
|
|
713
|
+
"description": "A line under it; an error takes its place.",
|
|
714
|
+
"type": {
|
|
715
|
+
"text": "string"
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"name": "label",
|
|
720
|
+
"description": "Shown with it.",
|
|
721
|
+
"type": {
|
|
722
|
+
"text": "string"
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"name": "placeholder",
|
|
727
|
+
"description": "Shown while it is empty.",
|
|
728
|
+
"type": {
|
|
729
|
+
"text": "string"
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"name": "readonly",
|
|
734
|
+
"description": "Can be read and copied, not changed.",
|
|
735
|
+
"type": {
|
|
736
|
+
"text": "boolean"
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"name": "type",
|
|
741
|
+
"description": "What it holds; text by default.",
|
|
742
|
+
"type": {
|
|
743
|
+
"text": "\"text\" | \"search\" | \"password\" | \"number\" | \"email\" | \"url\""
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"name": "value",
|
|
748
|
+
"description": "Its text; setting it replaces what was typed.",
|
|
749
|
+
"type": {
|
|
750
|
+
"text": "string"
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
],
|
|
754
|
+
"members": [
|
|
755
|
+
{
|
|
756
|
+
"kind": "field",
|
|
757
|
+
"name": "value",
|
|
758
|
+
"description": "Its text.",
|
|
759
|
+
"type": {
|
|
760
|
+
"text": "string"
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
],
|
|
764
|
+
"events": [
|
|
765
|
+
{
|
|
766
|
+
"name": "change",
|
|
767
|
+
"description": "The person changed it.",
|
|
768
|
+
"type": {
|
|
769
|
+
"text": "Event"
|
|
770
|
+
}
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"name": "input",
|
|
774
|
+
"description": "The person is changing it.",
|
|
775
|
+
"type": {
|
|
776
|
+
"text": "Event"
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
],
|
|
780
|
+
"slots": [],
|
|
781
|
+
"cssParts": [
|
|
782
|
+
{
|
|
783
|
+
"name": "error",
|
|
784
|
+
"description": "The error; hidden when empty."
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"name": "field",
|
|
788
|
+
"description": "The label around it."
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"name": "hint",
|
|
792
|
+
"description": "The hint; hidden when empty or when there is an error."
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"name": "input",
|
|
796
|
+
"description": "The native input."
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"name": "label",
|
|
800
|
+
"description": "The label's text."
|
|
801
|
+
}
|
|
802
|
+
],
|
|
803
|
+
"cssProperties": []
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"kind": "class",
|
|
807
|
+
"name": "OmgTextarea",
|
|
808
|
+
"tagName": "omg-textarea",
|
|
809
|
+
"customElement": true,
|
|
810
|
+
"description": "`<omg-textarea label value rows placeholder hint error>`: several lines of text.",
|
|
811
|
+
"superclass": {
|
|
812
|
+
"name": "HTMLElement",
|
|
813
|
+
"package": "global:"
|
|
814
|
+
},
|
|
815
|
+
"attributes": [
|
|
816
|
+
{
|
|
817
|
+
"name": "aria-label",
|
|
818
|
+
"description": "Its name, without a label.",
|
|
819
|
+
"type": {
|
|
820
|
+
"text": "string"
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"name": "disabled",
|
|
825
|
+
"description": "Can't be changed.",
|
|
826
|
+
"type": {
|
|
827
|
+
"text": "boolean"
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"name": "error",
|
|
832
|
+
"description": "What's wrong with its value.",
|
|
833
|
+
"type": {
|
|
834
|
+
"text": "string"
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"name": "hint",
|
|
839
|
+
"description": "A line under it; an error takes its place.",
|
|
840
|
+
"type": {
|
|
841
|
+
"text": "string"
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"name": "label",
|
|
846
|
+
"description": "Shown with it.",
|
|
847
|
+
"type": {
|
|
848
|
+
"text": "string"
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"name": "placeholder",
|
|
853
|
+
"description": "Shown while it is empty.",
|
|
854
|
+
"type": {
|
|
855
|
+
"text": "string"
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"name": "readonly",
|
|
860
|
+
"description": "Can be read and copied, not changed.",
|
|
861
|
+
"type": {
|
|
862
|
+
"text": "boolean"
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"name": "rows",
|
|
867
|
+
"description": "How many lines it shows; 3 by default.",
|
|
868
|
+
"type": {
|
|
869
|
+
"text": "number"
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"name": "value",
|
|
874
|
+
"description": "Its text; setting it replaces what was typed.",
|
|
875
|
+
"type": {
|
|
876
|
+
"text": "string"
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
],
|
|
880
|
+
"members": [
|
|
881
|
+
{
|
|
882
|
+
"kind": "field",
|
|
883
|
+
"name": "value",
|
|
884
|
+
"description": "Its text.",
|
|
885
|
+
"type": {
|
|
886
|
+
"text": "string"
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
],
|
|
890
|
+
"events": [
|
|
891
|
+
{
|
|
892
|
+
"name": "change",
|
|
893
|
+
"description": "The person changed it.",
|
|
894
|
+
"type": {
|
|
895
|
+
"text": "Event"
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"name": "input",
|
|
900
|
+
"description": "The person is changing it.",
|
|
901
|
+
"type": {
|
|
902
|
+
"text": "Event"
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
],
|
|
906
|
+
"slots": [],
|
|
907
|
+
"cssParts": [
|
|
908
|
+
{
|
|
909
|
+
"name": "error",
|
|
910
|
+
"description": "The error; hidden when empty."
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"name": "field",
|
|
914
|
+
"description": "The label around it."
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"name": "hint",
|
|
918
|
+
"description": "The hint; hidden when empty or when there is an error."
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"name": "label",
|
|
922
|
+
"description": "The label's text."
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
"name": "textarea",
|
|
926
|
+
"description": "The native textarea."
|
|
927
|
+
}
|
|
928
|
+
],
|
|
929
|
+
"cssProperties": []
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"kind": "class",
|
|
933
|
+
"name": "OmgSwitch",
|
|
934
|
+
"tagName": "omg-switch",
|
|
935
|
+
"customElement": true,
|
|
936
|
+
"description": "`<omg-switch label checked hint>`: turns a setting on or off at once, with its label at the row's start and the switch at its end.",
|
|
937
|
+
"superclass": {
|
|
938
|
+
"name": "HTMLElement",
|
|
939
|
+
"package": "global:"
|
|
940
|
+
},
|
|
941
|
+
"attributes": [
|
|
942
|
+
{
|
|
943
|
+
"name": "aria-label",
|
|
944
|
+
"description": "Its name, without a label.",
|
|
945
|
+
"type": {
|
|
946
|
+
"text": "string"
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
"name": "checked",
|
|
951
|
+
"description": "It is on.",
|
|
952
|
+
"type": {
|
|
953
|
+
"text": "boolean"
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
"name": "disabled",
|
|
958
|
+
"description": "Can't be changed.",
|
|
959
|
+
"type": {
|
|
960
|
+
"text": "boolean"
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"name": "error",
|
|
965
|
+
"description": "What's wrong with its value.",
|
|
966
|
+
"type": {
|
|
967
|
+
"text": "string"
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"name": "hint",
|
|
972
|
+
"description": "A line under it; an error takes its place.",
|
|
973
|
+
"type": {
|
|
974
|
+
"text": "string"
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"name": "label",
|
|
979
|
+
"description": "Shown with it.",
|
|
980
|
+
"type": {
|
|
981
|
+
"text": "string"
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
],
|
|
985
|
+
"members": [
|
|
986
|
+
{
|
|
987
|
+
"kind": "field",
|
|
988
|
+
"name": "checked",
|
|
989
|
+
"description": "It is on.",
|
|
990
|
+
"type": {
|
|
991
|
+
"text": "boolean"
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
],
|
|
995
|
+
"events": [
|
|
996
|
+
{
|
|
997
|
+
"name": "change",
|
|
998
|
+
"description": "The person changed it.",
|
|
999
|
+
"type": {
|
|
1000
|
+
"text": "Event"
|
|
1001
|
+
}
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
"name": "input",
|
|
1005
|
+
"description": "The person is changing it.",
|
|
1006
|
+
"type": {
|
|
1007
|
+
"text": "Event"
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
],
|
|
1011
|
+
"slots": [],
|
|
1012
|
+
"cssParts": [
|
|
1013
|
+
{
|
|
1014
|
+
"name": "error",
|
|
1015
|
+
"description": "The error; hidden when empty."
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
"name": "field",
|
|
1019
|
+
"description": "The label around it."
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
"name": "hint",
|
|
1023
|
+
"description": "The hint; hidden when empty or when there is an error."
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
"name": "label",
|
|
1027
|
+
"description": "The label's text."
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
"name": "switch",
|
|
1031
|
+
"description": "The native checkbox."
|
|
1032
|
+
}
|
|
1033
|
+
],
|
|
1034
|
+
"cssProperties": [
|
|
1035
|
+
{
|
|
1036
|
+
"name": "--omg-accent",
|
|
1037
|
+
"description": "The plugin's brand colour, for the switch when on."
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
"name": "--omg-on-accent",
|
|
1041
|
+
"description": "The colour of the thumb when on."
|
|
1042
|
+
}
|
|
1043
|
+
]
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"kind": "class",
|
|
1047
|
+
"name": "OmgCheckbox",
|
|
1048
|
+
"tagName": "omg-checkbox",
|
|
1049
|
+
"customElement": true,
|
|
1050
|
+
"description": "`<omg-checkbox label checked hint>`: a choice that takes effect with the rest of a form, with the box before its label.",
|
|
1051
|
+
"superclass": {
|
|
1052
|
+
"name": "HTMLElement",
|
|
1053
|
+
"package": "global:"
|
|
1054
|
+
},
|
|
1055
|
+
"attributes": [
|
|
1056
|
+
{
|
|
1057
|
+
"name": "aria-label",
|
|
1058
|
+
"description": "Its name, without a label.",
|
|
1059
|
+
"type": {
|
|
1060
|
+
"text": "string"
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"name": "checked",
|
|
1065
|
+
"description": "It is on.",
|
|
1066
|
+
"type": {
|
|
1067
|
+
"text": "boolean"
|
|
1068
|
+
}
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
"name": "disabled",
|
|
1072
|
+
"description": "Can't be changed.",
|
|
1073
|
+
"type": {
|
|
1074
|
+
"text": "boolean"
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"name": "error",
|
|
1079
|
+
"description": "What's wrong with its value.",
|
|
1080
|
+
"type": {
|
|
1081
|
+
"text": "string"
|
|
1082
|
+
}
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"name": "hint",
|
|
1086
|
+
"description": "A line under it; an error takes its place.",
|
|
1087
|
+
"type": {
|
|
1088
|
+
"text": "string"
|
|
1089
|
+
}
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
"name": "label",
|
|
1093
|
+
"description": "Shown with it.",
|
|
1094
|
+
"type": {
|
|
1095
|
+
"text": "string"
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
],
|
|
1099
|
+
"members": [
|
|
1100
|
+
{
|
|
1101
|
+
"kind": "field",
|
|
1102
|
+
"name": "checked",
|
|
1103
|
+
"description": "It is on.",
|
|
1104
|
+
"type": {
|
|
1105
|
+
"text": "boolean"
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
],
|
|
1109
|
+
"events": [
|
|
1110
|
+
{
|
|
1111
|
+
"name": "change",
|
|
1112
|
+
"description": "The person changed it.",
|
|
1113
|
+
"type": {
|
|
1114
|
+
"text": "Event"
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"name": "input",
|
|
1119
|
+
"description": "The person is changing it.",
|
|
1120
|
+
"type": {
|
|
1121
|
+
"text": "Event"
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
],
|
|
1125
|
+
"slots": [],
|
|
1126
|
+
"cssParts": [
|
|
1127
|
+
{
|
|
1128
|
+
"name": "checkbox",
|
|
1129
|
+
"description": "The native checkbox."
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"name": "error",
|
|
1133
|
+
"description": "The error; hidden when empty."
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
"name": "field",
|
|
1137
|
+
"description": "The label around it."
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
"name": "hint",
|
|
1141
|
+
"description": "The hint; hidden when empty or when there is an error."
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"name": "label",
|
|
1145
|
+
"description": "The label's text."
|
|
1146
|
+
}
|
|
1147
|
+
],
|
|
1148
|
+
"cssProperties": [
|
|
1149
|
+
{
|
|
1150
|
+
"name": "--omg-accent",
|
|
1151
|
+
"description": "The plugin's brand colour, for the box when checked."
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
"name": "--omg-on-accent",
|
|
1155
|
+
"description": "The colour of the check."
|
|
1156
|
+
}
|
|
1157
|
+
]
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
"kind": "class",
|
|
1161
|
+
"name": "OmgSelect",
|
|
1162
|
+
"tagName": "omg-select",
|
|
1163
|
+
"customElement": true,
|
|
1164
|
+
"description": "`<omg-select label value hint error disabled>` with `<option>` children: the app's dropdown. Its list stays inside the panel and scrolls.",
|
|
1165
|
+
"superclass": {
|
|
1166
|
+
"name": "HTMLElement",
|
|
1167
|
+
"package": "global:"
|
|
1168
|
+
},
|
|
1169
|
+
"attributes": [
|
|
1170
|
+
{
|
|
1171
|
+
"name": "aria-label",
|
|
1172
|
+
"description": "Its name, without a label.",
|
|
1173
|
+
"type": {
|
|
1174
|
+
"text": "string"
|
|
1175
|
+
}
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
"name": "disabled",
|
|
1179
|
+
"description": "Can't be changed.",
|
|
1180
|
+
"type": {
|
|
1181
|
+
"text": "boolean"
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
"name": "error",
|
|
1186
|
+
"description": "What's wrong with its value.",
|
|
1187
|
+
"type": {
|
|
1188
|
+
"text": "string"
|
|
1189
|
+
}
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
"name": "hint",
|
|
1193
|
+
"description": "A line under it; an error takes its place.",
|
|
1194
|
+
"type": {
|
|
1195
|
+
"text": "string"
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"name": "label",
|
|
1200
|
+
"description": "Shown with it.",
|
|
1201
|
+
"type": {
|
|
1202
|
+
"text": "string"
|
|
1203
|
+
}
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
"name": "value",
|
|
1207
|
+
"description": "The chosen option's value.",
|
|
1208
|
+
"type": {
|
|
1209
|
+
"text": "string"
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
],
|
|
1213
|
+
"members": [
|
|
1214
|
+
{
|
|
1215
|
+
"kind": "field",
|
|
1216
|
+
"name": "value",
|
|
1217
|
+
"description": "The chosen option's value.",
|
|
1218
|
+
"type": {
|
|
1219
|
+
"text": "string"
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
],
|
|
1223
|
+
"events": [
|
|
1224
|
+
{
|
|
1225
|
+
"name": "change",
|
|
1226
|
+
"description": "The person changed it.",
|
|
1227
|
+
"type": {
|
|
1228
|
+
"text": "Event"
|
|
1229
|
+
}
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
"name": "input",
|
|
1233
|
+
"description": "The person is changing it.",
|
|
1234
|
+
"type": {
|
|
1235
|
+
"text": "Event"
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
],
|
|
1239
|
+
"slots": [],
|
|
1240
|
+
"cssParts": [
|
|
1241
|
+
{
|
|
1242
|
+
"name": "error",
|
|
1243
|
+
"description": "The error; hidden when empty."
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
"name": "field",
|
|
1247
|
+
"description": "The label around it."
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"name": "hint",
|
|
1251
|
+
"description": "The hint; hidden when empty or when there is an error."
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
"name": "label",
|
|
1255
|
+
"description": "The label's text."
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
"name": "select",
|
|
1259
|
+
"description": "The native select."
|
|
1260
|
+
}
|
|
1261
|
+
],
|
|
1262
|
+
"cssProperties": []
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"kind": "class",
|
|
1266
|
+
"name": "OmgSegmented",
|
|
1267
|
+
"tagName": "omg-segmented",
|
|
1268
|
+
"customElement": true,
|
|
1269
|
+
"description": "`<omg-segmented label value hint error disabled>` with `<option>` children: a few choices side by side, all in view. Arrow keys move between them.",
|
|
1270
|
+
"superclass": {
|
|
1271
|
+
"name": "HTMLElement",
|
|
1272
|
+
"package": "global:"
|
|
1273
|
+
},
|
|
1274
|
+
"attributes": [
|
|
1275
|
+
{
|
|
1276
|
+
"name": "aria-label",
|
|
1277
|
+
"description": "Its name, without a label.",
|
|
1278
|
+
"type": {
|
|
1279
|
+
"text": "string"
|
|
1280
|
+
}
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"name": "disabled",
|
|
1284
|
+
"description": "Can't be changed.",
|
|
1285
|
+
"type": {
|
|
1286
|
+
"text": "boolean"
|
|
1287
|
+
}
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"name": "error",
|
|
1291
|
+
"description": "What's wrong with its value.",
|
|
1292
|
+
"type": {
|
|
1293
|
+
"text": "string"
|
|
1294
|
+
}
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
"name": "hint",
|
|
1298
|
+
"description": "A line under it; an error takes its place.",
|
|
1299
|
+
"type": {
|
|
1300
|
+
"text": "string"
|
|
1301
|
+
}
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
"name": "label",
|
|
1305
|
+
"description": "Shown with it.",
|
|
1306
|
+
"type": {
|
|
1307
|
+
"text": "string"
|
|
1308
|
+
}
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"name": "value",
|
|
1312
|
+
"description": "The chosen option's value.",
|
|
1313
|
+
"type": {
|
|
1314
|
+
"text": "string"
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
],
|
|
1318
|
+
"members": [
|
|
1319
|
+
{
|
|
1320
|
+
"kind": "field",
|
|
1321
|
+
"name": "value",
|
|
1322
|
+
"description": "The chosen option's value.",
|
|
1323
|
+
"type": {
|
|
1324
|
+
"text": "string"
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
],
|
|
1328
|
+
"events": [
|
|
1329
|
+
{
|
|
1330
|
+
"name": "change",
|
|
1331
|
+
"description": "The person changed it.",
|
|
1332
|
+
"type": {
|
|
1333
|
+
"text": "Event"
|
|
1334
|
+
}
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"name": "input",
|
|
1338
|
+
"description": "The person is changing it.",
|
|
1339
|
+
"type": {
|
|
1340
|
+
"text": "Event"
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
],
|
|
1344
|
+
"slots": [],
|
|
1345
|
+
"cssParts": [
|
|
1346
|
+
{
|
|
1347
|
+
"name": "error",
|
|
1348
|
+
"description": "The error; hidden when empty."
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"name": "field",
|
|
1352
|
+
"description": "The label around it."
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"name": "hint",
|
|
1356
|
+
"description": "The hint; hidden when empty or when there is an error."
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"name": "label",
|
|
1360
|
+
"description": "The label's text."
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"name": "segment",
|
|
1364
|
+
"description": "One choice."
|
|
1365
|
+
},
|
|
1366
|
+
{
|
|
1367
|
+
"name": "segments",
|
|
1368
|
+
"description": "The row of choices."
|
|
1369
|
+
}
|
|
1370
|
+
],
|
|
1371
|
+
"cssProperties": []
|
|
1372
|
+
}
|
|
1373
|
+
],
|
|
1374
|
+
"exports": [
|
|
1375
|
+
{
|
|
1376
|
+
"kind": "custom-element-definition",
|
|
1377
|
+
"name": "omg-input",
|
|
1378
|
+
"declaration": {
|
|
1379
|
+
"name": "OmgInput",
|
|
1380
|
+
"module": "ui/1/forms.js"
|
|
1381
|
+
}
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
"kind": "custom-element-definition",
|
|
1385
|
+
"name": "omg-textarea",
|
|
1386
|
+
"declaration": {
|
|
1387
|
+
"name": "OmgTextarea",
|
|
1388
|
+
"module": "ui/1/forms.js"
|
|
1389
|
+
}
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"kind": "custom-element-definition",
|
|
1393
|
+
"name": "omg-switch",
|
|
1394
|
+
"declaration": {
|
|
1395
|
+
"name": "OmgSwitch",
|
|
1396
|
+
"module": "ui/1/forms.js"
|
|
1397
|
+
}
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
"kind": "custom-element-definition",
|
|
1401
|
+
"name": "omg-checkbox",
|
|
1402
|
+
"declaration": {
|
|
1403
|
+
"name": "OmgCheckbox",
|
|
1404
|
+
"module": "ui/1/forms.js"
|
|
1405
|
+
}
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
"kind": "custom-element-definition",
|
|
1409
|
+
"name": "omg-select",
|
|
1410
|
+
"declaration": {
|
|
1411
|
+
"name": "OmgSelect",
|
|
1412
|
+
"module": "ui/1/forms.js"
|
|
1413
|
+
}
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
"kind": "custom-element-definition",
|
|
1417
|
+
"name": "omg-segmented",
|
|
1418
|
+
"declaration": {
|
|
1419
|
+
"name": "OmgSegmented",
|
|
1420
|
+
"module": "ui/1/forms.js"
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
]
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
"kind": "javascript-module",
|
|
1427
|
+
"path": "ui/1/layout.js",
|
|
1428
|
+
"declarations": [
|
|
1429
|
+
{
|
|
1430
|
+
"kind": "class",
|
|
1431
|
+
"name": "OmgPage",
|
|
1432
|
+
"tagName": "omg-page",
|
|
1433
|
+
"customElement": true,
|
|
1434
|
+
"description": "`<omg-page heading description wide>`: the page's column, centred and at most 720px wide, or the panel's whole width when `wide`. Slots: `brand` (a logo before the heading), `actions`, and the page's sections.",
|
|
1435
|
+
"superclass": {
|
|
1436
|
+
"name": "HTMLElement",
|
|
1437
|
+
"package": "global:"
|
|
1438
|
+
},
|
|
1439
|
+
"attributes": [
|
|
1440
|
+
{
|
|
1441
|
+
"name": "description",
|
|
1442
|
+
"description": "A line under the title.",
|
|
1443
|
+
"type": {
|
|
1444
|
+
"text": "string"
|
|
1445
|
+
}
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
"name": "heading",
|
|
1449
|
+
"description": "The page's title.",
|
|
1450
|
+
"type": {
|
|
1451
|
+
"text": "string"
|
|
1452
|
+
}
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
"name": "wide",
|
|
1456
|
+
"description": "Fills the panel's width, for a page with a sidebar or a grid.",
|
|
1457
|
+
"type": {
|
|
1458
|
+
"text": "boolean"
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
],
|
|
1462
|
+
"members": [],
|
|
1463
|
+
"events": [],
|
|
1464
|
+
"slots": [
|
|
1465
|
+
{
|
|
1466
|
+
"name": "",
|
|
1467
|
+
"description": "The page's sections."
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
"name": "actions",
|
|
1471
|
+
"description": "Buttons beside the heading."
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"name": "brand",
|
|
1475
|
+
"description": "A logo before the heading."
|
|
1476
|
+
}
|
|
1477
|
+
],
|
|
1478
|
+
"cssParts": [
|
|
1479
|
+
{
|
|
1480
|
+
"name": "body",
|
|
1481
|
+
"description": "The column of sections."
|
|
1482
|
+
},
|
|
1483
|
+
{
|
|
1484
|
+
"name": "description",
|
|
1485
|
+
"description": "The line under the title."
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
"name": "header",
|
|
1489
|
+
"description": "The row of the brand, titles and actions; hidden when empty."
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
"name": "heading",
|
|
1493
|
+
"description": "The title."
|
|
1494
|
+
}
|
|
1495
|
+
],
|
|
1496
|
+
"cssProperties": []
|
|
1497
|
+
},
|
|
1498
|
+
{
|
|
1499
|
+
"kind": "class",
|
|
1500
|
+
"name": "OmgSection",
|
|
1501
|
+
"tagName": "omg-section",
|
|
1502
|
+
"customElement": true,
|
|
1503
|
+
"description": "`<omg-section heading description>`: a titled group of content. Slots: `actions` beside the heading, and the section's content.",
|
|
1504
|
+
"superclass": {
|
|
1505
|
+
"name": "HTMLElement",
|
|
1506
|
+
"package": "global:"
|
|
1507
|
+
},
|
|
1508
|
+
"attributes": [
|
|
1509
|
+
{
|
|
1510
|
+
"name": "description",
|
|
1511
|
+
"description": "A line under the title.",
|
|
1512
|
+
"type": {
|
|
1513
|
+
"text": "string"
|
|
1514
|
+
}
|
|
1515
|
+
},
|
|
1516
|
+
{
|
|
1517
|
+
"name": "heading",
|
|
1518
|
+
"description": "The section's title, which names it.",
|
|
1519
|
+
"type": {
|
|
1520
|
+
"text": "string"
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
],
|
|
1524
|
+
"members": [],
|
|
1525
|
+
"events": [],
|
|
1526
|
+
"slots": [
|
|
1527
|
+
{
|
|
1528
|
+
"name": "",
|
|
1529
|
+
"description": "The section's content."
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
"name": "actions",
|
|
1533
|
+
"description": "Buttons beside the heading."
|
|
1534
|
+
}
|
|
1535
|
+
],
|
|
1536
|
+
"cssParts": [
|
|
1537
|
+
{
|
|
1538
|
+
"name": "body",
|
|
1539
|
+
"description": "The column of content."
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
"name": "description",
|
|
1543
|
+
"description": "The line under the title."
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
"name": "header",
|
|
1547
|
+
"description": "The titles and actions; hidden when empty."
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
"name": "heading",
|
|
1551
|
+
"description": "The title."
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
"name": "section",
|
|
1555
|
+
"description": "The section."
|
|
1556
|
+
}
|
|
1557
|
+
],
|
|
1558
|
+
"cssProperties": []
|
|
1559
|
+
},
|
|
1560
|
+
{
|
|
1561
|
+
"kind": "class",
|
|
1562
|
+
"name": "OmgStack",
|
|
1563
|
+
"tagName": "omg-stack",
|
|
1564
|
+
"customElement": true,
|
|
1565
|
+
"description": "`<omg-stack direction=\"row|column\" gap=\"1|2|3|4|6\" align justify wrap>`: lays its children out in a row or a column, spaced by the app's steps.",
|
|
1566
|
+
"superclass": {
|
|
1567
|
+
"name": "HTMLElement",
|
|
1568
|
+
"package": "global:"
|
|
1569
|
+
},
|
|
1570
|
+
"attributes": [
|
|
1571
|
+
{
|
|
1572
|
+
"name": "align",
|
|
1573
|
+
"description": "How children line up across it.",
|
|
1574
|
+
"type": {
|
|
1575
|
+
"text": "\"start\" | \"center\" | \"end\" | \"stretch\" | \"baseline\""
|
|
1576
|
+
}
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
"name": "direction",
|
|
1580
|
+
"description": "Column by default.",
|
|
1581
|
+
"type": {
|
|
1582
|
+
"text": "\"column\" | \"row\""
|
|
1583
|
+
}
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
"name": "gap",
|
|
1587
|
+
"description": "A space token; 2 by default.",
|
|
1588
|
+
"type": {
|
|
1589
|
+
"text": "\"0\" | \"1\" | \"2\" | \"3\" | \"4\" | \"6\""
|
|
1590
|
+
}
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
"name": "justify",
|
|
1594
|
+
"description": "How children are spread along it.",
|
|
1595
|
+
"type": {
|
|
1596
|
+
"text": "\"start\" | \"center\" | \"end\" | \"between\""
|
|
1597
|
+
}
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
"name": "wrap",
|
|
1601
|
+
"description": "Lets a row wrap.",
|
|
1602
|
+
"type": {
|
|
1603
|
+
"text": "boolean"
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
],
|
|
1607
|
+
"members": [],
|
|
1608
|
+
"events": [],
|
|
1609
|
+
"slots": [
|
|
1610
|
+
{
|
|
1611
|
+
"name": "",
|
|
1612
|
+
"description": "The children."
|
|
1613
|
+
}
|
|
1614
|
+
],
|
|
1615
|
+
"cssParts": [],
|
|
1616
|
+
"cssProperties": []
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
"kind": "class",
|
|
1620
|
+
"name": "OmgEmpty",
|
|
1621
|
+
"tagName": "omg-empty",
|
|
1622
|
+
"customElement": true,
|
|
1623
|
+
"description": "`<omg-empty heading description>`: what a page shows when it has nothing yet. Slots: `icon`, and actions as its content.",
|
|
1624
|
+
"superclass": {
|
|
1625
|
+
"name": "HTMLElement",
|
|
1626
|
+
"package": "global:"
|
|
1627
|
+
},
|
|
1628
|
+
"attributes": [
|
|
1629
|
+
{
|
|
1630
|
+
"name": "description",
|
|
1631
|
+
"description": "What to do about it.",
|
|
1632
|
+
"type": {
|
|
1633
|
+
"text": "string"
|
|
1634
|
+
}
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
"name": "heading",
|
|
1638
|
+
"description": "What is missing.",
|
|
1639
|
+
"type": {
|
|
1640
|
+
"text": "string"
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
],
|
|
1644
|
+
"members": [],
|
|
1645
|
+
"events": [],
|
|
1646
|
+
"slots": [
|
|
1647
|
+
{
|
|
1648
|
+
"name": "",
|
|
1649
|
+
"description": "Actions."
|
|
1650
|
+
},
|
|
1651
|
+
{
|
|
1652
|
+
"name": "icon",
|
|
1653
|
+
"description": "An icon above the heading."
|
|
1654
|
+
}
|
|
1655
|
+
],
|
|
1656
|
+
"cssParts": [
|
|
1657
|
+
{
|
|
1658
|
+
"name": "actions",
|
|
1659
|
+
"description": "The actions' row; hidden when empty."
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
"name": "description",
|
|
1663
|
+
"description": "The description."
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
"name": "heading",
|
|
1667
|
+
"description": "The heading."
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
"name": "icon",
|
|
1671
|
+
"description": "The icon's place; hidden when empty."
|
|
1672
|
+
}
|
|
1673
|
+
],
|
|
1674
|
+
"cssProperties": []
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
"kind": "class",
|
|
1678
|
+
"name": "OmgGrid",
|
|
1679
|
+
"tagName": "omg-grid",
|
|
1680
|
+
"customElement": true,
|
|
1681
|
+
"description": "`<omg-grid min columns gap>`: lays its children out in equal columns, as many as fit at `min` pixels wide each, or exactly `columns`.",
|
|
1682
|
+
"superclass": {
|
|
1683
|
+
"name": "HTMLElement",
|
|
1684
|
+
"package": "global:"
|
|
1685
|
+
},
|
|
1686
|
+
"attributes": [
|
|
1687
|
+
{
|
|
1688
|
+
"name": "columns",
|
|
1689
|
+
"description": "A fixed number of columns, in place of as many as fit.",
|
|
1690
|
+
"type": {
|
|
1691
|
+
"text": "number"
|
|
1692
|
+
}
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
"name": "gap",
|
|
1696
|
+
"description": "A space token; 3 by default.",
|
|
1697
|
+
"type": {
|
|
1698
|
+
"text": "\"0\" | \"1\" | \"2\" | \"3\" | \"4\" | \"6\""
|
|
1699
|
+
}
|
|
1700
|
+
},
|
|
1701
|
+
{
|
|
1702
|
+
"name": "min",
|
|
1703
|
+
"description": "The narrowest a column gets, in pixels; 240 by default.",
|
|
1704
|
+
"type": {
|
|
1705
|
+
"text": "number"
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
],
|
|
1709
|
+
"members": [],
|
|
1710
|
+
"events": [],
|
|
1711
|
+
"slots": [
|
|
1712
|
+
{
|
|
1713
|
+
"name": "",
|
|
1714
|
+
"description": "The children."
|
|
1715
|
+
}
|
|
1716
|
+
],
|
|
1717
|
+
"cssParts": [
|
|
1718
|
+
{
|
|
1719
|
+
"name": "grid",
|
|
1720
|
+
"description": "The grid."
|
|
1721
|
+
}
|
|
1722
|
+
],
|
|
1723
|
+
"cssProperties": []
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
"kind": "class",
|
|
1727
|
+
"name": "OmgSplit",
|
|
1728
|
+
"tagName": "omg-split",
|
|
1729
|
+
"customElement": true,
|
|
1730
|
+
"description": "`<omg-split side side-width>`: a sidebar beside the main content, which go one above the other when there isn't room for both.",
|
|
1731
|
+
"superclass": {
|
|
1732
|
+
"name": "HTMLElement",
|
|
1733
|
+
"package": "global:"
|
|
1734
|
+
},
|
|
1735
|
+
"attributes": [
|
|
1736
|
+
{
|
|
1737
|
+
"name": "side",
|
|
1738
|
+
"description": "Which side the sidebar is on; the start by default.",
|
|
1739
|
+
"type": {
|
|
1740
|
+
"text": "\"start\" | \"end\""
|
|
1741
|
+
}
|
|
1742
|
+
},
|
|
1743
|
+
{
|
|
1744
|
+
"name": "side-width",
|
|
1745
|
+
"description": "The sidebar's width in pixels; 240 by default.",
|
|
1746
|
+
"type": {
|
|
1747
|
+
"text": "number"
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
],
|
|
1751
|
+
"members": [],
|
|
1752
|
+
"events": [],
|
|
1753
|
+
"slots": [
|
|
1754
|
+
{
|
|
1755
|
+
"name": "",
|
|
1756
|
+
"description": "The main content."
|
|
1757
|
+
},
|
|
1758
|
+
{
|
|
1759
|
+
"name": "sidebar",
|
|
1760
|
+
"description": "The sidebar."
|
|
1761
|
+
}
|
|
1762
|
+
],
|
|
1763
|
+
"cssParts": [
|
|
1764
|
+
{
|
|
1765
|
+
"name": "main",
|
|
1766
|
+
"description": "The main content's place."
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
"name": "sidebar",
|
|
1770
|
+
"description": "The sidebar's place."
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
"name": "split",
|
|
1774
|
+
"description": "The two places together."
|
|
1775
|
+
}
|
|
1776
|
+
],
|
|
1777
|
+
"cssProperties": []
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
"kind": "class",
|
|
1781
|
+
"name": "OmgCard",
|
|
1782
|
+
"tagName": "omg-card",
|
|
1783
|
+
"customElement": true,
|
|
1784
|
+
"description": "`<omg-card heading description>`: a raised surface that groups its content.",
|
|
1785
|
+
"superclass": {
|
|
1786
|
+
"name": "HTMLElement",
|
|
1787
|
+
"package": "global:"
|
|
1788
|
+
},
|
|
1789
|
+
"attributes": [
|
|
1790
|
+
{
|
|
1791
|
+
"name": "description",
|
|
1792
|
+
"description": "A line under the title.",
|
|
1793
|
+
"type": {
|
|
1794
|
+
"text": "string"
|
|
1795
|
+
}
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
"name": "heading",
|
|
1799
|
+
"description": "The card's title.",
|
|
1800
|
+
"type": {
|
|
1801
|
+
"text": "string"
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
],
|
|
1805
|
+
"members": [],
|
|
1806
|
+
"events": [],
|
|
1807
|
+
"slots": [
|
|
1808
|
+
{
|
|
1809
|
+
"name": "",
|
|
1810
|
+
"description": "The content."
|
|
1811
|
+
},
|
|
1812
|
+
{
|
|
1813
|
+
"name": "actions",
|
|
1814
|
+
"description": "Buttons beside the heading."
|
|
1815
|
+
}
|
|
1816
|
+
],
|
|
1817
|
+
"cssParts": [
|
|
1818
|
+
{
|
|
1819
|
+
"name": "body",
|
|
1820
|
+
"description": "The content."
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
"name": "description",
|
|
1824
|
+
"description": "The line under the title."
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
"name": "header",
|
|
1828
|
+
"description": "The row of the titles and actions; hidden when empty."
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
"name": "heading",
|
|
1832
|
+
"description": "The title."
|
|
1833
|
+
}
|
|
1834
|
+
],
|
|
1835
|
+
"cssProperties": []
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
"kind": "class",
|
|
1839
|
+
"name": "OmgList",
|
|
1840
|
+
"tagName": "omg-list",
|
|
1841
|
+
"customElement": true,
|
|
1842
|
+
"description": "`<omg-list>`: rows of `omg-list-item`, with a hairline between them.",
|
|
1843
|
+
"superclass": {
|
|
1844
|
+
"name": "HTMLElement",
|
|
1845
|
+
"package": "global:"
|
|
1846
|
+
},
|
|
1847
|
+
"attributes": [],
|
|
1848
|
+
"members": [],
|
|
1849
|
+
"events": [],
|
|
1850
|
+
"slots": [
|
|
1851
|
+
{
|
|
1852
|
+
"name": "",
|
|
1853
|
+
"description": "The `omg-list-item` children."
|
|
1854
|
+
}
|
|
1855
|
+
],
|
|
1856
|
+
"cssParts": [],
|
|
1857
|
+
"cssProperties": []
|
|
1858
|
+
},
|
|
1859
|
+
{
|
|
1860
|
+
"kind": "class",
|
|
1861
|
+
"name": "OmgListItem",
|
|
1862
|
+
"tagName": "omg-list-item",
|
|
1863
|
+
"customElement": true,
|
|
1864
|
+
"description": "`<omg-list-item heading description>`: a row: an icon, a title and a line under it, then a value and buttons at its end.",
|
|
1865
|
+
"superclass": {
|
|
1866
|
+
"name": "HTMLElement",
|
|
1867
|
+
"package": "global:"
|
|
1868
|
+
},
|
|
1869
|
+
"attributes": [
|
|
1870
|
+
{
|
|
1871
|
+
"name": "description",
|
|
1872
|
+
"description": "A line under the title.",
|
|
1873
|
+
"type": {
|
|
1874
|
+
"text": "string"
|
|
1875
|
+
}
|
|
1876
|
+
},
|
|
1877
|
+
{
|
|
1878
|
+
"name": "heading",
|
|
1879
|
+
"description": "The row's title.",
|
|
1880
|
+
"type": {
|
|
1881
|
+
"text": "string"
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
],
|
|
1885
|
+
"members": [],
|
|
1886
|
+
"events": [],
|
|
1887
|
+
"slots": [
|
|
1888
|
+
{
|
|
1889
|
+
"name": "",
|
|
1890
|
+
"description": "The row's value, at its end."
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
"name": "actions",
|
|
1894
|
+
"description": "Buttons at its end, after the value."
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
"name": "leading",
|
|
1898
|
+
"description": "An icon or picture before the title; an `omg-image` is drawn as a 40px thumbnail."
|
|
1899
|
+
}
|
|
1900
|
+
],
|
|
1901
|
+
"cssParts": [
|
|
1902
|
+
{
|
|
1903
|
+
"name": "actions",
|
|
1904
|
+
"description": "The buttons' place; hidden when empty."
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
"name": "description",
|
|
1908
|
+
"description": "The line under the title."
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
"name": "heading",
|
|
1912
|
+
"description": "The title."
|
|
1913
|
+
},
|
|
1914
|
+
{
|
|
1915
|
+
"name": "leading",
|
|
1916
|
+
"description": "The leading place; hidden when empty."
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
"name": "value",
|
|
1920
|
+
"description": "The value's place; hidden when empty."
|
|
1921
|
+
}
|
|
1922
|
+
],
|
|
1923
|
+
"cssProperties": []
|
|
1924
|
+
},
|
|
1925
|
+
{
|
|
1926
|
+
"kind": "class",
|
|
1927
|
+
"name": "OmgDivider",
|
|
1928
|
+
"tagName": "omg-divider",
|
|
1929
|
+
"customElement": true,
|
|
1930
|
+
"description": "`<omg-divider label>`: a hairline between groups, with an optional label on it.",
|
|
1931
|
+
"superclass": {
|
|
1932
|
+
"name": "HTMLElement",
|
|
1933
|
+
"package": "global:"
|
|
1934
|
+
},
|
|
1935
|
+
"attributes": [
|
|
1936
|
+
{
|
|
1937
|
+
"name": "label",
|
|
1938
|
+
"description": "Text on the line.",
|
|
1939
|
+
"type": {
|
|
1940
|
+
"text": "string"
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
],
|
|
1944
|
+
"members": [],
|
|
1945
|
+
"events": [],
|
|
1946
|
+
"slots": [],
|
|
1947
|
+
"cssParts": [
|
|
1948
|
+
{
|
|
1949
|
+
"name": "label",
|
|
1950
|
+
"description": "The label; hidden when empty."
|
|
1951
|
+
}
|
|
1952
|
+
],
|
|
1953
|
+
"cssProperties": []
|
|
1954
|
+
}
|
|
1955
|
+
],
|
|
1956
|
+
"exports": [
|
|
1957
|
+
{
|
|
1958
|
+
"kind": "custom-element-definition",
|
|
1959
|
+
"name": "omg-page",
|
|
1960
|
+
"declaration": {
|
|
1961
|
+
"name": "OmgPage",
|
|
1962
|
+
"module": "ui/1/layout.js"
|
|
1963
|
+
}
|
|
1964
|
+
},
|
|
1965
|
+
{
|
|
1966
|
+
"kind": "custom-element-definition",
|
|
1967
|
+
"name": "omg-section",
|
|
1968
|
+
"declaration": {
|
|
1969
|
+
"name": "OmgSection",
|
|
1970
|
+
"module": "ui/1/layout.js"
|
|
1971
|
+
}
|
|
1972
|
+
},
|
|
1973
|
+
{
|
|
1974
|
+
"kind": "custom-element-definition",
|
|
1975
|
+
"name": "omg-stack",
|
|
1976
|
+
"declaration": {
|
|
1977
|
+
"name": "OmgStack",
|
|
1978
|
+
"module": "ui/1/layout.js"
|
|
1979
|
+
}
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
"kind": "custom-element-definition",
|
|
1983
|
+
"name": "omg-empty",
|
|
1984
|
+
"declaration": {
|
|
1985
|
+
"name": "OmgEmpty",
|
|
1986
|
+
"module": "ui/1/layout.js"
|
|
1987
|
+
}
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
"kind": "custom-element-definition",
|
|
1991
|
+
"name": "omg-grid",
|
|
1992
|
+
"declaration": {
|
|
1993
|
+
"name": "OmgGrid",
|
|
1994
|
+
"module": "ui/1/layout.js"
|
|
1995
|
+
}
|
|
1996
|
+
},
|
|
1997
|
+
{
|
|
1998
|
+
"kind": "custom-element-definition",
|
|
1999
|
+
"name": "omg-split",
|
|
2000
|
+
"declaration": {
|
|
2001
|
+
"name": "OmgSplit",
|
|
2002
|
+
"module": "ui/1/layout.js"
|
|
2003
|
+
}
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
"kind": "custom-element-definition",
|
|
2007
|
+
"name": "omg-card",
|
|
2008
|
+
"declaration": {
|
|
2009
|
+
"name": "OmgCard",
|
|
2010
|
+
"module": "ui/1/layout.js"
|
|
2011
|
+
}
|
|
2012
|
+
},
|
|
2013
|
+
{
|
|
2014
|
+
"kind": "custom-element-definition",
|
|
2015
|
+
"name": "omg-list",
|
|
2016
|
+
"declaration": {
|
|
2017
|
+
"name": "OmgList",
|
|
2018
|
+
"module": "ui/1/layout.js"
|
|
2019
|
+
}
|
|
2020
|
+
},
|
|
2021
|
+
{
|
|
2022
|
+
"kind": "custom-element-definition",
|
|
2023
|
+
"name": "omg-list-item",
|
|
2024
|
+
"declaration": {
|
|
2025
|
+
"name": "OmgListItem",
|
|
2026
|
+
"module": "ui/1/layout.js"
|
|
2027
|
+
}
|
|
2028
|
+
},
|
|
2029
|
+
{
|
|
2030
|
+
"kind": "custom-element-definition",
|
|
2031
|
+
"name": "omg-divider",
|
|
2032
|
+
"declaration": {
|
|
2033
|
+
"name": "OmgDivider",
|
|
2034
|
+
"module": "ui/1/layout.js"
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
]
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
"kind": "javascript-module",
|
|
2041
|
+
"path": "ui/1/media.js",
|
|
2042
|
+
"declarations": [
|
|
2043
|
+
{
|
|
2044
|
+
"kind": "class",
|
|
2045
|
+
"name": "OmgImage",
|
|
2046
|
+
"tagName": "omg-image",
|
|
2047
|
+
"customElement": true,
|
|
2048
|
+
"description": "`<omg-image src file alt ratio fit pixelated checker>`: a picture, on a raised surface until it loads and with a mark when it can't. With `ratio` it fills a frame of that shape; without, it is drawn at its own size, at most as wide as its place.",
|
|
2049
|
+
"superclass": {
|
|
2050
|
+
"name": "HTMLElement",
|
|
2051
|
+
"package": "global:"
|
|
2052
|
+
},
|
|
2053
|
+
"attributes": [
|
|
2054
|
+
{
|
|
2055
|
+
"name": "alt",
|
|
2056
|
+
"description": "What it shows, for people who can't see it; leave it empty for a decoration.",
|
|
2057
|
+
"type": {
|
|
2058
|
+
"text": "string"
|
|
2059
|
+
}
|
|
2060
|
+
},
|
|
2061
|
+
{
|
|
2062
|
+
"name": "checker",
|
|
2063
|
+
"description": "Draws a checkerboard behind it, to show where it is transparent.",
|
|
2064
|
+
"type": {
|
|
2065
|
+
"text": "boolean"
|
|
2066
|
+
}
|
|
2067
|
+
},
|
|
2068
|
+
{
|
|
2069
|
+
"name": "file",
|
|
2070
|
+
"description": "A picture in the project, by its path there, in place of `src`; the plugin needs the `project.files` capability. Set it again to show the file as it is now.",
|
|
2071
|
+
"type": {
|
|
2072
|
+
"text": "string"
|
|
2073
|
+
}
|
|
2074
|
+
},
|
|
2075
|
+
{
|
|
2076
|
+
"name": "fit",
|
|
2077
|
+
"description": "How the picture fills a frame of another shape: whole, or cropped to fill it. Whole by default.",
|
|
2078
|
+
"type": {
|
|
2079
|
+
"text": "\"contain\" | \"cover\""
|
|
2080
|
+
}
|
|
2081
|
+
},
|
|
2082
|
+
{
|
|
2083
|
+
"name": "pixelated",
|
|
2084
|
+
"description": "Scales pixel art without smoothing it.",
|
|
2085
|
+
"type": {
|
|
2086
|
+
"text": "boolean"
|
|
2087
|
+
}
|
|
2088
|
+
},
|
|
2089
|
+
{
|
|
2090
|
+
"name": "ratio",
|
|
2091
|
+
"description": "The frame's shape, such as `16/9` or `1`; the picture's own by default.",
|
|
2092
|
+
"type": {
|
|
2093
|
+
"text": "string"
|
|
2094
|
+
}
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
"name": "src",
|
|
2098
|
+
"description": "The picture's address: a file in the plugin's package, or a `data:` or `blob:` URL.",
|
|
2099
|
+
"type": {
|
|
2100
|
+
"text": "string"
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
],
|
|
2104
|
+
"members": [
|
|
2105
|
+
{
|
|
2106
|
+
"kind": "field",
|
|
2107
|
+
"name": "complete",
|
|
2108
|
+
"description": "It has loaded, or failed to.",
|
|
2109
|
+
"type": {
|
|
2110
|
+
"text": "boolean"
|
|
2111
|
+
},
|
|
2112
|
+
"readonly": true
|
|
2113
|
+
},
|
|
2114
|
+
{
|
|
2115
|
+
"kind": "field",
|
|
2116
|
+
"name": "naturalHeight",
|
|
2117
|
+
"description": "The picture's own height in pixels; 0 until it loads.",
|
|
2118
|
+
"type": {
|
|
2119
|
+
"text": "number"
|
|
2120
|
+
},
|
|
2121
|
+
"readonly": true
|
|
2122
|
+
},
|
|
2123
|
+
{
|
|
2124
|
+
"kind": "field",
|
|
2125
|
+
"name": "naturalWidth",
|
|
2126
|
+
"description": "The picture's own width in pixels; 0 until it loads.",
|
|
2127
|
+
"type": {
|
|
2128
|
+
"text": "number"
|
|
2129
|
+
},
|
|
2130
|
+
"readonly": true
|
|
2131
|
+
}
|
|
2132
|
+
],
|
|
2133
|
+
"events": [
|
|
2134
|
+
{
|
|
2135
|
+
"name": "error",
|
|
2136
|
+
"description": "The picture couldn't load.",
|
|
2137
|
+
"type": {
|
|
2138
|
+
"text": "Event"
|
|
2139
|
+
}
|
|
2140
|
+
},
|
|
2141
|
+
{
|
|
2142
|
+
"name": "load",
|
|
2143
|
+
"description": "The picture loaded.",
|
|
2144
|
+
"type": {
|
|
2145
|
+
"text": "Event"
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
],
|
|
2149
|
+
"slots": [],
|
|
2150
|
+
"cssParts": [
|
|
2151
|
+
{
|
|
2152
|
+
"name": "broken",
|
|
2153
|
+
"description": "The mark shown when it couldn't load."
|
|
2154
|
+
},
|
|
2155
|
+
{
|
|
2156
|
+
"name": "frame",
|
|
2157
|
+
"description": "The surface the picture is drawn on."
|
|
2158
|
+
},
|
|
2159
|
+
{
|
|
2160
|
+
"name": "image",
|
|
2161
|
+
"description": "The picture."
|
|
2162
|
+
}
|
|
2163
|
+
],
|
|
2164
|
+
"cssProperties": [
|
|
2165
|
+
{
|
|
2166
|
+
"name": "--omg-image-radius",
|
|
2167
|
+
"description": "The frame's corners; the app's large radius by default."
|
|
2168
|
+
}
|
|
2169
|
+
]
|
|
2170
|
+
},
|
|
2171
|
+
{
|
|
2172
|
+
"kind": "class",
|
|
2173
|
+
"name": "OmgTile",
|
|
2174
|
+
"tagName": "omg-tile",
|
|
2175
|
+
"customElement": true,
|
|
2176
|
+
"description": "`<omg-tile heading description badge src file ratio selected disabled>`: a picture with its name and a line under it, such as an asset in a grid. It is a button: a click on it is the person picking it, and `selected` marks the one picked.",
|
|
2177
|
+
"superclass": {
|
|
2178
|
+
"name": "HTMLElement",
|
|
2179
|
+
"package": "global:"
|
|
2180
|
+
},
|
|
2181
|
+
"attributes": [
|
|
2182
|
+
{
|
|
2183
|
+
"name": "alt",
|
|
2184
|
+
"description": "What the picture shows, when the name doesn't say; empty by default.",
|
|
2185
|
+
"type": {
|
|
2186
|
+
"text": "string"
|
|
2187
|
+
}
|
|
2188
|
+
},
|
|
2189
|
+
{
|
|
2190
|
+
"name": "badge",
|
|
2191
|
+
"description": "A few words over the picture's corner, such as a duration.",
|
|
2192
|
+
"type": {
|
|
2193
|
+
"text": "string"
|
|
2194
|
+
}
|
|
2195
|
+
},
|
|
2196
|
+
{
|
|
2197
|
+
"name": "checker",
|
|
2198
|
+
"description": "As for `omg-image`.",
|
|
2199
|
+
"type": {
|
|
2200
|
+
"text": "boolean"
|
|
2201
|
+
}
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
"name": "description",
|
|
2205
|
+
"description": "A line under the name, such as its size or kind.",
|
|
2206
|
+
"type": {
|
|
2207
|
+
"text": "string"
|
|
2208
|
+
}
|
|
2209
|
+
},
|
|
2210
|
+
{
|
|
2211
|
+
"name": "disabled",
|
|
2212
|
+
"description": "It can't be picked.",
|
|
2213
|
+
"type": {
|
|
2214
|
+
"text": "boolean"
|
|
2215
|
+
}
|
|
2216
|
+
},
|
|
2217
|
+
{
|
|
2218
|
+
"name": "file",
|
|
2219
|
+
"description": "A picture in the project, as for `omg-image`.",
|
|
2220
|
+
"type": {
|
|
2221
|
+
"text": "string"
|
|
2222
|
+
}
|
|
2223
|
+
},
|
|
2224
|
+
{
|
|
2225
|
+
"name": "fit",
|
|
2226
|
+
"description": "As for `omg-image`; cropped to fill by default.",
|
|
2227
|
+
"type": {
|
|
2228
|
+
"text": "\"contain\" | \"cover\""
|
|
2229
|
+
}
|
|
2230
|
+
},
|
|
2231
|
+
{
|
|
2232
|
+
"name": "heading",
|
|
2233
|
+
"description": "Its name, on one line.",
|
|
2234
|
+
"type": {
|
|
2235
|
+
"text": "string"
|
|
2236
|
+
}
|
|
2237
|
+
},
|
|
2238
|
+
{
|
|
2239
|
+
"name": "pixelated",
|
|
2240
|
+
"description": "As for `omg-image`.",
|
|
2241
|
+
"type": {
|
|
2242
|
+
"text": "boolean"
|
|
2243
|
+
}
|
|
2244
|
+
},
|
|
2245
|
+
{
|
|
2246
|
+
"name": "ratio",
|
|
2247
|
+
"description": "The picture's shape, as for `omg-image`; `4/3` by default.",
|
|
2248
|
+
"type": {
|
|
2249
|
+
"text": "string"
|
|
2250
|
+
}
|
|
2251
|
+
},
|
|
2252
|
+
{
|
|
2253
|
+
"name": "selected",
|
|
2254
|
+
"description": "It is the one picked.",
|
|
2255
|
+
"type": {
|
|
2256
|
+
"text": "boolean"
|
|
2257
|
+
}
|
|
2258
|
+
},
|
|
2259
|
+
{
|
|
2260
|
+
"name": "src",
|
|
2261
|
+
"description": "The picture, as for `omg-image`.",
|
|
2262
|
+
"type": {
|
|
2263
|
+
"text": "string"
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
],
|
|
2267
|
+
"members": [
|
|
2268
|
+
{
|
|
2269
|
+
"kind": "field",
|
|
2270
|
+
"name": "disabled",
|
|
2271
|
+
"description": "The `disabled` attribute.",
|
|
2272
|
+
"type": {
|
|
2273
|
+
"text": "boolean"
|
|
2274
|
+
}
|
|
2275
|
+
},
|
|
2276
|
+
{
|
|
2277
|
+
"kind": "field",
|
|
2278
|
+
"name": "selected",
|
|
2279
|
+
"description": "The `selected` attribute.",
|
|
2280
|
+
"type": {
|
|
2281
|
+
"text": "boolean"
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
],
|
|
2285
|
+
"events": [],
|
|
2286
|
+
"slots": [
|
|
2287
|
+
{
|
|
2288
|
+
"name": "media",
|
|
2289
|
+
"description": "Drawn in place of the picture, such as a video or a canvas."
|
|
2290
|
+
}
|
|
2291
|
+
],
|
|
2292
|
+
"cssParts": [
|
|
2293
|
+
{
|
|
2294
|
+
"name": "badge",
|
|
2295
|
+
"description": "The badge; hidden when empty."
|
|
2296
|
+
},
|
|
2297
|
+
{
|
|
2298
|
+
"name": "description",
|
|
2299
|
+
"description": "The line under the name; hidden when empty."
|
|
2300
|
+
},
|
|
2301
|
+
{
|
|
2302
|
+
"name": "heading",
|
|
2303
|
+
"description": "The name."
|
|
2304
|
+
},
|
|
2305
|
+
{
|
|
2306
|
+
"name": "image",
|
|
2307
|
+
"description": "The `omg-image`, when there's no `media`."
|
|
2308
|
+
},
|
|
2309
|
+
{
|
|
2310
|
+
"name": "preview",
|
|
2311
|
+
"description": "The picture's frame."
|
|
2312
|
+
},
|
|
2313
|
+
{
|
|
2314
|
+
"name": "tile",
|
|
2315
|
+
"description": "The button."
|
|
2316
|
+
}
|
|
2317
|
+
],
|
|
2318
|
+
"cssProperties": []
|
|
2319
|
+
}
|
|
2320
|
+
],
|
|
2321
|
+
"exports": [
|
|
2322
|
+
{
|
|
2323
|
+
"kind": "custom-element-definition",
|
|
2324
|
+
"name": "omg-image",
|
|
2325
|
+
"declaration": {
|
|
2326
|
+
"name": "OmgImage",
|
|
2327
|
+
"module": "ui/1/media.js"
|
|
2328
|
+
}
|
|
2329
|
+
},
|
|
2330
|
+
{
|
|
2331
|
+
"kind": "custom-element-definition",
|
|
2332
|
+
"name": "omg-tile",
|
|
2333
|
+
"declaration": {
|
|
2334
|
+
"name": "OmgTile",
|
|
2335
|
+
"module": "ui/1/media.js"
|
|
2336
|
+
}
|
|
2337
|
+
}
|
|
2338
|
+
]
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
"kind": "javascript-module",
|
|
2342
|
+
"path": "ui/1/navigation.js",
|
|
2343
|
+
"declarations": [
|
|
2344
|
+
{
|
|
2345
|
+
"kind": "class",
|
|
2346
|
+
"name": "OmgTabs",
|
|
2347
|
+
"tagName": "omg-tabs",
|
|
2348
|
+
"customElement": true,
|
|
2349
|
+
"description": "`<omg-tabs value aria-label>`: shows one of its `omg-tab` children, with a row of their headings above. Arrow keys, Home and End move between tabs. A page listens for `omg-tab-change`, since `change` would also come up from the controls inside a tab.",
|
|
2350
|
+
"superclass": {
|
|
2351
|
+
"name": "HTMLElement",
|
|
2352
|
+
"package": "global:"
|
|
2353
|
+
},
|
|
2354
|
+
"attributes": [
|
|
2355
|
+
{
|
|
2356
|
+
"name": "aria-label",
|
|
2357
|
+
"description": "What the tabs choose between, for screen readers.",
|
|
2358
|
+
"type": {
|
|
2359
|
+
"text": "string"
|
|
2360
|
+
}
|
|
2361
|
+
},
|
|
2362
|
+
{
|
|
2363
|
+
"name": "value",
|
|
2364
|
+
"description": "The `name` of the open tab; the first that isn't disabled without one.",
|
|
2365
|
+
"type": {
|
|
2366
|
+
"text": "string"
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
],
|
|
2370
|
+
"members": [
|
|
2371
|
+
{
|
|
2372
|
+
"kind": "field",
|
|
2373
|
+
"name": "value",
|
|
2374
|
+
"description": "The open tab's name.",
|
|
2375
|
+
"type": {
|
|
2376
|
+
"text": "string"
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
],
|
|
2380
|
+
"events": [
|
|
2381
|
+
{
|
|
2382
|
+
"name": "omg-tab-change",
|
|
2383
|
+
"description": "The person opened a tab.",
|
|
2384
|
+
"type": {
|
|
2385
|
+
"text": "CustomEvent<{ value: string }>"
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
],
|
|
2389
|
+
"slots": [
|
|
2390
|
+
{
|
|
2391
|
+
"name": "",
|
|
2392
|
+
"description": "The `omg-tab` children."
|
|
2393
|
+
}
|
|
2394
|
+
],
|
|
2395
|
+
"cssParts": [
|
|
2396
|
+
{
|
|
2397
|
+
"name": "list",
|
|
2398
|
+
"description": "The row of headings."
|
|
2399
|
+
},
|
|
2400
|
+
{
|
|
2401
|
+
"name": "tab",
|
|
2402
|
+
"description": "A heading's button."
|
|
2403
|
+
}
|
|
2404
|
+
],
|
|
2405
|
+
"cssProperties": []
|
|
2406
|
+
},
|
|
2407
|
+
{
|
|
2408
|
+
"kind": "class",
|
|
2409
|
+
"name": "OmgTab",
|
|
2410
|
+
"tagName": "omg-tab",
|
|
2411
|
+
"customElement": true,
|
|
2412
|
+
"description": "`<omg-tab name heading disabled>`: one view of an `omg-tabs`.",
|
|
2413
|
+
"superclass": {
|
|
2414
|
+
"name": "HTMLElement",
|
|
2415
|
+
"package": "global:"
|
|
2416
|
+
},
|
|
2417
|
+
"attributes": [
|
|
2418
|
+
{
|
|
2419
|
+
"name": "disabled",
|
|
2420
|
+
"description": "It can't be opened.",
|
|
2421
|
+
"type": {
|
|
2422
|
+
"text": "boolean"
|
|
2423
|
+
}
|
|
2424
|
+
},
|
|
2425
|
+
{
|
|
2426
|
+
"name": "heading",
|
|
2427
|
+
"description": "The text of its heading, and its name for screen readers.",
|
|
2428
|
+
"type": {
|
|
2429
|
+
"text": "string"
|
|
2430
|
+
}
|
|
2431
|
+
},
|
|
2432
|
+
{
|
|
2433
|
+
"name": "name",
|
|
2434
|
+
"description": "What `value` on the `omg-tabs` calls it; unique among its tabs.",
|
|
2435
|
+
"type": {
|
|
2436
|
+
"text": "string"
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
],
|
|
2440
|
+
"members": [],
|
|
2441
|
+
"events": [],
|
|
2442
|
+
"slots": [
|
|
2443
|
+
{
|
|
2444
|
+
"name": "",
|
|
2445
|
+
"description": "The view."
|
|
2446
|
+
}
|
|
2447
|
+
],
|
|
2448
|
+
"cssParts": [],
|
|
2449
|
+
"cssProperties": []
|
|
2450
|
+
}
|
|
2451
|
+
],
|
|
2452
|
+
"exports": [
|
|
2453
|
+
{
|
|
2454
|
+
"kind": "custom-element-definition",
|
|
2455
|
+
"name": "omg-tabs",
|
|
2456
|
+
"declaration": {
|
|
2457
|
+
"name": "OmgTabs",
|
|
2458
|
+
"module": "ui/1/navigation.js"
|
|
2459
|
+
}
|
|
2460
|
+
},
|
|
2461
|
+
{
|
|
2462
|
+
"kind": "custom-element-definition",
|
|
2463
|
+
"name": "omg-tab",
|
|
2464
|
+
"declaration": {
|
|
2465
|
+
"name": "OmgTab",
|
|
2466
|
+
"module": "ui/1/navigation.js"
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
]
|
|
2470
|
+
}
|
|
2471
|
+
]
|
|
2472
|
+
}
|