@kestra-io/ui-libs 0.0.50 → 0.0.52
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kestra-io/ui-libs",
|
|
3
|
-
"version": "v0.0.
|
|
3
|
+
"version": "v0.0.52",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -36,8 +36,10 @@
|
|
|
36
36
|
"eslint": "^8.57.0",
|
|
37
37
|
"eslint-plugin-vue": "^9.23.0",
|
|
38
38
|
"sass": "^1.71.1",
|
|
39
|
-
"shiki": "^1.1.7",
|
|
40
39
|
"vite": "^5.1.6",
|
|
41
40
|
"vite-plugin-static-copy": "^1.0.1"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"shiki": "^1.1.7"
|
|
42
44
|
}
|
|
43
45
|
}
|
|
@@ -27,9 +27,14 @@
|
|
|
27
27
|
default: "top"
|
|
28
28
|
},
|
|
29
29
|
},
|
|
30
|
+
data() {
|
|
31
|
+
return {
|
|
32
|
+
tooltip: undefined
|
|
33
|
+
}
|
|
34
|
+
},
|
|
30
35
|
async mounted() {
|
|
31
36
|
if (document) {
|
|
32
|
-
new (await bootstrap).Tooltip(this.$refs.tooltip, {
|
|
37
|
+
this.tooltip = new (await bootstrap).Tooltip(this.$refs.tooltip, {
|
|
33
38
|
trigger: "hover",
|
|
34
39
|
html: true,
|
|
35
40
|
placement: this.placement,
|
|
@@ -39,12 +44,7 @@
|
|
|
39
44
|
}
|
|
40
45
|
},
|
|
41
46
|
async beforeUnmount() {
|
|
42
|
-
|
|
43
|
-
const tooltip = (await bootstrap).Tooltip.getInstance(this.$refs.tooltip);
|
|
44
|
-
if (tooltip) {
|
|
45
|
-
tooltip.dispose();
|
|
46
|
-
}
|
|
47
|
-
}
|
|
47
|
+
this.tooltip?.dispose();
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
</script>
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
const onMouseOver = (node) => {
|
|
150
150
|
if (!dragging.value) {
|
|
151
151
|
VueFlowUtils.linkedElements(props.id, node.uid).forEach((n) => {
|
|
152
|
-
if (n
|
|
152
|
+
if (n?.type === "task") {
|
|
153
153
|
n.style = {...n.style, outline: "0.5px solid " + cssVariable("--bs-gray-900")}
|
|
154
154
|
n.class = "rounded-3"
|
|
155
155
|
}
|
|
@@ -8,7 +8,7 @@ const TRIGGERS_NODE_UID = "root.Triggers";
|
|
|
8
8
|
export default class VueFlowUtils {
|
|
9
9
|
|
|
10
10
|
static predecessorsEdge(vueFlowId, nodeUid) {
|
|
11
|
-
const {getEdges} = useVueFlow(
|
|
11
|
+
const {getEdges} = useVueFlow(vueFlowId);
|
|
12
12
|
|
|
13
13
|
let nodes = [];
|
|
14
14
|
|
|
@@ -26,7 +26,7 @@ export default class VueFlowUtils {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
static successorsEdge(vueFlowId, nodeUid) {
|
|
29
|
-
const {getEdges} = useVueFlow(
|
|
29
|
+
const {getEdges} = useVueFlow(vueFlowId);
|
|
30
30
|
|
|
31
31
|
let nodes = [];
|
|
32
32
|
|
|
@@ -44,7 +44,7 @@ export default class VueFlowUtils {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
static predecessorsNode(vueFlowId, nodeUid) {
|
|
47
|
-
const {getEdges, findNode} = useVueFlow(
|
|
47
|
+
const {getEdges, findNode} = useVueFlow(vueFlowId);
|
|
48
48
|
|
|
49
49
|
let nodes = [findNode(nodeUid)];
|
|
50
50
|
|
|
@@ -62,7 +62,7 @@ export default class VueFlowUtils {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
static successorsNode(vueFlowId, nodeUid) {
|
|
65
|
-
const {getEdges, findNode} = useVueFlow(
|
|
65
|
+
const {getEdges, findNode} = useVueFlow(vueFlowId);
|
|
66
66
|
|
|
67
67
|
let nodes = [findNode(nodeUid)];
|
|
68
68
|
|
|
@@ -191,7 +191,7 @@ export default class VueFlowUtils {
|
|
|
191
191
|
removeEdges,
|
|
192
192
|
removeNodes,
|
|
193
193
|
removeSelectedElements
|
|
194
|
-
} = useVueFlow(
|
|
194
|
+
} = useVueFlow(vueflowId);
|
|
195
195
|
removeEdges(getEdges.value)
|
|
196
196
|
removeNodes(getNodes.value)
|
|
197
197
|
removeSelectedElements(getElements.value)
|