ddy-process-h5 1.0.1-rc.3.117 → 1.0.1-rc.3.119

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": "ddy-process-h5",
3
- "version": "1.0.1-rc.3.117",
3
+ "version": "1.0.1-rc.3.119",
4
4
  "description": "> app端 流程插件",
5
5
  "main": "./ddy-process-h5.umd.cjs",
6
6
  "style": "./style.css",
@@ -15346,7 +15346,7 @@ function th(e, t) {
15346
15346
  }
15347
15347
  e.on("canvas.focus.changed", function(o) {
15348
15348
  o.focused ? (e.on("element.mousedown", 500, s), e.on("element.touchstart", 500, s)) : (e.off("element.mousedown", s), e.off("element.touchstart", s));
15349
- }), e.on("element.mousedown", 500, s), e.on("element.touchstart", 500, s);
15349
+ });
15350
15350
  function n(o) {
15351
15351
  var l = i.start, p = i.button, h = Bc(o), d = Mc(h, l);
15352
15352
  if (!i.dragging && ZA(d) > YA && (i.dragging = !0, p === 0 && WA(e), eh("grab")), i.dragging) {
@@ -17992,7 +17992,6 @@ const CC = {
17992
17992
  },
17993
17993
  data() {
17994
17994
  return {
17995
- floatAdd: !1,
17996
17995
  drawer: !1,
17997
17996
  isAdd: !1,
17998
17997
  viewer: null,
@@ -18052,13 +18051,12 @@ const CC = {
18052
18051
  const x = i.getAttribute("transform").match(/matrix\(([^)]+)\)/)[1].split(/\s*,\s*|\s+/);
18053
18052
  o = parseFloat(x[4]), l = parseFloat(x[5]);
18054
18053
  const M = this.getTransformMatrix(s.style.transform);
18055
- this.isAdd ? (this.floatAdd = !1, p = parseFloat(M[4]), h = parseFloat(M[5])) : (p = parseFloat(M[4]) + 30, h = parseFloat(M[5]) + 16, this.isAdd = !0, this.floatAdd = !0);
18054
+ this.isAdd ? (p = parseFloat(M[4]), h = parseFloat(M[5])) : (p = parseFloat(M[4]) + 30, h = parseFloat(M[5]) + 16, this.isAdd = !0);
18056
18055
  }), t.addEventListener("touchmove", (d) => {
18057
18056
  if (!n)
18058
18057
  return;
18059
- const y = d.touches[0];
18060
- let x = y.clientX - r, M = y.clientY - a;
18061
- l !== void 0 && (i.setAttribute("transform", `matrix(0.679276 0 0 0.679276 ${o + x} ${l + M})`), this.floatAdd, s.setAttribute("style", `position: absolute; width: 0px; height: 0px; transform: matrix(0.615, 0, 0, 0.615, ${p + x}, ${h + M});`)), e._cachedViewbox && (e._cachedViewbox.x = x, e._cachedViewbox.y = M), d.preventDefault();
18058
+ const y = d.touches[0], x = y.clientX - r, M = y.clientY - a;
18059
+ l !== void 0 && (i.setAttribute("transform", `matrix(0.679276 0 0 0.679276 ${o + x} ${l + M})`), s.setAttribute("style", `position: absolute; width: 0px; height: 0px; transform: matrix(0.615, 0, 0, 0.615, ${p + x}, ${h + M});`)), e._cachedViewbox && (e._cachedViewbox.x = x, e._cachedViewbox.y = M), d.preventDefault();
18062
18060
  }), t.addEventListener("touchend", () => {
18063
18061
  n = !1;
18064
18062
  });
@@ -18079,7 +18077,7 @@ const CC = {
18079
18077
  const r = i.get(n.id);
18080
18078
  if (r) {
18081
18079
  let { x: a, y: o, type: l } = r;
18082
- ["bpmn:StartEvent", "bpmn:EndEvent"].includes(l) ? (a = a - 45, o = o + 65) : ["bpmn:UserTask"].includes(l) && (a = a - 10, o = o + 100), s.add({
18080
+ ["bpmn:StartEvent", "bpmn:EndEvent"].includes(l) ? (a = a - 45, o = o + 65) : ["bpmn:UserTask"].includes(l) && (a = a - 10, o = o + 90), s.add({
18083
18081
  position: { x: a, y: o },
18084
18082
  html: n.tooltip
18085
18083
  });
@@ -18116,7 +18114,7 @@ var bC = /* @__PURE__ */ ve(
18116
18114
  AC,
18117
18115
  !1,
18118
18116
  wC,
18119
- "d7666982",
18117
+ "728e4284",
18120
18118
  null,
18121
18119
  null
18122
18120
  );
@@ -19203,7 +19201,7 @@ const jh = /* @__PURE__ */ function() {
19203
19201
  },
19204
19202
  selfList: {
19205
19203
  handler(e, t) {
19206
- e && e.length && (this.option = e, this.checkedItem = this.option[0], this.selectDefaultValue = this.checkedItem.id, this.$emit("change", this.checkedItem, this.option), this.handlefirstNode(this.checkedItem.id));
19204
+ e && e.length && (this.option = e, this.checkedItem = this.option[0], this.selectDefaultValue = this.checkedItem.id, this.$emit("change", this.checkedItem, this.option), this.handlefirstNode(this.checkedItem.id), this.getXmlByProcessDefId(this.checkedItem.id));
19207
19205
  },
19208
19206
  immediate: !0,
19209
19207
  deep: !0
@@ -19258,7 +19256,7 @@ const jh = /* @__PURE__ */ function() {
19258
19256
  key: t.processDefinitionKey,
19259
19257
  name: t.processDefinitionName,
19260
19258
  version: t.processDefinitionVersion
19261
- }, this.option = [this.checkedItem], this.selectDefaultValue = this.checkedItem.id, this.$emit("change", this.checkedItem, this.option), this.handlefirstNode(this.checkedItem.id), this.businessDeptIdData || this.getNodeUserDept();
19259
+ }, this.option = [this.checkedItem], this.selectDefaultValue = this.checkedItem.id, this.$emit("change", this.checkedItem, this.option), this.handlefirstNode(this.checkedItem.id), this.getXmlByProcessDefId(this.checkedItem.id), this.businessDeptIdData || this.getNodeUserDept();
19262
19260
  }
19263
19261
  });
19264
19262
  },
@@ -19278,7 +19276,7 @@ const jh = /* @__PURE__ */ function() {
19278
19276
  return;
19279
19277
  }
19280
19278
  await this.request.post("/bladex/blade-workflow/repository/getProcessDefList", e).then((t) => {
19281
- t.code == 200 && (this.option = t.data, t.data && t.data.length ? (this.handleTips("", !1, "success"), (this.isSelectFirst || t.data.length == 1) && (this.checkedItem = this.option[0], this.selectDefaultValue = this.checkedItem.id, this.$emit("change", this.checkedItem, this.option), this.handlefirstNode(this.checkedItem.id))) : (this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F", !0, "error"), this.option = []), this.businessDeptIdData || this.getNodeUserDept());
19279
+ t.code == 200 && (this.option = t.data, t.data && t.data.length ? (this.handleTips("", !1, "success"), (this.isSelectFirst || t.data.length == 1) && (this.checkedItem = this.option[0], this.selectDefaultValue = this.checkedItem.id, this.$emit("change", this.checkedItem, this.option), this.handlefirstNode(this.checkedItem.id), this.getXmlByProcessDefId(this.checkedItem.id))) : (this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F", !0, "error"), this.option = []), this.businessDeptIdData || this.getNodeUserDept());
19282
19280
  });
19283
19281
  },
19284
19282
  async getProcessInstance() {
@@ -19824,7 +19822,7 @@ var GC = function() {
19824
19822
  return e.handleOpenPerson(s);
19825
19823
  }
19826
19824
  }
19827
- }, [e._v(" \u8BBE\u7F6E ")])])]), s.routeTxt && s.routeTxt.length > 0 ? i("div", {
19825
+ }, [e._v(" \u8BBE\u7F6E ")])])]), s.routeTxt && s.routeTxt.length > 0 && s.userList && s.userList.length > 0 ? i("div", {
19828
19826
  staticClass: "views-items-includes"
19829
19827
  }, [i("div", {
19830
19828
  staticClass: "views-items-name2"
@@ -19843,7 +19841,7 @@ var GC = function() {
19843
19841
  }, [e._v(e._s(a.name))])]), o !== s.routeTxt.length - 1 ? i("div", {
19844
19842
  staticClass: "include include-assign",
19845
19843
  class: ["include-assign-" + (a.assigneeRetain ? "true" : "false")]
19846
- }, [e._v(e._s(s.assigneeRetain == "true" ? "\u4E14\u540C\u65F6\u6EE1\u8DB3" : "\u6216\u8005\u6EE1\u8DB3"))]) : e._e()]) : i("div", [e._v(" \u6570\u636E\u5F02\u5E38\uFF1A\u7F3A\u4E4F\u7528\u6237id\uFF0C\u8BF7\u624B\u52A8\u9009\u62E9\u4EBA\u5458 ")])]);
19844
+ }, [e._v(e._s(s.assigneeRetain == "true" ? "\u4E14\u540C\u65F6\u6EE1\u8DB3" : "\u6216\u8005\u6EE1\u8DB3"))]) : e._e()]) : e._e()]);
19847
19845
  }), 0)]) : e._e()]);
