asiaint-lowcode 3.1.124 → 3.1.127

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 (42) hide show
  1. package/dist/asiaint-lowcode.d.ts +22 -0
  2. package/dist/asiaint-lowcode.js +1 -1
  3. package/dist/asiaint-lowcode.umd.cjs +204 -203
  4. package/dist/lazy/{Card-C3kpBdLQ.js → Card-HK2i0A7R.js} +1 -1
  5. package/dist/lazy/{Cascader-C90FEXcW.js → Cascader-BhLYyMO9.js} +1 -1
  6. package/dist/lazy/Checkbox-BuaQh4JW.js +101 -0
  7. package/dist/lazy/{Collapse-jKV6far-.js → Collapse-CGhIEDer.js} +1 -1
  8. package/dist/lazy/{Component-TDgjMyU_.js → Component-C17kNanI.js} +1 -1
  9. package/dist/lazy/{Component-nHI51gCH.js → Component-D0NAYCdA.js} +1 -1
  10. package/dist/lazy/{Component-ByrOyzcu.js → Component-DkduXnJY.js} +1 -1
  11. package/dist/lazy/{Component-DCrZrXze.js → Component-bLWzi0lw.js} +1 -1
  12. package/dist/lazy/Component-xssxWCzC.js +45 -0
  13. package/dist/lazy/{CurdCard-BT17Dj27.js → CurdCard-PypMDcL0.js} +1 -1
  14. package/dist/lazy/{Custom-D4CmyIvg.js → Custom-CWqP3xyK.js} +1 -1
  15. package/dist/lazy/{DatePicker-DNvU39mm.js → DatePicker-D_Zz7QfG.js} +1 -1
  16. package/dist/lazy/{DragList-BFpd1I6Y.js → DragList-CMDoKHyG.js} +1 -1
  17. package/dist/lazy/{FilterSearch-Bh0Jsp1x.js → FilterSearch-BsAjblJR.js} +1 -1
  18. package/dist/lazy/{FloatCurd-pQkhaiXp.js → FloatCurd-iAdwDimF.js} +1 -1
  19. package/dist/lazy/{FormList-B530bd2X.js → FormList-B1_qwRgv.js} +1 -1
  20. package/dist/lazy/{Grid-BmiG4ZzT.js → Grid-CmeV3vYT.js} +1 -1
  21. package/dist/lazy/{InfiniteScroll-rn1Gi4_Z.js → InfiniteScroll-WmQ-aQMK.js} +1 -1
  22. package/dist/lazy/{Inline-YBd4VRXq.js → Inline-BBBb3YBl.js} +1 -1
  23. package/dist/lazy/{JsonEdit-Bs6wTmWc.js → JsonEdit-BKJN-0ok.js} +1 -1
  24. package/dist/lazy/{LogList-BYeyjvBM.js → LogList-BQxqcw97.js} +1 -1
  25. package/dist/lazy/{ObjGroup-DL0UBLW5.js → ObjGroup-DKDbk43u.js} +1 -1
  26. package/dist/lazy/{OfferDetails-C51y9eGl.js → OfferDetails-RCMVzMY3.js} +2 -1
  27. package/dist/lazy/{Pagination-1ymRBbEV.js → Pagination-D2ghPkuN.js} +1 -1
  28. package/dist/lazy/{Progress-D7st7BYV.js → Progress-CZEQioNA.js} +1 -1
  29. package/dist/lazy/{Radio-8Ltzylre.js → Radio-CxXYdNJV.js} +2 -2
  30. package/dist/lazy/{SearchSelect-CvwYURhY.js → SearchSelect-BYVIksHr.js} +2 -2
  31. package/dist/lazy/{Select-BR3F3elT.js → Select-NJnxZzl_.js} +2 -2
  32. package/dist/lazy/Table-D92rM9sJ.js +660 -0
  33. package/dist/lazy/{Tabs-Dv_FHXcn.js → Tabs-CQNWNRy_.js} +1 -1
  34. package/dist/lazy/{TextArea-Bs_r2iyM.js → TextArea-DSnsDM5D.js} +1 -1
  35. package/dist/lazy/{Wrapper-DswKesIN.js → Wrapper-DWoKY8gk.js} +1 -1
  36. package/dist/lazy/{index-BQJEI0Bg.js → index-Diyo05ZT.js} +7601 -7521
  37. package/dist/lazy/{useSelect-BVuW-6jY.js → useSelect-BjRc338n.js} +1 -1
  38. package/dist/style.css +2 -2
  39. package/package.json +1 -1
  40. package/dist/lazy/Checkbox-BSJ6OJ7n.js +0 -88
  41. package/dist/lazy/Component-ChK0_8V9.js +0 -35
  42. package/dist/lazy/Table-Bt5sLA1a.js +0 -652
