@kubex/zinc 1.1.58 → 1.1.59

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.
@@ -33542,6 +33542,128 @@
33542
33542
  }
33543
33543
  ]
33544
33544
  },
33545
+ {
33546
+ "kind": "javascript-module",
33547
+ "path": "components/simple-chart/simple-chart.js",
33548
+ "declarations": [
33549
+ {
33550
+ "kind": "class",
33551
+ "description": "",
33552
+ "name": "ZnSimpleChart",
33553
+ "members": [
33554
+ {
33555
+ "kind": "field",
33556
+ "name": "datasets",
33557
+ "type": {
33558
+ "text": "{ data: number[] }[] | undefined"
33559
+ },
33560
+ "attribute": "datasets"
33561
+ },
33562
+ {
33563
+ "kind": "field",
33564
+ "name": "labels",
33565
+ "type": {
33566
+ "text": "string[] | undefined"
33567
+ },
33568
+ "attribute": "labels"
33569
+ },
33570
+ {
33571
+ "kind": "field",
33572
+ "name": "enableAnimations",
33573
+ "type": {
33574
+ "text": "boolean | number"
33575
+ },
33576
+ "default": "false",
33577
+ "attribute": "enable-animations"
33578
+ },
33579
+ {
33580
+ "kind": "field",
33581
+ "name": "chart",
33582
+ "type": {
33583
+ "text": "ECharts | undefined"
33584
+ },
33585
+ "privacy": "private"
33586
+ },
33587
+ {
33588
+ "kind": "field",
33589
+ "name": "initPromise",
33590
+ "type": {
33591
+ "text": "Promise<void> | undefined"
33592
+ },
33593
+ "privacy": "private"
33594
+ },
33595
+ {
33596
+ "kind": "field",
33597
+ "name": "resizeObserver",
33598
+ "privacy": "private",
33599
+ "readonly": true,
33600
+ "default": "new ResizeController(this, { target: null, skipInitial: true, callback: () => this.chart?.resize(), })"
33601
+ },
33602
+ {
33603
+ "kind": "method",
33604
+ "name": "getUpdateComplete",
33605
+ "privacy": "protected",
33606
+ "return": {
33607
+ "type": {
33608
+ "text": "Promise<boolean>"
33609
+ }
33610
+ }
33611
+ },
33612
+ {
33613
+ "kind": "method",
33614
+ "name": "initChart",
33615
+ "privacy": "private"
33616
+ }
33617
+ ],
33618
+ "attributes": [
33619
+ {
33620
+ "name": "datasets",
33621
+ "type": {
33622
+ "text": "{ data: number[] }[] | undefined"
33623
+ },
33624
+ "fieldName": "datasets"
33625
+ },
33626
+ {
33627
+ "name": "labels",
33628
+ "type": {
33629
+ "text": "string[] | undefined"
33630
+ },
33631
+ "fieldName": "labels"
33632
+ },
33633
+ {
33634
+ "name": "enable-animations",
33635
+ "type": {
33636
+ "text": "boolean | number"
33637
+ },
33638
+ "default": "false",
33639
+ "fieldName": "enableAnimations"
33640
+ }
33641
+ ],
33642
+ "superclass": {
33643
+ "name": "ZincElement",
33644
+ "module": "/src/internal/zinc-element"
33645
+ },
33646
+ "summary": "A simple, pre-styled bar chart.",
33647
+ "tagNameWithoutPrefix": "simple-chart",
33648
+ "tagName": "zn-simple-chart",
33649
+ "customElement": true,
33650
+ "jsDoc": "/**\n * @summary A simple, pre-styled bar chart.\n * @documentation https://zinc.style/components/simple-chart\n * @status experimental\n * @since 1.0\n */",
33651
+ "documentation": "https://zinc.style/components/simple-chart",
33652
+ "status": "experimental",
33653
+ "since": "1.0"
33654
+ }
33655
+ ],
33656
+ "exports": [
33657
+ {
33658
+ "kind": "js",
33659
+ "name": "default",
33660
+ "declaration": {
33661
+ "name": "ZnSimpleChart",
33662
+ "module": "components/simple-chart/simple-chart.js"
33663
+ }
33664
+ }
33665
+ ]
33666
+ },
33545
33667
  {
33546
33668
  "kind": "javascript-module",
33547
33669
  "path": "components/skeleton/skeleton.js",
@@ -33897,128 +34019,6 @@
33897
34019
  }
33898
34020
  ]
33899
34021
  },
