@kubex/zinc 1.0.105 → 1.0.106

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.
@@ -59,6 +59,79 @@
59
59
  }
60
60
  ]
61
61
  },
62
+ {
63
+ "kind": "javascript-module",
64
+ "path": "components/action-bar/action-bar.js",
65
+ "declarations": [
66
+ {
67
+ "kind": "class",
68
+ "description": "",
69
+ "name": "ZnActionBar",
70
+ "cssProperties": [
71
+ {
72
+ "description": "An example CSS custom property.",
73
+ "name": "--example"
74
+ }
75
+ ],
76
+ "cssParts": [
77
+ {
78
+ "description": "The component's base wrapper.",
79
+ "name": "base"
80
+ }
81
+ ],
82
+ "slots": [
83
+ {
84
+ "description": "The default slot.",
85
+ "name": ""
86
+ },
87
+ {
88
+ "description": "An example slot.",
89
+ "name": "example"
90
+ }
91
+ ],
92
+ "members": [
93
+ {
94
+ "kind": "field",
95
+ "name": "localize",
96
+ "privacy": "private",
97
+ "readonly": true,
98
+ "default": "new LocalizeController(this)"
99
+ }
100
+ ],
101
+ "events": [
102
+ {
103
+ "description": "Emitted as an example.",
104
+ "name": "zn-event-name"
105
+ }
106
+ ],
107
+ "superclass": {
108
+ "name": "ZincElement",
109
+ "module": "/src/internal/zinc-element"
110
+ },
111
+ "summary": "Short summary of the component's intended use.",
112
+ "tagNameWithoutPrefix": "action-bar",
113
+ "tagName": "zn-action-bar",
114
+ "customElement": true,
115
+ "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 */",
116
+ "documentation": "https://zinc.style/components/action-bar",
117
+ "status": "experimental",
118
+ "since": "1.0",
119
+ "dependencies": [
120
+ "zn-example"
121
+ ]
122
+ }
123
+ ],
124
+ "exports": [
125
+ {
126
+ "kind": "js",
127
+ "name": "default",
128
+ "declaration": {
129
+ "name": "ZnActionBar",
130
+ "module": "components/action-bar/action-bar.js"
131
+ }
132
+ }
133
+ ]
134
+ },
62
135
  {
63
136
  "kind": "javascript-module",
64
137
  "path": "components/alert/alert.js",
@@ -217,79 +290,6 @@
217
290
  }
218
291
  ]
219
292
  },
220
- {
221
- "kind": "javascript-module",
222
- "path": "components/action-bar/action-bar.js",
223
- "declarations": [
224
- {
225
- "kind": "class",
226
- "description": "",
227
- "name": "ZnActionBar",
228
- "cssProperties": [
229
- {
230
- "description": "An example CSS custom property.",
231
- "name": "--example"
232
- }
233
- ],
234
- "cssParts": [
235
- {
236
- "description": "The component's base wrapper.",
237
- "name": "base"
238
- }
239
- ],
240
- "slots": [
241
- {
242
- "description": "The default slot.",
243
- "name": ""
244
- },
245
- {
246
- "description": "An example slot.",
247
- "name": "example"
248
- }
249
- ],
250
- "members": [
251
- {
252
- "kind": "field",
253
- "name": "localize",
254
- "privacy": "private",
255
- "readonly": true,
256
- "default": "new LocalizeController(this)"
257
- }
258
- ],
259
- "events": [
260
- {
261
- "description": "Emitted as an example.",
262
- "name": "zn-event-name"
263
- }
264
- ],
265
- "superclass": {
266
- "name": "ZincElement",
267
- "module": "/src/internal/zinc-element"
268
- },
269
- "summary": "Short summary of the component's intended use.",
270
- "tagNameWithoutPrefix": "action-bar",
271
- "tagName": "zn-action-bar",
272
- "customElement": true,
273
- "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 */",
274
- "documentation": "https://zinc.style/components/action-bar",
275
- "status": "experimental",
276
- "since": "1.0",
277
- "dependencies": [
278
- "zn-example"
279
- ]
280
- }
281
- ],
282
- "exports": [
283
- {
284
- "kind": "js",
285
- "name": "default",
286
- "declaration": {
287
- "name": "ZnActionBar",
288
- "module": "components/action-bar/action-bar.js"
289
- }
290
- }
291
- ]
292
- },
293
293
  {
294
294
  "kind": "javascript-module",
295
295
  "path": "components/animated-button/animated-button.js",
@@ -13463,6 +13463,14 @@
13463
13463
  "default": "'text'",
13464
13464
  "attribute": "input-type"
13465
13465
  },
