asiaint-lowcode 3.1.2 → 3.1.3

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 (38) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +118 -118
  3. package/dist/index.d.ts +12 -2
  4. package/dist/lazy/{Card-DbI_QzNF.js → Card-DelnzYHh.js} +1 -1
  5. package/dist/lazy/{Cascader-lIbcZ7RY.js → Cascader-BoyY8qNi.js} +14 -13
  6. package/dist/lazy/{Checkbox-T86CcHUp.js → Checkbox-BQXkmpHk.js} +3 -2
  7. package/dist/lazy/{Collapse-Cp72NY1I.js → Collapse-BpsJMZUL.js} +1 -1
  8. package/dist/lazy/{Component-BNMdgfRu.js → Component-BHodX8tI.js} +1 -1
  9. package/dist/lazy/Component-BM8XQdsc.js +33 -0
  10. package/dist/lazy/{Component-CXz4lXfh.js → Component-CE53GsPm.js} +1 -1
  11. package/dist/lazy/{Component-BwY6NfzI.js → Component-CwlJSw-B.js} +1 -1
  12. package/dist/lazy/{Component-CC9Y7PUK.js → Component-Db9FyBXr.js} +1 -1
  13. package/dist/lazy/{Component-DJL4xb6C.js → Component-_dMWsHxy.js} +1 -1
  14. package/dist/lazy/{CurdCard-CCbgbv5V.js → CurdCard-CeNTaILI.js} +1 -1
  15. package/dist/lazy/{Custom-Dg_mqlTW.js → Custom-B-S62SW9.js} +1 -1
  16. package/dist/lazy/DatePicker-KuHkgUXv.js +33 -0
  17. package/dist/lazy/DragList-CR7Qa1ZA.js +327 -0
  18. package/dist/lazy/{FormList-DXMqYCSg.js → FormList-CfYt3XmS.js} +1 -1
  19. package/dist/lazy/{Grid-amuif8r1.js → Grid-CY1ucf6C.js} +1 -1
  20. package/dist/lazy/{Inline-BX29Isds.js → Inline-DH1xajPF.js} +1 -1
  21. package/dist/lazy/{JsonEdit-4CFp-hYx.js → JsonEdit-D4y4v0yR.js} +1 -1
  22. package/dist/lazy/{LogList-DVe-7Rgv.js → LogList-CYvCNluF.js} +1 -1
  23. package/dist/lazy/{ObjGroup-Dg-XDbaF.js → ObjGroup-Dgg6WEZo.js} +1 -1
  24. package/dist/lazy/{OfferDetails-EMowTB2N.js → OfferDetails-Cy86N2gm.js} +1 -1
  25. package/dist/lazy/{Progress-BbD-MS5q.js → Progress-CLqSj8SR.js} +1 -1
  26. package/dist/lazy/{Radio-DwJ5cRG2.js → Radio-DWlKdAvA.js} +10 -9
  27. package/dist/lazy/{SearchSelect-BSIkMcDw.js → SearchSelect-gU5QjTeJ.js} +12 -11
  28. package/dist/lazy/{Select-BR3mrRzi.js → Select-BtONL7x5.js} +25 -21
  29. package/dist/lazy/{Table-C7ds2D3A.js → Table-CEQez_FF.js} +143 -134
  30. package/dist/lazy/{Tabs-Coz9YW9I.js → Tabs-DUKYIka1.js} +1 -1
  31. package/dist/lazy/{Wrapper-cVxZyKS3.js → Wrapper-B6d-d-6i.js} +1 -1
  32. package/dist/lazy/{index-SP1L-4n5.js → index-Tp_hfJyR.js} +2920 -2901
  33. package/dist/lazy/{useSelect-BIYVb8Je.js → useSelect-DpxtO7zI.js} +1 -1
  34. package/dist/style.css +2 -2
  35. package/package.json +1 -1
  36. package/dist/lazy/Component-DkQXMLV7.js +0 -35
  37. package/dist/lazy/DatePicker-CGxtZ6pR.js +0 -32
  38. package/dist/lazy/DragList-BTdY-2Ly.js +0 -318
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,35 +0,0 @@
1
- import { defineComponent as s, mergeModels as p, useModel as u, resolveComponent as i, openBlock as t, createElementBlock as d, toDisplayString as c, createBlock as y, mergeProps as f } from "vue";
2
- import { u as v } from "./index-SP1L-4n5.js";
3
- import "element-plus";
4
- const k = { key: 0 }, K = /* @__PURE__ */ s({
5
- __name: "Component",
6
- props: /* @__PURE__ */ p({
7
- min: {},
8
- read: { type: Boolean },
9
- precision: {}
10
- }, {
11
- modelValue: {},
12
- modelModifiers: {}
13
- }),
14
- emits: ["update:modelValue"],
15
- setup(l) {
16
- const o = u(l, "modelValue");
17
- v();
18
- const r = (e) => {
19
- ["E", "e", "+", "-"].includes(e.key) && e.preventDefault();
20
- };
21
- return (e, n) => {
22
- const m = i("el-input-number");
23
- return e.read ? (t(), d("span", k, c(typeof o.value == "number" ? o.value.toFixed(e.precision || 0).replace(".", ",") : "--"), 1)) : (t(), y(m, f({ key: 1 }, e.$attrs, {
24
- modelValue: o.value,
25
- "onUpdate:modelValue": n[0] || (n[0] = (a) => o.value = a),
26
- style: { width: "100%" },
27
- min: e.min || 0,
28
- onKeydown: r
29
- }), null, 16, ["modelValue", "min"]));
30
- };
31
- }
32
- });
33
- export {
34
- K as default
35
- };
@@ -1,32 +0,0 @@
1
- import { defineComponent as m, mergeModels as p, useModel as i, useAttrs as c, computed as v, resolveComponent as f, openBlock as l, createElementBlock as k, toDisplayString as y, createBlock as _, mergeProps as V } from "vue";
2
- import { dayjs as B } from "element-plus";
3
- const g = { key: 0 }, h = /* @__PURE__ */ m({
4
- __name: "DatePicker",
5
- props: /* @__PURE__ */ p({
6
- read: { type: Boolean }
7
- }, {
8
- modelValue: {},
9
- modelModifiers: {}
10
- }),
11
- emits: ["update:modelValue"],
12
- setup(r) {
13
- const e = i(r, "modelValue"), t = c(), u = v(() => e.value ? t.valueFormat ? B(e.value).format(t.valueFormat) : e.value : "--"), n = [
14
- {
15
- text: "Today",
16
- value: /* @__PURE__ */ new Date()
17
- }
18
- ];
19
- return (o, a) => {
20
- const s = f("el-date-picker");
21
- return o.read ? (l(), k("span", g, y(u.value), 1)) : (l(), _(s, V({ key: 1 }, o.$attrs, {
22
- modelValue: e.value,
23
- "onUpdate:modelValue": a[0] || (a[0] = (d) => e.value = d),
24
- style: { width: "100%" },
25
- shortcuts: n
26
- }), null, 16, ["modelValue"]));
27
- };
28
- }
29
- });
30
- export {
31
- h as default
32
- };
@@ -1,318 +0,0 @@
1
- import { defineComponent as X, reactive as H, ref as U, onBeforeMount as oe, onMounted as le, nextTick as f, onBeforeUnmount as ie, watch as d, provide as W, toRefs as F, openBlock as z, createElementBlock as T, normalizeStyle as re, renderSlot as V, Fragment as ne, renderList as se, createBlock as Y, mergeProps as ue, withCtx as j, withDirectives as de, createVNode as P, vShow as ce, mergeModels as me, useModel as ge, onUnmounted as pe, unref as q, readonly as ye } from "vue";
2
- import { w as fe, m as ve, n as he, o as B, T as we, v as xe, p as b, A as Be, q as A, x as be, L as ke, y as De, r as Ce, Y as Le, s as Se, t as O, V as ze, i as Re, a as Ne, b as Me } from "./index-SP1L-4n5.js";
3
- import "element-plus";
4
- const $e = /* @__PURE__ */ X({
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(k, { expose: R, emit: D }) {
37
- const a = k, u = D, t = H({
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
- }), C = /* @__PURE__ */ new Map(), o = U(a.layout), s = U(), { observeResize: c, unobserveResize: w } = fe(), r = ze();
56
- r.on("resizeEvent", G), r.on("dragEvent", J), oe(() => {
57
- u("layout-before-mount", o.value);
58
- }), le(() => {
59
- u("layout-mounted", o.value), f(() => {
60
- ve(o.value), t.originalLayout = o.value, f(() => {
61
- _(), s.value && c(s.value, he(N, 16)), B(o.value, a.verticalCompact), u("layout-updated", o.value), v(), N();
62
- });
63
- });
64
- }), ie(() => {
65
- r.clearAll(), s.value && w(s.value);
66
- });
67
- function G(e, n, i, p, m, g) {
68
- I(e, n, i, p, m, g);
69
- }
70
- function J(e, n, i, p, m, g) {
71
- E(e, n, i, p, m, g);
72
- }
73
- d(
74
- () => t.width,
75
- (e, n) => {
76
- f(() => {
77
- r.emit("updateWidth", e), n === -1 && f(() => {
78
- u("layout-ready", o.value);
79
- }), v();
80
- });
81
- }
82
- ), d(
83
- () => [a.layout, a.layout.length],
84
- () => {
85
- o.value = a.layout, $();
86
- }
87
- ), d(
88
- () => a.colNum,
89
- (e) => {
90
- r.emit("setColNum", e);
91
- }
92
- ), d(
93
- () => a.rowHeight,
94
- (e) => {
95
- r.emit("setRowHeight", e);
96
- }
97
- ), d(
98
- () => a.isDraggable,
99
- (e) => {
100
- r.emit("setDraggable", e);
101
- }
102
- ), d(
103
- () => a.isResizable,
104
- (e) => {
105
- r.emit("setResizable", e);
106
- }
107
- ), d(
108
- () => a.isBounded,
109
- (e) => {
110
- r.emit("setBounded", e);
111
- }
112
- ), d(
113
- () => a.transformScale,
114
- (e) => {
115
- r.emit("setTransformScale", e);
116
- }
117
- ), d(
118
- () => a.responsive,
119
- (e) => {
120
- e || (u("update:layout", t.originalLayout), r.emit("setColNum", a.colNum)), N();
121
- }
122
- ), d(
123
- () => a.maxRows,
124
- (e) => {
125
- r.emit("setMaxRows", e);
126
- }
127
- ), d([() => a.margin, () => a.margin[1]], v), W(
128
- we,
129
- H({
130
- ...F(a),
131
- ...F(t),
132
- increaseItem: K,
133
- decreaseItem: Q
134
- })
135
- ), W(xe, r), R({ state: t, getItem: Z, resizeEvent: I, dragEvent: E, layoutUpdate: $ });
136
- function K(e) {
137
- C.set(e.i, e);
138
- }
139
- function Q(e) {
140
- C.delete(e.i);
141
- }
142
- function Z(e) {
143
- return C.get(e);
144
- }
145
- function $() {
146
- if (!b(o.value) && !b(t.originalLayout)) {
147
- if (o.value.length !== t.originalLayout.length) {
148
- const e = ae(o.value, t.originalLayout);
149
- if (e.length > 0)
150
- if (o.value.length > t.originalLayout.length)
151
- t.originalLayout = t.originalLayout.concat(e);
152
- else {
153
- const n = new Set(e.map((i) => i.i));
154
- t.originalLayout = t.originalLayout.filter((i) => !n.has(i.i));
155
- }
156
- t.lastLayoutLength = o.value.length, _();
157
- }
158
- B(o.value, a.verticalCompact), r.emit("updateWidth", t.width), v(), u("layout-updated", o.value);
159
- }
160
- }
161
- function v() {
162
- t.mergedStyle = {
163
- height: ee()
164
- };
165
- }
166
- function N() {
167
- s.value && (t.width = s.value.offsetWidth), r.emit("resizeEvent");
168
- }
169
- function ee() {
170
- if (!a.autoSize) return;
171
- const e = parseFloat(a.margin[1]);
172
- return Be(o.value) * (a.rowHeight + e) + e + "px";
173
- }
174
- let M;
175
- function E(e, n, i, p, m, g) {
176
- let l = A(o.value, n);
177
- b(l) && (l = { h: 0, w: 0, x: 0, y: 0, i: "" }), e === "dragstart" && !a.verticalCompact && (M = o.value.reduce(
178
- (x, { i: L, x: y, y: h }) => ({
179
- ...x,
180
- [L]: { x: y, y: h }
181
- }),
182
- {}
183
- )), e === "dragmove" || e === "dragstart" ? (t.placeholder.i = n, t.placeholder.x = l.x, t.placeholder.y = l.y, t.placeholder.w = g, t.placeholder.h = m, f(() => {
184
- t.isDragging = !0;
185
- }), r.emit("updateWidth", t.width)) : f(() => {
186
- t.isDragging = !1;
187
- }), o.value = be(o.value, l, i, p, !0, a.preventCollision), a.restoreOnDrag ? (l.static = !0, B(o.value, a.verticalCompact, M), l.static = !1) : B(o.value, a.verticalCompact), r.emit("compact"), v(), e === "dragend" && (M = void 0, u("layout-updated", o.value));
188
- }
189
- function I(e, n, i, p, m, g) {
190
- let l = A(o.value, n);
191
- b(l) && (l = { h: 0, w: 0, x: 0, y: 0, i: "" });
192
- let x;
193
- if (a.preventCollision) {
194
- const L = ke(o.value, { ...l, w: g, h: m }).filter(
195
- (y) => y.i !== l.i
196
- );
197
- if (x = L.length > 0, x) {
198
- let y = 1 / 0, h = 1 / 0;
199
- L.forEach((S) => {
200
- S.x > l.x && (y = Math.min(y, S.x)), S.y > l.y && (h = Math.min(h, S.y));
201
- }), Number.isFinite(y) && (l.w = y - l.x), Number.isFinite(h) && (l.h = h - l.y);
202
- }
203
- }
204
- x || (l.w = g, l.h = m), e === "resizestart" || e === "resizemove" ? (t.placeholder.i = n, t.placeholder.x = i, t.placeholder.y = p, t.placeholder.w = l.w, t.placeholder.h = l.h, f(() => {
205
- t.isDragging = !0;
206
- }), r.emit("updateWidth", t.width)) : e && f(() => {
207
- t.isDragging = !1;
208
- }), a.responsive && te(), B(o.value, a.verticalCompact), r.emit("compact"), v(), e === "resizeend" && u("layout-updated", o.value);
209
- }
210
- function te() {
211
- const e = De(a.breakpoints, t.width);
212
- if (e === t.lastBreakpoint)
213
- return;
214
- const n = Ce(e, a.cols);
215
- !b(t.lastBreakpoint) && !t.layouts[t.lastBreakpoint] && (t.layouts[t.lastBreakpoint] = Le(o.value));
216
- const i = Se(
217
- t.originalLayout,
218
- t.layouts,
219
- a.breakpoints,
220
- e,
221
- t.lastBreakpoint,
222
- n,
223
- a.verticalCompact
224
- );
225
- t.layouts[e] = i, t.lastBreakpoint !== e && u("breakpoint-changed", e, i), o.value = i, u("update:layout", i), t.lastBreakpoint = e, r.emit("setColNum", n);
226
- }
227
- function _() {
228
- t.layouts = Object.assign({}, a.responsiveLayouts);
229
- }
230
- function ae(e, n) {
231
- const i = new Set(n.map((l) => l.i)), p = new Set(e.map((l) => l.i)), m = e.filter((l) => !i.has(l.i)), g = n.filter((l) => !p.has(l.i));
232
- return m.concat(g);
233
- }
234
- return (e, n) => (z(), T("div", {
235
- ref_key: "wrapper",
236
- ref: s,
237
- class: "vgl-layout",
238
- style: re(t.mergedStyle)
239
- }, [
240
- e.$slots.default ? V(e.$slots, "default", { key: 0 }) : (z(!0), T(ne, { key: 1 }, se(o.value, (i) => (z(), Y(O, ue({
241
- key: i.i,
242
- ref_for: !0
243
- }, i), {
244
- default: j(() => [
245
- V(e.$slots, "item", { item: i })
246
- ]),
247
- _: 2
248
- }, 1040))), 128)),
249
- de(P(O, {
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
- [ce, t.isDragging]
258
- ])
259
- ], 4));
260
- }
261
- }), Ee = /* @__PURE__ */ X({
262
- __name: "DragList",
263
- props: /* @__PURE__ */ me({
264
- children: {},
265
- rowHeight: {},
266
- colNum: {},
267
- maxRows: {},
268
- isDraggable: { type: Boolean },
269
- name: {}
270
- }, {
271
- gridlayout: { required: !0 },
272
- gridlayoutModifiers: {}
273
- }),
274
- emits: ["update:gridlayout"],
275
- setup(k, { expose: R }) {
276
- const D = k, a = ge(k, "gridlayout"), o = {
277
- getLayout: () => ye(a),
278
- setItemX: (s, c) => {
279
- a.value[s].x = c;
280
- },
281
- setItemY: (s, c) => {
282
- a.value[s].y = c;
283
- },
284
- type: "draglist"
285
- };
286
- if (R(o), D.name) {
287
- const s = Re(D.name, o);
288
- pe(() => {
289
- s();
290
- });
291
- }
292
- return (s, c) => (z(), Y(q($e), {
293
- layout: a.value,
294
- "onUpdate:layout": c[1] || (c[1] = (w) => a.value = w),
295
- "col-num": s.colNum || 12,
296
- "row-height": s.rowHeight || 30,
297
- "max-rows": s.maxRows,
298
- margin: [8, 8],
299
- "is-draggable": s.isDraggable,
300
- "is-bounded": "",
301
- "is-resizable": !1,
302
- "vertical-compact": "",
303
- "use-css-transforms": ""
304
- }, {
305
- default: j(() => [
306
- P(q(Ne), {
307
- list: s.children,
308
- gridData: a.value,
309
- "onUpdate:gridData": c[0] || (c[0] = (w) => a.value = w)
310
- }, null, 8, ["list", "gridData"])
311
- ]),
312
- _: 1
313
- }, 8, ["layout", "col-num", "row-height", "max-rows", "is-draggable"]));
314
- }
315
- }), Ue = /* @__PURE__ */ Me(Ee, [["__scopeId", "data-v-4f8bb5d6"]]);
316
- export {
317
- Ue as default
318
- };