@web-utils/component 2.8.17 → 2.8.18

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.
@@ -44,6 +44,8 @@ import Ye from "x2js";
44
44
  import Se from "highlight.js/lib/core";
45
45
  import Qe from "highlight.js/lib/languages/xml";
46
46
  import et from "highlight.js/lib/languages/json";
47
+ import tt from "@web-utils/component/highlight-j-s";
48
+ import "@web-utils/component/highlight-j-s/style.css";
47
49
  function J(e, i, t, n, s, r, a, o, m, F, p, l, c) {
48
50
  e = e || {}, n.registerProvider(this), this._contextPad = n, this._modeling = s, this._elementFactory = r, this._connect = a, this._create = o, this._popupMenu = m, this._canvas = F, this._rules = p, this._translate = l, e.autoPlace !== !1 && (this._autoPlace = i.get("autoPlace", !1)), t.on("create.end", 250, function(E) {
49
51
  const C = E.context.shape;
@@ -253,7 +255,7 @@ function te(e, i, t) {
253
255
  a.$type === t && (s = !0);
254
256
  }), n && s;
255
257
  }
256
- const tt = {
258
+ const nt = {
257
259
  __init__: ["contextPadProvider"],
258
260
  contextPadProvider: ["type", J]
259
261
  };
@@ -379,14 +381,14 @@ Z.prototype.getPaletteEntries = function() {
379
381
  L.$inject = ["palette", "create", "elementFactory", "spaceTool", "lassoTool", "handTool", "globalConnect", "moddle", "translate"];
380
382
  L.prototype = new Z();
381
383
  L.prototype.constructor = L;
382
- const nt = {
384
+ const it = {
383
385
  __init__: ["customPalette"],
384
386
  customPalette: ["type", L]
385
387
  };
386
388
  function Te(e, i) {
387
389
  K.call(this, e, i, 3e3), e.on("autoPlace", 3e3, function(t) {
388
390
  const n = t.shape, s = t.source;
389
- return at(s, n);
391
+ return ot(s, n);
390
392
  }), this.append = function(t, n, s) {
391
393
  e.fire("autoPlace.start", {
392
394
  source: t,
@@ -404,7 +406,7 @@ function Te(e, i) {
404
406
  }), a;
405
407
  };
406
408
  }
407
- function it(e) {
409
+ function st(e) {
408
410
  return {
409
411
  top: e.y,
410
412
  right: e.x + (e.width || 0),
@@ -412,21 +414,21 @@ function it(e) {
412
414
  left: e.x
413
415
  };
414
416
  }
415
- function st(e) {
417
+ function rt(e) {
416
418
  return {
417
419
  x: Math.round(e.x),
418
420
  y: Math.round(e.y)
419
421
  };
420
422
  }
421
- function rt(e) {
422
- return st({
423
+ function at(e) {
424
+ return rt({
423
425
  x: e.x + (e.width || 0) / 2,
424
426
  y: e.y + (e.height || 0) / 2
425
427
  });
426
428
  }
427
- function at(e, i, t) {
429
+ function ot(e, i, t) {
428
430
  t || (t = {});
429
- const n = t.defaultDistance || 50, s = rt(e), r = it(e);
431
+ const n = t.defaultDistance || 50, s = at(e), r = st(e);
430
432
  return {
431
433
  x: s.x,
432
434
  y: r.bottom + n + i.height / 2
@@ -437,11 +439,11 @@ const Ce = function() {
437
439
  Ce.prototype = K.prototype;
438
440
  Te.prototype = new Ce();
439
441
  Te.prototype.constructor = K;
440
- const ot = 200, lt = 100;
442
+ const lt = 200, pt = 100;
441
443
  function _e(e, i, t) {
442
- e.on("autoPlace", lt, function(n) {
444
+ e.on("autoPlace", pt, function(n) {
443
445
  const s = n.shape, r = n.source;
444
- return pt(r, s);
446
+ return mt(r, s);
445
447
  }), e.on("autoPlace.end", function(n) {
446
448
  t.scrollToElement(n.shape);
447
449
  }), this.append = function(n, s, r) {
@@ -460,18 +462,18 @@ function _e(e, i, t) {
460
462
  };
461
463
  }
462
464
  _e.$inject = ["eventBus", "modeling", "canvas"];
463
- function pt(e, i) {
464
- const t = ot, n = Ke(e);
465
+ function mt(e, i) {
466
+ const t = lt, n = Ke(e);
465
467
  return {
466
468
  x: Je(e).right + t + i.width / 2,
467
469
  y: n.y
468
470
  };
469
471
  }
470
- const mt = {
472
+ const ct = {
471
473
  __init__: ["autoPlaceSelectionBehavior"],
472
474
  autoPlace: ["type", _e]
473
475
  };
474
- var ct = function() {
476
+ var ut = function() {
475
477
  var e = this, i = e.$createElement, t = e._self._c || i;
476
478
  return t("div", {
477
479
  staticClass: "panel-tab__content"
@@ -589,8 +591,8 @@ var ct = function() {
589
591
  expression: "businessObject.isExpanded"
590
592
  }
591
593
  })], 1) : e._e()], 2)], 1);
592
- }, ut = [];
593
- const dt = {
594
+ }, dt = [];
595
+ const ft = {
594
596
  name: "ElementBaseInfo",
595
597
  props: {
596
598
  id: String,
@@ -630,24 +632,24 @@ const dt = {
630
632
  }
631
633
  }
632
634
  }, ne = {};
633
- var ft = /* @__PURE__ */ h(
634
- dt,
635
- ct,
635
+ var bt = /* @__PURE__ */ h(
636
+ ft,
636
637
  ut,
638
+ dt,
637
639
  !1,
638
- bt,
640
+ yt,
639
641
  null,
640
642
  null,
641
643
  null
642
644
  );
643
- function bt(e) {
645
+ function yt(e) {
644
646
  for (let i in ne)
645
647
  this[i] = ne[i];
646
648
  }
647
- const yt = /* @__PURE__ */ function() {
648
- return ft.exports;
649
+ const ht = /* @__PURE__ */ function() {
650
+ return bt.exports;
649
651
  }();
650
- var ht = function() {
652
+ var vt = function() {
651
653
  var e = this, i = e.$createElement, t = e._self._c || i;
652
654
  return t("div", {
653
655
  staticClass: "panel-tab__content"
@@ -678,8 +680,8 @@ var ht = function() {
678
680
  expression: "documentation"
679
681
  }
680
682
  })], 1)])]);
681
- }, vt = [];
682
- const gt = {
683
+ }, gt = [];
684
+ const Et = {
683
685
  name: "ElementOtherConfig",
684
686
  props: {
685
687
  id: String,
@@ -716,24 +718,24 @@ const gt = {
716
718
  }
717
719
  }
718
720
  }, ie = {};
719
- var Et = /* @__PURE__ */ h(
720
- gt,
721
- ht,
721
+ var Ft = /* @__PURE__ */ h(
722
+ Et,
722
723
  vt,
724
+ gt,
723
725
  !1,
724
- Ft,
726
+ xt,
725
727
  null,
726
728
  null,
727
729
  null
728
730
  );
729
- function Ft(e) {
731
+ function xt(e) {
730
732
  for (let i in ie)
731
733
  this[i] = ie[i];
732
734
  }
733
- const xt = /* @__PURE__ */ function() {
734
- return Et.exports;
735
+ const St = /* @__PURE__ */ function() {
736
+ return Ft.exports;
735
737
  }();
736
- var St = function() {
738
+ var Tt = function() {
737
739
  var e = this, i = e.$createElement, t = e._self._c || i;
738
740
  return t("div", {
739
741
  staticStyle: {
@@ -883,8 +885,8 @@ var St = function() {
883
885
  expression: "userTaskForm.priority"
884
886
  }
885
887
  })], 1)], 1);
886
- }, Tt = [];
887
- const Ct = {
888
+ }, Ct = [];
889
+ const _t = {
888
890
  name: "UserTask",
889
891
  props: {
890
892
  id: String,
@@ -927,24 +929,24 @@ const Ct = {
927
929
  }
928
930
  }
929
931
  }, se = {};
930
- var _t = /* @__PURE__ */ h(
931
- Ct,
932
- St,
932
+ var It = /* @__PURE__ */ h(
933
+ _t,
933
934
  Tt,
935
+ Ct,
934
936
  !1,
935
- It,
937
+ kt,
936
938
  null,
937
939
  null,
938
940
  null
939
941
  );
940
- function It(e) {
942
+ function kt(e) {
941
943
  for (let i in se)
942
944
  this[i] = se[i];
943
945
  }
944
- const kt = /* @__PURE__ */ function() {
945
- return _t.exports;
946
+ const At = /* @__PURE__ */ function() {
947
+ return It.exports;
946
948
  }();
947
- var At = function() {
949
+ var wt = function() {
948
950
  var e = this, i = e.$createElement, t = e._self._c || i;
949
951
  return t("div", {
950
952
  staticStyle: {
@@ -1083,8 +1085,8 @@ var At = function() {
1083
1085
  expression: "scriptTaskForm.resultVariable"
1084
1086
  }
1085
1087
  })], 1)], 1);
1086
- }, wt = [];
1087
- const $t = {
1088
+ }, $t = [];
1089
+ const Lt = {
1088
1090
  name: "ScriptTask",
1089
1091
  props: {
1090
1092
  id: String,
@@ -1125,24 +1127,24 @@ const $t = {
1125
1127
  }
1126
1128
  }
1127
1129
  }, re = {};
1128
- var Lt = /* @__PURE__ */ h(
1129
- $t,
1130
- At,
1130
+ var Mt = /* @__PURE__ */ h(
1131
+ Lt,
1131
1132
  wt,
1133
+ $t,
1132
1134
  !1,
1133
- Mt,
1135
+ Ot,
1134
1136
  null,
1135
1137
  null,
1136
1138
  null
1137
1139
  );
1138
- function Mt(e) {
1140
+ function Ot(e) {
1139
1141
  for (let i in re)
1140
1142
  this[i] = re[i];
1141
1143
  }
1142
- const Ot = /* @__PURE__ */ function() {
1143
- return Lt.exports;
1144
+ const Pt = /* @__PURE__ */ function() {
1145
+ return Mt.exports;
1144
1146
  }();
1145
- var Pt = function() {
1147
+ var Dt = function() {
1146
1148
  var e = this, i = e.$createElement, t = e._self._c || i;
1147
1149
  return t("div", {
1148
1150
  staticStyle: {
@@ -1261,8 +1263,8 @@ var Pt = function() {
1261
1263
  expression: "newMessageForm.name"
1262
1264
  }
1263
1265
  })], 1)], 1)], 1)], 1);
1264
- }, Dt = [];
1265
- const Bt = {
1266
+ }, Bt = [];
1267
+ const jt = {
1266
1268
  name: "ReceiveTask",
1267
1269
  props: {
1268
1270
  id: String,
@@ -1315,24 +1317,24 @@ const Bt = {
1315
1317
  }
1316
1318
  }
1317
1319
  }, ae = {};
1318
- var jt = /* @__PURE__ */ h(
1319
- Bt,
1320
- Pt,
1320
+ var Vt = /* @__PURE__ */ h(
1321
+ jt,
1321
1322
  Dt,
1323
+ Bt,
1322
1324
  !1,
1323
- Vt,
1325
+ Rt,
1324
1326
  null,
1325
1327
  null,
1326
1328
  null
1327
1329
  );
1328
- function Vt(e) {
1330
+ function Rt(e) {
1329
1331
  for (let i in ae)
1330
1332
  this[i] = ae[i];
1331
1333
  }
1332
- const Rt = /* @__PURE__ */ function() {
1333
- return jt.exports;
1334
+ const zt = /* @__PURE__ */ function() {
1335
+ return Vt.exports;
1334
1336
  }();
1335
- var zt = function() {
1337
+ var Ut = function() {
1336
1338
  var e = this, i = e.$createElement, t = e._self._c || i;
1337
1339
  return t("div", {
1338
1340
  staticClass: "panel-tab__content"
@@ -1395,10 +1397,10 @@ var zt = function() {
1395
1397
  }) : e._e()], 1), t(e.witchTaskComponent, e._b({
1396
1398
  tag: "Component"
1397
1399
  }, "Component", e.$props, !1))], 1)], 1);
1398
- }, Ut = [];
1399
- const Nt = {
1400
+ }, Nt = [];
1401
+ const Gt = {
1400
1402
  name: "ElementTaskConfig",
1401
- components: { UserTask: kt, ScriptTask: Ot, ReceiveTask: Rt },
1403
+ components: { UserTask: At, ScriptTask: Pt, ReceiveTask: zt },
1402
1404
  props: {
1403
1405
  id: String,
1404
1406
  element: Object,
@@ -1447,24 +1449,24 @@ const Nt = {
1447
1449
  }
1448
1450
  }
1449
1451
  }, oe = {};
1450
- var Gt = /* @__PURE__ */ h(
1451
- Nt,
1452
- zt,
1452
+ var qt = /* @__PURE__ */ h(
1453
+ Gt,
1453
1454
  Ut,
1455
+ Nt,
1454
1456
  !1,
1455
- qt,
1457
+ Kt,
1456
1458
  null,
1457
1459
  null,
1458
1460
  null
1459
1461
  );
1460
- function qt(e) {
1462
+ function Kt(e) {
1461
1463
  for (let i in oe)
1462
1464
  this[i] = oe[i];
1463
1465
  }
1464
- const Kt = /* @__PURE__ */ function() {
1465
- return Gt.exports;
1466
+ const Jt = /* @__PURE__ */ function() {
1467
+ return qt.exports;
1466
1468
  }();
1467
- var Jt = function() {
1469
+ var Zt = function() {
1468
1470
  var e = this, i = e.$createElement, t = e._self._c || i;
1469
1471
  return t("div", {
1470
1472
  staticClass: "panel-tab__content"
@@ -1663,8 +1665,8 @@ var Jt = function() {
1663
1665
  expression: "loopInstanceForm.timeCycle"
1664
1666
  }
1665
1667
  })], 1) : e._e()] : e._e()], 2)], 1);
1666
- }, Zt = [];
1667
- const Ht = {
1668
+ }, Ht = [];
1669
+ const Wt = {
1668
1670
  name: "ElementMultiInstance",
1669
1671
  inject: {
1670
1672
  prefix: "prefix"
@@ -1776,24 +1778,24 @@ const Ht = {
1776
1778
  }
1777
1779
  }
1778
1780
  }, le = {};
1779
- var Wt = /* @__PURE__ */ h(
1780
- Ht,
1781
- Jt,
1781
+ var Xt = /* @__PURE__ */ h(
1782
+ Wt,
1782
1783
  Zt,
1784
+ Ht,
1783
1785
  !1,
1784
- Xt,
1786
+ Yt,
1785
1787
  null,
1786
1788
  null,
1787
1789
  null
1788
1790
  );
1789
- function Xt(e) {
1791
+ function Yt(e) {
1790
1792
  for (let i in le)
1791
1793
  this[i] = le[i];
1792
1794
  }
1793
- const Yt = /* @__PURE__ */ function() {
1794
- return Wt.exports;
1795
+ const Qt = /* @__PURE__ */ function() {
1796
+ return Xt.exports;
1795
1797
  }();
1796
- var Qt = function() {
1798
+ var en = function() {
1797
1799
  var e = this, i = e.$createElement, t = e._self._c || i;
1798
1800
  return t("div", {
1799
1801
  staticClass: "panel-tab__content"
@@ -1962,8 +1964,8 @@ var Qt = function() {
1962
1964
  expression: "flowConditionForm.resource"
1963
1965
  }
1964
1966
  })], 1) : e._e()] : e._e()], 2)], 1);
1965
- }, en = [];
1966
- const tn = {
1967
+ }, tn = [];
1968
+ const nn = {
1967
1969
  name: "FlowCondition",
1968
1970
  props: {
1969
1971
  id: String,
@@ -2035,24 +2037,24 @@ const tn = {
2035
2037
  }
2036
2038
  }
2037
2039
  }, pe = {};
2038
- var nn = /* @__PURE__ */ h(
2039
- tn,
2040
- Qt,
2040
+ var sn = /* @__PURE__ */ h(
2041
+ nn,
2041
2042
  en,
2043
+ tn,
2042
2044
  !1,
2043
- sn,
2045
+ rn,
2044
2046
  null,
2045
2047
  null,
2046
2048
  null
2047
2049
  );
2048
- function sn(e) {
2050
+ function rn(e) {
2049
2051
  for (let i in pe)
2050
2052
  this[i] = pe[i];
2051
2053
  }
2052
- const rn = /* @__PURE__ */ function() {
2053
- return nn.exports;
2054
+ const an = /* @__PURE__ */ function() {
2055
+ return sn.exports;
2054
2056
  }();
2055
- var an = function() {
2057
+ var on = function() {
2056
2058
  var e = this, i = e.$createElement, t = e._self._c || i;
2057
2059
  return t("div", {
2058
2060
  staticClass: "panel-tab__content"
@@ -2219,7 +2221,7 @@ var an = function() {
2219
2221
  expression: "modelObjectForm.name"
2220
2222
  }
2221
2223
  })], 1)], 1)], 1)], 1);
2222
- }, on = [function() {
2224
+ }, ln = [function() {
2223
2225
  var e = this, i = e.$createElement, t = e._self._c || i;
2224
2226
  return t("span", [t("i", {
2225
2227
  staticClass: "el-icon-menu",
@@ -2238,7 +2240,7 @@ var an = function() {
2238
2240
  }
2239
2241
  }), e._v("信号列表")]);
2240
2242
  }];
2241
- const ln = {
2243
+ const pn = {
2242
2244
  name: "SignalAndMessage",
2243
2245
  props: {
2244
2246
  bpmnInstances: Object
@@ -2285,28 +2287,28 @@ const ln = {
2285
2287
  }
2286
2288
  }
2287
2289
  }, me = {};
2288
- var pn = /* @__PURE__ */ h(
2289
- ln,
2290
- an,
2290
+ var mn = /* @__PURE__ */ h(
2291
+ pn,
2291
2292
  on,
2293
+ ln,
2292
2294
  !1,
2293
- mn,
2295
+ cn,
2294
2296
  null,
2295
2297
  null,
2296
2298
  null
2297
2299
  );
2298
- function mn(e) {
2300
+ function cn(e) {
2299
2301
  for (let i in me)
2300
2302
  this[i] = me[i];
2301
2303
  }
2302
- const cn = /* @__PURE__ */ function() {
2303
- return pn.exports;
2304
+ const un = /* @__PURE__ */ function() {
2305
+ return mn.exports;
2304
2306
  }();
2305
2307
  function Ie(e, i, t, n) {
2306
2308
  const s = /* @__PURE__ */ Object.create(null);
2307
2309
  switch (s.event = i.event, t && (s.id = i.id), i.listenerType) {
2308
2310
  case "scriptListener":
2309
- s.script = dn(e, i, n);
2311
+ s.script = fn(e, i, n);
2310
2312
  break;
2311
2313
  case "expressionListener":
2312
2314
  s.expression = i.expression;
@@ -2317,22 +2319,22 @@ function Ie(e, i, t, n) {
2317
2319
  default:
2318
2320
  s.class = i.class;
2319
2321
  }
2320
- if (i.fields && (s.fields = i.fields.map((r) => un(e, r, n))), t && i.event === "timeout" && i.eventDefinitionType) {
2322
+ if (i.fields && (s.fields = i.fields.map((r) => dn(e, r, n))), t && i.event === "timeout" && i.eventDefinitionType) {
2321
2323
  const r = e.moddle.create("bpmn:FormalExpression", {
2322
2324
  body: i.eventTimeDefinitions
2323
2325
  }), a = e.moddle.create("bpmn:TimerEventDefinition", {
2324
- id: `TimerEventDefinition_${fn(8)}`,
2326
+ id: `TimerEventDefinition_${bn(8)}`,
2325
2327
  [`time${i.eventDefinitionType.replace(/^\S/, (o) => o.toUpperCase())}`]: r
2326
2328
  });
2327
2329
  s.eventDefinitions = [a];
2328
2330
  }
2329
2331
  return e.moddle.create(`${n}:${t ? "TaskListener" : "ExecutionListener"}`, s);
2330
2332
  }
2331
- function un(e, i, t) {
2333
+ function dn(e, i, t) {
2332
2334
  const { name: n, fieldType: s, string: r, expression: a } = i, o = s === "string" ? { name: n, string: r } : { name: n, expression: a };
2333
2335
  return e.moddle.create(`${t}:Field`, o);
2334
2336
  }
2335
- function dn(e, i, t) {
2337
+ function fn(e, i, t) {
2336
2338
  const { scriptType: n, scriptFormat: s, value: r, resource: a } = i, o = n === "inlineScript" ? { scriptFormat: s, value: r } : { scriptFormat: s, resource: a };
2337
2339
  return e.moddle.create(`${t}:Script`, o);
2338
2340
  }
@@ -2344,7 +2346,7 @@ function U(e, i, t) {
2344
2346
  extensionElements: n
2345
2347
  });
2346
2348
  }
2347
- function fn(e = 8, i) {
2349
+ function bn(e = 8, i) {
2348
2350
  let t = "";
2349
2351
  const n = i || "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
2350
2352
  for (let s = e; s > 0; --s)
@@ -2375,7 +2377,7 @@ const we = {
2375
2377
  expressionListener: "表达式",
2376
2378
  delegateExpressionListener: "代理表达式",
2377
2379
  scriptListener: "脚本"
2378
- }, bn = {
2380
+ }, yn = {
2379
2381
  create: "创建",
2380
2382
  assignment: "指派",
2381
2383
  complete: "完成",
@@ -2386,7 +2388,7 @@ const we = {
2386
2388
  string: "字符串",
2387
2389
  expression: "表达式"
2388
2390
  };
2389
- var yn = function() {
2391
+ var hn = function() {
2390
2392
  var e = this, i = e.$createElement, t = e._self._c || i;
2391
2393
  return t("div", {
2392
2394
  staticClass: "panel-tab__content"
@@ -2961,8 +2963,8 @@ var yn = function() {
2961
2963
  expression: "listenerFieldForm.expression"
2962
2964
  }
2963
2965
  })], 1) : e._e()], 1)], 1)], 1);
2964
- }, hn = [];
2965
- const vn = {
2966
+ }, vn = [];
2967
+ const gn = {
2966
2968
  name: "ElementListeners",
2967
2969
  inject: {
2968
2970
  prefix: "prefix",
@@ -3060,24 +3062,24 @@ const vn = {
3060
3062
  }
3061
3063
  }
3062
3064
  }, ce = {};
3063
- var gn = /* @__PURE__ */ h(
3064
- vn,
3065
- yn,
3065
+ var En = /* @__PURE__ */ h(
3066
+ gn,
3066
3067
  hn,
3068
+ vn,
3067
3069
  !1,
3068
- En,
3070
+ Fn,
3069
3071
  null,
3070
3072
  null,
3071
3073
  null
3072
3074
  );
3073
- function En(e) {
3075
+ function Fn(e) {
3074
3076
  for (let i in ce)
3075
3077
  this[i] = ce[i];
3076
3078
  }
3077
- const Fn = /* @__PURE__ */ function() {
3078
- return gn.exports;
3079
+ const xn = /* @__PURE__ */ function() {
3080
+ return En.exports;
3079
3081
  }();
3080
- var xn = function() {
3082
+ var Sn = function() {
3081
3083
  var e = this, i = e.$createElement, t = e._self._c || i;
3082
3084
  return t("div", {
3083
3085
  staticClass: "panel-tab__content"
@@ -3243,8 +3245,8 @@ var xn = function() {
3243
3245
  expression: "propertyForm.value"
3244
3246
  }
3245
3247
  })], 1)], 1)], 1)], 1);
3246
- }, Sn = [];
3247
- const Tn = {
3248
+ }, Tn = [];
3249
+ const Cn = {
3248
3250
  name: "ElementProperties",
3249
3251
  inject: {
3250
3252
  prefix: "prefix",
@@ -3319,24 +3321,24 @@ const Tn = {
3319
3321
  }
3320
3322
  }
3321
3323
  }, ue = {};