13466
+ {
13467
+ "kind": "field",
13468
+ "name": "textareaRows",
13469
+ "type": {
13470
+ "text": "1"
13471
+ },
13472
+ "attribute": "textarea-rows"
13473
+ },
13466
13474
  {
13467
13475
  "kind": "field",
13468
13476
  "name": "options",
@@ -13873,6 +13881,13 @@
13873
13881
  "default": "'text'",
13874
13882
  "fieldName": "inputType"
13875
13883
  },
13884
+ {
13885
+ "name": "textarea-rows",
13886
+ "type": {
13887
+ "text": "1"
13888
+ },
13889
+ "fieldName": "textareaRows"
13890
+ },
13876
13891
  {
13877
13892
  "name": "options",
13878
13893
  "type": {
@@ -31876,6 +31891,51 @@
31876
31891
  "default": "['en']",
31877
31892
  "description": "Tracks all language codes that have been activated across children."
31878
31893
  },
31894
+ {
31895
+ "kind": "field",
31896
+ "name": "_overflowIndex",
31897
+ "type": {
31898
+ "text": "number"
31899
+ },
31900
+ "privacy": "private",
31901
+ "default": "-1"
31902
+ },
31903
+ {
31904
+ "kind": "field",
31905
+ "name": "_resizeObserver",
31906
+ "type": {
31907
+ "text": "ResizeObserver | undefined"
31908
+ },
31909
+ "privacy": "private"
31910
+ },
31911
+ {
31912
+ "kind": "field",
31913
+ "name": "_lastObservedWidth",
31914
+ "type": {
31915
+ "text": "number"
31916
+ },
31917
+ "privacy": "private",
31918
+ "default": "0"
31919
+ },
31920
+ {
31921
+ "kind": "field",
31922
+ "name": "_measureRafId",
31923
+ "type": {
31924
+ "text": "number"
31925
+ },
31926
+ "privacy": "private",
31927
+ "default": "0"
31928
+ },
31929
+ {
31930
+ "kind": "method",
31931
+ "name": "_scheduleLangOverflow",
31932
+ "privacy": "private"
31933
+ },
31934
+ {
31935
+ "kind": "method",
31936
+ "name": "_computeLangOverflow",
31937
+ "privacy": "private"
31938
+ },
31879
31939
  {
31880
31940
  "kind": "method",
31881
31941
  "name": "getAllTranslations",
@@ -31920,6 +31980,11 @@
31920
31980
  "name": "handleLanguageAdd",
31921
31981
  "privacy": "private"
31922
31982
  },
31983
+ {
31984
+ "kind": "field",
31985
+ "name": "handleOverflowSelect",
31986
+ "privacy": "private"
31987
+ },
31923
31988
  {
31924
31989
  "kind": "field",
31925
31990
  "name": "hasSlotController",
@@ -32396,6 +32461,14 @@
32396
32461
  "default": "'text'",
32397
32462
  "attribute": "input-type"
32398
32463
  },
32464
+ {
32465
+ "kind": "field",
32466
+ "name": "textareaRows",
32467
+ "type": {
32468
+ "text": "number | undefined"
32469
+ },
32470
+ "attribute": "textarea-rows"
32471
+ },
32399
32472
  {
32400
32473
  "kind": "field",
32401
32474
  "name": "grouped",
@@ -32434,6 +32507,41 @@
32434
32507
  "privacy": "private",
32435
32508
  "default": "'en'"
32436
32509
  },
32510
+ {
32511
+ "kind": "field",
32512
+ "name": "_overflowIndex",
32513
+ "type": {
32514
+ "text": "number"
32515
+ },
32516
+ "privacy": "private",
32517
+ "default": "-1"
32518
+ },
32519
+ {
32520
+ "kind": "field",
32521
+ "name": "_resizeObserver",
32522
+ "type": {
32523
+ "text": "ResizeObserver | undefined"
32524
+ },
32525
+ "privacy": "private"
32526
+ },
32527
+ {
32528
+ "kind": "field",
32529
+ "name": "_lastObservedWidth",
32530
+ "type": {
32531
+ "text": "number"
32532
+ },
32533
+ "privacy": "private",
32534
+ "default": "0"
32535
+ },
32536
+ {
32537
+ "kind": "field",
32538
+ "name": "_measureRafId",
32539
+ "type": {
32540
+ "text": "number"
32541
+ },
32542
+ "privacy": "private",
32543
+ "default": "0"
32544
+ },
32437
32545
  {
32438
32546
  "kind": "field",
32439
32547
  "name": "validity",
@@ -32513,11 +32621,26 @@
32513
32621
  },
32514
32622
  "description": "Returns all language codes that have values."
32515
32623
  },
