@kubex/zinc 1.1.51 → 1.1.53

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.
@@ -47,79 +47,6 @@
47
47
  }
48
48
  ]
49
49
  },
50
- {
51
- "kind": "javascript-module",
52
- "path": "components/action-bar/action-bar.js",
53
- "declarations": [
54
- {
55
- "kind": "class",
56
- "description": "",
57
- "name": "ZnActionBar",
58
- "cssProperties": [
59
- {
60
- "description": "An example CSS custom property.",
61
- "name": "--example"
62
- }
63
- ],
64
- "cssParts": [
65
- {
66
- "description": "The component's base wrapper.",
67
- "name": "base"
68
- }
69
- ],
70
- "slots": [
71
- {
72
- "description": "The default slot.",
73
- "name": ""
74
- },
75
- {
76
- "description": "An example slot.",
77
- "name": "example"
78
- }
79
- ],
80
- "members": [
81
- {
82
- "kind": "field",
83
- "name": "localize",
84
- "privacy": "private",
85
- "readonly": true,
86
- "default": "new LocalizeController(this)"
87
- }
88
- ],
89
- "events": [
90
- {
91
- "description": "Emitted as an example.",
92
- "name": "zn-event-name"
93
- }
94
- ],
95
- "superclass": {
96
- "name": "ZincElement",
97
- "module": "/src/internal/zinc-element"
98
- },
99
- "summary": "Short summary of the component's intended use.",
100
- "tagNameWithoutPrefix": "action-bar",
101
- "tagName": "zn-action-bar",
102
- "customElement": true,
103
- "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 */",
104
- "documentation": "https://zinc.style/components/action-bar",
105
- "status": "experimental",
106
- "since": "1.0",
107
- "dependencies": [
108
- "zn-example"
109
- ]
110
- }
111
- ],
112
- "exports": [
113
- {
114
- "kind": "js",
115
- "name": "default",
116
- "declaration": {
117
- "name": "ZnActionBar",
118
- "module": "components/action-bar/action-bar.js"
119
- }
120
- }
121
- ]
122
- },
123
50
  {
124
51
  "kind": "javascript-module",
125
52
  "path": "components/alert/alert.js",
@@ -296,6 +223,79 @@
296
223
  }
297
224
  ]
298
225
  },
226
+ {
227
+ "kind": "javascript-module",
228
+ "path": "components/action-bar/action-bar.js",
229
+ "declarations": [
230
+ {
231
+ "kind": "class",
232
+ "description": "",
233
+ "name": "ZnActionBar",
234
+ "cssProperties": [
235
+ {
236
+ "description": "An example CSS custom property.",
237
+ "name": "--example"
238
+ }
239
+ ],
240
+ "cssParts": [
241
+ {
242
+ "description": "The component's base wrapper.",
243
+ "name": "base"
244
+ }
245
+ ],
246
+ "slots": [
247
+ {
248
+ "description": "The default slot.",
249
+ "name": ""
250
+ },
251
+ {
252
+ "description": "An example slot.",
253
+ "name": "example"
254
+ }
255
+ ],
256
+ "members": [
257
+ {
258
+ "kind": "field",
259
+ "name": "localize",
260
+ "privacy": "private",
261
+ "readonly": true,
262
+ "default": "new LocalizeController(this)"
263
+ }
264
+ ],
265
+ "events": [
266
+ {
267
+ "description": "Emitted as an example.",
268
+ "name": "zn-event-name"
269
+ }
270
+ ],
271
+ "superclass": {
272
+ "name": "ZincElement",
273
+ "module": "/src/internal/zinc-element"
274
+ },
275
+ "summary": "Short summary of the component's intended use.",
276
+ "tagNameWithoutPrefix": "action-bar",
277
+ "tagName": "zn-action-bar",
278
+ "customElement": true,
279
+ "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 */",
280
+ "documentation": "https://zinc.style/components/action-bar",
281
+ "status": "experimental",
282
+ "since": "1.0",
283
+ "dependencies": [
284
+ "zn-example"
285
+ ]
286
+ }
287
+ ],
288
+ "exports": [
289
+ {
290
+ "kind": "js",
291
+ "name": "default",
292
+ "declaration": {
293
+ "name": "ZnActionBar",
294
+ "module": "components/action-bar/action-bar.js"
295
+ }
296
+ }
297
+ ]
298
+ },
299
299
  {
300
300
  "kind": "javascript-module",
301
301
  "path": "components/animated-button/animated-button.js",
@@ -17042,6 +17042,26 @@
17042
17042
  },
