asiaint-lowcode 3.0.39 → 3.0.41

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 (32) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +124 -124
  3. package/dist/index.d.ts +4 -0
  4. package/dist/lazy/{Card-BjVvOIwc.js → Card-I3_mRl_L.js} +1 -1
  5. package/dist/lazy/{Cascader-B4GiUGpM.js → Cascader-DCu_3dqT.js} +1 -1
  6. package/dist/lazy/{Checkbox-ByjUnBvb.js → Checkbox-hTVE-q4U.js} +2 -2
  7. package/dist/lazy/{Collapse-CJ9kiaFn.js → Collapse-7EKAfUdD.js} +1 -1
  8. package/dist/lazy/{Component-Bx7gIDMt.js → Component-BZSft2cj.js} +1 -1
  9. package/dist/lazy/{Component-CWYNj8qZ.js → Component-CFEiUVaM.js} +1 -1
  10. package/dist/lazy/{Component-DiF2WhCt.js → Component-CaoXTI0k.js} +1 -1
  11. package/dist/lazy/{Component-DaRYNyoy.js → Component-CiKalEkz.js} +1 -1
  12. package/dist/lazy/{Component-D9rT2fGD.js → Component-CpgSb8Bl.js} +1 -1
  13. package/dist/lazy/{Component-B5IlQYHk.js → Component-DiIc-khQ.js} +1 -1
  14. package/dist/lazy/{CurdCard-CntkycKX.js → CurdCard-C7isfq-L.js} +1 -1
  15. package/dist/lazy/{Custom-CIbEi0kP.js → Custom-D9xBxBgO.js} +1 -1
  16. package/dist/lazy/{FormList-DHvP3Srn.js → FormList-Ci5zeLAD.js} +1 -1
  17. package/dist/lazy/{Grid-CObIt0vI.js → Grid-vAcjMqc5.js} +1 -1
  18. package/dist/lazy/{Inline-CmR66tBe.js → Inline-VYMkxeIm.js} +1 -1
  19. package/dist/lazy/{JsonEdit-ZpfNkW5m.js → JsonEdit-BdwbkNah.js} +1 -1
  20. package/dist/lazy/{ObjGroup-B05qQ8zT.js → ObjGroup-DaT1UPTh.js} +1 -1
  21. package/dist/lazy/{OfferDetails-D7kJRzGG.js → OfferDetails-DxzCYafn.js} +16 -15
  22. package/dist/lazy/{Radio-DplKsR2q.js → Radio-Cadx0OBC.js} +2 -2
  23. package/dist/lazy/{SearchSelect-CcU9DsZK.js → SearchSelect-Y8-MDnN_.js} +2 -2
  24. package/dist/lazy/{Select-CwLzVjJR.js → Select-BE4w7uTt.js} +2 -2
  25. package/dist/lazy/Table-rPy4pI2Q.js +327 -0
  26. package/dist/lazy/{Tabs-xXJuCftg.js → Tabs-DpuGKdq0.js} +1 -1
  27. package/dist/lazy/{Wrapper-D2HFENsu.js → Wrapper-CKo58SnY.js} +1 -1
  28. package/dist/lazy/{index-BwNeJEvk.js → index-B-56lFE2.js} +4766 -4755
  29. package/dist/lazy/{useSelect-pQfEWEt9.js → useSelect-DRaqsmNm.js} +1 -1
  30. package/dist/style.css +2 -2
  31. package/package.json +1 -1
  32. package/dist/lazy/Table-DTHwpYU5.js +0 -302
package/dist/index.d.ts CHANGED
@@ -640,6 +640,7 @@ declare interface TableColumn {
640
640
  hidden?: boolean;
641
641
  type?: string;
642
642
  onClick?: string;
643
+ encrypted?: boolean;
643
644
  }
644
645
 
