lyflowchart 1.0.100 → 1.0.102

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
@@ -32540,6 +32540,16 @@ var sk = /* @__PURE__ */ BO(ik, [["render", ok], ["__scopeId", "data-v-03e91aa5"
32540
32540
  "not_blank_not_null",
32541
32541
  "is_blank"
32542
32542
  ],
32543
+ dynamicvaluefield: [
32544
+ "eq",
32545
+ "contains",
32546
+ "startswith",
32547
+ "not_eq",
32548
+ "in",
32549
+ "notin",
32550
+ "not_blank_not_null",
32551
+ "is_blank"
32552
+ ],
32543
32553
  textarea: [
32544
32554
  "eq",
32545
32555
  "contains",
@@ -33129,6 +33139,11 @@ var Rk = c({
33129
33139
  type: Object,
33130
33140
  required: !1,
33131
33141
  default: {}
33142
+ },
33143
+ globalOptions: {
33144
+ type: Array,
33145
+ required: !1,
33146
+ default: []
33132
33147
  }
33133
33148
  },
33134
33149
  components: {
@@ -33178,7 +33193,7 @@ var Rk = c({
33178
33193
  label: e?.[t?.labelKey],
33179
33194
  value: e?.[t?.valueKey]
33180
33195
  }));
33181
- f.value[e.field_name] = i, ue.success("获取数据成功");
33196
+ p.value[e.field_name] = i, ue.success("获取数据成功");
33182
33197
  } else if (t.type == "remotetreeselectpro") {
33183
33198
  e.labelKey = t.labelKey, e.valueKey = t.valueKey;
33184
33199
  let n = _k(), r;
@@ -33190,7 +33205,7 @@ var Rk = c({
33190
33205
  label: e?.[t?.labelKey],
33191
33206
  value: e?.[t?.valueKey]
33192
33207
  }));
33193
- f.value[e.field_name] = i, ue.success("获取数据成功");
33208
+ p.value[e.field_name] = i, ue.success("获取数据成功");
33194
33209
  } else if (t.type == "remotecascaderpro") {
33195
33210
  e.value = [], e.labelKey = t.labelKey, e.valueKey = t.valueKey;
33196
33211
  let n = _k(), r;
@@ -33202,9 +33217,9 @@ var Rk = c({
33202
33217
  label: e?.[t?.labelKey],
33203
33218
  value: e?.[t?.valueKey]
33204
33219
  }));
33205
- f.value[e.field_name] = i, ue.success("获取数据成功");
33220
+ p.value[e.field_name] = i, ue.success("获取数据成功");
33206
33221
  } else t.type == "cascader" ? (e.value = [], e.labelKey = t.labelKey, e.valueKey = t.valueKey) : t.type == "checkbox" && (e.value = []);
