@vancone/console-component 0.1.1-beta.1 → 0.1.1-beta.2

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.
@@ -26,7 +26,7 @@ var ye = (e, t, o) => new Promise((n, s) => {
26
26
  }, a = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(r, l);
27
27
  a((o = o.apply(e, t)).next());
28
28
  });
29
- import { openBlock as p, createElementBlock as A, createElementVNode as g, defineComponent as _e, reactive as re, resolveComponent as x, createVNode as h, withCtx as m, unref as k, Fragment as te, renderList as ce, toDisplayString as D, normalizeStyle as Te, ref as V, onMounted as pt, createCommentVNode as B, createTextVNode as K, createBlock as N, nextTick as Le, resolveDynamicComponent as et, effectScope as Mt, markRaw as Pe, toRaw as je, hasInjectionContext as _o, inject as go, getCurrentInstance as vo, watch as Se, isRef as ze, isReactive as ft, toRef as rt, computed as De, getCurrentScope as bo, onScopeDispose as yo, toRefs as St, createStaticVNode as wo, normalizeClass as Nt, resolveDirective as At, withDirectives as Ut } from "vue";
29
+ import { openBlock as p, createElementBlock as A, createElementVNode as g, defineComponent as _e, reactive as re, resolveComponent as x, createVNode as h, withCtx as m, unref as k, Fragment as te, renderList as ce, toDisplayString as D, normalizeStyle as Te, ref as M, onMounted as pt, createCommentVNode as z, createTextVNode as K, createBlock as V, nextTick as Le, resolveDynamicComponent as et, effectScope as Mt, markRaw as Pe, toRaw as je, hasInjectionContext as _o, inject as go, getCurrentInstance as vo, watch as Se, isRef as ze, isReactive as ft, toRef as rt, computed as De, getCurrentScope as bo, onScopeDispose as yo, toRefs as St, createStaticVNode as wo, normalizeClass as Nt, resolveDirective as At, withDirectives as Ut } from "vue";
30
30
  import { useRoute as He, useRouter as st } from "vue-router";
31
31
  import So from "axios";
32
32
  import { ElMessage as at, ElMessageBox as Co } from "element-plus";
@@ -172,7 +172,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
172
172
  g("h1", null, D(d.name), 1),
173
173
  g("div", Qo, [
174
174
  (p(!0), A(te, null, ce(d.apps, (w) => {
175
- var y, M;
175
+ var y, N;
176
176
  return p(), A("a", {
177
177
  style: Te([{ "text-decoration": "none" }, { pointerEvents: ((y = w.homepageUrl) == null ? void 0 : y.length) > 0 ? "auto" : "none" }]),
178
178
  target: "_blank",
@@ -184,7 +184,7 @@ const Ho = { render: Bo }, Jo = { class: "app-catalog-wrapper" }, Wo = { class:
184
184
  innerHTML: w.iconSvg
185
185
  }, null, 8, Xo)) : (p(), A("div", Zo, " ")),
186
186
  g("h2", {
187
- style: Te({ color: ((M = w.homepageUrl) == null ? void 0 : M.length) > 0 ? "#555" : "#bbb" })
187
+ style: Te({ color: ((N = w.homepageUrl) == null ? void 0 : N.length) > 0 ? "#555" : "#bbb" })
188
188
  }, D(w.name), 5)
189
189
  ], 12, Ko);
190
190
  }), 256))
@@ -360,9 +360,9 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
360
360
  helpDocUrl: {}
361
361
  },
362
362
  setup(e) {
363
- const { t } = Je(), o = V(), n = V(), s = V(), r = V(), l = V(!1), a = e;
364
- V(!1);
365
- const i = V(""), d = V(tt.global.locale), w = re([
363
+ const { t } = Je(), o = M(), n = M(), s = M(), r = M(), l = M(!1), a = e;
364
+ M(!1);
365
+ const i = M(""), d = M(tt.global.locale), w = re([
366
366
  {
367
367
  id: "en",
368
368
  name: "English"
@@ -379,14 +379,14 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
379
379
  });
380
380
  });
381
381
  function y(G) {
382
- for (var I = G + "=", Q = document.cookie.split(";"), z = 0; z < Q.length; z++) {
383
- for (var H = Q[z]; H.charAt(0) == " "; ) H = H.substring(1);
382
+ for (var I = G + "=", Q = document.cookie.split(";"), q = 0; q < Q.length; q++) {
383
+ for (var H = Q[q]; H.charAt(0) == " "; ) H = H.substring(1);
384
384
  if (H.indexOf(I) != -1)
385
385
  return H.substring(I.length, H.length);
386
386
  }
387
387
  return "";
388
388
  }
389
- function M() {
389
+ function N() {
390
390
  Uo().then(() => {
391
391
  const G = escape(window.location.href);
392
392
  window.location.href = `//${Rt()}/?from=${G}#login`;
@@ -402,7 +402,7 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
402
402
  window.open(a.helpDocUrl, "_blank");
403
403
  }
404
404
  return (G, I) => {
405
- const Q = x("el-popover"), z = x("el-tooltip"), H = x("el-avatar"), oe = x("el-menu-item"), C = x("el-icon"), _ = x("el-menu"), E = x("el-drawer");
405
+ const Q = x("el-popover"), q = x("el-tooltip"), H = x("el-avatar"), oe = x("el-menu-item"), C = x("el-icon"), _ = x("el-menu"), E = x("el-drawer");
406
406
  return p(), A(te, null, [
407
407
  g("div", gn, [
408
408
  g("div", vn, [
@@ -429,7 +429,7 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
429
429
  _: 1
430
430
  }, 8, ["virtual-ref"]),
431
431
  g("div", bn, [
432
- h(z, {
432
+ h(q, {
433
433
  effect: "dark",
434
434
  content: k(t)("common.header.workbench"),
435
435
  placement: "bottom"
@@ -441,7 +441,7 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
441
441
  ]),
442
442
  _: 1
443
443
  }, 8, ["content"]),
444
- h(z, {
444
+ h(q, {
445
445
  effect: "dark",
446
446
  content: k(t)("common.header.help"),
447
447
  placement: "bottom"
@@ -453,11 +453,11 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
453
453
  onClick: R
454
454
  }, [
455
455
  h(k(un))
456
- ])) : B("", !0)
456
+ ])) : z("", !0)
457
457
  ]),
458
458
  _: 1
459
459
  }, 8, ["content"]),
460
- h(z, {
460
+ h(q, {
461
461
  effect: "dark",
462
462
  content: k(t)("common.header.notification"),
463
463
  placement: "bottom"
@@ -548,7 +548,7 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
548
548
  onClick: (u) => T(P.id)
549
549
  }, [
550
550
  g("span", null, D(P.name), 1),
551
- P.id === d.value ? (p(), N(C, {
551
+ P.id === d.value ? (p(), V(C, {
552
552
  key: 0,
553
553
  style: { color: "#8ba74f" }
554
554
  }, {
@@ -556,12 +556,12 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
556
556
  h(k(Oo))
557
557
  ]),
558
558
  _: 1
559
- })) : B("", !0)
559
+ })) : z("", !0)
560
560
  ], 8, On))), 256))
561
561
  ]),
562
562
  _: 1
563
563
  }, 8, ["virtual-ref"]),