645
646
  export declare const TableRender: DefineComponent<ExtractPropTypes< {
@@ -647,6 +648,7 @@ schema: {
647
648
  required: true;
648
649
  type: PropType<TableSchema & {
649
650
  cardless?: boolean;
651
+ shadowless?: boolean;
650
652
  }>;
651
653
  };
652
654
  modelValue: PropType<Array<any>>;
@@ -691,6 +693,7 @@ setTopBtnHidden: (btnKey: string, hidden: boolean) => void;
691
693
  setColVisible: (colKey: string, visible: boolean) => void;
692
694
  setColumn: <K extends keyof TableColumn>(key: string, keyName: K, keyValue: TableColumn[K]) => void;
693
695
  setRowsBtnHidden: (btnKey: string, hidden: boolean) => void;
696
+ setShadowless: (shadowless: boolean) => void;
694
697
  rootRef: Readonly<unknown>;
695
698
  type: string;
696
699
  design: boolean;
@@ -701,6 +704,7 @@ schema: {
701
704
  required: true;
702
705
  type: PropType<TableSchema & {
703
706
  cardless?: boolean;
707
+ shadowless?: boolean;
704
708
  }>;
705
709
  };
706
710
  modelValue: PropType<Array<any>>;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as g, ref as M, inject as h, resolveComponent as d, openBlock as o, createBlock as i, mergeProps as $, withCtx as c, createElementVNode as s, createElementBlock as n, createVNode as t, unref as p, normalizeClass as I, createCommentVNode as E, toDisplayString as v, Fragment as u, renderList as C, withDirectives as V, vShow as D } from "vue";
2
- import { _ as F, I as k, B as N, a as S, b as j } from "./index-BwNeJEvk.js";
2
+ import { _ as F, I as k, B as N, a as S, b as j } from "./index-B-56lFE2.js";
3
3
  import "element-plus";
