asiaint-lowcode 3.1.102 → 3.1.104

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 (43) hide show
  1. package/README.md +31 -31
  2. package/dist/asiaint-lowcode.js +5 -5
  3. package/dist/asiaint-lowcode.umd.cjs +197 -197
  4. package/dist/index.d.ts +4 -6
  5. package/dist/lazy/{Card-BMdf2FOG.js → Card-BYi5RX-U.js} +23 -23
  6. package/dist/lazy/{Cascader-BId-OuDH.js → Cascader-DSc-tBXD.js} +1 -1
  7. package/dist/lazy/{Checkbox-DbtOg0Qr.js → Checkbox-BwVl_kLE.js} +2 -2
  8. package/dist/lazy/{Collapse-B9fI8DJf.js → Collapse-BzBLO7eG.js} +1 -1
  9. package/dist/lazy/{Component-DbL-pqiK.js → Component-B6yFkqDM.js} +2 -2
  10. package/dist/lazy/{Component-BxxBM5oM.js → Component-BbpttgSN.js} +2 -2
  11. package/dist/lazy/{Component-DH_YYzNN.js → Component-CmG7-A0E.js} +1 -1
  12. package/dist/lazy/{Component-H4P0RXJB.js → Component-DKewZdkK.js} +1 -1
  13. package/dist/lazy/{Component-D3aSxEDt.js → Component-E8xzou7u.js} +2 -2
  14. package/dist/lazy/{CurdCard-BBhkAyrR.js → CurdCard-DUSKyIdd.js} +2 -2
  15. package/dist/lazy/Custom-BtPzeAeT.js +26 -0
  16. package/dist/lazy/{DatePicker-CKvvfvuz.js → DatePicker-B1avvVbv.js} +1 -1
  17. package/dist/lazy/DragList-DHzvqu30.js +332 -0
  18. package/dist/lazy/{FilterSearch-BktC9qBi.js → FilterSearch-eAr0kyOc.js} +2 -2
  19. package/dist/lazy/{FloatCurd-DV8EHSXb.js → FloatCurd-BG9jysxr.js} +9 -9
  20. package/dist/lazy/{FormList-D4L-vNfy.js → FormList-BQ2YeLlT.js} +1 -1
  21. package/dist/lazy/{Grid-b_aNKWbS.js → Grid-H1k8eWXm.js} +1 -1
  22. package/dist/lazy/{InfiniteScroll-KwfQ-0RM.js → InfiniteScroll-Btx3gGPM.js} +4 -4
  23. package/dist/lazy/{Inline-D4k6bs63.js → Inline-Brfx20E1.js} +3 -3
  24. package/dist/lazy/{JsonEdit-B72Ydk48.js → JsonEdit-BsmnASE5.js} +3 -3
  25. package/dist/lazy/{LogList-D35IYkka.js → LogList-RBP8AlYN.js} +7 -7
  26. package/dist/lazy/{ObjGroup-B9LKgcZJ.js → ObjGroup-B3568-Jm.js} +1 -1
  27. package/dist/lazy/{OfferDetails-CRp6CLRU.js → OfferDetails-BvZ4ztZi.js} +11 -11
  28. package/dist/lazy/{Pagination-CwYLwO1y.js → Pagination-W8rSWg2_.js} +4 -4
  29. package/dist/lazy/{Progress-iZgcZMPw.js → Progress-xe_ZWV8a.js} +15 -15
  30. package/dist/lazy/{Radio-Dgq31pLQ.js → Radio-DvvfD8rF.js} +3 -3
  31. package/dist/lazy/{SearchSelect-COnEj31O.js → SearchSelect-0BeIO2Kd.js} +6 -6
  32. package/dist/lazy/{Select-BLStykg2.js → Select-tTMv8Jr2.js} +2 -2
  33. package/dist/lazy/{Table-BzaqEiLr.js → Table-DUJ6Aj9o.js} +39 -39
  34. package/dist/lazy/{Tabs-CqQqNHbu.js → Tabs-cha1ej62.js} +2 -2
  35. package/dist/lazy/{TextArea--8IuwvFN.js → TextArea-neOL4Tfb.js} +3 -3
  36. package/dist/lazy/{Wrapper-D5jKFO1a.js → Wrapper-B8feAer3.js} +2 -2
  37. package/dist/lazy/{index-DLZItbcM.js → index-B-_zXaVx.js} +7431 -7859
  38. package/dist/lazy/{useSelect-CGYFUsCu.js → useSelect-CxSvB0SH.js} +1 -1
  39. package/dist/style.css +2 -2
  40. package/global.d.ts +10 -10
  41. package/package.json +36 -36
  42. package/dist/lazy/Custom-BGsAzJr8.js +0 -26
  43. package/dist/lazy/DragList-DLmKHx1I.js +0 -914