33900
- {
33901
- "kind": "javascript-module",
33902
- "path": "components/simple-chart/simple-chart.js",
33903
- "declarations": [
33904
- {
33905
- "kind": "class",
33906
- "description": "",
33907
- "name": "ZnSimpleChart",
33908
- "members": [
33909
- {
33910
- "kind": "field",
33911
- "name": "datasets",
33912
- "type": {
33913
- "text": "{ data: number[] }[] | undefined"
33914
- },
33915
- "attribute": "datasets"
33916
- },
33917
- {
33918
- "kind": "field",
33919
- "name": "labels",
33920
- "type": {
33921
- "text": "string[] | undefined"
33922
- },
33923
- "attribute": "labels"
33924
- },
33925
- {
33926
- "kind": "field",
33927
- "name": "enableAnimations",
33928
- "type": {
33929
- "text": "boolean | number"
33930
- },
33931
- "default": "false",
33932
- "attribute": "enable-animations"
33933
- },
33934
- {
33935
- "kind": "field",
33936
- "name": "chart",
33937
- "type": {
33938
- "text": "ECharts | undefined"
33939
- },
33940
- "privacy": "private"
33941
- },
33942
- {
33943
- "kind": "field",
33944
- "name": "initPromise",
33945
- "type": {
33946
- "text": "Promise<void> | undefined"
33947
- },
33948
- "privacy": "private"
33949
- },
33950
- {
33951
- "kind": "field",
33952
- "name": "resizeObserver",
33953
- "privacy": "private",
33954
- "readonly": true,
33955
- "default": "new ResizeController(this, { target: null, skipInitial: true, callback: () => this.chart?.resize(), })"
33956
- },
33957
- {
33958
- "kind": "method",
33959
- "name": "getUpdateComplete",
33960
- "privacy": "protected",
33961
- "return": {
33962
- "type": {
33963
- "text": "Promise<boolean>"
33964
- }
33965
- }
33966
- },
33967
- {
33968
- "kind": "method",
33969
- "name": "initChart",
33970
- "privacy": "private"
33971
- }
33972
- ],
33973
- "attributes": [
33974
- {
33975
- "name": "datasets",
33976
- "type": {
33977
- "text": "{ data: number[] }[] | undefined"
33978
- },
33979
- "fieldName": "datasets"
33980
- },
33981
- {
33982
- "name": "labels",
33983
- "type": {
33984
- "text": "string[] | undefined"
33985
- },
33986
- "fieldName": "labels"
33987
- },
33988
- {
33989
- "name": "enable-animations",
33990
- "type": {
33991
- "text": "boolean | number"
33992
- },
33993
- "default": "false",
33994
- "fieldName": "enableAnimations"
33995
- }
33996
- ],
33997
- "superclass": {
33998
- "name": "ZincElement",
33999
- "module": "/src/internal/zinc-element"
34000
- },
34001
- "summary": "A simple, pre-styled bar chart.",
34002
- "tagNameWithoutPrefix": "simple-chart",
34003
- "tagName": "zn-simple-chart",
34004
- "customElement": true,
34005
- "jsDoc": "/**\n * @summary A simple, pre-styled bar chart.\n * @documentation https://zinc.style/components/simple-chart\n * @status experimental\n * @since 1.0\n */",
34006
- "documentation": "https://zinc.style/components/simple-chart",
34007
- "status": "experimental",
34008
- "since": "1.0"
34009
- }
34010
- ],
34011
- "exports": [
34012
- {
34013
- "kind": "js",
34014
- "name": "default",
34015
- "declaration": {
34016
- "name": "ZnSimpleChart",
34017
- "module": "components/simple-chart/simple-chart.js"
34018
- }
34019
- }
34020
- ]
34021
- },
34022
34022
  {
34023
34023
  "kind": "javascript-module",
34024
34024
  "path": "components/sp/sp.js",
@@ -38793,9 +38793,20 @@
38793
38793
  {
38794
38794
  "description": "The toggle's label.",
38795
38795
  "name": ""
38796
+ },
38797
+ {
38798
+ "description": "Text that describes how to use the toggle. Alternatively, you can use the `help-text` attribute.",
38799
+ "name": "help-text"
38796
38800
  }
38797
38801
  ],
