@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,12 +1,21 @@
1
- import { ref as l, onMounted as S } from "vue";
2
- import N from "element-ui/lib/message";
3
- import { isPlainObject as y, isFunction as P } from "@web-utils/core";
4
- import { cloneDeep as T } from "@web-utils/integrations/lodash";
5
- import { g as B } from "../chunks/index.B2TRddqf.mjs";
6
- import { n as O } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
7
- const E = {
1
+ import N from "../pageable-table/index.mjs";
2
+ import u from "element-ui/lib/button";
3
+ import { F as P } from "../chunks/FormItem.Bhsy_O2B.mjs";
4
+ import T from "element-ui/lib/row";
5
+ import O from "../form-item-config-provider/index.mjs";
6
+ import K from "../form-holder/index.mjs";
7
+ import R from "element-ui/lib/tree";
8
+ import j from "../skeleton-panel/index.mjs";
9
+ import A from "../element-dialog/index.mjs";
10
+ import { ref as r, onMounted as B } from "vue";
11
+ import D from "element-ui/lib/message";
12
+ import { isPlainObject as y, isFunction as z } from "@web-utils/core";
13
+ import { cloneDeep as V } from "@web-utils/integrations/lodash";
14
+ import { g as I } from "../chunks/index.Cn7aq-Et.mjs";
15
+ import { n as M } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
16
+ const H = {
8
17
  name: "PickerTableView"
9
- }, R = /* @__PURE__ */ Object.assign(E, {
18
+ }, q = /* @__PURE__ */ Object.assign(H, {
10
19
  props: {
11
20
  title: String,
12
21
  treeTitle: String,
@@ -52,67 +61,67 @@ const E = {
52
61
  }
53
62
  },
54
63
  emits: ["cancel", "confirm", "update:visible"],
55
- setup(f, { expose: e, emit: n }) {
56
- const t = f, a = l([]), s = l(null), i = l([]), m = l([]), g = l(null), h = l(null), v = l(null), _ = l(null), b = (o) => {
57
- a.value = o;
58
- }, x = (o) => {
59
- s.value = o;
64
+ setup(f, { expose: e, emit: o }) {
65
+ const t = f, i = r([]), s = r(null), a = r([]), _ = r([]), g = r(null), h = r(null), v = r(null), b = r(null), x = (n) => {
66
+ i.value = n;
67
+ }, k = (n) => {
68
+ s.value = n;
60
69
  }, d = () => {
61
70
  g.value.reload();
62
- }, k = () => {
71
+ }, C = () => {
63
72
  h.value.resetFields(), d();
64
- }, u = () => {
73
+ }, p = () => {
65
74
  v.value.hide();
66
75
  }, w = () => {
67
- n("cancel"), u();
68
- }, C = () => {
69
- var p;
70
- let o;
71
- if (t.multiple ? (p = a.value) != null && p.length && (o = a.value) : s.value && (o = [s.value]), !o.length) {
72
- B(N).warning("请选择!");
76
+ o("cancel"), p();
77
+ }, F = () => {
78
+ var m;
79
+ let n;
80
+ if (t.multiple ? (m = i.value) != null && m.length && (n = i.value) : s.value && (n = [s.value]), !n.length) {
81
+ I(D).warning("请选择!");
73
82
  return;
74
83
  }
75
- n("confirm", o), u();
76
- }, F = (o) => {
77
- n("update:visible", o);
84
+ o("confirm", n), p();
85
+ }, S = (n) => {
86
+ o("update:visible", n);
78
87
  };
79
- return S(async () => {
80
- var o;
88
+ return B(async () => {
89
+ var n;
81
90
  if (t.useTree) {
82
91
  const c = (await t.treeApi()).data.data;
83
92
  if (y(t.customRootNode)) {
84
- const r = T(t.customRootNode);
85
- r[t.treeProps.children || "children"] = c, i.value = [r];
86
- } else if (P(t.customRootNode)) {
87
- const r = t.customRootNode(c);
88
- r[t.treeProps.children || "children"] = c, i.value = y(r) ? [r] : r;
93
+ const l = V(t.customRootNode);
94
+ l[t.treeProps.children || "children"] = c, a.value = [l];
95
+ } else if (z(t.customRootNode)) {
96
+ const l = t.customRootNode(c);
97
+ l[t.treeProps.children || "children"] = c, a.value = y(l) ? [l] : l;
89
98
  } else
90
- i.value = c;
91
- t.expandFirstNode && (m.value = [(o = i.value[0]) == null ? void 0 : o.id]);
99
+ a.value = c;
100
+ t.expandFirstNode && (_.value = [(n = a.value[0]) == null ? void 0 : n.id]);
92
101
  }
93
102
  }), e({
94
103
  search: d
95
- }), { __sfc: !0, props: t, emits: n, rows: a, current: s, treeData: i, expandedKeys: m, table: g, form: h, dialog: v, tree: _, handleChange: b, handleCurrentChange: x, search: d, clear: k, closeDialog: u, onCancel: w, confirm: C, updateVisible: F };
104
+ }), { __sfc: !0, props: t, emits: o, rows: i, current: s, treeData: a, expandedKeys: _, table: g, form: h, dialog: v, tree: b, handleChange: x, handleCurrentChange: k, search: d, clear: C, closeDialog: p, onCancel: w, confirm: F, updateVisible: S };
96
105
  }
97
106
  });
98
- var D = function() {
99
- var e = this, n = e._self._c, t = e._self._setupProxy;
100
- return n("ElementDialog", { ref: "dialog", attrs: { visible: e.visible, height: e.height, width: e.width, "body-padding": !1, "show-full-screen": "", title: e.title }, on: { "update:visible": t.updateVisible }, scopedSlots: e._u([{ key: "footer", fn: function() {
101
- return [n("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: t.confirm } }, [e._v("确定")]), n("ElButton", { attrs: { size: "mini" }, on: { click: t.onCancel } }, [e._v("取消")])];
102
- }, proxy: !0 }]) }, [n("SkeletonPanel", { attrs: { "flex-column": "", "use-tab": !1, "hide-left": !e.useTree }, scopedSlots: e._u([e.useTree ? { key: "left", fn: function() {
103
- return [n("div", { staticStyle: { padding: "10px 0", "font-size": "16px", "border-bottom": "1px solid #eee" } }, [e._v(e._s(e.treeTitle))]), n("ElTree", { ref: "tree", attrs: { "node-key": e.nodeKey, data: t.treeData, "default-expanded-keys": t.expandedKeys, props: e.treeProps, "expand-on-click-node": e.expandOnClickNode }, on: { "node-click": e.onNodeClick } })];
104
- }, proxy: !0 } : null], null, !0) }, [n("FormHolder", { ref: "form", staticStyle: { padding: "10px" }, attrs: { model: e.model, "not-table-form": "" }, nativeOn: { submit: function(a) {
105
- return a.preventDefault(), t.search.apply(null, arguments);
106
- } } }, [n("FormItemConfigProvider", { attrs: { reactive: "" } }, [n("ElRow", { attrs: { gutter: 0 } }, [e._t("search-form"), n("FormItem", { staticStyle: { "text-align": "right" }, attrs: { "hide-label": "", span: 24 } }, [n("ElButton", { attrs: { type: "primary", "native-type": "submit" } }, [e._v("搜索")]), n("ElButton", { on: { click: t.clear } }, [e._v("清空")])], 1)], 2)], 1)], 1), n("PageableTable", { ref: "table", attrs: { "highlight-current-row": "", "hide-on-single-page": "", "click-row-select": "", "row-key": e.rowKey, descs: e.descs, "payload-style": "body", api: e.tableApi, model: e.model, multiple: e.multiple }, on: { "current-change": t.handleCurrentChange, "selection-change": t.handleChange } }, [e._t("columns")], 2)], 1)], 1);
107
- }, K = [], j = /* @__PURE__ */ O(
108
- R,
109
- D,
110
- K,
107
+ var E = function() {
108
+ var e = this, o = e._self._c, t = e._self._setupProxy;
109
+ return o(A, { ref: "dialog", attrs: { visible: e.visible, height: e.height, width: e.width, "body-padding": !1, "show-full-screen": "", title: e.title }, on: { "update:visible": t.updateVisible }, scopedSlots: e._u([{ key: "footer", fn: function() {
110
+ return [o(u, { attrs: { size: "mini", type: "primary" }, on: { click: t.confirm } }, [e._v("确定")]), o(u, { attrs: { size: "mini" }, on: { click: t.onCancel } }, [e._v("取消")])];
111
+ }, proxy: !0 }]) }, [o(j, { attrs: { "flex-column": "", "use-tab": !1, "hide-left": !e.useTree }, scopedSlots: e._u([e.useTree ? { key: "left", fn: function() {
112
+ return [o("div", { staticStyle: { padding: "10px 0", "font-size": "16px", "border-bottom": "1px solid #eee" } }, [e._v(e._s(e.treeTitle))]), o(R, { ref: "tree", attrs: { "node-key": e.nodeKey, data: t.treeData, "default-expanded-keys": t.expandedKeys, props: e.treeProps, "expand-on-click-node": e.expandOnClickNode }, on: { "node-click": e.onNodeClick } })];
113
+ }, proxy: !0 } : null], null, !0) }, [o(K, { ref: "form", staticStyle: { padding: "10px" }, attrs: { model: e.model, "not-table-form": "" }, nativeOn: { submit: function(i) {
114
+ return i.preventDefault(), t.search.apply(null, arguments);
115
+ } } }, [o(O, { attrs: { reactive: "" } }, [o(T, { attrs: { gutter: 0 } }, [e._t("search-form"), o(P, { staticStyle: { "text-align": "right" }, attrs: { "hide-label": "", span: 24 } }, [o(u, { attrs: { type: "primary", "native-type": "submit" } }, [e._v("搜索")]), o(u, { on: { click: t.clear } }, [e._v("清空")])], 1)], 2)], 1)], 1), o(N, { ref: "table", attrs: { "highlight-current-row": "", "hide-on-single-page": "", "click-row-select": "", "row-key": e.rowKey, descs: e.descs, "payload-style": "body", api: e.tableApi, model: e.model, multiple: e.multiple }, on: { "current-change": t.handleCurrentChange, "selection-change": t.handleChange } }, [e._t("columns")], 2)], 1)], 1);
116
+ }, G = [], J = /* @__PURE__ */ M(
117
+ q,
118
+ E,
119
+ G,
111
120
  !1,
112
121
  null,
113
122
  null
114
123
  );
115
- const q = j.exports;
124
+ const ae = J.exports;
116
125
  export {
117
- q as default
126
+ ae as default
118
127
  };
@@ -1,9 +1,13 @@
1
- import { isInContainer as u, delay as m, hasOwn as a, toStringArray as h } from "@web-utils/core";
2
- import { merge as b } from "@web-utils/integrations/lodash";
3
- import p from "../resize-observer/index.mjs";
1
+ import b from "../loading-view/index.mjs";
2
+ import u from "../resize-observer/index.mjs";
3
+ import p from "../form-item-group/index.mjs";
4
+ import l from "../toolbar/index.mjs";
5
+ import c from "../empty-view/index.mjs";
6
+ import { isInContainer as v, delay as w, hasOwn as f, toStringArray as _ } from "@web-utils/core";
7
+ import { merge as y } from "@web-utils/integrations/lodash";
4
8
  import "../resize-observer/style.css";
5
- import { n as v } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
6
- const f = [
9
+ import { n as g } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
10
+ const m = [
7
11
  "back",
8
12
  "create",
9
13
  "save",
@@ -23,17 +27,17 @@ const f = [
23
27
  "disabled",
24
28
  "reload",
25
29
  "slot"
26
- ], w = f.map((e) => `${e}-down`), y = ["back", "withdraw", "edit"], c = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], l = (e, t) => {
30
+ ], x = m.map((e) => `${e}-down`), $ = ["back", "withdraw", "edit"], d = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], a = (e, t) => {
27
31
  if (e.classList.contains(t))
28
32
  return e;
29
33
  let o = e.parentNode;
30
34
  for (; o && !o.classList.contains(t); )
31
35
  o = o.parentNode;
32
36
  return o.classList.contains(t) ? o : null;
33
- }, _ = {
37
+ }, S = {
34
38
  name: "PresentView",
35
39
  components: {
36
- ResizeObserver: p
40
+ ResizeObserver: u
37
41
  },
38
42
  inject: {
39
43
  flowContext: {
@@ -76,24 +80,24 @@ const f = [
76
80
  },
77
81
  computed: {
78
82
  isFormLoading() {
79
- return this.loading || a(this.$parent, "isFormLoaded") ? !this.$parent.isFormLoaded : !1;
83
+ return this.loading || f(this.$parent, "isFormLoaded") ? !this.$parent.isFormLoaded : !1;
80
84
  },
81
85
  toolbarProps() {
82
86
  var r;
83
- const e = {}, t = ((r = this.toolbarAttrs) == null ? void 0 : r.buttons) || this.$parent.buttons, o = b({}, this.toolbarAttrs, e);
84
- return o.buttons = t || ["back"], o.buttons = h(o.buttons), o;
87
+ const e = {}, t = ((r = this.toolbarAttrs) == null ? void 0 : r.buttons) || this.$parent.buttons, o = y({}, this.toolbarAttrs, e);
88
+ return o.buttons = t || ["back"], o.buttons = _(o.buttons), o;
85
89
  }
86
90
  },
87
91
  created() {
88
92
  this.$on("FormView.addTab", (e) => {
89
93
  e && (this.activeIndex === -1 && (this.activeIndex = 0), this.tabs.push(e), this.tabs = this.tabs.sort((t, o) => {
90
- const r = l(t.$el, "form-card"), s = l(o.$el, "form-card");
94
+ const r = a(t.$el, "form-card"), s = a(o.$el, "form-card");
91
95
  if (r === s) {
92
96
  const i = [].indexOf.call(t.$el.parentNode.children, t.$el), n = [].indexOf.call(o.$el.parentNode.children, o.$el);
93
97
  return i - n;
94
98
  } else {
95
- const i = l(r, "form-scroller"), n = [].indexOf.call(i.children, r), d = [].indexOf.call(i.children, s);
96
- return n - d;
99
+ const i = a(r, "form-scroller"), n = [].indexOf.call(i.children, r), h = [].indexOf.call(i.children, s);
100
+ return n - h;
97
101
  }
98
102
  }), e.active && (this.activeIndex = this.tabs.indexOf(e), this.tabClick(e, this.activeIndex)));
99
103
  }), this.$on("FormView.removeTab", (e) => {
@@ -108,10 +112,10 @@ const f = [
108
112
  },
109
113
  methods: {
110
114
  getToolbarSlotKeys() {
111
- return Object.keys(this.$scopedSlots).filter((e) => f.includes(e));
115
+ return Object.keys(this.$scopedSlots).filter((e) => m.includes(e));
112
116
  },
113
117
  getFooterSlotKeys() {
114
- return Object.keys(this.$scopedSlots).filter((e) => w.includes(e));
118
+ return Object.keys(this.$scopedSlots).filter((e) => x.includes(e));
115
119
  },
116
120
  getFooterSlotKey(e) {
117
121
  return e.replace("-down", "");
@@ -120,15 +124,15 @@ const f = [
120
124
  this.showNav = e > 1500;
121
125
  },
122
126
  onEdit() {
123
- !this.toolbarListeners.edit && a(this.$parent, "disabled") && (this.$parent.disabled = !1);
127
+ !this.toolbarListeners.edit && f(this.$parent, "disabled") && (this.$parent.disabled = !1);
124
128
  },
125
129
  async tabClick(e, t) {
126
- this.showNav && (await this.$nextTick(), e.expand || (e.open(), await m(200), await this.$nextTick()), this.tryByClick = !0, this.activeIndex = t, this.$refs.formScroller.scrollTop = e.$el.offsetTop - 10);
130
+ this.showNav && (await this.$nextTick(), e.expand || (e.open(), await w(200), await this.$nextTick()), this.tryByClick = !0, this.activeIndex = t, this.$refs.formScroller.scrollTop = e.$el.offsetTop - 10);
127
131
  },
128
132
  async tryActive() {
129
133
  if (this.showNav) {
130
134
  for (let e = 0; e < this.tabs.length; e++)
131
- if (u(this.tabs[e].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
135
+ if (v(this.tabs[e].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
132
136
  this.activeIndex = e;
133
137
  break;
134
138
  }
@@ -141,18 +145,18 @@ const f = [
141
145
  e && (this.$refs.formScroller.scrollTop = e), t && (this.$refs.formScroller.scrollLeft = t);
142
146
  },
143
147
  getToolbarButtons(e) {
144
- return e.filter((t) => !c.includes(t) && t.indexOf(":down") < 0).map((t) => t.replace(":up", ""));
148
+ return e.filter((t) => !d.includes(t) && t.indexOf(":down") < 0).map((t) => t.replace(":up", ""));
145
149
  },
146
150
  getFooterBarButtons(e) {
147
- let t = e.filter((o) => !y.includes(o) && (c.includes(o) || o.indexOf(":down") > -1)).map((o) => o.replace(":down", ""));
151
+ let t = e.filter((o) => !$.includes(o) && (d.includes(o) || o.indexOf(":down") > -1)).map((o) => o.replace(":down", ""));
148
152
  return t = t || [], this.$parent.isEnabled && !t.includes("cancel") && t.push("cancel"), t;
149
153
  }
150
154
  }
151
155
  };
152
- var g = function() {
156
+ var F = function() {
153
157
  var t = this, o = t._self._c;
154
158
  return o("div", { class: ["form-view", t.className] }, [o("div", { directives: [{ name: "show", rawName: "v-show", value: !t.isFormLoading, expression: "!isFormLoading" }], staticClass: "form-view-toolbar" }, [t._t("form-view-toolbar", function() {
155
- return [o("Toolbar", t._g(t._b({ directives: [{ name: "show", rawName: "v-show", value: t.showToolbar, expression: "showToolbar" }], on: { edit: t.onEdit }, scopedSlots: t._u([{ key: "default", fn: function({ buttons: r }) {
159
+ return [o(l, t._g(t._b({ directives: [{ name: "show", rawName: "v-show", value: t.showToolbar, expression: "showToolbar" }], on: { edit: t.onEdit }, scopedSlots: t._u([{ key: "default", fn: function({ buttons: r }) {
156
160
  return [t._t("toolbar-button", null, { buttons: r })];
157
161
  } }, t._l(t.getToolbarSlotKeys(), function(r) {
158
162
  return { key: r, fn: function() {
@@ -162,35 +166,35 @@ var g = function() {
162
166
  return [t._t("toolbar-right")];
163
167
  }, proxy: !0 }], null, !0) }, "Toolbar", { ...t.toolbarProps, buttons: t.getToolbarButtons(t.toolbarProps.buttons) }, !1), t.toolbarListeners))];
164
168
  })], 2), o("div", { directives: [{ name: "show", rawName: "v-show", value: !t.isFormLoading, expression: "!isFormLoading" }], staticClass: "form-scroller-wrapper" }, [o("div", { ref: "formScroller", class: ["form-scroller", "absolute-box", t.contentClass], on: { scroll: t.onFormScroll } }, [t.notForm ? o("div", { staticClass: "not-form", style: { width: t.formWidth } }, [t.title ? o("div", { staticClass: "form-view-title" }, [t._v(t._s(t.title))]) : t._e(), t._t("default", function() {
165
- return [o("EmptyView", { attrs: { "empty-tips": "请添加表单内容" } })];
166
- }), o("Toolbar", t._g(t._b({ attrs: { footer: "" }, scopedSlots: t._u([{ key: "default", fn: function({ buttons: r, footer: s }) {
169
+ return [o(c, { attrs: { "empty-tips": "请添加表单内容" } })];
170
+ }), o(l, t._g(t._b({ attrs: { footer: "" }, scopedSlots: t._u([{ key: "default", fn: function({ buttons: r, footer: s }) {
167
171
  return [t._t("footer-button", null, { buttons: r, footer: s })];
168
172
  } }, t._l(t.getFooterSlotKeys(), function(r) {
169
173
  return { key: t.getFooterSlotKey(r), fn: function() {
170
174
  return [t._t(r)];
171
175
  }, proxy: !0 };
172
176
  })], null, !0) }, "Toolbar", { ...t.toolbarProps, buttons: t.getFooterBarButtons(t.toolbarProps.buttons) }, !1), t.toolbarListeners)), t.$scopedSlots["form-bottom"] ? t._t("form-bottom") : t._e()], 2) : o("div", { class: ["form-card", { "un-limit": t.unLimit }], style: { width: `calc(${t.formWidth} + 40px)` } }, [o("div", { staticClass: "form-content" }, [t.title ? o("div", { staticClass: "form-view-title" }, [t._v(t._s(t.title))]) : t._e(), t._t("default", function() {
173
- return [o("EmptyView", { attrs: { "empty-tips": "请添加表单内容" } })];
174
- }), t.getFooterBarButtons(t.toolbarProps.buttons).length ? o("Toolbar", t._g(t._b({ attrs: { footer: "" }, scopedSlots: t._u([{ key: "default", fn: function({ buttons: r, footer: s }) {
177
+ return [o(c, { attrs: { "empty-tips": "请添加表单内容" } })];
178
+ }), t.getFooterBarButtons(t.toolbarProps.buttons).length ? o(l, t._g(t._b({ attrs: { footer: "" }, scopedSlots: t._u([{ key: "default", fn: function({ buttons: r, footer: s }) {
175
179
  return [t._t("footer-button", null, { buttons: r, footer: s })];
176
180
  } }, t._l(t.getFooterSlotKeys(), function(r) {
177
181
  return { key: t.getFooterSlotKey(r), fn: function() {
178
182
  return [t._t(r)];
179
183
  }, proxy: !0 };
180
- })], null, !0) }, "Toolbar", { ...t.toolbarProps, buttons: t.getFooterBarButtons(t.toolbarProps.buttons) }, !1), t.toolbarListeners)) : t._e()], 2)]), t.$scopedSlots["form-bottom"] || t.$parent.$options.flowForm && t.flowContext.logs.length ? o("div", { class: ["form-card", { "un-limit": t.unLimit }], staticStyle: { "min-height": "0" }, style: { width: `calc(${t.formWidth} + 40px)` } }, [o("div", { staticClass: "form-content" }, [o("FormItemGroup", { attrs: { "block-title": "流程日志" } }, [o("FlowLog", { attrs: { fetch: !1, "show-title": !1, "business-key": t.$parent.bizKey } })], 1), t._t("form-bottom")], 2)]) : t._e()]), o("ResizeObserver", { on: { notify: t.onFormResize } })], 1), t.formNav && !t.isFormLoading && t.showNav && t.tabs.length ? o("div", { staticClass: "form-nav" }, [o("div", { staticClass: "form-nav-header" }, [t._v("表单导航")]), o("ul", { staticClass: "form-nav-list" }, t._l(t.tabs, function(r, s) {
184
+ })], null, !0) }, "Toolbar", { ...t.toolbarProps, buttons: t.getFooterBarButtons(t.toolbarProps.buttons) }, !1), t.toolbarListeners)) : t._e()], 2)]), t.$scopedSlots["form-bottom"] || t.$parent.$options.flowForm && t.flowContext.logs.length ? o("div", { class: ["form-card", { "un-limit": t.unLimit }], staticStyle: { "min-height": "0" }, style: { width: `calc(${t.formWidth} + 40px)` } }, [o("div", { staticClass: "form-content" }, [o(p, { attrs: { "block-title": "流程日志" } }, [o("FlowLog", { attrs: { fetch: !1, "show-title": !1, "business-key": t.$parent.bizKey } })], 1), t._t("form-bottom")], 2)]) : t._e()]), o(u, { on: { notify: t.onFormResize } })], 1), t.formNav && !t.isFormLoading && t.showNav && t.tabs.length ? o("div", { staticClass: "form-nav" }, [o("div", { staticClass: "form-nav-header" }, [t._v("表单导航")]), o("ul", { staticClass: "form-nav-list" }, t._l(t.tabs, function(r, s) {
181
185
  return o("li", { key: r.blockTitle, class: ["form-nav-item", { active: t.activeIndex === s }], on: { click: function(i) {
182
186
  return t.tabClick(r, s);
183
187
  } } }, [t._v(" " + t._s(r.blockTitle) + " ")]);
184
- }), 0)]) : t._e(), t.isFormLoading ? o("LoadingView", { attrs: { "icon-size": "34px", "font-size": "16px" } }) : t._e()], 1);
185
- }, x = [], $ = /* @__PURE__ */ v(
186
- _,
187
- g,
188
- x,
188
+ }), 0)]) : t._e(), t.isFormLoading ? o(b, { attrs: { "icon-size": "34px", "font-size": "16px" } }) : t._e()], 1);
189
+ }, k = [], B = /* @__PURE__ */ g(
190
+ S,
191
+ F,
192
+ k,
189
193
  !1,
190
194
  null,
191
195
  null
192
196
  );
193
- const C = $.exports;
197
+ const z = B.exports;
194
198
  export {
195
- C as default
199
+ z as default
196
200
  };
@@ -1,4 +1,4 @@
1
- import { s } from "../chunks/util.DqFv_pWg.mjs";
1
+ import { s } from "../chunks/util.DI42t5GU.mjs";
2
2
  import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  let o = class {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { a as r } from "../chunks/index.9OxHjTIE.mjs";
1
+ import { g as r } from "../chunks/index.CIfe3UB3.mjs";
2
2
  import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  let t;
4
4
  function i() {
package/search/index.mjs CHANGED
@@ -1,10 +1,12 @@
1
- import { D as p } from "../chunks/util.DqFv_pWg.mjs";
2
- import { i } from "../chunks/init.DAsXSoLW.mjs";
3
- import { isBlank as o } from "@web-utils/core";
4
- import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
- const l = {
1
+ import i from "element-ui/lib/col";
2
+ import o from "element-ui/lib/row";
3
+ import { k as a } from "../chunks/util.DI42t5GU.mjs";
4
+ import { i as n } from "../chunks/init.xOlFpTyZ.mjs";
5
+ import { isBlank as l } from "@web-utils/core";
6
+ import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
7
+ const u = {
6
8
  name: "Search",
7
- mixins: [i],
9
+ mixins: [n],
8
10
  props: {
9
11
  value: [String, Object, Number, Boolean, Array]
10
12
  },
@@ -21,10 +23,10 @@ const l = {
21
23
  return this.parentOption.props || {};
22
24
  },
23
25
  labelKey() {
24
- return p.label;
26
+ return a.label;
25
27
  },
26
28
  valueKey() {
27
- return p.value;
29
+ return a.value;
28
30
  },
29
31
  mainSlot() {
30
32
  const e = [];
@@ -66,7 +68,7 @@ const l = {
66
68
  dataFormat() {
67
69
  this.propOption.forEach((e) => {
68
70
  const t = e.prop;
69
- o(this.form[t]) && this.$set(this.form, t, e.multiple === !1 ? "" : []);
71
+ l(this.form[t]) && this.$set(this.form, t, e.multiple === !1 ? "" : []);
70
72
  });
71
73
  },
72
74
  getActive(e, t) {
@@ -84,24 +86,24 @@ const l = {
84
86
  }
85
87
  }
86
88
  };
87
- var h = function() {
89
+ var c = function() {
88
90
  var t = this, r = t._self._c;
89
- return r("ElRow", { class: ["avue-search", { "avue--card": t.isCard }], attrs: { span: 24 } }, t._l(t.columnOption, function(s) {
90
- return r("ElCol", { key: s.prop, staticClass: "avue-search__item", attrs: { span: s.span || 24 } }, [r("p", { staticClass: "avue-search__title" }, [t._v(t._s(s.label) + ":")]), r("div", { staticClass: "avue-search__content" }, [t.mainSlot.includes(s.prop) ? t._t(s.prop, null, { dic: t.DIC[s.prop] }) : t._l(t.DIC[s.prop], function(a) {
91
- return r("span", { key: t.getKey(a, s.props, t.valueKey), class: ["avue-search__tags", { "avue-search__tags--active": t.getActive(a, s) }], on: { click: function(f) {
92
- return t.handleClick(s, a);
93
- } } }, [t._v(t._s(t.getKey(a, s.props, t.labelKey)))]);
91
+ return r(o, { class: ["avue-search", { "avue--card": t.isCard }], attrs: { span: 24 } }, t._l(t.columnOption, function(s) {
92
+ return r(i, { key: s.prop, staticClass: "avue-search__item", attrs: { span: s.span || 24 } }, [r("p", { staticClass: "avue-search__title" }, [t._v(t._s(s.label) + ":")]), r("div", { staticClass: "avue-search__content" }, [t.mainSlot.includes(s.prop) ? t._t(s.prop, null, { dic: t.DIC[s.prop] }) : t._l(t.DIC[s.prop], function(p) {
93
+ return r("span", { key: t.getKey(p, s.props, t.valueKey), class: ["avue-search__tags", { "avue-search__tags--active": t.getActive(p, s) }], on: { click: function(v) {
94
+ return t.handleClick(s, p);
95
+ } } }, [t._v(t._s(t.getKey(p, s.props, t.labelKey)))]);
94
96
  })], 2)]);
95
97
  }), 1);
96
- }, c = [], u = /* @__PURE__ */ n(
97
- l,
98
- h,
98
+ }, _ = [], f = /* @__PURE__ */ h(
99
+ u,
99
100
  c,
101
+ _,
100
102
  !1,
101
103
  null,
102
104
  null
103
105
  );
104
- const O = u.exports;
106
+ const K = f.exports;
105
107
  export {
106
- O as default
108
+ K as default
107
109
  };
@@ -1,6 +1,6 @@
1
1
  import { isInContainer as n, copy as a } from "@web-utils/core";
2
2
  import l from "element-ui/lib/utils/clickoutside";
3
- import { z as c } from "../chunks/util.DqFv_pWg.mjs";
3
+ import { z as c } from "../chunks/util.DI42t5GU.mjs";
4
4
  import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
5
  const u = {
6
6
  name: "SearchPopover",
package/sign/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { s as v } from "../chunks/util.DqFv_pWg.mjs";
1
+ import { s as v } from "../chunks/util.DI42t5GU.mjs";
2
2
  import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  function p(e, s, n, r, t, o) {
4
4
  e.save(), e.fillStyle = t, e.translate(s, n), e.rotate(Math.PI + o), e.beginPath();
@@ -1,7 +1,8 @@
1
+ import o from "element-ui/lib/tabs";
1
2
  import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
- const o = {
3
+ const s = {
3
4
  name: "SkeletonPanel"
4
- }, s = /* @__PURE__ */ Object.assign(o, {
5
+ }, r = /* @__PURE__ */ Object.assign(s, {
5
6
  props: {
6
7
  flexColumn: Boolean,
7
8
  flexRow: Boolean,
@@ -15,24 +16,24 @@ const o = {
15
16
  return { __sfc: !0 };
16
17
  }
17
18
  });
18
- var a = function() {
19
+ var _ = function() {
19
20
  var e = this, t = e._self._c;
20
- return e._self._setupProxy, t("div", { staticClass: "skeleton-panel" }, [e.hideLeft ? e._e() : t("div", { staticClass: "skeleton-panel-left" }, [e.useTab ? t("ElTabs", { attrs: { "tab-position": "top", stretch: "" } }, [e._t("left", function() {
21
+ return e._self._setupProxy, t("div", { staticClass: "skeleton-panel" }, [e.hideLeft ? e._e() : t("div", { staticClass: "skeleton-panel-left" }, [e.useTab ? t(o, { attrs: { "tab-position": "top", stretch: "" } }, [e._t("left", function() {
21
22
  return [e._v("请添加内容")];
22
23
  })], 2) : e._t("left", function() {
23
24
  return [e._v("请添加内容")];
24
25
  })], 2), t("div", { class: ["skeleton-panel-right", { "flex-column": e.flexColumn, "flex-row": e.flexRow }] }, [e._t("default", function() {
25
26
  return [e._v("请添加内容")];
26
27
  })], 2)]);
27
- }, r = [], _ = /* @__PURE__ */ l(
28
- s,
29
- a,
28
+ }, a = [], f = /* @__PURE__ */ l(
30
29
  r,
30
+ _,
31
+ a,
31
32
  !1,
32
33
  null,
33
34
  null
34
35
  );
35
- const u = _.exports;
36
+ const i = f.exports;
36
37
  export {
37
- u as default
38
+ i as default
38
39
  };
@@ -1,25 +1,7 @@
1
- import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
1
  import l from "../resize-observer/index.mjs";
2
+ import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  import "../resize-observer/style.css";
4
- function h(e, t) {
5
- for (let s = 0; s < t.length; s++)
6
- if (e === t[s])
7
- return !0;
8
- return !1;
9
- }
10
- const n = (function() {
11
- return document.addEventListener ? function(e, t, s) {
12
- e && t && s && e.addEventListener(t, s, !1);
13
- } : function(e, t, s) {
14
- e && t && s && e.attachEvent(`on${t}`, s);
15
- };
16
- })(), a = (function() {
17
- return document.removeEventListener ? function(e, t, s) {
18
- e && t && e.removeEventListener(t, s, !1);
19
- } : function(e, t, s) {
20
- e && t && e.detachEvent(`on${t}`, s);
21
- };
22
- })(), p = {
4
+ const p = {
23
5
  name: "Trigger",
24
6
  props: {
25
7
  mode: String,
@@ -58,7 +40,7 @@ var u = function() {
58
40
  return e._l(8, function(s) {
59
41
  return t("i", { key: `trigger-${s}`, class: `${e.prefix}-bar` });
60
42
  });
61
- }], d = /* @__PURE__ */ f(
43
+ }], d = /* @__PURE__ */ h(
62
44
  p,
63
45
  u,
64
46
  c,
@@ -66,10 +48,29 @@ var u = function() {
66
48
  null,
67
49
  null
68
50
  );
69
- const g = d.exports, m = {
51
+ const r = d.exports;
52
+ function g(e, t) {
53
+ for (let s = 0; s < t.length; s++)
54
+ if (e === t[s])
55
+ return !0;
56
+ return !1;
57
+ }
58
+ const a = (function() {
59
+ return document.addEventListener ? function(e, t, s) {
60
+ e && t && s && e.addEventListener(t, s, !1);
61
+ } : function(e, t, s) {
62
+ e && t && s && e.attachEvent(`on${t}`, s);
63
+ };
64
+ })(), f = (function() {
65
+ return document.removeEventListener ? function(e, t, s) {
66
+ e && t && e.removeEventListener(t, s, !1);
67
+ } : function(e, t, s) {
68
+ e && t && e.detachEvent(`on${t}`, s);
69
+ };
70
+ })(), m = {
70
71
  name: "SplitPane",
71
72
  components: {
72
- Trigger: g,
73
+ Trigger: r,
73
74
  ResizeObserver: l
74
75
  },
75
76
  props: {
@@ -79,7 +80,7 @@ const g = d.exports, m = {
79
80
  },
80
81
  mode: {
81
82
  validator(e) {
82
- return h(e, ["horizontal", "vertical"]);
83
+ return g(e, ["horizontal", "vertical"]);
83
84
  },
84
85
  default: "horizontal"
85
86
  },
@@ -162,30 +163,30 @@ const g = d.exports, m = {
162
163
  return this.valueIsPx ? t = `${this.$refs.outerWrapper[this.offsetSize] - parseFloat(e)}px` : t = 1 - e, t;
163
164
  },
164
165
  handleMove(e) {
165
- const s = (this.isHorizontal ? e.pageX : e.pageY) - this.initOffset, r = this.$refs.outerWrapper[this.offsetSize];
166
- let i = this.valueIsPx ? `${parseFloat(this.oldOffset) + s}px` : this.px2percent(r * this.oldOffset + s, r);
167
- const o = this.getAnotherOffset(i);
168
- parseFloat(i) <= parseFloat(this.computedMin) && (i = this.getMax(i, this.computedMin)), parseFloat(o) <= parseFloat(this.computedMax) && (i = this.getAnotherOffset(this.getMax(o, this.computedMax))), e.atMin = this.value === this.computedMin, e.atMax = this.valueIsPx ? this.getAnotherOffset(this.value) === this.computedMax : this.getAnotherOffset(this.value).toFixed(5) === this.computedMax.toFixed(5), this.$emit("input", i), this.$emit("on-moving", e);
166
+ const s = (this.isHorizontal ? e.pageX : e.pageY) - this.initOffset, o = this.$refs.outerWrapper[this.offsetSize];
167
+ let i = this.valueIsPx ? `${parseFloat(this.oldOffset) + s}px` : this.px2percent(o * this.oldOffset + s, o);
168
+ const n = this.getAnotherOffset(i);
169
+ parseFloat(i) <= parseFloat(this.computedMin) && (i = this.getMax(i, this.computedMin)), parseFloat(n) <= parseFloat(this.computedMax) && (i = this.getAnotherOffset(this.getMax(n, this.computedMax))), e.atMin = this.value === this.computedMin, e.atMax = this.valueIsPx ? this.getAnotherOffset(this.value) === this.computedMax : this.getAnotherOffset(this.value).toFixed(5) === this.computedMax.toFixed(5), this.$emit("input", i), this.$emit("on-moving", e);
169
170
  },
170
171
  handleUp() {
171
- this.isMoving = !1, a(window, "mousemove", this.handleMove), a(window, "mouseup", this.handleUp), this.$emit("on-move-end");
172
+ this.isMoving = !1, f(window, "mousemove", this.handleMove), f(window, "mouseup", this.handleUp), this.$emit("on-move-end");
172
173
  },
173
174
  handleMousedown(e) {
174
- this.initOffset = this.isHorizontal ? e.pageX : e.pageY, this.oldOffset = this.value, this.isMoving = !0, n(window, "mousemove", this.handleMove), n(window, "mouseup", this.handleUp), this.$emit("on-move-start");
175
+ this.initOffset = this.isHorizontal ? e.pageX : e.pageY, this.oldOffset = this.value, this.isMoving = !0, a(window, "mousemove", this.handleMove), a(window, "mouseup", this.handleUp), this.$emit("on-move-start");
175
176
  }
176
177
  }
177
178
  };
178
- var v = function() {
179
+ var x = function() {
179
180
  var t = this, s = t._self._c;
180
181
  return s("div", { ref: "outerWrapper", class: t.wrapperClasses }, [t.isHorizontal ? s("div", { class: `${t.prefix}-horizontal` }, [t.hideLeft ? s("div", { class: [`${t.prefix}-pane`, "right-pane"], staticStyle: { left: "0" } }, [t._t("right")], 2) : [s("div", { class: [`${t.prefix}-pane`, "left-pane"], style: { right: `${t.anotherOffset}%` } }, [t._t("left")], 2), s("div", { class: `${t.prefix}-trigger-con`, style: { left: `calc(${t.offset}% + ${t.triggerSize / 2}px)`, width: `${t.triggerSize}px` }, on: { mousedown: t.handleMousedown } }, [t._t("trigger", function() {
181
- return [s("Trigger", { attrs: { mode: "vertical" } })];
182
+ return [s(r, { attrs: { mode: "vertical" } })];
182
183
  })], 2), s("div", { class: [`${t.prefix}-pane`, "right-pane"], style: { left: `calc(${t.offset}% + ${t.triggerSize}px)` } }, [t._t("right")], 2)]], 2) : s("div", { class: `${t.prefix}-vertical` }, [s("div", { class: [`${t.prefix}-pane`, "top-pane"], style: { bottom: `${t.anotherOffset}%` } }, [t._t("top")], 2), s("div", { class: `${t.prefix}-trigger-con`, style: { top: `calc(${t.offset}% + ${t.triggerSize / 2}px)`, height: `${t.triggerSize}px` }, on: { mousedown: t.handleMousedown } }, [t._t("trigger", function() {
183
- return [s("Trigger", { attrs: { mode: "horizontal" } })];
184
- })], 2), s("div", { class: [`${t.prefix}-pane`, "bottom-pane"], style: { top: `calc(${t.offset}% + ${t.triggerSize}px)` } }, [t._t("bottom")], 2)]), s("ResizeObserver", { on: { notify: t.resetOffset } })], 1);
185
- }, x = [], $ = /* @__PURE__ */ f(
184
+ return [s(r, { attrs: { mode: "horizontal" } })];
185
+ })], 2), s("div", { class: [`${t.prefix}-pane`, "bottom-pane"], style: { top: `calc(${t.offset}% + ${t.triggerSize}px)` } }, [t._t("bottom")], 2)]), s(l, { on: { notify: t.resetOffset } })], 1);
186
+ }, v = [], $ = /* @__PURE__ */ h(
186
187
  m,
187
- v,
188
188
  x,
189
+ v,
189
190
  !1,
190
191
  null,
191
192
  null