asiaint-lowcode 3.0.14 → 3.0.16

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/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +144 -144
  3. package/dist/index.d.ts +14 -23
  4. package/dist/lazy/Card-DIBN4bRf.js +59 -0
  5. package/dist/lazy/CardList-DkwHDPNp.js +51 -0
  6. package/dist/lazy/CardListItem-DbXsd1_k.js +85 -0
  7. package/dist/lazy/{Cascader-CdcNT10v.js → Cascader-BZhmVWOO.js} +1 -1
  8. package/dist/lazy/{Checkbox-CJK0zpkP.js → Checkbox-B1TSYANT.js} +2 -2
  9. package/dist/lazy/{Collapse-R3V_-9Qy.js → Collapse-C8VWxgHp.js} +1 -1
  10. package/dist/lazy/{Component-BUukjBGQ.js → Component-CUa78qLF.js} +1 -1
  11. package/dist/lazy/{Component-CnZjiCoz.js → Component-Cmw2Jlj3.js} +1 -1
  12. package/dist/lazy/{Component-BZ3Z_bac.js → Component-CqAhbbGQ.js} +1 -1
  13. package/dist/lazy/Component-D-Eh8B-j.js +89 -0
  14. package/dist/lazy/{Component-DbJnyH6w.js → Component-DUuuNUxC.js} +1 -1
  15. package/dist/lazy/Component-HCqPaHwQ.js +68 -0
  16. package/dist/lazy/Component-NvoLQyab.js +34 -0
  17. package/dist/lazy/CurdCard-BSgF68nl.js +85 -0
  18. package/dist/lazy/{Custom-DY63ABbq.js → Custom-zNcfkvdD.js} +1 -1
  19. package/dist/lazy/DatePicker-sqHk1tuj.js +25 -0
  20. package/dist/lazy/{FormList-Df9RL7s7.js → FormList-ChQYp1l-.js} +1 -1
  21. package/dist/lazy/Grid-GCB39VOw.js +38 -0
  22. package/dist/lazy/{Inline-CdWL3Eo6.js → Inline-D1ZMiudr.js} +1 -1
  23. package/dist/lazy/{JsonEdit-RsSvMWDj.js → JsonEdit-BK25HRpb.js} +1 -1
  24. package/dist/lazy/{ObjGroup-BG6jqGua.js → ObjGroup-DLXLO2wj.js} +1 -1
  25. package/dist/lazy/OfferDetails-CKwTw0z4.js +95 -0
  26. package/dist/lazy/{Radio-BIji-gnQ.js → Radio-DoOsjG7K.js} +12 -12
  27. package/dist/lazy/{SearchSelect-CYLY81h9.js → SearchSelect-CktfCSrM.js} +27 -27
  28. package/dist/lazy/Select-DgAQhalx.js +76 -0
  29. package/dist/lazy/Table-C3PlF9J4.js +273 -0
  30. package/dist/lazy/{Tabs-B7G8h04a.js → Tabs-C7ZXJbOT.js} +1 -1
  31. package/dist/lazy/TextArea-DBUM3-2Q.js +25 -0
  32. package/dist/lazy/Wrapper-DIpJqF_p.js +22 -0
  33. package/dist/lazy/{index-6mpfROTy.js → index-BvOUGCFQ.js} +7690 -7491
  34. package/dist/lazy/{useSelect-C3fi7G2S.js → useSelect-BqqanrGo.js} +1 -1
  35. package/dist/style.css +2 -2
  36. package/package.json +1 -1
  37. package/dist/lazy/Card-CaWqhmgk.js +0 -77
  38. package/dist/lazy/Component-C4dBecYq.js +0 -32
  39. package/dist/lazy/Component-CiXpJ5wI.js +0 -70
  40. package/dist/lazy/Component-DO63yabq.js +0 -66
  41. package/dist/lazy/DatePicker-gDYjpGax.js +0 -11
  42. package/dist/lazy/Grid-08EF9A-O.js +0 -30
  43. package/dist/lazy/Select-C1vTDJWg.js +0 -78
  44. package/dist/lazy/TextArea-C0PEa3Es.js +0 -25