38798
38802
  "members": [
38803
+ {
38804
+ "kind": "field",
38805
+ "name": "hasSlotController",
38806
+ "privacy": "private",
38807
+ "readonly": true,
38808
+ "default": "new HasSlotController(this, 'help-text')"
38809
+ },
38799
38810
  {
38800
38811
  "kind": "field",
38801
38812
  "name": "formControlController",
@@ -38956,6 +38967,16 @@
38956
38967
  "default": "''",
38957
38968
  "attribute": "label"
38958
38969
  },
38970
+ {
38971
+ "kind": "field",
38972
+ "name": "labelPosition",
38973
+ "type": {
38974
+ "text": "'top' | 'left' | 'right'"
38975
+ },
38976
+ "default": "'top'",
38977
+ "attribute": "label-position",
38978
+ "reflects": true
38979
+ },
38959
38980
  {
38960
38981
  "kind": "field",
38961
38982
  "name": "inline",
@@ -39190,6 +39211,14 @@
39190
39211
  "default": "''",
39191
39212
  "fieldName": "label"
39192
39213
  },
39214
+ {
39215
+ "name": "label-position",
39216
+ "type": {
39217
+ "text": "'top' | 'left' | 'right'"
39218
+ },
39219
+ "default": "'top'",
39220
+ "fieldName": "labelPosition"
39221
+ },
39193
39222
  {
39194
39223
  "name": "inline",
39195
39224
  "type": {
@@ -39207,7 +39236,7 @@
39207
39236
  "tagNameWithoutPrefix": "toggle",
39208
39237
  "tagName": "zn-toggle",
39209
39238
  "customElement": true,
39210
- "jsDoc": "/**\n * @summary Toggles allow the user to switch an option on or off.\n * @documentation https://zinc.style/components/toggle\n * @status stable\n * @since 1.0\n *\n * @dependency zn-tooltip\n *\n * @event zn-input - Emitted when the toggle receives input.\n *\n * @slot - The toggle's label.\n *\n * @csspart base - The component's base wrapper containing the toggle switch.\n * @csspart control - The toggle switch control (the circular button that slides).\n *\n * @cssproperty --zn-toggle-margin - The margin around the toggle switch. Defaults to `8px 0`.\n */",
39239
+ "jsDoc": "/**\n * @summary Toggles allow the user to switch an option on or off.\n * @documentation https://zinc.style/components/toggle\n * @status stable\n * @since 1.0\n *\n * @dependency zn-tooltip\n *\n * @event zn-input - Emitted when the toggle receives input.\n *\n * @slot - The toggle's label.\n * @slot help-text - Text that describes how to use the toggle. Alternatively, you can use the `help-text` attribute.\n *\n * @csspart base - The component's base wrapper containing the toggle switch.\n * @csspart control - The toggle switch control (the circular button that slides).\n *\n * @cssproperty --zn-toggle-margin - The margin around the toggle switch. Defaults to `8px 0`.\n */",
39211
39240
  "documentation": "https://zinc.style/components/toggle",
39212
39241
  "status": "stable",
39213
39242
  "since": "1.0",
@@ -40751,7 +40780,7 @@
40751
40780
  "package": {
40752
40781
  "name": "@kubex/zinc",
40753
40782
  "description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
40754
- "version": "1.1.58",
40783
+ "version": "1.1.59",
40755
40784
  "author": "",
40756
40785
  "license": "MIT"
40757
40786
  }
@@ -3442,6 +3442,21 @@
3442
3442
  }
3443
3443
  ]
3444
3444
  },
3445
+ {
3446
+ "name": "zn-simple-chart",
3447
+ "description": "A simple, pre-styled bar chart.\n---\n",
3448
+ "attributes": [
3449
+ { "name": "datasets", "values": [{ "name": "{ data: number[] }[]" }] },
3450
+ { "name": "labels", "values": [{ "name": "string[]" }] },
3451
+ { "name": "enable-animations", "values": [] }
3452
+ ],
3453
+ "references": [
3454
+ {
3455
+ "name": "Documentation",
3456
+ "url": "https://zinc.style/components/simple-chart"
3457
+ }
3458
+ ]
3459
+ },
3445
3460
  {
3446
3461
  "name": "zn-skeleton",
3447
3462
  "description": "Skeleton loaders provide visual placeholders while content is loading, improving perceived performance and user experience.\n---\n",
@@ -3501,21 +3516,6 @@
3501
3516
  }
3502
3517
  ]
3503
3518
  },
