asiaint-lowcode 3.0.38 → 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 (33) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +126 -126
  3. package/dist/index.d.ts +3 -0
  4. package/dist/lazy/{Card-CTC5imo1.js → Card-CA_08riQ.js} +1 -1
  5. package/dist/lazy/{Cascader-D4MYm4tv.js → Cascader-YyqC92gQ.js} +1 -1
  6. package/dist/lazy/{Checkbox-CJGMd_gh.js → Checkbox-BtZupA-A.js} +2 -2
  7. package/dist/lazy/{Collapse-CnzZmZ_m.js → Collapse-DNv0HvCW.js} +1 -1
  8. package/dist/lazy/Component-BFemJDyv.js +109 -0
  9. package/dist/lazy/{Component-DoOCFYzY.js → Component-C06SxmxT.js} +1 -1
  10. package/dist/lazy/{Component-BQmwPI3D.js → Component-CSl1tuGt.js} +1 -1
  11. package/dist/lazy/{Component-DzI76sfN.js → Component-DlHkxO96.js} +1 -1
  12. package/dist/lazy/{Component-CoEFCzWk.js → Component-Dx_lHHnl.js} +1 -1
  13. package/dist/lazy/{Component-BJIBuATE.js → Component-dtCmd_35.js} +1 -1
  14. package/dist/lazy/{CurdCard-B6mvG1FA.js → CurdCard-CWg4r5hp.js} +2 -2
  15. package/dist/lazy/{Custom-CHoNP_Wb.js → Custom-k7vvQzoi.js} +1 -1
  16. package/dist/lazy/{FormList-DNspJXt9.js → FormList-D-P_JtvM.js} +1 -1
  17. package/dist/lazy/{Grid-950KZ5_5.js → Grid-BnQjnLAe.js} +1 -1
  18. package/dist/lazy/{Inline-BsTaA6c2.js → Inline-zVzAJcSO.js} +1 -1
  19. package/dist/lazy/{JsonEdit-Bmw6AJmP.js → JsonEdit-BUu-39a6.js} +1 -1
  20. package/dist/lazy/{ObjGroup-qiJT1PIG.js → ObjGroup-6TaW4d2P.js} +1 -1
  21. package/dist/lazy/{OfferDetails-DP85_35u.js → OfferDetails-dzU50CFD.js} +1 -1
  22. package/dist/lazy/{Radio-CL8jn24q.js → Radio-Bj11lAt5.js} +2 -2
  23. package/dist/lazy/{SearchSelect-C_ILcjm8.js → SearchSelect-_LZMoBi7.js} +2 -2
  24. package/dist/lazy/{Select-BJfXzPs5.js → Select-cTEFKHmS.js} +2 -2
  25. package/dist/lazy/Table-DExnYGQP.js +321 -0
  26. package/dist/lazy/{Tabs-B1OlM6vL.js → Tabs-8W8G_tD-.js} +1 -1
  27. package/dist/lazy/{Wrapper-7vsPwASz.js → Wrapper-DAOR7DZM.js} +1 -1
  28. package/dist/lazy/{index-DzBTvtu-.js → index-odwMZo8k.js} +4053 -4059
  29. package/dist/lazy/{useSelect-CIMkSjmY.js → useSelect-DE-MjuZO.js} +1 -1
  30. package/dist/style.css +2 -2
  31. package/package.json +1 -1
  32. package/dist/lazy/Component-DMXZ32n0.js +0 -93
  33. package/dist/lazy/Table-CLyUUgbF.js +0 -302
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.0.38",
3
+ "version": "3.0.40",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,93 +0,0 @@
1
- import { defineComponent as $, inject as y, ref as b, resolveComponent as f, openBlock as s, createBlock as m, mergeProps as x, withCtx as h, createElementVNode as d, toDisplayString as C, createElementBlock as k, createCommentVNode as _, Fragment as v, renderList as B, unref as I, withModifiers as P, createTextVNode as V } from "vue";
2
- import { f as w, I as E, b as F } from "./index-DzBTvtu-.js";
3
- import "element-plus";
4
- const j = { class: "custom-tree-node" }, A = { class: "tree-node-text" }, D = { class: "tree-node-label" }, R = {
5
- key: 0,
6
- class: "tree-node-present"
7
- }, S = /* @__PURE__ */ $({
8
- __name: "Component",
9
- props: {
10
- onNodeClick: {},
11
- onLoad: {},
12
- btns: {},
13
- props: {},
14
- nodeKey: {}
15
- },
16
- setup(N) {
17
- const r = N, c = y("ruleModule", void 0), a = y("pageMethodMap", {}), i = b(), g = (e, n) => {
18
- i.value = e[r.nodeKey];
19
- }, M = (e, n, t) => {
20
- if (c)
21
- try {
22
- c[e](a, { node: n, data: t });
23
- } catch (l) {
24
- console.error(l);
25
- }
26
- }, K = (e, n) => {
27
- if (r.onNodeClick && c)
28
- try {
29
- c[r.onNodeClick](a, { node: e, data: n });
30
- } catch (t) {
31
- console.error(t);
32
- }
33
- }, L = (e, n, t) => {
34
- if (r.onLoad && c)
35
- try {
36
- c[r.onLoad](a, { node: e, resolve: n, reject: t });
37
- } catch (l) {
38
- console.error(l);
39
- }
40
- };
41
- return (e, n) => {
42
- const t = f("el-button"), l = f("el-tree");
43
- return s(), m(l, x(e.$attrs, {
44
- onNodeClick: K,
45
- load: L,
46
- ref: "treeRef",
47
- class: "crm-tree",
48
- indent: 32,
49
- "current-node-key": i.value,
50
- onCurrentChange: g,
51
- "node-key": e.nodeKey,
52
- props: r.props
53
- }), {
54
- default: h(({ node: p, data: u }) => [
55
- d("div", j, [
56
- d("div", A, [
57
- d("span", D, C(p.label), 1),
58
- u[e.nodeKey] === i.value ? (s(), k("div", R, "Present")) : _("", !0)
59
- ]),
60
- d("div", null, [
61
- (s(!0), k(v, null, B(e.btns, (o) => (s(), k(v, {
62
- key: o.key
63
- }, [
64
- I(w)(o.hidden, { $node: p, $data: u }) ? _("", !0) : (s(), m(t, {
65
- key: 0,
66
- link: "",
67
- onClick: P((T) => M(o.onClick, p, u), ["stop"]),
68
- disabled: o.disabled,
69
- type: o.type
70
- }, {
71
- default: h(() => [
72
- o.icon ? (s(), m(E, {
73
- key: 0,
74
- name: o.icon.name,
75
- color: o.icon.color,
76
- class: "btn-icon"
77
- }, null, 8, ["name", "color"])) : _("", !0),
78
- V(" " + C(o.text), 1)
79
- ]),
80
- _: 2
81
- }, 1032, ["onClick", "disabled", "type"]))
82
- ], 64))), 128))
83
- ])
84
- ])
85
- ]),
86
- _: 1
87
- }, 16, ["current-node-key", "node-key", "props"]);
88
- };
89
- }
90
- }), H = /* @__PURE__ */ F(S, [["__scopeId", "data-v-49f68e0f"]]);
91
- export {
92
- H as default
93
- };
@@ -1,302 +0,0 @@
1
- import { defineComponent as ye, inject as S, ref as m, useTemplateRef as fe, readonly as me, toRefs as Ce, onUnmounted as ve, resolveComponent as R, openBlock as u, createElementBlock as g, normalizeClass as E, withDirectives as F, createElementVNode as C, createVNode as b, unref as p, withCtx as h, createBlock as z, createCommentVNode as v, Fragment as B, renderList as V, toDisplayString as P, withModifiers as ke, vShow as U, mergeProps as we } from "vue";
2
- import { $ as be, i as ze, _ as Se, f as Re, I as Be, C as Pe, b as _e } from "./index-DzBTvtu-.js";
3
- import { ElTable as Ne } from "element-plus";
4
- const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"], $e = ["title"], Ee = { class: "row-btn-wrapper" }, Fe = /* @__PURE__ */ ye({
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(j, { expose: A }) {
38
- const a = j, y = S("ruleModule", void 0), f = S("pageMethodMap", {}), G = S("getGlobalParams", () => {
39
- }), _ = S(be), d = _ ? _.translateFn : null, k = m(), H = (e, t, o) => {
40
- r.value[e] && (r.value[e][t] = o);
41
- }, K = (e, t) => {
42
- const o = a.columns.find((i) => i.key === e);
43
- o && (o.hidden = !t);
44
- }, N = (e, t, o) => {
45
- try {
46
- y[e.onClick](f, t, o);
47
- } catch (i) {
48
- console.error(i);
49
- }
50
- }, L = (e) => {
51
- if (a.rowClick)
52
- try {
53
- y[a.rowClick](f, e);
54
- } catch (t) {
55
- console.error(t);
56
- }
57
- }, W = (e) => {
58
- if (a.rowDbClick)
59
- try {
60
- y[a.rowDbClick](f, e);
61
- } catch (t) {
62
- console.error(t);
63
- }
64
- }, q = m([]), I = (e) => {
65
- q.value = e;
66
- }, J = () => {
67
- var e;
68
- (e = k.value) == null || e.clearSelection();
69
- }, O = () => r.value, D = m(), Q = (e) => {
70
- if (D.value = e, !!a.handleCurrentChange)
71
- try {
72
- y[a.handleCurrentChange](f, e);
73
- } catch (t) {
74
- console.error(t);
75
- }
76
- }, X = () => D.value, Y = () => {
77
- var e;
78
- return (e = k.value) == null ? void 0 : e.getSelectionRows();
79
- }, Z = async () => !0, x = (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
- }, ee = (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
- }, T = m(0), te = (e) => {
88
- T.value = e;
89
- }, l = m({ pageNum: 1, pageSize: a.defaultPageSize || 5 }), ne = () => l.value, ae = (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
- }, oe = (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
- }, le = (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
- }, ie = (e) => {
107
- var t;
108
- (t = k.value) == null || t.setCurrentRow(e);
109
- }, re = (e) => {
110
- var t;
111
- (t = k.value) == null || t.setCurrentRow(r.value[e]);
112
- }, se = (e, t, o) => {
113
- a.columns.forEach((i) => {
114
- i.key === e && i[t] && (i[t] = o);
115
- });
116
- }, r = m([]), ue = (e) => {
117
- r.value = e;
118
- }, pe = (e = {}) => {
119
- r.value.push(e);
120
- }, ce = (e) => {
121
- e >= 0 && e < r.value.length && r.value.splice(e, 1);
122
- }, de = async () => {
123
- r.value = [...r.value];
124
- }, M = fe("rootRef"), $ = me({
125
- ...Ce(a),
126
- setCellData: H,
127
- clearSelection: J,
128
- getData: O,
129
- getCurrentRow: X,
130
- getSelectedRows: Y,
131
- addRow: pe,
132
- deleteRow: ce,
133
- refresh: de,
134
- validate: Z,
135
- setData: ue,
136
- selectRow: ie,
137
- selectRowNum: re,
138
- setTotal: te,
139
- getPagination: ne,
140
- setPagination: ae,
141
- setTopBtnHidden: x,
142
- setColVisible: K,
143
- setColumn: se,
144
- setRowsBtnHidden: ee,
145
- rootRef: M,
146
- type: "table"
147
- });
148
- if (a.name) {
149
- const e = ze(a.name, $);
150
- ve(() => {
151
- e();
152
- });
153
- }
154
- return A($), (e, t) => {
155
- const o = R("el-table-column"), i = R("el-tooltip"), w = R("el-button"), ge = R("el-pagination");
156
- return e.hidden ? v("", !0) : (u(), g("div", {
157
- key: 0,
158
- class: E(["table-render", { tableBorder: e.displayType === "table" }]),
159
- ref_key: "rootRef",
160
- ref: M
161
- }, [
162
- F(C("div", null, [
163
- b(p(Ne), {
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: L,
171
- onRowDblclick: W,
172
- onSelectionChange: I,
173
- onCurrentChange: Q,
174
- height: e.height
175
- }, {
176
- empty: h(() => [
177
- C("div", De, [
178
- b(p(Se), {
179
- name: "tableEmpty",
180
- style: { width: 56, height: 56 }
181
- }),
182
- t[2] || (t[2] = C("div", null, "No data available,please check", -1))
183
- ])
184
- ]),
185
- default: h(() => [
186
- e.multipleSelection ? (u(), z(o, {
187
- key: 0,
188
- type: "selection",
189
- width: "55"
190
- })) : v("", !0),
191
- (u(!0), g(B, null, V(e.columns, (n) => (u(), g(B, {
192
- key: n.key
193
- }, [
194
- n.hidden ? v("", !0) : (u(), z(o, {
195
- key: 0,
196
- prop: n.key,
197
- "min-width": n.minWidth,
198
- fixed: n.fixed || !1
199
- }, {
200
- header: h(() => [
201
- C("div", {
202
- class: "text-ellipsis",
203
- title: n.label
204
- }, P(n.label), 9, Te)
205
- ]),
206
- default: h(({ row: c, $index: s }) => [
207
- n.type === "link" ? (u(), g("div", {
208
- key: 0,
209
- class: "text-ellipsis link-style",
210
- title: p(d) ? p(d)(n.key, c) : c[n.key],
211
- onClick: (he) => N(n, c, s)
212
- }, P(p(d) ? p(d)(n.key, c) : c[n.key]), 9, Me)) : (u(), g("div", {
213
- key: 1,
214
- class: "text-ellipsis",
215
- title: p(d) ? p(d)(n.key, c) : c[n.key]
216
- }, P(p(d) ? p(d)(n.key, c) : c[n.key]), 9, $e))
217
- ]),
218
- _: 2
219
- }, 1032, ["prop", "min-width", "fixed"]))
220
- ], 64))), 128)),
221
- e.rowBtns && e.rowBtns.length > 0 ? (u(), z(o, {
222
- key: 1,
223
- label: "Action",
224
- fixed: "right",
225
- align: "left"
226
- }, {
227
- default: h(({ row: n, $index: c }) => [
228
- C("div", Ee, [
229
- (u(!0), g(B, null, V(e.rowBtns, (s) => (u(), g(B, {
230
- key: s.key
231
- }, [
232
- s.condition === void 0 || s.condition === null || p(Re)(s.condition, { $row: n, $globalParams: p(G)() }) ? (u(), z(w, {
233
- key: 0,
234
- disabled: s.disabled,
235
- link: "",
236
- size: "small",
237
- type: s.type,
238
- onClick: ke((he) => N(s, n, c), ["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(), z(Be, {
251
- key: 0,
252
- name: s.icon.name,
253
- color: s.icon.color
254
- }, null, 8, ["name", "color"])) : v("", !0)
255
- ]),
256
- _: 2
257
- }, 1032, ["content"])
258
- ]),
259
- _: 2
260
- }, 1032, ["disabled", "type", "onClick"])) : v("", !0)
261
- ], 64))), 128))
262
- ])
263
- ]),
264
- _: 1
265
- })) : v("", !0)
266
- ]),
267
- _: 1
268
- }, 8, ["data", "row-key", "stripe", "height"])
269
- ], 512), [
270
- [U, e.displayType === "table"]
271
- ]),
272
- F(b(Pe, we({ data: r.value }, a), null, 16, ["data"]), [
273
- [U, e.displayType === "card"]
274
- ]),
275
- C("div", {
276
- class: E(["pagination-wrapper", {
277
- hidePagination: (e.hiddenPagination || r.value.length === 0) && !e.height,
278
- transparentPagination: (e.hiddenPagination || r.value.length === 0) && e.height,
279
- cardlistPadding: e.displayType === "card"
280
- }])
281
- }, [
282
- b(ge, {
283
- layout: "total,sizes, prev, pager, next,jumper",
284
- total: T.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: oe,
293
- onCurrentChange: le
294
- }, null, 8, ["total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
295
- ], 2)
296
- ], 2));
297
- };
298
- }
299
- }), Ae = /* @__PURE__ */ _e(Fe, [["__scopeId", "data-v-4fb413a4"]]);
300
- export {
301
- Ae as default
302
- };