@kubex/zinc 1.1.81 → 1.1.83
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 +95 -2
- package/dist/vscode.html-custom-data.json +10 -0
- package/dist/web-types.json +21 -1
- package/dist/zn.d.ts +23 -0
- package/dist/zn.min.js +230 -224
- package/docs/pages/components/cols.md +43 -0
- package/docs/pages/components/translations.md +22 -4
- package/package.json +1 -1
- package/src/components/cols/cols.component.ts +79 -0
- package/src/components/cols/cols.scss +45 -0
- package/src/components/cols/cols.test.ts +131 -3
- package/src/components/translations/translations.component.ts +16 -1
- package/src/components/translations/translations.test.ts +42 -0
|
@@ -6046,6 +6046,17 @@
|
|
|
6046
6046
|
"attribute": "layout",
|
|
6047
6047
|
"reflects": true
|
|
6048
6048
|
},
|
|
6049
|
+
{
|
|
6050
|
+
"kind": "field",
|
|
6051
|
+
"name": "stackAt",
|
|
6052
|
+
"type": {
|
|
6053
|
+
"text": "string"
|
|
6054
|
+
},
|
|
6055
|
+
"default": "''",
|
|
6056
|
+
"description": "Container width the columns collapse to a single column below, as one of the named zinc\ncontainer sizes (sm, smp, ph, md, lg, hd, 3k, 4k). Defaults to `lg` when a child declares\n`stack-order` or `stack-split`, otherwise the columns never explicitly stack.",
|
|
6057
|
+
"attribute": "stack-at",
|
|
6058
|
+
"reflects": true
|
|
6059
|
+
},
|
|
6049
6060
|
{
|
|
6050
6061
|
"kind": "field",
|
|
6051
6062
|
"name": "maxColumns",
|
|
@@ -6106,6 +6117,60 @@
|
|
|
6106
6117
|
"text": "boolean"
|
|
6107
6118
|
},
|
|
6108
6119
|
"attribute": "pad-y"
|
|
6120
|
+
},
|
|
6121
|
+
{
|
|
6122
|
+
"kind": "field",
|
|
6123
|
+
"name": "childObserver",
|
|
6124
|
+
"type": {
|
|
6125
|
+
"text": "MutationObserver"
|
|
6126
|
+
},
|
|
6127
|
+
"privacy": "private",
|
|
6128
|
+
"readonly": true,
|
|
6129
|
+
"default": "new MutationObserver(() => this.requestUpdate())"
|
|
6130
|
+
},
|
|
6131
|
+
{
|
|
6132
|
+
"kind": "method",
|
|
6133
|
+
"name": "stackOrder",
|
|
6134
|
+
"privacy": "private",
|
|
6135
|
+
"return": {
|
|
6136
|
+
"type": {
|
|
6137
|
+
"text": "number | null"
|
|
6138
|
+
}
|
|
6139
|
+
},
|
|
6140
|
+
"parameters": [
|
|
6141
|
+
{
|
|
6142
|
+
"name": "element",
|
|
6143
|
+
"type": {
|
|
6144
|
+
"text": "Element"
|
|
6145
|
+
}
|
|
6146
|
+
}
|
|
6147
|
+
],
|
|
6148
|
+
"description": "Reads the `stack-order` attribute of an element, returning null when it does not declare one."
|
|
6149
|
+
},
|
|
6150
|
+
{
|
|
6151
|
+
"kind": "method",
|
|
6152
|
+
"name": "applyStackOrder",
|
|
6153
|
+
"privacy": "private",
|
|
6154
|
+
"return": {
|
|
6155
|
+
"type": {
|
|
6156
|
+
"text": "number | null"
|
|
6157
|
+
}
|
|
6158
|
+
},
|
|
6159
|
+
"parameters": [
|
|
6160
|
+
{
|
|
6161
|
+
"name": "element",
|
|
6162
|
+
"type": {
|
|
6163
|
+
"text": "HTMLElement"
|
|
6164
|
+
}
|
|
6165
|
+
},
|
|
6166
|
+
{
|
|
6167
|
+
"name": "promoted",
|
|
6168
|
+
"type": {
|
|
6169
|
+
"text": "boolean"
|
|
6170
|
+
}
|
|
6171
|
+
}
|
|
6172
|
+
],
|
|
6173
|
+
"description": "Applies the declared stack order to an element. `--zn-stacked` is 0 until the container\nquery in our stylesheet flips it to 1, so ordering only kicks in once stacked."
|
|
6109
6174
|
}
|
|
6110
6175
|
],
|
|
6111
6176
|
"events": [
|
|
@@ -6123,6 +6188,15 @@
|
|
|
6123
6188
|
"default": "''",
|
|
6124
6189
|
"fieldName": "layout"
|
|
6125
6190
|
},
|
|
6191
|
+
{
|
|
6192
|
+
"name": "stack-at",
|
|
6193
|
+
"type": {
|
|
6194
|
+
"text": "string"
|
|
6195
|
+
},
|
|
6196
|
+
"default": "''",
|
|
6197
|
+
"description": "Container width the columns collapse to a single column below, as one of the named zinc\ncontainer sizes (sm, smp, ph, md, lg, hd, 3k, 4k). Defaults to `lg` when a child declares\n`stack-order` or `stack-split`, otherwise the columns never explicitly stack.",
|
|
6198
|
+
"fieldName": "stackAt"
|
|
6199
|
+
},
|
|
6126
6200
|
{
|
|
6127
6201
|
"name": "mc",
|
|
6128
6202
|
"type": {
|
|
@@ -45023,7 +45097,7 @@
|
|
|
45023
45097
|
"name": "hasSlotController",
|
|
45024
45098
|
"privacy": "private",
|
|
45025
45099
|
"readonly": true,
|
|
45026
|
-
"default": "new HasSlotController(this, 'label', 'expand')"
|
|
45100
|
+
"default": "new HasSlotController(this, 'label', 'expand', 'help-text')"
|
|
45027
45101
|
},
|
|
45028
45102
|
{
|
|
45029
45103
|
"kind": "field",
|
|
@@ -45052,6 +45126,16 @@
|
|
|
45052
45126
|
"default": "''",
|
|
45053
45127
|
"attribute": "label"
|
|
45054
45128
|
},
|
|
45129
|
+
{
|
|
45130
|
+
"kind": "field",
|
|
45131
|
+
"name": "helpText",
|
|
45132
|
+
"type": {
|
|
45133
|
+
"text": "string"
|
|
45134
|
+
},
|
|
45135
|
+
"default": "''",
|
|
45136
|
+
"description": "Text shown below the field, describing how to fill it in. Applies to every language. If you need HTML, use the\n`help-text` slot instead.",
|
|
45137
|
+
"attribute": "help-text"
|
|
45138
|
+
},
|
|
45055
45139
|
{
|
|
45056
45140
|
"kind": "field",
|
|
45057
45141
|
"name": "disabled",
|
|
@@ -45380,6 +45464,15 @@
|
|
|
45380
45464
|
"default": "''",
|
|
45381
45465
|
"fieldName": "label"
|
|
45382
45466
|
},
|
|
45467
|
+
{
|
|
45468
|
+
"name": "help-text",
|
|
45469
|
+
"type": {
|
|
45470
|
+
"text": "string"
|
|
45471
|
+
},
|
|
45472
|
+
"default": "''",
|
|
45473
|
+
"description": "Text shown below the field, describing how to fill it in. Applies to every language. If you need HTML, use the\n`help-text` slot instead.",
|
|
45474
|
+
"fieldName": "helpText"
|
|
45475
|
+
},
|
|
45383
45476
|
{
|
|
45384
45477
|
"name": "disabled",
|
|
45385
45478
|
"type": {
|
|
@@ -45757,7 +45850,7 @@
|
|
|
45757
45850
|
"package": {
|
|
45758
45851
|
"name": "@kubex/zinc",
|
|
45759
45852
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
45760
|
-
"version": "1.1.
|
|
45853
|
+
"version": "1.1.83",
|
|
45761
45854
|
"author": "",
|
|
45762
45855
|
"license": "MIT"
|
|
45763
45856
|
}
|
|
@@ -834,6 +834,11 @@
|
|
|
834
834
|
"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.",
|
|
835
835
|
"attributes": [
|
|
836
836
|
{ "name": "layout", "values": [] },
|
|
837
|
+
{
|
|
838
|
+
"name": "stack-at",
|
|
839
|
+
"description": "Container width the columns collapse to a single column below, as one of the named zinc\ncontainer sizes (sm, smp, ph, md, lg, hd, 3k, 4k). Defaults to `lg` when a child declares\n`stack-order` or `stack-split`, otherwise the columns never explicitly stack.",
|
|
840
|
+
"values": []
|
|
841
|
+
},
|
|
837
842
|
{ "name": "mc", "values": [] },
|
|
838
843
|
{ "name": "no-gap", "values": [] },
|
|
839
844
|
{ "name": "border", "values": [] },
|
|
@@ -4641,6 +4646,11 @@
|
|
|
4641
4646
|
{ "name": "name", "values": [] },
|
|
4642
4647
|
{ "name": "value", "values": [] },
|
|
4643
4648
|
{ "name": "label", "values": [] },
|
|
4649
|
+
{
|
|
4650
|
+
"name": "help-text",
|
|
4651
|
+
"description": "Text shown below the field, describing how to fill it in. Applies to every language. If you need HTML, use the\n`help-text` slot instead.",
|
|
4652
|
+
"values": []
|
|
4653
|
+
},
|
|
4644
4654
|
{ "name": "disabled", "values": [] },
|
|
4645
4655
|
{ "name": "required", "values": [] },
|
|
4646
4656
|
{ "name": "flush", "values": [] },
|
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.1.
|
|
4
|
+
"version": "1.1.83",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -1840,6 +1840,11 @@
|
|
|
1840
1840
|
"name": "layout",
|
|
1841
1841
|
"value": { "type": "string", "default": "''" }
|
|
1842
1842
|
},
|
|
1843
|
+
{
|
|
1844
|
+
"name": "stack-at",
|
|
1845
|
+
"description": "Container width the columns collapse to a single column below, as one of the named zinc\ncontainer sizes (sm, smp, ph, md, lg, hd, 3k, 4k). Defaults to `lg` when a child declares\n`stack-order` or `stack-split`, otherwise the columns never explicitly stack.",
|
|
1846
|
+
"value": { "type": "string", "default": "''" }
|
|
1847
|
+
},
|
|
1843
1848
|
{ "name": "mc", "value": { "type": "number", "default": "0" } },
|
|
1844
1849
|
{
|
|
1845
1850
|
"name": "no-gap",
|
|
@@ -1867,6 +1872,11 @@
|
|
|
1867
1872
|
"js": {
|
|
1868
1873
|
"properties": [
|
|
1869
1874
|
{ "name": "layout", "type": "string" },
|
|
1875
|
+
{
|
|
1876
|
+
"name": "stackAt",
|
|
1877
|
+
"description": "Container width the columns collapse to a single column below, as one of the named zinc\ncontainer sizes (sm, smp, ph, md, lg, hd, 3k, 4k). Defaults to `lg` when a child declares\n`stack-order` or `stack-split`, otherwise the columns never explicitly stack.",
|
|
1878
|
+
"type": "string"
|
|
1879
|
+
},
|
|
1870
1880
|
{ "name": "maxColumns", "type": "number" },
|
|
1871
1881
|
{ "name": "noGap", "type": "boolean" },
|
|
1872
1882
|
{ "name": "border", "type": "boolean" },
|
|
@@ -10988,6 +10998,11 @@
|
|
|
10988
10998
|
"value": { "type": "string", "default": "'{\"en\":\"\"}'" }
|
|
10989
10999
|
},
|
|
10990
11000
|
{ "name": "label", "value": { "type": "string", "default": "''" } },
|
|
11001
|
+
{
|
|
11002
|
+
"name": "help-text",
|
|
11003
|
+
"description": "Text shown below the field, describing how to fill it in. Applies to every language. If you need HTML, use the\n`help-text` slot instead.",
|
|
11004
|
+
"value": { "type": "string", "default": "''" }
|
|
11005
|
+
},
|
|
10991
11006
|
{
|
|
10992
11007
|
"name": "disabled",
|
|
10993
11008
|
"value": { "type": "boolean", "default": "false" }
|
|
@@ -11054,6 +11069,11 @@
|
|
|
11054
11069
|
{ "name": "name", "type": "string" },
|
|
11055
11070
|
{ "name": "value", "type": "string" },
|
|
11056
11071
|
{ "name": "label", "type": "string" },
|
|
11072
|
+
{
|
|
11073
|
+
"name": "helpText",
|
|
11074
|
+
"description": "Text shown below the field, describing how to fill it in. Applies to every language. If you need HTML, use the\n`help-text` slot instead.",
|
|
11075
|
+
"type": "string"
|
|
11076
|
+
},
|
|
11057
11077
|
{ "name": "disabled", "type": "boolean" },
|
|
11058
11078
|
{ "name": "required", "type": "boolean" },
|
|
11059
11079
|
{ "name": "flush", "type": "boolean" },
|
package/dist/zn.d.ts
CHANGED
|
@@ -4022,6 +4022,12 @@ declare module "components/cols/cols.component" {
|
|
|
4022
4022
|
export default class ZnCols extends ZincElement {
|
|
4023
4023
|
static styles: CSSResultGroup;
|
|
4024
4024
|
layout: string;
|
|
4025
|
+
/**
|
|
4026
|
+
* Container width the columns collapse to a single column below, as one of the named zinc
|
|
4027
|
+
* container sizes (sm, smp, ph, md, lg, hd, 3k, 4k). Defaults to `lg` when a child declares
|
|
4028
|
+
* `stack-order` or `stack-split`, otherwise the columns never explicitly stack.
|
|
4029
|
+
*/
|
|
4030
|
+
stackAt: string;
|
|
4025
4031
|
maxColumns: number;
|
|
4026
4032
|
noGap: boolean;
|
|
4027
4033
|
border: boolean;
|
|
@@ -4029,6 +4035,18 @@ declare module "components/cols/cols.component" {
|
|
|
4029
4035
|
divide: boolean;
|
|
4030
4036
|
padX: boolean;
|
|
4031
4037
|
padY: boolean;
|
|
4038
|
+
private readonly childObserver;
|
|
4039
|
+
connectedCallback(): void;
|
|
4040
|
+
disconnectedCallback(): void;
|
|
4041
|
+
/**
|
|
4042
|
+
* Reads the `stack-order` attribute of an element, returning null when it does not declare one.
|
|
4043
|
+
*/
|
|
4044
|
+
private stackOrder;
|
|
4045
|
+
/**
|
|
4046
|
+
* Applies the declared stack order to an element. `--zn-stacked` is 0 until the container
|
|
4047
|
+
* query in our stylesheet flips it to 1, so ordering only kicks in once stacked.
|
|
4048
|
+
*/
|
|
4049
|
+
private applyStackOrder;
|
|
4032
4050
|
render(): import("lit-html").TemplateResult<1>;
|
|
4033
4051
|
}
|
|
4034
4052
|
}
|
|
@@ -8692,6 +8710,11 @@ declare module "components/translations/translations.component" {
|
|
|
8692
8710
|
name: string;
|
|
8693
8711
|
value: string;
|
|
8694
8712
|
label: string;
|
|
8713
|
+
/**
|
|
8714
|
+
* Text shown below the field, describing how to fill it in. Applies to every language. If you need HTML, use the
|
|
8715
|
+
* `help-text` slot instead.
|
|
8716
|
+
*/
|
|
8717
|
+
helpText: string;
|
|
8695
8718
|
disabled: boolean;
|
|
8696
8719
|
required: boolean;
|
|
8697
8720
|
flush: boolean;
|