@web-utils/component 4.0.15 → 4.0.16

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 (169) hide show
  1. package/address-input/index.mjs +13 -15
  2. package/card/index.mjs +18 -20
  3. package/carousel/index.mjs +10 -12
  4. package/chat/index.mjs +45 -56
  5. package/chunk-file-uploader/index.mjs +36 -378
  6. package/chunk-file-uploader/style.css +1 -1
  7. package/chunks/ElementBaseInfo.ZADwixb5.mjs +125 -0
  8. package/chunks/ElementForm.CQ3PN5qj.mjs +223 -0
  9. package/chunks/ElementListeners.De_PRuIm.mjs +215 -0
  10. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +181 -0
  11. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +60 -0
  12. package/chunks/ElementProperties.CosfDrlW.mjs +112 -0
  13. package/chunks/{ElementTaskConfig.AvBOzAni.mjs → ElementTaskConfig.Bko0kgTp.mjs} +55 -63
  14. package/chunks/FlowCondition.Y6qEYi1T.mjs +102 -0
  15. package/chunks/FormTemp.BQxO5IQq.mjs +123 -0
  16. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +85 -0
  17. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +169 -0
  18. package/chunks/{confirmable-mixin.BFZb6pcK.mjs → confirmable-mixin.B2TtLAdk.mjs} +1 -1
  19. package/chunks/core.0Exl13Mz.mjs +54 -0
  20. package/chunks/{dataformat.DJoNBlmI.mjs → dataformat.CpqOeGBl.mjs} +6 -6
  21. package/chunks/{dic.BinnDitI.mjs → dic.Dkl-leRW.mjs} +9 -9
  22. package/chunks/dictionary.DGt59Ir7.mjs +68 -0
  23. package/chunks/{event.DSlcqYHL.mjs → event.9aDS6jcw.mjs} +2 -2
  24. package/chunks/{form-input.BtS_J5a2.mjs → form-input.CvFdwlEV.mjs} +2 -2
  25. package/chunks/form-item.LWjePsPa.mjs +233 -0
  26. package/chunks/{index.CIfe3UB3.mjs → index.9OxHjTIE.mjs} +2 -2
  27. package/chunks/{index.Cn7aq-Et.mjs → index.B2TRddqf.mjs} +8 -8
  28. package/chunks/{init.xOlFpTyZ.mjs → init.DAsXSoLW.mjs} +2 -2
  29. package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
  30. package/chunks/{util.DI42t5GU.mjs → util.DqFv_pWg.mjs} +22 -22
  31. package/chunks/utilSelf.Csq1766E.mjs +48 -0
  32. package/chunks/utils.DRcxC1Fb.mjs +60 -0
  33. package/color-picker/index.mjs +22 -101
  34. package/confirm-button/index.mjs +1 -1
  35. package/confirmable/index.mjs +1 -1
  36. package/data-box/index.mjs +12 -15
  37. package/data-card/index.mjs +10 -12
  38. package/data-card-text/index.mjs +10 -12
  39. package/data-display/index.mjs +15 -17
  40. package/data-icons/index.mjs +13 -16
  41. package/data-imgtext/index.mjs +15 -18
  42. package/data-operatext/index.mjs +14 -16
  43. package/data-panel/index.mjs +13 -16
  44. package/data-pay/index.mjs +16 -20
  45. package/data-price/index.mjs +14 -16
  46. package/data-progress/index.mjs +13 -17
  47. package/data-rotate/index.mjs +12 -15
  48. package/data-table-picker/index.mjs +15 -18
  49. package/data-tabs/index.mjs +12 -15
  50. package/dialog-form/index.mjs +16 -18
  51. package/dynamic-table/index.mjs +25 -30
  52. package/editable-progress/index.mjs +9 -11
  53. package/editable-tree/index.mjs +52 -56
  54. package/egd-collapse-item/index.mjs +9 -9
  55. package/element-dialog/index.mjs +22 -23
  56. package/element-listeners/style.css +1 -0
  57. package/element-multi-instance/style.css +1 -0
  58. package/flex-column/index.mjs +1 -1
  59. package/flex-item/index.mjs +1 -1
  60. package/flex-row/index.mjs +1 -1
  61. package/flow/index.mjs +10 -11
  62. package/flow-designer/index.mjs +699 -1973
  63. package/flow-designer/style.css +1 -1
  64. package/flow-node/index.mjs +1 -1
  65. package/flow-viewer/index.mjs +9 -9
  66. package/form-block/index.mjs +32 -34
  67. package/form-cascader/index.mjs +23 -24
  68. package/form-checkbox/index.mjs +16 -17
  69. package/form-checkbox-group/index.mjs +20 -23
  70. package/form-date-picker/index.mjs +18 -20
  71. package/form-holder/index.mjs +13 -14
  72. package/form-input/index.mjs +14 -15
  73. package/form-input-cron-expression/index.mjs +19 -22
  74. package/form-input-email/index.mjs +15 -16
  75. package/form-input-id-card/index.mjs +12 -13
  76. package/form-input-number/index.mjs +16 -17
  77. package/form-input-phone-number/index.mjs +21 -22
  78. package/form-input-tag/index.mjs +14 -15
  79. package/form-input-time/index.mjs +14 -15
  80. package/form-item/index.mjs +140 -3
  81. package/form-item-group/index.mjs +28 -31
  82. package/form-radio-group/index.mjs +27 -28
  83. package/form-select/index.mjs +21 -23
  84. package/form-switch/index.mjs +16 -17
  85. package/form-table/index.mjs +16 -17
  86. package/form-table-plus/index.mjs +21 -22
  87. package/form-textarea/index.mjs +15 -16
  88. package/form-tree-select/index.mjs +14 -15
  89. package/form-tree-select-multiple/index.mjs +14 -15
  90. package/form-view/index.mjs +35 -39
  91. package/fy-array/index.mjs +33 -37
  92. package/fy-cascader/index.mjs +16 -17
  93. package/fy-checkbox/index.mjs +11 -13
  94. package/fy-code/index.mjs +10 -10
  95. package/fy-curd/index.mjs +1128 -1152
  96. package/fy-date/index.mjs +10 -11
  97. package/fy-draggable/index.mjs +9 -10
  98. package/fy-dynamic/index.mjs +22 -25
  99. package/fy-empty/index.mjs +1 -1
  100. package/fy-form/index.mjs +638 -15
  101. package/fy-form-design/index.mjs +1307 -1345
  102. package/fy-from/crud/zh.d.ts +6 -6
  103. package/fy-input/index.mjs +12 -14
  104. package/fy-input-color/index.mjs +13 -15
  105. package/fy-input-icon/index.mjs +20 -23
  106. package/fy-input-map/index.mjs +28 -31
  107. package/fy-input-number/index.mjs +9 -10
  108. package/fy-input-table/index.mjs +18 -22
  109. package/fy-input-tree/index.mjs +33 -37
  110. package/fy-progress/index.mjs +9 -10
  111. package/fy-radio/index.mjs +15 -16
  112. package/fy-rate/index.mjs +10 -11
  113. package/fy-select/index.mjs +25 -29
  114. package/fy-slider/index.mjs +11 -12
  115. package/fy-switch/index.mjs +9 -10
  116. package/fy-tabs/index.mjs +15 -17
  117. package/fy-time/index.mjs +1 -1
  118. package/fy-title/index.mjs +1 -1
  119. package/fy-tree/index.mjs +18 -24
  120. package/fy-u-editor/index.mjs +1 -1
  121. package/fy-upload/index.mjs +74 -76
  122. package/guide-steps/index.mjs +11 -13
  123. package/iframe-window/index.mjs +9 -10
  124. package/image-cropper/index.mjs +28 -30
  125. package/image-preview/index.mjs +12 -14
  126. package/index.mjs +72 -72
  127. package/input-number/index.mjs +13 -14
  128. package/input-number-range/index.mjs +11 -12
  129. package/license/index.mjs +1 -1
  130. package/login/index.mjs +21 -26
  131. package/nav-bar/index.mjs +9 -10
  132. package/notice/index.mjs +9 -10
  133. package/package.json +1 -1
  134. package/page-index/index.mjs +12 -13
  135. package/page-index-top/index.mjs +23 -28
  136. package/page-skeleton/index.mjs +14 -14
  137. package/page-skeleton-new/index.mjs +8 -9
  138. package/pageable-table/index.mjs +172 -182
  139. package/pageable-view/index.mjs +15 -16
  140. package/picker-table-view/index.mjs +49 -58
  141. package/present-view/index.mjs +35 -39
  142. package/record-video/index.mjs +1 -1
  143. package/resize-observer/index.mjs +1 -1
  144. package/search/index.mjs +20 -22
  145. package/search-popover/index.mjs +1 -1
  146. package/sign/index.mjs +1 -1
  147. package/skeleton-panel/index.mjs +9 -10
  148. package/split-pane/index.mjs +36 -37
  149. package/static-pageable-table/index.mjs +11 -13
  150. package/sub-table/index.mjs +36 -49
  151. package/sub-table-plus/index.mjs +229 -18
  152. package/swiper/index.mjs +11 -12
  153. package/table-column/index.mjs +223 -3
  154. package/table-view/index.mjs +52 -60
  155. package/tabs-view/index.mjs +17 -19
  156. package/tag-render/index.mjs +16 -18
  157. package/text-ellipsis/index.mjs +9 -10
  158. package/toolbar/index.mjs +13 -14
  159. package/toolbar-button/index.mjs +13 -14
  160. package/verify/index.mjs +1 -1
  161. package/vue-cron/index.mjs +259 -267
  162. package/watermark/index.mjs +1 -1
  163. package/web-types.json +1 -1
  164. package/x-input-tag/index.mjs +21 -24
  165. package/chunks/FormItem.Bhsy_O2B.mjs +0 -372
  166. package/chunks/FyForm.DriwCJ7b.mjs +0 -765
  167. package/chunks/SignalAndMessage.BpjOoKhK.mjs +0 -92
  168. package/chunks/SubTablePlus.BH0IIv3X.mjs +0 -270
  169. package/chunks/TableColumn.BzivvXMF.mjs +0 -337
