asiaint-lowcode 3.0.73 → 3.0.74

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 +3 -3
  2. package/dist/asiaint-lowcode.umd.cjs +172 -172
  3. package/dist/index.d.ts +94 -7
  4. package/dist/lazy/{Card-BSLPnj0t.js → Card-BLkyronF.js} +1 -1
  5. package/dist/lazy/{Cascader-DbhMXzZV.js → Cascader-BWayPZsj.js} +1 -1
  6. package/dist/lazy/{Checkbox-CugjGjO9.js → Checkbox-B0f2osCE.js} +2 -2
  7. package/dist/lazy/{Collapse-vmX3PUGx.js → Collapse-CwiKPgVS.js} +1 -1
  8. package/dist/lazy/{Component-DYYKdz9f.js → Component-B0YN5w1O.js} +1 -1
  9. package/dist/lazy/{Component-OVhYSWDw.js → Component-BTW9MMvF.js} +1 -1
  10. package/dist/lazy/{Component-B0QFEwWr.js → Component-BgbXAvZP.js} +1 -1
  11. package/dist/lazy/{Component-DmRET3rE.js → Component-CxjtIKb4.js} +1 -1
  12. package/dist/lazy/{Component-0yrWAeoC.js → Component-DN6wPVjw.js} +1 -1
  13. package/dist/lazy/{Component-BG11YH1L.js → Component-DtKK0pz0.js} +1 -1
  14. package/dist/lazy/{CurdCard-DYgLc5Ux.js → CurdCard-YilgvVgg.js} +1 -1
  15. package/dist/lazy/{Custom-D7UjpkOW.js → Custom-BHrk3rwy.js} +1 -1
  16. package/dist/lazy/DragList-BfxZ0XM8.js +316 -0
  17. package/dist/lazy/{FormList-D40CRggh.js → FormList-Bve4HUdY.js} +1 -1
  18. package/dist/lazy/{Grid-SH-t5UKW.js → Grid-gYua8Lbh.js} +10 -9
  19. package/dist/lazy/{Inline-BeKoTPJ_.js → Inline-DP_W3TA1.js} +9 -8
  20. package/dist/lazy/{JsonEdit-DYvUy8q6.js → JsonEdit-DspEkIiw.js} +1 -1
  21. package/dist/lazy/{LogList-D0JGptci.js → LogList-BJ0N-SZh.js} +1 -1
  22. package/dist/lazy/{ObjGroup-DHQJdcpe.js → ObjGroup-DwogU-tX.js} +1 -1
  23. package/dist/lazy/{OfferDetails-DSgaH1Gs.js → OfferDetails-BRQXALnl.js} +1 -1
  24. package/dist/lazy/{Progress-CogcTWsd.js → Progress-CZiRwjox.js} +1 -1
  25. package/dist/lazy/{Radio-9tV-vmZH.js → Radio-DAQ63lEp.js} +2 -2
  26. package/dist/lazy/{SearchSelect-DLgYdGsW.js → SearchSelect-B4rd3IEr.js} +2 -2
  27. package/dist/lazy/{Select-BfKuShpB.js → Select-B9ka9Z-o.js} +2 -2
  28. package/dist/lazy/{Table-BeIhsi28.js → Table-BT_PlC1e.js} +2 -2
  29. package/dist/lazy/{Tabs-DHYb7Jot.js → Tabs-D_jMk0g4.js} +1 -1
  30. package/dist/lazy/{Wrapper-CfglrkCe.js → Wrapper-Db2njs9z.js} +1 -1
  31. package/dist/lazy/{index-COoXTzR3.js → index-CPs7U1jG.js} +12662 -8829
  32. package/dist/lazy/{useSelect-v7E0loNK.js → useSelect-DBsTZmYm.js} +1 -1
  33. package/dist/style.css +2 -2
  34. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -14,6 +14,7 @@ import { InjectionKey } from 'vue';
14
14
  import { ModelRef } from 'vue';
15
15
  import { PropType } from 'vue';
16
16
  import { PublicProps } from 'vue';
17
+ import { Ref } from 'vue';
17
18
  import { TabPaneName } from 'element-plus';
18
19
  import { TabsProps } from 'element-plus';
19
20
  import { VNode } from 'vue';
@@ -67,7 +68,7 @@ getFieldValue: (key: string) => any;
67
68
  refreshDynamicListBox: (key: string) => void;
68
69
  setHidden: (value: boolean) => void;
69
70
  rootRef: unknown;