package/dist/index.d.ts CHANGED
@@ -1,12 +1,10 @@
1
1
  import { App } from 'vue';
2
- import { Awaitable } from 'element-plus/es/utils/typescript.mjs';
3
2
  import { Component } from 'vue';
4
3
  import { ComponentOptionsMixin } from 'vue';
5
4
  import { ComponentProvideOptions } from 'vue';
6
5
  import { ComponentPublicInstance } from 'vue';
7
6
  import { DeepReadonly } from 'vue';
8
7
  import { DefineComponent } from 'vue';
9
- import { EpPropMergeType } from 'element-plus/es/utils/index.mjs';
10
8
  import { ExtractPropTypes } from 'vue';
11
9
  import { FormValidationResult } from 'element-plus';
12
10
  import { InjectionKey } from 'vue';
@@ -389,14 +387,14 @@ readonly onMounted?: string | undefined;
389
387
  readonly onActivated?: string | undefined;
390
388
  readonly onChange?: string | undefined;
391
389
  readonly tabProps?: {
392
- readonly type: EpPropMergeType<StringConstructor, "" | "card" | "border-card", unknown>;
390
+ readonly type: "" | "card" | "border-card";
393
391
  readonly closable: boolean;
394
392
  readonly stretch: boolean;
395
393
  readonly addable: boolean;
396
394
  readonly editable: boolean;
397
- readonly tabPosition: EpPropMergeType<StringConstructor, "right" | "top" | "left" | "bottom", unknown>;
398
- readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
399
- readonly modelValue?: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
395
+ readonly tabPosition: "right" | "top" | "left" | "bottom";
396
+ readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => boolean | void | Promise<boolean | void>;
397
+ readonly modelValue?: (string | number) | undefined;
400
398
  } | undefined;
401
399
  readonly hidden?: boolean | undefined;
402
400
  readonly isSticky?: boolean | undefined;
@@ -1,5 +1,5 @@
1
- import { defineComponent as _, watch as H, ref as B, inject as $, resolveComponent as b, openBlock as o, createBlock as f, mergeProps as N, withCtx as y, createElementBlock as s, normalizeClass as p, createVNode as r, unref as C, createCommentVNode as i, createElementVNode as h, toDisplayString as F, Fragment as w, renderList as z, withDirectives as V, vShow as D } from "vue";
2
- import { u as j, a as L, I as u, b as T, B as R, f as q, _ as A } from "./index-DLZItbcM.js";
1
+ import { defineComponent as _, watch as H, ref as B, inject as $, resolveComponent as b, openBlock as a, createBlock as f, mergeProps as N, withCtx as y, createElementBlock as s, normalizeClass as p, createVNode as r, unref as C, createCommentVNode as i, createElementVNode as h, toDisplayString as F, Fragment as w, renderList as z, withDirectives as V, vShow as D } from "vue";
2
+ import { u as j, a as L, I as u, b as T, B as R, f as q, _ as A } from "./index-B-_zXaVx.js";
3
3
  import "element-plus";
4
4
  const G = {
5
5
  key: 3,
@@ -48,43 +48,43 @@ onSwitchChange: ${n.onSwitchChange}`);
48
48
  }
49
49
  return;
50
50
  }
51
- const a = q(E.schema.items, n.name), v = (d) => {
51
+ const o = q(E.schema.items, n.name), v = (d) => {
52
52
  d.forEach((t) => {
53
53
  t.component === "Table" && t.props && (t.props.displayType = e), t.children && t.children.length > 0 && v(t.children);
54
54
  });
55
55
  };
56
- a && a.children && v(a.children);
56
+ o && o.children && v(o.children);
57
57
  }, c = B(n.defaultCollapsed ?? !1), m = $("ruleModule", void 0), S = $("pageMethodMap", {}), I = (e) => {
58
58
  if (e && m)
59
59
  try {
60
60
  m[e](S);
61
- } catch (a) {
62
- console.error(a + `
61
+ } catch (o) {
62
+ console.error(o + `
63
63
  funcName: ${e}`);
64
64
  }