@@ -1,19 +1,15 @@
1
- import r from "element-ui/lib/button";
2
- import y from "element-ui/lib/input";
3
- import x from "element-ui/lib/popconfirm";
4
- import w from "element-ui/lib/tree";
5
- import { findTreeChildren as N, delay as C, isUndefined as d, isNotEmpty as g, fastClone as v, isPlainObject as l, isFunction as u, computePosition as $, isVerticalScrollbarVisible as b, scrollbarWidth as _, hasOwn as c } from "@web-utils/core";
6
- import { removeResizeListener as p, addResizeListener as f } from "@web-utils/integrations/resize";
7
- import { cloneDeep as m } from "@web-utils/integrations/lodash";
8
- import { c as k, d as B } from "../chunks/index.Cn7aq-Et.mjs";
9
- import T from "vue";
10
- import { n as K } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
11
- function h(t, e) {
1
+ import { findTreeChildren as m, delay as y, isUndefined as l, isNotEmpty as x, fastClone as w, isPlainObject as r, isFunction as h, computePosition as N, isVerticalScrollbarVisible as C, scrollbarWidth as g, hasOwn as d } from "@web-utils/core";
2
+ import { removeResizeListener as u, addResizeListener as p } from "@web-utils/integrations/resize";
3
+ import { cloneDeep as f } from "@web-utils/integrations/lodash";
4
+ import { a as v, b as $ } from "../chunks/index.B2TRddqf.mjs";
5
+ import b from "vue";
6
+ import { n as k } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
7
+ function c(t, e) {
12
8
  for (const i in e)
13
- T.set(t, i, e[i]);
9
+ b.set(t, i, e[i]);
14
10
  return t;
15
11
  }
16
- const M = {
12
+ const B = {
17
13
  name: "EditableTree",
18
14
  props: {
19
15
  label: {
@@ -72,7 +68,7 @@ const M = {
72
68
  default: () => ({
73
69
  children: "children",
74
70
  label: "name",
75
- isLeaf: (t) => c(t, "hasChildren") ? !t.hasChildren : c(t, "hasChild") ? !t.hasChild : c(t, "children") && t.children ? t.children.length === 0 : !0
71
+ isLeaf: (t) => d(t, "hasChildren") ? !t.hasChildren : d(t, "hasChild") ? !t.hasChild : d(t, "children") && t.children ? t.children.length === 0 : !0
76
72
  })
77
73
  },
78
74
  menuLabel: {
@@ -146,14 +142,14 @@ const M = {
146
142
  this.tryFetch();
147
143
  },
148
144
  mounted() {
149
- f(this.$refs.tree.$el, this.resize), f(this.$refs.treeWrapper, this.resize);
145
+ p(this.$refs.tree.$el, this.resize), p(this.$refs.treeWrapper, this.resize);
150
146
  },
151
147
  beforeDestroy() {
152
- p(this.$refs.tree.$el, this.resize), p(this.$refs.treeWrapper, this.resize);
148
+ u(this.$refs.tree.$el, this.resize), u(this.$refs.treeWrapper, this.resize);
153
149
  },
154
150
  methods: {
155
- filterTreeProperties: B,
156
- filterTreeEvents: k,
151
+ filterTreeProperties: $,
152
+ filterTreeEvents: v,
157
153
  addExpandKey(t) {
158
154
  this.reserveExpandKey && this.expandedKeys.push(t[this.nodeKey]);
159
155
  },
@@ -161,10 +157,10 @@ const M = {
161
157
  this.reserveExpandKey && (this.expandedKeys = this.expandedKeys.filter((e) => e !== t[this.nodeKey]));
162
158
  },
163
159
  resize() {
164
- b(this.$refs.treeWrapper) ? this.right = 4 + _ : this.right = 4;
160
+ C(this.$refs.treeWrapper) ? this.right = 4 + g : this.right = 4;
165
161
  },
166
162
  async showContextMenu(t, e, i) {
167
- e.contextmenu === !1 || e.id === -1 || e.id === 0 || e.edit === !0 || this.contextMenu && (this.curNode = i, this.curData = e, this.showMenu = !0, this.$refs.tree.setCurrentKey(e.id), await this.$nextTick(), this.position = $(t, this.$refs.contextMenu), window.addEventListener("click", this.hideContextMenu));
163
+ e.contextmenu === !1 || e.id === -1 || e.id === 0 || e.edit === !0 || this.contextMenu && (this.curNode = i, this.curData = e, this.showMenu = !0, this.$refs.tree.setCurrentKey(e.id), await this.$nextTick(), this.position = N(t, this.$refs.contextMenu), window.addEventListener("click", this.hideContextMenu));
168
164
  },
169
165
  hideContextMenu() {
170
166
  this.showMenu = !1, window.removeEventListener("click", this.hideContextMenu);
@@ -173,12 +169,12 @@ const M = {
173
169
  var t;
174
170
  if (this.lazy === !1 && this.fetchApi) {
175
171
  const e = await this.fetchApi(((t = this.rootNode) == null ? void 0 : t.id) ?? -1, {});
176
- if (l(e.data) && (e.data = [e.data]), e.data = e.data || [], this.empty = e.data.length === 0, l(this.customRootNode)) {
177
- const i = m(this.customRootNode);
172
+ if (r(e.data) && (e.data = [e.data]), e.data = e.data || [], this.empty = e.data.length === 0, r(this.customRootNode)) {
173
+ const i = f(this.customRootNode);
178
174
  i[this.treeProps.children || "children"] = e.data, this.treeData = [i];
179
- } else if (u(this.customRootNode)) {
175
+ } else if (h(this.customRootNode)) {
180
176
  const i = this.customRootNode(e.data);
181
- i[this.treeProps.children || "children"] = e.data, this.treeData = l(i) ? [i] : i;
177
+ i[this.treeProps.children || "children"] = e.data, this.treeData = r(i) ? [i] : i;
182
178
  } else
183
179
  this.treeData = e.data;
184
180
  }
@@ -187,12 +183,12 @@ const M = {
187
183
  var i, s, n;
188
184
  if (t.level === 0) {
189
185
  const o = await this.fetchApi(((i = this.rootNode) == null ? void 0 : i.id) ?? -1, t);
190
- if (this.empty = o.data.length === 0, l(this.customRootNode)) {
191
- const a = m(this.customRootNode);
186
+ if (this.empty = o.data.length === 0, r(this.customRootNode)) {
187
+ const a = f(this.customRootNode);
192
188
  a[this.treeProps.children || "children"] = o.data, e([a]);
193
- } else if (u(this.customRootNode)) {
189
+ } else if (h(this.customRootNode)) {
194
190
  const a = this.customRootNode(o.data);
195
- a[this.treeProps.children || "children"] = o.data, this.treeData = l(a) ? [a] : a;
191
+ a[this.treeProps.children || "children"] = o.data, this.treeData = r(a) ? [a] : a;
196
192
  } else
197
193
  e(o.data);
198
194
  await this.$nextTick(), this.$emit("root-node-loaded", o.data), this.defaultExpandedKeys ? this.expandedKeys = [(s = o == null ? void 0 : o.data[0]) == null ? void 0 : s.id, ...this.defaultExpandedKeys] : this.expandFirstNode && (this.expandedKeys = [(n = o == null ? void 0 : o.data[0]) == null ? void 0 : n.id]);
@@ -213,10 +209,10 @@ const M = {
213
209
  this.newChild && this.newChild.id === -1 && (console.log(this.newChild), this.$refs.tree.remove(this.newChild), this.$emit("remove-new-node"));
214
210
  },
215
211
  cancelEdit() {
216
- this.editData && (d(this.editData.edit) ? this.$set(this.editData, "edit", !0) : this.editData.edit = !1);
212
+ this.editData && (l(this.editData.edit) ? this.$set(this.editData, "edit", !0) : this.editData.edit = !1);
217
213
  },
218
214
  async editNode(t, e) {
219
- !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.editData = e, this.text = e[this.treeProps.label], d(e.edit) ? this.$set(e, "edit", !0) : e.edit = !0, await this.$nextTick(), this.$refs.labelTxt.focus()) : await this.$prompt(`请输入新的${this.label}名:`, {
215
+ !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.editData = e, this.text = e[this.treeProps.label], l(e.edit) ? this.$set(e, "edit", !0) : e.edit = !0, await this.$nextTick(), this.$refs.labelTxt.focus()) : await this.$prompt(`请输入新的${this.label}名:`, {
220
216
  ...this.defaultOptions,
221
217
  inputValue: e[this.treeProps.label],
222
218
  beforeClose: async (i, s, n) => {
@@ -240,7 +236,7 @@ const M = {
240
236
  try {
241
237
  this.createNewChild(-1), e.confirmButtonLoading = !0, e.confirmButtonText = "处理中...";
242
238
  const s = await this.saveApi(this.newNodeBuilder(e.inputValue, { id: -1 }));
243
- this.newChild[this.treeProps.label] = e.inputValue, this.newChild.edit = !1, h(this.newChild, s.data), this.$refs.tree.root.insertChild({ data: this.newChild }, void 0, !0), await this.locateView(), i();
239
+ this.newChild[this.treeProps.label] = e.inputValue, this.newChild.edit = !1, c(this.newChild, s.data), this.$refs.tree.root.insertChild({ data: this.newChild }, void 0, !0), await this.locateView(), i();
244
240
  } catch {
245
241
  e.confirmButtonText = "确定";
246
242
  }
@@ -261,7 +257,7 @@ const M = {
261
257
  try {
262
258
  this.createNewChild(t.data.id), s.confirmButtonLoading = !0, s.confirmButtonText = "处理中...";
263
259
  const o = await this.saveApi(this.newNodeBuilder(s.inputValue, t.data));
264
- this.newChild[this.treeProps.label] = s.inputValue, this.newChild.edit = !1, h(this.newChild, o.data), this.$refs.tree.append(this.newChild, t), await this.locateView(), n();
260
+ this.newChild[this.treeProps.label] = s.inputValue, this.newChild.edit = !1, c(this.newChild, o.data), this.$refs.tree.append(this.newChild, t), await this.locateView(), n();
265
261
  } catch {
266
262
  s.confirmButtonText = "确定";
267
263
  }
@@ -359,15 +355,15 @@ const M = {
359
355
  }
360
356
  },
361
357
  async onConfirm(t, e) {
362
- if (e[this.treeProps.label] === this.text || !g(this.text)) {
358
+ if (e[this.treeProps.label] === this.text || !x(this.text)) {
363
359
  this.clear();
364
360
  return;
365
361
  }
366
- d(e.loading) ? this.$set(e, "loading", !0) : e.loading = !0;
362
+ l(e.loading) ? this.$set(e, "loading", !0) : e.loading = !0;
367
363
  try {
368
364
  if (this.loading = !0, e.id === -1) {
369
- const i = await this.saveApi(this.newNodeBuilder(this.text, t.parent.data || { id: -1 })), s = v(e);
370
- h(e, { ...i.data, isTempNode: !1 }), this.$emit("node-added", e, s, t), this.registerNode(t);
365
+ const i = await this.saveApi(this.newNodeBuilder(this.text, t.parent.data || { id: -1 })), s = w(e);
366
+ c(e, { ...i.data, isTempNode: !1 }), this.$emit("node-added", e, s, t), this.registerNode(t);
371
367
  } else
372
368
  await this.updateApi({ ...e, [this.treeProps.label]: this.text });
373
369
  e[this.treeProps.label] = this.text, e.edit = !1, this.$emit("node-updated", e, t), this.text = "";
@@ -379,7 +375,7 @@ const M = {
379
375
  e.id === -1 ? this.$refs.tree.remove(t) : e.edit = !1, this.text = "";
380
376
  },
381
377
  nodeClick(t, e, i) {
382
- this.hideContextMenu(), (d(t.loading) || !t.loading) && (this.curNode = e, this.curData = t, this.$emit("on-node-click", t, e, i));
378
+ this.hideContextMenu(), (l(t.loading) || !t.loading) && (this.curNode = e, this.curData = t, this.$emit("on-node-click", t, e, i));
383
379
  },
384
380
  getCurrentNode() {
385
381
  return this.$refs.tree.getCurrentNode();
@@ -391,7 +387,7 @@ const M = {
391
387
  },
392
388
  async scrollIntoView(t) {
393
389
  var e, i;
394
- await this.$nextTick(), t || await C(300), (i = (e = this.$refs) == null ? void 0 : e.labelTxt) == null || i.focus();
390
+ await this.$nextTick(), t || await y(300), (i = (e = this.$refs) == null ? void 0 : e.labelTxt) == null || i.focus();
395
391
  },
396
392
  inputKeyup(t, e, i) {
397
393
  t.keyCode === 13 && this.onConfirm(e, i), t.keyCode === 27 && this.clear();
@@ -418,7 +414,7 @@ const M = {
418
414
  return this.$refs.tree.root;
419
415
  },
420
416
  findTreeNode(t) {
421
- return N(this.$refs.tree.root.childNodes, (e) => e.data === t || e.data.id === t, "childNodes");
417
+ return m(this.$refs.tree.root.childNodes, (e) => e.data === t || e.data.id === t, "childNodes");
422
418
  },
423
419
  registerNode(t) {
424
420
  t.store.registerNode(t), delete t.store.nodesMap[-1];
@@ -428,35 +424,35 @@ const M = {
428
424
  }
429
425
  }
430
426
  };
431
- var P = function() {
427
+ var _ = function() {
432
428
  var e = this, i = e._self._c;
433
- return i("div", { staticClass: "editable-tree" }, [!e.readonly && e.addRootNodeButtonStyle === "top-right" ? i(r, { staticStyle: { position: "absolute", top: "4px", "z-index": "1" }, style: { right: `${e.right}px` }, attrs: { type: "primary", size: "mini", icon: "el-icon-plus", circle: "", plain: "" }, on: { click: function(s) {
429
+ return i("div", { staticClass: "editable-tree" }, [!e.readonly && e.addRootNodeButtonStyle === "top-right" ? i("ElButton", { staticStyle: { position: "absolute", top: "4px", "z-index": "1" }, style: { right: `${e.right}px` }, attrs: { type: "primary", size: "mini", icon: "el-icon-plus", circle: "", plain: "" }, on: { click: function(s) {
434
430
  return s.stopPropagation(), e.$emit("add-root-node");
435
- } } }) : e._e(), i("div", { ref: "treeWrapper", staticClass: "et-tree-wrapper" }, [!e.readonly && e.addRootNodeButtonStyle === "top" ? i("div", { staticStyle: { "padding-left": "24px" } }, [i(r, { attrs: { disabled: e.loading, size: "mini", type: "text" }, on: { click: e.appendRootNode } }, [i("i", { staticClass: "el-icon-lx-add" }), e._v(" " + e._s(e.addRootNodeLabel ? e.addRootNodeLabel : `添加${e.label}`) + " ")])], 1) : e._e(), i(w, e._g(e._b({ key: e.treeKey, ref: "tree", staticClass: "flex-item", attrs: { "default-expanded-keys": e.expandedKeys, "expand-on-click-node": !1, "highlight-current": "", load: e.loadNode, data: e.innerTreeData, props: e.treeProps, lazy: e.lazy, "node-key": e.nodeKey }, on: { "node-click": e.nodeClick, "node-contextmenu": e.showContextMenu, "node-expand": e.addExpandKey, "node-collapse": e.removeExpandKey }, scopedSlots: e._u([{ key: "default", fn: function({ node: s, data: n }) {
431
+ } } }) : e._e(), i("div", { ref: "treeWrapper", staticClass: "et-tree-wrapper" }, [!e.readonly && e.addRootNodeButtonStyle === "top" ? i("div", { staticStyle: { "padding-left": "24px" } }, [i("ElButton", { attrs: { disabled: e.loading, size: "mini", type: "text" }, on: { click: e.appendRootNode } }, [i("i", { staticClass: "el-icon-lx-add" }), e._v(" " + e._s(e.addRootNodeLabel ? e.addRootNodeLabel : `添加${e.label}`) + " ")])], 1) : e._e(), i("ElTree", e._g(e._b({ key: e.treeKey, ref: "tree", staticClass: "flex-item", attrs: { "default-expanded-keys": e.expandedKeys, "expand-on-click-node": !1, "highlight-current": "", load: e.loadNode, data: e.innerTreeData, props: e.treeProps, lazy: e.lazy, "node-key": e.nodeKey }, on: { "node-click": e.nodeClick, "node-contextmenu": e.showContextMenu, "node-expand": e.addExpandKey, "node-collapse": e.removeExpandKey }, scopedSlots: e._u([{ key: "default", fn: function({ node: s, data: n }) {
436
432
  return [e._t("default", function() {
437
- return [n.edit ? [i("span", { staticClass: "custom-tree-node flex-row flex-item oh", attrs: { "data-id": n.id } }, [e.icon ? i("i", { staticClass: "node-icon shrink-0", class: n.loading ? "el-icon-loading" : "el-icon-edit-outline" }) : e._e(), i(y, { ref: "labelTxt", staticClass: "node-input flex-item", attrs: { size: "mini", placeholder: e.defaultOptions.inputPlaceholder }, on: { blur: (o) => e.inputBlur(o, s, n) }, nativeOn: { keyup: function(o) {
433
+ return [n.edit ? [i("span", { staticClass: "custom-tree-node flex-row flex-item oh", attrs: { "data-id": n.id } }, [e.icon ? i("i", { staticClass: "node-icon shrink-0", class: n.loading ? "el-icon-loading" : "el-icon-edit-outline" }) : e._e(), i("ElInput", { ref: "labelTxt", staticClass: "node-input flex-item", attrs: { size: "mini", placeholder: e.defaultOptions.inputPlaceholder }, on: { blur: (o) => e.inputBlur(o, s, n) }, nativeOn: { keyup: function(o) {
438
434
  return ((a) => e.inputKeyup(a, s, n)).apply(null, arguments);
439
435
  }, click: function(o) {
440
436
  o.stopPropagation();
441
437
  } }, model: { value: e.text, callback: function(o) {
442
438
  e.text = o;
443
- }, expression: "text" } }), e.confirmButton ? [i(r, { directives: [{ name: "show", rawName: "v-show", value: !n.loading, expression: "!data.loading" }], staticClass: "shrink-0", attrs: { size: "mini", type: "text" }, on: { click: function(o) {
439
+ }, expression: "text" } }), e.confirmButton ? [i("ElButton", { directives: [{ name: "show", rawName: "v-show", value: !n.loading, expression: "!data.loading" }], staticClass: "shrink-0", attrs: { size: "mini", type: "text" }, on: { click: function(o) {
444
440
  return o.stopPropagation(), e.onConfirm(s, n);
445
- } } }, [e._v("确定")]), i(r, { directives: [{ name: "show", rawName: "v-show", value: !n.loading, expression: "!data.loading" }], staticClass: "shrink-0", attrs: { size: "mini", type: "text" }, on: { click: function(o) {
441
+ } } }, [e._v("确定")]), i("ElButton", { directives: [{ name: "show", rawName: "v-show", value: !n.loading, expression: "!data.loading" }], staticClass: "shrink-0", attrs: { size: "mini", type: "text" }, on: { click: function(o) {
446
442
  return o.stopPropagation(), e.onCancel(s, n);
447
443
  } } }, [e._v("取消")])] : e._e()], 2)] : [i("span", { staticClass: "custom-tree-node", attrs: { "data-id": n.id } }, [i("span", { staticClass: "node-label flex-row flex-item oh ellipsis-1" }, [e.icon ? i("i", { staticClass: "node-icon", class: n.loading ? "el-icon-loading" : e.icon(n, s) }) : e._e(), i("span", { staticClass: "flex-item-relative", staticStyle: { height: "21px" } }, [i("span", { staticClass: "ellipsis-1 absolute-box et-tree-label", attrs: { title: s.label } }, [e._t("label", function() {
448
444
  return [e._v(e._s(s.label))];
449
- }, { data: n, node: s })], 2)]), e._t("label-suffix", null, { node: s, data: n })], 2), !e.contextMenu && !e.readonly ? i("span", { directives: [{ name: "show", rawName: "v-show", value: !n.loading && !e.loading, expression: "!data.loading && !loading" }], staticClass: "handle-actions" }, [i(r, { attrs: { size: "mini", type: "text" }, on: { click: function(o) {
445
+ }, { data: n, node: s })], 2)]), e._t("label-suffix", null, { node: s, data: n })], 2), !e.contextMenu && !e.readonly ? i("span", { directives: [{ name: "show", rawName: "v-show", value: !n.loading && !e.loading, expression: "!data.loading && !loading" }], staticClass: "handle-actions" }, [i("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(o) {
450
446
  return o.stopPropagation(), e.appendChildNode(s, n);
451
- } } }, [e._v("添加")]), i(r, { attrs: { size: "mini", type: "text" }, on: { click: function(o) {
447
+ } } }, [e._v("添加")]), i("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(o) {
452
448
  return o.stopPropagation(), e.editNode(s, n);
453
- } } }, [e._v("修改")]), i(x, { staticClass: "pop-confirm", attrs: { "icon-color": "red", title: "你确定要删除吗?" }, on: { confirm: function(o) {
449
+ } } }, [e._v("修改")]), i("ElPopconfirm", { staticClass: "pop-confirm", attrs: { "icon-color": "red", title: "你确定要删除吗?" }, on: { confirm: function(o) {
454
450
  return e.removeNode(s, n);
455
451
  } }, scopedSlots: e._u([{ key: "reference", fn: function() {
456
- return [i(r, { directives: [{ name: "show", rawName: "v-show", value: s.isLeaf, expression: "node.isLeaf" }], staticStyle: { "margin-left": "4px" }, attrs: { size: "mini", type: "text" }, on: { click: function(o) {
452
+ return [i("ElButton", { directives: [{ name: "show", rawName: "v-show", value: s.isLeaf, expression: "node.isLeaf" }], staticStyle: { "margin-left": "4px" }, attrs: { size: "mini", type: "text" }, on: { click: function(o) {
457
453
  o.stopPropagation();
458
454
  } } }, [e._v("删除")])];
459
- }, proxy: !0 }], null, !0) })], 1) : e._e(), e.contextMenuIcon && e.contextMenu && !e.readonly ? i("span", { directives: [{ name: "show", rawName: "v-show", value: !n.loading && !e.loading, expression: "!data.loading && !loading" }], staticClass: "handle-actions", staticStyle: { display: "inline-block" } }, [i(r, { staticStyle: { padding: "6px 10px 0" }, attrs: { size: "mini", type: "text" }, on: { click: function(o) {
455
+ }, proxy: !0 }], null, !0) })], 1) : e._e(), e.contextMenuIcon && e.contextMenu && !e.readonly ? i("span", { directives: [{ name: "show", rawName: "v-show", value: !n.loading && !e.loading, expression: "!data.loading && !loading" }], staticClass: "handle-actions", staticStyle: { display: "inline-block" } }, [i("ElButton", { staticStyle: { padding: "6px 10px 0" }, attrs: { size: "mini", type: "text" }, on: { click: function(o) {
460
456
  return o.stopPropagation(), e.showContextMenu(o, n, s);
461
457
  } } }, [e._v(". . .")])], 1) : e._e()])]];
462
458
  }, { node: s, data: n })];
@@ -471,15 +467,15 @@ var P = function() {
471
467
  return e.removeNodeModal(e.curNode, e.curData);
472
468
  } } }, [i("i", { staticClass: "menu-item-icon el-icon-delete", staticStyle: { color: "#f00" } }), e._v(e._s(e.menuLabel.removeNode) + " ")])];
473
469
  }, { curNode: e.curNode, curData: e.curData })], 2)]) : e._e()], 1)], 1);
474
- }, D = [], L = /* @__PURE__ */ K(
475
- M,
476
- P,
477
- D,
470
+ }, T = [], K = /* @__PURE__ */ k(
471
+ B,
472
+ _,
473
+ T,
478
474
  !1,
479
475
  null,
480
476
  null
481
477
  );
482
- const j = L.exports;
478
+ const z = K.exports;
483
479
  export {
484
- j as default
480
+ z as default
485
481
  };
@@ -1,12 +1,12 @@
1
- import s from "element-ui/lib/transitions/collapse-transition";
2
- import a from "element-ui/src/mixins/emitter";
1
+ import s from "element-ui/src/mixins/emitter";
3
2
  import { generateId as l } from "element-ui/src/utils/util";
4
- import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
- const n = {
3
+ import a from "element-ui/lib/transitions/collapse-transition";
4
+ import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
+ const c = {
6
6
  name: "EgdCollapseItem",
7
- components: { ElCollapseTransition: s },
7
+ components: { ElCollapseTransition: a },
8
8
  componentName: "EgdCollapseItem",
9
- mixins: [a],
9
+ mixins: [s],
10
10
  inject: ["collapse"],
11
11
  props: {
12
12
  title: {
@@ -57,9 +57,9 @@ var o = function() {
57
57
  e.focusing = !1;
58
58
  } } }, [i("i", { staticClass: "el-collapse-item__arrow el-icon-arrow-right", class: { "is-active": e.isActive }, staticStyle: { margin: "0 4px 0 0" } }), e._t("title", function() {
59
59
  return [e._v(" " + e._s(e.title) + " ")];
60
- }, { title: e.title })], 2)]), i(s, [i("div", { directives: [{ name: "show", rawName: "v-show", value: e.isActive, expression: "isActive" }], staticClass: "el-collapse-item__wrap", attrs: { id: `el-collapse-content-${e.id}`, role: "tabpanel", "aria-hidden": !e.isActive, "aria-labelledby": `el-collapse-head-${e.id}` } }, [i("div", { staticClass: "el-collapse-item__content" }, [e._t("default")], 2)])])], 1);
61
- }, r = [], d = /* @__PURE__ */ c(
62
- n,
60
+ }, { title: e.title })], 2)]), i("ElCollapseTransition", [i("div", { directives: [{ name: "show", rawName: "v-show", value: e.isActive, expression: "isActive" }], staticClass: "el-collapse-item__wrap", attrs: { id: `el-collapse-content-${e.id}`, role: "tabpanel", "aria-hidden": !e.isActive, "aria-labelledby": `el-collapse-head-${e.id}` } }, [i("div", { staticClass: "el-collapse-item__content" }, [e._t("default")], 2)])])], 1);
61
+ }, r = [], d = /* @__PURE__ */ n(
62
+ c,
63
63
  o,
64
64
  r,
65
65
  !1,
@@ -1,10 +1,9 @@
1
- import i from "element-ui/lib/button";
2
- import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- import n from "element-ui/lib/dialog";
4
- import { dialogDrag as r } from "@web-utils/vue/directives/dialog-drag";
5
- import { getComputedHeight as d, isDef as p } from "@web-utils/core";
6
- import { g as c } from "../chunks/index.Cn7aq-Et.mjs";
7
- const u = {
1
+ import s from "element-ui/lib/dialog";
2
+ import { dialogDrag as a } from "@web-utils/vue/directives/dialog-drag";
3
+ import { getComputedHeight as r, isDef as n } from "@web-utils/core";
4
+ import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
+ import { g as d } from "../chunks/index.B2TRddqf.mjs";
6
+ const p = {
8
7
  name: "EmulateForm",
9
8
  provide() {
10
9
  return {
@@ -16,16 +15,16 @@ const u = {
16
15
  render() {
17
16
  return this.$slots.default;
18
17
  }
19
- }, f = null, h = null;
20
- var m = /* @__PURE__ */ s(
18
+ }, c = null, u = null;
19
+ var f = /* @__PURE__ */ i(
20
+ p,
21
+ c,
21
22
  u,
22
- f,
23
- h,
24
23
  !1,
25
24
  null,
26
25
  null
27
26
  );
28
- const a = m.exports, g = {
27
+ const h = f.exports, m = {
29
28
  props: {
30
29
  /**
31
30
  * 对话框是否可见
@@ -93,13 +92,13 @@ const a = m.exports, g = {
93
92
  default: "76vh"
94
93
  }
95
94
  }
96
- }, _ = {
95
+ }, g = {
97
96
  name: "ElementDialog",
98
- components: { EmulateForm: a },
97
+ components: { EmulateForm: h },
99
98
  directives: {
100
- dialogDrag: r
99
+ dialogDrag: a
101
100
  },
102
- mixins: [...c(n).mixins, g],
101
+ mixins: [...d(s).mixins, m],
103
102
  props: {
104
103
  /**
105
104
  * 对话框标题
@@ -238,7 +237,7 @@ const a = m.exports, g = {
238
237
  },
239
238
  methods: {
240
239
  async computeTop() {
241
- await this.$nextTick(), this.verticalCenter ? this.marginTop = `${(document.body.offsetHeight - d(this.$refs.dialog)) / 2 + (p(this.offsetTop) ? this.offsetTop : 0)}px` : this.marginTop = this.top;
240
+ await this.$nextTick(), this.verticalCenter ? this.marginTop = `${(document.body.offsetHeight - r(this.$refs.dialog)) / 2 + (n(this.offsetTop) ? this.offsetTop : 0)}px` : this.marginTop = this.top;
242
241
  },
243
242
  toggleFullScreen() {
244
243
  this.fullScreen = !this.fullScreen;
@@ -292,16 +291,16 @@ var y = function() {
292
291
  e.customClass
293
292
  ], style: e.style, attrs: { role: "dialog", "aria-modal": "true", "aria-label": e.title || "dialog" } }, [l("div", { staticClass: "el-dialog__header" }, [e._t("title", function() {
294
293
  return [l("span", { staticClass: "el-dialog__title" }, [e._v(e._s(e.title))])];
295
- }), l(a, [l("div", { staticClass: "header-button-wrapper" }, [e._t("header-button"), e.showFullScreen ? l(i, { staticClass: "header-button", attrs: { disabled: !1, type: "text", icon: e.fullScreen ? "el-icon-copy-document" : "el-icon-full-screen", size: "medium", title: e.fullScreen ? "还原" : "最大化" }, on: { click: e.toggleFullScreen } }) : e._e(), e.showClose ? l(i, { staticClass: "header-button header-dialog-close", attrs: { disabled: !1, "aria-label": "Close", type: "text", title: "关闭", icon: "el-icon-close", size: "medium" }, on: { click: e.handleClose } }) : e._e()], 2)])], 2), e.rendered ? l("div", { staticClass: "el-dialog__body", style: { height: e.fullScreen ? "100%" : e.height } }, [e.destroyOnClose ? [e.visible ? e._t("default") : e._e()] : e._t("default")], 2) : e._e(), e.shouldShowFooter() ? l("div", { staticClass: "el-dialog__footer" }, [e._t("footer", null, { handleClose: e.handleClose })], 2) : e._e()])])]);
296
- }, v = [], C = /* @__PURE__ */ s(
297
- _,
294
+ }), l("EmulateForm", [l("div", { staticClass: "header-button-wrapper" }, [e._t("header-button"), e.showFullScreen ? l("ElButton", { staticClass: "header-button", attrs: { disabled: !1, type: "text", icon: e.fullScreen ? "el-icon-copy-document" : "el-icon-full-screen", size: "medium", title: e.fullScreen ? "还原" : "最大化" }, on: { click: e.toggleFullScreen } }) : e._e(), e.showClose ? l("ElButton", { staticClass: "header-button header-dialog-close", attrs: { disabled: !1, "aria-label": "Close", type: "text", title: "关闭", icon: "el-icon-close", size: "medium" }, on: { click: e.handleClose } }) : e._e()], 2)])], 2), e.rendered ? l("div", { staticClass: "el-dialog__body", style: { height: e.fullScreen ? "100%" : e.height } }, [e.destroyOnClose ? [e.visible ? e._t("default") : e._e()] : e._t("default")], 2) : e._e(), e.shouldShowFooter() ? l("div", { staticClass: "el-dialog__footer" }, [e._t("footer", null, { handleClose: e.handleClose })], 2) : e._e()])])]);
295
+ }, _ = [], v = /* @__PURE__ */ i(
296
+ g,
298
297
  y,
299
- v,
298
+ _,
300
299
  !1,
301
300
  null,
302
301
  null
303
302
  );
304
- const B = C.exports;
303
+ const x = v.exports;
305
304
  export {
306
- B as default
305
+ x as default
307
306
  };
@@ -0,0 +1 @@
1
+ .element-listeners-drawer .el-drawer__header{margin-bottom:0}
@@ -0,0 +1 @@
1
+ .element-multi-instance .el-select{display:block}.flow-tips-list-item{list-style:inside square}.flow-tips-title{padding-top:10px;padding-bottom:10px}.flow-tips-keyword{font-weight:700}
@@ -1,4 +1,4 @@
1
- import { a as o } from "../chunks/index.CIfe3UB3.mjs";
1
+ import { g as o } from "../chunks/index.9OxHjTIE.mjs";
2
2
  import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const s = {
4
4
  name: "FlexColumn",
@@ -1,4 +1,4 @@
1
- import { a as o } from "../chunks/index.CIfe3UB3.mjs";
1
+ import { g as o } from "../chunks/index.9OxHjTIE.mjs";
2
2
  import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const s = {
4
4
  name: "FlexItem",
@@ -1,4 +1,4 @@
1
- import { a as o } from "../chunks/index.CIfe3UB3.mjs";
1
+ import { g as o } from "../chunks/index.9OxHjTIE.mjs";
2
2
  import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const s = {
4
4
  name: "FlexRow",
package/flow/index.mjs CHANGED
@@ -1,7 +1,6 @@
1
- import r from "../flow-node/index.mjs";
2
- import { t as a, s as l } from "../chunks/util.DI42t5GU.mjs";
3
- import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
- const u = {
1
+ import { r, s as l } from "../chunks/util.DqFv_pWg.mjs";
2
+ import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ const c = {
5
4
  name: "Flow",
6
5
  props: {
7
6
  value: {
@@ -100,7 +99,7 @@ const u = {
100
99
  }
101
100
  },
102
101
  created() {
103
- this.id = a(), this.jsplumbSetting.Container = this.id;
102
+ this.id = r(), this.jsplumbSetting.Container = this.id;
104
103
  },
105
104
  mounted() {
106
105
  this.init();
@@ -225,24 +224,24 @@ const u = {
225
224
  }
226
225
  }
227
226
  };
228
- var h = function() {
227
+ var u = function() {
229
228
  var t = this, i = t._self._c;
230
229
  return i("div", { staticClass: "avue-flow", style: t.styleName }, [i("div", { style: t.styleName, attrs: { id: t.id } }, [i("div", { staticClass: "avue-grid" }), t._l(t.option.nodeList, function(n, o) {
231
- return [n.display ? t._e() : i(r, { key: o, attrs: { id: n.id, node: n, index: o, active: t.active }, on: { changeNodeSite: t.changeNodeSite }, nativeOn: { click: function(s) {
230
+ return [n.display ? t._e() : i("FlowNode", { key: o, attrs: { id: n.id, node: n, index: o, active: t.active }, on: { changeNodeSite: t.changeNodeSite }, nativeOn: { click: function(s) {
232
231
  return t.handleClick(n);
233
232
  } }, scopedSlots: t._u([{ key: "header", fn: function({ node: s }) {
234
233
  return [t._t("header", null, { node: s })];
235
234
  } }], null, !0) }, [t._t("default", null, { node: n })], 2)];
236
235
  })], 2)]);
237
- }, d = [], m = /* @__PURE__ */ c(
236
+ }, h = [], d = /* @__PURE__ */ a(
237
+ c,
238
238
  u,
239
239
  h,
240
- d,
241
240
  !1,
242
241
  null,
243
242
  null
244
243
  );
245
- const b = m.exports;
244
+ const f = d.exports;
246
245
  export {
247
- b as default
246
+ f as default
248
247
  };