564
- h(oe, { onClick: M }, {
564
+ h(oe, { onClick: N }, {
565
565
  default: m(() => [
566
566
  K(D(k(t)("common.header.signOut")), 1)
567
567
  ]),
@@ -597,7 +597,7 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
597
597
  const t = e;
598
598
  return Le(() => console.log("menu", t.menu)), (o, n) => {
599
599
  const s = x("SideMenuItem", !0), r = x("el-sub-menu"), l = x("el-menu-item");
600
- return o.menu.children && o.menu.children.length > 0 ? (p(), N(r, {
600
+ return o.menu.children && o.menu.children.length > 0 ? (p(), V(r, {
601
601
  key: 0,
602
602
  index: o.menu.path
603
603
  }, {
@@ -605,20 +605,20 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
605
605
  var a, i, d;
606
606
  return [
607
607
  g("div", En, [
608
- (p(), N(et((a = o.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
608
+ (p(), V(et((a = o.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
609
609
  ]),
610
610
  g("span", null, D(o.$t((d = (i = o.menu.meta) == null ? void 0 : i.title) != null ? d : "")), 1)
611
611
  ];
612
612
  }),
613
613
  default: m(() => [
614
- (p(!0), A(te, null, ce(o.menu.children, (a) => (p(), N(s, {
614
+ (p(!0), A(te, null, ce(o.menu.children, (a) => (p(), V(s, {
615
615
  key: a.path,
616
616
  route: a,
617
617
  menu: a
618
618
  }, null, 8, ["route", "menu"]))), 128))
619
619
  ]),
620
620
  _: 1
621
- }, 8, ["index"])) : (p(), N(l, {
621
+ }, 8, ["index"])) : (p(), V(l, {
622
622
  key: 1,
623
623
  index: t.menu.path,
624
624
  style: { height: "40px" }
@@ -633,7 +633,7 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
633
633
  var a;
634
634
  return [
635
635
  g("div", $n, [
636
- (p(), N(et((a = o.$props.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
636
+ (p(), V(et((a = o.$props.menu.meta) == null ? void 0 : a.icon), { class: "menu-icon" }))
637
637
  ])
638
638
  ];
639
639
  }),
@@ -641,7 +641,7 @@ const _n = { render: hn }, gn = { class: "header" }, vn = { class: "title" }, bn
641
641
  }, 8, ["index"]));
642
642
  };
643
643
  }
644
- }), In = /* @__PURE__ */ pe(Pn, [["__scopeId", "data-v-99da7c39"]]), he = V({}), Vn = {}, Ct = V([]);
644
+ }), In = /* @__PURE__ */ pe(Pn, [["__scopeId", "data-v-99da7c39"]]), he = M({}), Vn = {}, Ct = M([]);
645
645
  var Lt = !1;
646
646
  function Ye(e, t, o) {
647
647
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, o), o) : (e[t] = o, o);
@@ -1304,7 +1304,7 @@ function ts({ app: e, store: t, options: o }) {
1304
1304
  }
1305
1305
  }
1306
1306
  function os() {
1307
- const e = Mt(!0), t = e.run(() => V({}));
1307
+ const e = Mt(!0), t = e.run(() => M({}));
1308
1308
  let o = [], n = [];
1309
1309
  const s = Pe({
1310
1310
  install(r) {
@@ -1377,12 +1377,12 @@ function Pt(e, t, o, n) {
1377
1377
  !a && (process.env.NODE_ENV === "production" || !n) && (o.state.value[e] = s ? s() : {});
1378
1378
  const w = process.env.NODE_ENV !== "production" && n ? (
1379
1379
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
1380
- St(V(s ? s() : {}).value)
1380
+ St(M(s ? s() : {}).value)
1381
1381
  ) : St(o.state.value[e]);
1382
- return ue(w, r, Object.keys(l || {}).reduce((y, M) => (process.env.NODE_ENV !== "production" && M in w && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${M}" in store "${e}".`), y[M] = Pe(De(() => {
1382
+ return ue(w, r, Object.keys(l || {}).reduce((y, N) => (process.env.NODE_ENV !== "production" && N in w && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${N}" in store "${e}".`), y[N] = Pe(De(() => {
1383
1383
  qe(o);
1384
1384
  const T = o._s.get(e);
1385
- return l[M].call(T, T);
1385
+ return l[N].call(T, T);
1386
1386
  })), y), {}));
1387
1387
  }
1388
1388
  return i = dt(e, d, t, o, n, !0), i;
@@ -1396,10 +1396,10 @@ function dt(e, t, o = {}, n, s, r) {
1396
1396
  process.env.NODE_ENV !== "production" && !Lt && (i.onTrigger = (u) => {
1397
1397
  d ? T = u : d == !1 && !_._hotUpdating && (Array.isArray(T) ? T.push(u) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
1398
1398
  });
1399
- let d, w, y = [], M = [], T;
1399
+ let d, w, y = [], N = [], T;
1400
1400
  const j = n.state.value[e];
1401
1401
  !r && !j && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
1402
- const R = V({});
1402
+ const R = M({});
1403
1403
  let G;
1404
1404
  function I(u) {
1405
1405
  let c;
@@ -1429,22 +1429,22 @@ function dt(e, t, o = {}, n, s, r) {
1429
1429
  throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
1430
1430
  } : eo
1431
1431
  );
1432
- function z() {
1433
- l.stop(), y = [], M = [], n._s.delete(e);
1432
+ function q() {
1433
+ l.stop(), y = [], N = [], n._s.delete(e);
1434
1434
  }
1435
1435
  const H = (u, c = "") => {
1436
1436
  if (Et in u)
1437
1437
  return u[it] = c, u;
1438
1438
  const v = function() {
1439
1439
  qe(n);
1440
- const $ = Array.from(arguments), F = [], q = [];
1440
+ const $ = Array.from(arguments), F = [], B = [];
1441
1441
  function S(f) {
1442
1442
  F.push(f);
1443
1443
  }
1444
1444
  function U(f) {
1445
- q.push(f);
1445
+ B.push(f);
1446
1446
  }
1447
- Ne(M, {
1447
+ Ne(N, {
1448
1448
  args: $,
1449
1449
  name: v[it],
1450
1450
  store: _,
@@ -1455,9 +1455,9 @@ function dt(e, t, o = {}, n, s, r) {
1455
1455
  try {
1456
1456
  b = u.apply(this && this.$id === e ? this : _, $);
1457
1457
  } catch (f) {
1458
- throw Ne(q, f), f;
1458
+ throw Ne(B, f), f;
1459
1459
  }
1460
- return b instanceof Promise ? b.then((f) => (Ne(F, f), f)).catch((f) => (Ne(q, f), Promise.reject(f))) : (Ne(F, b), b);
1460
+ return b instanceof Promise ? b.then((f) => (Ne(F, f), f)).catch((f) => (Ne(B, f), Promise.reject(f))) : (Ne(F, b), b);
1461
1461
  };
1462
1462
  return v[Et] = !0, v[it] = c, v;
1463
1463
  }, oe = /* @__PURE__ */ Pe({
@@ -1469,7 +1469,7 @@ function dt(e, t, o = {}, n, s, r) {
1469
1469
  _p: n,
1470
1470
  // _s: scope,
1471
1471
  $id: e,
1472
- $onAction: xt.bind(null, M),
1472
+ $onAction: xt.bind(null, N),
1473
1473
  $patch: I,
1474
1474
  $reset: Q,
1475
1475
  $subscribe(u, c = {}) {
@@ -1482,7 +1482,7 @@ function dt(e, t, o = {}, n, s, r) {
1482
1482
  }, ue({}, i, c)));
1483
1483
  return v;
1484
1484
  },
1485
- $dispose: z
1485
+ $dispose: q
1486
1486
  }, _ = re(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ie ? ue(
1487
1487
  {
1488
1488
  _hmrPayload: oe,
@@ -1593,14 +1593,14 @@ This will fail in production.`);
1593
1593
  a = Ge, a._s.has(n) || (r ? dt(n, t, s, a) : Pt(n, s, a), process.env.NODE_ENV !== "production" && (l._pinia = a));
1594
1594
  const w = a._s.get(n);
1595
1595
  if (process.env.NODE_ENV !== "production" && i) {
1596
- const y = "__hot:" + n, M = r ? dt(y, t, s, a, !0) : Pt(y, ue({}, s), a, !0);
1597
- i._hotUpdate(M), delete a.state.value[y], a._s.delete(y);
1596
+ const y = "__hot:" + n, N = r ? dt(y, t, s, a, !0) : Pt(y, ue({}, s), a, !0);
1597
+ i._hotUpdate(N), delete a.state.value[y], a._s.delete(y);
1598
1598
  }
1599
1599
  if (process.env.NODE_ENV !== "production" && Ie) {
1600
1600
  const y = vo();
1601
1601
  if (y && y.proxy && // avoid adding stores that are just built for hot module replacement
1602
1602
  !i) {
1603
- const M = y.proxy, T = "_pStores" in M ? M._pStores : M._pStores = {};
1603
+ const N = y.proxy, T = "_pStores" in N ? N._pStores : N._pStores = {};
1604
1604
  T[n] = w;
1605
1605
  }
1606
1606
  }
@@ -1734,7 +1734,7 @@ function It(e, {
1734
1734
  w && (a == null || a(d));
1735
1735
  const y = t.getItem(n);
1736
1736
  if (y) {
1737
- const M = o.deserialize(y), T = r ? oo(M, r) : M, j = l ? no(T, l) : T;
1737
+ const N = o.deserialize(y), T = r ? oo(N, r) : N, j = l ? no(T, l) : T;
1738
1738
  e.$patch(j);
1739
1739
  }
1740
1740
  w && (i == null || i(d));
@@ -1846,14 +1846,14 @@ const so = /* @__PURE__ */ as("console", {
1846
1846
  router: ""
1847
1847
  }, {
1848
1848
  default: m(() => [
1849
- (p(!0), A(te, null, ce(k(Ct), (a) => (p(), N(In, {
1849
+ (p(!0), A(te, null, ce(k(Ct), (a) => (p(), V(In, {
1850
1850
  key: a.path,
1851
1851
  menu: a
1852
1852
  }, null, 8, ["menu"]))), 128))
1853
1853
  ]),
1854
1854
  _: 1
1855
1855
  }, 8, ["default-active"])
1856
- ])) : B("", !0);
1856
+ ])) : z("", !0);
1857
1857
  };
1858
1858
  }
1859
1859
  }), ro = /* @__PURE__ */ pe(vs, [["__scopeId", "data-v-c70ca2ba"]]), bs = { class: "container" }, ys = /* @__PURE__ */ _e({
@@ -1863,21 +1863,21 @@ const so = /* @__PURE__ */ as("console", {
1863
1863
  helpDocUrl: {}
1864
1864
  },
1865
1865
  setup(e) {
1866
- const t = so(gt), o = He(), n = V(t.menu.collapsed), s = V(), r = e;
1866
+ const t = so(gt), o = He(), n = M(t.menu.collapsed), s = M(), r = e;
1867
1867
  return (l, a) => {
1868
1868
  const i = x("router-view"), d = x("el-scrollbar");
1869
1869
  return p(), A(te, null, [
1870
- k(o).query.embedded !== "true" ? (p(), N(Gt, {
1870
+ k(o).query.embedded !== "true" ? (p(), V(Gt, {
1871
1871
  key: 0,
1872
1872
  title: r.title,
1873
1873
  helpDocUrl: r.helpDocUrl
1874
- }, null, 8, ["title", "helpDocUrl"])) : B("", !0),
1874
+ }, null, 8, ["title", "helpDocUrl"])) : z("", !0),
1875
1875
  g("div", bs, [
1876
- k(o).query.embedded !== "true" ? (p(), N(ro, {
1876
+ k(o).query.embedded !== "true" ? (p(), V(ro, {
1877
1877
  key: 0,
1878
1878
  menuCollapsed: n.value,
1879
1879
  "onUpdate:menuCollapsed": a[0] || (a[0] = (w) => n.value = w)
1880
- }, null, 8, ["menuCollapsed"])) : B("", !0),
1880
+ }, null, 8, ["menuCollapsed"])) : z("", !0),
1881
1881
  h(d, { class: "main-scrollbar" }, {
1882
1882
  default: m(() => [
1883
1883
  g("main", {
@@ -1931,7 +1931,7 @@ function Es(e, t) {
1931
1931
  const $s = /* @__PURE__ */ pe(ks, [["render", Es], ["__scopeId", "data-v-0155b361"]]), Ps = {};
1932
1932
  function Is(e, t) {
1933
1933
  const o = x("router-view");
1934
- return p(), N(o);
1934
+ return p(), V(o);
1935
1935
  }
1936
1936
  const Vs = /* @__PURE__ */ pe(Ps, [["render", Is]]), Ms = { class: "card-wrapper" }, Ns = ["onClick"], As = { class: "card-inner-wrapper" }, Us = { class: "card-title" }, Ts = { class: "icon" }, Ds = /* @__PURE__ */ _e({
1937
1937
  __name: "TabCard",
@@ -1940,7 +1940,7 @@ const Vs = /* @__PURE__ */ pe(Ps, [["render", Is]]), Ms = { class: "card-wrapper
1940
1940
  tableRef: {}
1941
1941
  },
1942
1942
  setup(e) {
1943
- const { t } = Je(), o = He(), n = st(), s = e, r = V(s.cards[0].key);
1943
+ const { t } = Je(), o = He(), n = st(), s = e, r = M(s.cards[0].key);
1944
1944
  function l(a) {
1945
1945
  a.disabled || (r.value = a.key, s.tableRef.updateConfigAndRefresh(a.model), n.push({
1946
1946
  path: o.path,
@@ -1982,10 +1982,10 @@ const Vs = /* @__PURE__ */ pe(Ps, [["render", Is]]), Ms = { class: "card-wrapper
1982
1982
  g("div", As, [
1983
1983
  g("div", Us, [
1984
1984
  g("div", Ts, [
1985
- d.icon ? (p(), N(et(d.icon), {
1985
+ d.icon ? (p(), V(et(d.icon), {
1986
1986
  key: 0,
1987
1987
  class: "svg-icon"
1988
- })) : B("", !0)
1988
+ })) : z("", !0)
1989
1989
  ]),
1990
1990
  g("span", {
1991
1991
  style: Te({ color: d.disabled ? "#aaa" : "black" })
@@ -2031,7 +2031,7 @@ const Be = (e) => {
2031
2031
  },
2032
2032
  emits: ["update:id"],
2033
2033
  setup(e, { expose: t, emit: o }) {
2034
- const { t: n } = tt.global, s = e, r = re({}), l = V(!1), a = V(), i = re({}), d = V(!0), w = (C) => s.mode === "view" && (H(C, void 0) || H(C, "input") || H(C, "select") || H(C, "password")), y = De(() => s.model.fields ? s.model.fields.filter(
2034
+ const { t: n } = tt.global, s = e, r = re({}), l = M(!1), a = M(), i = re({}), d = M(!0), w = (C) => s.mode === "view" && (H(C, void 0) || H(C, "input") || H(C, "select") || H(C, "password")), y = De(() => s.model.fields ? s.model.fields.filter(
2035
2035
  (C) => {
2036
2036
  var P, u, c, v;
2037
2037
  let _ = C.visible !== !1 && ((P = C.formItemAttributes) == null ? void 0 : P.visible) !== !1;
@@ -2044,17 +2044,17 @@ const Be = (e) => {
2044
2044
  Se([() => s.id, () => s.sessionId], () => {
2045
2045
  T();
2046
2046
  });
2047
- function M() {
2047
+ function N() {
2048
2048
  const C = s.model.fields;
2049
2049
  let _ = {};
2050
2050
  C == null || C.forEach((E) => {
2051
- var P, u, c, v, $, F, q, S, U;
2051
+ var P, u, c, v, $, F, B, S, U;
2052
2052
  if (r[E.prop] = null, E.visible !== !1 && ((P = E.formItemAttributes) == null ? void 0 : P.visible) !== !1) {
2053
2053
  if (((u = E.formItemAttributes) == null ? void 0 : u.defaultValue) !== void 0 ? r[E.prop] = (c = E.formItemAttributes) == null ? void 0 : c.defaultValue : r[E.prop] = void 0, s.mode !== "view") {
2054
2054
  let Y = (v = E.formItemAttributes) == null ? void 0 : v.validationRule;
2055
2055
  Y !== void 0 && (_[E.prop] = Y), Object.assign(i, _);
2056
2056
  }
2057
- const b = E.formItemAttributes, f = b == null ? void 0 : b.type, O = ($ = b == null ? void 0 : b.selectAttributes) == null ? void 0 : $.api, L = (F = b == null ? void 0 : b.selectAttributes) == null ? void 0 : F.valueMappingField, X = (q = b == null ? void 0 : b.selectAttributes) == null ? void 0 : q.labelMappingField;
2057
+ const b = E.formItemAttributes, f = b == null ? void 0 : b.type, O = ($ = b == null ? void 0 : b.selectAttributes) == null ? void 0 : $.api, L = (F = b == null ? void 0 : b.selectAttributes) == null ? void 0 : F.valueMappingField, X = (B = b == null ? void 0 : b.selectAttributes) == null ? void 0 : B.labelMappingField;
2058
2058
  if (f === "select" && O) {
2059
2059
  let Y = O;
2060
2060
  const ae = (S = b == null ? void 0 : b.selectAttributes) == null ? void 0 : S.queryParamName, fe = (U = b == null ? void 0 : b.selectAttributes) == null ? void 0 : U.queryParamValueField;
@@ -2074,7 +2074,7 @@ const Be = (e) => {
2074
2074
  }
2075
2075
  function T() {
2076
2076
  var C;
2077
- console.log("init form", s.id, s.model), R(), d.value = (C = s.model.useI18n) != null ? C : !0, M(), (s.mode === "update" || s.mode === "view") && s.id !== void 0 && s.id !== "" && s.model.api !== "" && (l.value = !0, Oe(`${s.model.api}/${s.id}`, "GET", {}).then(({ data: _ }) => {
2077
+ console.log("init form", s.id, s.model), R(), d.value = (C = s.model.useI18n) != null ? C : !0, N(), (s.mode === "update" || s.mode === "view") && s.id !== void 0 && s.id !== "" && s.model.api !== "" && (l.value = !0, Oe(`${s.model.api}/${s.id}`, "GET", {}).then(({ data: _ }) => {
2078
2078
  Be(r), Object.assign(r, _.data), l.value = !1;
2079
2079
  }));
2080
2080
  }
@@ -2084,8 +2084,8 @@ const Be = (e) => {
2084
2084
  ((u = (P = s.model.formConfig) == null ? void 0 : P.functions) == null ? void 0 : u.beforeSubmit) !== void 0 && Object.assign(r, (v = (c = s.model.formConfig) == null ? void 0 : c.functions) == null ? void 0 : v.beforeSubmit(r));
2085
2085
  let E = s.mode === "create" ? "POST" : "PUT";
2086
2086
  s.model.api && Oe(s.model.api, E, r).then(({ data: $ }) => {
2087
- var F, q, S, U;
2088
- $.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((q = (F = s.model.formConfig) == null ? void 0 : F.functions) == null ? void 0 : q.afterSubmit) !== void 0 && ((U = (S = s.model.formConfig) == null ? void 0 : S.functions) == null || U.afterSubmit($.data)), s.afterSubmitFunc && s.afterSubmitFunc(), C());
2087
+ var F, B, S, U;
2088
+ $.code === 0 && (s.closeDialogFunc && s.closeDialogFunc(), ((B = (F = s.model.formConfig) == null ? void 0 : F.functions) == null ? void 0 : B.afterSubmit) !== void 0 && ((U = (S = s.model.formConfig) == null ? void 0 : S.functions) == null || U.afterSubmit($.data)), s.afterSubmitFunc && s.afterSubmitFunc(), C());
2089
2089
  });
2090
2090
  });
2091
2091
  }
@@ -2114,7 +2114,7 @@ const Be = (e) => {
2114
2114
  var _;
2115
2115
  return ((_ = C.formItemAttributes) == null ? void 0 : _.updatable) === !1 && s.mode === "update";
2116
2116
  }
2117
- function z(C, _) {
2117
+ function q(C, _) {
2118
2118
  var P, u;
2119
2119
  const E = (u = (P = _.formItemAttributes) == null ? void 0 : P.type) != null ? u : "input";
2120
2120
  switch (C) {
@@ -2142,9 +2142,9 @@ const Be = (e) => {
2142
2142
  v && (c = `${c}?${v}=${r[P.queryParamValueField]}`), Oe(c, "GET", {}).then(({ data: $ }) => {
2143
2143
  if (P) {
2144
2144
  let F = [];
2145
- Array.isArray($.data) ? F = $.data : $.data.list && Array.isArray($.data.list) && (F = $.data.list), P.options = F.map((q) => ({
2146
- value: P.valueMappingField ? q[P.valueMappingField] : q.value,
2147
- label: P.labelMappingField ? q[P.labelMappingField] : q.label
2145
+ Array.isArray($.data) ? F = $.data : $.data.list && Array.isArray($.data.list) && (F = $.data.list), P.options = F.map((B) => ({
2146
+ value: P.valueMappingField ? B[P.valueMappingField] : B.value,
2147
+ label: P.labelMappingField ? B[P.labelMappingField] : B.label
2148
2148
  }));
2149
2149
  }
2150
2150
  });
@@ -2160,8 +2160,8 @@ const Be = (e) => {
2160
2160
  submit: j,
2161
2161
  formData: r
2162
2162
  }), (C, _) => {
2163
- const E = x("el-input"), P = x("el-switch"), u = x("el-date-picker"), c = x("el-option"), v = x("el-select"), $ = x("el-form-item"), F = x("el-form"), q = At("loading");
2164
- return Ut((p(), N(F, {
2163
+ const E = x("el-input"), P = x("el-switch"), u = x("el-date-picker"), c = x("el-option"), v = x("el-select"), $ = x("el-form-item"), F = x("el-form"), B = At("loading");
2164
+ return Ut((p(), V(F, {
2165
2165
  ref_key: "formRef",
2166
2166
  ref: a,
2167
2167
  model: r,
@@ -2172,7 +2172,7 @@ const Be = (e) => {
2172
2172
  inline: !s.disableInline
2173
2173
  }, {
2174
2174
  default: m(() => [
2175
- (p(!0), A(te, null, ce(y.value, (S) => (p(), N($, {
2175
+ (p(!0), A(te, null, ce(y.value, (S) => (p(), V($, {
2176
2176
  class: "form-item",
2177
2177
  style: Te({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
2178
2178
  prop: S.prop,
@@ -2181,27 +2181,27 @@ const Be = (e) => {
2181
2181
  default: m(() => {
2182
2182
  var U;
2183
2183
  return [
2184
- z("input", S) ? (p(), N(E, {
2184
+ q("input", S) ? (p(), V(E, {
2185
2185
  key: 0,
2186
2186
  type: H(S, "password") ? "password" : "text",
2187
2187
  modelValue: r[S.prop],
2188
2188
  "onUpdate:modelValue": (b) => r[S.prop] = b,
2189
2189
  placeholder: (U = S.formItemAttributes) == null ? void 0 : U.placeholder,
2190
2190
  disabled: Q(S)
2191
- }, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : B("", !0),
2192
- w(S) ? (p(), A("span", Rs, D(I(S)), 1)) : B("", !0),
2193
- H(S, "switch") ? (p(), N(P, {
2191
+ }, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : z("", !0),
2192
+ w(S) ? (p(), A("span", Rs, D(I(S)), 1)) : z("", !0),
2193
+ H(S, "switch") ? (p(), V(P, {
2194
2194
  key: 2,
2195
2195
  modelValue: r[S.prop],
2196
2196
  "onUpdate:modelValue": (b) => r[S.prop] = b
2197
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : B("", !0),
2198
- H(S, "datepicker") ? (p(), N(u, {
2197
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : z("", !0),
2198
+ H(S, "datepicker") ? (p(), V(u, {
2199
2199
  key: 3,
2200
2200
  type: "date",
2201
2201
  modelValue: r[S.prop],
2202
2202
  "onUpdate:modelValue": (b) => r[S.prop] = b
2203
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : B("", !0),
2204
- H(S, "select") && C.mode !== "view" ? (p(), N(v, {
2203
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : z("", !0),
2204
+ H(S, "select") && C.mode !== "view" ? (p(), V(v, {
2205
2205
  key: 4,
2206
2206
  modelValue: r[S.prop],
2207
2207
  "onUpdate:modelValue": (b) => r[S.prop] = b,
@@ -2211,14 +2211,14 @@ const Be = (e) => {
2211
2211
  default: m(() => {
2212
2212
  var b, f;
2213
2213
  return [
2214
- (p(!0), A(te, null, ce((f = (b = S.formItemAttributes) == null ? void 0 : b.selectAttributes) == null ? void 0 : f.options, (O) => (p(), N(c, {
2214
+ (p(!0), A(te, null, ce((f = (b = S.formItemAttributes) == null ? void 0 : b.selectAttributes) == null ? void 0 : f.options, (O) => (p(), V(c, {
2215
2215
  value: O.value,
2216
2216
  label: O.label
2217
2217
  }, null, 8, ["value", "label"]))), 256))
2218
2218
  ];
2219
2219
  }),
2220
2220
  _: 2
2221
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : B("", !0)
2221
+ }, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : z("", !0)
2222
2222
  ];
2223
2223
  }),
2224
2224
  _: 2
@@ -2226,7 +2226,7 @@ const Be = (e) => {
2226
2226
  ]),
2227
2227
  _: 1
2228
2228
  }, 8, ["model", "rules", "inline"])), [
2229
- [q, l.value]
2229
+ [B, l.value]
2230
2230
  ]);
2231
2231
  };
2232
2232
  }
@@ -2245,7 +2245,7 @@ const Be = (e) => {
2245
2245
  },
2246
2246
  emits: ["update:visible", "update:id"],
2247
2247
  setup(e, { expose: t, emit: o }) {
2248
- const { t: n } = Je(), s = e, r = V(0), l = o, a = V();
2248
+ const { t: n } = Je(), s = e, r = M(0), l = o, a = M();
2249
2249
  Se(() => s.visible, () => {
2250
2250
  s.visible && r.value++;
2251
2251
  });
@@ -2261,9 +2261,9 @@ const Be = (e) => {
2261
2261
  return t({
2262
2262
  close: d,
2263
2263
  refresh: i
2264
- }), (y, M) => {
2264
+ }), (y, N) => {
2265
2265
  const T = x("el-step"), j = x("el-steps"), R = x("el-button"), G = x("el-dialog");
2266
- return p(), N(G, {
2266
+ return p(), V(G, {
2267
2267
  class: "console-dialog",
2268
2268
  title: "Edit",
2269
2269
  "align-center": "",
@@ -2279,8 +2279,8 @@ const Be = (e) => {
2279
2279
  style: Te({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
2280
2280
  }, [
2281
2281
  g("div", js, [
2282
- (p(!0), A(te, null, ce((I = s.model.formConfig) == null ? void 0 : I.dialogButtons, (Q) => (p(), N(R, {
2283
- onClick: (z) => Q.function(a.value.formData)
2282
+ (p(!0), A(te, null, ce((I = s.model.formConfig) == null ? void 0 : I.dialogButtons, (Q) => (p(), V(R, {
2283
+ onClick: (q) => Q.function(a.value.formData)
2284
2284
  }, {
2285
2285
  default: m(() => [
2286
2286
  K(D(k(n)(Q.label)), 1)
@@ -2324,7 +2324,7 @@ const Be = (e) => {
2324
2324
  disableInline: s.showProcess
2325
2325
  }, null, 8, ["style", "id", "sessionId", "mode", "model", "afterSubmitFunc", "disableInline"]),
2326
2326
  y.showProcess ? (p(), A("div", Ls, [
2327
- M[0] || (M[0] = g("h1", null, "流程动态", -1)),
2327
+ N[0] || (N[0] = g("h1", null, "流程动态", -1)),
2328
2328
  h(j, {
2329
2329
  style: { height: "90%" },
2330
2330
  direction: "vertical",
@@ -2336,7 +2336,7 @@ const Be = (e) => {
2336
2336
  ]),
2337
2337
  _: 1
2338
2338
  })
2339
- ])) : B("", !0)
2339
+ ])) : z("", !0)
2340
2340
  ])
2341
2341
  ]),
2342
2342
  _: 1
@@ -2351,7 +2351,7 @@ const Be = (e) => {
2351
2351
  setup(e, { expose: t }) {
2352
2352
  const { t: o } = tt.global, n = e, s = re([]), r = re({
2353
2353
  showPane: !0
2354
- }), l = V(""), a = V(!0), i = V(!1), d = st(), w = V(""), y = re([]), M = re([]), T = V(), j = V([]), R = V("create"), G = V(!0), I = V(!1), Q = V(""), z = re({
2354
+ }), l = M(""), a = M(!0), i = M(!1), d = st(), w = M(""), y = re([]), N = re([]), T = M(), j = M([]), R = M("create"), G = M(!0), I = M(!1), Q = M(""), q = re({
2355
2355
  pageSize: 10,
2356
2356
  pageNo: 1,
2357
2357
  totalElements: 0
@@ -2402,9 +2402,9 @@ const Be = (e) => {
2402
2402
  return;
2403
2403
  Be(r), r.showPane = !0, Object.assign(r, (O = n.model.tableConfig) != null ? O : {}), s.splice(0, s.length, ...n.model.fields), l.value = (L = n.model.route) != null ? L : "", a.value = (X = n.model.useI18n) != null ? X : !0;
2404
2404
  let f = We({}, r.queryParams);
2405
- f.pageSize = z.pageSize, f.pageNo = z.pageNo, f.search = w.value, Oe(n.model.api, "GET", f).then(({ data: Y }) => {
2405
+ f.pageSize = q.pageSize, f.pageNo = q.pageNo, f.search = w.value, Oe(n.model.api, "GET", f).then(({ data: Y }) => {
2406
2406
  const { list: ae, totalCount: fe } = Y.data;
2407
- y.splice(0, y.length, ...ae), z.totalElements = fe, G.value = !1;
2407
+ y.splice(0, y.length, ...ae), q.totalElements = fe, G.value = !1;
2408
2408
  });
2409
2409
  }
2410
2410
  function P() {
@@ -2441,10 +2441,10 @@ const Be = (e) => {
2441
2441
  });
2442
2442
  }
2443
2443
  function v(f) {
2444
- z.pageSize = f, E();
2444
+ q.pageSize = f, E();
2445
2445
  }
2446
2446
  function $(f) {
2447
- z.pageNo = f, E();
2447
+ q.pageNo = f, E();
2448
2448
  }
2449
2449
  function F(f, O) {
2450
2450
  r.editPageRoutePath !== void 0 ? d.push({
@@ -2454,7 +2454,7 @@ const Be = (e) => {
2454
2454
  }
2455
2455
  }) : (Q.value = O.id, R.value = "update", i.value = !0);
2456
2456
  }
2457
- function q() {
2457
+ function B() {
2458
2458
  let f = window.location.origin + n.model.api + "/export";
2459
2459
  const O = r.queryParams;
2460
2460
  O !== void 0 && Object.keys(O).length > 0 && (f += "?", Object.entries(r.queryParams).map((L) => {
@@ -2468,7 +2468,7 @@ const Be = (e) => {
2468
2468
  return f.label ? a.value ? o(f.label) : f.label : f.prop.slice(0, 1).toUpperCase() + f.prop.slice(1).toLowerCase();
2469
2469
  }
2470
2470
  function b(f) {
2471
- f ? (I.value = !0, M.splice(0, M.length, ...y), y.splice(0, y.length, ...j.value)) : (I.value = !1, y.splice(0, y.length, ...M));
2471
+ f ? (I.value = !0, N.splice(0, N.length, ...y), y.splice(0, y.length, ...j.value)) : (I.value = !1, y.splice(0, y.length, ...N));
2472
2472
  }
2473
2473
  return Se(() => n.model, () => {
2474
2474
  E();
@@ -2486,7 +2486,7 @@ const Be = (e) => {
2486
2486
  }, [
2487
2487
  g("div", zs, [
2488
2488
  g("div", qs, [
2489
- r.selectMode ? (p(), N(X, {
2489
+ r.selectMode ? (p(), V(X, {
2490
2490
  key: 0,
2491
2491
  value: j.value.length,
2492
2492
  type: "primary",
@@ -2501,8 +2501,8 @@ const Be = (e) => {
2501
2501
  }, null, 8, ["label"])
2502
2502
  ]),
2503
2503
  _: 1
2504
- }, 8, ["value"])) : B("", !0),
2505
- !r.selectMode && !r.readOnly ? (p(), N(Y, {
2504
+ }, 8, ["value"])) : z("", !0),
2505
+ !r.selectMode && !r.readOnly && r.creatable !== !1 ? (p(), V(Y, {
2506
2506
  key: 1,
2507
2507
  type: "primary",
2508
2508
  onClick: P
@@ -2514,8 +2514,8 @@ const Be = (e) => {
2514
2514
  ];
2515
2515
  }),
2516
2516
  _: 1
2517
- })) : B("", !0),
2518
- !r.selectMode && !r.readOnly ? (p(), N(Y, {
2517
+ })) : z("", !0),
2518
+ !r.selectMode && !r.readOnly && r.deletable !== !1 ? (p(), V(Y, {
2519
2519
  key: 2,
2520
2520
  disabled: j.value.length == 0,
2521
2521
  type: "danger",
@@ -2529,12 +2529,12 @@ const Be = (e) => {
2529
2529
  ];
2530
2530
  }),
2531
2531
  _: 1
2532
- }, 8, ["disabled"])) : B("", !0),
2532
+ }, 8, ["disabled"])) : z("", !0),
2533
2533
  h(Y, {
2534
2534
  icon: k(Dt),
2535
2535
  onClick: E
2536
2536
  }, null, 8, ["icon"]),
2537
- r.tooltip ? (p(), N(fe, {
2537
+ r.tooltip ? (p(), V(fe, {
2538
2538
  key: 3,
2539
2539
  effect: "dark",
2540
2540
  content: k(o)(r.tooltip),
@@ -2549,13 +2549,13 @@ const Be = (e) => {
2549
2549
  })
2550
2550
  ]),
2551
2551
  _: 1
2552
- }, 8, ["content"])) : B("", !0)
2552
+ }, 8, ["content"])) : z("", !0)
2553
2553
  ]),
2554
2554
  g("div", Bs, [
2555
- r.export ? (p(), N(Y, {
2555
+ r.export ? (p(), V(Y, {
2556
2556
  key: 0,
2557
2557
  class: "button-export",
2558
- onClick: q
2558
+ onClick: B
2559
2559
  }, {
2560
2560
  default: m(() => [
2561
2561
  h(ae, null, {
@@ -2566,7 +2566,7 @@ const Be = (e) => {
2566
2566
  })
2567
2567
  ]),
2568
2568
  _: 1
2569
- })) : B("", !0),
2569
+ })) : z("", !0),
2570
2570
  h(le, {
2571
2571
  placeholder: `${k(o)("common.table.search")}...`,
2572
2572
  modelValue: w.value,
@@ -2583,7 +2583,7 @@ const Be = (e) => {
2583
2583
  }, 8, ["placeholder", "modelValue"])
2584
2584
  ])
2585
2585
  ]),
2586
- Ut((p(), N(be, {
2586
+ Ut((p(), V(be, {
2587
2587
  border: !0,
2588
2588
  ref_key: "tableRef",
2589
2589
  ref: T,
@@ -2594,14 +2594,14 @@ const Be = (e) => {
2594
2594
  default: m(() => {
2595
2595
  var se;
2596
2596
  return [
2597
- r.readOnly ? B("", !0) : (p(), N(ie, {
2597
+ r.readOnly ? z("", !0) : (p(), V(ie, {
2598
2598
  key: 0,
2599
2599
  type: "selection",
2600
2600
  width: "50"
2601
2601
  })),
2602
2602
  (p(!0), A(te, null, ce(H.value, (J) => {
2603
2603
  var Ce;
2604
- return p(), N(ie, {
2604
+ return p(), V(ie, {
2605
2605
  prop: J.prop,
2606
2606
  label: U(J),
2607
2607
  width: (Ce = J.tableColumnAttributes) == null ? void 0 : Ce.width,
@@ -2610,7 +2610,7 @@ const Be = (e) => {
2610
2610
  default: m((xe) => {
2611
2611
  var Ee, Fe, vt;
2612
2612
  return [
2613
- (Ee = J.tableColumnAttributes) != null && Ee.link ? (p(), N(Z, {
2613
+ (Ee = J.tableColumnAttributes) != null && Ee.link ? (p(), V(Z, {
2614
2614
  key: 0,
2615
2615
  class: "router-link",
2616
2616
  to: `/${l.value}/detail?id=${xe.row.id}`
@@ -2619,7 +2619,7 @@ const Be = (e) => {
2619
2619
  g("span", null, D(oe(J, xe)), 1)
2620
2620
  ]),
2621
2621
  _: 2
2622
- }, 1032, ["to"])) : (Fe = J.tableColumnAttributes) != null && Fe.routerLink ? (p(), N(Z, {
2622
+ }, 1032, ["to"])) : (Fe = J.tableColumnAttributes) != null && Fe.routerLink ? (p(), V(Z, {
2623
2623
  key: 1,
2624
2624
  class: "router-link",
2625
2625
  to: J.tableColumnAttributes.routerLink.replace("{id}", xe.row.id)
@@ -2629,24 +2629,25 @@ const Be = (e) => {
2629
2629
  ]),
2630
2630
  _: 2
2631
2631
  }, 1032, ["to"])) : (p(), A("span", Hs, D(oe(J, xe)), 1)),
2632
- ((vt = J.tableColumnAttributes) == null ? void 0 : vt.type) === "tag" ? (p(), N(W, { key: 3 }, {
2632
+ ((vt = J.tableColumnAttributes) == null ? void 0 : vt.type) === "tag" ? (p(), V(W, { key: 3 }, {
2633
2633
  default: m(() => [
2634
2634
  K(D(xe.row[J.prop]), 1)
2635
2635
  ]),
2636
2636
  _: 2
2637
- }, 1024)) : B("", !0)
2637
+ }, 1024)) : z("", !0)
2638
2638
  ];
2639
2639
  }),
2640
2640
  _: 2
2641
2641
  }, 1032, ["prop", "label", "width"]);
2642
2642
  }), 256)),
2643
- r.operations === void 0 && !((se = r.selectMode) != null && se) && !r.readOnly ? (p(), N(ie, {
2643
+ r.operations === void 0 && !((se = r.selectMode) != null && se) && !r.readOnly ? (p(), V(ie, {
2644
2644
  key: 1,
2645
2645
  label: k(o)("common.table.operation"),
2646
2646
  width: "120"
2647
2647
  }, {
2648
2648
  default: m((J) => [
2649
- h(Y, {
2649
+ r.updatable !== !1 ? (p(), V(Y, {
2650
+ key: 0,
2650
2651
  link: "",
2651
2652
  type: "primary",
2652
2653
  class: "operation-button",
@@ -2656,13 +2657,14 @@ const Be = (e) => {
2656
2657
  K(D(k(o)("common.table.edit")), 1)
2657
2658
  ]),
2658
2659
  _: 2
2659
- }, 1032, ["onClick"]),
2660
+ }, 1032, ["onClick"])) : z("", !0),
2660
2661
  h(ge, {
2661
2662
  title: "Are you sure to delete this?",
2662
2663
  onConfirm: (Ce) => u(J.$index, J.row)
2663
2664
  }, {
2664
2665
  reference: m(() => [
2665
- h(Y, {
2666
+ r.deletable !== !1 ? (p(), V(Y, {
2667
+ key: 0,
2666
2668
  link: "",
2667
2669
  type: "primary",
2668
2670
  class: "operation-button"
@@ -2671,20 +2673,20 @@ const Be = (e) => {
2671
2673
  K(D(k(o)("common.table.delete")), 1)
2672
2674
  ]),
2673
2675
  _: 1
2674
- })
2676
+ })) : z("", !0)
2675
2677
  ]),
2676
2678
  _: 2
2677
2679
  }, 1032, ["onConfirm"])
2678
2680
  ]),
2679
2681
  _: 1
2680
- }, 8, ["label"])) : B("", !0),
2681
- r.operations !== void 0 && !r.readOnly ? (p(), N(ie, {
2682
+ }, 8, ["label"])) : z("", !0),
2683
+ r.operations !== void 0 && !r.readOnly ? (p(), V(ie, {
2682
2684
  key: 2,
2683
2685
  label: k(o)("common.table.operation"),
2684
2686
  width: "120"
2685
2687
  }, {
2686
2688
  default: m((J) => [
2687
- (p(!0), A(te, null, ce(r.operations, (Ce) => (p(), N(Y, {
2689
+ (p(!0), A(te, null, ce(r.operations, (Ce) => (p(), V(Y, {
2688
2690
  class: "operation-button",
2689
2691
  link: "",
2690
2692
  type: "primary",
@@ -2701,25 +2703,25 @@ const Be = (e) => {
2701
2703
  }, 1032, ["onClick"]))), 128))
2702
2704
  ]),
2703
2705
  _: 1
2704
- }, 8, ["label"])) : B("", !0)
2706
+ }, 8, ["label"])) : z("", !0)
2705
2707
  ];
2706
2708
  }),
2707
2709
  _: 1
2708
2710
  }, 8, ["data"])), [
2709
2711
  [co, G.value]
2710
2712
  ]),
2711
- I.value ? B("", !0) : (p(), N(Re, {
2713
+ I.value ? z("", !0) : (p(), V(Re, {
2712
2714
  key: 0,
2713
2715
  size: "small",
2714
2716
  background: "",
2715
2717
  onSizeChange: v,
2716
2718
  onCurrentChange: $,
2717
- currentPage: z.pageNo,
2718
- "onUpdate:currentPage": O[1] || (O[1] = (se) => z.pageNo = se),
2719
+ currentPage: q.pageNo,
2720
+ "onUpdate:currentPage": O[1] || (O[1] = (se) => q.pageNo = se),
2719
2721
  "page-sizes": [10, 20, 50, 100],
2720
- "page-size": z.pageSize,
2722
+ "page-size": q.pageSize,
2721
2723
  layout: "total, sizes, prev, pager, next",
2722
- total: z.totalElements
2724
+ total: q.totalElements
2723
2725
  }, null, 8, ["currentPage", "page-size", "total"])),
2724
2726
  h(io, {
2725
2727
  model: f.model,
@@ -2732,17 +2734,17 @@ const Be = (e) => {
2732
2734
  ], 2);
2733
2735
  };
2734
2736
  }
2735
- }), nt = /* @__PURE__ */ pe(Js, [["__scopeId", "data-v-c534121e"]]), Ws = { class: "nav-bar" }, Ys = {
2737
+ }), nt = /* @__PURE__ */ pe(Js, [["__scopeId", "data-v-682537f9"]]), Ws = { class: "nav-bar" }, Ys = {
2736
2738
  key: 0,
2737
2739
  class: "info-card-wrapper"
2738
2740
  }, Qs = { class: "icon-wrapper" }, Ks = { class: "info-wrapper" }, Xs = { class: "title-wrapper" }, Zs = { class: "tabs-wrapper" }, er = { class: "dialog-footer" }, tr = /* @__PURE__ */ _e({
2739
2741
  __name: "DetailPage",
2740
2742
  setup(e) {
2741
- const { t } = Je(), o = He(), n = st(), s = De(() => o.query.id), r = V(!1), l = V(!1), a = V("view"), i = V(), d = V(-1), w = V(), y = V(), M = V("summary"), T = V(""), j = V(""), R = V(""), G = V(0), I = re({
2743
+ const { t } = Je(), o = He(), n = st(), s = De(() => o.query.id), r = M(!1), l = M(!1), a = M("view"), i = M(), d = M(-1), w = M(), y = M(), N = M("summary"), T = M(""), j = M(""), R = M(""), G = M(0), I = re({
2742
2744
  api: "",
2743
2745
  fields: []
2744
2746
  }), Q = re([]);
2745
- let z = [];
2747
+ let q = [];
2746
2748
  Se([
2747
2749
  () => n.currentRoute.value,
2748
2750
  he
@@ -2757,7 +2759,7 @@ const Be = (e) => {
2757
2759
  }
2758
2760
  function oe() {
2759
2761
  var $;
2760
- let u = ($ = z[d.value].api) == null ? void 0 : $.replace("/select", "");
2762
+ let u = ($ = q[d.value].api) == null ? void 0 : $.replace("/select", "");
2761
2763
  u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
2762
2764
  const c = I.api + "/" + s.value + u, v = y.value.multipleSelection.map((F) => F.id);
2763
2765
  Oe(c, "POST", v).then(() => {
@@ -2765,20 +2767,20 @@ const Be = (e) => {
2765
2767
  });
2766
2768
  }
2767
2769
  function C(u, c, v) {
2768
- var q;
2770
+ var B;
2769
2771
  v.functions || (v.functions = {}), v.functions.create = () => {
2770
2772
  l.value = !0, y.value && y.value.refresh();
2771
2773
  };
2772
2774
  let $ = Ue(c);
2773
2775
  $.tableConfig || ($.tableConfig = {}), $.tableConfig.selectMode = !0, $.tableConfig.queryParams = {}, u.queryParamName && ($.tableConfig.queryParams[u.queryParamName] = s.value);
2774
2776
  for (var F in $.fields)
2775
- $.fields[F].tableColumnAttributes && (q = $.fields[F].tableColumnAttributes) != null && q.link && ($.fields[F].tableColumnAttributes.link = !1);
2776
- z.push($), v.labels = {
2777
+ $.fields[F].tableColumnAttributes && (B = $.fields[F].tableColumnAttributes) != null && B.link && ($.fields[F].tableColumnAttributes.link = !1);
2778
+ q.push($), v.labels = {
2777
2779
  create: "common.table.add",
2778
2780
  delete: "common.table.remove"
2779
2781
  }, v.functions.batchDelete = (S) => {
2780
2782
  var O;
2781
- let U = (O = z[d.value].api) == null ? void 0 : O.replace("/select", "");
2783
+ let U = (O = q[d.value].api) == null ? void 0 : O.replace("/select", "");
2782
2784
  U = U == null ? void 0 : U.substring(U.lastIndexOf("/"));
2783
2785
  const b = I.api + "/" + s.value + U, f = S.map((L) => L.id);
2784
2786
  de.delete(`${b}/${f.join(",")}`).then(({ data: L }) => {
@@ -2790,7 +2792,7 @@ const Be = (e) => {
2790
2792
  functions: {
2791
2793
  click: (S, U) => {
2792
2794
  var O;
2793
- let b = (O = z[d.value].api) == null ? void 0 : O.replace("/select", "");
2795
+ let b = (O = q[d.value].api) == null ? void 0 : O.replace("/select", "");
2794
2796
  b = b == null ? void 0 : b.substring(b.lastIndexOf("/"));
2795
2797
  const f = I.api + "/" + s.value + b;
2796
2798
  Oe(f, "DELETE", U.id).then(() => {
@@ -2802,7 +2804,7 @@ const Be = (e) => {
2802
2804
  ], $.api += "/select";
2803
2805
  }
2804
2806
  function _() {
2805
- var $, F, q;
2807
+ var $, F, B;
2806
2808
  Q.splice(0);
2807
2809
  const u = o.params.model;
2808
2810
  if (he.value[u] === void 0) {
@@ -2812,7 +2814,7 @@ const Be = (e) => {
2812
2814
  console.debug("Detail page model found:", u, he.value[u]);
2813
2815
  Be(I);
2814
2816
  const c = Ue(he.value[u]);
2815
- Object.assign(I, c), G.value++, d.value = -1, M.value = "summary";
2817
+ Object.assign(I, c), G.value++, d.value = -1, N.value = "summary";
2816
2818
  const v = (F = ($ = I.pageConfig) == null ? void 0 : $.detailPage) == null ? void 0 : F.tabs;
2817
2819
  if (v)
2818
2820
  for (let S of v) {
@@ -2820,11 +2822,11 @@ const Be = (e) => {
2820
2822
  if (Q.push(U), S.type === "table") {
2821
2823
  U.tableConfig || (U.tableConfig = {});
2822
2824
  let b = U.tableConfig;
2823
- b.showPane = !1, S.modelRelationType === "associated" ? C(S, U, b) : S.modelRelationType === "child" && (z.push({
2825
+ b.showPane = !1, S.modelRelationType === "associated" ? C(S, U, b) : S.modelRelationType === "child" && (q.push({
2824
2826
  fields: []
2825
2827
  }), U.formConfig === void 0 && (U.formConfig = {}), U.formConfig.functions === void 0 && (U.formConfig.functions = {}), S.queryParamName && (U.formConfig.functions.beforeSubmit = (f) => {
2826
2828
  f[S.queryParamName] = s.value;
2827
- })), b.queryParams || (b.queryParams = {}), S.queryParamName && (b.queryParams[S.queryParamName] = s.value), S.queryParams && Object.assign(b.queryParams, S.queryParams), b.readOnly = (q = S.readOnly) != null ? q : !1, S.includeFields && (U.fields = U.fields.filter((f) => {
2829
+ })), b.queryParams || (b.queryParams = {}), S.queryParamName && (b.queryParams[S.queryParamName] = s.value), S.queryParams && Object.assign(b.queryParams, S.queryParams), b.readOnly = (B = S.readOnly) != null ? B : !1, S.includeFields && (U.fields = U.fields.filter((f) => {
2828
2830
  var O;
2829
2831
  return (O = S.includeFields) == null ? void 0 : O.includes(f.prop);
2830
2832
  })), S.excludeFields && (U.fields = U.fields.filter((f) => {
@@ -2849,10 +2851,10 @@ const Be = (e) => {
2849
2851
  Le(() => {
2850
2852
  var v, $, F;
2851
2853
  const c = ($ = (v = I.pageConfig) == null ? void 0 : v.detailPage) == null ? void 0 : $.infoCard;
2852
- c && (T.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", j.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", R.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (F = I.fields) == null || F.forEach((q) => {
2854
+ c && (T.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", j.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", R.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (F = I.fields) == null || F.forEach((B) => {
2853
2855
  var S, U;
2854
- if (q.prop === c.tagFieldProp) {
2855
- const b = (U = (S = q.tableColumnAttributes) == null ? void 0 : S.functions) == null ? void 0 : U.transformValue;
2856
+ if (B.prop === c.tagFieldProp) {
2857
+ const b = (U = (S = B.tableColumnAttributes) == null ? void 0 : S.functions) == null ? void 0 : U.transformValue;
2856
2858
  b && (R.value = b(R.value));
2857
2859
  }
2858
2860
  }));
@@ -2871,7 +2873,7 @@ const Be = (e) => {
2871
2873
  }
2872
2874
  return (u, c) => {
2873
2875
  var Y, ae, fe, le, ie, Z;
2874
- const v = x("el-breadcrumb-item"), $ = x("el-breadcrumb"), F = x("el-button"), q = x("el-icon"), S = x("el-dropdown-item"), U = x("el-dropdown-menu"), b = x("el-dropdown"), f = x("el-tag"), O = x("el-tab-pane"), L = x("el-tabs"), X = x("el-dialog");
2876
+ const v = x("el-breadcrumb-item"), $ = x("el-breadcrumb"), F = x("el-button"), B = x("el-icon"), S = x("el-dropdown-item"), U = x("el-dropdown-menu"), b = x("el-dropdown"), f = x("el-tag"), O = x("el-tab-pane"), L = x("el-tabs"), X = x("el-dialog");
2875
2877
  return p(), A(te, null, [
2876
2878
  g("div", Ws, [
2877
2879
  h($, null, {
@@ -2919,13 +2921,13 @@ const Be = (e) => {
2919
2921
  ]),
2920
2922
  _: 1
2921
2923
  }),
2922
- ((ae = (Y = I.pageConfig) == null ? void 0 : Y.detailPage) == null ? void 0 : ae.operationButtons) !== void 0 ? (p(), N(b, { key: 0 }, {
2924
+ ((ae = (Y = I.pageConfig) == null ? void 0 : Y.detailPage) == null ? void 0 : ae.operationButtons) !== void 0 ? (p(), V(b, { key: 0 }, {
2923
2925
  dropdown: m(() => [
2924
2926
  h(U, null, {
2925
2927
  default: m(() => {
2926
2928
  var W, ge;
2927
2929
  return [
2928
- (p(!0), A(te, null, ce((ge = (W = I.pageConfig) == null ? void 0 : W.detailPage) == null ? void 0 : ge.operationButtons, (be) => (p(), N(S, {
2930
+ (p(!0), A(te, null, ce((ge = (W = I.pageConfig) == null ? void 0 : W.detailPage) == null ? void 0 : ge.operationButtons, (be) => (p(), V(S, {
2929
2931
  onClick: (Re) => be.function(i.value.formData)
2930
2932
  }, {
2931
2933
  default: m(() => [
@@ -2942,7 +2944,7 @@ const Be = (e) => {
2942
2944
  h(F, { style: { margin: "0 10px" } }, {
2943
2945
  default: m(() => [
2944
2946
  K(D(k(t)("common.basic.more")), 1),
2945
- h(q, { class: "el-icon--right" }, {
2947
+ h(B, { class: "el-icon--right" }, {
2946
2948
  default: m(() => [
2947
2949
  h(k($o))
2948
2950
  ]),
@@ -2953,7 +2955,7 @@ const Be = (e) => {
2953
2955
  })
2954
2956
  ]),
2955
2957
  _: 1
2956
- })) : B("", !0),
2958
+ })) : z("", !0),
2957
2959
  h(F, {
2958
2960
  icon: k(Dt),
2959
2961
  onClick: P
@@ -2962,12 +2964,12 @@ const Be = (e) => {
2962
2964
  ]),
2963
2965
  (le = (fe = I.pageConfig) == null ? void 0 : fe.detailPage) != null && le.infoCard ? (p(), A("div", Ys, [
2964
2966
  g("div", Qs, [
2965
- (p(), N(et((ie = I.pageConfig.detailPage.infoCard.icon) != null ? ie : ""), { class: "icon" }))
2967
+ (p(), V(et((ie = I.pageConfig.detailPage.infoCard.icon) != null ? ie : ""), { class: "icon" }))
2966
2968
  ]),
2967
2969
  g("div", Ks, [
2968
2970
  g("div", Xs, [
2969
2971
  g("h1", null, D(T.value), 1),
2970
- ((Z = R.value) == null ? void 0 : Z.length) > 0 ? (p(), N(f, {
2972
+ ((Z = R.value) == null ? void 0 : Z.length) > 0 ? (p(), V(f, {
2971
2973
  key: 0,
2972
2974
  size: "small"
2973
2975
  }, {
@@ -2975,15 +2977,15 @@ const Be = (e) => {
2975
2977
  K(D(R.value), 1)
2976
2978
  ]),
2977
2979
  _: 1
2978
- })) : B("", !0)
2980
+ })) : z("", !0)
2979
2981
  ]),
2980
2982
  g("span", null, D(j.value), 1)
2981
2983
  ])
2982
- ])) : B("", !0),
2984
+ ])) : z("", !0),
2983
2985
  g("div", Zs, [
2984
2986
  h(L, {
2985
- modelValue: M.value,
2986
- "onUpdate:modelValue": c[0] || (c[0] = (W) => M.value = W),
2987
+ modelValue: N.value,
2988
+ "onUpdate:modelValue": c[0] || (c[0] = (W) => N.value = W),
2987
2989
  onTabClick: H
2988
2990
  }, {
2989
2991
  default: m(() => {
@@ -3007,7 +3009,7 @@ const Be = (e) => {
3007
3009
  }, 8, ["label"]),
3008
3010
  (p(!0), A(te, null, ce((ge = (W = I.pageConfig) == null ? void 0 : W.detailPage) == null ? void 0 : ge.tabs, (be) => {
3009
3011
  var Re;
3010
- return p(), N(O, {
3012
+ return p(), V(O, {
3011
3013
  label: k(t)((Re = be.name) != null ? Re : "")
3012
3014
  }, null, 8, ["label"]);
3013
3015
  }), 256))
@@ -3015,12 +3017,12 @@ const Be = (e) => {
3015
3017
  }),
3016
3018
  _: 1
3017
3019
  }, 8, ["modelValue"]),
3018
- d.value >= 0 ? (p(), N(nt, {
3020
+ d.value >= 0 ? (p(), V(nt, {
3019
3021
  key: 0,
3020
3022
  ref_key: "tabPaneTableRef",
3021
3023
  ref: w,
3022
3024
  model: Q[d.value]
3023
- }, null, 8, ["model"])) : B("", !0),
3025
+ }, null, 8, ["model"])) : z("", !0),
3024
3026
  h(X, {
3025
3027
  modelValue: l.value,
3026
3028
  "onUpdate:modelValue": c[2] || (c[2] = (W) => l.value = W),
@@ -3049,12 +3051,12 @@ const Be = (e) => {
3049
3051
  ])
3050
3052
  ]),
3051
3053
  default: m(() => [
3052
- d.value >= 0 ? (p(), N(nt, {
3054
+ d.value >= 0 ? (p(), V(nt, {
3053
3055
  key: 0,
3054
3056
  ref_key: "selectTableRef",
3055
3057
  ref: y,
3056
- model: k(z)[d.value]
3057
- }, null, 8, ["model"])) : B("", !0)
3058
+ model: k(q)[d.value]
3059
+ }, null, 8, ["model"])) : z("", !0)
3058
3060
  ]),
3059
3061
  _: 1
3060
3062
  }, 8, ["modelValue", "title"])
@@ -3073,13 +3075,13 @@ const Be = (e) => {
3073
3075
  }), or = /* @__PURE__ */ pe(tr, [["__scopeId", "data-v-f9250724"]]), nr = { class: "page-title" }, sr = /* @__PURE__ */ _e({
3074
3076
  __name: "TablePage",
3075
3077
  setup(e) {
3076
- const { t } = Je(), o = He(), n = st(), s = V(), r = V([]), l = re({
3078
+ const { t } = Je(), o = He(), n = st(), s = M(), r = M([]), l = re({
3077
3079
  api: "",
3078
3080
  fields: []
3079
3081
  }), a = re(We({}, l));
3080
3082
  function i() {
3081
- var w, y, M, T, j;
3082
- r.value = [], l.pageConfig && ((y = (w = l.pageConfig) == null ? void 0 : w.tablePage) != null && y.tabViewAttributes) && (r.value = (j = (T = (M = l.pageConfig) == null ? void 0 : M.tablePage) == null ? void 0 : T.tabViewAttributes) == null ? void 0 : j.map((R) => {
3083
+ var w, y, N, T, j;
3084
+ r.value = [], l.pageConfig && ((y = (w = l.pageConfig) == null ? void 0 : w.tablePage) != null && y.tabViewAttributes) && (r.value = (j = (T = (N = l.pageConfig) == null ? void 0 : N.tablePage) == null ? void 0 : T.tabViewAttributes) == null ? void 0 : j.map((R) => {
3083
3085
  let G;
3084
3086
  return R.modelKey && he.value[R.modelKey] ? G = Ue(he.value[R.modelKey]) : G = Ue(l), R.queryParams && (G.tableConfig || (G.tableConfig = {}), G.tableConfig.queryParams = R.queryParams), R.fields && (G.fields = R.fields), R.modelKey && (G.breadcrumbRoute = l.route), {
3085
3087
  key: R.key,
@@ -3091,7 +3093,7 @@ const Be = (e) => {
3091
3093
  }));
3092
3094
  }
3093
3095
  function d() {
3094
- var M, T;
3096
+ var N, T;
3095
3097
  console.log("Init table page, loading model:", o.params.model), console.log("Current model list", he.value);
3096
3098
  const w = o.params.model;
3097
3099
  if (he.value[w] === void 0) {
@@ -3100,7 +3102,7 @@ const Be = (e) => {
3100
3102
  }
3101
3103
  Be(l);
3102
3104
  const y = Ue(he.value[w]);
3103
- Object.assign(l, y), (T = (M = l.pageConfig) == null ? void 0 : M.tablePage) != null && T.tabViewAttributes || Object.assign(a, l), i();
3105
+ Object.assign(l, y), (T = (N = l.pageConfig) == null ? void 0 : N.tablePage) != null && T.tabViewAttributes || Object.assign(a, l), i();
3104
3106
  }
3105
3107
  return Se([
3106
3108
  () => n.currentRoute.value,
@@ -3112,19 +3114,19 @@ const Be = (e) => {
3112
3114
  deep: !0
3113
3115
  }), (w, y) => {
3114
3116
  var T;
3115
- const M = x("el-scrollbar");
3117
+ const N = x("el-scrollbar");
3116
3118
  return p(), A(te, null, [
3117
3119
  g("h1", nr, D(k(t)((T = l.name) != null ? T : "")), 1),
3118
- h(M, null, {
3120
+ h(N, null, {
3119
3121
  default: m(() => {
3120
3122
  var j, R;
3121
3123
  return [
3122
- (R = (j = l.pageConfig) == null ? void 0 : j.tablePage) != null && R.tabViewAttributes ? (p(), N(ao, {
3124
+ (R = (j = l.pageConfig) == null ? void 0 : j.tablePage) != null && R.tabViewAttributes ? (p(), V(ao, {
3123
3125
  key: 0,
3124
3126
  class: "tabs-wrapper",
3125
3127
  cards: r.value,
3126
3128
  tableRef: s.value
3127
- }, null, 8, ["cards", "tableRef"])) : B("", !0)
3129
+ }, null, 8, ["cards", "tableRef"])) : z("", !0)
3128
3130
  ];
3129
3131
  }),
3130
3132
  _: 1