33207
- }, u = v([]), d = v([]), f = v({}), p = () => {
33222
+ }, u = v([]), d = v([]), f = v([]), p = v({}), m = () => {
33208
33223
  a.value = { body: null }, r = n.element.source, i = n.element.businessObject.sourceRef;
33209
33224
  let e = i, t = n.element.id;
33210
33225
  if (e && e.default && e.default.id === t) a.value.type = "default";
@@ -33224,11 +33239,11 @@ var Rk = c({
33224
33239
  else u.value.length = 0;
33225
33240
  }
33226
33241
  }
33227
- }, m = (e) => {
33242
+ }, h = (e) => {
33228
33243
  if (e === "condition") {
33229
33244
  a.value.conditionType = "expression";
33230
33245
  let e = n.moddle.create("bpmn:FormalExpression");
33231
- n.modeling.updateProperties(n.element, { conditionExpression: e }), y(d.value, {}, "");
33246
+ n.modeling.updateProperties(n.element, { conditionExpression: e }), b(f.value, {}, "");
33232
33247
  return;
33233
33248
  }
33234
33249
  if (e === "default") {
@@ -33236,7 +33251,7 @@ var Rk = c({
33236
33251
  return;
33237
33252
  }
33238
33253
  a.value.conditionType = null, n.modeling.updateProperties(n.element, { conditionExpression: void 0 });
33239
- }, h = () => {
33254
+ }, g = () => {
33240
33255
  let { conditionType: e, scriptType: t, body: r, resource: i, language: o } = a.value, s = null;
33241
33256
  e === "expression" ? s = n.moddle.create("bpmn:FormalExpression", { body: r }) : e === "script" && (t === "inlineScript" ? (a.value.resource = "", s = n.moddle.create("bpmn:FormalExpression", {
33242
33257
  body: r,
@@ -33245,7 +33260,7 @@ var Rk = c({
33245
33260
  resource: i,
33246
33261
  language: o
33247
33262
  }))), s && (n.modeling.updateProperties(n.element, { conditionExpression: s }), n.modeling.updateProperties(n.element, { "custom:conditionGroup": JSON.stringify(u.value) }));
33248
- }, g = (e, t, n) => {
33263
+ }, _ = (e, t, n) => {
33249
33264
  let r = (e) => e.replace(/'/g, "\\'"), i = Array.isArray(n) ? n.filter((e) => typeof e == "string") : [];
33250
33265
  if (t == "eq") {
33251
33266
  if (i.length === 0) return "false";
@@ -33258,7 +33273,7 @@ var Rk = c({
33258
33273
  return `${e} == null or ${e}.size() != ${i.length} or !(${t})`;
33259
33274
  }
33260
33275
  return t == "in" ? i.length === 0 ? "false" : `${e} != null and (${i.map((t) => `${e}.contains('${r(t)}')`).join(" or ")})` : t == "notin" ? i.length === 0 ? "false" : `${e} == null or !(${i.map((t) => `${e}.contains('${r(t)}')`).join(" or ")})` : "false";
33261
- }, _ = t(() => {
33276
+ }, y = t(() => {
33262
33277
  function e(e) {
33263
33278
  return typeof e == "string" ? `"${String(e).replace(/"/g, "\\\"")}"` : typeof e == "boolean" ? String(e).toLowerCase() : String(e);
33264
33279
  }
@@ -33268,8 +33283,8 @@ var Rk = c({
33268
33283
  if (r == "lte") return `${n}<=${e(i)}`;
33269
33284
  if (r == "gt") return `${n}>${e(i)}`;
33270
33285
  if (r == "gte") return `${n}>=${e(i)}`;
33271
- if (r == "eq") return a == "cascader" ? g(n, r, i) : `${n}==${e(i)}`;
33272
- if (r == "not_eq") return a == "cascader" ? g(n, r, i) : `${n}!=${e(i)}`;
33286
+ if (r == "eq") return a == "cascader" ? _(n, r, i) : `${n}==${e(i)}`;
33287
+ if (r == "not_eq") return a == "cascader" ? _(n, r, i) : `${n}!=${e(i)}`;
33273
33288
  if (r == "between") {
33274
33289
  if (!Array.isArray(i)) return "true";
33275
33290
  let [r, a] = i;
@@ -33281,12 +33296,12 @@ var Rk = c({
33281
33296
  return t.type == "timepicker" || t.type == "datepicker" ? `(${n}<${e(r)} || ${n}>${e(a)})` : `(${n}<${r} || ${n}>${a})`;
33282
33297
  }
33283
33298
  if (r == "in") {
33284
- if (a == "cascader") return g(n, r, i);
33299
+ if (a == "cascader") return _(n, r, i);
33285
33300
  let t;
33286
33301
  return t = typeof i == "string" ? i == "" ? [] : [i] : typeof i == "boolean" || typeof i == "number" ? [i] : i, !t || t.length === 0 ? "${true}" : `${t.map((t) => `${n}==${e(t)}`).join(" && ")}`;
33287
33302
  }
33288
33303
  if (r == "notin") {
33289
- if (a == "cascader") return g(n, r, i);
33304
+ if (a == "cascader") return _(n, r, i);
33290
33305
  let t;
33291
33306
  return t = typeof i == "string" ? i == "" ? [] : [i] : typeof i == "boolean" || typeof i == "number" ? [i] : i, !t || t.length === 0 ? "${true}" : `${t.map((t) => `${n}!=${e(t)}`).join(" && ")}`;
33292
33307
  }
@@ -33342,10 +33357,10 @@ var Rk = c({
33342
33357
  }).filter(Boolean);
33343
33358
  return n.length === 0 ? "" : `\${${n.join(" || ")}}`;
33344
33359
  });
33345
- C(_, (e) => {
33346
- a.value.body = e, h();
33360
+ C(y, (e) => {
33361
+ a.value.body = e, g();
33347
33362
  });
33348
- function y(e, t, n = "==") {
33363
+ function b(e, t, n = "==") {
33349
33364
  let r = [];
33350
33365
  return e.forEach((e) => {
33351
33366
  e.children.forEach((e) => {
@@ -33361,7 +33376,7 @@ var Rk = c({
33361
33376
  });
33362
33377
  }), r.map((e) => ({ conditions: [e] }));
33363
33378
  }
33364
- let b = () => {
33379
+ let x = () => {
33365
33380
  u.value.push({ conditions: [{
33366
33381
  format: "",
33367
33382
  field_name: "",
@@ -33371,7 +33386,7 @@ var Rk = c({
33371
33386
  type: null,
33372
33387
  key: crypto.randomUUID()
33373
33388
  }] });
33374
- }, x = (e) => {
33389
+ }, S = (e) => {
33375
33390
  u.value[e].conditions.push({
33376
33391
  format: "",
33377
33392
  field_name: "",
@@ -33381,46 +33396,150 @@ var Rk = c({
33381
33396
  type: null,
33382
33397
  key: crypto.randomUUID()
33383
33398
  });
33384
- }, S = (e) => {
33399
+ }, w = (e) => {
33385
33400
  u.value.splice(e, 1);
33386
- }, w = (e, t) => {
33401
+ }, T = (e, t) => {
33387
33402
  u.value[e].conditions.splice(t, 1), u.value[e].conditions.length == 0 && u.value.splice(e, 1);
33388
- }, T = (e) => {
33403
+ }, E = (e) => {
33389
33404
  console.log("value", e);
33390
- }, E = () => {}, D = () => {
33391
- e.formData?.dynamicFieldList && (d.value = JSON.parse(JSON.stringify(e.formData.dynamicFieldList))), e.formData?.options && (f.value = JSON.parse(JSON.stringify(e.formData.options))), o.value.length = 0, s.value.length = 0, d.value.forEach((e) => {
33405
+ }, D = () => {}, O = (e, t) => [
33406
+ "date",
33407
+ "start_date",
33408
+ "end_date"
33409
+ ].includes(e.key) ? {
33410
+ type: "datepicker",
33411
+ label: `${e.label}`,
33412
+ disabled: !1,
33413
+ placeholder: "请选择日期时间选择器",
33414
+ allowClear: !0,
33415
+ showTime: !1,
33416
+ format: "YYYY-MM-DD",
33417
+ valueFormat: "YYYY-MM-DD",
33418
+ name: `${t}`,
33419
+ key: "0b59bfe00b3699ca807b2650b98fd5e2",
33420
+ required: !1,
33421
+ span: 24,
33422
+ pull: 0,
33423
+ push: 0,
33424
+ offset: 0,
33425
+ is_show_field: !0
33426
+ } : ["id"].includes(e.key) ? {
33427
+ type: "number",
33428
+ label: `${e.label}`,
33429
+ disabled: !1,
33430
+ inputType: "number",
33431
+ formatter: null,
33432
+ max: null,
33433
+ min: null,
33434
+ precision: null,
33435
+ step: 1,
33436
+ addonAfter: null,
33437
+ addonBefore: null,
33438
+ prefix: null,
33439
+ prefixIcon: null,
33440
+ suffixIcon: null,
33441
+ addonBeforeIcon: null,
33442
+ addonAfterIcon: null,
33443
+ placeholder: `请填写${e.label}`,
33444
+ name: `${t}`,
33445
+ key: "380684ef6d2b1650a2ae0d85e7250a88",
33446
+ required: !1,
33447
+ span: 24,
33448
+ pull: 0,
33449
+ push: 0,
33450
+ offset: 0,
33451
+ is_show_field: !0
33452
+ } : ["id"].includes(e.key) ? {
33453
+ type: "number",
33454
+ label: `${e.label}`,
33455
+ disabled: !1,
33456
+ inputType: "number",
33457
+ formatter: null,
33458
+ max: null,
33459
+ min: null,
33460
+ precision: null,
33461
+ step: 1,
33462
+ addonAfter: null,
33463
+ addonBefore: null,
33464
+ prefix: null,
33465
+ prefixIcon: null,
33466
+ suffixIcon: null,
33467
+ addonBeforeIcon: null,
33468
+ addonAfterIcon: null,
33469
+ placeholder: `请填写${e.label}`,
33470
+ name: `${t}`,
33471
+ key: `${t}`,
33472
+ required: !1,
33473
+ span: 24,
33474
+ pull: 0,
33475
+ push: 0,
33476
+ offset: 0,
33477
+ is_show_field: !0
33478
+ } : {
33479
+ addonAfter: null,
33480
+ addonAfterIcon: null,
33481
+ addonBefore: null,
33482
+ addonBeforeIcon: null,
33483
+ allowClear: !0,
33484
+ disabled: !1,
33485
+ inputType: "text",
33486
+ key: `${t}`,
33487
+ label: `${e.label}`,
33488
+ name: `${t}`,
33489
+ offset: 0,
33490
+ placeholder: `请填写${e.label}`,
33491
+ prefix: null,
33492
+ prefixIcon: null,
33493
+ pull: 0,
33494
+ push: 0,
33495
+ span: 24,
33496
+ suffix: null,
33497
+ suffixIcon: null,
33498
+ type: "input",
33499
+ required: !1,
33500
+ is_show_field: !0
33501
+ }, k = () => {
33502
+ f.value.length = 0, e.formData?.dynamicFieldList && (f.value = JSON.parse(JSON.stringify(e.formData.dynamicFieldList))), e.globalOptions && (d.value = JSON.parse(JSON.stringify(e.globalOptions))), e.formData?.options && (p.value = JSON.parse(JSON.stringify(e.formData.options))), o.value.length = 0, s.value.length = 0, f.value.forEach((e) => {
33392
33503
  e.children.forEach((e) => {
33393
33504
  o.value.push({ ...e }), s.value.push({
33394
33505
  label: e.label,
33395
33506
  value: e.name
33396
33507
  });
33397
33508
  });
33509
+ }), d.value.forEach((e) => {
33510
+ e.children && e.children.forEach((t) => {
33511
+ let n = `globalData__${e.key}__${t.key}`, r = t.label, i = O(t, n);
33512
+ o.value.push({ ...i }), s.value.push({
33513
+ label: r,
33514
+ value: n
33515
+ });
33516
+ });
33398
33517
  });
33399
33518
  };
33400
33519
  return C(() => e.id, (e) => {
33401
- LO.isNotBlank(e) && (D(), p());
33520
+ LO.isNotBlank(e) && (k(), m());
33402
33521
  }, { immediate: !0 }), C(() => e.formData, () => {
33403
- D(), p();
33522
+ k(), m();
33404
33523
  }, { deep: !0 }), {
33405
33524
  operatorNameMap: lk,
33406
33525
  FieldTypeOperatorMap: ck,
33407
33526
  bpmnFormData: a,
33408
- expression: _,
33527
+ expression: y,
33409
33528
  conditionGroups: u,
33410
- options: f,
33529
+ options: p,
33411
33530
  binaryOpMap: uk,
33412
33531
  formItemKeyList: o,
33413
33532
  columnNameList: s,
33414
33533
  field_name: v(""),
33415
- updateFlowType: m,
33416
- handleAddConditionGroup: b,
33417
- handleAddGroupItem: x,
33418
- handleDeleteConditionItem: w,
33534
+ updateFlowType: h,
33535
+ handleAddConditionGroup: x,
33536
+ handleAddGroupItem: S,
33537
+ handleDeleteConditionItem: T,
33419
33538
  handleChangeFieldName: l,
33420
33539
  handleChangeOperator: c,
33421
- handleInputChange: T,
33422
- handleUpdate: E,
33423
- handleDeleteCondition: S
33540
+ handleInputChange: E,
33541
+ handleUpdate: D,
33542
+ handleDeleteCondition: w
33424
33543
  };
33425
33544
  }
33426
33545
  });
@@ -33513,12 +33632,12 @@ function zk(t, c, l, u, d, f) {
33513
33632
  value: l.field_name,
33514
33633
  "onUpdate:value": (e) => l.field_name = e,
33515
33634
  columnNameList: t.columnNameList,
33516
- onChange: (e) => t.handleChangeFieldName(l)
33635
+ onSelect: (e) => t.handleChangeFieldName(l)
33517
33636
  }, null, 8, [
33518
33637
  "value",
33519
33638
  "onUpdate:value",
33520
33639
  "columnNameList",
33521
- "onChange"
33640
+ "onSelect"
33522
33641
  ])]),
33523
33642
  _: 2
33524
33643
  }, 1024)]),
@@ -33551,10 +33670,15 @@ function zk(t, c, l, u, d, f) {
33551
33670
  value: l.value,
33552
33671
  "onUpdate:value": (e) => l.value = e,
33553
33672
  placeholder: "字符串"
33554
- }, null, 8, ["value", "onUpdate:value"])) : l.type == "textarea" ? (h(), n(ne, {
33673
+ }, null, 8, ["value", "onUpdate:value"])) : l.type == "dynamicvaluefield" ? (h(), n(te, {
33555
33674
  key: 1,
33556
33675
  value: l.value,
33557
33676
  "onUpdate:value": (e) => l.value = e,
33677
+ placeholder: "字符串"
33678
+ }, null, 8, ["value", "onUpdate:value"])) : l.type == "textarea" ? (h(), n(ne, {
33679
+ key: 2,
33680
+ value: l.value,
33681
+ "onUpdate:value": (e) => l.value = e,
33558
33682
  "allow-clear": !0,
33559
33683
  disabled: l.disabled,
33560
33684
  placeholder: "请输入字符串"
@@ -33563,7 +33687,7 @@ function zk(t, c, l, u, d, f) {
33563
33687
  "onUpdate:value",
33564
33688
  "disabled"
33565
33689
  ])) : l.type == "weight" ? (h(), n(te, {
33566
- key: 2,
33690
+ key: 3,
33567
33691
  value: l.value,
33568
33692
  "onUpdate:value": (e) => l.value = e,
33569
33693
  "allow-clear": !0,
@@ -33572,13 +33696,13 @@ function zk(t, c, l, u, d, f) {
33572
33696
  size: "small",
33573
33697
  type: "number"
33574
33698
  }, null, 8, ["value", "onUpdate:value"])) : l.type == "password" ? (h(), n(re, {
33575
- key: 3,
33699
+ key: 4,
33576
33700
  value: l.value,
33577
33701
  "onUpdate:value": (e) => l.value = e,
33578
33702
  placeholder: "请输入字符串",
33579
33703
  size: "small",
33580
33704
  style: { width: "100%" }
33581
- }, null, 8, ["value", "onUpdate:value"])) : l.type == "number" ? (h(), i(e, { key: 4 }, [l.operator == "between" || l.operator == "notbetween" ? (h(), i(e, { key: 0 }, [
33705
+ }, null, 8, ["value", "onUpdate:value"])) : l.type == "number" ? (h(), i(e, { key: 5 }, [l.operator == "between" || l.operator == "notbetween" ? (h(), i(e, { key: 0 }, [
33582
33706
  s(ie, {
33583
33707
  value: l.value[0],
33584
33708
  "onUpdate:value": (e) => l.value[0] = e,
@@ -33634,7 +33758,7 @@ function zk(t, c, l, u, d, f) {
33634
33758
  "onUpdate:value",
33635
33759
  "addon-after",
33636
33760
  "addon-before"
33637
- ]))], 64)) : l.type == "select" ? (h(), i(e, { key: 5 }, [l.operator == "in" || l.operator == "notin" ? (h(), n(ae, {
33761
+ ]))], 64)) : l.type == "select" ? (h(), i(e, { key: 6 }, [l.operator == "in" || l.operator == "notin" ? (h(), n(ae, {
33638
33762
  key: 0,
33639
33763
  value: l.value,
33640
33764
  "onUpdate:value": [(e) => l.value = e, t.handleInputChange],
@@ -33664,7 +33788,7 @@ function zk(t, c, l, u, d, f) {
33664
33788
  "options",
33665
33789
  "labelKey",
33666
33790
  "valueKey"
33667
- ])) : r("", !0)], 64)) : l.type == "radio" ? (h(), i(e, { key: 6 }, [l.operator == "in" || l.operator == "notin" ? (h(), n(ae, {
33791
+ ])) : r("", !0)], 64)) : l.type == "radio" ? (h(), i(e, { key: 7 }, [l.operator == "in" || l.operator == "notin" ? (h(), n(ae, {
33668
33792
  key: 0,
33669
33793
  value: l.value,
33670
33794
  "onUpdate:value": [(e) => l.value = e, t.handleInputChange],
@@ -33694,7 +33818,7 @@ function zk(t, c, l, u, d, f) {
33694
33818
  "options",
33695
33819
  "labelKey",
33696
33820
  "valueKey"
33697
- ])) : r("", !0)], 64)) : l.type == "checkbox" ? (h(), i(e, { key: 7 }, [l.operator == "in" || l.operator == "notin" ? (h(), n(ae, {
33821
+ ])) : r("", !0)], 64)) : l.type == "checkbox" ? (h(), i(e, { key: 8 }, [l.operator == "in" || l.operator == "notin" ? (h(), n(ae, {
33698
33822
  key: 0,
33699
33823
  value: l.value,
33700
33824
  "onUpdate:value": [(e) => l.value = e, t.handleInputChange],
@@ -33724,7 +33848,7 @@ function zk(t, c, l, u, d, f) {
33724
33848
  "options",
33725
33849
  "labelKey",
33726
33850
  "valueKey"
33727
- ])) : r("", !0)], 64)) : l.type == "remoteselectpro" ? (h(), i(e, { key: 8 }, [l.operator == "in" || l.operator == "notin" ? (h(), n(ae, {
33851
+ ])) : r("", !0)], 64)) : l.type == "remoteselectpro" ? (h(), i(e, { key: 9 }, [l.operator == "in" || l.operator == "notin" ? (h(), n(ae, {
33728
33852
  key: 0,
33729
33853
  value: l.value,
33730
33854
  "onUpdate:value": [(e) => l.value = e, t.handleInputChange],
@@ -33751,7 +33875,7 @@ function zk(t, c, l, u, d, f) {
33751
33875
  "value",
33752
33876
  "onUpdate:value",
33753
33877
  "options"
33754
- ])], 64)) : l.type == "remotetreeselectpro" ? (h(), i(e, { key: 9 }, [l.operator == "in" || l.operator == "notin" ? (h(), n(ae, {
33878
+ ])], 64)) : l.type == "remotetreeselectpro" ? (h(), i(e, { key: 10 }, [l.operator == "in" || l.operator == "notin" ? (h(), n(ae, {
33755
33879
  key: 0,
33756
33880
  value: l.value,
33757
33881
  "onUpdate:value": [(e) => l.value = e, t.handleInputChange],
@@ -33788,7 +33912,7 @@ function zk(t, c, l, u, d, f) {
33788
33912
  "tree-data",
33789
33913
  "tree-node-filter-prop",
33790
33914
  "tree-label-prop"
33791
- ])) : r("", !0)], 64)) : l.type == "remotecascaderpro" ? (h(), i(e, { key: 10 }, [l.operator == "in" || l.operator == "notin" ? (h(), n(ae, {
33915
+ ])) : r("", !0)], 64)) : l.type == "remotecascaderpro" ? (h(), i(e, { key: 11 }, [l.operator == "in" || l.operator == "notin" ? (h(), n(ae, {
33792
33916
  key: 0,
33793
33917
  value: l.value,
33794
33918
  "onUpdate:value": [(e) => l.value = e, t.handleInputChange],
@@ -33827,7 +33951,7 @@ function zk(t, c, l, u, d, f) {
33827
33951
  "placeholder",
33828
33952
  "disabled",
33829
33953
  "options"
33830
- ])) : r("", !0)], 64)) : l.type == "cascader" ? (h(), i(e, { key: 11 }, [l.operator == "in" || l.operator == "notin" ? (h(), n(ae, {
33954
+ ])) : r("", !0)], 64)) : l.type == "cascader" ? (h(), i(e, { key: 12 }, [l.operator == "in" || l.operator == "notin" ? (h(), n(ae, {
33831
33955
  key: 0,
33832
33956
  value: l.value,
33833
33957
  "onUpdate:value": [(e) => l.value = e, t.handleInputChange],
@@ -33858,7 +33982,7 @@ function zk(t, c, l, u, d, f) {
33858
33982
  "onUpdate:value",
33859
33983
  "options",
33860
33984
  "placeholder"
33861
- ])) : r("", !0)], 64)) : l.type == "treeselect" ? (h(), i(e, { key: 12 }, [l.operator == "in" || l.operator == "notin" ? (h(), n(ae, {
33985
+ ])) : r("", !0)], 64)) : l.type == "treeselect" ? (h(), i(e, { key: 13 }, [l.operator == "in" || l.operator == "notin" ? (h(), n(ae, {
33862
33986
  key: 0,
33863
33987
  value: l.value,
33864
33988
  "onUpdate:value": [(e) => l.value = e, t.handleInputChange],
@@ -33891,7 +34015,7 @@ function zk(t, c, l, u, d, f) {
33891
34015
  "tree-data",
33892
34016
  "tree-node-filter-prop",
33893
34017
  "tree-label-prop"
33894
- ])) : r("", !0)], 64)) : l.type == "datepicker" ? (h(), i(e, { key: 13 }, [l.operator == "between" || l.operator == "notbetween" ? (h(), n(le, {
34018
+ ])) : r("", !0)], 64)) : l.type == "datepicker" ? (h(), i(e, { key: 14 }, [l.operator == "between" || l.operator == "notbetween" ? (h(), n(le, {
33895
34019
  key: 0,
33896
34020
  value: l.value,
33897
34021
  "onUpdate:value": (e) => l.value = e,
@@ -33926,7 +34050,7 @@ function zk(t, c, l, u, d, f) {
33926
34050
  "placeholder",
33927
34051
  "show-time",
33928
34052
  "value-format"
33929
- ]))], 64)) : l.type == "timepicker" ? (h(), i(e, { key: 14 }, [l.operator == "between" || l.operator == "notbetween" ? (h(), n(de, {
34053
+ ]))], 64)) : l.type == "timepicker" ? (h(), i(e, { key: 15 }, [l.operator == "between" || l.operator == "notbetween" ? (h(), n(de, {
33930
34054
  key: 0,
33931
34055
  value: l.value,
33932
34056
  "onUpdate:value": (e) => l.value = e,
@@ -33960,7 +34084,7 @@ function zk(t, c, l, u, d, f) {
33960
34084
  "placeholder",
33961
34085
  "value-format"
33962
34086
  ]))], 64)) : l.type == "timerangepicker" ? (h(), n(de, {
33963
- key: 15,
34087
+ key: 16,
33964
34088
  value: l.value,
33965
34089
  "onUpdate:value": (e) => l.value = e,
33966
34090
  "default-value": l.defaultValue,
@@ -33976,7 +34100,7 @@ function zk(t, c, l, u, d, f) {
33976
34100
  "format",
33977
34101
  "value-format"
33978
34102
  ])) : l.type == "rangepicker" ? (h(), n(le, {
33979
- key: 16,
34103
+ key: 17,
33980
34104
  value: l.value,
33981
34105
  "onUpdate:value": (e) => l.value = e,
33982
34106
  disabled: l.disabled,
@@ -34028,7 +34152,7 @@ function zk(t, c, l, u, d, f) {
34028
34152
  _: 1
34029
34153
  })]);
34030
34154
  }
34031
- var Bk = /* @__PURE__ */ BO(Rk, [["render", zk], ["__scopeId", "data-v-293898d4"]]), Vk = {
34155
+ var Bk = /* @__PURE__ */ BO(Rk, [["render", zk], ["__scopeId", "data-v-e9e34842"]]), Vk = {
34032
34156
  "Activate the global connect tool": "激活全局连接工具",
34033
34157
  "Append {type}": "添加 {type}",
34034
34158
  "Append Task": "添加任务",
@@ -34284,11 +34408,18 @@ function Uk(e) {
34284
34408
  //#region src/components/Process/designer.vue?vue&type=script&lang.ts
34285
34409
  var Wk = c({
34286
34410
  name: "Designer",
34287
- props: { formData: {
34288
- type: Object,
34289
- required: !1,
34290
- default: {}
34291
- } },
34411
+ props: {
34412
+ formData: {
34413
+ type: Object,
34414
+ required: !1,
34415
+ default: {}
34416
+ },
34417
+ globalOptions: {
34418
+ type: Array,
34419
+ required: !1,
34420
+ default: []
34421
+ }
34422
+ },
34292
34423
  components: {
34293
34424
  CommonPanel: HO,
34294
34425
  UserTaskPanel: sk,
@@ -34365,15 +34496,20 @@ function Kk(e, t, o, c, l, u) {
34365
34496
  }, {
34366
34497
  default: w(() => [s(m, {
34367
34498
  id: e.elementId,
34368
- formData: e.formData
34369
- }, null, 8, ["id", "formData"])]),
34499
+ formData: e.formData,
34500
+ globalOptions: e.globalOptions
34501
+ }, null, 8, [
34502
+ "id",
34503
+ "formData",
34504
+ "globalOptions"
34505
+ ])]),
34370
34506
  _: 1
34371
34507
  })) : r("", !0)
34372
34508
  ]),
34373
34509
  _: 1
34374
34510
  }, 8, ["activeKey"])]);
34375
34511
  }
34376
- var qk = /* @__PURE__ */ BO(Wk, [["render", Kk], ["__scopeId", "data-v-b1917958"]]);
34512
+ var qk = /* @__PURE__ */ BO(Wk, [["render", Kk], ["__scopeId", "data-v-fcdd90e8"]]);
34377
34513
  //#endregion
34378
34514
  //#region src/components/Process/customPanel/customTranslate.js
34379
34515
  function Jk(e, t) {
@@ -36563,6 +36699,11 @@ var lj = c({
36563
36699
  type: Object,
36564
36700
  required: !1,
36565
36701
  default: {}
36702
+ },
36703
+ globalOptions: {
36704
+ type: Array,
36705
+ required: !1,
36706
+ default: []
36566
36707
  }
36567
36708
  },
36568
36709
  components: {
@@ -36861,10 +37002,11 @@ function yj(e, t, c, l, u, f) {
36861
37002
  _: 1
36862
37003
  })])])]), 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, {
36863
37004
  key: 0,
36864
- "form-data": e.formData
36865
- }, null, 8, ["form-data"])) : r("", !0)])])])])], 2);
37005
+ "form-data": e.formData,
37006
+ "global-options": e.globalOptions
37007
+ }, null, 8, ["form-data", "global-options"])) : r("", !0)])])])])], 2);
36866
37008
  }
