@web-utils/component 4.0.13 → 4.0.15

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 (171) hide show
  1. package/address-input/index.mjs +15 -13
  2. package/card/index.mjs +20 -18
  3. package/carousel/index.mjs +12 -10
  4. package/chat/index.mjs +56 -45
  5. package/chunk-file-uploader/index.mjs +378 -36
  6. package/chunk-file-uploader/style.css +1 -1
  7. package/chunks/{ElementTaskConfig.Bko0kgTp.mjs → ElementTaskConfig.AvBOzAni.mjs} +63 -55
  8. package/chunks/FormItem.Bhsy_O2B.mjs +372 -0
  9. package/chunks/FyForm.DriwCJ7b.mjs +765 -0
  10. package/chunks/SignalAndMessage.BpjOoKhK.mjs +92 -0
  11. package/chunks/SubTablePlus.BH0IIv3X.mjs +270 -0
  12. package/chunks/TableColumn.BzivvXMF.mjs +337 -0
  13. package/chunks/{confirmable-mixin.B2TtLAdk.mjs → confirmable-mixin.BFZb6pcK.mjs} +1 -1
  14. package/chunks/{dataformat.CpqOeGBl.mjs → dataformat.DJoNBlmI.mjs} +6 -6
  15. package/chunks/{dic.Dkl-leRW.mjs → dic.BinnDitI.mjs} +9 -9
  16. package/chunks/{event.9aDS6jcw.mjs → event.DSlcqYHL.mjs} +2 -2
  17. package/chunks/{form-input.CvFdwlEV.mjs → form-input.BtS_J5a2.mjs} +2 -2
  18. package/chunks/{index.9OxHjTIE.mjs → index.CIfe3UB3.mjs} +2 -2
  19. package/chunks/{index.B2TRddqf.mjs → index.Cn7aq-Et.mjs} +8 -8
  20. package/chunks/{init.DAsXSoLW.mjs → init.xOlFpTyZ.mjs} +2 -2
  21. package/chunks/{util.DqFv_pWg.mjs → util.DI42t5GU.mjs} +22 -22
  22. package/color-picker/index.mjs +101 -22
  23. package/confirm-button/index.mjs +1 -1
  24. package/confirmable/index.mjs +1 -1
  25. package/data-box/index.mjs +15 -12
  26. package/data-card/index.mjs +12 -10
  27. package/data-card-text/index.mjs +12 -10
  28. package/data-display/index.mjs +17 -15
  29. package/data-icons/index.mjs +16 -13
  30. package/data-imgtext/index.mjs +18 -15
  31. package/data-operatext/index.mjs +16 -14
  32. package/data-panel/index.mjs +16 -13
  33. package/data-pay/index.mjs +20 -16
  34. package/data-price/index.mjs +16 -14
  35. package/data-progress/index.mjs +17 -13
  36. package/data-rotate/index.mjs +15 -12
  37. package/data-table-picker/index.mjs +18 -15
  38. package/data-tabs/index.mjs +15 -12
  39. package/dialog-form/index.mjs +18 -16
  40. package/dynamic-table/index.mjs +30 -25
  41. package/editable-progress/index.mjs +11 -9
  42. package/editable-tree/index.mjs +56 -52
  43. package/egd-collapse-item/index.mjs +9 -9
  44. package/element-dialog/index.mjs +23 -22
  45. package/flex-column/index.mjs +1 -1
  46. package/flex-item/index.mjs +1 -1
  47. package/flex-row/index.mjs +1 -1
  48. package/flow/index.mjs +11 -10
  49. package/flow-designer/index.mjs +1973 -699
  50. package/flow-designer/style.css +1 -1
  51. package/flow-node/index.mjs +1 -1
  52. package/flow-viewer/index.mjs +9 -9
  53. package/form-block/index.mjs +34 -32
  54. package/form-cascader/index.mjs +24 -23
  55. package/form-checkbox/index.mjs +17 -16
  56. package/form-checkbox-group/index.mjs +23 -20
  57. package/form-checkbox-group/style.css +1 -1
  58. package/form-date-picker/index.mjs +20 -18
  59. package/form-holder/index.mjs +14 -13
  60. package/form-input/index.mjs +15 -14
  61. package/form-input-cron-expression/index.mjs +22 -19
  62. package/form-input-email/index.mjs +16 -15
  63. package/form-input-id-card/index.mjs +13 -12
  64. package/form-input-number/index.mjs +17 -16
  65. package/form-input-phone-number/index.mjs +22 -21
  66. package/form-input-tag/index.mjs +15 -14
  67. package/form-input-time/index.mjs +15 -14
  68. package/form-item/index.mjs +3 -140
  69. package/form-item-group/index.mjs +31 -28
  70. package/form-radio-group/index.mjs +28 -27
  71. package/form-radio-group/style.css +1 -1
  72. package/form-select/index.mjs +23 -21
  73. package/form-switch/index.mjs +17 -16
  74. package/form-table/index.mjs +17 -16
  75. package/form-table-plus/index.mjs +22 -21
  76. package/form-textarea/index.mjs +16 -15
  77. package/form-tree-select/index.mjs +15 -14
  78. package/form-tree-select-multiple/index.mjs +15 -14
  79. package/form-view/index.mjs +39 -35
  80. package/fy-array/index.mjs +37 -33
  81. package/fy-cascader/index.mjs +17 -16
  82. package/fy-checkbox/index.mjs +13 -11
  83. package/fy-code/index.mjs +10 -10
  84. package/fy-curd/index.mjs +1147 -1123
  85. package/fy-date/index.mjs +11 -10
  86. package/fy-draggable/index.mjs +10 -9
  87. package/fy-dynamic/index.mjs +25 -22
  88. package/fy-empty/index.mjs +1 -1
  89. package/fy-form/index.mjs +15 -638
  90. package/fy-form-design/index.mjs +1165 -1127
  91. package/fy-input/index.mjs +14 -12
  92. package/fy-input-color/index.mjs +15 -13
  93. package/fy-input-icon/index.mjs +23 -20
  94. package/fy-input-map/index.mjs +31 -28
  95. package/fy-input-number/index.mjs +10 -9
  96. package/fy-input-table/index.mjs +22 -18
  97. package/fy-input-tree/index.mjs +37 -33
  98. package/fy-progress/index.mjs +10 -9
  99. package/fy-radio/index.mjs +16 -15
  100. package/fy-rate/index.mjs +11 -10
  101. package/fy-select/index.mjs +29 -25
  102. package/fy-slider/index.mjs +12 -11
  103. package/fy-switch/index.mjs +10 -9
  104. package/fy-tabs/index.mjs +17 -15
  105. package/fy-time/index.mjs +1 -1
  106. package/fy-title/index.mjs +1 -1
  107. package/fy-tree/index.mjs +24 -18
  108. package/fy-u-editor/index.mjs +1 -1
  109. package/fy-upload/index.mjs +76 -74
  110. package/guide-steps/index.mjs +13 -11
  111. package/iframe-window/index.mjs +10 -9
  112. package/image-cropper/index.mjs +30 -28
  113. package/image-preview/index.mjs +14 -12
  114. package/index.mjs +72 -72
  115. package/input-number/index.mjs +14 -13
  116. package/input-number-range/index.mjs +12 -11
  117. package/license/index.mjs +1 -1
  118. package/login/index.mjs +26 -21
  119. package/nav-bar/index.mjs +10 -9
  120. package/notice/index.mjs +10 -9
  121. package/package.json +1 -1
  122. package/page-index/index.mjs +13 -12
  123. package/page-index-top/index.mjs +28 -23
  124. package/page-skeleton/index.mjs +14 -14
  125. package/page-skeleton-new/index.mjs +9 -8
  126. package/pageable-table/index.mjs +182 -172
  127. package/pageable-table/style.css +1 -1
  128. package/pageable-view/index.mjs +16 -15
  129. package/picker-table-view/index.mjs +58 -49
  130. package/present-view/index.mjs +39 -35
  131. package/record-video/index.mjs +1 -1
  132. package/resize-observer/index.mjs +1 -1
  133. package/search/index.mjs +22 -20
  134. package/search-popover/index.mjs +1 -1
  135. package/sign/index.mjs +1 -1
  136. package/skeleton-panel/index.mjs +10 -9
  137. package/split-pane/index.mjs +37 -36
  138. package/static-pageable-table/index.mjs +13 -11
  139. package/sub-table/index.mjs +49 -36
  140. package/sub-table-plus/index.mjs +18 -229
  141. package/swiper/index.mjs +12 -11
  142. package/table-column/index.mjs +3 -223
  143. package/table-view/index.mjs +60 -52
  144. package/tabs-view/index.mjs +19 -17
  145. package/tag-render/index.mjs +18 -16
  146. package/text-ellipsis/index.mjs +10 -9
  147. package/toolbar/index.mjs +14 -13
  148. package/toolbar-button/index.mjs +14 -13
  149. package/verify/index.mjs +1 -1
  150. package/vue-cron/index.mjs +267 -259
  151. package/watermark/index.mjs +1 -1
  152. package/web-types.json +1 -1
  153. package/x-input-tag/index.mjs +24 -21
  154. package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
  155. package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
  156. package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
  157. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
  158. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
  159. package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
  160. package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
  161. package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
  162. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
  163. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
  164. package/chunks/core.0Exl13Mz.mjs +0 -54
  165. package/chunks/dictionary.DGt59Ir7.mjs +0 -68
  166. package/chunks/form-item.LWjePsPa.mjs +0 -233
  167. package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
  168. package/chunks/utilSelf.Csq1766E.mjs +0 -48
  169. package/chunks/utils.DRcxC1Fb.mjs +0 -60
  170. package/element-listeners/style.css +0 -1
  171. package/element-multi-instance/style.css +0 -1