70
- type: string;
71
+ type: "form";
71
72
  schema: FormSchema;
72
73
  schemaContext: Record<string, any>;
73
74
  design: boolean;
@@ -116,7 +117,7 @@ ruleMap: Record<string, any>;
116
117
  pageUrl?: string;
117
118
  pageParams?: any;
118
119
  }>>, {
119
- findRef: <T extends keyof RefTypeMap>(key: string) => RefType<T>;
120
+ findRef: <T extends keyof FindRefTypeMap>(key: string) => FindRefType<T>;
120
121
  setFormDisabled: (key: string, disabled: boolean) => void;
121
122
  validate: (keys: string[] | string) => Promise<boolean | undefined>;
122
123
  getData: (keys?: string[] | string) => any;
@@ -286,7 +287,7 @@ type: PropType<string>;
286
287
  required: true;
287
288
  };
288
289
  }>, {
289
- type: string;
290
+ type: "infocard";
290
291
  schema: ModelRef<InfoCardSchema, string, InfoCardSchema, InfoCardSchema>;
291
292
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
292
293
  schema: {
@@ -313,7 +314,7 @@ type: PropType<(key: string) => any>;
313
314
  required: true;
314
315
  };
315
316
  }>, {
316
- type: string;
317
+ type: "navbar";
317
318
  schema: ModelRef<NavBarSchema, string, NavBarSchema, NavBarSchema>;
318
319
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
319
320
  schema: {
@@ -330,6 +331,81 @@ required: true;
330
331
  };
331
332
  }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
332
333
 
