asiaint-lowcode 3.1.157 → 3.1.159

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 +152 -152
  3. package/dist/lazy/{Card-B3WQCKc6.js → Card-Dse_ws-S.js} +1 -1
  4. package/dist/lazy/{Cascader-DJyywP6c.js → Cascader-D3mGske8.js} +1 -1
  5. package/dist/lazy/{Checkbox-G28n-DK5.js → Checkbox-k_inDMX7.js} +2 -2
  6. package/dist/lazy/{Collapse-DsOvVQLt.js → Collapse-BK-GFu0d.js} +1 -1
  7. package/dist/lazy/{Component-B4VzhhGy.js → Component-B5Hlu4Zi.js} +1 -1
  8. package/dist/lazy/{Component-CobGqGSI.js → Component-B_uixMGX.js} +1 -1
  9. package/dist/lazy/{Component-BcMOjpLS.js → Component-Cs2f4nVA.js} +1 -1
  10. package/dist/lazy/{Component-DuBKi8XH.js → Component-CsLNob-q.js} +1 -1
  11. package/dist/lazy/{Component-DlbOMIFE.js → Component-D0O1lmQ9.js} +1 -1
  12. package/dist/lazy/{CurdCard-CwZHPOnD.js → CurdCard-CeTjTlUT.js} +1 -1
  13. package/dist/lazy/{Custom-eTni_qhQ.js → Custom-BThFohsx.js} +1 -1
  14. package/dist/lazy/{DatePicker-DdOfiER-.js → DatePicker-S4cCexhx.js} +1 -1
  15. package/dist/lazy/{DragList-rSvIz_gB.js → DragList-CHTntb_9.js} +1 -1
  16. package/dist/lazy/{FilterSearch-CftNzvja.js → FilterSearch-Bbgg2kmm.js} +1 -1
  17. package/dist/lazy/{FloatCurd-DDDn22I5.js → FloatCurd-CkguuqeU.js} +1 -1
  18. package/dist/lazy/FloatSearchCurd-D5Cmvgzk.js +447 -0
  19. package/dist/lazy/{FormList-BVWQqPiA.js → FormList-lg2Tj_1B.js} +1 -1
  20. package/dist/lazy/{Grid-BkNXwA5x.js → Grid-C2MahQIc.js} +1 -1
  21. package/dist/lazy/{InfiniteScroll-Vh9Kapq8.js → InfiniteScroll-D7ygmXuY.js} +1 -1
  22. package/dist/lazy/{Inline-DMv-HENx.js → Inline-BQZNznJ7.js} +1 -1
  23. package/dist/lazy/{JsonEdit-BWoNP6xW.js → JsonEdit-DAGOxB5f.js} +1 -1
  24. package/dist/lazy/{LogList-CeegCD2V.js → LogList-BnTPpb_1.js} +1 -1
  25. package/dist/lazy/{ObjGroup-8XLUOmBV.js → ObjGroup-CwJHP3D2.js} +1 -1
  26. package/dist/lazy/{OfferDetails-m0qrqin5.js → OfferDetails-B8V81seY.js} +1 -1
  27. package/dist/lazy/{Pagination-BW5t2j7P.js → Pagination-C0cIc_rq.js} +1 -1
  28. package/dist/lazy/{Progress-CHjbZjN8.js → Progress-CpWWW7yR.js} +1 -1
  29. package/dist/lazy/{Radio-D43D35ot.js → Radio-dT5p-YCx.js} +2 -2
  30. package/dist/lazy/{SearchSelect-BSaLuUJ3.js → SearchSelect-DCEgq06r.js} +2 -2
  31. package/dist/lazy/{Select-an5byIgz.js → Select-CCSIk7-v.js} +2 -2
  32. package/dist/lazy/{Table-BznLrfuR.js → Table-DfwKmXga.js} +1 -1
  33. package/dist/lazy/{Tabs-CuDRO-VL.js → Tabs-BWxVMLwL.js} +1 -1
  34. package/dist/lazy/{TextArea-BnlO6jTM.js → TextArea-BhqpdKNk.js} +1 -1
  35. package/dist/lazy/{Wrapper-GDh1JX-h.js → Wrapper-B9db_bQL.js} +1 -1
  36. package/dist/lazy/{index-HE352yaV.js → index-Dl7VmmAb.js} +33 -33
  37. package/dist/lazy/{useSelect-B_w1W6jX.js → useSelect-CVHyZymm.js} +1 -1
  38. package/dist/style.css +1 -1
  39. package/package.json +1 -1
  40. package/dist/lazy/FloatSearchCurd-DMlvc2YW.js +0 -425
