@kestra-io/ui-libs 0.0.51 → 0.0.53

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.51",
3
+ "version": "v0.0.53",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src",
@@ -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
- if (this.$refs.tooltip) {
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.type === "task") {
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
  }