@kubex/zinc 1.1.182 → 1.1.184

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.
@@ -56,6 +56,79 @@
56
56
  }
57
57
  ]
58
58
  },
59
+ {
60
+ "kind": "javascript-module",
61
+ "path": "components/action-bar/action-bar.js",
62
+ "declarations": [
63
+ {
64
+ "kind": "class",
65
+ "description": "",
66
+ "name": "ZnActionBar",
67
+ "cssProperties": [
68
+ {
69
+ "description": "An example CSS custom property.",
70
+ "name": "--example"
71
+ }
72
+ ],
73
+ "cssParts": [
74
+ {
75
+ "description": "The component's base wrapper.",
76
+ "name": "base"
77
+ }
78
+ ],
79
+ "slots": [
80
+ {
81
+ "description": "The default slot.",
82
+ "name": ""
83
+ },
84
+ {
85
+ "description": "An example slot.",
86
+ "name": "example"
87
+ }
88
+ ],
89
+ "members": [
90
+ {
91
+ "kind": "field",
92
+ "name": "localize",
93
+ "privacy": "private",
94
+ "readonly": true,
95
+ "default": "new LocalizeController(this)"
96
+ }
97
+ ],
98
+ "events": [
99
+ {
100
+ "description": "Emitted as an example.",
101
+ "name": "zn-event-name"
102
+ }
103
+ ],
104
+ "superclass": {
105
+ "name": "ZincElement",
106
+ "module": "/src/internal/zinc-element"
107
+ },
108
+ "summary": "Short summary of the component's intended use.",
109
+ "tagNameWithoutPrefix": "action-bar",
110
+ "tagName": "zn-action-bar",
111
+ "customElement": true,
112
+ "jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/action-bar\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
113
+ "documentation": "https://zinc.style/components/action-bar",
114
+ "status": "experimental",
115
+ "since": "1.0",
116
+ "dependencies": [
117
+ "zn-example"
118
+ ]
119
+ }
120
+ ],
121
+ "exports": [
122
+ {
123
+ "kind": "js",
124
+ "name": "default",
125
+ "declaration": {
126
+ "name": "ZnActionBar",
127
+ "module": "components/action-bar/action-bar.js"
128
+ }
129
+ }
130
+ ]
131
+ },
59
132
  {
60
133
  "kind": "javascript-module",
61
134
  "path": "components/alert/alert.js",
@@ -250,79 +323,6 @@
250
323
  }
251
324
  ]
252
325
  },
253
- {
254
- "kind": "javascript-module",
255
- "path": "components/action-bar/action-bar.js",
256
- "declarations": [
257
- {
258
- "kind": "class",
259
- "description": "",
260
- "name": "ZnActionBar",
261
- "cssProperties": [
262
- {
263
- "description": "An example CSS custom property.",
264
- "name": "--example"
265
- }
266
- ],
267
- "cssParts": [
268
- {
269
- "description": "The component's base wrapper.",
270
- "name": "base"
271
- }
272
- ],
273
- "slots": [
274
- {
275
- "description": "The default slot.",
276
- "name": ""
277
- },
278
- {
279
- "description": "An example slot.",
280
- "name": "example"
281
- }
282
- ],
283
- "members": [
284
- {
285
- "kind": "field",
286
- "name": "localize",
287
- "privacy": "private",
288
- "readonly": true,
289
- "default": "new LocalizeController(this)"
290
- }
291
- ],
292
- "events": [
293
- {
294
- "description": "Emitted as an example.",
295
- "name": "zn-event-name"
296
- }
297
- ],
298
- "superclass": {
299
- "name": "ZincElement",
300
- "module": "/src/internal/zinc-element"
301
- },
302
- "summary": "Short summary of the component's intended use.",
303
- "tagNameWithoutPrefix": "action-bar",
304
- "tagName": "zn-action-bar",
305
- "customElement": true,
306
- "jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/action-bar\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
307
- "documentation": "https://zinc.style/components/action-bar",
308
- "status": "experimental",
309
- "since": "1.0",
310
- "dependencies": [
311
- "zn-example"
312
- ]
313
- }
314
- ],
315
- "exports": [
316
- {
317
- "kind": "js",
318
- "name": "default",
319
- "declaration": {
320
- "name": "ZnActionBar",
321
- "module": "components/action-bar/action-bar.js"
322
- }
323
- }
324
- ]
325
- },
326
326
  {
327
327
  "kind": "javascript-module",
328
328
  "path": "components/animated-button/animated-button.js",
@@ -6525,264 +6525,289 @@
6525
6525
  },
