asiaint-lowcode 3.1.116 → 3.1.118

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