3322
- var Cn = /* @__PURE__ */ h(
3323
- Tn,
3324
- xn,
3324
+ var _n = /* @__PURE__ */ h(
3325
+ Cn,
3325
3326
  Sn,
3327
+ Tn,
3326
3328
  !1,
3327
- _n,
3329
+ In,
3328
3330
  null,
3329
3331
  null,
3330
3332
  null
3331
3333
  );
3332
- function _n(e) {
3334
+ function In(e) {
3333
3335
  for (let i in ue)
3334
3336
  this[i] = ue[i];
3335
3337
  }
3336
- const In = /* @__PURE__ */ function() {
3337
- return Cn.exports;
3338
+ const kn = /* @__PURE__ */ function() {
3339
+ return _n.exports;
3338
3340
  }();
3339
- var kn = function() {
3341
+ var An = function() {
3340
3342
  var e = this, i = e.$createElement, t = e._self._c || i;
3341
3343
  return t("div", {
3342
3344
  staticClass: "panel-tab__content"
@@ -4005,8 +4007,8 @@ var kn = function() {
4005
4007
  expression: "fieldOptionForm.value"
4006
4008
  }
4007
4009
  })], 1) : e._e()], 1)], 1)], 1);
4008
- }, An = [];
4009
- const wn = {
4010
+ }, wn = [];
4011
+ const $n = {
4010
4012
  name: "ElementForm",
4011
4013
  inject: {
4012
4014
  prefix: "prefix",
@@ -4138,24 +4140,24 @@ const wn = {
4138
4140
  }
4139
4141
  }
4140
4142
  }, de = {};
