asiaint-lowcode 3.1.153 → 3.1.154

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 +139 -139
  3. package/dist/lazy/{Card-Cl11GIWp.js → Card-X_yMu3KA.js} +1 -1
  4. package/dist/lazy/{Cascader-C_eLpOf0.js → Cascader-e0NLoVUj.js} +1 -1
  5. package/dist/lazy/{Checkbox-BOPhLDot.js → Checkbox-BM1rEgQZ.js} +2 -2
  6. package/dist/lazy/{Collapse-X02G1WI0.js → Collapse-C0LN9kQE.js} +1 -1
  7. package/dist/lazy/{Component-B510rkEH.js → Component-B9u68m4E.js} +1 -1
  8. package/dist/lazy/{Component-CUlyRBJj.js → Component-CV66YgeH.js} +1 -1
  9. package/dist/lazy/{Component-BIP3sWqG.js → Component-Cjfc0NlS.js} +1 -1
  10. package/dist/lazy/{Component-CNf0MGyp.js → Component-DTAfdb0g.js} +1 -1
  11. package/dist/lazy/{Component-B58q3H5q.js → Component-FYX_VdBd.js} +1 -1
  12. package/dist/lazy/{CurdCard-3LOZgEq6.js → CurdCard-D8F8tfI1.js} +1 -1
  13. package/dist/lazy/{Custom-Dqkdn57K.js → Custom-C3FtjVn9.js} +1 -1
  14. package/dist/lazy/{DatePicker-HZ2bDF6W.js → DatePicker-maA5sqOc.js} +1 -1
  15. package/dist/lazy/{DragList-BOtv94Ho.js → DragList-EOI8FhkY.js} +1 -1
  16. package/dist/lazy/{FilterSearch-CU0sZIQy.js → FilterSearch-DC_1LOR6.js} +1 -1
  17. package/dist/lazy/FloatCurd-CXRuSgt_.js +261 -0
  18. package/dist/lazy/{FloatSearchCurd-e6vw49JM.js → FloatSearchCurd-BnbyJ5xd.js} +1 -1
  19. package/dist/lazy/{FormList-D0ClbFrB.js → FormList-Dl9vEgny.js} +1 -1
  20. package/dist/lazy/{Grid-DBYFgseV.js → Grid-B5YpUqyd.js} +1 -1
  21. package/dist/lazy/{InfiniteScroll-3beyNVYH.js → InfiniteScroll-D0AofBVp.js} +1 -1
  22. package/dist/lazy/{Inline-Bidahs8D.js → Inline-Ciiw_eyA.js} +1 -1
  23. package/dist/lazy/{JsonEdit-6NOOpxNz.js → JsonEdit-CZiVq9G6.js} +1 -1
  24. package/dist/lazy/{LogList-BxQtOO8q.js → LogList-BcIrtwQq.js} +1 -1
  25. package/dist/lazy/{ObjGroup-BYZbEVvC.js → ObjGroup-ZQE5W4Sw.js} +1 -1
  26. package/dist/lazy/{OfferDetails-BxtdH58u.js → OfferDetails-B8paUJAp.js} +1 -1
  27. package/dist/lazy/{Pagination-C2ozlZen.js → Pagination-3pm4uEEh.js} +1 -1
  28. package/dist/lazy/{Progress-qIHUDNJt.js → Progress-Cq8If2oo.js} +1 -1
  29. package/dist/lazy/{Radio-CReB4RhA.js → Radio-9Mq7BjYC.js} +2 -2
  30. package/dist/lazy/{SearchSelect-DUyyaVie.js → SearchSelect-BAlARVqI.js} +2 -2
  31. package/dist/lazy/{Select-f66hYSoE.js → Select-BUUMsSO3.js} +2 -2
  32. package/dist/lazy/{Table-CHTCGbsh.js → Table-Db_abwDd.js} +1 -1
  33. package/dist/lazy/{Tabs-BWNEKbdx.js → Tabs-B7jtifG8.js} +1 -1
  34. package/dist/lazy/{TextArea-BeOKfNr4.js → TextArea-1hl9ju_Q.js} +1 -1
  35. package/dist/lazy/{Wrapper-DbLzSEUZ.js → Wrapper-CfL_EHJL.js} +1 -1
  36. package/dist/lazy/{index-DbZz1HMJ.js → index-DT8U4ZiK.js} +33 -33
  37. package/dist/lazy/{useSelect-D2_P47Go.js → useSelect-cUuxRwhV.js} +1 -1
  38. package/dist/style.css +1 -1
  39. package/package.json +1 -1
  40. package/dist/lazy/FloatCurd-Dz868I0x.js +0 -243
