lyflowchart 1.0.23 → 1.0.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/dist/index.js CHANGED
@@ -39072,7 +39072,7 @@ const pF = ni({
39072
39072
  const t = je(null), n = je(null), r = je(!0), o = async (c) => {
39073
39073
  var d;
39074
39074
  try {
39075
- r.value = !0, await n.value.importXML(c.xmlData), await s(), ((d = c.nodeData) == null ? void 0 : d.length) > 0 && e.procInsId && await u(c.nodeData);
39075
+ r.value = !0, await n.value.importXML(c.xmlData), await s(), ((d = c.nodeData) == null ? void 0 : d.length) > 0 && await u(c.nodeData);
39076
39076
  } catch (v) {
39077
39077
  console.error("BPMN 加载失败:", v.message, v.warnings), FC.error("流程图加载失败");
39078
39078
  } finally {
@@ -39094,15 +39094,15 @@ const pF = ni({
39094
39094
  const d = n.value.get("canvas"), m = n.value.getDefinitions().rootElements;
39095
39095
  (y = m == null ? void 0 : m[0]) != null && y.flowElements && m[0].flowElements.forEach((b) => {
39096
39096
  var F, D, k;
39097
- const _ = c.find((T) => T.key === b.id), S = c.find((T) => !T.completed), A = c[c.length - 1];
39097
+ const _ = c.find((T) => T.key === b.name), S = c.find((T) => !T.completed), A = c[c.length - 1];
39098
39098
  b.$type === "bpmn:UserTask" ? _ && (d.addMarker(b.id, _.completed ? "highlight" : "highlight-todo"), (F = b.outgoing) == null || F.forEach((T) => {
39099
- const N = c.find((I) => I.key === T.targetRef.id);
39099
+ const N = c.find((I) => I.key === T.targetRef.name);
39100
39100
  N && (S && _.key === S.key && !S.completed ? (d.addMarker(T.id, S.completed ? "highlight" : "highlight-todo"), d.addMarker(T.targetRef.id, S.completed ? "highlight" : "highlight-todo")) : (d.addMarker(T.id, N.completed ? "highlight" : "highlight-todo"), d.addMarker(T.targetRef.id, N.completed ? "highlight" : "highlight-todo")));
39101
39101
  })) : b.$type === "bpmn:ExclusiveGateway" || b.$type === "bpmn:ParallelGateway" ? _ && (d.addMarker(b.id, _.completed ? "highlight" : "highlight-todo"), (D = b.outgoing) == null || D.forEach((T) => {
39102
- const N = c.find((I) => I.key === T.targetRef.id);
39102
+ const N = c.find((I) => I.key === T.targetRef.name);
39103
39103
  N && (d.addMarker(T.id, N.completed ? "highlight" : "highlight-todo"), d.addMarker(T.targetRef.id, N.completed ? "highlight" : "highlight-todo"));
39104
39104
  })) : b.$type === "bpmn:StartEvent" ? (k = b.outgoing) == null || k.forEach((T) => {
39105
- c.find((I) => I.key === T.targetRef.id) && (d.addMarker(T.id, "highlight"), d.addMarker(b.id, "highlight"));
39105
+ c.find((I) => I.key === T.targetRef.name) && (d.addMarker(T.id, "highlight"), d.addMarker(b.id, "highlight"));
39106
39106
  }) : b.$type === "bpmn:EndEvent" && (A == null ? void 0 : A.key) === b.id && A.completed && d.addMarker(b.id, "highlight");
39107
39107
  });
39108
39108
  };