@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,337 +0,0 @@
1
- import x from "element-ui/lib/table-column";
2
- import { _ as C } from "./helper.BiMLcEEk.mjs";
3
- import { h as y } from "vue";
4
- import { hyphenate as N } from "@web-utils/core";
5
- import { getDictTreeByType as V, remote as E } from "../configComponents.mjs";
6
- import { n as D } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
7
- const ct = (t) => {
8
- const e = {};
9
- for (const n in t)
10
- e[N(n)] = t[n];
11
- return e;
12
- }, O = (t, e = "id", n = "label") => {
13
- const s = [];
14
- function l(o, i) {
15
- if (!o) return;
16
- const r = [...i, { [e]: o[e], [n]: o[n] }];
17
- if (!o.children || o.children.length === 0) {
18
- s.push(r);
19
- return;
20
- }
21
- o.children.forEach((c) => {
22
- l(c, r);
23
- });
24
- }
25
- return t.forEach((o) => l(o, [])), s;
26
- }, v = (t) => {
27
- const e = [];
28
- return t && (isArray(t) ? t.forEach((n) => {
29
- isArray(n) ? e.push(...v(n)) : n && e.push(n);
30
- }) : t && e.push(t)), e;
31
- }, F = (t, e = "id", n = "label") => {
32
- const s = [];
33
- return O(t).forEach((l) => {
34
- const o = [], i = [];
35
- for (let r = 0; r < l.length; r++)
36
- o.push(l[r][e]), i.push(l[r][n]);
37
- s.push({
38
- value: o.join("/"),
39
- label: i.join("/")
40
- });
41
- }), s;
42
- }, M = (t, e = "id", n = "label") => {
43
- const s = {};
44
- return O(t).forEach((l) => {
45
- const o = [], i = [];
46
- for (let r = 0; r < l.length; r++)
47
- o.push(l[r][e]), i.push(l[r][n]);
48
- s[o.join("/")] = {
49
- value: o.join("/"),
50
- label: i.join("/")
51
- };
52
- }), s;
53
- }, p = {}, T = {}, u = {}, P = (t, e = !0, { options: n, treeDict: s, idAsValue: l, labelAsValue: o } = {}) => {
54
- let i = t;
55
- s && (i = `${t}-${l}-${o}${n ? "-options" : ""}`);
56
- const r = p[i];
57
- return e && r ? r : s ? H(t, e, { idAsValue: l, labelAsValue: o }) : k(t, e);
58
- }, k = (t, e = !0) => {
59
- if (u[t])
60
- return u[t];
61
- const n = new Promise((s, l) => {
62
- e && p[t] ? s(p[t]) : E(t).then((o) => {
63
- let i = o.data.data;
64
- if (e) {
65
- const r = {};
66
- i.forEach(({ label: c, value: a }) => {
67
- r[a] = Object.freeze({ label: c, value: a });
68
- }), T[t] = r, i = Object.freeze(i), p[t] = i;
69
- }
70
- u[t] = null, s(i);
71
- }).catch((o) => {
72
- u[t] = null, l(o);
73
- });
74
- });
75
- return u[t] = n, n;
76
- }, H = (t, e = !0, { idAsValue: n, labelAsValue: s } = {}) => {
77
- const l = `${t}-${n}-${s}`;
78
- if (u[l])
79
- return u[l];
80
- const o = new Promise((i, r) => {
81
- e && p[l] ? i(p[l]) : V(t, { idAsValue: n, labelAsValue: s }).then((c) => {
82
- const a = c.data.data;
83
- e && (p[l] = a, p[`${l}-options`] = F(a), T[l] = M(a)), u[l] = null, i(a);
84
- }).catch((c) => {
85
- u[l] = null, r(c);
86
- });
87
- });
88
- return u[l] = o, o;
89
- }, K = async (t, e, n = !0, { treeDict: s, idAsValue: l, labelAsValue: o } = {}) => {
90
- let i = t;
91
- s && (i = `${t}-${l}-${o}`);
92
- const r = T[i];
93
- let c;
94
- if (n && r)
95
- c = r[e];
96
- else {
97
- let a = await P(t, n, { treeDict: s, idAsValue: l, labelAsValue: o });
98
- if (n)
99
- c = T[i][e];
100
- else {
101
- s && (a = F(a));
102
- for (let h = 0; h < a.length; h++) {
103
- const m = a[h];
104
- if (m.value === e) {
105
- c = m;
106
- break;
107
- }
108
- }
109
- }
110
- }
111
- return c;
112
- }, z = async (t, e, n = !0, { treeDict: s, idAsValue: l, labelAsValue: o } = {}) => {
113
- var i;
114
- return ((i = await K(t, e, n, { treeDict: s, idAsValue: l, labelAsValue: o })) == null ? void 0 : i.label) || e || "";
115
- }, I = {
116
- name: "DictRender",
117
- inheritAttrs: !1,
118
- props: {
119
- row: Object,
120
- column: Object,
121
- dictType: String,
122
- options: Array,
123
- treeDict: Boolean,
124
- idAsValue: {
125
- type: Boolean,
126
- default: !0
127
- },
128
- labelAsValue: Boolean
129
- },
130
- data() {
131
- return {
132
- label: ""
133
- };
134
- },
135
- computed: {
136
- value() {
137
- return this.row[this.column.property];
138
- }
139
- },
140
- watch: {
141
- value: {
142
- immediate: !0,
143
- async handler() {
144
- var t, e;
145
- this.dictType ? this.label = await z(this.dictType, this.value, !0, {
146
- treeDict: this.treeDict,
147
- idAsValue: this.idAsValue,
148
- labelAsValue: this.labelAsValue
149
- }) : this.label = ((e = (t = this.options) == null ? void 0 : t.find((n) => `${n.value}` == `${this.value}`)) == null ? void 0 : e.label) ?? `${this.value}`;
150
- }
151
- }
152
- },
153
- render() {
154
- return y("span", C([{}, {
155
- on: this.$listeners
156
- }, {}, {
157
- domProps: this.$attrs
158
- }]), [this.label]);
159
- }
160
- }, U = null, L = null;
161
- var R = /* @__PURE__ */ D(
162
- I,
163
- U,
164
- L,
165
- !1,
166
- null,
167
- null
168
- );
169
- const W = R.exports, J = {
170
- props: {
171
- type: {
172
- type: String,
173
- default: "default"
174
- },
175
- label: String,
176
- className: String,
177
- labelClassName: String,
178
- property: String,
179
- prop: String,
180
- width: {},
181
- minWidth: {},
182
- renderHeader: Function,
183
- sortable: {
184
- type: [Boolean, String],
185
- default: !0
186
- },
187
- sortMethod: Function,
188
- sortBy: [String, Function, Array],
189
- resizable: {
190
- type: Boolean,
191
- default: !0
192
- },
193
- columnKey: String,
194
- align: String,
195
- headerAlign: String,
196
- showTooltipWhenOverflow: Boolean,
197
- clickable: Boolean,
198
- cellClick: Function,
199
- showOverflowTooltip: {
200
- type: Boolean,
201
- default: !0
202
- },
203
- fixed: [Boolean, String],
204
- formatter: Function,
205
- selectable: Function,
206
- reserveSelection: Boolean,
207
- filterMethod: Function,
208
- filteredValue: Array,
209
- filters: Array,
210
- filterPlacement: String,
211
- filterMultiple: {
212
- type: Boolean,
213
- default: !0
214
- },
215
- index: [Number, Function],
216
- sortOrders: {
217
- type: Array,
218
- default() {
219
- return ["ascending", "descending", null];
220
- },
221
- validator(t) {
222
- return t.every((e) => ["ascending", "descending", null].indexOf(e) > -1);
223
- }
224
- },
225
- dictType: String,
226
- options: Array,
227
- autoUpdate: Boolean,
228
- treeDict: Boolean,
229
- idAsValue: {
230
- type: Boolean,
231
- default: !0
232
- },
233
- labelAsValue: Boolean
234
- }
235
- }, X = {
236
- selection: !0,
237
- "single-selection": !0,
238
- index: !0,
239
- expand: !0
240
- }, q = (t, e, n, s, l) => {
241
- var i;
242
- const o = t.rowDbClick || ((i = t.$children.find((r) => r.$options.name === "TableView")) == null ? void 0 : i.rowDbClick);
243
- o == null || o(e, n, s, l);
244
- }, G = (t) => {
245
- let e = t.target;
246
- for (; e && e.tagName.toUpperCase() !== "HTML"; ) {
247
- if (e.tagName.toUpperCase() === "TD")
248
- return e;
249
- e = e.parentNode;
250
- }
251
- return null;
252
- }, Q = () => {
253
- }, Y = (t) => !v(t).length, Z = {
254
- name: "TableColumn",
255
- functional: !0,
256
- mixins: [J],
257
- render(t, {
258
- data: e,
259
- props: n,
260
- children: s,
261
- parent: l,
262
- listeners: {
263
- click: o
264
- }
265
- }) {
266
- const {
267
- scopedSlots: i,
268
- ...r
269
- } = e, {
270
- clickable: c,
271
- cellClick: a,
272
- ...h
273
- } = n, m = {
274
- ...i || {}
275
- }, B = X[n.type];
276
- if (!B) {
277
- const $ = i == null ? void 0 : i.default, b = c || o || a;
278
- (b || n.dictType || n.options) && (m.default = (S) => {
279
- const {
280
- row: f,
281
- column: d
282
- } = S, A = b ? (_) => {
283
- const w = G(_);
284
- o || a ? (o == null || o(f, d, f, d, w, _), a == null || a(f, d, f, d, w, _)) : q(l, f, d, w, _);
285
- } : Q;
286
- let g = $ == null ? void 0 : $(S);
287
- return Y(g) && (g = null), (n.dictType || n.options) && !g ? y(W, {
288
- class: {
289
- "is-clickable": b
290
- },
291
- on: {
292
- click: A
293
- },
294
- attrs: {
295
- row: f,
296
- column: d,
297
- dictType: n.dictType,
298
- treeDict: n.treeDict,
299
- idAsValue: n.idAsValue,
300
- labelAsValue: n.labelAsValue,
301
- options: n.options
302
- }
303
- }) : b ? y("span", {
304
- class: "is-clickable",
305
- on: {
306
- click: A
307
- }
308
- }, [g || (f == null ? void 0 : f[d == null ? void 0 : d.property])]) : g;
309
- });
310
- }
311
- const j = {
312
- ...r,
313
- props: {
314
- ...h,
315
- showOverflowTooltip: B ? !1 : h.showOverflowTooltip
316
- }
317
- };
318
- return y(x, C([{}, j, {
319
- scopedSlots: m
320
- }]));
321
- }
322
- }, tt = null, et = null;
323
- var nt = /* @__PURE__ */ D(
324
- Z,
325
- tt,
326
- et,
327
- !1,
328
- null,
329
- null
330
- );
331
- const ut = nt.exports;
332
- export {
333
- ut as T,
334
- W as _,
335
- z as g,
336
- ct as t
337
- };