3504
- {
3505
- "name": "zn-simple-chart",
3506
- "description": "A simple, pre-styled bar chart.\n---\n",
3507
- "attributes": [
3508
- { "name": "datasets", "values": [{ "name": "{ data: number[] }[]" }] },
3509
- { "name": "labels", "values": [{ "name": "string[]" }] },
3510
- { "name": "enable-animations", "values": [] }
3511
- ],
3512
- "references": [
3513
- {
3514
- "name": "Documentation",
3515
- "url": "https://zinc.style/components/simple-chart"
3516
- }
3517
- ]
3518
- },
3519
3519
  {
3520
3520
  "name": "zn-sp",
3521
3521
  "description": "A flexible layout container for spacing and arranging child elements in rows or columns with configurable gap, padding, and dividers.\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.",
@@ -4049,7 +4049,7 @@
4049
4049
  },
4050
4050
  {
4051
4051
  "name": "zn-toggle",
4052
- "description": "Toggles allow the user to switch an option on or off.\n---\n\n\n### **Events:**\n - **zn-input** - Emitted when the toggle receives input.\n\n### **Slots:**\n - _default_ - The toggle's label.\n\n### **CSS Properties:**\n - **--zn-toggle-margin** - The margin around the toggle switch. Defaults to `8px 0`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper containing the toggle switch.\n- **control** - The toggle switch control (the circular button that slides).",
4052
+ "description": "Toggles allow the user to switch an option on or off.\n---\n\n\n### **Events:**\n - **zn-input** - Emitted when the toggle receives input.\n\n### **Slots:**\n - _default_ - The toggle's label.\n- **help-text** - Text that describes how to use the toggle. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--zn-toggle-margin** - The margin around the toggle switch. Defaults to `8px 0`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper containing the toggle switch.\n- **control** - The toggle switch control (the circular button that slides).",
4053
4053
  "attributes": [
4054
4054
  { "name": "title", "values": [] },
4055
4055
  { "name": "name", "values": [] },
@@ -4072,6 +4072,10 @@
4072
4072
  { "name": "on-text", "values": [] },
4073
4073
  { "name": "off-text", "values": [] },
4074
4074
  { "name": "label", "values": [] },
4075
+ {
4076
+ "name": "label-position",
4077
+ "values": [{ "name": "top" }, { "name": "left" }, { "name": "right" }]
4078
+ },
4075
4079
  { "name": "inline", "values": [] }
4076
4080
  ],
4077
4081
  "references": [
@@ -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.58",
4
+ "version": "1.1.59",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -8154,6 +8154,34 @@
8154
8154
  ]
8155
8155
  }
8156
8156
  },
8157
+ {
8158
+ "name": "zn-simple-chart",
8159
+ "description": "A simple, pre-styled bar chart.\n---\n",
8160
+ "doc-url": "",
8161
+ "attributes": [
8162
+ {
8163
+ "name": "datasets",
8164
+ "value": { "type": "{ data: number[] }[] | undefined" }
8165
+ },
8166
+ { "name": "labels", "value": { "type": "string[] | undefined" } },
8167
+ {
8168
+ "name": "enable-animations",
8169
+ "value": { "type": "boolean | number", "default": "false" }
8170
+ }
8171
+ ],
8172
+ "events": [],
8173
+ "js": {
8174
+ "properties": [
8175
+ {
8176
+ "name": "datasets",
8177
+ "type": "{ data: number[] }[] | undefined"
8178
+ },
8179
+ { "name": "labels", "type": "string[] | undefined" },
8180
+ { "name": "enableAnimations", "type": "boolean | number" }
8181
+ ],
8182
+ "events": []
8183
+ }
8184
+ },
8157
8185
  {
8158
8186
  "name": "zn-skeleton",
8159
8187
  "description": "Skeleton loaders provide visual placeholders while content is loading, improving perceived performance and user experience.\n---\n",
@@ -8288,34 +8316,6 @@
8288
8316
  ]
8289
8317
  }
8290
8318
  },
8291
- {
8292
- "name": "zn-simple-chart",
8293
- "description": "A simple, pre-styled bar chart.\n---\n",
8294
- "doc-url": "",
8295
- "attributes": [
8296
- {
8297
- "name": "datasets",
8298
- "value": { "type": "{ data: number[] }[] | undefined" }
8299
- },
8300
- { "name": "labels", "value": { "type": "string[] | undefined" } },
8301
- {
8302
- "name": "enable-animations",
8303
- "value": { "type": "boolean | number", "default": "false" }
8304
- }
8305
- ],
8306
- "events": [],
8307
- "js": {
8308
- "properties": [
8309
- {
8310
- "name": "datasets",
8311
- "type": "{ data: number[] }[] | undefined"
8312
- },
8313
- { "name": "labels", "type": "string[] | undefined" },
8314
- { "name": "enableAnimations", "type": "boolean | number" }
8315
- ],
8316
- "events": []
8317
- }
8318
- },
8319
8319
  {
8320
8320
  "name": "zn-sp",
8321
8321
  "description": "A flexible layout container for spacing and arranging child elements in rows or columns with configurable gap, padding, and dividers.\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.",
@@ -9550,7 +9550,7 @@
9550
9550
  },
