asiaint-lowcode 3.1.141 → 3.1.143

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.d.ts +14 -0
  2. package/dist/asiaint-lowcode.js +1 -1
  3. package/dist/asiaint-lowcode.umd.cjs +192 -192
  4. package/dist/lazy/{Card-K1YxTgLf.js → Card-OlSIhgD4.js} +1 -1
  5. package/dist/lazy/{Cascader-DPY8u2wG.js → Cascader-BDb0Ki34.js} +10 -9
  6. package/dist/lazy/{Checkbox-BbcIlYAy.js → Checkbox-uIBlnbes.js} +14 -13
  7. package/dist/lazy/{Collapse-EH-3B9MI.js → Collapse-D_HTmlEI.js} +1 -1
  8. package/dist/lazy/{Component-QeIY77-X.js → Component-Boe66Tbv.js} +1 -1
  9. package/dist/lazy/{Component-BFqbKA73.js → Component-By5dLg8S.js} +1 -1
  10. package/dist/lazy/{Component-CfqfhO6D.js → Component-C67IzUwB.js} +1 -1
  11. package/dist/lazy/{Component-DQWsTZlR.js → Component-DbSA8jNq.js} +1 -1
  12. package/dist/lazy/{Component-CuKvGbHO.js → Component-beJZ5t-J.js} +1 -1
  13. package/dist/lazy/{CurdCard-CLeGSe16.js → CurdCard-DLjH6HCg.js} +1 -1
  14. package/dist/lazy/{Custom-KsGcSE3n.js → Custom-C3q3Y9IC.js} +1 -1
  15. package/dist/lazy/{DatePicker-DnJoejs7.js → DatePicker-BVECag0i.js} +1 -1
  16. package/dist/lazy/{DragList-kfFmefDm.js → DragList-C0o9A4fS.js} +1 -1
  17. package/dist/lazy/{FilterSearch-BJRGT7EU.js → FilterSearch-COmoVTv7.js} +1 -1
  18. package/dist/lazy/FloatCurd-9_aqbXIy.js +239 -0
  19. package/dist/lazy/FloatSearchCurd-CoHu0Fwr.js +424 -0
  20. package/dist/lazy/{FormList-DZLkcaaR.js → FormList-CA6C736S.js} +1 -1
  21. package/dist/lazy/{Grid-BeDd-5rN.js → Grid-DqS1Rdls.js} +1 -1
  22. package/dist/lazy/{InfiniteScroll-BGLYrEzG.js → InfiniteScroll-C-dycP5T.js} +1 -1
  23. package/dist/lazy/{Inline-BFpm-WEw.js → Inline-CikJsuAu.js} +1 -1
  24. package/dist/lazy/{JsonEdit-Bwt0sGSA.js → JsonEdit-D9dEoFm8.js} +1 -1
  25. package/dist/lazy/{LogList-Buy56C4d.js → LogList-D_T6C5Xq.js} +1 -1
  26. package/dist/lazy/{ObjGroup-CQHCl_rF.js → ObjGroup-CT6sKwFw.js} +1 -1
  27. package/dist/lazy/{OfferDetails-SmLOEj0t.js → OfferDetails-lBlIQEgo.js} +1 -1
  28. package/dist/lazy/{Pagination-XUjYooVn.js → Pagination-BQZTZXl9.js} +1 -1
  29. package/dist/lazy/{Progress-B5UcQwlM.js → Progress-BBbfSGJD.js} +1 -1
  30. package/dist/lazy/{Radio-C6NQ_z94.js → Radio-uth_Ca5-.js} +15 -14
  31. package/dist/lazy/{SearchSelect-xuhhiyQD.js → SearchSelect-CN1-usiy.js} +30 -29
  32. package/dist/lazy/{Select-AsTEyYN4.js → Select-BxQPR_e7.js} +17 -16
  33. package/dist/lazy/{Table-DtZulREh.js → Table-BWgEr9DV.js} +1 -1
  34. package/dist/lazy/{Tabs-osw1slyG.js → Tabs-D3PMjDBa.js} +1 -1
  35. package/dist/lazy/{TextArea-DcS6oNRx.js → TextArea-DJnR-YcV.js} +1 -1
  36. package/dist/lazy/{Wrapper-ZYiv5gHW.js → Wrapper-rdvc505t.js} +1 -1
  37. package/dist/lazy/{index-7y_S8s1Z.js → index-yO01RrJx.js} +704 -686
  38. package/dist/lazy/useSelect-DNbkEyNF.js +78 -0
  39. package/dist/style.css +2 -2
  40. package/package.json +1 -1
  41. package/dist/lazy/FloatCurd-ZF6cKDD1.js +0 -185
  42. package/dist/lazy/useSelect-DaTCTaz-.js +0 -78
