@kubex/zinc 1.0.18 → 1.0.19
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/dist/custom-elements.json +268 -4
- package/dist/vscode.html-custom-data.json +42 -2
- package/dist/web-types.json +80 -3
- package/dist/zn.d.ts +64 -3
- package/dist/zn.min.js +556 -528
- package/package.json +1 -1
- package/src/components/audio-select/audio-select.component.ts +128 -0
- package/src/components/audio-select/audio-select.scss +4 -0
- package/src/components/audio-select/audio-select.test.ts +10 -0
- package/src/components/audio-select/index.ts +12 -0
- package/src/components/checkbox/checkbox.component.ts +54 -10
- package/src/components/checkbox/checkbox.scss +102 -15
- package/src/components/select/select.component.ts +7 -11
- package/src/components/select/select.scss +3 -3
- package/src/zinc.ts +1 -0
|
@@ -290,6 +290,174 @@
|
|
|
290
290
|
}
|
|
291
291
|
]
|
|
292
292
|
},
|
|
293
|
+
{
|
|
294
|
+
"kind": "javascript-module",
|
|
295
|
+
"path": "components/audio-select/audio-select.js",
|
|
296
|
+
"declarations": [
|
|
297
|
+
{
|
|
298
|
+
"kind": "class",
|
|
299
|
+
"description": "",
|
|
300
|
+
"name": "ZnAudioSelect",
|
|
301
|
+
"cssProperties": [
|
|
302
|
+
{
|
|
303
|
+
"description": "An example CSS custom property.",
|
|
304
|
+
"name": "--example"
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"cssParts": [
|
|
308
|
+
{
|
|
309
|
+
"description": "The component's base wrapper.",
|
|
310
|
+
"name": "base"
|
|
311
|
+
}
|
|
312
|
+
],
|
|
313
|
+
"slots": [
|
|
314
|
+
{
|
|
315
|
+
"description": "The default slot.",
|
|
316
|
+
"name": ""
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"description": "The actions slot.",
|
|
320
|
+
"name": "actions"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"description": "The footer slot.",
|
|
324
|
+
"name": "footer"
|
|
325
|
+
}
|
|
326
|
+
],
|
|
327
|
+
"members": [
|
|
328
|
+
{
|
|
329
|
+
"kind": "field",
|
|
330
|
+
"name": "_selectedUrl",
|
|
331
|
+
"type": {
|
|
332
|
+
"text": "string"
|
|
333
|
+
},
|
|
334
|
+
"privacy": "private",
|
|
335
|
+
"default": "''"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"kind": "field",
|
|
339
|
+
"name": "_isPlaying",
|
|
340
|
+
"type": {
|
|
341
|
+
"text": "boolean"
|
|
342
|
+
},
|
|
343
|
+
"privacy": "private",
|
|
344
|
+
"default": "false"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"kind": "field",
|
|
348
|
+
"name": "_audio",
|
|
349
|
+
"type": {
|
|
350
|
+
"text": "HTMLAudioElement"
|
|
351
|
+
},
|
|
352
|
+
"privacy": "private",
|
|
353
|
+
"readonly": true,
|
|
354
|
+
"default": "new Audio()"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"kind": "field",
|
|
358
|
+
"name": "label",
|
|
359
|
+
"type": {
|
|
360
|
+
"text": "string"
|
|
361
|
+
},
|
|
362
|
+
"default": "''",
|
|
363
|
+
"attribute": "label"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"kind": "field",
|
|
367
|
+
"name": "placeholder",
|
|
368
|
+
"type": {
|
|
369
|
+
"text": "string"
|
|
370
|
+
},
|
|
371
|
+
"default": "''",
|
|
372
|
+
"attribute": "placeholder"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"kind": "field",
|
|
376
|
+
"name": "files",
|
|
377
|
+
"type": {
|
|
378
|
+
"text": "AudioFile[]"
|
|
379
|
+
},
|
|
380
|
+
"attribute": "files"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"kind": "method",
|
|
384
|
+
"name": "_stopAudio"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"kind": "method",
|
|
388
|
+
"name": "handleSelectChange",
|
|
389
|
+
"parameters": [
|
|
390
|
+
{
|
|
391
|
+
"name": "e",
|
|
392
|
+
"type": {
|
|
393
|
+
"text": "ZnChangeEvent"
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
]
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"kind": "method",
|
|
400
|
+
"name": "togglePreview",
|
|
401
|
+
"parameters": [
|
|
402
|
+
{
|
|
403
|
+
"name": "e",
|
|
404
|
+
"type": {
|
|
405
|
+
"text": "CustomEvent"
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
]
|
|
409
|
+
}
|
|
410
|
+
],
|
|
411
|
+
"attributes": [
|
|
412
|
+
{
|
|
413
|
+
"name": "label",
|
|
414
|
+
"type": {
|
|
415
|
+
"text": "string"
|
|
416
|
+
},
|
|
417
|
+
"default": "''",
|
|
418
|
+
"fieldName": "label"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"name": "placeholder",
|
|
422
|
+
"type": {
|
|
423
|
+
"text": "string"
|
|
424
|
+
},
|
|
425
|
+
"default": "''",
|
|
426
|
+
"fieldName": "placeholder"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"name": "files",
|
|
430
|
+
"type": {
|
|
431
|
+
"text": "AudioFile[]"
|
|
432
|
+
},
|
|
433
|
+
"fieldName": "files"
|
|
434
|
+
}
|
|
435
|
+
],
|
|
436
|
+
"superclass": {
|
|
437
|
+
"name": "ZincElement",
|
|
438
|
+
"module": "/src/internal/zinc-element"
|
|
439
|
+
},
|
|
440
|
+
"summary": "Short summary of the component's intended use.",
|
|
441
|
+
"tagNameWithoutPrefix": "audio-select",
|
|
442
|
+
"tagName": "zn-audio-select",
|
|
443
|
+
"customElement": true,
|
|
444
|
+
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/audio-select\n * @status experimental\n * @since 1.0\n *\n * @slot - The default slot.\n * @slot actions - The actions slot.\n * @slot footer - The footer slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
|
|
445
|
+
"documentation": "https://zinc.style/components/audio-select",
|
|
446
|
+
"status": "experimental",
|
|
447
|
+
"since": "1.0"
|
|
448
|
+
}
|
|
449
|
+
],
|
|
450
|
+
"exports": [
|
|
451
|
+
{
|
|
452
|
+
"kind": "js",
|
|
453
|
+
"name": "default",
|
|
454
|
+
"declaration": {
|
|
455
|
+
"name": "ZnAudioSelect",
|
|
456
|
+
"module": "components/audio-select/audio-select.js"
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
]
|
|
460
|
+
},
|
|
293
461
|
{
|
|
294
462
|
"kind": "javascript-module",
|
|
295
463
|
"path": "components/bulk-actions/bulk-actions.js",
|
|
@@ -2222,6 +2390,10 @@
|
|
|
2222
2390
|
"description": "The checked icon, an `<zn-icon>` element.",
|
|
2223
2391
|
"name": "checked-icon"
|
|
2224
2392
|
},
|
|
2393
|
+
{
|
|
2394
|
+
"description": "The unchecked icon, an `<zn-icon>` element.",
|
|
2395
|
+
"name": "unchecked-icon"
|
|
2396
|
+
},
|
|
2225
2397
|
{
|
|
2226
2398
|
"description": "The indeterminate icon, an `<zn-icon>` element.",
|
|
2227
2399
|
"name": "indeterminate-icon"
|
|
@@ -2444,6 +2616,55 @@
|
|
|
2444
2616
|
},
|
|
2445
2617
|
"attribute": "label-tooltip"
|
|
2446
2618
|
},
|
|
2619
|
+
{
|
|
2620
|
+
"kind": "field",
|
|
2621
|
+
"name": "checkedIcon",
|
|
2622
|
+
"type": {
|
|
2623
|
+
"text": "string"
|
|
2624
|
+
},
|
|
2625
|
+
"default": "''",
|
|
2626
|
+
"description": "The icon to show when the checkbox is checked.",
|
|
2627
|
+
"attribute": "checked-icon"
|
|
2628
|
+
},
|
|
2629
|
+
{
|
|
2630
|
+
"kind": "field",
|
|
2631
|
+
"name": "uncheckedIcon",
|
|
2632
|
+
"type": {
|
|
2633
|
+
"text": "string"
|
|
2634
|
+
},
|
|
2635
|
+
"default": "''",
|
|
2636
|
+
"description": "The icon to show when the checkbox is unchecked.",
|
|
2637
|
+
"attribute": "unchecked-icon"
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
"kind": "field",
|
|
2641
|
+
"name": "color",
|
|
2642
|
+
"type": {
|
|
2643
|
+
"text": "ColorOption"
|
|
2644
|
+
},
|
|
2645
|
+
"default": "'default'",
|
|
2646
|
+
"description": "The color of the checkbox.",
|
|
2647
|
+
"attribute": "color",
|
|
2648
|
+
"reflects": true
|
|
2649
|
+
},
|
|
2650
|
+
{
|
|
2651
|
+
"kind": "field",
|
|
2652
|
+
"name": "checkedColor",
|
|
2653
|
+
"type": {
|
|
2654
|
+
"text": "ColorOption"
|
|
2655
|
+
},
|
|
2656
|
+
"description": "The color of the checkbox when checked. Overrides `color`.",
|
|
2657
|
+
"attribute": "checked-color"
|
|
2658
|
+
},
|
|
2659
|
+
{
|
|
2660
|
+
"kind": "field",
|
|
2661
|
+
"name": "uncheckedColor",
|
|
2662
|
+
"type": {
|
|
2663
|
+
"text": "ColorOption"
|
|
2664
|
+
},
|
|
2665
|
+
"description": "The color of the checkbox when unchecked. Overrides `color`.",
|
|
2666
|
+
"attribute": "unchecked-color"
|
|
2667
|
+
},
|
|
2447
2668
|
{
|
|
2448
2669
|
"kind": "field",
|
|
2449
2670
|
"name": "validity",
|
|
@@ -2715,6 +2936,49 @@
|
|
|
2715
2936
|
"text": "string"
|
|
2716
2937
|
},
|
|
2717
2938
|
"fieldName": "labelTooltip"
|
|
2939
|
+
},
|
|
2940
|
+
{
|
|
2941
|
+
"name": "checked-icon",
|
|
2942
|
+
"type": {
|
|
2943
|
+
"text": "string"
|
|
2944
|
+
},
|
|
2945
|
+
"default": "''",
|
|
2946
|
+
"description": "The icon to show when the checkbox is checked.",
|
|
2947
|
+
"fieldName": "checkedIcon"
|
|
2948
|
+
},
|
|
2949
|
+
{
|
|
2950
|
+
"name": "unchecked-icon",
|
|
2951
|
+
"type": {
|
|
2952
|
+
"text": "string"
|
|
2953
|
+
},
|
|
2954
|
+
"default": "''",
|
|
2955
|
+
"description": "The icon to show when the checkbox is unchecked.",
|
|
2956
|
+
"fieldName": "uncheckedIcon"
|
|
2957
|
+
},
|
|
2958
|
+
{
|
|
2959
|
+
"name": "color",
|
|
2960
|
+
"type": {
|
|
2961
|
+
"text": "ColorOption"
|
|
2962
|
+
},
|
|
2963
|
+
"default": "'default'",
|
|
2964
|
+
"description": "The color of the checkbox.",
|
|
2965
|
+
"fieldName": "color"
|
|
2966
|
+
},
|
|
2967
|
+
{
|
|
2968
|
+
"name": "checked-color",
|
|
2969
|
+
"type": {
|
|
2970
|
+
"text": "ColorOption"
|
|
2971
|
+
},
|
|
2972
|
+
"description": "The color of the checkbox when checked. Overrides `color`.",
|
|
2973
|
+
"fieldName": "checkedColor"
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
"name": "unchecked-color",
|
|
2977
|
+
"type": {
|
|
2978
|
+
"text": "ColorOption"
|
|
2979
|
+
},
|
|
2980
|
+
"description": "The color of the checkbox when unchecked. Overrides `color`.",
|
|
2981
|
+
"fieldName": "uncheckedColor"
|
|
2718
2982
|
}
|
|
2719
2983
|
],
|
|
2720
2984
|
"superclass": {
|
|
@@ -2725,7 +2989,7 @@
|
|
|
2725
2989
|
"tagNameWithoutPrefix": "checkbox",
|
|
2726
2990
|
"tagName": "zn-checkbox",
|
|
2727
2991
|
"customElement": true,
|
|
2728
|
-
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/checkbox\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-icon\n *\n * @slot - The checkbox's label.\n * @slot description - A description of the checkbox's label. Serves as help text for a checkbox item. Alternatively, you can use the `description` attribute.\n *
|
|
2992
|
+
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/checkbox\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-icon\n *\n * @slot - The checkbox's label.\n * @slot description - A description of the checkbox's label. Serves as help text for a checkbox item. Alternatively, you can use the `description` attribute.\n * @slot selected-content - Use to nest rich content (like an input) inside a selected checkbox item. Use only with the contained style.\n *\n * @event zn-blur - Emitted when the checkbox loses focus.\n * @event zn-change - Emitted when the checked state changes.\n * @event zn-focus - Emitted when the checkbox gains focus.\n * @event zn-input - Emitted when the checkbox receives input.\n * @event zn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart base - The component's base wrapper.\n * @csspart control - The square container that wraps the checkbox's checked state.\n * @csspart control--checked - Matches the control part when the checkbox is checked.\n * @csspart control--indeterminate - Matches the control part when the checkbox is indeterminate.\n * @csspart checked-icon - The checked icon, an `<zn-icon>` element.\n * @csspart unchecked-icon - The unchecked icon, an `<zn-icon>` element.\n * @csspart indeterminate-icon - The indeterminate icon, an `<zn-icon>` element.\n * @csspart label - The container that wraps the checkbox's label.\n * @csspart description - The container that wraps the checkbox's description.\n * @csspart selected-content - The container that wraps optional content that appears when a checkbox is checked.\n */",
|
|
2729
2993
|
"documentation": "https://zinc.style/components/checkbox",
|
|
2730
2994
|
"status": "experimental",
|
|
2731
2995
|
"since": "1.0",
|
|
@@ -19775,7 +20039,7 @@
|
|
|
19775
20039
|
},
|
|
19776
20040
|
{
|
|
19777
20041
|
"kind": "field",
|
|
19778
|
-
"name": "
|
|
20042
|
+
"name": "inputPrefix",
|
|
19779
20043
|
"type": {
|
|
19780
20044
|
"text": "boolean"
|
|
19781
20045
|
},
|
|
@@ -20052,7 +20316,7 @@
|
|
|
20052
20316
|
},
|
|
20053
20317
|
{
|
|
20054
20318
|
"kind": "method",
|
|
20055
|
-
"name": "
|
|
20319
|
+
"name": "updateHasInputPrefix",
|
|
20056
20320
|
"privacy": "private"
|
|
20057
20321
|
},
|
|
20058
20322
|
{
|
|
@@ -26536,7 +26800,7 @@
|
|
|
26536
26800
|
"package": {
|
|
26537
26801
|
"name": "@kubex/zinc",
|
|
26538
26802
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
26539
|
-
"version": "1.0.
|
|
26803
|
+
"version": "1.0.19",
|
|
26540
26804
|
"author": "",
|
|
26541
26805
|
"license": "MIT"
|
|
26542
26806
|
}
|
|
@@ -59,6 +59,21 @@
|
|
|
59
59
|
}
|
|
60
60
|
]
|
|
61
61
|
},
|
|
62
|
+
{
|
|
63
|
+
"name": "zn-audio-select",
|
|
64
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Slots:**\n - _default_ - The default slot.\n- **actions** - The actions slot.\n- **footer** - The footer slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
65
|
+
"attributes": [
|
|
66
|
+
{ "name": "label", "values": [] },
|
|
67
|
+
{ "name": "placeholder", "values": [] },
|
|
68
|
+
{ "name": "files", "values": [{ "name": "AudioFile[]" }] }
|
|
69
|
+
],
|
|
70
|
+
"references": [
|
|
71
|
+
{
|
|
72
|
+
"name": "Documentation",
|
|
73
|
+
"url": "https://zinc.style/components/audio-select"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
62
77
|
{
|
|
63
78
|
"name": "zn-bulk-actions",
|
|
64
79
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -274,7 +289,7 @@
|
|
|
274
289
|
},
|
|
275
290
|
{
|
|
276
291
|
"name": "zn-checkbox",
|
|
277
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the checkbox loses focus.\n- **zn-change** - Emitted when the checked state changes.\n- **zn-focus** - Emitted when the checkbox gains focus.\n- **zn-input** - Emitted when the checkbox receives input.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n- **description** - A description of the checkbox's label. Serves as help text for a checkbox item. Alternatively, you can use the `description` attribute.\n- **selected-content** - Use to nest rich content (like an input) inside a selected checkbox item. Use only with the contained style.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<zn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<zn-icon>` element.\n- **label** - The container that wraps the checkbox's label.\n- **description** - The container that wraps the checkbox's description.\n- **selected-content** - The container that wraps optional content that appears when a checkbox is checked.",
|
|
292
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the checkbox loses focus.\n- **zn-change** - Emitted when the checked state changes.\n- **zn-focus** - Emitted when the checkbox gains focus.\n- **zn-input** - Emitted when the checkbox receives input.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n- **description** - A description of the checkbox's label. Serves as help text for a checkbox item. Alternatively, you can use the `description` attribute.\n- **selected-content** - Use to nest rich content (like an input) inside a selected checkbox item. Use only with the contained style.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<zn-icon>` element.\n- **unchecked-icon** - The unchecked icon, an `<zn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<zn-icon>` element.\n- **label** - The container that wraps the checkbox's label.\n- **description** - The container that wraps the checkbox's description.\n- **selected-content** - The container that wraps optional content that appears when a checkbox is checked.",
|
|
278
293
|
"attributes": [
|
|
279
294
|
{ "name": "title", "values": [] },
|
|
280
295
|
{
|
|
@@ -337,7 +352,32 @@
|
|
|
337
352
|
"values": []
|
|
338
353
|
},
|
|
339
354
|
{ "name": "label", "values": [] },
|
|
340
|
-
{ "name": "label-tooltip", "values": [] }
|
|
355
|
+
{ "name": "label-tooltip", "values": [] },
|
|
356
|
+
{
|
|
357
|
+
"name": "checked-icon",
|
|
358
|
+
"description": "The icon to show when the checkbox is checked.",
|
|
359
|
+
"values": []
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"name": "unchecked-icon",
|
|
363
|
+
"description": "The icon to show when the checkbox is unchecked.",
|
|
364
|
+
"values": []
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"name": "color",
|
|
368
|
+
"description": "The color of the checkbox.",
|
|
369
|
+
"values": [{ "name": "ColorOption" }]
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "checked-color",
|
|
373
|
+
"description": "The color of the checkbox when checked. Overrides `color`.",
|
|
374
|
+
"values": [{ "name": "ColorOption" }]
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"name": "unchecked-color",
|
|
378
|
+
"description": "The color of the checkbox when unchecked. Overrides `color`.",
|
|
379
|
+
"values": [{ "name": "ColorOption" }]
|
|
380
|
+
}
|
|
341
381
|
],
|
|
342
382
|
"references": [
|
|
343
383
|
{
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@kubex/zinc",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.19",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -92,6 +92,33 @@
|
|
|
92
92
|
]
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
|
+
{
|
|
96
|
+
"name": "zn-audio-select",
|
|
97
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Slots:**\n - _default_ - The default slot.\n- **actions** - The actions slot.\n- **footer** - The footer slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
98
|
+
"doc-url": "",
|
|
99
|
+
"attributes": [
|
|
100
|
+
{ "name": "label", "value": { "type": "string", "default": "''" } },
|
|
101
|
+
{
|
|
102
|
+
"name": "placeholder",
|
|
103
|
+
"value": { "type": "string", "default": "''" }
|
|
104
|
+
},
|
|
105
|
+
{ "name": "files", "value": { "type": "AudioFile[]" } }
|
|
106
|
+
],
|
|
107
|
+
"slots": [
|
|
108
|
+
{ "name": "", "description": "The default slot." },
|
|
109
|
+
{ "name": "actions", "description": "The actions slot." },
|
|
110
|
+
{ "name": "footer", "description": "The footer slot." }
|
|
111
|
+
],
|
|
112
|
+
"events": [],
|
|
113
|
+
"js": {
|
|
114
|
+
"properties": [
|
|
115
|
+
{ "name": "label", "type": "string" },
|
|
116
|
+
{ "name": "placeholder", "type": "string" },
|
|
117
|
+
{ "name": "files", "type": "AudioFile[]" }
|
|
118
|
+
],
|
|
119
|
+
"events": []
|
|
120
|
+
}
|
|
121
|
+
},
|
|
95
122
|
{
|
|
96
123
|
"name": "zn-bulk-actions",
|
|
97
124
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -533,7 +560,7 @@
|
|
|
533
560
|
},
|
|
534
561
|
{
|
|
535
562
|
"name": "zn-checkbox",
|
|
536
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the checkbox loses focus.\n- **zn-change** - Emitted when the checked state changes.\n- **zn-focus** - Emitted when the checkbox gains focus.\n- **zn-input** - Emitted when the checkbox receives input.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n- **description** - A description of the checkbox's label. Serves as help text for a checkbox item. Alternatively, you can use the `description` attribute.\n- **selected-content** - Use to nest rich content (like an input) inside a selected checkbox item. Use only with the contained style.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<zn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<zn-icon>` element.\n- **label** - The container that wraps the checkbox's label.\n- **description** - The container that wraps the checkbox's description.\n- **selected-content** - The container that wraps optional content that appears when a checkbox is checked.",
|
|
563
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the checkbox loses focus.\n- **zn-change** - Emitted when the checked state changes.\n- **zn-focus** - Emitted when the checkbox gains focus.\n- **zn-input** - Emitted when the checkbox receives input.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n- **description** - A description of the checkbox's label. Serves as help text for a checkbox item. Alternatively, you can use the `description` attribute.\n- **selected-content** - Use to nest rich content (like an input) inside a selected checkbox item. Use only with the contained style.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<zn-icon>` element.\n- **unchecked-icon** - The unchecked icon, an `<zn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<zn-icon>` element.\n- **label** - The container that wraps the checkbox's label.\n- **description** - The container that wraps the checkbox's description.\n- **selected-content** - The container that wraps optional content that appears when a checkbox is checked.",
|
|
537
564
|
"doc-url": "",
|
|
538
565
|
"attributes": [
|
|
539
566
|
{ "name": "title", "value": { "type": "string", "default": "''" } },
|
|
@@ -596,7 +623,32 @@
|
|
|
596
623
|
"value": { "type": "string", "default": "''" }
|
|
597
624
|
},
|
|
598
625
|
{ "name": "label", "value": { "type": "string" } },
|
|
599
|
-
{ "name": "label-tooltip", "value": { "type": "string" } }
|
|
626
|
+
{ "name": "label-tooltip", "value": { "type": "string" } },
|
|
627
|
+
{
|
|
628
|
+
"name": "checked-icon",
|
|
629
|
+
"description": "The icon to show when the checkbox is checked.",
|
|
630
|
+
"value": { "type": "string", "default": "''" }
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"name": "unchecked-icon",
|
|
634
|
+
"description": "The icon to show when the checkbox is unchecked.",
|
|
635
|
+
"value": { "type": "string", "default": "''" }
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"name": "color",
|
|
639
|
+
"description": "The color of the checkbox.",
|
|
640
|
+
"value": { "type": "ColorOption", "default": "'default'" }
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"name": "checked-color",
|
|
644
|
+
"description": "The color of the checkbox when checked. Overrides `color`.",
|
|
645
|
+
"value": { "type": "ColorOption" }
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"name": "unchecked-color",
|
|
649
|
+
"description": "The color of the checkbox when unchecked. Overrides `color`.",
|
|
650
|
+
"value": { "type": "ColorOption" }
|
|
651
|
+
}
|
|
600
652
|
],
|
|
601
653
|
"slots": [
|
|
602
654
|
{ "name": "", "description": "The checkbox's label." },
|
|
@@ -697,6 +749,31 @@
|
|
|
697
749
|
},
|
|
698
750
|
{ "name": "label", "type": "string" },
|
|
699
751
|
{ "name": "labelTooltip", "type": "string" },
|
|
752
|
+
{
|
|
753
|
+
"name": "checkedIcon",
|
|
754
|
+
"description": "The icon to show when the checkbox is checked.",
|
|
755
|
+
"type": "string"
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"name": "uncheckedIcon",
|
|
759
|
+
"description": "The icon to show when the checkbox is unchecked.",
|
|
760
|
+
"type": "string"
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"name": "color",
|
|
764
|
+
"description": "The color of the checkbox.",
|
|
765
|
+
"type": "ColorOption"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"name": "checkedColor",
|
|
769
|
+
"description": "The color of the checkbox when checked. Overrides `color`.",
|
|
770
|
+
"type": "ColorOption"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"name": "uncheckedColor",
|
|
774
|
+
"description": "The color of the checkbox when unchecked. Overrides `color`.",
|
|
775
|
+
"type": "ColorOption"
|
|
776
|
+
},
|
|
700
777
|
{
|
|
701
778
|
"name": "validity",
|
|
702
779
|
"description": "Gets the validity state object"
|
package/dist/zn.d.ts
CHANGED
|
@@ -2025,7 +2025,7 @@ declare module "components/select/select.component" {
|
|
|
2025
2025
|
currentOption: ZnOption;
|
|
2026
2026
|
selectedOptions: ZnOption[];
|
|
2027
2027
|
private valueHasChanged;
|
|
2028
|
-
private
|
|
2028
|
+
private inputPrefix;
|
|
2029
2029
|
/** The name of the select, submitted as a name/value pair with form data. */
|
|
2030
2030
|
name: string;
|
|
2031
2031
|
private _value;
|
|
@@ -2103,7 +2103,7 @@ declare module "components/select/select.component" {
|
|
|
2103
2103
|
/** Gets the validation message */
|
|
2104
2104
|
get validationMessage(): string;
|
|
2105
2105
|
connectedCallback(): void;
|
|
2106
|
-
private
|
|
2106
|
+
private updateHasInputPrefix;
|
|
2107
2107
|
private addOpenListeners;
|
|
2108
2108
|
private removeOpenListeners;
|
|
2109
2109
|
private handleFocus;
|
|
@@ -4951,6 +4951,7 @@ declare module "components/checkbox/checkbox.component" {
|
|
|
4951
4951
|
import ZincElement from "internal/zinc-element";
|
|
4952
4952
|
import ZnIcon from "components/icon/index";
|
|
4953
4953
|
import type { ZincFormControl } from "internal/zinc-element";
|
|
4954
|
+
type ColorOption = 'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | 'transparent';
|
|
4954
4955
|
/**
|
|
4955
4956
|
* @summary Short summary of the component's intended use.
|
|
4956
4957
|
* @documentation https://zinc.style/components/checkbox
|
|
@@ -4961,7 +4962,7 @@ declare module "components/checkbox/checkbox.component" {
|
|
|
4961
4962
|
*
|
|
4962
4963
|
* @slot - The checkbox's label.
|
|
4963
4964
|
* @slot description - A description of the checkbox's label. Serves as help text for a checkbox item. Alternatively, you can use the `description` attribute.
|
|
4964
|
-
*
|
|
4965
|
+
* @slot selected-content - Use to nest rich content (like an input) inside a selected checkbox item. Use only with the contained style.
|
|
4965
4966
|
*
|
|
4966
4967
|
* @event zn-blur - Emitted when the checkbox loses focus.
|
|
4967
4968
|
* @event zn-change - Emitted when the checked state changes.
|
|
@@ -4974,6 +4975,7 @@ declare module "components/checkbox/checkbox.component" {
|
|
|
4974
4975
|
* @csspart control--checked - Matches the control part when the checkbox is checked.
|
|
4975
4976
|
* @csspart control--indeterminate - Matches the control part when the checkbox is indeterminate.
|
|
4976
4977
|
* @csspart checked-icon - The checked icon, an `<zn-icon>` element.
|
|
4978
|
+
* @csspart unchecked-icon - The unchecked icon, an `<zn-icon>` element.
|
|
4977
4979
|
* @csspart indeterminate-icon - The indeterminate icon, an `<zn-icon>` element.
|
|
4978
4980
|
* @csspart label - The container that wraps the checkbox's label.
|
|
4979
4981
|
* @csspart description - The container that wraps the checkbox's description.
|
|
@@ -5022,6 +5024,16 @@ declare module "components/checkbox/checkbox.component" {
|
|
|
5022
5024
|
description: string;
|
|
5023
5025
|
label: string;
|
|
5024
5026
|
labelTooltip: string;
|
|
5027
|
+
/** The icon to show when the checkbox is checked. */
|
|
5028
|
+
checkedIcon: string;
|
|
5029
|
+
/** The icon to show when the checkbox is unchecked. */
|
|
5030
|
+
uncheckedIcon: string;
|
|
5031
|
+
/** The color of the checkbox. */
|
|
5032
|
+
color: ColorOption;
|
|
5033
|
+
/** The color of the checkbox when checked. Overrides `color`. */
|
|
5034
|
+
checkedColor: ColorOption;
|
|
5035
|
+
/** The color of the checkbox when unchecked. Overrides `color`. */
|
|
5036
|
+
uncheckedColor: ColorOption;
|
|
5025
5037
|
/** Gets the validity state object */
|
|
5026
5038
|
get validity(): ValidityState;
|
|
5027
5039
|
get isChecked(): boolean;
|
|
@@ -6580,6 +6592,54 @@ declare module "components/reveal/index" {
|
|
|
6580
6592
|
}
|
|
6581
6593
|
}
|
|
6582
6594
|
}
|
|
6595
|
+
declare module "components/audio-select/audio-select.component" {
|
|
6596
|
+
import { type CSSResultGroup } from 'lit';
|
|
6597
|
+
import ZincElement from "internal/zinc-element";
|
|
6598
|
+
import type { ZnChangeEvent } from "events/zn-change";
|
|
6599
|
+
interface AudioFile {
|
|
6600
|
+
name: string;
|
|
6601
|
+
url: string;
|
|
6602
|
+
}
|
|
6603
|
+
/**
|
|
6604
|
+
* @summary Short summary of the component's intended use.
|
|
6605
|
+
* @documentation https://zinc.style/components/audio-select
|
|
6606
|
+
* @status experimental
|
|
6607
|
+
* @since 1.0
|
|
6608
|
+
*
|
|
6609
|
+
* @slot - The default slot.
|
|
6610
|
+
* @slot actions - The actions slot.
|
|
6611
|
+
* @slot footer - The footer slot.
|
|
6612
|
+
*
|
|
6613
|
+
* @csspart base - The component's base wrapper.
|
|
6614
|
+
*
|
|
6615
|
+
* @cssproperty --example - An example CSS custom property.
|
|
6616
|
+
*/
|
|
6617
|
+
export default class ZnAudioSelect extends ZincElement {
|
|
6618
|
+
static styles: CSSResultGroup;
|
|
6619
|
+
private _selectedUrl;
|
|
6620
|
+
private _isPlaying;
|
|
6621
|
+
private readonly _audio;
|
|
6622
|
+
label: string;
|
|
6623
|
+
placeholder: string;
|
|
6624
|
+
files: AudioFile[];
|
|
6625
|
+
constructor();
|
|
6626
|
+
disconnectedCallback(): void;
|
|
6627
|
+
_stopAudio(): void;
|
|
6628
|
+
handleSelectChange(e: ZnChangeEvent): void;
|
|
6629
|
+
togglePreview(e: CustomEvent): void;
|
|
6630
|
+
render(): import("lit").TemplateResult<1>;
|
|
6631
|
+
}
|
|
6632
|
+
}
|
|
6633
|
+
declare module "components/audio-select/index" {
|
|
6634
|
+
import ZnAudioSelect from "components/audio-select/audio-select.component";
|
|
6635
|
+
export * from "components/audio-select/audio-select.component";
|
|
6636
|
+
export default ZnAudioSelect;
|
|
6637
|
+
global {
|
|
6638
|
+
interface HTMLElementTagNameMap {
|
|
6639
|
+
'zn-audio-select': ZnAudioSelect;
|
|
6640
|
+
}
|
|
6641
|
+
}
|
|
6642
|
+
}
|
|
6583
6643
|
declare module "events/zn-after-hide" {
|
|
6584
6644
|
export type ZnAfterHideEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
6585
6645
|
global {
|
|
@@ -6721,6 +6781,7 @@ declare module "zinc" {
|
|
|
6721
6781
|
export { default as SettingsContainer } from "components/settings-container/index";
|
|
6722
6782
|
export { default as FilterContainer } from "components/filter-container/index";
|
|
6723
6783
|
export { default as Reveal } from "components/reveal/index";
|
|
6784
|
+
export { default as AudioSelect } from "components/audio-select/index";
|
|
6724
6785
|
export { default as ZincElement } from "internal/zinc-element";
|
|
6725
6786
|
export * from "utilities/on";
|
|
6726
6787
|
export * from "utilities/query";
|