4
4
  const z = { class: "card-header" }, H = { class: "card-btns" }, L = { class: "card-sub-header" }, P = /* @__PURE__ */ g({
5
5
  __name: "Card",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, mergeModels as g, useModel as v, inject as d, resolveComponent as y, openBlock as M, createBlock as C, mergeProps as h, unref as r } from "vue";
2
2
  import "element-plus";
3
- import { u as b } from "./useSelect-pQfEWEt9.js";
3
+ import { u as b } from "./useSelect-DRaqsmNm.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 T, mergeModels as w, useModel as D, watch as F, resolveComponent as u, resolveDirective as M, unref as a, openBlock as l, createElementBlock as n, toDisplayString as I, Fragment as d, createCommentVNode as i, withDirectives as P, createBlock as s, mergeProps as S, withCtx as f, renderList as h } from "vue";
2
2
  import "element-plus";
3
- import { u as j } from "./index-BwNeJEvk.js";
4
- import { u as E } from "./useSelect-pQfEWEt9.js";
3
+ import { u as j } from "./index-B-56lFE2.js";
4
+ import { u as E } from "./useSelect-DRaqsmNm.js";
5
5
  const L = { key: 0 }, N = {
6
6
  key: 0,
7
7
  style: { "font-size": "12px" }
@@ -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-BwNeJEvk.js";
2
+ import { a as y } from "./index-B-56lFE2.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 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-BwNeJEvk.js";
2
+ import { u as v } from "./index-B-56lFE2.js";
3
3
  import "element-plus";
4
4
  const k = { key: 0 }, K = /* @__PURE__ */ s({
5
5
  __name: "Component",
@@ -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-BwNeJEvk.js";
5
+ import { u as b, b as x } from "./index-B-56lFE2.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,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-BwNeJEvk.js";
3
+ import { _ as f } from "./index-B-56lFE2.js";
4
4
  const $ = {
5
5
  key: 0,
6
6
  style: { "min-width": "300px" }
@@ -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-BwNeJEvk.js";
2
+ import { u as V } from "./index-B-56lFE2.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 $, inject as m, ref as _, watch as b, resolveComponent as C, openBlock as c, createBlock as y, mergeProps as w, withCtx as v, createElementVNode as l, toDisplayString as N, createElementBlock as f, createCommentVNode as h, Fragment as K, renderList as B, unref as E, withModifiers as I, createTextVNode as P } from "vue";
2
- import { f as V, I as F, b as j } from "./index-BwNeJEvk.js";
2
+ import { f as V, I as F, b as j } from "./index-B-56lFE2.js";
3
3
  import "element-plus";
4
4
  const D = { class: "custom-tree-node" }, R = { class: "tree-node-text" }, S = { class: "tree-node-label" }, T = {
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-BwNeJEvk.js";
2
+ import { b as H, u as K, c as Q } from "./index-B-56lFE2.js";
3
3
  import "element-plus";
4
4
  const Z = $({
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as F, inject as I, ref as w, resolveComponent as _, openBlock as n, createElementBlock as t, createElementVNode as a, normalizeClass as h, createBlock as p, createCommentVNode as v, toDisplayString as N, Fragment as g, renderList as V, withCtx as B, createVNode as s, unref as f, withDirectives as z, vShow as D } from "vue";
2
- import { u as j, I as i, B as L, a as T, h as R, b as q } from "./index-BwNeJEvk.js";
2
+ import { u as j, I as i, B as L, a as T, h as R, b as q } from "./index-B-56lFE2.js";
3
3
  import "element-plus";
4
4
  const A = { class: "crm-curd-card" }, G = { class: "left-part" }, H = { class: "title" }, J = { class: "right-part" }, K = {
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 u, resolveDynamicComponent as d, mergeProps as c } from "vue";
2
- import { b as i } from "./index-BwNeJEvk.js";
2
+ import { b as i } from "./index-B-56lFE2.js";
3
3
  const f = {
4
4
  key: 0,
5
5
  class: "empty"
@@ -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-BwNeJEvk.js";
2
+ import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-B-56lFE2.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 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-BwNeJEvk.js";
2
+ import { a as m } from "./index-B-56lFE2.js";
3
3
  import "element-plus";
4
4
  const f = /* @__PURE__ */ o({
5
5
  __name: "Grid",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as a, computed as l, openBlock as p, createBlock as r, unref as i, normalizeStyle as s } from "vue";
2
- import { a as c, b as f } from "./index-BwNeJEvk.js";
2
+ import { a as c, b as f } from "./index-B-56lFE2.js";
3
3
  import "element-plus";
4
4
  const m = /* @__PURE__ */ a({
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-BwNeJEvk.js";
2
+ import { b as xt, g as Nt } from "./index-B-56lFE2.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, 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-BwNeJEvk.js";
2
+ import { u as j, d as h, e as k } from "./index-B-56lFE2.js";
3
3
  import "element-plus";
4
4
  const v = { class: "vfc-ObjGroup" }, B = {
5
5
  key: 1,
@@ -1,9 +1,9 @@
1
- import { defineComponent as E, resolveComponent as I, openBlock as o, createBlock as N, withCtx as B, createVNode as m, createElementVNode as i, createElementBlock as s, Fragment as h, renderList as _, toDisplayString as b, createCommentVNode as D, ref as w, inject as P, watchEffect as S, onMounted as A, normalizeStyle as M } from "vue";
2
- import { j as O, $, b as z } from "./index-BwNeJEvk.js";
3
- const F = { class: "content" }, j = { class: "product-list" }, K = { class: "attribute-list" }, L = {
1
+ import { defineComponent as E, resolveComponent as I, openBlock as o, createBlock as N, withCtx as B, createVNode as m, createElementVNode as i, createElementBlock as s, Fragment as h, renderList as _, toDisplayString as b, createCommentVNode as T, ref as w, inject as P, watchEffect as S, onMounted as A, normalizeStyle as M } from "vue";
2
+ import { j as O, $, b as z } from "./index-B-56lFE2.js";
3
+ const F = { class: "content" }, j = { class: "product-list" }, x = { class: "attribute-list" }, K = {
4
4
  key: 0,
5
5
  class: "attribute-list-item"
6
- }, R = { class: "product-title attribute-title" }, V = { class: "attribute-item-list" }, x = { class: "attribute-label" }, U = { class: "attribute-value" }, q = /* @__PURE__ */ E({
6
+ }, L = { class: "product-title attribute-title" }, R = { class: "attribute-item-list" }, V = { class: "attribute-label" }, U = { class: "attribute-value" }, q = /* @__PURE__ */ E({
7
7
  __name: "OfferDetailItem",
8
8
  props: {
9
9
  data: {},
@@ -33,22 +33,22 @@ const F = { class: "content" }, j = { class: "product-list" }, K = { class: "att
33
33
  key: l.label
34
34
  }, b(l.label), 1))), 128))
35
35
  ]),
36
- i("div", K, [
36
+ i("div", x, [
37
37
  (o(!0), s(h, null, _(n.data.product, (l) => (o(), s(h, {
38
38
  key: l.label
39
39
  }, [
40
- l.children.length > 0 ? (o(), s("div", L, [
41
- i("div", R, b(l.label), 1),
42
- i("div", V, [
40
+ l.children.length > 0 ? (o(), s("div", K, [
41
+ i("div", L, b(l.label), 1),
42
+ i("div", R, [
43
43
  (o(!0), s(h, null, _(l.children, (c) => (o(), s("div", {
44
44
  class: "attribute-item",
45
45
  key: c.label
46
46
  }, [
47
- i("div", x, b(c.label), 1),
47
+ i("div", V, b(c.label), 1),
48
48
  i("div", U, b(c.value || "--"), 1)
49
49
  ]))), 128))
50
50
  ])
51
- ])) : D("", !0)
51
+ ])) : T("", !0)
52
52
  ], 64))), 128))
53
53
  ])
54
54
  ])
@@ -93,11 +93,12 @@ const F = { class: "content" }, j = { class: "product-list" }, K = { class: "att
93
93
  gridColumns: { default: 3 },
94
94
  gap: { default: 16 },
95
95
  data: {},
96
- columns: {}
96
+ columns: {},
97
+ getColText: {}
97
98
  },
98
99
  setup(v) {
99
- var k, C;
100
- const n = v, d = w(), f = w([]), l = (k = n.columns.find((e) => e.position === "title")) == null ? void 0 : k.key, c = (C = n.columns.find((e) => e.position === "subTitle")) == null ? void 0 : C.key, u = n.columns.find((e) => e.position === "footer"), T = (e) => {
100
+ var C, k;
101
+ const n = v, d = w(), f = w([]), l = (C = n.columns.find((e) => e.position === "title")) == null ? void 0 : C.key, c = (k = n.columns.find((e) => e.position === "subTitle")) == null ? void 0 : k.key, u = n.columns.find((e) => e.position === "footer"), D = (e) => {
101
102
  const t = [];
102
103
  return e.children && e.children.length > 0 && e.children.forEach((a) => {
103
104
  const y = {
@@ -120,7 +121,7 @@ const F = { class: "content" }, j = { class: "product-list" }, K = { class: "att
120
121
  return l && (t.title = r ? r(l, e) : e[l], t.titleColor = "#18AAF8"), c && (t.subTitle = r ? r(c, e) : e[c]), u && (t.footer = {
121
122
  icon: u.footerIcon || "icon-tishi",
122
123
  text: `${u.label}: ${r ? r(u.key, e) : e[u.key]}`
123
- }), e.children && (t.product = T(e)), n.columns.forEach((a) => {
124
+ }), e.children && (t.product = D(e)), n.columns.forEach((a) => {
124
125
  a.position === "content" && t.content.push({
125
126
  label: a.label,
126
127
  value: r ? r(a.key, e) : e[a.key]
@@ -159,7 +160,7 @@ const F = { class: "content" }, j = { class: "product-list" }, K = { class: "att
159
160
  style: { width: 56, height: 56 }
160
161
  }),
161
162
  t[0] || (t[0] = i("div", null, "No data available,please check", -1))
162
- ])) : D("", !0)
163
+ ])) : T("", !0)
163
164
  ], 4);
164
165
  };
165
166
  }
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as z, mergeModels as S, useModel as T, inject as K, resolveComponent as p, resolveDirective as w, openBlock as o, createElementBlock as d, toDisplayString as F, unref as l, Fragment as m, createCommentVNode as N, withDirectives as I, createBlock as y, mergeProps as k, withCtx as C, createVNode as P, renderList as M } from "vue";
2
- import { u as $ } from "./index-BwNeJEvk.js";
3
- import { u as j } from "./useSelect-pQfEWEt9.js";
2
+ import { u as $ } from "./index-B-56lFE2.js";
3
+ import { u as j } from "./useSelect-DRaqsmNm.js";
4
4
  const E = { key: 0 }, L = {
5
5
  key: 0,
6
6
  style: { "font-size": "12px" }
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as w, mergeModels as A, useModel as F, inject as S, resolveComponent as f, resolveDirective as I, openBlock as o, createElementBlock as i, toDisplayString as b, unref as u, withDirectives as N, createBlock as k, mergeProps as j, withCtx as y, Fragment as P, renderList as $, createTextVNode as E, createVNode as C } from "vue";
2
- import { u as L, _ as O, b as T } from "./index-BwNeJEvk.js";
3
- import { u as U } from "./useSelect-pQfEWEt9.js";
2
+ import { u as L, _ as O, b as T } from "./index-B-56lFE2.js";
3
+ import { u as U } from "./useSelect-DRaqsmNm.js";
4
4
  const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
5
5
  key: 1,
6
6
  class: "search-select-wrapper"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as _, mergeModels as k, useModel as B, inject as f, computed as D, resolveComponent as y, resolveDirective as S, openBlock as r, createElementBlock as i, toDisplayString as v, createBlock as b, mergeProps as A, withCtx as g, withDirectives as F, Fragment as j, renderList as w, unref as h, createTextVNode as I } from "vue";
2
- import { u as N } from "./index-BwNeJEvk.js";
3
- import { u as P } from "./useSelect-pQfEWEt9.js";
2
+ import { u as N } from "./index-B-56lFE2.js";
3
+ import { u as P } from "./useSelect-DRaqsmNm.js";
4
4
  const E = { key: 0 }, L = { style: { "min-height": "32px" } }, $ = /* @__PURE__ */ _({
5
5
  __name: "Select",
6
6
  props: /* @__PURE__ */ k({
@@ -0,0 +1,327 @@
1
+ import { defineComponent as ke, computed as V, inject as w, ref as v, useTemplateRef as we, readonly as be, toRefs as Se, onMounted as ze, nextTick as Re, onActivated as Be, onUnmounted as Pe, resolveComponent as R, openBlock as u, createElementBlock as g, normalizeClass as U, withDirectives as j, createElementVNode as f, createVNode as b, unref as B, withCtx as h, createBlock as S, createCommentVNode as m, Fragment as P, renderList as G, toDisplayString as _, withModifiers as _e, vShow as H, mergeProps as Ne } from "vue";
2
+ import { $ as Me, i as Te, _ as De, f as Fe, I as $e, C as Ae, b as Ee } from "./index-B-56lFE2.js";
3
+ import { ElTable as Ve } from "element-plus";
4
+ const Ue = { class: "empty-content" }, je = ["title"], Ge = ["title", "onClick"], He = ["title"], Ke = { class: "row-btn-wrapper" }, Le = /* @__PURE__ */ ke({
5
+ __name: "Table",
6
+ props: {
7
+ title: {},
8
+ key: {},
9
+ rulePath: {},
10
+ rowKey: {},
11
+ showDynamicSearch: { type: Boolean },
12
+ multipleSelection: { type: Boolean },
13
+ highlightCurrentRow: { type: Boolean },
14
+ "highlight-current-row": { type: Boolean },
15
+ stripe: { type: Boolean },
16
+ rowClick: {},
17
+ rowDbClick: {},
18
+ sizeChange: {},
19
+ pageChange: {},
20
+ topBtns: {},
21
+ rowBtns: {},
22
+ columns: {},
23
+ hidden: { type: Boolean },
24
+ hiddenPagination: { type: Boolean },
25
+ handleCurrentChange: {},
26
+ pageSizes: {},
27
+ pagerCount: {},
28
+ defaultPageSize: {},
29
+ typeSwitch: { type: Boolean },
30
+ displayType: { default: "table" },
31
+ onMounted: {},
32
+ onActivated: {},
33
+ height: {},
34
+ collapsible: { type: Boolean },
35
+ name: {}
36
+ },
37
+ setup(K, { expose: L }) {
38
+ const n = K, z = V(() => n.displayType ? n.displayType : n.typeSwitch ? "card" : "table"), W = w("ruleModule", void 0), N = w("ruleMap", void 0), c = V(() => n.rulePath && N[n.rulePath] ? N[n.rulePath] : W), p = w("pageMethodMap", {}), q = w("getGlobalParams", () => {
39
+ }), M = w(Me), T = M ? M.translateFn : null, y = v(), I = (e, t, a) => {
40
+ i.value[e] && (i.value[e][t] = a);
41
+ }, J = (e, t) => {
42
+ const a = n.columns.find((l) => l.key === e);
43
+ a && (a.hidden = !t);
44
+ }, D = (e, t, a) => {
45
+ try {
46
+ c.value[e.onClick](p, t, a);
47
+ } catch (l) {
48
+ console.error(l);
49
+ }
50
+ }, O = (e) => {
51
+ if (n.rowClick)
52
+ try {
53
+ c.value[n.rowClick](p, e);
54
+ } catch (t) {
55
+ console.error(t);
56
+ }
57
+ }, Q = (e) => {
58
+ if (n.rowDbClick)
59
+ try {
60
+ c.value[n.rowDbClick](p, e);
61
+ } catch (t) {
62
+ console.error(t);
63
+ }
64
+ }, X = v([]), Y = (e) => {
65
+ X.value = e;
66
+ }, Z = () => {
67
+ var e;
68
+ (e = y.value) == null || e.clearSelection();
69
+ }, x = () => i.value, F = v(), ee = (e) => {
70
+ if (F.value = e, !!n.handleCurrentChange)
71
+ try {
72
+ c.value[n.handleCurrentChange](p, e);
73
+ } catch (t) {
74
+ console.error(t);
75
+ }
76
+ }, te = () => F.value, ne = () => {
77
+ var e;
78
+ return (e = y.value) == null ? void 0 : e.getSelectionRows();
79
+ }, ae = async () => !0, oe = (e, t) => {
80
+ var l;
81
+ const a = (l = n.topBtns) == null ? void 0 : l.find((k) => k.key === e);
82
+ a && (a.hidden = t);
83
+ }, le = (e, t) => {
84
+ var l;
85
+ const a = (l = n.rowBtns) == null ? void 0 : l.find((k) => k.key === e);
86
+ a && (a.condition = !t);
87
+ }, $ = v(0), re = (e) => {
88
+ $.value = e;
89
+ }, r = v({ pageNum: 1, pageSize: n.defaultPageSize || 5 }), ie = () => r.value, se = (e) => {
90
+ let t = !1;
91
+ return e.pageNum > -1 && (r.value.pageNum !== e.pageNum && (t = !0), r.value.pageNum = e.pageNum), e.pageSize > -1 && (r.value.pageSize !== e.pageSize && (t = !0), r.value.pageSize = e.pageSize), { pagination: r.value, isChange: t };
92
+ }, ue = (e) => {
93
+ if (r.value.pageNum = 1, r.value.pageSize = e, !!n.sizeChange)
94
+ try {
95
+ c.value[n.sizeChange](p, r.value);
96
+ } catch (t) {
97
+ console.error(t);
98
+ }
99
+ }, ce = (e) => {
100
+ if (r.value.pageNum = e, !!n.pageChange)
101
+ try {
102
+ c.value[n.pageChange](p, r.value);
103
+ } catch (t) {
104
+ console.error(t);
105
+ }
106
+ }, pe = (e) => {
107
+ var t;
108
+ (t = y.value) == null || t.setCurrentRow(e);
109
+ }, de = (e) => {
110
+ var t;
111
+ (t = y.value) == null || t.setCurrentRow(i.value[e]);
112
+ }, ge = (e, t, a) => {
113
+ n.columns.forEach((l) => {
114
+ l.key === e && l[t] && (l[t] = a);
115
+ });
116
+ }, i = v([]), he = (e) => {
117
+ i.value = e;
118
+ }, ve = (e = {}) => {
119
+ i.value.push(e);
120
+ }, fe = (e) => {
121
+ e >= 0 && e < i.value.length && i.value.splice(e, 1);
122
+ }, me = async () => {
123
+ i.value = [...i.value];
124
+ }, A = we("rootRef"), E = be({
125
+ ...Se(n),
126
+ setCellData: I,
127
+ clearSelection: Z,
128
+ getData: x,
129
+ getCurrentRow: te,
130
+ getSelectedRows: ne,
131
+ addRow: ve,
132
+ deleteRow: fe,
133
+ refresh: me,
134
+ validate: ae,
135
+ setData: he,
136
+ selectRow: pe,
137
+ selectRowNum: de,
138
+ setTotal: re,
139
+ getPagination: ie,
140
+ setPagination: se,
141
+ setTopBtnHidden: oe,
142
+ setColVisible: J,
143
+ setColumn: ge,
144
+ setRowsBtnHidden: le,
145
+ rootRef: A,
146
+ type: "table"
147
+ }), C = (e, t) => {
148
+ const a = T ? T(e.key, t) : t[e.key];
149
+ if (!e.encrypted || !a)
150
+ return a;
151
+ const l = `${a}`;
152
+ return l.length <= 4 ? "*".repeat(l.length) : l.slice(0, -4) + "****";
153
+ };
154
+ if (ze(async () => {
155
+ if (!n.onMounted || !c.value)
156
+ return;
157
+ await Re();
158
+ const e = n.onMounted;
159
+ try {
160
+ c.value[e](p);
161
+ } catch (t) {
162
+ console.error(t);
163
+ }
164
+ }), Be(() => {
165
+ if (!n.onActivated || !c.value)
166
+ return;
167
+ const e = n.onActivated;
168
+ try {
169
+ c.value[e](p);
170
+ } catch (t) {
171
+ console.error(t);
172
+ }
173
+ }), n.name) {
174
+ const e = Te(n.name, E);
175
+ Pe(() => {
176
+ e();
177
+ });
178
+ }
179
+ return L(E), (e, t) => {
180
+ const a = R("el-table-column"), l = R("el-tooltip"), k = R("el-button"), ye = R("el-pagination");
181
+ return e.hidden ? m("", !0) : (u(), g("div", {
182
+ key: 0,
183
+ class: U(["table-render", { tableBorder: z.value === "table" }]),
184
+ ref_key: "rootRef",
185
+ ref: A
186
+ }, [
187
+ j(f("div", null, [
188
+ b(B(Ve), {
189
+ ref_key: "tableRef",
190
+ ref: y,
191
+ data: i.value,
192
+ "highlight-current-row": "",
193
+ "row-key": e.rowKey,
194
+ stripe: e.stripe,
195
+ onRowClick: O,
196
+ onRowDblclick: Q,
197
+ onSelectionChange: Y,
198
+ onCurrentChange: ee,
199
+ height: e.height
200
+ }, {
201
+ empty: h(() => [
202
+ f("div", Ue, [
203
+ b(B(De), {
204
+ name: "tableEmpty",
205
+ style: { width: 56, height: 56 }
206
+ }),
207
+ t[2] || (t[2] = f("div", null, "No data available,please check", -1))
208
+ ])
209
+ ]),
210
+ default: h(() => [
211
+ e.multipleSelection ? (u(), S(a, {
212
+ key: 0,
213
+ type: "selection",
214
+ width: "55"
215
+ })) : m("", !0),
216
+ (u(!0), g(P, null, G(e.columns, (o) => (u(), g(P, {
217
+ key: o.key
218
+ }, [
219
+ o.hidden ? m("", !0) : (u(), S(a, {
220
+ key: 0,
221
+ prop: o.key,
222
+ "min-width": o.minWidth,
223
+ fixed: o.fixed || !1
224
+ }, {
225
+ header: h(() => [
226
+ f("div", {
227
+ class: "text-ellipsis",
228
+ title: o.label
229
+ }, _(o.label), 9, je)
230
+ ]),
231
+ default: h(({ row: d, $index: s }) => [
232
+ o.type === "link" ? (u(), g("div", {
233
+ key: 0,
234
+ class: "text-ellipsis link-style",
235
+ title: C(o, d),
236
+ onClick: (Ce) => D(o, d, s)
237
+ }, _(C(o, d)), 9, Ge)) : (u(), g("div", {
238
+ key: 1,
239
+ class: "text-ellipsis",
240
+ title: C(o, d)
241
+ }, _(C(o, d)), 9, He))
242
+ ]),
243
+ _: 2
244
+ }, 1032, ["prop", "min-width", "fixed"]))
245
+ ], 64))), 128)),
246
+ e.rowBtns && e.rowBtns.length > 0 ? (u(), S(a, {
247
+ key: 1,
248
+ label: "Action",
249
+ fixed: "right",
250
+ align: "left"
251
+ }, {
252
+ default: h(({ row: o, $index: d }) => [
253
+ f("div", Ke, [
254
+ (u(!0), g(P, null, G(e.rowBtns, (s) => (u(), g(P, {
255
+ key: s.key
256
+ }, [
257
+ s.condition === void 0 || s.condition === null || B(Fe)(s.condition, { $row: o, $globalParams: B(q)() }) ? (u(), S(k, {
258
+ key: 0,
259
+ disabled: s.disabled,
260
+ link: "",
261
+ size: "small",
262
+ type: s.type,
263
+ onClick: _e((Ce) => D(s, o, d), ["stop"])
264
+ }, {
265
+ default: h(() => [
266
+ b(l, {
267
+ class: "box-item",
268
+ effect: "dark",
269
+ content: s.label,
270
+ placement: "top",
271
+ "popper-class": "low-tsp",
272
+ "show-after": 300
273
+ }, {
274
+ default: h(() => [
275
+ s.icon ? (u(), S($e, {
276
+ key: 0,
277
+ name: s.icon.name,
278
+ color: s.icon.color
279
+ }, null, 8, ["name", "color"])) : m("", !0)
280
+ ]),
281
+ _: 2
282
+ }, 1032, ["content"])
283
+ ]),
284
+ _: 2
285
+ }, 1032, ["disabled", "type", "onClick"])) : m("", !0)
286
+ ], 64))), 128))
287
+ ])
288
+ ]),
289
+ _: 1
290
+ })) : m("", !0)
291
+ ]),
292
+ _: 1
293
+ }, 8, ["data", "row-key", "stripe", "height"])
294
+ ], 512), [
295
+ [H, z.value === "table"]
296
+ ]),
297
+ j(b(Ae, Ne({ data: i.value }, n, { getColText: C }), null, 16, ["data"]), [
298
+ [H, z.value === "card"]
299
+ ]),
300
+ f("div", {
301
+ class: U(["pagination-wrapper", {
302
+ hidePagination: (e.hiddenPagination || i.value.length === 0) && !e.height,
303
+ transparentPagination: (e.hiddenPagination || i.value.length === 0) && e.height,
304
+ cardlistPadding: z.value === "card"
305
+ }])
306
+ }, [
307
+ b(ye, {
308
+ layout: "total,sizes, prev, pager, next,jumper",
309
+ total: $.value,
310
+ "page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
311
+ "default-page-size": e.defaultPageSize,
312
+ "current-page": r.value.pageNum,
313
+ "onUpdate:currentPage": t[0] || (t[0] = (o) => r.value.pageNum = o),
314
+ "page-size": r.value.pageSize,
315
+ "onUpdate:pageSize": t[1] || (t[1] = (o) => r.value.pageSize = o),
316
+ "pager-count": e.pagerCount,
317
+ onSizeChange: ue,
318
+ onCurrentChange: ce
319
+ }, null, 8, ["total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
320
+ ], 2)
321
+ ], 2));
322
+ };
323
+ }
324
+ }), Je = /* @__PURE__ */ Ee(Le, [["__scopeId", "data-v-3dd76404"]]);
325
+ export {
326
+ Je as default
327
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, ref as m, watch as _, onMounted as h, resolveComponent as a, openBlock as l, createBlock as c, mergeProps as u, withCtx as d, createElementBlock as b, Fragment as v, renderList as y, createVNode as k, unref as K } from "vue";
2
- import { a as V } from "./index-BwNeJEvk.js";
2
+ import { a as V } from "./index-B-56lFE2.js";
3
3
  import "element-plus";
4
4
  const w = /* @__PURE__ */ i({
5
5
  __name: "Tabs",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as t, resolveComponent as n, openBlock as r, createElementBlock as a, createVNode as l, withCtx as s, withDirectives as p, createElementVNode as i, normalizeStyle as c, normalizeClass as m, unref as _, vShow as d } from "vue";
2
- import { a as u, b as f } from "./index-BwNeJEvk.js";
2
+ import { a as u, b as f } from "./index-B-56lFE2.js";
3
3
  import "element-plus";
4
4
  const y = /* @__PURE__ */ t({
5
5
  __name: "Wrapper",