6526
6526
  {
6527
6527
  "kind": "javascript-module",
6528
- "path": "components/cols/cols.js",
6528
+ "path": "components/color-select/color-select.js",
6529
6529
  "declarations": [
6530
6530
  {
6531
6531
  "kind": "class",
6532
6532
  "description": "",
6533
- "name": "ZnCols",
6534
- "cssProperties": [
6535
- {
6536
- "description": "An example CSS custom property.",
6537
- "name": "--example"
6538
- }
6539
- ],
6533
+ "name": "ZnColorSelect",
6540
6534
  "cssParts": [
6541
6535
  {
6542
- "description": "The component's base wrapper.",
6543
- "name": "base"
6544
- }
6545
- ],
6546
- "slots": [
6536
+ "description": "The color swatch shown in the closed control.",
6537
+ "name": "swatch"
6538
+ },
6547
6539
  {
6548
- "description": "The default slot.",
6549
- "name": ""
6540
+ "description": "The container that wraps the swatch and expand button (forwarded from zn-select).",
6541
+ "name": "combobox"
6550
6542
  },
6551
6543
  {
6552
- "description": "An example slot.",
6553
- "name": "example"
6544
+ "description": "The help text's wrapper (forwarded from zn-select).",
6545
+ "name": "form-control-help-text"
6546
+ },
6547
+ {
6548
+ "description": "The select's wrapper (forwarded from zn-select).",
6549
+ "name": "form-control-input"
6554
6550
  }
6555
6551
  ],
6556
6552
  "members": [
6557
6553
  {
6558
6554
  "kind": "field",
6559
- "name": "layout",
6555
+ "name": "dependencies",
6556
+ "type": {
6557
+ "text": "object"
6558
+ },
6559
+ "static": true,
6560
+ "default": "{ 'zn-select': ZnSelect, 'zn-option': ZnOption, }"
6561
+ },
6562
+ {
6563
+ "kind": "field",
6564
+ "name": "select",
6565
+ "type": {
6566
+ "text": "ZnSelect"
6567
+ }
6568
+ },
6569
+ {
6570
+ "kind": "field",
6571
+ "name": "name",
6560
6572
  "type": {
6561
6573
  "text": "string"
6562
6574
  },
6563
- "default": "''",
6564
- "attribute": "layout",
6565
- "reflects": true
6575
+ "description": "The name of the select. Used for form submission.",
6576
+ "attribute": "name"
6566
6577
  },
6567
6578
  {
6568
6579
  "kind": "field",
6569
- "name": "stackAt",
6580
+ "name": "value",
6570
6581
  "type": {
6571
6582
  "text": "string"
6572
6583
  },
6573
6584
  "default": "''",
6574
- "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.",
6575
- "attribute": "stack-at",
6576
- "reflects": true
6585
+ "description": "The selected color (lowercase name, e.g. \"red\"). Used for form submission.",
6586
+ "attribute": "value"
6577
6587
  },
6578
6588
  {
6579
6589
  "kind": "field",
6580
- "name": "maxColumns",
6590
+ "name": "label",
6581
6591
  "type": {
6582
- "text": "number"
6592
+ "text": "string"
6583
6593
  },
6584
- "default": "0",
6585
- "attribute": "mc",
6586
- "reflects": true
6594
+ "default": "''",
6595
+ "description": "The select's label.",
6596
+ "attribute": "label"
6587
6597
  },
6588
6598
  {
6589
6599
  "kind": "field",
6590
- "name": "noGap",
6600
+ "name": "helpText",
6591
6601
  "type": {
6592
- "text": "boolean"
6602
+ "text": "string"
6593
6603
  },
6594
- "default": "false",
6595
- "attribute": "no-gap"
6604
+ "default": "''",
6605
+ "description": "The select's help text.",
6606
+ "attribute": "help-text"
6596
6607
  },
6597
6608
  {
6598
6609
  "kind": "field",
6599
- "name": "border",
6610
+ "name": "disabled",
6600
6611
  "type": {
6601
6612
  "text": "boolean"
6602
6613
  },
6603
6614
  "default": "false",
6604
- "attribute": "border"
6615
+ "description": "Disables the select.",
6616
+ "attribute": "disabled",
6617
+ "reflects": true
6605
6618
  },
6606
6619
  {
6607
6620
  "kind": "field",
6608
- "name": "pad",
6621
+ "name": "required",
6609
6622
  "type": {
6610
6623
  "text": "boolean"
6611
6624
  },
6612
- "attribute": "pad"
6625
+ "default": "false",
6626
+ "description": "Makes the select a required field.",
6627
+ "attribute": "required",
6628
+ "reflects": true
6613
6629
  },
6614
6630
  {
6615
6631
  "kind": "field",
6616
- "name": "divide",
6632
+ "name": "clearable",
6617
6633
  "type": {
6618
6634
  "text": "boolean"
6619
6635
  },
6620
6636
  "default": "false",
6621
- "attribute": "divide"
6637
+ "description": "Shows a clear button when a color is selected.",
6638
+ "attribute": "clearable"
6622
6639
  },
6623
6640
  {
6624
6641
  "kind": "field",
6625
- "name": "padX",
6626
- "type": {
6627
- "text": "boolean"
6628
- },
6629
- "attribute": "pad-x"
6642
+ "name": "formControlController",
6643
+ "privacy": "private",
6644
+ "readonly": true,
6645
+ "default": "new FormControlController(this)"
6630
6646
  },
6631
6647
  {
6632
6648
  "kind": "field",
6633
- "name": "padY",
6649
+ "name": "validity",
6634
6650
  "type": {
6635
- "text": "boolean"
6651
+ "text": "ValidityState"
6636
6652
  },
6637
- "attribute": "pad-y"
6653
+ "readonly": true
6638
6654
  },
6639
6655
  {
6640
6656
  "kind": "field",
6641
- "name": "childObserver",
6657
+ "name": "validationMessage",
6642
6658
  "type": {
6643
- "text": "MutationObserver"
6659
+ "text": "string"
6644
6660
  },
6645
- "privacy": "private",
6646
- "readonly": true,
6647
- "default": "new MutationObserver(() => this.requestUpdate())"
6661
+ "readonly": true
6648
6662
  },
6649
6663
  {
6650
6664
  "kind": "method",
6651
- "name": "stackOrder",
6652
- "privacy": "private",
6665
+ "name": "checkValidity",
6653
6666
  "return": {
6654
6667
  "type": {
6655
- "text": "number | null"
6668
+ "text": "boolean"
6656
6669
  }
6657
- },
6658
- "parameters": [
6659
- {
6660
- "name": "element",
6661
- "type": {
6662
- "text": "Element"
6663
- }
6670
+ }
6671
+ },
6672
+ {
6673
+ "kind": "method",
6674
+ "name": "getForm",
6675
+ "return": {
6676
+ "type": {
6677
+ "text": "HTMLFormElement | null"
6664
6678
  }
6665
- ],
6666
- "description": "Reads the `stack-order` attribute of an element, returning null when it does not declare one."
6679
+ }
6667
6680
  },
6668
6681
  {
6669
6682
  "kind": "method",
6670
- "name": "applyStackOrder",
6671
- "privacy": "private",
6683
+ "name": "reportValidity",
6672
6684
  "return": {
6673
6685
  "type": {
6674
- "text": "number | null"
6686
+ "text": "boolean"
6687
+ }
6688
+ }
6689
+ },
6690
+ {
6691
+ "kind": "method",
6692
+ "name": "setCustomValidity",
6693
+ "return": {
6694
+ "type": {
6695
+ "text": "void"
6675
6696
  }
6676
6697
  },
6677
6698
  "parameters": [
6678
6699
  {
6679
- "name": "element",
6680
- "type": {
6681
- "text": "HTMLElement"
6682
- }
6683
- },
6684
- {
6685
- "name": "promoted",
6700
+ "name": "message",
6686
6701
  "type": {
6687
- "text": "boolean"
6702
+ "text": "string"
6688
6703
  }
6689
6704
  }
6690
- ],
6691
- "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."
6705
+ ]
6706
+ },
6707
+ {
6708
+ "kind": "method",
6709
+ "name": "handleValueChange"
6710
+ },
6711
+ {
6712
+ "kind": "field",
6713
+ "name": "handleInput",
6714
+ "privacy": "private"
6715
+ },
6716
+ {
6717
+ "kind": "field",
6718
+ "name": "handleClear",
6719
+ "privacy": "private"
6692
6720
  }
6693
6721
  ],
6694
6722
  "events": [
6695
6723
  {
6696
- "description": "Emitted as an example.",
6697
- "name": "zn-event-name"
6724
+ "description": "Emitted when the selected color changes.",
6725
+ "name": "zn-input"
6726
+ },
6727
+ {
6728
+ "description": "Emitted when the clear button is activated.",
6729
+ "name": "zn-clear"
6698
6730
  }
6699
6731
  ],
6700
6732
  "attributes": [
6701
6733
  {
6702
- "name": "layout",
6734
+ "name": "name",
6703
6735
  "type": {
6704
6736
  "text": "string"
6705
6737
  },
6706
- "default": "''",
6707
- "fieldName": "layout"
6738
+ "description": "The name of the select. Used for form submission.",
6739
+ "fieldName": "name"
6708
6740
  },
6709
6741
  {
6710
- "name": "stack-at",
6742
+ "name": "value",
6711
6743
  "type": {
6712
6744
  "text": "string"
6713
6745
  },
6714
6746
  "default": "''",
6715
- "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.",
6716
- "fieldName": "stackAt"
6747
+ "description": "The selected color (lowercase name, e.g. \"red\"). Used for form submission.",
6748
+ "fieldName": "value"
6717
6749
  },
6718
6750
  {
6719
- "name": "mc",
6751
+ "name": "label",
6720
6752
  "type": {
6721
- "text": "number"
6753
+ "text": "string"
6722
6754
  },
6723
- "default": "0",
6724
- "fieldName": "maxColumns"
6755
+ "default": "''",
6756
+ "description": "The select's label.",
6757
+ "fieldName": "label"
6725
6758
  },
6726
6759
  {
6727
- "name": "no-gap",
6760
+ "name": "help-text",
6728
6761
  "type": {
6729
- "text": "boolean"
6762
+ "text": "string"
6730
6763
  },
6731
- "default": "false",
6732
- "fieldName": "noGap"
6764
+ "default": "''",
6765
+ "description": "The select's help text.",
6766
+ "fieldName": "helpText"
6733
6767
  },
6734
6768
  {
6735
- "name": "border",
6769
+ "name": "disabled",
6736
6770
  "type": {
6737
6771
  "text": "boolean"
6738
6772
  },
6739
6773
  "default": "false",
6740
- "fieldName": "border"
6741
- },
6742
- {
6743
- "name": "pad",
6744
- "type": {
6745
- "text": "boolean"
6746
- },
6747
- "fieldName": "pad"
6774
+ "description": "Disables the select.",
6775
+ "fieldName": "disabled"
6748
6776
  },
6749
6777
  {
6750
- "name": "divide",
6778
+ "name": "required",
6751
6779
  "type": {
6752
6780
  "text": "boolean"
6753
6781
  },
6754
6782
  "default": "false",
6755
- "fieldName": "divide"
6756
- },
6757
- {
6758
- "name": "pad-x",
6759
- "type": {
6760
- "text": "boolean"
6761
- },
6762
- "fieldName": "padX"
6783
+ "description": "Makes the select a required field.",
6784
+ "fieldName": "required"
6763
6785
  },
6764
6786
  {
6765
- "name": "pad-y",
6787
+ "name": "clearable",
6766
6788
  "type": {
6767
6789
  "text": "boolean"
6768
6790
  },
6769
- "fieldName": "padY"
6791
+ "default": "false",
6792
+ "description": "Shows a clear button when a color is selected.",
6793
+ "fieldName": "clearable"
6770
6794
  }
6771
6795
  ],
6772
6796
  "superclass": {
6773
6797
  "name": "ZincElement",
6774
6798
  "module": "/src/internal/zinc-element"
6775
6799
  },
6776
- "summary": "Short summary of the component's intended use.",
6777
- "tagNameWithoutPrefix": "cols",
6778
- "tagName": "zn-cols",
6800
+ "summary": "A simple color picker. The dropdown lists color swatches with names; the closed control shows only the selected color's swatch.",
6801
+ "tagNameWithoutPrefix": "color-select",
6802
+ "tagName": "zn-color-select",
6779
6803
  "customElement": true,
6780
- "jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/columns\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
6781
- "documentation": "https://zinc.style/components/columns",
6804
+ "jsDoc": "/**\n * @summary A simple color picker. The dropdown lists color swatches with names; the closed control shows only the selected color's swatch.\n * @documentation https://zinc.style/components/color-select\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-select\n * @dependency zn-option\n *\n * @event zn-input - Emitted when the selected color changes.\n * @event zn-clear - Emitted when the clear button is activated.\n *\n * @csspart swatch - The color swatch shown in the closed control.\n * @csspart combobox - The container that wraps the swatch and expand button (forwarded from zn-select).\n * @csspart form-control-help-text - The help text's wrapper (forwarded from zn-select).\n * @csspart form-control-input - The select's wrapper (forwarded from zn-select).\n */",
6805
+ "documentation": "https://zinc.style/components/color-select",
6782
6806
  "status": "experimental",
6783
6807
  "since": "1.0",
6784
6808
  "dependencies": [
6785
- "zn-example"
6809
+ "zn-select",
6810
+ "zn-option"
6786
6811
  ]
6787
6812
  }
