lyflowchart 1.0.105 → 1.0.107

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
@@ -32768,26 +32768,34 @@ var sk = /* @__PURE__ */ BO(ik, [["render", ok], ["__scopeId", "data-v-03e91aa5"
32768
32768
  lte: "<=",
32769
32769
  eq: "==",
32770
32770
  not_eq: "!="
32771
- }, dk = {}, fk = "request", pk = "useUserStore";
32772
- function mk(e) {
32771
+ }, dk = {}, fk = "request", pk = "useUserStore", mk = "getApiData";
32772
+ function hk(e) {
32773
32773
  return { install(t) {
32774
32774
  dk[fk] = e;
32775
32775
  } };
32776
32776
  }
32777
- function hk(e) {
32777
+ function gk(e) {
32778
32778
  return { install(t) {
32779
32779
  dk[pk] = e;
32780
32780
  } };
32781
32781
  }
32782
- function gk() {
32782
+ function _k(e) {
32783
+ return { install(t) {
32784
+ dk[mk] = e;
32785
+ } };
32786
+ }
32787
+ function vk() {
32783
32788
  return dk[fk];
32784
32789
  }
32785
- function _k() {
32790
+ function yk() {
32786
32791
  return dk[pk];
32787
32792
  }
32793
+ function bk() {
32794
+ return dk[mk];
32795
+ }
32788
32796
  //#endregion
32789
32797
  //#region src/components/Process/component/JsonTags2.vue?vue&type=script&lang.ts
32790
- var vk = c({
32798
+ var xk = c({
32791
32799
  name: "JsonTags2",
32792
32800
  props: {
32793
32801
  value: {
@@ -32838,8 +32846,8 @@ var vk = c({
32838
32846
  }
32839
32847
  };
32840
32848
  }
32841
- }), yk = ["aria-label"], bk = { style: { color: "gray" } }, xk = { class: "type" };
32842
- function Sk(e, t, r, i, c, l) {
32849
+ }), Sk = ["aria-label"], Ck = { style: { color: "gray" } }, wk = { class: "type" };
32850
+ function Tk(e, t, r, i, c, l) {
32843
32851
  let u = b("a-tag"), d = b("a-select");
32844
32852
  return h(), n(d, {
32845
32853
  value: e.value,
@@ -32853,16 +32861,16 @@ function Sk(e, t, r, i, c, l) {
32853
32861
  a("span", {
32854
32862
  role: "img",
32855
32863
  "aria-label": n
32856
- }, x(n), 9, yk),
32864
+ }, x(n), 9, Sk),
32857
32865
  t[0] ||= o(" \xA0\xA0 ", -1),
32858
- a("span", bk, x(r), 1)
32866
+ a("span", Ck, x(r), 1)
32859
32867
  ]),
32860
32868
  tagRender: w(({ value: t, label: n, closable: r, onClose: i, option: c }) => [s(u, {
32861
32869
  closable: r,
32862
32870
  style: { "margin-right": "3px" },
32863
32871
  onClose: i
32864
32872
  }, {
32865
- default: w(() => [o(x(e.getDisplay(t)) + " ", 1), a("span", xk, "[" + x(e.getType(t)) + "]", 1)]),
32873
+ default: w(() => [o(x(e.getDisplay(t)) + " ", 1), a("span", wk, "[" + x(e.getType(t)) + "]", 1)]),
32866
32874
  _: 2
32867
32875
  }, 1032, ["closable", "onClose"])]),
32868
32876
  _: 1
@@ -32874,7 +32882,7 @@ function Sk(e, t, r, i, c, l) {
32874
32882
  "placeholder"
32875
32883
  ]);
32876
32884
  }
32877
- var Ck = /* @__PURE__ */ BO(vk, [["render", Sk], ["__scopeId", "data-v-99361bec"]]), wk = c({
32885
+ var Ek = /* @__PURE__ */ BO(xk, [["render", Tk], ["__scopeId", "data-v-99361bec"]]), Dk = c({
32878
32886
  name: "ValueInput2",
32879
32887
  components: {},
32880
32888
  props: {
@@ -32941,19 +32949,19 @@ var Ck = /* @__PURE__ */ BO(vk, [["render", Sk], ["__scopeId", "data-v-99361bec"
32941
32949
  findOptions: d
32942
32950
  };
32943
32951
  }
32944
- }), Tk = { style: {
32952
+ }), Ok = { style: {
32945
32953
  "font-size": "14px",
32946
32954
  color: "#2f2f2f",
32947
32955
  overflow: "hidden",
32948
32956
  "text-overflow": "ellipsis",
32949
32957
  "white-space": "nowrap"
32950
- } }, Ek = { style: {
32958
+ } }, kk = { style: {
32951
32959
  "font-size": "12px",
32952
32960
  color: "#999",
32953
32961
  overflow: "hidden",
32954
32962
  "text-overflow": "ellipsis",
32955
32963
  "white-space": "nowrap"
32956
- } }, Dk = {
32964
+ } }, Ak = {
32957
32965
  key: 0,
32958
32966
  style: {
32959
32967
  "font-size": "12px",
@@ -32962,8 +32970,8 @@ var Ck = /* @__PURE__ */ BO(vk, [["render", Sk], ["__scopeId", "data-v-99361bec"
32962
32970
  "text-overflow": "ellipsis",
32963
32971
  "white-space": "nowrap"
32964
32972
  }
32965
- }, Ok = ["title"], kk = { style: { color: "gray" } };
32966
- function Ak(e, t, c, l, u, d) {
32973
+ }, jk = ["title"], Mk = { style: { color: "gray" } };
32974
+ function Nk(e, t, c, l, u, d) {
32967
32975
  let p = b("CheckCircleOutlined"), m = b("a-input-search"), g = b("a-auto-complete");
32968
32976
  return h(), n(g, {
32969
32977
  value: e.innerValue,
@@ -32973,9 +32981,9 @@ function Ak(e, t, c, l, u, d) {
32973
32981
  onSearch: e.handleSearch
32974
32982
  }, {
32975
32983
  option: w(({ value: e, label: t, tableTitle: s, tableUse: c }) => [
32976
- a("div", Tk, x(t), 1),
32977
- a("div", Ek, x(e), 1),
32978
- s ? (h(), i("div", Dk, [c ? (h(), n(p, {
32984
+ a("div", Ok, x(t), 1),
32985
+ a("div", kk, x(e), 1),
32986
+ s ? (h(), i("div", Ak, [c ? (h(), n(p, {
32979
32987
  key: 0,
32980
32988
  style: { color: "#389e0d" },
32981
32989
  title: "列表使用了该字段"
@@ -32990,7 +32998,7 @@ function Ak(e, t, c, l, u, d) {
32990
32998
  suffix: w(() => [a("span", {
32991
32999
  style: { color: "gray" },
32992
33000
  title: e.findOptions(e.value)?.label
32993
- }, x(e.findOptions(e.value)?.label), 9, Ok), a("span", kk, x(e.valueType), 1)]),
33001
+ }, x(e.findOptions(e.value)?.label), 9, jk), a("span", Mk, x(e.valueType), 1)]),
32994
33002
  _: 1
32995
33003
  }, 8, [
32996
33004
  "placeholder",
@@ -33006,7 +33014,7 @@ function Ak(e, t, c, l, u, d) {
33006
33014
  "onSearch"
33007
33015
  ]);
33008
33016
  }
33009
- var jk = /* @__PURE__ */ BO(wk, [["render", Ak]]), Mk = c({
33017
+ var Pk = /* @__PURE__ */ BO(Dk, [["render", Nk]]), Fk = c({
33010
33018
  props: {
33011
33019
  value: {
33012
33020
  type: String,
@@ -33056,19 +33064,19 @@ var jk = /* @__PURE__ */ BO(wk, [["render", Ak]]), Mk = c({
33056
33064
  findColumn: a
33057
33065
  };
33058
33066
  }
33059
- }), Nk = { style: {
33067
+ }), Ik = { style: {
33060
33068
  "font-size": "14px",
33061
33069
  color: "#2f2f2f",
33062
33070
  overflow: "hidden",
33063
33071
  "text-overflow": "ellipsis",
33064
33072
  "white-space": "nowrap"
33065
- } }, Pk = { style: {
33073
+ } }, Lk = { style: {
33066
33074
  "font-size": "12px",
33067
33075
  color: "#999",
33068
33076
  overflow: "hidden",
33069
33077
  "text-overflow": "ellipsis",
33070
33078
  "white-space": "nowrap"
33071
- } }, Fk = {
33079
+ } }, Rk = {
33072
33080
  key: 0,
33073
33081
  style: {
33074
33082
  "font-size": "12px",
@@ -33077,8 +33085,8 @@ var jk = /* @__PURE__ */ BO(wk, [["render", Ak]]), Mk = c({
33077
33085
  "text-overflow": "ellipsis",
33078
33086
  "white-space": "nowrap"
33079
33087
  }
33080
- }, Ik = ["title"];
33081
- function Lk(e, t, c, l, u, d) {
33088
+ }, zk = ["title"];
33089
+ function Bk(e, t, c, l, u, d) {
33082
33090
  let f = b("CheckCircleOutlined"), p = b("LoadingOutlined"), m = b("a-input-search"), g = b("a-auto-complete");
33083
33091
  return h(), n(g, {
33084
33092
  value: e.value,
@@ -33089,9 +33097,9 @@ function Lk(e, t, c, l, u, d) {
33089
33097
  onSearch: e.handleColumnSearch
33090
33098
  }, {
33091
33099
  option: w(({ value: e, label: t, tableTitle: s, tableUse: c }) => [
33092
- a("div", Nk, x(t), 1),
33093
- a("div", Pk, x(e), 1),
33094
- s ? (h(), i("div", Fk, [c ? (h(), n(f, {
33100
+ a("div", Ik, x(t), 1),
33101
+ a("div", Lk, x(e), 1),
33102
+ s ? (h(), i("div", Rk, [c ? (h(), n(f, {
33095
33103
  key: 0,
33096
33104
  style: { color: "#389e0d" },
33097
33105
  title: "列表使用了该字段"
@@ -33107,7 +33115,7 @@ function Lk(e, t, c, l, u, d) {
33107
33115
  key: 1,
33108
33116
  title: e.findColumn(e.value)?.label,
33109
33117
  class: "column-name-field-suffix"
33110
- }, x(e.findColumn(e.value)?.label), 9, Ik))]),
33118
+ }, x(e.findColumn(e.value)?.label), 9, zk))]),
33111
33119
  _: 1
33112
33120
  }, 8, [
33113
33121
  "placeholder",
@@ -33125,7 +33133,7 @@ function Lk(e, t, c, l, u, d) {
33125
33133
  }
33126
33134
  //#endregion
33127
33135
  //#region src/components/Process/panel/conditionPanel.vue?vue&type=script&lang.ts
33128
- var Rk = c({
33136
+ var Vk = c({
33129
33137
  name: "FlowConditionPanel",
33130
33138
  computed: { FieldTypeOperatorMap() {
33131
33139
  return ck;
@@ -33147,9 +33155,9 @@ var Rk = c({
33147
33155
  }
33148
33156
  },
33149
33157
  components: {
33150
- JsonTags2: Ck,
33151
- ValueInput2: jk,
33152
- ColumnNameField2: /* @__PURE__ */ BO(Mk, [["render", Lk], ["__scopeId", "data-v-d8b28df1"]]),
33158
+ JsonTags2: Ek,
33159
+ ValueInput2: Pk,
33160
+ ColumnNameField2: /* @__PURE__ */ BO(Fk, [["render", Bk], ["__scopeId", "data-v-d8b28df1"]]),
33153
33161
  QuestionCircleOutlined: ee
33154
33162
  },
33155
33163
  setup(e) {
@@ -33184,9 +33192,9 @@ var Rk = c({
33184
33192
  else if (t.type == "timerangepicker") e.format = t.format, e.valueFormat = t.valueFormat, e.value = [];
33185
33193
  else if (t.type == "remoteselectpro") {
33186
33194
  e.labelKey = t.labelKey, e.valueKey = t.valueKey;
33187
- let n = _k(), r;
33195
+ let n = yk(), r;
33188
33196
  r = t.queryType == "advanced" ? t.searchConditions : t.simpleSearchConditions;
33189
- let i = (await gk().post(t.postUrl, {
33197
+ let i = (await vk().post(t.postUrl, {
33190
33198
  ...r,
33191
33199
  org_id: n.current_org?.id
33192
33200
  }, {})).data.map((e) => ({
@@ -33196,9 +33204,9 @@ var Rk = c({
33196
33204
  p.value[e.field_name] = i, ue.success("获取数据成功");
33197
33205
  } else if (t.type == "remotetreeselectpro") {
33198
33206
  e.labelKey = t.labelKey, e.valueKey = t.valueKey;
33199
- let n = _k(), r;
33207
+ let n = yk(), r;
33200
33208
  r = t.queryType == "advanced" ? t.searchConditions : t.simpleSearchConditions;
33201
- let i = (await gk().post(t.postUrl, {
33209
+ let i = (await vk().post(t.postUrl, {
33202
33210
  ...r,
33203
33211
  org_id: n.current_org?.id
33204
33212
  }, {})).data.map((e) => ({
@@ -33208,9 +33216,9 @@ var Rk = c({
33208
33216
  p.value[e.field_name] = i, ue.success("获取数据成功");
33209
33217
  } else if (t.type == "remotecascaderpro") {
33210
33218
  e.value = [], e.labelKey = t.labelKey, e.valueKey = t.valueKey;
33211
- let n = _k(), r;
33219
+ let n = yk(), r;
33212
33220
  r = t.queryType == "advanced" ? t.searchConditions : t.simpleSearchConditions;
33213
- let i = (await gk().post(t.postUrl, {
33221
+ let i = (await vk().post(t.postUrl, {
33214
33222
  ...r,
33215
33223
  org_id: n.current_org?.id
33216
33224
  }, {})).data.map((e) => ({
@@ -33519,7 +33527,7 @@ var Rk = c({
33519
33527
  });
33520
33528
  //#endregion
33521
33529
  //#region src/components/Process/panel/conditionPanel.vue
33522
- function zk(t, c, l, u, d, f) {
33530
+ function Hk(t, c, l, u, d, f) {
33523
33531
  let p = b("QuestionCircleOutlined"), m = b("a-tooltip"), g = b("a-select-option"), _ = b("a-select"), v = b("a-form-item"), S = b("a-button"), C = b("a-space"), T = b("plus-outlined"), E = b("delete-outlined"), D = b("a-col"), O = b("ColumnNameField2"), k = b("a-input-group"), ee = b("a-space-compact"), te = b("a-input"), ne = b("a-textarea"), re = b("a-input-password"), ie = b("a-input-number"), ae = b("JsonTags2"), oe = b("value-input-2"), se = b("a-tree-select"), ce = b("a-cascader"), le = b("a-range-picker"), ue = b("a-date-picker"), de = b("a-time-range-picker"), fe = b("a-time-picker"), pe = b("a-row"), me = b("a-card"), he = b("a-form");
33524
33532
  return h(), i("div", null, [s(he, {
33525
33533
  "label-col": { span: 6 },
@@ -34126,7 +34134,7 @@ function zk(t, c, l, u, d, f) {
34126
34134
  _: 1
34127
34135
  })]);
34128
34136
  }
34129
- var Bk = /* @__PURE__ */ BO(Rk, [["render", zk], ["__scopeId", "data-v-8dd0cecd"]]), Vk = {
34137
+ var Uk = /* @__PURE__ */ BO(Vk, [["render", Hk], ["__scopeId", "data-v-8dd0cecd"]]), Wk = {
34130
34138
  "Activate the global connect tool": "激活全局连接工具",
34131
34139
  "Append {type}": "添加 {type}",
34132
34140
  "Append Task": "添加任务",
@@ -34353,7 +34361,7 @@ var Bk = /* @__PURE__ */ BO(Rk, [["render", zk], ["__scopeId", "data-v-8dd0cecd"
34353
34361
  "Process is missing end event": "检查流程内是否存在结束事件",
34354
34362
  "Start event must be blank": "检查子流程的开始事件是否具有启动条件",
34355
34363
  "Gateway is superfluous. It only has one source and target.": "检查网关是否同时只有一个流入和流出路径,否则需要移除"
34356
- }, Hk = {
34364
+ }, Gk = {
34357
34365
  Process: "流程",
34358
34366
  StartEvent: "开始事件",
34359
34367
  IntermediateThrowEvent: "中间事件",
@@ -34375,12 +34383,12 @@ var Bk = /* @__PURE__ */ BO(Rk, [["render", zk], ["__scopeId", "data-v-8dd0cecd"
34375
34383
  };
34376
34384
  //#endregion
34377
34385
  //#region src/components/Process/common/bpmnUtils.js
34378
- function Uk(e) {
34379
- return Hk[e];
34386
+ function Kk(e) {
34387
+ return Gk[e];
34380
34388
  }
34381
34389
  //#endregion
34382
34390
  //#region src/components/Process/designer.vue?vue&type=script&lang.ts
34383
- var Wk = c({
34391
+ var qk = c({
34384
34392
  name: "Designer",
34385
34393
  props: {
34386
34394
  formData: {
@@ -34397,7 +34405,7 @@ var Wk = c({
34397
34405
  components: {
34398
34406
  CommonPanel: HO,
34399
34407
  UserTaskPanel: sk,
34400
- ConditionPanel: Bk
34408
+ ConditionPanel: Uk
34401
34409
  },
34402
34410
  setup() {
34403
34411
  let e = v(["common", "Task"]), t = v(""), n = v(""), r = v(!1), { modelerStore: i } = RO, a = () => {
@@ -34429,7 +34437,7 @@ var Wk = c({
34429
34437
  elementId: t,
34430
34438
  elementType: n,
34431
34439
  conditionVisible: r,
34432
- translateNodeName: Uk,
34440
+ translateNodeName: Kk,
34433
34441
  onUpdateFlowType: (e) => {
34434
34442
  if (n.value !== "SequenceFlow") {
34435
34443
  r.value = !1;
@@ -34439,10 +34447,10 @@ var Wk = c({
34439
34447
  }
34440
34448
  };
34441
34449
  }
34442
- }), Gk = { class: "card-header" };
34443
- function Kk(e, t, o, c, l, u) {
34450
+ }), Jk = { class: "card-header" };
34451
+ function Yk(e, t, o, c, l, u) {
34444
34452
  let d = b("common-panel"), f = b("a-collapse-panel"), p = b("user-task-panel"), m = b("condition-panel"), g = b("a-collapse");
34445
- return h(), i("div", null, [a("div", Gk, [a("span", null, x(e.translateNodeName(e.elementType.value)), 1)]), s(g, {
34453
+ return h(), i("div", null, [a("div", Jk, [a("span", null, x(e.translateNodeName(e.elementType.value)), 1)]), s(g, {
34446
34454
  activeKey: e.activeName,
34447
34455
  "onUpdate:activeKey": t[0] ||= (t) => e.activeName = t
34448
34456
  }, {
@@ -34483,17 +34491,17 @@ function Kk(e, t, o, c, l, u) {
34483
34491
  _: 1
34484
34492
  }, 8, ["activeKey"])]);
34485
34493
  }
34486
- var qk = /* @__PURE__ */ BO(Wk, [["render", Kk], ["__scopeId", "data-v-fcdd90e8"]]);
34494
+ var Xk = /* @__PURE__ */ BO(qk, [["render", Yk], ["__scopeId", "data-v-fcdd90e8"]]);
34487
34495
  //#endregion
34488
34496
  //#region src/components/Process/customPanel/customTranslate.js
34489
- function Jk(e, t) {
34490
- return t ||= {}, e = Vk[e] || e, e.replace(/{([^}]+)}/g, function(e, n) {
34497
+ function Zk(e, t) {
34498
+ return t ||= {}, e = Wk[e] || e, e.replace(/{([^}]+)}/g, function(e, n) {
34491
34499
  return t[n] || "{" + n + "}";
34492
34500
  });
34493
34501
  }
34494
34502
  //#endregion
34495
34503
  //#region src/components/Process/flowable/init.js
34496
- function Yk(e, t) {
34504
+ function Qk(e, t) {
34497
34505
  return `<?xml version="1.0" encoding="UTF-8"?>
34498
34506
  <definitions
34499
34507
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
@@ -34523,7 +34531,7 @@ function Yk(e, t) {
34523
34531
  </definitions>
34524
34532
  `;
34525
34533
  }
34526
- var Xk = {
34534
+ var $k = {
34527
34535
  name: "Flowable",
34528
34536
  uri: "http://flowable.org/bpmn",
34529
34537
  prefix: "flowable",
@@ -35693,7 +35701,7 @@ var Xk = {
35693
35701
  };
35694
35702
  //#endregion
35695
35703
  //#region src/components/Process/customPanel/CustomContextPad.js
35696
- function Zk(e, t, n, r, i, a, o, s, c, l, u, d) {
35704
+ function eA(e, t, n, r, i, a, o, s, c, l, u, d) {
35697
35705
  e ||= {}, r.registerProvider(this), this._contextPad = r, this._modeling = i, this._elementFactory = a, this._connect = o, this._create = s, this._popupMenu = c, this._canvas = l, this._rules = u, this._translate = d, e.autoPlace !== !1 && (this._autoPlace = t.get("autoPlace", !1)), n.on("create.end", 250, function(e) {
35698
35706
  var t = e.context.shape;
35699
35707
  if (!(!cc(e) || !r.isOpen(t))) {
@@ -35702,7 +35710,7 @@ function Zk(e, t, n, r, i, a, o, s, c, l, u, d) {
35702
35710
  }
35703
35711
  });
35704
35712
  }
35705
- Zk.$inject = [
35713
+ eA.$inject = [
35706
35714
  "config.contextPad",
35707
35715
  "injector",
35708
35716
  "eventBus",
@@ -35715,7 +35723,7 @@ Zk.$inject = [
35715
35723
  "canvas",
35716
35724
  "rules",
35717
35725
  "translate"
35718
- ], Zk.prototype.getMultiElementContextPadEntries = function(e) {
35726
+ ], eA.prototype.getMultiElementContextPadEntries = function(e) {
35719
35727
  var t = this._modeling, n = {};
35720
35728
  return this._isDeleteAllowed(e) && L(n, { delete: {
35721
35729
  group: "edit",
@@ -35725,12 +35733,12 @@ Zk.$inject = [
35725
35733
  t.removeElements(n.slice());
35726
35734
  } }
35727
35735
  } }), n;
35728
- }, Zk.prototype._isDeleteAllowed = function(e) {
35736
+ }, eA.prototype._isDeleteAllowed = function(e) {
35729
35737
  var t = this._rules.allowed("elements.delete", { elements: e });
35730
35738
  return j(t) ? Le(t, function(e) {
35731
- return $k(t, e);
35739
+ return nA(t, e);
35732
35740
  }) : t;
35733
- }, Zk.prototype.getContextPadEntries = function(e) {
35741
+ }, eA.prototype.getContextPadEntries = function(e) {
35734
35742
  var t = this._contextPad, n = this._modeling, r = this._elementFactory, i = this._connect, a = this._create, o = this._popupMenu, s = this._rules, c = this._autoPlace, l = this._translate, u = {};
35735
35743
  if (e.type === "label") return u;
35736
35744
  var d = e.businessObject;
@@ -35805,7 +35813,7 @@ Zk.$inject = [
35805
35813
  "append.timer-intermediate-event": h("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-timer", l("Append TimerIntermediateCatchEvent"), { eventDefinitionType: "bpmn:TimerEventDefinition" }),
35806
35814
  "append.condition-intermediate-event": h("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-condition", l("Append ConditionIntermediateCatchEvent"), { eventDefinitionType: "bpmn:ConditionalEventDefinition" }),
35807
35815
  "append.signal-intermediate-event": h("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-signal", l("Append SignalIntermediateCatchEvent"), { eventDefinitionType: "bpmn:SignalEventDefinition" })
35808
- }) : Qk(d, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? L(u, { "append.compensation-activity": h("bpmn:Task", "bpmn-icon-task", l("Append compensation activity"), { isForCompensation: !0 }) }) : !Y(d, "bpmn:EndEvent") && !d.isForCompensation && !Qk(d, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Vo(d) && L(u, {
35816
+ }) : tA(d, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? L(u, { "append.compensation-activity": h("bpmn:Task", "bpmn-icon-task", l("Append compensation activity"), { isForCompensation: !0 }) }) : !Y(d, "bpmn:EndEvent") && !d.isForCompensation && !tA(d, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Vo(d) && L(u, {
35809
35817
  "append.end-event": h("bpmn:EndEvent", "bpmn-icon-end-event-none", l("Append EndEvent")),
35810
35818
  "append.gateway": h("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", l("Append Gateway")),
35811
35819
  "append.append-user-task": h("bpmn:UserTask", "bpmn-icon-user-task", "添加用户任务"),
@@ -35866,21 +35874,21 @@ Zk.$inject = [
35866
35874
  action: { click: p }
35867
35875
  } }), u;
35868
35876
  };
35869
- function Qk(e, t, n) {
35877
+ function tA(e, t, n) {
35870
35878
  var r = e.$instanceOf(t), i = !1;
35871
35879
  return F(e.eventDefinitions || [], function(e) {
35872
35880
  e.$type === n && (i = !0);
35873
35881
  }), r && i;
35874
35882
  }
35875
- function $k(e, t) {
35883
+ function nA(e, t) {
35876
35884
  return e.indexOf(t) !== -1;
35877
35885
  }
35878
35886
  //#endregion
35879
35887
  //#region src/components/Process/customPanel/CustomPalette.js
35880
- function eA(e, t, n, r, i, a, o, s) {
35888
+ function rA(e, t, n, r, i, a, o, s) {
35881
35889
  this.create = t, this.elementFactory = n, this.handTool = r, this.lassoTool = i, this.spaceTool = a, this.globalConnect = o, this.translate = s, e.registerProvider(this);
35882
35890
  }
35883
- eA.$inject = [
35891
+ rA.$inject = [
35884
35892
  "palette",
35885
35893
  "create",
35886
35894
  "elementFactory",
@@ -35889,7 +35897,7 @@ eA.$inject = [
35889
35897
  "spaceTool",
35890
35898
  "globalConnect",
35891
35899
  "translate"
35892
- ], eA.prototype.getPaletteEntries = function(e) {
35900
+ ], rA.prototype.getPaletteEntries = function(e) {
35893
35901
  let { create: t, elementFactory: n, handTool: r, lassoTool: i, spaceTool: a, globalConnect: o, translate: s } = this;
35894
35902
  function c(e, r, i, a, o) {
35895
35903
  function c(r) {
@@ -35952,11 +35960,11 @@ eA.$inject = [
35952
35960
  };
35953
35961
  //#endregion
35954
35962
  //#region src/components/Process/customPanel/index.js
35955
- var tA = {
35963
+ var iA = {
35956
35964
  __init__: ["paletteProvider", "contextPadProvider"],
35957
- paletteProvider: ["type", eA],
35958
- contextPadProvider: ["type", Zk]
35959
- }, nA = /* @__PURE__ */ _e(((e, t) => {
35965
+ paletteProvider: ["type", rA],
35966
+ contextPadProvider: ["type", eA]
35967
+ }, aA = /* @__PURE__ */ _e(((e, t) => {
35960
35968
  t.exports = function e(t, n) {
35961
35969
  n(t);
35962
35970
  var r = t.$descriptor;
@@ -35969,8 +35977,8 @@ var tA = {
35969
35977
  }
35970
35978
  });
35971
35979
  };
35972
- })), rA = /* @__PURE__ */ _e(((e, t) => {
35973
- var n = nA(), r = class {
35980
+ })), oA = /* @__PURE__ */ _e(((e, t) => {
35981
+ var n = aA(), r = class {
35974
35982
  constructor({ moddleRoot: e, rule: t }) {
35975
35983
  this.rule = t, this.moddleRoot = e, this.messages = [], this.report = this.report.bind(this);
35976
35984
  }
@@ -35988,8 +35996,8 @@ var tA = {
35988
35996
  });
35989
35997
  return n(e, (e) => t.check(e, i)), i.messages;
35990
35998
  };
35991
- })), iA = /* @__PURE__ */ _e(((e, t) => {
35992
- var n = rA(), r = {
35999
+ })), sA = /* @__PURE__ */ _e(((e, t) => {
36000
+ var n = oA(), r = {
35993
36001
  0: "off",
35994
36002
  1: "warn",
35995
36003
  2: "error"
@@ -36116,101 +36124,101 @@ var tA = {
36116
36124
  function o(e) {
36117
36125
  return e.startsWith("bpmnlint-plugin-") ? e.substring(16) : e;
36118
36126
  }
36119
- })), aA = (/* @__PURE__ */ _e(((e, t) => {
36120
- t.exports = { Linter: iA() };
36121
- })))(), oA = Object.prototype.toString, sA = Object.prototype.hasOwnProperty;
36122
- function cA(e) {
36127
+ })), cA = (/* @__PURE__ */ _e(((e, t) => {
36128
+ t.exports = { Linter: sA() };
36129
+ })))(), lA = Object.prototype.toString, uA = Object.prototype.hasOwnProperty;
36130
+ function dA(e) {
36123
36131
  return e === void 0;
36124
36132
  }
36125
- function lA(e) {
36126
- return oA.call(e) === "[object Array]";
36133
+ function fA(e) {
36134
+ return lA.call(e) === "[object Array]";
36127
36135
  }
36128
- function uA(e) {
36129
- var t = oA.call(e);
36136
+ function pA(e) {
36137
+ var t = lA.call(e);
36130
36138
  return t === "[object Function]" || t === "[object AsyncFunction]" || t === "[object GeneratorFunction]" || t === "[object AsyncGeneratorFunction]" || t === "[object Proxy]";
36131
36139
  }
36132
- function dA(e, t) {
36133
- return sA.call(e, t);
36140
+ function mA(e, t) {
36141
+ return uA.call(e, t);
36134
36142
  }
36135
- function fA(e, t) {
36143
+ function hA(e, t) {
36136
36144
  var n, r;
36137
- if (!cA(e)) {
36138
- var i = lA(e) ? _A : gA;
36139
- for (var a in e) if (dA(e, a) && (n = e[a], r = t(n, i(a)), r === !1)) return n;
36145
+ if (!dA(e)) {
36146
+ var i = fA(e) ? bA : yA;
36147
+ for (var a in e) if (mA(e, a) && (n = e[a], r = t(n, i(a)), r === !1)) return n;
36140
36148
  }
36141
36149
  }
36142
- function pA(e, t, n) {
36143
- return fA(e, function(e, r) {
36150
+ function gA(e, t, n) {
36151
+ return hA(e, function(e, r) {
36144
36152
  n = t(n, e, r);
36145
36153
  }), n;
36146
36154
  }
36147
- function mA(e, t) {
36155
+ function _A(e, t) {
36148
36156
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
36149
- return t = hA(t), fA(e, function(e) {
36157
+ return t = vA(t), hA(e, function(e) {
36150
36158
  var r = t(e) || "_", i = n[r];
36151
36159
  i ||= n[r] = [], i.push(e);
36152
36160
  }), n;
36153
36161
  }
36154
- function hA(e) {
36155
- return uA(e) ? e : function(t) {
36162
+ function vA(e) {
36163
+ return pA(e) ? e : function(t) {
36156
36164
  return t[e];
36157
36165
  };
36158
36166
  }
36159
- function gA(e) {
36167
+ function yA(e) {
36160
36168
  return e;
36161
36169
  }
36162
- function _A(e) {
36170
+ function bA(e) {
36163
36171
  return Number(e);
36164
36172
  }
36165
- function vA() {
36166
- return vA = Object.assign || function(e) {
36173
+ function xA() {
36174
+ return xA = Object.assign || function(e) {
36167
36175
  for (var t = 1; t < arguments.length; t++) {
36168
36176
  var n = arguments[t];
36169
36177
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
36170
36178
  }
36171
36179
  return e;
36172
- }, vA.apply(this, arguments);
36180
+ }, xA.apply(this, arguments);
36173
36181
  }
36174
- function yA(e) {
36182
+ function SA(e) {
36175
36183
  var t = [...arguments].slice(1);
36176
- return vA.apply(void 0, [e].concat(t));
36184
+ return xA.apply(void 0, [e].concat(t));
36177
36185
  }
36178
36186
  //#endregion
36179
36187
  //#region node_modules/bpmn-js-bpmnlint/node_modules/min-dom/dist/index.esm.js
36180
- var bA = [].indexOf, xA = function(e, t) {
36181
- if (bA) return e.indexOf(t);
36188
+ var CA = [].indexOf, wA = function(e, t) {
36189
+ if (CA) return e.indexOf(t);
36182
36190
  for (var n = 0; n < e.length; ++n) if (e[n] === t) return n;
36183
36191
  return -1;
36184
- }, SA = /\s+/, CA = Object.prototype.toString;
36185
- function wA(e) {
36192
+ }, TA = /\s+/, EA = Object.prototype.toString;
36193
+ function DA(e) {
36186
36194
  if (!e || !e.nodeType) throw Error("A DOM element reference is required");
36187
36195
  this.el = e, this.list = e.classList;
36188
36196
  }
36189
- wA.prototype.add = function(e) {
36197
+ DA.prototype.add = function(e) {
36190
36198
  if (this.list) return this.list.add(e), this;
36191
36199
  var t = this.array();
36192
- return ~xA(t, e) || t.push(e), this.el.className = t.join(" "), this;
36193
- }, wA.prototype.remove = function(e) {
36194
- if (CA.call(e) == "[object RegExp]") return this.removeMatching(e);
36200
+ return ~wA(t, e) || t.push(e), this.el.className = t.join(" "), this;
36201
+ }, DA.prototype.remove = function(e) {
36202
+ if (EA.call(e) == "[object RegExp]") return this.removeMatching(e);
36195
36203
  if (this.list) return this.list.remove(e), this;
36196
- var t = this.array(), n = xA(t, e);
36204
+ var t = this.array(), n = wA(t, e);
36197
36205
  return ~n && t.splice(n, 1), this.el.className = t.join(" "), this;
36198
- }, wA.prototype.removeMatching = function(e) {
36206
+ }, DA.prototype.removeMatching = function(e) {
36199
36207
  for (var t = this.array(), n = 0; n < t.length; n++) e.test(t[n]) && this.remove(t[n]);
36200
36208
  return this;
36201
- }, wA.prototype.toggle = function(e, t) {
36209
+ }, DA.prototype.toggle = function(e, t) {
36202
36210
  return this.list ? ((t === void 0 || t !== this.list.toggle(e, t)) && this.list.toggle(e), this) : (t === void 0 ? this.has(e) ? this.remove(e) : this.add(e) : t ? this.add(e) : this.remove(e), this);
36203
- }, wA.prototype.array = function() {
36204
- var e = (this.el.getAttribute("class") || "").replace(/^\s+|\s+$/g, "").split(SA);
36211
+ }, DA.prototype.array = function() {
36212
+ var e = (this.el.getAttribute("class") || "").replace(/^\s+|\s+$/g, "").split(TA);
36205
36213
  return e[0] === "" && e.shift(), e;
36206
- }, wA.prototype.has = wA.prototype.contains = function(e) {
36207
- return this.list ? this.list.contains(e) : !!~xA(this.array(), e);
36214
+ }, DA.prototype.has = DA.prototype.contains = function(e) {
36215
+ return this.list ? this.list.contains(e) : !!~wA(this.array(), e);
36208
36216
  };
36209
- var TA = typeof Element < "u" ? Element.prototype : {};
36210
- TA.matches || TA.matchesSelector || TA.webkitMatchesSelector || TA.mozMatchesSelector || TA.msMatchesSelector || TA.oMatchesSelector, window.addEventListener, window.removeEventListener;
36211
- var EA = AA, DA = !1, OA;
36212
- typeof document < "u" && (OA = document.createElement("div"), OA.innerHTML = " <link/><table></table><a href=\"/a\">a</a><input type=\"checkbox\"/>", DA = !OA.getElementsByTagName("link").length, OA = void 0);
36213
- var kA = {
36217
+ var OA = typeof Element < "u" ? Element.prototype : {};
36218
+ OA.matches || OA.matchesSelector || OA.webkitMatchesSelector || OA.mozMatchesSelector || OA.msMatchesSelector || OA.oMatchesSelector, window.addEventListener, window.removeEventListener;
36219
+ var kA = NA, AA = !1, jA;
36220
+ typeof document < "u" && (jA = document.createElement("div"), jA.innerHTML = " <link/><table></table><a href=\"/a\">a</a><input type=\"checkbox\"/>", AA = !jA.getElementsByTagName("link").length, jA = void 0);
36221
+ var MA = {
36214
36222
  legend: [
36215
36223
  1,
36216
36224
  "<fieldset>",
@@ -36226,7 +36234,7 @@ var kA = {
36226
36234
  "<table><tbody></tbody><colgroup>",
36227
36235
  "</colgroup></table>"
36228
36236
  ],
36229
- _default: DA ? [
36237
+ _default: AA ? [
36230
36238
  1,
36231
36239
  "X<div>",
36232
36240
  "</div>"
@@ -36236,24 +36244,24 @@ var kA = {
36236
36244
  ""
36237
36245
  ]
36238
36246
  };
36239
- kA.td = kA.th = [
36247
+ MA.td = MA.th = [
36240
36248
  3,
36241
36249
  "<table><tbody><tr>",
36242
36250
  "</tr></tbody></table>"
36243
- ], kA.option = kA.optgroup = [
36251
+ ], MA.option = MA.optgroup = [
36244
36252
  1,
36245
36253
  "<select multiple=\"multiple\">",
36246
36254
  "</select>"
36247
- ], kA.thead = kA.tbody = kA.colgroup = kA.caption = kA.tfoot = [
36255
+ ], MA.thead = MA.tbody = MA.colgroup = MA.caption = MA.tfoot = [
36248
36256
  1,
36249
36257
  "<table>",
36250
36258
  "</table>"
36251
- ], kA.polyline = kA.ellipse = kA.polygon = kA.circle = kA.text = kA.line = kA.path = kA.rect = kA.g = [
36259
+ ], MA.polyline = MA.ellipse = MA.polygon = MA.circle = MA.text = MA.line = MA.path = MA.rect = MA.g = [
36252
36260
  1,
36253
36261
  "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">",
36254
36262
  "</svg>"
36255
36263
  ];
36256
- function AA(e, t) {
36264
+ function NA(e, t) {
36257
36265
  if (typeof e != "string") throw TypeError("String expected");
36258
36266
  t ||= document;
36259
36267
  var n = /<([\w:]+)/.exec(e);
@@ -36264,7 +36272,7 @@ function AA(e, t) {
36264
36272
  var i = t.createElement("html");
36265
36273
  return i.innerHTML = e, i.removeChild(i.lastChild);
36266
36274
  }
36267
- var a = kA[r] || kA._default, o = a[0], s = a[1], c = a[2], i = t.createElement("div");
36275
+ var a = MA[r] || MA._default, o = a[0], s = a[1], c = a[2], i = t.createElement("div");
36268
36276
  for (i.innerHTML = s + e + c; o--;) i = i.lastChild;
36269
36277
  if (i.firstChild == i.lastChild) return i.removeChild(i.firstChild);
36270
36278
  for (var l = t.createDocumentFragment(); i.firstChild;) l.appendChild(i.removeChild(i.firstChild));
@@ -36301,47 +36309,47 @@ function AA(e, t) {
36301
36309
  return e.CSS ||= {}, e.CSS.escape = t, t;
36302
36310
  });
36303
36311
  })))();
36304
- var jA = {
36312
+ var PA = {
36305
36313
  "&": "&amp;",
36306
36314
  "<": "&lt;",
36307
36315
  ">": "&gt;",
36308
36316
  "\"": "&quot;",
36309
36317
  "'": "&#39;"
36310
36318
  };
36311
- function MA(e) {
36319
+ function FA(e) {
36312
36320
  return e = "" + e, e && e.replace(/[&<>"']/g, function(e) {
36313
- return jA[e];
36321
+ return PA[e];
36314
36322
  });
36315
36323
  }
36316
36324
  //#endregion
36317
36325
  //#region node_modules/bpmn-js-bpmnlint/dist/index.esm.js
36318
- function NA(e, t) {
36326
+ function IA(e, t) {
36319
36327
  var n = e.get("editorActions", !1);
36320
36328
  n && n.register({ toggleLinting: function() {
36321
36329
  t.toggle();
36322
36330
  } });
36323
36331
  }
36324
- NA.$inject = ["injector", "linting"];
36325
- var PA = "<svg width=\"12\" height=\"12\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 352 512\"><path fill=\"currentColor\" d=\"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z\"></path></svg>", FA = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 512 512\"><path fill=\"currentColor\" d=\"M288 328.83c-45.518 0-82.419 34.576-82.419 77.229 0 42.652 36.9 77.229 82.419 77.229 45.518 0 82.419-34.577 82.419-77.23 0-42.652-36.9-77.229-82.419-77.229zM207.439 57.034l11.61 204.348c.544 9.334 8.78 16.64 18.755 16.64h100.392c9.975 0 18.211-7.306 18.754-16.64l11.611-204.348c.587-10.082-7.98-18.56-18.754-18.56H226.192c-10.775 0-19.34 8.478-18.753 18.56z\"/></svg>", IA = "<svg width=\"12\" height=\"12\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"currentColor\" d=\"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z\"></path></svg>", LA = -7, RA = -7, zA = 500, BA = {
36332
+ IA.$inject = ["injector", "linting"];
36333
+ var LA = "<svg width=\"12\" height=\"12\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 352 512\"><path fill=\"currentColor\" d=\"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z\"></path></svg>", RA = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 512 512\"><path fill=\"currentColor\" d=\"M288 328.83c-45.518 0-82.419 34.576-82.419 77.229 0 42.652 36.9 77.229 82.419 77.229 45.518 0 82.419-34.577 82.419-77.23 0-42.652-36.9-77.229-82.419-77.229zM207.439 57.034l11.61 204.348c.544 9.334 8.78 16.64 18.755 16.64h100.392c9.975 0 18.211-7.306 18.754-16.64l11.611-204.348c.587-10.082-7.98-18.56-18.754-18.56H226.192c-10.775 0-19.34 8.478-18.753 18.56z\"/></svg>", zA = "<svg width=\"12\" height=\"12\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"currentColor\" d=\"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z\"></path></svg>", BA = -7, VA = -7, HA = 500, UA = {
36326
36334
  resolver: { resolveRule: function() {
36327
36335
  return null;
36328
36336
  } },
36329
36337
  config: {}
36330
- }, VA = {
36331
- error: PA,
36332
- warning: FA,
36333
- success: IA,
36334
- inactive: IA
36338
+ }, WA = {
36339
+ error: LA,
36340
+ warning: RA,
36341
+ success: zA,
36342
+ inactive: zA
36335
36343
  };
36336
- function HA(e, t, n, r, i, a, o) {
36337
- this._bpmnjs = e, this._canvas = t, this._elementRegistry = r, this._eventBus = i, this._overlays = a, this._translate = o, this._issues = {}, this._active = n && n.active || !1, this._linterConfig = BA, this._overlayIds = {};
36344
+ function GA(e, t, n, r, i, a, o) {
36345
+ this._bpmnjs = e, this._canvas = t, this._elementRegistry = r, this._eventBus = i, this._overlays = a, this._translate = o, this._issues = {}, this._active = n && n.active || !1, this._linterConfig = UA, this._overlayIds = {};
36338
36346
  var s = this;
36339
36347
  i.on([
36340
36348
  "import.done",
36341
36349
  "elements.changed",
36342
36350
  "linting.configChanged",
36343
36351
  "linting.toggle"
36344
- ], zA, function(e) {
36352
+ ], HA, function(e) {
36345
36353
  s.isActive() && s.update();
36346
36354
  }), i.on("linting.toggle", function(e) {
36347
36355
  e.active || (s._clearIssues(), s._updateButton());
@@ -36350,35 +36358,35 @@ function HA(e, t, n, r, i, a, o) {
36350
36358
  });
36351
36359
  var c = n && n.bpmnlint;
36352
36360
  c && i.once("diagram.init", function() {
36353
- if (s.getLinterConfig() === BA) try {
36361
+ if (s.getLinterConfig() === UA) try {
36354
36362
  s.setLinterConfig(c);
36355
36363
  } catch {
36356
36364
  console.error("[bpmn-js-bpmnlint] Invalid lint rules configured. Please doublecheck your linting.bpmnlint configuration, cf. https://github.com/bpmn-io/bpmn-js-bpmnlint#configure-lint-rules");
36357
36365
  }
36358
36366
  }), this._init();
36359
36367
  }
36360
- HA.prototype.setLinterConfig = function(e) {
36368
+ GA.prototype.setLinterConfig = function(e) {
36361
36369
  if (!e.config || !e.resolver) throw Error("Expected linterConfig = { config, resolver }");
36362
36370
  this._linterConfig = e, this._eventBus.fire("linting.configChanged");
36363
- }, HA.prototype.getLinterConfig = function() {
36371
+ }, GA.prototype.getLinterConfig = function() {
36364
36372
  return this._linterConfig;
36365
- }, HA.prototype._init = function() {
36373
+ }, GA.prototype._init = function() {
36366
36374
  this._createButton(), this._updateButton();
36367
- }, HA.prototype.isActive = function() {
36375
+ }, GA.prototype.isActive = function() {
36368
36376
  return this._active;
36369
- }, HA.prototype._formatIssues = function(e) {
36370
- return mA(pA(e, function(e, t, n) {
36377
+ }, GA.prototype._formatIssues = function(e) {
36378
+ return _A(gA(e, function(e, t, n) {
36371
36379
  return e.concat(t.map(function(e) {
36372
36380
  return e.rule = n, e;
36373
36381
  }));
36374
36382
  }, []), function(e) {
36375
36383
  return e.id;
36376
36384
  });
36377
- }, HA.prototype.toggle = function(e) {
36385
+ }, GA.prototype.toggle = function(e) {
36378
36386
  return e = e === void 0 ? !this.isActive() : e, this._setActive(e), e;
36379
- }, HA.prototype._setActive = function(e) {
36387
+ }, GA.prototype._setActive = function(e) {
36380
36388
  this._active !== e && (this._active = e, this._eventBus.fire("linting.toggle", { active: e }));
36381
- }, HA.prototype.update = function() {
36389
+ }, GA.prototype.update = function() {
36382
36390
  var e = this;
36383
36391
  if (this._bpmnjs.getDefinitions()) {
36384
36392
  var t = this._lintStart = Math.random();
@@ -36388,15 +36396,15 @@ HA.prototype.setLinterConfig = function(e) {
36388
36396
  var r = {}, i = {}, a = {};
36389
36397
  for (var o in e._issues) n[o] || (r[o] = e._issues[o]);
36390
36398
  for (var s in n) e._issues[s] ? n[s] !== e._issues[s] && (i[s] = n[s]) : a[s] = n[s];
36391
- r = yA(r, i), a = yA(a, i), e._clearOverlays(), e._createIssues(a), e._issues = n, e._updateButton(), e._fireComplete(n);
36399
+ r = SA(r, i), a = SA(a, i), e._clearOverlays(), e._createIssues(a), e._issues = n, e._updateButton(), e._fireComplete(n);
36392
36400
  }
36393
36401
  });
36394
36402
  }
36395
- }, HA.prototype._fireComplete = function(e) {
36403
+ }, GA.prototype._fireComplete = function(e) {
36396
36404
  this._eventBus.fire("linting.completed", { issues: e });
36397
- }, HA.prototype._createIssues = function(e) {
36405
+ }, GA.prototype._createIssues = function(e) {
36398
36406
  for (var t in e) this._createElementIssues(t, e[t]);
36399
- }, HA.prototype._createElementIssues = function(e, t) {
36407
+ }, GA.prototype._createElementIssues = function(e, t) {
36400
36408
  var n = this._elementRegistry.get(e);
36401
36409
  if (n) {
36402
36410
  var r, i;
@@ -36404,14 +36412,14 @@ HA.prototype.setLinterConfig = function(e) {
36404
36412
  top: 20,
36405
36413
  left: 150
36406
36414
  }) : (r = "top-right", i = {
36407
- top: LA,
36408
- left: RA
36415
+ top: BA,
36416
+ left: VA
36409
36417
  });
36410
- var a = mA(t, function(e) {
36418
+ var a = _A(t, function(e) {
36411
36419
  return e.category;
36412
36420
  }), o = a.error, s = a.warn;
36413
36421
  if (!(!o && !s)) {
36414
- var c = EA("<div class=\"bjsl-overlay bjsl-issues-" + r + "\"></div>"), l = EA(o ? "<div class=\"bjsl-icon bjsl-icon-error\">" + PA + "</div>" : "<div class=\"bjsl-icon bjsl-icon-warning\">" + FA + "</div>"), u = EA("<div class=\"bjsl-dropdown\"></div>"), d = EA("<div class=\"bjsl-dropdown-content\"></div>"), f = EA("<div class=\"bjsl-issues\"></div>"), p = EA("<ul></ul>");
36422
+ var c = kA("<div class=\"bjsl-overlay bjsl-issues-" + r + "\"></div>"), l = kA(o ? "<div class=\"bjsl-icon bjsl-icon-error\">" + LA + "</div>" : "<div class=\"bjsl-icon bjsl-icon-warning\">" + RA + "</div>"), u = kA("<div class=\"bjsl-dropdown\"></div>"), d = kA("<div class=\"bjsl-dropdown-content\"></div>"), f = kA("<div class=\"bjsl-issues\"></div>"), p = kA("<ul></ul>");
36415
36423
  c.appendChild(l), c.appendChild(u), u.appendChild(d), d.appendChild(f), f.appendChild(p), o && this._addErrors(p, o), s && this._addWarnings(p, s), this._overlayIds[e] = this._overlays.add(n, "linting", {
36416
36424
  position: i,
36417
36425
  html: c,
@@ -36419,25 +36427,25 @@ HA.prototype.setLinterConfig = function(e) {
36419
36427
  });
36420
36428
  }
36421
36429
  }
36422
- }, HA.prototype._addErrors = function(e, t) {
36430
+ }, GA.prototype._addErrors = function(e, t) {
36423
36431
  var n = this;
36424
36432
  t.forEach(function(t) {
36425
36433
  n._addEntry(e, "error", t);
36426
36434
  });
36427
- }, HA.prototype._addWarnings = function(e, t) {
36435
+ }, GA.prototype._addWarnings = function(e, t) {
36428
36436
  var n = this;
36429
36437
  t.forEach(function(t) {
36430
36438
  n._addEntry(e, "warning", t);
36431
36439
  });
36432
- }, HA.prototype._addEntry = function(e, t, n) {
36433
- var r = n.rule, i = this._translate(n.message), a = VA[t], o = EA("<li class=\"" + t + "\">" + a + "<a title=\"" + MA(r) + ": " + MA(i) + "\" data-rule=\"" + MA(r) + "\" data-message=\"" + MA(i) + "\">" + MA(i) + "</a></li>");
36440
+ }, GA.prototype._addEntry = function(e, t, n) {
36441
+ var r = n.rule, i = this._translate(n.message), a = WA[t], o = kA("<li class=\"" + t + "\">" + a + "<a title=\"" + FA(r) + ": " + FA(i) + "\" data-rule=\"" + FA(r) + "\" data-message=\"" + FA(i) + "\">" + FA(i) + "</a></li>");
36434
36442
  e.appendChild(o);
36435
- }, HA.prototype._clearOverlays = function() {
36443
+ }, GA.prototype._clearOverlays = function() {
36436
36444
  this._overlays.remove({ type: "linting" }), this._overlayIds = {};
36437
- }, HA.prototype._clearIssues = function() {
36445
+ }, GA.prototype._clearIssues = function() {
36438
36446
  this._issues = {}, this._clearOverlays();
36439
- }, HA.prototype._setButtonState = function(e, t, n) {
36440
- var r = this._button, i = VA[e] + "<span>" + this._translate("{errors} Errors, {warnings} Warnings", {
36447
+ }, GA.prototype._setButtonState = function(e, t, n) {
36448
+ var r = this._button, i = WA[e] + "<span>" + this._translate("{errors} Errors, {warnings} Warnings", {
36441
36449
  errors: t.toString(),
36442
36450
  warnings: n.toString()
36443
36451
  }) + "</span>";
@@ -36449,7 +36457,7 @@ HA.prototype.setLinterConfig = function(e) {
36449
36457
  ].forEach(function(t) {
36450
36458
  e === t ? r.classList.add("bjsl-button-" + t) : r.classList.remove("bjsl-button-" + t);
36451
36459
  }), r.innerHTML = i;
36452
- }, HA.prototype._updateButton = function() {
36460
+ }, GA.prototype._updateButton = function() {
36453
36461
  if (!this.isActive()) {
36454
36462
  this._setButtonState("inactive", 0, 0);
36455
36463
  return;
@@ -36460,15 +36468,15 @@ HA.prototype.setLinterConfig = function(e) {
36460
36468
  });
36461
36469
  var r = e && "error" || t && "warning" || "success";
36462
36470
  this._setButtonState(r, e, t);
36463
- }, HA.prototype._createButton = function() {
36471
+ }, GA.prototype._createButton = function() {
36464
36472
  var e = this;
36465
- this._button = EA("<button class=\"bjsl-button bjsl-button-inactive\" title=\"" + this._translate("Toggle linting") + "\"></button>"), this._button.addEventListener("click", function() {
36473
+ this._button = kA("<button class=\"bjsl-button bjsl-button-inactive\" title=\"" + this._translate("Toggle linting") + "\"></button>"), this._button.addEventListener("click", function() {
36466
36474
  e.toggle();
36467
36475
  }), this._canvas.getContainer().appendChild(this._button);
36468
- }, HA.prototype.lint = function() {
36476
+ }, GA.prototype.lint = function() {
36469
36477
  var e = this._bpmnjs.getDefinitions();
36470
- return new aA.Linter(this._linterConfig).lint(e);
36471
- }, HA.$inject = [
36478
+ return new cA.Linter(this._linterConfig).lint(e);
36479
+ }, GA.$inject = [
36472
36480
  "bpmnjs",
36473
36481
  "canvas",
36474
36482
  "config.linting",
@@ -36477,14 +36485,14 @@ HA.prototype.setLinterConfig = function(e) {
36477
36485
  "overlays",
36478
36486
  "translate"
36479
36487
  ];
36480
- var UA = {
36488
+ var KA = {
36481
36489
  __init__: ["linting", "lintingEditorActions"],
36482
- linting: ["type", HA],
36483
- lintingEditorActions: ["type", NA]
36490
+ linting: ["type", GA],
36491
+ lintingEditorActions: ["type", IA]
36484
36492
  };
36485
36493
  //#endregion
36486
36494
  //#region src/config/packed-config.js
36487
- function WA(e) {
36495
+ function qA(e) {
36488
36496
  var t = e.default;
36489
36497
  if (typeof t == "function") {
36490
36498
  var n = function() {
@@ -36502,43 +36510,43 @@ function WA(e) {
36502
36510
  });
36503
36511
  }), n;
36504
36512
  }
36505
- function GA(e, t) {
36513
+ function JA(e, t) {
36506
36514
  return t.indexOf(":") === -1 && (t = "bpmn:" + t), typeof e.$instanceOf == "function" ? e.$instanceOf(t) : e.$type === t;
36507
36515
  }
36508
- function KA(e, t) {
36516
+ function YA(e, t) {
36509
36517
  return t.some(function(t) {
36510
- return GA(e, t);
36518
+ return JA(e, t);
36511
36519
  });
36512
36520
  }
36513
- var qA = /* @__PURE__ */ WA(/* @__PURE__ */ Object.freeze({
36521
+ var XA = /* @__PURE__ */ qA(/* @__PURE__ */ Object.freeze({
36514
36522
  __proto__: null,
36515
- is: GA,
36516
- isAny: KA
36517
- })), { is: JA, isAny: YA } = qA, XA = function() {
36523
+ is: JA,
36524
+ isAny: YA
36525
+ })), { is: ZA, isAny: QA } = XA, $A = function() {
36518
36526
  function e(e) {
36519
- return (e.flowElements || []).some((e) => JA(e, "bpmn:StartEvent"));
36527
+ return (e.flowElements || []).some((e) => ZA(e, "bpmn:StartEvent"));
36520
36528
  }
36521
36529
  function t(t, n) {
36522
- if (YA(t, ["bpmn:Process", "bpmn:SubProcess"]) && !e(t)) {
36523
- let e = JA(t, "bpmn:SubProcess") ? "Sub process" : "Process";
36530
+ if (QA(t, ["bpmn:Process", "bpmn:SubProcess"]) && !e(t)) {
36531
+ let e = ZA(t, "bpmn:SubProcess") ? "Sub process" : "Process";
36524
36532
  n.report(t.id, e + " is missing start event");
36525
36533
  }
36526
36534
  }
36527
36535
  return { check: t };
36528
- }, { is: ZA, isAny: QA } = qA, $A = function() {
36536
+ }, { is: ej, isAny: tj } = XA, nj = function() {
36529
36537
  function e(e) {
36530
- return (e.flowElements || []).some((e) => ZA(e, "bpmn:EndEvent"));
36538
+ return (e.flowElements || []).some((e) => ej(e, "bpmn:EndEvent"));
36531
36539
  }
36532
36540
  function t(t, n) {
36533
- if (QA(t, ["bpmn:Process", "bpmn:SubProcess"]) && !e(t)) {
36534
- let e = ZA(t, "bpmn:SubProcess") ? "Sub process" : "Process";
36541
+ if (tj(t, ["bpmn:Process", "bpmn:SubProcess"]) && !e(t)) {
36542
+ let e = ej(t, "bpmn:SubProcess") ? "Sub process" : "Process";
36535
36543
  n.report(t.id, e + " is missing end event");
36536
36544
  }
36537
36545
  }
36538
36546
  return { check: t };
36539
- }, { is: ej, isAny: tj } = qA, nj = function() {
36547
+ }, { is: rj, isAny: ij } = XA, aj = function() {
36540
36548
  function e(e, t) {
36541
- tj(e, ["bpmn:ParallelGateway", "bpmn:EventBasedGateway"]) || ej(e, "bpmn:Gateway") && !rj(e) || ej(e, "bpmn:BoundaryEvent") || ej(e, "bpmn:SubProcess") || ej(e, "bpmn:SequenceFlow") && !ij(e) || tj(e, [
36549
+ ij(e, ["bpmn:ParallelGateway", "bpmn:EventBasedGateway"]) || rj(e, "bpmn:Gateway") && !oj(e) || rj(e, "bpmn:BoundaryEvent") || rj(e, "bpmn:SubProcess") || rj(e, "bpmn:SequenceFlow") && !sj(e) || ij(e, [
36542
36550
  "bpmn:FlowNode",
36543
36551
  "bpmn:SequenceFlow",
36544
36552
  "bpmn:Participant",
@@ -36547,13 +36555,13 @@ var qA = /* @__PURE__ */ WA(/* @__PURE__ */ Object.freeze({
36547
36555
  }
36548
36556
  return { check: e };
36549
36557
  };
36550
- function rj(e) {
36558
+ function oj(e) {
36551
36559
  return (e.outgoing || []).length > 1;
36552
36560
  }
36553
- function ij(e) {
36561
+ function sj(e) {
36554
36562
  return e.conditionExpression;
36555
36563
  }
36556
- function aj() {
36564
+ function cj() {
36557
36565
  return { check: function(e, t) {
36558
36566
  if (e.$type !== "bpmn:Definitions") return;
36559
36567
  let n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set();
@@ -36580,17 +36588,17 @@ function aj() {
36580
36588
  }
36581
36589
  } };
36582
36590
  }
36583
- var oj = {};
36584
- function sj() {}
36585
- sj.prototype.resolveRule = function(e, t) {
36586
- let n = oj[e + "/" + t];
36591
+ var lj = {};
36592
+ function uj() {}
36593
+ uj.prototype.resolveRule = function(e, t) {
36594
+ let n = lj[e + "/" + t];
36587
36595
  if (!n) throw Error("cannot resolve rule <" + e + "/" + t + ">");
36588
36596
  return n;
36589
- }, sj.prototype.resolveConfig = function(e, t) {
36597
+ }, uj.prototype.resolveConfig = function(e, t) {
36590
36598
  throw Error("cannot resolve config <" + t + "> in <" + e + ">");
36591
36599
  };
36592
- var cj = {
36593
- resolver: new sj(),
36600
+ var dj = {
36601
+ resolver: new uj(),
36594
36602
  config: { rules: {
36595
36603
  "start-event-required": "error",
36596
36604
  "end-event-required": "error",
@@ -36598,10 +36606,10 @@ var cj = {
36598
36606
  "local/no-duplicate-element-names": "error"
36599
36607
  } }
36600
36608
  };
36601
- oj["bpmnlint/start-event-required"] = XA, oj["bpmnlint/end-event-required"] = $A, oj["bpmnlint/label-required"] = nj, oj["bpmnlint-plugin-local/no-duplicate-element-names"] = aj;
36609
+ lj["bpmnlint/start-event-required"] = $A, lj["bpmnlint/end-event-required"] = nj, lj["bpmnlint/label-required"] = aj, lj["bpmnlint-plugin-local/no-duplicate-element-names"] = cj;
36602
36610
  //#endregion
36603
36611
  //#region src/components/Process/index.vue?vue&type=script&lang.ts
36604
- var lj = c({
36612
+ var fj = c({
36605
36613
  name: "BpmnModel",
36606
36614
  props: {
36607
36615
  xml: {
@@ -36681,7 +36689,7 @@ var lj = c({
36681
36689
  }
36682
36690
  },
36683
36691
  components: {
36684
- Designer: qk,
36692
+ Designer: Xk,
36685
36693
  UploadOutlined: ae
36686
36694
  },
36687
36695
  emits: [
@@ -36709,13 +36717,13 @@ var lj = c({
36709
36717
  let r = new Blob([t], { type: n }), i = URL.createObjectURL(r), a = document.createElement("a");
36710
36718
  a.href = i, a.download = e, a.click(), URL.revokeObjectURL(i);
36711
36719
  }, c = () => r.value && r.value.getDefinitions().rootElements.find((e) => e.$type === "bpmn:Process") || null, l = () => {
36712
- f(Yk(e.processId, e.processName));
36720
+ f(Qk(e.processId, e.processName));
36713
36721
  }, d = () => {
36714
36722
  le.confirm({
36715
36723
  title: "提示",
36716
36724
  content: "确定要新建流程吗?当前编辑内容将丢失。",
36717
36725
  onOk() {
36718
- f(Yk(e.processId, e.processName));
36726
+ f(Qk(e.processId, e.processName));
36719
36727
  },
36720
36728
  onCancel() {}
36721
36729
  });
@@ -36788,16 +36796,16 @@ var lj = c({
36788
36796
  let i = new IO({
36789
36797
  container: n.value,
36790
36798
  additionalModules: [
36791
- UA,
36792
- tA,
36793
- { translate: ["value", Jk] }
36799
+ KA,
36800
+ iA,
36801
+ { translate: ["value", Zk] }
36794
36802
  ],
36795
36803
  linting: {
36796
36804
  active: !0,
36797
- bpmnlint: cj
36805
+ bpmnlint: dj
36798
36806
  },
36799
36807
  moddleExtensions: {
36800
- flowable: Xk,
36808
+ flowable: $k,
36801
36809
  custom: {
36802
36810
  name: "Custom",
36803
36811
  uri: "http://example.com/custom",
@@ -36853,24 +36861,24 @@ var lj = c({
36853
36861
  handleNewDiagram: d
36854
36862
  };
36855
36863
  }
36856
- }), uj = { class: "flow-header" }, dj = {
36864
+ }), pj = { class: "flow-header" }, mj = {
36857
36865
  class: "flow-header-editor",
36858
36866
  style: {
36859
36867
  "border-bottom": "1px solid rgb(218, 218, 218)",
36860
36868
  height: "auto",
36861
36869
  "padding-left": "0"
36862
36870
  }
36863
- }, fj = { style: {
36871
+ }, hj = { style: {
36864
36872
  display: "flex",
36865
36873
  padding: "10px 0",
36866
36874
  "justify-content": "space-between"
36867
- } }, pj = { class: "flow-body" }, mj = { class: "flow-design-layout" }, hj = { class: "canvas-wrapper" }, gj = {
36875
+ } }, gj = { class: "flow-body" }, _j = { class: "flow-design-layout" }, vj = { class: "canvas-wrapper" }, yj = {
36868
36876
  ref: "canvasRef",
36869
36877
  class: "canvas"
36870
- }, _j = { class: "properties-panel" }, vj = { class: "normalPanel" };
36871
- function yj(e, t, c, l, u, f) {
36878
+ }, bj = { class: "properties-panel" }, xj = { class: "normalPanel" };
36879
+ function Sj(e, t, c, l, u, f) {
36872
36880
  let p = b("a-button"), m = b("upload-outlined"), g = b("a-upload"), _ = b("a-space"), v = b("Designer");
36873
- return h(), i("div", { class: d(["flow-containers", { "view-mode": e.isView }]) }, [a("div", uj, [a("div", dj, [a("div", fj, [s(_, null, {
36881
+ return h(), i("div", { class: d(["flow-containers", { "view-mode": e.isView }]) }, [a("div", pj, [a("div", mj, [a("div", hj, [s(_, null, {
36874
36882
  default: w(() => [
36875
36883
  s(p, {
36876
36884
  type: "primary",
@@ -36974,13 +36982,13 @@ function yj(e, t, c, l, u, f) {
36974
36982
  }, 8, ["onClick"])) : r("", !0)
36975
36983
  ]),
36976
36984
  _: 1
36977
- })])])]), a("div", pj, [a("div", mj, [a("div", hj, [a("div", gj, null, 512)]), a("div", _j, [a("div", vj, [e.loadCanvas ? (h(), n(v, {
36985
+ })])])]), a("div", gj, [a("div", _j, [a("div", vj, [a("div", yj, null, 512)]), a("div", bj, [a("div", xj, [e.loadCanvas ? (h(), n(v, {
36978
36986
  key: 0,
36979
36987
  "form-data": e.formData,
36980
36988
  "global-options": e.globalOptions
36981
36989
  }, null, 8, ["form-data", "global-options"])) : r("", !0)])])])])], 2);
36982
36990
  }
36983
- var bj = /* @__PURE__ */ BO(lj, [["render", yj], ["__scopeId", "data-v-7814709c"]]), xj = /* @__PURE__ */ ye((/* @__PURE__ */ _e(((e, t) => {
36991
+ var Cj = /* @__PURE__ */ BO(fj, [["render", Sj], ["__scopeId", "data-v-7814709c"]]), wj = /* @__PURE__ */ ye((/* @__PURE__ */ _e(((e, t) => {
36984
36992
  function n(e) {
36985
36993
  var t = " ";
36986
36994
  if (isNaN(parseInt(e))) t = e;
@@ -37060,7 +37068,7 @@ var bj = /* @__PURE__ */ BO(lj, [["render", yj], ["__scopeId", "data-v-7814709c"
37060
37068
  }, r.prototype.sqlmin = function(e) {
37061
37069
  return e.replace(/\s{1,}/g, " ").replace(/\s{1,}\(/, "(").replace(/\s{1,}\)/, ")");
37062
37070
  }, t.exports = new r();
37063
- })))(), 1), Sj = /* @__PURE__ */ ye(be(), 1), Cj = c({
37071
+ })))(), 1), Tj = /* @__PURE__ */ ye(be(), 1), Ej = c({
37064
37072
  name: "MyProcess",
37065
37073
  props: {
37066
37074
  value: {
@@ -37136,7 +37144,7 @@ var bj = /* @__PURE__ */ BO(lj, [["render", yj], ["__scopeId", "data-v-7814709c"
37136
37144
  default: []
37137
37145
  }
37138
37146
  },
37139
- components: { bpmnModeler: bj },
37147
+ components: { bpmnModeler: Cj },
37140
37148
  emits: ["update:value", "save"],
37141
37149
  setup(e, { emit: n }) {
37142
37150
  let r = t({
@@ -37161,7 +37169,7 @@ var bj = /* @__PURE__ */ BO(lj, [["render", yj], ["__scopeId", "data-v-7814709c"
37161
37169
  });
37162
37170
  }, _ = (e) => {
37163
37171
  try {
37164
- s.value = xj.default.xml(e);
37172
+ s.value = wj.default.xml(e);
37165
37173
  } catch (t) {
37166
37174
  s.value = e, console.error("XML 格式化失败:", t);
37167
37175
  }
@@ -37171,7 +37179,7 @@ var bj = /* @__PURE__ */ BO(lj, [["render", yj], ["__scopeId", "data-v-7814709c"
37171
37179
  console.warn("Textarea not found for CodeMirror");
37172
37180
  return;
37173
37181
  }
37174
- p.value.value = s.value, h = Sj.default.fromTextArea(p.value, {
37182
+ p.value.value = s.value, h = Tj.default.fromTextArea(p.value, {
37175
37183
  mode: "xml",
37176
37184
  lineNumbers: !0,
37177
37185
  readOnly: !0,
@@ -37208,10 +37216,10 @@ var bj = /* @__PURE__ */ BO(lj, [["render", yj], ["__scopeId", "data-v-7814709c"
37208
37216
  }
37209
37217
  };
37210
37218
  }
37211
- }), wj = { class: "my-process-main" }, Tj = { class: "xml-editor" }, Ej = { ref: "el" };
37212
- function Dj(e, t, n, r, o, c) {
37219
+ }), Dj = { class: "my-process-main" }, Oj = { class: "xml-editor" }, kj = { ref: "el" };
37220
+ function Aj(e, t, n, r, o, c) {
37213
37221
  let l = b("bpmn-modeler"), u = b("a-drawer");
37214
- return h(), i("div", wj, [s(l, {
37222
+ return h(), i("div", Dj, [s(l, {
37215
37223
  ref: "refNode",
37216
37224
  xml: e.xml,
37217
37225
  fetchUsers: e.fetchUsers,
@@ -37267,7 +37275,7 @@ function Dj(e, t, n, r, o, c) {
37267
37275
  onAfterOpenChange: e.onDrawerChange,
37268
37276
  width: "700"
37269
37277
  }, {
37270
- default: w(() => [a("div", Tj, [a("textarea", Ej, null, 512)])]),
37278
+ default: w(() => [a("div", Oj, [a("textarea", kj, null, 512)])]),
37271
37279
  _: 1
37272
37280
  }, 8, [
37273
37281
  "open",
@@ -37275,7 +37283,7 @@ function Dj(e, t, n, r, o, c) {
37275
37283
  "onAfterOpenChange"
37276
37284
  ])]);
37277
37285
  }
37278
- var Oj = /* @__PURE__ */ BO(Cj, [["render", Dj], ["__scopeId", "data-v-135f56ce"]]), kj = /* @__PURE__ */ ye((/* @__PURE__ */ _e(((e, t) => {
37286
+ var jj = /* @__PURE__ */ BO(Ej, [["render", Aj], ["__scopeId", "data-v-135f56ce"]]), Mj = /* @__PURE__ */ ye((/* @__PURE__ */ _e(((e, t) => {
37279
37287
  typeof Object.create == "function" ? t.exports = function(e, t) {
37280
37288
  t && (e.super_ = t, e.prototype = Object.create(t.prototype, { constructor: {
37281
37289
  value: e,
@@ -37291,13 +37299,13 @@ var Oj = /* @__PURE__ */ BO(Cj, [["render", Dj], ["__scopeId", "data-v-135f56ce"
37291
37299
  }
37292
37300
  };
37293
37301
  })))(), 1);
37294
- function Aj(e) {
37302
+ function Nj(e) {
37295
37303
  pl.call(this, e);
37296
37304
  }
37297
- (0, kj.default)(Aj, pl), Aj.prototype._modules = [].concat(pl.prototype._modules, [iu, Jl]);
37305
+ (0, Mj.default)(Nj, pl), Nj.prototype._modules = [].concat(pl.prototype._modules, [iu, Jl]);
37298
37306
  //#endregion
37299
37307
  //#region src/components/Process/viewer/index.vue?vue&type=script&lang.ts
37300
- var jj = c({
37308
+ var Pj = c({
37301
37309
  name: "BpmnViewer",
37302
37310
  props: {
37303
37311
  flowData: {
@@ -37351,7 +37359,7 @@ var jj = c({
37351
37359
  };
37352
37360
  return m(() => {
37353
37361
  C(() => e.flowData, (r) => {
37354
- !r || !r.xmlData || (n.value && n.value.destroy(), n.value = new Aj({
37362
+ !r || !r.xmlData || (n.value && n.value.destroy(), n.value = new Nj({
37355
37363
  container: t.value,
37356
37364
  height: e.height ? Number(e.height) : "calc(100vh - 200px)"
37357
37365
  }), i(r));
@@ -37365,13 +37373,13 @@ var jj = c({
37365
37373
  zoomViewport: o
37366
37374
  };
37367
37375
  }
37368
- }), Mj = { class: "containers" }, Nj = {
37376
+ }), Fj = { class: "containers" }, Ij = {
37369
37377
  ref: "flowCanvasRef",
37370
37378
  class: "canvas"
37371
37379
  };
37372
- function Pj(e, t, n, r, o, c) {
37380
+ function Lj(e, t, n, r, o, c) {
37373
37381
  let l = b("a-spin"), u = b("DragOutlined"), d = b("a-button"), f = b("a-tooltip"), p = b("ZoomInOutlined"), m = b("ZoomOutOutlined"), g = b("a-space"), _ = b("a-layout-content"), v = b("a-layout");
37374
- return h(), i("div", Mj, [s(v, { style: {
37382
+ return h(), i("div", Fj, [s(v, { style: {
37375
37383
  "align-items": "stretch",
37376
37384
  height: "100%"
37377
37385
  } }, {
@@ -37387,7 +37395,7 @@ function Pj(e, t, n, r, o, c) {
37387
37395
  spinning: e.loading,
37388
37396
  wrapperClassName: "canvas-wrapper"
37389
37397
  }, {
37390
- default: w(() => [a("div", Nj, null, 512)]),
37398
+ default: w(() => [a("div", Ij, null, 512)]),
37391
37399
  _: 1
37392
37400
  }, 8, ["spinning"]),
37393
37401
  s(g, {
@@ -37434,8 +37442,675 @@ function Pj(e, t, n, r, o, c) {
37434
37442
  _: 1
37435
37443
  })]);
37436
37444
  }
37437
- var Fj = /* @__PURE__ */ BO(jj, [["render", Pj], ["__scopeId", "data-v-2260b7fd"]]), Ij = { install(e, t) {
37438
- t?.request && e.use(mk(t.request)), t?.useUserStore && e.use(hk(t.useUserStore));
37445
+ var Rj = /* @__PURE__ */ BO(Pj, [["render", Lj], ["__scopeId", "data-v-2260b7fd"]]), zj = { class: "form-container" }, Bj = { class: "header-container" }, Vj = { class: "serial-number" }, Hj = { class: "article-title" }, Uj = {
37446
+ class: "form-body descriptions",
37447
+ style: { "padding-bottom": "10px" }
37448
+ }, Wj = { class: "xinxi-title" }, Gj = { style: {
37449
+ "white-space": "pre-line",
37450
+ margin: "0",
37451
+ color: "#909399"
37452
+ } }, Kj = { key: 0 }, qj = { key: 0 }, Jj = { style: {
37453
+ overflow: "hidden",
37454
+ "text-overflow": "ellipsis",
37455
+ "white-space": "nowrap",
37456
+ width: "100%",
37457
+ "user-select": "text",
37458
+ "text-align": "left"
37459
+ } }, Yj = { style: {
37460
+ "white-space": "pre-line",
37461
+ margin: "0",
37462
+ color: "#909399"
37463
+ } }, Xj = { key: 0 }, Zj = { key: 0 }, Qj = { style: {
37464
+ overflow: "hidden",
37465
+ "text-overflow": "ellipsis",
37466
+ "white-space": "nowrap",
37467
+ width: "100%",
37468
+ "user-select": "text",
37469
+ "text-align": "left"
37470
+ } }, $j = { style: {
37471
+ "white-space": "pre-line",
37472
+ margin: "0",
37473
+ color: "#909399"
37474
+ } }, eM = { key: 0 }, tM = { key: 0 }, nM = { style: {
37475
+ overflow: "hidden",
37476
+ "text-overflow": "ellipsis",
37477
+ "white-space": "nowrap",
37478
+ width: "100%",
37479
+ "user-select": "text",
37480
+ "text-align": "left"
37481
+ } }, rM = { style: {
37482
+ "white-space": "pre-line",
37483
+ margin: "0",
37484
+ color: "#909399"
37485
+ } }, iM = { key: 0 }, aM = { key: 0 }, oM = { style: {
37486
+ overflow: "hidden",
37487
+ "text-overflow": "ellipsis",
37488
+ "white-space": "nowrap",
37489
+ width: "100%",
37490
+ "user-select": "text",
37491
+ "text-align": "left"
37492
+ } }, sM = { style: {
37493
+ height: "400px",
37494
+ "margin-top": "10px"
37495
+ } }, cM = /* @__PURE__ */ BO(/* @__PURE__ */ c({
37496
+ name: "ApprovalForDetails",
37497
+ __name: "approval_for_details",
37498
+ props: { record: {} },
37499
+ setup(t) {
37500
+ let c = bk(), l = t, u = v([]), d = _({}), f = v({}), p = [
37501
+ {
37502
+ title: "序号",
37503
+ dataIndex: "index",
37504
+ width: 50,
37505
+ ellipsis: !0,
37506
+ fixed: "left"
37507
+ },
37508
+ {
37509
+ title: "审批步骤",
37510
+ dataIndex: "name",
37511
+ minWidth: 150,
37512
+ ellipsis: !0,
37513
+ resizable: !0
37514
+ },
37515
+ {
37516
+ title: "职位",
37517
+ dataIndex: "approval_position__name",
37518
+ minWidth: 150,
37519
+ ellipsis: !0,
37520
+ resizable: !0
37521
+ },
37522
+ {
37523
+ title: "审批人",
37524
+ dataIndex: "assignee__realname",
37525
+ minWidth: 150,
37526
+ ellipsis: !0,
37527
+ resizable: !0
37528
+ },
37529
+ {
37530
+ title: "操作",
37531
+ dataIndex: "approval_result",
37532
+ minWidth: 150,
37533
+ ellipsis: !0,
37534
+ resizable: !0
37535
+ },
37536
+ {
37537
+ title: "审批意见",
37538
+ dataIndex: "comment",
37539
+ minWidth: 150,
37540
+ ellipsis: !0,
37541
+ resizable: !0
37542
+ },
37543
+ {
37544
+ title: "时间",
37545
+ dataIndex: "end_time",
37546
+ minWidth: 150,
37547
+ ellipsis: !0,
37548
+ resizable: !0
37549
+ }
37550
+ ], g = [
37551
+ {
37552
+ title: "序号",
37553
+ dataIndex: "index",
37554
+ width: 50,
37555
+ ellipsis: !0,
37556
+ fixed: "left"
37557
+ },
37558
+ {
37559
+ title: "审批步骤",
37560
+ dataIndex: "name",
37561
+ width: 150,
37562
+ ellipsis: !0,
37563
+ resizable: !0
37564
+ },
37565
+ {
37566
+ title: "职位",
37567
+ dataIndex: "jue_se",
37568
+ width: 150,
37569
+ ellipsis: !0,
37570
+ resizable: !0
37571
+ },
37572
+ {
37573
+ title: "步骤审批人",
37574
+ dataIndex: "list",
37575
+ minWidth: 150,
37576
+ ellipsis: !0,
37577
+ resizable: !0
37578
+ }
37579
+ ], S = v([]), C = (e) => e != null && e !== "", T = (e, t, n) => {
37580
+ let r = [], i = (e, t, n) => e?.form?.dynamicFieldList ? e.form.dynamicFieldList.flatMap((r) => r.children.map((r) => {
37581
+ let a = {
37582
+ label: r.label,
37583
+ type: r.type,
37584
+ value: "",
37585
+ column: r?.column || 3,
37586
+ is_hide: e?.showType == "table" ? r?.is_table_hide_column || !1 : r?.is_hide || !1
37587
+ };
37588
+ return r.type === "formtemplate" ? t?.[r.name]?.length > 0 && (a.children = [], t[r.name].forEach((e) => {
37589
+ a.children.push(i(r, e, r.form.options));
37590
+ })) : r.type === "select" || r.type === "radio" ? C(t?.[r.name]) && (a.value = n?.[r.name]?.find((e) => e.value == t[r.name])?.name || "") : r.type === "checkbox" ? C(t?.[r.name]) && (a.value = (n?.[r.name]?.filter((e) => t[r.name].includes(e.value))?.map((e) => e.name)?.filter(Boolean))?.join(",") || "") : r.type === "remoteselectpro" ? C(t?.[r.name + ".label"]) && (a.value = t[r.name + ".label"]) : r.type === "remotetablepro" ? (a.children = [], t?.[r.name]?.length > 0 && t[r.name].forEach((e) => {
37591
+ let t = [];
37592
+ r?.children?.length > 0 && r.children.forEach((n) => {
37593
+ n?.children?.length > 0 && n.children.forEach((n) => {
37594
+ let r = {
37595
+ label: n.label,
37596
+ type: n.type,
37597
+ value: ""
37598
+ };
37599
+ n.type === "select" || n.type === "radio" || n.type === "checkbox" || n.type === "remoteselectpro" ? r.value = e?.[n.name2] || "" : r.value = e?.[n.name] || "", t.push(r);
37600
+ });
37601
+ }), a.children.push(t);
37602
+ })) : a.value = t?.[r.name] || "", a;
37603
+ })) : [];
37604
+ return e.forEach((e) => {
37605
+ if (e?.children?.length > 0) {
37606
+ let a = {
37607
+ group_name: e?.group_name || "",
37608
+ children: [],
37609
+ column: e?.column || 3
37610
+ };
37611
+ e.children.forEach((e) => {
37612
+ let r = {
37613
+ label: e.label,
37614
+ type: e.type,
37615
+ column: e?.column || 3,
37616
+ value: ""
37617
+ };
37618
+ e.type === "remoteselectpro" ? C(t?.[e.name + ".label"]) && (r.value = t?.[e.name + ".label"]) : e.type === "select" || e.type === "radio" ? C(t?.[e.name]) && (r.value = n?.[e.name]?.find((n) => n.value == t[e.name])?.name || "") : e.type === "checkbox" ? C(t?.[e.name]) && (r.value = (n?.[e.name]?.filter((n) => t[e.name].includes(n.value))?.map((e) => e.name)?.filter(Boolean))?.join(",") || "") : e.type === "remotetablepro" ? (r.children = [], t?.[e.name]?.length > 0 && t[e.name].forEach((t) => {
37619
+ let n = [];
37620
+ e?.children?.length > 0 && e.children.forEach((e) => {
37621
+ e?.children?.length > 0 && e.children.forEach((e) => {
37622
+ let r = {
37623
+ label: e.label,
37624
+ type: e.type,
37625
+ value: ""
37626
+ };
37627
+ e.type === "select" || e.type === "radio" || e.type === "checkbox" || e.type === "remoteselectpro" ? r.value = t?.[e.name2] || "" : r.value = t?.[e.name] || "", n.push(r);
37628
+ });
37629
+ }), r.children.push(n);
37630
+ })) : e.type === "formtemplate" ? t?.[e.name]?.length > 0 && (r.children = [], t[e.name].forEach((t) => {
37631
+ r.children.push(i(e, t, e.form.options));
37632
+ })) : r.value = t?.[e.name] || "", a.children.push(r);
37633
+ }), r.push(a);
37634
+ }
37635
+ }), r;
37636
+ }, E = (e) => {
37637
+ let t = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("userTask"), n = [];
37638
+ for (let e of t) {
37639
+ let t = e.getAttribute("name") || "", r = e.getAttribute("flowable:userType") || "", i = "";
37640
+ r === "candidateGroups" && (i = e.getAttribute("flowable:candidateGroups") || ""), r === "assignee" && (i = e.getAttribute("flowable:assignee") || ""), r === "candidateUsers" && (i = e.getAttribute("flowable:candidateUsers") || ""), n.push({
37641
+ name: t,
37642
+ type: r,
37643
+ value: i
37644
+ });
37645
+ }
37646
+ return n;
37647
+ }, D = v([]);
37648
+ m(() => {
37649
+ c({ approve_record_id: l.record.id }, "/approve/get_approve_record_info").then(async (e) => {
37650
+ u.value = T(e.form_definition__data.dynamicFieldList, e.form_data, e.form_definition__data.options), f.value = {
37651
+ xmlData: e.xml_data,
37652
+ nodeData: e.node_data
37653
+ };
37654
+ let t = await c({ is_active: !0 }, "/sys/query_person_detail_list"), n = await c({
37655
+ is_active: !0,
37656
+ column_fields: ["approvers_m2m_json", "name"]
37657
+ }, "/lyapprove/query_approval_position_list");
37658
+ D.value = E(e.xml_data), D.value = D.value.map((e, t) => ({
37659
+ ...e,
37660
+ id: t,
37661
+ value: e.value ? e.value.split(",").filter(Boolean).map(Number) : null
37662
+ })), D.value.forEach((e) => {
37663
+ e.value && e.value.length > 0 && (e.list = [], (e.type == "assignee" || e.type == "candidateUsers") && e.value.forEach((n) => {
37664
+ t.data.forEach((t) => {
37665
+ n == t.id && e.list.push({ realname: t.realname });
37666
+ });
37667
+ }), e.type == "candidateGroups" && e.value.forEach((t) => {
37668
+ n.data.forEach((n) => {
37669
+ t == n.id && (e.jue_se = n.name, e.list = n.approvers_m2m_json);
37670
+ });
37671
+ }));
37672
+ }), Object.assign(d, e), e.process_instance_id && (S.value.push({
37673
+ name: "开始",
37674
+ id: 0,
37675
+ approval_position__name: d?.form_data?.globalData?.person_position?.name ? d.form_data.globalData.person_position.name : "",
37676
+ assignee__realname: e.send_person__realname,
37677
+ approval_result: "发起",
37678
+ comment: "",
37679
+ end_time: e.start_time
37680
+ }), c({ process_instance_id: e.process_instance_id }, "/lyapprove/query_task_list").then((e) => {
37681
+ e && e.data && e.data.length > 0 && e.data.sort((e, t) => e.id - t.id).forEach((e) => {
37682
+ e.status == "完成" && S.value.push({
37683
+ ...e,
37684
+ approval_result: e.approval_result === "agree" ? "通过" : e.approval_result === "refuse" ? "拒绝" : ""
37685
+ });
37686
+ }), S.value = [].concat(S.value);
37687
+ }));
37688
+ });
37689
+ });
37690
+ let O = (e) => {
37691
+ let t = /* @__PURE__ */ new Set();
37692
+ return e.filter((e) => !t.has(e.title) && t.add(e.title));
37693
+ }, k = (e) => {
37694
+ let t = [];
37695
+ return e && e.length > 0 && e[0].forEach((e, n) => {
37696
+ e.type === "upload" ? t.push({
37697
+ title: e.label,
37698
+ dataIndex: "upload_" + n,
37699
+ minWidth: 150,
37700
+ resizable: !0,
37701
+ autoHeight: !0
37702
+ }) : t.push({
37703
+ title: e.label,
37704
+ dataIndex: "value_" + n,
37705
+ resizable: !0,
37706
+ autoHeight: !0
37707
+ });
37708
+ }), O(t);
37709
+ }, ee = (e) => {
37710
+ let t = [];
37711
+ return e && e.length > 0 && e.forEach((e, n) => {
37712
+ let r = {};
37713
+ e.forEach((e, t) => {
37714
+ e.type === "upload" ? r["upload_" + t] = e.value : r["value_" + t] = e.value;
37715
+ }), t.push({
37716
+ ...r,
37717
+ index: n
37718
+ });
37719
+ }), t;
37720
+ }, te = (e) => (e &&= e.substring(0, 10), e), ne = (e) => {
37721
+ window.open(encodeURI(e), "_blank");
37722
+ };
37723
+ return (c, l) => {
37724
+ let m = b("a-descriptions-item"), _ = b("a-descriptions"), v = b("a-button"), C = b("s-table"), T = b("a-tag");
37725
+ return h(), i("div", zj, [a("div", Bj, [a("div", Vj, "流程编码:" + x(t.record?.number), 1), a("div", Hj, x(d?.context) + "(" + x(d?.flow_name) + ")", 1)]), a("div", Uj, [
37726
+ l[2] ||= a("div", {
37727
+ class: "xinxi-title",
37728
+ style: { "margin-top": "0" }
37729
+ }, " 基本信息 ", -1),
37730
+ s(_, { bordered: "" }, {
37731
+ default: w(() => [
37732
+ s(m, { label: "发起人" }, {
37733
+ default: w(() => [o(x(d?.send_person__realname), 1)]),
37734
+ _: 1
37735
+ }),
37736
+ s(m, { label: "切换组织" }, {
37737
+ default: w(() => [o(x(d?.form_data?.globalData?.cost_company?.name), 1)]),
37738
+ _: 1
37739
+ }),
37740
+ s(m, { label: "切换部门" }, {
37741
+ default: w(() => [o(x(d?.form_data?.globalData?.cost_department?.name), 1)]),
37742
+ _: 1
37743
+ }),
37744
+ s(m, { label: "员工职位" }, {
37745
+ default: w(() => [o(x(d?.form_data?.globalData?.person_position?.name), 1)]),
37746
+ _: 1
37747
+ }),
37748
+ s(m, { label: "员工组织" }, {
37749
+ default: w(() => [o(x(d?.form_data?.globalData?.person_cost_company?.name), 1)]),
37750
+ _: 1
37751
+ }),
37752
+ s(m, { label: "员工部门" }, {
37753
+ default: w(() => [o(x(d?.form_data?.globalData?.person_department?.name), 1)]),
37754
+ _: 1
37755
+ }),
37756
+ s(m, { label: "发起时间" }, {
37757
+ default: w(() => [o(x(te(d?.start_time)), 1)]),
37758
+ _: 1
37759
+ }),
37760
+ s(m, {
37761
+ span: 2,
37762
+ label: "结束时间"
37763
+ }, {
37764
+ default: w(() => [o(x(te(d?.finish_time)), 1)]),
37765
+ _: 1
37766
+ }),
37767
+ s(m, { label: "流程主题" }, {
37768
+ default: w(() => [o(x(d?.context), 1)]),
37769
+ _: 1
37770
+ })
37771
+ ]),
37772
+ _: 1
37773
+ }),
37774
+ (h(!0), i(e, null, y(u.value, (t, c) => (h(), i(e, { key: c }, [
37775
+ a("div", Wj, x(t?.group_name ? t.group_name : "审批信息" + (c + 1)), 1),
37776
+ s(_, {
37777
+ bordered: "",
37778
+ column: t?.column ? t?.column : 3
37779
+ }, {
37780
+ default: w(() => [(h(!0), i(e, null, y(t.children, (t, c) => (h(), i(e, { key: c }, [t.type !== "remotetablepro" && t.type !== "formtemplate" ? (h(), i(e, { key: 0 }, [t.type === "textarea" ? (h(), n(m, {
37781
+ key: 0,
37782
+ label: t.label
37783
+ }, {
37784
+ default: w(() => [a("p", Gj, x(t.value), 1)]),
37785
+ _: 2
37786
+ }, 1032, ["label"])) : t.type === "upload" ? (h(), n(m, {
37787
+ key: 1,
37788
+ label: t.label
37789
+ }, {
37790
+ default: w(() => [t.value && t.value?.length > 0 ? (h(!0), i(e, { key: 0 }, y(t.value, (t, n) => (h(), i(e, { key: n }, [n > 0 ? (h(), i("br", Kj)) : r("", !0), s(v, {
37791
+ type: "link",
37792
+ onClick: (e) => ne(t.url)
37793
+ }, {
37794
+ default: w(() => [o(x(t.name), 1)]),
37795
+ _: 2
37796
+ }, 1032, ["onClick"])], 64))), 128)) : r("", !0)]),
37797
+ _: 2
37798
+ }, 1032, ["label"])) : (h(), n(m, {
37799
+ key: 2,
37800
+ label: t.label,
37801
+ span: 1
37802
+ }, {
37803
+ default: w(() => [o(x(t.value), 1)]),
37804
+ _: 2
37805
+ }, 1032, ["label"]))], 64)) : r("", !0)], 64))), 128))]),
37806
+ _: 2
37807
+ }, 1032, ["column"]),
37808
+ s(_, {
37809
+ bordered: "",
37810
+ column: t?.column ? t?.column : 3
37811
+ }, {
37812
+ default: w(() => [(h(!0), i(e, null, y(t.children, (t, c) => (h(), i(e, { key: c }, [t.type === "remotetablepro" ? (h(), n(m, {
37813
+ key: 0,
37814
+ label: t.label,
37815
+ span: 3
37816
+ }, {
37817
+ default: w(() => [s(C, {
37818
+ columns: k(t.children),
37819
+ "data-source": ee(t.children),
37820
+ pagination: !1,
37821
+ rangeSelection: !1,
37822
+ "row-key": "index",
37823
+ bordered: "",
37824
+ size: "small",
37825
+ stripe: ""
37826
+ }, {
37827
+ bodyCell: w(({ record: t, column: n, text: c, index: l }) => [n.dataIndex.includes("upload") ? (h(), i(e, { key: 0 }, [c && c?.length > 0 ? (h(!0), i(e, { key: 0 }, y(c, (t, n) => (h(), i(e, { key: n }, [n > 0 ? (h(), i("br", qj)) : r("", !0), s(v, {
37828
+ title: t.name,
37829
+ style: {
37830
+ "padding-left": "1px",
37831
+ width: "100%"
37832
+ },
37833
+ type: "link",
37834
+ onClick: (e) => ne(t.url)
37835
+ }, {
37836
+ default: w(() => [a("span", Jj, x(t.name), 1)]),
37837
+ _: 2
37838
+ }, 1032, ["title", "onClick"])], 64))), 128)) : r("", !0)], 64)) : (h(), i(e, { key: 1 }, [o(x(c), 1)], 64))]),
37839
+ _: 1
37840
+ }, 8, ["columns", "data-source"])]),
37841
+ _: 2
37842
+ }, 1032, ["label"])) : r("", !0), t.type === "formtemplate" ? (h(), n(m, {
37843
+ key: 1,
37844
+ label: t.label,
37845
+ span: 3
37846
+ }, {
37847
+ default: w(() => [(h(!0), i(e, null, y(t.children, (c, l) => (h(), i(e, { key: l }, [s(_, {
37848
+ bordered: "",
37849
+ column: t?.column ? t?.column : 3
37850
+ }, {
37851
+ default: w(() => [(h(!0), i(e, null, y(c, (t, c) => (h(), i(e, { key: c }, [t.type !== "remotetablepro" && t.type !== "formtemplate" ? (h(), i(e, { key: 0 }, [t.type === "textarea" && !t.is_hide ? (h(), n(m, {
37852
+ key: 0,
37853
+ label: t.label
37854
+ }, {
37855
+ default: w(() => [a("p", Yj, x(t.value), 1)]),
37856
+ _: 2
37857
+ }, 1032, ["label"])) : t.type === "upload" && !t.is_hide ? (h(), n(m, {
37858
+ key: 1,
37859
+ label: t.label
37860
+ }, {
37861
+ default: w(() => [t.value && t.value?.length > 0 ? (h(!0), i(e, { key: 0 }, y(t.value, (t, n) => (h(), i(e, { key: n }, [n > 0 ? (h(), i("br", Xj)) : r("", !0), s(v, {
37862
+ type: "link",
37863
+ onClick: (e) => ne(t.url)
37864
+ }, {
37865
+ default: w(() => [o(x(t.name), 1)]),
37866
+ _: 2
37867
+ }, 1032, ["onClick"])], 64))), 128)) : r("", !0)]),
37868
+ _: 2
37869
+ }, 1032, ["label"])) : (h(), i(e, { key: 2 }, [t.is_hide ? r("", !0) : (h(), n(m, {
37870
+ key: 0,
37871
+ label: t.label
37872
+ }, {
37873
+ default: w(() => [o(x(t.value), 1)]),
37874
+ _: 2
37875
+ }, 1032, ["label"]))], 64))], 64)) : r("", !0)], 64))), 128))]),
37876
+ _: 2
37877
+ }, 1032, ["column"]), s(_, {
37878
+ bordered: "",
37879
+ column: t?.column ? t?.column : 3
37880
+ }, {
37881
+ default: w(() => [(h(!0), i(e, null, y(c, (t, c) => (h(), i(e, { key: c }, [t.type === "remotetablepro" && !t.is_hide ? (h(), n(m, {
37882
+ key: 0,
37883
+ label: t.label,
37884
+ span: 3
37885
+ }, {
37886
+ default: w(() => [s(C, {
37887
+ columns: k(t.children),
37888
+ "data-source": ee(t.children),
37889
+ pagination: !1,
37890
+ rangeSelection: !1,
37891
+ "row-key": "index",
37892
+ bordered: "",
37893
+ size: "small",
37894
+ stripe: ""
37895
+ }, {
37896
+ bodyCell: w(({ record: t, column: n, text: c, index: l }) => [n.dataIndex.includes("upload") ? (h(), i(e, { key: 0 }, [c && c?.length > 0 ? (h(!0), i(e, { key: 0 }, y(c, (t, n) => (h(), i(e, { key: n }, [n > 0 ? (h(), i("br", Zj)) : r("", !0), s(v, {
37897
+ title: t.name,
37898
+ style: {
37899
+ "padding-left": "1px",
37900
+ width: "100%"
37901
+ },
37902
+ type: "link",
37903
+ onClick: (e) => ne(t.url)
37904
+ }, {
37905
+ default: w(() => [a("span", Qj, x(t.name), 1)]),
37906
+ _: 2
37907
+ }, 1032, ["title", "onClick"])], 64))), 128)) : r("", !0)], 64)) : (h(), i(e, { key: 1 }, [o(x(c), 1)], 64))]),
37908
+ _: 1
37909
+ }, 8, ["columns", "data-source"])]),
37910
+ _: 2
37911
+ }, 1032, ["label"])) : r("", !0), t.type === "formtemplate" && !t.is_hide ? (h(), n(m, {
37912
+ key: 1,
37913
+ label: t.label,
37914
+ span: 3
37915
+ }, {
37916
+ default: w(() => [(h(!0), i(e, null, y(t.children, (c, l) => (h(), i(e, { key: l }, [s(_, {
37917
+ bordered: "",
37918
+ column: t?.column ? t?.column : 3
37919
+ }, {
37920
+ default: w(() => [(h(!0), i(e, null, y(c, (t, c) => (h(), i(e, { key: c }, [t.type !== "remotetablepro" && t.type !== "formtemplate" ? (h(), i(e, { key: 0 }, [t.type === "textarea" && !t.is_hide ? (h(), n(m, {
37921
+ key: 0,
37922
+ label: t.label
37923
+ }, {
37924
+ default: w(() => [a("p", $j, x(t.value), 1)]),
37925
+ _: 2
37926
+ }, 1032, ["label"])) : t.type === "upload" && !t.is_hide ? (h(), n(m, {
37927
+ key: 1,
37928
+ label: t.label
37929
+ }, {
37930
+ default: w(() => [t.value && t.value?.length > 0 ? (h(!0), i(e, { key: 0 }, y(t.value, (t, n) => (h(), i(e, { key: n }, [n > 0 ? (h(), i("br", eM)) : r("", !0), s(v, {
37931
+ type: "link",
37932
+ onClick: (e) => ne(t.url)
37933
+ }, {
37934
+ default: w(() => [o(x(t.name), 1)]),
37935
+ _: 2
37936
+ }, 1032, ["onClick"])], 64))), 128)) : r("", !0)]),
37937
+ _: 2
37938
+ }, 1032, ["label"])) : (h(), i(e, { key: 2 }, [t.is_hide ? r("", !0) : (h(), n(m, {
37939
+ key: 0,
37940
+ label: t.label
37941
+ }, {
37942
+ default: w(() => [o(x(t.value), 1)]),
37943
+ _: 2
37944
+ }, 1032, ["label"]))], 64))], 64)) : r("", !0)], 64))), 128))]),
37945
+ _: 2
37946
+ }, 1032, ["column"]), s(_, {
37947
+ bordered: "",
37948
+ column: t?.column ? t?.column : 3
37949
+ }, {
37950
+ default: w(() => [(h(!0), i(e, null, y(c, (t, c) => (h(), i(e, { key: c }, [t.type === "remotetablepro" ? (h(), n(m, {
37951
+ key: 0,
37952
+ label: t.label,
37953
+ span: 3
37954
+ }, {
37955
+ default: w(() => [s(C, {
37956
+ columns: k(t.children),
37957
+ "data-source": ee(t.children),
37958
+ pagination: !1,
37959
+ rangeSelection: !1,
37960
+ "row-key": "index",
37961
+ bordered: "",
37962
+ size: "small",
37963
+ stripe: ""
37964
+ }, {
37965
+ bodyCell: w(({ record: t, column: n, text: c, index: l }) => [n.dataIndex.includes("upload") ? (h(), i(e, { key: 0 }, [c && c?.length > 0 ? (h(!0), i(e, { key: 0 }, y(c, (t, n) => (h(), i(e, { key: n }, [n > 0 ? (h(), i("br", tM)) : r("", !0), s(v, {
37966
+ title: t.name,
37967
+ style: {
37968
+ "padding-left": "1px",
37969
+ width: "100%"
37970
+ },
37971
+ type: "link",
37972
+ onClick: (e) => ne(t.url)
37973
+ }, {
37974
+ default: w(() => [a("span", nM, x(t.name), 1)]),
37975
+ _: 2
37976
+ }, 1032, ["title", "onClick"])], 64))), 128)) : r("", !0)], 64)) : (h(), i(e, { key: 1 }, [o(x(c), 1)], 64))]),
37977
+ _: 1
37978
+ }, 8, ["columns", "data-source"])]),
37979
+ _: 2
37980
+ }, 1032, ["label"])) : r("", !0), t.type === "formtemplate" ? (h(), n(m, {
37981
+ key: 1,
37982
+ label: t.label,
37983
+ span: 3
37984
+ }, {
37985
+ default: w(() => [(h(!0), i(e, null, y(t.children, (c, l) => (h(), i(e, { key: l }, [s(_, {
37986
+ bordered: "",
37987
+ column: t?.column ? t?.column : 3
37988
+ }, {
37989
+ default: w(() => [(h(!0), i(e, null, y(c, (t, c) => (h(), i(e, { key: c }, [t.type !== "remotetablepro" && t.type !== "formtemplate" ? (h(), i(e, { key: 0 }, [t.type === "textarea" && !t.is_hide ? (h(), n(m, {
37990
+ key: 0,
37991
+ label: t.label
37992
+ }, {
37993
+ default: w(() => [a("p", rM, x(t.value), 1)]),
37994
+ _: 2
37995
+ }, 1032, ["label"])) : t.type === "upload" && !t.is_hide ? (h(), n(m, {
37996
+ key: 1,
37997
+ label: t.label
37998
+ }, {
37999
+ default: w(() => [t.value && t.value?.length > 0 ? (h(!0), i(e, { key: 0 }, y(t.value, (t, n) => (h(), i(e, { key: n }, [n > 0 ? (h(), i("br", iM)) : r("", !0), s(v, {
38000
+ type: "link",
38001
+ onClick: (e) => ne(t.url)
38002
+ }, {
38003
+ default: w(() => [o(x(t.name), 1)]),
38004
+ _: 2
38005
+ }, 1032, ["onClick"])], 64))), 128)) : r("", !0)]),
38006
+ _: 2
38007
+ }, 1032, ["label"])) : (h(), i(e, { key: 2 }, [t.is_hide ? r("", !0) : (h(), n(m, {
38008
+ key: 0,
38009
+ label: t.label
38010
+ }, {
38011
+ default: w(() => [o(x(t.value), 1)]),
38012
+ _: 2
38013
+ }, 1032, ["label"]))], 64))], 64)) : r("", !0)], 64))), 128))]),
38014
+ _: 2
38015
+ }, 1032, ["column"]), s(_, {
38016
+ bordered: "",
38017
+ column: t?.column ? t?.column : 3
38018
+ }, {
38019
+ default: w(() => [(h(!0), i(e, null, y(c, (t, c) => (h(), i(e, { key: c }, [t.type === "remotetablepro" ? (h(), n(m, {
38020
+ key: 0,
38021
+ label: t.label,
38022
+ span: 3
38023
+ }, {
38024
+ default: w(() => [s(C, {
38025
+ columns: k(t.children),
38026
+ "data-source": ee(t.children),
38027
+ pagination: !1,
38028
+ rangeSelection: !1,
38029
+ "row-key": "index",
38030
+ bordered: "",
38031
+ size: "small",
38032
+ stripe: ""
38033
+ }, {
38034
+ bodyCell: w(({ record: t, column: n, text: c, index: l }) => [n.dataIndex.includes("upload") ? (h(), i(e, { key: 0 }, [c && c?.length > 0 ? (h(!0), i(e, { key: 0 }, y(c, (t, n) => (h(), i(e, { key: n }, [n > 0 ? (h(), i("br", aM)) : r("", !0), s(v, {
38035
+ title: t.name,
38036
+ style: {
38037
+ "padding-left": "1px",
38038
+ width: "100%"
38039
+ },
38040
+ type: "link",
38041
+ onClick: (e) => ne(t.url)
38042
+ }, {
38043
+ default: w(() => [a("span", oM, x(t.name), 1)]),
38044
+ _: 2
38045
+ }, 1032, ["title", "onClick"])], 64))), 128)) : r("", !0)], 64)) : (h(), i(e, { key: 1 }, [o(x(c), 1)], 64))]),
38046
+ _: 1
38047
+ }, 8, ["columns", "data-source"])]),
38048
+ _: 2
38049
+ }, 1032, ["label"])) : r("", !0)], 64))), 128))]),
38050
+ _: 2
38051
+ }, 1032, ["column"])], 64))), 128))]),
38052
+ _: 2
38053
+ }, 1032, ["label"])) : r("", !0)], 64))), 128))]),
38054
+ _: 2
38055
+ }, 1032, ["column"])], 64))), 128))]),
38056
+ _: 2
38057
+ }, 1032, ["label"])) : r("", !0)], 64))), 128))]),
38058
+ _: 2
38059
+ }, 1032, ["column"])], 64))), 128))]),
38060
+ _: 2
38061
+ }, 1032, ["label"])) : r("", !0)], 64))), 128))]),
38062
+ _: 2
38063
+ }, 1032, ["column"])
38064
+ ], 64))), 128)),
38065
+ S.value.length > 0 ? (h(), i(e, { key: 0 }, [l[0] ||= a("div", { class: "xinxi-title" }, "审批记录", -1), s(C, {
38066
+ columns: p,
38067
+ "data-source": S.value,
38068
+ pagination: !1,
38069
+ rangeSelection: !1,
38070
+ scroll: { y: 400 },
38071
+ rowKey: "id",
38072
+ bordered: "",
38073
+ size: "small",
38074
+ stripe: ""
38075
+ }, {
38076
+ bodyCell: w(({ column: t, index: n, text: r, record: a }) => [t.dataIndex == "index" ? (h(), i(e, { key: 0 }, [o(x(n + 1), 1)], 64)) : (h(), i(e, { key: 1 }, [o(x(r), 1)], 64))]),
38077
+ _: 1
38078
+ }, 8, ["data-source"])], 64)) : r("", !0),
38079
+ D.value.length > 0 ? (h(), i(e, { key: 1 }, [l[1] ||= a("div", { class: "xinxi-title" }, "步骤审批人信息", -1), s(C, {
38080
+ columns: g,
38081
+ "data-source": D.value,
38082
+ pagination: !1,
38083
+ rangeSelection: !1,
38084
+ scroll: { y: 400 },
38085
+ rowKey: "id",
38086
+ bordered: "",
38087
+ size: "small",
38088
+ stripe: ""
38089
+ }, {
38090
+ bodyCell: w(({ column: t, index: a, text: s, record: c }) => [t.dataIndex == "index" ? (h(), i(e, { key: 0 }, [o(x(a + 1), 1)], 64)) : t.dataIndex == "jue_se" ? (h(), i(e, { key: 1 }, [c?.jue_se ? (h(), n(T, {
38091
+ key: 0,
38092
+ color: "blue"
38093
+ }, {
38094
+ default: w(() => [o(x(c?.jue_se || ""), 1)]),
38095
+ _: 2
38096
+ }, 1024)) : r("", !0)], 64)) : t.dataIndex == "list" ? (h(!0), i(e, { key: 2 }, y(c.list, (e, t) => (h(), n(T, {
38097
+ key: t,
38098
+ color: "green"
38099
+ }, {
38100
+ default: w(() => [o(x(e.realname), 1)]),
38101
+ _: 2
38102
+ }, 1024))), 128)) : (h(), i(e, { key: 3 }, [o(x(s), 1)], 64))]),
38103
+ _: 1
38104
+ }, 8, ["data-source"])], 64)) : r("", !0),
38105
+ a("div", sM, [s(Rj, {
38106
+ flowData: f.value,
38107
+ height: 400
38108
+ }, null, 8, ["flowData"])])
38109
+ ])]);
38110
+ };
38111
+ }
38112
+ }), [["__scopeId", "data-v-e129b57e"]]), lM = { install(e, t) {
38113
+ t?.request && e.use(hk(t.request)), t?.useUserStore && e.use(gk(t.useUserStore)), t?.getApiData && e.use(_k(t.getApiData));
37439
38114
  } };
37440
38115
  //#endregion
37441
- export { Oj as MyProcess, Fj as MyProcessViewer, Ij as default };
38116
+ export { cM as ApprovalForDetails, jj as MyProcess, Rj as MyProcessViewer, lM as default };