@web-utils/component 2.9.10 → 2.9.11

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.
@@ -9,8 +9,8 @@ var u = (e, i, t) => i in e ? k(e, i, { enumerable: !0, configurable: !0, writab
9
9
  for (var t of f(i))
10
10
  V.call(i, t) && u(e, t, i[t]);
11
11
  return e;
12
- }, y = (e, i) => b(e, M(i));
13
- var v = (e, i, t) => new Promise((l, o) => {
12
+ }, v = (e, i) => b(e, M(i));
13
+ var y = (e, i, t) => new Promise((l, o) => {
14
14
  var h = (r) => {
15
15
  try {
16
16
  a(t.next(r));
@@ -105,14 +105,14 @@ const g = d.prototype._handleWheel, W = {
105
105
  },
106
106
  ctrlKey: !0
107
107
  });
108
- }, this.bpmnViewer = new $(y(w({}, this.options), {
108
+ }, this.bpmnViewer = new $(v(w({}, this.options), {
109
109
  container: this.$refs.container,
110
110
  additionalModules: [W]
111
111
  })), this.bpmnViewer.on("import.done", (e) => {
112
112
  const i = e.error, t = e.warnings;
113
113
  i ? this.$emit("error", i) : this.$emit("shown", t), this.bpmnViewer.get("canvas").zoom("fit-viewport", "center"), this.canvas = this.bpmnViewer.get("canvas"), this.elementRegistry = this.bpmnViewer.get("elementRegistry");
114
114
  const l = this.bpmnViewer.get("eventBus");
115
- l.on("element.mousemove", (n) => v(this, null, function* () {
115
+ l.on("element.mousemove", (n) => y(this, null, function* () {
116
116
  n.element.type === "bpmn:UserTask" && (this.$emit("node-mousemove", n.element), this.element = n.element, yield this.$nextTick(), this.$refs.popup.show(n.originalEvent));
117
117
  })), l.on("element.out", () => {
118
118
  this.$refs.popup.hide(), this.element = {};
@@ -163,7 +163,7 @@ const g = d.prototype._handleWheel, W = {
163
163
  methods: {
164
164
  highlightFlow(e, i) {
165
165
  this.elementRegistry.getAll().forEach((t) => {
166
- ["bpmn:StartEvent", "bpmn:UserTask", "bpmn:ExclusiveGateway", "bpmn:ParallelGateway", "bpmn:EndEvent"].includes(t.type) && (e.includes(t.id) && !i.includes(t.id) ? this.canvas.addMarker(t, "highlight") : this.canvas.removeMarker(t, "highlight")), t.type === "bpmn:SequenceFlow" && (e.includes(t.id) ? this.canvas.addMarker(t, "highlight-line") : this.canvas.removeMarker(t, "highlight-line")), t.type === "bpmn:UserTask" && (i.includes(t.id) && !e.includes(t.id) ? this.canvas.addMarker(t, "highlight-current") : this.canvas.removeMarker(t, "highlight-current"));
166
+ ["bpmn:StartEvent", "bpmn:UserTask", "bpmn:ExclusiveGateway", "bpmn:ParallelGateway", "bpmn:EndEvent"].includes(t.type) && (e.includes(t.id) && !i.includes(t.id) ? this.canvas.addMarker(t, "highlight") : this.canvas.removeMarker(t, "highlight")), t.type === "bpmn:SequenceFlow" && (e.includes(t.id) ? this.canvas.addMarker(t, "highlight-line") : this.canvas.removeMarker(t, "highlight-line")), t.type === "bpmn:UserTask" && (i.includes(t.id) ? this.canvas.addMarker(t, "highlight-current") : this.canvas.removeMarker(t, "highlight-current"));
167
167
  });
168
168
  }
169
169
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
3
  "description": "Web Components",
4
- "version": "2.9.10",
4
+ "version": "2.9.11",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
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.9.10",
5
+ "version": "2.9.11",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",