@kubex/zinc 1.1.76 → 1.1.78
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 +1049 -955
- package/dist/vscode.html-custom-data.json +53 -43
- package/dist/web-types.json +156 -131
- package/dist/zn.d.ts +21 -1
- package/dist/zn.min.js +129 -104
- package/docs/pages/components/preview-frame.md +14 -6
- package/docs/pages/components/rating.md +59 -0
- package/docs/pages/components/theme-editor.md +4 -0
- package/package.json +1 -1
- package/src/components/preview-frame/preview-frame.component.ts +12 -2
- package/src/components/preview-frame/preview-frame.test.ts +38 -0
- package/src/components/rating/rating.component.ts +112 -55
- package/src/components/rating/rating.scss +24 -0
- package/src/components/theme-editor/theme-editor.component.ts +7 -4
- package/src/components/theme-editor/theme-editor.scss +4 -2
- package/src/components/theme-editor/theme-editor.test.ts +16 -0
|
@@ -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",
|
|
@@ -3023,7 +3023,7 @@
|
|
|
3023
3023
|
},
|
|
3024
3024
|
{
|
|
3025
3025
|
"name": "interactive",
|
|
3026
|
-
"description": "Lets pointer input through to the embedded page. The preview is inert by\ndefault: clicks never reach the frame, so the previewed page can't be\nnavigated or submitted from inside the preview. Cross-origin content can't\nbe reached from here to cancel its own handlers, so this blocks pointer\ninput entirely — hover goes with it. Scrolling doesn't: an overflowing\npage is scrolled by the panel rather than by the frame (see _contentHeight).",
|
|
3026
|
+
"description": "Lets pointer input through to the embedded page. The preview is inert by\ndefault: clicks never reach the frame, so the previewed page can't be\nnavigated or submitted from inside the preview. Cross-origin content can't\nbe reached from here to cancel its own handlers, so this blocks pointer\ninput entirely — hover goes with it. Scrolling doesn't: an overflowing\npage is scrolled by the panel rather than by the frame (see _contentHeight).\n\nSet, the frame becomes a real viewport instead: it stays the panel's own\nheight and the embed scrolls itself, so there is one scrollbar rather than\na panel scrolling an oversized frame, and the embed's viewport-relative\nlayout (`100vh`, `position: fixed`, sticky headers) sizes to what's on\nscreen. _contentHeight is ignored while this is set.",
|
|
3027
3027
|
"values": []
|
|
3028
3028
|
}
|
|
3029
3029
|
],
|
|
@@ -3302,15 +3302,25 @@
|
|
|
3302
3302
|
},
|
|
3303
3303
|
{
|
|
3304
3304
|
"name": "zn-rating",
|
|
3305
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks the validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity()** - Sets a custom validation message. Pass an empty string to restore validity.\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.",
|
|
3305
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks the validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity()** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n- **help-text** - Text that describes how to use the rating. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n- **--preview-color** - The color of the preview value. _(default: undefined)_\n- **--preview-size** - The font size of the preview value. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the symbols and help text.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **preview** - The value shown next to the symbols when `preview` is enabled.",
|
|
3306
3306
|
"attributes": [
|
|
3307
3307
|
{ "name": "label", "values": [] },
|
|
3308
|
+
{
|
|
3309
|
+
"name": "help-text",
|
|
3310
|
+
"description": "The rating's help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
3311
|
+
"values": []
|
|
3312
|
+
},
|
|
3308
3313
|
{ "name": "name", "values": [] },
|
|
3309
3314
|
{ "name": "value", "values": [] },
|
|
3310
3315
|
{ "name": "max", "values": [] },
|
|
3311
3316
|
{ "name": "precision", "values": [] },
|
|
3312
3317
|
{ "name": "readonly", "values": [] },
|
|
3313
3318
|
{ "name": "disabled", "values": [] },
|
|
3319
|
+
{
|
|
3320
|
+
"name": "preview",
|
|
3321
|
+
"description": "Displays the value alongside the symbols, updating live as the pointer moves across them.",
|
|
3322
|
+
"values": []
|
|
3323
|
+
},
|
|
3314
3324
|
{
|
|
3315
3325
|
"name": "size",
|
|
3316
3326
|
"values": [
|
|
@@ -3961,6 +3971,36 @@
|
|
|
3961
3971
|
}
|
|
3962
3972
|
]
|
|
3963
3973
|
},
|
|
3974
|
+
{
|
|
3975
|
+
"name": "zn-tabs",
|
|
3976
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n \n\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.",
|
|
3977
|
+
"attributes": [
|
|
3978
|
+
{ "name": "master-id", "values": [] },
|
|
3979
|
+
{ "name": "default-uri", "values": [] },
|
|
3980
|
+
{ "name": "active", "values": [] },
|
|
3981
|
+
{ "name": "split", "values": [] },
|
|
3982
|
+
{ "name": "split-min", "values": [] },
|
|
3983
|
+
{ "name": "split-min-secondary", "values": [] },
|
|
3984
|
+
{ "name": "split-max", "values": [] },
|
|
3985
|
+
{ "name": "primary-caption", "values": [] },
|
|
3986
|
+
{ "name": "secondary-caption", "values": [] },
|
|
3987
|
+
{ "name": "no-prefetch", "values": [] },
|
|
3988
|
+
{ "name": "no-cache", "values": [] },
|
|
3989
|
+
{ "name": "local-storage", "values": [] },
|
|
3990
|
+
{ "name": "store-key", "values": [] },
|
|
3991
|
+
{ "name": "store-ttl", "values": [] },
|
|
3992
|
+
{ "name": "padded", "values": [] },
|
|
3993
|
+
{ "name": "fetch-style", "values": [] },
|
|
3994
|
+
{ "name": "full-width", "values": [] },
|
|
3995
|
+
{ "name": "padded-right", "values": [] },
|
|
3996
|
+
{ "name": "monitor", "values": [] },
|
|
3997
|
+
{ "name": "caption", "values": [] },
|
|
3998
|
+
{ "name": "description", "values": [] }
|
|
3999
|
+
],
|
|
4000
|
+
"references": [
|
|
4001
|
+
{ "name": "Documentation", "url": "https://zinc.style/components/tabs" }
|
|
4002
|
+
]
|
|
4003
|
+
},
|
|
3964
4004
|
{
|
|
3965
4005
|
"name": "zn-textarea",
|
|
3966
4006
|
"description": "Textareas collect data from the user and allow multiple lines of text.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the control loses focus.\n- **zn-change** - Emitted when an alteration to the control's value is committed by the user.\n- **zn-focus** - Emitted when the control gains focus.\n- **zn-input** - Emitted when the control receives input.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the textarea.\n- **blur()** - Removes focus from the textarea.\n- **select()** - Selects all the text in the textarea.\n- **scrollPosition(position: _{ top?: number; left?: number }_): _{ top: number; left: number } | undefined_** - Gets or sets the textarea scroll position.\n- **setSelectionRange(selectionStart: _number_, selectionEnd: _number_, selectionDirection: _'forward' | 'backward' | 'none'_)** - Sets the start and end positions of the text selection (0-based).\n- **setRangeText(replacement: _string_, start: _number_, end: _number_, selectMode: _'select' | 'start' | 'end' | 'preserve'_)** - Replaces a range of text with a new string.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The textareas label. Alternatively, you can use the `label` attribute.\n- **label-tooltip** - Used to add text that is displayed in a tooltip next to the label. Alternatively, you can use the `label-tooltip` attribute.\n- **context-note** - Used to add contextual text that is displayed above the textarea, on the right. Alternatively, you can use the `context-note` attribute.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **textarea** - The internal `<textarea>` control.",
|
|
@@ -4123,36 +4163,6 @@
|
|
|
4123
4163
|
}
|
|
4124
4164
|
]
|
|
4125
4165
|
},
|
|
4126
|
-
{
|
|
4127
|
-
"name": "zn-tabs",
|
|
4128
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n \n\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.",
|
|
4129
|
-
"attributes": [
|
|
4130
|
-
{ "name": "master-id", "values": [] },
|
|
4131
|
-
{ "name": "default-uri", "values": [] },
|
|
4132
|
-
{ "name": "active", "values": [] },
|
|
4133
|
-
{ "name": "split", "values": [] },
|
|
4134
|
-
{ "name": "split-min", "values": [] },
|
|
4135
|
-
{ "name": "split-min-secondary", "values": [] },
|
|
4136
|
-
{ "name": "split-max", "values": [] },
|
|
4137
|
-
{ "name": "primary-caption", "values": [] },
|
|
4138
|
-
{ "name": "secondary-caption", "values": [] },
|
|
4139
|
-
{ "name": "no-prefetch", "values": [] },
|
|
4140
|
-
{ "name": "no-cache", "values": [] },
|
|
4141
|
-
{ "name": "local-storage", "values": [] },
|
|
4142
|
-
{ "name": "store-key", "values": [] },
|
|
4143
|
-
{ "name": "store-ttl", "values": [] },
|
|
4144
|
-
{ "name": "padded", "values": [] },
|
|
4145
|
-
{ "name": "fetch-style", "values": [] },
|
|
4146
|
-
{ "name": "full-width", "values": [] },
|
|
4147
|
-
{ "name": "padded-right", "values": [] },
|
|
4148
|
-
{ "name": "monitor", "values": [] },
|
|
4149
|
-
{ "name": "caption", "values": [] },
|
|
4150
|
-
{ "name": "description", "values": [] }
|
|
4151
|
-
],
|
|
4152
|
-
"references": [
|
|
4153
|
-
{ "name": "Documentation", "url": "https://zinc.style/components/tabs" }
|
|
4154
|
-
]
|
|
4155
|
-
},
|
|
4156
4166
|
{
|
|
4157
4167
|
"name": "zn-theme-editor",
|
|
4158
4168
|
"description": "A theme editor: slotted form controls drive a live preview frame,\nwith a toolbar for the preview's light/dark mode and device width.\n---\n\n\n### **Events:**\n - **zn-theme-change** - Emitted when the values, mode or device change.\n- **zn-theme-submit** - Emitted on submit (button click), carrying the current values. With `action` set, only fires after a successful save.\n- **zn-error** - Emitted when a save fails. Also seen for preview render failures: the frame's zn-error is composed and not stopped, so it bubbles out through the editor too.\n\n### **Slots:**\n - _default_ - Ungrouped theme controls, rendered above any sections. Controls assigned `slot=\"<name>\"` matching a `sections` entry (or, when nested, a `groups` entry) render inside that section/group instead. Harvesting and change detection walk every slot's full assigned subtree, not just direct children. With `sections` left unset, the structure is instead derived from the controls' own attributes: `group=\"<label>\"` becomes a tab and `category=\"<label>\"` a collapsible within it, and the control is slotted into that collapsible automatically. Either attribute works alone - a control with only `group` sits directly in its tab, and one with only `category` becomes its own top-level section. Setting `sections` explicitly disables the derivation entirely.\n- **toolbar** - Actions in the toolbar, right-aligned beside the device controls. Where a save button belongs.\n- **footer** - Actions pinned beneath the controls. The built-in submit button lives in the toolbar, not here.\n\n### **CSS Properties:**\n - **--zn-theme-editor-controls-width** - Width of the controls column. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **controls** - The left-hand controls column, full height.\n- **controls-header** - The controls column's header row: `controls-caption` on the left, the light/dark mode toggle on the right.\n- **toolbar** - The preview column's header row: `preview-caption` on the left, the device switcher (and sources/submit) on the right. Spans the preview column only.\n- **section** - A rendered section's or group's collapsible (`section-layout=\"collapsible\"`, or any nested group).\n- **footer** - The footer wrapper beneath the controls.\n- **preview** - The preview column.\n- **error** - The inline error strip.\n- **preview__base** - The frame's base wrapper (forwarded from zn-preview-frame).\n- **preview__stage** - The frame's device-width wrapper (forwarded from zn-preview-frame).\n- **preview__iframe** - The frame's iframe (forwarded from zn-preview-frame).\n- **preview__error** - The frame's own error overlay (forwarded from zn-preview-frame).",
|
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.78",
|
|
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.",
|
|
@@ -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### **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### **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",
|
|
@@ -6999,7 +6999,7 @@
|
|
|
6999
6999
|
},
|
|
7000
7000
|
{
|
|
7001
7001
|
"name": "interactive",
|
|
7002
|
-
"description": "Lets pointer input through to the embedded page. The preview is inert by\ndefault: clicks never reach the frame, so the previewed page can't be\nnavigated or submitted from inside the preview. Cross-origin content can't\nbe reached from here to cancel its own handlers, so this blocks pointer\ninput entirely — hover goes with it. Scrolling doesn't: an overflowing\npage is scrolled by the panel rather than by the frame (see _contentHeight).",
|
|
7002
|
+
"description": "Lets pointer input through to the embedded page. The preview is inert by\ndefault: clicks never reach the frame, so the previewed page can't be\nnavigated or submitted from inside the preview. Cross-origin content can't\nbe reached from here to cancel its own handlers, so this blocks pointer\ninput entirely — hover goes with it. Scrolling doesn't: an overflowing\npage is scrolled by the panel rather than by the frame (see _contentHeight).\n\nSet, the frame becomes a real viewport instead: it stays the panel's own\nheight and the embed scrolls itself, so there is one scrollbar rather than\na panel scrolling an oversized frame, and the embed's viewport-relative\nlayout (`100vh`, `position: fixed`, sticky headers) sizes to what's on\nscreen. _contentHeight is ignored while this is set.",
|
|
7003
7003
|
"value": { "type": "boolean", "default": "false" }
|
|
7004
7004
|
}
|
|
7005
7005
|
],
|
|
@@ -7068,7 +7068,7 @@
|
|
|
7068
7068
|
},
|
|
7069
7069
|
{
|
|
7070
7070
|
"name": "interactive",
|
|
7071
|
-
"description": "Lets pointer input through to the embedded page. The preview is inert by\ndefault: clicks never reach the frame, so the previewed page can't be\nnavigated or submitted from inside the preview. Cross-origin content can't\nbe reached from here to cancel its own handlers, so this blocks pointer\ninput entirely — hover goes with it. Scrolling doesn't: an overflowing\npage is scrolled by the panel rather than by the frame (see _contentHeight).",
|
|
7071
|
+
"description": "Lets pointer input through to the embedded page. The preview is inert by\ndefault: clicks never reach the frame, so the previewed page can't be\nnavigated or submitted from inside the preview. Cross-origin content can't\nbe reached from here to cancel its own handlers, so this blocks pointer\ninput entirely — hover goes with it. Scrolling doesn't: an overflowing\npage is scrolled by the panel rather than by the frame (see _contentHeight).\n\nSet, the frame becomes a real viewport instead: it stays the panel's own\nheight and the embed scrolls itself, so there is one scrollbar rather than\na panel scrolling an oversized frame, and the embed's viewport-relative\nlayout (`100vh`, `position: fixed`, sticky headers) sizes to what's on\nscreen. _contentHeight is ignored while this is set.",
|
|
7072
7072
|
"type": "boolean"
|
|
7073
7073
|
},
|
|
7074
7074
|
{ "name": "frame", "type": "HTMLIFrameElement" }
|
|
@@ -7709,10 +7709,15 @@
|
|
|
7709
7709
|
},
|
|
7710
7710
|
{
|
|
7711
7711
|
"name": "zn-rating",
|
|
7712
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks the validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity()** - Sets a custom validation message. Pass an empty string to restore validity.\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.",
|
|
7712
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks the validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity()** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n- **help-text** - Text that describes how to use the rating. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n- **--preview-color** - The color of the preview value. _(default: undefined)_\n- **--preview-size** - The font size of the preview value. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the symbols and help text.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **preview** - The value shown next to the symbols when `preview` is enabled.",
|
|
7713
7713
|
"doc-url": "",
|
|
7714
7714
|
"attributes": [
|
|
7715
7715
|
{ "name": "label", "value": { "type": "string" } },
|
|
7716
|
+
{
|
|
7717
|
+
"name": "help-text",
|
|
7718
|
+
"description": "The rating's help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
7719
|
+
"value": { "type": "string", "default": "''" }
|
|
7720
|
+
},
|
|
7716
7721
|
{ "name": "name", "value": { "type": "string" } },
|
|
7717
7722
|
{ "name": "value", "value": { "type": "number", "default": "0" } },
|
|
7718
7723
|
{ "name": "max", "value": { "type": "number", "default": "5" } },
|
|
@@ -7728,6 +7733,11 @@
|
|
|
7728
7733
|
"name": "disabled",
|
|
7729
7734
|
"value": { "type": "boolean", "default": "false" }
|
|
7730
7735
|
},
|
|
7736
|
+
{
|
|
7737
|
+
"name": "preview",
|
|
7738
|
+
"description": "Displays the value alongside the symbols, updating live as the pointer moves across them.",
|
|
7739
|
+
"value": { "type": "boolean", "default": "false" }
|
|
7740
|
+
},
|
|
7731
7741
|
{
|
|
7732
7742
|
"name": "size",
|
|
7733
7743
|
"value": {
|
|
@@ -7742,7 +7752,11 @@
|
|
|
7742
7752
|
],
|
|
7743
7753
|
"slots": [
|
|
7744
7754
|
{ "name": "", "description": "The default slot." },
|
|
7745
|
-
{ "name": "example", "description": "An example slot." }
|
|
7755
|
+
{ "name": "example", "description": "An example slot." },
|
|
7756
|
+
{
|
|
7757
|
+
"name": "help-text",
|
|
7758
|
+
"description": "Text that describes how to use the rating. Alternatively, you can use the `help-text` attribute."
|
|
7759
|
+
}
|
|
7746
7760
|
],
|
|
7747
7761
|
"events": [
|
|
7748
7762
|
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
@@ -7750,13 +7764,24 @@
|
|
|
7750
7764
|
"js": {
|
|
7751
7765
|
"properties": [
|
|
7752
7766
|
{ "name": "rating", "type": "HTMLElement" },
|
|
7767
|
+
{ "name": "symbols", "type": "HTMLElement" },
|
|
7753
7768
|
{ "name": "label", "type": "string" },
|
|
7769
|
+
{
|
|
7770
|
+
"name": "helpText",
|
|
7771
|
+
"description": "The rating's help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
7772
|
+
"type": "string"
|
|
7773
|
+
},
|
|
7754
7774
|
{ "name": "name", "type": "string" },
|
|
7755
7775
|
{ "name": "value", "type": "number" },
|
|
7756
7776
|
{ "name": "max", "type": "number" },
|
|
7757
7777
|
{ "name": "precision", "type": "number" },
|
|
7758
7778
|
{ "name": "readonly", "type": "boolean" },
|
|
7759
7779
|
{ "name": "disabled", "type": "boolean" },
|
|
7780
|
+
{
|
|
7781
|
+
"name": "preview",
|
|
7782
|
+
"description": "Displays the value alongside the symbols, updating live as the pointer moves across them.",
|
|
7783
|
+
"type": "boolean"
|
|
7784
|
+
},
|
|
7760
7785
|
{ "name": "size", "type": "'small' | 'medium' | 'large'" },
|
|
7761
7786
|
{ "name": "getSymbol", "type": "(value: number) => string" },
|
|
7762
7787
|
{
|
|
@@ -9364,6 +9389,110 @@
|
|
|
9364
9389
|
]
|
|
9365
9390
|
}
|
|
9366
9391
|
},
|
|
9392
|
+
{
|
|
9393
|
+
"name": "zn-tabs",
|
|
9394
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n \n\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.",
|
|
9395
|
+
"doc-url": "",
|
|
9396
|
+
"attributes": [
|
|
9397
|
+
{ "name": "master-id", "value": { "type": "string" } },
|
|
9398
|
+
{
|
|
9399
|
+
"name": "default-uri",
|
|
9400
|
+
"value": { "type": "string", "default": "''" }
|
|
9401
|
+
},
|
|
9402
|
+
{
|
|
9403
|
+
"name": "active",
|
|
9404
|
+
"value": { "type": "string", "default": "''" }
|
|
9405
|
+
},
|
|
9406
|
+
{ "name": "split", "value": { "type": "number" } },
|
|
9407
|
+
{
|
|
9408
|
+
"name": "split-min",
|
|
9409
|
+
"value": { "type": "number", "default": "60" }
|
|
9410
|
+
},
|
|
9411
|
+
{ "name": "split-min-secondary", "value": { "type": "number" } },
|
|
9412
|
+
{ "name": "split-max", "value": { "type": "number" } },
|
|
9413
|
+
{
|
|
9414
|
+
"name": "primary-caption",
|
|
9415
|
+
"value": { "type": "string", "default": "'Navigation'" }
|
|
9416
|
+
},
|
|
9417
|
+
{
|
|
9418
|
+
"name": "secondary-caption",
|
|
9419
|
+
"value": { "type": "string", "default": "'Content'" }
|
|
9420
|
+
},
|
|
9421
|
+
{
|
|
9422
|
+
"name": "no-prefetch",
|
|
9423
|
+
"value": { "type": "boolean", "default": "false" }
|
|
9424
|
+
},
|
|
9425
|
+
{
|
|
9426
|
+
"name": "no-cache",
|
|
9427
|
+
"value": { "type": "boolean", "default": "false" }
|
|
9428
|
+
},
|
|
9429
|
+
{ "name": "local-storage", "value": { "type": "boolean" } },
|
|
9430
|
+
{ "name": "store-key", "value": { "type": "string" } },
|
|
9431
|
+
{
|
|
9432
|
+
"name": "store-ttl",
|
|
9433
|
+
"value": { "type": "number", "default": "0" }
|
|
9434
|
+
},
|
|
9435
|
+
{
|
|
9436
|
+
"name": "padded",
|
|
9437
|
+
"value": { "type": "boolean", "default": "false" }
|
|
9438
|
+
},
|
|
9439
|
+
{
|
|
9440
|
+
"name": "fetch-style",
|
|
9441
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
9442
|
+
},
|
|
9443
|
+
{
|
|
9444
|
+
"name": "full-width",
|
|
9445
|
+
"value": { "type": "boolean", "default": "false" }
|
|
9446
|
+
},
|
|
9447
|
+
{
|
|
9448
|
+
"name": "padded-right",
|
|
9449
|
+
"value": { "type": "boolean", "default": "false" }
|
|
9450
|
+
},
|
|
9451
|
+
{ "name": "monitor", "value": { "type": "string" } },
|
|
9452
|
+
{ "name": "caption", "value": { "type": "string" } },
|
|
9453
|
+
{ "name": "description", "value": { "type": "string" } }
|
|
9454
|
+
],
|
|
9455
|
+
"slots": [
|
|
9456
|
+
{ "name": "", "description": "The default slot." },
|
|
9457
|
+
{ "name": "example", "description": "An example slot." }
|
|
9458
|
+
],
|
|
9459
|
+
"events": [
|
|
9460
|
+
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
9461
|
+
],
|
|
9462
|
+
"js": {
|
|
9463
|
+
"properties": [
|
|
9464
|
+
{ "name": "masterId", "type": "string" },
|
|
9465
|
+
{ "name": "defaultUri", "type": "string" },
|
|
9466
|
+
{ "name": "_current", "type": "string" },
|
|
9467
|
+
{ "name": "_split", "type": "number" },
|
|
9468
|
+
{ "name": "_splitMin", "type": "number" },
|
|
9469
|
+
{ "name": "_splitMinSecondary", "type": "number" },
|
|
9470
|
+
{ "name": "_splitMax", "type": "number" },
|
|
9471
|
+
{ "name": "primaryCaption", "type": "string" },
|
|
9472
|
+
{ "name": "secondaryCaption", "type": "string" },
|
|
9473
|
+
{ "name": "noPrefetch", "type": "boolean" },
|
|
9474
|
+
{ "name": "noCache", "type": "boolean" },
|
|
9475
|
+
{ "name": "localStorage", "type": "boolean" },
|
|
9476
|
+
{ "name": "storeKey", "type": "string" },
|
|
9477
|
+
{ "name": "storeTtl", "type": "number" },
|
|
9478
|
+
{ "name": "padded", "type": "boolean" },
|
|
9479
|
+
{ "name": "fetchStyle", "type": "string" },
|
|
9480
|
+
{ "name": "fullWidth", "type": "boolean" },
|
|
9481
|
+
{ "name": "paddedRight", "type": "boolean" },
|
|
9482
|
+
{ "name": "monitor", "type": "string" },
|
|
9483
|
+
{ "name": "caption", "type": "string" },
|
|
9484
|
+
{ "name": "description", "type": "string" },
|
|
9485
|
+
{ "name": "reRegisterTabs" },
|
|
9486
|
+
{ "name": "_registerTabs" }
|
|
9487
|
+
],
|
|
9488
|
+
"events": [
|
|
9489
|
+
{
|
|
9490
|
+
"name": "zn-event-name",
|
|
9491
|
+
"description": "Emitted as an example."
|
|
9492
|
+
}
|
|
9493
|
+
]
|
|
9494
|
+
}
|
|
9495
|
+
},
|
|
9367
9496
|
{
|
|
9368
9497
|
"name": "zn-textarea",
|
|
9369
9498
|
"description": "Textareas collect data from the user and allow multiple lines of text.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the control loses focus.\n- **zn-change** - Emitted when an alteration to the control's value is committed by the user.\n- **zn-focus** - Emitted when the control gains focus.\n- **zn-input** - Emitted when the control receives input.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the textarea.\n- **blur()** - Removes focus from the textarea.\n- **select()** - Selects all the text in the textarea.\n- **scrollPosition(position: _{ top?: number; left?: number }_): _{ top: number; left: number } | undefined_** - Gets or sets the textarea scroll position.\n- **setSelectionRange(selectionStart: _number_, selectionEnd: _number_, selectionDirection: _'forward' | 'backward' | 'none'_)** - Sets the start and end positions of the text selection (0-based).\n- **setRangeText(replacement: _string_, start: _number_, end: _number_, selectMode: _'select' | 'start' | 'end' | 'preserve'_)** - Replaces a range of text with a new string.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The textareas label. Alternatively, you can use the `label` attribute.\n- **label-tooltip** - Used to add text that is displayed in a tooltip next to the label. Alternatively, you can use the `label-tooltip` attribute.\n- **context-note** - Used to add contextual text that is displayed above the textarea, on the right. Alternatively, you can use the `context-note` attribute.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **textarea** - The internal `<textarea>` control.",
|
|
@@ -9707,110 +9836,6 @@
|
|
|
9707
9836
|
]
|
|
9708
9837
|
}
|
|
9709
9838
|
},
|
|
9710
|
-
{
|
|
9711
|
-
"name": "zn-tabs",
|
|
9712
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n \n\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.",
|
|
9713
|
-
"doc-url": "",
|
|
9714
|
-
"attributes": [
|
|
9715
|
-
{ "name": "master-id", "value": { "type": "string" } },
|
|
9716
|
-
{
|
|
9717
|
-
"name": "default-uri",
|
|
9718
|
-
"value": { "type": "string", "default": "''" }
|
|
9719
|
-
},
|
|
9720
|
-
{
|
|
9721
|
-
"name": "active",
|
|
9722
|
-
"value": { "type": "string", "default": "''" }
|
|
9723
|
-
},
|
|
9724
|
-
{ "name": "split", "value": { "type": "number" } },
|
|
9725
|
-
{
|
|
9726
|
-
"name": "split-min",
|
|
9727
|
-
"value": { "type": "number", "default": "60" }
|
|
9728
|
-
},
|
|
9729
|
-
{ "name": "split-min-secondary", "value": { "type": "number" } },
|
|
9730
|
-
{ "name": "split-max", "value": { "type": "number" } },
|
|
9731
|
-
{
|
|
9732
|
-
"name": "primary-caption",
|
|
9733
|
-
"value": { "type": "string", "default": "'Navigation'" }
|
|
9734
|
-
},
|
|
9735
|
-
{
|
|
9736
|
-
"name": "secondary-caption",
|
|
9737
|
-
"value": { "type": "string", "default": "'Content'" }
|
|
9738
|
-
},
|
|
9739
|
-
{
|
|
9740
|
-
"name": "no-prefetch",
|
|
9741
|
-
"value": { "type": "boolean", "default": "false" }
|
|
9742
|
-
},
|
|
9743
|
-
{
|
|
9744
|
-
"name": "no-cache",
|
|
9745
|
-
"value": { "type": "boolean", "default": "false" }
|
|
9746
|
-
},
|
|
9747
|
-
{ "name": "local-storage", "value": { "type": "boolean" } },
|
|
9748
|
-
{ "name": "store-key", "value": { "type": "string" } },
|
|
9749
|
-
{
|
|
9750
|
-
"name": "store-ttl",
|
|
9751
|
-
"value": { "type": "number", "default": "0" }
|
|
9752
|
-
},
|
|
9753
|
-
{
|
|
9754
|
-
"name": "padded",
|
|
9755
|
-
"value": { "type": "boolean", "default": "false" }
|
|
9756
|
-
},
|
|
9757
|
-
{
|
|
9758
|
-
"name": "fetch-style",
|
|
9759
|
-
"value": { "type": "string", "default": "\"\"" }
|
|
9760
|
-
},
|
|
9761
|
-
{
|
|
9762
|
-
"name": "full-width",
|
|
9763
|
-
"value": { "type": "boolean", "default": "false" }
|
|
9764
|
-
},
|
|
9765
|
-
{
|
|
9766
|
-
"name": "padded-right",
|
|
9767
|
-
"value": { "type": "boolean", "default": "false" }
|
|
9768
|
-
},
|
|
9769
|
-
{ "name": "monitor", "value": { "type": "string" } },
|
|
9770
|
-
{ "name": "caption", "value": { "type": "string" } },
|
|
9771
|
-
{ "name": "description", "value": { "type": "string" } }
|
|
9772
|
-
],
|
|
9773
|
-
"slots": [
|
|
9774
|
-
{ "name": "", "description": "The default slot." },
|
|
9775
|
-
{ "name": "example", "description": "An example slot." }
|
|
9776
|
-
],
|
|
9777
|
-
"events": [
|
|
9778
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
9779
|
-
],
|
|
9780
|
-
"js": {
|
|
9781
|
-
"properties": [
|
|
9782
|
-
{ "name": "masterId", "type": "string" },
|
|
9783
|
-
{ "name": "defaultUri", "type": "string" },
|
|
9784
|
-
{ "name": "_current", "type": "string" },
|
|
9785
|
-
{ "name": "_split", "type": "number" },
|
|
9786
|
-
{ "name": "_splitMin", "type": "number" },
|
|
9787
|
-
{ "name": "_splitMinSecondary", "type": "number" },
|
|
9788
|
-
{ "name": "_splitMax", "type": "number" },
|
|
9789
|
-
{ "name": "primaryCaption", "type": "string" },
|
|
9790
|
-
{ "name": "secondaryCaption", "type": "string" },
|
|
9791
|
-
{ "name": "noPrefetch", "type": "boolean" },
|
|
9792
|
-
{ "name": "noCache", "type": "boolean" },
|
|
9793
|
-
{ "name": "localStorage", "type": "boolean" },
|
|
9794
|
-
{ "name": "storeKey", "type": "string" },
|
|
9795
|
-
{ "name": "storeTtl", "type": "number" },
|
|
9796
|
-
{ "name": "padded", "type": "boolean" },
|
|
9797
|
-
{ "name": "fetchStyle", "type": "string" },
|
|
9798
|
-
{ "name": "fullWidth", "type": "boolean" },
|
|
9799
|
-
{ "name": "paddedRight", "type": "boolean" },
|
|
9800
|
-
{ "name": "monitor", "type": "string" },
|
|
9801
|
-
{ "name": "caption", "type": "string" },
|
|
9802
|
-
{ "name": "description", "type": "string" },
|
|
9803
|
-
{ "name": "reRegisterTabs" },
|
|
9804
|
-
{ "name": "_registerTabs" }
|
|
9805
|
-
],
|
|
9806
|
-
"events": [
|
|
9807
|
-
{
|
|
9808
|
-
"name": "zn-event-name",
|
|
9809
|
-
"description": "Emitted as an example."
|
|
9810
|
-
}
|
|
9811
|
-
]
|
|
9812
|
-
}
|
|
9813
|
-
},
|
|
9814
9839
|
{
|
|
9815
9840
|
"name": "zn-theme-editor",
|
|
9816
9841
|
"description": "A theme editor: slotted form controls drive a live preview frame,\nwith a toolbar for the preview's light/dark mode and device width.\n---\n\n\n### **Events:**\n - **zn-theme-change** - Emitted when the values, mode or device change.\n- **zn-theme-submit** - Emitted on submit (button click), carrying the current values. With `action` set, only fires after a successful save.\n- **zn-error** - Emitted when a save fails. Also seen for preview render failures: the frame's zn-error is composed and not stopped, so it bubbles out through the editor too.\n\n### **Slots:**\n - _default_ - Ungrouped theme controls, rendered above any sections. Controls assigned `slot=\"<name>\"` matching a `sections` entry (or, when nested, a `groups` entry) render inside that section/group instead. Harvesting and change detection walk every slot's full assigned subtree, not just direct children. With `sections` left unset, the structure is instead derived from the controls' own attributes: `group=\"<label>\"` becomes a tab and `category=\"<label>\"` a collapsible within it, and the control is slotted into that collapsible automatically. Either attribute works alone - a control with only `group` sits directly in its tab, and one with only `category` becomes its own top-level section. Setting `sections` explicitly disables the derivation entirely.\n- **toolbar** - Actions in the toolbar, right-aligned beside the device controls. Where a save button belongs.\n- **footer** - Actions pinned beneath the controls. The built-in submit button lives in the toolbar, not here.\n\n### **CSS Properties:**\n - **--zn-theme-editor-controls-width** - Width of the controls column. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **controls** - The left-hand controls column, full height.\n- **controls-header** - The controls column's header row: `controls-caption` on the left, the light/dark mode toggle on the right.\n- **toolbar** - The preview column's header row: `preview-caption` on the left, the device switcher (and sources/submit) on the right. Spans the preview column only.\n- **section** - A rendered section's or group's collapsible (`section-layout=\"collapsible\"`, or any nested group).\n- **footer** - The footer wrapper beneath the controls.\n- **preview** - The preview column.\n- **error** - The inline error strip.\n- **preview__base** - The frame's base wrapper (forwarded from zn-preview-frame).\n- **preview__stage** - The frame's device-width wrapper (forwarded from zn-preview-frame).\n- **preview__iframe** - The frame's iframe (forwarded from zn-preview-frame).\n- **preview__error** - The frame's own error overlay (forwarded from zn-preview-frame).",
|
package/dist/zn.d.ts
CHANGED
|
@@ -6939,24 +6939,36 @@ declare module "components/rating/rating.component" {
|
|
|
6939
6939
|
*
|
|
6940
6940
|
* @slot - The default slot.
|
|
6941
6941
|
* @slot example - An example slot.
|
|
6942
|
+
* @slot help-text - Text that describes how to use the rating. Alternatively, you can use the `help-text` attribute.
|
|
6942
6943
|
*
|
|
6944
|
+
* @csspart form-control - The form control that wraps the symbols and help text.
|
|
6945
|
+
* @csspart form-control-help-text - The help text's wrapper.
|
|
6943
6946
|
* @csspart base - The component's base wrapper.
|
|
6947
|
+
* @csspart preview - The value shown next to the symbols when `preview` is enabled.
|
|
6944
6948
|
*
|
|
6945
6949
|
* @cssproperty --example - An example CSS custom property.
|
|
6950
|
+
* @cssproperty --preview-color - The color of the preview value.
|
|
6951
|
+
* @cssproperty --preview-size - The font size of the preview value.
|
|
6946
6952
|
*/
|
|
6947
6953
|
export default class ZnRating extends ZincElement implements ZincFormControl {
|
|
6948
6954
|
static styles: CSSResultGroup;
|
|
6949
6955
|
private readonly formControlController;
|
|
6956
|
+
private readonly hasSlotController;
|
|
6950
6957
|
rating: HTMLElement;
|
|
6958
|
+
symbols: HTMLElement;
|
|
6951
6959
|
private hoverValue;
|
|
6952
6960
|
private isHovering;
|
|
6953
6961
|
label: string;
|
|
6962
|
+
/** The rating's help text. If you need to display HTML, use the `help-text` slot instead. */
|
|
6963
|
+
helpText: string;
|
|
6954
6964
|
name: string;
|
|
6955
6965
|
value: number;
|
|
6956
6966
|
max: number;
|
|
6957
6967
|
precision: number;
|
|
6958
6968
|
readonly: boolean;
|
|
6959
6969
|
disabled: boolean;
|
|
6970
|
+
/** Displays the value alongside the symbols, updating live as the pointer moves across them. */
|
|
6971
|
+
preview: boolean;
|
|
6960
6972
|
size: 'small' | 'medium' | 'large';
|
|
6961
6973
|
getSymbol: (value: number) => string;
|
|
6962
6974
|
/** Gets the validity state object */
|
|
@@ -6973,6 +6985,7 @@ declare module "components/rating/rating.component" {
|
|
|
6973
6985
|
setCustomValidity(): void;
|
|
6974
6986
|
private _roundToPrecision;
|
|
6975
6987
|
private _getValueFromXCoordinate;
|
|
6988
|
+
private _formatValue;
|
|
6976
6989
|
private _getValueFromMousePosition;
|
|
6977
6990
|
private _getValueFromTouchPosition;
|
|
6978
6991
|
private _setValue;
|
|
@@ -10556,6 +10569,12 @@ declare module "components/preview-frame/preview-frame.component" {
|
|
|
10556
10569
|
* be reached from here to cancel its own handlers, so this blocks pointer
|
|
10557
10570
|
* input entirely — hover goes with it. Scrolling doesn't: an overflowing
|
|
10558
10571
|
* page is scrolled by the panel rather than by the frame (see _contentHeight).
|
|
10572
|
+
*
|
|
10573
|
+
* Set, the frame becomes a real viewport instead: it stays the panel's own
|
|
10574
|
+
* height and the embed scrolls itself, so there is one scrollbar rather than
|
|
10575
|
+
* a panel scrolling an oversized frame, and the embed's viewport-relative
|
|
10576
|
+
* layout (`100vh`, `position: fixed`, sticky headers) sizes to what's on
|
|
10577
|
+
* screen. _contentHeight is ignored while this is set.
|
|
10559
10578
|
*/
|
|
10560
10579
|
interactive: boolean;
|
|
10561
10580
|
frame: HTMLIFrameElement;
|
|
@@ -10567,7 +10586,8 @@ declare module "components/preview-frame/preview-frame.component" {
|
|
|
10567
10586
|
* height rather than the panel's, so the page never scrolls inside the frame
|
|
10568
10587
|
* — the panel scrolls instead, which is what makes an overflowing preview
|
|
10569
10588
|
* reachable while pointer input to the frame is blocked. 0 = unknown, and the
|
|
10570
|
-
* frame falls back to filling the panel.
|
|
10589
|
+
* frame falls back to filling the panel. Kept up to date either way, but only
|
|
10590
|
+
* laid out when the frame is inert: an `interactive` frame scrolls itself.
|
|
10571
10591
|
*/
|
|
10572
10592
|
private _contentHeight;
|
|
10573
10593
|
private _generation;
|