@@ -1,652 +0,0 @@
1
- import { defineComponent as rt, computed as H, inject as U, ref as C, useTemplateRef as it, onMounted as st, onActivated as ut, onBeforeUnmount as ct, readonly as pt, toRefs as dt, onUnmounted as gt, resolveComponent as T, resolveDirective as vt, openBlock as r, createElementBlock as d, normalizeClass as L, createVNode as m, withCtx as g, createElementVNode as k, toDisplayString as z, unref as v, createCommentVNode as y, createTextVNode as J, withDirectives as Q, createBlock as S, Fragment as $, renderList as Ce, normalizeStyle as X, withModifiers as ke, vShow as Se, mergeProps as ht, nextTick as yt } from "vue";
2
- import { $ as mt, h as F, j as ft, i as Ct, a as kt, I, b as W, C as St, _ as wt } from "./index-BQJEI0Bg.js";
3
- import { ElTable as zt, ElLoading as we, ElMessage as Pt } from "element-plus";
4
- const bt = ["id"], Bt = { class: "custom-slot" }, Nt = {
5
- key: 0,
6
- class: "poll-wrapper"
7
- }, Rt = { style: { color: "#666666" } }, _t = { style: { color: "var(--el-color-primary)" } }, Tt = { style: { color: "var(--el-color-primary)" } }, $t = { class: "empty-content" }, Mt = ["title"], Lt = ["title", "onClick"], It = {
8
- key: 1,
9
- class: "icon-text-wrapper"
10
- }, Dt = ["title", "onClick"], xt = { key: 2 }, Vt = ["title"], At = { class: "row-btn-wrapper" }, Et = /* @__PURE__ */ rt({
11
- __name: "Table",
12
- props: {
13
- title: {},
14
- key: {},
15
- rulePath: {},
16
- rowKey: {},
17
- showDynamicSearch: { type: Boolean },
18
- multipleSelection: { type: Boolean },
19
- highlightCurrentRow: { type: Boolean },
20
- "highlight-current-row": { type: Boolean },
21
- stripe: { type: Boolean },
22
- rowClick: {},
23
- rowDbClick: {},
24
- sizeChange: {},
25
- pageChange: {},
26
- topBtns: {},
27
- rowBtns: {},
28
- rowBtnsLabel: {},
29
- rowBtnsWidth: {},
30
- columns: {},
31
- hidden: { type: Boolean },
32
- hiddenPagination: { type: Boolean },
33
- handleCurrentChange: {},
34
- selectable: {},
35
- pageSizes: {},
36
- pagerCount: {},
37
- paginationLayout: {},
38
- defaultPageSize: {},
39
- typeSwitch: { type: Boolean },
40
- displayType: { default: "table" },
41
- onMounted: {},
42
- onActivated: {},
43
- height: {},
44
- collapsible: { type: Boolean },
45
- sortable: { type: Boolean, default: !0 },
46
- paginationPosition: {},
47
- totalText: { default: "{{ `Showing ${$total} matching tickets`}}" },
48
- onPollChange: {},
49
- showPollCheckbox: { type: Boolean },
50
- cardStyle: { type: [Boolean, null, String, Object, Array] },
51
- name: {},
52
- gridColumns: {}
53
- },
54
- setup(ze, { expose: Pe }) {
55
- const n = ze, Y = (e) => e == null ? void 0 : e.replace(/ /g, " "), Z = (e) => {
56
- if (e == null) return "0";
57
- let t = String(e);
58
- return typeof e == "string" && /^0+[1-9]/.test(t) && (t = t.replace(/^0+/, "")), t.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
59
- }, D = H(() => n.displayType ? n.displayType : n.typeSwitch ? "card" : "table"), be = U("ruleModule", void 0), ee = U("ruleMap", void 0), c = H(() => n.rulePath && ee[n.rulePath] ? ee[n.rulePath] : be), h = U("pageMethodMap", {}), x = U("getGlobalParams", () => {
60
- }), te = U(mt), oe = te ? te.translateFn : null, N = C(), ne = C(), Be = (e, t, a) => {
61
- p.value[e] && (p.value[e][t] = a);
62
- }, Ne = (e, t) => {
63
- const a = n.columns.find((s) => s.key === e);
64
- a && (a.hidden = !t);
65
- }, K = (e, t, a, s) => {
66
- try {
67
- c.value[e.onClick](h, t, a, s), s == null || s.stopPropagation();
68
- } catch (w) {
69
- console.error(w + `
70
- onClick: ${e.onClick}`);
71
- }
72
- }, Re = (e) => {
73
- if (n.rowClick)
74
- try {
75
- c.value[n.rowClick](h, e);
76
- } catch (t) {
77
- console.error(
78
- t + `
79
-
80
- rulePath: ${c.value.rulePath}
81
-
82
- handleRowClick: ${n.rowClick}
83
- `
84
- );
85
- }
86
- }, _e = (e) => {
87
- if (n.rowDbClick)
88
- try {
89
- c.value[n.rowDbClick](h, e);
90
- } catch (t) {
91
- console.error(t);
92
- }
93
- }, Te = C([]), $e = (e) => {
94
- Te.value = e;
95
- }, Me = (e, t) => {
96
- if (!n.selectable)
97
- return !0;
98
- try {
99
- return c.value[n.selectable](h, e, t);
100
- } catch (a) {
101
- console.error(a);
102
- }
103
- return !0;
104
- }, Le = () => {
105
- var e;
106
- (e = N.value) == null || e.clearSelection();
107
- }, Ie = (e, t) => {
108
- var a, s;
109
- if (n.rowKey) {
110
- const w = p.value.find((V) => V[n.rowKey] === e);
111
- if (!w)
112
- return;
113
- t === void 0 ? (a = N.value) == null || a.toggleRowSelection(w) : (s = N.value) == null || s.toggleRowSelection(w, t);
114
- } else
115
- return console.error("rowKey is required");
116
- }, De = () => p.value, ae = C(), le = (e) => {
117
- if (ae.value = e, !!n.handleCurrentChange)
118
- try {
119
- c.value[n.handleCurrentChange](h, e);
120
- } catch (t) {
121
- console.error(t);
122
- }
123
- }, xe = () => ae.value, Ve = () => {
124
- var e;
125
- return (e = N.value) == null ? void 0 : e.getSelectionRows();
126
- }, Ae = async () => !0, Ee = (e, t) => {
127
- var s;
128
- const a = (s = n.topBtns) == null ? void 0 : s.find((w) => w.key === e);
129
- a && (a.hidden = t);
130
- }, Ue = (e, t) => {
131
- var s;
132
- const a = (s = n.rowBtns) == null ? void 0 : s.find((w) => w.key === e);
133
- a && (a.condition = !t);
134
- }, R = C(0), Fe = (e) => {
135
- R.value = e;
136
- }, Ke = () => R.value, i = C({ pageNum: 1, pageSize: n.defaultPageSize || 10 }), b = C({ pageNum: 1, pageSize: n.defaultPageSize || 10 }), je = () => i.value, He = (e) => {
137
- let t = !1;
138
- return e.pageNum !== void 0 && e.pageNum > -1 && (i.value.pageNum !== e.pageNum && (t = !0), i.value.pageNum = e.pageNum), e.pageSize !== void 0 && e.pageSize > -1 && (i.value.pageSize !== e.pageSize && (t = !0), i.value.pageSize = e.pageSize), { pagination: i.value, isChange: t };
139
- }, re = async () => {
140
- if (i.value.pageNum = 1, !n.sizeChange)
141
- return;
142
- const e = we.service({
143
- target: `#${n.name}`,
144
- text: "Loading..."
145
- });
146
- try {
147
- await c.value[n.sizeChange](h, i.value), b.value.pageNum = i.value.pageNum, b.value.pageSize = i.value.pageSize;
148
- } catch (t) {
149
- console.error(t), i.value.pageNum = b.value.pageNum, i.value.pageSize = b.value.pageSize;
150
- } finally {
151
- e.close();
152
- }
153
- }, ie = async () => {
154
- if (!n.pageChange)
155
- return;
156
- const e = we.service({
157
- target: `#${n.name}`,
158
- text: "Loading..."
159
- });
160
- try {
161
- await c.value[n.pageChange](h, i.value), b.value.pageNum = i.value.pageNum, b.value.pageSize = i.value.pageSize;
162
- } catch (t) {
163
- console.error(t), i.value.pageNum = b.value.pageNum, i.value.pageSize = b.value.pageSize;
164
- } finally {
165
- e.close();
166
- }
167
- }, We = (e) => {
168
- var t, a;
169
- console.log("zytest---selectRow-row", e), D.value === "card" ? (t = ne.value) == null || t.selectRow(e) : (a = N.value) == null || a.setCurrentRow(e);
170
- }, Ge = (e) => {
171
- var t;
172
- (t = N.value) == null || t.setCurrentRow(p.value[e]);
173
- }, qe = (e, t, a) => {
174
- n.columns.forEach((s) => {
175
- s.key === e && s[t] && (s[t] = a);
176
- });
177
- }, p = C([]), Oe = (e) => {
178
- p.value = e || [];
179
- }, Je = (e = {}) => {
180
- p.value.push(e);
181
- }, Qe = (e) => {
182
- e >= 0 && e < p.value.length && p.value.splice(e, 1);
183
- }, Xe = async () => {
184
- p.value = [...p.value];
185
- }, se = it("rootRef"), _ = (e, t) => {
186
- const a = oe ? oe(e, t) : t[e.key];
187
- if (!e.encrypted || !a)
188
- return a;
189
- const s = `${a}`;
190
- return s.length <= 4 ? "*".repeat(s.length) : s.slice(0, -4) + "****";
191
- }, Ye = (e, t) => {
192
- if (!e.getTextStyle || !c.value)
193
- return {};
194
- try {
195
- return c.value[e.getTextStyle](h, t, e);
196
- } catch (a) {
197
- console.error(a);
198
- }
199
- }, B = (e, t) => {
200
- if (!(!e.getIconInfo || !c.value))
201
- try {
202
- return c.value[e.getIconInfo](h, t, e);
203
- } catch (a) {
204
- console.error(a);
205
- }
206
- }, j = (e, t) => {
207
- if (!(!e.getIconPopoverContent || !c.value))
208
- try {
209
- return c.value[e.getIconPopoverContent](h, t, e);
210
- } catch (a) {
211
- console.error(a);
212
- }
213
- }, Ze = (e, t) => {
214
- if (!(!e.getCustomContent || !c.value))
215
- try {
216
- return c.value[e.getCustomContent](h, t, e);
217
- } catch (a) {
218
- console.error(a);
219
- }
220
- }, et = H(() => !n.rowBtns || n.rowBtns.length === 0 || !p.value || p.value.length === 0 ? !1 : p.value.some(
221
- (e) => {
222
- var t;
223
- return (t = n.rowBtns) == null ? void 0 : t.some((a) => a.condition === void 0 || a.condition === null ? !0 : F(a.condition, {
224
- $row: e,
225
- $globalParams: x()
226
- }));
227
- }
228
- )), ue = ft(), G = C(n.showPollCheckbox || !1), ce = C(10), f = C(10), tt = (e) => {
229
- try {
230
- n.onPollChange && c.value[n.onPollChange](h, e ? f.value : 0);
231
- } catch (t) {
232
- console.error(t);
233
- }
234
- }, ot = (e) => {
235
- if (f.value = Number(e), Number.isInteger(f.value) || (f.value = Math.floor(f.value)), f.value <= 0 || f.value > 99) {
236
- f.value = ce.value, Pt.warning("Incorrect input. Please input number in 1-99 seconds");
237
- return;
238
- }
239
- try {
240
- n.onPollChange && (c.value[n.onPollChange](h, f.value), ce.value = f.value);
241
- } catch (t) {
242
- console.error(t);
243
- }
244
- }, nt = C(void 0), at = H(() => nt.value || n.height), q = C(!1), lt = (e) => {
245
- q.value = e;
246
- }, pe = async () => {
247
- if (!n.onMounted || !c.value)
248
- return;
249
- await yt();
250
- const e = n.onMounted;
251
- try {
252
- c.value[e](h);
253
- } catch (t) {
254
- console.error(t);
255
- }
256
- }, de = async () => {
257
- if (!n.onActivated || !c.value)
258
- return;
259
- const e = n.onActivated;
260
- try {
261
- c.value[e](h);
262
- } catch (t) {
263
- console.error(t);
264
- }
265
- };
266
- st(async () => {
267
- await pe();
268
- }), ut(() => {
269
- de();
270
- }), ct(() => {
271
- });
272
- const ge = pt({
273
- ...dt(n),
274
- setCellData: Be,
275
- clearSelection: Le,
276
- getData: De,
277
- getCurrentRow: xe,
278
- getSelectedRows: Ve,
279
- addRow: Je,
280
- deleteRow: Qe,
281
- refresh: Xe,
282
- validate: Ae,
283
- setData: Oe,
284
- selectRow: We,
285
- selectRowNum: Ge,
286
- setTotal: Fe,
287
- getTotal: Ke,
288
- getPagination: je,
289
- setPagination: He,
290
- setTopBtnHidden: Ee,
291
- setColVisible: Ne,
292
- setColumn: qe,
293
- setRowsBtnHidden: Ue,
294
- pollEnabled: G,
295
- pollInterval: f,
296
- rootRef: se,
297
- mounted: pe,
298
- activated: de,
299
- toggleSelection: Ie,
300
- setLoading: lt,
301
- type: "table"
302
- });
303
- if (n.name) {
304
- const e = Ct(n.name, ge);
305
- gt(() => {
306
- e();
307
- });
308
- }
309
- return Pe(ge), (e, t) => {
310
- const a = T("el-checkbox"), s = T("el-input"), w = T("el-pagination"), V = T("el-table-column"), O = T("el-popover"), ve = T("el-tooltip"), he = T("el-button"), ye = vt("loading");
311
- return e.hidden ? y("", !0) : (r(), d("div", {
312
- key: 0,
313
- class: L(["table-render", {
314
- [e.name]: !0,
315
- "top-pagination": e.paginationPosition === "top"
316
- }]),
317
- ref_key: "rootRef",
318
- ref: se,
319
- id: e.name
320
- }, [
321
- e.paginationPosition === "top" ? (r(), d("div", {
322
- key: 0,
323
- class: L(["pagination-wrapper", {
324
- cardlistPadding: D.value === "card"
325
- }])
326
- }, [
327
- m(w, {
328
- layout: e.paginationLayout || "slot ,sizes, prev, pager, next",
329
- total: R.value,
330
- "page-sizes": e.pageSizes || [5, 6, 10, 20, 30, 40],
331
- "default-page-size": e.defaultPageSize,
332
- "current-page": i.value.pageNum,
333
- "onUpdate:currentPage": t[2] || (t[2] = (o) => i.value.pageNum = o),
334
- "page-size": i.value.pageSize,
335
- "onUpdate:pageSize": t[3] || (t[3] = (o) => i.value.pageSize = o),
336
- "pager-count": Number(e.pagerCount) || 5,
337
- onSizeChange: re,
338
- onCurrentChange: ie
339
- }, {
340
- default: g(() => [
341
- k("div", Bt, [
342
- e.showPollCheckbox ? (r(), d("div", Nt, [
343
- m(a, {
344
- modelValue: G.value,
345
- "onUpdate:modelValue": t[0] || (t[0] = (o) => G.value = o),
346
- onChange: tt
347
- }, null, 8, ["modelValue"]),
348
- k("span", null, z(v(ue).table.pollText), 1),
349
- m(s, {
350
- type: "number",
351
- style: { width: "45px", height: "28px" },
352
- modelValue: f.value,
353
- "onUpdate:modelValue": t[1] || (t[1] = (o) => f.value = o),
354
- onChange: ot
355
- }, null, 8, ["modelValue"]),
356
- k("span", null, z(v(ue).table.pollUnit), 1)
357
- ])) : y("", !0),
358
- k("span", Rt, [
359
- t[6] || (t[6] = J("Showing ")),
360
- k("span", _t, z(Z(i.value.pageSize < R.value ? i.value.pageSize : R.value)), 1),
361
- t[7] || (t[7] = J(" of ")),
362
- k("span", Tt, z(Z(R.value)), 1),
363
- t[8] || (t[8] = J(" records"))
364
- ])
365
- ])
366
- ]),
367
- _: 1
368
- }, 8, ["layout", "total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
369
- ], 2)) : y("", !0),
370
- Q(k("div", null, [
371
- Q((r(), S(v(zt), {
372
- ref_key: "tableRef",
373
- ref: N,
374
- data: p.value,
375
- "highlight-current-row": "",
376
- "row-key": e.rowKey,
377
- stripe: e.stripe,
378
- onRowClick: Re,
379
- onRowDblclick: _e,
380
- onSelectionChange: $e,
381
- onCurrentChange: le,
382
- height: at.value,
383
- "scrollbar-always-on": ""
384
- }, {
385
- empty: g(() => [
386
- k("div", $t, [
387
- m(v(kt), {
388
- name: "tableEmpty",
389
- style: { width: 56, height: 56 }
390
- }),
391
- t[9] || (t[9] = k("div", null, "No data available,please check", -1))
392
- ])
393
- ]),
394
- default: g(() => [
395
- e.multipleSelection ? (r(), S(V, {
396
- key: 0,
397
- type: "selection",
398
- width: "55",
399
- selectable: Me
400
- })) : y("", !0),
401
- (r(!0), d($, null, Ce(e.columns, (o) => (r(), d($, {
402
- key: o.key
403
- }, [
404
- o.hidden ? y("", !0) : (r(), S(V, {
405
- key: 0,
406
- prop: o.key,
407
- "min-width": o.minWidth,
408
- fixed: o.fixed || !1,
409
- sortable: o.sortable ?? e.sortable ?? !0
410
- }, {
411
- header: g(() => [
412
- k("div", {
413
- class: "text-ellipsis",
414
- title: Y(o.label)
415
- }, z(Y(o.label)), 9, Mt)
416
- ]),
417
- default: g(({ row: u, $index: l }) => {
418
- var A, M, me, fe;
419
- return [
420
- o.type === "link" ? (r(), d("div", {
421
- key: 0,
422
- class: L(["text-ellipsis link-style", { "click-style": o.onClick }]),
423
- title: _(o, u),
424
- onClick: (P) => K(o, u, l, P)
425
- }, z(_(o, u)), 11, Lt)) : o.type === "iconText" ? (r(), d("div", It, [
426
- o.iconPosition === "left" ? (r(), d($, { key: 0 }, [
427
- o.iconPopover && Array.isArray(j(o, u)) ? (r(), S(O, { key: 0 }, {
428
- reference: g(() => {
429
- var P, E;
430
- return [
431
- m(I, {
432
- name: (P = B(o, u)) == null ? void 0 : P.name,
433
- color: (E = B(o, u)) == null ? void 0 : E.color
434
- }, null, 8, ["name", "color"])
435
- ];
436
- }),
437
- default: g(() => [
438
- m(v(W), {
439
- list: j(o, u) || []
440
- }, null, 8, ["list"])
441
- ]),
442
- _: 2
443
- }, 1024)) : (r(), S(I, {
444
- key: 1,
445
- name: (A = B(o, u)) == null ? void 0 : A.name,
446
- color: (M = B(o, u)) == null ? void 0 : M.color
447
- }, null, 8, ["name", "color"]))
448
- ], 64)) : y("", !0),
449
- k("span", {
450
- class: L(["text-ellipsis", { "click-style": o.onClick }]),
451
- title: _(o, u),
452
- onClick: (P) => K(o, u, l, P)
453
- }, z(_(o, u)), 11, Dt),
454
- o.iconPosition === "right" ? (r(), d($, { key: 1 }, [
455
- o.iconPopover && Array.isArray(j(o, u)) ? (r(), S(O, { key: 0 }, {
456
- reference: g(() => {
457
- var P, E;
458
- return [
459
- m(I, {
460
- name: (P = B(o, u)) == null ? void 0 : P.name,
461
- color: (E = B(o, u)) == null ? void 0 : E.color
462
- }, null, 8, ["name", "color"])
463
- ];
464
- }),
465
- default: g(() => [
466
- m(v(W), {
467
- list: j(o, u) || []
468
- }, null, 8, ["list"])
469
- ]),
470
- _: 2
471
- }, 1024)) : (r(), S(I, {
472
- key: 1,
473
- name: (me = B(o, u)) == null ? void 0 : me.name,
474
- color: (fe = B(o, u)) == null ? void 0 : fe.color
475
- }, null, 8, ["name", "color"]))
476
- ], 64)) : y("", !0)
477
- ])) : o.type === "customContent" ? (r(), d("div", xt, [
478
- m(v(W), {
479
- list: Ze(o, u) || []
480
- }, null, 8, ["list"])
481
- ])) : (r(), d("div", {
482
- key: 3,
483
- class: L({ "text-ellipsis": !o.noEllipsis }),
484
- title: _(o, u),
485
- style: X(Ye(o, u))
486
- }, z(_(o, u)), 15, Vt))
487
- ];
488
- }),
489
- _: 2
490
- }, 1032, ["prop", "min-width", "fixed", "sortable"]))
491
- ], 64))), 128)),
492
- et.value && e.rowBtns && e.rowBtns.length > 0 ? (r(), S(V, {
493
- key: 1,
494
- label: e.rowBtnsLabel || "Action",
495
- fixed: "right",
496
- align: "left",
497
- width: e.rowBtnsWidth || (e.rowBtns.length * 34 + 12 > 100 ? e.rowBtns.length * 34 + 12 : 100)
498
- }, {
499
- default: g(({ row: o, $index: u }) => [
500
- k("div", At, [
501
- (r(!0), d($, null, Ce(e.rowBtns, (l) => {
502
- var A;
503
- return r(), d($, {
504
- key: l.key
505
- }, [
506
- l.component === "Popover" ? (r(), S(O, {
507
- key: 0,
508
- title: l.label,
509
- trigger: "click",
510
- "popper-class": "btn-popover",
511
- width: (A = l.children) != null && A.length && l.children[0].width || 400
512
- }, {
513
- reference: g(() => [
514
- l.condition === void 0 || l.condition === null || v(F)(l.condition, {
515
- $row: o,
516
- $globalParams: v(x)()
517
- }) ? (r(), S(he, {
518
- key: 0,
519
- disabled: l.disabled,
520
- link: "",
521
- size: "small",
522
- type: l.type,
523
- onClick: ke((M) => K(l, o, u, M), ["stop"])
524
- }, {
525
- default: g(() => [
526
- m(ve, {
527
- class: "box-item",
528
- effect: "dark",
529
- content: l.label,
530
- placement: "top"
531
- }, {
532
- default: g(() => [
533
- l.icon ? (r(), S(I, {
534
- key: 0,
535
- name: l.icon.name,
536
- color: l.icon.color
537
- }, null, 8, ["name", "color"])) : y("", !0)
538
- ]),
539
- _: 2
540
- }, 1032, ["content"]),
541
- l.buttonText ? (r(), d("span", {
542
- key: 0,
543
- style: X({ color: l.buttonText.color, fontSize: "14px" })
544
- }, z(v(F)(l.buttonText.text, {
545
- $row: o,
546
- $globalParams: v(x)()
547
- })), 5)) : y("", !0)
548
- ]),
549
- _: 2
550
- }, 1032, ["disabled", "type", "onClick"])) : y("", !0)
551
- ]),
552
- default: g(() => [
553
- k("div", null, [
554
- m(v(W), {
555
- list: l.children
556
- }, null, 8, ["list"])
557
- ])
558
- ]),
559
- _: 2
560
- }, 1032, ["title", "width"])) : (r(), d($, { key: 1 }, [
561
- l.condition === void 0 || l.condition === null || v(F)(l.condition, {
562
- $row: o,
563
- $globalParams: v(x)()
564
- }) ? (r(), S(he, {
565
- key: 0,
566
- disabled: l.disabled,
567
- link: "",
568
- size: "small",
569
- type: l.type,
570
- onClick: ke((M) => K(l, o, u, M), ["stop"])
571
- }, {
572
- default: g(() => [
573
- m(ve, {
574
- class: "box-item",
575
- effect: "dark",
576
- content: l.label,
577
- placement: "top"
578
- }, {
579
- default: g(() => [
580
- l.icon ? (r(), S(I, {
581
- key: 0,
582
- name: l.icon.name,
583
- color: l.icon.color
584
- }, null, 8, ["name", "color"])) : y("", !0)
585
- ]),
586
- _: 2
587
- }, 1032, ["content"]),
588
- l.buttonText ? (r(), d("span", {
589
- key: 0,
590
- style: X({ color: l.buttonText.color, fontSize: "14px" })
591
- }, z(v(F)(l.buttonText.text, {
592
- $row: o,
593
- $globalParams: v(x)()
594
- })), 5)) : y("", !0)
595
- ]),
596
- _: 2
597
- }, 1032, ["disabled", "type", "onClick"])) : y("", !0)
598
- ], 64))
599
- ], 64);
600
- }), 128))
601
- ])
602
- ]),
603
- _: 1
604
- }, 8, ["label", "width"])) : y("", !0)
605
- ]),
606
- _: 1
607
- }, 8, ["data", "row-key", "stripe", "height"])), [
608
- [ye, q.value]
609
- ])
610
- ], 512), [
611
- [Se, D.value === "table"]
612
- ]),
613
- Q(m(St, ht({
614
- ref_key: "cardListRef",
615
- ref: ne,
616
- data: p.value
617
- }, n, {
618
- getColText: _,
619
- onCurrentChange: le
620
- }), null, 16, ["data"]), [
621
- [Se, D.value === "card"],
622
- [ye, q.value]
623
- ]),
624
- e.paginationPosition !== "top" ? (r(), d("div", {
625
- key: 1,
626
- class: L(["pagination-wrapper", {
627
- hidePagination: (e.hiddenPagination || p.value.length === 0) && !e.height,
628
- transparentPagination: (e.hiddenPagination || p.value.length === 0) && e.height,
629
- cardlistPadding: D.value === "card"
630
- }])
631
- }, [
632
- m(w, {
633
- layout: e.paginationLayout || "total,sizes, prev, pager, next,jumper",
634
- total: R.value,
635
- "page-sizes": e.pageSizes || [5, 6, 10, 20, 30, 40],
636
- "default-page-size": e.defaultPageSize,
637
- "current-page": i.value.pageNum,
638
- "onUpdate:currentPage": t[4] || (t[4] = (o) => i.value.pageNum = o),
639
- "page-size": i.value.pageSize,
640
- "onUpdate:pageSize": t[5] || (t[5] = (o) => i.value.pageSize = o),
641
- "pager-count": Number(e.pagerCount) || 5,
642
- onSizeChange: re,
643
- onCurrentChange: ie
644
- }, null, 8, ["layout", "total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
645
- ], 2)) : y("", !0)
646
- ], 10, bt));
647
- };
648
- }
649
- }), jt = /* @__PURE__ */ wt(Et, [["__scopeId", "data-v-261ba305"]]);
650
- export {
651
- jt as default
652
- };