asiaint-lowcode 3.0.39 → 3.0.40

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 (32) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +124 -124
  3. package/dist/index.d.ts +3 -0
  4. package/dist/lazy/{Card-BjVvOIwc.js → Card-CA_08riQ.js} +1 -1
  5. package/dist/lazy/{Cascader-B4GiUGpM.js → Cascader-YyqC92gQ.js} +1 -1
  6. package/dist/lazy/{Checkbox-ByjUnBvb.js → Checkbox-BtZupA-A.js} +2 -2
  7. package/dist/lazy/{Collapse-CJ9kiaFn.js → Collapse-DNv0HvCW.js} +1 -1
  8. package/dist/lazy/{Component-D9rT2fGD.js → Component-BFemJDyv.js} +1 -1
  9. package/dist/lazy/{Component-DiF2WhCt.js → Component-C06SxmxT.js} +1 -1
  10. package/dist/lazy/{Component-DaRYNyoy.js → Component-CSl1tuGt.js} +1 -1
  11. package/dist/lazy/{Component-CWYNj8qZ.js → Component-DlHkxO96.js} +1 -1
  12. package/dist/lazy/{Component-Bx7gIDMt.js → Component-Dx_lHHnl.js} +1 -1
  13. package/dist/lazy/{Component-B5IlQYHk.js → Component-dtCmd_35.js} +1 -1
  14. package/dist/lazy/{CurdCard-CntkycKX.js → CurdCard-CWg4r5hp.js} +1 -1
  15. package/dist/lazy/{Custom-CIbEi0kP.js → Custom-k7vvQzoi.js} +1 -1
  16. package/dist/lazy/{FormList-DHvP3Srn.js → FormList-D-P_JtvM.js} +1 -1
  17. package/dist/lazy/{Grid-CObIt0vI.js → Grid-BnQjnLAe.js} +1 -1
  18. package/dist/lazy/{Inline-CmR66tBe.js → Inline-zVzAJcSO.js} +1 -1
  19. package/dist/lazy/{JsonEdit-ZpfNkW5m.js → JsonEdit-BUu-39a6.js} +1 -1
  20. package/dist/lazy/{ObjGroup-B05qQ8zT.js → ObjGroup-6TaW4d2P.js} +1 -1
  21. package/dist/lazy/{OfferDetails-D7kJRzGG.js → OfferDetails-dzU50CFD.js} +1 -1
  22. package/dist/lazy/{Radio-DplKsR2q.js → Radio-Bj11lAt5.js} +2 -2
  23. package/dist/lazy/{SearchSelect-CcU9DsZK.js → SearchSelect-_LZMoBi7.js} +2 -2
  24. package/dist/lazy/{Select-CwLzVjJR.js → Select-cTEFKHmS.js} +2 -2
  25. package/dist/lazy/Table-DExnYGQP.js +321 -0
  26. package/dist/lazy/{Tabs-xXJuCftg.js → Tabs-8W8G_tD-.js} +1 -1
  27. package/dist/lazy/{Wrapper-D2HFENsu.js → Wrapper-DAOR7DZM.js} +1 -1
  28. package/dist/lazy/{index-BwNeJEvk.js → index-odwMZo8k.js} +3890 -3891
  29. package/dist/lazy/{useSelect-pQfEWEt9.js → useSelect-DE-MjuZO.js} +1 -1
  30. package/dist/style.css +2 -2
  31. package/package.json +1 -1
  32. package/dist/lazy/Table-DTHwpYU5.js +0 -302
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.0.39",
3
+ "version": "3.0.40",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,302 +0,0 @@
1
- import { defineComponent as fe, computed as me, inject as R, ref as m, useTemplateRef as ve, readonly as Ce, toRefs as ke, onUnmounted as we, resolveComponent as B, openBlock as u, createElementBlock as g, normalizeClass as F, withDirectives as V, createElementVNode as v, createVNode as b, unref as c, withCtx as h, createBlock as S, createCommentVNode as C, Fragment as _, renderList as U, toDisplayString as P, withModifiers as be, vShow as j, mergeProps as Se } from "vue";
2
- import { $ as ze, i as Re, _ as Be, f as _e, I as Pe, C as Ne, b as De } from "./index-BwNeJEvk.js";
3
- import { ElTable as Te } from "element-plus";
4
- const Me = { class: "empty-content" }, $e = ["title"], Ee = ["title", "onClick"], Fe = ["title"], Ve = { class: "row-btn-wrapper" }, Ue = /* @__PURE__ */ fe({
5
- __name: "Table",
6
- props: {
7
- title: {},
8
- key: {},
9
- rulePath: {},
10
- rowKey: {},
11
- showDynamicSearch: { type: Boolean },
12
- multipleSelection: { type: Boolean },
13
- highlightCurrentRow: { type: Boolean },
14
- "highlight-current-row": { type: Boolean },
15
- stripe: { type: Boolean },
16
- rowClick: {},
17
- rowDbClick: {},
18
- sizeChange: {},
19
- pageChange: {},
20
- topBtns: {},
21
- rowBtns: {},
22
- columns: {},
23
- hidden: { type: Boolean },
24
- hiddenPagination: { type: Boolean },
25
- handleCurrentChange: {},
26
- pageSizes: {},
27
- pagerCount: {},
28
- defaultPageSize: {},
29
- typeSwitch: { type: Boolean },
30
- displayType: { default: "table" },
31
- onMounted: {},
32
- onActivated: {},
33
- height: {},
34
- collapsible: { type: Boolean },
35
- name: {}
36
- },
37
- setup(A, { expose: G }) {
38
- const a = A, z = me(() => a.displayType ? a.displayType : a.typeSwitch ? "card" : "table"), y = R("ruleModule", void 0), f = R("pageMethodMap", {}), H = R("getGlobalParams", () => {
39
- }), N = R(ze), d = N ? N.translateFn : null, k = m(), K = (e, t, o) => {
40
- r.value[e] && (r.value[e][t] = o);
41
- }, L = (e, t) => {
42
- const o = a.columns.find((i) => i.key === e);
43
- o && (o.hidden = !t);
44
- }, D = (e, t, o) => {
45
- try {
46
- y[e.onClick](f, t, o);
47
- } catch (i) {
48
- console.error(i);
49
- }
50
- }, W = (e) => {
51
- if (a.rowClick)
52
- try {
53
- y[a.rowClick](f, e);
54
- } catch (t) {
55
- console.error(t);
56
- }
57
- }, q = (e) => {
58
- if (a.rowDbClick)
59
- try {
60
- y[a.rowDbClick](f, e);
61
- } catch (t) {
62
- console.error(t);
63
- }
64
- }, I = m([]), J = (e) => {
65
- I.value = e;
66
- }, O = () => {
67
- var e;
68
- (e = k.value) == null || e.clearSelection();
69
- }, Q = () => r.value, T = m(), X = (e) => {
70
- if (T.value = e, !!a.handleCurrentChange)
71
- try {
72
- y[a.handleCurrentChange](f, e);
73
- } catch (t) {
74
- console.error(t);
75
- }
76
- }, Y = () => T.value, Z = () => {
77
- var e;
78
- return (e = k.value) == null ? void 0 : e.getSelectionRows();
79
- }, x = async () => !0, ee = (e, t) => {
80
- var i;
81
- const o = (i = a.topBtns) == null ? void 0 : i.find((w) => w.key === e);
82
- o && (o.hidden = t);
83
- }, te = (e, t) => {
84
- var i;
85
- const o = (i = a.rowBtns) == null ? void 0 : i.find((w) => w.key === e);
86
- o && (o.condition = !t);
87
- }, M = m(0), ne = (e) => {
88
- M.value = e;
89
- }, l = m({ pageNum: 1, pageSize: a.defaultPageSize || 5 }), ae = () => l.value, oe = (e) => {
90
- let t = !1;
91
- return e.pageNum > -1 && (l.value.pageNum !== e.pageNum && (t = !0), l.value.pageNum = e.pageNum), e.pageSize > -1 && (l.value.pageSize !== e.pageSize && (t = !0), l.value.pageSize = e.pageSize), { pagination: l.value, isChange: t };
92
- }, le = (e) => {
93
- if (l.value.pageNum = 1, l.value.pageSize = e, !!a.sizeChange)
94
- try {
95
- y[a.sizeChange](f, l.value);
96
- } catch (t) {
97
- console.error(t);
98
- }
99
- }, ie = (e) => {
100
- if (l.value.pageNum = e, !!a.pageChange)
101
- try {
102
- y[a.pageChange](f, l.value);
103
- } catch (t) {
104
- console.error(t);
105
- }
106
- }, re = (e) => {
107
- var t;
108
- (t = k.value) == null || t.setCurrentRow(e);
109
- }, se = (e) => {
110
- var t;
111
- (t = k.value) == null || t.setCurrentRow(r.value[e]);
112
- }, ue = (e, t, o) => {
113
- a.columns.forEach((i) => {
114
- i.key === e && i[t] && (i[t] = o);
115
- });
116
- }, r = m([]), ce = (e) => {
117
- r.value = e;
118
- }, pe = (e = {}) => {
119
- r.value.push(e);
120
- }, de = (e) => {
121
- e >= 0 && e < r.value.length && r.value.splice(e, 1);
122
- }, ge = async () => {
123
- r.value = [...r.value];
124
- }, $ = ve("rootRef"), E = Ce({
125
- ...ke(a),
126
- setCellData: K,
127
- clearSelection: O,
128
- getData: Q,
129
- getCurrentRow: Y,
130
- getSelectedRows: Z,
131
- addRow: pe,
132
- deleteRow: de,
133
- refresh: ge,
134
- validate: x,
135
- setData: ce,
136
- selectRow: re,
137
- selectRowNum: se,
138
- setTotal: ne,
139
- getPagination: ae,
140
- setPagination: oe,
141
- setTopBtnHidden: ee,
142
- setColVisible: L,
143
- setColumn: ue,
144
- setRowsBtnHidden: te,
145
- rootRef: $,
146
- type: "table"
147
- });
148
- if (a.name) {
149
- const e = Re(a.name, E);
150
- we(() => {
151
- e();
152
- });
153
- }
154
- return G(E), (e, t) => {
155
- const o = B("el-table-column"), i = B("el-tooltip"), w = B("el-button"), he = B("el-pagination");
156
- return e.hidden ? C("", !0) : (u(), g("div", {
157
- key: 0,
158
- class: F(["table-render", { tableBorder: z.value === "table" }]),
159
- ref_key: "rootRef",
160
- ref: $
161
- }, [
162
- V(v("div", null, [
163
- b(c(Te), {
164
- ref_key: "tableRef",
165
- ref: k,
166
- data: r.value,
167
- "highlight-current-row": "",
168
- "row-key": e.rowKey,
169
- stripe: e.stripe,
170
- onRowClick: W,
171
- onRowDblclick: q,
172
- onSelectionChange: J,
173
- onCurrentChange: X,
174
- height: e.height
175
- }, {
176
- empty: h(() => [
177
- v("div", Me, [
178
- b(c(Be), {
179
- name: "tableEmpty",
180
- style: { width: 56, height: 56 }
181
- }),
182
- t[2] || (t[2] = v("div", null, "No data available,please check", -1))
183
- ])
184
- ]),
185
- default: h(() => [
186
- e.multipleSelection ? (u(), S(o, {
187
- key: 0,
188
- type: "selection",
189
- width: "55"
190
- })) : C("", !0),
191
- (u(!0), g(_, null, U(e.columns, (n) => (u(), g(_, {
192
- key: n.key
193
- }, [
194
- n.hidden ? C("", !0) : (u(), S(o, {
195
- key: 0,
196
- prop: n.key,
197
- "min-width": n.minWidth,
198
- fixed: n.fixed || !1
199
- }, {
200
- header: h(() => [
201
- v("div", {
202
- class: "text-ellipsis",
203
- title: n.label
204
- }, P(n.label), 9, $e)
205
- ]),
206
- default: h(({ row: p, $index: s }) => [
207
- n.type === "link" ? (u(), g("div", {
208
- key: 0,
209
- class: "text-ellipsis link-style",
210
- title: c(d) ? c(d)(n.key, p) : p[n.key],
211
- onClick: (ye) => D(n, p, s)
212
- }, P(c(d) ? c(d)(n.key, p) : p[n.key]), 9, Ee)) : (u(), g("div", {
213
- key: 1,
214
- class: "text-ellipsis",
215
- title: c(d) ? c(d)(n.key, p) : p[n.key]
216
- }, P(c(d) ? c(d)(n.key, p) : p[n.key]), 9, Fe))
217
- ]),
218
- _: 2
219
- }, 1032, ["prop", "min-width", "fixed"]))
220
- ], 64))), 128)),
221
- e.rowBtns && e.rowBtns.length > 0 ? (u(), S(o, {
222
- key: 1,
223
- label: "Action",
224
- fixed: "right",
225
- align: "left"
226
- }, {
227
- default: h(({ row: n, $index: p }) => [
228
- v("div", Ve, [
229
- (u(!0), g(_, null, U(e.rowBtns, (s) => (u(), g(_, {
230
- key: s.key
231
- }, [
232
- s.condition === void 0 || s.condition === null || c(_e)(s.condition, { $row: n, $globalParams: c(H)() }) ? (u(), S(w, {
233
- key: 0,
234
- disabled: s.disabled,
235
- link: "",
236
- size: "small",
237
- type: s.type,
238
- onClick: be((ye) => D(s, n, p), ["stop"])
239
- }, {
240
- default: h(() => [
241
- b(i, {
242
- class: "box-item",
243
- effect: "dark",
244
- content: s.label,
245
- placement: "top",
246
- "popper-class": "low-tsp",
247
- "show-after": 300
248
- }, {
249
- default: h(() => [
250
- s.icon ? (u(), S(Pe, {
251
- key: 0,
252
- name: s.icon.name,
253
- color: s.icon.color
254
- }, null, 8, ["name", "color"])) : C("", !0)
255
- ]),
256
- _: 2
257
- }, 1032, ["content"])
258
- ]),
259
- _: 2
260
- }, 1032, ["disabled", "type", "onClick"])) : C("", !0)
261
- ], 64))), 128))
262
- ])
263
- ]),
264
- _: 1
265
- })) : C("", !0)
266
- ]),
267
- _: 1
268
- }, 8, ["data", "row-key", "stripe", "height"])
269
- ], 512), [
270
- [j, z.value === "table"]
271
- ]),
272
- V(b(Ne, Se({ data: r.value }, a), null, 16, ["data"]), [
273
- [j, z.value === "card"]
274
- ]),
275
- v("div", {
276
- class: F(["pagination-wrapper", {
277
- hidePagination: (e.hiddenPagination || r.value.length === 0) && !e.height,
278
- transparentPagination: (e.hiddenPagination || r.value.length === 0) && e.height,
279
- cardlistPadding: z.value === "card"
280
- }])
281
- }, [
282
- b(he, {
283
- layout: "total,sizes, prev, pager, next,jumper",
284
- total: M.value,
285
- "page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
286
- "default-page-size": e.defaultPageSize,
287
- "current-page": l.value.pageNum,
288
- "onUpdate:currentPage": t[0] || (t[0] = (n) => l.value.pageNum = n),
289
- "page-size": l.value.pageSize,
290
- "onUpdate:pageSize": t[1] || (t[1] = (n) => l.value.pageSize = n),
291
- "pager-count": e.pagerCount,
292
- onSizeChange: le,
293
- onCurrentChange: ie
294
- }, null, 8, ["total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
295
- ], 2)
296
- ], 2));
297
- };
298
- }
299
- }), He = /* @__PURE__ */ De(Ue, [["__scopeId", "data-v-a46870d5"]]);
300
- export {
301
- He as default
302
- };