asiaint-lowcode 3.1.159 → 3.1.161

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 (40) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +122 -122
  3. package/dist/lazy/{Card-Dse_ws-S.js → Card-C7hDrvyX.js} +1 -1
  4. package/dist/lazy/{Cascader-D3mGske8.js → Cascader-WxoE82Up.js} +1 -1
  5. package/dist/lazy/{Checkbox-k_inDMX7.js → Checkbox-C41keSpT.js} +2 -2
  6. package/dist/lazy/{Collapse-BK-GFu0d.js → Collapse-Bi9enj2I.js} +1 -1
  7. package/dist/lazy/{Component-B5Hlu4Zi.js → Component-B0rUbm6_.js} +1 -1
  8. package/dist/lazy/{Component-D0O1lmQ9.js → Component-BhRudNPP.js} +1 -1
  9. package/dist/lazy/{Component-Cs2f4nVA.js → Component-CH-gTVjn.js} +1 -1
  10. package/dist/lazy/{Component-B_uixMGX.js → Component-DpTTi8lY.js} +1 -1
  11. package/dist/lazy/{Component-CsLNob-q.js → Component-IebwcOdT.js} +1 -1
  12. package/dist/lazy/{CurdCard-CeTjTlUT.js → CurdCard-DrnMidwd.js} +1 -1
  13. package/dist/lazy/{Custom-BThFohsx.js → Custom-BXRELBar.js} +1 -1
  14. package/dist/lazy/{DatePicker-S4cCexhx.js → DatePicker-DaK0NDy0.js} +1 -1
  15. package/dist/lazy/{DragList-CHTntb_9.js → DragList-DxmKXlmw.js} +1 -1
  16. package/dist/lazy/{FilterSearch-Bbgg2kmm.js → FilterSearch-CXgkiu4o.js} +1 -1
  17. package/dist/lazy/FloatCurd-Bm0Hsvqs.js +268 -0
  18. package/dist/lazy/{FloatSearchCurd-D5Cmvgzk.js → FloatSearchCurd-DZ-rfowR.js} +1 -1
  19. package/dist/lazy/{FormList-lg2Tj_1B.js → FormList-CCSlFHzz.js} +1 -1
  20. package/dist/lazy/{Grid-C2MahQIc.js → Grid-C2uNTfXD.js} +1 -1
  21. package/dist/lazy/{InfiniteScroll-D7ygmXuY.js → InfiniteScroll-BtOlQ9AZ.js} +1 -1
  22. package/dist/lazy/{Inline-BQZNznJ7.js → Inline-BhntpQpS.js} +1 -1
  23. package/dist/lazy/{JsonEdit-DAGOxB5f.js → JsonEdit-nrjVCRTN.js} +1 -1
  24. package/dist/lazy/{LogList-BnTPpb_1.js → LogList-DWbG7h4_.js} +1 -1
  25. package/dist/lazy/{ObjGroup-CwJHP3D2.js → ObjGroup-DLyPZlGB.js} +1 -1
  26. package/dist/lazy/{OfferDetails-B8V81seY.js → OfferDetails-BozSV5nv.js} +1 -1
  27. package/dist/lazy/{Pagination-C0cIc_rq.js → Pagination-BQEtr0Gc.js} +1 -1
  28. package/dist/lazy/{Progress-CpWWW7yR.js → Progress-BtR9lPg3.js} +1 -1
  29. package/dist/lazy/{Radio-dT5p-YCx.js → Radio-D3_ow_ph.js} +2 -2
  30. package/dist/lazy/{SearchSelect-DCEgq06r.js → SearchSelect-CHhU63_k.js} +2 -2
  31. package/dist/lazy/{Select-CCSIk7-v.js → Select-DCTtYvnV.js} +2 -2
  32. package/dist/lazy/{Table-DfwKmXga.js → Table-CReuVDzF.js} +1 -1
  33. package/dist/lazy/{Tabs-BWxVMLwL.js → Tabs-BgscQaFm.js} +1 -1
  34. package/dist/lazy/{TextArea-BhqpdKNk.js → TextArea-BpL62qGS.js} +1 -1
  35. package/dist/lazy/{Wrapper-B9db_bQL.js → Wrapper-BeRmkAqf.js} +1 -1
  36. package/dist/lazy/{index-Dl7VmmAb.js → index-CR3SkhHT.js} +34 -34
  37. package/dist/lazy/{useSelect-CVHyZymm.js → useSelect-Clmlijhb.js} +1 -1
  38. package/dist/style.css +2 -2
  39. package/package.json +1 -1
  40. package/dist/lazy/FloatCurd-CkguuqeU.js +0 -265
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.1.159",
3
+ "version": "3.1.161",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,265 +0,0 @@
1
- import { defineComponent as me, ref as Y, computed as oe, onUnmounted as ve, watch as he, onMounted as _e, resolveComponent as C, withDirectives as ne, openBlock as r, createElementBlock as f, createElementVNode as a, createVNode as c, withKeys as ye, withCtx as d, createBlock as I, Fragment as F, renderList as le, createTextVNode as T, toDisplayString as O, unref as be, vShow as te, createCommentVNode as P } from "vue";
2
- import { c as xe, u as Ce, f as ae, i as ke, I as y, b as ge, _ as Ve } from "./index-Dl7VmmAb.js";
3
- import { dayjs as B } from "element-plus";
4
- const we = { class: "float-curd" }, Me = { class: "curd-body" }, Ye = { class: "gradient-input-wrapper" }, Ie = { class: "custom-prefix-text" }, Fe = { style: { "padding-right": "8px" } }, Oe = { class: "float-form" }, Pe = { class: "float-form-header" }, Se = { class: "float-form-header-title" }, Ae = { class: "float-form-header-btns" }, De = { class: "float-form-body" }, Ne = {
5
- key: 0,
6
- class: "curd-footer"
7
- }, Te = ["innerHTML"], Be = ["title"], Le = /* @__PURE__ */ me({
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(re, { expose: ie }) {
24
- const t = re, b = Y(!1), { ruleModule: k, pageMethodMap: g } = xe(), S = Ce();
25
- function A(e, o, s, v, h) {
26
- if (e != null && e.length)
27
- for (const u of e) {
28
- if (u[s] === o)
29
- return u[v];
30
- const p = u[h];
31
- if (Array.isArray(p) && p.length > 0) {
32
- const n = A(p, o, s, v, h);
33
- if (n !== void 0)
34
- return n;
35
- }
36
- }
37
- }
38
- const V = oe(() => {
39
- var h, u, p, n, w, j, q, z, K, E, G, H, R, U, J, Q;
40
- const e = S.schema.items, o = S.formValues, s = ae(e, t.name);
41
- if (!s || !s.children)
42
- return [];
43
- const v = [];
44
- for (const W in o) {
45
- const l = ae(s.children, W);
46
- if (l && l.label && !l.hidden) {
47
- const i = o[W];
48
- if (i != null && i !== "") {
49
- const _ = {
50
- name: l.name,
51
- label: l.label,
52
- value: i,
53
- closeable: !l.required && !((h = l.props) != null && h.disabled) && ((u = l.props) == null ? void 0 : u.clearable) !== !1
54
- };
55
- if (l.component === "DatePicker" && (((p = l.props) == null ? void 0 : p.type) === "daterange" ? _.value = B(i[0]).format(((n = l.props) == null ? void 0 : n.valueFormat) || "YYYY-MM-DD") + " - " + B(i[1]).format(((w = l.props) == null ? void 0 : w.valueFormat) || "YYYY-MM-DD") : (_.iconName = "icon-rili", _.value = B(i).format(((j = l.props) == null ? void 0 : j.valueFormat) || "YYYY-MM-DD"))), l.component === "Select" && (_.value = (K = (z = (q = l.props) == null ? void 0 : q.options) == null ? void 0 : z.find((M) => M.value === i)) == null ? void 0 : K.label), l.component === "TreeSelect") {
56
- const M = ((E = l.props) == null ? void 0 : E.nodeKey) || "id", X = ((H = (G = l.props) == null ? void 0 : G.props) == null ? void 0 : H.label) || "label", Z = ((U = (R = l.props) == null ? void 0 : R.props) == null ? void 0 : U.children) || "children", ee = (J = l.props) == null ? void 0 : J.options;
57
- (Q = l.props) != null && Q.multiple && Array.isArray(i) ? _.value = i.map((fe) => A(ee, fe, M, X, Z)).filter(Boolean).join(", ") : _.value = A(ee, i, M, X, Z);
58
- }
59
- v.push(_);
60
- }
61
- }
62
- }
63
- return v;
64
- }), m = Y(""), se = oe(() => {
65
- var e, o;
66
- return !t.prefixOptions || t.prefixOptions.length === 0 || !m.value ? "" : (o = (e = t.prefixOptions) == null ? void 0 : e.find((s) => s.value === m.value)) == null ? void 0 : o.label;
67
- });
68
- function ue(e) {
69
- m.value = e, x.value = "";
70
- try {
71
- k[t.prefixChange](g, e);
72
- } catch (o) {
73
- console.error(o);
74
- }
75
- }
76
- const x = Y("");
77
- function L() {
78
- try {
79
- k[t.onSearch](g), b.value = !1;
80
- } catch (e) {
81
- console.error(e);
82
- }
83
- }
84
- const D = Y(!1);
85
- async function N() {
86
- try {
87
- D.value = !0, await k[t.onAiSearch](g, x.value, m.value || "");
88
- } catch (e) {
89
- console.error(e);
90
- } finally {
91
- D.value = !1;
92
- }
93
- }
94
- function ce(e) {
95
- S.setFieldValue(e.name, "", ""), L();
96
- }
97
- function de() {
98
- try {
99
- k[t.onClear](g);
100
- } catch (e) {
101
- console.error(e);
102
- }
103
- }
104
- function pe() {
105
- x.value = "";
106
- }
107
- const $ = {
108
- clearInputValue: pe,
109
- type: "floatcurd"
110
- };
111
- if (ie($), t.name) {
112
- const e = ke(t.name, $);
113
- ve(() => {
114
- e();
115
- });
116
- }
117
- return he(
118
- () => t.defaultPrefixValue,
119
- (e) => {
120
- e && (m.value = e);
121
- }
122
- ), _e(() => {
123
- t.defaultPrefixValue ? m.value = t.defaultPrefixValue : t.prefixOptions && t.prefixOptions.length > 0 && (m.value = t.prefixOptions[0].value);
124
- }), (e, o) => {
125
- const s = C("el-dropdown-item"), v = C("el-dropdown-menu"), h = C("el-dropdown"), u = C("el-button"), p = C("el-input");
126
- return ne((r(), f("div", we, [
127
- a("div", Me, [
128
- a("div", Ye, [
129
- c(p, {
130
- class: "float-curd-ai-input",
131
- placeholder: e.inputPlaceholder,
132
- modelValue: x.value,
133
- "onUpdate:modelValue": o[0] || (o[0] = (n) => x.value = n),
134
- clearable: "",
135
- onClear: N,
136
- onKeyup: ye(N, ["enter"])
137
- }, {
138
- prefix: d(() => [
139
- e.prefixOptions && e.prefixOptions.length > 0 ? (r(), I(h, { key: 0 }, {
140
- dropdown: d(() => [
141
- c(v, null, {
142
- default: d(() => [
143
- (r(!0), f(F, null, le(e.prefixOptions, (n) => (r(), I(s, {
144
- key: n.value,
145
- command: n.value,
146
- onClick: (w) => ue(n.value)
147
- }, {
148
- default: d(() => [
149
- T(O(n.label), 1)
150
- ]),
151
- _: 2
152
- }, 1032, ["command", "onClick"]))), 128))
153
- ]),
154
- _: 1
155
- })
156
- ]),
157
- default: d(() => [
158
- a("span", Ie, [
159
- a("span", Fe, O(se.value), 1),
160
- c(y, {
161
- name: "icon-dropdown",
162
- size: 12,
163
- color: "#999"
164
- })
165
- ])
166
- ]),
167
- _: 1
168
- })) : e.hiddenPrefix ? (r(), f(F, { key: 1 }, [], 64)) : (r(), f(F, { key: 2 }, [
169
- c(y, { name: "icon-a-mobang1" }),
170
- o[3] || (o[3] = a("span", { class: "prefix-text" }, "Ask AI", -1))
171
- ], 64))
172
- ]),
173
- suffix: d(() => [
174
- c(u, {
175
- type: "primary",
176
- size: "small",
177
- onClick: N,
178
- loading: D.value
179
- }, {
180
- default: d(() => o[4] || (o[4] = [
181
- T("Go")
182
- ])),
183
- _: 1
184
- }, 8, ["loading"])
185
- ]),
186
- _: 1
187
- }, 8, ["placeholder", "modelValue"])
188
- ]),
189
- c(u, {
190
- plain: !0,
191
- onClick: o[1] || (o[1] = (n) => b.value = !b.value),
192
- class: "more-btn",
193
- type: "primary"
194
- }, {
195
- default: d(() => [
196
- c(y, { name: "icon-tiaojianshaixuan" }),
197
- o[5] || (o[5] = a("span", null, "More", -1))
198
- ]),
199
- _: 1
200
- }),
201
- ne(a("div", Oe, [
202
- a("div", Pe, [
203
- a("div", Se, O(e.formTitle), 1),
204
- a("div", Ae, [
205
- c(u, {
206
- type: "primary",
207
- size: "small",
208
- onClick: L
209
- }, {
210
- default: d(() => o[6] || (o[6] = [
211
- T("Go")
212
- ])),
213
- _: 1
214
- }),
215
- c(y, {
216
- name: "icon-a-rongqi1",
217
- onClick: o[2] || (o[2] = (n) => b.value = !1)
218
- })
219
- ])
220
- ]),
221
- a("div", De, [
222
- c(be(ge), { list: e.children }, null, 8, ["list"])
223
- ])
224
- ], 512), [
225
- [te, b.value]
226
- ])
227
- ]),
228
- V.value && V.value.length > 0 ? (r(), f("div", Ne, [
229
- (r(!0), f(F, null, le(V.value, (n) => (r(), f("div", {
230
- class: "tag",
231
- key: n.name
232
- }, [
233
- n.iconName ? (r(), I(y, {
234
- key: 0,
235
- name: n.iconName
236
- }, null, 8, ["name"])) : P("", !0),
237
- a("span", {
238
- innerHTML: n.label + ":"
239
- }, null, 8, Te),
240
- a("span", {
241
- class: "tag-value",
242
- title: n.value
243
- }, O(n.value), 9, Be),
244
- n.closeable ? (r(), I(y, {
245
- key: 1,
246
- name: "icon-a-rongqi1",
247
- onClick: (w) => ce(n),
248
- class: "close-icon"
249
- }, null, 8, ["onClick"])) : P("", !0)
250
- ]))), 128)),
251
- V.value.length > 0 ? (r(), f("div", {
252
- key: 0,
253
- class: "clear-btn",
254
- onClick: de
255
- }, "Clear filters")) : P("", !0)
256
- ])) : P("", !0)
257
- ], 512)), [
258
- [te, !e.hidden]
259
- ]);
260
- };
261
- }
262
- }), ze = /* @__PURE__ */ Ve(Le, [["__scopeId", "data-v-45bb8c0d"]]);
263
- export {
264
- ze as default
265
- };