asiaint-lowcode 3.1.174 → 3.1.176

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 (55) hide show
  1. package/dist/asiaint-lowcode.d.ts +65 -0
  2. package/dist/asiaint-lowcode.js +7 -7
  3. package/dist/asiaint-lowcode.umd.cjs +234 -234
  4. package/dist/lazy/{Card-CdqSVMKp.js → Card-tY03_jsQ.js} +1 -1
  5. package/dist/lazy/{Cascader-D1H3atkH.js → Cascader-CoiEWibG.js} +1 -1
  6. package/dist/lazy/{Checkbox-rxwRKO2L.js → Checkbox-DgAWi7xv.js} +2 -2
  7. package/dist/lazy/{Collapse-C71dCSaP.js → Collapse-DoX4-z6R.js} +2 -2
  8. package/dist/lazy/Component-B1cRXfb6.js +198 -0
  9. package/dist/lazy/{Component-C14aJsIW.js → Component-CEPZFfnv.js} +1 -1
  10. package/dist/lazy/{Component-j-7aSjsD.js → Component-CwFNnxot.js} +1 -1
  11. package/dist/lazy/{Component-D-djkyEJ.js → Component-DYj0-oAE.js} +1 -1
  12. package/dist/lazy/{CurdCard-SpH6JL4Y.js → CurdCard-DfTd52sw.js} +1 -1
  13. package/dist/lazy/{Custom-BU5XOp-r.js → Custom-Dbj0V-xU.js} +1 -1
  14. package/dist/lazy/DatePicker-Bn2V6hsJ.js +73 -0
  15. package/dist/lazy/{DragList-CfBWQeQz.js → DragList-DqreIFnM.js} +1 -1
  16. package/dist/lazy/FilterSearch-DhDZ-EZP.js +149 -0
  17. package/dist/lazy/FloatCurd-Cfkz6IKM.js +268 -0
  18. package/dist/lazy/FloatSearchCurd-CuGQMSfs.js +447 -0
  19. package/dist/lazy/{FormList-Bb8pnChP.js → FormList-iRDxU3y1.js} +1 -1
  20. package/dist/lazy/{Grid-Db2yree5.js → Grid-BdWqDQr5.js} +1 -1
  21. package/dist/lazy/{InfiniteScroll-1DHgbFA8.js → InfiniteScroll-DLdq1kWV.js} +1 -1
  22. package/dist/lazy/{Inline-BjDXhX1N.js → Inline-BUA_Nnzb.js} +1 -1
  23. package/dist/lazy/{JsonEdit-B1SPhwLj.js → JsonEdit-Dza78rMu.js} +1 -1
  24. package/dist/lazy/{LogList-BUDvAMuS.js → LogList-BuZ8Xjtk.js} +1 -1
  25. package/dist/lazy/{ObjGroup-CNIY-lzc.js → ObjGroup-BVYeKRas.js} +1 -1
  26. package/dist/lazy/OfferDetails-BuFlnyVM.js +208 -0
  27. package/dist/lazy/Pagination-DIueKA4T.js +121 -0
  28. package/dist/lazy/Progress-MldyKkep.js +56 -0
  29. package/dist/lazy/{Radio-Ccv92FSa.js → Radio-Bod52dE2.js} +2 -2
  30. package/dist/lazy/{SearchSelect-CegeM7cQ.js → SearchSelect-CzIo7iiM.js} +2 -2
  31. package/dist/lazy/{Select-BwUZLLXi.js → Select-Cy9eA5-X.js} +2 -2
  32. package/dist/lazy/Table-BVg8ydp1.js +598 -0
  33. package/dist/lazy/Tabs-CbJpP5yI.js +154 -0
  34. package/dist/lazy/Tag-DfelP1C7.js +25 -0
  35. package/dist/lazy/{TextArea-BuVvhsWJ.js → TextArea-HCAqMgrp.js} +1 -1
  36. package/dist/lazy/{Title-32bZDihB.js → Title-7fiPAhd5.js} +1 -1
  37. package/dist/lazy/Title.vue_vue_type_script_setup_true_lang-LunhnrZy.js +26 -0
  38. package/dist/lazy/{Wrapper-BLTyLdnw.js → Wrapper-BR-FaBxi.js} +1 -1
  39. package/dist/lazy/{index-BbsPPc14.js → index-1omyaX4F.js} +9420 -9412
  40. package/dist/lazy/{useSelect-DsEZTPfh.js → useSelect-U2g9t7In.js} +1 -1
  41. package/dist/style.css +2 -2
  42. package/package.json +1 -1
  43. package/dist/lazy/Component-BcbHLE_g.js +0 -321
  44. package/dist/lazy/Component-DO3qZWym.js +0 -192
  45. package/dist/lazy/DatePicker-S3D1E9AQ.js +0 -73
  46. package/dist/lazy/FilterSearch-BbAQVwp0.js +0 -149
  47. package/dist/lazy/FloatCurd-1NLXV_L9.js +0 -268
  48. package/dist/lazy/FloatSearchCurd-HU1XecwR.js +0 -447
  49. package/dist/lazy/OfferDetails-Caj8FZUy.js +0 -206
  50. package/dist/lazy/Pagination-BguRKtZy.js +0 -121
  51. package/dist/lazy/Progress-B-vHTTf7.js +0 -54
  52. package/dist/lazy/Table-BAnOjOoV.js +0 -667
  53. package/dist/lazy/Tabs-Dgnv0RAm.js +0 -150
  54. package/dist/lazy/Tag-IQ_W6v0E.js +0 -22
  55. package/dist/lazy/Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js +0 -23