32624
+ {
32625
+ "kind": "method",
32626
+ "name": "_scheduleLangOverflow",
32627
+ "privacy": "private"
32628
+ },
32629
+ {
32630
+ "kind": "method",
32631
+ "name": "_computeLangOverflow",
32632
+ "privacy": "private"
32633
+ },
32516
32634
  {
32517
32635
  "kind": "field",
32518
32636
  "name": "handleLanguageAdd",
32519
32637
  "privacy": "private"
32520
32638
  },
32639
+ {
32640
+ "kind": "field",
32641
+ "name": "handleOverflowSelect",
32642
+ "privacy": "private"
32643
+ },
32521
32644
  {
32522
32645
  "kind": "field",
32523
32646
  "name": "switchLanguage",
@@ -32619,6 +32742,13 @@
32619
32742
  "default": "'text'",
32620
32743
  "fieldName": "inputType"
32621
32744
  },
32745
+ {
32746
+ "name": "textarea-rows",
32747
+ "type": {
32748
+ "text": "number | undefined"
32749
+ },
32750
+ "fieldName": "textareaRows"
32751
+ },
32622
32752
  {
32623
32753
  "name": "grouped",
32624
32754
  "type": {
@@ -32921,7 +33051,7 @@
32921
33051
  "package": {
32922
33052
  "name": "@kubex/zinc",
32923
33053
  "description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
32924
- "version": "1.0.105",
33054
+ "version": "1.0.106",
32925
33055
  "author": "",
32926
33056
  "license": "MIT"
32927
33057
  }
@@ -13,6 +13,17 @@
13
13
  }
14
14
  ]
15
15
  },
16
+ {
17
+ "name": "zn-action-bar",
18
+ "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
19
+ "attributes": [],
20
+ "references": [
21
+ {
22
+ "name": "Documentation",
23
+ "url": "https://zinc.style/components/action-bar"
24
+ }
25
+ ]
26
+ },
16
27
  {
17
28
  "name": "zn-alert",
18
29
  "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
@@ -48,17 +59,6 @@
48
59
  }
49
60
  ]
50
61
  },
