asiaint-lowcode 3.1.179 → 3.1.181

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 (42) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +160 -160
  3. package/dist/lazy/{Card-DaVnv5GX.js → Card-Kfu5J-k1.js} +1 -1
  4. package/dist/lazy/{Cascader-BzTCiKz4.js → Cascader-njucYJKU.js} +1 -1
  5. package/dist/lazy/{Checkbox-DLmN7vrL.js → Checkbox-K9JwI4K1.js} +2 -2
  6. package/dist/lazy/{Collapse-Cg2XGJ4V.js → Collapse-BguRi9YQ.js} +2 -2
  7. package/dist/lazy/{Component-D338glh6.js → Component-Bl64FtkX.js} +1 -1
  8. package/dist/lazy/{Component-gstJXE0L.js → Component-CIwBV4FS.js} +1 -1
  9. package/dist/lazy/{Component-BlJbkvPh.js → Component-Cp6RJQsB.js} +1 -1
  10. package/dist/lazy/{Component-Cb_vVYxr.js → Component-Cttf-7YQ.js} +1 -1
  11. package/dist/lazy/{CurdCard-DLK79fbW.js → CurdCard-zeCvlGW_.js} +1 -1
  12. package/dist/lazy/{Custom-Y7KyocYI.js → Custom-DbdsnG4f.js} +1 -1
  13. package/dist/lazy/{DatePicker-CHlLih1P.js → DatePicker-RkENUOJI.js} +1 -1
  14. package/dist/lazy/{DragList-Bb39ikgl.js → DragList-BzqeY14N.js} +1 -1
  15. package/dist/lazy/{FilterSearch-CwRm0dEF.js → FilterSearch-WF5ZA-SJ.js} +1 -1
  16. package/dist/lazy/FloatCurd-CLapVl8M.js +276 -0
  17. package/dist/lazy/{FloatSearchCurd-FULs5Qhp.js → FloatSearchCurd-CFSoXoEI.js} +1 -1
  18. package/dist/lazy/{FormList-Dp0-GLUC.js → FormList-ZjJVgtpf.js} +1 -1
  19. package/dist/lazy/{Grid-DM9_cXYo.js → Grid-astoimHq.js} +1 -1
  20. package/dist/lazy/{InfiniteScroll-uzAG-Nt2.js → InfiniteScroll-BGjCdxnY.js} +1 -1
  21. package/dist/lazy/{Inline-cQ1k7AI9.js → Inline-DF1DB2Z3.js} +1 -1
  22. package/dist/lazy/{JsonEdit-BuNwV7du.js → JsonEdit-D5I-Eqim.js} +1 -1
  23. package/dist/lazy/{LogList-DmvVjelN.js → LogList-C4Ug5Yol.js} +1 -1
  24. package/dist/lazy/{ObjGroup-BIXfvkFi.js → ObjGroup-DwZtJTp-.js} +1 -1
  25. package/dist/lazy/{OfferDetails-CLwmmiGb.js → OfferDetails-BOgAgnXi.js} +1 -1
  26. package/dist/lazy/{Pagination-1NSYApGE.js → Pagination-BdM8dC98.js} +1 -1
  27. package/dist/lazy/{Progress-B72RVNq5.js → Progress-BpC8IuEN.js} +1 -1
  28. package/dist/lazy/{Radio-CayWnnZc.js → Radio-L1C9CMHH.js} +2 -2
  29. package/dist/lazy/{SearchSelect-BNUi9iZK.js → SearchSelect-BWOTCgSn.js} +2 -2
  30. package/dist/lazy/{Select-BDWBHtA7.js → Select-DTNJNp88.js} +2 -2
  31. package/dist/lazy/{Table-D_1rHnlz.js → Table-ByJ2iH7z.js} +183 -193
  32. package/dist/lazy/{Tabs-B7OqG3ii.js → Tabs-0ZSJNlTe.js} +1 -1
  33. package/dist/lazy/{Tag-Abe0-Tzm.js → Tag-BQLGGskE.js} +1 -1
  34. package/dist/lazy/{TextArea-BuGRq9i2.js → TextArea-CQJj7aH2.js} +1 -1
  35. package/dist/lazy/{Title-B4bUdcdu.js → Title-wF2j2MCD.js} +1 -1
  36. package/dist/lazy/{Title.vue_vue_type_script_setup_true_lang-DHaVsPpz.js → Title.vue_vue_type_script_setup_true_lang-BCyiY8Ec.js} +1 -1
  37. package/dist/lazy/{Wrapper-m6v8pYMf.js → Wrapper-crhzRsL5.js} +1 -1
  38. package/dist/lazy/{index-CYBR736j.js → index-D1oe2LlE.js} +4951 -4897
  39. package/dist/lazy/{useSelect-kj3vzD_O.js → useSelect-nnF2_lcE.js} +1 -1
  40. package/dist/style.css +2 -2
  41. package/package.json +1 -1
  42. package/dist/lazy/FloatCurd-COlhj4nl.js +0 -268
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.1.179",
3
+ "version": "3.1.181",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,268 +0,0 @@
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-CYBR736j.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
- };