@web-utils/component 3.8.3 → 4.0.1

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 (211) hide show
  1. package/awesome-button/index.mjs +25 -55
  2. package/base.css +1 -1
  3. package/card/index.mjs +13 -13
  4. package/card/style.css +1 -1
  5. package/carousel/style.css +1 -1
  6. package/chat/index.mjs +2 -2
  7. package/chat/style.css +1 -1
  8. package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
  9. package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
  10. package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
  11. package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
  12. package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
  13. package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
  14. package/chunks/{FormTemp.BSpnNput.mjs → FormTemp.Bu2VCxUh.mjs} +2 -2
  15. package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
  16. package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
  17. package/chunks/configComponents.BDhlZU8F.mjs +23 -0
  18. package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
  19. package/chunks/core.DJEgjQW6.mjs +54 -0
  20. package/chunks/{dataformat.B9UvztrQ.mjs → dataformat.CpqOeGBl.mjs} +2 -2
  21. package/chunks/{dic.CET0XdKP.mjs → dic.Dkl-leRW.mjs} +43 -43
  22. package/chunks/dictionary.DqiP9x2m.mjs +25 -0
  23. package/chunks/{event.BT1F_1vF.mjs → event.9aDS6jcw.mjs} +2 -2
  24. package/chunks/form-input.B8z37eqj.mjs +31 -0
  25. package/chunks/form-item.D-H-wCPE.mjs +233 -0
  26. package/chunks/form-validate.CVarNHKX.mjs +12 -0
  27. package/chunks/helper.BiMLcEEk.mjs +41 -0
  28. package/chunks/index.9OxHjTIE.mjs +16 -0
  29. package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
  30. package/chunks/{init.ofpxEyAI.mjs → init.DAsXSoLW.mjs} +2 -2
  31. package/chunks/{packages.CWPkeLu9.mjs → packages.ByyangTp.mjs} +3 -3
  32. package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
  33. package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
  34. package/chunks/{util.CoahLDYn.mjs → util.DqFv_pWg.mjs} +54 -55
  35. package/chunks/utilSelf.Csq1766E.mjs +48 -0
  36. package/color-picker/index.mjs +19 -37
  37. package/comment/style.css +1 -1
  38. package/confirm-button/index.mjs +1 -1
  39. package/confirmable/index.mjs +1 -1
  40. package/context-menu/style.css +1 -1
  41. package/count-up/index.mjs +13 -24
  42. package/custom-scrollbar/index.mjs +1 -2
  43. package/data-operatext/style.css +1 -1
  44. package/data-panel/style.css +1 -1
  45. package/data-pay/style.css +1 -1
  46. package/data-price/style.css +1 -1
  47. package/data-rotate/style.css +1 -1
  48. package/data-table-picker/index.mjs +1 -1
  49. package/data-tabs/style.css +1 -1
  50. package/dialog-form/index.mjs +16 -28
  51. package/dynamic-table/style.css +1 -1
  52. package/easy-popup/index.mjs +22 -40
  53. package/easy-popup/style.css +1 -1
  54. package/editable-tree/index.mjs +203 -250
  55. package/editable-tree/style.css +1 -1
  56. package/element-dialog/index.mjs +30 -52
  57. package/element-dialog/style.css +1 -1
  58. package/flex-column/index.mjs +13 -25
  59. package/flex-item/index.mjs +15 -27
  60. package/flex-row/index.mjs +13 -25
  61. package/flow/index.mjs +30 -32
  62. package/flow-designer/index.mjs +344 -375
  63. package/flow-designer/style.css +1 -1
  64. package/flow-node/index.mjs +1 -1
  65. package/flow-viewer/index.mjs +64 -91
  66. package/form-block/index.mjs +33 -26
  67. package/form-card/index.mjs +25 -0
  68. package/form-cascader/index.mjs +70 -67
  69. package/form-checkbox/index.mjs +71 -0
  70. package/form-checkbox-group/index.mjs +33 -53
  71. package/form-date-picker/index.mjs +44 -73
  72. package/form-holder/index.mjs +60 -64
  73. package/form-holder/style.css +1 -0
  74. package/form-input/index.mjs +62 -40
  75. package/form-input-cron-expression/index.mjs +77 -0
  76. package/form-input-cron-expression/style.css +1 -0
  77. package/form-input-email/index.mjs +21 -33
  78. package/form-input-id-card/index.mjs +25 -38
  79. package/form-input-number/index.mjs +39 -42
  80. package/form-input-number/style.css +1 -1
  81. package/form-input-phone-number/index.mjs +26 -37
  82. package/form-input-tag/index.mjs +32 -34
  83. package/form-input-time/index.mjs +22 -37
  84. package/form-item/index.mjs +109 -101
  85. package/form-item/style.css +1 -1
  86. package/form-item-config-provider/index.mjs +18 -10
  87. package/form-item-group/index.mjs +73 -69
  88. package/form-item-group/style.css +1 -1
  89. package/form-radio-group/index.mjs +41 -36
  90. package/form-radio-group/style.css +1 -1
  91. package/form-select/index.mjs +142 -75
  92. package/form-select/style.css +1 -0
  93. package/form-switch/index.mjs +29 -34
  94. package/form-table/index.mjs +85 -0
  95. package/form-table-plus/index.mjs +109 -0
  96. package/form-textarea/index.mjs +23 -35
  97. package/form-tree-select/index.mjs +72 -0
  98. package/form-tree-select/style.css +1 -0
  99. package/form-tree-select-multiple/index.mjs +78 -0
  100. package/form-view/index.mjs +43 -77
  101. package/form-view/style.css +1 -1
  102. package/fy-array/index.mjs +2 -2
  103. package/fy-cascader/index.mjs +1 -1
  104. package/fy-checkbox/index.mjs +1 -1
  105. package/fy-code/index.mjs +1 -1
  106. package/fy-curd/index.mjs +12 -17
  107. package/fy-curd/style.css +1 -1
  108. package/fy-date/index.mjs +1 -1
  109. package/fy-draggable/index.mjs +5 -7
  110. package/fy-draggable/style.css +1 -1
  111. package/fy-dynamic/index.mjs +14 -16
  112. package/fy-empty/index.mjs +1 -1
  113. package/fy-empty/style.css +1 -1
  114. package/fy-form/index.mjs +117 -136
  115. package/fy-form/style.css +1 -1
  116. package/fy-form-design/index.mjs +319 -345
  117. package/fy-form-design/style.css +1 -1
  118. package/fy-input/index.mjs +2 -2
  119. package/fy-input-color/index.mjs +1 -1
  120. package/fy-input-icon/index.mjs +1 -1
  121. package/fy-input-map/index.mjs +21 -26
  122. package/fy-input-map/style.css +1 -1
  123. package/fy-input-number/index.mjs +1 -1
  124. package/fy-input-table/index.mjs +10 -12
  125. package/fy-input-tree/index.mjs +1 -1
  126. package/fy-radio/index.mjs +1 -1
  127. package/fy-rate/index.mjs +1 -1
  128. package/fy-select/index.mjs +4 -4
  129. package/fy-slider/index.mjs +2 -2
  130. package/fy-switch/index.mjs +1 -1
  131. package/fy-tabs/index.mjs +0 -1
  132. package/fy-time/index.mjs +1 -1
  133. package/fy-title/index.mjs +1 -1
  134. package/fy-tree/index.mjs +1 -1
  135. package/fy-u-editor/index.mjs +77 -103
  136. package/fy-upload/index.mjs +3 -3
  137. package/fy-upload/style.css +1 -1
  138. package/highlight-j-s/index.mjs +1 -1
  139. package/highlight-j-s/style.css +1 -1
  140. package/image-cropper/index.mjs +14 -65
  141. package/image-preview/index.mjs +17 -45
  142. package/image-preview/style.css +1 -1
  143. package/image-viewer/style.css +1 -1
  144. package/index.mjs +666 -496
  145. package/input-number/index.mjs +64 -9
  146. package/keyboard/style.css +1 -1
  147. package/license/index.mjs +1 -1
  148. package/login/index.mjs +1 -1
  149. package/monaco-editor/index.mjs +44 -74
  150. package/name-avatar/style.css +1 -1
  151. package/package.json +18 -17
  152. package/page-index/index.mjs +30 -54
  153. package/page-index-top/index.mjs +25 -47
  154. package/pageable-table/index.mjs +354 -226
  155. package/pageable-table/style.css +1 -1
  156. package/pageable-view/index.mjs +63 -106
  157. package/photo-swipe/index.mjs +51 -74
  158. package/picker-table-view/index.mjs +117 -0
  159. package/present-view/index.mjs +43 -77
  160. package/present-view/style.css +1 -1
  161. package/record-video/index.mjs +1 -1
  162. package/resize-observer/index.mjs +1 -1
  163. package/resize-observer/style.css +1 -1
  164. package/search/index.mjs +2 -2
  165. package/search/style.css +1 -1
  166. package/search-popover/index.mjs +28 -48
  167. package/search-popover/style.css +1 -1
  168. package/sign/index.mjs +2 -2
  169. package/sign-panel/style.css +1 -1
  170. package/skeleton-panel/index.mjs +38 -0
  171. package/skeleton-panel/style.css +1 -0
  172. package/split-pane/index.mjs +31 -49
  173. package/split-pane/style.css +1 -1
  174. package/sub-table/index.mjs +206 -0
  175. package/sub-table/style.css +1 -0
  176. package/sub-table-plus/index.mjs +231 -0
  177. package/sub-table-plus/style.css +1 -0
  178. package/swiper/index.mjs +18 -38
  179. package/swiper/style.css +1 -1
  180. package/tab/index.mjs +1 -1
  181. package/tab/style.css +1 -1
  182. package/tab-item/index.mjs +2 -2
  183. package/table-column/index.mjs +112 -37
  184. package/table-column/style.css +1 -0
  185. package/table-view/index.mjs +178 -135
  186. package/table-view/style.css +1 -1
  187. package/tabs-view/index.mjs +104 -0
  188. package/tabs-view/style.css +1 -0
  189. package/tag-render/index.mjs +13 -24
  190. package/text-ellipsis/index.mjs +1 -1
  191. package/toolbar/index.mjs +115 -58
  192. package/toolbar/style.css +1 -1
  193. package/toolbar-button/index.mjs +92 -48
  194. package/verify/index.mjs +1 -1
  195. package/vue-cron/index.mjs +48 -66
  196. package/vue-qr-code/index.mjs +14 -32
  197. package/vue-quill-editor/index.mjs +3 -3
  198. package/vue-tags-input/index.mjs +1 -1
  199. package/vue-tree-select/index.mjs +352 -393
  200. package/vue-tree-select/style.css +1 -1
  201. package/vue-video-player/index.mjs +36 -67
  202. package/watermark/index.mjs +21 -31
  203. package/web-types.json +9240 -3843
  204. package/x-input-tag/index.mjs +29 -61
  205. package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
  206. package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
  207. package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
  208. package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
  209. package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
  210. package/toolbar-button/style.css +0 -1
  211. /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