19848
19846
  })], 2) : e._e(), e.personList && e.personList.length ? i("div", {
19849
19847
  staticClass: "person-views"
@@ -20056,7 +20054,7 @@ var zC = /* @__PURE__ */ ve(
20056
20054
  qC,
20057
20055
  !1,
20058
20056
  HC,
20059
- "70a436ad",
20057
+ "4ca89976",
20060
20058
  null,
20061
20059
  null
20062
20060
  );
@@ -21013,7 +21011,7 @@ var hb = function() {
21013
21011
  staticClass: "items-person-name"
21014
21012
  }, [e._v(" " + e._s(e.partNode[s.id] ? e.partNode[s.id].join(",") : "") + " ")]) : s.routeTxt && s.routeTxt.userNames ? i("div", {
21015
21013
  staticClass: "items-person-name"
21016
- }, [e._v(" " + e._s(s.routeTxt.userNames) + " ")]) : e._e()], 2), s.routeTxt && s.routeTxt.length > 0 ? i("div", {
21014
+ }, [e._v(" " + e._s(s.routeTxt.userNames) + " ")]) : e._e()], 2), s.routeTxt && s.routeTxt.length > 0 && s.userList && s.userList.length > 0 ? i("div", {
21017
21015
  staticClass: "views-items-includes"
21018
21016
  }, [i("div", {
21019
21017
  staticClass: "views-items-name2"
@@ -21032,7 +21030,7 @@ var hb = function() {
21032
21030
  }, [e._v(e._s(n.name))])]), r !== s.routeTxt.length - 1 ? i("div", {
21033
21031
  staticClass: "include include-assign",
21034
21032
  class: ["include-assign-" + (n.assigneeRetain ? "true" : "false")]
21035
- }, [e._v(e._s(s.assigneeRetain == "true" ? "\u4E14\u540C\u65F6\u6EE1\u8DB3" : "\u6216\u8005\u6EE1\u8DB3"))]) : e._e()]) : i("div", [e._v(" \u6570\u636E\u5F02\u5E38\uFF1A\u7F3A\u4E4F\u7528\u6237id\uFF0C\u8BF7\u624B\u52A8\u9009\u62E9\u4EBA\u5458 ")])]);
21033
+ }, [e._v(e._s(s.assigneeRetain == "true" ? "\u4E14\u540C\u65F6\u6EE1\u8DB3" : "\u6216\u8005\u6EE1\u8DB3"))]) : e._e()]) : e._e()]);
21036
21034
  }), 0)]) : e._e()])]);