6788
6813
  ],
@@ -6791,297 +6816,288 @@
6791
6816
  "kind": "js",
6792
6817
  "name": "default",
6793
6818
  "declaration": {
6794
- "name": "ZnCols",
6795
- "module": "components/cols/cols.js"
6819
+ "name": "ZnColorSelect",
6820
+ "module": "components/color-select/color-select.js"
6796
6821
  }
6797
6822
  }
6798
6823
  ]
6799
6824
  },
6800
6825
  {
6801
6826
  "kind": "javascript-module",
6802
- "path": "components/color-select/color-select.js",
6827
+ "path": "components/cols/cols.js",
6803
6828
  "declarations": [
6804
6829
  {
6805
6830
  "kind": "class",
6806
6831
  "description": "",
6807
- "name": "ZnColorSelect",
6808
- "cssParts": [
6832
+ "name": "ZnCols",
6833
+ "cssProperties": [
6809
6834
  {
6810
- "description": "The color swatch shown in the closed control.",
6811
- "name": "swatch"
6812
- },
6835
+ "description": "An example CSS custom property.",
6836
+ "name": "--example"
6837
+ }
6838
+ ],
6839
+ "cssParts": [
6813
6840
  {
6814
- "description": "The container that wraps the swatch and expand button (forwarded from zn-select).",
6815
- "name": "combobox"
6816
- },
6841
+ "description": "The component's base wrapper.",
6842
+ "name": "base"
6843
+ }
6844
+ ],
6845
+ "slots": [
6817
6846
  {
6818
- "description": "The help text's wrapper (forwarded from zn-select).",
6819
- "name": "form-control-help-text"
6847
+ "description": "The default slot.",
6848
+ "name": ""
6820
6849
  },
6821
6850
  {
6822
- "description": "The select's wrapper (forwarded from zn-select).",
6823
- "name": "form-control-input"
6851
+ "description": "An example slot.",
6852
+ "name": "example"
6824
6853
  }
6825
6854
  ],
6826
6855
  "members": [
6827
6856
  {
6828
6857
  "kind": "field",
6829
- "name": "dependencies",
6858
+ "name": "layout",
6830
6859
  "type": {
6831
- "text": "object"
6860
+ "text": "string"
6832
6861
  },
6833
- "static": true,
6834
- "default": "{ 'zn-select': ZnSelect, 'zn-option': ZnOption, }"
6835
- },
6836
- {
6837
- "kind": "field",
6838
- "name": "select",
6839
- "type": {
6840
- "text": "ZnSelect"
6841
- }
6862
+ "default": "''",
6863
+ "attribute": "layout",
6864
+ "reflects": true
6842
6865
  },
6843
6866
  {
6844
6867
  "kind": "field",
6845
- "name": "name",
6868
+ "name": "stackAt",
6846
6869
  "type": {
6847
6870
  "text": "string"
6848
6871
  },
6849
- "description": "The name of the select. Used for form submission.",
6850
- "attribute": "name"
6872
+ "default": "''",
6873
+ "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.",
6874
+ "attribute": "stack-at",
6875
+ "reflects": true
6851
6876
  },
6852
6877
  {
6853
6878
  "kind": "field",
6854
- "name": "value",
6879
+ "name": "maxColumns",
6855
6880
  "type": {
6856
- "text": "string"
6881
+ "text": "number"
6857
6882
  },
6858
- "default": "''",
6859
- "description": "The selected color (lowercase name, e.g. \"red\"). Used for form submission.",
6860
- "attribute": "value"
6883
+ "default": "0",
6884
+ "attribute": "mc",
6885
+ "reflects": true
6861
6886
  },
6862
6887
  {
6863
6888
  "kind": "field",
6864
- "name": "label",
6889
+ "name": "noGap",
6865
6890
  "type": {
6866
- "text": "string"
6891
+ "text": "boolean"
6867
6892
  },
6868
- "default": "''",
6869
- "description": "The select's label.",
6870
- "attribute": "label"
6893
+ "default": "false",
6894
+ "attribute": "no-gap"
6871
6895
  },
6872
6896
  {
6873
6897
  "kind": "field",
6874
- "name": "helpText",
6898
+ "name": "border",
6875
6899
  "type": {
6876
- "text": "string"
6900
+ "text": "boolean"
6877
6901
  },
6878
- "default": "''",
6879
- "description": "The select's help text.",
6880
- "attribute": "help-text"
6902
+ "default": "false",
6903
+ "attribute": "border"
6881
6904
  },
6882
6905
  {
6883
6906
  "kind": "field",
6884
- "name": "disabled",
6907
+ "name": "pad",
6885
6908
  "type": {
6886
6909
  "text": "boolean"
6887
6910
  },
6888
- "default": "false",
6889
- "description": "Disables the select.",
6890
- "attribute": "disabled",
6891
- "reflects": true
6911
+ "attribute": "pad"
6892
6912
  },
6893
6913
  {
6894
6914
  "kind": "field",
6895
- "name": "required",
6915
+ "name": "divide",
6896
6916
  "type": {
6897
6917
  "text": "boolean"
6898
6918
  },
6899
6919
  "default": "false",
6900
- "description": "Makes the select a required field.",
6901
- "attribute": "required",
6902
- "reflects": true
6920
+ "attribute": "divide"
6903
6921
  },
6904
6922
  {
6905
6923
  "kind": "field",
6906
- "name": "clearable",
6924
+ "name": "padX",
6907
6925
  "type": {
6908
6926
  "text": "boolean"
6909
6927
  },
6910
- "default": "false",
6911
- "description": "Shows a clear button when a color is selected.",
6912
- "attribute": "clearable"
6928
+ "attribute": "pad-x"
6913
6929
  },
6914
6930
  {
6915
6931
  "kind": "field",
6916
- "name": "formControlController",
6917
- "privacy": "private",
6918
- "readonly": true,
6919
- "default": "new FormControlController(this)"
6932
+ "name": "padY",
6933
+ "type": {
6934
+ "text": "boolean"
6935
+ },
6936
+ "attribute": "pad-y"
6920
6937
  },
6921
6938
  {
6922
6939
  "kind": "field",
6923
- "name": "validity",
6940
+ "name": "childObserver",
6924
6941
  "type": {
6925
- "text": "ValidityState"
6942
+ "text": "MutationObserver"
6926
6943
  },
6927
- "readonly": true
6944
+ "privacy": "private",
6945
+ "readonly": true,
6946
+ "default": "new MutationObserver(() => this.requestUpdate())"
6928
6947
  },
6929
6948
  {
6930
6949
  "kind": "field",
6931
- "name": "validationMessage",
6950
+ "name": "resizeObserver",
6932
6951
  "type": {
6933
- "text": "string"
6952
+ "text": "ResizeObserver"
6934
6953
  },
6935
- "readonly": true
6954
+ "privacy": "private",
6955
+ "readonly": true,
6956
+ "default": "new ResizeObserver(() => this.markRowEnds())"
6936
6957
  },
6937
6958
  {
6938
6959
  "kind": "method",
6939
- "name": "checkValidity",
6940
- "return": {
6941
- "type": {
6942
- "text": "boolean"
6943
- }
6944
- }
6960
+ "name": "markRowEnds",
6961
+ "privacy": "private",
6962
+ "description": "Flags each child that ends its row as laid out, so `divide` only draws between neighbours on the same row\nhowever the columns have wrapped."
6945
6963
  },
6946
6964
  {
6947
6965
  "kind": "method",
6948
- "name": "getForm",
6966
+ "name": "stackOrder",
6967
+ "privacy": "private",
6949
6968
  "return": {
6950
6969
  "type": {
6951
- "text": "HTMLFormElement | null"
6970
+ "text": "number | null"
6952
6971
  }
6953
- }
6954
- },
6955
- {
6956
- "kind": "method",
6957
- "name": "reportValidity",
6958
- "return": {
6959
- "type": {
6960
- "text": "boolean"
6972
+ },
6973
+ "parameters": [
6974
+ {
6975
+ "name": "element",
6976
+ "type": {
6977
+ "text": "Element"
6978
+ }
6961
6979
  }
6962
- }
6980
+ ],
6981
+ "description": "Reads the `stack-order` attribute of an element, returning null when it does not declare one."
6963
6982
  },
6964
6983
  {
6965
6984
  "kind": "method",
6966
- "name": "setCustomValidity",
6985
+ "name": "applyStackOrder",
6986
+ "privacy": "private",
6967
6987
  "return": {
6968
6988
  "type": {
6969
- "text": "void"
6989
+ "text": "number | null"
6970
6990
  }
6971
6991
  },
6972
6992
  "parameters": [
6973
6993
  {
6974
- "name": "message",
6994
+ "name": "element",
6975
6995
  "type": {
6976
- "text": "string"
6996
+ "text": "HTMLElement"
6997
+ }
6998
+ },
6999
+ {
7000
+ "name": "promoted",
7001
+ "type": {
7002
+ "text": "boolean"
6977
7003
  }
6978
7004
  }
6979
- ]
6980
- },
6981
- {
6982
- "kind": "method",
6983
- "name": "handleValueChange"
6984
- },
6985
- {
6986
- "kind": "field",
6987
- "name": "handleInput",
6988
- "privacy": "private"
6989
- },
6990
- {
6991
- "kind": "field",
6992
- "name": "handleClear",
6993
- "privacy": "private"
7005
+ ],
7006
+ "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."
6994
7007
  }
6995
7008
  ],
6996
7009
  "events": [
6997
7010
  {
6998
- "description": "Emitted when the selected color changes.",
6999
- "name": "zn-input"
7000
- },
7001
- {
7002
- "description": "Emitted when the clear button is activated.",
7003
- "name": "zn-clear"
7011
+ "description": "Emitted as an example.",
7012
+ "name": "zn-event-name"
7004
7013
  }
7005
7014
  ],
7006
7015
  "attributes": [
7007
7016
  {
7008
- "name": "name",
7017
+ "name": "layout",
7009
7018
  "type": {
7010
7019
  "text": "string"
7011
7020
  },
7012
- "description": "The name of the select. Used for form submission.",
7013
- "fieldName": "name"
7021
+ "default": "''",
7022
+ "fieldName": "layout"
7014
7023
  },
7015
7024
  {
7016
- "name": "value",
7025
+ "name": "stack-at",
7017
7026
  "type": {
7018
7027
  "text": "string"
7019
7028
  },
7020
7029
  "default": "''",
7021
- "description": "The selected color (lowercase name, e.g. \"red\"). Used for form submission.",
7022
- "fieldName": "value"
7030
+ "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.",
7031
+ "fieldName": "stackAt"
7023
7032
  },
7024
7033
  {
7025
- "name": "label",
7034
+ "name": "mc",
7026
7035
  "type": {
7027
- "text": "string"
7036
+ "text": "number"
7028
7037
  },
7029
- "default": "''",
7030
- "description": "The select's label.",
7031
- "fieldName": "label"
7038
+ "default": "0",
7039
+ "fieldName": "maxColumns"
7032
7040
  },
7033
7041
  {
7034
- "name": "help-text",
7042
+ "name": "no-gap",
7035
7043
  "type": {
7036
- "text": "string"
7044
+ "text": "boolean"
7037
7045
  },
7038
- "default": "''",
7039
- "description": "The select's help text.",
7040
- "fieldName": "helpText"
7046
+ "default": "false",
7047
+ "fieldName": "noGap"
7041
7048
  },
7042
7049
  {
7043
- "name": "disabled",
7050
+ "name": "border",
7044
7051
  "type": {
7045
7052
  "text": "boolean"
7046
7053
  },
7047
7054
  "default": "false",
7048
- "description": "Disables the select.",
7049
- "fieldName": "disabled"
7055
+ "fieldName": "border"
7050
7056
  },
7051
7057
  {
7052
- "name": "required",
7058
+ "name": "pad",
7053
7059
  "type": {
7054
7060
  "text": "boolean"
7055
7061
  },
7056
- "default": "false",
7057
- "description": "Makes the select a required field.",
7058
- "fieldName": "required"
7062
+ "fieldName": "pad"
7059
7063
  },
7060
7064
  {
7061
- "name": "clearable",
7065
+ "name": "divide",
7062
7066
  "type": {
7063
7067
  "text": "boolean"
7064
7068
  },
7065
7069
  "default": "false",
7066
- "description": "Shows a clear button when a color is selected.",
7067
- "fieldName": "clearable"
7070
+ "fieldName": "divide"
7071
+ },
7072
+ {
7073
+ "name": "pad-x",
7074
+ "type": {
7075
+ "text": "boolean"
7076
+ },
7077
+ "fieldName": "padX"
7078
+ },
7079
+ {
7080
+ "name": "pad-y",
7081
+ "type": {
7082
+ "text": "boolean"
7083
+ },
7084
+ "fieldName": "padY"
7068
7085
  }
7069
7086
  ],
7070
7087
  "superclass": {
7071
7088
  "name": "ZincElement",
7072
7089
  "module": "/src/internal/zinc-element"
7073
7090
  },
7074
- "summary": "A simple color picker. The dropdown lists color swatches with names; the closed control shows only the selected color's swatch.",
7075
- "tagNameWithoutPrefix": "color-select",
7076
- "tagName": "zn-color-select",
7091
+ "summary": "Short summary of the component's intended use.",
7092
+ "tagNameWithoutPrefix": "cols",
7093
+ "tagName": "zn-cols",
7077
7094
  "customElement": true,
7078
- "jsDoc": "/**\n * @summary A simple color picker. The dropdown lists color swatches with names; the closed control shows only the selected color's swatch.\n * @documentation https://zinc.style/components/color-select\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-select\n * @dependency zn-option\n *\n * @event zn-input - Emitted when the selected color changes.\n * @event zn-clear - Emitted when the clear button is activated.\n *\n * @csspart swatch - The color swatch shown in the closed control.\n * @csspart combobox - The container that wraps the swatch and expand button (forwarded from zn-select).\n * @csspart form-control-help-text - The help text's wrapper (forwarded from zn-select).\n * @csspart form-control-input - The select's wrapper (forwarded from zn-select).\n */",
7079
- "documentation": "https://zinc.style/components/color-select",
7095
+ "jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/columns\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
7096
+ "documentation": "https://zinc.style/components/columns",
7080
7097
  "status": "experimental",
7081
7098
  "since": "1.0",
7082
7099
  "dependencies": [
7083
- "zn-select",
7084
- "zn-option"
7100
+ "zn-example"
7085
7101
  ]
7086
7102
  }
