@kubex/zinc 1.1.116 → 1.1.118
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 +252 -13
- package/dist/vscode.html-custom-data.json +9 -4
- package/dist/web-types.json +18 -8
- package/dist/zn.d.ts +57 -18
- package/dist/zn.min.js +188 -185
- package/docs/pages/components/form-group.md +42 -9
- package/docs/pages/components/translation-group.md +20 -18
- package/docs/pages/components/translations.md +3 -2
- package/package.json +1 -1
- package/src/components/form-group/form-group.component.ts +165 -2
- package/src/components/form-group/form-group.scss +18 -3
- package/src/components/form-group/form-group.test.ts +80 -0
- package/src/components/translation-group/translation-group.component.ts +55 -51
- package/src/components/translation-group/translation-group.scss +10 -74
- package/src/components/translation-group/translation-group.test.ts +76 -38
- package/src/components/translations/translations.component.ts +3 -7
|
@@ -16461,6 +16461,18 @@
|
|
|
16461
16461
|
"kind": "class",
|
|
16462
16462
|
"description": "",
|
|
16463
16463
|
"name": "ZnFormGroup",
|
|
16464
|
+
"cssProperties": [
|
|
16465
|
+
{
|
|
16466
|
+
"description": "Offset the label column sticks at while the inputs scroll past.",
|
|
16467
|
+
"name": "--zn-form-group-sticky-top"
|
|
16468
|
+
}
|
|
16469
|
+
],
|
|
16470
|
+
"cssParts": [
|
|
16471
|
+
{
|
|
16472
|
+
"description": "The column holding the label, help text and chip.",
|
|
16473
|
+
"name": "form-control-text"
|
|
16474
|
+
}
|
|
16475
|
+
],
|
|
16464
16476
|
"slots": [
|
|
16465
16477
|
{
|
|
16466
16478
|
"description": "The default slot.",
|
|
@@ -16535,6 +16547,210 @@
|
|
|
16535
16547
|
},
|
|
16536
16548
|
"default": "false",
|
|
16537
16549
|
"attribute": "pad"
|
|
16550
|
+
},
|
|
16551
|
+
{
|
|
16552
|
+
"kind": "field",
|
|
16553
|
+
"name": "tracked",
|
|
16554
|
+
"type": {
|
|
16555
|
+
"text": "HTMLElement | null"
|
|
16556
|
+
},
|
|
16557
|
+
"privacy": "private",
|
|
16558
|
+
"default": "null",
|
|
16559
|
+
"description": "The scroller the label is tracked against by hand; null while native sticky is enough."
|
|
16560
|
+
},
|
|
16561
|
+
{
|
|
16562
|
+
"kind": "field",
|
|
16563
|
+
"name": "stickyTop",
|
|
16564
|
+
"type": {
|
|
16565
|
+
"text": "number"
|
|
16566
|
+
},
|
|
16567
|
+
"privacy": "private",
|
|
16568
|
+
"default": "0"
|
|
16569
|
+
},
|
|
16570
|
+
{
|
|
16571
|
+
"kind": "field",
|
|
16572
|
+
"name": "frame",
|
|
16573
|
+
"type": {
|
|
16574
|
+
"text": "number"
|
|
16575
|
+
},
|
|
16576
|
+
"privacy": "private",
|
|
16577
|
+
"default": "0"
|
|
16578
|
+
},
|
|
16579
|
+
{
|
|
16580
|
+
"kind": "field",
|
|
16581
|
+
"name": "rebind",
|
|
16582
|
+
"type": {
|
|
16583
|
+
"text": "boolean"
|
|
16584
|
+
},
|
|
16585
|
+
"privacy": "private",
|
|
16586
|
+
"default": "false"
|
|
16587
|
+
},
|
|
16588
|
+
{
|
|
16589
|
+
"kind": "field",
|
|
16590
|
+
"name": "offset",
|
|
16591
|
+
"type": {
|
|
16592
|
+
"text": "number"
|
|
16593
|
+
},
|
|
16594
|
+
"privacy": "private",
|
|
16595
|
+
"default": "0"
|
|
16596
|
+
},
|
|
16597
|
+
{
|
|
16598
|
+
"kind": "field",
|
|
16599
|
+
"name": "resizeObserver",
|
|
16600
|
+
"type": {
|
|
16601
|
+
"text": "ResizeObserver | null"
|
|
16602
|
+
},
|
|
16603
|
+
"privacy": "private",
|
|
16604
|
+
"default": "null"
|
|
16605
|
+
},
|
|
16606
|
+
{
|
|
16607
|
+
"kind": "field",
|
|
16608
|
+
"name": "labelColumn",
|
|
16609
|
+
"type": {
|
|
16610
|
+
"text": "HTMLElement | null"
|
|
16611
|
+
},
|
|
16612
|
+
"privacy": "private",
|
|
16613
|
+
"readonly": true
|
|
16614
|
+
},
|
|
16615
|
+
{
|
|
16616
|
+
"kind": "method",
|
|
16617
|
+
"name": "schedule",
|
|
16618
|
+
"privacy": "private",
|
|
16619
|
+
"parameters": [
|
|
16620
|
+
{
|
|
16621
|
+
"name": "rebind",
|
|
16622
|
+
"default": "false",
|
|
16623
|
+
"type": {
|
|
16624
|
+
"text": "boolean"
|
|
16625
|
+
}
|
|
16626
|
+
}
|
|
16627
|
+
],
|
|
16628
|
+
"description": "Coalesces scroll and resize work into one frame, and out of the ResizeObserver callback."
|
|
16629
|
+
},
|
|
16630
|
+
{
|
|
16631
|
+
"kind": "method",
|
|
16632
|
+
"name": "findScroller",
|
|
16633
|
+
"privacy": "private",
|
|
16634
|
+
"description": "Native sticky only follows the nearest scroll container. Where that container isn't the one\nthe user actually scrolls — a `zn-panel` body sized to its content inside a scrolling\nslideout, say — the label never moves, so it gets translated by hand instead."
|
|
16635
|
+
},
|
|
16636
|
+
{
|
|
16637
|
+
"kind": "method",
|
|
16638
|
+
"name": "trackScroller",
|
|
16639
|
+
"privacy": "private",
|
|
16640
|
+
"parameters": [
|
|
16641
|
+
{
|
|
16642
|
+
"name": "scroller",
|
|
16643
|
+
"type": {
|
|
16644
|
+
"text": "HTMLElement | null"
|
|
16645
|
+
}
|
|
16646
|
+
}
|
|
16647
|
+
]
|
|
16648
|
+
},
|
|
16649
|
+
{
|
|
16650
|
+
"kind": "method",
|
|
16651
|
+
"name": "scrollTarget",
|
|
16652
|
+
"privacy": "private",
|
|
16653
|
+
"return": {
|
|
16654
|
+
"type": {
|
|
16655
|
+
"text": "EventTarget | null"
|
|
16656
|
+
}
|
|
16657
|
+
},
|
|
16658
|
+
"parameters": [
|
|
16659
|
+
{
|
|
16660
|
+
"name": "scroller",
|
|
16661
|
+
"type": {
|
|
16662
|
+
"text": "HTMLElement | null"
|
|
16663
|
+
}
|
|
16664
|
+
}
|
|
16665
|
+
],
|
|
16666
|
+
"description": "The document scrolls through the window, every other scroller reports its own events."
|
|
16667
|
+
},
|
|
16668
|
+
{
|
|
16669
|
+
"kind": "field",
|
|
16670
|
+
"name": "onScroll",
|
|
16671
|
+
"privacy": "private",
|
|
16672
|
+
"readonly": true
|
|
16673
|
+
},
|
|
16674
|
+
{
|
|
16675
|
+
"kind": "field",
|
|
16676
|
+
"name": "onViewportResize",
|
|
16677
|
+
"privacy": "private",
|
|
16678
|
+
"readonly": true
|
|
16679
|
+
},
|
|
16680
|
+
{
|
|
16681
|
+
"kind": "method",
|
|
16682
|
+
"name": "positionLabel",
|
|
16683
|
+
"privacy": "private"
|
|
16684
|
+
},
|
|
16685
|
+
{
|
|
16686
|
+
"kind": "method",
|
|
16687
|
+
"name": "nearestScrollContainer",
|
|
16688
|
+
"privacy": "private",
|
|
16689
|
+
"return": {
|
|
16690
|
+
"type": {
|
|
16691
|
+
"text": "HTMLElement | null"
|
|
16692
|
+
}
|
|
16693
|
+
},
|
|
16694
|
+
"parameters": [
|
|
16695
|
+
{
|
|
16696
|
+
"name": "from",
|
|
16697
|
+
"type": {
|
|
16698
|
+
"text": "HTMLElement"
|
|
16699
|
+
}
|
|
16700
|
+
}
|
|
16701
|
+
],
|
|
16702
|
+
"description": "The box native sticky would anchor to, whether or not it can be scrolled."
|
|
16703
|
+
},
|
|
16704
|
+
{
|
|
16705
|
+
"kind": "method",
|
|
16706
|
+
"name": "scrollingAncestor",
|
|
16707
|
+
"privacy": "private",
|
|
16708
|
+
"return": {
|
|
16709
|
+
"type": {
|
|
16710
|
+
"text": "HTMLElement | null"
|
|
16711
|
+
}
|
|
16712
|
+
},
|
|
16713
|
+
"parameters": [
|
|
16714
|
+
{
|
|
16715
|
+
"name": "from",
|
|
16716
|
+
"type": {
|
|
16717
|
+
"text": "HTMLElement"
|
|
16718
|
+
}
|
|
16719
|
+
}
|
|
16720
|
+
],
|
|
16721
|
+
"description": "The nearest ancestor the user can actually scroll, falling back to the document."
|
|
16722
|
+
},
|
|
16723
|
+
{
|
|
16724
|
+
"kind": "method",
|
|
16725
|
+
"name": "isScrollContainer",
|
|
16726
|
+
"privacy": "private",
|
|
16727
|
+
"parameters": [
|
|
16728
|
+
{
|
|
16729
|
+
"name": "overflow",
|
|
16730
|
+
"type": {
|
|
16731
|
+
"text": "string"
|
|
16732
|
+
}
|
|
16733
|
+
}
|
|
16734
|
+
]
|
|
16735
|
+
},
|
|
16736
|
+
{
|
|
16737
|
+
"kind": "method",
|
|
16738
|
+
"name": "ancestors",
|
|
16739
|
+
"privacy": "private",
|
|
16740
|
+
"return": {
|
|
16741
|
+
"type": {
|
|
16742
|
+
"text": "HTMLElement[]"
|
|
16743
|
+
}
|
|
16744
|
+
},
|
|
16745
|
+
"parameters": [
|
|
16746
|
+
{
|
|
16747
|
+
"name": "from",
|
|
16748
|
+
"type": {
|
|
16749
|
+
"text": "HTMLElement"
|
|
16750
|
+
}
|
|
16751
|
+
}
|
|
16752
|
+
],
|
|
16753
|
+
"description": "Walks the flattened tree, so slots and shadow boundaries are crossed the way layout does."
|
|
16538
16754
|
}
|
|
16539
16755
|
],
|
|
16540
16756
|
"attributes": [
|
|
@@ -16598,7 +16814,7 @@
|
|
|
16598
16814
|
"tagNameWithoutPrefix": "form-group",
|
|
16599
16815
|
"tagName": "zn-form-group",
|
|
16600
16816
|
"customElement": true,
|
|
16601
|
-
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/form-group\n * @status experimental\n * @since 1.0\n *\n * @slot - The default slot.\n * @slot chip - A chip displayed under the form group's help text.\n *\n */",
|
|
16817
|
+
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/form-group\n * @status experimental\n * @since 1.0\n *\n * @slot - The default slot.\n * @slot chip - A chip displayed under the form group's help text.\n *\n * @csspart form-control-text - The column holding the label, help text and chip.\n *\n * @cssproperty --zn-form-group-sticky-top - Offset the label column sticks at while the inputs scroll past.\n *\n */",
|
|
16602
16818
|
"documentation": "https://zinc.style/components/form-group",
|
|
16603
16819
|
"status": "experimental",
|
|
16604
16820
|
"since": "1.0"
|
|
@@ -49505,12 +49721,16 @@
|
|
|
49505
49721
|
"module": "src/components/panel/panel.component.ts"
|
|
49506
49722
|
}
|
|
49507
49723
|
},
|
|
49724
|
+
{
|
|
49725
|
+
"description": "The form group holding the caption, the language select and the fields.",
|
|
49726
|
+
"name": "form-group"
|
|
49727
|
+
},
|
|
49508
49728
|
{
|
|
49509
49729
|
"description": "The row of buttons at the bottom of the body.",
|
|
49510
49730
|
"name": "actions"
|
|
49511
49731
|
},
|
|
49512
49732
|
{
|
|
49513
|
-
"description": "The
|
|
49733
|
+
"description": "The select that chooses the language every child is editing, in the group's chip slot.",
|
|
49514
49734
|
"name": "language-field"
|
|
49515
49735
|
},
|
|
49516
49736
|
{
|
|
@@ -49536,7 +49756,7 @@
|
|
|
49536
49756
|
}
|
|
49537
49757
|
},
|
|
49538
49758
|
{
|
|
49539
|
-
"description": "Content displayed in the grey panel footer.
|
|
49759
|
+
"description": "Content displayed in the grey panel footer.",
|
|
49540
49760
|
"name": "footer",
|
|
49541
49761
|
"inheritedFrom": {
|
|
49542
49762
|
"name": "ZnPanel",
|
|
@@ -49552,7 +49772,7 @@
|
|
|
49552
49772
|
"text": "object"
|
|
49553
49773
|
},
|
|
49554
49774
|
"static": true,
|
|
49555
|
-
"default": "{ 'zn-chip': ZnChip, 'zn-
|
|
49775
|
+
"default": "{ 'zn-chip': ZnChip, 'zn-form-group': ZnFormGroup, 'zn-option': ZnOption, 'zn-select': ZnSelect }"
|
|
49556
49776
|
},
|
|
49557
49777
|
{
|
|
49558
49778
|
"kind": "field",
|
|
@@ -49568,9 +49788,19 @@
|
|
|
49568
49788
|
"text": "string"
|
|
49569
49789
|
},
|
|
49570
49790
|
"default": "''",
|
|
49571
|
-
"description": "The
|
|
49791
|
+
"description": "The form group's label. An alias for the inherited `caption`, which wins where both are set.",
|
|
49572
49792
|
"attribute": "label"
|
|
49573
49793
|
},
|
|
49794
|
+
{
|
|
49795
|
+
"kind": "field",
|
|
49796
|
+
"name": "helpText",
|
|
49797
|
+
"type": {
|
|
49798
|
+
"text": "string"
|
|
49799
|
+
},
|
|
49800
|
+
"default": "''",
|
|
49801
|
+
"description": "Sits under the label, above the language select, as help text does in any other form group.",
|
|
49802
|
+
"attribute": "help-text"
|
|
49803
|
+
},
|
|
49574
49804
|
{
|
|
49575
49805
|
"kind": "field",
|
|
49576
49806
|
"name": "inline",
|
|
@@ -49578,7 +49808,7 @@
|
|
|
49578
49808
|
"text": "boolean"
|
|
49579
49809
|
},
|
|
49580
49810
|
"default": "false",
|
|
49581
|
-
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the form
|
|
49811
|
+
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the surrounding form\nrather than a panel of its own. For groups nested inside another panel, where the fields would otherwise sit\nindented behind a second border.",
|
|
49582
49812
|
"attribute": "inline",
|
|
49583
49813
|
"reflects": true
|
|
49584
49814
|
},
|
|
@@ -49674,7 +49904,7 @@
|
|
|
49674
49904
|
}
|
|
49675
49905
|
}
|
|
49676
49906
|
],
|
|
49677
|
-
"description": "
|
|
49907
|
+
"description": "The configured name, or the code where `languages` does not name the language."
|
|
49678
49908
|
},
|
|
49679
49909
|
{
|
|
49680
49910
|
"kind": "method",
|
|
@@ -49893,16 +50123,25 @@
|
|
|
49893
50123
|
"text": "string"
|
|
49894
50124
|
},
|
|
49895
50125
|
"default": "''",
|
|
49896
|
-
"description": "The
|
|
50126
|
+
"description": "The form group's label. An alias for the inherited `caption`, which wins where both are set.",
|
|
49897
50127
|
"fieldName": "label"
|
|
49898
50128
|
},
|
|
50129
|
+
{
|
|
50130
|
+
"name": "help-text",
|
|
50131
|
+
"type": {
|
|
50132
|
+
"text": "string"
|
|
50133
|
+
},
|
|
50134
|
+
"default": "''",
|
|
50135
|
+
"description": "Sits under the label, above the language select, as help text does in any other form group.",
|
|
50136
|
+
"fieldName": "helpText"
|
|
50137
|
+
},
|
|
49899
50138
|
{
|
|
49900
50139
|
"name": "inline",
|
|
49901
50140
|
"type": {
|
|
49902
50141
|
"text": "boolean"
|
|
49903
50142
|
},
|
|
49904
50143
|
"default": "false",
|
|
49905
|
-
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the form
|
|
50144
|
+
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the surrounding form\nrather than a panel of its own. For groups nested inside another panel, where the fields would otherwise sit\nindented behind a second border.",
|
|
49906
50145
|
"fieldName": "inline"
|
|
49907
50146
|
},
|
|
49908
50147
|
{
|
|
@@ -50064,13 +50303,13 @@
|
|
|
50064
50303
|
"tagNameWithoutPrefix": "translation-group",
|
|
50065
50304
|
"tagName": "zn-translation-group",
|
|
50066
50305
|
"customElement": true,
|
|
50067
|
-
"jsDoc": "/**\n * @summary Puts several zn-translations fields behind one language select, so a whole form's worth of copy is\n * translated a language at a time.\n * @documentation https://zinc.style/components/translation-group\n * @status experimental\n * @since 1.0\n *\n * The
|
|
50306
|
+
"jsDoc": "/**\n * @summary Puts several zn-translations fields behind one language select, so a whole form's worth of copy is\n * translated a language at a time.\n * @documentation https://zinc.style/components/translation-group\n * @status experimental\n * @since 1.0\n *\n * The fields sit in a `zn-form-group`, so the caption, help text and the language select share its label column and\n * the fields line up with every other form group around them. Choosing a language switches every child at once, and\n * each child hides its own select while it is in a group — `grouped` is set on them here.\n *\n * The select is searchable. Each option holds its language code as its value, so typing `de` finds German without the\n * code being on show.\n *\n * Closed, the select carries how many target languages are done — `1/5`. Its options each carry a chip aggregated\n * across the children:\n *\n * - `Translated` — every child has a value for it\n * - `Partial` — only some children do\n * - `English` — none do, so all of them fall back to the English text\n *\n * `Empty` replaces the last of those for English itself, which has nothing to fall back to. English is the source\n * rather than a translation, so it is also left out of the `n of m translated` count beside the label.\n *\n * The children own their values; this component only chooses which language is shown and reports on what they hold.\n * It reads them back on every child `zn-change`, so the chips and the count follow an edit as it is typed.\n *\n * Extends `zn-panel`, so `caption`, `flush`, `transparent` and the `footer` slot behave as they do there. Nested\n * inside another panel, add `inline` to drop the chrome and keep the fields aligned with the surrounding form.\n *\n * @dependency zn-chip\n * @dependency zn-form-group\n * @dependency zn-option\n * @dependency zn-select\n *\n * @event zn-language-change - Emitted when the active language changes. Detail: `{ language: string }`.\n *\n * @slot - The `zn-translations` fields the select drives.\n * @slot actions - Buttons for the bottom of the panel, on the white body rather than the grey footer. They sit on\n * the right, as zinc's form action rows do; `align=\"start\"` moves one to the left. Write them in the order they\n * should be read — the sides are set by CSS ordering, so markup order is what a keyboard follows.\n * @slot footer - Content displayed in the grey panel footer.\n *\n * @csspart base - The component's base wrapper.\n * @csspart form-group - The form group holding the caption, the language select and the fields.\n * @csspart actions - The row of buttons at the bottom of the body.\n * @csspart language-field - The select that chooses the language every child is editing, in the group's chip slot.\n * @csspart language-select - The select itself.\n */",
|
|
50068
50307
|
"documentation": "https://zinc.style/components/translation-group",
|
|
50069
50308
|
"status": "experimental",
|
|
50070
50309
|
"since": "1.0",
|
|
50071
50310
|
"dependencies": [
|
|
50072
50311
|
"zn-chip",
|
|
50073
|
-
"zn-
|
|
50312
|
+
"zn-form-group",
|
|
50074
50313
|
"zn-option",
|
|
50075
50314
|
"zn-select"
|
|
50076
50315
|
],
|
|
@@ -50518,7 +50757,7 @@
|
|
|
50518
50757
|
}
|
|
50519
50758
|
}
|
|
50520
50759
|
],
|
|
50521
|
-
"description": "
|
|
50760
|
+
"description": "The configured name, or the code where `languages` does not name the language."
|
|
50522
50761
|
},
|
|
50523
50762
|
{
|
|
50524
50763
|
"kind": "method",
|
|
@@ -51125,7 +51364,7 @@
|
|
|
51125
51364
|
"package": {
|
|
51126
51365
|
"name": "@kubex/zinc",
|
|
51127
51366
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
51128
|
-
"version": "1.1.
|
|
51367
|
+
"version": "1.1.118",
|
|
51129
51368
|
"author": "",
|
|
51130
51369
|
"license": "MIT"
|
|
51131
51370
|
}
|
|
@@ -1922,7 +1922,7 @@
|
|
|
1922
1922
|
},
|
|
1923
1923
|
{
|
|
1924
1924
|
"name": "zn-form-group",
|
|
1925
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Slots:**\n - _default_ - The default slot.\n- **chip** - A chip displayed under the form group's help text.",
|
|
1925
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Slots:**\n - _default_ - The default slot.\n- **chip** - A chip displayed under the form group's help text.\n\n### **CSS Properties:**\n - **--zn-form-group-sticky-top** - Offset the label column sticks at while the inputs scroll past. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control-text** - The column holding the label, help text and chip.",
|
|
1926
1926
|
"attributes": [
|
|
1927
1927
|
{
|
|
1928
1928
|
"name": "label",
|
|
@@ -5181,16 +5181,21 @@
|
|
|
5181
5181
|
},
|
|
5182
5182
|
{
|
|
5183
5183
|
"name": "zn-translation-group",
|
|
5184
|
-
"description": "Puts several zn-translations fields behind one language select, so a whole form's worth of copy is\ntranslated a language at a time.\n---\n\n\n### **Events:**\n - **zn-language-change** - Emitted when the active language changes. Detail: `{ language: string }`.\n\n### **Slots:**\n - _default_ - The `zn-translations` fields the select drives.\n- **actions** - Buttons for the bottom of the panel, on the white body rather than the grey footer. They sit on the right, as zinc's form action rows do; `align=\"start\"` moves one to the left. Write them in the order they should be read — the sides are set by CSS ordering, so markup order is what a keyboard follows.\n- **footer** - Content displayed in the grey panel footer
|
|
5184
|
+
"description": "Puts several zn-translations fields behind one language select, so a whole form's worth of copy is\ntranslated a language at a time.\n---\n\n\n### **Events:**\n - **zn-language-change** - Emitted when the active language changes. Detail: `{ language: string }`.\n\n### **Slots:**\n - _default_ - The `zn-translations` fields the select drives.\n- **actions** - Buttons for the bottom of the panel, on the white body rather than the grey footer. They sit on the right, as zinc's form action rows do; `align=\"start\"` moves one to the left. Write them in the order they should be read — the sides are set by CSS ordering, so markup order is what a keyboard follows.\n- **footer** - Content displayed in the grey panel footer.\n\n### **CSS Properties:**\n - **--zn-panel-basis** - The flex-basis of the panel. Can be set using the basis-px attribute. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **form-group** - The form group holding the caption, the language select and the fields.\n- **actions** - The row of buttons at the bottom of the body.\n- **language-field** - The select that chooses the language every child is editing, in the group's chip slot.\n- **language-select** - The select itself.",
|
|
5185
5185
|
"attributes": [
|
|
5186
5186
|
{
|
|
5187
5187
|
"name": "label",
|
|
5188
|
-
"description": "The
|
|
5188
|
+
"description": "The form group's label. An alias for the inherited `caption`, which wins where both are set.",
|
|
5189
|
+
"values": []
|
|
5190
|
+
},
|
|
5191
|
+
{
|
|
5192
|
+
"name": "help-text",
|
|
5193
|
+
"description": "Sits under the label, above the language select, as help text does in any other form group.",
|
|
5189
5194
|
"values": []
|
|
5190
5195
|
},
|
|
5191
5196
|
{
|
|
5192
5197
|
"name": "inline",
|
|
5193
|
-
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the form
|
|
5198
|
+
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the surrounding form\nrather than a panel of its own. For groups nested inside another panel, where the fields would otherwise sit\nindented behind a second border.",
|
|
5194
5199
|
"values": []
|
|
5195
5200
|
},
|
|
5196
5201
|
{
|
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.118",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -4509,7 +4509,7 @@
|
|
|
4509
4509
|
},
|
|
4510
4510
|
{
|
|
4511
4511
|
"name": "zn-form-group",
|
|
4512
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Slots:**\n - _default_ - The default slot.\n- **chip** - A chip displayed under the form group's help text.",
|
|
4512
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Slots:**\n - _default_ - The default slot.\n- **chip** - A chip displayed under the form group's help text.\n\n### **CSS Properties:**\n - **--zn-form-group-sticky-top** - Offset the label column sticks at while the inputs scroll past. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control-text** - The column holding the label, help text and chip.",
|
|
4513
4513
|
"doc-url": "",
|
|
4514
4514
|
"attributes": [
|
|
4515
4515
|
{
|
|
@@ -12211,17 +12211,22 @@
|
|
|
12211
12211
|
},
|
|
12212
12212
|
{
|
|
12213
12213
|
"name": "zn-translation-group",
|
|
12214
|
-
"description": "Puts several zn-translations fields behind one language select, so a whole form's worth of copy is\ntranslated a language at a time.\n---\n\n\n### **Events:**\n - **zn-language-change** - Emitted when the active language changes. Detail: `{ language: string }`.\n\n### **Slots:**\n - _default_ - The `zn-translations` fields the select drives.\n- **actions** - Buttons for the bottom of the panel, on the white body rather than the grey footer. They sit on the right, as zinc's form action rows do; `align=\"start\"` moves one to the left. Write them in the order they should be read — the sides are set by CSS ordering, so markup order is what a keyboard follows.\n- **footer** - Content displayed in the grey panel footer
|
|
12214
|
+
"description": "Puts several zn-translations fields behind one language select, so a whole form's worth of copy is\ntranslated a language at a time.\n---\n\n\n### **Events:**\n - **zn-language-change** - Emitted when the active language changes. Detail: `{ language: string }`.\n\n### **Slots:**\n - _default_ - The `zn-translations` fields the select drives.\n- **actions** - Buttons for the bottom of the panel, on the white body rather than the grey footer. They sit on the right, as zinc's form action rows do; `align=\"start\"` moves one to the left. Write them in the order they should be read — the sides are set by CSS ordering, so markup order is what a keyboard follows.\n- **footer** - Content displayed in the grey panel footer.\n\n### **CSS Properties:**\n - **--zn-panel-basis** - The flex-basis of the panel. Can be set using the basis-px attribute. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **form-group** - The form group holding the caption, the language select and the fields.\n- **actions** - The row of buttons at the bottom of the body.\n- **language-field** - The select that chooses the language every child is editing, in the group's chip slot.\n- **language-select** - The select itself.",
|
|
12215
12215
|
"doc-url": "",
|
|
12216
12216
|
"attributes": [
|
|
12217
12217
|
{
|
|
12218
12218
|
"name": "label",
|
|
12219
|
-
"description": "The
|
|
12219
|
+
"description": "The form group's label. An alias for the inherited `caption`, which wins where both are set.",
|
|
12220
|
+
"value": { "type": "string", "default": "''" }
|
|
12221
|
+
},
|
|
12222
|
+
{
|
|
12223
|
+
"name": "help-text",
|
|
12224
|
+
"description": "Sits under the label, above the language select, as help text does in any other form group.",
|
|
12220
12225
|
"value": { "type": "string", "default": "''" }
|
|
12221
12226
|
},
|
|
12222
12227
|
{
|
|
12223
12228
|
"name": "inline",
|
|
12224
|
-
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the form
|
|
12229
|
+
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the surrounding form\nrather than a panel of its own. For groups nested inside another panel, where the fields would otherwise sit\nindented behind a second border.",
|
|
12225
12230
|
"value": { "type": "boolean", "default": "false" }
|
|
12226
12231
|
},
|
|
12227
12232
|
{
|
|
@@ -12261,7 +12266,7 @@
|
|
|
12261
12266
|
},
|
|
12262
12267
|
{
|
|
12263
12268
|
"name": "footer",
|
|
12264
|
-
"description": "Content displayed in the grey panel footer.
|
|
12269
|
+
"description": "Content displayed in the grey panel footer."
|
|
12265
12270
|
}
|
|
12266
12271
|
],
|
|
12267
12272
|
"events": [
|
|
@@ -12274,12 +12279,17 @@
|
|
|
12274
12279
|
"properties": [
|
|
12275
12280
|
{
|
|
12276
12281
|
"name": "label",
|
|
12277
|
-
"description": "The
|
|
12282
|
+
"description": "The form group's label. An alias for the inherited `caption`, which wins where both are set.",
|
|
12283
|
+
"type": "string"
|
|
12284
|
+
},
|
|
12285
|
+
{
|
|
12286
|
+
"name": "helpText",
|
|
12287
|
+
"description": "Sits under the label, above the language select, as help text does in any other form group.",
|
|
12278
12288
|
"type": "string"
|
|
12279
12289
|
},
|
|
12280
12290
|
{
|
|
12281
12291
|
"name": "inline",
|
|
12282
|
-
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the form
|
|
12292
|
+
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the surrounding form\nrather than a panel of its own. For groups nested inside another panel, where the fields would otherwise sit\nindented behind a second border.",
|
|
12283
12293
|
"type": "boolean"
|
|
12284
12294
|
},
|
|
12285
12295
|
{
|