21037
21035
  }) : e._e(), e.checkType == "ExclusiveGatewayModel" && e.radioItem && e.radioItem.length ? e._l(e.radioItem, function(s) {
21038
21036
  return i("div", {
@@ -21075,7 +21073,7 @@ var hb = function() {
21075
21073
  staticClass: "items-person-name"
21076
21074
  }, [e._v(" " + e._s(e.partNode[s.id] ? e.partNode[s.id].join(",") : "") + " ")]) : s.routeTxt && s.routeTxt.userNames ? i("div", {
21077
21075
  staticClass: "items-person-name"
21078
- }, [e._v(" " + e._s(s.routeTxt.userNames) + " ")]) : e._e()], 2), s.routeTxt && s.routeTxt.length > 0 ? i("div", {
21076
+ }, [e._v(" " + e._s(s.routeTxt.userNames) + " ")]) : e._e()], 2), s.routeTxt && s.routeTxt.length > 0 && s.userList && s.userList.length > 0 ? i("div", {
21079
21077
  staticClass: "views-items-includes"
21080
21078
  }, [i("div", {
21081
21079
  staticClass: "views-items-name2"
@@ -21094,7 +21092,7 @@ var hb = function() {
21094
21092
  }, [e._v(e._s(n.name))])]), r !== s.routeTxt.length - 1 ? i("div", {
21095
21093
  staticClass: "include include-assign",
21096
21094
  class: ["include-assign-" + (n.assigneeRetain ? "true" : "false")]
21097
- }, [e._v(e._s(s.assigneeRetain == "true" ? "\u4E14\u540C\u65F6\u6EE1\u8DB3" : "\u6216\u8005\u6EE1\u8DB3"))]) : e._e()]) : i("div", [e._v(" \u6570\u636E\u5F02\u5E38\uFF1A\u7F3A\u4E4F\u7528\u6237id\uFF0C\u8BF7\u624B\u52A8\u9009\u62E9\u4EBA\u5458 ")])]);
21095
+ }, [e._v(e._s(s.assigneeRetain == "true" ? "\u4E14\u540C\u65F6\u6EE1\u8DB3" : "\u6216\u8005\u6EE1\u8DB3"))]) : e._e()]) : e._e()]);
21098
21096
  }), 0)]) : e._e()])]);