334
+ declare const _default_5: DefineComponent<ExtractPropTypes< {
335
+ gridlayout: {
336
+ required: true;
337
+ type: PropType< {
338
+ x: number;
339
+ y: number;
340
+ w: number;
341
+ h: number;
342
+ i: string;
343
+ }[]>;
344
+ };
345
+ children: {
346
+ type: PropType<FormItemType[]>;
347
+ required: true;
348
+ };
349
+ rowHeight: {
350
+ type: PropType<number>;
351
+ };
352
+ colNum: {
353
+ type: PropType<number>;
354
+ };
355
+ maxRows: {
356
+ type: PropType<number>;
357
+ };
358
+ name: {
359
+ type: PropType<string>;
360
+ required: true;
361
+ };
362
+ }>, {
363
+ getLayout: () => Readonly<Ref<readonly {
364
+ readonly x: number;
365
+ readonly y: number;
366
+ readonly w: number;
367
+ readonly h: number;
368
+ readonly i: string;
369
+ }[], readonly {
370
+ readonly x: number;
371
+ readonly y: number;
372
+ readonly w: number;
373
+ readonly h: number;
374
+ readonly i: string;
375
+ }[]>>;
376
+ setItemX: (index: number, x: number) => void;
377
+ setItemY: (index: number, y: number) => void;
378
+ type: "draglist";
379
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
380
+ gridlayout: {
381
+ required: true;
382
+ type: PropType< {
383
+ x: number;
384
+ y: number;
385
+ w: number;
386
+ h: number;
387
+ i: string;
388
+ }[]>;
389
+ };
390
+ children: {
391
+ type: PropType<FormItemType[]>;
392
+ required: true;
393
+ };
394
+ rowHeight: {
395
+ type: PropType<number>;
396
+ };
397
+ colNum: {
398
+ type: PropType<number>;
399
+ };
400
+ maxRows: {
401
+ type: PropType<number>;
402
+ };
403
+ name: {
404
+ type: PropType<string>;
405
+ required: true;
406
+ };
407
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
408
+
333
409
  declare type DropdownType = {
334
410
  key: string;
335
411
  text: string;
@@ -344,6 +420,19 @@ declare type DropdownType = {
344
420
  }[];
345
421
  };
346
422
 
423
+ /**
424
+ * 根据key查找单个组件实例
425
+ * @param key 组件的key
426
+ * @returns 组件实例
427
+ */
428
+ declare type ExtraRefTypeMap = {
429
+ draglist: InstanceType<typeof _default_5> & ComponentPublicInstance;
430
+ };
431
+
432
+ declare type FindRefType<T extends keyof FindRefTypeMap> = FindRefTypeMap[T];
433
+
434
+ declare type FindRefTypeMap = RefTypeMap & ExtraRefTypeMap;
435
+
347
436
  declare type FormChange = {
348
437
  target: string;
349
438
  value?: any;
@@ -605,8 +694,6 @@ export declare type PageSchema = {
605
694
  btnPosition?: 'center' | 'space-around' | 'space-between' | 'space-evenly' | 'end' | 'start';
606
695
  };
607
696
 
608
- declare type RefType<T extends keyof RefTypeMap> = RefTypeMap[T] & ComponentPublicInstance;
609
-
610
697
  declare type RefTypeMap = {
611
698
  [K in keyof ComponentType]: InstanceType<ComponentType[K]>;
612
699
  };
@@ -721,7 +808,7 @@ setColumn: <K extends keyof TableColumn>(key: string, keyName: K, keyValue: Tabl
721
808
  setRowsBtnHidden: (btnKey: string, hidden: boolean) => void;
722
809
  setShadowless: (shadowless: boolean) => void;
723
810
  rootRef: Readonly<unknown>;
724
- type: string;
811
+ type: "table";
725
812
  design: boolean;
726
813
  read: boolean;
727
814
  pageRulePath: string;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as B, ref as g, inject as h, resolveComponent as d, openBlock as s, createBlock as i, mergeProps as M, withCtx as c, createElementVNode as o, createElementBlock as n, createVNode as t, unref as p, normalizeClass as $, createCommentVNode as I, toDisplayString as v, Fragment as u, renderList as C, withDirectives as E, vShow as V } from "vue";
2
- import { _ as D, I as k, B as F, a as N, b as S } from "./index-COoXTzR3.js";
2
+ import { _ as D, I as k, B as F, a as N, b as S } from "./index-CPs7U1jG.js";
3
3
  import "element-plus";
4
4
  const j = { class: "card-header" }, H = { class: "card-btns" }, L = { class: "card-sub-header" }, P = /* @__PURE__ */ B({
5
5
  __name: "Card",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, mergeModels as g, useModel as v, inject as r, resolveComponent as y, openBlock as M, createBlock as h, mergeProps as C, unref as s } from "vue";
2
2
  import "element-plus";
3
- import { u as b } from "./useSelect-v7E0loNK.js";
3
+ import { u as b } from "./useSelect-DBsTZmYm.js";
4
4
  const k = /* @__PURE__ */ f({
5
5
  __name: "Cascader",
6
6
  props: /* @__PURE__ */ g({
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as w, mergeModels as z, useModel as F, watch as D, resolveComponent as t, resolveDirective as M, unref as a, openBlock as l, createElementBlock as s, toDisplayString as I, withDirectives as P, createBlock as r, mergeProps as S, withCtx as y, Fragment as b, renderList as f, createCommentVNode as v } from "vue";
2
2
  import "element-plus";
3
- import { u as j } from "./index-COoXTzR3.js";
4
- import { u as E } from "./useSelect-v7E0loNK.js";
3
+ import { u as j } from "./index-CPs7U1jG.js";
4
+ import { u as E } from "./useSelect-DBsTZmYm.js";
5
5
  const L = { key: 0 }, q = /* @__PURE__ */ w({
6
6
  __name: "Checkbox",
7
7
  props: /* @__PURE__ */ z({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, ref as f, onMounted as _, watch as h, resolveComponent as c, openBlock as o, createBlock as i, mergeProps as C, withCtx as r, createElementBlock as E, Fragment as k, renderList as v, createVNode as m, unref as V } from "vue";
2
- import { a as y } from "./index-COoXTzR3.js";
2
+ import { a as y } from "./index-CPs7U1jG.js";
3
3
  import "element-plus";
4
4
  import { _ as B } from "./Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js";
5
5
  const x = /* @__PURE__ */ u({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, mergeModels as m, useModel as r, resolveComponent as u, openBlock as p, createBlock as i, mergeProps as c, unref as f } from "vue";
2
- import { u as V } from "./index-COoXTzR3.js";
2
+ import { u as V } from "./index-CPs7U1jG.js";
3
3
  import "element-plus";
4
4
  const B = /* @__PURE__ */ d({
5
5
  __name: "Component",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as b, mergeModels as V, useModel as B, resolveComponent as d, openBlock as l, createBlock as n, createSlots as C, withCtx as a, createElementBlock as m, Fragment as w, createVNode as E, unref as r, createElementVNode as o, createTextVNode as i, toDisplayString as p, createCommentVNode as u } from "vue";
2
2
  import { ElMessage as M, ElMessageBox as N } from "element-plus";
3
- import { _ as f } from "./index-COoXTzR3.js";
3
+ import { _ as f } from "./index-CPs7U1jG.js";
4
4
  const $ = {
5
5
  key: 0,
6
6
  style: { "min-width": "300px" }
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as w, inject as C, ref as v, watch as $, resolveComponent as m, openBlock as d, createBlock as y, mergeProps as A, withCtx as f, createElementVNode as s, toDisplayString as B, createElementBlock as k, createCommentVNode as _, Fragment as N, renderList as E, unref as I, withModifiers as P, createVNode as V } from "vue";
2
- import { f as F, I as j, b as D } from "./index-COoXTzR3.js";
2
+ import { f as F, I as j, b as D } from "./index-CPs7U1jG.js";
3
3
  import "element-plus";
4
4
  const R = { class: "custom-tree-node" }, S = { class: "tree-node-text" }, q = { class: "tree-node-label" }, z = {
5
5
  key: 0,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, ref as v, computed as N, watch as L, onMounted as x, onBeforeUnmount as F, openBlock as T, createElementBlock as E, mergeModels as J, useModel as A, resolveComponent as G, unref as W, createElementVNode as P, createBlock as X, withCtx as D, createTextVNode as I, createCommentVNode as Y, createVNode as R } from "vue";
2
- import { b as H, u as K, c as Q } from "./index-COoXTzR3.js";
2
+ import { b as H, u as K, c as Q } from "./index-CPs7U1jG.js";
3
3
  import "element-plus";
4
4
  const Z = $({
5
5
  props: {
@@ -2,7 +2,7 @@ var u = Object.defineProperty;
2
2
  var m = (o, e, t) => e in o ? u(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
3
  var a = (o, e, t) => m(o, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { defineComponent as g, mergeModels as v, useModel as I, ref as c, onMounted as w, resolveComponent as C, openBlock as y, createElementBlock as _, createVNode as V, createElementVNode as M } from "vue";
5
- import { u as b, b as x } from "./index-COoXTzR3.js";
5
+ import { u as b, b as x } from "./index-CPs7U1jG.js";
6
6
  import "element-plus";
7
7
  function S() {
8
8
  return "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",");
@@ -1,5 +1,5 @@
1
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-COoXTzR3.js";
2
+ import { u as v } from "./index-CPs7U1jG.js";
3
3
  import "element-plus";
4
4
  const k = { key: 0 }, K = /* @__PURE__ */ s({
5
5
  __name: "Component",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as z, inject as V, ref as I, resolveComponent as C, openBlock as a, createElementBlock as s, createElementVNode as i, normalizeClass as y, createBlock as r, createCommentVNode as m, toDisplayString as M, withCtx as f, Fragment as w, renderList as $, createTextVNode as j, createVNode as p, unref as T, withDirectives as P, vShow as U } from "vue";
2
- import { u as q, I as u, B as A, a as R, h as G, b as H } from "./index-COoXTzR3.js";
2
+ import { u as q, I as u, B as A, a as R, h as G, b as H } from "./index-CPs7U1jG.js";
3
3
  import "element-plus";
4
4
  const J = { class: "crm-curd-card" }, K = { class: "left-part" }, O = { class: "title" }, Q = { class: "right-part" }, W = {
5
5
  key: 0,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as n, mergeModels as s, useModel as p, openBlock as t, createElementBlock as r, createBlock as d, resolveDynamicComponent as u, mergeProps as c } from "vue";
2
- import { b as i } from "./index-COoXTzR3.js";
2
+ import { b as i } from "./index-CPs7U1jG.js";
3
3
  const f = {
4
4
  key: 0,
5
5
  class: "empty"
@@ -0,0 +1,316 @@
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 S, 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 pe, onUnmounted as ge, unref as q, readonly as ye } from "vue";
2
+ import { w as fe, k as ve, m as he, n as x, T as we, v as xe, o as B, A as Be, p as A, x as be, L as ke, y as Ce, q as Le, Y as De, r as Se, s as O, V as ze, i as Re, a as Ne, b as Me } from "./index-CPs7U1jG.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(b, { expose: z, emit: k }) {
37
+ const a = b, u = k, 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: g, unobserveResize: R } = 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
+ I(), s.value && g(s.value, he(N, 16)), x(o.value, a.verticalCompact), u("layout-updated", o.value), v(), N();
62
+ });
63
+ });
64
+ }), ie(() => {
65
+ r.clearAll(), s.value && R(s.value);
66
+ });
67
+ function G(e, n, i, p, c, m) {
68
+ E(e, n, i, p, c, m);
69
+ }
70
+ function J(e, n, i, p, c, m) {
71
+ $(e, n, i, p, c, m);
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), z({ state: t, getItem: Z, resizeEvent: E, dragEvent: $, 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, I();
157
+ }
158
+ x(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, n, i, p, c, m) {
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
+ (w, { i: L, x: y, y: h }) => ({
179
+ ...w,
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 = m, t.placeholder.h = c, 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, x(o.value, a.verticalCompact, M), l.static = !1) : x(o.value, a.verticalCompact), r.emit("compact"), v(), e === "dragend" && (M = void 0, u("layout-updated", o.value));
188
+ }
189
+ function E(e, n, i, p, c, m) {
190
+ let l = A(o.value, n);
191
+ B(l) && (l = { h: 0, w: 0, x: 0, y: 0, i: "" });
192
+ let w;
193
+ if (a.preventCollision) {
194
+ const L = ke(o.value, { ...l, w: m, h: c }).filter(
195
+ (y) => y.i !== l.i
196
+ );
197
+ if (w = L.length > 0, w) {
198
+ let y = 1 / 0, h = 1 / 0;
199
+ L.forEach((D) => {
200
+ D.x > l.x && (y = Math.min(y, D.x)), D.y > l.y && (h = Math.min(h, D.y));
201
+ }), Number.isFinite(y) && (l.w = y - l.x), Number.isFinite(h) && (l.h = h - l.y);
202
+ }
203
+ }
204
+ w || (l.w = m, l.h = c), 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(), x(o.value, a.verticalCompact), r.emit("compact"), v(), e === "resizeend" && u("layout-updated", o.value);
209
+ }
210
+ function te() {
211
+ const e = Ce(a.breakpoints, t.width);
212
+ if (e === t.lastBreakpoint)
213
+ return;
214
+ const n = Le(e, a.cols);
215
+ !B(t.lastBreakpoint) && !t.layouts[t.lastBreakpoint] && (t.layouts[t.lastBreakpoint] = De(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 I() {
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)), c = e.filter((l) => !i.has(l.i)), m = n.filter((l) => !p.has(l.i));
232
+ return c.concat(m);
233
+ }
234
+ return (e, n) => (S(), 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 }) : (S(!0), T(ne, { key: 1 }, se(o.value, (i) => (S(), 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
+ }), $e = /* @__PURE__ */ X({
262
+ __name: "DragList",
263
+ props: /* @__PURE__ */ me({
264
+ children: {},
265
+ rowHeight: {},
266
+ colNum: {},
267
+ maxRows: {},
268
+ name: {}
269
+ }, {
270
+ gridlayout: { required: !0 },
271
+ gridlayoutModifiers: {}
272
+ }),
273
+ emits: ["update:gridlayout"],
274
+ setup(b, { expose: z }) {
275
+ const k = b, a = pe(b, "gridlayout"), o = {
276
+ getLayout: () => ye(a),
277
+ setItemX: (s, g) => {
278
+ a.value[s].x = g;
279
+ },
280
+ setItemY: (s, g) => {
281
+ a.value[s].y = g;
282
+ },
283
+ type: "draglist"
284
+ };
285
+ if (z(o), k.name) {
286
+ const s = Re(k.name, o);
287
+ ge(() => {
288
+ s();
289
+ });
290
+ }
291
+ return (s, g) => (S(), Y(q(_e), {
292
+ layout: a.value,
293
+ "onUpdate:layout": g[0] || (g[0] = (R) => a.value = R),
294
+ "col-num": s.colNum || 12,
295
+ "row-height": s.rowHeight || 30,
296
+ "max-rows": s.maxRows,
297
+ margin: [8, 8],
298
+ "is-draggable": "",
299
+ "is-bounded": "",
300
+ "is-resizable": !1,
301
+ "vertical-compact": "",
302
+ "use-css-transforms": ""
303
+ }, {
304
+ default: j(() => [
305
+ P(q(Ne), {
306
+ list: s.children,
307
+ gridData: a.value
308
+ }, null, 8, ["list", "gridData"])
309
+ ]),
310
+ _: 1
311
+ }, 8, ["layout", "col-num", "row-height", "max-rows"]));
312
+ }
313
+ }), Ue = /* @__PURE__ */ Me($e, [["__scopeId", "data-v-5be2b6d8"]]);
314
+ export {
315
+ Ue as default
316
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, mergeModels as j, useModel as G, ref as T, computed as M, watch as H, onMounted as J, provide as K, resolveComponent as b, openBlock as l, createElementBlock as _, unref as m, createBlock as s, Fragment as $, renderList as g, withCtx as r, createElementVNode as C, createVNode as v, mergeProps as R, createCommentVNode as y, toDisplayString as F, createTextVNode as O, h as Q } from "vue";
2
- import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-COoXTzR3.js";
2
+ import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-CPs7U1jG.js";
3
3
  import "element-plus";
4
4
  const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-content" }, ee = { class: "card-header" }, le = { style: { "margin-top": "5px" } }, oe = /* @__PURE__ */ S({
5
5
  __name: "FormList",
@@ -1,7 +1,7 @@
1
- import { defineComponent as o, computed as a, openBlock as d, createBlock as e, unref as r, normalizeStyle as l } from "vue";
2
- import { a as m } from "./index-COoXTzR3.js";
1
+ import { defineComponent as i, computed as o, openBlock as a, createElementBlock as d, normalizeStyle as r, createVNode as l, unref as m } from "vue";
2
+ import { a as g } from "./index-CPs7U1jG.js";
3
3
  import "element-plus";
4
- const f = /* @__PURE__ */ o({
4
+ const x = /* @__PURE__ */ i({
5
5
  __name: "Grid",
6
6
  props: {
7
7
  children: {},
@@ -15,7 +15,7 @@ const f = /* @__PURE__ */ o({
15
15
  paddingRight: {}
16
16
  },
17
17
  setup(t) {
18
- const p = t, n = a(() => ({
18
+ const p = t, n = o(() => ({
19
19
  display: "grid",
20
20
  "grid-template-columns": `repeat(${p.columns}, 1fr)`,
21
21
  "row-gap": (p.rowGap || 12) + "px",
@@ -26,13 +26,14 @@ const f = /* @__PURE__ */ o({
26
26
  "padding-left": p.paddingLeft + "px",
27
27
  "padding-right": p.paddingRight + "px"
28
28
  }));
29
- return (i, g) => (d(), e(r(m), {
29
+ return (e, s) => (a(), d("div", {
30
30
  class: "form-item-grid",
31
- style: l(n.value),
32
- list: i.children
33
- }, null, 8, ["style", "list"]));
31
+ style: r(n.value)
32
+ }, [
33
+ l(m(g), { list: e.children }, null, 8, ["list"])
34
+ ], 4));
34
35
  }
35
36
  });
36
37
  export {
37
- f as default
38
+ x as default
38
39
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as o, computed as l, openBlock as i, createBlock as p, unref as r, normalizeStyle as s } from "vue";
2
- import { a as c, b as m } from "./index-COoXTzR3.js";
1
+ import { defineComponent as o, computed as l, openBlock as i, createElementBlock as r, normalizeStyle as p, createVNode as s, unref as c } from "vue";
2
+ import { a as m, b as f } from "./index-CPs7U1jG.js";
3
3
  import "element-plus";
4
- const f = /* @__PURE__ */ o({
4
+ const d = /* @__PURE__ */ o({
5
5
  __name: "Inline",
6
6
  props: {
7
7
  children: {},
@@ -20,13 +20,14 @@ const f = /* @__PURE__ */ o({
20
20
  "overflow-x": "auto",
21
21
  gap: `${e.gap || 12}px`
22
22
  }));
23
- return (a, u) => (i(), p(r(c), {
23
+ return (a, u) => (i(), r("div", {
24
24
  class: "form-item-inline",
25
- style: s(t.value),
26
- list: a.children
27
- }, null, 8, ["style", "list"]));
25
+ style: p(t.value)
26
+ }, [
27
+ s(c(m), { list: a.children }, null, 8, ["list"])
28
+ ], 4));
28
29
  }
29
- }), y = /* @__PURE__ */ m(f, [["__scopeId", "data-v-259682a8"]]);
30
+ }), y = /* @__PURE__ */ f(d, [["__scopeId", "data-v-b9d2c15b"]]);
30
31
  export {
31
32
  y as default
32
33
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as At, openBlock as mt, createElementBlock as wt, mergeProps as St, createElementVNode as pt, renderSlot as It, normalizeClass as bt, mergeModels as Tt, useModel as Et, createBlock as Rt, unref as $t, withCtx as _t, createVNode as Lt } from "vue";
2
- import { b as xt, g as Nt } from "./index-COoXTzR3.js";
2
+ import { b as xt, g as Nt } from "./index-CPs7U1jG.js";
3
3
  import "element-plus";
4
4
  const Mt = /* @__PURE__ */ At({
5
5
  __name: "Disabled",