51
- {
52
- "name": "zn-action-bar",
53
- "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
54
- "attributes": [],
55
- "references": [
56
- {
57
- "name": "Documentation",
58
- "url": "https://zinc.style/components/action-bar"
59
- }
60
- ]
61
- },
62
62
  {
63
63
  "name": "zn-animated-button",
64
64
  "description": "\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
@@ -1557,6 +1557,7 @@
1557
1557
  { "name": "textarea" }
1558
1558
  ]
1559
1559
  },
1560
+ { "name": "textarea-rows", "values": [{ "name": "1" }] },
1560
1561
  {
1561
1562
  "name": "options",
1562
1563
  "values": [{ "name": "{ [key: string]: string }" }]
@@ -3639,6 +3640,7 @@
3639
3640
  { "name": "textarea" }
3640
3641
  ]
3641
3642
  },
3643
+ { "name": "textarea-rows", "values": [] },
3642
3644
  {
3643
3645
  "name": "grouped",
3644
3646
  "description": "When true, hides the individual language navbar and defers language control to a parent zn-translation-group.",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@kubex/zinc",
4
- "version": "1.0.105",
4
+ "version": "1.0.106",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -15,6 +15,28 @@
15
15
  "events": [],
16
16
  "js": { "properties": [], "events": [] }
17
17
  },
18
+ {
19
+ "name": "zn-action-bar",
20
+ "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
21
+ "doc-url": "",
22
+ "attributes": [],
23
+ "slots": [
24
+ { "name": "", "description": "The default slot." },
25
+ { "name": "example", "description": "An example slot." }
26
+ ],
27
+ "events": [
28
+ { "name": "zn-event-name", "description": "Emitted as an example." }
29
+ ],
30
+ "js": {
31
+ "properties": [],
32
+ "events": [
33
+ {
34
+ "name": "zn-event-name",
35
+ "description": "Emitted as an example."
36
+ }
37
+ ]
38
+ }
39
+ },
18
40
  {
19
41
  "name": "zn-alert",
20
42
  "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
@@ -70,28 +92,6 @@
70
92
  ]
71
93
  }
72
94
  },
73
- {
74
- "name": "zn-action-bar",
75
- "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
76
- "doc-url": "",
77
- "attributes": [],
78
- "slots": [
79
- { "name": "", "description": "The default slot." },
80
- { "name": "example", "description": "An example slot." }
81
- ],
82
- "events": [
83
- { "name": "zn-event-name", "description": "Emitted as an example." }
84
- ],
85
- "js": {
86
- "properties": [],
87
- "events": [
88
- {
89
- "name": "zn-event-name",
90
- "description": "Emitted as an example."
91
- }
92
- ]
93
- }
94
- },
95
95
  {
96
96
  "name": "zn-animated-button",
97
97
  "description": "\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
@@ -3593,6 +3593,7 @@
3593
3593
  "default": "'text'"
3594
3594
  }
3595
3595
  },
3596
+ { "name": "textarea-rows", "value": { "type": "1" } },
3596
3597
  {
3597
3598
  "name": "options",
3598
3599
  "value": { "type": "{ [key: string]: string }", "default": "{}" }
@@ -3671,6 +3672,7 @@
3671
3672
  "name": "inputType",
3672
3673
  "type": "'select' | 'text' | 'data-select' | 'number' | 'textarea'"
3673
3674
  },
3675
+ { "name": "textareaRows", "type": "1" },
3674
3676
  { "name": "options", "type": "{ [key: string]: string }" },
3675
3677
  { "name": "selectProvider", "type": "string" },
3676
3678
  { "name": "iconPosition", "type": "'start' | 'end' | 'none'" },
@@ -8466,6 +8468,10 @@
8466
8468
  "default": "'text'"
8467
8469
  }
8468
8470
  },
8471
+ {
8472
+ "name": "textarea-rows",
8473
+ "value": { "type": "number | undefined" }
8474
+ },
8469
8475
  {
8470
8476
  "name": "grouped",
8471
8477
  "description": "When true, hides the individual language navbar and defers language control to a parent zn-translation-group.",
@@ -8496,6 +8502,7 @@
8496
8502
  "name": "inputType",
8497
8503
  "type": "'select' | 'text' | 'number' | 'textarea'"
8498
8504
  },
