asiaint-lowcode 3.0.33 → 3.0.35

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 (34) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +125 -125
  3. package/dist/index.d.ts +7 -2
  4. package/dist/lazy/Card-BjIjVHSY.js +102 -0
  5. package/dist/lazy/{Cascader-B-lZfCap.js → Cascader-avy7s_TT.js} +1 -1
  6. package/dist/lazy/{Checkbox-YO_0wBKc.js → Checkbox-BZn0GYIB.js} +2 -2
  7. package/dist/lazy/{Collapse-BlH5sRWv.js → Collapse-Db0LTA46.js} +1 -1
  8. package/dist/lazy/Component-1h985-3I.js +36 -0
  9. package/dist/lazy/{Component-b97O_1Tl.js → Component-BzkGuQn6.js} +1 -1
  10. package/dist/lazy/{Component-Bl19KoSv.js → Component-CYGJTTJw.js} +1 -1
  11. package/dist/lazy/{Component-BCfLKjK8.js → Component-GQYCJTtl.js} +1 -1
  12. package/dist/lazy/{Component-D8B2QjBe.js → Component-ln-XJiQI.js} +1 -1
  13. package/dist/lazy/{Component-09uMPQXo.js → Component-v8evKRwj.js} +1 -1
  14. package/dist/lazy/{CurdCard-DTv68TEH.js → CurdCard-DUQI--iE.js} +1 -1
  15. package/dist/lazy/{Custom-Cu1dz0F5.js → Custom-DXU5JHcS.js} +1 -1
  16. package/dist/lazy/{FormList-DbrUeW7x.js → FormList-DfuTiprs.js} +1 -1
  17. package/dist/lazy/{Grid-Bg52fX8Z.js → Grid-CdKMWQTk.js} +1 -1
  18. package/dist/lazy/{Inline-JoP0Kz2Z.js → Inline-DctgzZdL.js} +1 -1
  19. package/dist/lazy/{JsonEdit-B07NWENB.js → JsonEdit-CflVlRK6.js} +1 -1
  20. package/dist/lazy/{ObjGroup-a2USDXVL.js → ObjGroup-DdYz8IBo.js} +1 -1
  21. package/dist/lazy/OfferDetails-SqqsGCMK.js +168 -0
  22. package/dist/lazy/{Radio-bAObj-SF.js → Radio-B36DUIWx.js} +2 -2
  23. package/dist/lazy/{SearchSelect-yvRqORip.js → SearchSelect-CvMAXRRc.js} +2 -2
  24. package/dist/lazy/{Select-B8CtrHsk.js → Select-CclP3zyB.js} +2 -2
  25. package/dist/lazy/{Table-7R5XEA27.js → Table-BbiZUQ-6.js} +54 -54
  26. package/dist/lazy/{Tabs-4wVyNH_D.js → Tabs-CQuqM3SJ.js} +1 -1
  27. package/dist/lazy/{Wrapper-6_mhBiQ0.js → Wrapper-DX0sH3RH.js} +1 -1
  28. package/dist/lazy/{index-C8n7TbR6.js → index-BVOhSRT8.js} +4748 -4591
  29. package/dist/lazy/{useSelect-B3zM60ey.js → useSelect-Br3_JWNA.js} +1 -1
  30. package/dist/style.css +2 -2
  31. package/package.json +1 -1
  32. package/dist/lazy/Card-CBrL-lfq.js +0 -93
  33. package/dist/lazy/Component-CK_IFBCD.js +0 -34
  34. package/dist/lazy/OfferDetails-Dwry8T2e.js +0 -165
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.0.33",
3
+ "version": "3.0.35",
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-C8n7TbR6.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-C8n7TbR6.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-C8n7TbR6.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
- };