36867
- var bj = /* @__PURE__ */ BO(lj, [["render", yj], ["__scopeId", "data-v-cab3d400"]]), xj = /* @__PURE__ */ ye((/* @__PURE__ */ _e(((e, t) => {
37009
+ var bj = /* @__PURE__ */ BO(lj, [["render", yj], ["__scopeId", "data-v-7814709c"]]), xj = /* @__PURE__ */ ye((/* @__PURE__ */ _e(((e, t) => {
36868
37010
  function n(e) {
36869
37011
  var t = " ";
36870
37012
  if (isNaN(parseInt(e))) t = e;
@@ -37013,6 +37155,11 @@ var bj = /* @__PURE__ */ BO(lj, [["render", yj], ["__scopeId", "data-v-cab3d400"
37013
37155
  type: Object,
37014
37156
  required: !1,
37015
37157
  default: {}
37158
+ },
37159
+ globalOptions: {
37160
+ type: Array,
37161
+ required: !1,
37162
+ default: []
37016
37163
  }
37017
37164
  },
37018
37165
  components: { bpmnModeler: bj },
@@ -37111,6 +37258,7 @@ function Dj(e, t, n, r, o, c) {
37111
37258
  "process-id": e.processId,
37112
37259
  "process-name": e.processName,
37113
37260
  "form-data": e.formData,
37261
+ "global-options": e.globalOptions,
37114
37262
  onSave: e.save,
37115
37263
  onShowXML: e.showXML,
37116
37264
  onXmlChanged: e.onXmlChanged
@@ -37133,6 +37281,7 @@ function Dj(e, t, n, r, o, c) {
37133
37281
  "process-id",
37134
37282
  "process-name",
37135
37283
  "form-data",
37284
+ "global-options",
37136
37285
  "onSave",
37137
37286
  "onShowXML",
37138
37287
  "onXmlChanged"
@@ -37152,7 +37301,7 @@ function Dj(e, t, n, r, o, c) {
37152
37301
  "onAfterOpenChange"
37153
37302
  ])]);
37154
37303
  }
37155
- var Oj = /* @__PURE__ */ BO(Cj, [["render", Dj], ["__scopeId", "data-v-004c58c3"]]), kj = /* @__PURE__ */ ye((/* @__PURE__ */ _e(((e, t) => {
37304
+ var Oj = /* @__PURE__ */ BO(Cj, [["render", Dj], ["__scopeId", "data-v-135f56ce"]]), kj = /* @__PURE__ */ ye((/* @__PURE__ */ _e(((e, t) => {
37156
37305
  typeof Object.create == "function" ? t.exports = function(e, t) {
37157
37306
  t && (e.super_ = t, e.prototype = Object.create(t.prototype, { constructor: {
37158
37307
  value: e,