@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,8 +1,8 @@
1
1
  import { isBlank as _ } from "@web-utils/core";
2
2
  import { formatDate as i } from "@web-utils/integrations/dayjs";
3
- import { p as h, M as g, A as b, b as c, q as A, e as S, k as d, t as T, h as C, v, u as x } from "./util.CoahLDYn.mjs";
3
+ import { p as h, M as g, A as b, b as c, q as A, e as S, k as d, t as T, h as C, v, u as x } from "./util.DqFv_pWg.mjs";
4
4
  import "../fy-u-editor/style.css";
5
- import { a as D, b as O } from "./dataformat.B9UvztrQ.mjs";
5
+ import { a as D, b as O } from "./dataformat.CpqOeGBl.mjs";
6
6
  import { s as j } from "./slot.DXIbhGat.mjs";
7
7
  import { n as L } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
8
8
  const R = (n = {}, e = {}, s = {}, r = []) => {
@@ -1,16 +1,5 @@
1
- var n = Object.defineProperty;
2
- var o = Object.getOwnPropertySymbols;
3
- var m = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
4
- var a = (s, e, t) => e in s ? n(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, l = (s, e) => {
5
- for (var t in e || (e = {}))
6
- m.call(e, t) && a(s, t, e[t]);
7
- if (o)
8
- for (var t of o(e))
9
- r.call(e, t) && a(s, t, e[t]);
10
- return s;
11
- };
12
- import { n as d } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
13
- const c = {
1
+ import { n as l } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
+ const o = {
14
3
  name: "SignalAndMessage",
15
4
  props: {
16
5
  bpmnInstances: Object
@@ -35,7 +24,7 @@ const c = {
35
24
  methods: {
36
25
  initDataList() {
37
26
  this.rootElements = this.bpmnInstances.modeler.getDefinitions().rootElements, this.messageIdMap = {}, this.signalIdMap = {}, this.messageList = [], this.signalList = [], this.rootElements.forEach((s) => {
38
- s.$type === "bpmn:Message" && (this.messageIdMap[s.id] = !0, this.messageList.push(l({}, s))), s.$type === "bpmn:Signal" && (this.signalIdMap[s.id] = !0, this.signalList.push(l({}, s)));
27
+ s.$type === "bpmn:Message" && (this.messageIdMap[s.id] = !0, this.messageList.push({ ...s })), s.$type === "bpmn:Signal" && (this.signalIdMap[s.id] = !0, this.signalList.push({ ...s }));
39
28
  });
40
29
  },
41
30
  openModel(s) {
@@ -57,7 +46,7 @@ const c = {
57
46
  }
58
47
  }
59
48
  };
60
- var p = function() {
49
+ var a = function() {
61
50
  var e = this, t = e._self._c;
62
51
  return t("div", { staticClass: "panel-tab__content" }, [t("div", { staticClass: "panel-tab__content--title" }, [e._m(0), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: function(i) {
63
52
  return e.openModel("message");
@@ -76,21 +65,21 @@ var p = function() {
76
65
  }, expression: "modelObjectForm.id" } })], 1), t("ElFormItem", { attrs: { label: e.modelConfig.nameLabel } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.modelObjectForm.name, callback: function(i) {
77
66
  e.$set(e.modelObjectForm, "name", i);
78
67
  }, expression: "modelObjectForm.name" } })], 1)], 1)], 1)], 1);
79
- }, b = [function() {
68
+ }, n = [function() {
80
69
  var s = this, e = s._self._c;
81
70
  return e("span", [e("i", { staticClass: "el-icon-menu", staticStyle: { "margin-right": "8px", color: "#555" } }), s._v("消息列表")]);
82
71
  }, function() {
83
72
  var s = this, e = s._self._c;
84
73
  return e("span", [e("i", { staticClass: "el-icon-menu", staticStyle: { "margin-right": "8px", color: "#555" } }), s._v("信号列表")]);
85
- }], u = /* @__PURE__ */ d(
86
- c,
87
- p,
88
- b,
74
+ }], m = /* @__PURE__ */ l(
75
+ o,
76
+ a,
77
+ n,
89
78
  !1,
90
79
  null,
91
80
  null
92
81
  );
93
- const g = u.exports;
82
+ const d = m.exports;
94
83
  export {
95
- g as default
84
+ d as default
96
85
  };
