asiaint-lowcode 3.1.29 → 3.1.32

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 (39) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +112 -112
  3. package/dist/index.d.ts +9 -27
  4. package/dist/lazy/{Card-XvYmArV6.js → Card-BwNa1hDj.js} +1 -1
  5. package/dist/lazy/{Cascader-X8-x5OVi.js → Cascader-CO31vocU.js} +1 -1
  6. package/dist/lazy/{Checkbox-BAvIffVy.js → Checkbox-DnKjRokQ.js} +2 -2
  7. package/dist/lazy/{Collapse-Dxb0-Gm0.js → Collapse-Bj6jTROO.js} +1 -1
  8. package/dist/lazy/{Component-ha4PkWiH.js → Component-B5LV-KaP.js} +1 -1
  9. package/dist/lazy/{Component-CRMf78p5.js → Component-BdScPQJE.js} +1 -1
  10. package/dist/lazy/{Component-DmeXKeND.js → Component-BdegLcld.js} +1 -1
  11. package/dist/lazy/{Component-BsgdHDP2.js → Component-C9n4lMEL.js} +1 -1
  12. package/dist/lazy/{Component-C8CEK8SN.js → Component-PmyO01kg.js} +1 -1
  13. package/dist/lazy/{Component-BJZk0sqT.js → Component-uCK5rapQ.js} +1 -1
  14. package/dist/lazy/{CurdCard-Us3z-Taz.js → CurdCard-CsiT8A_x.js} +1 -1
  15. package/dist/lazy/{Custom-DKrjeFti.js → Custom-W0JF0Dyi.js} +1 -1
  16. package/dist/lazy/{DatePicker-DRM8P6jp.js → DatePicker-CQy59KtN.js} +1 -1
  17. package/dist/lazy/DragList-IgtjrMRt.js +332 -0
  18. package/dist/lazy/{FilterSearch-elTbLDzk.js → FilterSearch-Cr0_y7A6.js} +1 -1
  19. package/dist/lazy/{FormList-vb7RuvO-.js → FormList-BUHgpi2T.js} +1 -1
  20. package/dist/lazy/{Grid-CY3IeecA.js → Grid-CFooYco_.js} +1 -1
  21. package/dist/lazy/InfiniteScroll-CB3I6t7N.js +38 -0
  22. package/dist/lazy/{Inline-DIwh4C_Y.js → Inline-C8C_pWZn.js} +1 -1
  23. package/dist/lazy/{JsonEdit-B3IWsFHN.js → JsonEdit-BI6f3E8d.js} +1 -1
  24. package/dist/lazy/{LogList-BKcgl3d5.js → LogList-9YVVSkru.js} +1 -1
  25. package/dist/lazy/{ObjGroup-B4hVMb42.js → ObjGroup-D2SfhwJS.js} +1 -1
  26. package/dist/lazy/{OfferDetails-CJRFtCgG.js → OfferDetails-C3-Ehi6N.js} +1 -1
  27. package/dist/lazy/{Pagination-mgCbpgxW.js → Pagination-CMS6eUN-.js} +1 -1
  28. package/dist/lazy/{Progress-_Zuh01mF.js → Progress-CwN_cudN.js} +1 -1
  29. package/dist/lazy/{Radio-DJrcuE5r.js → Radio-CxGp1o2I.js} +2 -2
  30. package/dist/lazy/{SearchSelect-BE08GNhm.js → SearchSelect-B5m_yG_4.js} +2 -2
  31. package/dist/lazy/{Select-Bk668HeD.js → Select-D-xVt93H.js} +2 -2
  32. package/dist/lazy/{Table-DDlK04gz.js → Table-Ay_abxF4.js} +1 -1
  33. package/dist/lazy/{Tabs-lJ9GGrra.js → Tabs-Dptk_Xp_.js} +1 -1
  34. package/dist/lazy/{Wrapper-CbeCkXPQ.js → Wrapper-DvspQhb6.js} +1 -1
  35. package/dist/lazy/{index-Cg7LKdr9.js → index-C-0KoMei.js} +1560 -1540
  36. package/dist/lazy/{useSelect-CSlxQCNo.js → useSelect-CaTbd2nX.js} +1 -1
  37. package/dist/style.css +2 -2
  38. package/package.json +1 -1
  39. package/dist/lazy/DragList-B0bZTVHu.js +0 -328
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.1.29",
3
+ "version": "3.1.32",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,328 +0,0 @@
1
- import { defineComponent as G, reactive as W, ref as F, onBeforeMount as le, onMounted as ie, nextTick as v, onBeforeUnmount as re, watch as u, provide as T, toRefs as V, openBlock as S, createElementBlock as j, normalizeStyle as ne, renderSlot as q, Fragment as se, renderList as ue, createBlock as P, mergeProps as de, withCtx as J, withDirectives as ce, createVNode as K, vShow as me, mergeModels as pe, useModel as ge, onUnmounted as ye, unref as A, readonly as O } from "vue";
2
- import { w as ve, m as fe, n as he, o as b, T as we, v as xe, p as k, A as Be, q as X, x as be, L as ke, y as Ce, r as De, Y as Le, s as Me, t as Y, V as Se, c as ze, j as Re, a as Ne, b as $e } from "./index-Cg7LKdr9.js";
3
- import "element-plus";
4
- const Ie = /* @__PURE__ */ G({
5
- __name: "grid-layout",
6
- props: {
7
- autoSize: { type: Boolean, default: !0 },
8
- colNum: { default: 12 },
9
- rowHeight: { default: 150 },
10
- maxRows: { default: 1 / 0 },
11
- margin: { default: () => [10, 10] },
12
- isDraggable: { type: Boolean, default: !0 },
13
- isResizable: { type: Boolean, default: !0 },
14
- isMirrored: { type: Boolean, default: !1 },
15
- isBounded: { type: Boolean, default: !1 },
16
- useCssTransforms: { type: Boolean, default: !0 },
17
- verticalCompact: { type: Boolean, default: !0 },
18
- restoreOnDrag: { type: Boolean, default: !1 },
19
- layout: {},
20
- responsive: { type: Boolean, default: !1 },
21
- responsiveLayouts: { default: () => ({}) },
22
- transformScale: { default: 1 },
23
- breakpoints: { default: () => ({ lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 }) },
24
- cols: { default: () => ({ lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 }) },
25
- preventCollision: { type: Boolean, default: !1 },
26
- useStyleCursor: { type: Boolean, default: !0 }
27
- },
28
- emits: [
29
- "layout-before-mount",
30
- "layout-mounted",
31
- "layout-updated",
32
- "breakpoint-changed",
33
- "update:layout",
34
- "layout-ready"
35
- ],
36
- setup(C, { expose: z, emit: f }) {
37
- const a = C, s = f, t = W({
38
- width: -1,
39
- mergedStyle: {},
40
- lastLayoutLength: 0,
41
- isDragging: !1,
42
- placeholder: {
43
- x: 0,
44
- y: 0,
45
- w: 0,
46
- h: 0,
47
- i: ""
48
- },
49
- layouts: {},
50
- // array to store all layouts from different breakpoints
51
- lastBreakpoint: null,
52
- // store last active breakpoint
53
- originalLayout: null
54
- // store original Layout
55
- }), D = /* @__PURE__ */ new Map(), l = F(a.layout), d = F(), { observeResize: R, unobserveResize: N } = ve(), o = Se();
56
- o.on("resizeEvent", c), o.on("dragEvent", x), le(() => {
57
- s("layout-before-mount", l.value);
58
- }), ie(() => {
59
- s("layout-mounted", l.value), v(() => {
60
- fe(l.value), t.originalLayout = l.value, v(() => {
61
- U(), d.value && R(d.value, he($, 16)), b(l.value, a.verticalCompact), s("layout-updated", l.value), h(), $();
62
- });
63
- });
64
- }), re(() => {
65
- o.clearAll(), d.value && N(d.value);
66
- });
67
- function c(e, n, r, g, m, p) {
68
- H(e, n, r, g, m, p);
69
- }
70
- function x(e, n, r, g, m, p) {
71
- _(e, n, r, g, m, p);
72
- }
73
- u(
74
- () => t.width,
75
- (e, n) => {
76
- v(() => {
77
- o.emit("updateWidth", e), n === -1 && v(() => {
78
- s("layout-ready", l.value);
79
- }), h();
80
- });
81
- }
82
- ), u(
83
- () => [a.layout, a.layout.length],
84
- () => {
85
- l.value = a.layout, E();
86
- }
87
- ), u(
88
- () => a.colNum,
89
- (e) => {
90
- o.emit("setColNum", e);
91
- }
92
- ), u(
93
- () => a.rowHeight,
94
- (e) => {
95
- o.emit("setRowHeight", e);
96
- }
97
- ), u(
98
- () => a.isDraggable,
99
- (e) => {
100
- o.emit("setDraggable", e);
101
- }
102
- ), u(
103
- () => a.isResizable,
104
- (e) => {
105
- o.emit("setResizable", e);
106
- }
107
- ), u(
108
- () => a.isBounded,
109
- (e) => {
110
- o.emit("setBounded", e);
111
- }
112
- ), u(
113
- () => a.transformScale,
114
- (e) => {
115
- o.emit("setTransformScale", e);
116
- }
117
- ), u(
118
- () => a.responsive,
119
- (e) => {
120
- e || (s("update:layout", t.originalLayout), o.emit("setColNum", a.colNum)), $();
121
- }
122
- ), u(
123
- () => a.maxRows,
124
- (e) => {
125
- o.emit("setMaxRows", e);
126
- }
127
- ), u([() => a.margin, () => a.margin[1]], h), T(
128
- we,
129
- W({
130
- ...V(a),
131
- ...V(t),
132
- increaseItem: Q,
133
- decreaseItem: Z
134
- })
135
- ), T(xe, o), z({ state: t, getItem: ee, resizeEvent: H, dragEvent: _, layoutUpdate: E });
136
- function Q(e) {
137
- D.set(e.i, e);
138
- }
139
- function Z(e) {
140
- D.delete(e.i);
141
- }
142
- function ee(e) {
143
- return D.get(e);
144
- }
145
- function E() {
146
- if (!k(l.value) && !k(t.originalLayout)) {
147
- if (l.value.length !== t.originalLayout.length) {
148
- const e = oe(l.value, t.originalLayout);
149
- if (e.length > 0)
150
- if (l.value.length > t.originalLayout.length)
151
- t.originalLayout = t.originalLayout.concat(e);
152
- else {
153
- const n = new Set(e.map((r) => r.i));
154
- t.originalLayout = t.originalLayout.filter((r) => !n.has(r.i));
155
- }
156
- t.lastLayoutLength = l.value.length, U();
157
- }
158
- b(l.value, a.verticalCompact), o.emit("updateWidth", t.width), h(), s("layout-updated", l.value);
159
- }
160
- }
161
- function h() {
162
- t.mergedStyle = {
163
- height: te()
164
- };
165
- }
166
- function $() {
167
- d.value && (t.width = d.value.offsetWidth), o.emit("resizeEvent");
168
- }
169
- function te() {
170
- if (!a.autoSize) return;
171
- const e = parseFloat(a.margin[1]);
172
- return Be(l.value) * (a.rowHeight + e) + e + "px";
173
- }
174
- let I;
175
- function _(e, n, r, g, m, p) {
176
- let i = X(l.value, n);
177
- k(i) && (i = { h: 0, w: 0, x: 0, y: 0, i: "" }), e === "dragstart" && !a.verticalCompact && (I = l.value.reduce(
178
- (B, { i: L, x: y, y: w }) => ({
179
- ...B,
180
- [L]: { x: y, y: w }
181
- }),
182
- {}
183
- )), e === "dragmove" || e === "dragstart" ? (t.placeholder.i = n, t.placeholder.x = i.x, t.placeholder.y = i.y, t.placeholder.w = p, t.placeholder.h = m, v(() => {
184
- t.isDragging = !0;
185
- }), o.emit("updateWidth", t.width)) : v(() => {
186
- t.isDragging = !1;
187
- }), l.value = be(l.value, i, r, g, !0, a.preventCollision), a.restoreOnDrag ? (i.static = !0, b(l.value, a.verticalCompact, I), i.static = !1) : b(l.value, a.verticalCompact), o.emit("compact"), h(), e === "dragend" && (I = void 0, s("layout-updated", l.value));
188
- }
189
- function H(e, n, r, g, m, p) {
190
- let i = X(l.value, n);
191
- k(i) && (i = { h: 0, w: 0, x: 0, y: 0, i: "" });
192
- let B;
193
- if (a.preventCollision) {
194
- const L = ke(l.value, { ...i, w: p, h: m }).filter(
195
- (y) => y.i !== i.i
196
- );
197
- if (B = L.length > 0, B) {
198
- let y = 1 / 0, w = 1 / 0;
199
- L.forEach((M) => {
200
- M.x > i.x && (y = Math.min(y, M.x)), M.y > i.y && (w = Math.min(w, M.y));
201
- }), Number.isFinite(y) && (i.w = y - i.x), Number.isFinite(w) && (i.h = w - i.y);
202
- }
203
- }
204
- B || (i.w = p, i.h = m), e === "resizestart" || e === "resizemove" ? (t.placeholder.i = n, t.placeholder.x = r, t.placeholder.y = g, t.placeholder.w = i.w, t.placeholder.h = i.h, v(() => {
205
- t.isDragging = !0;
206
- }), o.emit("updateWidth", t.width)) : e && v(() => {
207
- t.isDragging = !1;
208
- }), a.responsive && ae(), b(l.value, a.verticalCompact), o.emit("compact"), h(), e === "resizeend" && s("layout-updated", l.value);
209
- }
210
- function ae() {
211
- const e = Ce(a.breakpoints, t.width);
212
- if (e === t.lastBreakpoint)
213
- return;
214
- const n = De(e, a.cols);
215
- !k(t.lastBreakpoint) && !t.layouts[t.lastBreakpoint] && (t.layouts[t.lastBreakpoint] = Le(l.value));
216
- const r = Me(
217
- t.originalLayout,
218
- t.layouts,
219
- a.breakpoints,
220
- e,
221
- t.lastBreakpoint,
222
- n,
223
- a.verticalCompact
224
- );
225
- t.layouts[e] = r, t.lastBreakpoint !== e && s("breakpoint-changed", e, r), l.value = r, s("update:layout", r), t.lastBreakpoint = e, o.emit("setColNum", n);
226
- }
227
- function U() {
228
- t.layouts = Object.assign({}, a.responsiveLayouts);
229
- }
230
- function oe(e, n) {
231
- const r = new Set(n.map((i) => i.i)), g = new Set(e.map((i) => i.i)), m = e.filter((i) => !r.has(i.i)), p = n.filter((i) => !g.has(i.i));
232
- return m.concat(p);
233
- }
234
- return (e, n) => (S(), j("div", {
235
- ref_key: "wrapper",
236
- ref: d,
237
- class: "vgl-layout",
238
- style: ne(t.mergedStyle)
239
- }, [
240
- e.$slots.default ? q(e.$slots, "default", { key: 0 }) : (S(!0), j(se, { key: 1 }, ue(l.value, (r) => (S(), P(Y, de({
241
- key: r.i,
242
- ref_for: !0
243
- }, r), {
244
- default: J(() => [
245
- q(e.$slots, "item", { item: r })
246
- ]),
247
- _: 2
248
- }, 1040))), 128)),
249
- ce(K(Y, {
250
- class: "vgl-item--placeholder",
251
- x: t.placeholder.x,
252
- y: t.placeholder.y,
253
- w: t.placeholder.w,
254
- h: t.placeholder.h,
255
- i: t.placeholder.i
256
- }, null, 8, ["x", "y", "w", "h", "i"]), [
257
- [me, t.isDragging]
258
- ])
259
- ], 4));
260
- }
261
- }), Ee = /* @__PURE__ */ G({
262
- __name: "DragList",
263
- props: /* @__PURE__ */ pe({
264
- children: {},
265
- rowHeight: {},
266
- colNum: {},
267
- maxRows: {},
268
- isDraggable: { type: Boolean },
269
- name: {},
270
- onMoved: {}
271
- }, {
272
- gridlayout: { required: !0 },
273
- gridlayoutModifiers: {}
274
- }),
275
- emits: ["update:gridlayout"],
276
- setup(C, { expose: z }) {
277
- const f = C, a = ge(C, "gridlayout"), l = {
278
- getLayout: () => O(a),
279
- setItemX: (o, c) => {
280
- a.value[o].x = c;
281
- },
282
- setItemY: (o, c) => {
283
- a.value[o].y = c;
284
- },
285
- type: "draglist"
286
- }, { ruleModule: d, pageMethodMap: R } = ze(), N = () => {
287
- if (f.onMoved && d)
288
- try {
289
- d[f.onMoved](R, O(a.value));
290
- } catch (o) {
291
- console.error(o + `
292
- onMoved: ${f.onMoved}`);
293
- }
294
- };
295
- if (z(l), f.name) {
296
- const o = Re(f.name, l);
297
- ye(() => {
298
- o();
299
- });
300
- }
301
- return (o, c) => (S(), P(A(Ie), {
302
- layout: a.value,
303
- "onUpdate:layout": c[1] || (c[1] = (x) => a.value = x),
304
- "col-num": o.colNum || 12,
305
- "row-height": o.rowHeight || 30,
306
- "max-rows": o.maxRows,
307
- margin: [8, 8],
308
- "is-draggable": o.isDraggable,
309
- "is-bounded": "",
310
- "is-resizable": !1,
311
- "vertical-compact": "",
312
- "use-css-transforms": ""
313
- }, {
314
- default: J(() => [
315
- K(A(Ne), {
316
- list: o.children,
317
- gridData: a.value,
318
- "onUpdate:gridData": c[0] || (c[0] = (x) => a.value = x),
319
- onGridItemMoved: N
320
- }, null, 8, ["list", "gridData"])
321
- ]),
322
- _: 1
323
- }, 8, ["layout", "col-num", "row-height", "max-rows", "is-draggable"]));
324
- }
325
- }), We = /* @__PURE__ */ $e(Ee, [["__scopeId", "data-v-4c9d1c4f"]]);
326
- export {
327
- We as default
328
- };