@kubex/zinc 1.1.22 → 1.1.24
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/custom-elements-manifest.config.js +2 -4
- package/dist/custom-elements.json +1172 -78
- package/dist/vscode.html-custom-data.json +34 -13
- package/dist/web-types.json +135 -26
- package/dist/zn.d.ts +867 -1
- package/dist/zn.min.js +893 -481
- package/docs/_includes/default.njk +1 -0
- package/docs/_includes/full-page.njk +38 -0
- package/docs/pages/components/flow-builder-demo.njk +194 -0
- package/docs/pages/components/flow-builder-troubleshooter-demo.njk +282 -0
- package/docs/pages/components/flow-builder.md +377 -0
- package/package.json +1 -1
- package/src/components/button/button.component.ts +1 -2
- package/src/components/button/button.scss +6 -16
- package/src/components/collapsible/collapsible.component.ts +11 -6
- package/src/components/data-table/data-table.component.ts +12 -12
- package/src/components/flow-builder/flow-builder.component.ts +1171 -0
- package/src/components/flow-builder/flow-builder.scss +489 -0
- package/src/components/flow-builder/flow-builder.test.ts +59 -0
- package/src/components/flow-builder/flow-layout.ts +139 -0
- package/src/components/flow-builder/flow-registry.ts +52 -0
- package/src/components/flow-builder/flow.types.ts +407 -0
- package/src/components/flow-builder/index.ts +14 -0
- package/src/components/flow-builder/modules/flow-canvas/flow-canvas.component.ts +1086 -0
- package/src/components/flow-builder/modules/flow-canvas/flow-canvas.scss +371 -0
- package/src/components/flow-builder/modules/flow-canvas/flow-canvas.test.ts +39 -0
- package/src/components/flow-builder/modules/flow-canvas/index.ts +12 -0
- package/src/components/flow-builder/modules/flow-node/flow-node.component.ts +174 -0
- package/src/components/flow-builder/modules/flow-node/flow-node.scss +180 -0
- package/src/components/flow-builder/modules/flow-node/flow-node.test.ts +50 -0
- package/src/components/flow-builder/modules/flow-node/index.ts +12 -0
- package/src/components/flow-builder/modules/flow-step/flow-step.component.ts +88 -0
- package/src/components/flow-builder/modules/flow-step/flow-step.scss +52 -0
- package/src/components/flow-builder/modules/flow-step/flow-step.test.ts +21 -0
- package/src/components/flow-builder/modules/flow-step/index.ts +12 -0
- package/src/components/flow-builder/modules/flow-step-group/flow-step-group.component.ts +35 -0
- package/src/components/flow-builder/modules/flow-step-group/flow-step-group.scss +28 -0
- package/src/components/flow-builder/modules/flow-step-group/flow-step-group.test.ts +20 -0
- package/src/components/flow-builder/modules/flow-step-group/index.ts +12 -0
- package/src/components/flow-builder/modules/flow-steps/flow-steps.component.ts +88 -0
- package/src/components/flow-builder/modules/flow-steps/flow-steps.scss +24 -0
- package/src/components/flow-builder/modules/flow-steps/flow-steps.test.ts +17 -0
- package/src/components/flow-builder/modules/flow-steps/index.ts +12 -0
- package/src/events/events.ts +3 -0
- package/src/events/zn-flow-change.ts +9 -0
- package/src/events/zn-flow-connect.ts +9 -0
- package/src/events/zn-flow-selection-change.ts +7 -0
- package/src/zinc.ts +4 -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.",
|
|
@@ -52,17 +63,6 @@
|
|
|
52
63
|
}
|
|
53
64
|
]
|
|
54
65
|
},
|
|
55
|
-
{
|
|
56
|
-
"name": "zn-action-bar",
|
|
57
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
58
|
-
"attributes": [],
|
|
59
|
-
"references": [
|
|
60
|
-
{
|
|
61
|
-
"name": "Documentation",
|
|
62
|
-
"url": "https://zinc.style/components/action-bar"
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
66
|
{
|
|
67
67
|
"name": "zn-animated-button",
|
|
68
68
|
"description": "\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
|
|
@@ -168,7 +168,6 @@
|
|
|
168
168
|
{ "name": "warning" },
|
|
169
169
|
{ "name": "transparent" },
|
|
170
170
|
{ "name": "star" },
|
|
171
|
-
{ "name": "white" },
|
|
172
171
|
{ "name": "(string & Record<never, never>)" }
|
|
173
172
|
]
|
|
174
173
|
},
|
|
@@ -757,7 +756,7 @@
|
|
|
757
756
|
},
|
|
758
757
|
{
|
|
759
758
|
"name": "zn-collapsible",
|
|
760
|
-
"description": "Toggles between showing and hiding content when clicked\n---\n\n\n### **Slots:**\n - **header** - Clicking will toggle the show state of the data",
|
|
759
|
+
"description": "Toggles between showing and hiding content when clicked\n---\n\n\n### **Slots:**\n - **header** - Clicking will toggle the show state of the data\n\n### **CSS Parts:**\n - **header** - The header row (toggle).\n- **caption** - The caption text.",
|
|
761
760
|
"attributes": [
|
|
762
761
|
{ "name": "caption", "values": [] },
|
|
763
762
|
{ "name": "description", "values": [] },
|
|
@@ -1599,6 +1598,28 @@
|
|
|
1599
1598
|
}
|
|
1600
1599
|
]
|
|
1601
1600
|
},
|
|
1601
|
+
{
|
|
1602
|
+
"name": "zn-flow-builder",
|
|
1603
|
+
"description": "A drag-and-drop visual flow builder: steps panel, pan/zoom canvas, and a config inspector.\n---\n\n\n### **Events:**\n - **zn-flow-change** - Emitted whenever the flow state changes. `event.detail.state` is the new FlowState.\n- **zn-flow-selection-change** - Emitted when the selected node changes. `event.detail.nodeId`.\n- **zn-flow-connect** - Emitted when a connection is created. `event.detail.connection`.\n\n### **Slots:**\n - _default_ - `<zn-flow-step>` type declarations; never displayed, each `group`/`category` routes the step into the right tab and collapsible grouping of the rendered panel.\n- **header-left** - Actions shown on the left of the header bar (e.g. Close / Undo All Changes).\n- **header-right** - Actions shown on the right of the header bar (e.g. Apply Changes).\n- **sidebar** - Extra right-panel content (status, version history), below the configuration errors.\n\n### **CSS Parts:**\n - **base** - The grid wrapper.\n- **header** - The full-width header action bar (only rendered when header slots are filled).\n- **steps** - The left steps panel.\n- **inspector** - The right panel while a node or branch is selected.",
|
|
1604
|
+
"attributes": [
|
|
1605
|
+
{ "name": "heading", "values": [] },
|
|
1606
|
+
{ "name": "subheading", "values": [] },
|
|
1607
|
+
{
|
|
1608
|
+
"name": "entrypoints-hint",
|
|
1609
|
+
"description": "Optional hint shown beneath each steps-panel tab.",
|
|
1610
|
+
"values": []
|
|
1611
|
+
},
|
|
1612
|
+
{ "name": "triggers-hint", "values": [] },
|
|
1613
|
+
{ "name": "actions-hint", "values": [] },
|
|
1614
|
+
{ "name": "rules-hint", "values": [] }
|
|
1615
|
+
],
|
|
1616
|
+
"references": [
|
|
1617
|
+
{
|
|
1618
|
+
"name": "Documentation",
|
|
1619
|
+
"url": "https://zinc.style/components/flow-builder"
|
|
1620
|
+
}
|
|
1621
|
+
]
|
|
1622
|
+
},
|
|
1602
1623
|
{
|
|
1603
1624
|
"name": "zn-form-group",
|
|
1604
1625
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Slots:**\n - _default_ - The default slot.",
|
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.24",
|
|
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.",
|
|
@@ -78,28 +100,6 @@
|
|
|
78
100
|
]
|
|
79
101
|
}
|
|
80
102
|
},
|
|
81
|
-
{
|
|
82
|
-
"name": "zn-action-bar",
|
|
83
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
84
|
-
"doc-url": "",
|
|
85
|
-
"attributes": [],
|
|
86
|
-
"slots": [
|
|
87
|
-
{ "name": "", "description": "The default slot." },
|
|
88
|
-
{ "name": "example", "description": "An example slot." }
|
|
89
|
-
],
|
|
90
|
-
"events": [
|
|
91
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
92
|
-
],
|
|
93
|
-
"js": {
|
|
94
|
-
"properties": [],
|
|
95
|
-
"events": [
|
|
96
|
-
{
|
|
97
|
-
"name": "zn-event-name",
|
|
98
|
-
"description": "Emitted as an example."
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
103
|
{
|
|
104
104
|
"name": "zn-animated-button",
|
|
105
105
|
"description": "\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
{
|
|
292
292
|
"name": "color",
|
|
293
293
|
"value": {
|
|
294
|
-
"type": "'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' |\n 'transparent' | 'star' |
|
|
294
|
+
"type": "'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' |\n 'transparent' | 'star' | (string & Record<never, never>)",
|
|
295
295
|
"default": "'default'"
|
|
296
296
|
}
|
|
297
297
|
},
|
|
@@ -462,7 +462,7 @@
|
|
|
462
462
|
{ "name": "countdownContainer", "type": "HTMLElement[]" },
|
|
463
463
|
{
|
|
464
464
|
"name": "color",
|
|
465
|
-
"type": "'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' |\n 'transparent' | 'star' |
|
|
465
|
+
"type": "'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' |\n 'transparent' | 'star' | (string & Record<never, never>)"
|
|
466
466
|
},
|
|
467
467
|
{ "name": "hoverColor", "type": "string" },
|
|
468
468
|
{ "name": "text", "type": "boolean" },
|
|
@@ -1648,7 +1648,7 @@
|
|
|
1648
1648
|
},
|
|
1649
1649
|
{
|
|
1650
1650
|
"name": "zn-collapsible",
|
|
1651
|
-
"description": "Toggles between showing and hiding content when clicked\n---\n\n\n### **Slots:**\n - **header** - Clicking will toggle the show state of the data",
|
|
1651
|
+
"description": "Toggles between showing and hiding content when clicked\n---\n\n\n### **Slots:**\n - **header** - Clicking will toggle the show state of the data\n\n### **CSS Parts:**\n - **header** - The header row (toggle).\n- **caption** - The caption text.",
|
|
1652
1652
|
"doc-url": "",
|
|
1653
1653
|
"attributes": [
|
|
1654
1654
|
{
|
|
@@ -3729,6 +3729,115 @@
|
|
|
3729
3729
|
]
|
|
3730
3730
|
}
|
|
3731
3731
|
},
|
|
3732
|
+
{
|
|
3733
|
+
"name": "zn-flow-builder",
|
|
3734
|
+
"description": "A drag-and-drop visual flow builder: steps panel, pan/zoom canvas, and a config inspector.\n---\n\n\n### **Events:**\n - **zn-flow-change** - Emitted whenever the flow state changes. `event.detail.state` is the new FlowState.\n- **zn-flow-selection-change** - Emitted when the selected node changes. `event.detail.nodeId`.\n- **zn-flow-connect** - Emitted when a connection is created. `event.detail.connection`.\n\n### **Slots:**\n - _default_ - `<zn-flow-step>` type declarations; never displayed, each `group`/`category` routes the step into the right tab and collapsible grouping of the rendered panel.\n- **header-left** - Actions shown on the left of the header bar (e.g. Close / Undo All Changes).\n- **header-right** - Actions shown on the right of the header bar (e.g. Apply Changes).\n- **sidebar** - Extra right-panel content (status, version history), below the configuration errors.\n\n### **CSS Parts:**\n - **base** - The grid wrapper.\n- **header** - The full-width header action bar (only rendered when header slots are filled).\n- **steps** - The left steps panel.\n- **inspector** - The right panel while a node or branch is selected.",
|
|
3735
|
+
"doc-url": "",
|
|
3736
|
+
"attributes": [
|
|
3737
|
+
{
|
|
3738
|
+
"name": "heading",
|
|
3739
|
+
"value": { "type": "string", "default": "''" }
|
|
3740
|
+
},
|
|
3741
|
+
{
|
|
3742
|
+
"name": "subheading",
|
|
3743
|
+
"value": { "type": "string", "default": "''" }
|
|
3744
|
+
},
|
|
3745
|
+
{
|
|
3746
|
+
"name": "entrypoints-hint",
|
|
3747
|
+
"description": "Optional hint shown beneath each steps-panel tab.",
|
|
3748
|
+
"value": { "type": "string", "default": "''" }
|
|
3749
|
+
},
|
|
3750
|
+
{
|
|
3751
|
+
"name": "triggers-hint",
|
|
3752
|
+
"value": { "type": "string", "default": "''" }
|
|
3753
|
+
},
|
|
3754
|
+
{
|
|
3755
|
+
"name": "actions-hint",
|
|
3756
|
+
"value": { "type": "string", "default": "''" }
|
|
3757
|
+
},
|
|
3758
|
+
{
|
|
3759
|
+
"name": "rules-hint",
|
|
3760
|
+
"value": { "type": "string", "default": "''" }
|
|
3761
|
+
}
|
|
3762
|
+
],
|
|
3763
|
+
"slots": [
|
|
3764
|
+
{
|
|
3765
|
+
"name": "",
|
|
3766
|
+
"description": "`<zn-flow-step>` type declarations; never displayed, each `group`/`category` routes the step into the right tab and collapsible grouping of the rendered panel."
|
|
3767
|
+
},
|
|
3768
|
+
{
|
|
3769
|
+
"name": "header-left",
|
|
3770
|
+
"description": "Actions shown on the left of the header bar (e.g. Close / Undo All Changes)."
|
|
3771
|
+
},
|
|
3772
|
+
{
|
|
3773
|
+
"name": "header-right",
|
|
3774
|
+
"description": "Actions shown on the right of the header bar (e.g. Apply Changes)."
|
|
3775
|
+
},
|
|
3776
|
+
{
|
|
3777
|
+
"name": "sidebar",
|
|
3778
|
+
"description": "Extra right-panel content (status, version history), below the configuration errors."
|
|
3779
|
+
}
|
|
3780
|
+
],
|
|
3781
|
+
"events": [
|
|
3782
|
+
{
|
|
3783
|
+
"name": "zn-flow-change",
|
|
3784
|
+
"description": "Emitted whenever the flow state changes. `event.detail.state` is the new FlowState."
|
|
3785
|
+
},
|
|
3786
|
+
{
|
|
3787
|
+
"name": "zn-flow-selection-change",
|
|
3788
|
+
"description": "Emitted when the selected node changes. `event.detail.nodeId`."
|
|
3789
|
+
},
|
|
3790
|
+
{
|
|
3791
|
+
"name": "zn-flow-connect",
|
|
3792
|
+
"description": "Emitted when a connection is created. `event.detail.connection`."
|
|
3793
|
+
}
|
|
3794
|
+
],
|
|
3795
|
+
"js": {
|
|
3796
|
+
"properties": [
|
|
3797
|
+
{
|
|
3798
|
+
"name": "nodeTypes",
|
|
3799
|
+
"description": "Node types to make available, registered into the internal registry.",
|
|
3800
|
+
"type": "FlowNodeType[]"
|
|
3801
|
+
},
|
|
3802
|
+
{ "name": "heading", "type": "string" },
|
|
3803
|
+
{ "name": "subheading", "type": "string" },
|
|
3804
|
+
{
|
|
3805
|
+
"name": "errorNodes",
|
|
3806
|
+
"description": "Node ids flagged as having configuration errors (drives the red node styling).",
|
|
3807
|
+
"type": "string[]"
|
|
3808
|
+
},
|
|
3809
|
+
{
|
|
3810
|
+
"name": "entrypointsHint",
|
|
3811
|
+
"description": "Optional hint shown beneath each steps-panel tab.",
|
|
3812
|
+
"type": "string"
|
|
3813
|
+
},
|
|
3814
|
+
{ "name": "triggersHint", "type": "string" },
|
|
3815
|
+
{ "name": "actionsHint", "type": "string" },
|
|
3816
|
+
{ "name": "rulesHint", "type": "string" },
|
|
3817
|
+
{ "name": "value", "type": "string" },
|
|
3818
|
+
{ "name": "undo" },
|
|
3819
|
+
{ "name": "redo" },
|
|
3820
|
+
{
|
|
3821
|
+
"name": "untangle",
|
|
3822
|
+
"description": "Auto-arrange the nodes into evenly spaced layers that follow the flow,\nanimating them into place (wires and pills track them since everything is\nderived from the node coordinates). Undoable as a single step."
|
|
3823
|
+
}
|
|
3824
|
+
],
|
|
3825
|
+
"events": [
|
|
3826
|
+
{
|
|
3827
|
+
"name": "zn-flow-change",
|
|
3828
|
+
"description": "Emitted whenever the flow state changes. `event.detail.state` is the new FlowState."
|
|
3829
|
+
},
|
|
3830
|
+
{
|
|
3831
|
+
"name": "zn-flow-selection-change",
|
|
3832
|
+
"description": "Emitted when the selected node changes. `event.detail.nodeId`."
|
|
3833
|
+
},
|
|
3834
|
+
{
|
|
3835
|
+
"name": "zn-flow-connect",
|
|
3836
|
+
"description": "Emitted when a connection is created. `event.detail.connection`."
|
|
3837
|
+
}
|
|
3838
|
+
]
|
|
3839
|
+
}
|
|
3840
|
+
},
|
|
3732
3841
|
{
|
|
3733
3842
|
"name": "zn-form-group",
|
|
3734
3843
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Slots:**\n - _default_ - The default slot.",
|