@web-utils/component 3.2.2 → 3.3.0

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.
Files changed (58) hide show
  1. package/chunks/{FormTemp.0ezzipG4.mjs → FormTemp.2IfXIr8o.mjs} +6 -5
  2. package/chunks/{form-input-mixin.DLHG0EnH.mjs → form-input-mixin.IKogWBfn.mjs} +2 -2
  3. package/chunks/{form-item-mixin.gd9p9Rrj.mjs → form-item-mixin.BilKDUlK.mjs} +1 -1
  4. package/chunks/{index.Uf8ONhVI.mjs → index.LGsb2aDq.mjs} +3 -3
  5. package/data-display/index.mjs +15 -129
  6. package/data-table-picker/index.mjs +1 -1
  7. package/easy-popup/index.mjs +7 -8
  8. package/editable-tree/index.mjs +1 -1
  9. package/flex-column/index.mjs +1 -1
  10. package/flex-item/index.mjs +1 -1
  11. package/flex-row/index.mjs +1 -1
  12. package/flow-designer/index.mjs +164 -218
  13. package/flow-viewer/index.mjs +73 -161
  14. package/form-button/index.mjs +11 -25
  15. package/form-cascader/index.mjs +2 -2
  16. package/form-checkbox-group/index.mjs +2 -2
  17. package/form-date-picker/index.mjs +2 -2
  18. package/form-holder/index.mjs +1 -1
  19. package/form-input/index.mjs +2 -2
  20. package/form-input-email/index.mjs +2 -2
  21. package/form-input-id-card/index.mjs +2 -2
  22. package/form-input-number/index.mjs +2 -2
  23. package/form-input-phone-number/index.mjs +2 -2
  24. package/form-input-tag/index.mjs +31 -155
  25. package/form-input-time/index.mjs +2 -2
  26. package/form-item/index.mjs +1 -1
  27. package/form-radio-group/index.mjs +2 -2
  28. package/form-select/index.mjs +2 -2
  29. package/form-switch/index.mjs +2 -2
  30. package/form-textarea/index.mjs +2 -2
  31. package/form-view/index.mjs +13 -12
  32. package/fy-curd/index.mjs +5 -4
  33. package/fy-form/index.mjs +1 -1
  34. package/fy-form-design/index.mjs +329 -498
  35. package/fy-input-icon/index.mjs +21 -20
  36. package/fy-u-editor/index.mjs +237 -75
  37. package/highlight-j-s/index.mjs +3 -4
  38. package/icon-temp/index.mjs +6 -7
  39. package/index.mjs +328 -328
  40. package/nav-bar/index.mjs +6 -7
  41. package/package.json +1 -1
  42. package/page/index.mjs +0 -1
  43. package/page-header/index.mjs +2 -3
  44. package/page-skeleton/index.mjs +17 -95
  45. package/pageable-table/index.mjs +1 -1
  46. package/pageable-view/index.mjs +8 -8
  47. package/present-view/index.mjs +4 -3
  48. package/resize-observer/index.mjs +3 -4
  49. package/split-pane/index.mjs +4 -3
  50. package/swiper/index.mjs +4 -3
  51. package/table-view/index.mjs +1 -1
  52. package/watermark/index.mjs +1 -1
  53. package/web-types.json +1 -1
  54. package/x-input-tag/index.mjs +9 -10
  55. package/chunks/FyUEditor.c06LkvIy.mjs +0 -224
  56. package/chunks/FyUEditor.vue_vue_type_style_index_0_lang.0-PDx197.mjs +0 -167
  57. package/chunks/IconTemp.tzsg5qth.mjs +0 -29
  58. package/chunks/ResizeObserver.sOHk2Cm-.mjs +0 -51
@@ -1,13 +1,13 @@
1
1
  var ge = Object.defineProperty, ve = Object.defineProperties;
2
2
  var Ee = Object.getOwnPropertyDescriptors;
3
- var ee = Object.getOwnPropertySymbols;
3
+ var Q = Object.getOwnPropertySymbols;
4
4
  var Fe = Object.prototype.hasOwnProperty, xe = Object.prototype.propertyIsEnumerable;