9551
9551
  {
9552
9552
  "name": "zn-toggle",
9553
- "description": "Toggles allow the user to switch an option on or off.\n---\n\n\n### **Events:**\n - **zn-input** - Emitted when the toggle receives input.\n\n### **Slots:**\n - _default_ - The toggle's label.\n\n### **CSS Properties:**\n - **--zn-toggle-margin** - The margin around the toggle switch. Defaults to `8px 0`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper containing the toggle switch.\n- **control** - The toggle switch control (the circular button that slides).",
9553
+ "description": "Toggles allow the user to switch an option on or off.\n---\n\n\n### **Events:**\n - **zn-input** - Emitted when the toggle receives input.\n\n### **Slots:**\n - _default_ - The toggle's label.\n- **help-text** - Text that describes how to use the toggle. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--zn-toggle-margin** - The margin around the toggle switch. Defaults to `8px 0`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper containing the toggle switch.\n- **control** - The toggle switch control (the circular button that slides).",
9554
9554
  "doc-url": "",
9555
9555
  "attributes": [
9556
9556
  {
@@ -9603,12 +9603,25 @@
9603
9603
  "value": { "type": "string", "default": "''" }
9604
9604
  },
9605
9605
  { "name": "label", "value": { "type": "string", "default": "''" } },
9606
+ {
9607
+ "name": "label-position",
9608
+ "value": {
9609
+ "type": "'top' | 'left' | 'right'",
9610
+ "default": "'top'"
9611
+ }
9612
+ },
9606
9613
  {
9607
9614
  "name": "inline",
9608
9615
  "value": { "type": "boolean", "default": "false" }
9609
9616
  }
9610
9617
  ],
9611
- "slots": [{ "name": "", "description": "The toggle's label." }],
9618
+ "slots": [
9619
+ { "name": "", "description": "The toggle's label." },
9620
+ {
9621
+ "name": "help-text",
9622
+ "description": "Text that describes how to use the toggle. Alternatively, you can use the `help-text` attribute."
9623
+ }
9624
+ ],
9612
9625
  "events": [
9613
9626
  {
9614
9627
  "name": "zn-input",
@@ -9634,6 +9647,7 @@
9634
9647
  { "name": "onText", "type": "string" },
9635
9648
  { "name": "offText", "type": "string" },
9636
9649
  { "name": "label", "type": "string" },
9650
+ { "name": "labelPosition", "type": "'top' | 'left' | 'right'" },
9637
9651
  { "name": "inline", "type": "boolean" },
9638
9652
  { "name": "validity" },
9639
9653
  { "name": "validationMessage" }
package/dist/zn.d.ts CHANGED
@@ -1309,6 +1309,7 @@ declare module "components/toggle/toggle.component" {
1309
1309
  * @event zn-input - Emitted when the toggle receives input.
1310
1310
  *
1311
1311
  * @slot - The toggle's label.
1312
+ * @slot help-text - Text that describes how to use the toggle. Alternatively, you can use the `help-text` attribute.
1312
1313
  *
1313
1314
  * @csspart base - The component's base wrapper containing the toggle switch.
1314
1315
  * @csspart control - The toggle switch control (the circular button that slides).
@@ -1317,6 +1318,7 @@ declare module "components/toggle/toggle.component" {
1317
1318
  */
1318
1319
  export default class ZnToggle extends ZincElement implements ZincFormControl {
1319
1320
  static styles: CSSResultGroup;
1321
+ private readonly hasSlotController;
1320
1322
  private readonly formControlController;
1321
1323
  input: HTMLInputElement;
1322
1324
  hasFocus: boolean;
@@ -1335,6 +1337,7 @@ declare module "components/toggle/toggle.component" {
1335
1337
  onText: string;
1336
1338
  offText: string;
1337
1339
  label: string;
1340
+ labelPosition: 'top' | 'left' | 'right';
1338
1341
  inline: boolean;
1339
1342
  get validity(): ValidityState;
1340
1343
  get validationMessage(): string;