asiaint-lowcode 3.1.174 → 3.1.176

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 (55) hide show
  1. package/dist/asiaint-lowcode.d.ts +65 -0
  2. package/dist/asiaint-lowcode.js +7 -7
  3. package/dist/asiaint-lowcode.umd.cjs +234 -234
  4. package/dist/lazy/{Card-CdqSVMKp.js → Card-tY03_jsQ.js} +1 -1
  5. package/dist/lazy/{Cascader-D1H3atkH.js → Cascader-CoiEWibG.js} +1 -1
  6. package/dist/lazy/{Checkbox-rxwRKO2L.js → Checkbox-DgAWi7xv.js} +2 -2
  7. package/dist/lazy/{Collapse-C71dCSaP.js → Collapse-DoX4-z6R.js} +2 -2
  8. package/dist/lazy/Component-B1cRXfb6.js +198 -0
  9. package/dist/lazy/{Component-C14aJsIW.js → Component-CEPZFfnv.js} +1 -1
  10. package/dist/lazy/{Component-j-7aSjsD.js → Component-CwFNnxot.js} +1 -1
  11. package/dist/lazy/{Component-D-djkyEJ.js → Component-DYj0-oAE.js} +1 -1
  12. package/dist/lazy/{CurdCard-SpH6JL4Y.js → CurdCard-DfTd52sw.js} +1 -1
  13. package/dist/lazy/{Custom-BU5XOp-r.js → Custom-Dbj0V-xU.js} +1 -1
  14. package/dist/lazy/DatePicker-Bn2V6hsJ.js +73 -0
  15. package/dist/lazy/{DragList-CfBWQeQz.js → DragList-DqreIFnM.js} +1 -1
  16. package/dist/lazy/FilterSearch-DhDZ-EZP.js +149 -0
  17. package/dist/lazy/FloatCurd-Cfkz6IKM.js +268 -0
  18. package/dist/lazy/FloatSearchCurd-CuGQMSfs.js +447 -0
  19. package/dist/lazy/{FormList-Bb8pnChP.js → FormList-iRDxU3y1.js} +1 -1
  20. package/dist/lazy/{Grid-Db2yree5.js → Grid-BdWqDQr5.js} +1 -1
  21. package/dist/lazy/{InfiniteScroll-1DHgbFA8.js → InfiniteScroll-DLdq1kWV.js} +1 -1
  22. package/dist/lazy/{Inline-BjDXhX1N.js → Inline-BUA_Nnzb.js} +1 -1
  23. package/dist/lazy/{JsonEdit-B1SPhwLj.js → JsonEdit-Dza78rMu.js} +1 -1
  24. package/dist/lazy/{LogList-BUDvAMuS.js → LogList-BuZ8Xjtk.js} +1 -1
  25. package/dist/lazy/{ObjGroup-CNIY-lzc.js → ObjGroup-BVYeKRas.js} +1 -1
  26. package/dist/lazy/OfferDetails-BuFlnyVM.js +208 -0
  27. package/dist/lazy/Pagination-DIueKA4T.js +121 -0
  28. package/dist/lazy/Progress-MldyKkep.js +56 -0
  29. package/dist/lazy/{Radio-Ccv92FSa.js → Radio-Bod52dE2.js} +2 -2
  30. package/dist/lazy/{SearchSelect-CegeM7cQ.js → SearchSelect-CzIo7iiM.js} +2 -2
  31. package/dist/lazy/{Select-BwUZLLXi.js → Select-Cy9eA5-X.js} +2 -2
  32. package/dist/lazy/Table-BVg8ydp1.js +598 -0
  33. package/dist/lazy/Tabs-CbJpP5yI.js +154 -0
  34. package/dist/lazy/Tag-DfelP1C7.js +25 -0
  35. package/dist/lazy/{TextArea-BuVvhsWJ.js → TextArea-HCAqMgrp.js} +1 -1
  36. package/dist/lazy/{Title-32bZDihB.js → Title-7fiPAhd5.js} +1 -1
  37. package/dist/lazy/Title.vue_vue_type_script_setup_true_lang-LunhnrZy.js +26 -0
  38. package/dist/lazy/{Wrapper-BLTyLdnw.js → Wrapper-BR-FaBxi.js} +1 -1
  39. package/dist/lazy/{index-BbsPPc14.js → index-1omyaX4F.js} +9420 -9412
  40. package/dist/lazy/{useSelect-DsEZTPfh.js → useSelect-U2g9t7In.js} +1 -1
  41. package/dist/style.css +2 -2
  42. package/package.json +1 -1
  43. package/dist/lazy/Component-BcbHLE_g.js +0 -321
  44. package/dist/lazy/Component-DO3qZWym.js +0 -192
  45. package/dist/lazy/DatePicker-S3D1E9AQ.js +0 -73
  46. package/dist/lazy/FilterSearch-BbAQVwp0.js +0 -149
  47. package/dist/lazy/FloatCurd-1NLXV_L9.js +0 -268
  48. package/dist/lazy/FloatSearchCurd-HU1XecwR.js +0 -447
  49. package/dist/lazy/OfferDetails-Caj8FZUy.js +0 -206
  50. package/dist/lazy/Pagination-BguRKtZy.js +0 -121
  51. package/dist/lazy/Progress-B-vHTTf7.js +0 -54
  52. package/dist/lazy/Table-BAnOjOoV.js +0 -667
  53. package/dist/lazy/Tabs-Dgnv0RAm.js +0 -150
  54. package/dist/lazy/Tag-IQ_W6v0E.js +0 -22
  55. package/dist/lazy/Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js +0 -23
