asiaint-lowcode 3.0.31 → 3.0.34

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 (35) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +137 -137
  3. package/dist/index.d.ts +7 -2
  4. package/dist/lazy/Card-DyDOeYfh.js +102 -0
  5. package/dist/lazy/{Cascader-P7IuNThb.js → Cascader-hwQ0ped8.js} +1 -1
  6. package/dist/lazy/{Checkbox-07QRyXME.js → Checkbox-z4QRPu-x.js} +2 -2
  7. package/dist/lazy/{Collapse-ByfiOimw.js → Collapse-oh9RnpYq.js} +1 -1
  8. package/dist/lazy/Component-56ym46d6.js +36 -0
  9. package/dist/lazy/{Component-6TS6wNl_.js → Component-CXtb3Yi3.js} +1 -1
  10. package/dist/lazy/{Component-D3_BYRj4.js → Component-ClkUsqZ1.js} +1 -1
  11. package/dist/lazy/{Component-B0XVJZnQ.js → Component-DYCbyY8z.js} +1 -1
  12. package/dist/lazy/{Component-DjB_gS1V.js → Component-DadAKRPu.js} +1 -1
  13. package/dist/lazy/{Component-CyKpm5k5.js → Component-mcJAWcjt.js} +1 -1
  14. package/dist/lazy/{CurdCard-BpFxnWRz.js → CurdCard-BTYaL0uB.js} +1 -1
  15. package/dist/lazy/{Custom-CScf47ec.js → Custom-CrZDANN2.js} +1 -1
  16. package/dist/lazy/{FormList-B4ySQVLt.js → FormList-BGuR7mbH.js} +1 -1
  17. package/dist/lazy/{Grid-D8IOvbfU.js → Grid-BRKcU88d.js} +1 -1
  18. package/dist/lazy/{Inline-CCyImOu3.js → Inline-x1p6kwDV.js} +1 -1
  19. package/dist/lazy/{JsonEdit-DDieBuc6.js → JsonEdit-C8acmbOx.js} +1 -1
  20. package/dist/lazy/{ObjGroup-QEyMHJ0O.js → ObjGroup-Bvm_JRv0.js} +1 -1
  21. package/dist/lazy/OfferDetails-IuisIR_V.js +168 -0
  22. package/dist/lazy/{Radio-aDFaQLLq.js → Radio-Swys9rO6.js} +2 -2
  23. package/dist/lazy/{SearchSelect-B96_wH_8.js → SearchSelect-DpWjU1ff.js} +2 -2
  24. package/dist/lazy/{Select-C84zNi2F.js → Select-BG2okaza.js} +2 -2
  25. package/dist/lazy/{Table-C2RB8hlb.js → Table-BOIHWhbh.js} +95 -83
  26. package/dist/lazy/{Tabs-4CRMSCiJ.js → Tabs-ByfQlZ3V.js} +1 -1
  27. package/dist/lazy/{Wrapper-3N8Y7y6e.js → Wrapper-CJINhrFP.js} +1 -1
  28. package/dist/lazy/{index-Be_hWoLI.js → index-CX2louHY.js} +4887 -4718
  29. package/dist/lazy/useSelect-PiddJYFH.js +61 -0
  30. package/dist/style.css +2 -2
  31. package/package.json +1 -1
  32. package/dist/lazy/Card-D4r6xjTv.js +0 -93
  33. package/dist/lazy/Component-DVIJ_1tV.js +0 -34
  34. package/dist/lazy/OfferDetails-Dh_ZZz7F.js +0 -165
  35. package/dist/lazy/useSelect-BLvs_Rd3.js +0 -58
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.0.31",
3
+ "version": "3.0.34",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,93 +0,0 @@
1
- import { defineComponent as y, ref as B, inject as _, resolveComponent as c, openBlock as l, createBlock as d, mergeProps as g, withCtx as t, createElementVNode as r, createElementBlock as i, createVNode as a, unref as p, normalizeClass as M, createCommentVNode as $, toDisplayString as I, Fragment as h, renderList as E, withDirectives as V, vShow as D } from "vue";
2
- import { _ as F, I as v, B as N, a as S, b as j } from "./index-Be_hWoLI.js";
3
- import "element-plus";
4
- const x = { class: "card-header" }, z = { class: "card-btns" }, L = /* @__PURE__ */ y({
5
- __name: "Card",
6
- props: {
7
- children: {},
8
- collapsible: { type: Boolean },
9
- header: {},
10
- btns: {},
11
- extraIcons: {},
12
- shadowless: { type: Boolean }
13
- },
14
- setup(P) {
15
- const n = B(!1), m = _("ruleModule", void 0), C = _("pageMethodMap", {}), u = (e) => {
16
- if (e && m)
17
- try {
18
- m[e](C);
19
- } catch (s) {
20
- console.error(s);
21
- }
22
- };
23
- return (e, s) => {
24
- const k = c("el-tooltip"), f = c("el-collapse-transition"), w = c("ElCard");
25
- return l(), d(w, g(e.$attrs, {
26
- class: ["crm-card", { collapsed: n.value, shadowless: e.shadowless }],
27
- shadow: "never"
28
- }), {
29
- header: t(() => [
30
- r("div", x, [
31
- e.collapsible ? (l(), i("div", {
32
- key: 0,
33
- class: "icon-wrapper",
34
- onClick: s[0] || (s[0] = (o) => n.value = !n.value)
35
- }, [
36
- a(p(F), {
37
- name: "dropdown",
38
- class: M(["dropdown-icon", { "is-collapsed": n.value }])
39
- }, null, 8, ["class"])
40
- ])) : $("", !0),
41
- r("span", null, I(e.header), 1),
42
- (l(!0), i(h, null, E(e.extraIcons, (o) => (l(), i(h, {
43
- key: o.name
44
- }, [
45
- o.tips ? (l(), d(k, {
46
- key: 0,
47
- content: o.tips,
48
- placement: "right"
49
- }, {
50
- default: t(() => [
51
- a(v, {
52
- class: "extra-icon",
53
- name: o.name,
54
- color: o.color,
55
- onClick: (b) => u(o.onClick)
56
- }, null, 8, ["name", "color", "onClick"])
57
- ]),
58
- _: 2
59
- }, 1032, ["content"])) : (l(), d(v, {
60
- key: 1,
61
- class: "extra-icon",
62
- name: o.name,
63
- color: o.color,
64
- onClick: (b) => u(o.onClick)
65
- }, null, 8, ["name", "color", "onClick"]))
66
- ], 64))), 128)),
67
- r("div", z, [
68
- a(p(N), {
69
- btns: e.btns || []
70
- }, null, 8, ["btns"])
71
- ])
72
- ])
73
- ]),
74
- default: t(() => [
75
- a(f, null, {
76
- default: t(() => [
77
- V(r("div", null, [
78
- a(p(S), { list: e.children }, null, 8, ["list"])
79
- ], 512), [
80
- [D, !n.value]
81
- ])
82
- ]),
83
- _: 1
84
- })
85
- ]),
86
- _: 1
87
- }, 16, ["class"]);
88
- };
89
- }
90
- }), G = /* @__PURE__ */ j(L, [["__scopeId", "data-v-84734a9d"]]);
91
- export {
92
- G as default
93
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as s, mergeModels as u, useModel as p, resolveComponent as d, openBlock as t, createElementBlock as i, toDisplayString as c, createBlock as y, mergeProps as f } from "vue";
2
- import { u as v } from "./index-Be_hWoLI.js";
3
- import "element-plus";
4
- const _ = { key: 0 }, K = /* @__PURE__ */ s({
5
- __name: "Component",
6
- props: /* @__PURE__ */ u({
7
- min: {},
8
- read: { type: Boolean }
9
- }, {
10
- modelValue: {},
11
- modelModifiers: {}
12
- }),
13
- emits: ["update:modelValue"],
14
- setup(l) {
15
- const o = p(l, "modelValue");
16
- v();
17
- const m = (e) => {
18
- ["E", "e", "+", "-"].includes(e.key) && e.preventDefault();
19
- };
20
- return (e, n) => {
21
- const r = d("el-input-number");
22
- return e.read ? (t(), i("span", _, c(typeof o.value == "number" ? o.value : "--"), 1)) : (t(), y(r, f({ key: 1 }, e.$attrs, {
23
- modelValue: o.value,
24
- "onUpdate:modelValue": n[0] || (n[0] = (a) => o.value = a),
25
- style: { width: "100%" },
26
- min: e.min || 0,
27
- onKeydown: m
28
- }), null, 16, ["modelValue", "min"]));
29
- };
30
- }
31
- });
32
- export {
33
- K as default
34
- };
@@ -1,165 +0,0 @@
1
- import { defineComponent as D, resolveComponent as I, openBlock as l, createBlock as N, withCtx as M, createVNode as S, createElementVNode as a, createElementBlock as s, Fragment as c, renderList as _, toDisplayString as h, createCommentVNode as O, ref as F, inject as g, watchEffect as P, onMounted as $, normalizeStyle as z } from "vue";
2
- import { j as A, $ as L, b as R } from "./index-Be_hWoLI.js";
3
- const V = { class: "content" }, j = { class: "product-list" }, K = { class: "attribute-list" }, x = {
4
- key: 0,
5
- class: "attribute-list-item"
6
- }, U = { class: "product-title attribute-title" }, q = { class: "attribute-item-list" }, G = { class: "attribute-label" }, H = { class: "attribute-value" }, J = /* @__PURE__ */ D({
7
- __name: "OfferDetailItem",
8
- props: {
9
- data: {},
10
- btns: {}
11
- },
12
- setup(m) {
13
- return (o, d) => {
14
- const y = I("el-popover");
15
- return l(), N(y, {
16
- "popper-class": "offer-detail",
17
- placement: "right"
18
- }, {
19
- reference: M(() => [
20
- S(A, {
21
- data: o.data,
22
- btns: o.btns
23
- }, null, 8, ["data", "btns"])
24
- ]),
25
- default: M(() => [
26
- a("div", V, [
27
- d[0] || (d[0] = a("div", { class: "product-title" }, "Product", -1)),
28
- a("div", j, [
29
- (l(!0), s(c, null, _(o.data.product, (r) => (l(), s("div", {
30
- class: "product-item",
31
- key: r.label
32
- }, h(r.label), 1))), 128))
33
- ]),
34
- a("div", K, [
35
- (l(!0), s(c, null, _(o.data.product, (r) => (l(), s(c, {
36
- key: r.label
37
- }, [
38
- r.children.length > 0 ? (l(), s("div", x, [
39
- a("div", U, h(r.label), 1),
40
- a("div", q, [
41
- (l(!0), s(c, null, _(r.children, (u) => (l(), s("div", {
42
- class: "attribute-item",
43
- key: u.label
44
- }, [
45
- a("div", G, h(u.label), 1),
46
- a("div", H, h(u.value || "--"), 1)
47
- ]))), 128))
48
- ])
49
- ])) : O("", !0)
50
- ], 64))), 128))
51
- ])
52
- ])
53
- ]),
54
- _: 1
55
- });
56
- };
57
- }
58
- }), Q = /* @__PURE__ */ D({
59
- __name: "OfferDetails",
60
- props: {
61
- title: {},
62
- key: {},
63
- rulePath: {},
64
- rowKey: {},
65
- showDynamicSearch: { type: Boolean },
66
- multipleSelection: { type: Boolean },
67
- highlightCurrentRow: { type: Boolean },
68
- "highlight-current-row": { type: Boolean },
69
- stripe: { type: Boolean },
70
- rowClick: {},
71
- rowDbClick: {},
72
- sizeChange: {},
73
- pageChange: {},
74
- topBtns: {},
75
- rowBtns: {},
76
- hidden: { type: Boolean },
77
- hiddenPagination: { type: Boolean },
78
- handleCurrentChange: {},
79
- pageSizes: {},
80
- pagerCount: {},
81
- defaultPageSize: {},
82
- typeSwitch: { type: Boolean },
83
- displayType: {},
84
- onMounted: {},
85
- height: {},
86
- gridColumns: { default: 3 },
87
- gap: { default: 16 },
88
- data: {},
89
- columns: {}
90
- },
91
- setup(m) {
92
- var B, w;
93
- const o = m, d = F(), y = g("ruleModule", void 0), r = g("pageMethodMap", {}), u = () => {
94
- try {
95
- y[o.onClickFooter](r, o.data);
96
- } catch (e) {
97
- console.error(e);
98
- }
99
- }, k = F([]), b = (B = o.columns.find((e) => e.position === "title")) == null ? void 0 : B.key, v = (w = o.columns.find((e) => e.position === "subTitle")) == null ? void 0 : w.key, p = o.columns.find((e) => e.position === "footer"), T = (e) => {
100
- const t = [];
101
- return e.children && e.children.length > 0 && e.children.forEach((n) => {
102
- const f = {
103
- label: n.OFFER_NAME,
104
- children: []
105
- };
106
- n.children && n.children.length > 0 && n.children.forEach((E) => {
107
- f.children.push({
108
- label: E.OFFER_NAME,
109
- value: E.ATTR_VALUE
110
- });
111
- }), t.push(f);
112
- }), t;
113
- }, C = g(L), i = C ? C.translateFn : null;
114
- return P(() => {
115
- o.data && (d.value = o.data.map((e) => {
116
- const t = {
117
- content: []
118
- };
119
- return b && (t.title = i ? i(b, e) : e[b]), v && (t.subTitle = i ? i(v, e) : e[v]), p && (t.footer = {
120
- icon: p.footerIcon || "icon-tishi",
121
- text: `${p.label}: ${i ? i(p.key, e) : e[p.key]}`
122
- }), e.children && (t.product = T(e)), o.columns.forEach((n) => {
123
- n.position === "content" && t.content.push({
124
- label: n.label,
125
- value: i ? i(n.key, e) : e[n.key]
126
- });
127
- }), t;
128
- }));
129
- }), $(() => {
130
- var e;
131
- k.value = (e = o.rowBtns) == null ? void 0 : e.map((t) => ({
132
- icon: t.icon && t.icon.name ? t.icon.name : "icon-tishi",
133
- label: t.label,
134
- onClick: t.onClick
135
- }));
136
- }), (e, t) => (l(), s(c, null, [
137
- a("div", {
138
- class: "card-list",
139
- style: z({
140
- "--columns": e.gridColumns,
141
- "--gap": e.gap + "px"
142
- })
143
- }, [
144
- (l(!0), s(c, null, _(d.value, (n, f) => (l(), s("div", {
145
- class: "card-list-item",
146
- key: f
147
- }, [
148
- S(J, {
149
- data: n,
150
- btns: k.value
151
- }, null, 8, ["data", "btns"])
152
- ]))), 128))
153
- ], 4),
154
- a("div", {
155
- class: "card-list-footer",
156
- onClick: u
157
- }, [
158
- a("span", null, h(e.footerText), 1)
159
- ])
160
- ], 64));
161
- }
162
- }), Y = /* @__PURE__ */ R(Q, [["__scopeId", "data-v-5365ff23"]]);
163
- export {
164
- Y as default
165
- };
@@ -1,58 +0,0 @@
1
- import { inject as D, ref as v, toRaw as h, onMounted as P, watch as i } from "vue";
2
- import { $ as g, u as q, l as y } from "./index-Be_hWoLI.js";
3
- import "element-plus";
4
- const w = () => {
5
- const { fetchOptionsFn: t } = D(g);
6
- return t;
7
- }, b = (t) => {
8
- const o = q(), c = w(), a = v([]), r = v(!1), n = y.debounce(async () => {
9
- if (c && t.apiParams && !Object.values(t.apiParams).some((e) => e === void 0)) {
10
- r.value = !0;
11
- try {
12
- const e = await c({
13
- formItemProps: h(t),
14
- formSchema: h(o.schema)
15
- });
16
- a.value = [...a.value, ...e];
17
- } finally {
18
- r.value = !1;
19
- }
20
- }
21
- }, 300);
22
- P(() => {
23
- const { mode: e, options: s = [] } = t;
24
- e === "static" && (a.value = s), e === "remote" && n();
25
- }), i(
26
- () => t.apiParams,
27
- (e, s) => {
28
- y.isEqual(e, s) || (a.value = [], n());
29
- }
30
- ), i(
31
- () => t.options,
32
- (e = []) => {
33
- t.mode === "static" && (a.value = e);
34
- }
35
- ), i(
36
- () => t.mode,
37
- (e) => {
38
- e === "static" && (a.value = t.options || []), e === "remote" && (a.value = [], n());
39
- }
40
- );
41
- const { mode: A, dependentFields: f } = t;
42
- if (A === "remote" && Array.isArray(f))
43
- for (const e of f)
44
- i(
45
- () => o.formValues[e],
46
- (s, m) => {
47
- n();
48
- }
49
- );
50
- return { selectChange: (e) => {
51
- const { valueKey: s = "value", multiple: m, name: d } = t;
52
- let l = {};
53
- m && Array.isArray(e) ? l = a.value.filter((u) => e.includes(u[s])) : l = a.value.find((u) => u[s] === e) || {}, o.selectData && d && o.updateSelectData(d, l);
54
- }, currentOptions: a, loading: r, fetchData: n };
55
- };
56
- export {
57
- b as u
58
- };