@@ -1,17 +1,5 @@
1
- var m = Object.defineProperty, u = Object.defineProperties;
2
- var f = Object.getOwnPropertyDescriptors;
3
- var c = Object.getOwnPropertySymbols;
4
- var d = Object.prototype.hasOwnProperty, h = Object.prototype.propertyIsEnumerable;
5
- var r = (o, t, e) => t in o ? m(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, s = (o, t) => {
6
- for (var e in t || (t = {}))
7
- d.call(t, e) && r(o, e, t[e]);
8
- if (c)
9
- for (var e of c(t))
10
- h.call(t, e) && r(o, e, t[e]);
11
- return o;
12
- }, p = (o, t) => u(o, f(t));
13
- import { n as C } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
14
- const I = {
1
+ import { n as l } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
+ const a = {
15
3
  name: "ElementMultiInstance",
16
4
  inject: {
17
5
  prefix: "prefix"
@@ -50,7 +38,7 @@ const I = {
50
38
  },
51
39
  methods: {
52
40
  getElementLoop(o) {
53
- var t, e, n, l, a, i;
41
+ var t, e, n, s;
54
42
  if (!o.loopCharacteristics) {
55
43
  this.loopCharacteristics = "Null", this.loopInstanceForm = {};
56
44
  return;
@@ -59,10 +47,12 @@ const I = {
59
47
  this.loopCharacteristics = "StandardLoop", this.loopInstanceForm = {};
60
48
  return;
61
49
  }
62
- o.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = p(s(s({}, this.defaultLoopInstanceForm), o.loopCharacteristics), {
63
- completionCondition: (n = (e = (t = o.loopCharacteristics) == null ? void 0 : t.completionCondition) == null ? void 0 : e.body) != null ? n : "",
64
- loopCardinality: (i = (a = (l = o.loopCharacteristics) == null ? void 0 : l.loopCardinality) == null ? void 0 : a.body) != null ? i : ""
65
- }), this.multiLoopInstance = this.element.businessObject.loopCharacteristics, o.loopCharacteristics.extensionElements && o.loopCharacteristics.extensionElements.values && o.loopCharacteristics.extensionElements.values.length && this.$set(this.loopInstanceForm, "timeCycle", o.loopCharacteristics.extensionElements.values[0].body);
50
+ o.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = {
51
+ ...this.defaultLoopInstanceForm,
52
+ ...o.loopCharacteristics,
53
+ completionCondition: ((e = (t = o.loopCharacteristics) == null ? void 0 : t.completionCondition) == null ? void 0 : e.body) ?? "",
54
+ loopCardinality: ((s = (n = o.loopCharacteristics) == null ? void 0 : n.loopCardinality) == null ? void 0 : s.body) ?? ""
55
+ }, this.multiLoopInstance = this.element.businessObject.loopCharacteristics, o.loopCharacteristics.extensionElements && o.loopCharacteristics.extensionElements.values && o.loopCharacteristics.extensionElements.values.length && this.$set(this.loopInstanceForm, "timeCycle", o.loopCharacteristics.extensionElements.values[0].body);
66
56
  },
67
57
  changeLoopCharacteristicsType(o) {
68
58
  if (o === "Null") {
@@ -124,7 +114,7 @@ const I = {
124
114
  }
125
115
  }
126
116
  };
127
- var y = function() {
117
+ var i = function() {
128
118
  var t = this, e = t._self._c;
129
119
  return e("div", { staticClass: "panel-tab__content element-multi-instance" }, [e("ElForm", { attrs: { size: "mini", "label-width": "100px" }, nativeOn: { submit: function(n) {
130
120
  n.preventDefault();
@@ -177,15 +167,15 @@ var y = function() {
177
167
  }, expression: "loopInstanceForm.exclusive" } }) : t._e()], 1), t.loopInstanceForm.asyncAfter || t.loopInstanceForm.asyncBefore ? e("ElFormItem", { key: "timeCycle", attrs: { label: "重试周期", prop: "timeCycle" } }, [e("ElInput", { attrs: { clearable: "" }, on: { change: t.updateLoopTimeCycle }, model: { value: t.loopInstanceForm.timeCycle, callback: function(n) {
178
168
  t.$set(t.loopInstanceForm, "timeCycle", n);
179
169
  }, expression: "loopInstanceForm.timeCycle" } })], 1) : t._e()] : t._e()], 2)], 1);
180
- }, v = [], _ = /* @__PURE__ */ C(
181
- I,
182
- y,
183
- v,
170
+ }, c = [], r = /* @__PURE__ */ l(
171
+ a,
172
+ i,
173
+ c,
184
174
  !1,
185
175
  null,
186
176
  null
187
177
  );
188
- const x = _.exports;
178
+ const m = r.exports;
189
179
  export {
190
- x as default
180
+ m as default
191
181
  };
@@ -1,6 +1,6 @@
1
- import { fastClone as o } from "@web-utils/core";
2
- import { n as p } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- const a = {
1
+ import { fastClone as n } from "@web-utils/core";
2
+ import { n as l } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ const p = {
4
4
  name: "ElementProperties",
5
5
  inject: {
6
6
  prefix: "prefix",
@@ -29,11 +29,11 @@ const a = {
29
29
  },
30
30
  methods: {
31
31
  resetAttributesList() {
32
- var i, t, e, r, n;
33
- this.otherExtensionList = [], this.bpmnElementProperties = (r = (e = (t = (i = this.element.businessObject) == null ? void 0 : i.extensionElements) == null ? void 0 : t.values) == null ? void 0 : e.filter((s) => (s.$type !== `${this.prefix}:Properties` && this.otherExtensionList.push(s), s.$type === `${this.prefix}:Properties`))) != null ? r : [], this.bpmnElementPropertyList = this.bpmnElementProperties.reduce((s, l) => s.concat(l.values), []), this.elementPropertyList = o((n = this.bpmnElementPropertyList) != null ? n : []);
32
+ var i, t, e;
33
+ this.otherExtensionList = [], this.bpmnElementProperties = ((e = (t = (i = this.element.businessObject) == null ? void 0 : i.extensionElements) == null ? void 0 : t.values) == null ? void 0 : e.filter((r) => (r.$type !== `${this.prefix}:Properties` && this.otherExtensionList.push(r), r.$type === `${this.prefix}:Properties`))) ?? [], this.bpmnElementPropertyList = this.bpmnElementProperties.reduce((r, s) => r.concat(s.values), []), this.elementPropertyList = n(this.bpmnElementPropertyList ?? []);
34
34
  },
35
35
  openAttributesForm(i, t) {
36
- this.editingPropertyIndex = t, this.propertyForm = t === -1 ? {} : o(i), this.propertyFormModelVisible = !0, this.$nextTick(() => {
36
+ this.editingPropertyIndex = t, this.propertyForm = t === -1 ? {} : n(i), this.propertyFormModelVisible = !0, this.$nextTick(() => {
37
37
  this.$refs.attributeFormRef && this.$refs.attributeFormRef.clearValidate();
38
38
  });
39
39
  },
@@ -75,13 +75,13 @@ const a = {
75
75
  }
76
76
  }
77
77
  };
78
- var m = function() {
78
+ var a = function() {
79
79
  var t = this, e = t._self._c;
80
- return e("div", { staticClass: "panel-tab__content" }, [e("ElTable", { attrs: { data: t.elementPropertyList, size: "mini", "max-height": "240", border: "", fit: "" } }, [e("ElTableColumn", { attrs: { label: "序号", width: "50px", type: "index" } }), e("ElTableColumn", { attrs: { label: "属性名", prop: "name", "min-width": "100px", "show-overflow-tooltip": "" } }), e("ElTableColumn", { attrs: { label: "属性值", prop: "value", "min-width": "100px", "show-overflow-tooltip": "" } }), e("ElTableColumn", { attrs: { label: "操作", width: "90px" }, scopedSlots: t._u([{ key: "default", fn: function({ row: r, $index: n }) {
81
- return [e("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(s) {
82
- return t.openAttributesForm(r, n);
83
- } } }, [t._v("编辑")]), e("ElDivider", { attrs: { direction: "vertical" } }), e("ElButton", { staticStyle: { color: "#ff4d4f" }, attrs: { size: "mini", type: "text" }, on: { click: function(s) {
84
- return t.removeAttributes(r, n);
80
+ return e("div", { staticClass: "panel-tab__content" }, [e("ElTable", { attrs: { data: t.elementPropertyList, size: "mini", "max-height": "240", border: "", fit: "" } }, [e("ElTableColumn", { attrs: { label: "序号", width: "50px", type: "index" } }), e("ElTableColumn", { attrs: { label: "属性名", prop: "name", "min-width": "100px", "show-overflow-tooltip": "" } }), e("ElTableColumn", { attrs: { label: "属性值", prop: "value", "min-width": "100px", "show-overflow-tooltip": "" } }), e("ElTableColumn", { attrs: { label: "操作", width: "90px" }, scopedSlots: t._u([{ key: "default", fn: function({ row: r, $index: s }) {
81
+ return [e("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(o) {
82
+ return t.openAttributesForm(r, s);
83
+ } } }, [t._v("编辑")]), e("ElDivider", { attrs: { direction: "vertical" } }), e("ElButton", { staticStyle: { color: "#ff4d4f" }, attrs: { size: "mini", type: "text" }, on: { click: function(o) {
84
+ return t.removeAttributes(r, s);
85
85
  } } }, [t._v("移除")])];
86
86
  } }]) })], 1), e("div", { staticClass: "element-drawer__button" }, [e("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: function(r) {
87
87
  return t.openAttributesForm(null, -1);
@@ -98,15 +98,15 @@ var m = function() {
98
98
  }, expression: "propertyForm.name" } })], 1), e("ElFormItem", { attrs: { label: "属性值:", prop: "value" } }, [e("ElInput", { attrs: { clearable: "" }, model: { value: t.propertyForm.value, callback: function(r) {
99
99
  t.$set(t.propertyForm, "value", r);
100
100
  }, expression: "propertyForm.value" } })], 1)], 1)], 1)], 1);
101
- }, c = [], u = /* @__PURE__ */ p(
101
+ }, m = [], c = /* @__PURE__ */ l(
102
+ p,
102
103
  a,
103
104
  m,
104
- c,
105
105
  !1,
106
106
  null,
107
107
  null
108
108
  );
109
- const h = u.exports;
109
+ const b = c.exports;
110
110
  export {
111
- h as default
111
+ b as default
112
112
  };
@@ -1,16 +1,5 @@
1
- var m = Object.defineProperty;
2
- var o = Object.getOwnPropertySymbols;
3
- var p = Object.prototype.hasOwnProperty, u = Object.prototype.propertyIsEnumerable;
4
- var l = (a, e, s) => e in a ? m(a, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[e] = s, c = (a, e) => {
5
- for (var s in e || (e = {}))
6
- p.call(e, s) && l(a, s, e[s]);
7
- if (o)
8
- for (var s of o(e))
9
- u.call(e, s) && l(a, s, e[s]);
10
- return a;
11
- };
12
1
  import { n } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
13
- const d = {
2
+ const o = {
14
3
  name: "UserTask",
15
4
  props: {
16
5
  id: String,
@@ -43,8 +32,8 @@ const d = {
43
32
  resetTaskForm() {
44
33
  const { businessObject: a } = this.element;
45
34
  for (const e in this.defaultTaskForm) {
46
- let s;
47
- ["candidateUsers", "candidateGroups"].includes(e) ? s = a[e] ? a[e].split(",") : [] : s = a[e] || this.defaultTaskForm[e], this.$set(this.userTaskForm, e, s);
35
+ let t;
36
+ ["candidateUsers", "candidateGroups"].includes(e) ? t = a[e] ? a[e].split(",") : [] : t = a[e] || this.defaultTaskForm[e], this.$set(this.userTaskForm, e, t);
48
37
  }
49
38
  },
50
39
  updateElementTask(a) {
@@ -53,48 +42,48 @@ const d = {
53
42
  }
54
43
  }
55
44
  };
56
- var f = function() {
57
- var e = this, s = e._self._c;
58
- return s("div", { staticStyle: { "margin-top": "16px" } }, [s("ElFormItem", { attrs: { label: "处理用户" } }, [s("ElSelect", { on: { change: function(t) {
45
+ var l = function() {
46
+ var e = this, t = e._self._c;
47
+ return t("div", { staticStyle: { "margin-top": "16px" } }, [t("ElFormItem", { attrs: { label: "处理用户" } }, [t("ElSelect", { on: { change: function(s) {
59
48
  return e.updateElementTask("assignee");
60
- } }, model: { value: e.userTaskForm.assignee, callback: function(t) {
61
- e.$set(e.userTaskForm, "assignee", t);
62
- }, expression: "userTaskForm.assignee" } }, e._l(e.mockData, function(t) {
63
- return s("ElOption", { key: `ass-${t}`, attrs: { label: `用户${t}`, value: `user${t}` } });
64
- }), 1)], 1), s("ElFormItem", { attrs: { label: "候选用户" } }, [s("ElSelect", { attrs: { multiple: "", "collapse-tags": "" }, on: { change: function(t) {
49
+ } }, model: { value: e.userTaskForm.assignee, callback: function(s) {
50
+ e.$set(e.userTaskForm, "assignee", s);
51
+ }, expression: "userTaskForm.assignee" } }, e._l(e.mockData, function(s) {
52
+ return t("ElOption", { key: `ass-${s}`, attrs: { label: `用户${s}`, value: `user${s}` } });
53
+ }), 1)], 1), t("ElFormItem", { attrs: { label: "候选用户" } }, [t("ElSelect", { attrs: { multiple: "", "collapse-tags": "" }, on: { change: function(s) {
65
54
  return e.updateElementTask("candidateUsers");
66
- } }, model: { value: e.userTaskForm.candidateUsers, callback: function(t) {
67
- e.$set(e.userTaskForm, "candidateUsers", t);
68
- }, expression: "userTaskForm.candidateUsers" } }, e._l(e.mockData, function(t) {
69
- return s("ElOption", { key: `user-${t}`, attrs: { label: `用户${t}`, value: `user${t}` } });
70
- }), 1)], 1), s("ElFormItem", { attrs: { label: "候选分组" } }, [s("ElSelect", { attrs: { multiple: "", "collapse-tags": "" }, on: { change: function(t) {
55
+ } }, model: { value: e.userTaskForm.candidateUsers, callback: function(s) {
56
+ e.$set(e.userTaskForm, "candidateUsers", s);
57
+ }, expression: "userTaskForm.candidateUsers" } }, e._l(e.mockData, function(s) {
58
+ return t("ElOption", { key: `user-${s}`, attrs: { label: `用户${s}`, value: `user${s}` } });
59
+ }), 1)], 1), t("ElFormItem", { attrs: { label: "候选分组" } }, [t("ElSelect", { attrs: { multiple: "", "collapse-tags": "" }, on: { change: function(s) {
71
60
  return e.updateElementTask("candidateGroups");
72
- } }, model: { value: e.userTaskForm.candidateGroups, callback: function(t) {
73
- e.$set(e.userTaskForm, "candidateGroups", t);
74
- }, expression: "userTaskForm.candidateGroups" } }, e._l(e.mockData, function(t) {
75
- return s("ElOption", { key: `ass-${t}`, attrs: { label: `分组${t}`, value: `group${t}` } });
76
- }), 1)], 1), s("ElFormItem", { attrs: { label: "到期时间" } }, [s("ElInput", { attrs: { clearable: "" }, on: { change: function(t) {
61
+ } }, model: { value: e.userTaskForm.candidateGroups, callback: function(s) {
62
+ e.$set(e.userTaskForm, "candidateGroups", s);
63
+ }, expression: "userTaskForm.candidateGroups" } }, e._l(e.mockData, function(s) {
64
+ return t("ElOption", { key: `ass-${s}`, attrs: { label: `分组${s}`, value: `group${s}` } });
65
+ }), 1)], 1), t("ElFormItem", { attrs: { label: "到期时间" } }, [t("ElInput", { attrs: { clearable: "" }, on: { change: function(s) {
77
66
  return e.updateElementTask("dueDate");
78
- } }, model: { value: e.userTaskForm.dueDate, callback: function(t) {
79
- e.$set(e.userTaskForm, "dueDate", t);
80
- }, expression: "userTaskForm.dueDate" } })], 1), s("ElFormItem", { attrs: { label: "跟踪时间" } }, [s("ElInput", { attrs: { clearable: "" }, on: { change: function(t) {
67
+ } }, model: { value: e.userTaskForm.dueDate, callback: function(s) {
68
+ e.$set(e.userTaskForm, "dueDate", s);
69
+ }, expression: "userTaskForm.dueDate" } })], 1), t("ElFormItem", { attrs: { label: "跟踪时间" } }, [t("ElInput", { attrs: { clearable: "" }, on: { change: function(s) {
81
70
  return e.updateElementTask("followUpDate");
82
- } }, model: { value: e.userTaskForm.followUpDate, callback: function(t) {
83
- e.$set(e.userTaskForm, "followUpDate", t);
84
- }, expression: "userTaskForm.followUpDate" } })], 1), s("ElFormItem", { attrs: { label: "优先级" } }, [s("ElInput", { attrs: { clearable: "" }, on: { change: function(t) {
71
+ } }, model: { value: e.userTaskForm.followUpDate, callback: function(s) {
72
+ e.$set(e.userTaskForm, "followUpDate", s);
73
+ }, expression: "userTaskForm.followUpDate" } })], 1), t("ElFormItem", { attrs: { label: "优先级" } }, [t("ElInput", { attrs: { clearable: "" }, on: { change: function(s) {
85
74
  return e.updateElementTask("priority");
86
- } }, model: { value: e.userTaskForm.priority, callback: function(t) {
87
- e.$set(e.userTaskForm, "priority", t);
75
+ } }, model: { value: e.userTaskForm.priority, callback: function(s) {
76
+ e.$set(e.userTaskForm, "priority", s);
88
77
  }, expression: "userTaskForm.priority" } })], 1)], 1);
89
- }, k = [], h = /* @__PURE__ */ n(
90
- d,
91
- f,
92
- k,
78
+ }, c = [], m = /* @__PURE__ */ n(
79
+ o,
80
+ l,
81
+ c,
93
82
  !1,
94
83
  null,
95
84
  null
96
85
  );
97
- const b = h.exports, F = {
86
+ const p = m.exports, u = {
98
87
  name: "ScriptTask",
99
88
  props: {
100
89
  id: String,
@@ -124,8 +113,8 @@ const b = h.exports, F = {
124
113
  resetTaskForm() {
125
114
  var a;
126
115
  for (const e in this.defaultTaskForm) {
127
- const s = ((a = this.element) == null ? void 0 : a.businessObject[e]) || this.defaultTaskForm[e];
128
- this.$set(this.scriptTaskForm, e, s);
116
+ const t = ((a = this.element) == null ? void 0 : a.businessObject[e]) || this.defaultTaskForm[e];
117
+ this.$set(this.scriptTaskForm, e, t);
129
118
  }
130
119
  this.$set(this.scriptTaskForm, "scriptType", this.scriptTaskForm.script ? "inline" : "external");
131
120
  },
@@ -135,44 +124,44 @@ const b = h.exports, F = {
135
124
  }
136
125
  }
137
126
  };
138
- var g = function() {
139
- var e = this, s = e._self._c;
140
- return s("div", { staticStyle: { "margin-top": "16px" } }, [s("ElFormItem", { attrs: { label: "脚本格式" } }, [s("ElInput", { attrs: { clearable: "" }, on: { input: function(t) {
127
+ var d = function() {
128
+ var e = this, t = e._self._c;
129
+ return t("div", { staticStyle: { "margin-top": "16px" } }, [t("ElFormItem", { attrs: { label: "脚本格式" } }, [t("ElInput", { attrs: { clearable: "" }, on: { input: function(s) {
141
130
  return e.updateElementTask();
142
- }, change: function(t) {
131
+ }, change: function(s) {
143
132
  return e.updateElementTask();
144
- } }, model: { value: e.scriptTaskForm.scriptFormat, callback: function(t) {
145
- e.$set(e.scriptTaskForm, "scriptFormat", t);
146
- }, expression: "scriptTaskForm.scriptFormat" } })], 1), s("ElFormItem", { attrs: { label: "脚本类型" } }, [s("ElSelect", { model: { value: e.scriptTaskForm.scriptType, callback: function(t) {
147
- e.$set(e.scriptTaskForm, "scriptType", t);
148
- }, expression: "scriptTaskForm.scriptType" } }, [s("ElOption", { attrs: { label: "内联脚本", value: "inline" } }), s("ElOption", { attrs: { label: "外部资源", value: "external" } })], 1)], 1), s("ElFormItem", { directives: [{ name: "show", rawName: "v-show", value: e.scriptTaskForm.scriptType === "inline", expression: "scriptTaskForm.scriptType === 'inline'" }], attrs: { label: "脚本" } }, [s("ElInput", { attrs: { type: "textarea", resize: "vertical", autosize: { minRows: 2, maxRows: 4 }, clearable: "" }, on: { input: function(t) {
133
+ } }, model: { value: e.scriptTaskForm.scriptFormat, callback: function(s) {
134
+ e.$set(e.scriptTaskForm, "scriptFormat", s);
135
+ }, expression: "scriptTaskForm.scriptFormat" } })], 1), t("ElFormItem", { attrs: { label: "脚本类型" } }, [t("ElSelect", { model: { value: e.scriptTaskForm.scriptType, callback: function(s) {
136
+ e.$set(e.scriptTaskForm, "scriptType", s);
137
+ }, expression: "scriptTaskForm.scriptType" } }, [t("ElOption", { attrs: { label: "内联脚本", value: "inline" } }), t("ElOption", { attrs: { label: "外部资源", value: "external" } })], 1)], 1), t("ElFormItem", { directives: [{ name: "show", rawName: "v-show", value: e.scriptTaskForm.scriptType === "inline", expression: "scriptTaskForm.scriptType === 'inline'" }], attrs: { label: "脚本" } }, [t("ElInput", { attrs: { type: "textarea", resize: "vertical", autosize: { minRows: 2, maxRows: 4 }, clearable: "" }, on: { input: function(s) {
149
138
  return e.updateElementTask();
150
- }, change: function(t) {
139
+ }, change: function(s) {
151
140
  return e.updateElementTask();
152
- } }, model: { value: e.scriptTaskForm.script, callback: function(t) {
153
- e.$set(e.scriptTaskForm, "script", t);
154
- }, expression: "scriptTaskForm.script" } })], 1), s("ElFormItem", { directives: [{ name: "show", rawName: "v-show", value: e.scriptTaskForm.scriptType === "external", expression: "scriptTaskForm.scriptType === 'external'" }], attrs: { label: "资源地址" } }, [s("ElInput", { attrs: { clearable: "" }, on: { input: function(t) {
141
+ } }, model: { value: e.scriptTaskForm.script, callback: function(s) {
142
+ e.$set(e.scriptTaskForm, "script", s);
143
+ }, expression: "scriptTaskForm.script" } })], 1), t("ElFormItem", { directives: [{ name: "show", rawName: "v-show", value: e.scriptTaskForm.scriptType === "external", expression: "scriptTaskForm.scriptType === 'external'" }], attrs: { label: "资源地址" } }, [t("ElInput", { attrs: { clearable: "" }, on: { input: function(s) {
155
144
  return e.updateElementTask();
156
- }, change: function(t) {
145
+ }, change: function(s) {
157
146
  return e.updateElementTask();
158
- } }, model: { value: e.scriptTaskForm.resource, callback: function(t) {
159
- e.$set(e.scriptTaskForm, "resource", t);
160
- }, expression: "scriptTaskForm.resource" } })], 1), s("ElFormItem", { attrs: { label: "结果变量" } }, [s("ElInput", { attrs: { clearable: "" }, on: { input: function(t) {
147
+ } }, model: { value: e.scriptTaskForm.resource, callback: function(s) {
148
+ e.$set(e.scriptTaskForm, "resource", s);
149
+ }, expression: "scriptTaskForm.resource" } })], 1), t("ElFormItem", { attrs: { label: "结果变量" } }, [t("ElInput", { attrs: { clearable: "" }, on: { input: function(s) {
161
150
  return e.updateElementTask();
162
- }, change: function(t) {
151
+ }, change: function(s) {
163
152
  return e.updateElementTask();
164
- } }, model: { value: e.scriptTaskForm.resultVariable, callback: function(t) {
165
- e.$set(e.scriptTaskForm, "resultVariable", t);
153
+ } }, model: { value: e.scriptTaskForm.resultVariable, callback: function(s) {
154
+ e.$set(e.scriptTaskForm, "resultVariable", s);
166
155
  }, expression: "scriptTaskForm.resultVariable" } })], 1)], 1);
167
- }, T = [], v = /* @__PURE__ */ n(
168
- F,
169
- g,
170
- T,
156
+ }, f = [], k = /* @__PURE__ */ n(
157
+ u,
158
+ d,
159
+ f,
171
160
  !1,
172
161
  null,
173
162
  null
174
163
  );
175
- const E = v.exports, _ = {
164
+ const h = k.exports, b = {
176
165
  name: "ReceiveTask",
177
166
  props: {
178
167
  id: String,
@@ -225,34 +214,34 @@ const E = v.exports, _ = {
225
214
  }
226
215
  }
227
216
  };
228
- var $ = function() {
229
- var e = this, s = e._self._c;
230
- return s("div", { staticStyle: { "margin-top": "16px" } }, [s("ElFormItem", { attrs: { label: "消息实例" } }, [s("div", { staticStyle: { display: "flex", "flex-wrap": "nowrap", "align-items": "center", "justify-content": "space-between" } }, [s("ElSelect", { on: { change: e.updateTaskMessage }, model: { value: e.bindMessageId, callback: function(t) {
231
- e.bindMessageId = t;
232
- }, expression: "bindMessageId" } }, e._l(Object.keys(e.messageMap), function(t) {
233
- return s("ElOption", { key: t, attrs: { value: t, label: e.messageMap[t] } });
234
- }), 1), s("ElButton", { staticStyle: { "margin-left": "8px" }, attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: e.openMessageModel } })], 1)]), s("ElementDialog", { staticClass: "flow-dialog", attrs: { visible: e.messageModelVisible, "close-on-click-modal": !1, title: "创建新消息", width: "400px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(t) {
235
- e.messageModelVisible = t;
217
+ var F = function() {
218
+ var e = this, t = e._self._c;
219
+ return t("div", { staticStyle: { "margin-top": "16px" } }, [t("ElFormItem", { attrs: { label: "消息实例" } }, [t("div", { staticStyle: { display: "flex", "flex-wrap": "nowrap", "align-items": "center", "justify-content": "space-between" } }, [t("ElSelect", { on: { change: e.updateTaskMessage }, model: { value: e.bindMessageId, callback: function(s) {
220
+ e.bindMessageId = s;
221
+ }, expression: "bindMessageId" } }, e._l(Object.keys(e.messageMap), function(s) {
222
+ return t("ElOption", { key: s, attrs: { value: s, label: e.messageMap[s] } });
223
+ }), 1), t("ElButton", { staticStyle: { "margin-left": "8px" }, attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: e.openMessageModel } })], 1)]), t("ElementDialog", { staticClass: "flow-dialog", attrs: { visible: e.messageModelVisible, "close-on-click-modal": !1, title: "创建新消息", width: "400px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(s) {
224
+ e.messageModelVisible = s;
236
225
  } }, scopedSlots: e._u([{ key: "footer", fn: function() {
237
- return [s("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.createNewMessage } }, [e._v("确 认")])];
238
- }, proxy: !0 }]) }, [s("ElForm", { attrs: { model: e.newMessageForm, size: "mini", "label-width": "90px" }, nativeOn: { submit: function(t) {
239
- t.preventDefault();
240
- } } }, [s("ElFormItem", { attrs: { label: "消息ID" } }, [s("ElInput", { attrs: { clearable: "" }, model: { value: e.newMessageForm.id, callback: function(t) {
241
- e.$set(e.newMessageForm, "id", t);
242
- }, expression: "newMessageForm.id" } })], 1), s("ElFormItem", { attrs: { label: "消息名称" } }, [s("ElInput", { attrs: { clearable: "" }, model: { value: e.newMessageForm.name, callback: function(t) {
243
- e.$set(e.newMessageForm, "name", t);
226
+ return [t("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.createNewMessage } }, [e._v("确 认")])];
227
+ }, proxy: !0 }]) }, [t("ElForm", { attrs: { model: e.newMessageForm, size: "mini", "label-width": "90px" }, nativeOn: { submit: function(s) {
228
+ s.preventDefault();
229
+ } } }, [t("ElFormItem", { attrs: { label: "消息ID" } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.newMessageForm.id, callback: function(s) {
230
+ e.$set(e.newMessageForm, "id", s);
231
+ }, expression: "newMessageForm.id" } })], 1), t("ElFormItem", { attrs: { label: "消息名称" } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.newMessageForm.name, callback: function(s) {
232
+ e.$set(e.newMessageForm, "name", s);
244
233
  }, expression: "newMessageForm.name" } })], 1)], 1)], 1)], 1);
245
- }, y = [], x = /* @__PURE__ */ n(
246
- _,
247
- $,
248
- y,
234
+ }, g = [], T = /* @__PURE__ */ n(
235
+ b,
236
+ F,
237
+ g,
249
238
  !1,
250
239
  null,
251
240
  null
252
241
  );
253
- const M = x.exports, w = {
242
+ const v = T.exports, E = {
254
243
  name: "ElementTaskConfig",
255
- components: { UserTask: b, ScriptTask: E, ReceiveTask: M },
244
+ components: { UserTask: p, ScriptTask: h, ReceiveTask: v },
256
245
  props: {
257
246
  id: String,
258
247
  element: Object,
@@ -284,8 +273,8 @@ const M = x.exports, w = {
284
273
  id: {
285
274
  immediate: !0,
286
275
  handler() {
287
- var a, e, s, t, r, i;
288
- this.taskConfigForm.asyncBefore = (e = (a = this.element) == null ? void 0 : a.businessObject) == null ? void 0 : e.asyncBefore, this.taskConfigForm.asyncAfter = (t = (s = this.element) == null ? void 0 : s.businessObject) == null ? void 0 : t.asyncAfter, this.taskConfigForm.exclusive = (i = (r = this.element) == null ? void 0 : r.businessObject) == null ? void 0 : i.exclusive;
276
+ var a, e, t, s, r, i;
277
+ this.taskConfigForm.asyncBefore = (e = (a = this.element) == null ? void 0 : a.businessObject) == null ? void 0 : e.asyncBefore, this.taskConfigForm.asyncAfter = (s = (t = this.element) == null ? void 0 : t.businessObject) == null ? void 0 : s.asyncAfter, this.taskConfigForm.exclusive = (i = (r = this.element) == null ? void 0 : r.businessObject) == null ? void 0 : i.exclusive;
289
278
  }
290
279
  },
291
280
  type: {
@@ -297,30 +286,32 @@ const M = x.exports, w = {
297
286
  },
298
287
  methods: {
299
288
  changeTaskAsync() {
300
- !this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), this.bpmnInstances.modeling.updateProperties(this.element, c({}, this.taskConfigForm));
289
+ !this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), this.bpmnInstances.modeling.updateProperties(this.element, {
290
+ ...this.taskConfigForm
291
+ });
301
292
  }
302
293
  }
303
294
  };
304
- var I = function() {
305
- var e = this, s = e._self._c;
306
- return s("div", { staticClass: "panel-tab__content" }, [s("ElForm", { attrs: { size: "mini", "label-width": "90px" }, nativeOn: { submit: function(t) {
307
- t.preventDefault();
308
- } } }, [s("ElFormItem", { attrs: { label: "异步延续" } }, [s("ElCheckbox", { attrs: { label: "异步前" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.asyncBefore, callback: function(t) {
309
- e.$set(e.taskConfigForm, "asyncBefore", t);
310
- }, expression: "taskConfigForm.asyncBefore" } }), s("ElCheckbox", { attrs: { label: "异步后" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.asyncAfter, callback: function(t) {
311
- e.$set(e.taskConfigForm, "asyncAfter", t);
312
- }, expression: "taskConfigForm.asyncAfter" } }), e.taskConfigForm.asyncAfter || e.taskConfigForm.asyncBefore ? s("ElCheckbox", { attrs: { label: "排除" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.exclusive, callback: function(t) {
313
- e.$set(e.taskConfigForm, "exclusive", t);
314
- }, expression: "taskConfigForm.exclusive" } }) : e._e()], 1), s(e.witchTaskComponent, e._b({ tag: "Component" }, "Component", e.$props, !1))], 1)], 1);
315
- }, C = [], O = /* @__PURE__ */ n(
316
- w,
317
- I,
318
- C,
295
+ var _ = function() {
296
+ var e = this, t = e._self._c;
297
+ return t("div", { staticClass: "panel-tab__content" }, [t("ElForm", { attrs: { size: "mini", "label-width": "90px" }, nativeOn: { submit: function(s) {
298
+ s.preventDefault();
299
+ } } }, [t("ElFormItem", { attrs: { label: "异步延续" } }, [t("ElCheckbox", { attrs: { label: "异步前" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.asyncBefore, callback: function(s) {
300
+ e.$set(e.taskConfigForm, "asyncBefore", s);
301
+ }, expression: "taskConfigForm.asyncBefore" } }), t("ElCheckbox", { attrs: { label: "异步后" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.asyncAfter, callback: function(s) {
302
+ e.$set(e.taskConfigForm, "asyncAfter", s);
303
+ }, expression: "taskConfigForm.asyncAfter" } }), e.taskConfigForm.asyncAfter || e.taskConfigForm.asyncBefore ? t("ElCheckbox", { attrs: { label: "排除" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.exclusive, callback: function(s) {
304
+ e.$set(e.taskConfigForm, "exclusive", s);
305
+ }, expression: "taskConfigForm.exclusive" } }) : e._e()], 1), t(e.witchTaskComponent, e._b({ tag: "Component" }, "Component", e.$props, !1))], 1)], 1);
306
+ }, $ = [], y = /* @__PURE__ */ n(
307
+ E,
308
+ _,
309
+ $,
319
310
  !1,
320
311
  null,
321
312
  null
322
313
  );
323
- const j = O.exports;
314
+ const M = y.exports;
324
315
  export {
325
- j as default
316
+ M as default
326
317
  };
@@ -1,33 +1,5 @@
1
- var b = Object.defineProperty, F = Object.defineProperties;
2
- var h = Object.getOwnPropertyDescriptors;
3
- var d = Object.getOwnPropertySymbols;
4
- var w = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
5
- var m = (t, e, o) => e in t ? b(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, p = (t, e) => {
6
- for (var o in e || (e = {}))
7
- w.call(e, o) && m(t, o, e[o]);
8
- if (d)
9
- for (var o of d(e))
10
- C.call(e, o) && m(t, o, e[o]);
11
- return t;
12
- }, c = (t, e) => F(t, h(e));
13
- var u = (t, e, o) => new Promise((n, s) => {
14
- var l = (i) => {
15
- try {
16
- r(o.next(i));
17
- } catch (a) {
18
- s(a);
19
- }
20
- }, f = (i) => {
21
- try {
22
- r(o.throw(i));
23
- } catch (a) {
24
- s(a);
25
- }
26
- }, r = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(l, f);
27
- r((o = o.apply(t, e)).next());
28
- });
29
- import { n as y } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
30
- const E = {
1
+ import { n as s } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
+ const r = {
31
3
  name: "FlowCondition",
32
4
  props: {
33
5
  id: String,
@@ -42,10 +14,8 @@ const E = {
42
14
  watch: {
43
15
  id: {
44
16
  immediate: !0,
45
- handler() {
46
- return u(this, null, function* () {
47
- yield this.$nextTick(), this.resetFlowCondition();
48
- });
17
+ async handler() {
18
+ await this.$nextTick(), this.resetFlowCondition();
49
19
  }
50
20
  }
51
21
  },
@@ -59,26 +29,26 @@ const E = {
59
29
  else if (!this.element.businessObject.conditionExpression)
60
30
  this.flowConditionForm = { type: "normal" };
61
31
  else {
62
- const t = this.element.businessObject.conditionExpression;
63
- if (this.flowConditionForm = c(p({}, t), { type: "condition" }), this.flowConditionForm.resource) {
32
+ const n = this.element.businessObject.conditionExpression;
33
+ if (this.flowConditionForm = { ...n, type: "condition" }, this.flowConditionForm.resource) {
64
34
  this.$set(this.flowConditionForm, "conditionType", "script"), this.$set(this.flowConditionForm, "scriptType", "externalScript");
65
35
  return;
66
36
  }
67
- if (t.language) {
37
+ if (n.language) {
68
38
  this.$set(this.flowConditionForm, "conditionType", "script"), this.$set(this.flowConditionForm, "scriptType", "inlineScript");
69
39
  return;
70
40
  }
71
41
  this.$set(this.flowConditionForm, "conditionType", "expression");
72
42
  }
73
43
  },
74
- updateFlowType(t) {
75
- if (t === "condition") {
44
+ updateFlowType(n) {
45
+ if (n === "condition") {
76
46
  this.flowConditionRef = this.bpmnInstances.moddle.create("bpmn:FormalExpression"), this.bpmnInstances.modeling.updateProperties(this.element, {
77
47
  conditionExpression: this.flowConditionRef
78
48
  });
79
49
  return;
80
50
  }
81
- if (t === "default") {
51
+ if (n === "default") {
82
52
  this.bpmnInstances.modeling.updateProperties(this.element, {
83
53
  conditionExpression: null
84
54
  }), this.bpmnInstances.modeling.updateProperties(this.bpmnElementSource, {
@@ -93,40 +63,40 @@ const E = {
93
63
  });
94
64
  },
95
65
  updateFlowCondition() {
96
- const { conditionType: t, scriptType: e, body: o, resource: n, language: s } = this.flowConditionForm;
97
- let l;
98
- t === "expression" ? l = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: o }) : e === "inlineScript" ? (l = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: o, language: s }), this.$set(this.flowConditionForm, "resource", "")) : (this.$set(this.flowConditionForm, "body", ""), l = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { resource: n, language: s })), this.bpmnInstances.modeling.updateProperties(this.element, { conditionExpression: l });
66
+ const { conditionType: n, scriptType: e, body: o, resource: t, language: l } = this.flowConditionForm;
67
+ let i;
68
+ n === "expression" ? i = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: o }) : e === "inlineScript" ? (i = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: o, language: l }), this.$set(this.flowConditionForm, "resource", "")) : (this.$set(this.flowConditionForm, "body", ""), i = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { resource: t, language: l })), this.bpmnInstances.modeling.updateProperties(this.element, { conditionExpression: i });
99
69
  }
100
70
  }
101
71
  };
102
- var x = function() {
72
+ var a = function() {
103
73
  var e = this, o = e._self._c;
104
- return o("div", { staticClass: "panel-tab__content" }, [o("ElForm", { attrs: { model: e.flowConditionForm, "label-width": "90px", size: "mini" }, nativeOn: { submit: function(n) {
105
- n.preventDefault();
106
- } } }, [o("ElFormItem", { attrs: { label: "流转类型" } }, [o("ElSelect", { on: { change: e.updateFlowType }, model: { value: e.flowConditionForm.type, callback: function(n) {
107
- e.$set(e.flowConditionForm, "type", n);
108
- }, expression: "flowConditionForm.type" } }, [o("ElOption", { attrs: { label: "普通流转路径", value: "normal" } }), o("ElOption", { attrs: { label: "默认流转路径", value: "default" } }), o("ElOption", { attrs: { label: "条件流转路径", value: "condition" } })], 1)], 1), e.flowConditionForm.type === "condition" ? o("ElFormItem", { key: "condition", attrs: { label: "条件格式" } }, [o("ElSelect", { model: { value: e.flowConditionForm.conditionType, callback: function(n) {
109
- e.$set(e.flowConditionForm, "conditionType", n);
110
- }, expression: "flowConditionForm.conditionType" } }, [o("ElOption", { attrs: { label: "表达式", value: "expression" } }), o("ElOption", { attrs: { label: "脚本", value: "script" } })], 1)], 1) : e._e(), e.flowConditionForm.conditionType && e.flowConditionForm.conditionType === "expression" ? o("ElFormItem", { key: "express", attrs: { label: "表达式" } }, [o("ElInput", { attrs: { clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.body, callback: function(n) {
111
- e.$set(e.flowConditionForm, "body", n);
112
- }, expression: "flowConditionForm.body" } })], 1) : e._e(), e.flowConditionForm.conditionType && e.flowConditionForm.conditionType === "script" ? [o("ElFormItem", { key: "language", attrs: { label: "脚本语言" } }, [o("ElInput", { attrs: { clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.language, callback: function(n) {
113
- e.$set(e.flowConditionForm, "language", n);
114
- }, expression: "flowConditionForm.language" } })], 1), o("ElFormItem", { key: "scriptType", attrs: { label: "脚本类型" } }, [o("ElSelect", { model: { value: e.flowConditionForm.scriptType, callback: function(n) {
115
- e.$set(e.flowConditionForm, "scriptType", n);
116
- }, expression: "flowConditionForm.scriptType" } }, [o("ElOption", { attrs: { label: "内联脚本", value: "inlineScript" } }), o("ElOption", { attrs: { label: "外部脚本", value: "externalScript" } })], 1)], 1), e.flowConditionForm.scriptType === "inlineScript" ? o("ElFormItem", { key: "body", attrs: { label: "脚本" } }, [o("ElInput", { attrs: { type: "textarea", clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.body, callback: function(n) {
117
- e.$set(e.flowConditionForm, "body", n);
118
- }, expression: "flowConditionForm.body" } })], 1) : e._e(), e.flowConditionForm.scriptType === "externalScript" ? o("ElFormItem", { key: "resource", attrs: { label: "资源地址" } }, [o("ElInput", { attrs: { clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.resource, callback: function(n) {
119
- e.$set(e.flowConditionForm, "resource", n);
74
+ return o("div", { staticClass: "panel-tab__content" }, [o("ElForm", { attrs: { model: e.flowConditionForm, "label-width": "90px", size: "mini" }, nativeOn: { submit: function(t) {
75
+ t.preventDefault();
76
+ } } }, [o("ElFormItem", { attrs: { label: "流转类型" } }, [o("ElSelect", { on: { change: e.updateFlowType }, model: { value: e.flowConditionForm.type, callback: function(t) {
77
+ e.$set(e.flowConditionForm, "type", t);
78
+ }, expression: "flowConditionForm.type" } }, [o("ElOption", { attrs: { label: "普通流转路径", value: "normal" } }), o("ElOption", { attrs: { label: "默认流转路径", value: "default" } }), o("ElOption", { attrs: { label: "条件流转路径", value: "condition" } })], 1)], 1), e.flowConditionForm.type === "condition" ? o("ElFormItem", { key: "condition", attrs: { label: "条件格式" } }, [o("ElSelect", { model: { value: e.flowConditionForm.conditionType, callback: function(t) {
79
+ e.$set(e.flowConditionForm, "conditionType", t);
80
+ }, expression: "flowConditionForm.conditionType" } }, [o("ElOption", { attrs: { label: "表达式", value: "expression" } }), o("ElOption", { attrs: { label: "脚本", value: "script" } })], 1)], 1) : e._e(), e.flowConditionForm.conditionType && e.flowConditionForm.conditionType === "expression" ? o("ElFormItem", { key: "express", attrs: { label: "表达式" } }, [o("ElInput", { attrs: { clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.body, callback: function(t) {
81
+ e.$set(e.flowConditionForm, "body", t);
82
+ }, expression: "flowConditionForm.body" } })], 1) : e._e(), e.flowConditionForm.conditionType && e.flowConditionForm.conditionType === "script" ? [o("ElFormItem", { key: "language", attrs: { label: "脚本语言" } }, [o("ElInput", { attrs: { clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.language, callback: function(t) {
83
+ e.$set(e.flowConditionForm, "language", t);
84
+ }, expression: "flowConditionForm.language" } })], 1), o("ElFormItem", { key: "scriptType", attrs: { label: "脚本类型" } }, [o("ElSelect", { model: { value: e.flowConditionForm.scriptType, callback: function(t) {
85
+ e.$set(e.flowConditionForm, "scriptType", t);
86
+ }, expression: "flowConditionForm.scriptType" } }, [o("ElOption", { attrs: { label: "内联脚本", value: "inlineScript" } }), o("ElOption", { attrs: { label: "外部脚本", value: "externalScript" } })], 1)], 1), e.flowConditionForm.scriptType === "inlineScript" ? o("ElFormItem", { key: "body", attrs: { label: "脚本" } }, [o("ElInput", { attrs: { type: "textarea", clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.body, callback: function(t) {
87
+ e.$set(e.flowConditionForm, "body", t);
88
+ }, expression: "flowConditionForm.body" } })], 1) : e._e(), e.flowConditionForm.scriptType === "externalScript" ? o("ElFormItem", { key: "resource", attrs: { label: "资源地址" } }, [o("ElInput", { attrs: { clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.resource, callback: function(t) {
89
+ e.$set(e.flowConditionForm, "resource", t);
120
90
  }, expression: "flowConditionForm.resource" } })], 1) : e._e()] : e._e()], 2)], 1);
121
- }, g = [], v = /* @__PURE__ */ y(
122
- E,
123
- x,
124
- g,
91
+ }, d = [], m = /* @__PURE__ */ s(
92
+ r,
93
+ a,
94
+ d,
125
95
  !1,
126
96
  null,
127
97
  null
128
98
  );
129
- const T = v.exports;
99
+ const c = m.exports;
130
100
  export {
131
- T as default
101
+ c as default
132
102
  };