8505
+ { "name": "textareaRows", "type": "number | undefined" },
8499
8506
  {
8500
8507
  "name": "grouped",
8501
8508
  "description": "When true, hides the individual language navbar and defers language control to a parent zn-translation-group.",
package/dist/zn.d.ts CHANGED
@@ -3769,6 +3769,7 @@ declare module "components/inline-edit/inline-edit.component" {
3769
3769
  max: string | number;
3770
3770
  step: number | 'any';
3771
3771
  inputType: 'select' | 'text' | 'data-select' | 'number' | 'textarea';
3772
+ textareaRows: 1;
3772
3773
  options: {
3773
3774
  [key: string]: string;
3774
3775
  };
@@ -7275,11 +7276,16 @@ declare module "components/translations/translations.component" {
7275
7276
  required: boolean;
7276
7277
  flush: boolean;
7277
7278
  inputType: 'select' | 'text' | 'number' | 'textarea';
7279
+ textareaRows: number | undefined;
7278
7280
  /** When true, hides the individual language navbar and defers language control to a parent zn-translation-group. */
7279
7281
  grouped: boolean;
7280
7282
  languages: Record<string, string>;
7281
7283
  values: Record<string, string>;
7282
7284
  private _activeLanguage;
7285
+ private _overflowIndex;
7286
+ private _resizeObserver?;
7287
+ private _lastObservedWidth;
7288
+ private _measureRafId;
7283
7289
  get validity(): ValidityState;
7284
7290
  get validationMessage(): string;
7285
7291
  checkValidity(): boolean;
@@ -7294,9 +7300,15 @@ declare module "components/translations/translations.component" {
7294
7300
  addLanguageKey(languageCode: string): void;
7295
7301
  /** Returns all language codes that have values. */
7296
7302
  getValueLanguages(): string[];
7303
+ connectedCallback(): void;
7304
+ disconnectedCallback(): void;
7297
7305
  protected firstUpdated(): void;
7306
+ protected updated(changedProperties: PropertyValues): void;
7307
+ private _scheduleLangOverflow;
7308
+ private _computeLangOverflow;
7298
7309
  willUpdate(changedProperties: PropertyValues): void;
7299
7310
  private handleLanguageAdd;
7311
+ private handleOverflowSelect;
7300
7312
  private switchLanguage;
7301
7313
  private handleValueUpdate;
7302
7314
  private updateValue;
@@ -7488,8 +7500,16 @@ declare module "components/translation-group/translation-group.component" {
7488
7500
  private _activeLanguage;
7489
7501
  /** Tracks all language codes that have been activated across children. */
7490
7502
  private _activatedLanguages;
7503
+ private _overflowIndex;
7504
+ private _resizeObserver?;
7505
+ private _lastObservedWidth;
7506
+ private _measureRafId;
7507
+ connectedCallback(): void;
7508
+ disconnectedCallback(): void;
7491
7509
  protected firstUpdated(_changedProperties: PropertyValues): void;
7492
7510
  protected updated(changedProperties: PropertyValues): void;
7511
+ private _scheduleLangOverflow;
7512
+ private _computeLangOverflow;
7493
7513
  private getAllTranslations;
7494
7514
  /** Sync grouped state, languages, and active language to all children. */
7495
7515
  private syncChildren;
@@ -7497,6 +7517,7 @@ declare module "components/translation-group/translation-group.component" {
7497
7517
  private handleSlotChange;
7498
7518
  private switchLanguage;
7499
7519
  private handleLanguageAdd;
7520
+ private handleOverflowSelect;
7500
7521
  render(): import("lit").TemplateResult<1>;
7501
7522
  }
7502
7523
  }