@@ -1,425 +0,0 @@
1
- import { defineComponent as Ie, mergeModels as Me, useModel as te, ref as u, computed as le, onUnmounted as ne, watch as Fe, onMounted as De, resolveComponent as b, resolveDirective as Se, withDirectives as H, openBlock as a, createElementBlock as s, createElementVNode as n, createVNode as c, withKeys as Ve, withCtx as d, Fragment as k, withModifiers as oe, renderList as T, createBlock as R, toDisplayString as m, createTextVNode as ae, createCommentVNode as C, normalizeClass as Ee, normalizeStyle as Te, unref as Le, vShow as se } from "vue";
2
- import { c as Be, u as Ye, f as re, i as Oe, I as D, a as Pe, b as Ne, _ as $e } from "./index-HE352yaV.js";
3
- import { dayjs as A } from "element-plus";
4
- const ze = { class: "float-curd" }, He = { class: "curd-body" }, Re = { class: "custom-prefix-text" }, Ae = { style: { "padding-right": "8px" } }, qe = { style: { "font-size": "12px" } }, je = {
5
- key: 0,
6
- class: "empty-content h-[234px]"
7
- }, Ge = {
8
- key: 2,
9
- class: "flex"
10
- }, Ke = ["onMouseenter", "onClick"], Ue = ["innerHTML"], We = ["innerHTML"], Je = {
11
- key: 0,
12
- class: "flex-[500_1_0] bg-[#ffffff] border-l-solid border-l-[#E5E7EB] border-l-[1px]"
13
- }, Qe = { class: "bg-[#FBFBFB] py-[24px] px-[16px] border-b-solid border-b-[#E5E7EB] border-b-[1px]" }, Xe = { class: "flex-y-center gap-[8px]" }, Ze = { class: "text-[#333333] text-[18px] leading-[18px] font-bold mb-[4px]" }, et = { class: "text-[#333333] text-[12px] leading-[12px]" }, tt = { class: "px-[16px] pt-[16px] grid grid-cols-2 gap-[16px]" }, lt = { class: "text-[#666666] text-[12px] leading-[12px] mb-[4px]" }, nt = ["title"], ot = { class: "float-form" }, at = { class: "float-form-header" }, st = { class: "float-form-header-title" }, rt = { class: "float-form-header-btns" }, it = { class: "float-form-body" }, ct = { class: "curd-footer" }, ut = ["innerHTML"], dt = ["title"], pt = /* @__PURE__ */ Ie({
14
- __name: "FloatSearchCurd",
15
- props: /* @__PURE__ */ Me({
16
- name: {},
17
- children: {},
18
- formTitle: {},
19
- onSearch: {},
20
- onAiSearch: {},
21
- onClear: {},
22
- inputPlaceholder: {},
23
- hidden: { type: Boolean },
24
- prefixOptions: {},
25
- prefixChange: {},
26
- defaultPrefixValue: {},
27
- onDetailInfo: {},
28
- onFloatSearch: {},
29
- onSelectItem: {}
30
- }, {
31
- searchData: {},
32
- searchDataModifiers: {},
33
- detailInfo: {},
34
- detailInfoModifiers: {}
35
- }),
36
- emits: ["update:searchData", "update:detailInfo"],
37
- setup(P, { expose: ie }) {
38
- const o = P, h = te(P, "searchData"), x = te(P, "detailInfo"), S = u(!1), { ruleModule: _, pageMethodMap: y } = Be(), N = Ye(), q = le(() => {
39
- var I, M, L, B, Y, O, l, F, Z;
40
- const e = N.schema.items, t = N.formValues, r = re(e, o.name);
41
- if (!r || !r.children)
42
- return [];
43
- const g = [];
44
- for (const ee in t) {
45
- const i = re(r.children, ee);
46
- if (i && i.label && !i.hidden) {
47
- const v = t[ee];
48
- if (v != null && v !== "") {
49
- const E = {
50
- name: i.name,
51
- label: i.label,
52
- value: v,
53
- closeable: !i.required && !((I = i.props) != null && I.disabled) && ((M = i.props) == null ? void 0 : M.clearable) !== !1
54
- };
55
- i.component === "DatePicker" && (((L = i.props) == null ? void 0 : L.type) === "daterange" ? E.value = A(v[0]).format(((B = i.props) == null ? void 0 : B.valueFormat) || "YYYY-MM-DD") + " - " + A(v[1]).format(((Y = i.props) == null ? void 0 : Y.valueFormat) || "YYYY-MM-DD") : (E.iconName = "icon-rili", E.value = A(v).format(((O = i.props) == null ? void 0 : O.valueFormat) || "YYYY-MM-DD"))), i.component === "Select" && (E.value = (Z = (F = (l = i.props) == null ? void 0 : l.options) == null ? void 0 : F.find((we) => we.value === v)) == null ? void 0 : Z.label), g.push(E);
56
- }
57
- }
58
- }
59
- return g;
60
- }), p = u(""), ce = le(() => {
61
- var e, t;
62
- return !o.prefixOptions || o.prefixOptions.length === 0 || !p.value ? "" : (t = (e = o.prefixOptions) == null ? void 0 : e.find((r) => r.value === p.value)) == null ? void 0 : t.label;
63
- });
64
- function ue(e) {
65
- p.value = e, f.value = "";
66
- try {
67
- _[o.prefixChange](y, e);
68
- } catch (t) {
69
- console.error(t);
70
- }
71
- }
72
- const f = u("");
73
- function j() {
74
- try {
75
- _[o.onSearch](y), S.value = !1;
76
- } catch (e) {
77
- console.error(e);
78
- }
79
- }
80
- const $ = u(!1);
81
- async function z() {
82
- try {
83
- $.value = !0, await _[o.onAiSearch](y, f.value, p.value || "");
84
- } catch (e) {
85
- console.error(e);
86
- } finally {
87
- $.value = !1;
88
- }
89
- }
90
- function de(e) {
91
- N.setFieldValue(e.name, "", ""), j();
92
- }
93
- function pe() {
94
- try {
95
- _[o.onClear](y);
96
- } catch (e) {
97
- console.error(e);
98
- }
99
- }
100
- const G = {
101
- type: "floatcurd"
102
- };
103
- if (ie(G), o.name) {
104
- const e = Oe(o.name, G);
105
- ne(() => {
106
- e();
107
- });
108
- }
109
- Fe(
110
- () => o.defaultPrefixValue,
111
- (e) => {
112
- e && (p.value = e);
113
- }
114
- );
115
- const K = u(!1), w = u(!1);
116
- u([]);
117
- const fe = u(""), V = u(!1), ve = u(!1);
118
- function U(e) {
119
- return f.value ? e ? e.replace(
120
- new RegExp(f.value, "gi"),
121
- (t) => `<span style="color: var(--el-color-primary)">${t}</span>`
122
- ) : "--" : e;
123
- }
124
- async function me(e) {
125
- try {
126
- await _[o.onDetailInfo](y, e);
127
- } catch (t) {
128
- console.error(t);
129
- }
130
- }
131
- async function he(e) {
132
- try {
133
- await _[o.onSelectItem](y, e), w.value = !1;
134
- } catch (t) {
135
- console.error(t);
136
- }
137
- }
138
- function xe() {
139
- f.value && (w.value = !0);
140
- }
141
- function _e() {
142
- K.value = !0;
143
- }
144
- function ye() {
145
- K.value = !1;
146
- }
147
- function ge(e) {
148
- e ? (w.value = !0, ke()) : (h.value = [], x.value = {
149
- title: "",
150
- subTitle: "",
151
- content: []
152
- }, w.value = !1);
153
- }
154
- async function be() {
155
- try {
156
- V.value = !0, h.value = [], x.value = {
157
- title: "",
158
- subTitle: "",
159
- content: []
160
- }, await _[o.onFloatSearch](y, f.value, p.value || "");
161
- } catch (e) {
162
- console.error(e);
163
- } finally {
164
- V.value = !1;
165
- }
166
- }
167
- let ke = Ce(be, 300);
168
- function Ce(e, t = 500) {
169
- let r = null;
170
- return function(...g) {
171
- const I = this;
172
- r && clearTimeout(r), r = setTimeout(() => {
173
- e.apply(I, g), r = null;
174
- }, t);
175
- };
176
- }
177
- const W = u(null), J = u(null), Q = (e) => {
178
- var t, r;
179
- try {
180
- !((t = W.value) != null && t.contains(e.target)) && !((r = J.value) != null && r.contains(e.target)) && X();
181
- } catch {
182
- X();
183
- }
184
- };
185
- function X() {
186
- console.log("hideSearchDialog"), w.value = !1;
187
- }
188
- return De(() => {
189
- document.addEventListener("click", Q), o.defaultPrefixValue ? p.value = o.defaultPrefixValue : o.prefixOptions && o.prefixOptions.length > 0 && (p.value = o.prefixOptions[0].value);
190
- }), ne(() => {
191
- document.removeEventListener("click", Q);
192
- }), (e, t) => {
193
- const r = b("el-dropdown-item"), g = b("el-dropdown-menu"), I = b("el-dropdown"), M = b("el-button"), L = b("el-input"), B = b("el-skeleton"), Y = b("el-scrollbar"), O = Se("loading");
194
- return H((a(), s("div", ze, [
195
- n("div", He, [
196
- n("div", {
197
- class: "gradient-input-wrapper",
198
- ref_key: "gradientInputWrapperRef",
199
- ref: J
200
- }, [
201
- c(L, {
202
- class: "float-curd-ai-input",
203
- placeholder: e.inputPlaceholder,
204
- modelValue: f.value,
205
- "onUpdate:modelValue": t[1] || (t[1] = (l) => f.value = l),
206
- clearable: "",
207
- onClear: z,
208
- onKeyup: Ve(z, ["enter"]),
209
- onInput: ge,
210
- onFocus: _e,
211
- onBlur: ye,
212
- onClick: xe
213
- }, {
214
- prefix: d(() => [
215
- e.prefixOptions && e.prefixOptions.length > 0 ? (a(), s(k, { key: 0 }, [
216
- c(I, {
217
- onClick: t[0] || (t[0] = oe(() => {
218
- }, ["stop"]))
219
- }, {
220
- dropdown: d(() => [
221
- c(g, null, {
222
- default: d(() => [
223
- (a(!0), s(k, null, T(e.prefixOptions, (l) => (a(), R(r, {
224
- key: l.value,
225
- command: l.value,
226
- onClick: (F) => ue(l.value),
227
- style: { padding: "4px 8px" }
228
- }, {
229
- default: d(() => [
230
- n("span", qe, m(l.label), 1)
231
- ]),
232
- _: 2
233
- }, 1032, ["command", "onClick"]))), 128))
234
- ]),
235
- _: 1
236
- })
237
- ]),
238
- default: d(() => [
239
- n("span", Re, [
240
- n("span", Ae, m(ce.value), 1)
241
- ])
242
- ]),
243
- _: 1
244
- }),
245
- c(D, {
246
- name: "icon-dropdown",
247
- size: 12,
248
- color: "#999"
249
- })
250
- ], 64)) : (a(), s(k, { key: 1 }, [
251
- c(D, { name: "icon-a-mobang1" }),
252
- t[4] || (t[4] = n("span", { class: "prefix-text" }, "Ask AI", -1))
253
- ], 64))
254
- ]),
255
- suffix: d(() => [
256
- c(M, {
257
- type: "primary",
258
- size: "small",
259
- onClick: oe(z, ["stop"]),
260
- loading: $.value
261
- }, {
262
- default: d(() => t[5] || (t[5] = [
263
- ae("Go")
264
- ])),
265
- _: 1
266
- }, 8, ["loading"])
267
- ]),
268
- _: 1
269
- }, 8, ["placeholder", "modelValue"]),
270
- w.value ? (a(), s("div", {
271
- key: 0,
272
- ref_key: "resultPanelRef",
273
- ref: W,
274
- class: "absolute top-[32px] w-full bg-[#ffffff] shadow-[0_4px_12px_rgba(0,0,0,0.08)] rounded-bl-[8px] rounded-br-[8px] z-2002"
275
- }, [
276
- (!h.value || h.value.length === 0) && !V.value ? (a(), s("div", je, [
277
- c(Pe, {
278
- name: "tableEmpty",
279
- style: { width: 56, height: 56 }
280
- }),
281
- t[6] || (t[6] = n("div", { class: "flex items-center" }, [
282
- n("span", null, "No data")
283
- ], -1))
284
- ])) : C("", !0),
285
- V.value ? (a(), s(k, { key: 1 }, T(5, (l) => n("div", {
286
- key: l,
287
- class: "flex items-center py-[8px] px-[16px]"
288
- }, [
289
- c(B, {
290
- rows: 1,
291
- animated: ""
292
- })
293
- ])), 64)) : h.value && h.value.length > 0 ? (a(), s("div", Ge, [
294
- c(Y, {
295
- class: "pt-[16px] flex-[764_1_0]",
296
- "max-height": "368px",
297
- "wrap-style": { minHeight: V.value ? "368px" : "234px" }
298
- }, {
299
- default: d(() => [
300
- n("div", null, [
301
- (a(!0), s(k, null, T(h.value, (l) => (a(), s("div", {
302
- key: l.name,
303
- class: Ee(["flex-y-center h-[52px] px-[16px] hover:bg-[#E6F0F9] gap-[8px]", { "bg-[#E6F0F9]": l.name === fe.value }]),
304
- onMouseenter: (F) => me(l),
305
- onClick: (F) => he(l)
306
- }, [
307
- n("div", null, [
308
- n("div", {
309
- class: "text-[#333333] text-[14px] leading-[14px] font-bold mb-[4px] whitespace-nowrap",
310
- innerHTML: U(l.title)
311
- }, null, 8, Ue),
312
- n("div", {
313
- class: "text-[#333333] text-[12px] leading-[14px] whitespace-nowrap",
314
- innerHTML: U(l.content)
315
- }, null, 8, We)
316
- ])
317
- ], 42, Ke))), 128))
318
- ])
319
- ]),
320
- _: 1
321
- }, 8, ["wrap-style"]),
322
- x.value && x.value.title ? H((a(), s("div", Je, [
323
- n("div", Qe, [
324
- n("div", Xe, [
325
- n("div", null, [
326
- n("div", Ze, m(x.value.title), 1),
327
- n("div", et, m(x.value.subTitle), 1)
328
- ])
329
- ])
330
- ]),
331
- n("div", tt, [
332
- (a(!0), s(k, null, T(x.value.content, (l) => (a(), s("div", {
333
- key: l.label
334
- }, [
335
- n("div", lt, m(l.label), 1),
336
- n("div", {
337
- class: "text-[#333333] text-[14px] leading-[14px] overflow-hidden text-ellipsis",
338
- style: Te({ color: l.color }),
339
- title: l.value ?? "--"
340
- }, m(l.value || "--"), 13, nt)
341
- ]))), 128))
342
- ])
343
- ])), [
344
- [O, ve.value]
345
- ]) : C("", !0)
346
- ])) : C("", !0)
347
- ], 512)) : C("", !0)
348
- ], 512),
349
- c(M, {
350
- plain: !0,
351
- onClick: t[2] || (t[2] = (l) => S.value = !S.value),
352
- class: "more-btn",
353
- type: "primary"
354
- }, {
355
- default: d(() => [
356
- c(D, { name: "icon-tiaojianshaixuan" }),
357
- t[7] || (t[7] = n("span", null, "More", -1))
358
- ]),
359
- _: 1
360
- }),
361
- H(n("div", ot, [
362
- n("div", at, [
363
- n("div", st, m(e.formTitle), 1),
364
- n("div", rt, [
365
- c(M, {
366
- type: "primary",
367
- size: "small",
368
- onClick: j
369
- }, {
370
- default: d(() => t[8] || (t[8] = [
371
- ae("Go")
372
- ])),
373
- _: 1
374
- }),
375
- c(D, {
376
- name: "icon-a-rongqi1",
377
- onClick: t[3] || (t[3] = (l) => S.value = !1)
378
- })
379
- ])
380
- ]),
381
- n("div", it, [
382
- c(Le(Ne), { list: e.children }, null, 8, ["list"])
383
- ])
384
- ], 512), [
385
- [se, S.value]
386
- ])
387
- ]),
388
- n("div", ct, [
389
- (a(!0), s(k, null, T(q.value, (l) => (a(), s("div", {
390
- class: "tag",
391
- key: l.name
392
- }, [
393
- l.iconName ? (a(), R(D, {
394
- key: 0,
395
- name: l.iconName
396
- }, null, 8, ["name"])) : C("", !0),
397
- n("span", {
398
- innerHTML: l.label + ":"
399
- }, null, 8, ut),
400
- n("span", {
401
- class: "tag-value",
402
- title: l.value
403
- }, m(l.value), 9, dt),
404
- l.closeable ? (a(), R(D, {
405
- key: 1,
406
- name: "icon-a-rongqi1",
407
- onClick: (F) => de(l),
408
- class: "close-icon"
409
- }, null, 8, ["onClick"])) : C("", !0)
410
- ]))), 128)),
411
- q.value.length > 0 ? (a(), s("div", {
412
- key: 0,
413
- class: "clear-btn",
414
- onClick: pe
415
- }, "Clear filters")) : C("", !0)
416
- ])
417
- ], 512)), [
418
- [se, !e.hidden]
419
- ]);
420
- };
421
- }
422
- }), ht = /* @__PURE__ */ $e(pt, [["__scopeId", "data-v-04c8f77b"]]);
423
- export {
424
- ht as default
425
- };