17043
17043
  "attribute": "edit-text"
17044
17044
  },
17045
+ {
17046
+ "kind": "field",
17047
+ "name": "displayValue",
17048
+ "type": {
17049
+ "text": "string"
17050
+ },
17051
+ "default": "''",
17052
+ "description": "A masked value (e.g. `j***@example.com`) shown in place of the input when not editing. Hovering reveals the\nreal value via an embedded `zn-reveal`. The real `value` is still what gets edited and submitted.",
17053
+ "attribute": "display-value"
17054
+ },
17055
+ {
17056
+ "kind": "field",
17057
+ "name": "clearOnEdit",
17058
+ "type": {
17059
+ "text": "boolean"
17060
+ },
17061
+ "default": "false",
17062
+ "description": "When set, the edit input starts empty instead of pre-filled with the current value. Cancelling restores the\noriginal value. Useful with `display-value` when the real value shouldn't be pre-filled into the input.",
17063
+ "attribute": "clear-on-edit"
17064
+ },
17045
17065
  {
17046
17066
  "kind": "field",
17047
17067
  "name": "conditional",
@@ -17274,6 +17294,14 @@
17274
17294
  },
17275
17295
  "privacy": "private"
17276
17296
  },
17297
+ {
17298
+ "kind": "field",
17299
+ "name": "_editStartValue",
17300
+ "type": {
17301
+ "text": "string | string[]"
17302
+ },
17303
+ "privacy": "private"
17304
+ },
17277
17305
  {
17278
17306
  "kind": "field",
17279
17307
  "name": "input",
@@ -17492,6 +17520,24 @@
17492
17520
  },
17493
17521
  "fieldName": "editText"
17494
17522
  },
17523
+ {
17524
+ "name": "display-value",
17525
+ "type": {
17526
+ "text": "string"
17527
+ },
17528
+ "default": "''",
17529
+ "description": "A masked value (e.g. `j***@example.com`) shown in place of the input when not editing. Hovering reveals the\nreal value via an embedded `zn-reveal`. The real `value` is still what gets edited and submitted.",
17530
+ "fieldName": "displayValue"
17531
+ },
17532
+ {
17533
+ "name": "clear-on-edit",
17534
+ "type": {
17535
+ "text": "boolean"
17536
+ },
17537
+ "default": "false",
17538
+ "description": "When set, the edit input starts empty instead of pre-filled with the current value. Cancelling restores the\noriginal value. Useful with `display-value` when the real value shouldn't be pre-filled into the input.",
17539
+ "fieldName": "clearOnEdit"
17540
+ },
17495
17541
  {
17496
17542
  "name": "conditional",
17497
17543
  "type": {
@@ -31141,6 +31187,16 @@
31141
31187
  "default": "150",
31142
31188
  "attribute": "hide-delay"
31143
31189
  },
31190
+ {
31191
+ "kind": "field",
31192
+ "name": "noToggle",
31193
+ "type": {
31194
+ "text": "boolean"
31195
+ },
31196
+ "default": "false",
31197
+ "description": "Disables click-to-toggle so the value is only revealed on hover. Clicks still bubble to the parent.",
31198
+ "attribute": "no-toggle"
31199
+ },
31144
31200
  {
31145
31201
  "kind": "field",
31146
31202
  "name": "_isRevealed",
@@ -31226,6 +31282,15 @@
31226
31282
  },
31227
31283
  "default": "150",
31228
31284
  "fieldName": "hideDelay"
31285
+ },
31286
+ {
31287
+ "name": "no-toggle",
31288
+ "type": {
31289
+ "text": "boolean"
31290
+ },
31291
+ "default": "false",
31292
+ "description": "Disables click-to-toggle so the value is only revealed on hover. Clicks still bubble to the parent.",
31293
+ "fieldName": "noToggle"
31229
31294
  }
31230
31295
  ],