@@ -0,0 +1,78 @@
1
+ import { inject as A, ref as h, toRaw as y, onMounted as O, watch as r } from "vue";
2
+ import { $ as S, u as V, l as F, f as I } from "./index-yO01RrJx.js";
3
+ import "element-plus";
4
+ const w = () => {
5
+ const { fetchOptionsFn: e } = A(S);
6
+ return e;
7
+ }, x = (e) => {
8
+ const i = V(), m = w(), a = h([]), c = h(!1);
9
+ let d = 0;
10
+ const s = F.debounce(async () => {
11
+ if (!m || !e.apiParams || Object.values(e.apiParams).some((n) => n === void 0) && !e.allowToBeEmpty)
12
+ return;
13
+ c.value = !0;
14
+ const t = ++d;
15
+ try {
16
+ const n = await m({
17
+ formItemProps: y(e),
18
+ formSchema: y(i.schema)
19
+ });
20
+ if (t !== d)
21
+ return;
22
+ const f = e.defaultOptions || [];
23
+ if (a.value = [...f, ...n], e.filters && (a.value = a.value.filter((l) => Array.isArray(e.filters) ? !e.filters.includes(l[e.valueKey || "value"]) : !0)), e.name) {
24
+ const l = I(i.schema.items, e.name);
25
+ l && l.props && (l.props.options = a.value);
26
+ }
27
+ const o = i.formValues[e.name], u = a.value.findIndex((l) => l[e.valueKey || "value"] === o) !== -1;
28
+ if (e.refreshFlag && a.value.length > 0 && !u) {
29
+ i.updateFormValues(
30
+ {
31
+ [`${e.name}`]: a.value[0][e.valueKey || "value"]
32
+ },
33
+ !0
34
+ );
35
+ const l = I(i.schema.items, e.name);
36
+ l && l.props && (l.props.refreshFlag = !1);
37
+ }
38
+ } finally {
39
+ c.value = !1;
40
+ }
41
+ }, 300);
42
+ O(() => {
43
+ const { mode: t, options: n = [] } = e;
44
+ t === "static" && (a.value = n), t === "remote" && s();
45
+ }), r(
46
+ () => e.apiParams,
47
+ (t, n) => {
48
+ F.isEqual(t, n) || (a.value = [], s());
49
+ }
50
+ ), r(
51
+ () => e.options,
52
+ (t = []) => {
53
+ e.mode === "static" && (a.value = t);
54
+ }
55
+ ), r(
56
+ () => e.mode,
57
+ (t) => {
58
+ t === "static" && (a.value = e.options || []), t === "remote" && (a.value = [], s());
59
+ }
60
+ );
61
+ const { mode: g, dependentFields: v } = e;
62
+ if (g === "remote" && Array.isArray(v))
63
+ for (const t of v)
64
+ r(
65
+ () => i.formValues[t],
66
+ (n, f) => {
67
+ s();
68
+ }
69
+ );
70
+ return { selectChange: (t) => {
71
+ const { valueKey: n = "value", multiple: f, name: o } = e;
72
+ let u = {};
73
+ f && Array.isArray(t) ? u = a.value.filter((l) => t.includes(l[n])) : u = a.value.find((l) => l[n] === t) || {}, i.selectData && o && i.updateSelectData(o, u);
74
+ }, currentOptions: a, loading: c, fetchData: s };
75
+ };
76
+ export {
77
+ x as u
78
+ };