5
- var te = (i, e, t) => e in i ? ge(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, u = (i, e) => {
5
+ var ee = (i, e, t) => e in i ? ge(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, u = (i, e) => {
6
6
  for (var t in e || (e = {}))
7
- Fe.call(e, t) && te(i, t, e[t]);
8
- if (ee)
9
- for (var t of ee(e))
10
- xe.call(e, t) && te(i, t, e[t]);
7
+ Fe.call(e, t) && ee(i, t, e[t]);
8
+ if (Q)
9
+ for (var t of Q(e))
10
+ xe.call(e, t) && ee(i, t, e[t]);
11
11
  return i;
12
12
  }, T = (i, e) => ve(i, Ee(e));
13
13
  var d = (i, e, t) => new Promise((n, s) => {
@@ -26,31 +26,31 @@ var d = (i, e, t) => new Promise((n, s) => {
26
26
  }, o = (m) => m.done ? n(m.value) : Promise.resolve(m.value).then(r, a);
27
27
  o((t = t.apply(i, e)).next());
28
28
  });
29
- import { assign as y, isArray as Se, forEach as Te, isObject as Ce, isFunction as Ie, some as _ } from "min-dash";
30
- import { is as j } from "bpmn-js/lib/util/ModelUtil";
31
- import { isExpanded as ke, isEventSubProcess as _e } from "bpmn-js/lib/util/DiUtil";
32
- import { isAny as G } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
33
- import { getChildLanes as Ae } from "bpmn-js/lib/features/modeling/util/LaneUtil";
29
+ import { assign as y, isArray as Se, forEach as Te, isObject as Ce, isFunction as Ie, some as A } from "min-dash";
30
+ import { is as V } from "bpmn-js/lib/util/ModelUtil";
31
+ import { isExpanded as ke, isEventSubProcess as Ae } from "bpmn-js/lib/util/DiUtil";
32
+ import { isAny as N } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
33
+ import { getChildLanes as _e } from "bpmn-js/lib/features/modeling/util/LaneUtil";
34
34
  import { hasPrimaryModifier as we } from "diagram-js/lib/util/Mouse";
35
- import le from "bpmn-js/lib/features/palette/PaletteProvider";
36
- import J from "diagram-js/lib/features/auto-place/AutoPlace";
35
+ import oe from "bpmn-js/lib/features/palette/PaletteProvider";
36
+ import K from "diagram-js/lib/features/auto-place/AutoPlace";
37
37
  import { getMid as $e, asTRBL as Le } from "diagram-js/lib/layout/LayoutUtil";
38
- import { fastClone as v, isBlank as Oe, escapeHtml as Pe, isArray as ne } from "@web-utils/core";
38
+ import { fastClone as v, isBlank as Oe, isArray as te } from "@web-utils/core";
39
39
  import { n as h } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
40
40
  import "bpmn-js/dist/assets/bpmn-js.css";
41
41
  import "bpmn-js/dist/assets/diagram-js.css";
42
42
  import "bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";
43
43
  import "bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css";
44
- import Me from "bpmn-js/lib/Modeler";
45
- import De from "bpmn-js/lib/features/drilldown/index.js";
46
- import Be from "bpmn-js-token-simulation";
47
- import Re from "x2js";
48
- import L from "highlight.js/lib/core";
49
- import Ve from "highlight.js/lib/languages/xml";
50
- import je from "highlight.js/lib/languages/json";
51
- import "highlight.js/styles/atom-one-dark-reasonable.css";
52
- /* empty css */
53
- function H(i, e, t, n, s, r, a, o, m, F, p, l, c) {
44
+ import Pe from "bpmn-js/lib/Modeler";
45
+ import Me from "bpmn-js/lib/features/drilldown/index.js";
46
+ import De from "bpmn-js-token-simulation";
47
+ import Be from "x2js";
48
+ import le from "highlight.js/lib/core";
49
+ import Re from "highlight.js/lib/languages/xml";
50
+ import Ve from "highlight.js/lib/languages/json";
51
+ import je from "./highlight-j-s/index.mjs";
52
+ import "./highlight-j-s/style.css";
53
+ function J(i, e, t, n, s, r, a, o, m, F, p, l, c) {
54
54
  i = i || {}, 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, i.autoPlace !== !1 && (this._autoPlace = e.get("autoPlace", !1)), t.on("create.end", 250, function(E) {
55
55
  const C = E.context.shape;
56
56
  if (!we(E) || !n.isOpen(C))
@@ -59,7 +59,7 @@ function H(i, e, t, n, s, r, a, o, m, F, p, l, c) {
59
59
  f.replace && f.replace.action.click(E, C);
60
60
  });
61
61
  }
62
- H.$inject = [
62
+ J.$inject = [
63
63
  "config.contextPad",
64
64
  "injector",
65
65
  "eventBus",
@@ -74,7 +74,7 @@ H.$inject = [
74
74
  "translate",
75
75
  "elementRegistry"
76
76
  ];
77
- H.prototype.getContextPadEntries = function(i) {
77
+ J.prototype.getContextPadEntries = function(i) {
78
78
  const e = this._contextPad, t = this._modeling, n = this._elementFactory, s = this._connect, r = this._create, a = this._popupMenu, o = this._canvas, m = this._rules, F = this._autoPlace, p = this._translate, l = {};
79
79
  if (i.type === "label")
80
80
  return l;
@@ -82,22 +82,22 @@ H.prototype.getContextPadEntries = function(i) {
82
82
  function E(b, S) {
83
83
  s.start(b, S);
84
84
  }
85
- function P() {
85
+ function O() {
86
86
  t.removeElements([i]);
87
87
  }
88
88
  function C(b) {
89
- const g = o.getContainer(), w = e.getPad(b).html, $ = g.getBoundingClientRect(), D = w.getBoundingClientRect(), B = D.top - $.top;
89
+ const g = o.getContainer(), w = e.getPad(b).html, $ = g.getBoundingClientRect(), M = w.getBoundingClientRect(), D = M.top - $.top;
90
90
  return {
91
- x: D.left - $.left,
92
- y: B + D.height + 5
91
+ x: M.left - $.left,
92
+ y: D + M.height + 5
93
93
  };
94
94
  }
95
95
  function f(b, S, g, w) {
96
96
  typeof g != "string" && (w = g, g = p("Append {type}", { type: b.replace(/^bpmn:/, "") }));
97
- function $(B, R) {
98
- const V = n.createShape(y({ type: b }, w));
99
- r.start(B, V, {
100
- source: R
97
+ function $(D, B) {
98
+ const R = n.createShape(y({ type: b }, w));
99
+ r.start(D, R, {
100
+ source: B
101
101
  });
102
102
  }
103
103
  return {
@@ -106,20 +106,20 @@ H.prototype.getContextPadEntries = function(i) {
106
106
  title: g,
107
107
  action: {
108
108
  dragstart: $,
109
- click: F ? function(B, R) {
110
- const V = n.createShape(y({ type: b }, w));
111
- F.append(R, V);
109
+ click: F ? function(D, B) {
110
+ const R = n.createShape(y({ type: b }, w));
111
+ F.append(B, R);
112
112
  } : $
113
113
  }
114
114
  };
115
115
  }
116
- function M(b) {
116
+ function P(b) {
117
117
  return function(S, g) {
118
118
  t.splitLane(g, b), e.open(g, !0);
119
119
  };
120
120
  }
121
- if (G(c, ["bpmn:Lane", "bpmn:Participant"]) && ke(c)) {
122
- const b = Ae(i);
121
+ if (N(c, ["bpmn:Lane", "bpmn:Participant"]) && ke(c)) {
122
+ const b = _e(i);
123
123
  y(l, {
124
124
  "lane-insert-above": {
125
125
  group: "lane-insert-above",
@@ -137,7 +137,7 @@ H.prototype.getContextPadEntries = function(i) {
137
137
  className: "bpmn-icon-lane-divide-two",
138
138
  title: p("Divide into two Lanes"),
139
139
  action: {
140
- click: M(2)
140
+ click: P(2)
141
141
  }
142
142
  }
143
143
  }), i.height >= 180 && y(l, {
@@ -146,7 +146,7 @@ H.prototype.getContextPadEntries = function(i) {
146
146
  className: "bpmn-icon-lane-divide-three",
147
147
  title: p("Divide into three Lanes"),
148
148
  action: {
149
- click: M(3)
149
+ click: P(3)
150
150
  }
151
151
  }
152
152
  })), y(l, {
@@ -162,7 +162,7 @@ H.prototype.getContextPadEntries = function(i) {
162
162
  }
163
163
  });
164
164
  }
165
- j(c, "bpmn:FlowNode") && (j(c, "bpmn:EventBasedGateway") ? y(l, {
165
+ V(c, "bpmn:FlowNode") && (V(c, "bpmn:EventBasedGateway") ? y(l, {
166
166
  "append.receive-task": f(
167
167
  "bpmn:ReceiveTask",
168
168
  "bpmn-icon-receive-task",
@@ -192,7 +192,7 @@ H.prototype.getContextPadEntries = function(i) {
192
192
  p("Append SignalIntermediateCatchEvent"),
193
193
  { eventDefinitionType: "bpmn:SignalEventDefinition" }
194
194
  )
195
- }) : ie(c, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? y(l, {
195
+ }) : ne(c, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? y(l, {
196
196
  "append.compensation-activity": f(
197
197
  "bpmn:Task",
198
198
  "bpmn-icon-task",
@@ -201,7 +201,7 @@ H.prototype.getContextPadEntries = function(i) {
201
201
  isForCompensation: !0
202
202
  }
203
203
  )
204
- }) : !j(c, "bpmn:EndEvent") && !c.isForCompensation && !ie(c, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !_e(c) && y(l, {
204
+ }) : !V(c, "bpmn:EndEvent") && !c.isForCompensation && !ne(c, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Ae(c) && y(l, {
205
205
  "append.end-event": f("bpmn:EndEvent", "bpmn-icon-end-event-none", p("Append EndEvent")),
206
206
  "append.gateway": f("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", p("Append Gateway")),
207
207
  "append.append-task": f("bpmn:UserTask", "bpmn-icon-user-task", p("Append Task")),
@@ -224,7 +224,7 @@ H.prototype.getContextPadEntries = function(i) {
224
224
  }
225
225
  }
226
226
  }
227
- }), G(c, [
227
+ }), N(c, [
228
228
  "bpmn:FlowNode",
229
229
  "bpmn:InteractionNode",
230
230
  "bpmn:DataObjectReference",
@@ -242,7 +242,7 @@ H.prototype.getContextPadEntries = function(i) {
242
242
  dragstart: E
243
243
  }
244
244
  }
245
- }), G(c, ["bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && y(l, {
245
+ }), N(c, ["bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && y(l, {
246
246
  connect: {
247
247
  group: "connect",
248
248
  className: "bpmn-icon-connection-multi",
@@ -252,7 +252,7 @@ H.prototype.getContextPadEntries = function(i) {
252
252
  dragstart: E
253
253
  }
254
254
  }
255
- }), j(c, "bpmn:Group") && y(l, {
255
+ }), V(c, "bpmn:Group") && y(l, {
256
256
  "append.text-annotation": f("bpmn:TextAnnotation", "bpmn-icon-text-annotation")
257
257
  });
258
258
  let I = m.allowed("elements.delete", { elements: [i] });
@@ -262,12 +262,12 @@ H.prototype.getContextPadEntries = function(i) {
262
262
  className: "bpmn-icon-trash",
263
263
  title: p("Remove"),
264
264
  action: {
265
- click: P
265
+ click: O
266
266
  }
267
267
  }
268
268
  }), l;
269
269
  };
270
- function ie(i, e, t) {
270
+ function ne(i, e, t) {
271
271
  const n = i.$instanceOf(e);
272
272
  let s = !1;
273
273
  const r = i.eventDefinitions || [];
@@ -277,10 +277,10 @@ function ie(i, e, t) {
277
277
  }
278
278
  const ze = {
279
279
  __init__: ["contextPadProvider"],
280
- contextPadProvider: ["type", H]
280
+ contextPadProvider: ["type", J]
281
281
  };
282
- function O(i, e, t, n, s, r, a, o, m) {
283
- le.call(
282
+ function L(i, e, t, n, s, r, a, o, m) {
283
+ oe.call(
284
284
  this,
285
285
  i,
286
286
  e,
@@ -296,19 +296,19 @@ function O(i, e, t, n, s, r, a, o, m) {
296
296
  }
297
297
  const Z = function() {
298
298
  };
299
- Z.prototype = le.prototype;
299
+ Z.prototype = oe.prototype;
300
300
  Z.prototype.getPaletteEntries = function() {
301
301
  const i = {}, e = this._create, t = this._elementFactory, n = this._spaceTool, s = this._lassoTool, r = this._handTool, a = this._globalConnect, o = this._translate;
302
- function m(l, c, E, P, C) {
302
+ function m(l, c, E, O, C) {
303
303
  function f(I) {
304
304
  const b = t.createShape(y({ type: l }, C));
305
305
  C && (b.businessObject.di.isExpanded = C.isExpanded), e.start(I, b);
306
306
  }
307
- const M = l.replace(/^bpmn:/, "");
307
+ const P = l.replace(/^bpmn:/, "");
308
308
  return {
309
309
  group: c,
310
310
  className: E,
311
- title: P || o("Create {type}", { type: M }),
311
+ title: O || o("Create {type}", { type: P }),
312
312
  action: {
313
313
  dragstart: f,
314
314
  click: f
@@ -428,7 +428,7 @@ Z.prototype.getPaletteEntries = function() {
428
428
  // 'create.group': createAction('bpmn:Group', 'artifact', 'bpmn-icon-group', translate('Create Group'))
429
429
  }), i;
430
430
  };
431
- O.$inject = [
431
+ L.$inject = [
432
432
  "palette",
433
433
  "create",
434
434
  "elementFactory",
@@ -439,14 +439,14 @@ O.$inject = [
439
439
  "moddle",
440
440
  "translate"
441
441
  ];
442
- O.prototype = new Z();
443
- O.prototype.constructor = O;
444
- const Ne = {
442
+ L.prototype = new Z();
443
+ L.prototype.constructor = L;
444
+ const Ue = {
445
445
  __init__: ["customPalette"],
446
- customPalette: ["type", O]
446
+ customPalette: ["type", L]
447
447
  };
448
448
  function pe(i, e) {
449
- J.call(this, i, e, 3e3), i.on("autoPlace", 3e3, function(t) {
449
+ K.call(this, i, e, 3e3), i.on("autoPlace", 3e3, function(t) {
450
450
  const n = t.shape, s = t.source;
451
451
  return Ke(s, n);
452
452
  }), this.append = function(t, n, s) {
@@ -466,7 +466,7 @@ function pe(i, e) {
466
466
  }), a;
467
467
  };
468
468
  }
469
- function Ue(i) {
469
+ function Ne(i) {
470
470
  return {
471
471
  top: i.y,
472
472
  right: i.x + (i.width || 0),
@@ -488,7 +488,7 @@ function qe(i) {
488
488
  }
489
489
  function Ke(i, e, t) {
490
490
  t || (t = {});
491
- const n = t.defaultDistance || 50, s = qe(i), r = Ue(i);
491
+ const n = t.defaultDistance || 50, s = qe(i), r = Ne(i);
492
492
  return {
493
493
  x: s.x,
494
494
  y: r.bottom + n + e.height / 2
@@ -496,14 +496,14 @@ function Ke(i, e, t) {
496
496
  }
497
497
  const me = function() {
498
498
  };
499
- me.prototype = J.prototype;
499
+ me.prototype = K.prototype;
500
500
  pe.prototype = new me();
501
- pe.prototype.constructor = J;
502
- const Je = 200, He = 100;
501
+ pe.prototype.constructor = K;
502
+ const Je = 200, Ze = 100;
503
503
  function ce(i, e, t) {
504
- i.on("autoPlace", He, function(n) {
504
+ i.on("autoPlace", Ze, function(n) {
505
505
  const s = n.shape, r = n.source;
506
- return Ze(r, s);
506
+ return He(r, s);
507
507
  }), i.on("autoPlace.end", function(n) {
508
508
  t.scrollToElement(n.shape);
509
509
  }), this.append = function(n, s, r) {
@@ -522,7 +522,7 @@ function ce(i, e, t) {
522
522
  };
523
523
  }
524
524
  ce.$inject = ["eventBus", "modeling", "canvas"];
525
- function Ze(i, e) {
525
+ function He(i, e) {
526
526
  const t = Je, n = $e(i);
527
527
  return {
528
528
  x: Le(i).right + t + e.width / 2,
@@ -979,7 +979,7 @@ var Tt = function() {
979
979
  null,
980
980
  null
981
981
  );
982
- const kt = It.exports, _t = {
982
+ const kt = It.exports, At = {
983
983
  name: "ElementTaskConfig",
984
984
  components: { UserTask: ht, ScriptTask: xt, ReceiveTask: kt },
985
985
  props: {
@@ -1030,7 +1030,7 @@ const kt = It.exports, _t = {
1030
1030
  }
1031
1031
  }
1032
1032
  };
1033
- var At = function() {
1033
+ var _t = function() {
1034
1034
  var e = this, t = e._self._c;
1035
1035
  return t("div", { staticClass: "panel-tab__content" }, [t("ElForm", { attrs: { size: "mini", "label-width": "90px" }, nativeOn: { submit: function(n) {
1036
1036
  n.preventDefault();
@@ -1042,8 +1042,8 @@ var At = function() {
1042
1042
  e.$set(e.taskConfigForm, "exclusive", n);
1043
1043
  }, expression: "taskConfigForm.exclusive" } }) : e._e()], 1), t(e.witchTaskComponent, e._b({ tag: "Component" }, "Component", e.$props, !1))], 1)], 1);
1044
1044
  }, wt = [], $t = /* @__PURE__ */ h(
1045
- _t,
1046
1045
  At,
1046
+ _t,
1047
1047
  wt,
1048
1048
  !1,
1049
1049
  null,
@@ -1308,7 +1308,7 @@ var Vt = function() {
1308
1308
  null,
1309
1309
  null
1310
1310
  );
1311
- const Nt = zt.exports, Ut = {
1311
+ const Ut = zt.exports, Nt = {
1312
1312
  name: "SignalAndMessage",
1313
1313
  props: {
1314
1314
  bpmnInstances: Object
@@ -1381,7 +1381,7 @@ var Gt = function() {
1381
1381
  var i = this, e = i._self._c;
1382
1382
  return e("span", [e("i", { staticClass: "el-icon-menu", staticStyle: { "margin-right": "8px", color: "#555" } }), i._v("信号列表")]);
1383
1383
  }], Kt = /* @__PURE__ */ h(
1384
- Ut,
1384
+ Nt,
1385
1385
  Gt,
1386
1386
  qt,
1387
1387
  !1,
@@ -1416,7 +1416,7 @@ const be = {
1416
1416
  expressionListener: "表达式",
1417
1417
  delegateExpressionListener: "代理表达式",
1418
1418
  scriptListener: "脚本"
1419
- }, Ht = {
1419
+ }, Zt = {
1420
1420
  create: "创建",
1421
1421
  assignment: "指派",
1422
1422
  complete: "完成",
@@ -1426,7 +1426,7 @@ const be = {
1426
1426
  }, ye = {
1427
1427
  string: "字符串",
1428
1428
  expression: "表达式"
1429
- }, Zt = {
1429
+ }, Ht = {
1430
1430
  name: "ElementListeners",
1431
1431
  inject: {
1432
1432
  prefix: "prefix",
@@ -1601,7 +1601,7 @@ var Wt = function() {
1601
1601
  e.$set(e.listenerFieldForm, "expression", n);
1602
1602
  }, expression: "listenerFieldForm.expression" } })], 1) : e._e()], 1)], 1)], 1);
1603
1603
  }, Xt = [], Yt = /* @__PURE__ */ h(
1604
- Zt,
1604
+ Ht,
1605
1605
  Wt,
1606
1606
  Xt,
1607
1607
  !1,
@@ -1958,7 +1958,7 @@ const mn = pn.exports, cn = {
1958
1958
  data() {
1959
1959
  return {
1960
1960
  elementListenersList: [],
1961
- listenerEventTypeObject: Ht,
1961
+ listenerEventTypeObject: Zt,
1962
1962
  listenerTypeObject: be,
1963
1963
  listenerFormModelVisible: !1,
1964
1964
  listenerForm: {},
@@ -2133,7 +2133,7 @@ var un = function() {
2133
2133
  null,
2134
2134
  null
2135
2135
  );
2136
- const bn = fn.exports, se = ["base", "task", "form", "multiInstance"], yn = {
2136
+ const bn = fn.exports, ie = ["base", "task", "form", "multiInstance"], yn = {
2137
2137
  name: "PropertiesPanel",
2138
2138
  componentName: "MyPropertiesPanel",
2139
2139
  components: {
@@ -2142,7 +2142,7 @@ const bn = fn.exports, se = ["base", "task", "form", "multiInstance"], yn = {
2142
2142
  ElementProperties: rn,
2143
2143
  ElementListeners: Qt,
2144
2144
  SignalAndMassage: Jt,
2145
- FlowCondition: Nt,
2145
+ FlowCondition: Ut,
2146
2146
  ElementMultiInstance: Bt,
2147
2147
  ElementTask: Lt,
2148
2148
  ElementOtherConfig: ut,
@@ -2192,12 +2192,12 @@ const bn = fn.exports, se = ["base", "task", "form", "multiInstance"], yn = {
2192
2192
  tab: {
2193
2193
  immediate: !0,
2194
2194
  handler() {
2195
- this.activeTab = se;
2195
+ this.activeTab = ie;
2196
2196
  }
2197
2197
  },
2198
2198
  elementId: {
2199
2199
  handler() {
2200
- this.activeTab = se;
2200
+ this.activeTab = ie;
2201
2201
  }
2202
2202
  }
2203
2203
  },
@@ -2560,7 +2560,7 @@ const Sn = {
2560
2560
  Tasks: "任务"
2561
2561
  }, Tn = "Camunda", Cn = "http://camunda.org/schema/1.0/bpmn", In = "camunda", kn = {
2562
2562
  tagAlias: "lowerCase"
2563
- }, _n = [], An = [
2563
+ }, An = [], _n = [
2564
2564
  {
2565
2565
  name: "Definitions",
2566
2566
  isAbstract: !0,
@@ -3676,13 +3676,13 @@ const Sn = {
3676
3676
  }
3677
3677
  ]
3678
3678
  }
3679
- ], wn = [], re = {
3679
+ ], wn = [], se = {
3680
3680
  name: Tn,
3681
3681
  uri: Cn,
3682
3682
  prefix: In,
3683
3683
  xml: kn,
3684
- associations: _n,
3685
- types: An,
3684
+ associations: An,
3685
+ types: _n,
3686
3686
  emumerations: wn
3687
3687
  }, $n = "Activiti", Ln = "http://activiti.org/bpmn", On = "activiti", Pn = {
3688
3688
  tagAlias: "lowerCase"
@@ -4784,7 +4784,7 @@ const Sn = {
4784
4784
  }
4785
4785
  ]
4786
4786
  }
4787
- ], Bn = [], ae = {
4787
+ ], Bn = [], re = {
4788
4788
  name: $n,
4789
4789
  uri: Ln,
4790
4790
  prefix: On,
@@ -4794,7 +4794,7 @@ const Sn = {
4794
4794
  emumerations: Bn
4795
4795
  }, Rn = "Flowable", Vn = "http://flowable.org/bpmn", jn = "flowable", zn = {
4796
4796
  tagAlias: "lowerCase"
4797
- }, Nn = [], Un = [], Gn = [
4797
+ }, Un = [], Nn = [], Gn = [
4798
4798
  {
4799
4799
  name: "InOutBinding",
4800
4800
  superClass: [
@@ -6156,45 +6156,45 @@ const Sn = {
6156
6156
  }
6157
6157
  ]
6158
6158
  }
6159
- ], oe = {
6159
+ ], ae = {
6160
6160
  name: Rn,
6161
6161
  uri: Vn,
6162
6162
  prefix: jn,
6163
6163
  xml: zn,
6164
- associations: Nn,
6165
- emumerations: Un,
6164
+ associations: Un,
6165
+ emumerations: Nn,
6166
6166
  types: Gn
6167
6167
  }, qn = "*";
6168
- function A(i) {
6168
+ function _(i) {
6169
6169
  const e = this;
6170
6170
  i.on("moddleCopy.canCopyProperty", function(t) {
6171
6171
  const n = t.property, s = t.parent;
6172
6172
  return e.canCopyProperty(n, s);
6173
6173
  });
6174
6174
  }
6175
- A.$inject = ["eventBus"];
6176
- A.prototype.canCopyProperty = function(i, e) {
6175
+ _.$inject = ["eventBus"];
6176
+ _.prototype.canCopyProperty = function(i, e) {
6177
6177
  if (Ce(i) && !Kn(i, e) || k(i, "camunda:InputOutput") && !this.canHostInputOutput(e) || he(i, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(e) || k(i, "camunda:In") && !this.canHostIn(e))
6178
6178
  return !1;
6179
6179
  };
6180
- A.prototype.canHostInputOutput = function(i) {
6180
+ _.prototype.canHostInputOutput = function(i) {
6181
6181
  if (x(i, "camunda:Connector"))
6182
6182
  return !0;
6183
6183
  const t = x(i, "bpmn:FlowNode");
6184
6184
  return !(!t || he(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) || k(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
6185
6185
  };
6186
- A.prototype.canHostConnector = function(i) {
6186
+ _.prototype.canHostConnector = function(i) {
6187
6187
  const e = x(i, "camunda:ServiceTaskLike");
6188
6188
  return k(e, "bpmn:MessageEventDefinition") ? x(i, "bpmn:IntermediateThrowEvent") || x(i, "bpmn:EndEvent") : !0;
6189
6189
  };
6190
- A.prototype.canHostIn = function(i) {
6190
+ _.prototype.canHostIn = function(i) {
6191
6191
  return x(i, "bpmn:CallActivity") ? !0 : x(i, "bpmn:SignalEventDefinition") ? x(i, "bpmn:IntermediateThrowEvent") || x(i, "bpmn:EndEvent") : !0;
6192
6192
  };
6193
6193
  function k(i, e) {
6194
6194
  return i && Ie(i.$instanceOf) && i.$instanceOf(e);
6195
6195
  }
6196
6196
  function he(i, e) {
6197
- return _(e, function(t) {
6197
+ return A(e, function(t) {
6198
6198
  return k(i, t);
6199
6199
  });
6200
6200
  }
@@ -6208,42 +6208,42 @@ function x(i, e) {
6208
6208
  }
6209
6209
  function Kn(i, e) {
6210
6210
  const t = i.$type && i.$model.getTypeDescriptor(i.$type), n = t && t.meta && t.meta.allowedIn;
6211
- return !n || Jn(n) ? !0 : _(n, function(s) {
6211
+ return !n || Jn(n) ? !0 : A(n, function(s) {
6212
6212
  return x(e, s);
6213
6213
  });
6214
6214
  }
6215
6215
  function Jn(i) {
6216
6216
  return i.indexOf(qn) !== -1;
6217
6217
  }
6218
- const Hn = {
6218
+ const Zn = {
6219
6219
  __init__: ["camundaModdleExtension"],
6220
- camundaModdleExtension: ["type", A]
6221
- }, Zn = {
6220
+ camundaModdleExtension: ["type", _]
6221
+ }, Hn = {
6222
6222
  FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"],
6223
6223
  Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
6224
6224
  Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
6225
6225
  };
6226
- function W(i, e) {
6226
+ function H(i, e) {
6227
6227
  return i && typeof i.$instanceOf == "function" && i.$instanceOf(e);
6228
6228
  }
6229
6229
  function Wn(i) {
6230
6230
  return i && i.length;
6231
6231
  }
6232
- function z(i, e) {
6233
- return Wn(i) && _(i, function(t) {
6234
- return W(t, e);
6232
+ function j(i, e) {
6233
+ return Wn(i) && A(i, function(t) {
6234
+ return H(t, e);
6235
6235
  });
6236
6236
  }
6237
6237
  function Xn(i, e) {
6238
- return _(e, function(t) {
6239
- return W(i, t);
6238
+ return A(e, function(t) {
6239
+ return H(i, t);
6240
6240
  });
6241
6241
  }
6242
- function q(i, e, t) {
6243
- const n = e.name, s = Zn[n.replace(/activiti:/, "")];
6242
+ function G(i, e, t) {
6243
+ const n = e.name, s = Hn[n.replace(/activiti:/, "")];
6244
6244
  return n === i && Xn(t, s);
6245
6245
  }
6246
- function X(i) {
6246
+ function W(i) {
6247
6247
  i.on(
6248
6248
  "property.clone",
6249
6249
  function(e) {
@@ -6253,42 +6253,42 @@ function X(i) {
6253
6253
  this
6254
6254
  );
6255
6255
  }
6256
- X.$inject = ["eventBus"];
6257
- X.prototype.canCloneProperty = function(i, e) {
6258
- if (q("activiti:FailedJobRetryTimeCycle", e, i))
6259
- return z(i.eventDefinitions, "bpmn:TimerEventDefinition") || z(i.eventDefinitions, "bpmn:SignalEventDefinition") || W(i.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
6260
- if (q("activiti:Connector", e, i) || q("activiti:Field", e, i))
6261
- return z(i.eventDefinitions, "bpmn:MessageEventDefinition");
6256
+ W.$inject = ["eventBus"];
6257
+ W.prototype.canCloneProperty = function(i, e) {
6258
+ if (G("activiti:FailedJobRetryTimeCycle", e, i))
6259
+ return j(i.eventDefinitions, "bpmn:TimerEventDefinition") || j(i.eventDefinitions, "bpmn:SignalEventDefinition") || H(i.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
6260
+ if (G("activiti:Connector", e, i) || G("activiti:Field", e, i))
6261
+ return j(i.eventDefinitions, "bpmn:MessageEventDefinition");
6262
6262
  };
6263
6263
  const Yn = {
6264
6264
  __init__: ["ActivitiModdleExtension"],
6265
- ActivitiModdleExtension: ["type", X]
6265
+ ActivitiModdleExtension: ["type", W]
6266
6266
  }, Qn = {
6267
6267
  FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"],
6268
6268
  Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
6269
6269
  Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
6270
6270
  };
6271
- function Y(i, e) {
6271
+ function X(i, e) {
6272
6272
  return i && typeof i.$instanceOf == "function" && i.$instanceOf(e);
6273
6273
  }
6274
6274
  function ei(i) {
6275
6275
  return i && i.length;
6276
6276
  }
6277
- function N(i, e) {
6278
- return ei(i) && _(i, function(t) {
6279
- return Y(t, e);
6277
+ function z(i, e) {
6278
+ return ei(i) && A(i, function(t) {
6279
+ return X(t, e);
6280
6280
  });
6281
6281
  }
6282
6282
  function ti(i, e) {
6283
- return _(e, function(t) {
6284
- return Y(i, t);
6283
+ return A(e, function(t) {
6284
+ return X(i, t);
6285
6285
  });
6286
6286
  }
6287
- function K(i, e, t) {
6287
+ function q(i, e, t) {
6288
6288
  const n = e.name, s = Qn[n.replace(/flowable:/, "")];
6289
6289
  return n === i && ti(t, s);
6290
6290
  }
6291
- function Q(i) {
6291
+ function Y(i) {
6292
6292
  i.on(
6293
6293
  "property.clone",
6294
6294
  function(e) {
@@ -6298,77 +6298,23 @@ function Q(i) {
6298
6298
  this
6299
6299
  );
6300
6300
  }
6301
- Q.$inject = ["eventBus"];
6302
- Q.prototype.canCloneProperty = function(i, e) {
6303
- if (K("flowable:FailedJobRetryTimeCycle", e, i))
6304
- return N(i.eventDefinitions, "bpmn:TimerEventDefinition") || N(i.eventDefinitions, "bpmn:SignalEventDefinition") || Y(i.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
6305
- if (K("flowable:Connector", e, i) || K("flowable:Field", e, i))
6306
- return N(i.eventDefinitions, "bpmn:MessageEventDefinition");
6301
+ Y.$inject = ["eventBus"];
6302
+ Y.prototype.canCloneProperty = function(i, e) {
6303
+ if (q("flowable:FailedJobRetryTimeCycle", e, i))
6304
+ return z(i.eventDefinitions, "bpmn:TimerEventDefinition") || z(i.eventDefinitions, "bpmn:SignalEventDefinition") || X(i.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
6305
+ if (q("flowable:Connector", e, i) || q("flowable:Field", e, i))
6306
+ return z(i.eventDefinitions, "bpmn:MessageEventDefinition");
6307
6307
  };
6308
6308
  const ni = {
6309
6309
  __init__: ["FlowableModdleExtension"],
6310
- FlowableModdleExtension: ["type", Q]
6311
- }, ii = {
6312
- name: "HighlightJS",
6313
- props: {
6314
- language: String,
6315
- code: String,
6316
- autodetect: Boolean
6317
- },
6318
- data: function() {
6319
- return {
6320
- detectedLanguage: ""
6321
- };
6322
- },
6323
- computed: {
6324
- className() {
6325
- return this.detectedLanguage ? `hljs ${this.detectedLanguage}` : "";
6326
- },
6327
- highlighted() {
6328
- if (!this.language && !L.getLanguage(this.language))
6329
- return console.warn(`The language "${this.language}" you specified could not be found.`), {
6330
- language: "",
6331
- value: Pe(this.code)
6332
- };
6333
- let i = {};
6334
- return !this.language || this.autodetect ? i = L.highlightAuto(this.code) : i = L.highlight(this.code, {
6335
- language: this.language,
6336
- ignoreIllegals: this.ignoreIllegals
6337
- }), i;
6338
- },
6339
- ignoreIllegals() {
6340
- return !0;
6341
- }
6342
- },
6343
- watch: {
6344
- "highlighted.language": {
6345
- immediate: !0,
6346
- handler(i) {
6347
- this.detectedLanguage = i;
6348
- }
6349
- }
6350
- }
6310
+ FlowableModdleExtension: ["type", Y]
6351
6311
  };
6352
- var si = function() {
6353
- var e = this, t = e._self._c;
6354
- return t("pre", { staticClass: "highlight-js" }, [t("code", { class: e.className, domProps: { innerHTML: e._s(e.highlighted.value) } })]);
6355
- }, ri = [], ai = /* @__PURE__ */ h(
6356
- ii,
6357
- si,
6358
- ri,
6359
- !1,
6360
- null,
6361
- null,
6362
- null,
6363
- null
6364
- );
6365
- const oi = ai.exports;
6366
- L.registerLanguage("xml", Ve);
6367
- L.registerLanguage("json", je);
6368
- const li = {
6312
+ le.registerLanguage("xml", Re);
6313
+ le.registerLanguage("json", Ve);
6314
+ const ii = {
6369
6315
  name: "ProcessDesigner",
6370
6316
  components: {
6371
- HighlightJS: oi
6317
+ HighlightJS: je
6372
6318
  },
6373
6319
  componentName: "MyProcessDesigner",
6374
6320
  props: {
@@ -6438,12 +6384,12 @@ const li = {
6438
6384
  additionalModules() {
6439
6385
  const i = [];
6440
6386
  if (this.onlyCustomizeAddi)
6441
- return ne(this.additionalModel) ? this.additionalModel || [] : [this.additionalModel];
6442
- ne(this.additionalModel) ? i.push(...this.additionalModel) : this.additionalModel && i.push(this.additionalModel);
6387
+ return te(this.additionalModel) ? this.additionalModel || [] : [this.additionalModel];
6388
+ te(this.additionalModel) ? i.push(...this.additionalModel) : this.additionalModel && i.push(this.additionalModel);
6443
6389
  const e = {
6444
6390
  translate: ["value", xn(this.translations || Sn)]
6445
6391
  };
6446
- return i.push(e), this.simulation && i.push(Be), i.push(De), this.prefix === "camunda" && i.push(Hn), this.prefix === "flowable" && i.push(ni), this.prefix === "activiti" && i.push(Yn), i;
6392
+ return i.push(e), this.simulation && i.push(De), i.push(Me), this.prefix === "camunda" && i.push(Zn), this.prefix === "flowable" && i.push(ni), this.prefix === "activiti" && i.push(Yn), i;
6447
6393
  },
6448
6394
  moddleExtensions() {
6449
6395
  const i = {};
@@ -6452,12 +6398,12 @@ const li = {
6452
6398
  if (this.moddleExtension)
6453
6399
  for (const e in this.moddleExtension)
6454
6400
  i[e] = this.moddleExtension[e];
6455
- return this.prefix === "activiti" && (i.activiti = T(u({}, ae), {
6456
- types: [...ae.types, ...this.extendTypes || []]
6457
- })), this.prefix === "flowable" && (i.flowable = T(u({}, oe), {
6458
- types: [...oe.types, ...this.extendTypes || []]
6459
- })), this.prefix === "camunda" && (i.camunda = T(u({}, re), {
6401
+ return this.prefix === "activiti" && (i.activiti = T(u({}, re), {
6460
6402
  types: [...re.types, ...this.extendTypes || []]
6403
+ })), this.prefix === "flowable" && (i.flowable = T(u({}, ae), {
6404
+ types: [...ae.types, ...this.extendTypes || []]
6405
+ })), this.prefix === "camunda" && (i.camunda = T(u({}, se), {
6406
+ types: [...se.types, ...this.extendTypes || []]
6461
6407
  })), i;
6462
6408
  }
6463
6409
  },
@@ -6468,7 +6414,7 @@ const li = {
6468
6414
  },
6469
6415
  methods: {
6470
6416
  initBpmnModeler() {
6471
- this.bpmnModeler || (this.bpmnModeler = new Me(u({
6417
+ this.bpmnModeler || (this.bpmnModeler = new Pe(u({
6472
6418
  container: this.$refs["bpmn-canvas"],
6473
6419
  keyboard: this.keyboard ? { bindTo: document } : null,
6474
6420
  additionalModules: this.additionalModules,
@@ -6619,7 +6565,7 @@ const li = {
6619
6565
  });
6620
6566
  },
6621
6567
  previewProcessJson() {
6622
- const i = new Re();
6568
+ const i = new Be();
6623
6569
  this.bpmnModeler.saveXML({ format: !0 }).then(({ xml: e }) => {
6624
6570
  const { definitions: t } = i.xml2js(e);
6625
6571
  t ? this.previewResult = JSON.stringify(t, null, 4) : this.previewResult = "", this.previewType = "json", this.previewModelVisible = !0;
@@ -6627,7 +6573,7 @@ const li = {
6627
6573
  }
6628
6574
  }
6629
6575
  };
6630
- var pi = function() {
6576
+ var si = function() {
6631
6577
  var e = this, t = e._self._c;
6632
6578
  return t("div", { staticClass: "my-process-designer" }, [t("div", { staticClass: "my-process-designer__header" }, [e._t("control-header", function() {
6633
6579
  return [t("ElButtonGroup", { key: "file-control" }, [e._t("toolbar-buttons"), e.simulation ? t("ElTooltip", { attrs: { effect: "light", content: "导入流程" } }, [t("ElButton", { attrs: { size: e.headerButtonSize, type: e.headerButtonType, icon: "el-icon-folder-opened" }, on: { click: function(n) {
@@ -6668,21 +6614,21 @@ var pi = function() {
6668
6614
  }), t("input", { ref: "refFile", staticStyle: { display: "none" }, attrs: { id: "files", type: "file", accept: ".xml, .bpmn" }, on: { change: e.importLocalFile } })], 2), t("div", { staticClass: "my-process-designer__container" }, [t("div", { ref: "bpmn-canvas", staticClass: "my-process-designer__canvas flow-background-image" })]), t("ElementDialog", { attrs: { title: "预览", width: "60vw", height: "60vh", visible: e.previewModelVisible, "body-padding": !1, "destroy-on-close": "" }, on: { "update:visible": function(n) {
6669
6615
  e.previewModelVisible = n;
6670
6616
  } } }, [t("HighlightJS", { attrs: { language: e.previewType, code: e.previewResult } })], 1)], 1);
6671
- }, mi = [], ci = /* @__PURE__ */ h(
6672
- li,
6673
- pi,
6674
- mi,
6617
+ }, ri = [], ai = /* @__PURE__ */ h(
6618
+ ii,
6619
+ si,
6620
+ ri,
6675
6621
  !1,
6676
6622
  null,
6677
6623
  null,
6678
6624
  null,
6679
6625
  null
6680
6626
  );
6681
- const ui = ci.exports, di = {
6627
+ const oi = ai.exports, li = {
6682
6628
  name: "FlowDesigner",
6683
6629
  components: {
6684
6630
  PropertiesPanel: En,
6685
- ProcessDesigner: ui
6631
+ ProcessDesigner: oi
6686
6632
  },
6687
6633
  props: {
6688
6634
  value: String,
@@ -6700,7 +6646,7 @@ const ui = ci.exports, di = {
6700
6646
  labelVisible: !1,
6701
6647
  prefix: "flowable",
6702
6648
  headerButtonSize: "mini",
6703
- additionalModel: [ze, Ne, We]
6649
+ additionalModel: [ze, Ue, We]
6704
6650
  }
6705
6651
  };
6706
6652
  },
@@ -6710,7 +6656,7 @@ const ui = ci.exports, di = {
6710
6656
  }
6711
6657
  }
6712
6658
  };
6713
- var fi = function() {
6659
+ var pi = function() {
6714
6660
  var e = this, t = e._self._c;
6715
6661
  return t("div", { staticClass: "flow-designer" }, [t("ProcessDesigner", e._b({ key: `designer-${e.reloadIndex}`, ref: "processDesigner", attrs: { value: e.value, "extend-types": e.extendTypes, options: {
6716
6662
  taskResizingEnabled: !0,
@@ -6724,17 +6670,17 @@ var fi = function() {
6724
6670
  } }, { key: "extend", fn: function({ id: n, bpmnInstances: s, element: r, type: a }) {
6725
6671
  return [e._t("extend", null, { id: n, bpmnInstances: s, element: r, type: a })];
6726
6672
  } }], null, !0) })], 1);
6727
- }, bi = [], yi = /* @__PURE__ */ h(
6728
- di,
6729
- fi,
6730
- bi,
6673
+ }, mi = [], ci = /* @__PURE__ */ h(
6674
+ li,
6675
+ pi,
6676
+ mi,
6731
6677
  !1,
6732
6678
  null,
6733
6679
  null,
6734
6680
  null,
6735
6681
  null
6736
6682
  );
6737
- const Ni = yi.exports;
6683
+ const Bi = ci.exports;
6738
6684
  export {
6739
- Ni as default
6685
+ Bi as default
6740
6686
  };