@@ -1,243 +0,0 @@
1
- import { defineComponent as oe, ref as M, computed as E, onUnmounted as ne, watch as le, onMounted as te, resolveComponent as _, withDirectives as G, openBlock as r, createElementBlock as d, createElementVNode as a, createVNode as s, withKeys as ae, withCtx as i, createBlock as Y, Fragment as F, renderList as H, createTextVNode as N, toDisplayString as I, unref as re, vShow as K, createCommentVNode as O } from "vue";
2
- import { c as se, u as ie, f as R, i as ue, I as m, b as de, _ as ce } from "./index-DbZz1HMJ.js";
3
- import { dayjs as B } from "element-plus";
4
- const pe = { class: "float-curd" }, fe = { class: "curd-body" }, me = { class: "gradient-input-wrapper" }, ve = { class: "custom-prefix-text" }, he = { style: { "padding-right": "8px" } }, _e = { class: "float-form" }, ye = { class: "float-form-header" }, xe = { class: "float-form-header-title" }, Ce = { class: "float-form-header-btns" }, ke = { class: "float-form-body" }, be = {
5
- key: 0,
6
- class: "curd-footer"
7
- }, ge = ["innerHTML"], Ve = ["title"], we = /* @__PURE__ */ oe({
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(U, { expose: J }) {
24
- const l = U, v = M(!1), { ruleModule: y, pageMethodMap: x } = se(), P = ie(), C = E(() => {
25
- var g, f, V, n, w, L, $, q, z;
26
- const e = P.schema.items, o = P.formValues, p = R(e, l.name);
27
- if (!p || !p.children)
28
- return [];
29
- const b = [];
30
- for (const j in o) {
31
- const t = R(p.children, j);
32
- if (t && t.label && !t.hidden) {
33
- const u = o[j];
34
- if (u != null && u !== "") {
35
- const h = {
36
- name: t.name,
37
- label: t.label,
38
- value: u,
39
- closeable: !t.required && !((g = t.props) != null && g.disabled) && ((f = t.props) == null ? void 0 : f.clearable) !== !1
40
- };
41
- t.component === "DatePicker" && (((V = t.props) == null ? void 0 : V.type) === "daterange" ? h.value = B(u[0]).format(((n = t.props) == null ? void 0 : n.valueFormat) || "YYYY-MM-DD") + " - " + B(u[1]).format(((w = t.props) == null ? void 0 : w.valueFormat) || "YYYY-MM-DD") : (h.iconName = "icon-rili", h.value = B(u).format(((L = t.props) == null ? void 0 : L.valueFormat) || "YYYY-MM-DD"))), t.component === "Select" && (h.value = (z = (q = ($ = t.props) == null ? void 0 : $.options) == null ? void 0 : q.find((ee) => ee.value === u)) == null ? void 0 : z.label), b.push(h);
42
- }
43
- }
44
- }
45
- return b;
46
- }), c = M(""), Q = E(() => {
47
- var e, o;
48
- return !l.prefixOptions || l.prefixOptions.length === 0 || !c.value ? "" : (o = (e = l.prefixOptions) == null ? void 0 : e.find((p) => p.value === c.value)) == null ? void 0 : o.label;
49
- });
50
- function W(e) {
51
- c.value = e, k.value = "";
52
- try {
53
- y[l.prefixChange](x, e);
54
- } catch (o) {
55
- console.error(o);
56
- }
57
- }
58
- const k = M("");
59
- function T() {
60
- try {
61
- y[l.onSearch](x), v.value = !1;
62
- } catch (e) {
63
- console.error(e);
64
- }
65
- }
66
- const D = M(!1);
67
- async function S() {
68
- try {
69
- D.value = !0, await y[l.onAiSearch](x, k.value, c.value || "");
70
- } catch (e) {
71
- console.error(e);
72
- } finally {
73
- D.value = !1;
74
- }
75
- }
76
- function X(e) {
77
- P.setFieldValue(e.name, "", ""), T();
78
- }
79
- function Z() {
80
- try {
81
- y[l.onClear](x);
82
- } catch (e) {
83
- console.error(e);
84
- }
85
- }
86
- const A = {
87
- type: "floatcurd"
88
- };
89
- if (J(A), l.name) {
90
- const e = ue(l.name, A);
91
- ne(() => {
92
- e();
93
- });
94
- }
95
- return le(
96
- () => l.defaultPrefixValue,
97
- (e) => {
98
- e && (c.value = e);
99
- }
100
- ), te(() => {
101
- l.defaultPrefixValue ? c.value = l.defaultPrefixValue : l.prefixOptions && l.prefixOptions.length > 0 && (c.value = l.prefixOptions[0].value);
102
- }), (e, o) => {
103
- const p = _("el-dropdown-item"), b = _("el-dropdown-menu"), g = _("el-dropdown"), f = _("el-button"), V = _("el-input");
104
- return G((r(), d("div", pe, [
105
- a("div", fe, [
106
- a("div", me, [
107
- s(V, {
108
- class: "float-curd-ai-input",
109
- placeholder: e.inputPlaceholder,
110
- modelValue: k.value,
111
- "onUpdate:modelValue": o[0] || (o[0] = (n) => k.value = n),
112
- clearable: "",
113
- onClear: S,
114
- onKeyup: ae(S, ["enter"])
115
- }, {
116
- prefix: i(() => [
117
- e.prefixOptions && e.prefixOptions.length > 0 ? (r(), Y(g, { key: 0 }, {
118
- dropdown: i(() => [
119
- s(b, null, {
120
- default: i(() => [
121
- (r(!0), d(F, null, H(e.prefixOptions, (n) => (r(), Y(p, {
122
- key: n.value,
123
- command: n.value,
124
- onClick: (w) => W(n.value)
125
- }, {
126
- default: i(() => [
127
- N(I(n.label), 1)
128
- ]),
129
- _: 2
130
- }, 1032, ["command", "onClick"]))), 128))
131
- ]),
132
- _: 1
133
- })
134
- ]),
135
- default: i(() => [
136
- a("span", ve, [
137
- a("span", he, I(Q.value), 1),
138
- s(m, {
139
- name: "icon-dropdown",
140
- size: 12,
141
- color: "#999"
142
- })
143
- ])
144
- ]),
145
- _: 1
146
- })) : e.hiddenPrefix ? (r(), d(F, { key: 1 }, [], 64)) : (r(), d(F, { key: 2 }, [
147
- s(m, { name: "icon-a-mobang1" }),
148
- o[3] || (o[3] = a("span", { class: "prefix-text" }, "Ask AI", -1))
149
- ], 64))
150
- ]),
151
- suffix: i(() => [
152
- s(f, {
153
- type: "primary",
154
- size: "small",
155
- onClick: S,
156
- loading: D.value
157
- }, {
158
- default: i(() => o[4] || (o[4] = [
159
- N("Go")
160
- ])),
161
- _: 1
162
- }, 8, ["loading"])
163
- ]),
164
- _: 1
165
- }, 8, ["placeholder", "modelValue"])
166
- ]),
167
- s(f, {
168
- plain: !0,
169
- onClick: o[1] || (o[1] = (n) => v.value = !v.value),
170
- class: "more-btn",
171
- type: "primary"
172
- }, {
173
- default: i(() => [
174
- s(m, { name: "icon-tiaojianshaixuan" }),
175
- o[5] || (o[5] = a("span", null, "More", -1))
176
- ]),
177
- _: 1
178
- }),
179
- G(a("div", _e, [
180
- a("div", ye, [
181
- a("div", xe, I(e.formTitle), 1),
182
- a("div", Ce, [
183
- s(f, {
184
- type: "primary",
185
- size: "small",
186
- onClick: T
187
- }, {
188
- default: i(() => o[6] || (o[6] = [
189
- N("Go")
190
- ])),
191
- _: 1
192
- }),
193
- s(m, {
194
- name: "icon-a-rongqi1",
195
- onClick: o[2] || (o[2] = (n) => v.value = !1)
196
- })
197
- ])
198
- ]),
199
- a("div", ke, [
200
- s(re(de), { list: e.children }, null, 8, ["list"])
201
- ])
202
- ], 512), [
203
- [K, v.value]
204
- ])
205
- ]),
206
- C.value && C.value.length > 0 ? (r(), d("div", be, [
207
- (r(!0), d(F, null, H(C.value, (n) => (r(), d("div", {
208
- class: "tag",
209
- key: n.name
210
- }, [
211
- n.iconName ? (r(), Y(m, {
212
- key: 0,
213
- name: n.iconName
214
- }, null, 8, ["name"])) : O("", !0),
215
- a("span", {
216
- innerHTML: n.label + ":"
217
- }, null, 8, ge),
218
- a("span", {
219
- class: "tag-value",
220
- title: n.value
221
- }, I(n.value), 9, Ve),
222
- n.closeable ? (r(), Y(m, {
223
- key: 1,
224
- name: "icon-a-rongqi1",
225
- onClick: (w) => X(n),
226
- class: "close-icon"
227
- }, null, 8, ["onClick"])) : O("", !0)
228
- ]))), 128)),
229
- C.value.length > 0 ? (r(), d("div", {
230
- key: 0,
231
- class: "clear-btn",
232
- onClick: Z
233
- }, "Clear filters")) : O("", !0)
234
- ])) : O("", !0)
235
- ], 512)), [
236
- [K, !e.hidden]
237
- ]);
238
- };
239
- }
240
- }), Ie = /* @__PURE__ */ ce(we, [["__scopeId", "data-v-c106dc65"]]);
241
- export {
242
- Ie as default
243
- };