@web-utils/component 3.0.2 → 3.0.4

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 (166) hide show
  1. package/address-input/index.mjs +14 -14
  2. package/chat/index.mjs +39 -40
  3. package/chunk-file-uploader/index.mjs +35 -594
  4. package/chunk-file-uploader/style.css +1 -1
  5. package/chunks/FormTemp.d079292b.mjs +139 -0
  6. package/chunks/{dataformat.816df805.mjs → dataformat.e655611c.mjs} +6 -6
  7. package/chunks/detail.d6f8e347.mjs +29 -0
  8. package/chunks/{dic.3b4ba802.mjs → dic.eaac0823.mjs} +40 -40
  9. package/chunks/{event.4377230d.mjs → event.10295951.mjs} +2 -2
  10. package/chunks/form-input-mixin.78a567bc.mjs +24 -0
  11. package/chunks/form-item-mixin.57cb2019.mjs +140 -0
  12. package/chunks/{index.d91bd77a.mjs → index.57f871af.mjs} +7 -7
  13. package/chunks/{init.f0a03127.mjs → init.47f219b4.mjs} +2 -2
  14. package/chunks/input-number-mixin.41a066be.mjs +60 -0
  15. package/chunks/{util.7844e2c2.mjs → util.ae730cde.mjs} +21 -21
  16. package/count-up/index.mjs +17 -14
  17. package/data-box/index.mjs +18 -19
  18. package/data-display/index.mjs +17 -18
  19. package/data-icons/index.mjs +16 -17
  20. package/data-panel/index.mjs +20 -21
  21. package/data-pay/index.mjs +15 -16
  22. package/data-progress/index.mjs +19 -20
  23. package/data-rotate/index.mjs +35 -36
  24. package/data-table-picker/index.mjs +23 -25
  25. package/data-tabs/index.mjs +15 -16
  26. package/dialog-form/index.mjs +24 -28
  27. package/dynamic-table/index.mjs +34 -35
  28. package/easy-popup/index.mjs +56 -29
  29. package/editable-tree/index.mjs +485 -134
  30. package/element-dialog/index.mjs +127 -37
  31. package/empty-view/index.mjs +31 -13
  32. package/flex-column/index.mjs +1 -1
  33. package/flex-item/index.mjs +1 -1
  34. package/flex-row/index.mjs +1 -1
  35. package/flow/index.mjs +40 -105
  36. package/flow-designer/index.mjs +555 -615
  37. package/flow-node/index.mjs +47 -15
  38. package/flow-viewer/index.mjs +78 -167
  39. package/form-cascader/index.mjs +24 -24
  40. package/form-checkbox-group/index.mjs +35 -79
  41. package/form-date-picker/index.mjs +22 -22
  42. package/form-holder/index.mjs +1 -1
  43. package/form-input/index.mjs +86 -28
  44. package/form-input-email/index.mjs +18 -18
  45. package/form-input-id-card/index.mjs +27 -27
  46. package/form-input-number/index.mjs +59 -219
  47. package/form-input-phone-number/index.mjs +27 -27
  48. package/form-input-tag/index.mjs +38 -160
  49. package/form-input-time/index.mjs +16 -16
  50. package/form-item/index.mjs +146 -15
  51. package/form-item-group/index.mjs +164 -14
  52. package/form-radio-group/index.mjs +41 -41
  53. package/form-select/index.mjs +20 -20
  54. package/form-switch/index.mjs +19 -19
  55. package/form-textarea/index.mjs +29 -29
  56. package/form-view/index.mjs +42 -46
  57. package/fy-array/index.mjs +2 -2
  58. package/fy-cascader/index.mjs +15 -15
  59. package/fy-checkbox/index.mjs +1 -1
  60. package/fy-code/index.mjs +1 -1
  61. package/fy-curd/index.mjs +2821 -210
  62. package/fy-date/index.mjs +59 -17
  63. package/fy-draggable/index.mjs +1 -1
  64. package/fy-dynamic/index.mjs +208 -64
  65. package/fy-empty/index.mjs +29 -12
  66. package/fy-form/index.mjs +743 -178
  67. package/fy-form-design/index.mjs +1013 -1540
  68. package/fy-input/index.mjs +105 -17
  69. package/fy-input-color/index.mjs +67 -16
  70. package/fy-input-icon/index.mjs +119 -23
  71. package/fy-input-map/index.mjs +14 -15
  72. package/fy-input-number/index.mjs +1 -1
  73. package/fy-input-table/index.mjs +19 -21
  74. package/fy-input-tree/index.mjs +3 -3
  75. package/fy-radio/index.mjs +1 -1
  76. package/fy-rate/index.mjs +50 -16
  77. package/fy-select/index.mjs +126 -29
  78. package/fy-slider/index.mjs +2 -2
  79. package/fy-switch/index.mjs +1 -1
  80. package/fy-tabs/index.mjs +51 -15
  81. package/fy-time/index.mjs +1 -1
  82. package/fy-title/index.mjs +1 -1
  83. package/fy-tree/index.mjs +23 -25
  84. package/fy-u-editor/index.mjs +1 -1
  85. package/fy-upload/index.mjs +2 -2
  86. package/highlight-j-s/index.mjs +29 -19
  87. package/icon-temp/index.mjs +30 -12
  88. package/iframe-window/index.mjs +18 -19
  89. package/image-cropper/index.mjs +22 -23
  90. package/image-preview/index.mjs +1 -1
  91. package/input-number/index.mjs +173 -63
  92. package/license/index.mjs +1 -1
  93. package/loading-view/index.mjs +33 -15
  94. package/login/index.mjs +1 -1
  95. package/nav-bar/index.mjs +31 -15
  96. package/package.json +1 -1
  97. package/page/index.mjs +20 -12
  98. package/page-header/index.mjs +34 -13
  99. package/page-index-top/index.mjs +53 -100
  100. package/page-skeleton/index.mjs +35 -18
  101. package/page-skeleton-new/index.mjs +15 -16
  102. package/pageable-table/index.mjs +228 -86
  103. package/pageable-view/index.mjs +1 -1
  104. package/present-view/index.mjs +71 -75
  105. package/record-video/index.mjs +1 -1
  106. package/resize-observer/index.mjs +29 -21
  107. package/search/index.mjs +9 -9
  108. package/search-popover/index.mjs +1 -1
  109. package/sign/index.mjs +1 -1
  110. package/split-pane/index.mjs +45 -40
  111. package/swiper/index.mjs +13 -14
  112. package/table-view/index.mjs +97 -631
  113. package/text-ellipsis/index.mjs +1 -1
  114. package/tinymce-editor/index.mjs +63 -63
  115. package/toolbar/index.mjs +208 -15
  116. package/toolbar-button/index.mjs +56 -30
  117. package/verify/index.mjs +1 -1
  118. package/watermark/index.mjs +1 -1
  119. package/web-types.json +1 -1
  120. package/x-input-tag/index.mjs +118 -49
  121. package/chunks/CountUp.f1a19f35.mjs +0 -124
  122. package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +0 -8
  123. package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +0 -32
  124. package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +0 -356
  125. package/chunks/ElementDialog.d8f3105c.mjs +0 -211
  126. package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +0 -95
  127. package/chunks/EmptyView.e2430422.mjs +0 -51
  128. package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +0 -23
  129. package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +0 -37
  130. package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +0 -65
  131. package/chunks/FormItem.2920ac0c.mjs +0 -45
  132. package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +0 -258
  133. package/chunks/FormItemGroup.41daddb6.mjs +0 -64
  134. package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +0 -155
  135. package/chunks/FyCurd.8acd2983.mjs +0 -548
  136. package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +0 -2945
  137. package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +0 -47
  138. package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +0 -151
  139. package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +0 -22
  140. package/chunks/FyForm.0294e494.mjs +0 -439
  141. package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +0 -737
  142. package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +0 -93
  143. package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +0 -56
  144. package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +0 -158
  145. package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +0 -39
  146. package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +0 -102
  147. package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +0 -41
  148. package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +0 -15
  149. package/chunks/IconTemp.42c48e1f.mjs +0 -32
  150. package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +0 -23
  151. package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +0 -172
  152. package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +0 -23
  153. package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +0 -21
  154. package/chunks/Page.81f4b8d9.mjs +0 -32
  155. package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +0 -13
  156. package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +0 -26
  157. package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +0 -88
  158. package/chunks/PageableTable.333cbdc1.mjs +0 -335
  159. package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +0 -148
  160. package/chunks/ResizeObserver.60f728f0.mjs +0 -54
  161. package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +0 -13
  162. package/chunks/TableColumn.8503272e.mjs +0 -106
  163. package/chunks/Toolbar.5c539dbb.mjs +0 -24
  164. package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +0 -275
  165. package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +0 -31
  166. package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +0 -74