7087
7103
  ],
@@ -7090,8 +7106,8 @@
7090
7106
  "kind": "js",
7091
7107
  "name": "default",
7092
7108
  "declaration": {
7093
- "name": "ZnColorSelect",
7094
- "module": "components/color-select/color-select.js"
7109
+ "name": "ZnCols",
7110
+ "module": "components/cols/cols.js"
7095
7111
  }
7096
7112
  }
7097
7113
  ]
@@ -11667,6 +11683,406 @@
11667
11683
  }
11668
11684
  ]
11669
11685
  },
11686
+ {
11687
+ "kind": "javascript-module",
11688
+ "path": "components/defined-label/defined-label.js",
11689
+ "declarations": [
11690
+ {
11691
+ "kind": "class",
11692
+ "description": "",
11693
+ "name": "ZnDefinedLabel",
11694
+ "cssParts": [
11695
+ {
11696
+ "description": "The component's main input.",
11697
+ "name": "input"
11698
+ },
11699
+ {
11700
+ "description": "The label's value inputs.",
11701
+ "name": "input-value"
11702
+ }
11703
+ ],
11704
+ "members": [
11705
+ {
11706
+ "kind": "field",
11707
+ "name": "dependencies",
11708
+ "type": {
11709
+ "text": "object"
11710
+ },
11711
+ "static": true,
11712
+ "default": "{ 'zn-button': ZnButton, 'zn-dropdown': ZnDropdown, 'zn-input': ZnInput, 'zn-option': ZnOption, 'zn-select': ZnSelect }"
11713
+ },
11714
+ {
11715
+ "kind": "field",
11716
+ "name": "formControlController",
11717
+ "privacy": "private",
11718
+ "readonly": true,
11719
+ "default": "new FormControlController(this, { value: (control: this) => control.value + (control.inputValue ? `:${control.inputValue}` : ''), })"
11720
+ },
11721
+ {
11722
+ "kind": "field",
11723
+ "name": "input",
11724
+ "type": {
11725
+ "text": "ZnInput"
11726
+ }
11727
+ },
11728
+ {
11729
+ "kind": "field",
11730
+ "name": "dropdown",
11731
+ "type": {
11732
+ "text": "ZnDropdown"
11733
+ }
11734
+ },
11735
+ {
11736
+ "kind": "field",
11737
+ "name": "value",
11738
+ "type": {
11739
+ "text": "string"
11740
+ },
11741
+ "default": "''",
11742
+ "description": "The selected label key. Also acts as the filter while typing.",
11743
+ "attribute": "value"
11744
+ },
11745
+ {
11746
+ "kind": "field",
11747
+ "name": "inputValue",
11748
+ "type": {
11749
+ "text": "string"
11750
+ },
11751
+ "default": "''",
11752
+ "description": "The value entered for the selected label. Submitted as `label:value` when present.",
11753
+ "attribute": "inputValue"
11754
+ },
11755
+ {
11756
+ "kind": "field",
11757
+ "name": "inputSize",
11758
+ "type": {
11759
+ "text": "'x-small' | 'small' | 'medium' | 'large'"
11760
+ },
11761
+ "default": "'medium'",
11762
+ "description": "The size of the main input.",
11763
+ "attribute": "input-size",
11764
+ "reflects": true
11765
+ },
11766
+ {
11767
+ "kind": "field",
11768
+ "name": "name",
11769
+ "type": {
11770
+ "text": "string"
11771
+ },
11772
+ "default": "'label'",
11773
+ "description": "The name of the control. Used for form submission.",
11774
+ "attribute": "name"
11775
+ },
11776
+ {
11777
+ "kind": "field",
11778
+ "name": "title",
11779
+ "type": {
11780
+ "text": "string"
11781
+ },
11782
+ "description": "The title of the main input.",
11783
+ "attribute": "title"
11784
+ },
11785
+ {
11786
+ "kind": "field",
11787
+ "name": "disabled",
11788
+ "type": {
11789
+ "text": "boolean"
11790
+ },
11791
+ "default": "false",
11792
+ "description": "Disables the control.",
11793
+ "attribute": "disabled"
11794
+ },
11795
+ {
11796
+ "kind": "field",
11797
+ "name": "allowCustom",
11798
+ "type": {
11799
+ "text": "boolean"
11800
+ },
11801
+ "default": "false",
11802
+ "description": "Allows labels that aren't in the predefined list.",
11803
+ "attribute": "allow-custom"
11804
+ },
11805
+ {
11806
+ "kind": "field",
11807
+ "name": "predefinedLabels",
11808
+ "type": {
11809
+ "text": "(PredefinedLabel | string)[]"
11810
+ },
11811
+ "default": "[]",
11812
+ "description": "The predefined labels. Entries are either a string or `{name, options}`.",
11813
+ "attribute": "predefined-labels"
11814
+ },
11815
+ {
11816
+ "kind": "field",
11817
+ "name": "validationMessage",
11818
+ "readonly": true
11819
+ },
11820
+ {
11821
+ "kind": "field",
11822
+ "name": "validity",
11823
+ "readonly": true
11824
+ },
11825
+ {
11826
+ "kind": "method",
11827
+ "name": "checkValidity",
11828
+ "return": {
11829
+ "type": {
11830
+ "text": "boolean"
11831
+ }
11832
+ }
11833
+ },
11834
+ {
11835
+ "kind": "method",
11836
+ "name": "getForm",
11837
+ "return": {
11838
+ "type": {
11839
+ "text": "HTMLFormElement | null"
11840
+ }
11841
+ }
11842
+ },
11843
+ {
11844
+ "kind": "method",
11845
+ "name": "reportValidity",
11846
+ "return": {
11847
+ "type": {
11848
+ "text": "boolean"
11849
+ }
11850
+ }
11851
+ },
11852
+ {
11853
+ "kind": "method",
11854
+ "name": "setCustomValidity",
11855
+ "return": {
11856
+ "type": {
11857
+ "text": "void"
11858
+ }
11859
+ },
11860
+ "parameters": [
11861
+ {
11862
+ "name": "message",
11863
+ "type": {
11864
+ "text": "string"
11865
+ }
11866
+ }
11867
+ ]
11868
+ },
11869
+ {
11870
+ "kind": "method",
11871
+ "name": "handleValueChange"
11872
+ },
11873
+ {
11874
+ "kind": "method",
11875
+ "name": "getFilteredLabels",
11876
+ "privacy": "private",
11877
+ "return": {
11878
+ "type": {
11879
+ "text": "PredefinedLabel[]"
11880
+ }
11881
+ }
11882
+ },
11883
+ {
11884
+ "kind": "method",
11885
+ "name": "handleChange",
11886
+ "privacy": "private"
11887
+ },
11888
+ {
11889
+ "kind": "method",
11890
+ "name": "handleInput",
11891
+ "privacy": "private"
11892
+ },
11893
+ {
11894
+ "kind": "method",
11895
+ "name": "handleClick",
11896
+ "privacy": "private",
11897
+ "parameters": [
11898
+ {
11899
+ "name": "e",
11900
+ "type": {
11901
+ "text": "MouseEvent"
11902
+ }
11903
+ }
11904
+ ]
11905
+ },
11906
+ {
11907
+ "kind": "method",
11908
+ "name": "handleInputValueChange",
11909
+ "privacy": "private",
11910
+ "parameters": [
11911
+ {
11912
+ "name": "e",
11913
+ "type": {
11914
+ "text": "Event"
11915
+ }
11916
+ }
11917
+ ]
11918
+ },
11919
+ {
11920
+ "kind": "method",
11921
+ "name": "handleFormSubmit",
11922
+ "privacy": "private",
11923
+ "parameters": [
11924
+ {
11925
+ "name": "e",
11926
+ "type": {
11927
+ "text": "Event"
11928
+ }
11929
+ },
11930
+ {
11931
+ "name": "label",
11932
+ "type": {
11933
+ "text": "string"
11934
+ }
11935
+ }
11936
+ ]
11937
+ },
11938
+ {
11939
+ "kind": "method",
11940
+ "name": "renderValueControl",
11941
+ "privacy": "private",
11942
+ "return": {
11943
+ "type": {
11944
+ "text": "TemplateResult"
11945
+ }
11946
+ },
11947
+ "parameters": [
11948
+ {
11949
+ "name": "label",
11950
+ "type": {
11951
+ "text": "PredefinedLabel"
11952
+ }
11953
+ }
11954
+ ]
11955
+ },
11956
+ {
11957
+ "kind": "method",
11958
+ "name": "renderRow",
11959
+ "privacy": "private",
11960
+ "return": {
11961
+ "type": {
11962
+ "text": "TemplateResult"
11963
+ }
11964
+ },
11965
+ "parameters": [
11966
+ {
11967
+ "name": "label",
11968
+ "type": {
11969
+ "text": "string"
11970
+ }
11971
+ },
11972
+ {
11973
+ "name": "control",
11974
+ "type": {
11975
+ "text": "TemplateResult"
11976
+ }
11977
+ }
11978
+ ]
11979
+ }
11980
+ ],
11981
+ "attributes": [
11982
+ {
11983
+ "name": "value",
11984
+ "type": {
11985
+ "text": "string"
11986
+ },
11987
+ "default": "''",
11988
+ "description": "The selected label key. Also acts as the filter while typing.",
11989
+ "fieldName": "value"
11990
+ },
11991
+ {
11992
+ "name": "inputValue",
11993
+ "type": {
11994
+ "text": "string"
11995
+ },
11996
+ "default": "''",
11997
+ "description": "The value entered for the selected label. Submitted as `label:value` when present.",
11998
+ "fieldName": "inputValue"
11999
+ },
12000
+ {
12001
+ "name": "input-size",
12002
+ "type": {
12003
+ "text": "'x-small' | 'small' | 'medium' | 'large'"
12004
+ },
12005
+ "default": "'medium'",
12006
+ "description": "The size of the main input.",
12007
+ "fieldName": "inputSize"
12008
+ },
12009
+ {
12010
+ "name": "name",
12011
+ "type": {
12012
+ "text": "string"
12013
+ },
12014
+ "default": "'label'",
12015
+ "description": "The name of the control. Used for form submission.",
12016
+ "fieldName": "name"
12017
+ },
12018
+ {
12019
+ "name": "title",
12020
+ "type": {
12021
+ "text": "string"
12022
+ },
12023
+ "description": "The title of the main input.",
12024
+ "fieldName": "title"
12025
+ },
12026
+ {
12027
+ "name": "disabled",
12028
+ "type": {
12029
+ "text": "boolean"
12030
+ },
12031
+ "default": "false",
12032
+ "description": "Disables the control.",
12033
+ "fieldName": "disabled"
12034
+ },
12035
+ {
12036
+ "name": "allow-custom",
12037
+ "type": {
12038
+ "text": "boolean"
12039
+ },
12040
+ "default": "false",
12041
+ "description": "Allows labels that aren't in the predefined list.",
12042
+ "fieldName": "allowCustom"
12043
+ },
12044
+ {
12045
+ "name": "predefined-labels",
12046
+ "type": {
12047
+ "text": "(PredefinedLabel | string)[]"
12048
+ },
12049
+ "default": "[]",
12050
+ "description": "The predefined labels. Entries are either a string or `{name, options}`.",
12051
+ "fieldName": "predefinedLabels"
12052
+ }
12053
+ ],
12054
+ "superclass": {
12055
+ "name": "ZincElement",
12056
+ "module": "/src/internal/zinc-element"
12057
+ },
12058
+ "summary": "This component provides a labeled input with support for predefined and custom labels,\nallowing users to select or enter label-value pairs within a dropdown interface.",
12059
+ "tagNameWithoutPrefix": "defined-label",
12060
+ "tagName": "zn-defined-label",
12061
+ "customElement": true,
12062
+ "jsDoc": "/**\n * @summary This component provides a labeled input with support for predefined and custom labels,\n * allowing users to select or enter label-value pairs within a dropdown interface.\n * @documentation https://zinc.style/components/defined-label\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-button\n * @dependency zn-dropdown\n * @dependency zn-input\n * @dependency zn-option\n * @dependency zn-select\n *\n * @csspart input - The component's main input.\n * @csspart input-value - The label's value inputs.\n */",
12063
+ "documentation": "https://zinc.style/components/defined-label",
12064
+ "status": "experimental",
12065
+ "since": "1.0",
12066
+ "dependencies": [
12067
+ "zn-button",
12068
+ "zn-dropdown",
12069
+ "zn-input",
12070
+ "zn-option",
12071
+ "zn-select"
12072
+ ]
12073
+ }
12074
+ ],
12075
+ "exports": [
12076
+ {
12077
+ "kind": "js",
12078
+ "name": "default",
12079
+ "declaration": {
12080
+ "name": "ZnDefinedLabel",
12081
+ "module": "components/defined-label/defined-label.js"
12082
+ }
12083
+ }
12084
+ ]
12085
+ },
11670
12086
  {
11671
12087
  "kind": "javascript-module",
11672
12088
  "path": "components/datepicker/datepicker.js",
@@ -12654,406 +13070,6 @@
12654
13070
  }