@@ -0,0 +1,273 @@
1
+ import { defineComponent as ce, inject as B, ref as f, useTemplateRef as pe, readonly as de, toRefs as ge, onUnmounted as he, resolveComponent as z, openBlock as s, createElementBlock as m, createVNode as k, unref as p, withCtx as c, createElementVNode as b, createBlock as S, createCommentVNode as y, Fragment as R, renderList as E, toDisplayString as N, createTextVNode as fe } from "vue";
2
+ import { $ as me, h as ye, _ as Ce, f as ve, b as ke } from "./index-BvOUGCFQ.js";
3
+ import { ElTable as we } from "element-plus";
4
+ const ze = { class: "empty-content" }, be = { class: "text-ellipsis" }, Se = { class: "text-ellipsis" }, Re = {
5
+ key: 0,
6
+ class: "pagination-wrapper"
7
+ }, _e = /* @__PURE__ */ ce({
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
+ stripe: { type: Boolean },
18
+ rowClick: {},
19
+ rowDbClick: {},
20
+ sizeChange: {},
21
+ pageChange: {},
22
+ topBtns: {},
23
+ rowBtns: {},
24
+ columns: {},
25
+ hidden: { type: Boolean },
26
+ hiddenPagination: { type: Boolean },
27
+ handleCurrentChange: {},
28
+ pageSizes: {},
29
+ defaultPageSize: {},
30
+ name: {}
31
+ },
32
+ setup(V, { expose: $ }) {
33
+ const n = V, d = B("ruleModule", void 0), g = B("pageMethodMap", {}), D = B(me), w = D ? D.translateFn : null, C = f(), F = (e, t, a) => {
34
+ i.value[e] && (i.value[e][t] = a);
35
+ }, U = (e, t) => {
36
+ const a = n.columns.find((l) => l.key === e);
37
+ a && (a.hidden = !t);
38
+ }, j = (e, t, a) => {
39
+ try {
40
+ d[e.onClick](g, t, a);
41
+ } catch (l) {
42
+ console.error(l);
43
+ }
44
+ }, H = (e) => {
45
+ if (n.rowClick)
46
+ try {
47
+ d[n.rowClick](g, e);
48
+ } catch (t) {
49
+ console.error(t);
50
+ }
51
+ }, K = (e) => {
52
+ if (n.rowDbClick)
53
+ try {
54
+ d[n.rowDbClick](g, e);
55
+ } catch (t) {
56
+ console.error(t);
57
+ }
58
+ }, A = f([]), L = (e) => {
59
+ A.value = e;
60
+ }, W = () => {
61
+ var e;
62
+ (e = C.value) == null || e.clearSelection();
63
+ }, q = () => i.value, P = f(), x = (e) => {
64
+ if (P.value = e, !!n.handleCurrentChange)
65
+ try {
66
+ d[n.handleCurrentChange](g, e);
67
+ } catch (t) {
68
+ console.error(t);
69
+ }
70
+ }, G = () => P.value, J = () => {
71
+ var e;
72
+ return (e = C.value) == null ? void 0 : e.getSelectionRows();
73
+ }, O = async () => !0, Q = (e, t) => {
74
+ var l;
75
+ const a = (l = n.topBtns) == null ? void 0 : l.find((v) => v.key === e);
76
+ a && (a.hidden = t);
77
+ }, X = (e, t) => {
78
+ var l;
79
+ const a = (l = n.rowBtns) == null ? void 0 : l.find((v) => v.key === e);
80
+ a && (a.condition = !t);
81
+ }, _ = f(0), Y = (e) => {
82
+ _.value = e;
83
+ }, r = f({ pageNum: 1, pageSize: n.defaultPageSize || 10 }), Z = () => r.value, I = (e) => {
84
+ let t = !1;
85
+ return e.pageNum > -1 && (r.value.pageNum !== e.pageNum && (t = !0), r.value.pageNum = e.pageNum), e.pageSize > -1 && (r.value.pageSize !== e.pageSize && (t = !0), r.value.pageSize = e.pageSize), { pagination: r.value, isChange: t };
86
+ }, ee = (e) => {
87
+ if (r.value.pageNum = 1, r.value.pageSize = e, !!n.sizeChange)
88
+ try {
89
+ d[n.sizeChange](g, r.value);
90
+ } catch (t) {
91
+ console.error(t);
92
+ }
93
+ }, te = (e) => {
94
+ if (r.value.pageNum = e, !!n.pageChange)
95
+ try {
96
+ d[n.pageChange](g, r.value);
97
+ } catch (t) {
98
+ console.error(t);
99
+ }
100
+ }, ne = (e) => {
101
+ var t;
102
+ (t = C.value) == null || t.setCurrentRow(e);
103
+ }, ae = (e) => {
104
+ var t;
105
+ (t = C.value) == null || t.setCurrentRow(i.value[e]);
106
+ }, oe = (e, t, a) => {
107
+ n.columns.forEach((l) => {
108
+ l.key === e && l[t] && (l[t] = a);
109
+ });
110
+ }, i = f([]), le = (e) => {
111
+ i.value = e;
112
+ }, re = (e = {}) => {
113
+ i.value.push(e);
114
+ }, ie = (e) => {
115
+ e >= 0 && e < i.value.length && i.value.splice(e, 1);
116
+ }, se = async () => {
117
+ i.value = [...i.value];
118
+ }, T = pe("rootRef"), M = de({
119
+ ...ge(n),
120
+ setCellData: F,
121
+ clearSelection: W,
122
+ getData: q,
123
+ getCurrentRow: G,
124
+ getSelectedRows: J,
125
+ addRow: re,
126
+ deleteRow: ie,
127
+ refresh: se,
128
+ validate: O,
129
+ setData: le,
130
+ selectRow: ne,
131
+ selectRowNum: ae,
132
+ setTotal: Y,
133
+ getPagination: Z,
134
+ setPagination: I,
135
+ setTopBtnHidden: Q,
136
+ setColVisible: U,
137
+ setColumn: oe,
138
+ setRowsBtnHidden: X,
139
+ rootRef: T,
140
+ type: "table"
141
+ });
142
+ if (n.name) {
143
+ const e = ye(n.name, M);
144
+ he(() => {
145
+ e();
146
+ });
147
+ }
148
+ return $(M), (e, t) => {
149
+ const a = z("el-table-column"), l = z("el-tooltip"), v = z("el-button"), ue = z("el-pagination");
150
+ return e.hidden ? y("", !0) : (s(), m("div", {
151
+ key: 0,
152
+ class: "table-render",
153
+ ref_key: "rootRef",
154
+ ref: T
155
+ }, [
156
+ k(p(we), {
157
+ ref_key: "tableRef",
158
+ ref: C,
159
+ data: i.value,
160
+ "highlight-current-row": e.highlightCurrentRow,
161
+ "row-key": e.rowKey,
162
+ stripe: e.stripe,
163
+ onRowClick: H,
164
+ onRowDblclick: K,
165
+ onSelectionChange: L,
166
+ onCurrentChange: x
167
+ }, {
168
+ empty: c(() => [
169
+ b("div", ze, [
170
+ k(p(Ce), {
171
+ name: "tableEmpty",
172
+ style: { width: 56, height: 56 }
173
+ }),
174
+ t[2] || (t[2] = b("div", null, "No data available,please check", -1))
175
+ ])
176
+ ]),
177
+ default: c(() => [
178
+ e.multipleSelection ? (s(), S(a, {
179
+ key: 0,
180
+ type: "selection",
181
+ width: "55"
182
+ })) : y("", !0),
183
+ (s(!0), m(R, null, E(e.columns, (o) => (s(), m(R, {
184
+ key: o.key
185
+ }, [
186
+ o.hidden ? y("", !0) : (s(), S(a, {
187
+ key: 0,
188
+ prop: o.key,
189
+ "min-width": o.minWidth,
190
+ fixed: o.fixed || !1
191
+ }, {
192
+ header: c(() => [
193
+ k(l, {
194
+ class: "box-item",
195
+ effect: "dark",
196
+ content: o.label,
197
+ "show-after": 300,
198
+ placement: "top"
199
+ }, {
200
+ default: c(() => [
201
+ b("div", be, N(o.label), 1)
202
+ ]),
203
+ _: 2
204
+ }, 1032, ["content"])
205
+ ]),
206
+ default: c(({ row: h }) => [
207
+ k(l, {
208
+ class: "box-item",
209
+ effect: "dark",
210
+ content: p(w) ? p(w)(o.key, h) : h[o.key],
211
+ "show-after": 300,
212
+ placement: "top"
213
+ }, {
214
+ default: c(() => [
215
+ b("div", Se, N(p(w) ? p(w)(o.key, h) : h[o.key]), 1)
216
+ ]),
217
+ _: 2
218
+ }, 1032, ["content"])
219
+ ]),
220
+ _: 2
221
+ }, 1032, ["prop", "min-width", "fixed"]))
222
+ ], 64))), 128)),
223
+ e.rowBtns && e.rowBtns.length > 0 ? (s(), S(a, {
224
+ key: 1,
225
+ label: "Action",
226
+ fixed: "right",
227
+ align: "left"
228
+ }, {
229
+ default: c(({ row: o, $index: h }) => [
230
+ (s(!0), m(R, null, E(e.rowBtns, (u) => (s(), m(R, {
231
+ key: u.key
232
+ }, [
233
+ u.condition === void 0 || u.condition === null || p(ve)(u.condition, { $row: o }) ? (s(), S(v, {
234
+ key: 0,
235
+ disabled: u.disabled,
236
+ size: "small",
237
+ type: u.type,
238
+ onClick: (Be) => j(u, o, h)
239
+ }, {
240
+ default: c(() => [
241
+ fe(N(u.label), 1)
242
+ ]),
243
+ _: 2
244
+ }, 1032, ["disabled", "type", "onClick"])) : y("", !0)
245
+ ], 64))), 128))
246
+ ]),
247
+ _: 1
248
+ })) : y("", !0)
249
+ ]),
250
+ _: 1
251
+ }, 8, ["data", "highlight-current-row", "row-key", "stripe"]),
252
+ !e.hiddenPagination && _.value > 0 ? (s(), m("div", Re, [
253
+ k(ue, {
254
+ background: "",
255
+ layout: "total,sizes, prev, pager, next,jumper",
256
+ total: _.value,
257
+ "page-sizes": e.pageSizes,
258
+ "default-page-size": e.defaultPageSize,
259
+ "current-page": r.value.pageNum,
260
+ "onUpdate:currentPage": t[0] || (t[0] = (o) => r.value.pageNum = o),
261
+ "page-size": r.value.pageSize,
262
+ "onUpdate:pageSize": t[1] || (t[1] = (o) => r.value.pageSize = o),
263
+ onSizeChange: ee,
264
+ onCurrentChange: te
265
+ }, null, 8, ["total", "page-sizes", "default-page-size", "current-page", "page-size"])
266
+ ])) : y("", !0)
267
+ ], 512));
268
+ };
269
+ }
270
+ }), Te = /* @__PURE__ */ ke(_e, [["__scopeId", "data-v-c6058bea"]]);
271
+ export {
272
+ Te as default
273
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, ref as m, watch as _, onMounted as h, resolveComponent as a, openBlock as l, createBlock as c, mergeProps as u, withCtx as d, createElementBlock as b, Fragment as v, renderList as y, createVNode as k, unref as K } from "vue";
2
- import { a as V } from "./index-6mpfROTy.js";
2
+ import { a as V } from "./index-BvOUGCFQ.js";
3
3
  import "element-plus";