@@ -1,5 +1,13 @@
1
- import { n } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
- const o = {
1
+ import c from "element-ui/lib/checkbox";
2
+ import n from "element-ui/lib/form-item";
3
+ import d from "element-ui/lib/form";
4
+ import r from "element-ui/lib/input";
5
+ import i from "element-ui/lib/option";
6
+ import o from "element-ui/lib/select";
7
+ import { n as l } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
8
+ import u from "element-ui/lib/button";
9
+ import f from "../element-dialog/index.mjs";
10
+ const k = {
3
11
  name: "UserTask",
4
12
  props: {
5
13
  id: String,
@@ -42,48 +50,48 @@ const o = {
42
50
  }
43
51
  }
44
52
  };
45
- var l = function() {
53
+ var h = function() {
46
54
  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) {
55
+ return t("div", { staticStyle: { "margin-top": "16px" } }, [t(n, { attrs: { label: "处理用户" } }, [t(o, { on: { change: function(s) {
48
56
  return e.updateElementTask("assignee");
49
57
  } }, model: { value: e.userTaskForm.assignee, callback: function(s) {
50
58
  e.$set(e.userTaskForm, "assignee", s);
51
59
  }, 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) {
60
+ return t(i, { key: `ass-${s}`, attrs: { label: `用户${s}`, value: `user${s}` } });
61
+ }), 1)], 1), t(n, { attrs: { label: "候选用户" } }, [t(o, { attrs: { multiple: "", "collapse-tags": "" }, on: { change: function(s) {
54
62
  return e.updateElementTask("candidateUsers");
55
63
  } }, model: { value: e.userTaskForm.candidateUsers, callback: function(s) {
56
64
  e.$set(e.userTaskForm, "candidateUsers", s);
57
65
  }, 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) {
66
+ return t(i, { key: `user-${s}`, attrs: { label: `用户${s}`, value: `user${s}` } });
67
+ }), 1)], 1), t(n, { attrs: { label: "候选分组" } }, [t(o, { attrs: { multiple: "", "collapse-tags": "" }, on: { change: function(s) {
60
68
  return e.updateElementTask("candidateGroups");
61
69
  } }, model: { value: e.userTaskForm.candidateGroups, callback: function(s) {
62
70
  e.$set(e.userTaskForm, "candidateGroups", s);
63
71
  }, 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) {
72
+ return t(i, { key: `ass-${s}`, attrs: { label: `分组${s}`, value: `group${s}` } });
73
+ }), 1)], 1), t(n, { attrs: { label: "到期时间" } }, [t(r, { attrs: { clearable: "" }, on: { change: function(s) {
66
74
  return e.updateElementTask("dueDate");
67
75
  } }, model: { value: e.userTaskForm.dueDate, callback: function(s) {
68
76
  e.$set(e.userTaskForm, "dueDate", s);
69
- }, expression: "userTaskForm.dueDate" } })], 1), t("ElFormItem", { attrs: { label: "跟踪时间" } }, [t("ElInput", { attrs: { clearable: "" }, on: { change: function(s) {
77
+ }, expression: "userTaskForm.dueDate" } })], 1), t(n, { attrs: { label: "跟踪时间" } }, [t(r, { attrs: { clearable: "" }, on: { change: function(s) {
70
78
  return e.updateElementTask("followUpDate");
71
79
  } }, model: { value: e.userTaskForm.followUpDate, callback: function(s) {
72
80
  e.$set(e.userTaskForm, "followUpDate", s);
73
- }, expression: "userTaskForm.followUpDate" } })], 1), t("ElFormItem", { attrs: { label: "优先级" } }, [t("ElInput", { attrs: { clearable: "" }, on: { change: function(s) {
81
+ }, expression: "userTaskForm.followUpDate" } })], 1), t(n, { attrs: { label: "优先级" } }, [t(r, { attrs: { clearable: "" }, on: { change: function(s) {
74
82
  return e.updateElementTask("priority");
75
83
  } }, model: { value: e.userTaskForm.priority, callback: function(s) {
76
84
  e.$set(e.userTaskForm, "priority", s);
77
85
  }, expression: "userTaskForm.priority" } })], 1)], 1);
78
- }, c = [], m = /* @__PURE__ */ n(
79
- o,
80
- l,
81
- c,
86
+ }, g = [], b = /* @__PURE__ */ l(
87
+ k,
88
+ h,
89
+ g,
82
90
  !1,
83
91
  null,
84
92
  null
85
93
  );
86
- const p = m.exports, u = {
94
+ const T = b.exports, F = {
87
95
  name: "ScriptTask",
88
96
  props: {
89
97
  id: String,
@@ -124,44 +132,44 @@ const p = m.exports, u = {
124
132
  }
125
133
  }
126
134
  };
127
- var d = function() {
135
+ var _ = function() {
128
136
  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) {
137
+ return t("div", { staticStyle: { "margin-top": "16px" } }, [t(n, { attrs: { label: "脚本格式" } }, [t(r, { attrs: { clearable: "" }, on: { input: function(s) {
130
138
  return e.updateElementTask();
131
139
  }, change: function(s) {
132
140
  return e.updateElementTask();
133
141
  } }, model: { value: e.scriptTaskForm.scriptFormat, callback: function(s) {
134
142
  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) {
143
+ }, expression: "scriptTaskForm.scriptFormat" } })], 1), t(n, { attrs: { label: "脚本类型" } }, [t(o, { model: { value: e.scriptTaskForm.scriptType, callback: function(s) {
136
144
  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) {
145
+ }, expression: "scriptTaskForm.scriptType" } }, [t(i, { attrs: { label: "内联脚本", value: "inline" } }), t(i, { attrs: { label: "外部资源", value: "external" } })], 1)], 1), t(n, { directives: [{ name: "show", rawName: "v-show", value: e.scriptTaskForm.scriptType === "inline", expression: "scriptTaskForm.scriptType === 'inline'" }], attrs: { label: "脚本" } }, [t(r, { attrs: { type: "textarea", resize: "vertical", autosize: { minRows: 2, maxRows: 4 }, clearable: "" }, on: { input: function(s) {
138
146
  return e.updateElementTask();
139
147
  }, change: function(s) {
140
148
  return e.updateElementTask();
141
149
  } }, model: { value: e.scriptTaskForm.script, callback: function(s) {
142
150
  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) {
151
+ }, expression: "scriptTaskForm.script" } })], 1), t(n, { directives: [{ name: "show", rawName: "v-show", value: e.scriptTaskForm.scriptType === "external", expression: "scriptTaskForm.scriptType === 'external'" }], attrs: { label: "资源地址" } }, [t(r, { attrs: { clearable: "" }, on: { input: function(s) {
144
152
  return e.updateElementTask();
145
153
  }, change: function(s) {
146
154
  return e.updateElementTask();
147
155
  } }, model: { value: e.scriptTaskForm.resource, callback: function(s) {
148
156
  e.$set(e.scriptTaskForm, "resource", s);
149
- }, expression: "scriptTaskForm.resource" } })], 1), t("ElFormItem", { attrs: { label: "结果变量" } }, [t("ElInput", { attrs: { clearable: "" }, on: { input: function(s) {
157
+ }, expression: "scriptTaskForm.resource" } })], 1), t(n, { attrs: { label: "结果变量" } }, [t(r, { attrs: { clearable: "" }, on: { input: function(s) {
150
158
  return e.updateElementTask();
151
159
  }, change: function(s) {
152
160
  return e.updateElementTask();
153
161
  } }, model: { value: e.scriptTaskForm.resultVariable, callback: function(s) {
154
162
  e.$set(e.scriptTaskForm, "resultVariable", s);
155
163
  }, expression: "scriptTaskForm.resultVariable" } })], 1)], 1);
156
- }, f = [], k = /* @__PURE__ */ n(
157
- u,
158
- d,
159
- f,
164
+ }, v = [], $ = /* @__PURE__ */ l(
165
+ F,
166
+ _,
167
+ v,
160
168
  !1,
161
169
  null,
162
170
  null
163
171
  );
164
- const h = k.exports, b = {
172
+ const y = $.exports, M = {
165
173
  name: "ReceiveTask",
166
174
  props: {
167
175
  id: String,
@@ -214,34 +222,34 @@ const h = k.exports, b = {
214
222
  }
215
223
  }
216
224
  };
217
- var F = function() {
225
+ var x = function() {
218
226
  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) {
227
+ return t("div", { staticStyle: { "margin-top": "16px" } }, [t(n, { attrs: { label: "消息实例" } }, [t("div", { staticStyle: { display: "flex", "flex-wrap": "nowrap", "align-items": "center", "justify-content": "space-between" } }, [t(o, { on: { change: e.updateTaskMessage }, model: { value: e.bindMessageId, callback: function(s) {
220
228
  e.bindMessageId = s;
221
229
  }, 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) {
230
+ return t(i, { key: s, attrs: { value: s, label: e.messageMap[s] } });
231
+ }), 1), t(u, { staticStyle: { "margin-left": "8px" }, attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: e.openMessageModel } })], 1)]), t(f, { 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
232
  e.messageModelVisible = s;
225
233
  } }, scopedSlots: e._u([{ key: "footer", fn: function() {
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) {
234
+ return [t(u, { attrs: { size: "mini", type: "primary" }, on: { click: e.createNewMessage } }, [e._v("确 认")])];
235
+ }, proxy: !0 }]) }, [t(d, { attrs: { model: e.newMessageForm, size: "mini", "label-width": "90px" }, nativeOn: { submit: function(s) {
228
236
  s.preventDefault();
229
- } } }, [t("ElFormItem", { attrs: { label: "消息ID" } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.newMessageForm.id, callback: function(s) {
237
+ } } }, [t(n, { attrs: { label: "消息ID" } }, [t(r, { attrs: { clearable: "" }, model: { value: e.newMessageForm.id, callback: function(s) {
230
238
  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) {
239
+ }, expression: "newMessageForm.id" } })], 1), t(n, { attrs: { label: "消息名称" } }, [t(r, { attrs: { clearable: "" }, model: { value: e.newMessageForm.name, callback: function(s) {
232
240
  e.$set(e.newMessageForm, "name", s);
233
241
  }, expression: "newMessageForm.name" } })], 1)], 1)], 1)], 1);
234
- }, g = [], T = /* @__PURE__ */ n(
235
- b,
236
- F,
237
- g,
242
+ }, w = [], C = /* @__PURE__ */ l(
243
+ M,
244
+ x,
245
+ w,
238
246
  !1,
239
247
  null,
240
248
  null
241
249
  );
242
- const v = T.exports, E = {
250
+ const E = C.exports, R = {
243
251
  name: "ElementTaskConfig",
244
- components: { UserTask: p, ScriptTask: h, ReceiveTask: v },
252
+ components: { UserTask: T, ScriptTask: y, ReceiveTask: E },
245
253
  props: {
246
254
  id: String,
247
255
  element: Object,
@@ -273,8 +281,8 @@ const v = T.exports, E = {
273
281
  id: {
274
282
  immediate: !0,
275
283
  handler() {
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;
284
+ var a, e, t, s, m, p;
285
+ 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 = (p = (m = this.element) == null ? void 0 : m.businessObject) == null ? void 0 : p.exclusive;
278
286
  }
279
287
  },
280
288
  type: {
@@ -292,26 +300,26 @@ const v = T.exports, E = {
292
300
  }
293
301
  }
294
302
  };
295
- var _ = function() {
303
+ var j = function() {
296
304
  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) {
305
+ return t("div", { staticClass: "panel-tab__content" }, [t(d, { attrs: { size: "mini", "label-width": "90px" }, nativeOn: { submit: function(s) {
298
306
  s.preventDefault();
299
- } } }, [t("ElFormItem", { attrs: { label: "异步延续" } }, [t("ElCheckbox", { attrs: { label: "异步前" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.asyncBefore, callback: function(s) {
307
+ } } }, [t(n, { attrs: { label: "异步延续" } }, [t(c, { attrs: { label: "异步前" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.asyncBefore, callback: function(s) {
300
308
  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) {
309
+ }, expression: "taskConfigForm.asyncBefore" } }), t(c, { attrs: { label: "异步后" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.asyncAfter, callback: function(s) {
302
310
  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) {
311
+ }, expression: "taskConfigForm.asyncAfter" } }), e.taskConfigForm.asyncAfter || e.taskConfigForm.asyncBefore ? t(c, { attrs: { label: "排除" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.exclusive, callback: function(s) {
304
312
  e.$set(e.taskConfigForm, "exclusive", s);
305
313
  }, 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
- $,
314
+ }, O = [], D = /* @__PURE__ */ l(
315
+ R,
316
+ j,
317
+ O,
310
318
  !1,
311
319
  null,
312
320
  null
313
321
  );
314
- const M = y.exports;
322
+ const N = D.exports;
315
323
  export {
316
- M as default
324
+ N as default
317
325
  };
@@ -0,0 +1,372 @@
1
+ import K from "element-ui/lib/col";
2
+ import $ from "element-ui/lib/form-item";
3
+ import z from "element-ui/lib/tooltip";
4
+ import { h as n } from "vue";
5
+ import { e as A, h as I } from "./index.Cn7aq-Et.mjs";
6
+ import { hasOwn as F, isDef as T } from "@web-utils/core";
7
+ import { n as G } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
8
+ const D = ["span"], O = A(K), J = O.filter((e) => !D.includes(e)), Q = ["label", "prop", "rules", "labelWidth", "required"], H = A($), U = H.filter((e) => !Q.includes(e)), X = [
9
+ "wrapCol",
10
+ "wrapFormItem",
11
+ "unwrap",
12
+ "prefixConfig",
13
+ "block",
14
+ "prefixPick",
15
+ "picker",
16
+ "half",
17
+ "tips",
18
+ "hideLabel",
19
+ "fixedSpan",
20
+ ...O,
21
+ ...H
22
+ ], q = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], Y = ["$emit", "validate", "clearValidate"], Z = {
23
+ name: "FormInput",
24
+ inject: {
25
+ elForm: {
26
+ default: {}
27
+ },
28
+ formItemGroup: {
29
+ default: {}
30
+ },
31
+ formHolder: {
32
+ default: {}
33
+ }
34
+ },
35
+ provide() {
36
+ return {
37
+ elForm: this.proxyForm,
38
+ formItemGroup: this
39
+ };
40
+ },
41
+ props: {
42
+ /**
43
+ * 是否作为内嵌使用
44
+ */
45
+ embed: Boolean,
46
+ /**
47
+ * 是否禁用
48
+ */
49
+ disabled: Boolean,
50
+ /**
51
+ * 是否固定栏数
52
+ */
53
+ fixedSpan: Number,
54
+ /**
55
+ * 是否被列组件包裹
56
+ */
57
+ wrapCol: {
58
+ type: Boolean,
59
+ default: !0
60
+ },
61
+ /**
62
+ * 是否被表单项组件包裹
63
+ */
64
+ wrapFormItem: {
65
+ type: Boolean,
66
+ default: !0
67
+ },
68
+ /**
69
+ * 是否不用列组件包裹
70
+ */
71
+ unwrap: Boolean,
72
+ /**
73
+ * 是否占一半宽度
74
+ */
75
+ half: Boolean,
76
+ /**
77
+ * placeholder 添加"配置"前缀
78
+ */
79
+ prefixConfig: Boolean,
80
+ /**
81
+ * placeholder 添加"添加"前缀
82
+ */
83
+ prefixAdd: Boolean,
84
+ /**
85
+ * placeholder 添加"选择"前缀
86
+ */
87
+ prefixPick: Boolean,
88
+ /**
89
+ * 是否占满一行
90
+ */
91
+ block: Boolean,
92
+ /**
93
+ * 表单项组件样式
94
+ */
95
+ formItemClass: String,
96
+ /**
97
+ * 提示信息
98
+ */
99
+ tips: String,
100
+ /**
101
+ * 校验规则触发方式
102
+ */
103
+ trigger: {
104
+ type: String,
105
+ default: "blur"
106
+ },
107
+ /**
108
+ * 是否隐藏 label
109
+ */
110
+ hideLabel: Boolean,
111
+ /**
112
+ * label 占列数
113
+ */
114
+ labelColspan: [Number, String],
115
+ /**
116
+ * input 占列数
117
+ */
118
+ inputColspan: [Number, String],
119
+ /**
120
+ * label 占行数
121
+ */
122
+ labelRowspan: [Number, String],
123
+ /**
124
+ * input 占行数
125
+ */
126
+ inputRowspan: [Number, String],
127
+ // el-form-item
128
+ prop: String,
129
+ label: String,
130
+ labelWidth: String,
131
+ required: Boolean,
132
+ rules: [Object, Array],
133
+ error: String,
134
+ showMessage: {
135
+ type: Boolean,
136
+ default: !0
137
+ },
138
+ inlineMessage: {
139
+ type: [String, Boolean],
140
+ default: ""
141
+ },
142
+ size: String,
143
+ validateStatus: String,
144
+ for: String,
145
+ // el-col
146
+ span: {
147
+ type: Number,
148
+ default: 12
149
+ },
150
+ offset: Number,
151
+ push: Number,
152
+ pull: Number,
153
+ xs: [Number, Object],
154
+ sm: [Number, Object],
155
+ md: [Number, Object],
156
+ lg: [Number, Object],
157
+ xl: [Number, Object],
158
+ tag: String
159
+ },
160
+ data() {
161
+ const e = {};
162
+ return q.forEach((r) => {
163
+ e[r] = null;
164
+ }), {
165
+ proxyForm: e
166
+ };
167
+ },
168
+ computed: {
169
+ prefix() {
170
+ return this.prefixConfig ? "请配置" : this.prefixPick || this.picker ? "请选择" : this.prefixAdd ? "请添加" : "请输入";
171
+ },
172
+ message() {
173
+ var e;
174
+ return `${this.prefix}${((e = this.label) == null ? void 0 : e.replace(":", "")) || ""}`;
175
+ },
176
+ computeRules() {
177
+ var l;
178
+ const e = [...this.rules || []], r = e.find((t) => t.required);
179
+ if (this.required || r || (l = this.formHolder.requiredFields) != null && l.includes(this.prop)) {
180
+ const t = e.find((m) => m.required);
181
+ t ? t.ref ? t.label = t.label || this.label : t.message = t.message || this.message : e.unshift(this.getRequireRule());
182
+ }
183
+ return e.concat(this.getRules());
184
+ },
185
+ computeSpan() {
186
+ return this.block ? 24 : this.span;
187
+ },
188
+ formItemProps() {
189
+ return I({ ...this.$props, ...this.$attrs }, X);
190
+ },
191
+ elFormItemProps() {
192
+ return I({ ...this.$props, ...this.$attrs }, U);
193
+ },
194
+ elColProps() {
195
+ return I({ ...this.$props, ...this.$attrs }, J);
196
+ },
197
+ formCfg() {
198
+ const e = {
199
+ disabled: this.disabled
200
+ };
201
+ return q.forEach((r) => {
202
+ e[r] = this.elForm[r];
203
+ }), e;
204
+ }
205
+ },
206
+ watch: {
207
+ computeRules() {
208
+ var e, r;
209
+ (r = (e = this.elForm) == null ? void 0 : e.clearValidate) == null || r.call(e, this.prop);
210
+ },
211
+ formCfg: {
212
+ immediate: !0,
213
+ handler() {
214
+ var e;
215
+ this.proxyForm.disabled = (e = this.formHolder.enabledFields) != null && e.includes(this.prop) ? !1 : (this.elForm || {}).disabled, q.forEach((r) => {
216
+ var l;
217
+ r !== "disabled" && (Y.includes(r) ? this.proxyForm[r] = (l = this.elForm[r]) == null ? void 0 : l.bind(this.elForm) : this.proxyForm[r] = this.elForm[r]);
218
+ });
219
+ }
220
+ }
221
+ },
222
+ methods: {
223
+ getRules() {
224
+ return [];
225
+ },
226
+ getRequireRule() {
227
+ return {
228
+ required: !0,
229
+ trigger: this.trigger,
230
+ message: this.message
231
+ };
232
+ }
233
+ }
234
+ }, ee = {
235
+ name: "FormItem",
236
+ mixins: [Z],
237
+ inject: {
238
+ formHolder: {
239
+ default: {}
240
+ },
241
+ formItemConfig: {
242
+ default: null
243
+ }
244
+ },
245
+ computed: {
246
+ gutter() {
247
+ let e = this.$parent;
248
+ for (; e && e.$options.componentName !== "ElRow"; )
249
+ e = e.$parent;
250
+ return (e == null ? void 0 : e.gutter) ?? 0;
251
+ }
252
+ },
253
+ methods: {
254
+ renderFormItem() {
255
+ var R, v, N, P, S, k, j;
256
+ const {
257
+ hideLabel: e,
258
+ label: r,
259
+ labelWidth: l,
260
+ prop: t,
261
+ rules: m,
262
+ $scopedSlots: i,
263
+ elFormItemProps: o,
264
+ elForm: u,
265
+ formHolder: s,
266
+ formItemClass: c,
267
+ required: f,
268
+ block: h,
269
+ half: b,
270
+ wrapCol: M,
271
+ wrapFormItem: W,
272
+ disabled: V,
273
+ formItemConfig: p,
274
+ getRequireRule: E
275
+ } = this;
276
+ let a = m, d = f, C = f, _ = h, B = M;
277
+ p && (F(p, "block") && (_ = p.block), F(p, "wrapCol") && (B = p.wrapCol));
278
+ const L = s.tableForm ? "" : _ && b && B ? `calc( 50% - ${this.gutter / 2}px)` : "";
279
+ (R = s.requiredFields) != null && R.includes(t) && (d = !0), (V || u != null && u.disabled) && !((v = s.requiredFields) != null && v.includes(t)) ? (a = [], !s.required && !((N = s.requiredFields) != null && N.includes(t)) && (C = !1)) : (!s.required && !((P = s.requiredFields) != null && P.includes(t)) && (d = !1), d && !(a != null && a.length) && t ? a = [E()] : d || (C = !1, a && (a = a.filter((g) => !g.required))));
280
+ const w = (S = i.tips) == null ? void 0 : S.call(i), x = w || this.tips, y = x ? n(z, {
281
+ attrs: {
282
+ effect: "light",
283
+ content: this.tips
284
+ }
285
+ }, [w ? n("div", {
286
+ slot: "content"
287
+ }, [w]) : null, n("i", {
288
+ class: "el-icon-info form-item-input-info"
289
+ })]) : null;
290
+ return W ? n($, {
291
+ style: {
292
+ width: L
293
+ },
294
+ key: `${t}-${d}`,
295
+ class: ["form-item", c, {
296
+ required: C,
297
+ "form-item-hide-label": e
298
+ }],
299
+ scopedSlots: {
300
+ ...i,
301
+ default: x ? () => {
302
+ var g;
303
+ return n("div", {
304
+ class: "form-item-input-wrapper"
305
+ }, [(g = i.default) == null ? void 0 : g.call(i), y]);
306
+ } : i.default
307
+ },
308
+ props: {
309
+ ...o
310
+ },
311
+ attrs: {
312
+ label: r,
313
+ "label-width": e ? "0" : l,
314
+ prop: t,
315
+ rules: a
316
+ },
317
+ ref: "formItem"
318
+ }) : x ? n("div", {
319
+ class: "form-item-input-wrapper"
320
+ }, [(k = i.default) == null ? void 0 : k.call(i), y]) : n("div", [(j = i.default) == null ? void 0 : j.call(i)]);
321
+ },
322
+ async clearValidate() {
323
+ var e, r;
324
+ await this.$nextTick(), (r = (e = this.$refs.formItem).clearValidate) == null || r.call(e);
325
+ },
326
+ async validate() {
327
+ var e, r;
328
+ await this.$nextTick(), (r = (e = this.$refs.formItem).validate) == null || r.call(e);
329
+ }
330
+ },
331
+ render() {
332
+ var h, b;
333
+ const {
334
+ computeSpan: e,
335
+ wrapCol: r,
336
+ fixedSpan: l,
337
+ formItemConfig: t,
338
+ renderFormItem: m,
339
+ elColProps: i,
340
+ $scopedSlots: o,
341
+ unwrap: u,
342
+ formHolder: s
343
+ } = this;
344
+ let c = !s.tableForm && r, f = !1;
345
+ return t && (F(t, "wrapCol") && (c = t.wrapCol), F(t, "reactive") && (f = t.reactive)), u ? n("div", [(h = o.default) == null ? void 0 : h.call(o)]) : c ? n(K, {
346
+ props: {
347
+ ...i,
348
+ span: l || e,
349
+ ...!T(l) && f ? {
350
+ xs: 24,
351
+ sm: 12,
352
+ md: 12,
353
+ lg: 8,
354
+ xl: 6
355
+ } : {}
356
+ }
357
+ }, [m(), (b = o == null ? void 0 : o.below) == null ? void 0 : b.call(o)]) : m();
358
+ }
359
+ }, re = null, te = null;
360
+ var ie = /* @__PURE__ */ G(
361
+ ee,
362
+ re,
363
+ te,
364
+ !1,
365
+ null,
366
+ null
367
+ );
368
+ const fe = ie.exports;
369
+ export {
370
+ fe as F,
371
+ Z as f
372
+ };