@web-utils/component 2.8.7 → 2.8.8
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/flow-viewer/index.mjs +9 -9
- package/package.json +1 -1
- package/web-types.json +4 -1
package/flow-viewer/index.mjs
CHANGED
|
@@ -9,8 +9,8 @@ var p = (t, e, i) => e in t ? v(t, e, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
for (var i of m(e))
|
|
10
10
|
b.call(e, i) && p(t, i, e[i]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, d = (t, e) => _(t, w(e));
|
|
13
|
+
var f = (t, e, i) => new Promise((n, s) => {
|
|
14
14
|
var l = (o) => {
|
|
15
15
|
try {
|
|
16
16
|
h(i.next(o));
|
|
@@ -61,7 +61,7 @@ c.prototype._handleWheel = function(t) {
|
|
|
61
61
|
const F = {
|
|
62
62
|
__init__: ["zoomScroll"],
|
|
63
63
|
zoomScroll: ["type", c]
|
|
64
|
-
},
|
|
64
|
+
}, $ = {
|
|
65
65
|
name: "FlowViewer",
|
|
66
66
|
props: {
|
|
67
67
|
xml: {
|
|
@@ -96,15 +96,15 @@ const F = {
|
|
|
96
96
|
mounted() {
|
|
97
97
|
var e;
|
|
98
98
|
const t = this.$refs.container;
|
|
99
|
-
this.bpmnViewer = new E(
|
|
99
|
+
this.bpmnViewer = new E(d(g({}, this.options), {
|
|
100
100
|
container: t,
|
|
101
101
|
additionalModules: [F]
|
|
102
102
|
})), this.bpmnViewer.on("import.done", (i) => {
|
|
103
103
|
const n = i.error, s = i.warnings;
|
|
104
104
|
n ? this.$emit("error", n) : this.$emit("shown", s), this.bpmnViewer.get("canvas").zoom("fit-viewport", "center");
|
|
105
105
|
const l = this.bpmnViewer.get("eventBus");
|
|
106
|
-
this.canvas = this.bpmnViewer.get("canvas"), l.on("element.mousemove", (r) =>
|
|
107
|
-
r.element.type === "bpmn:UserTask" && (this.element = r.element, yield this.$nextTick(), this.$refs.popup.show(r.originalEvent));
|
|
106
|
+
this.canvas = this.bpmnViewer.get("canvas"), l.on("element.mousemove", (r) => f(this, null, function* () {
|
|
107
|
+
r.element.type === "bpmn:UserTask" && (this.$emit("node-mousemove", r.element), this.element = r.element, yield this.$nextTick(), this.$refs.popup.show(r.originalEvent));
|
|
108
108
|
})), l.on("element.out", () => {
|
|
109
109
|
this.$refs.popup.hide(), this.element = {};
|
|
110
110
|
}), this.highlightFlow(this.flows), this.highlightActivity(this.activities);
|
|
@@ -140,8 +140,8 @@ const F = {
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}, u = {};
|
|
143
|
-
var
|
|
144
|
-
|
|
143
|
+
var S = /* @__PURE__ */ M(
|
|
144
|
+
$,
|
|
145
145
|
V,
|
|
146
146
|
k,
|
|
147
147
|
!1,
|
|
@@ -155,7 +155,7 @@ function B(t) {
|
|
|
155
155
|
this[e] = u[e];
|
|
156
156
|
}
|
|
157
157
|
const D = /* @__PURE__ */ function() {
|
|
158
|
-
return
|
|
158
|
+
return S.exports;
|
|
159
159
|
}();
|
|
160
160
|
export {
|
|
161
161
|
D as default
|
package/package.json
CHANGED
package/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@web-utils/component",
|
|
5
|
-
"version": "2.8.
|
|
5
|
+
"version": "2.8.8",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"description-markup": "markdown",
|
|
@@ -2741,6 +2741,9 @@
|
|
|
2741
2741
|
},
|
|
2742
2742
|
{
|
|
2743
2743
|
"name": "shown"
|
|
2744
|
+
},
|
|
2745
|
+
{
|
|
2746
|
+
"name": "node-mousemove"
|
|
2744
2747
|
}
|
|
2745
2748
|
],
|
|
2746
2749
|
"slots": [
|