@cascivo/elements 0.0.0-stage → 0.1.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 +21 -0
- package/README.md +123 -2
- package/dist/base-B5z3ufCR.js +1 -0
- package/dist/chips-Cg27QTfm.js +1 -0
- package/dist/combobox.d.ts +82 -0
- package/dist/combobox.js +1 -0
- package/dist/command-menu.d.ts +62 -0
- package/dist/command-menu.js +1 -0
- package/dist/custom-elements.json +924 -0
- package/dist/data-table.d.ts +70 -0
- package/dist/data-table.js +1 -0
- package/dist/date-picker.d.ts +83 -0
- package/dist/date-picker.js +1 -0
- package/dist/dialog.d.ts +58 -0
- package/dist/dialog.js +1 -0
- package/dist/drawer.d.ts +61 -0
- package/dist/drawer.js +1 -0
- package/dist/elements.css +16 -0
- package/dist/form.d.ts +14 -0
- package/dist/form.js +1 -0
- package/dist/htmx.d.ts +1 -0
- package/dist/htmx.js +1 -0
- package/dist/menu.d.ts +51 -0
- package/dist/menu.js +1 -0
- package/dist/messages-Bhd7waiI.js +1 -0
- package/dist/multi-select.d.ts +80 -0
- package/dist/multi-select.js +1 -0
- package/dist/tabs.d.ts +51 -0
- package/dist/tabs.js +1 -0
- package/dist/tags-input.d.ts +77 -0
- package/dist/tags-input.js +1 -0
- package/dist/theme.d.ts +58 -0
- package/dist/theme.js +1 -0
- package/dist/toaster.d.ts +38 -0
- package/dist/toaster.js +1 -0
- package/dist/tooltip.d.ts +54 -0
- package/dist/tooltip.js +1 -0
- package/package.json +130 -3
- package/readme.body.md +95 -0
|
@@ -0,0 +1,924 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "2.1.0",
|
|
3
|
+
"modules": [
|
|
4
|
+
{
|
|
5
|
+
"kind": "javascript-module",
|
|
6
|
+
"path": "dist/menu.js",
|
|
7
|
+
"declarations": [
|
|
8
|
+
{
|
|
9
|
+
"kind": "class",
|
|
10
|
+
"name": "CvMenu",
|
|
11
|
+
"tagName": "cv-menu",
|
|
12
|
+
"customElement": true,
|
|
13
|
+
"description": "Action menu: enhances a [aria-haspopup=menu] button and a [role=menu] popover.",
|
|
14
|
+
"attributes": [],
|
|
15
|
+
"events": [
|
|
16
|
+
{
|
|
17
|
+
"name": "cv-select",
|
|
18
|
+
"description": "An item was activated. `detail: { value: string }` (data-value)."
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"exports": [
|
|
24
|
+
{
|
|
25
|
+
"kind": "js",
|
|
26
|
+
"name": "CvMenu",
|
|
27
|
+
"declaration": {
|
|
28
|
+
"name": "CvMenu"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"kind": "js",
|
|
33
|
+
"name": "define",
|
|
34
|
+
"declaration": {
|
|
35
|
+
"name": "define"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"kind": "custom-element-definition",
|
|
40
|
+
"name": "cv-menu",
|
|
41
|
+
"declaration": {
|
|
42
|
+
"name": "CvMenu"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"kind": "javascript-module",
|
|
49
|
+
"path": "dist/tabs.js",
|
|
50
|
+
"declarations": [
|
|
51
|
+
{
|
|
52
|
+
"kind": "class",
|
|
53
|
+
"name": "CvTabs",
|
|
54
|
+
"tagName": "cv-tabs",
|
|
55
|
+
"customElement": true,
|
|
56
|
+
"description": "Tabs: enhances a [role=tablist] of [role=tab] and their [role=tabpanel] panels.",
|
|
57
|
+
"attributes": [
|
|
58
|
+
{
|
|
59
|
+
"name": "activation",
|
|
60
|
+
"type": {
|
|
61
|
+
"text": "'auto' | 'manual'"
|
|
62
|
+
},
|
|
63
|
+
"description": "Manual: arrow keys move focus, Enter/Space selects."
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"events": [
|
|
67
|
+
{
|
|
68
|
+
"name": "cv-value-change",
|
|
69
|
+
"description": "A tab was selected. `detail: { value: string }` (data-value)."
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"exports": [
|
|
75
|
+
{
|
|
76
|
+
"kind": "js",
|
|
77
|
+
"name": "CvTabs",
|
|
78
|
+
"declaration": {
|
|
79
|
+
"name": "CvTabs"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"kind": "js",
|
|
84
|
+
"name": "define",
|
|
85
|
+
"declaration": {
|
|
86
|
+
"name": "define"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"kind": "custom-element-definition",
|
|
91
|
+
"name": "cv-tabs",
|
|
92
|
+
"declaration": {
|
|
93
|
+
"name": "CvTabs"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"kind": "javascript-module",
|
|
100
|
+
"path": "dist/form.js",
|
|
101
|
+
"declarations": [
|
|
102
|
+
{
|
|
103
|
+
"kind": "class",
|
|
104
|
+
"name": "CvForm",
|
|
105
|
+
"tagName": "cv-form",
|
|
106
|
+
"customElement": true,
|
|
107
|
+
"description": "Form: renders constraint-validation errors with server-provided messages, guards double submit, swaps htmx 422 and focuses the first error.",
|
|
108
|
+
"attributes": [],
|
|
109
|
+
"events": []
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"exports": [
|
|
113
|
+
{
|
|
114
|
+
"kind": "js",
|
|
115
|
+
"name": "CvForm",
|
|
116
|
+
"declaration": {
|
|
117
|
+
"name": "CvForm"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"kind": "js",
|
|
122
|
+
"name": "define",
|
|
123
|
+
"declaration": {
|
|
124
|
+
"name": "define"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"kind": "custom-element-definition",
|
|
129
|
+
"name": "cv-form",
|
|
130
|
+
"declaration": {
|
|
131
|
+
"name": "CvForm"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"kind": "javascript-module",
|
|
138
|
+
"path": "dist/combobox.js",
|
|
139
|
+
"declarations": [
|
|
140
|
+
{
|
|
141
|
+
"kind": "class",
|
|
142
|
+
"name": "CvCombobox",
|
|
143
|
+
"tagName": "cv-combobox",
|
|
144
|
+
"customElement": true,
|
|
145
|
+
"description": "Editable combobox over [role=option][data-value] rows; filters as you type.",
|
|
146
|
+
"formAssociated": true,
|
|
147
|
+
"attributes": [
|
|
148
|
+
{
|
|
149
|
+
"name": "value",
|
|
150
|
+
"type": {
|
|
151
|
+
"text": "string"
|
|
152
|
+
},
|
|
153
|
+
"description": "Initial value (an option data-value)."
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "name",
|
|
157
|
+
"type": {
|
|
158
|
+
"text": "string"
|
|
159
|
+
},
|
|
160
|
+
"description": "Form field name (form-associated via ElementInternals)."
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "required",
|
|
164
|
+
"type": {
|
|
165
|
+
"text": "boolean"
|
|
166
|
+
},
|
|
167
|
+
"description": "Reports valueMissing when empty."
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "disabled",
|
|
171
|
+
"type": {
|
|
172
|
+
"text": "boolean"
|
|
173
|
+
},
|
|
174
|
+
"description": "Disables the field."
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "placeholder",
|
|
178
|
+
"type": {
|
|
179
|
+
"text": "string"
|
|
180
|
+
},
|
|
181
|
+
"description": "Overrides the translated placeholder."
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"events": [
|
|
185
|
+
{
|
|
186
|
+
"name": "cv-value-change",
|
|
187
|
+
"description": "The committed value changed. `detail: { value: string | undefined }`."
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "input",
|
|
191
|
+
"description": "Native, fired on the host when the value is committed."
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "change",
|
|
195
|
+
"description": "Native, fired on the host when the value is committed."
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"exports": [
|
|
201
|
+
{
|
|
202
|
+
"kind": "js",
|
|
203
|
+
"name": "CvCombobox",
|
|
204
|
+
"declaration": {
|
|
205
|
+
"name": "CvCombobox"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"kind": "js",
|
|
210
|
+
"name": "define",
|
|
211
|
+
"declaration": {
|
|
212
|
+
"name": "define"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"kind": "custom-element-definition",
|
|
217
|
+
"name": "cv-combobox",
|
|
218
|
+
"declaration": {
|
|
219
|
+
"name": "CvCombobox"
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"kind": "javascript-module",
|
|
226
|
+
"path": "dist/date-picker.js",
|
|
227
|
+
"declarations": [
|
|
228
|
+
{
|
|
229
|
+
"kind": "class",
|
|
230
|
+
"name": "CvDatePicker",
|
|
231
|
+
"tagName": "cv-date-picker",
|
|
232
|
+
"customElement": true,
|
|
233
|
+
"description": "Typeable date field with a calendar dialog; submits an ISO YYYY-MM-DD date.",
|
|
234
|
+
"formAssociated": true,
|
|
235
|
+
"attributes": [
|
|
236
|
+
{
|
|
237
|
+
"name": "value",
|
|
238
|
+
"type": {
|
|
239
|
+
"text": "string"
|
|
240
|
+
},
|
|
241
|
+
"description": "Initial value, ISO YYYY-MM-DD."
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "min",
|
|
245
|
+
"type": {
|
|
246
|
+
"text": "string"
|
|
247
|
+
},
|
|
248
|
+
"description": "Earliest selectable date, ISO."
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "max",
|
|
252
|
+
"type": {
|
|
253
|
+
"text": "string"
|
|
254
|
+
},
|
|
255
|
+
"description": "Latest selectable date, ISO."
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "name",
|
|
259
|
+
"type": {
|
|
260
|
+
"text": "string"
|
|
261
|
+
},
|
|
262
|
+
"description": "Form field name (form-associated via ElementInternals)."
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "required",
|
|
266
|
+
"type": {
|
|
267
|
+
"text": "boolean"
|
|
268
|
+
},
|
|
269
|
+
"description": "Reports valueMissing when empty."
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "disabled",
|
|
273
|
+
"type": {
|
|
274
|
+
"text": "boolean"
|
|
275
|
+
},
|
|
276
|
+
"description": "Disables the field."
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "placeholder",
|
|
280
|
+
"type": {
|
|
281
|
+
"text": "string"
|
|
282
|
+
},
|
|
283
|
+
"description": "Overrides the translated placeholder."
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
"events": [
|
|
287
|
+
{
|
|
288
|
+
"name": "cv-value-change",
|
|
289
|
+
"description": "The committed value changed. `detail: { value: string | undefined }`."
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "input",
|
|
293
|
+
"description": "Native, fired on the host when the value is committed."
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "change",
|
|
297
|
+
"description": "Native, fired on the host when the value is committed."
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
],
|
|
302
|
+
"exports": [
|
|
303
|
+
{
|
|
304
|
+
"kind": "js",
|
|
305
|
+
"name": "CvDatePicker",
|
|
306
|
+
"declaration": {
|
|
307
|
+
"name": "CvDatePicker"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"kind": "js",
|
|
312
|
+
"name": "define",
|
|
313
|
+
"declaration": {
|
|
314
|
+
"name": "define"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"kind": "custom-element-definition",
|
|
319
|
+
"name": "cv-date-picker",
|
|
320
|
+
"declaration": {
|
|
321
|
+
"name": "CvDatePicker"
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"kind": "javascript-module",
|
|
328
|
+
"path": "dist/dialog.js",
|
|
329
|
+
"declarations": [
|
|
330
|
+
{
|
|
331
|
+
"kind": "class",
|
|
332
|
+
"name": "CvDialog",
|
|
333
|
+
"tagName": "cv-dialog",
|
|
334
|
+
"customElement": true,
|
|
335
|
+
"description": "Modal dialog: wraps a native <dialog> opened with showModal(); focus returns to the opener.",
|
|
336
|
+
"attributes": [
|
|
337
|
+
{
|
|
338
|
+
"name": "open",
|
|
339
|
+
"type": {
|
|
340
|
+
"text": "boolean"
|
|
341
|
+
},
|
|
342
|
+
"description": "Open state (initial value; the live state is the `open` property)."
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"name": "static",
|
|
346
|
+
"type": {
|
|
347
|
+
"text": "boolean"
|
|
348
|
+
},
|
|
349
|
+
"description": "A backdrop click does not close."
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
"events": [
|
|
353
|
+
{
|
|
354
|
+
"name": "cv-open",
|
|
355
|
+
"description": "The dialog opened."
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "cv-close",
|
|
359
|
+
"description": "The dialog closed (Escape, close control, backdrop, cv-dialog-close)."
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
"exports": [
|
|
365
|
+
{
|
|
366
|
+
"kind": "js",
|
|
367
|
+
"name": "CvDialog",
|
|
368
|
+
"declaration": {
|
|
369
|
+
"name": "CvDialog"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"kind": "js",
|
|
374
|
+
"name": "define",
|
|
375
|
+
"declaration": {
|
|
376
|
+
"name": "define"
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"kind": "custom-element-definition",
|
|
381
|
+
"name": "cv-dialog",
|
|
382
|
+
"declaration": {
|
|
383
|
+
"name": "CvDialog"
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
]
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"kind": "javascript-module",
|
|
390
|
+
"path": "dist/toaster.js",
|
|
391
|
+
"declarations": [
|
|
392
|
+
{
|
|
393
|
+
"kind": "class",
|
|
394
|
+
"name": "CvToaster",
|
|
395
|
+
"tagName": "cv-toaster",
|
|
396
|
+
"customElement": true,
|
|
397
|
+
"description": "Live region for toasts: auto-dismiss, pause on hover/focus, filled by OOB swap or the cv-toast trigger.",
|
|
398
|
+
"attributes": [
|
|
399
|
+
{
|
|
400
|
+
"name": "duration",
|
|
401
|
+
"type": {
|
|
402
|
+
"text": "number"
|
|
403
|
+
},
|
|
404
|
+
"description": "Milliseconds before a toast dismisses (0: never)."
|
|
405
|
+
}
|
|
406
|
+
],
|
|
407
|
+
"events": [
|
|
408
|
+
{
|
|
409
|
+
"name": "cv-toast-dismiss",
|
|
410
|
+
"description": "A toast was dismissed."
|
|
411
|
+
}
|
|
412
|
+
]
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"exports": [
|
|
416
|
+
{
|
|
417
|
+
"kind": "js",
|
|
418
|
+
"name": "CvToaster",
|
|
419
|
+
"declaration": {
|
|
420
|
+
"name": "CvToaster"
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"kind": "js",
|
|
425
|
+
"name": "define",
|
|
426
|
+
"declaration": {
|
|
427
|
+
"name": "define"
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"kind": "custom-element-definition",
|
|
432
|
+
"name": "cv-toaster",
|
|
433
|
+
"declaration": {
|
|
434
|
+
"name": "CvToaster"
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
]
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"kind": "javascript-module",
|
|
441
|
+
"path": "dist/data-table.js",
|
|
442
|
+
"declarations": [
|
|
443
|
+
{
|
|
444
|
+
"kind": "class",
|
|
445
|
+
"name": "CvDataTable",
|
|
446
|
+
"tagName": "cv-data-table",
|
|
447
|
+
"customElement": true,
|
|
448
|
+
"description": "Data table: header sort cycles aria-sort and fires cv-sort (server or client sort); row checkboxes with tri-state select-all and a selected count.",
|
|
449
|
+
"attributes": [
|
|
450
|
+
{
|
|
451
|
+
"name": "remote",
|
|
452
|
+
"type": {
|
|
453
|
+
"text": "boolean"
|
|
454
|
+
},
|
|
455
|
+
"description": "The server sorts: rows are not reordered client-side."
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "count-label",
|
|
459
|
+
"type": {
|
|
460
|
+
"text": "string"
|
|
461
|
+
},
|
|
462
|
+
"description": "Selected-count text; `{count}` is replaced."
|
|
463
|
+
}
|
|
464
|
+
],
|
|
465
|
+
"events": [
|
|
466
|
+
{
|
|
467
|
+
"name": "cv-sort",
|
|
468
|
+
"description": "A sortable header was activated. `detail: { key: string; direction: 'asc' | 'desc' | 'none' }`."
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"name": "cv-selection-change",
|
|
472
|
+
"description": "Row selection changed. `detail: { selected: string[] }`."
|
|
473
|
+
}
|
|
474
|
+
]
|
|
475
|
+
}
|
|
476
|
+
],
|
|
477
|
+
"exports": [
|
|
478
|
+
{
|
|
479
|
+
"kind": "js",
|
|
480
|
+
"name": "CvDataTable",
|
|
481
|
+
"declaration": {
|
|
482
|
+
"name": "CvDataTable"
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"kind": "js",
|
|
487
|
+
"name": "define",
|
|
488
|
+
"declaration": {
|
|
489
|
+
"name": "define"
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"kind": "custom-element-definition",
|
|
494
|
+
"name": "cv-data-table",
|
|
495
|
+
"declaration": {
|
|
496
|
+
"name": "CvDataTable"
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
]
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"kind": "javascript-module",
|
|
503
|
+
"path": "dist/drawer.js",
|
|
504
|
+
"declarations": [
|
|
505
|
+
{
|
|
506
|
+
"kind": "class",
|
|
507
|
+
"name": "CvDrawer",
|
|
508
|
+
"tagName": "cv-drawer",
|
|
509
|
+
"customElement": true,
|
|
510
|
+
"description": "Drawer: wraps the Drawer overlay/panel markup; Escape, backdrop click, inert focus trap, focus returns to the opener.",
|
|
511
|
+
"attributes": [
|
|
512
|
+
{
|
|
513
|
+
"name": "open",
|
|
514
|
+
"type": {
|
|
515
|
+
"text": "boolean"
|
|
516
|
+
},
|
|
517
|
+
"description": "Initial open state."
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "side",
|
|
521
|
+
"type": {
|
|
522
|
+
"text": "'start' | 'end' | 'top' | 'bottom'"
|
|
523
|
+
},
|
|
524
|
+
"description": "Edge the panel slides from."
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "static",
|
|
528
|
+
"type": {
|
|
529
|
+
"text": "boolean"
|
|
530
|
+
},
|
|
531
|
+
"description": "A backdrop click does not close."
|
|
532
|
+
}
|
|
533
|
+
],
|
|
534
|
+
"events": [
|
|
535
|
+
{
|
|
536
|
+
"name": "cv-open",
|
|
537
|
+
"description": "The drawer opened."
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"name": "cv-close",
|
|
541
|
+
"description": "The drawer closed."
|
|
542
|
+
}
|
|
543
|
+
]
|
|
544
|
+
}
|
|
545
|
+
],
|
|
546
|
+
"exports": [
|
|
547
|
+
{
|
|
548
|
+
"kind": "js",
|
|
549
|
+
"name": "CvDrawer",
|
|
550
|
+
"declaration": {
|
|
551
|
+
"name": "CvDrawer"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"kind": "js",
|
|
556
|
+
"name": "define",
|
|
557
|
+
"declaration": {
|
|
558
|
+
"name": "define"
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"kind": "custom-element-definition",
|
|
563
|
+
"name": "cv-drawer",
|
|
564
|
+
"declaration": {
|
|
565
|
+
"name": "CvDrawer"
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
]
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"kind": "javascript-module",
|
|
572
|
+
"path": "dist/command-menu.js",
|
|
573
|
+
"declarations": [
|
|
574
|
+
{
|
|
575
|
+
"kind": "class",
|
|
576
|
+
"name": "CvCommandMenu",
|
|
577
|
+
"tagName": "cv-command-menu",
|
|
578
|
+
"customElement": true,
|
|
579
|
+
"description": "Command palette: a <dialog> opened by a shortcut with a filtering input over [role=option] rows; Enter activates the row (anchors and hx-get rows work).",
|
|
580
|
+
"attributes": [
|
|
581
|
+
{
|
|
582
|
+
"name": "shortcut",
|
|
583
|
+
"type": {
|
|
584
|
+
"text": "string"
|
|
585
|
+
},
|
|
586
|
+
"description": "Open shortcut, e.g. `mod+k` (default)."
|
|
587
|
+
}
|
|
588
|
+
],
|
|
589
|
+
"events": [
|
|
590
|
+
{
|
|
591
|
+
"name": "cv-select",
|
|
592
|
+
"description": "A row was activated. `detail: { value: string }`."
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"name": "cv-open",
|
|
596
|
+
"description": "The palette opened."
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"name": "cv-close",
|
|
600
|
+
"description": "The palette closed."
|
|
601
|
+
}
|
|
602
|
+
]
|
|
603
|
+
}
|
|
604
|
+
],
|
|
605
|
+
"exports": [
|
|
606
|
+
{
|
|
607
|
+
"kind": "js",
|
|
608
|
+
"name": "CvCommandMenu",
|
|
609
|
+
"declaration": {
|
|
610
|
+
"name": "CvCommandMenu"
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"kind": "js",
|
|
615
|
+
"name": "define",
|
|
616
|
+
"declaration": {
|
|
617
|
+
"name": "define"
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"kind": "custom-element-definition",
|
|
622
|
+
"name": "cv-command-menu",
|
|
623
|
+
"declaration": {
|
|
624
|
+
"name": "CvCommandMenu"
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
]
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"kind": "javascript-module",
|
|
631
|
+
"path": "dist/theme.js",
|
|
632
|
+
"declarations": [
|
|
633
|
+
{
|
|
634
|
+
"kind": "class",
|
|
635
|
+
"name": "CvTheme",
|
|
636
|
+
"tagName": "cv-theme",
|
|
637
|
+
"customElement": true,
|
|
638
|
+
"description": "Theme or density switcher over a <select> or [data-cv-theme-value] buttons; sets an attribute on <html> and persists it.",
|
|
639
|
+
"attributes": [
|
|
640
|
+
{
|
|
641
|
+
"name": "attribute",
|
|
642
|
+
"type": {
|
|
643
|
+
"text": "string"
|
|
644
|
+
},
|
|
645
|
+
"description": "Attribute set on <html> (default `data-theme`)."
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"name": "storage-key",
|
|
649
|
+
"type": {
|
|
650
|
+
"text": "string"
|
|
651
|
+
},
|
|
652
|
+
"description": "localStorage key (default `cascade-theme`)."
|
|
653
|
+
}
|
|
654
|
+
],
|
|
655
|
+
"events": [
|
|
656
|
+
{
|
|
657
|
+
"name": "cv-theme-change",
|
|
658
|
+
"description": "The user picked a value. `detail: { value: string }`."
|
|
659
|
+
}
|
|
660
|
+
]
|
|
661
|
+
}
|
|
662
|
+
],
|
|
663
|
+
"exports": [
|
|
664
|
+
{
|
|
665
|
+
"kind": "js",
|
|
666
|
+
"name": "CvTheme",
|
|
667
|
+
"declaration": {
|
|
668
|
+
"name": "CvTheme"
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"kind": "js",
|
|
673
|
+
"name": "define",
|
|
674
|
+
"declaration": {
|
|
675
|
+
"name": "define"
|
|
676
|
+
}
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"kind": "custom-element-definition",
|
|
680
|
+
"name": "cv-theme",
|
|
681
|
+
"declaration": {
|
|
682
|
+
"name": "CvTheme"
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
]
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"kind": "javascript-module",
|
|
689
|
+
"path": "dist/tooltip.js",
|
|
690
|
+
"declarations": [
|
|
691
|
+
{
|
|
692
|
+
"kind": "class",
|
|
693
|
+
"name": "CvTooltip",
|
|
694
|
+
"tagName": "cv-tooltip",
|
|
695
|
+
"customElement": true,
|
|
696
|
+
"description": "Tooltip: shows the [role=tooltip][popover=manual] sibling on hover/focus after a delay; Escape dismisses.",
|
|
697
|
+
"attributes": [
|
|
698
|
+
{
|
|
699
|
+
"name": "delay",
|
|
700
|
+
"type": {
|
|
701
|
+
"text": "number"
|
|
702
|
+
},
|
|
703
|
+
"description": "Milliseconds before showing (default 200)."
|
|
704
|
+
}
|
|
705
|
+
],
|
|
706
|
+
"events": []
|
|
707
|
+
}
|
|
708
|
+
],
|
|
709
|
+
"exports": [
|
|
710
|
+
{
|
|
711
|
+
"kind": "js",
|
|
712
|
+
"name": "CvTooltip",
|
|
713
|
+
"declaration": {
|
|
714
|
+
"name": "CvTooltip"
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"kind": "js",
|
|
719
|
+
"name": "define",
|
|
720
|
+
"declaration": {
|
|
721
|
+
"name": "define"
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"kind": "custom-element-definition",
|
|
726
|
+
"name": "cv-tooltip",
|
|
727
|
+
"declaration": {
|
|
728
|
+
"name": "CvTooltip"
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
]
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"kind": "javascript-module",
|
|
735
|
+
"path": "dist/multi-select.js",
|
|
736
|
+
"declarations": [
|
|
737
|
+
{
|
|
738
|
+
"kind": "class",
|
|
739
|
+
"name": "CvMultiSelect",
|
|
740
|
+
"tagName": "cv-multi-select",
|
|
741
|
+
"customElement": true,
|
|
742
|
+
"description": "Multi-select: chips plus a listbox panel; submits one form entry per value.",
|
|
743
|
+
"formAssociated": true,
|
|
744
|
+
"attributes": [
|
|
745
|
+
{
|
|
746
|
+
"name": "name",
|
|
747
|
+
"type": {
|
|
748
|
+
"text": "string"
|
|
749
|
+
},
|
|
750
|
+
"description": "Form field name."
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"name": "required",
|
|
754
|
+
"type": {
|
|
755
|
+
"text": "boolean"
|
|
756
|
+
},
|
|
757
|
+
"description": "Reports valueMissing when empty."
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
"name": "disabled",
|
|
761
|
+
"type": {
|
|
762
|
+
"text": "boolean"
|
|
763
|
+
},
|
|
764
|
+
"description": "Disables the field."
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"name": "placeholder",
|
|
768
|
+
"type": {
|
|
769
|
+
"text": "string"
|
|
770
|
+
},
|
|
771
|
+
"description": "Trigger text when empty."
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"name": "selected-label",
|
|
775
|
+
"type": {
|
|
776
|
+
"text": "string"
|
|
777
|
+
},
|
|
778
|
+
"description": "Count template, `{count}`."
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"name": "remove-label",
|
|
782
|
+
"type": {
|
|
783
|
+
"text": "string"
|
|
784
|
+
},
|
|
785
|
+
"description": "Chip remove label, `{label}`."
|
|
786
|
+
}
|
|
787
|
+
],
|
|
788
|
+
"events": [
|
|
789
|
+
{
|
|
790
|
+
"name": "cv-value-change",
|
|
791
|
+
"description": "The values changed. `detail: { value: string[] }`."
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"name": "input",
|
|
795
|
+
"description": "Native, fired on the host."
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"name": "change",
|
|
799
|
+
"description": "Native, fired on the host."
|
|
800
|
+
}
|
|
801
|
+
]
|
|
802
|
+
}
|
|
803
|
+
],
|
|
804
|
+
"exports": [
|
|
805
|
+
{
|
|
806
|
+
"kind": "js",
|
|
807
|
+
"name": "CvMultiSelect",
|
|
808
|
+
"declaration": {
|
|
809
|
+
"name": "CvMultiSelect"
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"kind": "js",
|
|
814
|
+
"name": "define",
|
|
815
|
+
"declaration": {
|
|
816
|
+
"name": "define"
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"kind": "custom-element-definition",
|
|
821
|
+
"name": "cv-multi-select",
|
|
822
|
+
"declaration": {
|
|
823
|
+
"name": "CvMultiSelect"
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
]
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"kind": "javascript-module",
|
|
830
|
+
"path": "dist/tags-input.js",
|
|
831
|
+
"declarations": [
|
|
832
|
+
{
|
|
833
|
+
"kind": "class",
|
|
834
|
+
"name": "CvTagsInput",
|
|
835
|
+
"tagName": "cv-tags-input",
|
|
836
|
+
"customElement": true,
|
|
837
|
+
"description": "Tags input: Enter/comma/paste/blur add tags, Backspace removes the last; submits one entry per tag.",
|
|
838
|
+
"formAssociated": true,
|
|
839
|
+
"attributes": [
|
|
840
|
+
{
|
|
841
|
+
"name": "name",
|
|
842
|
+
"type": {
|
|
843
|
+
"text": "string"
|
|
844
|
+
},
|
|
845
|
+
"description": "Form field name."
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"name": "required",
|
|
849
|
+
"type": {
|
|
850
|
+
"text": "boolean"
|
|
851
|
+
},
|
|
852
|
+
"description": "Reports valueMissing when empty."
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
"name": "disabled",
|
|
856
|
+
"type": {
|
|
857
|
+
"text": "boolean"
|
|
858
|
+
},
|
|
859
|
+
"description": "Disables the field."
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"name": "max",
|
|
863
|
+
"type": {
|
|
864
|
+
"text": "number"
|
|
865
|
+
},
|
|
866
|
+
"description": "Maximum tag count."
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"name": "placeholder",
|
|
870
|
+
"type": {
|
|
871
|
+
"text": "string"
|
|
872
|
+
},
|
|
873
|
+
"description": "Shown only while empty."
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"name": "remove-label",
|
|
877
|
+
"type": {
|
|
878
|
+
"text": "string"
|
|
879
|
+
},
|
|
880
|
+
"description": "Dismiss label, `{label}`."
|
|
881
|
+
}
|
|
882
|
+
],
|
|
883
|
+
"events": [
|
|
884
|
+
{
|
|
885
|
+
"name": "cv-value-change",
|
|
886
|
+
"description": "The values changed. `detail: { value: string[] }`."
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"name": "input",
|
|
890
|
+
"description": "Native, fired on the host."
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"name": "change",
|
|
894
|
+
"description": "Native, fired on the host."
|
|
895
|
+
}
|
|
896
|
+
]
|
|
897
|
+
}
|
|
898
|
+
],
|
|
899
|
+
"exports": [
|
|
900
|
+
{
|
|
901
|
+
"kind": "js",
|
|
902
|
+
"name": "CvTagsInput",
|
|
903
|
+
"declaration": {
|
|
904
|
+
"name": "CvTagsInput"
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"kind": "js",
|
|
909
|
+
"name": "define",
|
|
910
|
+
"declaration": {
|
|
911
|
+
"name": "define"
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
"kind": "custom-element-definition",
|
|
916
|
+
"name": "cv-tags-input",
|
|
917
|
+
"declaration": {
|
|
918
|
+
"name": "CvTagsInput"
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
]
|
|
922
|
+
}
|
|
923
|
+
]
|
|
924
|
+
}
|