@@ -0,0 +1,598 @@
1
+ import { defineComponent as et, computed as G, inject as M, ref as m, useTemplateRef as tt, onMounted as nt, onActivated as ot, onBeforeUnmount as at, readonly as lt, toRefs as rt, onUnmounted as it, resolveComponent as L, resolveDirective as st, openBlock as r, createElementBlock as g, normalizeClass as I, withDirectives as q, createElementVNode as B, createBlock as y, unref as d, withCtx as h, createVNode as k, toDisplayString as _, createCommentVNode as f, Fragment as R, renderList as pe, normalizeStyle as O, withModifiers as de, vShow as ge, mergeProps as ut, nextTick as ct } from "vue";
2
+ import { $ as pt, h as A, d as dt, i as gt, a as ht, I as N, b as j, C as vt, _ as mt } from "./index-1omyaX4F.js";
3
+ import { ElTable as yt, ElLoading as he } from "element-plus";
4
+ const ft = ["id"], Ct = { class: "empty-content" }, kt = ["title"], wt = ["title", "onClick"], St = {
5
+ key: 1,
6
+ class: "icon-text-wrapper"
7
+ }, bt = ["title", "onClick"], Pt = { key: 2 }, zt = ["title"], Bt = { class: "row-btn-wrapper" }, _t = /* @__PURE__ */ et({
8
+ __name: "Table",
9
+ props: {
10
+ title: {},
11
+ key: {},
12
+ rulePath: {},
13
+ rowKey: {},
14
+ showDynamicSearch: { type: Boolean },
15
+ multipleSelection: { type: Boolean },
16
+ highlightCurrentRow: { type: Boolean },
17
+ handleSelectionChange: {},
18
+ "highlight-current-row": { type: Boolean },
19
+ stripe: { type: Boolean },
20
+ rowClick: {},
21
+ rowDbClick: {},
22
+ sizeChange: {},
23
+ pageChange: {},
24
+ topBtns: {},
25
+ rowBtns: {},
26
+ rowBtnsLabel: {},
27
+ rowBtnsWidth: {},
28
+ columns: {},
29
+ hidden: { type: Boolean },
30
+ hiddenPagination: { type: Boolean },
31
+ handleCurrentChange: {},
32
+ selectable: {},
33
+ pageSizes: {},
34
+ pagerCount: {},
35
+ paginationLayout: {},
36
+ defaultPageSize: {},
37
+ typeSwitch: { type: Boolean },
38
+ displayType: { default: "table" },
39
+ onMounted: {},
40
+ onActivated: {},
41
+ height: {},
42
+ collapsible: { type: Boolean },
43
+ sortable: { type: Boolean, default: !0 },
44
+ paginationPosition: {},
45
+ paginationTopColor: {},
46
+ totalText: { default: "{{ `Showing ${$total} matching tickets`}}" },
47
+ onPollChange: {},
48
+ showPollCheckbox: { type: Boolean },
49
+ cardStyle: { type: [Boolean, null, String, Object, Array] },
50
+ smallPagination: { type: Boolean },
51
+ name: {},
52
+ gridColumns: {},
53
+ heightDifference: {}
54
+ },
55
+ setup(ve, { expose: me }) {
56
+ const o = ve, J = (e) => e == null ? void 0 : e.replace(/ /g, " "), E = G(() => o.displayType ? o.displayType : o.typeSwitch ? "card" : "table"), ye = M("ruleModule", void 0), Q = M("ruleMap", void 0), c = G(() => o.rulePath && Q[o.rulePath] ? Q[o.rulePath] : ye), v = M("pageMethodMap", {}), $ = M("getGlobalParams", () => {
57
+ }), X = M(pt), Y = X ? X.translateFn : null, P = m(), Z = m(), fe = (e, t, a) => {
58
+ p.value[e] && (p.value[e][t] = a);
59
+ }, Ce = (e, t) => {
60
+ const a = o.columns.find((i) => i.key === e);
61
+ a && (a.hidden = !t);
62
+ }, F = (e, t, a, i) => {
63
+ try {
64
+ c.value[e.onClick](v, t, a, i), i == null || i.stopPropagation();
65
+ } catch (C) {
66
+ console.error(C + `
67
+ onClick: ${e.onClick}`);
68
+ }
69
+ }, ke = (e) => {
70
+ if (o.rowClick)
71
+ try {
72
+ c.value[o.rowClick](v, e);
73
+ } catch (t) {
74
+ console.error(
75
+ t + `
76
+
77
+ rulePath: ${c.value.rulePath}
78
+
79
+ handleRowClick: ${o.rowClick}
80
+ `
81
+ );
82
+ }
83
+ }, we = (e) => {
84
+ if (o.rowDbClick)
85
+ try {
86
+ c.value[o.rowDbClick](v, e);
87
+ } catch (t) {
88
+ console.error(t);
89
+ }
90
+ }, Se = m([]), be = (e) => {
91
+ Se.value = e;
92
+ }, Pe = (e, t) => {
93
+ if (!o.selectable)
94
+ return !0;
95
+ try {
96
+ return c.value[o.selectable](v, e, t);
97
+ } catch (a) {
98
+ console.error(a);
99
+ }
100
+ return !0;
101
+ }, ze = () => {
102
+ var e;
103
+ (e = P.value) == null || e.clearSelection();
104
+ }, Be = (e, t) => {
105
+ var a, i;
106
+ if (o.rowKey) {
107
+ const C = p.value.find((U) => U[o.rowKey] === e);
108
+ if (!C)
109
+ return;
110
+ t === void 0 ? (a = P.value) == null || a.toggleRowSelection(C) : (i = P.value) == null || i.toggleRowSelection(C, t);
111
+ } else
112
+ return console.error("rowKey is required");
113
+ }, _e = () => p.value, ee = m(), te = (e) => {
114
+ if (ee.value = e, !!o.handleCurrentChange)
115
+ try {
116
+ c.value[o.handleCurrentChange](v, e || {});
117
+ } catch (t) {
118
+ console.error(t);
119
+ }
120
+ }, Re = () => ee.value, Te = () => {
121
+ var e;
122
+ return (e = P.value) == null ? void 0 : e.getSelectionRows();
123
+ }, Ne = async () => !0, $e = (e, t) => {
124
+ var i;
125
+ const a = (i = o.topBtns) == null ? void 0 : i.find((C) => C.key === e);
126
+ a && (a.hidden = t);
127
+ }, De = (e, t) => {
128
+ var i;
129
+ const a = (i = o.rowBtns) == null ? void 0 : i.find((C) => C.key === e);
130
+ a && (a.condition = !t);
131
+ }, H = m(0), xe = (e) => {
132
+ H.value = e;
133
+ }, Me = () => H.value, u = m({ pageNum: 1, pageSize: o.defaultPageSize || 10 }), S = m({ pageNum: 1, pageSize: o.defaultPageSize || 10 }), Le = () => u.value, Ie = (e) => {
134
+ let t = !1;
135
+ return e.pageNum !== void 0 && e.pageNum > -1 && (u.value.pageNum !== e.pageNum && (t = !0), u.value.pageNum = e.pageNum), e.pageSize !== void 0 && e.pageSize > -1 && (u.value.pageSize !== e.pageSize && (t = !0), u.value.pageSize = e.pageSize), { pagination: u.value, isChange: t };
136
+ }, Ae = async () => {
137
+ if (u.value.pageNum = 1, !o.sizeChange)
138
+ return;
139
+ const e = he.service({
140
+ target: `#${o.name}`,
141
+ text: "Loading..."
142
+ });
143
+ try {
144
+ await c.value[o.sizeChange](v, u.value), S.value.pageNum = u.value.pageNum, S.value.pageSize = u.value.pageSize;
145
+ } catch (t) {
146
+ console.error(t), u.value.pageNum = S.value.pageNum, u.value.pageSize = S.value.pageSize;
147
+ } finally {
148
+ e.close();
149
+ }
150
+ }, Ee = async () => {
151
+ if (!o.pageChange)
152
+ return;
153
+ const e = he.service({
154
+ target: `#${o.name}`,
155
+ text: "Loading..."
156
+ });
157
+ try {
158
+ await c.value[o.pageChange](v, u.value), S.value.pageNum = u.value.pageNum, S.value.pageSize = u.value.pageSize;
159
+ } catch (t) {
160
+ console.error(t), u.value.pageNum = S.value.pageNum, u.value.pageSize = S.value.pageSize;
161
+ } finally {
162
+ e.close();
163
+ }
164
+ }, Fe = (e) => {
165
+ var t, a;
166
+ console.log("zytest---selectRow-row", e), E.value === "card" ? (t = Z.value) == null || t.selectRow(e) : (a = P.value) == null || a.setCurrentRow(e);
167
+ }, He = (e) => {
168
+ var t;
169
+ (t = P.value) == null || t.setCurrentRow(p.value[e]);
170
+ }, Ke = (e, t, a) => {
171
+ o.columns.forEach((i) => {
172
+ i.key === e && i[t] && (i[t] = a);
173
+ });
174
+ }, p = m([]), Ve = (e) => {
175
+ p.value = e || [];
176
+ }, Ue = (e = {}) => {
177
+ p.value.push(e);
178
+ }, je = (e) => {
179
+ e >= 0 && e < p.value.length && p.value.splice(e, 1);
180
+ }, We = async () => {
181
+ p.value = [...p.value];
182
+ }, ne = tt("rootRef"), z = (e, t) => {
183
+ const a = Y ? Y(e, t) : t[e.key];
184
+ if (!e.encrypted || !a)
185
+ return a;
186
+ const i = `${a}`;
187
+ return i.length <= 4 ? "*".repeat(i.length) : i.slice(0, -4) + "****";
188
+ }, Ge = (e, t) => {
189
+ if (!e.getTextStyle || !c.value)
190
+ return {};
191
+ try {
192
+ return c.value[e.getTextStyle](v, t, e);
193
+ } catch (a) {
194
+ console.error(a);
195
+ }
196
+ }, b = (e, t) => {
197
+ if (!(!e.getIconInfo || !c.value))
198
+ try {
199
+ return c.value[e.getIconInfo](v, t, e);
200
+ } catch (a) {
201
+ console.error(a);
202
+ }
203
+ }, K = (e, t) => {
204
+ if (!(!e.getIconPopoverContent || !c.value))
205
+ try {
206
+ return c.value[e.getIconPopoverContent](v, t, e);
207
+ } catch (a) {
208
+ console.error(a);
209
+ }
210
+ }, qe = (e, t) => {
211
+ if (!(!e.getCustomContent || !c.value))
212
+ try {
213
+ return c.value[e.getCustomContent](v, t, e);
214
+ } catch (a) {
215
+ console.error(a);
216
+ }
217
+ }, Oe = G(() => !o.rowBtns || o.rowBtns.length === 0 || !p.value || p.value.length === 0 ? !1 : p.value.some(
218
+ (e) => {
219
+ var t;
220
+ return (t = o.rowBtns) == null ? void 0 : t.some((a) => a.condition === void 0 || a.condition === null ? !0 : A(a.condition, {
221
+ $row: e,
222
+ $globalParams: $()
223
+ }));
224
+ }
225
+ )), oe = dt(), Je = m(o.showPollCheckbox || !1);
226
+ m(10);
227
+ const Qe = m(10), V = m(void 0);
228
+ function ae(e) {
229
+ if (e) {
230
+ V.value = e;
231
+ return;
232
+ }
233
+ o.heightDifference && Number(o.heightDifference) > 0 ? V.value = window.innerHeight - Number(o.heightDifference) : V.value = void 0;
234
+ }
235
+ const W = m(!1), Xe = (e) => {
236
+ W.value = e;
237
+ }, Ye = () => o.columns, le = async () => {
238
+ if (!o.onMounted || !c.value)
239
+ return;
240
+ await ct();
241
+ const e = o.onMounted;
242
+ try {
243
+ c.value[e](v);
244
+ } catch (t) {
245
+ console.error(t);
246
+ }
247
+ }, re = async () => {
248
+ if (!o.onActivated || !c.value)
249
+ return;
250
+ const e = o.onActivated;
251
+ try {
252
+ c.value[e](v);
253
+ } catch (t) {
254
+ console.error(t);
255
+ }
256
+ };
257
+ nt(async () => {
258
+ await le(), ae();
259
+ }), ot(() => {
260
+ re();
261
+ }), at(() => {
262
+ });
263
+ const ie = lt({
264
+ ...rt(o),
265
+ setCellData: fe,
266
+ clearSelection: ze,
267
+ getData: _e,
268
+ getCurrentRow: Re,
269
+ getSelectedRows: Te,
270
+ addRow: Ue,
271
+ deleteRow: je,
272
+ refresh: We,
273
+ validate: Ne,
274
+ setData: Ve,
275
+ selectRow: Fe,
276
+ selectRowNum: He,
277
+ setTotal: xe,
278
+ getTotal: Me,
279
+ getPagination: Le,
280
+ setPagination: Ie,
281
+ setTopBtnHidden: $e,
282
+ setColVisible: Ce,
283
+ setColumn: Ke,
284
+ setRowsBtnHidden: De,
285
+ pollEnabled: Je,
286
+ pollInterval: Qe,
287
+ rootRef: ne,
288
+ mounted: le,
289
+ activated: re,
290
+ toggleSelection: Be,
291
+ setLoading: Xe,
292
+ setMaxTableHeight: ae,
293
+ getColumns: Ye,
294
+ type: "table"
295
+ });
296
+ if (o.name) {
297
+ const e = gt(o.name, ie);
298
+ it(() => {
299
+ e();
300
+ });
301
+ }
302
+ return me(ie), (e, t) => {
303
+ const a = L("el-table-column"), i = L("el-popover"), C = L("el-tooltip"), U = L("el-button"), Ze = L("el-pagination"), se = st("loading");
304
+ return e.hidden ? f("", !0) : (r(), g("div", {
305
+ key: 0,
306
+ class: I(["table-render", {
307
+ [e.name]: !0,
308
+ "legacy-pagination-padding": e.paginationPosition === "top"
309
+ }]),
310
+ ref_key: "rootRef",
311
+ ref: ne,
312
+ id: e.name
313
+ }, [
314
+ q(B("div", null, [
315
+ q((r(), y(d(yt), {
316
+ ref_key: "tableRef",
317
+ ref: P,
318
+ data: p.value,
319
+ "highlight-current-row": "",
320
+ border: !0,
321
+ "row-key": e.rowKey,
322
+ stripe: e.stripe,
323
+ onRowClick: ke,
324
+ onRowDblclick: we,
325
+ onSelectionChange: be,
326
+ onCurrentChange: te,
327
+ height: e.height || void 0,
328
+ "max-height": V.value,
329
+ "scrollbar-always-on": ""
330
+ }, {
331
+ empty: h(() => [
332
+ B("div", Ct, [
333
+ k(d(ht), {
334
+ name: "tableEmpty",
335
+ style: { width: 56, height: 56 }
336
+ }),
337
+ B("div", null, _(d(oe).table.emptyText), 1)
338
+ ])
339
+ ]),
340
+ default: h(() => [
341
+ e.multipleSelection ? (r(), y(a, {
342
+ key: 0,
343
+ type: "selection",
344
+ width: "55",
345
+ selectable: Pe
346
+ })) : f("", !0),
347
+ (r(!0), g(R, null, pe(e.columns, (n) => (r(), g(R, {
348
+ key: n.key
349
+ }, [
350
+ n.hidden ? f("", !0) : (r(), y(a, {
351
+ key: 0,
352
+ prop: n.key,
353
+ "min-width": n.minWidth,
354
+ fixed: n.fixed || !1,
355
+ sortable: n.sortable ?? e.sortable ?? !0
356
+ }, {
357
+ header: h(() => [
358
+ B("div", {
359
+ class: "text-ellipsis",
360
+ title: J(n.label)
361
+ }, _(J(n.label)), 9, kt)
362
+ ]),
363
+ default: h(({ row: s, $index: l }) => {
364
+ var D, T, ue, ce;
365
+ return [
366
+ n.type === "link" ? (r(), g("div", {
367
+ key: 0,
368
+ class: I(["text-ellipsis link-style", { "click-style": n.onClick }]),
369
+ title: z(n, s),
370
+ onClick: (w) => F(n, s, l, w)
371
+ }, _(z(n, s)), 11, wt)) : n.type === "iconText" ? (r(), g("div", St, [
372
+ n.iconPosition === "left" ? (r(), g(R, { key: 0 }, [
373
+ n.iconPopover && Array.isArray(K(n, s)) ? (r(), y(i, { key: 0 }, {
374
+ reference: h(() => {
375
+ var w, x;
376
+ return [
377
+ k(N, {
378
+ name: (w = b(n, s)) == null ? void 0 : w.name,
379
+ color: (x = b(n, s)) == null ? void 0 : x.color
380
+ }, null, 8, ["name", "color"])
381
+ ];
382
+ }),
383
+ default: h(() => [
384
+ k(d(j), {
385
+ list: K(n, s) || []
386
+ }, null, 8, ["list"])
387
+ ]),
388
+ _: 2
389
+ }, 1024)) : (r(), y(N, {
390
+ key: 1,
391
+ name: (D = b(n, s)) == null ? void 0 : D.name,
392
+ color: (T = b(n, s)) == null ? void 0 : T.color
393
+ }, null, 8, ["name", "color"]))
394
+ ], 64)) : f("", !0),
395
+ B("span", {
396
+ class: I(["text-ellipsis", { "click-style": n.onClick }]),
397
+ title: z(n, s),
398
+ onClick: (w) => F(n, s, l, w)
399
+ }, _(z(n, s)), 11, bt),
400
+ n.iconPosition === "right" ? (r(), g(R, { key: 1 }, [
401
+ n.iconPopover && Array.isArray(K(n, s)) ? (r(), y(i, { key: 0 }, {
402
+ reference: h(() => {
403
+ var w, x;
404
+ return [
405
+ k(N, {
406
+ name: (w = b(n, s)) == null ? void 0 : w.name,
407
+ color: (x = b(n, s)) == null ? void 0 : x.color
408
+ }, null, 8, ["name", "color"])
409
+ ];
410
+ }),
411
+ default: h(() => [
412
+ k(d(j), {
413
+ list: K(n, s) || []
414
+ }, null, 8, ["list"])
415
+ ]),
416
+ _: 2
417
+ }, 1024)) : (r(), y(N, {
418
+ key: 1,
419
+ name: (ue = b(n, s)) == null ? void 0 : ue.name,
420
+ color: (ce = b(n, s)) == null ? void 0 : ce.color
421
+ }, null, 8, ["name", "color"]))
422
+ ], 64)) : f("", !0)
423
+ ])) : n.type === "customContent" ? (r(), g("div", Pt, [
424
+ k(d(j), {
425
+ list: qe(n, s) || []
426
+ }, null, 8, ["list"])
427
+ ])) : (r(), g("div", {
428
+ key: 3,
429
+ class: I({ "text-ellipsis": !n.noEllipsis }),
430
+ title: z(n, s),
431
+ style: O(Ge(n, s))
432
+ }, _(z(n, s)), 15, zt))
433
+ ];
434
+ }),
435
+ _: 2
436
+ }, 1032, ["prop", "min-width", "fixed", "sortable"]))
437
+ ], 64))), 128)),
438
+ Oe.value && e.rowBtns && e.rowBtns.length > 0 ? (r(), y(a, {
439
+ key: 1,
440
+ label: e.rowBtnsLabel || d(oe).table.actionColumn,
441
+ fixed: "right",
442
+ align: "left",
443
+ width: e.rowBtnsWidth || (e.rowBtns.length * 34 + 12 > 100 ? e.rowBtns.length * 34 + 12 : 100)
444
+ }, {
445
+ default: h(({ row: n, $index: s }) => [
446
+ B("div", Bt, [
447
+ (r(!0), g(R, null, pe(e.rowBtns, (l) => {
448
+ var D;
449
+ return r(), g(R, {
450
+ key: l.key
451
+ }, [
452
+ l.component === "Popover" ? (r(), y(i, {
453
+ key: 0,
454
+ title: l.label,
455
+ trigger: "click",
456
+ "popper-class": "btn-popover",
457
+ width: (D = l.children) != null && D.length && l.children[0].width || 400
458
+ }, {
459
+ reference: h(() => [
460
+ l.condition === void 0 || l.condition === null || d(A)(l.condition, {
461
+ $row: n,
462
+ $globalParams: d($)()
463
+ }) ? (r(), y(U, {
464
+ key: 0,
465
+ disabled: l.disabled,
466
+ link: "",
467
+ size: "small",
468
+ type: l.type,
469
+ onClick: de((T) => F(l, n, s, T), ["stop"])
470
+ }, {
471
+ default: h(() => [
472
+ k(C, {
473
+ class: "box-item",
474
+ effect: "dark",
475
+ content: l.label,
476
+ placement: "top"
477
+ }, {
478
+ default: h(() => [
479
+ l.icon ? (r(), y(N, {
480
+ key: 0,
481
+ name: l.icon.name,
482
+ color: l.icon.color
483
+ }, null, 8, ["name", "color"])) : f("", !0)
484
+ ]),
485
+ _: 2
486
+ }, 1032, ["content"]),
487
+ l.buttonText ? (r(), g("span", {
488
+ key: 0,
489
+ style: O({ color: l.buttonText.color, fontSize: "14px" })
490
+ }, _(d(A)(l.buttonText.text, {
491
+ $row: n,
492
+ $globalParams: d($)()
493
+ })), 5)) : f("", !0)
494
+ ]),
495
+ _: 2
496
+ }, 1032, ["disabled", "type", "onClick"])) : f("", !0)
497
+ ]),
498
+ default: h(() => [
499
+ B("div", null, [
500
+ k(d(j), {
501
+ list: l.children
502
+ }, null, 8, ["list"])
503
+ ])
504
+ ]),
505
+ _: 2
506
+ }, 1032, ["title", "width"])) : (r(), g(R, { key: 1 }, [
507
+ l.condition === void 0 || l.condition === null || d(A)(l.condition, {
508
+ $row: n,
509
+ $globalParams: d($)()
510
+ }) ? (r(), y(U, {
511
+ key: 0,
512
+ disabled: l.disabled,
513
+ link: "",
514
+ size: "small",
515
+ type: l.type,
516
+ onClick: de((T) => F(l, n, s, T), ["stop"])
517
+ }, {
518
+ default: h(() => [
519
+ k(C, {
520
+ class: "box-item",
521
+ effect: "dark",
522
+ content: l.label,
523
+ placement: "top"
524
+ }, {
525
+ default: h(() => [
526
+ l.icon ? (r(), y(N, {
527
+ key: 0,
528
+ name: l.icon.name,
529
+ color: l.icon.color
530
+ }, null, 8, ["name", "color"])) : f("", !0)
531
+ ]),
532
+ _: 2
533
+ }, 1032, ["content"]),
534
+ l.buttonText ? (r(), g("span", {
535
+ key: 0,
536
+ style: O({ color: l.buttonText.color, fontSize: "14px" })
537
+ }, _(d(A)(l.buttonText.text, {
538
+ $row: n,
539
+ $globalParams: d($)()
540
+ })), 5)) : f("", !0)
541
+ ]),
542
+ _: 2
543
+ }, 1032, ["disabled", "type", "onClick"])) : f("", !0)
544
+ ], 64))
545
+ ], 64);
546
+ }), 128))
547
+ ])
548
+ ]),
549
+ _: 1
550
+ }, 8, ["label", "width"])) : f("", !0)
551
+ ]),
552
+ _: 1
553
+ }, 8, ["data", "row-key", "stripe", "height", "max-height"])), [
554
+ [se, W.value]
555
+ ])
556
+ ], 512), [
557
+ [ge, E.value === "table"]
558
+ ]),
559
+ q(k(vt, ut({
560
+ ref_key: "cardListRef",
561
+ ref: Z,
562
+ data: p.value
563
+ }, o, {
564
+ getColText: z,
565
+ onCurrentChange: te
566
+ }), null, 16, ["data"]), [
567
+ [ge, E.value === "card"],
568
+ [se, W.value]
569
+ ]),
570
+ H.value > 0 ? (r(), g("div", {
571
+ key: 0,
572
+ class: I(["pagination-wrapper", {
573
+ hidePagination: e.hiddenPagination && !e.height,
574
+ transparentPagination: e.hiddenPagination && e.height,
575
+ cardlistPadding: E.value === "card"
576
+ }])
577
+ }, [
578
+ k(Ze, {
579
+ layout: e.paginationLayout || "total,sizes, prev, pager, next,jumper",
580
+ total: H.value,
581
+ "page-sizes": e.pageSizes || [5, 6, 10, 20, 30, 40],
582
+ "default-page-size": e.defaultPageSize,
583
+ "current-page": u.value.pageNum,
584
+ "onUpdate:currentPage": t[0] || (t[0] = (n) => u.value.pageNum = n),
585
+ "page-size": u.value.pageSize,
586
+ "onUpdate:pageSize": t[1] || (t[1] = (n) => u.value.pageSize = n),
587
+ "pager-count": 5,
588
+ onSizeChange: Ae,
589
+ onCurrentChange: Ee
590
+ }, null, 8, ["layout", "total", "page-sizes", "default-page-size", "current-page", "page-size"])
591
+ ], 2)) : f("", !0)
592
+ ], 10, ft));
593
+ };
594
+ }
595
+ }), $t = /* @__PURE__ */ mt(_t, [["__scopeId", "data-v-24734000"]]);
596
+ export {
597
+ $t as default
598
+ };