asiaint-lowcode 3.1.123 → 3.1.126

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