asiaint-lowcode 3.1.89 → 3.1.91

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 +7 -6
  2. package/dist/asiaint-lowcode.umd.cjs +136 -136
  3. package/dist/index.d.ts +33 -30
  4. package/dist/lazy/{Card-CwWQS71c.js → Card-D3d-6_Lk.js} +48 -47
  5. package/dist/lazy/{Cascader-D4GFKg1c.js → Cascader-D27hRRXq.js} +1 -1
  6. package/dist/lazy/{Checkbox-BpZeA0Qu.js → Checkbox-B433nauk.js} +2 -2
  7. package/dist/lazy/{Collapse-D8E1pN0d.js → Collapse-NjDkO3QR.js} +1 -1
  8. package/dist/lazy/{Component-B9TS96cw.js → Component-3Wd3wPt4.js} +11 -10
  9. package/dist/lazy/{Component-BtHsUPVb.js → Component-CQyD7Bq6.js} +1 -1
  10. package/dist/lazy/{Component-BhsOJEj5.js → Component-DahvN408.js} +1 -1
  11. package/dist/lazy/{Component-OJ3zIbOb.js → Component-DcOgUCHH.js} +1 -1
  12. package/dist/lazy/{Component-DTxU0Y1L.js → Component-glR8Mi9-.js} +1 -1
  13. package/dist/lazy/{CurdCard-B1X72wR8.js → CurdCard-B8Ul41J2.js} +1 -1
  14. package/dist/lazy/{Custom-D8dtTjQd.js → Custom-CMQimedW.js} +1 -1
  15. package/dist/lazy/{DatePicker-BexoDPL8.js → DatePicker-D4LxATzO.js} +1 -1
  16. package/dist/lazy/{DragList-CY0K8r8S.js → DragList-Cg8NILg7.js} +13 -13
  17. package/dist/lazy/{FilterSearch-Crf1Kib-.js → FilterSearch-DEd_BUXy.js} +16 -16
  18. package/dist/lazy/FloatCurd-_cylHxFy.js +182 -0
  19. package/dist/lazy/{FormList-DvcxSqoA.js → FormList-BfUM5ibp.js} +38 -38
  20. package/dist/lazy/{Grid-Bnv4gTUf.js → Grid-DZgRY-bZ.js} +1 -1
  21. package/dist/lazy/{InfiniteScroll-BMRsw9k9.js → InfiniteScroll-BfCIQ0Yx.js} +1 -1
  22. package/dist/lazy/{Inline--_SvU5c1.js → Inline-Cqx72Jf7.js} +1 -1
  23. package/dist/lazy/{JsonEdit-ivS6nHEq.js → JsonEdit-Bd5tXFMb.js} +1 -1
  24. package/dist/lazy/{LogList-B-2fTZdQ.js → LogList-D9hCMmAp.js} +1 -1
  25. package/dist/lazy/ObjGroup-X6yQLbdr.js +32 -0
  26. package/dist/lazy/{OfferDetails-Butt8aFh.js → OfferDetails-ESyxBvAT.js} +60 -48
  27. package/dist/lazy/{Pagination-BIRnMYmE.js → Pagination-TPTDn6O8.js} +4 -4
  28. package/dist/lazy/{Progress-DZm-xeO5.js → Progress-Dcu0zV0n.js} +1 -1
  29. package/dist/lazy/{Radio-i_Ru5ao8.js → Radio-lWBhar1D.js} +2 -2
  30. package/dist/lazy/{SearchSelect-CHTbceLY.js → SearchSelect-DfZsiErV.js} +2 -2
  31. package/dist/lazy/{Select-DGWeMv9K.js → Select-jxoc3Go0.js} +2 -2
  32. package/dist/lazy/{Table-D-QsIp_Q.js → Table-QjWTre1h.js} +3 -3
  33. package/dist/lazy/{Tabs-CsiBv6K6.js → Tabs-Cj3VWcJ8.js} +35 -40
  34. package/dist/lazy/{TextArea-BrZkXojB.js → TextArea-C7hTF1hs.js} +1 -1
  35. package/dist/lazy/{Wrapper-CwF7dV0F.js → Wrapper-nmp2n41L.js} +1 -1
  36. package/dist/lazy/{index-VBiXND-K.js → index-88JF9OWh.js} +5476 -5308
  37. package/dist/lazy/{useSelect-4TkEWg19.js → useSelect-C7HI6k_F.js} +1 -1
  38. package/dist/style.css +2 -2
  39. package/package.json +1 -1
  40. package/dist/lazy/Component-BR-cyhqo.js +0 -162
  41. package/dist/lazy/FloatCurd-mr3HjgYk.js +0 -176
  42. package/dist/lazy/ObjGroup-BKtbvPti.js +0 -32
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.1.89",
3
+ "version": "3.1.91",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,162 +0,0 @@
1
- import { defineComponent as P, inject as D, ref as K, watch as S, useTemplateRef as V, readonly as F, onUnmounted as j, resolveComponent as h, openBlock as d, createBlock as f, mergeProps as z, withCtx as N, createElementVNode as y, normalizeClass as w, toDisplayString as U, createElementBlock as _, createCommentVNode as b, Fragment as $, renderList as q, unref as G, withModifiers as H, createVNode as J } from "vue";
2
- import { i as O, h as Q, I as W, _ as X } from "./index-VBiXND-K.js";
3
- import "element-plus";
4
- const Y = { class: "tree-node-text" }, Z = ["title"], ee = {
5
- key: 0,
6
- class: "tree-node-present"
7
- }, oe = { class: "flex gap-[8px]" }, te = /* @__PURE__ */ P({
8
- __name: "Component",
9
- props: {
10
- onNodeClick: {},
11
- onNodeDbClick: {},
12
- onCheckChange: {},
13
- onLoad: {},
14
- btns: {},
15
- data: {},
16
- props: {},
17
- nodeKey: {},
18
- styleType: {},
19
- name: {},
20
- showCheckbox: { type: Boolean }
21
- },
22
- setup(x, { expose: L }) {
23
- const o = x, r = D("ruleModule", void 0), p = D("pageMethodMap", {}), m = K(), M = (e, t) => {
24
- m.value = e[o.nodeKey];
25
- }, I = (e, t, n) => {
26
- if (e && r)
27
- try {
28
- r[e](p, { node: t, data: n });
29
- } catch (c) {
30
- console.error(c + `
31
- onNodeClick: ${o.onNodeClick}`);
32
- }
33
- };
34
- let a = null, s = null, k = 0;
35
- function R(e, t) {
36
- const n = Date.now(), c = e.id, C = s == null ? void 0 : s.id;
37
- c === C && n - k < 300 ? (a && (clearTimeout(a), a = null), A(e, t), s = null, k = 0) : (a && clearTimeout(a), s = e, k = n, a = setTimeout(() => {
38
- B(e, t), a = null, s = null, k = 0;
39
- }, 300));
40
- }
41
- const B = (e, t) => {
42
- if (o.onNodeClick && r)
43
- try {
44
- r[o.onNodeClick](p, { node: e, data: t });
45
- } catch (n) {
46
- console.error(n + `
47
- onNodeClick: ${o.onNodeClick}`);
48
- }
49
- }, A = (e, t) => {
50
- if (o.onNodeDbClick && r)
51
- try {
52
- r[o.onNodeDbClick](p, { node: e, data: t });
53
- } catch (n) {
54
- console.error(n + `
55
- onNodeDbClick: ${o.onNodeDbClick}`);
56
- }
57
- }, E = (e, t, n) => {
58
- if (o.onLoad && r)
59
- try {
60
- r[o.onLoad](p, { node: e, resolve: t, reject: n });
61
- } catch (c) {
62
- console.error(c + `
63
- onLoad: ${o.onLoad}`);
64
- }
65
- }, v = K([]);
66
- S(
67
- //默认展开根节点
68
- () => o.data,
69
- () => {
70
- if (!o.data || !Array.isArray(o.data) || o.data.length === 0)
71
- return;
72
- const t = [o.data[0][o.nodeKey]];
73
- v.value = t;
74
- },
75
- {
76
- immediate: !0
77
- }
78
- );
79
- const g = V("treeRef"), T = F({
80
- getCheckedNodes: () => {
81
- var e;
82
- return (e = g.value) == null ? void 0 : e.getCheckedNodes();
83
- },
84
- type: "tree"
85
- });
86
- if (o.name) {
87
- const e = O(o.name, T);
88
- j(() => {
89
- e();
90
- });
91
- }
92
- return L(T), (e, t) => {
93
- const n = h("el-tooltip"), c = h("el-button"), C = h("el-tree");
94
- return d(), f(C, z(e.$attrs, {
95
- onNodeClick: R,
96
- load: E,
97
- ref_key: "treeRef",
98
- ref: g,
99
- class: ["crm-tree", { "modal-tree": e.styleType === "modal" }],
100
- indent: 32,
101
- "current-node-key": m.value,
102
- onCurrentChange: M,
103
- "node-key": e.nodeKey,
104
- props: o.props,
105
- data: e.data,
106
- "default-expanded-keys": v.value,
107
- "show-checkbox": e.showCheckbox
108
- }), {
109
- default: N(({ node: i, data: u }) => [
110
- y("div", {
111
- class: w(["custom-tree-node", { "modal-tree-node": e.styleType === "modal" }])
112
- }, [
113
- y("div", Y, [
114
- y("span", {
115
- class: w(["tree-node-label", { active: u[e.nodeKey] === m.value && e.styleType === "modal" }]),
116
- title: i.label
117
- }, U(i.label), 11, Z),
118
- u[e.nodeKey] === m.value ? (d(), _("div", ee, "Present")) : b("", !0)
119
- ]),
120
- y("div", oe, [
121
- (d(!0), _($, null, q(e.btns, (l) => (d(), _($, {
122
- key: l.key
123
- }, [
124
- G(Q)(l.hidden, { $node: i, $data: u }) ? b("", !0) : (d(), f(c, {
125
- key: 0,
126
- link: "",
127
- onClick: H((le) => I(l.onClick || "", i, u), ["stop"]),
128
- disabled: l.disabled,
129
- type: l.type
130
- }, {
131
- default: N(() => [
132
- J(n, {
133
- class: "box-item",
134
- effect: "dark",
135
- content: l.text,
136
- placement: "top"
137
- }, {
138
- default: N(() => [
139
- l.icon ? (d(), f(W, {
140
- key: 0,
141
- name: l.icon.name,
142
- color: l.icon.color,
143
- class: "btn-icon"
144
- }, null, 8, ["name", "color"])) : b("", !0)
145
- ]),
146
- _: 2
147
- }, 1032, ["content"])
148
- ]),
149
- _: 2
150
- }, 1032, ["onClick", "disabled", "type"]))
151
- ], 64))), 128))
152
- ])
153
- ], 2)
154
- ]),
155
- _: 1
156
- }, 16, ["class", "current-node-key", "node-key", "props", "data", "default-expanded-keys", "show-checkbox"]);
157
- };
158
- }
159
- }), se = /* @__PURE__ */ X(te, [["__scopeId", "data-v-32418b0a"]]);
160
- export {
161
- se as default
162
- };
@@ -1,176 +0,0 @@
1
- import { defineComponent as H, ref as A, computed as R, onUnmounted as U, resolveComponent as B, withDirectives as D, openBlock as c, createElementBlock as v, createElementVNode as t, createVNode as a, withCtx as d, createTextVNode as w, toDisplayString as Y, unref as J, vShow as $, Fragment as K, renderList as O, createBlock as q, createCommentVNode as k } from "vue";
2
- import { c as Q, u as W, f as L, i as X, I as m, b as Z, _ as ee } from "./index-VBiXND-K.js";
3
- import { dayjs as oe } from "element-plus";
4
- const ne = { class: "float-curd" }, le = { class: "curd-body" }, te = { class: "gradient-input-wrapper" }, ae = { class: "float-form" }, se = { class: "float-form-header" }, re = { class: "float-form-header-title" }, ie = { class: "float-form-header-btns" }, ce = { class: "float-form-body" }, ue = { class: "curd-footer" }, de = ["innerHTML"], me = /* @__PURE__ */ H({
5
- __name: "FloatCurd",
6
- props: {
7
- name: {},
8
- children: {},
9
- formTitle: {},
10
- onSearch: {},
11
- onAiSearch: {},
12
- onClear: {},
13
- inputPlaceholder: {},
14
- hidden: { type: Boolean }
15
- },
16
- setup(P, { expose: j }) {
17
- const r = P, u = A(!1), { ruleModule: h, pageMethodMap: _ } = Q(), b = W(), V = R(() => {
18
- var n, y, x, F, M, N;
19
- const o = b.schema.items, e = b.formValues, s = L(o, r.name);
20
- if (!s || !s.children)
21
- return [];
22
- const f = [];
23
- for (const T in e) {
24
- const l = L(s.children, T);
25
- if (l && l.label && !l.hidden) {
26
- const i = e[T];
27
- if (i != null && i !== "") {
28
- const p = {
29
- name: l.name,
30
- label: l.label,
31
- value: i,
32
- closeable: !l.required && !((n = l.props) != null && n.disabled) && ((y = l.props) == null ? void 0 : y.clearable) !== !1
33
- };
34
- l.component === "DatePicker" && (p.iconName = "icon-rili", p.value = oe(i).format(((x = l.props) == null ? void 0 : x.valueFormat) || "YYYY-MM-DD")), l.component === "Select" && (p.value = (N = (M = (F = l.props) == null ? void 0 : F.options) == null ? void 0 : M.find((G) => G.value === i)) == null ? void 0 : N.label), f.push(p);
35
- }
36
- }
37
- }
38
- return f;
39
- }), C = A("");
40
- function I() {
41
- try {
42
- h[r.onSearch](_), u.value = !1;
43
- } catch (o) {
44
- console.error(o);
45
- }
46
- }
47
- function S() {
48
- try {
49
- h[r.onAiSearch](_, C.value);
50
- } catch (o) {
51
- console.error(o);
52
- }
53
- }
54
- function z(o) {
55
- b.setFieldValue(o.name, "", ""), I();
56
- }
57
- function E() {
58
- try {
59
- h[r.onClear](_);
60
- } catch (o) {
61
- console.error(o);
62
- }
63
- }
64
- const g = {
65
- type: "floatcurd"
66
- };
67
- if (j(g), r.name) {
68
- const o = X(r.name, g);
69
- U(() => {
70
- o();
71
- });
72
- }
73
- return (o, e) => {
74
- const s = B("el-button"), f = B("el-input");
75
- return D((c(), v("div", ne, [
76
- t("div", le, [
77
- t("div", te, [
78
- a(f, {
79
- placeholder: o.inputPlaceholder,
80
- modelValue: C.value,
81
- "onUpdate:modelValue": e[0] || (e[0] = (n) => C.value = n),
82
- clearable: "",
83
- onClear: S
84
- }, {
85
- prefix: d(() => [
86
- a(m, { name: "icon-a-mobang1" }),
87
- e[3] || (e[3] = t("span", { class: "prefix-text" }, "Ask AI", -1))
88
- ]),
89
- suffix: d(() => [
90
- a(s, {
91
- type: "primary",
92
- size: "small",
93
- onClick: S
94
- }, {
95
- default: d(() => e[4] || (e[4] = [
96
- w("Go")
97
- ])),
98
- _: 1
99
- })
100
- ]),
101
- _: 1
102
- }, 8, ["placeholder", "modelValue"])
103
- ]),
104
- a(s, {
105
- plain: !0,
106
- onClick: e[1] || (e[1] = (n) => u.value = !u.value),
107
- class: "more-btn"
108
- }, {
109
- default: d(() => [
110
- a(m, { name: "icon-tiaojianshaixuan" }),
111
- e[5] || (e[5] = t("span", null, "More", -1))
112
- ]),
113
- _: 1
114
- }),
115
- D(t("div", ae, [
116
- t("div", se, [
117
- t("div", re, Y(o.formTitle), 1),
118
- t("div", ie, [
119
- a(s, {
120
- type: "primary",
121
- size: "small",
122
- onClick: I
123
- }, {
124
- default: d(() => e[6] || (e[6] = [
125
- w("Go")
126
- ])),
127
- _: 1
128
- }),
129
- a(m, {
130
- name: "icon-a-rongqi1",
131
- onClick: e[2] || (e[2] = (n) => u.value = !1)
132
- })
133
- ])
134
- ]),
135
- t("div", ce, [
136
- a(J(Z), { list: o.children }, null, 8, ["list"])
137
- ])
138
- ], 512), [
139
- [$, u.value]
140
- ])
141
- ]),
142
- t("div", ue, [
143
- (c(!0), v(K, null, O(V.value, (n) => (c(), v("div", {
144
- class: "tag",
145
- key: n.name
146
- }, [
147
- n.iconName ? (c(), q(m, {
148
- key: 0,
149
- name: n.iconName
150
- }, null, 8, ["name"])) : k("", !0),
151
- t("span", {
152
- innerHTML: n.label + ":"
153
- }, null, 8, de),
154
- t("span", null, Y(n.value), 1),
155
- n.closeable ? (c(), q(m, {
156
- key: 1,
157
- name: "icon-a-rongqi1",
158
- onClick: (y) => z(n),
159
- class: "close-icon"
160
- }, null, 8, ["onClick"])) : k("", !0)
161
- ]))), 128)),
162
- V.value.length > 0 ? (c(), v("div", {
163
- key: 0,
164
- class: "clear-btn",
165
- onClick: E
166
- }, "Clear filters")) : k("", !0)
167
- ])
168
- ], 512)), [
169
- [$, !o.hidden]
170
- ]);
171
- };
172
- }
173
- }), he = /* @__PURE__ */ ee(me, [["__scopeId", "data-v-e39c99be"]]);
174
- export {
175
- he as default
176
- };
@@ -1,32 +0,0 @@
1
- import { defineComponent as p, inject as i, provide as d, ref as f, openBlock as e, createElementBlock as o, unref as r, createBlock as m, Fragment as _, renderList as b, mergeProps as j } from "vue";
2
- import { u as $, e as h, F as k } from "./index-VBiXND-K.js";
3
- import "element-plus";
4
- const v = { class: "vfc-ObjGroup" }, B = {
5
- key: 1,
6
- class: "vfc-ObjGroup-render"
7
- }, I = /* @__PURE__ */ p({
8
- __name: "ObjGroup",
9
- props: {
10
- children: {},
11
- name: {}
12
- },
13
- setup(u) {
14
- const s = u, l = $(), t = i("$objGroupBase"), a = t ? `${t.value}.${s.name}` : s.name;
15
- return d("$objGroupBase", f(a)), (c, G) => (e(), o("div", v, [
16
- r(l).design ? (e(), m(r(h), {
17
- key: 0,
18
- list: c.children
19
- }, null, 8, ["list"])) : (e(), o("div", B, [
20
- (e(!0), o(_, null, b(c.children, (n) => (e(), m(r(k), j({
21
- key: n.name,
22
- ref_for: !0
23
- }, n, {
24
- name: `${r(a)}.${n.name}`
25
- }), null, 16, ["name"]))), 128))
26
- ]))
27
- ]));
28
- }
29
- });
30
- export {
31
- I as default
32
- };