@@ -1,149 +0,0 @@
1
- import { defineComponent as U, ref as o, readonly as D, onUnmounted as E, watch as L, onMounted as N, resolveComponent as p, openBlock as m, createElementBlock as T, createElementVNode as i, createVNode as s, withKeys as j, withModifiers as $, withCtx as h, toDisplayString as q, normalizeStyle as A, Fragment as G, renderList as H, createBlock as J, normalizeClass as O, withDirectives as P, unref as Q, vShow as X, nextTick as Y } from "vue";
2
- import { c as Z, i as ee, I as x, b as le, _ as ae } from "./index-BbsPPc14.js";
3
- import "element-plus";
4
- const te = { class: "filter-search-header" }, ne = /* @__PURE__ */ U({
5
- __name: "FilterSearch",
6
- props: {
7
- name: {},
8
- children: {},
9
- placeholder: {},
10
- defaultCollapse: { type: Boolean },
11
- searchTypes: {},
12
- onSearch: {},
13
- onChange: {},
14
- onSearchTypeChange: {}
15
- },
16
- setup(w, { expose: V }) {
17
- const a = w, u = o(a.defaultCollapse), n = o(a.searchTypes ? a.searchTypes[0].value : null), b = () => n.value, k = (e) => {
18
- if (a.searchTypes) {
19
- const l = a.searchTypes.find((c) => c.value === e);
20
- l && (n.value = l.value);
21
- }
22
- }, r = o(""), z = (e) => {
23
- r.value = e;
24
- }, I = () => r.value, F = (e) => {
25
- try {
26
- d[a.onSearchTypeChange](f, e);
27
- } catch (l) {
28
- console.error(l);
29
- }
30
- }, M = (e) => {
31
- if (a.onChange)
32
- try {
33
- d[a.onChange](f, e);
34
- } catch (l) {
35
- console.error(l);
36
- }
37
- }, y = async () => {
38
- try {
39
- await d[a.onSearch](f, r.value);
40
- } catch (e) {
41
- console.error(e);
42
- }
43
- }, R = () => {
44
- u.value = !u.value;
45
- }, { ruleModule: d, pageMethodMap: f } = Z(), _ = D({
46
- setSearchValue: z,
47
- getSearchValue: I,
48
- getSearchType: b,
49
- setSearchType: k,
50
- type: "filterSearch"
51
- });
52
- if (a.name) {
53
- const e = ee(a.name, _);
54
- E(() => {
55
- e();
56
- });
57
- }
58
- const C = o(""), v = o(), S = o(0), g = () => {
59
- var l;
60
- const e = (l = a.searchTypes) == null ? void 0 : l.find((c) => c.value === n.value);
61
- C.value = e ? e.label : "", v.value && Y(() => {
62
- S.value = v.value.offsetWidth + 28;
63
- });
64
- };
65
- return L(
66
- () => n.value,
67
- () => {
68
- g();
69
- }
70
- ), N(() => {
71
- g();
72
- }), V(_), (e, l) => {
73
- const c = p("el-option"), W = p("el-select"), B = p("el-input"), K = p("el-collapse-transition");
74
- return m(), T("div", null, [
75
- i("div", te, [
76
- s(B, {
77
- modelValue: r.value,
78
- "onUpdate:modelValue": l[1] || (l[1] = (t) => r.value = t),
79
- placeholder: e.placeholder || "Search",
80
- size: "large",
81
- onKeyup: j($(y, ["stop"]), ["enter"]),
82
- class: "filter-search-input",
83
- clearable: !0,
84
- onInput: M
85
- }, {
86
- prefix: h(() => [
87
- i("span", {
88
- ref_key: "textWidthRef",
89
- ref: v,
90
- class: "text-width-calc"
91
- }, q(C.value), 513),
92
- s(W, {
93
- ref: "selectRef",
94
- modelValue: n.value,
95
- "onUpdate:modelValue": l[0] || (l[0] = (t) => n.value = t),
96
- size: "small",
97
- class: "filter-search-select",
98
- style: A({ width: S.value + "px" }),
99
- onChange: F
100
- }, {
101
- default: h(() => [
102
- (m(!0), T(G, null, H(e.searchTypes, (t) => (m(), J(c, {
103
- key: t.value,
104
- label: t.label,
105
- value: t.value
106
- }, null, 8, ["label", "value"]))), 128))
107
- ]),
108
- _: 1
109
- }, 8, ["modelValue", "style"])
110
- ]),
111
- suffix: h(() => [
112
- s(x, {
113
- name: "icon-lujing2",
114
- size: "small",
115
- color: "#666666",
116
- onClick: y,
117
- class: "search-icon"
118
- })
119
- ]),
120
- _: 1
121
- }, 8, ["modelValue", "placeholder", "onKeyup"]),
122
- i("div", {
123
- class: O(["filter-wrapper", { active: !u.value }]),
124
- onClick: R
125
- }, [
126
- s(x, {
127
- name: "icon-shaixuan",
128
- size: "small"
129
- }),
130
- l[2] || (l[2] = i("span", { class: "filter-text" }, "Filter", -1))
131
- ], 2)
132
- ]),
133
- s(K, null, {
134
- default: h(() => [
135
- P(i("div", null, [
136
- s(Q(le), { list: e.children }, null, 8, ["list"])
137
- ], 512), [
138
- [X, !u.value]
139
- ])
140
- ]),
141
- _: 1
142
- })
143
- ]);
144
- };
145
- }
146
- }), ce = /* @__PURE__ */ ae(ne, [["__scopeId", "data-v-b0751bd0"]]);
147
- export {
148
- ce as default
149
- };
@@ -1,268 +0,0 @@
1
- import { defineComponent as he, ref as I, computed as ee, onUnmounted as _e, watch as ye, onMounted as xe, resolveComponent as C, withDirectives as oe, openBlock as r, createElementBlock as d, createElementVNode as a, createVNode as i, withKeys as be, withCtx as p, Fragment as k, renderList as ne, createBlock as N, toDisplayString as g, createTextVNode as le, unref as te, vShow as ae, createCommentVNode as O } from "vue";
2
- import { c as Ce, u as ke, j as ge, f as re, i as Ve, I as y, b as we, _ as Me } from "./index-BbsPPc14.js";
3
- import { dayjs as T } 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" } }, Ae = { class: "float-form" }, De = { class: "float-form-header" }, Ne = { class: "float-form-header-title" }, Te = { class: "float-form-header-btns" }, Be = { class: "float-form-body" }, Le = {
5
- key: 0,
6
- class: "curd-footer"
7
- }, $e = ["innerHTML"], je = ["title"], ze = /* @__PURE__ */ he({
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(se, { expose: ie }) {
24
- const t = se, x = I(!1), { ruleModule: V, pageMethodMap: w } = Ce(), P = ke(), ue = ge();
25
- function S(e, o, u, v, h) {
26
- if (e != null && e.length)
27
- for (const c of e) {
28
- if (c[u] === o)
29
- return c[v];
30
- const f = c[h];
31
- if (Array.isArray(f) && f.length > 0) {
32
- const n = S(f, o, u, v, h);
33
- if (n !== void 0)
34
- return n;
35
- }
36
- }
37
- }
38
- const M = ee(() => {
39
- var h, c, f, n, Y, $, j, z, q, K, E, G, H, R, U, J;
40
- const e = P.schema.items, o = P.formValues, u = re(e, t.name);
41
- if (!u || !u.children)
42
- return [];
43
- const v = [];
44
- for (const Q in o) {
45
- const l = re(u.children, Q);
46
- if (l && l.label && !l.hidden) {
47
- const s = o[Q];
48
- if (s != null && s !== "") {
49
- const _ = {
50
- name: l.name,
51
- label: l.label,
52
- value: s,
53
- closeable: !l.required && !((h = l.props) != null && h.disabled) && ((c = l.props) == null ? void 0 : c.clearable) !== !1
54
- };
55
- if (l.component === "DatePicker" && (((f = l.props) == null ? void 0 : f.type) === "daterange" ? _.value = T(s[0]).format(((n = l.props) == null ? void 0 : n.valueFormat) || "YYYY-MM-DD") + " - " + T(s[1]).format(((Y = l.props) == null ? void 0 : Y.valueFormat) || "YYYY-MM-DD") : (_.iconName = "icon-rili", _.value = T(s).format((($ = l.props) == null ? void 0 : $.valueFormat) || "YYYY-MM-DD"))), l.component === "Select" && (_.value = (q = (z = (j = l.props) == null ? void 0 : j.options) == null ? void 0 : z.find((F) => F.value === s)) == null ? void 0 : q.label), l.component === "TreeSelect") {
56
- const F = ((K = l.props) == null ? void 0 : K.nodeKey) || "id", W = ((G = (E = l.props) == null ? void 0 : E.props) == null ? void 0 : G.label) || "label", X = ((R = (H = l.props) == null ? void 0 : H.props) == null ? void 0 : R.children) || "children", Z = (U = l.props) == null ? void 0 : U.options;
57
- (J = l.props) != null && J.multiple && Array.isArray(s) ? _.value = s.map((ve) => S(Z, ve, F, W, X)).filter(Boolean).join(", ") : _.value = S(Z, s, F, W, X);
58
- }
59
- v.push(_);
60
- }
61
- }
62
- }
63
- return v;
64
- }), m = I(""), ce = ee(() => {
65
- var e, o;
66
- return !t.prefixOptions || t.prefixOptions.length === 0 || !m.value ? "" : (o = (e = t.prefixOptions) == null ? void 0 : e.find((u) => u.value === m.value)) == null ? void 0 : o.label;
67
- });
68
- function de(e) {
69
- m.value = e, b.value = "";
70
- try {
71
- V[t.prefixChange](w, e);
72
- } catch (o) {
73
- console.error(o);
74
- }
75
- }
76
- const b = I("");
77
- function B() {
78
- try {
79
- V[t.onSearch](w), x.value = !1;
80
- } catch (e) {
81
- console.error(e);
82
- }
83
- }
84
- const A = I(!1);
85
- async function D() {
86
- try {
87
- A.value = !0, await V[t.onAiSearch](w, b.value, m.value || "");
88
- } catch (e) {
89
- console.error(e);
90
- } finally {
91
- A.value = !1;
92
- }
93
- }
94
- function pe(e) {
95
- P.setFieldValue(e.name, "", ""), B();
96
- }
97
- function fe() {
98
- try {
99
- V[t.onClear](w);
100
- } catch (e) {
101
- console.error(e);
102
- }
103
- }
104
- function me() {
105
- b.value = "";
106
- }
107
- const L = {
108
- clearInputValue: me,
109
- type: "floatcurd"
110
- };
111
- if (ie(L), t.name) {
112
- const e = Ve(t.name, L);
113
- _e(() => {
114
- e();
115
- });
116
- }
117
- return ye(
118
- () => t.defaultPrefixValue,
119
- (e) => {
120
- e && (m.value = e);
121
- }
122
- ), xe(() => {
123
- t.defaultPrefixValue ? m.value = t.defaultPrefixValue : t.prefixOptions && t.prefixOptions.length > 0 && (m.value = t.prefixOptions[0].value);
124
- }), (e, o) => {
125
- const u = C("el-dropdown-item"), v = C("el-dropdown-menu"), h = C("el-dropdown"), c = C("el-button"), f = C("el-input");
126
- return oe((r(), d("div", Ye, [
127
- a("div", Fe, [
128
- a("div", Ie, [
129
- i(f, {
130
- class: "float-curd-ai-input",
131
- placeholder: e.inputPlaceholder,
132
- modelValue: b.value,
133
- "onUpdate:modelValue": o[0] || (o[0] = (n) => b.value = n),
134
- clearable: "",
135
- onClear: D,
136
- onKeyup: be(D, ["enter"])
137
- }, {
138
- prefix: p(() => [
139
- e.prefixOptions && e.prefixOptions.length > 0 ? (r(), d(k, { key: 0 }, [
140
- i(h, null, {
141
- dropdown: p(() => [
142
- i(v, null, {
143
- default: p(() => [
144
- (r(!0), d(k, null, ne(e.prefixOptions, (n) => (r(), N(u, {
145
- key: n.value,
146
- command: n.value,
147
- onClick: (Y) => de(n.value),
148
- style: { padding: "4px 8px" }
149
- }, {
150
- default: p(() => [
151
- a("span", Se, g(n.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, g(ce.value), 1)
162
- ])
163
- ]),
164
- _: 1
165
- }),
166
- i(y, {
167
- name: "icon-dropdown",
168
- size: 12,
169
- color: "#999"
170
- })
171
- ], 64)) : e.hiddenPrefix ? (r(), d(k, { key: 1 }, [], 64)) : (r(), d(k, { key: 2 }, [
172
- i(y, { name: "icon-a-mobang1" }),
173
- o[3] || (o[3] = a("span", { class: "prefix-text" }, "Ask AI", -1))
174
- ], 64))
175
- ]),
176
- suffix: p(() => [
177
- i(c, {
178
- type: "primary",
179
- size: "small",
180
- onClick: D,
181
- loading: A.value
182
- }, {
183
- default: p(() => o[4] || (o[4] = [
184
- le("Go")
185
- ])),
186
- _: 1
187
- }, 8, ["loading"])
188
- ]),
189
- _: 1
190
- }, 8, ["placeholder", "modelValue"])
191
- ]),
192
- i(c, {
193
- plain: !0,
194
- onClick: o[1] || (o[1] = (n) => x.value = !x.value),
195
- class: "more-btn",
196
- type: "primary"
197
- }, {
198
- default: p(() => [
199
- i(y, { name: "icon-tiaojianshaixuan" }),
200
- o[5] || (o[5] = a("span", null, "More", -1))
201
- ]),
202
- _: 1
203
- }),
204
- oe(a("div", Ae, [
205
- a("div", De, [
206
- a("div", Ne, g(e.formTitle), 1),
207
- a("div", Te, [
208
- i(c, {
209
- type: "primary",
210
- size: "small",
211
- onClick: B
212
- }, {
213
- default: p(() => o[6] || (o[6] = [
214
- le("Go")
215
- ])),
216
- _: 1
217
- }),
218
- i(y, {
219
- name: "icon-a-rongqi1",
220
- onClick: o[2] || (o[2] = (n) => x.value = !1)
221
- })
222
- ])
223
- ]),
224
- a("div", Be, [
225
- i(te(we), { list: e.children }, null, 8, ["list"])
226
- ])
227
- ], 512), [
228
- [ae, x.value]
229
- ])
230
- ]),
231
- M.value && M.value.length > 0 ? (r(), d("div", Le, [
232
- (r(!0), d(k, null, ne(M.value, (n) => (r(), d("div", {
233
- class: "tag",
234
- key: n.name
235
- }, [
236
- n.iconName ? (r(), N(y, {
237
- key: 0,
238
- name: n.iconName
239
- }, null, 8, ["name"])) : O("", !0),
240
- a("span", {
241
- innerHTML: n.label + ":"
242
- }, null, 8, $e),
243
- a("span", {
244
- class: "tag-value",
245
- title: n.value
246
- }, g(n.value), 9, je),
247
- n.closeable ? (r(), N(y, {
248
- key: 1,
249
- name: "icon-a-rongqi1",
250
- onClick: (Y) => pe(n),
251
- class: "close-icon"
252
- }, null, 8, ["onClick"])) : O("", !0)
253
- ]))), 128)),
254
- M.value.length > 0 ? (r(), d("div", {
255
- key: 0,
256
- class: "clear-btn",
257
- onClick: fe
258
- }, g(te(ue).curd.resetFilters), 1)) : O("", !0)
259
- ])) : O("", !0)
260
- ], 512)), [
261
- [ae, !e.hidden]
262
- ]);
263
- };
264
- }
265
- }), Ge = /* @__PURE__ */ Me(ze, [["__scopeId", "data-v-7de06ccd"]]);
266
- export {
267
- Ge as default
268
- };