@@ -1,36 +1,8 @@
1
- var b = Object.defineProperty, h = Object.defineProperties;
2
- var v = Object.getOwnPropertyDescriptors;
3
- var c = Object.getOwnPropertySymbols;
4
- var y = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
5
- var u = (r, e, t) => e in r ? b(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, d = (r, e) => {
6
- for (var t in e || (e = {}))
7
- y.call(e, t) && u(r, t, e[t]);
8
- if (c)
9
- for (var t of c(e))
10
- E.call(e, t) && u(r, t, e[t]);
11
- return r;
12
- }, F = (r, e) => h(r, v(e));
13
- var n = (r, e, t) => new Promise((i, s) => {
14
- var l = (o) => {
15
- try {
16
- m(t.next(o));
17
- } catch (p) {
18
- s(p);
19
- }
20
- }, a = (o) => {
21
- try {
22
- m(t.throw(o));
23
- } catch (p) {
24
- s(p);
25
- }
26
- }, m = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(l, a);
27
- m((t = t.apply(r, e)).next());
28
- });
29
- import { c as x, u as f } from "./utils.DRcxC1Fb.mjs";
30
- import { i as g, a as L, f as T, l as k, e as _ } from "./utilSelf.CRqpl0Cz.mjs";
31
- import { fastClone as I } from "@web-utils/core";
32
- import { n as w } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
33
- const O = {
1
+ import { c as o, u as n } from "./utils.DRcxC1Fb.mjs";
2
+ import { i as a, a as m, f as p, l as c, e as u } from "./utilSelf.Csq1766E.mjs";
3
+ import { fastClone as d } from "@web-utils/core";
4
+ import { n as F } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
+ const f = {
34
6
  name: "UserTaskListeners",
35
7
  inject: {
36
8
  prefix: "prefix",
@@ -44,11 +16,11 @@ const O = {
44
16
  data() {
45
17
  return {
46
18
  elementListenersList: [],
47
- listenerEventTypeObject: _,
48
- listenerTypeObject: k,
19
+ listenerEventTypeObject: u,
20
+ listenerTypeObject: c,
49
21
  listenerFormModelVisible: !1,
50
22
  listenerForm: {},
51
- fieldTypeObject: T,
23
+ fieldTypeObject: p,
52
24
  fieldsListOfListener: [],
53
25
  listenerFieldFormModelVisible: !1,
54
26
  // 监听器 注入字段表单弹窗 显示状态
@@ -63,69 +35,56 @@ const O = {
63
35
  watch: {
64
36
  id: {
65
37
  immediate: !0,
66
- handler(r) {
67
- return n(this, null, function* () {
68
- r && (yield this.$nextTick(), this.resetListenersList());
69
- });
38
+ async handler(r) {
39
+ r && (await this.$nextTick(), this.resetListenersList());
70
40
  }
71
41
  }
72
42
  },
73
43
  methods: {
74
44
  resetListenersList() {
75
- var r, e, t, i;
76
- this.otherExtensionList = [], this.bpmnElementListeners = (i = (t = (e = (r = this.element.businessObject) == null ? void 0 : r.extensionElements) == null ? void 0 : e.values) == null ? void 0 : t.filter((s) => s.$type === `${this.prefix}:TaskListener`)) != null ? i : [], this.elementListenersList = this.bpmnElementListeners.map((s) => L(s));
45
+ var r, e, t;
46
+ this.otherExtensionList = [], this.bpmnElementListeners = ((t = (e = (r = this.element.businessObject) == null ? void 0 : r.extensionElements) == null ? void 0 : e.values) == null ? void 0 : t.filter((i) => i.$type === `${this.prefix}:TaskListener`)) ?? [], this.elementListenersList = this.bpmnElementListeners.map((i) => m(i));
77
47
  },
78
- openListenerForm(r, e) {
79
- return n(this, null, function* () {
80
- var t;
81
- r ? (this.listenerForm = g(r), this.editingListenerIndex = e) : (this.listenerForm = {}, this.editingListenerIndex = -1), r && r.fields ? this.fieldsListOfListener = r.fields.map((i) => F(d({}, i), {
82
- fieldType: i.string ? "string" : "expression"
83
- })) : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
84
- });
48
+ async openListenerForm(r, e) {
49
+ var t;
50
+ r ? (this.listenerForm = a(r), this.editingListenerIndex = e) : (this.listenerForm = {}, this.editingListenerIndex = -1), r && r.fields ? this.fieldsListOfListener = r.fields.map((i) => ({
51
+ ...i,
52
+ fieldType: i.string ? "string" : "expression"
53
+ })) : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, await this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
85
54
  },
86
55
  // 移除监听器
87
- removeListener(r, e) {
88
- return n(this, null, function* () {
89
- try {
90
- yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(e, 1), this.elementListenersList.splice(e, 1), f(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners));
91
- } catch (t) {
92
- }
93
- });
56
+ async removeListener(r, e) {
57
+ try {
58
+ await this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(e, 1), this.elementListenersList.splice(e, 1), n(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners));
59
+ } catch {
60
+ }
94
61
  },
95
62
  // 保存监听器
96
- saveListenerConfig() {
97
- return n(this, null, function* () {
98
- var t, i, s, l;
99
- if (!(yield this.$refs.listenerFormRef.validate())) return;
100
- const e = x(this.bpmnInstances, this.listenerForm, !0, this.prefix);
101
- this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(e), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, e), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (l = (s = (i = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : i.values) == null ? void 0 : s.filter((a) => a.$type !== `${this.prefix}:TaskListener`)) != null ? l : [], f(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
102
- });
63
+ async saveListenerConfig() {
64
+ var t, i, s;
65
+ if (!await this.$refs.listenerFormRef.validate()) return;
66
+ const e = o(this.bpmnInstances, this.listenerForm, !0, this.prefix);
67
+ this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(e), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, e), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = ((s = (i = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : i.values) == null ? void 0 : s.filter((l) => l.$type !== `${this.prefix}:TaskListener`)) ?? [], n(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
103
68
  },
104
69
  // 打开监听器字段编辑弹窗
105
- openListenerFieldForm(r, e) {
106
- return n(this, null, function* () {
107
- var t;
108
- this.listenerFieldForm = r ? I(r) : {}, this.editingListenerFieldIndex = r ? e : -1, this.listenerFieldFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFieldFormRef) == null || t.clearValidate();
109
- });
70
+ async openListenerFieldForm(r, e) {
71
+ var t;
72
+ this.listenerFieldForm = r ? d(r) : {}, this.editingListenerFieldIndex = r ? e : -1, this.listenerFieldFormModelVisible = !0, await this.$nextTick(), (t = this.$refs.listenerFieldFormRef) == null || t.clearValidate();
110
73
  },
111
74
  // 保存监听器注入字段
112
- saveListenerFiled() {
113
- return n(this, null, function* () {
114
- (yield this.$refs.listenerFieldFormRef.validate()) && (this.editingListenerFieldIndex === -1 ? (this.fieldsListOfListener.push(this.listenerFieldForm), this.listenerForm.fields.push(this.listenerFieldForm)) : (this.fieldsListOfListener.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm), this.listenerForm.fields.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm)), this.listenerFieldFormModelVisible = !1, yield this.$nextTick(), this.listenerFieldForm = {});
115
- });
75
+ async saveListenerFiled() {
76
+ await this.$refs.listenerFieldFormRef.validate() && (this.editingListenerFieldIndex === -1 ? (this.fieldsListOfListener.push(this.listenerFieldForm), this.listenerForm.fields.push(this.listenerFieldForm)) : (this.fieldsListOfListener.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm), this.listenerForm.fields.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm)), this.listenerFieldFormModelVisible = !1, await this.$nextTick(), this.listenerFieldForm = {});
116
77
  },
117
78
  // 移除监听器字段
118
- removeListenerField(r, e) {
119
- return n(this, null, function* () {
120
- try {
121
- yield this.$confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(e, 1), this.listenerForm.fields.splice(e, 1);
122
- } catch (t) {
123
- }
124
- });
79
+ async removeListenerField(r, e) {
80
+ try {
81
+ await this.$confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(e, 1), this.listenerForm.fields.splice(e, 1);
82
+ } catch {
83
+ }
125
84
  }
126
85
  }
127
86
  };
128
- var $ = function() {
87
+ var b = function() {
129
88
  var e = this, t = e._self._c;
130
89
  return t("div", { staticClass: "panel-tab__content" }, [t("ElTable", { attrs: { data: e.elementListenersList, size: "mini", border: "" } }, [t("ElTableColumn", { attrs: { label: "序号", width: "50px", type: "index" } }), t("ElTableColumn", { attrs: { label: "事件类型", "min-width": "80px", "show-overflow-tooltip": "", formatter: (i) => e.listenerEventTypeObject[i.event] } }), t("ElTableColumn", { attrs: { label: "事件id", "min-width": "80px", prop: "id", "show-overflow-tooltip": "" } }), t("ElTableColumn", { attrs: { label: "监听器类型", "min-width": "80px", "show-overflow-tooltip": "", formatter: (i) => e.listenerTypeObject[i.listenerType] } }), t("ElTableColumn", { attrs: { label: "操作", width: "90px" }, scopedSlots: e._u([{ key: "default", fn: function({ row: i, $index: s }) {
131
90
  return [t("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(l) {
@@ -196,15 +155,15 @@ var $ = function() {
196
155
  }, expression: "listenerFieldForm.string" } })], 1) : e._e(), e.listenerFieldForm.fieldType === "expression" ? t("ElFormItem", { key: "field-expression", attrs: { label: "表达式:", prop: "expression", rules: { required: !0, trigger: ["blur", "change"] } } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.listenerFieldForm.expression, callback: function(i) {
197
156
  e.$set(e.listenerFieldForm, "expression", i);
198
157
  }, expression: "listenerFieldForm.expression" } })], 1) : e._e()], 1)], 1)], 1);
199
- }, S = [], j = /* @__PURE__ */ w(
200
- O,
201
- $,
202
- S,
158
+ }, h = [], v = /* @__PURE__ */ F(
159
+ f,
160
+ b,
161
+ h,
203
162
  !1,
204
163
  null,
205
164
  null
206
165
  );
207
- const M = j.exports;
166
+ const L = v.exports;
208
167
  export {
209
- M as default
168
+ L as default
210
169
  };
@@ -0,0 +1,23 @@
1
+ import { isObject as u, isString as c } from "@web-utils/core";
2
+ const g = {
3
+ privilege: {
4
+ processButtons(e) {
5
+ return e.map((t) => {
6
+ var r, n;
7
+ if (u(t)) {
8
+ const o = t, s = {};
9
+ for (const i in o)
10
+ c(o[i]) && (s[i] = (n = (r = g.privilege) == null ? void 0 : r.hasAuthority) == null ? void 0 : n.call(r, o[i]));
11
+ return s;
12
+ }
13
+ return t;
14
+ });
15
+ },
16
+ hasAuthority(e) {
17
+ return !0;
18
+ }
19
+ }
20
+ };
21
+ export {
22
+ g
23
+ };
@@ -0,0 +1,85 @@
1
+ import d from "element-ui/lib/loading";
2
+ import y from "element-ui/lib/message-box";
3
+ import { isFunction as a } from "@web-utils/core";
4
+ async function v(t, e, n) {
5
+ const { stop: r, prevent: o, message: f, loadable: l, loadingText: x, confirmable: b, confirmType: T, confirmText: S, confirmTitle: w } = e;
6
+ r && t.stopPropagation(), o && t.preventDefault();
7
+ const { before: c, click: u, cancel: s, after: g } = n;
8
+ if (a(u))
9
+ try {
10
+ let i = !0;
11
+ if (a(c) && (i = await c(t)), i === !1)
12
+ return;
13
+ b && await (y.confirm || y.default.confirm)(f || S, {
14
+ type: T,
15
+ title: w
16
+ });
17
+ let m;
18
+ l && (m = (d.service || d.default.service)({
19
+ background: "rgba(0,0,0,0.3)",
20
+ text: x
21
+ }));
22
+ let p;
23
+ try {
24
+ p = await u(t);
25
+ } catch {
26
+ }
27
+ l && m.close(), a(g) && await g(t, p);
28
+ } catch (i) {
29
+ a(s) && await s(i);
30
+ }
31
+ }
32
+ const C = {
33
+ functional: !0,
34
+ props: {
35
+ stop: {
36
+ type: Boolean,
37
+ default: !0
38
+ },
39
+ prevent: {
40
+ type: Boolean,
41
+ default: !0
42
+ },
43
+ text: {
44
+ type: String,
45
+ default: ""
46
+ },
47
+ message: String,
48
+ confirmable: {
49
+ type: Boolean,
50
+ default: !0
51
+ },
52
+ confirmText: {
53
+ type: String,
54
+ default: "你确定要删除该记录吗?"
55
+ },
56
+ confirmType: {
57
+ type: String,
58
+ default: "warning"
59
+ },
60
+ confirmTitle: String,
61
+ loadable: Boolean,
62
+ loadingText: {
63
+ type: String,
64
+ default: "正在处理中请稍候..."
65
+ },
66
+ tag: {
67
+ type: String,
68
+ default: "i"
69
+ }
70
+ },
71
+ render(t, { props: e, data: n, children: r, listeners: o }) {
72
+ return t(
73
+ e.tag,
74
+ {
75
+ ...n,
76
+ on: { click: (f) => v(f, e, o) },
77
+ props: e
78
+ },
79
+ r || e.text
80
+ );
81
+ }
82
+ };
83
+ export {
84
+ C as c
85
+ };
@@ -0,0 +1,54 @@
1
+ import { hyphenate as f } from "@web-utils/core";
2
+ const a = (n) => {
3
+ const t = {};
4
+ for (const o in n)
5
+ t[f(o)] = n[o];
6
+ return t;
7
+ }, h = (n, t = "id", o = "label") => {
8
+ const i = [];
9
+ function e(s, c) {
10
+ if (!s) return;
11
+ const r = [...c, { [t]: s[t], [o]: s[o] }];
12
+ if (!s.children || s.children.length === 0) {
13
+ i.push(r);
14
+ return;
15
+ }
16
+ s.children.forEach((l) => {
17
+ e(l, r);
18
+ });
19
+ }
20
+ return n.forEach((s) => e(s, [])), i;
21
+ }, u = (n) => {
22
+ const t = [];
23
+ return n && (isArray(n) ? n.forEach((o) => {
24
+ isArray(o) ? t.push(...u(o)) : o && t.push(o);
25
+ }) : n && t.push(n)), t;
26
+ }, b = (n, t = "id", o = "label") => {
27
+ const i = [];
28
+ return h(n).forEach((e) => {
29
+ const s = [], c = [];
30
+ for (let r = 0; r < e.length; r++)
31
+ s.push(e[r][t]), c.push(e[r][o]);
32
+ i.push({
33
+ value: s.join("/"),
34
+ label: c.join("/")
35
+ });
36
+ }), i;
37
+ }, j = (n, t = "id", o = "label") => {
38
+ const i = {};
39
+ return h(n).forEach((e) => {
40
+ const s = [], c = [];
41
+ for (let r = 0; r < e.length; r++)
42
+ s.push(e[r][t]), c.push(e[r][o]);
43
+ i[s.join("/")] = {
44
+ value: s.join("/"),
45
+ label: c.join("/")
46
+ };
47
+ }), i;
48
+ };
49
+ export {
50
+ j as a,
51
+ a as b,
52
+ u as f,
53
+ b as t
54
+ };
@@ -1,5 +1,5 @@
1
1
  import { isBlank as l } from "@web-utils/core";
2
- import { S as E, K as A, b as I, M as f, A as h, R as T, c as p, e as m, f as L, g as S, h as B, I as _ } from "./util.CoahLDYn.mjs";
2
+ import { S as E, K as A, b as I, M as f, A as h, R as T, c as p, e as m, f as L, g as S, h as B, I as _ } from "./util.DqFv_pWg.mjs";
3
3
  const P = {
4
4
  common: {
5
5
  condition: "条件",
@@ -138,7 +138,7 @@ const v = (e, n = 12, t = !1) => {
138
138
  }), {
139
139
  tableForm: n
140
140
  };
141
- }, O = function(e) {
141
+ }, O = (e) => {
142
142
  const n = e.placeholder, t = e.label;
143
143
  return l(n) ? E.includes(e.type) ? `${u("tip.select")} ${t}` : `${u("tip.input")} ${t}` : n;
144
144
  };
@@ -1,27 +1,27 @@
1
1
  import { isBlank as P } from "@web-utils/core";
2
- import { m as w, n as E } from "./util.CoahLDYn.mjs";
3
- const F = (n, t = []) => new Promise((i) => {
2
+ import { m as w, n as E } from "./util.DqFv_pWg.mjs";
3
+ const F = (d, r = []) => new Promise((i) => {
4
4
  const c = [], s = [], a = {};
5
- n.forEach((r) => {
6
- r.parentProp && c.push(r);
7
- }), t.forEach((r, e) => {
5
+ d.forEach((t) => {
6
+ t.parentProp && c.push(t);
7
+ }), r.forEach((t, e) => {
8
8
  c.forEach((o) => {
9
9
  o.hide !== !0 && o.dicFlag !== !1 && s.push(
10
- new Promise((d) => {
11
- P(r[o.parentProp]) ? d({
10
+ new Promise((n) => {
11
+ P(t[o.parentProp]) ? n({
12
12
  prop: o.prop,
13
13
  data: [],
14
14
  index: e
15
15
  }) : o.dicUrl && D({
16
- url: `${o.dicUrl.replace("{{key}}", r[o.parentProp])}`,
16
+ url: `${o.dicUrl.replace("{{key}}", t[o.parentProp])}`,
17
17
  props: o.props,
18
18
  method: o.dicMethod,
19
19
  headers: o.dicHeaders,
20
20
  formatter: o.dicFormatter,
21
21
  query: o.dicQuery,
22
- form: r
22
+ form: t
23
23
  }).then((u) => {
24
- d({
24
+ n({
25
25
  prop: o.prop,
26
26
  data: u,
27
27
  index: e
@@ -30,36 +30,36 @@ const F = (n, t = []) => new Promise((i) => {
30
30
  })
31
31
  );
32
32
  });
33
- }), Promise.all(s).then((r) => {
34
- r.forEach((e) => {
33
+ }), Promise.all(s).then((t) => {
34
+ t.forEach((e) => {
35
35
  P(a[e.index]) && (a[e.index] = {}), a[e.index][e.prop] = e.data;
36
36
  }), i(a);
37
37
  });
38
- }), U = (n) => {
39
- let t = [];
38
+ }), U = (d) => {
39
+ let r = [];
40
40
  return new Promise((i, c) => {
41
- t = k(n).ajaxdic, x(t).then((a) => {
41
+ r = k(d).ajaxdic, x(r).then((a) => {
42
42
  i(a);
43
43
  }).catch((a) => {
44
44
  c(a);
45
45
  });
46
46
  });
47
- }, K = (n) => {
48
- const t = {}, i = n.dicData || {};
49
- return n.column.forEach((c) => {
50
- c.dicData && (t[c.prop] = w(c.dicData, c.props, c.dataType));
51
- }), Object.assign(i, t);
47
+ }, K = (d) => {
48
+ const r = {}, i = d.dicData || {};
49
+ return d.column.forEach((c) => {
50
+ c.dicData && (r[c.prop] = w(c.dicData, c.props, c.dataType));
51
+ }), Object.assign(i, r);
52
52
  };
53
- function k(n) {
54
- const t = n.column || [], i = [], c = {};
53
+ function k(d) {
54
+ const r = d.column || [], i = [], c = {};
55
55
  let s = [];
56
- return t.forEach((a) => {
57
- const r = a.dicData, e = a.dicUrl, o = a.prop, d = a.parentProp;
58
- s = s.concat(a.cascader || []), Array.isArray(r) && (c[o] = r), !(a.dicFlag === !1 || a.lazy === !0 || s.includes(o)) && e && !d && i.push({
56
+ return r.forEach((a) => {
57
+ const t = a.dicData, e = a.dicUrl, o = a.prop, n = a.parentProp;
58
+ s = s.concat(a.cascader || []), Array.isArray(t) && (c[o] = t), !(a.dicFlag === !1 || a.lazy === !0 || s.includes(o)) && e && !n && i.push({
59
59
  url: e,
60
60
  name: o,
61
61
  method: a.dicMethod,
62
- headers: t.dicHeaders,
62
+ headers: r.dicHeaders,
63
63
  formatter: a.dicFormatter,
64
64
  props: a.props,
65
65
  dataType: a.dataType,
@@ -71,51 +71,51 @@ function k(n) {
71
71
  locationdic: c
72
72
  };
73
73
  }
74
- function x(n) {
75
- const t = {}, i = [];
74
+ function x(d) {
75
+ const r = {}, i = [];
76
76
  return new Promise((c) => {
77
- n.forEach((s) => {
77
+ d.forEach((s) => {
78
78
  i.push(
79
79
  new Promise((a) => {
80
80
  D(
81
81
  Object.assign(s, {
82
82
  url: `${s.url.replace("{{key}}", "")}`
83
83
  })
84
- ).then((r) => {
85
- r = w(r, s.props, s.dataType), a(r);
84
+ ).then((t) => {
85
+ t = w(t, s.props, s.dataType), a(t);
86
86
  }).catch(() => {
87
87
  a([]);
88
88
  });
89
89
  })
90
90
  );
91
91
  }), Promise.all(i).then((s) => {
92
- n.forEach((a, r) => {
93
- t[a.name] = s[r];
94
- }), c(t);
92
+ d.forEach((a, t) => {
93
+ r[a.name] = s[t];
94
+ }), c(r);
95
95
  });
96
96
  });
97
97
  }
98
- const D = (n) => {
99
- let { url: t, query: i, method: c, resKey: s, props: a, formatter: r, headers: e = {}, value: o = "", column: d, form: u = {} } = n;
100
- d && (t = d.dicUrl, c = d.dicMethod, e = d.headers || {}, i = d.dicQuery || {}, r = d.dicFormatter, a = d.props);
98
+ const D = (d) => {
99
+ let { url: r, query: i, method: c, resKey: s, props: a, formatter: t, headers: e = {}, value: o = "", column: n, form: u = {} } = d;
100
+ n && (r = n.dicUrl, c = n.dicMethod, e = n.headers || {}, i = n.dicQuery || {}, t = n.dicFormatter, a = n.props);
101
101
  const g = "key";
102
- t = t || "";
102
+ r = r || "";
103
103
  let m;
104
104
  const y = {};
105
- return m = t.match(/[^{}]+(?=})/g) || [], m.forEach((p) => {
105
+ return m = r.match(/[^{}]+(?=})/g) || [], m.forEach((p) => {
106
106
  const f = `{{${p}}}`, h = u[p];
107
- p === g ? t = t.replace(f, o) : t = t.replace(f, h);
107
+ p === g ? r = r.replace(f, o) : r = r.replace(f, h);
108
108
  }), c === "post" && (m = Object.keys(i), m.forEach((p) => {
109
109
  const f = i[p];
110
110
  typeof f == "string" && f.match(/\{{|}}/g) ? y[p] = u[f.replace(/\{{|}}/g, "")] : y[p] = f;
111
111
  })), a && (s = (a || {}).res || s), new Promise((p) => {
112
112
  const f = (h) => {
113
113
  let l = [];
114
- typeof r == "function" ? l = r(h.data) : l = E(h.data, s), p(l);
114
+ typeof t == "function" ? l = t(h.data) : l = E(h.data, s), p(l);
115
115
  };
116
- c === "post" ? window.axios.post(t, y, { headers: e }).then(function(h) {
116
+ c === "post" ? window.axios.post(r, y, { headers: e }).then((h) => {
117
117
  f(h);
118
- }).catch(() => [p([])]) : window.axios.get(t, { params: i, headers: e }).then(function(h) {
118
+ }).catch(() => [p([])]) : window.axios.get(r, { params: i, headers: e }).then((h) => {
119
119
  f(h);
120
120
  }).catch(() => [p([])]);
121
121
  });
@@ -0,0 +1,25 @@
1
+ const e = () => [], i = {
2
+ props: {
3
+ dictType: String
4
+ },
5
+ data() {
6
+ return {
7
+ dictItems: []
8
+ };
9
+ },
10
+ watch: {
11
+ dictType: {
12
+ immediate: !0,
13
+ async handler(t) {
14
+ t ? this.dictItems = await e(t, !0, {
15
+ treeDict: this.treeDict,
16
+ idAsValue: this.idAsValue,
17
+ labelAsValue: this.labelAsValue
18
+ }) : this.dictItems = [];
19
+ }
20
+ }
21
+ }
22
+ };
23
+ export {
24
+ i as d
25
+ };
@@ -1,7 +1,7 @@
1
- import { D as r, a as i, b as a } from "./util.CoahLDYn.mjs";
1
+ import { D as r, a as i, b as a } from "./util.DqFv_pWg.mjs";
2
2
  import { s as l } from "./slot.DXIbhGat.mjs";
3
3
  import { isBlank as s } from "@web-utils/core";
4
- import { i as p } from "./dataformat.B9UvztrQ.mjs";
4
+ import { i as p } from "./dataformat.CpqOeGBl.mjs";
5
5
  const f = {
6
6
  mixins: [l],
7
7
  data() {