31231
31296
  "superclass": {
@@ -40623,7 +40688,7 @@
40623
40688
  "package": {
40624
40689
  "name": "@kubex/zinc",
40625
40690
  "description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
40626
- "version": "1.1.51",
40691
+ "version": "1.1.53",
40627
40692
  "author": "",
40628
40693
  "license": "MIT"
40629
40694
  }
@@ -13,17 +13,6 @@
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
- },
27
16
  {
28
17
  "name": "zn-alert",
29
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.",
@@ -63,6 +52,17 @@
63
52
  }
64
53
  ]
65
54
  },
55
+ {
56
+ "name": "zn-action-bar",
57
+ "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.",
58
+ "attributes": [],
59
+ "references": [
60
+ {
61
+ "name": "Documentation",
62
+ "url": "https://zinc.style/components/action-bar"
63
+ }
64
+ ]
65
+ },
66
66
  {
67
67
  "name": "zn-animated-button",
68
68
  "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",
@@ -1856,6 +1856,16 @@
1856
1856
  { "name": "name", "values": [] },
1857
1857
  { "name": "placeholder", "values": [] },
1858
1858
  { "name": "edit-text", "values": [] },
1859
+ {
1860
+ "name": "display-value",
1861
+ "description": "A masked value (e.g. `j***@example.com`) shown in place of the input when not editing. Hovering reveals the\nreal value via an embedded `zn-reveal`. The real `value` is still what gets edited and submitted.",
1862
+ "values": []
1863
+ },
1864
+ {
1865
+ "name": "clear-on-edit",
1866
+ "description": "When set, the edit input starts empty instead of pre-filled with the current value. Cancelling restores the\noriginal value. Useful with `display-value` when the real value shouldn't be pre-filled into the input.",
1867
+ "values": []
1868
+ },
1859
1869
  { "name": "conditional", "values": [] },
1860
1870
  { "name": "disabled", "values": [] },
1861
1871
  { "name": "inline", "values": [] },
@@ -3192,7 +3202,12 @@
3192
3202
  { "name": "duration", "values": [] },
3193
3203
  { "name": "initial", "values": [] },
3194
3204
  { "name": "revealed", "values": [] },
3195
- { "name": "hide-delay", "values": [] }
3205
+ { "name": "hide-delay", "values": [] },
3206
+ {
3207
+ "name": "no-toggle",
3208
+ "description": "Disables click-to-toggle so the value is only revealed on hover. Clicks still bubble to the parent.",
3209
+ "values": []
3210
+ }
3196
3211
  ],
3197
3212
  "references": [
3198
3213
  {
@@ -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.51",
4
+ "version": "1.1.53",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -15,28 +15,6 @@
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
- },
40
18
  {
41
19
  "name": "zn-alert",
42
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.",
@@ -100,6 +78,28 @@
100
78
  ]
101
79
  }
102
80
  },
