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/dist/index.d.ts CHANGED
@@ -151,9 +151,9 @@ pageParams?: any;
151
151
  }>>> & Readonly<{
152
152
  onDone?: ((data: any) => any) | undefined;
153
153
  onRefresh?: (() => any) | undefined;
154
+ onChangeTab?: ((tabKey: string, params?: any) => any) | undefined;
154
155
  onChangeMixMode?: ((tabKey: string, mode: boolean) => any) | undefined;
155
156
  onAddPageParams?: ((data: any) => any) | undefined;
156
- onChangeTab?: ((tabKey: string, params?: any) => any) | undefined;
157
157
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
158
158
 
159
159
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -217,9 +217,11 @@ declare type BtnItemType = {
217
217
  type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
218
218
  color?: string;
219
219
  orange?: boolean;
220
+ isReverse?: boolean;
220
221
  icon?: {
221
222
  name: string;
222
223
  color?: string;
224
+ size?: 'x-small' | 'small' | 'normal' | 'large' | 'ultra-large';
223
225
  };
224
226
  label?: string;
225
227
  size?: 'default' | 'small' | 'large';
@@ -456,6 +458,9 @@ name: {
456
458
  type: PropType<string>;
457
459
  required: true;
458
460
  };
461
+ onMoved: {
462
+ type: PropType<string>;
463
+ };
459
464
  }>, {
460
465
  getLayout: () => Readonly<Ref<readonly {
461
466
  readonly x: number;
@@ -508,6 +513,9 @@ name: {
508
513
  type: PropType<string>;
509
514
  required: true;
510
515
  };
516
+ onMoved: {
517
+ type: PropType<string>;
518
+ };
511
519
  }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
512
520
 
513
521
  declare type DropdownType = {
@@ -864,6 +872,7 @@ declare interface SelectProps {
864
872
  name: string;
865
873
  onChange?: string;
866
874
  read?: boolean;
875
+ readTextColor?: string;
867
876
  filters?: (string | number | boolean)[];
868
877
  refreshFlag?: boolean;
869
878
  clearable?: boolean;
@@ -897,6 +906,7 @@ declare interface TableColumn {
897
906
  type?: string;
898
907
  onClick?: string;
899
908
  getIconInfo?: string;
909
+ getTextStyle?: string;
900
910
  encrypted?: boolean;
901
911
  }
902
912
 
@@ -1047,7 +1057,7 @@ export declare const useFormInstance: () => FormInstance_2;
1047
1057
 
1048
1058
  export declare const useRuleContext: () => {
1049
1059
  ruleModule: any;
1050
- pageMethodMap: {};
1060
+ pageMethodMap: PageMethods;
1051
1061
  };
1052
1062
 
1053
1063
  export { }
@@ -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-SP1L-4n5.js";
2
+ import { _ as D, I as k, B as F, a as N, b as S } from "./index-Tp_hfJyR.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
- 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";
1
+ import { defineComponent as f, mergeModels as g, useModel as v, inject as r, resolveComponent as y, openBlock as C, createBlock as M, mergeProps as h, unref as d } from "vue";
2
2
  import "element-plus";
3
- import { u as b } from "./useSelect-BIYVb8Je.js";
3
+ import { u as b } from "./useSelect-DpxtO7zI.js";
4
4
  const k = /* @__PURE__ */ f({
5
5
  __name: "Cascader",
6
6
  props: /* @__PURE__ */ g({
@@ -17,6 +17,7 @@ const k = /* @__PURE__ */ f({
17
17
  name: { default: "" },
18
18
  onChange: {},
19
19
  read: { type: Boolean },
20
+ readTextColor: {},
20
21
  filters: {},
21
22
  refreshFlag: { type: Boolean },
22
23
  clearable: { type: Boolean }
@@ -26,21 +27,21 @@ const k = /* @__PURE__ */ f({
26
27
  }),
27
28
  emits: ["update:modelValue"],
28
29
  setup(a) {
29
- const o = a, t = v(a, "modelValue"), n = r("ruleModule", void 0), d = r("pageMethodMap", {}), u = (e) => {
30
- if (o.onChange && n)
30
+ const l = a, t = v(a, "modelValue"), n = r("ruleModule", void 0), s = r("pageMethodMap", {}), u = (e) => {
31
+ if (l.onChange && n)
31
32
  try {
32
- n[o.onChange](d, e);
33
- } catch (l) {
34
- console.error(l);
33
+ n[l.onChange](s, e);
34
+ } catch (o) {
35
+ console.error(o);
35
36
  }
36
- }, { currentOptions: p, loading: i } = b(o);
37
- return (e, l) => {
37
+ }, { currentOptions: p, loading: i } = b(l);
38
+ return (e, o) => {
38
39
  const m = y("el-cascader");
39
- return M(), h(m, C({
40
+ return C(), M(m, h({
40
41
  modelValue: t.value,
41
- "onUpdate:modelValue": l[0] || (l[0] = (c) => t.value = c),
42
- options: s(p),
43
- loading: s(i),
42
+ "onUpdate:modelValue": o[0] || (o[0] = (c) => t.value = c),
43
+ options: d(p),
44
+ loading: d(i),
44
45
  props: {
45
46
  multiple: e.multiple,
46
47
  label: e.labelKey,
@@ -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 O, createBlock as r, mergeProps as P, withCtx as y, Fragment as b, renderList as f, createCommentVNode as v } from "vue";
2
2
  import "element-plus";
3
- import { u as S } from "./index-SP1L-4n5.js";
4
- import { u as j } from "./useSelect-BIYVb8Je.js";
3
+ import { u as S } from "./index-Tp_hfJyR.js";
4
+ import { u as j } from "./useSelect-DpxtO7zI.js";
5
5
  const E = { key: 0 }, q = /* @__PURE__ */ w({
6
6
  __name: "Checkbox",
7
7
  props: /* @__PURE__ */ z({
@@ -17,6 +17,7 @@ const E = { key: 0 }, q = /* @__PURE__ */ w({
17
17
  name: { default: "" },
18
18
  onChange: {},
19
19
  read: { type: Boolean },
20
+ readTextColor: {},
20
21
  filters: {},
21
22
  refreshFlag: { type: Boolean },
22
23
  clearable: { type: Boolean },
@@ -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-SP1L-4n5.js";
2
+ import { a as y } from "./index-Tp_hfJyR.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-SP1L-4n5.js";
2
+ import { u as V } from "./index-Tp_hfJyR.js";
3
3
  import "element-plus";
4
4
  const B = /* @__PURE__ */ d({
5
5
  __name: "Component",
@@ -0,0 +1,33 @@
1
+ import { defineComponent as p, mergeModels as d, useModel as i, computed as c, resolveComponent as f, openBlock as t, createElementBlock as y, toDisplayString as v, createBlock as k, mergeProps as V } from "vue";
2
+ import { u as _ } from "./index-Tp_hfJyR.js";
3
+ import "element-plus";
4
+ const B = { key: 0 }, g = /* @__PURE__ */ p({
5
+ __name: "Component",
6
+ props: /* @__PURE__ */ d({
7
+ min: {},
8
+ read: { type: Boolean },
9
+ precision: {}
10
+ }, {
11
+ modelValue: {},
12
+ modelModifiers: {}
13
+ }),
14
+ emits: ["update:modelValue"],
15
+ setup(l) {
16
+ const o = i(l, "modelValue"), r = _(), a = c(() => r.schema.read), m = (e) => {
17
+ ["E", "e", "+", "-"].includes(e.key) && e.preventDefault();
18
+ };
19
+ return (e, n) => {
20
+ const s = f("el-input-number");
21
+ return e.read || a.value ? (t(), y("span", B, v(typeof o.value == "number" ? o.value.toFixed(e.precision || 0).replace(".", ",") : "--"), 1)) : (t(), k(s, V({ key: 1 }, e.$attrs, {
22
+ modelValue: o.value,
23
+ "onUpdate:modelValue": n[0] || (n[0] = (u) => o.value = u),
24
+ style: { width: "100%" },
25
+ min: e.min || 0,
26
+ onKeydown: m
27
+ }), null, 16, ["modelValue", "min"]));
28
+ };
29
+ }
30
+ });
31
+ export {
32
+ g as default
33
+ };
@@ -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 c, 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-SP1L-4n5.js";
2
+ import { f as F, I as j, b as D } from "./index-Tp_hfJyR.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,
@@ -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-SP1L-4n5.js";
5
+ import { u as b, b as x } from "./index-Tp_hfJyR.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 $, 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-SP1L-4n5.js";
2
+ import { b as H, u as K, c as Q } from "./index-Tp_hfJyR.js";
3
3
  import "element-plus";
4
4
  const Z = $({
5
5
  props: {
@@ -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-SP1L-4n5.js";
3
+ import { _ as f } from "./index-Tp_hfJyR.js";
4
4
  const $ = {
5
5
  key: 0,
6
6
  style: { "min-width": "300px" }
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as F, inject as V, ref as w, resolveComponent as C, openBlock as a, createElementBlock as s, normalizeClass as m, normalizeStyle as j, createElementVNode as i, createBlock as r, createCommentVNode as v, toDisplayString as S, withCtx as f, Fragment as _, renderList as M, createTextVNode as A, createVNode as p, unref as B, withDirectives as O, vShow as P } from "vue";
2
- import { u as U, I as u, B as q, a as $, h as G, b as H } from "./index-SP1L-4n5.js";
2
+ import { u as U, I as u, B as q, a as $, h as G, b as H } from "./index-Tp_hfJyR.js";
3
3
  import "element-plus";
4
4
  const J = ["id"], K = { class: "left-part" }, Q = { class: "title" }, W = { class: "right-part" }, X = {
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-SP1L-4n5.js";
2
+ import { b as i } from "./index-Tp_hfJyR.js";
3
3
  const f = {
4
4
  key: 0,
5
5
  class: "empty"
@@ -0,0 +1,33 @@
1
+ import { defineComponent as i, mergeModels as f, useModel as v, useAttrs as k, computed as r, resolveComponent as y, openBlock as l, createElementBlock as _, toDisplayString as V, createBlock as B, mergeProps as M } from "vue";
2
+ import { dayjs as g } from "element-plus";
3
+ import { u as h } from "./index-Tp_hfJyR.js";
4
+ const D = { key: 0 }, I = /* @__PURE__ */ i({
5
+ __name: "DatePicker",
6
+ props: /* @__PURE__ */ f({
7
+ read: { type: Boolean }
8
+ }, {
9
+ modelValue: {},
10
+ modelModifiers: {}
11
+ }),
12
+ emits: ["update:modelValue"],
13
+ setup(s) {
14
+ const e = v(s, "modelValue"), o = k(), n = h(), u = r(() => n.schema.read), m = r(() => e.value ? o.valueFormat ? g(e.value).format(o.valueFormat) : e.value : "--"), d = [
15
+ {
16
+ text: "Today",
17
+ value: /* @__PURE__ */ new Date()
18
+ }
19
+ ];
20
+ return (t, a) => {
21
+ const c = y("el-date-picker");
22
+ return t.read || u.value ? (l(), _("span", D, V(m.value), 1)) : (l(), B(c, M({ key: 1 }, t.$attrs, {
23
+ modelValue: e.value,
24
+ "onUpdate:modelValue": a[0] || (a[0] = (p) => e.value = p),
25
+ style: { width: "100%" },
26
+ shortcuts: d
27
+ }), null, 16, ["modelValue"]));
28
+ };
29
+ }
30
+ });
31
+ export {
32
+ I as default
33
+ };
@@ -0,0 +1,327 @@
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, j as ze, i as Re, a as Ne, b as $e } from "./index-Tp_hfJyR.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
+ }
293
+ };
294
+ if (z(l), f.name) {
295
+ const o = Re(f.name, l);
296
+ ye(() => {
297
+ o();
298
+ });
299
+ }
300
+ return (o, c) => (S(), P(A(Ie), {
301
+ layout: a.value,
302
+ "onUpdate:layout": c[1] || (c[1] = (x) => a.value = x),
303
+ "col-num": o.colNum || 12,
304
+ "row-height": o.rowHeight || 30,
305
+ "max-rows": o.maxRows,
306
+ margin: [8, 8],
307
+ "is-draggable": o.isDraggable,
308
+ "is-bounded": "",
309
+ "is-resizable": !1,
310
+ "vertical-compact": "",
311
+ "use-css-transforms": ""
312
+ }, {
313
+ default: J(() => [
314
+ K(A(Ne), {
315
+ list: o.children,
316
+ gridData: a.value,
317
+ "onUpdate:gridData": c[0] || (c[0] = (x) => a.value = x),
318
+ onGridItemMoved: N
319
+ }, null, 8, ["list", "gridData"])
320
+ ]),
321
+ _: 1
322
+ }, 8, ["layout", "col-num", "row-height", "max-rows", "is-draggable"]));
323
+ }
324
+ }), We = /* @__PURE__ */ $e(Ee, [["__scopeId", "data-v-e86a2f5c"]]);
325
+ export {
326
+ We as default
327
+ };
@@ -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-SP1L-4n5.js";
2
+ import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-Tp_hfJyR.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,5 +1,5 @@
1
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-SP1L-4n5.js";
2
+ import { a as g } from "./index-Tp_hfJyR.js";
3
3
  import "element-plus";
4
4
  const x = /* @__PURE__ */ i({
5
5
  __name: "Grid",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as l, computed as o, openBlock as r, createElementBlock as i, normalizeStyle as p, createVNode as s, unref as c } from "vue";
2
- import { a as m, b as u } from "./index-SP1L-4n5.js";
2
+ import { a as m, b as u } from "./index-Tp_hfJyR.js";
3
3
  import "element-plus";
4
4
  const f = /* @__PURE__ */ l({
5
5
  __name: "Inline",
@@ -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-SP1L-4n5.js";
2
+ import { b as xt, g as Nt } from "./index-Tp_hfJyR.js";
3
3
  import "element-plus";
4
4
  const Mt = /* @__PURE__ */ At({
5
5
  __name: "Disabled",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, openBlock as e, createElementBlock as o, Fragment as a, renderList as i, createElementVNode as s, normalizeStyle as d, toDisplayString as l, normalizeClass as u, createTextVNode as g, createCommentVNode as v } from "vue";
2
- import { b as y } from "./index-SP1L-4n5.js";
2
+ import { b as y } from "./index-Tp_hfJyR.js";
3
3
  const b = { class: "log-list" }, f = { class: "title-part" }, h = { class: "title" }, m = { class: "sub-title" }, k = { class: "content" }, C = { key: 0 }, L = /* @__PURE__ */ p({
4
4
  __name: "LogList",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, inject as i, provide as d, ref as f, openBlock as e, createElementBlock as o, unref as n, createBlock as m, Fragment as _, renderList as $, mergeProps as b } from "vue";
2
- import { u as j, d as h, e as k } from "./index-SP1L-4n5.js";
2
+ import { u as j, d as h, e as k } from "./index-Tp_hfJyR.js";
3
3
  import "element-plus";
4
4
  const v = { class: "vfc-ObjGroup" }, B = {
5
5
  key: 1,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as B, resolveComponent as M, openBlock as l, createBlock as O, withCtx as E, createVNode as g, createElementVNode as i, createElementBlock as r, Fragment as u, renderList as y, toDisplayString as b, createCommentVNode as I, ref as D, inject as N, watchEffect as A, onMounted as R, normalizeStyle as S, unref as $ } from "vue";
2
- import { k as U, $ as z, _ as F, b as L } from "./index-SP1L-4n5.js";
2
+ import { k as U, $ as z, _ as F, b as L } from "./index-Tp_hfJyR.js";
3
3
  const x = { class: "content" }, K = { class: "product-list" }, V = { class: "attribute-list" }, j = {
4
4
  key: 0,
5
5
  class: "attribute-list-item"