asiaint-lowcode 3.1.174 → 3.1.176

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 (55) hide show
  1. package/dist/asiaint-lowcode.d.ts +65 -0
  2. package/dist/asiaint-lowcode.js +7 -7
  3. package/dist/asiaint-lowcode.umd.cjs +234 -234
  4. package/dist/lazy/{Card-CdqSVMKp.js → Card-tY03_jsQ.js} +1 -1
  5. package/dist/lazy/{Cascader-D1H3atkH.js → Cascader-CoiEWibG.js} +1 -1
  6. package/dist/lazy/{Checkbox-rxwRKO2L.js → Checkbox-DgAWi7xv.js} +2 -2
  7. package/dist/lazy/{Collapse-C71dCSaP.js → Collapse-DoX4-z6R.js} +2 -2
  8. package/dist/lazy/Component-B1cRXfb6.js +198 -0
  9. package/dist/lazy/{Component-C14aJsIW.js → Component-CEPZFfnv.js} +1 -1
  10. package/dist/lazy/{Component-j-7aSjsD.js → Component-CwFNnxot.js} +1 -1
  11. package/dist/lazy/{Component-D-djkyEJ.js → Component-DYj0-oAE.js} +1 -1
  12. package/dist/lazy/{CurdCard-SpH6JL4Y.js → CurdCard-DfTd52sw.js} +1 -1
  13. package/dist/lazy/{Custom-BU5XOp-r.js → Custom-Dbj0V-xU.js} +1 -1
  14. package/dist/lazy/DatePicker-Bn2V6hsJ.js +73 -0
  15. package/dist/lazy/{DragList-CfBWQeQz.js → DragList-DqreIFnM.js} +1 -1
  16. package/dist/lazy/FilterSearch-DhDZ-EZP.js +149 -0
  17. package/dist/lazy/FloatCurd-Cfkz6IKM.js +268 -0
  18. package/dist/lazy/FloatSearchCurd-CuGQMSfs.js +447 -0
  19. package/dist/lazy/{FormList-Bb8pnChP.js → FormList-iRDxU3y1.js} +1 -1
  20. package/dist/lazy/{Grid-Db2yree5.js → Grid-BdWqDQr5.js} +1 -1
  21. package/dist/lazy/{InfiniteScroll-1DHgbFA8.js → InfiniteScroll-DLdq1kWV.js} +1 -1
  22. package/dist/lazy/{Inline-BjDXhX1N.js → Inline-BUA_Nnzb.js} +1 -1
  23. package/dist/lazy/{JsonEdit-B1SPhwLj.js → JsonEdit-Dza78rMu.js} +1 -1
  24. package/dist/lazy/{LogList-BUDvAMuS.js → LogList-BuZ8Xjtk.js} +1 -1
  25. package/dist/lazy/{ObjGroup-CNIY-lzc.js → ObjGroup-BVYeKRas.js} +1 -1
  26. package/dist/lazy/OfferDetails-BuFlnyVM.js +208 -0
  27. package/dist/lazy/Pagination-DIueKA4T.js +121 -0
  28. package/dist/lazy/Progress-MldyKkep.js +56 -0
  29. package/dist/lazy/{Radio-Ccv92FSa.js → Radio-Bod52dE2.js} +2 -2
  30. package/dist/lazy/{SearchSelect-CegeM7cQ.js → SearchSelect-CzIo7iiM.js} +2 -2
  31. package/dist/lazy/{Select-BwUZLLXi.js → Select-Cy9eA5-X.js} +2 -2
  32. package/dist/lazy/Table-BVg8ydp1.js +598 -0
  33. package/dist/lazy/Tabs-CbJpP5yI.js +154 -0
  34. package/dist/lazy/Tag-DfelP1C7.js +25 -0
  35. package/dist/lazy/{TextArea-BuVvhsWJ.js → TextArea-HCAqMgrp.js} +1 -1
  36. package/dist/lazy/{Title-32bZDihB.js → Title-7fiPAhd5.js} +1 -1
  37. package/dist/lazy/Title.vue_vue_type_script_setup_true_lang-LunhnrZy.js +26 -0
  38. package/dist/lazy/{Wrapper-BLTyLdnw.js → Wrapper-BR-FaBxi.js} +1 -1
  39. package/dist/lazy/{index-BbsPPc14.js → index-1omyaX4F.js} +9420 -9412
  40. package/dist/lazy/{useSelect-DsEZTPfh.js → useSelect-U2g9t7In.js} +1 -1
  41. package/dist/style.css +2 -2
  42. package/package.json +1 -1
  43. package/dist/lazy/Component-BcbHLE_g.js +0 -321
  44. package/dist/lazy/Component-DO3qZWym.js +0 -192
  45. package/dist/lazy/DatePicker-S3D1E9AQ.js +0 -73
  46. package/dist/lazy/FilterSearch-BbAQVwp0.js +0 -149
  47. package/dist/lazy/FloatCurd-1NLXV_L9.js +0 -268
  48. package/dist/lazy/FloatSearchCurd-HU1XecwR.js +0 -447
  49. package/dist/lazy/OfferDetails-Caj8FZUy.js +0 -206
  50. package/dist/lazy/Pagination-BguRKtZy.js +0 -121
  51. package/dist/lazy/Progress-B-vHTTf7.js +0 -54
  52. package/dist/lazy/Table-BAnOjOoV.js +0 -667
  53. package/dist/lazy/Tabs-Dgnv0RAm.js +0 -150
  54. package/dist/lazy/Tag-IQ_W6v0E.js +0 -22
  55. package/dist/lazy/Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js +0 -23