65
65
  };
66
- return (e, a) => {
66
+ return (e, o) => {
67
67
  const v = b("el-tooltip"), d = b("el-collapse-transition"), t = b("ElCard");
68
- return e.hidden ? i("", !0) : (o(), f(t, N({ key: 0 }, e.$attrs, {
68
+ return e.hidden ? i("", !0) : (a(), f(t, N({ key: 0 }, e.$attrs, {
69
69
  class: ["crm-card", { collapsed: c.value, shadowless: e.shadowless }],
70
70
  shadow: "never"
71
71
  }), {
72
72
  header: y(() => [
73
- e.header ? (o(), s("div", {
73
+ e.header ? (a(), s("div", {
74
74
  key: 0,
75
75
  class: p(["card-header", { "has-collapsed": e.collapsible }])
76
76
  }, [
77
- e.collapsible ? (o(), s("div", {
77
+ e.collapsible ? (a(), s("div", {
78
78
  key: 0,
79
79
  class: "icon-wrapper",
80
- onClick: a[0] || (a[0] = (l) => c.value = !c.value)
80
+ onClick: o[0] || (o[0] = (l) => c.value = !c.value)
81
81
  }, [
82
82
  r(C(L), {
83
83
  name: "dropdown",
84
84
  class: p(["dropdown-icon", { "is-collapsed": c.value }])
85
85
  }, null, 8, ["class"])
86
86
  ])) : i("", !0),
87
- e.mainIcon ? (o(), f(u, {
87
+ e.mainIcon ? (a(), f(u, {
88
88
  key: 1,
89
89
  class: "title-icon",
90
90
  size: "large",
@@ -92,7 +92,7 @@ funcName: ${e}`);
92
92
  color: e.mainIcon.color
93
93
  }, null, 8, ["name", "color"])) : i("", !0),
94
94
  h("span", null, F(e.header), 1),
95
- e.headerFormSlots ? (o(), s("div", {
95
+ e.headerFormSlots ? (a(), s("div", {
96
96
  key: 2,
97
97
  class: p({
98
98
  "header-form-slots-right": e.headerFormSlotsPosition === "right",
@@ -101,10 +101,10 @@ funcName: ${e}`);
101
101
  }, [
102
102
  r(C(T), { list: e.headerFormSlots }, null, 8, ["list"])
103
103
  ], 2)) : i("", !0),
104
- (o(!0), s(w, null, z(e.extraIcons, (l) => (o(), s(w, {
104
+ (a(!0), s(w, null, z(e.extraIcons, (l) => (a(), s(w, {
105
105
  key: l.name
106
106
  }, [
107
- l.tips ? (o(), f(v, {
107
+ l.tips ? (a(), f(v, {
108
108
  key: 0,
109
109
  content: l.tips,
110
110
  placement: "right"
@@ -119,7 +119,7 @@ funcName: ${e}`);
119
119
  }, null, 8, ["name", "color", "size", "onClick"])
120
120
  ]),
121
121
  _: 2
122
- }, 1032, ["content"])) : (o(), f(u, {
122
+ }, 1032, ["content"])) : (a(), f(u, {
123
123
  key: 1,
124
124
  class: "extra-icon",
125
125
  name: l.name,
@@ -128,27 +128,27 @@ funcName: ${e}`);
128
128
  onClick: (P) => I(l.onClick)
129
129
  }, null, 8, ["name", "color", "size", "onClick"]))
130
130
  ], 64))), 128)),
131
- e.typeSwitch ? (o(), s("div", G, [
131
+ e.typeSwitch ? (a(), s("div", G, [
132
132
  h("div", {
133
133
  class: p(["switch-icon-wrapper", { active: k.value === "card" }]),
134
- onClick: a[1] || (a[1] = (l) => g("card"))
134
+ onClick: o[1] || (o[1] = (l) => g("card"))
135
135
  }, [
136
136
  r(u, { name: "icon-kapian" })
137
137
  ], 2),
138
138
  h("div", {
139
139
  class: p(["switch-icon-wrapper", { active: k.value === "table" }]),
140
- onClick: a[2] || (a[2] = (l) => g("table"))
140
+ onClick: o[2] || (o[2] = (l) => g("table"))
141
141
  }, [
142
142
  r(u, { name: "icon-biaoge" })
143
143
  ], 2)
144
144
  ])) : i("", !0),
145
- e.btns && e.btns.length > 0 ? (o(), s("div", J, [
145
+ e.btns && e.btns.length > 0 ? (a(), s("div", J, [
146
146
  r(C(R), {
147
147
  btns: e.btns || []
148
148
  }, null, 8, ["btns"])
149
149
  ])) : i("", !0),
150
- e.subHeaders && e.subHeaders.length > 0 ? (o(), s("div", K, [
151
- (o(!0), s(w, null, z(e.subHeaders, (l) => (o(), s("div", {
150
+ e.subHeaders && e.subHeaders.length > 0 ? (a(), s("div", K, [
151
+ (a(!0), s(w, null, z(e.subHeaders, (l) => (a(), s("div", {
152
152
  key: l,
153
153
  class: "card-sub-header-item"
154
154
  }, [
@@ -173,7 +173,7 @@ funcName: ${e}`);
173
173
  }, 16, ["class"]));
174
174
  };
175
175
  }
176
- }), X = /* @__PURE__ */ A(O, [["__scopeId", "data-v-4b09598f"]]);
176
+ }), X = /* @__PURE__ */ A(O, [["__scopeId", "data-v-ad5b3ad6"]]);
177
177
  export {
178
178
  X as default
179
179
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, mergeModels as g, useModel as h, inject as r, resolveComponent as C, openBlock as v, createBlock as y, mergeProps as M, unref as d } from "vue";
2
2
  import "element-plus";
3
- import { u as b } from "./useSelect-CGYFUsCu.js";
3
+ import { u as b } from "./useSelect-CxSvB0SH.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 F, mergeModels as D, useModel as I, watch as O, resolveComponent as d, resolveDirective as P, unref as a, openBlock as l, createElementBlock as i, toDisplayString as S, withDirectives as $, createBlock as s, mergeProps as j, withCtx as h, Fragment as f, renderList as v, createCommentVNode as g } from "vue";
2
2
  import "element-plus";
3
- import { u as E, c as L } from "./index-DLZItbcM.js";
4
- import { u as N } from "./useSelect-CGYFUsCu.js";
3
+ import { u as E, c as L } from "./index-B-_zXaVx.js";
4
+ import { u as N } from "./useSelect-CxSvB0SH.js";
5
5
  const R = { key: 0 }, H = /* @__PURE__ */ F({
6
6
  __name: "Checkbox",
7
7
  props: /* @__PURE__ */ D({
@@ -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 { b as y } from "./index-DLZItbcM.js";
2
+ import { b as y } from "./index-B-_zXaVx.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 b = /* @__PURE__ */ u({
@@ -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 x, _ as S } from "./index-DLZItbcM.js";
5
+ import { u as x, _ as S } from "./index-B-_zXaVx.js";
6
6
  import "element-plus";
7
7
  function b() {
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(",");
@@ -111,7 +111,7 @@ const P = { class: "vfc-verify-code" }, k = /* @__PURE__ */ g({
111
111
  ]);
112
112
  };
113
113
  }
114
- }), T = /* @__PURE__ */ S(k, [["__scopeId", "data-v-f5206e68"]]);
114
+ }), T = /* @__PURE__ */ S(k, [["__scopeId", "data-v-eda48825"]]);
115
115
  export {
116
116
  T as default
117
117
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as $, mergeModels as z, useModel as E, ref as I, resolveComponent as B, openBlock as o, createElementBlock as t, Fragment as d, createVNode as c, normalizeClass as L, createSlots as N, withCtx as g, createTextVNode as h, createElementVNode as s, createBlock as f, toDisplayString as u, createCommentVNode as m, unref as O, renderList as T } from "vue";
2
2
  import { genFileId as R, ElMessage as j, ElMessageBox as P } from "element-plus";
3
- import { c as q, I as p, a as A, _ as G } from "./index-DLZItbcM.js";
3
+ import { c as q, I as p, a as A, _ as G } from "./index-B-_zXaVx.js";
4
4
  const H = {
5
5
  key: 0,
6
6
  class: "smallDragStyle-text"
@@ -184,7 +184,7 @@ const H = {
184
184
  ], 64);
185
185
  };
186
186
  }
187
- }), oe = /* @__PURE__ */ G(Z, [["__scopeId", "data-v-fc2c20e2"]]);
187
+ }), oe = /* @__PURE__ */ G(Z, [["__scopeId", "data-v-d54b3b70"]]);
188
188
  export {
189
189
  oe as default
190
190
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, mergeModels as i, useModel as d, 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-DLZItbcM.js";
2
+ import { u as _ } from "./index-B-_zXaVx.js";
3
3
  import "element-plus";
4
4
  const g = { key: 0 }, M = /* @__PURE__ */ u({
5
5
  __name: "Component",
@@ -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-DLZItbcM.js";
2
+ import { u as V } from "./index-B-_zXaVx.js";
3
3
  import "element-plus";
4
4
  const B = /* @__PURE__ */ d({
5
5
  __name: "Component",
@@ -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 { _ as H, u as K, d as Q } from "./index-DLZItbcM.js";
2
+ import { _ as H, u as K, d as Q } from "./index-B-_zXaVx.js";
3
3
  import "element-plus";
4
4
  const Z = $({
5
5
  props: {
@@ -172,7 +172,7 @@ function j(a, n, c, d, t, g) {
172
172
  onTouchend: n[5] || (n[5] = (...o) => a.touchEnd && a.touchEnd(...o))
173
173
  }, null, 544);
174
174
  }
175
- const _ = /* @__PURE__ */ H(Z, [["render", j], ["__scopeId", "data-v-0e272b28"]]), ee = { key: 0 }, te = { class: "vfc-esign-preview" }, le = ["src"], ae = {
175
+ const _ = /* @__PURE__ */ H(Z, [["render", j], ["__scopeId", "data-v-5f3bfcf7"]]), ee = { key: 0 }, te = { class: "vfc-esign-preview" }, le = ["src"], ae = {
176
176
  key: 1,
177
177
  class: "vfc-esign"
178
178
  }, ie = /* @__PURE__ */ $({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as U, inject as $, ref as k, watch as A, resolveComponent as f, openBlock as o, createElementBlock as s, normalizeClass as m, normalizeStyle as O, createElementVNode as c, createBlock as p, createCommentVNode as u, toDisplayString as M, withCtx as v, Fragment as B, renderList as R, createTextVNode as q, createVNode as r, withKeys as G, unref as I, withDirectives as H, vShow as J } from "vue";
2
- import { u as Q, I as h, b as V, B as W, f as X, _ as Y } from "./index-DLZItbcM.js";
2
+ import { u as Q, I as h, b as V, B as W, f as X, _ as Y } from "./index-B-_zXaVx.js";
3
3
  import "element-plus";
4
4
  const Z = ["id"], x = { class: "left-part" }, ee = { class: "title" }, le = { class: "right-part" }, ae = { key: 0 }, oe = {
5
5
  key: 1,
@@ -208,7 +208,7 @@ funcName: ${e}`);
208
208
  ], 14, Z);
209
209
  };
210
210
  }
211
- }), de = /* @__PURE__ */ Y(te, [["__scopeId", "data-v-2844549a"]]);
211
+ }), de = /* @__PURE__ */ Y(te, [["__scopeId", "data-v-48b3bde7"]]);
212
212
  export {
213
213
  de as default
214
214
  };
@@ -0,0 +1,26 @@
1
+ import { defineComponent as n, mergeModels as s, useModel as p, openBlock as t, createElementBlock as r, createBlock as u, resolveDynamicComponent as d, mergeProps as c } from "vue";
2
+ import { _ as i } from "./index-B-_zXaVx.js";
3
+ const f = {
4
+ key: 0,
5
+ class: "empty"
6
+ }, _ = /* @__PURE__ */ n({
7
+ __name: "Custom",
8
+ props: /* @__PURE__ */ s({
9
+ componentName: {}
10
+ }, {
11
+ modelValue: {},
12
+ modelModifiers: {}
13
+ }),
14
+ emits: ["update:modelValue"],
15
+ setup(a) {
16
+ const o = p(a, "modelValue");
17
+ return (e, m) => e.componentName ? (t(), u(d(e.componentName), c({
18
+ key: 1,
19
+ modelValue: o.value,
20
+ "onUpdate:modelValue": m[0] || (m[0] = (l) => o.value = l)
21
+ }, e.$attrs), null, 16, ["modelValue"])) : (t(), r("span", f, "请输入全局注册得组件名"));
22
+ }
23
+ }), v = /* @__PURE__ */ i(_, [["__scopeId", "data-v-a013b8cf"]]);
24
+ export {
25
+ v as default
26
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, mergeModels as M, useModel as k, useAttrs as D, computed as l, inject as u, resolveComponent as I, openBlock as i, createElementBlock as E, toDisplayString as _, createBlock as S, mergeProps as V } from "vue";
2
2
  import { dayjs as b } from "element-plus";
3
- import { u as B } from "./index-DLZItbcM.js";
3
+ import { u as B } from "./index-B-_zXaVx.js";
4
4
  const F = { key: 0 }, j = /* @__PURE__ */ y({
5
5
  __name: "DatePicker",
6
6
  props: /* @__PURE__ */ M({
@@ -0,0 +1,332 @@
1
+ import { defineComponent as J, reactive as F, ref as T, onBeforeMount as le, onMounted as ie, nextTick as h, onBeforeUnmount as re, watch as c, provide as j, toRefs as q, openBlock as R, createElementBlock as A, normalizeStyle as ne, renderSlot as O, Fragment as se, renderList as ue, createBlock as K, mergeProps as de, withCtx as Q, withDirectives as ce, createVNode as Z, vShow as me, mergeModels as ge, useModel as pe, onUnmounted as ye, unref as X, readonly as Y } from "vue";
2
+ import { w as ve, m as fe, n as he, o as k, T as we, v as xe, p as C, A as be, q as G, x as Be, L as ke, y as Ce, r as De, Y as Le, s as Me, t as P, V as Se, c as ze, j as Re, b as Ie, _ as Ne } from "./index-B-_zXaVx.js";
3
+ import "element-plus";
4
+ const $e = /* @__PURE__ */ J({
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(D, { expose: I, emit: w }) {
37
+ const a = D, d = w, t = F({
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
+ }), L = /* @__PURE__ */ new Map(), o = T(a.layout), m = T(), { observeResize: M, unobserveResize: N } = ve(), i = Se();
56
+ i.on("resizeEvent", s), i.on("dragEvent", u), le(() => {
57
+ d("layout-before-mount", o.value);
58
+ }), ie(() => {
59
+ d("layout-mounted", o.value), h(() => {
60
+ fe(o.value), t.originalLayout = o.value, h(() => {
61
+ W(), m.value && M(m.value, he(E, 16)), k(o.value, a.verticalCompact), d("layout-updated", o.value), x(), E();
62
+ });
63
+ });
64
+ }), re(() => {
65
+ i.clearAll(), m.value && N(m.value);
66
+ });
67
+ function s(e, n, r, v, g, p) {
68
+ V(e, n, r, v, g, p);
69
+ }
70
+ function u(e, n, r, v, g, p) {
71
+ U(e, n, r, v, g, p);
72
+ }
73
+ c(
74
+ () => t.width,
75
+ (e, n) => {
76
+ h(() => {
77
+ i.emit("updateWidth", e), n === -1 && h(() => {
78
+ d("layout-ready", o.value);
79
+ }), x();
80
+ });
81
+ }
82
+ ), c(
83
+ () => [a.layout, a.layout.length],
84
+ () => {
85
+ o.value = a.layout, H();
86
+ }
87
+ ), c(
88
+ () => a.colNum,
89
+ (e) => {
90
+ i.emit("setColNum", e);
91
+ }
92
+ ), c(
93
+ () => a.rowHeight,
94
+ (e) => {
95
+ i.emit("setRowHeight", e);
96
+ }
97
+ ), c(
98
+ () => a.isDraggable,
99
+ (e) => {
100
+ i.emit("setDraggable", e);
101
+ }
102
+ ), c(
103
+ () => a.isResizable,
104
+ (e) => {
105
+ i.emit("setResizable", e);
106
+ }
107
+ ), c(
108
+ () => a.isBounded,
109
+ (e) => {
110
+ i.emit("setBounded", e);
111
+ }
112
+ ), c(
113
+ () => a.transformScale,
114
+ (e) => {
115
+ i.emit("setTransformScale", e);
116
+ }
117
+ ), c(
118
+ () => a.responsive,
119
+ (e) => {
120
+ e || (d("update:layout", t.originalLayout), i.emit("setColNum", a.colNum)), E();
121
+ }
122
+ ), c(
123
+ () => a.maxRows,
124
+ (e) => {
125
+ i.emit("setMaxRows", e);
126
+ }
127
+ ), c([() => a.margin, () => a.margin[1]], x), j(
128
+ we,
129
+ F({
130
+ ...q(a),
131
+ ...q(t),
132
+ increaseItem: y,
133
+ decreaseItem: $
134
+ })
135
+ ), j(xe, i), I({ state: t, getItem: ee, resizeEvent: V, dragEvent: U, layoutUpdate: H });
136
+ function y(e) {
137
+ L.set(e.i, e);
138
+ }
139
+ function $(e) {
140
+ L.delete(e.i);
141
+ }
142
+ function ee(e) {
143
+ return L.get(e);
144
+ }
145
+ function H() {
146
+ if (!C(o.value) && !C(t.originalLayout)) {
147
+ if (o.value.length !== t.originalLayout.length) {
148
+ const e = oe(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((r) => r.i));
154
+ t.originalLayout = t.originalLayout.filter((r) => !n.has(r.i));
155
+ }
156
+ t.lastLayoutLength = o.value.length, W();
157
+ }
158
+ k(o.value, a.verticalCompact), i.emit("updateWidth", t.width), x(), d("layout-updated", o.value);
159
+ }
160
+ }
161
+ function x() {
162
+ t.mergedStyle = {
163
+ height: te()
164
+ };
165
+ }
166
+ function E() {
167
+ m.value && (t.width = m.value.offsetWidth), i.emit("resizeEvent");
168
+ }
169
+ function te() {
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 _;
175
+ function U(e, n, r, v, g, p) {
176
+ let l = G(o.value, n);
177
+ C(l) && (l = { h: 0, w: 0, x: 0, y: 0, i: "" }), e === "dragstart" && !a.verticalCompact && (_ = o.value.reduce(
178
+ (B, { i: S, x: f, y: b }) => ({
179
+ ...B,
180
+ [S]: { x: f, y: b }
181
+ }),
182
+ {}
183
+ )), e === "dragmove" || e === "dragstart" ? (t.placeholder.i = n, t.placeholder.x = l.x, t.placeholder.y = l.y, t.placeholder.w = p, t.placeholder.h = g, h(() => {
184
+ t.isDragging = !0;
185
+ }), i.emit("updateWidth", t.width)) : h(() => {
186
+ t.isDragging = !1;
187
+ }), o.value = Be(o.value, l, r, v, !0, a.preventCollision), a.restoreOnDrag ? (l.static = !0, k(o.value, a.verticalCompact, _), l.static = !1) : k(o.value, a.verticalCompact), i.emit("compact"), x(), e === "dragend" && (_ = void 0, d("layout-updated", o.value));
188
+ }
189
+ function V(e, n, r, v, g, p) {
190
+ let l = G(o.value, n);
191
+ C(l) && (l = { h: 0, w: 0, x: 0, y: 0, i: "" });
192
+ let B;
193
+ if (a.preventCollision) {
194
+ const S = ke(o.value, { ...l, w: p, h: g }).filter(
195
+ (f) => f.i !== l.i
196
+ );
197
+ if (B = S.length > 0, B) {
198
+ let f = 1 / 0, b = 1 / 0;
199
+ S.forEach((z) => {
200
+ z.x > l.x && (f = Math.min(f, z.x)), z.y > l.y && (b = Math.min(b, z.y));
201
+ }), Number.isFinite(f) && (l.w = f - l.x), Number.isFinite(b) && (l.h = b - l.y);
202
+ }
203
+ }
204
+ B || (l.w = p, l.h = g), e === "resizestart" || e === "resizemove" ? (t.placeholder.i = n, t.placeholder.x = r, t.placeholder.y = v, t.placeholder.w = l.w, t.placeholder.h = l.h, h(() => {
205
+ t.isDragging = !0;
206
+ }), i.emit("updateWidth", t.width)) : e && h(() => {
207
+ t.isDragging = !1;
208
+ }), a.responsive && ae(), k(o.value, a.verticalCompact), i.emit("compact"), x(), e === "resizeend" && d("layout-updated", o.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
+ !C(t.lastBreakpoint) && !t.layouts[t.lastBreakpoint] && (t.layouts[t.lastBreakpoint] = Le(o.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 && d("breakpoint-changed", e, r), o.value = r, d("update:layout", r), t.lastBreakpoint = e, i.emit("setColNum", n);
226
+ }
227
+ function W() {
228
+ t.layouts = Object.assign({}, a.responsiveLayouts);
229
+ }
230
+ function oe(e, n) {
231
+ const r = new Set(n.map((l) => l.i)), v = new Set(e.map((l) => l.i)), g = e.filter((l) => !r.has(l.i)), p = n.filter((l) => !v.has(l.i));
232
+ return g.concat(p);
233
+ }
234
+ return (e, n) => (R(), A("div", {
235
+ ref_key: "wrapper",
236
+ ref: m,
237
+ class: "vgl-layout",
238
+ style: ne(t.mergedStyle)
239
+ }, [
240
+ e.$slots.default ? O(e.$slots, "default", { key: 0 }) : (R(!0), A(se, { key: 1 }, ue(o.value, (r) => (R(), K(P, de({
241
+ key: r.i,
242
+ ref_for: !0
243
+ }, r), {
244
+ default: Q(() => [
245
+ O(e.$slots, "item", { item: r })
246
+ ]),
247
+ _: 2
248
+ }, 1040))), 128)),
249
+ ce(Z(P, {
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__ */ J({
262
+ __name: "DragList",
263
+ props: /* @__PURE__ */ ge({
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(D, { expose: I }) {
277
+ const w = D, a = pe(D, "gridlayout"), m = {
278
+ getLayout: () => Y(a),
279
+ setItemX: (s, u) => {
280
+ a.value[s].x = u;
281
+ },
282
+ setItemY: (s, u) => {
283
+ a.value[s].y = u;
284
+ },
285
+ setItemVisible: (s, u) => {
286
+ const y = a.value.find(($) => $.i === s);
287
+ y && (y.h = u ? y.contentHeight || 1 : 0);
288
+ },
289
+ type: "draglist"
290
+ }, { ruleModule: M, pageMethodMap: N } = ze(), i = () => {
291
+ if (w.onMoved && M)
292
+ try {
293
+ M[w.onMoved](N, Y(a.value));
294
+ } catch (s) {
295
+ console.error(s + `
296
+ onMoved: ${w.onMoved}`);
297
+ }
298
+ };
299
+ if (I(m), w.name) {
300
+ const s = Re(w.name, m);
301
+ ye(() => {
302
+ s();
303
+ });
304
+ }
305
+ return (s, u) => (R(), K(X($e), {
306
+ layout: a.value,
307
+ "onUpdate:layout": u[1] || (u[1] = (y) => a.value = y),
308
+ "col-num": s.colNum || 12,
309
+ "row-height": s.rowHeight || 30,
310
+ "max-rows": s.maxRows,
311
+ margin: [8, 8],
312
+ "is-draggable": s.isDraggable,
313
+ "is-bounded": "",
314
+ "is-resizable": !1,
315
+ "vertical-compact": "",
316
+ "use-css-transforms": ""
317
+ }, {
318
+ default: Q(() => [
319
+ Z(X(Ie), {
320
+ list: s.children,
321
+ gridData: a.value,
322
+ "onUpdate:gridData": u[0] || (u[0] = (y) => a.value = y),
323
+ onGridItemMoved: i
324
+ }, null, 8, ["list", "gridData"])
325
+ ]),
326
+ _: 1
327
+ }, 8, ["layout", "col-num", "row-height", "max-rows", "is-draggable"]));
328
+ }
329
+ }), Ve = /* @__PURE__ */ Ne(Ee, [["__scopeId", "data-v-f58dab66"]]);
330
+ export {
331
+ Ve as default
332
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as U, ref as o, readonly as j, onUnmounted as D, watch as E, onMounted as L, resolveComponent as p, openBlock as m, createElementBlock as T, createElementVNode as u, createVNode as s, withKeys as N, withModifiers as $, withCtx as h, toDisplayString as q, normalizeStyle as A, Fragment as G, renderList as H, createBlock as J, normalizeClass as O, withDirectives as P, unref as Q, vShow as X, nextTick as Y } from "vue";
2
- import { c as Z, j as ee, I as x, b as le, _ as ae } from "./index-DLZItbcM.js";
2
+ import { c as Z, j as ee, I as x, b as le, _ as ae } from "./index-B-_zXaVx.js";
3
3
  import "element-plus";
4
4
  const te = { class: "filter-search-header" }, ne = /* @__PURE__ */ U({
5
5
  __name: "FilterSearch",
@@ -143,7 +143,7 @@ const te = { class: "filter-search-header" }, ne = /* @__PURE__ */ U({
143
143
  ]);
144
144
  };
145
145
  }
146
- }), ce = /* @__PURE__ */ ae(ne, [["__scopeId", "data-v-dd8b9ec3"]]);
146
+ }), ce = /* @__PURE__ */ ae(ne, [["__scopeId", "data-v-b0751bd0"]]);
147
147
  export {
148
148
  ce as default
149
149
  };