4
4
  const w = /* @__PURE__ */ i({
5
5
  __name: "Tabs",
@@ -0,0 +1,25 @@
1
+ import { defineComponent as u, mergeModels as d, useModel as m, resolveComponent as p, openBlock as t, createElementBlock as s, toDisplayString as i, createBlock as c, mergeProps as _ } from "vue";
2
+ const v = { key: 0 }, f = /* @__PURE__ */ u({
3
+ __name: "TextArea",
4
+ props: /* @__PURE__ */ d({
5
+ read: { type: Boolean }
6
+ }, {
7
+ modelValue: {},
8
+ modelModifiers: {}
9
+ }),
10
+ emits: ["update:modelValue"],
11
+ setup(a) {
12
+ const e = m(a, "modelValue");
13
+ return (o, l) => {
14
+ const n = p("el-input");
15
+ return o.read ? (t(), s("div", v, i(e.value || "--"), 1)) : (t(), c(n, _({ key: 1 }, o.$attrs, {
16
+ modelValue: e.value,
17
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => e.value = r),
18
+ type: "textarea"
19
+ }), null, 16, ["modelValue"]));
20
+ };
21
+ }
22
+ });
23
+ export {
24
+ f as default
25
+ };
@@ -0,0 +1,22 @@
1
+ import { defineComponent as r, openBlock as t, createElementBlock as o, normalizeStyle as a, normalizeClass as l, createVNode as n, unref as s } from "vue";
2
+ import { a as p, b as c } from "./index-BvOUGCFQ.js";
3
+ import "element-plus";
4
+ const i = /* @__PURE__ */ r({
5
+ __name: "Wrapper",
6
+ props: {
7
+ children: {},
8
+ style: { type: [Boolean, null, String, Object, Array] },
9
+ type: {}
10
+ },
11
+ setup(m) {
12
+ return (e, _) => (t(), o("div", {
13
+ style: a(e.style),
14
+ class: l({ normal: e.type === "normal" })
15
+ }, [
16
+ n(s(p), { list: e.children }, null, 8, ["list"])
17
+ ], 6));
18
+ }
19
+ }), u = /* @__PURE__ */ c(i, [["__scopeId", "data-v-29b93bec"]]);
20
+ export {
21
+ u as default
22
+ };