@@ -0,0 +1,268 @@
1
+ import { defineComponent as ve, ref as P, computed as ne, onUnmounted as _e, watch as ye, onMounted as xe, resolveComponent as V, withDirectives as le, openBlock as r, createElementBlock as d, createElementVNode as a, createVNode as i, withKeys as Ce, withCtx as p, Fragment as w, renderList as te, createBlock as B, toDisplayString as f, unref as x, createTextVNode as ae, vShow as re, createCommentVNode as S } from "vue";
2
+ import { c as be, u as ge, d as ke, f as se, i as Ve, I as C, b as we, _ as Me } from "./index-1omyaX4F.js";
3
+ import { dayjs as L } from "element-plus";
4
+ const Ye = { class: "float-curd" }, Fe = { class: "curd-body" }, Ie = { class: "gradient-input-wrapper" }, Oe = { class: "custom-prefix-text" }, Pe = { style: { "padding-right": "8px" } }, Se = { style: { "font-size": "12px" } }, De = { class: "prefix-text" }, Ne = { class: "float-form" }, Ae = { class: "float-form-header" }, Te = { class: "float-form-header-title" }, Be = { class: "float-form-header-btns" }, Le = { class: "float-form-body" }, $e = {
5
+ key: 0,
6
+ class: "curd-footer"
7
+ }, ze = ["innerHTML"], je = ["title"], qe = /* @__PURE__ */ ve({
8
+ __name: "FloatCurd",
9
+ props: {
10
+ name: {},
11
+ children: {},
12
+ formTitle: {},
13
+ onSearch: {},
14
+ onAiSearch: {},
15
+ onClear: {},
16
+ inputPlaceholder: {},
17
+ hidden: { type: Boolean },
18
+ prefixOptions: {},
19
+ prefixChange: {},
20
+ defaultPrefixValue: {},
21
+ hiddenPrefix: { type: Boolean }
22
+ },
23
+ setup(ie, { expose: ce }) {
24
+ const t = ie, b = P(!1), { ruleModule: M, pageMethodMap: Y } = be(), D = ge(), g = ke();
25
+ function N(e, l, c, v, _) {
26
+ if (e != null && e.length)
27
+ for (const u of e) {
28
+ if (u[c] === l)
29
+ return u[v];
30
+ const m = u[_];
31
+ if (Array.isArray(m) && m.length > 0) {
32
+ const o = N(m, l, c, v, _);
33
+ if (o !== void 0)
34
+ return o;
35
+ }
36
+ }
37
+ }
38
+ const F = ne(() => {
39
+ var _, u, m, o, I, j, q, K, E, H, R, U, G, J, Q, W;
40
+ const e = D.schema.items, l = D.formValues, c = se(e, t.name);
41
+ if (!c || !c.children)
42
+ return [];
43
+ const v = [];
44
+ for (const X in l) {
45
+ const n = se(c.children, X);
46
+ if (n && n.label && !n.hidden) {
47
+ const s = l[X];
48
+ if (s != null && s !== "") {
49
+ const y = {
50
+ name: n.name,
51
+ label: n.label,
52
+ value: s,
53
+ closeable: !n.required && !((_ = n.props) != null && _.disabled) && ((u = n.props) == null ? void 0 : u.clearable) !== !1
54
+ };
55
+ if (n.component === "DatePicker" && (((m = n.props) == null ? void 0 : m.type) === "daterange" ? y.value = L(s[0]).format(((o = n.props) == null ? void 0 : o.valueFormat) || "YYYY-MM-DD") + " - " + L(s[1]).format(((I = n.props) == null ? void 0 : I.valueFormat) || "YYYY-MM-DD") : (y.iconName = "icon-rili", y.value = L(s).format(((j = n.props) == null ? void 0 : j.valueFormat) || "YYYY-MM-DD"))), n.component === "Select" && (y.value = (E = (K = (q = n.props) == null ? void 0 : q.options) == null ? void 0 : K.find((O) => O.value === s)) == null ? void 0 : E.label), n.component === "TreeSelect") {
56
+ const O = ((H = n.props) == null ? void 0 : H.nodeKey) || "id", Z = ((U = (R = n.props) == null ? void 0 : R.props) == null ? void 0 : U.label) || "label", ee = ((J = (G = n.props) == null ? void 0 : G.props) == null ? void 0 : J.children) || "children", oe = (Q = n.props) == null ? void 0 : Q.options;
57
+ (W = n.props) != null && W.multiple && Array.isArray(s) ? y.value = s.map((he) => N(oe, he, O, Z, ee)).filter(Boolean).join(", ") : y.value = N(oe, s, O, Z, ee);
58
+ }
59
+ v.push(y);
60
+ }
61
+ }
62
+ }
63
+ return v;
64
+ }), h = P(""), ue = ne(() => {
65
+ var e, l;
66
+ return !t.prefixOptions || t.prefixOptions.length === 0 || !h.value ? "" : (l = (e = t.prefixOptions) == null ? void 0 : e.find((c) => c.value === h.value)) == null ? void 0 : l.label;
67
+ });
68
+ function de(e) {
69
+ h.value = e, k.value = "";
70
+ try {
71
+ M[t.prefixChange](Y, e);
72
+ } catch (l) {
73
+ console.error(l);
74
+ }
75
+ }
76
+ const k = P("");
77
+ function $() {
78
+ try {
79
+ M[t.onSearch](Y), b.value = !1;
80
+ } catch (e) {
81
+ console.error(e);
82
+ }
83
+ }
84
+ const A = P(!1);
85
+ async function T() {
86
+ try {
87
+ A.value = !0, await M[t.onAiSearch](Y, k.value, h.value || "");
88
+ } catch (e) {
89
+ console.error(e);
90
+ } finally {
91
+ A.value = !1;
92
+ }
93
+ }
94
+ function pe(e) {
95
+ D.setFieldValue(e.name, "", ""), $();
96
+ }
97
+ function fe() {
98
+ try {
99
+ M[t.onClear](Y);
100
+ } catch (e) {
101
+ console.error(e);
102
+ }
103
+ }
104
+ function me() {
105
+ k.value = "";
106
+ }
107
+ const z = {
108
+ clearInputValue: me,
109
+ type: "floatcurd"
110
+ };
111
+ if (ce(z), t.name) {
112
+ const e = Ve(t.name, z);
113
+ _e(() => {
114
+ e();
115
+ });
116
+ }
117
+ return ye(
118
+ () => t.defaultPrefixValue,
119
+ (e) => {
120
+ e && (h.value = e);
121
+ }
122
+ ), xe(() => {
123
+ t.defaultPrefixValue ? h.value = t.defaultPrefixValue : t.prefixOptions && t.prefixOptions.length > 0 && (h.value = t.prefixOptions[0].value);
124
+ }), (e, l) => {
125
+ const c = V("el-dropdown-item"), v = V("el-dropdown-menu"), _ = V("el-dropdown"), u = V("el-button"), m = V("el-input");
126
+ return le((r(), d("div", Ye, [
127
+ a("div", Fe, [
128
+ a("div", Ie, [
129
+ i(m, {
130
+ class: "float-curd-ai-input",
131
+ placeholder: e.inputPlaceholder,
132
+ modelValue: k.value,
133
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => k.value = o),
134
+ clearable: "",
135
+ onClear: T,
136
+ onKeyup: Ce(T, ["enter"])
137
+ }, {
138
+ prefix: p(() => [
139
+ e.prefixOptions && e.prefixOptions.length > 0 ? (r(), d(w, { key: 0 }, [
140
+ i(_, null, {
141
+ dropdown: p(() => [
142
+ i(v, null, {
143
+ default: p(() => [
144
+ (r(!0), d(w, null, te(e.prefixOptions, (o) => (r(), B(c, {
145
+ key: o.value,
146
+ command: o.value,
147
+ onClick: (I) => de(o.value),
148
+ style: { padding: "4px 8px" }
149
+ }, {
150
+ default: p(() => [
151
+ a("span", Se, f(o.label), 1)
152
+ ]),
153
+ _: 2
154
+ }, 1032, ["command", "onClick"]))), 128))
155
+ ]),
156
+ _: 1
157
+ })
158
+ ]),
159
+ default: p(() => [
160
+ a("span", Oe, [
161
+ a("span", Pe, f(ue.value), 1)
162
+ ])
163
+ ]),
164
+ _: 1
165
+ }),
166
+ i(C, {
167
+ name: "icon-dropdown",
168
+ size: 12,
169
+ color: "#999"
170
+ })
171
+ ], 64)) : e.hiddenPrefix ? (r(), d(w, { key: 1 }, [], 64)) : (r(), d(w, { key: 2 }, [
172
+ i(C, { name: "icon-a-mobang1" }),
173
+ a("span", De, f(x(g).floatCurd.askAi), 1)
174
+ ], 64))
175
+ ]),
176
+ suffix: p(() => [
177
+ i(u, {
178
+ type: "primary",
179
+ size: "small",
180
+ onClick: T,
181
+ loading: A.value
182
+ }, {
183
+ default: p(() => [
184
+ ae(f(x(g).floatCurd.go), 1)
185
+ ]),
186
+ _: 1
187
+ }, 8, ["loading"])
188
+ ]),
189
+ _: 1
190
+ }, 8, ["placeholder", "modelValue"])
191
+ ]),
192
+ i(u, {
193
+ plain: !0,
194
+ onClick: l[1] || (l[1] = (o) => b.value = !b.value),
195
+ class: "more-btn",
196
+ type: "primary"
197
+ }, {
198
+ default: p(() => [
199
+ i(C, { name: "icon-tiaojianshaixuan" }),
200
+ a("span", null, f(x(g).floatCurd.more), 1)
201
+ ]),
202
+ _: 1
203
+ }),
204
+ le(a("div", Ne, [
205
+ a("div", Ae, [
206
+ a("div", Te, f(e.formTitle), 1),
207
+ a("div", Be, [
208
+ i(u, {
209
+ type: "primary",
210
+ size: "small",
211
+ onClick: $
212
+ }, {
213
+ default: p(() => [
214
+ ae(f(x(g).floatCurd.go), 1)
215
+ ]),
216
+ _: 1
217
+ }),
218
+ i(C, {
219
+ name: "icon-a-rongqi1",
220
+ onClick: l[2] || (l[2] = (o) => b.value = !1)
221
+ })
222
+ ])
223
+ ]),
224
+ a("div", Le, [
225
+ i(x(we), { list: e.children }, null, 8, ["list"])
226
+ ])
227
+ ], 512), [
228
+ [re, b.value]
229
+ ])
230
+ ]),
231
+ F.value && F.value.length > 0 ? (r(), d("div", $e, [
232
+ (r(!0), d(w, null, te(F.value, (o) => (r(), d("div", {
233
+ class: "tag",
234
+ key: o.name
235
+ }, [
236
+ o.iconName ? (r(), B(C, {
237
+ key: 0,
238
+ name: o.iconName
239
+ }, null, 8, ["name"])) : S("", !0),
240
+ a("span", {
241
+ innerHTML: o.label + ":"
242
+ }, null, 8, ze),
243
+ a("span", {
244
+ class: "tag-value",
245
+ title: o.value
246
+ }, f(o.value), 9, je),
247
+ o.closeable ? (r(), B(C, {
248
+ key: 1,
249
+ name: "icon-a-rongqi1",
250
+ onClick: (I) => pe(o),
251
+ class: "close-icon"
252
+ }, null, 8, ["onClick"])) : S("", !0)
253
+ ]))), 128)),
254
+ F.value.length > 0 ? (r(), d("div", {
255
+ key: 0,
256
+ class: "clear-btn",
257
+ onClick: fe
258
+ }, f(x(g).curd.resetFilters), 1)) : S("", !0)
259
+ ])) : S("", !0)
260
+ ], 512)), [
261
+ [re, !e.hidden]
262
+ ]);
263
+ };
264
+ }
265
+ }), Re = /* @__PURE__ */ Me(qe, [["__scopeId", "data-v-e9046e66"]]);
266
+ export {
267
+ Re as default
268
+ };