@kubex/zinc 1.1.154 → 1.1.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +151 -78
- package/dist/vscode.html-custom-data.json +12 -12
- package/dist/web-types.json +25 -25
- package/dist/zn.d.ts +38 -6
- package/dist/zn.min.js +97 -83
- package/docs/pages/components/select.md +16 -0
- package/package.json +1 -1
- package/src/components/inline-edit/inline-edit.component.ts +2 -2
- package/src/components/inline-edit/inline-edit.scss +11 -1
- package/src/components/inline-edit/inline-edit.test.ts +24 -0
- package/src/components/page-builder/page-builder.component.ts +71 -13
- package/src/components/page-builder/page-builder.test.ts +106 -0
- package/src/components/reveal/reveal.component.ts +14 -0
- package/src/components/reveal/reveal.scss +10 -1
- package/src/components/reveal/reveal.test.ts +36 -0
- package/src/components/select/select.component.ts +21 -2
- package/src/components/select/select.scss +3 -2
- package/src/components/select/select.test.ts +59 -0
|
@@ -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",
|
|
@@ -28460,7 +28460,7 @@
|
|
|
28460
28460
|
"text": "object"
|
|
28461
28461
|
},
|
|
28462
28462
|
"static": true,
|
|
28463
|
-
"default": "{ 'zn-collapsible': ZnCollapsible, 'zn-icon': ZnIcon, 'zn-input': ZnInput, 'zn-page-palette-item': ZnPagePaletteItem, 'zn-page-section-card': ZnPageSectionCard, }"
|
|
28463
|
+
"default": "{ 'zn-collapsible': ZnCollapsible, 'zn-icon': ZnIcon, 'zn-input': ZnInput, 'zn-option': ZnOption, 'zn-page-palette-item': ZnPagePaletteItem, 'zn-page-section-card': ZnPageSectionCard, 'zn-select': ZnSelect, }"
|
|
28464
28464
|
},
|
|
28465
28465
|
{
|
|
28466
28466
|
"kind": "field",
|
|
@@ -28527,7 +28527,7 @@
|
|
|
28527
28527
|
"text": "string"
|
|
28528
28528
|
},
|
|
28529
28529
|
"default": "''",
|
|
28530
|
-
"description": "Section type
|
|
28530
|
+
"description": "Section type keys that may lead the page, comma separated. The builder hoists an\nexisting section of any of them to the top, or inserts an empty one of the first,\nand pins it there: it can't be removed, reordered or dragged into a slot, and\nnothing can be dropped above it. Its content stays fully editable in the\ninspector, which offers a swap between the allowed types when there is more\nthan one.",
|
|
28531
28531
|
"attribute": "required-first",
|
|
28532
28532
|
"reflects": true
|
|
28533
28533
|
},
|
|
@@ -29043,6 +29043,16 @@
|
|
|
29043
29043
|
"description": "Id of the section pinned to the top of the page, or null when `required-first`\nis unset. Derived from the state rather than stored on it, so nothing about the\nlock leaks into the persisted config.",
|
|
29044
29044
|
"readonly": true
|
|
29045
29045
|
},
|
|
29046
|
+
{
|
|
29047
|
+
"kind": "field",
|
|
29048
|
+
"name": "_requiredFirstTypes",
|
|
29049
|
+
"type": {
|
|
29050
|
+
"text": "string[]"
|
|
29051
|
+
},
|
|
29052
|
+
"privacy": "private",
|
|
29053
|
+
"description": "The types `required-first` allows to lead the page, in the order given.",
|
|
29054
|
+
"readonly": true
|
|
29055
|
+
},
|
|
29046
29056
|
{
|
|
29047
29057
|
"kind": "method",
|
|
29048
29058
|
"name": "_isPinned",
|
|
@@ -29061,6 +29071,16 @@
|
|
|
29061
29071
|
}
|
|
29062
29072
|
]
|
|
29063
29073
|
},
|
|
29074
|
+
{
|
|
29075
|
+
"kind": "field",
|
|
29076
|
+
"name": "_canUnpin",
|
|
29077
|
+
"type": {
|
|
29078
|
+
"text": "boolean"
|
|
29079
|
+
},
|
|
29080
|
+
"privacy": "private",
|
|
29081
|
+
"description": "Whether the pinned section may be removed: only while another section can take\nthe lead in its place, so the page is never left without one. It stays undraggable\neither way — the replacement arrives by removing this one, not by reordering.",
|
|
29082
|
+
"readonly": true
|
|
29083
|
+
},
|
|
29064
29084
|
{
|
|
29065
29085
|
"kind": "field",
|
|
29066
29086
|
"name": "_firstFreeIndex",
|
|
@@ -29088,7 +29108,7 @@
|
|
|
29088
29108
|
}
|
|
29089
29109
|
}
|
|
29090
29110
|
],
|
|
29091
|
-
"description": "Sections reordered so `required-first` leads the page: an existing section of
|
|
29111
|
+
"description": "Sections reordered so `required-first` leads the page: an existing section of an\nallowed type is hoisted to the front, otherwise an empty one of the first type is\nprepended. Returns the\nargument unchanged when there is nothing to do, so callers can compare by identity."
|
|
29092
29112
|
},
|
|
29093
29113
|
{
|
|
29094
29114
|
"kind": "method",
|
|
@@ -29843,6 +29863,20 @@
|
|
|
29843
29863
|
}
|
|
29844
29864
|
]
|
|
29845
29865
|
},
|
|
29866
|
+
{
|
|
29867
|
+
"kind": "method",
|
|
29868
|
+
"name": "_swapPinnedType",
|
|
29869
|
+
"privacy": "private",
|
|
29870
|
+
"parameters": [
|
|
29871
|
+
{
|
|
29872
|
+
"name": "type",
|
|
29873
|
+
"type": {
|
|
29874
|
+
"text": "string"
|
|
29875
|
+
}
|
|
29876
|
+
}
|
|
29877
|
+
],
|
|
29878
|
+
"description": "Retypes the pinned section, keeping its id, name and data so the copy shared by\nthe allowed types survives; keys the new type has no field for stay unread. The\ninspector form is stamped from the type's template, so it is rebuilt by hand —\nselection has not changed."
|
|
29879
|
+
},
|
|
29846
29880
|
{
|
|
29847
29881
|
"kind": "method",
|
|
29848
29882
|
"name": "_renameSection",
|
|
@@ -29901,6 +29935,20 @@
|
|
|
29901
29935
|
"name": "_onResizeKey",
|
|
29902
29936
|
"privacy": "private"
|
|
29903
29937
|
},
|
|
29938
|
+
{
|
|
29939
|
+
"kind": "method",
|
|
29940
|
+
"name": "_renderSwapControl",
|
|
29941
|
+
"privacy": "private",
|
|
29942
|
+
"parameters": [
|
|
29943
|
+
{
|
|
29944
|
+
"name": "section",
|
|
29945
|
+
"type": {
|
|
29946
|
+
"text": "PageSection"
|
|
29947
|
+
}
|
|
29948
|
+
}
|
|
29949
|
+
],
|
|
29950
|
+
"description": "Offered on the pinned section alone, and only where there is another type to take."
|
|
29951
|
+
},
|
|
29904
29952
|
{
|
|
29905
29953
|
"kind": "method",
|
|
29906
29954
|
"name": "_renderInspector",
|
|
@@ -29967,7 +30015,7 @@
|
|
|
29967
30015
|
"text": "string"
|
|
29968
30016
|
},
|
|
29969
30017
|
"default": "''",
|
|
29970
|
-
"description": "Section type
|
|
30018
|
+
"description": "Section type keys that may lead the page, comma separated. The builder hoists an\nexisting section of any of them to the top, or inserts an empty one of the first,\nand pins it there: it can't be removed, reordered or dragged into a slot, and\nnothing can be dropped above it. Its content stays fully editable in the\ninspector, which offers a swap between the allowed types when there is more\nthan one.",
|
|
29971
30019
|
"fieldName": "requiredFirst"
|
|
29972
30020
|
},
|
|
29973
30021
|
{
|
|
@@ -38225,6 +38273,16 @@
|
|
|
38225
38273
|
"description": "Disables click-to-toggle so the value is only revealed on hover. Clicks still bubble to the parent.",
|
|
38226
38274
|
"attribute": "no-toggle"
|
|
38227
38275
|
},
|
|
38276
|
+
{
|
|
38277
|
+
"kind": "field",
|
|
38278
|
+
"name": "_isMasked",
|
|
38279
|
+
"type": {
|
|
38280
|
+
"text": "boolean"
|
|
38281
|
+
},
|
|
38282
|
+
"privacy": "private",
|
|
38283
|
+
"description": "Nothing is hidden when the revealed value is what's already on show, so there is nothing to reveal.",
|
|
38284
|
+
"readonly": true
|
|
38285
|
+
},
|
|
38228
38286
|
{
|
|
38229
38287
|
"kind": "field",
|
|
38230
38288
|
"name": "_isRevealed",
|
|
@@ -40872,6 +40930,21 @@
|
|
|
40872
40930
|
"privacy": "private",
|
|
40873
40931
|
"description": "Filters visible options based on the current search query"
|
|
40874
40932
|
},
|
|
40933
|
+
{
|
|
40934
|
+
"kind": "method",
|
|
40935
|
+
"name": "updateEmptyState",
|
|
40936
|
+
"privacy": "private",
|
|
40937
|
+
"description": "Nothing for the user to pick: either the option list is empty or every option is filtered out.\nThe search paths track this themselves, so this covers opening a dropdown with no query."
|
|
40938
|
+
},
|
|
40939
|
+
{
|
|
40940
|
+
"kind": "field",
|
|
40941
|
+
"name": "emptyStateText",
|
|
40942
|
+
"type": {
|
|
40943
|
+
"text": "string"
|
|
40944
|
+
},
|
|
40945
|
+
"privacy": "private",
|
|
40946
|
+
"readonly": true
|
|
40947
|
+
},
|
|
40875
40948
|
{
|
|
40876
40949
|
"kind": "method",
|
|
40877
40950
|
"name": "clearSearch",
|
|
@@ -53512,7 +53585,7 @@
|
|
|
53512
53585
|
"package": {
|
|
53513
53586
|
"name": "@kubex/zinc",
|
|
53514
53587
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
53515
|
-
"version": "1.1.
|
|
53588
|
+
"version": "1.1.156",
|
|
53516
53589
|
"author": "",
|
|
53517
53590
|
"license": "MIT"
|
|
53518
53591
|
}
|
|
@@ -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.",
|
|
@@ -53,17 +64,6 @@
|
|
|
53
64
|
}
|
|
54
65
|
]
|
|
55
66
|
},
|
|
56
|
-
{
|
|
57
|
-
"name": "zn-action-bar",
|
|
58
|
-
"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.",
|
|
59
|
-
"attributes": [],
|
|
60
|
-
"references": [
|
|
61
|
-
{
|
|
62
|
-
"name": "Documentation",
|
|
63
|
-
"url": "https://zinc.style/components/action-bar"
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
67
|
{
|
|
68
68
|
"name": "zn-animated-button",
|
|
69
69
|
"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",
|
|
@@ -2993,7 +2993,7 @@
|
|
|
2993
2993
|
{ "name": "subheading", "values": [] },
|
|
2994
2994
|
{
|
|
2995
2995
|
"name": "required-first",
|
|
2996
|
-
"description": "Section type
|
|
2996
|
+
"description": "Section type keys that may lead the page, comma separated. The builder hoists an\nexisting section of any of them to the top, or inserts an empty one of the first,\nand pins it there: it can't be removed, reordered or dragged into a slot, and\nnothing can be dropped above it. Its content stays fully editable in the\ninspector, which offers a swap between the allowed types when there is more\nthan one.",
|
|
2997
2997
|
"values": []
|
|
2998
2998
|
},
|
|
2999
2999
|
{
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@kubex/zinc",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.156",
|
|
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\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\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.",
|
|
@@ -83,28 +105,6 @@
|
|
|
83
105
|
]
|
|
84
106
|
}
|
|
85
107
|
},
|
|
86
|
-
{
|
|
87
|
-
"name": "zn-action-bar",
|
|
88
|
-
"description": "Short summary of the component's intended use.\n\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.",
|
|
89
|
-
"doc-url": "",
|
|
90
|
-
"attributes": [],
|
|
91
|
-
"slots": [
|
|
92
|
-
{ "name": "", "description": "The default slot." },
|
|
93
|
-
{ "name": "example", "description": "An example slot." }
|
|
94
|
-
],
|
|
95
|
-
"events": [
|
|
96
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
97
|
-
],
|
|
98
|
-
"js": {
|
|
99
|
-
"properties": [],
|
|
100
|
-
"events": [
|
|
101
|
-
{
|
|
102
|
-
"name": "zn-event-name",
|
|
103
|
-
"description": "Emitted as an example."
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
108
|
{
|
|
109
109
|
"name": "zn-animated-button",
|
|
110
110
|
"description": "\n\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",
|
|
@@ -7039,7 +7039,7 @@
|
|
|
7039
7039
|
},
|
|
7040
7040
|
{
|
|
7041
7041
|
"name": "required-first",
|
|
7042
|
-
"description": "Section type
|
|
7042
|
+
"description": "Section type keys that may lead the page, comma separated. The builder hoists an\nexisting section of any of them to the top, or inserts an empty one of the first,\nand pins it there: it can't be removed, reordered or dragged into a slot, and\nnothing can be dropped above it. Its content stays fully editable in the\ninspector, which offers a swap between the allowed types when there is more\nthan one.",
|
|
7043
7043
|
"value": { "type": "string", "default": "''" }
|
|
7044
7044
|
},
|
|
7045
7045
|
{
|
|
@@ -7103,7 +7103,7 @@
|
|
|
7103
7103
|
{ "name": "subheading", "type": "string" },
|
|
7104
7104
|
{
|
|
7105
7105
|
"name": "requiredFirst",
|
|
7106
|
-
"description": "Section type
|
|
7106
|
+
"description": "Section type keys that may lead the page, comma separated. The builder hoists an\nexisting section of any of them to the top, or inserts an empty one of the first,\nand pins it there: it can't be removed, reordered or dragged into a slot, and\nnothing can be dropped above it. Its content stays fully editable in the\ninspector, which offers a swap between the allowed types when there is more\nthan one.",
|
|
7107
7107
|
"type": "string"
|
|
7108
7108
|
},
|
|
7109
7109
|
{
|
package/dist/zn.d.ts
CHANGED
|
@@ -2954,6 +2954,12 @@ declare module "components/select/select.component" {
|
|
|
2954
2954
|
private handleSearchInput;
|
|
2955
2955
|
/** Filters visible options based on the current search query */
|
|
2956
2956
|
private filterOptions;
|
|
2957
|
+
/**
|
|
2958
|
+
* Nothing for the user to pick: either the option list is empty or every option is filtered out.
|
|
2959
|
+
* The search paths track this themselves, so this covers opening a dropdown with no query.
|
|
2960
|
+
*/
|
|
2961
|
+
private updateEmptyState;
|
|
2962
|
+
private get emptyStateText();
|
|
2957
2963
|
/** Clears the search query and shows all options */
|
|
2958
2964
|
private clearSearch;
|
|
2959
2965
|
private updateOptGroupSeparators;
|
|
@@ -9156,6 +9162,8 @@ declare module "components/reveal/reveal.component" {
|
|
|
9156
9162
|
hideDelay: number;
|
|
9157
9163
|
/** Disables click-to-toggle so the value is only revealed on hover. Clicks still bubble to the parent. */
|
|
9158
9164
|
noToggle: boolean;
|
|
9165
|
+
/** Nothing is hidden when the revealed value is what's already on show, so there is nothing to reveal. */
|
|
9166
|
+
private get _isMasked();
|
|
9159
9167
|
private _isRevealed;
|
|
9160
9168
|
private _isToggled;
|
|
9161
9169
|
private _hideTimer?;
|
|
@@ -11696,8 +11704,10 @@ declare module "components/page-builder/page-builder.component" {
|
|
|
11696
11704
|
import ZnCollapsible from "components/collapsible/index";
|
|
11697
11705
|
import ZnIcon from "components/icon/index";
|
|
11698
11706
|
import ZnInput from "components/input/index";
|
|
11707
|
+
import ZnOption from "components/option/index";
|
|
11699
11708
|
import ZnPagePaletteItem from "components/page-builder/modules/page-palette-item/index";
|
|
11700
11709
|
import ZnPageSectionCard from "components/page-builder/modules/page-section-card/index";
|
|
11710
|
+
import ZnSelect from "components/select/index";
|
|
11701
11711
|
/**
|
|
11702
11712
|
* @summary A config-driven page composer: a palette of predefined section types, a linear
|
|
11703
11713
|
* canvas of section cards, and an inspector for editing each section's content.
|
|
@@ -11737,8 +11747,10 @@ declare module "components/page-builder/page-builder.component" {
|
|
|
11737
11747
|
'zn-collapsible': typeof ZnCollapsible;
|
|
11738
11748
|
'zn-icon': typeof ZnIcon;
|
|
11739
11749
|
'zn-input': typeof ZnInput;
|
|
11750
|
+
'zn-option': typeof ZnOption;
|
|
11740
11751
|
'zn-page-palette-item': typeof ZnPagePaletteItem;
|
|
11741
11752
|
'zn-page-section-card': typeof ZnPageSectionCard;
|
|
11753
|
+
'zn-select': typeof ZnSelect;
|
|
11742
11754
|
};
|
|
11743
11755
|
private readonly formControlController;
|
|
11744
11756
|
/** The name of the control, submitted as a name/value pair with form data. */
|
|
@@ -11750,10 +11762,12 @@ declare module "components/page-builder/page-builder.component" {
|
|
|
11750
11762
|
heading: string;
|
|
11751
11763
|
subheading: string;
|
|
11752
11764
|
/**
|
|
11753
|
-
* Section type
|
|
11754
|
-
*
|
|
11755
|
-
* removed, reordered or dragged into a slot, and
|
|
11756
|
-
* Its content stays fully editable in the
|
|
11765
|
+
* Section type keys that may lead the page, comma separated. The builder hoists an
|
|
11766
|
+
* existing section of any of them to the top, or inserts an empty one of the first,
|
|
11767
|
+
* and pins it there: it can't be removed, reordered or dragged into a slot, and
|
|
11768
|
+
* nothing can be dropped above it. Its content stays fully editable in the
|
|
11769
|
+
* inspector, which offers a swap between the allowed types when there is more
|
|
11770
|
+
* than one.
|
|
11757
11771
|
*/
|
|
11758
11772
|
requiredFirst: string;
|
|
11759
11773
|
/** Section types to make available, registered into the internal registry. */
|
|
@@ -11870,12 +11884,21 @@ declare module "components/page-builder/page-builder.component" {
|
|
|
11870
11884
|
* lock leaks into the persisted config.
|
|
11871
11885
|
*/
|
|
11872
11886
|
private get _pinnedId();
|
|
11887
|
+
/** The types `required-first` allows to lead the page, in the order given. */
|
|
11888
|
+
private get _requiredFirstTypes();
|
|
11873
11889
|
private _isPinned;
|
|
11890
|
+
/**
|
|
11891
|
+
* Whether the pinned section may be removed: only while another section can take
|
|
11892
|
+
* the lead in its place, so the page is never left without one. It stays undraggable
|
|
11893
|
+
* either way — the replacement arrives by removing this one, not by reordering.
|
|
11894
|
+
*/
|
|
11895
|
+
private get _canUnpin();
|
|
11874
11896
|
/** Lowest top-level index a section may be added or moved to. */
|
|
11875
11897
|
private get _firstFreeIndex();
|
|
11876
11898
|
/**
|
|
11877
|
-
* Sections reordered so `required-first` leads the page: an existing section of
|
|
11878
|
-
* type is hoisted to the front, otherwise an empty one
|
|
11899
|
+
* Sections reordered so `required-first` leads the page: an existing section of an
|
|
11900
|
+
* allowed type is hoisted to the front, otherwise an empty one of the first type is
|
|
11901
|
+
* prepended. Returns the
|
|
11879
11902
|
* argument unchanged when there is nothing to do, so callers can compare by identity.
|
|
11880
11903
|
*/
|
|
11881
11904
|
private _requireFirst;
|
|
@@ -11971,12 +11994,21 @@ declare module "components/page-builder/page-builder.component" {
|
|
|
11971
11994
|
/** Handles change/input events bubbling from stamped form controls. */
|
|
11972
11995
|
private _onInspectorInput;
|
|
11973
11996
|
private _updateSectionData;
|
|
11997
|
+
/**
|
|
11998
|
+
* Retypes the pinned section, keeping its id, name and data so the copy shared by
|
|
11999
|
+
* the allowed types survives; keys the new type has no field for stay unread. The
|
|
12000
|
+
* inspector form is stamped from the type's template, so it is rebuilt by hand —
|
|
12001
|
+
* selection has not changed.
|
|
12002
|
+
*/
|
|
12003
|
+
private _swapPinnedType;
|
|
11974
12004
|
private _renameSection;
|
|
11975
12005
|
/** Width the inspector may be dragged to, against the builder's own width. */
|
|
11976
12006
|
private _clampInspector;
|
|
11977
12007
|
private _inspectorRect;
|
|
11978
12008
|
private _onResizeStart;
|
|
11979
12009
|
private _onResizeKey;
|
|
12010
|
+
/** Offered on the pinned section alone, and only where there is another type to take. */
|
|
12011
|
+
private _renderSwapControl;
|
|
11980
12012
|
private _renderInspector;
|
|
11981
12013
|
render(): import("lit-html").TemplateResult<1>;
|
|
11982
12014
|
}
|