@@ -1,144 +1,22 @@
1
- var b = Object.defineProperty, v = Object.defineProperties;
2
- var $ = Object.getOwnPropertyDescriptors;
3
- var p = Object.getOwnPropertySymbols;
4
- var M = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
5
- var d = (e, r, t) => r in e ? b(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, o = (e, r) => {
1
+ var p = Object.defineProperty;
2
+ var a = Object.getOwnPropertySymbols;
3
+ var c = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
4
+ var l = (e, r, t) => r in e ? p(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, n = (e, r) => {
6
5
  for (var t in r || (r = {}))
7
- M.call(r, t) && d(e, t, r[t]);
8
- if (p)
9
- for (var t of p(r))
10
- V.call(r, t) && d(e, t, r[t]);
6
+ c.call(r, t) && l(e, t, r[t]);
7
+ if (a)
8
+ for (var t of a(r))
9
+ m.call(r, t) && l(e, t, r[t]);
11
10
  return e;
12
- }, c = (e, r) => v(e, $(r));
13
- var l = (e, r, t) => new Promise((n, a) => {
14
- var g = (s) => {
15
- try {
16
- i(t.next(s));
17
- } catch (u) {
18
- a(u);
19
- }
20
- }, y = (s) => {
21
- try {
22
- i(t.throw(s));
23
- } catch (u) {
24
- a(u);
25
- }
26
- }, i = (s) => s.done ? n(s.value) : Promise.resolve(s.value).then(g, y);
27
- i((t = t.apply(e, r)).next());
28
- });
29
- import { _ as j, f as x } from "../chunks/FormItem.2920ac0c.mjs";
30
- import { h as I, n as T } from "../chunks/index.d91bd77a.mjs";
31
- import f from "@web-utils/component/x-input-tag";
11
+ };
12
+ import { f as d } from "../chunks/form-input-mixin.78a567bc.mjs";
13
+ import { d as f, n as _ } from "../chunks/index.57f871af.mjs";
14
+ import s from "@web-utils/component/x-input-tag";
32
15
  import "@web-utils/component/x-input-tag/style.css";
33
- import { s as k, r as F } from "../chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs";
34
- import { n as _ } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
35
- const w = {
36
- name: "XInputTag",
37
- inject: {
38
- elForm: {
39
- default: ""
40
- },
41
- elFormItem: {
42
- default: ""
43
- }
44
- },
45
- props: {
46
- value: {
47
- type: [Array, String],
48
- default: () => []
49
- },
50
- disabled: Boolean,
51
- separator: {
52
- type: String,
53
- default: ","
54
- },
55
- count: {
56
- type: Boolean,
57
- default: !0
58
- },
59
- arrayMode: {
60
- type: Boolean,
61
- default: !0
62
- },
63
- objectMode: {
64
- type: Boolean,
65
- default: !0
66
- }
67
- },
68
- data() {
69
- return {
70
- inputVisible: !1,
71
- inputValue: "",
72
- maxTag: 20
73
- };
74
- },
75
- computed: {
76
- inputDisabled() {
77
- return this.disabled || (this.elForm || {}).disabled;
78
- },
79
- tags: {
80
- get() {
81
- var e, r;
82
- if (this.arrayMode)
83
- return (e = this.value) != null && e.length ? this.objectMode ? this.value.map((t) => t.id > 0 ? t : c(o({}, t), { id: Math.random() })) : this.value : [];
84
- {
85
- const t = ((r = this.value) == null ? void 0 : r.split(this.separator)) || [];
86
- return t.length && t[0] ? t.map((n) => this.objectMode ? { name: n, id: Math.random() } : n) : [];
87
- }
88
- }
89
- }
90
- },
91
- methods: {
92
- showInput() {
93
- return l(this, null, function* () {
94
- this.inputVisible = !0, yield this.$nextTick(), this.$refs.saveTagInput.$refs.input.focus();
95
- });
96
- },
97
- handleClose(e) {
98
- const r = this.tags.filter((t) => t !== e);
99
- this.$emit("input", this.arrayMode ? r : r.map((t) => t.name || t).join(this.separator));
100
- },
101
- handleInputConfirm() {
102
- return l(this, null, function* () {
103
- var r;
104
- if (this.tags.length >= this.maxTag) {
105
- this.$message.warning({ message: "标签已达上限,请删除一些标签再添加!", showClose: !0 }), this.inputVisible = !1, this.inputValue = "";
106
- return;
107
- }
108
- const e = this.inputValue;
109
- if (e) {
110
- if (this.tags.some((n) => (n.name || n) === e)) {
111
- this.inputVisible = !1, this.inputValue = "", this.$message.warning({ message: "标签已存在!", showClose: !0 });
112
- return;
113
- }
114
- const t = [...this.tags];
115
- t.push(this.objectMode ? { id: Date.now(), name: this.inputValue } : this.inputValue), this.$emit("input", this.arrayMode ? t : t.map((n) => n.name || n).join(this.separator)), yield this.$nextTick(), (r = this.elFormItem) == null || r.clearValidate();
116
- }
117
- this.inputVisible = !1, this.inputValue = "";
118
- });
119
- }
120
- }
121
- }, m = {};
122
- var B = /* @__PURE__ */ _(
123
- w,
124
- F,
125
- k,
126
- !1,
127
- P,
128
- null,
129
- null,
130
- null
131
- );
132
- function P(e) {
133
- for (let r in m)
134
- this[r] = m[r];
135
- }
136
- const S = /* @__PURE__ */ function() {
137
- return B.exports;
138
- }();
139
- var C = function() {
16
+ import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
17
+ var b = function() {
140
18
  var e = this, r = e.$createElement, t = e._self._c || r;
141
- return t(j, e._b({
19
+ return t("FormItem", e._b({
142
20
  attrs: {
143
21
  block: e.block,
144
22
  rules: e.computeRules,
@@ -147,7 +25,7 @@ var C = function() {
147
25
  scopedSlots: e._u([{
148
26
  key: "default",
149
27
  fn: function() {
150
- return [t(S, e._g(e._b({
28
+ return [t("XInputTag", e._g(e._b({
151
29
  attrs: {
152
30
  value: e.value,
153
31
  readonly: e.readonly,
@@ -157,8 +35,8 @@ var C = function() {
157
35
  "object-mode": e.objectMode
158
36
  },
159
37
  on: {
160
- input: function(n) {
161
- return e.$emit("input", n);
38
+ input: function(o) {
39
+ return e.$emit("input", o);
162
40
  }
163
41
  }
164
42
  }, "XInputTag", e.inputProps, !1), e.listeners))];
@@ -166,10 +44,10 @@ var C = function() {
166
44
  proxy: !0
167
45
  }, {
168
46
  key: "error",
169
- fn: function(n) {
170
- var a = n.error;
47
+ fn: function(o) {
48
+ var i = o.error;
171
49
  return [e._t("error", null, {
172
- error: a
50
+ error: i
173
51
  })];
174
52
  }
175
53
  }, {
@@ -180,13 +58,13 @@ var C = function() {
180
58
  proxy: !0
181
59
  }], null, !0)
182
60
  }, "FormItem", e.formItemProps, !1));
183
- }, D = [];
184
- const R = Object.keys(f.props).filter((e) => !["value", "placeholder", "disabled"].includes(e)), X = {
61
+ }, v = [];
62
+ const I = Object.keys(s.props).filter((e) => !["value", "placeholder", "disabled"].includes(e)), h = {
185
63
  name: "FormInputTag",
186
64
  components: {
187
- XInputTag: f
65
+ XInputTag: s
188
66
  },
189
- mixins: [x],
67
+ mixins: [d],
190
68
  props: {
191
69
  value: [Array, String],
192
70
  block: {
@@ -204,27 +82,27 @@ const R = Object.keys(f.props).filter((e) => !["value", "placeholder", "disabled
204
82
  },
205
83
  computed: {
206
84
  inputProps() {
207
- return I(o(o({}, T(this.$attrs)), this.$props), R);
85
+ return f(n(n({}, _(this.$attrs)), this.$props), I);
208
86
  }
209
87
  }
210
- }, h = {};
211
- var z = /* @__PURE__ */ _(
212
- X,
213
- C,
214
- D,
88
+ }, u = {};
89
+ var g = /* @__PURE__ */ y(
90
+ h,
91
+ b,
92
+ v,
215
93
  !1,
216
- A,
94
+ k,
217
95
  null,
218
96
  null,
219
97
  null
220
98
  );
221
- function A(e) {
222
- for (let r in h)
223
- this[r] = h[r];
99
+ function k(e) {
100
+ for (let r in u)
101
+ this[r] = u[r];
224
102
  }
225
- const L = /* @__PURE__ */ function() {
226
- return z.exports;
103
+ const B = /* @__PURE__ */ function() {
104
+ return g.exports;
227
105
  }();
228
106
  export {
229
- L as default
107
+ B as default
230
108
  };
@@ -1,21 +1,21 @@
1
1
  var p = Object.defineProperty;
2
2
  var l = Object.getOwnPropertySymbols;
3
- var m = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
3
+ var m = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
4
4
  var i = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, a = (e, t) => {
5
5
  for (var r in t || (t = {}))
6
6
  m.call(t, r) && i(e, r, t[r]);
7
7
  if (l)
8
8
  for (var r of l(t))
9
- c.call(t, r) && i(e, r, t[r]);
9
+ f.call(t, r) && i(e, r, t[r]);
10
10
  return e;
11
11
  };
12
- import { _ as f, f as d } from "../chunks/FormItem.2920ac0c.mjs";
12
+ import { f as c } from "../chunks/form-input-mixin.78a567bc.mjs";
13
13
  import o from "element-ui/lib/time-picker";
14
- import { h as _, n as g } from "../chunks/index.d91bd77a.mjs";
14
+ import { d, n as _ } from "../chunks/index.57f871af.mjs";
15
15
  import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
16
16
  var y = function() {
17
17
  var e = this, t = e.$createElement, r = e._self._c || t;
18
- return r(f, e._b({
18
+ return r("FormItem", e._b({
19
19
  attrs: {
20
20
  rules: e.computeRules,
21
21
  disabled: e.inputDisabled
@@ -67,12 +67,12 @@ var y = function() {
67
67
  proxy: !0
68
68
  }], null, !0)
69
69
  }, "FormItem", e.formItemProps, !1));
70
- }, b = [];
71
- const h = Object.keys(o.props || o.default.props).filter(
70
+ }, g = [];
71
+ const b = Object.keys(o.props || o.default.props).filter(
72
72
  (e) => !["value", "placeholder", "disabled"].includes(e)
73
73
  ), x = {
74
74
  name: "FormInputTime",
75
- mixins: [d],
75
+ mixins: [c],
76
76
  props: {
77
77
  range: Boolean,
78
78
  format: {
@@ -111,27 +111,27 @@ const h = Object.keys(o.props || o.default.props).filter(
111
111
  return "请选择";
112
112
  },
113
113
  inputProps() {
114
- return _(a(a({}, g(this.$attrs)), this.$props), h);
114
+ return d(a(a({}, _(this.$attrs)), this.$props), b);
115
115
  }
116
116
  }
117
117
  }, s = {};
118
- var S = /* @__PURE__ */ v(
118
+ var h = /* @__PURE__ */ v(
119
119
  x,
120
120
  y,
121
- b,
121
+ g,
122
122
  !1,
123
- T,
123
+ S,
124
124
  null,
125
125
  null,
126
126
  null
127
127
  );
128
- function T(e) {
128
+ function S(e) {
129
129
  for (let t in s)
130
130
  this[t] = s[t];
131
131
  }
132
- const $ = /* @__PURE__ */ function() {
133
- return S.exports;
132
+ const R = /* @__PURE__ */ function() {
133
+ return h.exports;
134
134
  }();
135
135
  export {
136
- $ as default
136
+ R as default
137
137
  };
@@ -1,24 +1,155 @@
1
- import { _ as n } from "../chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs";
2
- import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- let _, r;
4
- const t = {};
5
- var s = /* @__PURE__ */ o(
6
- n,
7
- _,
8
- r,
1
+ var M = Object.defineProperty;
2
+ var q = Object.getOwnPropertySymbols;
3
+ var P = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
4
+ var x = (e, r, t) => r in e ? M(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, _ = (e, r) => {
5
+ for (var t in r || (r = {}))
6
+ P.call(r, t) && x(e, t, r[t]);
7
+ if (q)
8
+ for (var t of q(r))
9
+ T.call(r, t) && x(e, t, r[t]);
10
+ return e;
11
+ };
12
+ var h = (e, r, t) => new Promise((i, f) => {
13
+ var s = (o) => {
14
+ try {
15
+ n(t.next(o));
16
+ } catch (a) {
17
+ f(a);
18
+ }
19
+ }, l = (o) => {
20
+ try {
21
+ n(t.throw(o));
22
+ } catch (a) {
23
+ f(a);
24
+ }
25
+ }, n = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(s, l);
26
+ n((t = t.apply(e, r)).next());
27
+ });
28
+ import V from "element-ui/lib/col";
29
+ import z from "element-ui/lib/form-item";
30
+ import { f as B } from "../chunks/form-item-mixin.57cb2019.mjs";
31
+ import { hasOwn as w } from "@web-utils/core";
32
+ import { n as N } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
33
+ const O = {
34
+ name: "FormItem",
35
+ mixins: [B],
36
+ inject: {
37
+ formHolder: {
38
+ default: ""
39
+ },
40
+ formItemConfig: {
41
+ default: null
42
+ }
43
+ },
44
+ computed: {
45
+ gutter() {
46
+ var r;
47
+ let e = this.$parent;
48
+ for (; e && e.$options.componentName !== "ElRow"; )
49
+ e = e.$parent;
50
+ return (r = e == null ? void 0 : e.gutter) != null ? r : 0;
51
+ }
52
+ },
53
+ methods: {
54
+ renderFormItem() {
55
+ var g, v, b;
56
+ const e = this.$createElement, {
57
+ label: r,
58
+ labelWidth: t,
59
+ prop: i,
60
+ rules: f,
61
+ $scopedSlots: s,
62
+ elFormItemProps: l,
63
+ elForm: n,
64
+ formHolder: o,
65
+ formItemClass: a,
66
+ required: u,
67
+ block: k,
68
+ half: y,
69
+ wrapCol: $,
70
+ wrapFormItem: R,
71
+ disabled: W,
72
+ formItemConfig: p,
73
+ getRequireRule: j
74
+ } = this;
75
+ let m = f, d = u, c = u, I = k, C = $;
76
+ p && (w(p, "block") && (I = p.block), w(p, "wrapCol") && (C = p.wrapCol));
77
+ const E = I && y && C ? `calc( 50% - ${this.gutter / 2}px)` : "";
78
+ return W || n != null && n.disabled ? (m = [], o && !o.required && !((g = o.requiredFields) != null && g.includes(i)) && (c = !1)) : (o && !o.required && !((v = o.requiredFields) != null && v.includes(i)) && (d = !1), d && !(m != null && m.length) && i ? m = [j()] : d || (c = !1, m && (m = m.filter((H) => !H.required)))), R ? (
79
+ // eslint-disable-next-line no-undef
80
+ e(z, {
81
+ style: {
82
+ width: E
83
+ },
84
+ key: `${i}-${d}`,
85
+ class: c ? `form-item required ${a || ""}` : `${a || ""}`,
86
+ scopedSlots: s,
87
+ props: _({}, l),
88
+ attrs: {
89
+ label: r,
90
+ "label-width": t,
91
+ prop: i,
92
+ rules: m
93
+ },
94
+ ref: "formItem"
95
+ })
96
+ ) : e("div", [(b = s.default) == null ? void 0 : b.call(s)]);
97
+ },
98
+ clearValidate() {
99
+ return h(this, null, function* () {
100
+ var e, r;
101
+ yield this.$nextTick(), (r = (e = this.$refs.formItem).clearValidate) == null || r.call(e);
102
+ });
103
+ },
104
+ validate() {
105
+ return h(this, null, function* () {
106
+ var e, r;
107
+ yield this.$nextTick(), (r = (e = this.$refs.formItem).validate) == null || r.call(e);
108
+ });
109
+ }
110
+ },
111
+ render() {
112
+ var a, u;
113
+ const e = arguments[0], {
114
+ computeSpan: r,
115
+ wrapCol: t,
116
+ formItemConfig: i,
117
+ renderFormItem: f,
118
+ elColProps: s,
119
+ $scopedSlots: l,
120
+ unwrap: n
121
+ } = this;
122
+ let o = t;
123
+ return i && w(i, "wrapCol") && (o = i.wrapCol), n ? e("div", [(a = l.default) == null ? void 0 : a.call(l)]) : o ? (
124
+ // eslint-disable-next-line no-undef
125
+ e(V, {
126
+ props: _({}, s),
127
+ attrs: {
128
+ span: r
129
+ }
130
+ }, [f(), (u = l == null ? void 0 : l.below) == null ? void 0 : u.call(l)])
131
+ ) : f();
132
+ }
133
+ };
134
+ let A, D;
135
+ const F = {};
136
+ var G = /* @__PURE__ */ N(
137
+ O,
138
+ A,
139
+ D,
9
140
  !1,
10
- l,
141
+ J,
11
142
  null,
12
143
  null,
13
144
  null
14
145
  );
15
- function l(u) {
16
- for (let e in t)
17
- this[e] = t[e];
146
+ function J(e) {
147
+ for (let r in F)
148
+ this[r] = F[r];
18
149
  }
19
- const m = /* @__PURE__ */ function() {
20
- return s.exports;
150
+ const Z = /* @__PURE__ */ function() {
151
+ return G.exports;
21
152
  }();
22
153
  export {
23
- m as default
154
+ Z as default
24
155
  };
@@ -1,24 +1,174 @@
1
- import { _ as n } from "../chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs";
2
- import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- let _, r;
4
- const t = {};
5
- var s = /* @__PURE__ */ o(
6
- n,
1
+ import m from "element-ui/lib/transitions/collapse-transition";
2
+ import u from "element-ui/lib/row";
3
+ import { isFunction as p } from "@web-utils/core";
4
+ import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
+ const s = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], f = ["$emit", "validate", "clearValidate"], h = {
6
+ name: "FormItemGroup",
7
+ inject: {
8
+ elForm: {
9
+ default: {}
10
+ }
11
+ },
12
+ provide() {
13
+ return {
14
+ elForm: this.formConfig,
15
+ formItemGroup: this
16
+ };
17
+ },
18
+ props: {
19
+ blockTitle: {
20
+ type: String
21
+ },
22
+ active: Boolean,
23
+ enabled: Boolean,
24
+ disabled: Boolean,
25
+ wrapRow: {
26
+ type: Boolean,
27
+ default: !0
28
+ },
29
+ gutter: {
30
+ type: Number,
31
+ default: 20
32
+ },
33
+ collapse: Boolean
34
+ },
35
+ data() {
36
+ const e = {};
37
+ return s.forEach((t) => {
38
+ e[t] = null;
39
+ }), {
40
+ expand: !0,
41
+ formConfig: e
42
+ };
43
+ },
44
+ computed: {
45
+ formCfg() {
46
+ const e = {
47
+ enabled: this.enabled,
48
+ forbidden: this.disabled
49
+ };
50
+ return s.forEach((t) => {
51
+ e[t] = this.elForm[t];
52
+ }), e;
53
+ }
54
+ },
55
+ watch: {
56
+ collapse: {
57
+ immediate: !0,
58
+ handler(e) {
59
+ this.expand = !e;
60
+ }
61
+ },
62
+ formCfg: {
63
+ immediate: !0,
64
+ handler() {
65
+ this.formConfig.disabled = this.isDisabled(), s.forEach((e) => {
66
+ var t;
67
+ e !== "disabled" && (f.includes(e) ? this.formConfig[e] = (t = this.elForm[e]) == null ? void 0 : t.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
68
+ });
69
+ }
70
+ }
71
+ },
72
+ mounted() {
73
+ this.dispatch("FormView", "FormView.addGroup", [this]);
74
+ },
75
+ beforeDestroy() {
76
+ this.dispatch("FormView", "FormView.removeGroup", [this]);
77
+ },
78
+ methods: {
79
+ isDisabled() {
80
+ return this.disabled ? this.disabled : this.enabled ? !this.enabled : this.elForm.disabled;
81
+ },
82
+ dispatch(e, t, r) {
83
+ let i = this.$parent || this.$root, o = i.$options.name;
84
+ for (; i && (!o || o !== e); )
85
+ i = i.$parent, i && (o = i.$options.name);
86
+ i && i.$emit.apply(i, [t].concat(r));
87
+ },
88
+ renderDefault() {
89
+ const e = this.$createElement, {
90
+ wrapRow: t,
91
+ gutter: r,
92
+ formConfig: i,
93
+ $scopedSlots: o
94
+ } = this;
95
+ return p(o.default) ? t ? (
96
+ // eslint-disable-next-line no-undef
97
+ e(u, {
98
+ attrs: {
99
+ gutter: r
100
+ },
101
+ class: "form-item-group-row"
102
+ }, [o.default({
103
+ disabled: i.disabled
104
+ })])
105
+ ) : o.default({
106
+ disabled: i.disabled
107
+ }) : e("EmptyView", {
108
+ attrs: {
109
+ "font-size": "14px",
110
+ "empty-tips": "暂无信息"
111
+ }
112
+ });
113
+ },
114
+ toggle() {
115
+ this.expand = !this.expand;
116
+ },
117
+ open() {
118
+ this.expand = !0;
119
+ }
120
+ },
121
+ render() {
122
+ const e = arguments[0], {
123
+ renderDefault: t,
124
+ blockTitle: r,
125
+ active: i,
126
+ expand: o,
127
+ toggle: l,
128
+ $scopedSlots: n,
129
+ isDisabled: d
130
+ } = this;
131
+ return e("div", {
132
+ class: ["form-item-group", {
133
+ "default-active": i,
134
+ "is-disabled": d()
135
+ }]
136
+ }, [e("div", {
137
+ class: "form-item-group-title",
138
+ on: {
139
+ click: l
140
+ }
141
+ }, [e("span", {
142
+ class: "flex-item"
143
+ }, [r, n["title-right"] ? n["title-right"]() : null]), " ", e("i", {
144
+ class: o ? "el-icon-arrow-down" : "el-icon-arrow-right"
145
+ })]), e(m, [e("div", {
146
+ directives: [{
147
+ name: "show",
148
+ value: o
149
+ }]
150
+ }, [t()])])]);
151
+ }
152
+ };
153
+ let _, b;
154
+ const a = {};
155
+ var g = /* @__PURE__ */ c(
156
+ h,
7
157
  _,
8
- r,
158
+ b,
9
159
  !1,
10
- l,
160
+ v,
11
161
  null,
12
162
  null,
13
163
  null
14
164
  );
15
- function l(u) {
16
- for (let e in t)
17
- this[e] = t[e];
165
+ function v(e) {
166
+ for (let t in a)
167
+ this[t] = a[t];
18
168
  }
19
- const m = /* @__PURE__ */ function() {
20
- return s.exports;
169
+ const C = /* @__PURE__ */ function() {
170
+ return g.exports;
21
171
  }();
22
172
  export {
23
- m as default
173
+ C as default
24
174
  };