@kubex/zinc 1.0.19 → 1.0.21
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 +470 -13
- package/dist/vscode.html-custom-data.json +57 -1
- package/dist/web-types.json +122 -4
- package/dist/zn.d.ts +100 -5
- package/dist/zn.min.js +433 -375
- package/docs/pages/components/input-group.md +61 -0
- package/docs/pages/components/translations.md +53 -0
- package/package.json +1 -1
- package/src/components/audio-select/audio-select.component.ts +37 -34
- package/src/components/checkbox/checkbox.component.ts +12 -1
- package/src/components/data-table/data-table.component.ts +7 -0
- package/src/components/inline-edit/inline-edit.component.ts +4 -1
- package/src/components/input-group/index.ts +12 -0
- package/src/components/input-group/input-group.component.ts +73 -0
- package/src/components/input-group/input-group.scss +65 -0
- package/src/components/input-group/input-group.test.ts +98 -0
- package/src/components/item/item.component.ts +5 -1
- package/src/components/item/item.scss +4 -0
- package/src/components/navbar/navbar.component.ts +40 -8
- package/src/components/navbar/navbar.scss +17 -1
- package/src/components/tabs/tabs.component.ts +33 -24
- package/src/components/translations/index.ts +6 -0
- package/src/components/translations/translations.component.ts +239 -0
- package/src/components/translations/translations.scss +15 -0
- package/src/components/translations/translations.test.ts +39 -0
- package/src/events/zn-select.ts +1 -1
- package/src/zinc.ts +2 -0
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"name": "zn-audio-select",
|
|
64
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
65
|
"attributes": [
|
|
66
|
+
{ "name": "value", "values": [] },
|
|
66
67
|
{ "name": "label", "values": [] },
|
|
67
68
|
{ "name": "placeholder", "values": [] },
|
|
68
69
|
{ "name": "files", "values": [{ "name": "AudioFile[]" }] }
|
|
@@ -302,6 +303,11 @@
|
|
|
302
303
|
"description": "The current value of the checkbox, submitted as a name/value pair with form data.",
|
|
303
304
|
"values": []
|
|
304
305
|
},
|
|
306
|
+
{
|
|
307
|
+
"name": "unchecked-value",
|
|
308
|
+
"description": "The unchecked value of the checkbox, submitted as a name/value pair with form data.",
|
|
309
|
+
"values": []
|
|
310
|
+
},
|
|
305
311
|
{
|
|
306
312
|
"name": "size",
|
|
307
313
|
"description": "The checkbox's size.",
|
|
@@ -346,6 +352,11 @@
|
|
|
346
352
|
"description": "Makes the checkbox a required field.",
|
|
347
353
|
"values": []
|
|
348
354
|
},
|
|
355
|
+
{
|
|
356
|
+
"name": "submit-on-click",
|
|
357
|
+
"description": "Submits the form when checkbox is clicked.",
|
|
358
|
+
"values": []
|
|
359
|
+
},
|
|
349
360
|
{
|
|
350
361
|
"name": "description",
|
|
351
362
|
"description": "The checkbox's help text. If you need to display HTML, use the `description` slot instead.",
|
|
@@ -1606,6 +1617,23 @@
|
|
|
1606
1617
|
}
|
|
1607
1618
|
]
|
|
1608
1619
|
},
|
|
1620
|
+
{
|
|
1621
|
+
"name": "zn-input-group",
|
|
1622
|
+
"description": "A wrapper component that groups inputs and selects visually.\n---\n\n\n### **Slots:**\n - _default_ - The default slot for inputs and selects.\n- **label** - The input group's label. Alternatively, you can use the `label` attribute.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **form-control** - The form control wrapper.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input group container.",
|
|
1623
|
+
"attributes": [
|
|
1624
|
+
{
|
|
1625
|
+
"name": "label",
|
|
1626
|
+
"description": "The input group's label. If you need to display HTML, use the `label` slot.",
|
|
1627
|
+
"values": []
|
|
1628
|
+
}
|
|
1629
|
+
],
|
|
1630
|
+
"references": [
|
|
1631
|
+
{
|
|
1632
|
+
"name": "Documentation",
|
|
1633
|
+
"url": "https://zinc.style/components/input-group"
|
|
1634
|
+
}
|
|
1635
|
+
]
|
|
1636
|
+
},
|
|
1609
1637
|
{
|
|
1610
1638
|
"name": "zn-item",
|
|
1611
1639
|
"description": "Used for listing items in a description list. Caption on the right, content on the left.\n---\n\n\n### **Slots:**\n - _default_ - The default slot. Can either be slotted or use the value attribute\n- **actions** - Used for adding actions to a zn-item.\n\n### **CSS Parts:**\n - **base** - The items base wrapper\n- **caption** - The items caption\n- **icon** - The items icon",
|
|
@@ -1627,7 +1655,8 @@
|
|
|
1627
1655
|
{ "name": "inline", "values": [] },
|
|
1628
1656
|
{ "name": "grid", "values": [] },
|
|
1629
1657
|
{ "name": "no-padding", "values": [] },
|
|
1630
|
-
{ "name": "align-end", "values": [] }
|
|
1658
|
+
{ "name": "align-end", "values": [] },
|
|
1659
|
+
{ "name": "align-center", "values": [] }
|
|
1631
1660
|
],
|
|
1632
1661
|
"references": [
|
|
1633
1662
|
{ "name": "Documentation", "url": "https://zinc.style/components/item" }
|
|
@@ -1734,6 +1763,8 @@
|
|
|
1734
1763
|
{ "name": "stacked", "values": [] },
|
|
1735
1764
|
{ "name": "dropdown", "values": [{ "name": "array" }] },
|
|
1736
1765
|
{ "name": "no-pad", "values": [{ "name": "false" }] },
|
|
1766
|
+
{ "name": "manual-add-items", "values": [] },
|
|
1767
|
+
{ "name": "isolated", "values": [] },
|
|
1737
1768
|
{ "name": "_appended", "values": [{ "name": "Element[]" }] }
|
|
1738
1769
|
],
|
|
1739
1770
|
"references": [
|
|
@@ -2973,6 +3004,31 @@
|
|
|
2973
3004
|
}
|
|
2974
3005
|
]
|
|
2975
3006
|
},
|
|
3007
|
+
{
|
|
3008
|
+
"name": "zn-translations",
|
|
3009
|
+
"description": "\n---\n",
|
|
3010
|
+
"attributes": [
|
|
3011
|
+
{ "name": "name", "values": [] },
|
|
3012
|
+
{ "name": "value", "values": [] },
|
|
3013
|
+
{ "name": "label", "values": [] },
|
|
3014
|
+
{ "name": "disabled", "values": [] },
|
|
3015
|
+
{ "name": "required", "values": [] },
|
|
3016
|
+
{
|
|
3017
|
+
"name": "languages",
|
|
3018
|
+
"values": [{ "name": "Record<string" }, { "name": "string>" }]
|
|
3019
|
+
},
|
|
3020
|
+
{
|
|
3021
|
+
"name": "values",
|
|
3022
|
+
"values": [{ "name": "Record<string" }, { "name": "string>" }]
|
|
3023
|
+
}
|
|
3024
|
+
],
|
|
3025
|
+
"references": [
|
|
3026
|
+
{
|
|
3027
|
+
"name": "Documentation",
|
|
3028
|
+
"url": "https://zinc.style/components/translations"
|
|
3029
|
+
}
|
|
3030
|
+
]
|
|
3031
|
+
},
|
|
2976
3032
|
{
|
|
2977
3033
|
"name": "zn-vertical-stepper",
|
|
2978
3034
|
"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.",
|
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.21",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -97,12 +97,16 @@
|
|
|
97
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
98
|
"doc-url": "",
|
|
99
99
|
"attributes": [
|
|
100
|
+
{ "name": "value", "value": { "type": "string", "default": "''" } },
|
|
100
101
|
{ "name": "label", "value": { "type": "string", "default": "''" } },
|
|
101
102
|
{
|
|
102
103
|
"name": "placeholder",
|
|
103
104
|
"value": { "type": "string", "default": "''" }
|
|
104
105
|
},
|
|
105
|
-
{
|
|
106
|
+
{
|
|
107
|
+
"name": "files",
|
|
108
|
+
"value": { "type": "AudioFile[]", "default": "[]" }
|
|
109
|
+
}
|
|
106
110
|
],
|
|
107
111
|
"slots": [
|
|
108
112
|
{ "name": "", "description": "The default slot." },
|
|
@@ -112,6 +116,7 @@
|
|
|
112
116
|
"events": [],
|
|
113
117
|
"js": {
|
|
114
118
|
"properties": [
|
|
119
|
+
{ "name": "value", "type": "string" },
|
|
115
120
|
{ "name": "label", "type": "string" },
|
|
116
121
|
{ "name": "placeholder", "type": "string" },
|
|
117
122
|
{ "name": "files", "type": "AudioFile[]" }
|
|
@@ -574,6 +579,11 @@
|
|
|
574
579
|
"description": "The current value of the checkbox, submitted as a name/value pair with form data.",
|
|
575
580
|
"value": { "type": "string" }
|
|
576
581
|
},
|
|
582
|
+
{
|
|
583
|
+
"name": "unchecked-value",
|
|
584
|
+
"description": "The unchecked value of the checkbox, submitted as a name/value pair with form data.",
|
|
585
|
+
"value": { "type": "string" }
|
|
586
|
+
},
|
|
577
587
|
{
|
|
578
588
|
"name": "size",
|
|
579
589
|
"description": "The checkbox's size.",
|
|
@@ -617,6 +627,11 @@
|
|
|
617
627
|
"description": "Makes the checkbox a required field.",
|
|
618
628
|
"value": { "type": "boolean", "default": "false" }
|
|
619
629
|
},
|
|
630
|
+
{
|
|
631
|
+
"name": "submit-on-click",
|
|
632
|
+
"description": "Submits the form when checkbox is clicked.",
|
|
633
|
+
"value": { "type": "boolean", "default": "false" }
|
|
634
|
+
},
|
|
620
635
|
{
|
|
621
636
|
"name": "description",
|
|
622
637
|
"description": "The checkbox's help text. If you need to display HTML, use the `description` slot instead.",
|
|
@@ -697,6 +712,11 @@
|
|
|
697
712
|
"description": "The current value of the checkbox, submitted as a name/value pair with form data.",
|
|
698
713
|
"type": "string"
|
|
699
714
|
},
|
|
715
|
+
{
|
|
716
|
+
"name": "uncheckedValue",
|
|
717
|
+
"description": "The unchecked value of the checkbox, submitted as a name/value pair with form data.",
|
|
718
|
+
"type": "string"
|
|
719
|
+
},
|
|
700
720
|
{
|
|
701
721
|
"name": "size",
|
|
702
722
|
"description": "The checkbox's size.",
|
|
@@ -742,6 +762,11 @@
|
|
|
742
762
|
"description": "Makes the checkbox a required field.",
|
|
743
763
|
"type": "boolean"
|
|
744
764
|
},
|
|
765
|
+
{
|
|
766
|
+
"name": "submitOnClick",
|
|
767
|
+
"description": "Submits the form when checkbox is clicked.",
|
|
768
|
+
"type": "boolean"
|
|
769
|
+
},
|
|
745
770
|
{
|
|
746
771
|
"name": "description",
|
|
747
772
|
"description": "The checkbox's help text. If you need to display HTML, use the `description` slot instead.",
|
|
@@ -3609,6 +3634,40 @@
|
|
|
3609
3634
|
]
|
|
3610
3635
|
}
|
|
3611
3636
|
},
|
|
3637
|
+
{
|
|
3638
|
+
"name": "zn-input-group",
|
|
3639
|
+
"description": "A wrapper component that groups inputs and selects visually.\n---\n\n\n### **Slots:**\n - _default_ - The default slot for inputs and selects.\n- **label** - The input group's label. Alternatively, you can use the `label` attribute.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **form-control** - The form control wrapper.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input group container.",
|
|
3640
|
+
"doc-url": "",
|
|
3641
|
+
"attributes": [
|
|
3642
|
+
{
|
|
3643
|
+
"name": "label",
|
|
3644
|
+
"description": "The input group's label. If you need to display HTML, use the `label` slot.",
|
|
3645
|
+
"value": { "type": "string", "default": "''" }
|
|
3646
|
+
}
|
|
3647
|
+
],
|
|
3648
|
+
"slots": [
|
|
3649
|
+
{
|
|
3650
|
+
"name": "",
|
|
3651
|
+
"description": "The default slot for inputs and selects."
|
|
3652
|
+
},
|
|
3653
|
+
{
|
|
3654
|
+
"name": "label",
|
|
3655
|
+
"description": "The input group's label. Alternatively, you can use the `label` attribute."
|
|
3656
|
+
}
|
|
3657
|
+
],
|
|
3658
|
+
"events": [],
|
|
3659
|
+
"js": {
|
|
3660
|
+
"properties": [
|
|
3661
|
+
{ "name": "defaultSlot", "type": "HTMLSlotElement" },
|
|
3662
|
+
{
|
|
3663
|
+
"name": "label",
|
|
3664
|
+
"description": "The input group's label. If you need to display HTML, use the `label` slot.",
|
|
3665
|
+
"type": "string"
|
|
3666
|
+
}
|
|
3667
|
+
],
|
|
3668
|
+
"events": []
|
|
3669
|
+
}
|
|
3670
|
+
},
|
|
3612
3671
|
{
|
|
3613
3672
|
"name": "zn-item",
|
|
3614
3673
|
"description": "Used for listing items in a description list. Caption on the right, content on the left.\n---\n\n\n### **Slots:**\n - _default_ - The default slot. Can either be slotted or use the value attribute\n- **actions** - Used for adding actions to a zn-item.\n\n### **CSS Parts:**\n - **base** - The items base wrapper\n- **caption** - The items caption\n- **icon** - The items icon",
|
|
@@ -3630,7 +3689,8 @@
|
|
|
3630
3689
|
{ "name": "inline", "value": { "type": "boolean" } },
|
|
3631
3690
|
{ "name": "grid", "value": { "type": "boolean" } },
|
|
3632
3691
|
{ "name": "no-padding", "value": { "type": "boolean" } },
|
|
3633
|
-
{ "name": "align-end", "value": { "type": "boolean" } }
|
|
3692
|
+
{ "name": "align-end", "value": { "type": "boolean" } },
|
|
3693
|
+
{ "name": "align-center", "value": { "type": "boolean" } }
|
|
3634
3694
|
],
|
|
3635
3695
|
"slots": [
|
|
3636
3696
|
{
|
|
@@ -3655,7 +3715,8 @@
|
|
|
3655
3715
|
{ "name": "inline", "type": "boolean" },
|
|
3656
3716
|
{ "name": "grid", "type": "boolean" },
|
|
3657
3717
|
{ "name": "noPadding", "type": "boolean" },
|
|
3658
|
-
{ "name": "alignEnd", "type": "boolean" }
|
|
3718
|
+
{ "name": "alignEnd", "type": "boolean" },
|
|
3719
|
+
{ "name": "alignCenter", "type": "boolean" }
|
|
3659
3720
|
],
|
|
3660
3721
|
"events": []
|
|
3661
3722
|
}
|
|
@@ -3887,6 +3948,14 @@
|
|
|
3887
3948
|
"value": { "type": "array", "default": "[]" }
|
|
3888
3949
|
},
|
|
3889
3950
|
{ "name": "no-pad", "value": { "type": "false" } },
|
|
3951
|
+
{
|
|
3952
|
+
"name": "manual-add-items",
|
|
3953
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3954
|
+
},
|
|
3955
|
+
{
|
|
3956
|
+
"name": "isolated",
|
|
3957
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3958
|
+
},
|
|
3890
3959
|
{ "name": "_appended", "value": { "type": "Element[]" } }
|
|
3891
3960
|
],
|
|
3892
3961
|
"slots": [
|
|
@@ -3908,6 +3977,8 @@
|
|
|
3908
3977
|
{ "name": "stacked", "type": "boolean" },
|
|
3909
3978
|
{ "name": "dropdown", "type": "array" },
|
|
3910
3979
|
{ "name": "noPad", "type": "false" },
|
|
3980
|
+
{ "name": "manualAddItems", "type": "boolean" },
|
|
3981
|
+
{ "name": "isolated", "type": "boolean" },
|
|
3911
3982
|
{ "name": "handleResize" }
|
|
3912
3983
|
],
|
|
3913
3984
|
"events": [
|
|
@@ -6900,6 +6971,53 @@
|
|
|
6900
6971
|
]
|
|
6901
6972
|
}
|
|
6902
6973
|
},
|
|
6974
|
+
{
|
|
6975
|
+
"name": "zn-translations",
|
|
6976
|
+
"description": "\n---\n",
|
|
6977
|
+
"doc-url": "",
|
|
6978
|
+
"attributes": [
|
|
6979
|
+
{ "name": "name", "value": { "type": "string", "default": "''" } },
|
|
6980
|
+
{
|
|
6981
|
+
"name": "value",
|
|
6982
|
+
"value": { "type": "string", "default": "'{\"en\":\"\"}'" }
|
|
6983
|
+
},
|
|
6984
|
+
{ "name": "label", "value": { "type": "string", "default": "''" } },
|
|
6985
|
+
{
|
|
6986
|
+
"name": "disabled",
|
|
6987
|
+
"value": { "type": "boolean", "default": "false" }
|
|
6988
|
+
},
|
|
6989
|
+
{
|
|
6990
|
+
"name": "required",
|
|
6991
|
+
"value": { "type": "boolean", "default": "false" }
|
|
6992
|
+
},
|
|
6993
|
+
{
|
|
6994
|
+
"name": "languages",
|
|
6995
|
+
"value": {
|
|
6996
|
+
"type": "Record<string, string>",
|
|
6997
|
+
"default": "{ 'en': 'English' }"
|
|
6998
|
+
}
|
|
6999
|
+
},
|
|
7000
|
+
{
|
|
7001
|
+
"name": "values",
|
|
7002
|
+
"value": { "type": "Record<string, string>", "default": "{}" }
|
|
7003
|
+
}
|
|
7004
|
+
],
|
|
7005
|
+
"events": [],
|
|
7006
|
+
"js": {
|
|
7007
|
+
"properties": [
|
|
7008
|
+
{ "name": "name", "type": "string" },
|
|
7009
|
+
{ "name": "value", "type": "string" },
|
|
7010
|
+
{ "name": "label", "type": "string" },
|
|
7011
|
+
{ "name": "disabled", "type": "boolean" },
|
|
7012
|
+
{ "name": "required", "type": "boolean" },
|
|
7013
|
+
{ "name": "languages", "type": "Record<string, string>" },
|
|
7014
|
+
{ "name": "values", "type": "Record<string, string>" },
|
|
7015
|
+
{ "name": "validity", "type": "ValidityState" },
|
|
7016
|
+
{ "name": "validationMessage" }
|
|
7017
|
+
],
|
|
7018
|
+
"events": []
|
|
7019
|
+
}
|
|
7020
|
+
},
|
|
6903
7021
|
{
|
|
6904
7022
|
"name": "zn-vertical-stepper",
|
|
6905
7023
|
"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.",
|
package/dist/zn.d.ts
CHANGED
|
@@ -622,7 +622,7 @@ declare module "components/menu-item/index" {
|
|
|
622
622
|
declare module "events/zn-select" {
|
|
623
623
|
import type ZnMenuItem from "components/menu-item/index";
|
|
624
624
|
export type ZnSelectEvent = CustomEvent<{
|
|
625
|
-
item: ZnMenuItem;
|
|
625
|
+
item: ZnMenuItem | HTMLElement;
|
|
626
626
|
}>;
|
|
627
627
|
global {
|
|
628
628
|
interface GlobalEventHandlersEventMap {
|
|
@@ -2639,6 +2639,7 @@ declare module "components/data-table/data-table.component" {
|
|
|
2639
2639
|
sortValue?: string;
|
|
2640
2640
|
uri?: string;
|
|
2641
2641
|
target?: string;
|
|
2642
|
+
copyable?: boolean;
|
|
2642
2643
|
}
|
|
2643
2644
|
interface Row {
|
|
2644
2645
|
id: string;
|
|
@@ -3198,6 +3199,8 @@ declare module "components/navbar/navbar.component" {
|
|
|
3198
3199
|
stacked: boolean;
|
|
3199
3200
|
dropdown: never[];
|
|
3200
3201
|
noPad: false;
|
|
3202
|
+
manualAddItems: boolean;
|
|
3203
|
+
isolated: boolean;
|
|
3201
3204
|
private _preItems;
|
|
3202
3205
|
private _postItems;
|
|
3203
3206
|
private _appended;
|
|
@@ -3213,9 +3216,10 @@ declare module "components/navbar/navbar.component" {
|
|
|
3213
3216
|
appendItem(item: Element): void;
|
|
3214
3217
|
connectedCallback(): void;
|
|
3215
3218
|
handleResize: () => void;
|
|
3216
|
-
addItem(item:
|
|
3219
|
+
addItem(item: Element): void;
|
|
3217
3220
|
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
3218
3221
|
showMore(): void;
|
|
3222
|
+
private handleClick;
|
|
3219
3223
|
render(): import("lit").TemplateResult<1>;
|
|
3220
3224
|
}
|
|
3221
3225
|
}
|
|
@@ -4995,6 +4999,8 @@ declare module "components/checkbox/checkbox.component" {
|
|
|
4995
4999
|
name: string;
|
|
4996
5000
|
/** The current value of the checkbox, submitted as a name/value pair with form data. */
|
|
4997
5001
|
value: string;
|
|
5002
|
+
/** The unchecked value of the checkbox, submitted as a name/value pair with form data. */
|
|
5003
|
+
uncheckedValue: string;
|
|
4998
5004
|
/** The checkbox's size. */
|
|
4999
5005
|
size: 'small' | 'medium' | 'large';
|
|
5000
5006
|
/** Disables the checkbox. */
|
|
@@ -5020,6 +5026,8 @@ declare module "components/checkbox/checkbox.component" {
|
|
|
5020
5026
|
form: string;
|
|
5021
5027
|
/** Makes the checkbox a required field. */
|
|
5022
5028
|
required: boolean;
|
|
5029
|
+
/** Submits the form when checkbox is clicked. */
|
|
5030
|
+
submitOnClick: boolean;
|
|
5023
5031
|
/** The checkbox's help text. If you need to display HTML, use the `description` slot instead. */
|
|
5024
5032
|
description: string;
|
|
5025
5033
|
label: string;
|
|
@@ -5228,6 +5236,43 @@ declare module "components/form-group/index" {
|
|
|
5228
5236
|
}
|
|
5229
5237
|
}
|
|
5230
5238
|
}
|
|
5239
|
+
declare module "components/input-group/input-group.component" {
|
|
5240
|
+
import { type CSSResultGroup } from 'lit';
|
|
5241
|
+
import ZincElement from "internal/zinc-element";
|
|
5242
|
+
/**
|
|
5243
|
+
* @summary A wrapper component that groups inputs and selects visually.
|
|
5244
|
+
* @documentation https://zinc.style/components/input-group
|
|
5245
|
+
* @status experimental
|
|
5246
|
+
* @since 1.0
|
|
5247
|
+
*
|
|
5248
|
+
* @slot - The default slot for inputs and selects.
|
|
5249
|
+
* @slot label - The input group's label. Alternatively, you can use the `label` attribute.
|
|
5250
|
+
*
|
|
5251
|
+
* @csspart base - The component's base wrapper.
|
|
5252
|
+
* @csspart form-control - The form control wrapper.
|
|
5253
|
+
* @csspart form-control-label - The label's wrapper.
|
|
5254
|
+
* @csspart form-control-input - The input group container.
|
|
5255
|
+
*/
|
|
5256
|
+
export default class ZnInputGroup extends ZincElement {
|
|
5257
|
+
static styles: CSSResultGroup;
|
|
5258
|
+
private readonly hasSlotController;
|
|
5259
|
+
defaultSlot: HTMLSlotElement;
|
|
5260
|
+
/** The input group's label. If you need to display HTML, use the `label` slot. */
|
|
5261
|
+
label: string;
|
|
5262
|
+
private handleSlotChange;
|
|
5263
|
+
render(): import("lit").TemplateResult<1>;
|
|
5264
|
+
}
|
|
5265
|
+
}
|
|
5266
|
+
declare module "components/input-group/index" {
|
|
5267
|
+
import ZnInputGroup from "components/input-group/input-group.component";
|
|
5268
|
+
export * from "components/input-group/input-group.component";
|
|
5269
|
+
export default ZnInputGroup;
|
|
5270
|
+
global {
|
|
5271
|
+
interface HTMLElementTagNameMap {
|
|
5272
|
+
'zn-input-group': ZnInputGroup;
|
|
5273
|
+
}
|
|
5274
|
+
}
|
|
5275
|
+
}
|
|
5231
5276
|
declare module "components/linked-select/linked-select.component" {
|
|
5232
5277
|
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
|
5233
5278
|
import ZincElement from "internal/zinc-element";
|
|
@@ -5921,6 +5966,7 @@ declare module "components/item/item.component" {
|
|
|
5921
5966
|
grid: boolean;
|
|
5922
5967
|
noPadding: boolean;
|
|
5923
5968
|
alignEnd: boolean;
|
|
5969
|
+
alignCenter: boolean;
|
|
5924
5970
|
connectedCallback(): void;
|
|
5925
5971
|
protected updated(_changedProperties: PropertyValues): void;
|
|
5926
5972
|
protected _hasContent(): boolean;
|
|
@@ -6593,7 +6639,7 @@ declare module "components/reveal/index" {
|
|
|
6593
6639
|
}
|
|
6594
6640
|
}
|
|
6595
6641
|
declare module "components/audio-select/audio-select.component" {
|
|
6596
|
-
import { type CSSResultGroup } from 'lit';
|
|
6642
|
+
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
|
6597
6643
|
import ZincElement from "internal/zinc-element";
|
|
6598
6644
|
import type { ZnChangeEvent } from "events/zn-change";
|
|
6599
6645
|
interface AudioFile {
|
|
@@ -6616,15 +6662,16 @@ declare module "components/audio-select/audio-select.component" {
|
|
|
6616
6662
|
*/
|
|
6617
6663
|
export default class ZnAudioSelect extends ZincElement {
|
|
6618
6664
|
static styles: CSSResultGroup;
|
|
6619
|
-
private _selectedUrl;
|
|
6620
6665
|
private _isPlaying;
|
|
6621
6666
|
private readonly _audio;
|
|
6667
|
+
value: string;
|
|
6622
6668
|
label: string;
|
|
6623
6669
|
placeholder: string;
|
|
6624
6670
|
files: AudioFile[];
|
|
6625
6671
|
constructor();
|
|
6626
6672
|
disconnectedCallback(): void;
|
|
6627
|
-
|
|
6673
|
+
updated(changedProperties: PropertyValues): void;
|
|
6674
|
+
stopAudio(): void;
|
|
6628
6675
|
handleSelectChange(e: ZnChangeEvent): void;
|
|
6629
6676
|
togglePreview(e: CustomEvent): void;
|
|
6630
6677
|
render(): import("lit").TemplateResult<1>;
|
|
@@ -6640,6 +6687,52 @@ declare module "components/audio-select/index" {
|
|
|
6640
6687
|
}
|
|
6641
6688
|
}
|
|
6642
6689
|
}
|
|
6690
|
+
declare module "components/translations/translations.component" {
|
|
6691
|
+
import ZincElement from "internal/zinc-element";
|
|
6692
|
+
import ZnInlineEdit from "components/inline-edit/index";
|
|
6693
|
+
import ZnInput from "components/input/index";
|
|
6694
|
+
import ZnNavbar from "components/navbar/index";
|
|
6695
|
+
import type { PropertyValues } from 'lit';
|
|
6696
|
+
import type { ZincFormControl } from "internal/zinc-element";
|
|
6697
|
+
export default class ZnTranslations extends ZincElement implements ZincFormControl {
|
|
6698
|
+
static styles: import("lit").CSSResult;
|
|
6699
|
+
static dependencies: {
|
|
6700
|
+
'zn-navbar': typeof ZnNavbar;
|
|
6701
|
+
'zn-input': typeof ZnInput;
|
|
6702
|
+
'zn-inline-edit': typeof ZnInlineEdit;
|
|
6703
|
+
};
|
|
6704
|
+
private readonly formControlController;
|
|
6705
|
+
private readonly hasSlotController;
|
|
6706
|
+
name: string;
|
|
6707
|
+
value: string;
|
|
6708
|
+
label: string;
|
|
6709
|
+
disabled: boolean;
|
|
6710
|
+
required: boolean;
|
|
6711
|
+
languages: Record<string, string>;
|
|
6712
|
+
values: Record<string, string>;
|
|
6713
|
+
private _activeLanguage;
|
|
6714
|
+
get validity(): ValidityState;
|
|
6715
|
+
get validationMessage(): string;
|
|
6716
|
+
checkValidity(): boolean;
|
|
6717
|
+
getForm(): HTMLFormElement | null;
|
|
6718
|
+
reportValidity(): boolean;
|
|
6719
|
+
setCustomValidity(): void;
|
|
6720
|
+
protected firstUpdated(): void;
|
|
6721
|
+
willUpdate(changedProperties: PropertyValues): void;
|
|
6722
|
+
private handleLanguageAdd;
|
|
6723
|
+
private handleNavbarClick;
|
|
6724
|
+
private handleValueUpdate;
|
|
6725
|
+
private updateValue;
|
|
6726
|
+
private handleKeyDown;
|
|
6727
|
+
private handleSubmit;
|
|
6728
|
+
render(): import("lit").TemplateResult<1>;
|
|
6729
|
+
}
|
|
6730
|
+
}
|
|
6731
|
+
declare module "components/translations/index" {
|
|
6732
|
+
import ZnTranslations from "components/translations/translations.component";
|
|
6733
|
+
export * from "components/translations/translations.component";
|
|
6734
|
+
export default ZnTranslations;
|
|
6735
|
+
}
|
|
6643
6736
|
declare module "events/zn-after-hide" {
|
|
6644
6737
|
export type ZnAfterHideEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
6645
6738
|
global {
|
|
@@ -6756,6 +6849,7 @@ declare module "zinc" {
|
|
|
6756
6849
|
export { default as Checkbox } from "components/checkbox/index";
|
|
6757
6850
|
export { default as Datepicker } from "components/datepicker/index";
|
|
6758
6851
|
export { default as FormGroup } from "components/form-group/index";
|
|
6852
|
+
export { default as InputGroup } from "components/input-group/index";
|
|
6759
6853
|
export { default as LinkedSelect } from "components/linked-select/index";
|
|
6760
6854
|
export { default as Radio } from "components/radio/index";
|
|
6761
6855
|
export { default as Rating } from "components/rating/index";
|
|
@@ -6782,6 +6876,7 @@ declare module "zinc" {
|
|
|
6782
6876
|
export { default as FilterContainer } from "components/filter-container/index";
|
|
6783
6877
|
export { default as Reveal } from "components/reveal/index";
|
|
6784
6878
|
export { default as AudioSelect } from "components/audio-select/index";
|
|
6879
|
+
export { default as Translations } from "components/translations/index";
|
|
6785
6880
|
export { default as ZincElement } from "internal/zinc-element";
|
|
6786
6881
|
export * from "utilities/on";
|
|
6787
6882
|
export * from "utilities/query";
|