81
+ {
82
+ "name": "zn-action-bar",
83
+ "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.",
84
+ "doc-url": "",
85
+ "attributes": [],
86
+ "slots": [
87
+ { "name": "", "description": "The default slot." },
88
+ { "name": "example", "description": "An example slot." }
89
+ ],
90
+ "events": [
91
+ { "name": "zn-event-name", "description": "Emitted as an example." }
92
+ ],
93
+ "js": {
94
+ "properties": [],
95
+ "events": [
96
+ {
97
+ "name": "zn-event-name",
98
+ "description": "Emitted as an example."
99
+ }
100
+ ]
101
+ }
102
+ },
103
103
  {
104
104
  "name": "zn-animated-button",
105
105
  "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",
@@ -4426,6 +4426,16 @@
4426
4426
  { "name": "name", "value": { "type": "string" } },
4427
4427
  { "name": "placeholder", "value": { "type": "string" } },
4428
4428
  { "name": "edit-text", "value": { "type": "string" } },
4429
+ {
4430
+ "name": "display-value",
4431
+ "description": "A masked value (e.g. `j***@example.com`) shown in place of the input when not editing. Hovering reveals the\nreal value via an embedded `zn-reveal`. The real `value` is still what gets edited and submitted.",
4432
+ "value": { "type": "string", "default": "''" }
4433
+ },
4434
+ {
4435
+ "name": "clear-on-edit",
4436
+ "description": "When set, the edit input starts empty instead of pre-filled with the current value. Cancelling restores the\noriginal value. Useful with `display-value` when the real value shouldn't be pre-filled into the input.",
4437
+ "value": { "type": "boolean", "default": "false" }
4438
+ },
4429
4439
  {
4430
4440
  "name": "conditional",
4431
4441
  "value": { "type": "string", "default": "''" }
@@ -4523,6 +4533,16 @@
4523
4533
  { "name": "name", "type": "string" },
4524
4534
  { "name": "placeholder", "type": "string" },
4525
4535
  { "name": "editText", "type": "string" },
4536
+ {
4537
+ "name": "displayValue",
4538
+ "description": "A masked value (e.g. `j***@example.com`) shown in place of the input when not editing. Hovering reveals the\nreal value via an embedded `zn-reveal`. The real `value` is still what gets edited and submitted.",
4539
+ "type": "string"
4540
+ },
4541
+ {
4542
+ "name": "clearOnEdit",
4543
+ "description": "When set, the edit input starts empty instead of pre-filled with the current value. Cancelling restores the\noriginal value. Useful with `display-value` when the real value shouldn't be pre-filled into the input.",
4544
+ "type": "boolean"
4545
+ },
4526
4546
  { "name": "conditional", "type": "string" },
4527
4547
  { "name": "disabled", "type": "boolean" },
4528
4548
  { "name": "inline", "type": "boolean" },
@@ -7467,6 +7487,11 @@
7467
7487
  {
7468
7488
  "name": "hide-delay",
7469
7489
  "value": { "type": "number", "default": "150" }
7490
+ },
7491
+ {
7492
+ "name": "no-toggle",
7493
+ "description": "Disables click-to-toggle so the value is only revealed on hover. Clicks still bubble to the parent.",
7494
+ "value": { "type": "boolean", "default": "false" }
7470
7495
  }
7471
7496
  ],
7472
7497
  "slots": [
@@ -7481,7 +7506,12 @@
7481
7506
  { "name": "duration", "type": "number" },
7482
7507
  { "name": "initial", "type": "string" },
7483
7508
  { "name": "revealed", "type": "string" },
7484
- { "name": "hideDelay", "type": "number" }
7509
+ { "name": "hideDelay", "type": "number" },
7510
+ {
7511
+ "name": "noToggle",
7512
+ "description": "Disables click-to-toggle so the value is only revealed on hover. Clicks still bubble to the parent.",
7513
+ "type": "boolean"
7514
+ }
7485
7515
  ],
7486
7516
  "events": [
7487
7517
  {
package/dist/zn.d.ts CHANGED
@@ -4710,6 +4710,16 @@ declare module "components/inline-edit/inline-edit.component" {
4710
4710
  name: string;
4711
4711
  placeholder: string;
4712
4712
  editText: string;
4713
+ /**
4714
+ * A masked value (e.g. `j***@example.com`) shown in place of the input when not editing. Hovering reveals the
4715
+ * real value via an embedded `zn-reveal`. The real `value` is still what gets edited and submitted.
4716
+ */
4717
+ displayValue: string;
4718
+ /**
4719
+ * When set, the edit input starts empty instead of pre-filled with the current value. Cancelling restores the
4720
+ * original value. Useful with `display-value` when the real value shouldn't be pre-filled into the input.
4721
+ */
4722
+ clearOnEdit: boolean;
4713
4723
  conditional: string;
4714
4724
  disabled: boolean;
4715
4725
  inline: boolean;
@@ -4760,6 +4770,7 @@ declare module "components/inline-edit/inline-edit.component" {
4760
4770
  private hasFocus;
4761
4771
  private isEditing;
4762
4772
  private _valueBeforeEdit;
4773
+ private _editStartValue;
4763
4774
  input: ZnInput | ZnSelect;
4764
4775
  defaultValue: string | string[];
4765
4776
  get validity(): ValidityState;
@@ -8024,6 +8035,8 @@ declare module "components/reveal/reveal.component" {
8024
8035
  initial: string;
8025
8036
  revealed: string;
8026
8037
  hideDelay: number;
8038
+ /** Disables click-to-toggle so the value is only revealed on hover. Clicks still bubble to the parent. */
8039
+ noToggle: boolean;
8027
8040
  private _isRevealed;
8028
8041
  private _isToggled;
8029
8042
  private _hideTimer?;