21099
21097
  }) : e._e()], 2), e.endNode ? i("div", {
21100
21098
  staticClass: "treenode-single"
@@ -21127,7 +21125,7 @@ var hb = function() {
21127
21125
  }
21128
21126
  }, [e._v(" \u8BBE\u7F6E ")])], i("div", {
21129
21127
  staticClass: "items-person-name"
21130
- }, [!e.partNode[s.id] && s.humanPerformerName == "\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D" && s.noPersonnel ? i("div", [e._v(" \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")]) : e._e(), e._v(" " + e._s(e.partNode[s.id] ? e.partNode[s.id].join(",") : "") + " ")])], 2) : e._e(), s.routeTxt && s.routeTxt.length > 0 ? i("div", {
21128
+ }, [!e.partNode[s.id] && s.humanPerformerName == "\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D" && s.noPersonnel ? i("div", [e._v(" \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")]) : e._e(), e._v(" " + e._s(e.partNode[s.id] ? e.partNode[s.id].join(",") : "") + " ")])], 2) : e._e(), s.routeTxt && s.routeTxt.length > 0 && s.userList && s.userList.length > 0 ? i("div", {
21131
21129
  staticClass: "views-items-includes"
21132
21130
  }, [i("div", {
21133
21131
  staticClass: "views-items-name2"
@@ -21146,7 +21144,7 @@ var hb = function() {
21146
21144
  }, [e._v(e._s(n.name))])]), r !== s.routeTxt.length - 1 ? i("div", {
21147
21145
  staticClass: "include include-assign",
21148
21146
  class: ["include-assign-" + (n.assigneeRetain ? "true" : "false")]
21149
- }, [e._v(e._s(s.assigneeRetain == "true" ? "\u4E14\u540C\u65F6\u6EE1\u8DB3" : "\u6216\u8005\u6EE1\u8DB3"))]) : e._e()]) : i("div", [e._v(" \u6570\u636E\u5F02\u5E38\uFF1A\u7F3A\u4E4F\u7528\u6237id\uFF0C\u8BF7\u624B\u52A8\u9009\u62E9\u4EBA\u5458 ")])]);
21147
+ }, [e._v(e._s(s.assigneeRetain == "true" ? "\u4E14\u540C\u65F6\u6EE1\u8DB3" : "\u6216\u8005\u6EE1\u8DB3"))]) : e._e()]) : e._e()]);
21150
21148
  }), 0)]) : e._e()])]);
21151
21149
  }), 0) : e._e(), i("TopPopup", {
21152
21150
  ref: "TopPopup",
@@ -21510,7 +21508,7 @@ var gb = /* @__PURE__ */ ve(
21510
21508
  fb,
21511
21509
  !1,
21512
21510
  yb,
21513
- "268dec3f",
21511
+ "68d4c92a",
21514
21512
  null,
21515
21513
  null
21516
21514
  );
@@ -25377,7 +25375,7 @@ function m5(e) {
25377
25375
  }
25378
25376
  const S5 = /* @__PURE__ */ function() {
25379
25377
  return f5.exports;
25380
- }(), g5 = "ddy-process-h5", y5 = "1.0.1-rc.3.117", v5 = "> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6", A5 = "./ddy-process-h5.umd.cjs", C5 = "./style.css", b5 = "module", w5 = {
25378
+ }(), g5 = "ddy-process-h5", y5 = "1.0.1-rc.3.119", v5 = "> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6", A5 = "./ddy-process-h5.umd.cjs", C5 = "./style.css", b5 = "module", w5 = {
25381
25379
  ".": {
25382
25380
  import: "./ddy-process-h5.js",
25383
25381
  require: "./ddy-process-h5.umd.cjs"