@kubex/zinc 1.1.84 → 1.1.86
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 +378 -367
- package/dist/vscode.html-custom-data.json +16 -16
- package/dist/web-types.json +41 -41
- package/dist/zn.d.ts +10 -1
- package/dist/zn.min.js +105 -104
- package/package.json +1 -1
- package/src/components/flow-builder/flow-builder.scss +6 -0
- package/src/components/preview-frame/preview-frame.component.ts +25 -25
- package/src/components/preview-frame/preview-frame.test.ts +48 -0
- package/src/components/theme-editor/theme-editor.component.ts +21 -17
- package/src/components/theme-editor/theme-editor.scss +17 -34
|
@@ -138,21 +138,6 @@
|
|
|
138
138
|
}
|
|
139
139
|
]
|
|
140
140
|
},
|
|
141
|
-
{
|
|
142
|
-
"name": "zn-bulk-actions",
|
|
143
|
-
"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.",
|
|
144
|
-
"attributes": [
|
|
145
|
-
{ "name": "name", "values": [] },
|
|
146
|
-
{ "name": "value", "values": [{ "name": "PropertyKey" }] },
|
|
147
|
-
{ "name": "actions", "values": [{ "name": "BulkActionData" }] }
|
|
148
|
-
],
|
|
149
|
-
"references": [
|
|
150
|
-
{
|
|
151
|
-
"name": "Documentation",
|
|
152
|
-
"url": "https://zinc.style/components/bulk-actions"
|
|
153
|
-
}
|
|
154
|
-
]
|
|
155
|
-
},
|
|
156
141
|
{
|
|
157
142
|
"name": "zn-button",
|
|
158
143
|
"description": "Buttons represent actions that are available to the user.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the button loses focus.\n- **zn-focus** - Emitted when the button gains focus.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Slots:**\n - _default_ - The button's label.\n- **prefix** - A presentational prefix icon or similar element.\n- **suffix** - A presentational suffix icon or similar element.\n- **cancel** - Slot for custom cancel button/content when autoClick is active.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **prefix** - The container that wraps the prefix.\n- **label** - The button's label.\n- **suffix** - The container that wraps the suffix.\n- **caret** - The button's caret icon, an `<zn-icon>` element.\n- **spinner** - The spinner that shows when the button is in the loading state.",
|
|
@@ -286,6 +271,21 @@
|
|
|
286
271
|
}
|
|
287
272
|
]
|
|
288
273
|
},
|
|
274
|
+
{
|
|
275
|
+
"name": "zn-bulk-actions",
|
|
276
|
+
"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.",
|
|
277
|
+
"attributes": [
|
|
278
|
+
{ "name": "name", "values": [] },
|
|
279
|
+
{ "name": "value", "values": [{ "name": "PropertyKey" }] },
|
|
280
|
+
{ "name": "actions", "values": [{ "name": "BulkActionData" }] }
|
|
281
|
+
],
|
|
282
|
+
"references": [
|
|
283
|
+
{
|
|
284
|
+
"name": "Documentation",
|
|
285
|
+
"url": "https://zinc.style/components/bulk-actions"
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
289
|
{
|
|
290
290
|
"name": "zn-button-group",
|
|
291
291
|
"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\n### **CSS Properties:**\n - **--grow** - Use flex-grow to fill available space. _(default: undefined)_\n- **--start** - Justify content at the start of the flex space. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -3033,7 +3033,7 @@
|
|
|
3033
3033
|
},
|
|
3034
3034
|
{
|
|
3035
3035
|
"name": "refresh-on",
|
|
3036
|
-
"description": "Selector for forms whose saves are left to the shell but should still\nrefresh the preview. These are never intercepted: the shell submits them\n(so its own response handling — alerts, refreshes — runs as normal) and the\npreview re-fetches its config once the shell reports the save complete.\nSet empty to disable.",
|
|
3036
|
+
"description": "Selector for forms whose saves are left to the shell but should still\nrefresh the preview. These are never intercepted: the shell submits them\n(so its own response handling — alerts, refreshes — runs as normal) and the\npreview re-fetches its config once the shell reports the save complete.\nMatched by delegation on the shell's bubbled `complete` event rather than\nby attaching to the forms themselves, so a save anywhere on the page\nrefreshes the preview — including forms in a different DOM root, e.g. a\npage-level form saved while the preview sits inside a tab panel's shadow\nroot (a page's Template select lives on one tab, its preview on another).\nSet empty to disable.",
|
|
3037
3037
|
"values": []
|
|
3038
3038
|
},
|
|
3039
3039
|
{
|
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.86",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -250,44 +250,6 @@
|
|
|
250
250
|
"events": []
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
|
-
{
|
|
254
|
-
"name": "zn-bulk-actions",
|
|
255
|
-
"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.",
|
|
256
|
-
"doc-url": "",
|
|
257
|
-
"attributes": [
|
|
258
|
-
{ "name": "name", "value": { "type": "string" } },
|
|
259
|
-
{ "name": "value", "value": { "type": "PropertyKey" } },
|
|
260
|
-
{
|
|
261
|
-
"name": "actions",
|
|
262
|
-
"value": { "type": "BulkActionData", "default": "[]" }
|
|
263
|
-
}
|
|
264
|
-
],
|
|
265
|
-
"slots": [
|
|
266
|
-
{ "name": "", "description": "The default slot." },
|
|
267
|
-
{ "name": "example", "description": "An example slot." }
|
|
268
|
-
],
|
|
269
|
-
"events": [
|
|
270
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
271
|
-
],
|
|
272
|
-
"js": {
|
|
273
|
-
"properties": [
|
|
274
|
-
{ "name": "container", "type": "HTMLDivElement" },
|
|
275
|
-
{ "name": "addRule", "type": "ZnSelect" },
|
|
276
|
-
{ "name": "input", "type": "HTMLInputElement" },
|
|
277
|
-
{ "name": "name", "type": "string" },
|
|
278
|
-
{ "name": "value", "type": "PropertyKey" },
|
|
279
|
-
{ "name": "actions", "type": "BulkActionData" },
|
|
280
|
-
{ "name": "validationMessage", "type": "string" },
|
|
281
|
-
{ "name": "validity", "type": "ValidityState" }
|
|
282
|
-
],
|
|
283
|
-
"events": [
|
|
284
|
-
{
|
|
285
|
-
"name": "zn-event-name",
|
|
286
|
-
"description": "Emitted as an example."
|
|
287
|
-
}
|
|
288
|
-
]
|
|
289
|
-
}
|
|
290
|
-
},
|
|
291
253
|
{
|
|
292
254
|
"name": "zn-button",
|
|
293
255
|
"description": "Buttons represent actions that are available to the user.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the button loses focus.\n- **zn-focus** - Emitted when the button gains focus.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Slots:**\n - _default_ - The button's label.\n- **prefix** - A presentational prefix icon or similar element.\n- **suffix** - A presentational suffix icon or similar element.\n- **cancel** - Slot for custom cancel button/content when autoClick is active.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **prefix** - The container that wraps the prefix.\n- **label** - The button's label.\n- **suffix** - The container that wraps the suffix.\n- **caret** - The button's caret icon, an `<zn-icon>` element.\n- **spinner** - The spinner that shows when the button is in the loading state.",
|
|
@@ -554,6 +516,44 @@
|
|
|
554
516
|
]
|
|
555
517
|
}
|
|
556
518
|
},
|
|
519
|
+
{
|
|
520
|
+
"name": "zn-bulk-actions",
|
|
521
|
+
"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.",
|
|
522
|
+
"doc-url": "",
|
|
523
|
+
"attributes": [
|
|
524
|
+
{ "name": "name", "value": { "type": "string" } },
|
|
525
|
+
{ "name": "value", "value": { "type": "PropertyKey" } },
|
|
526
|
+
{
|
|
527
|
+
"name": "actions",
|
|
528
|
+
"value": { "type": "BulkActionData", "default": "[]" }
|
|
529
|
+
}
|
|
530
|
+
],
|
|
531
|
+
"slots": [
|
|
532
|
+
{ "name": "", "description": "The default slot." },
|
|
533
|
+
{ "name": "example", "description": "An example slot." }
|
|
534
|
+
],
|
|
535
|
+
"events": [
|
|
536
|
+
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
537
|
+
],
|
|
538
|
+
"js": {
|
|
539
|
+
"properties": [
|
|
540
|
+
{ "name": "container", "type": "HTMLDivElement" },
|
|
541
|
+
{ "name": "addRule", "type": "ZnSelect" },
|
|
542
|
+
{ "name": "input", "type": "HTMLInputElement" },
|
|
543
|
+
{ "name": "name", "type": "string" },
|
|
544
|
+
{ "name": "value", "type": "PropertyKey" },
|
|
545
|
+
{ "name": "actions", "type": "BulkActionData" },
|
|
546
|
+
{ "name": "validationMessage", "type": "string" },
|
|
547
|
+
{ "name": "validity", "type": "ValidityState" }
|
|
548
|
+
],
|
|
549
|
+
"events": [
|
|
550
|
+
{
|
|
551
|
+
"name": "zn-event-name",
|
|
552
|
+
"description": "Emitted as an example."
|
|
553
|
+
}
|
|
554
|
+
]
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
557
|
{
|
|
558
558
|
"name": "zn-button-group",
|
|
559
559
|
"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\n### **CSS Properties:**\n - **--grow** - Use flex-grow to fill available space. _(default: undefined)_\n- **--start** - Justify content at the start of the flex space. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -7089,7 +7089,7 @@
|
|
|
7089
7089
|
},
|
|
7090
7090
|
{
|
|
7091
7091
|
"name": "refresh-on",
|
|
7092
|
-
"description": "Selector for forms whose saves are left to the shell but should still\nrefresh the preview. These are never intercepted: the shell submits them\n(so its own response handling — alerts, refreshes — runs as normal) and the\npreview re-fetches its config once the shell reports the save complete.\nSet empty to disable.",
|
|
7092
|
+
"description": "Selector for forms whose saves are left to the shell but should still\nrefresh the preview. These are never intercepted: the shell submits them\n(so its own response handling — alerts, refreshes — runs as normal) and the\npreview re-fetches its config once the shell reports the save complete.\nMatched by delegation on the shell's bubbled `complete` event rather than\nby attaching to the forms themselves, so a save anywhere on the page\nrefreshes the preview — including forms in a different DOM root, e.g. a\npage-level form saved while the preview sits inside a tab panel's shadow\nroot (a page's Template select lives on one tab, its preview on another).\nSet empty to disable.",
|
|
7093
7093
|
"value": { "type": "string", "default": "'form'" }
|
|
7094
7094
|
},
|
|
7095
7095
|
{
|
|
@@ -7158,7 +7158,7 @@
|
|
|
7158
7158
|
},
|
|
7159
7159
|
{
|
|
7160
7160
|
"name": "refreshOn",
|
|
7161
|
-
"description": "Selector for forms whose saves are left to the shell but should still\nrefresh the preview. These are never intercepted: the shell submits them\n(so its own response handling — alerts, refreshes — runs as normal) and the\npreview re-fetches its config once the shell reports the save complete.\nSet empty to disable.",
|
|
7161
|
+
"description": "Selector for forms whose saves are left to the shell but should still\nrefresh the preview. These are never intercepted: the shell submits them\n(so its own response handling — alerts, refreshes — runs as normal) and the\npreview re-fetches its config once the shell reports the save complete.\nMatched by delegation on the shell's bubbled `complete` event rather than\nby attaching to the forms themselves, so a save anywhere on the page\nrefreshes the preview — including forms in a different DOM root, e.g. a\npage-level form saved while the preview sits inside a tab panel's shadow\nroot (a page's Template select lives on one tab, its preview on another).\nSet empty to disable.",
|
|
7162
7162
|
"type": "string"
|
|
7163
7163
|
},
|
|
7164
7164
|
{
|
package/dist/zn.d.ts
CHANGED
|
@@ -10980,6 +10980,11 @@ declare module "components/preview-frame/preview-frame.component" {
|
|
|
10980
10980
|
* refresh the preview. These are never intercepted: the shell submits them
|
|
10981
10981
|
* (so its own response handling — alerts, refreshes — runs as normal) and the
|
|
10982
10982
|
* preview re-fetches its config once the shell reports the save complete.
|
|
10983
|
+
* Matched by delegation on the shell's bubbled `complete` event rather than
|
|
10984
|
+
* by attaching to the forms themselves, so a save anywhere on the page
|
|
10985
|
+
* refreshes the preview — including forms in a different DOM root, e.g. a
|
|
10986
|
+
* page-level form saved while the preview sits inside a tab panel's shadow
|
|
10987
|
+
* root (a page's Template select lives on one tab, its preview on another).
|
|
10983
10988
|
* Set empty to disable.
|
|
10984
10989
|
*/
|
|
10985
10990
|
refreshOn: string;
|
|
@@ -11047,8 +11052,9 @@ declare module "components/preview-frame/preview-frame.component" {
|
|
|
11047
11052
|
private _theme;
|
|
11048
11053
|
private _contentObserver;
|
|
11049
11054
|
private readonly _watchedForms;
|
|
11050
|
-
private readonly _refreshForms;
|
|
11051
11055
|
private readonly _debounceTimers;
|
|
11056
|
+
private _shellSaveRoots;
|
|
11057
|
+
private _lastShellSave;
|
|
11052
11058
|
private readonly _formObserver;
|
|
11053
11059
|
connectedCallback(): void;
|
|
11054
11060
|
protected willUpdate(changed: PropertyValues<this>): void;
|
|
@@ -11102,6 +11108,7 @@ declare module "components/theme-editor/theme-editor.component" {
|
|
|
11102
11108
|
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
|
11103
11109
|
import ZincElement from "internal/zinc-element";
|
|
11104
11110
|
import ZnButton from "components/button/index";
|
|
11111
|
+
import ZnButtonGroup from "components/button-group/index";
|
|
11105
11112
|
import ZnCollapsible from "components/collapsible/index";
|
|
11106
11113
|
import ZnIcon from "components/icon/index";
|
|
11107
11114
|
import ZnNavbar from "components/navbar/index";
|
|
@@ -11142,6 +11149,7 @@ declare module "components/theme-editor/theme-editor.component" {
|
|
|
11142
11149
|
* @dependency zn-preview-frame
|
|
11143
11150
|
* @dependency zn-icon
|
|
11144
11151
|
* @dependency zn-button
|
|
11152
|
+
* @dependency zn-button-group
|
|
11145
11153
|
* @dependency zn-tabs
|
|
11146
11154
|
* @dependency zn-navbar
|
|
11147
11155
|
* @dependency zn-select
|
|
@@ -11193,6 +11201,7 @@ declare module "components/theme-editor/theme-editor.component" {
|
|
|
11193
11201
|
'zn-preview-frame': typeof ZnPreviewFrame;
|
|
11194
11202
|
'zn-icon': typeof ZnIcon;
|
|
11195
11203
|
'zn-button': typeof ZnButton;
|
|
11204
|
+
'zn-button-group': typeof ZnButtonGroup;
|
|
11196
11205
|
'zn-tabs': typeof ZnTabs;
|
|
11197
11206
|
'zn-navbar': typeof ZnNavbar;
|
|
11198
11207
|
'zn-select': typeof ZnSelect;
|