12655
13071
  ]
12656
13072
  },
12657
- {
12658
- "kind": "javascript-module",
12659
- "path": "components/defined-label/defined-label.js",
12660
- "declarations": [
12661
- {
12662
- "kind": "class",
12663
- "description": "",
12664
- "name": "ZnDefinedLabel",
12665
- "cssParts": [
12666
- {
12667
- "description": "The component's main input.",
12668
- "name": "input"
12669
- },
12670
- {
12671
- "description": "The label's value inputs.",
12672
- "name": "input-value"
12673
- }
12674
- ],
12675
- "members": [
12676
- {
12677
- "kind": "field",
12678
- "name": "dependencies",
12679
- "type": {
12680
- "text": "object"
12681
- },
12682
- "static": true,
12683
- "default": "{ 'zn-button': ZnButton, 'zn-dropdown': ZnDropdown, 'zn-input': ZnInput, 'zn-option': ZnOption, 'zn-select': ZnSelect }"
12684
- },
12685
- {
12686
- "kind": "field",
12687
- "name": "formControlController",
12688
- "privacy": "private",
12689
- "readonly": true,
12690
- "default": "new FormControlController(this, { value: (control: this) => control.value + (control.inputValue ? `:${control.inputValue}` : ''), })"
12691
- },
12692
- {
12693
- "kind": "field",
12694
- "name": "input",
12695
- "type": {
12696
- "text": "ZnInput"
12697
- }
12698
- },
12699
- {
12700
- "kind": "field",
12701
- "name": "dropdown",
12702
- "type": {
12703
- "text": "ZnDropdown"
12704
- }
12705
- },
12706
- {
12707
- "kind": "field",
12708
- "name": "value",
12709
- "type": {
12710
- "text": "string"
12711
- },
12712
- "default": "''",
12713
- "description": "The selected label key. Also acts as the filter while typing.",
12714
- "attribute": "value"
12715
- },
12716
- {
12717
- "kind": "field",
12718
- "name": "inputValue",
12719
- "type": {
12720
- "text": "string"
12721
- },
12722
- "default": "''",
12723
- "description": "The value entered for the selected label. Submitted as `label:value` when present.",
12724
- "attribute": "inputValue"
12725
- },
12726
- {
12727
- "kind": "field",
12728
- "name": "inputSize",
12729
- "type": {
12730
- "text": "'x-small' | 'small' | 'medium' | 'large'"
12731
- },
12732
- "default": "'medium'",
12733
- "description": "The size of the main input.",
12734
- "attribute": "input-size",
12735
- "reflects": true
12736
- },
12737
- {
12738
- "kind": "field",
12739
- "name": "name",
12740
- "type": {
12741
- "text": "string"
12742
- },
12743
- "default": "'label'",
12744
- "description": "The name of the control. Used for form submission.",
12745
- "attribute": "name"
12746
- },
12747
- {
12748
- "kind": "field",
12749
- "name": "title",
12750
- "type": {
12751
- "text": "string"
12752
- },
12753
- "description": "The title of the main input.",
12754
- "attribute": "title"
12755
- },
12756
- {
12757
- "kind": "field",
12758
- "name": "disabled",
12759
- "type": {
12760
- "text": "boolean"
12761
- },
12762
- "default": "false",
12763
- "description": "Disables the control.",
12764
- "attribute": "disabled"
12765
- },
12766
- {
12767
- "kind": "field",
12768
- "name": "allowCustom",
12769
- "type": {
12770
- "text": "boolean"
12771
- },
12772
- "default": "false",
12773
- "description": "Allows labels that aren't in the predefined list.",
12774
- "attribute": "allow-custom"
12775
- },
12776
- {
12777
- "kind": "field",
12778
- "name": "predefinedLabels",
12779
- "type": {
12780
- "text": "(PredefinedLabel | string)[]"
12781
- },
12782
- "default": "[]",
12783
- "description": "The predefined labels. Entries are either a string or `{name, options}`.",
12784
- "attribute": "predefined-labels"
12785
- },
12786
- {
12787
- "kind": "field",
12788
- "name": "validationMessage",
12789
- "readonly": true
12790
- },
12791
- {
12792
- "kind": "field",
12793
- "name": "validity",
12794
- "readonly": true
12795
- },
12796
- {
12797
- "kind": "method",
12798
- "name": "checkValidity",
12799
- "return": {
12800
- "type": {
12801
- "text": "boolean"
12802
- }
12803
- }
12804
- },
12805
- {
12806
- "kind": "method",
12807
- "name": "getForm",
12808
- "return": {
12809
- "type": {
12810
- "text": "HTMLFormElement | null"
12811
- }
12812
- }
12813
- },
12814
- {
12815
- "kind": "method",
12816
- "name": "reportValidity",
12817
- "return": {
12818
- "type": {
12819
- "text": "boolean"
12820
- }
12821
- }
12822
- },
12823
- {
12824
- "kind": "method",
12825
- "name": "setCustomValidity",
12826
- "return": {
12827
- "type": {
12828
- "text": "void"
12829
- }
12830
- },
12831
- "parameters": [
12832
- {
12833
- "name": "message",
12834
- "type": {
12835
- "text": "string"
12836
- }
12837
- }
12838
- ]
12839
- },
12840
- {
12841
- "kind": "method",
12842
- "name": "handleValueChange"
12843
- },
12844
- {
12845
- "kind": "method",
12846
- "name": "getFilteredLabels",
12847
- "privacy": "private",
12848
- "return": {
12849
- "type": {
12850
- "text": "PredefinedLabel[]"
12851
- }
12852
- }
12853
- },
12854
- {
12855
- "kind": "method",
12856
- "name": "handleChange",
12857
- "privacy": "private"
12858
- },
12859
- {
12860
- "kind": "method",
12861
- "name": "handleInput",
12862
- "privacy": "private"
12863
- },
12864
- {
12865
- "kind": "method",
12866
- "name": "handleClick",
12867
- "privacy": "private",
12868
- "parameters": [
12869
- {
12870
- "name": "e",
12871
- "type": {
12872
- "text": "MouseEvent"
12873
- }
12874
- }
12875
- ]
12876
- },
12877
- {
12878
- "kind": "method",
12879
- "name": "handleInputValueChange",
12880
- "privacy": "private",
12881
- "parameters": [
12882
- {
12883
- "name": "e",
12884
- "type": {
12885
- "text": "Event"
12886
- }
12887
- }
12888
- ]
12889
- },
12890
- {
12891
- "kind": "method",
12892
- "name": "handleFormSubmit",
12893
- "privacy": "private",
12894
- "parameters": [
12895
- {
12896
- "name": "e",
12897
- "type": {
12898
- "text": "Event"
12899
- }
12900
- },
12901
- {
12902
- "name": "label",
12903
- "type": {
12904
- "text": "string"
12905
- }
12906
- }
12907
- ]
12908
- },
12909
- {
12910
- "kind": "method",
12911
- "name": "renderValueControl",
12912
- "privacy": "private",
12913
- "return": {
12914
- "type": {
12915
- "text": "TemplateResult"
12916
- }
12917
- },
12918
- "parameters": [
12919
- {
12920
- "name": "label",
12921
- "type": {
12922
- "text": "PredefinedLabel"
12923
- }
12924
- }
12925
- ]
12926
- },
12927
- {
12928
- "kind": "method",
12929
- "name": "renderRow",
12930
- "privacy": "private",
12931
- "return": {
12932
- "type": {
12933
- "text": "TemplateResult"
12934
- }
12935
- },
12936
- "parameters": [
12937
- {
12938
- "name": "label",
12939
- "type": {
12940
- "text": "string"
12941
- }
12942
- },
12943
- {
12944
- "name": "control",
12945
- "type": {
12946
- "text": "TemplateResult"
12947
- }
12948
- }
12949
- ]
12950
- }
12951
- ],
12952
- "attributes": [
12953
- {
12954
- "name": "value",
12955
- "type": {
12956
- "text": "string"
12957
- },
12958
- "default": "''",
12959
- "description": "The selected label key. Also acts as the filter while typing.",
12960
- "fieldName": "value"
12961
- },
12962
- {
12963
- "name": "inputValue",
12964
- "type": {
12965
- "text": "string"
12966
- },
12967
- "default": "''",
12968
- "description": "The value entered for the selected label. Submitted as `label:value` when present.",
12969
- "fieldName": "inputValue"
12970
- },
12971
- {
12972
- "name": "input-size",
12973
- "type": {
12974
- "text": "'x-small' | 'small' | 'medium' | 'large'"
12975
- },
12976
- "default": "'medium'",
12977
- "description": "The size of the main input.",
12978
- "fieldName": "inputSize"
12979
- },
12980
- {
12981
- "name": "name",
12982
- "type": {
12983
- "text": "string"
12984
- },
12985
- "default": "'label'",
12986
- "description": "The name of the control. Used for form submission.",
12987
- "fieldName": "name"
12988
- },
12989
- {
12990
- "name": "title",
12991
- "type": {
12992
- "text": "string"
12993
- },
12994
- "description": "The title of the main input.",
12995
- "fieldName": "title"
12996
- },
12997
- {
12998
- "name": "disabled",
12999
- "type": {
13000
- "text": "boolean"
13001
- },
13002
- "default": "false",
13003
- "description": "Disables the control.",
13004
- "fieldName": "disabled"
13005
- },
13006
- {
13007
- "name": "allow-custom",
13008
- "type": {
13009
- "text": "boolean"
13010
- },
13011
- "default": "false",
13012
- "description": "Allows labels that aren't in the predefined list.",
13013
- "fieldName": "allowCustom"
13014
- },
13015
- {
13016
- "name": "predefined-labels",
13017
- "type": {
13018
- "text": "(PredefinedLabel | string)[]"
13019
- },
13020
- "default": "[]",
13021
- "description": "The predefined labels. Entries are either a string or `{name, options}`.",
13022
- "fieldName": "predefinedLabels"
13023
- }
13024
- ],
13025
- "superclass": {
13026
- "name": "ZincElement",
13027
- "module": "/src/internal/zinc-element"
13028
- },
13029
- "summary": "This component provides a labeled input with support for predefined and custom labels,\nallowing users to select or enter label-value pairs within a dropdown interface.",
13030
- "tagNameWithoutPrefix": "defined-label",
13031
- "tagName": "zn-defined-label",
13032
- "customElement": true,
13033
- "jsDoc": "/**\n * @summary This component provides a labeled input with support for predefined and custom labels,\n * allowing users to select or enter label-value pairs within a dropdown interface.\n * @documentation https://zinc.style/components/defined-label\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-button\n * @dependency zn-dropdown\n * @dependency zn-input\n * @dependency zn-option\n * @dependency zn-select\n *\n * @csspart input - The component's main input.\n * @csspart input-value - The label's value inputs.\n */",
13034
- "documentation": "https://zinc.style/components/defined-label",
13035
- "status": "experimental",
13036
- "since": "1.0",
13037
- "dependencies": [
13038
- "zn-button",
13039
- "zn-dropdown",
13040
- "zn-input",
13041
- "zn-option",
13042
- "zn-select"
13043
- ]
13044
- }
13045
- ],
13046
- "exports": [
13047
- {
13048
- "kind": "js",
13049
- "name": "default",
13050
- "declaration": {
13051
- "name": "ZnDefinedLabel",
13052
- "module": "components/defined-label/defined-label.js"
13053
- }
13054
- }
13055
- ]
13056
- },
13057
13073
  {
13058
13074
  "kind": "javascript-module",
13059
13075
  "path": "components/dialog/dialog.js",
@@ -50936,7 +50952,7 @@
50936
50952
  "name": "hasSlotController",
50937
50953
  "privacy": "private",
50938
50954
  "readonly": true,
50939
- "default": "new HasSlotController(this, '[default]', 'properties', 'actions', 'image')"
50955
+ "default": "new HasSlotController(this, '[default]', 'caption', 'description', 'properties', 'actions', 'image')"
50940
50956
  },
50941
50957
  {
50942
50958
  "kind": "field",
@@ -54179,7 +54195,7 @@
54179
54195
  "package": {
54180
54196
  "name": "@kubex/zinc",
54181
54197
  "description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
54182
- "version": "1.1.182",
54198
+ "version": "1.1.184",
54183
54199
  "author": "",
54184
54200
  "license": "MIT"
54185
54201
  }