4141
- var $n = /* @__PURE__ */ h(
4142
- wn,
4143
- kn,
4143
+ var Ln = /* @__PURE__ */ h(
4144
+ $n,
4144
4145
  An,
4146
+ wn,
4145
4147
  !1,
4146
- Ln,
4148
+ Mn,
4147
4149
  null,
4148
4150
  null,
4149
4151
  null
4150
4152
  );
4151
- function Ln(e) {
4153
+ function Mn(e) {
4152
4154
  for (let i in de)
4153
4155
  this[i] = de[i];
4154
4156
  }
4155
- const Mn = /* @__PURE__ */ function() {
4156
- return $n.exports;
4157
+ const On = /* @__PURE__ */ function() {
4158
+ return Ln.exports;
4157
4159
  }();
4158
- var On = function() {
4160
+ var Pn = function() {
4159
4161
  var e = this, i = e.$createElement, t = e._self._c || i;
4160
4162
  return t("div", {
4161
4163
  staticClass: "panel-tab__content"
@@ -4814,8 +4816,8 @@ var On = function() {
4814
4816
  expression: "listenerFieldForm.expression"
4815
4817
  }
4816
4818
  })], 1) : e._e()], 1)], 1)], 1);
4817
- }, Pn = [];
4818
- const Dn = {
4819
+ }, Dn = [];
4820
+ const Bn = {
4819
4821
  name: "UserTaskListeners",
4820
4822
  inject: {
4821
4823
  prefix: "prefix",
@@ -4829,7 +4831,7 @@ const Dn = {
4829
4831
  data() {
4830
4832
  return {
4831
4833
  elementListenersList: [],
4832
- listenerEventTypeObject: bn,
4834
+ listenerEventTypeObject: yn,
4833
4835
  listenerTypeObject: we,
4834
4836
  listenerFormModelVisible: !1,
4835
4837
  listenerForm: {},
@@ -4911,24 +4913,24 @@ const Dn = {
4911
4913
  }
4912
4914
  }
4913
4915
  }, fe = {};
4914
- var Bn = /* @__PURE__ */ h(
4915
- Dn,
4916
- On,
4916
+ var jn = /* @__PURE__ */ h(
4917
+ Bn,
4917
4918
  Pn,
4919
+ Dn,
4918
4920
  !1,
4919
- jn,
4921
+ Vn,
4920
4922
  null,
4921
4923
  null,
4922
4924
  null
4923
4925
  );
4924
- function jn(e) {
4926
+ function Vn(e) {
4925
4927
  for (let i in fe)
4926
4928
  this[i] = fe[i];
4927
4929
  }
4928
- const Vn = /* @__PURE__ */ function() {
4929
- return Bn.exports;
4930
+ const Rn = /* @__PURE__ */ function() {
4931
+ return jn.exports;
4930
4932
  }();
4931
- var Rn = function() {
4933
+ var zn = function() {
4932
4934
  var e = this, i = e.$createElement, t = e._self._c || i;
4933
4935
  return t("div", {
4934
4936
  class: ["process-panel__container", {
@@ -5203,20 +5205,20 @@ var Rn = function() {
5203
5205
  "bpmn-instances": e.bpmnInstances
5204
5206
  }
5205
5207
  })], 1)], 2)], 1);
5206
- }, zn = [];
5207
- const be = "test", Un = {
5208
+ }, Un = [];
5209
+ const be = "test", Nn = {
5208
5210
  name: "PropertiesPanel",
5209
5211
  components: {
5210
- UserTaskListeners: Vn,
5211
- ElementForm: Mn,
5212
- ElementProperties: In,
5213
- ElementListeners: Fn,
5214
- SignalAndMassage: cn,
5215
- FlowCondition: rn,
5216
- ElementMultiInstance: Yt,
5217
- ElementTask: Kt,
5218
- ElementOtherConfig: xt,
5219
- ElementBaseInfo: yt
5212
+ UserTaskListeners: Rn,
5213
+ ElementForm: On,
5214
+ ElementProperties: kn,
5215
+ ElementListeners: xn,
5216
+ SignalAndMassage: un,
5217
+ FlowCondition: an,
5218
+ ElementMultiInstance: Qt,
5219
+ ElementTask: Jt,
5220
+ ElementOtherConfig: St,
5221
+ ElementBaseInfo: ht
5220
5222
  },
5221
5223
  componentName: "MyPropertiesPanel",
5222
5224
  provide() {
@@ -5300,23 +5302,23 @@ const be = "test", Un = {
5300
5302
  }
5301
5303
  }
5302
5304
  }, ye = {};
5303
- var Nn = /* @__PURE__ */ h(
5304
- Un,
5305
- Rn,
5305
+ var Gn = /* @__PURE__ */ h(
5306
+ Nn,
5306
5307
  zn,
5308
+ Un,
5307
5309
  !1,
5308
- Gn,
5310
+ qn,
5309
5311
  null,
5310
5312
  null,
5311
5313
  null
5312
5314
  );
5313
- function Gn(e) {
5315
+ function qn(e) {
5314
5316
  for (let i in ye)
5315
5317
  this[i] = ye[i];
5316
5318
  }
5317
- const qn = /* @__PURE__ */ function() {
5318
- return Nn.exports;
5319
- }(), Kn = (e, i, t) => (t = t || "camunda", `<?xml version="1.0" encoding="UTF-8"?>
5319
+ const Kn = /* @__PURE__ */ function() {
5320
+ return Gn.exports;
5321
+ }(), Jn = (e, i, t) => (t = t || "camunda", `<?xml version="1.0" encoding="UTF-8"?>
5320
5322
  <bpmn2:definitions
5321
5323
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5322
5324
  xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"
@@ -5336,7 +5338,7 @@ const qn = /* @__PURE__ */ function() {
5336
5338
  </bpmndi:BPMNPlane>
5337
5339
  </bpmndi:BPMNDiagram>
5338
5340
  </bpmn2:definitions>`);
5339
- function Jn(e) {
5341
+ function Zn(e) {
5340
5342
  return function(i, t) {
5341
5343
  return t = t || {}, i = e[i] || i, i.replace(/{([^}]+)}/g, function(n, s) {
5342
5344
  let r = t[s];
@@ -5344,7 +5346,7 @@ function Jn(e) {
5344
5346
  });
5345
5347
  };
5346
5348
  }
5347
- const Zn = {
5349
+ const Hn = {
5348
5350
  // 添加部分
5349
5351
  "Append EndEvent": "追加结束事件",
5350
5352
  "Append Gateway": "追加网关",
@@ -5579,9 +5581,9 @@ const Zn = {
5579
5581
  "Tasklist Configuration": "Tasklist配置",
5580
5582
  Startable: "启动",
5581
5583
  "Specify more than one group as a comma separated list.": "指定多个组作为逗号分隔的列表。"
5582
- }, Hn = "Camunda", Wn = "http://camunda.org/schema/1.0/bpmn", Xn = "camunda", Yn = {
5584
+ }, Wn = "Camunda", Xn = "http://camunda.org/schema/1.0/bpmn", Yn = "camunda", Qn = {
5583
5585
  tagAlias: "lowerCase"
5584
- }, Qn = [], ei = [
5586
+ }, ei = [], ti = [
5585
5587
  {
5586
5588
  name: "Definitions",
5587
5589
  isAbstract: !0,
@@ -6697,17 +6699,17 @@ const Zn = {
6697
6699
  }
6698
6700
  ]
6699
6701
  }
6700
- ], ti = [], he = {
6701
- name: Hn,
6702
- uri: Wn,
6703
- prefix: Xn,
6704
- xml: Yn,
6705
- associations: Qn,
6706
- types: ei,
6707
- emumerations: ti
6708
- }, ni = "Activiti", ii = "http://activiti.org/bpmn", si = "activiti", ri = {
6702
+ ], ni = [], he = {
6703
+ name: Wn,
6704
+ uri: Xn,
6705
+ prefix: Yn,
6706
+ xml: Qn,
6707
+ associations: ei,
6708
+ types: ti,
6709
+ emumerations: ni
6710
+ }, ii = "Activiti", si = "http://activiti.org/bpmn", ri = "activiti", ai = {
6709
6711
  tagAlias: "lowerCase"
6710
- }, ai = [], oi = [
6712
+ }, oi = [], li = [
6711
6713
  {
6712
6714
  name: "Definitions",
6713
6715
  isAbstract: !0,
@@ -7805,17 +7807,17 @@ const Zn = {
7805
7807
  }
7806
7808
  ]
7807
7809
  }
7808
- ], li = [], ve = {
7809
- name: ni,
7810
- uri: ii,
7811
- prefix: si,
7812
- xml: ri,
7813
- associations: ai,
7814
- types: oi,
7815
- emumerations: li
7816
- }, pi = "Flowable", mi = "http://flowable.org/bpmn", ci = "flowable", ui = {
7810
+ ], pi = [], ve = {
7811
+ name: ii,
7812
+ uri: si,
7813
+ prefix: ri,
7814
+ xml: ai,
7815
+ associations: oi,
7816
+ types: li,
7817
+ emumerations: pi
7818
+ }, mi = "Flowable", ci = "http://flowable.org/bpmn", ui = "flowable", di = {
7817
7819
  tagAlias: "lowerCase"
7818
- }, di = [], fi = [], bi = [
7820
+ }, fi = [], bi = [], yi = [
7819
7821
  {
7820
7822
  name: "InOutBinding",
7821
7823
  superClass: [
@@ -9178,14 +9180,14 @@ const Zn = {
9178
9180
  ]
9179
9181
  }
9180
9182
  ], ge = {
9181
- name: pi,
9182
- uri: mi,
9183
- prefix: ci,
9184
- xml: ui,
9185
- associations: di,
9186
- emumerations: fi,
9187
- types: bi
9188
- }, yi = "*";
9183
+ name: mi,
9184
+ uri: ci,
9185
+ prefix: ui,
9186
+ xml: di,
9187
+ associations: fi,
9188
+ emumerations: bi,
9189
+ types: yi
9190
+ }, hi = "*";
9189
9191
  function A(e) {
9190
9192
  const i = this;
9191
9193
  e.on("moddleCopy.canCopyProperty", function(t) {
@@ -9195,7 +9197,7 @@ function A(e) {
9195
9197
  }
9196
9198
  A.$inject = ["eventBus"];
9197
9199
  A.prototype.canCopyProperty = function(e, i) {
9198
- if (Re(e) && !hi(e, i) || I(e, "camunda:InputOutput") && !this.canHostInputOutput(i) || Le(e, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(i) || I(e, "camunda:In") && !this.canHostIn(i))
9200
+ if (Re(e) && !vi(e, i) || I(e, "camunda:InputOutput") && !this.canHostInputOutput(i) || Le(e, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(i) || I(e, "camunda:In") && !this.canHostIn(i))
9199
9201
  return !1;
9200
9202
  };
9201
9203
  A.prototype.canHostInputOutput = function(e) {
@@ -9227,19 +9229,19 @@ function x(e, i) {
9227
9229
  if (e.$parent)
9228
9230
  return x(e.$parent, i);
9229
9231
  }
9230
- function hi(e, i) {
9232
+ function vi(e, i) {
9231
9233
  const t = e.$type && e.$model.getTypeDescriptor(e.$type), n = t && t.meta && t.meta.allowedIn;
9232
- return !n || vi(n) ? !0 : k(n, function(s) {
9234
+ return !n || gi(n) ? !0 : k(n, function(s) {
9233
9235
  return x(i, s);
9234
9236
  });
9235
9237
  }
9236
- function vi(e) {
9237
- return e.indexOf(yi) !== -1;
9238
+ function gi(e) {
9239
+ return e.indexOf(hi) !== -1;
9238
9240
  }
9239
- const gi = {
9241
+ const Ei = {
9240
9242
  __init__: ["camundaModdleExtension"],
9241
9243
  camundaModdleExtension: ["type", A]
9242
- }, Ei = {
9244
+ }, Fi = {
9243
9245
  FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"],
9244
9246
  Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
9245
9247
  Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
@@ -9247,22 +9249,22 @@ const gi = {
9247
9249
  function H(e, i) {
9248
9250
  return e && typeof e.$instanceOf == "function" && e.$instanceOf(i);
9249
9251
  }
9250
- function Fi(e) {
9252
+ function xi(e) {
9251
9253
  return e && e.length;
9252
9254
  }
9253
9255
  function R(e, i) {
9254
- return Fi(e) && k(e, function(t) {
9256
+ return xi(e) && k(e, function(t) {
9255
9257
  return H(t, i);
9256
9258
  });
9257
9259
  }
9258
- function xi(e, i) {
9260
+ function Si(e, i) {
9259
9261
  return k(i, function(t) {
9260
9262
  return H(e, t);
9261
9263
  });
9262
9264
  }
9263
9265
  function G(e, i, t) {
9264
- const n = i.name, s = Ei[n.replace(/activiti:/, "")];
9265
- return n === e && xi(t, s);
9266
+ const n = i.name, s = Fi[n.replace(/activiti:/, "")];
9267
+ return n === e && Si(t, s);
9266
9268
  }
9267
9269
  function W(e) {
9268
9270
  e.on(
@@ -9281,10 +9283,10 @@ W.prototype.canCloneProperty = function(e, i) {
9281
9283
  if (G("activiti:Connector", i, e) || G("activiti:Field", i, e))
9282
9284
  return R(e.eventDefinitions, "bpmn:MessageEventDefinition");
9283
9285
  };
9284
- const Si = {
9286
+ const Ti = {
9285
9287
  __init__: ["ActivitiModdleExtension"],
9286
9288
  ActivitiModdleExtension: ["type", W]
9287
- }, Ti = {
9289
+ }, Ci = {
9288
9290
  FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"],
9289
9291
  Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
9290
9292
  Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
@@ -9292,22 +9294,22 @@ const Si = {
9292
9294
  function X(e, i) {
9293
9295
  return e && typeof e.$instanceOf == "function" && e.$instanceOf(i);
9294
9296
  }
9295
- function Ci(e) {
9297
+ function _i(e) {
9296
9298
  return e && e.length;
9297
9299
  }
9298
9300
  function z(e, i) {
9299
- return Ci(e) && k(e, function(t) {
9301
+ return _i(e) && k(e, function(t) {
9300
9302
  return X(t, i);
9301
9303
  });
9302
9304
  }
9303
- function _i(e, i) {
9305
+ function Ii(e, i) {
9304
9306
  return k(i, function(t) {
9305
9307
  return X(e, t);
9306
9308
  });
9307
9309
  }
9308
9310
  function q(e, i, t) {
9309
- const n = i.name, s = Ti[n.replace(/flowable:/, "")];
9310
- return n === e && _i(t, s);
9311
+ const n = i.name, s = Ci[n.replace(/flowable:/, "")];
9312
+ return n === e && Ii(t, s);
9311
9313
  }
9312
9314
  function Y(e) {
9313
9315
  e.on(
@@ -9326,11 +9328,11 @@ Y.prototype.canCloneProperty = function(e, i) {
9326
9328
  if (q("flowable:Connector", i, e) || q("flowable:Field", i, e))
9327
9329
  return z(e.eventDefinitions, "bpmn:MessageEventDefinition");
9328
9330
  };
9329
- const Ii = {
9331
+ const ki = {
9330
9332
  __init__: ["FlowableModdleExtension"],
9331
9333
  FlowableModdleExtension: ["type", Y]
9332
9334
  };
9333
- var ki = function() {
9335
+ var Ai = function() {
9334
9336
  var e = this, i = e.$createElement, t = e._self._c || i;
9335
9337
  return t("div", {
9336
9338
  staticClass: "my-process-designer"
@@ -9700,11 +9702,14 @@ var ki = function() {
9700
9702
  code: e.previewResult
9701
9703
  }
9702
9704
  })], 1)], 1);
9703
- }, Ai = [];
9705
+ }, wi = [];
9704
9706
  Se.registerLanguage("xml", Qe);
9705
9707
  Se.registerLanguage("json", et);
9706
- const wi = {
9708
+ const $i = {
9707
9709
  name: "ProcessDesigner",
9710
+ components: {
9711
+ HighlightJS: tt
9712
+ },
9708
9713
  componentName: "MyProcessDesigner",
9709
9714
  props: {
9710
9715
  value: String,
@@ -9776,9 +9781,9 @@ const wi = {
9776
9781
  return Object.prototype.toString.call(this.additionalModel) === "[object Array]" ? this.additionalModel || [] : [this.additionalModel];
9777
9782
  Object.prototype.toString.call(this.additionalModel) === "[object Array]" ? e.push(...this.additionalModel) : this.additionalModel && e.push(this.additionalModel);
9778
9783
  const i = {
9779
- translate: ["value", Jn(this.translations || Zn)]
9784
+ translate: ["value", Zn(this.translations || Hn)]
9780
9785
  };
9781
- return e.push(i), this.simulation && e.push(We), e.push(Xe), this.prefix === "camunda" && e.push(gi), this.prefix === "flowable" && e.push(Ii), this.prefix === "activiti" && e.push(Si), e;
9786
+ return e.push(i), this.simulation && e.push(We), e.push(Xe), this.prefix === "camunda" && e.push(Ei), this.prefix === "flowable" && e.push(ki), this.prefix === "activiti" && e.push(Ti), e;
9782
9787
  },
9783
9788
  moddleExtensions() {
9784
9789
  const e = {};
@@ -9834,7 +9839,7 @@ const wi = {
9834
9839
  /* 创建新的流程图 */
9835
9840
  createNewDiagram(e) {
9836
9841
  return u(this, null, function* () {
9837
- const i = this.processId || `Process_${new Date().getTime()}`, t = this.processName || `业务流程_${new Date().getTime()}`, n = e || Kn(i, t, this.prefix);
9842
+ const i = this.processId || `Process_${new Date().getTime()}`, t = this.processName || `业务流程_${new Date().getTime()}`, n = e || Jn(i, t, this.prefix);
9838
9843
  try {
9839
9844
  const { warnings: s } = yield this.bpmnModeler.importXML(n);
9840
9845
  this.bpmnModeler.get("canvas").zoom("fit-viewport", "center"), s != null && s.length;
@@ -9975,24 +9980,24 @@ const wi = {
9975
9980
  }
9976
9981
  }
9977
9982
  }, Ee = {};
9978
- var $i = /* @__PURE__ */ h(
9979
- wi,
9980
- ki,
9983
+ var Li = /* @__PURE__ */ h(
9984
+ $i,
9981
9985
  Ai,
9986
+ wi,
9982
9987
  !1,
9983
- Li,
9988
+ Mi,
9984
9989
  null,
9985
9990
  null,
9986
9991
  null
9987
9992
  );
9988
- function Li(e) {
9993
+ function Mi(e) {
9989
9994
  for (let i in Ee)
9990
9995
  this[i] = Ee[i];
9991
9996
  }
9992
- const Mi = /* @__PURE__ */ function() {
9993
- return $i.exports;
9997
+ const Oi = /* @__PURE__ */ function() {
9998
+ return Li.exports;
9994
9999
  }();
9995
- var Oi = function() {
10000
+ var Pi = function() {
9996
10001
  var e = this, i = e.$createElement, t = e._self._c || i;
9997
10002
  return t("div", {
9998
10003
  staticClass: "flow-designer"
@@ -10034,12 +10039,12 @@ var Oi = function() {
10034
10039
  }
10035
10040
  }], null, !0)
10036
10041
  })], 1);
10037
- }, Pi = [];
10038
- const Di = {
10042
+ }, Di = [];
10043
+ const Bi = {
10039
10044
  name: "FlowDesigner",
10040
10045
  components: {
10041
- PropertiesPanel: qn,
10042
- ProcessDesigner: Mi
10046
+ PropertiesPanel: Kn,
10047
+ ProcessDesigner: Oi
10043
10048
  },
10044
10049
  props: {
10045
10050
  value: String,
@@ -10058,9 +10063,9 @@ const Di = {
10058
10063
  prefix: "flowable",
10059
10064
  headerButtonSize: "mini",
10060
10065
  additionalModel: [
10061
- tt,
10062
10066
  nt,
10063
- mt
10067
+ it,
10068
+ ct
10064
10069
  ]
10065
10070
  }
10066
10071
  };
@@ -10071,23 +10076,23 @@ const Di = {
10071
10076
  }
10072
10077
  }
10073
10078
  }, Fe = {};
10074
- var Bi = /* @__PURE__ */ h(
10075
- Di,
10076
- Oi,
10079
+ var ji = /* @__PURE__ */ h(
10080
+ Bi,
10077
10081
  Pi,
10082
+ Di,
10078
10083
  !1,
10079
- ji,
10084
+ Vi,
10080
10085
  null,
10081
10086
  null,
10082
10087
  null
10083
10088
  );
10084
- function ji(e) {
10089
+ function Vi(e) {
10085
10090
  for (let i in Fe)
10086
10091
  this[i] = Fe[i];
10087
10092
  }
10088
- const ss = /* @__PURE__ */ function() {
10089
- return Bi.exports;
10093
+ const os = /* @__PURE__ */ function() {
10094
+ return ji.exports;
10090
10095
  }();
10091
10096
  export {
10092
- ss as default
10097
+ os as default
10093
10098
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
3
  "description": "Web Components",
4
- "version": "2.8.17",
4
+ "version": "2.8.18",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "framework": "vue",
4
4
  "name": "@web-utils/component",
5
- "version": "2.8.17",
5
+ "version": "2.8.18",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",