@vancone/console-component 0.1.1-beta.52 → 0.1.1-beta.53

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.
@@ -171,21 +171,21 @@ const sn = { render: nn }, rn = { class: "app-catalog-wrapper" }, an = { class:
171
171
  (p(!0), V(ce, null, ge(t, (h) => (p(), V("div", ln, [
172
172
  w("h1", null, R(h.name), 1),
173
173
  w("div", cn, [
174
- (p(!0), V(ce, null, ge(h.apps, (b) => {
174
+ (p(!0), V(ce, null, ge(h.apps, (y) => {
175
175
  var x, N;
176
176
  return p(), V("a", {
177
- style: je([{ "text-decoration": "none" }, { pointerEvents: ((x = b.homepageUrl) == null ? void 0 : x.length) > 0 ? "auto" : "none" }]),
177
+ style: je([{ "text-decoration": "none" }, { pointerEvents: ((x = y.homepageUrl) == null ? void 0 : x.length) > 0 ? "auto" : "none" }]),
178
178
  target: "_blank",
179
- href: b.homepageUrl
179
+ href: y.homepageUrl
180
180
  }, [
181
- b.iconSvg !== void 0 ? (p(), V("div", {
181
+ y.iconSvg !== void 0 ? (p(), V("div", {
182
182
  key: 0,
183
183
  class: "app-icon",
184
- innerHTML: b.iconSvg
184
+ innerHTML: y.iconSvg
185
185
  }, null, 8, dn)) : (p(), V("div", pn, " ")),
186
186
  w("h2", {
187
- style: je({ color: ((N = b.homepageUrl) == null ? void 0 : N.length) > 0 ? "#555" : "#bbb" })
188
- }, R(b.name), 5)
187
+ style: je({ color: ((N = y.homepageUrl) == null ? void 0 : N.length) > 0 ? "#555" : "#bbb" })
188
+ }, R(y.name), 5)
189
189
  ], 12, un);
190
190
  }), 256))
191
191
  ])
@@ -379,7 +379,7 @@ const Pn = { class: "header" }, In = { class: "title" }, Vn = { class: "right" }
379
379
  id: "",
380
380
  name: ""
381
381
  }
382
- ), b = T(""), x = T(ct.global.locale), N = me([
382
+ ), y = T(""), x = T(ct.global.locale), N = me([
383
383
  {
384
384
  id: "en",
385
385
  name: "English"
@@ -391,9 +391,9 @@ const Pn = { class: "header" }, In = { class: "title" }, Vn = { class: "right" }
391
391
  ]);
392
392
  Gt(() => {
393
393
  var P, K, _;
394
- b.value = decodeURIComponent(M("passport_username").replace(/\+/g, " ")), b.value === "" && Ho().then(({ data: I }) => {
394
+ y.value = decodeURIComponent(M("passport_username").replace(/\+/g, " ")), y.value === "" && Ho().then(({ data: I }) => {
395
395
  var u;
396
- I.code == 0 && (b.value = (u = I.data.name) != null ? u : I.data.displayId);
396
+ I.code == 0 && (y.value = (u = I.data.name) != null ? u : I.data.displayId);
397
397
  }), (P = a.headerProjectConfig) != null && P.api ? Se((K = a.headerProjectConfig) == null ? void 0 : K.api, "GET", {}).then(({ data: I }) => {
398
398
  i.value = I.data;
399
399
  }) : (_ = a.headerProjectConfig) != null && _.items && (i.value = a.headerProjectConfig.items);
@@ -552,7 +552,7 @@ const Pn = { class: "header" }, In = { class: "title" }, Vn = { class: "right" }
552
552
  ref: o
553
553
  }, {
554
554
  default: m(() => [
555
- w("span", Un, R(b.value.substring(0, 2)), 1)
555
+ w("span", Un, R(y.value.substring(0, 2)), 1)
556
556
  ]),
557
557
  _: 1
558
558
  }, 512),
@@ -573,11 +573,11 @@ const Pn = { class: "header" }, In = { class: "title" }, Vn = { class: "right" }
573
573
  src: ""
574
574
  }, {
575
575
  default: m(() => [
576
- w("span", Dn, R(b.value.substring(0, 2)), 1)
576
+ w("span", Dn, R(y.value.substring(0, 2)), 1)
577
577
  ]),
578
578
  _: 1
579
579
  }),
580
- w("span", null, R(b.value), 1)
580
+ w("span", null, R(y.value), 1)
581
581
  ]),
582
582
  g($, { class: "user-menu" }, {
583
583
  default: m(() => [
@@ -674,7 +674,7 @@ const Pn = { class: "header" }, In = { class: "title" }, Vn = { class: "right" }
674
674
  index: o.menu.path
675
675
  }, {
676
676
  title: m(() => {
677
- var a, i, h, b, x;
677
+ var a, i, h, y, x;
678
678
  return [
679
679
  w("div", Rn, [
680
680
  (a = t.menu.meta) != null && a.icon ? (p(), E(it((i = o.menu.meta) == null ? void 0 : i.icon), {
@@ -687,7 +687,7 @@ const Pn = { class: "header" }, In = { class: "title" }, Vn = { class: "right" }
687
687
  innerHTML: t.menu.meta.svgXml
688
688
  }, null, 8, Ln)) : F("", !0)
689
689
  ]),
690
- w("span", null, R(o.$t((x = (b = o.menu.meta) == null ? void 0 : b.title) != null ? x : "")), 1)
690
+ w("span", null, R(o.$t((x = (y = o.menu.meta) == null ? void 0 : y.title) != null ? x : "")), 1)
691
691
  ];
692
692
  }),
693
693
  default: m(() => [
@@ -1184,8 +1184,8 @@ function fs(e, t) {
1184
1184
  value: a._getters.reduce((i, h) => {
1185
1185
  try {
1186
1186
  i[h] = a[h];
1187
- } catch (b) {
1188
- i[h] = b;
1187
+ } catch (y) {
1188
+ i[h] = y;
1189
1189
  }
1190
1190
  return i;
1191
1191
  }, {})
@@ -1251,7 +1251,7 @@ function ms(e, t) {
1251
1251
  }, (o) => {
1252
1252
  const n = typeof o.now == "function" ? o.now.bind(o) : Date.now;
1253
1253
  t.$onAction(({ after: l, onError: a, name: i, args: h }) => {
1254
- const b = co++;
1254
+ const y = co++;
1255
1255
  o.addTimelineEvent({
1256
1256
  layerId: Ue,
1257
1257
  event: {
@@ -1263,7 +1263,7 @@ function ms(e, t) {
1263
1263
  action: we(i),
1264
1264
  args: h
1265
1265
  },
1266
- groupId: b
1266
+ groupId: y
1267
1267
  }
1268
1268
  }), l((x) => {
1269
1269
  Pe = void 0, o.addTimelineEvent({
@@ -1278,7 +1278,7 @@ function ms(e, t) {
1278
1278
  args: h,
1279
1279
  result: x
1280
1280
  },
1281
- groupId: b
1281
+ groupId: y
1282
1282
  }
1283
1283
  });
1284
1284
  }), a((x) => {
@@ -1295,7 +1295,7 @@ function ms(e, t) {
1295
1295
  args: h,
1296
1296
  error: x
1297
1297
  },
1298
- groupId: b
1298
+ groupId: y
1299
1299
  }
1300
1300
  });
1301
1301
  });
@@ -1463,11 +1463,11 @@ function Ft(e, t, o, n) {
1463
1463
  let i;
1464
1464
  function h() {
1465
1465
  !a && (process.env.NODE_ENV === "production" || !n) && (o.state.value[e] = s ? s() : {});
1466
- const b = process.env.NODE_ENV !== "production" && n ? (
1466
+ const y = process.env.NODE_ENV !== "production" && n ? (
1467
1467
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
1468
1468
  Pt(T(s ? s() : {}).value)
1469
1469
  ) : Pt(o.state.value[e]);
1470
- return _e(b, r, Object.keys(l || {}).reduce((x, N) => (process.env.NODE_ENV !== "production" && N in b && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${N}" in store "${e}".`), x[N] = Te(Ie(() => {
1470
+ return _e(y, r, Object.keys(l || {}).reduce((x, N) => (process.env.NODE_ENV !== "production" && N in y && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${N}" in store "${e}".`), x[N] = Te(Ie(() => {
1471
1471
  Qe(o);
1472
1472
  const M = o._s.get(e);
1473
1473
  return l[N].call(M, M);
@@ -1484,14 +1484,14 @@ function bt(e, t, o = {}, n, s, r) {
1484
1484
  process.env.NODE_ENV !== "production" && !Xt && (i.onTrigger = (d) => {
1485
1485
  h ? M = d : h == !1 && !u._hotUpdating && (Array.isArray(M) ? M.push(d) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
1486
1486
  });
1487
- let h, b, x = [], N = [], M;
1487
+ let h, y, x = [], N = [], M;
1488
1488
  const X = n.state.value[e];
1489
1489
  !r && !X && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
1490
1490
  const G = T({});
1491
1491
  let ee;
1492
1492
  function B(d) {
1493
1493
  let c;
1494
- h = b = !1, process.env.NODE_ENV !== "production" && (M = []), typeof d == "function" ? (d(n.state.value[e]), c = {
1494
+ h = y = !1, process.env.NODE_ENV !== "production" && (M = []), typeof d == "function" ? (d(n.state.value[e]), c = {
1495
1495
  type: ke.patchFunction,
1496
1496
  storeId: e,
1497
1497
  events: M
@@ -1504,7 +1504,7 @@ function bt(e, t, o = {}, n, s, r) {
1504
1504
  const S = ee = Symbol();
1505
1505
  Ye().then(() => {
1506
1506
  ee === S && (h = !0);
1507
- }), b = !0, Re(x, c, n.state.value[e]);
1507
+ }), y = !0, Re(x, c, n.state.value[e]);
1508
1508
  }
1509
1509
  const oe = r ? function() {
1510
1510
  const { state: c } = o, S = c ? c() : {};
@@ -1562,7 +1562,7 @@ function bt(e, t, o = {}, n, s, r) {
1562
1562
  $reset: oe,
1563
1563
  $subscribe(d, c = {}) {
1564
1564
  const S = Tt(x, d, c.detached, () => $()), $ = l.run(() => Oe(() => n.state.value[e], (D) => {
1565
- (c.flush === "sync" ? b : h) && d({
1565
+ (c.flush === "sync" ? y : h) && d({
1566
1566
  storeId: e,
1567
1567
  type: ke.direct,
1568
1568
  events: M
@@ -1614,7 +1614,7 @@ function bt(e, t, o = {}, n, s, r) {
1614
1614
  nt(u, c, ft(d.$state, c));
1615
1615
  }), Object.keys(u.$state).forEach((c) => {
1616
1616
  c in d.$state || ht(u, c);
1617
- }), h = !1, b = !1, n.state.value[e] = ft(d._hmrPayload, "hotState"), b = !0, Ye().then(() => {
1617
+ }), h = !1, y = !1, n.state.value[e] = ft(d._hmrPayload, "hotState"), y = !0, Ye().then(() => {
1618
1618
  h = !0;
1619
1619
  });
1620
1620
  for (const c in d._hmrPayload.actions) {
@@ -1662,7 +1662,7 @@ function bt(e, t, o = {}, n, s, r) {
1662
1662
  })));
1663
1663
  }), process.env.NODE_ENV !== "production" && u.$state && typeof u.$state == "object" && typeof u.$state.constructor == "function" && !u.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
1664
1664
  state: () => new MyClass()
1665
- Found in store "${u.$id}".`), X && r && o.hydrate && o.hydrate(u.$state, X), h = !0, b = !0, u;
1665
+ Found in store "${u.$id}".`), X && r && o.hydrate && o.hydrate(u.$state, X), h = !0, y = !0, u;
1666
1666
  }
1667
1667
  /*! #__NO_SIDE_EFFECTS__ */
1668
1668
  // @__NO_SIDE_EFFECTS__
@@ -1679,7 +1679,7 @@ function ys(e, t, o) {
1679
1679
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
1680
1680
  This will fail in production.`);
1681
1681
  a = We, a._s.has(n) || (r ? bt(n, t, s, a) : Ft(n, s, a), process.env.NODE_ENV !== "production" && (l._pinia = a));
1682
- const b = a._s.get(n);
1682
+ const y = a._s.get(n);
1683
1683
  if (process.env.NODE_ENV !== "production" && i) {
1684
1684
  const x = "__hot:" + n, N = r ? bt(x, t, s, a, !0) : Ft(x, _e({}, s), a, !0);
1685
1685
  i._hotUpdate(N), delete a.state.value[x], a._s.delete(x);
@@ -1689,10 +1689,10 @@ This will fail in production.`);
1689
1689
  if (x && x.proxy && // avoid adding stores that are just built for hot module replacement
1690
1690
  !i) {
1691
1691
  const N = x.proxy, M = "_pStores" in N ? N._pStores : N._pStores = {};
1692
- M[n] = b;
1692
+ M[n] = y;
1693
1693
  }
1694
1694
  }
1695
- return b;
1695
+ return y;
1696
1696
  }
1697
1697
  return l.$id = n, l;
1698
1698
  }
@@ -1817,15 +1817,15 @@ function Rt(e, {
1817
1817
  omit: l,
1818
1818
  beforeHydrate: a,
1819
1819
  afterHydrate: i
1820
- }, h, b = !0) {
1820
+ }, h, y = !0) {
1821
1821
  try {
1822
- b && (a == null || a(h));
1822
+ y && (a == null || a(h));
1823
1823
  const x = t.getItem(n);
1824
1824
  if (x) {
1825
1825
  const N = o.deserialize(x), M = r ? mo(N, r) : N, X = l ? ho(M, l) : M;
1826
1826
  e.$patch(X);
1827
1827
  }
1828
- b && (i == null || i(h));
1828
+ y && (i == null || i(h));
1829
1829
  } catch (x) {
1830
1830
  s && console.error("[pinia-plugin-persistedstate]", x);
1831
1831
  }
@@ -1865,7 +1865,7 @@ function Es(e, t, o) {
1865
1865
  });
1866
1866
  }, a.forEach((i) => {
1867
1867
  Rt(s, i, e), s.$subscribe(
1868
- (h, b) => Lt(b, i),
1868
+ (h, y) => Lt(y, i),
1869
1869
  { detached: !0 }
1870
1870
  );
1871
1871
  });
@@ -1876,7 +1876,7 @@ function Ps(e = {}) {
1876
1876
  Es(
1877
1877
  t,
1878
1878
  (n) => {
1879
- var s, r, l, a, i, h, b;
1879
+ var s, r, l, a, i, h, y;
1880
1880
  return {
1881
1881
  key: (e.key ? e.key : (x) => x)((s = n.key) != null ? s : t.store.$id),
1882
1882
  debug: (l = (r = n.debug) != null ? r : e.debug) != null ? l : !1,
@@ -1884,7 +1884,7 @@ function Ps(e = {}) {
1884
1884
  serialize: (x) => JSON.stringify(x),
1885
1885
  deserialize: (x) => $s(x)
1886
1886
  },
1887
- storage: (b = (h = n.storage) != null ? h : e.storage) != null ? b : window.localStorage,
1887
+ storage: (y = (h = n.storage) != null ? h : e.storage) != null ? y : window.localStorage,
1888
1888
  beforeHydrate: n.beforeHydrate,
1889
1889
  afterHydrate: n.afterHydrate,
1890
1890
  pick: n.pick,
@@ -1970,7 +1970,7 @@ const go = /* @__PURE__ */ ys("console", {
1970
1970
  C(o).query.embedded !== "true" ? (p(), E(_o, {
1971
1971
  key: 0,
1972
1972
  menuCollapsed: n.value,
1973
- "onUpdate:menuCollapsed": a[0] || (a[0] = (b) => n.value = b)
1973
+ "onUpdate:menuCollapsed": a[0] || (a[0] = (y) => n.value = y)
1974
1974
  }, null, 8, ["menuCollapsed"])) : F("", !0),
1975
1975
  g(h, { class: "main-scrollbar" }, {
1976
1976
  default: m(() => [
@@ -2071,7 +2071,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2071
2071
  ), (a, i) => (p(), V("div", Hs, [
2072
2072
  (p(!0), V(ce, null, ge(s.cards, (h) => (p(), V("div", {
2073
2073
  class: zt(["card", { "card-selected": r.value === h.key }]),
2074
- onClick: (b) => l(h)
2074
+ onClick: (y) => l(h)
2075
2075
  }, [
2076
2076
  w("div", Ys, [
2077
2077
  w("div", Js, [
@@ -2114,7 +2114,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2114
2114
  setup(e, { expose: t, emit: o }) {
2115
2115
  const { t: n } = ct.global, s = e, r = me({}), l = T(!1), a = T(), i = me({});
2116
2116
  T(!0);
2117
- const h = (_) => s.mode === "view" && (P(_, void 0) || P(_, "input") || P(_, "select") || P(_, "password") || P(_, "input-number") || P(_, "date") || P(_, "time") || P(_, "datetime")), b = Ie(() => s.model.fields ? s.model.fields.filter(
2117
+ const h = (_) => s.mode === "view" && (P(_, void 0) || P(_, "input") || P(_, "select") || P(_, "password") || P(_, "input-number") || P(_, "date") || P(_, "time") || P(_, "datetime")), y = Ie(() => s.model.fields ? s.model.fields.filter(
2118
2118
  (_) => {
2119
2119
  var O, L, d, c;
2120
2120
  let I = _.visible !== !1 && ((O = _.formItem) == null ? void 0 : O.visible) !== !1;
@@ -2144,7 +2144,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2144
2144
  const _ = s.model.fields;
2145
2145
  let I = {};
2146
2146
  _ == null || _.forEach((u) => {
2147
- var O, L, d, c, S, $, D, j, A, v, z, H, y;
2147
+ var O, L, d, c, S, $, D, j, A, v, z, H, b;
2148
2148
  if (r[u.prop] = null, u.visible !== !1 && ((O = u.formItem) == null ? void 0 : O.visible) !== !1) {
2149
2149
  if (((L = u.formItem) == null ? void 0 : L.defaultValue) !== void 0 ? r[u.prop] = (d = u.formItem) == null ? void 0 : d.defaultValue : r[u.prop] = void 0, s.mode !== "view") {
2150
2150
  let J = (c = u.formItem) == null ? void 0 : c.validationRule;
@@ -2167,7 +2167,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2167
2167
  });
2168
2168
  } else if (te) {
2169
2169
  let J = te;
2170
- const Y = (H = f == null ? void 0 : f.select) == null ? void 0 : H.queryParamName, ne = (y = f == null ? void 0 : f.select) == null ? void 0 : y.queryParamValueField;
2170
+ const Y = (H = f == null ? void 0 : f.select) == null ? void 0 : H.queryParamName, ne = (b = f == null ? void 0 : f.select) == null ? void 0 : b.queryParamValueField;
2171
2171
  Y && (J = `${J}?${Y}=${s.id}`), ne || Se(J, "GET", {}).then(({ data: se }) => {
2172
2172
  var ae;
2173
2173
  if ((ae = u.formItem) != null && ae.select) {
@@ -2290,14 +2290,14 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2290
2290
  inline: !s.disableInline
2291
2291
  }, {
2292
2292
  default: m(() => [
2293
- (p(!0), V(ce, null, ge(b.value, (v) => (p(), E(D, {
2293
+ (p(!0), V(ce, null, ge(y.value, (v) => (p(), E(D, {
2294
2294
  class: "form-item",
2295
2295
  style: je({ width: s.disableInline ? "100%" : "calc(50% - 32px)" }),
2296
2296
  prop: v.prop,
2297
2297
  label: G(v)
2298
2298
  }, {
2299
2299
  default: m(() => {
2300
- var z, H, y, f, U, q, W, te, re, ue, J, Y, ne, se, ae, fe, de, Ve, et, tt;
2300
+ var z, H, b, f, U, q, W, te, re, ue, J, Y, ne, se, ae, fe, de, Ve, et, tt;
2301
2301
  return [
2302
2302
  oe("input", v) ? (p(), E(u, {
2303
2303
  key: 0,
@@ -2341,7 +2341,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2341
2341
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : F("", !0),
2342
2342
  P(v, "select") && _.mode !== "view" ? (p(), E(S, {
2343
2343
  key: 6,
2344
- multiple: (y = (H = v.formItem) == null ? void 0 : H.select) == null ? void 0 : y.multiple,
2344
+ multiple: (b = (H = v.formItem) == null ? void 0 : H.select) == null ? void 0 : b.multiple,
2345
2345
  "collapse-tags": (U = (f = v.formItem) == null ? void 0 : f.select) == null ? void 0 : U.multiple,
2346
2346
  filterable: (W = (q = v.formItem) == null ? void 0 : q.select) == null ? void 0 : W.allowCreate,
2347
2347
  "allow-create": (re = (te = v.formItem) == null ? void 0 : te.select) == null ? void 0 : re.allowCreate,
@@ -2408,7 +2408,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2408
2408
  function h() {
2409
2409
  l("update:visible", !1), a.value.reset();
2410
2410
  }
2411
- function b() {
2411
+ function y() {
2412
2412
  a.value.submit();
2413
2413
  }
2414
2414
  return t({
@@ -2450,7 +2450,7 @@ const Bs = /* @__PURE__ */ ye(zs, [["render", qs]]), Hs = { class: "card-wrapper
2450
2450
  }),
2451
2451
  g(G, {
2452
2452
  type: "primary",
2453
- onClick: b
2453
+ onClick: y
2454
2454
  }, {
2455
2455
  default: m(() => [
2456
2456
  Q(R(C(n)("common.basic.save")), 1)
@@ -2517,22 +2517,22 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
2517
2517
  model: {}
2518
2518
  },
2519
2519
  setup(e, { expose: t }) {
2520
- const { t: o } = ct.global, n = e, s = me([]), r = me({}), l = T(""), a = T(!1), i = pt(), h = T(""), b = me([]), x = me([]), N = T(), M = T([]), X = T("create"), G = T(!0), ee = T(!1), B = T(""), oe = me({
2520
+ const { t: o } = ct.global, n = e, s = me([]), r = me({}), l = T(""), a = T(!1), i = pt(), h = T(""), y = me([]), x = me([]), N = T(), M = T([]), X = T("create"), G = T(!0), ee = T(!1), B = T(""), oe = me({
2521
2521
  pageSize: 10,
2522
2522
  pageNo: 1,
2523
2523
  totalElements: 0
2524
2524
  });
2525
2525
  let P = {};
2526
2526
  const K = Ie(() => s.filter(
2527
- (y) => {
2527
+ (b) => {
2528
2528
  var f, U;
2529
- return ((f = y.formItem) == null ? void 0 : f.type) !== "password" && y.visible !== !1 && ((U = y.tableColumn) == null ? void 0 : U.visible) !== !1;
2529
+ return ((f = b.formItem) == null ? void 0 : f.type) !== "password" && b.visible !== !1 && ((U = b.tableColumn) == null ? void 0 : U.visible) !== !1;
2530
2530
  }
2531
2531
  ));
2532
- function _(y, f) {
2532
+ function _(b, f) {
2533
2533
  var te, re, ue, J;
2534
- let U = f.row[y.prop];
2535
- const q = (re = (te = y.tableColumn) == null ? void 0 : te.functions) == null ? void 0 : re.transformValue, W = (ue = y.tableColumn) == null ? void 0 : ue.transformValueMappings;
2534
+ let U = f.row[b.prop];
2535
+ const q = (re = (te = b.tableColumn) == null ? void 0 : te.functions) == null ? void 0 : re.transformValue, W = (ue = b.tableColumn) == null ? void 0 : ue.transformValueMappings;
2536
2536
  if (q)
2537
2537
  U = q(U);
2538
2538
  else if (W && W.length > 0) {
@@ -2541,14 +2541,14 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
2541
2541
  U = o(Y.label);
2542
2542
  break;
2543
2543
  }
2544
- } else if (((J = y.formItem) == null ? void 0 : J.type) === "select") {
2545
- const Y = y.formItem.select;
2544
+ } else if (((J = b.formItem) == null ? void 0 : J.type) === "select") {
2545
+ const Y = b.formItem.select;
2546
2546
  if (Y) {
2547
2547
  if (Y.viewModeLabelField)
2548
2548
  U = f.row[Y.viewModeLabelField];
2549
2549
  else if (Y.options && Y.options.length > 0) {
2550
2550
  for (let ne of Y.options)
2551
- if (ne.value === f.row[y.prop]) {
2551
+ if (ne.value === f.row[b.prop]) {
2552
2552
  U = ne.label;
2553
2553
  break;
2554
2554
  }
@@ -2575,29 +2575,29 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
2575
2575
  }
2576
2576
  return U;
2577
2577
  }
2578
- function I(y, f) {
2578
+ function I(b, f) {
2579
2579
  var U, q;
2580
- return y.label ? o(y.label) : (q = (U = y.functions) == null ? void 0 : U.transformLabel) == null ? void 0 : q.call(U, f.$index, f.row);
2580
+ return b.label ? o(b.label) : (q = (U = b.functions) == null ? void 0 : U.transformLabel) == null ? void 0 : q.call(U, f.$index, f.row);
2581
2581
  }
2582
- function u(y) {
2583
- ze(n.model), Object.assign(n.model, y);
2582
+ function u(b) {
2583
+ ze(n.model), Object.assign(n.model, b);
2584
2584
  }
2585
2585
  function O() {
2586
2586
  var f, U, q;
2587
2587
  if (G.value = !0, !n.model || !n.model.api)
2588
2588
  return;
2589
2589
  ze(r), Object.assign(r, (f = n.model.tableConfig) != null ? f : {}), r.display = (U = r.display) != null ? U : {}, r.display.advancedSearch !== !0 && (r.display.advancedSearch = !1), r.display.fileTaskButton !== !0 && (r.display.fileTaskButton = !1), r.display.pagination !== !1 && (r.display.pagination = !0), r.display.pane !== !1 && (r.display.pane = !0), r.display.searchBox !== !1 && (r.display.searchBox = !0), s.splice(0, s.length, ...n.model.fields), l.value = (q = n.model.route) != null ? q : "";
2590
- let y = ot({}, r.queryParams);
2591
- y.pageSize = oe.pageSize, y.pageNo = oe.pageNo, y.search = h.value, Se(n.model.api, "GET", y).then(({ data: W }) => {
2590
+ let b = ot({}, r.queryParams);
2591
+ b.pageSize = oe.pageSize, b.pageNo = oe.pageNo, b.search = h.value, Se(n.model.api, "GET", b).then(({ data: W }) => {
2592
2592
  const { list: te, totalCount: re } = W.data;
2593
- b.splice(0, b.length, ...te), oe.totalElements = re, G.value = !1;
2593
+ y.splice(0, y.length, ...te), oe.totalElements = re, G.value = !1;
2594
2594
  });
2595
2595
  }
2596
2596
  function L() {
2597
- var y, f;
2598
- r.createPageRoutePath !== void 0 ? i.push(r.createPageRoutePath) : ((y = r.functions) == null ? void 0 : y.create) !== void 0 ? (f = r.functions) == null || f.create() : (X.value = "create", B.value = "", a.value = !0);
2597
+ var b, f;
2598
+ r.createPageRoutePath !== void 0 ? i.push(r.createPageRoutePath) : ((b = r.functions) == null ? void 0 : b.create) !== void 0 ? (f = r.functions) == null || f.create() : (X.value = "create", B.value = "", a.value = !0);
2599
2599
  }
2600
- function d(y, f) {
2600
+ function d(b, f) {
2601
2601
  n.model.api && Se(n.model.api, "DELETE", f.id).then(({ data: U }) => {
2602
2602
  U.code === 0 && (a.value = !1, O());
2603
2603
  });
@@ -2612,8 +2612,8 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
2612
2612
  type: "warning"
2613
2613
  }
2614
2614
  ).then(() => {
2615
- var y, f;
2616
- if (((y = r.functions) == null ? void 0 : y.batchDelete) !== void 0)
2615
+ var b, f;
2616
+ if (((b = r.functions) == null ? void 0 : b.batchDelete) !== void 0)
2617
2617
  (f = r.functions) == null || f.batchDelete(M.value);
2618
2618
  else {
2619
2619
  const U = M.value.map((q) => q.id);
@@ -2626,13 +2626,13 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
2626
2626
  N.value.clearSelection();
2627
2627
  });
2628
2628
  }
2629
- function S(y) {
2630
- oe.pageSize = y, O();
2629
+ function S(b) {
2630
+ oe.pageSize = b, O();
2631
2631
  }
2632
- function $(y) {
2633
- oe.pageNo = y, O();
2632
+ function $(b) {
2633
+ oe.pageNo = b, O();
2634
2634
  }
2635
- function D(y, f) {
2635
+ function D(b, f) {
2636
2636
  r.editPageRoutePath !== void 0 ? i.push({
2637
2637
  path: r.editPageRoutePath,
2638
2638
  query: {
@@ -2642,21 +2642,21 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
2642
2642
  }
2643
2643
  function j() {
2644
2644
  var U;
2645
- let y = ((U = n.model.api) != null && U.startsWith("http") ? "" : window.location.origin) + n.model.api + "/export";
2645
+ let b = ((U = n.model.api) != null && U.startsWith("http") ? "" : window.location.origin) + n.model.api + "/export";
2646
2646
  const f = r.queryParams;
2647
- f !== void 0 && Object.keys(f).length > 0 && (y += "?", Object.entries(r.queryParams).map((q) => {
2648
- y += `${q[0]}=${q[1]}&`;
2649
- })), window.open(y);
2647
+ f !== void 0 && Object.keys(f).length > 0 && (b += "?", Object.entries(r.queryParams).map((q) => {
2648
+ b += `${q[0]}=${q[1]}&`;
2649
+ })), window.open(b);
2650
2650
  }
2651
- function A(y) {
2652
- M.value = y;
2651
+ function A(b) {
2652
+ M.value = b;
2653
2653
  }
2654
- function v(y) {
2655
- const f = "i18n(", U = ")", q = y.label;
2656
- return q ? q.startsWith(f) && q.endsWith(U) ? o(q.slice(f.length, -U.length)) : q : y.prop.slice(0, 1).toUpperCase() + y.prop.slice(1).toLowerCase();
2654
+ function v(b) {
2655
+ const f = "i18n(", U = ")", q = b.label;
2656
+ return q ? q.startsWith(f) && q.endsWith(U) ? o(q.slice(f.length, -U.length)) : q : b.prop.slice(0, 1).toUpperCase() + b.prop.slice(1).toLowerCase();
2657
2657
  }
2658
- function z(y) {
2659
- y ? (ee.value = !0, x.splice(0, x.length, ...b), b.splice(0, b.length, ...M.value)) : (ee.value = !1, b.splice(0, b.length, ...x));
2658
+ function z(b) {
2659
+ b ? (ee.value = !0, x.splice(0, x.length, ...y), y.splice(0, y.length, ...M.value)) : (ee.value = !1, y.splice(0, y.length, ...x));
2660
2660
  }
2661
2661
  function H() {
2662
2662
  var te;
@@ -2666,9 +2666,9 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
2666
2666
  });
2667
2667
  return;
2668
2668
  }
2669
- let y = "";
2669
+ let b = "";
2670
2670
  K.value.forEach((re) => {
2671
- y += `<th>${v(re)}</th>`;
2671
+ b += `<th>${v(re)}</th>`;
2672
2672
  });
2673
2673
  let f = "";
2674
2674
  M.value.forEach((re) => {
@@ -2676,7 +2676,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
2676
2676
  f += `<td>${re[ue.prop]}</td>`;
2677
2677
  }), f += "</tr>";
2678
2678
  });
2679
- let U = `<table><tr>${y}</tr>${f}</table>`;
2679
+ let U = `<table><tr>${b}</tr>${f}</table>`;
2680
2680
  const q = document.createElement("iframe");
2681
2681
  q.style.display = "none", document.body.appendChild(q);
2682
2682
  const W = q.contentDocument || ((te = q.contentWindow) == null ? void 0 : te.document);
@@ -2740,7 +2740,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
2740
2740
  multipleSelection: M,
2741
2741
  refresh: O,
2742
2742
  updateConfigAndRefresh: u
2743
- }), (y, f) => {
2743
+ }), (b, f) => {
2744
2744
  var le, qe, Be;
2745
2745
  const U = k("el-checkbox"), q = k("el-badge"), W = k("el-button"), te = k("el-dropdown-item"), re = k("el-dropdown-menu"), ue = k("el-dropdown"), J = k("el-icon"), Y = k("el-tooltip"), ne = k("el-input"), se = k("el-table-column"), ae = k("router-link"), fe = k("el-tag"), de = k("el-popconfirm"), Ve = k("el-table"), et = k("el-pagination"), tt = qt("loading");
2746
2746
  return p(), V("div", {
@@ -2941,7 +2941,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
2941
2941
  border: !0,
2942
2942
  ref_key: "tableRef",
2943
2943
  ref: N,
2944
- data: b,
2944
+ data: y,
2945
2945
  onSelectionChange: A,
2946
2946
  class: "table"
2947
2947
  }, {
@@ -3078,7 +3078,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3078
3078
  total: oe.totalElements
3079
3079
  }, null, 8, ["currentPage", "page-size", "total"])),
3080
3080
  g(yo, {
3081
- model: y.model,
3081
+ model: b.model,
3082
3082
  mode: X.value,
3083
3083
  id: B.value,
3084
3084
  afterSubmitFunc: O,
@@ -3094,7 +3094,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3094
3094
  }, mr = { class: "icon-wrapper" }, hr = { class: "info-wrapper" }, gr = { class: "title-wrapper" }, _r = { class: "tabs-wrapper" }, vr = { class: "dialog-footer" }, br = /* @__PURE__ */ Ce({
3095
3095
  __name: "DetailPage",
3096
3096
  setup(e) {
3097
- const { t } = Ze(), o = Xe(), n = pt(), s = Ie(() => o.query.id), r = T(!1), l = T(!1), a = T("view"), i = T(), h = T(-1), b = T(), x = T(), N = T("summary"), M = T(""), X = T(""), G = T(""), ee = T(0), B = me({
3097
+ const { t } = Ze(), o = Xe(), n = pt(), s = Ie(() => o.query.id), r = T(!1), l = T(!1), a = T("view"), i = T(), h = T(-1), y = T(), x = T(), N = T("summary"), M = T(""), X = T(""), G = T(""), ee = T(0), B = me({
3098
3098
  api: "",
3099
3099
  fields: []
3100
3100
  }), oe = me([]);
@@ -3117,7 +3117,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3117
3117
  d = d == null ? void 0 : d.substring(d.lastIndexOf("/"));
3118
3118
  const c = B.api + "/" + s.value + d, S = x.value.multipleSelection.map((D) => D.id);
3119
3119
  Se(c, "POST", S).then(() => {
3120
- b.value.refresh(), l.value = !1;
3120
+ y.value.refresh(), l.value = !1;
3121
3121
  });
3122
3122
  }
3123
3123
  function I(d, c, S) {
@@ -3133,24 +3133,24 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3133
3133
  create: "common.table.add",
3134
3134
  delete: "common.table.remove"
3135
3135
  }, S.functions.batchDelete = (A) => {
3136
- var y;
3137
- let v = (y = P[h.value].api) == null ? void 0 : y.replace("/select", "");
3136
+ var b;
3137
+ let v = (b = P[h.value].api) == null ? void 0 : b.replace("/select", "");
3138
3138
  v = v == null ? void 0 : v.substring(v.lastIndexOf("/"));
3139
3139
  const z = B.api + "/" + s.value + v, H = A.map((f) => f.id);
3140
3140
  be.delete(`${z}/${H.join(",")}`).then(({ data: f }) => {
3141
- f.code === 0 && b.value.refresh();
3141
+ f.code === 0 && y.value.refresh();
3142
3142
  });
3143
3143
  }, S.operations = [
3144
3144
  {
3145
3145
  label: "common.table.remove",
3146
3146
  functions: {
3147
3147
  click: (A, v) => {
3148
- var y;
3149
- let z = (y = P[h.value].api) == null ? void 0 : y.replace("/select", "");
3148
+ var b;
3149
+ let z = (b = P[h.value].api) == null ? void 0 : b.replace("/select", "");
3150
3150
  z = z == null ? void 0 : z.substring(z.lastIndexOf("/"));
3151
3151
  const H = B.api + "/" + s.value + z;
3152
3152
  Se(H, "DELETE", v.id).then(() => {
3153
- b.value.refresh();
3153
+ y.value.refresh();
3154
3154
  });
3155
3155
  }
3156
3156
  }
@@ -3185,16 +3185,16 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3185
3185
  fields: []
3186
3186
  }), v.formConfig === void 0 && (v.formConfig = {}), v.formConfig.functions === void 0 && (v.formConfig.functions = {});
3187
3187
  const H = v.formConfig.functions.beforeSubmit;
3188
- A.queryParamName && (v.formConfig.functions.beforeSubmit = (y) => {
3189
- y[A.queryParamName] = s.value, H !== void 0 && H();
3188
+ A.queryParamName && (v.formConfig.functions.beforeSubmit = (b) => {
3189
+ b[A.queryParamName] = s.value, H !== void 0 && H(b);
3190
3190
  });
3191
3191
  }
3192
3192
  z.queryParams || (z.queryParams = {}), A.queryParamName && (z.queryParams[A.queryParamName] = s.value), A.queryParams && Object.assign(z.queryParams, A.queryParams), z.readOnly = (j = A.readOnly) != null ? j : !1, A.includeFields && (v.fields = v.fields.filter((H) => {
3193
- var y;
3194
- return (y = A.includeFields) == null ? void 0 : y.includes(H.prop);
3193
+ var b;
3194
+ return (b = A.includeFields) == null ? void 0 : b.includes(H.prop);
3195
3195
  })), A.excludeFields && (v.fields = v.fields.filter((H) => {
3196
- var y;
3197
- return !((y = A.excludeFields) != null && y.includes(H.prop));
3196
+ var b;
3197
+ return !((b = A.excludeFields) != null && b.includes(H.prop));
3198
3198
  })), A.tooltip && (z.tooltip = A.tooltip);
3199
3199
  }
3200
3200
  }
@@ -3236,7 +3236,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3236
3236
  }
3237
3237
  return (d, c) => {
3238
3238
  var U, q, W, te, re, ue;
3239
- const S = k("el-page-header"), $ = k("el-button"), D = k("el-icon"), j = k("el-dropdown-item"), A = k("el-dropdown-menu"), v = k("el-dropdown"), z = k("el-tag"), H = k("el-tab-pane"), y = k("el-tabs"), f = k("el-dialog");
3239
+ const S = k("el-page-header"), $ = k("el-button"), D = k("el-icon"), j = k("el-dropdown-item"), A = k("el-dropdown-menu"), v = k("el-dropdown"), z = k("el-tag"), H = k("el-tab-pane"), b = k("el-tabs"), f = k("el-dialog");
3240
3240
  return p(), V(ce, null, [
3241
3241
  w("div", dr, [
3242
3242
  g(S, {
@@ -3335,7 +3335,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3335
3335
  ])
3336
3336
  ])) : F("", !0),
3337
3337
  w("div", _r, [
3338
- g(y, {
3338
+ g(b, {
3339
3339
  modelValue: N.value,
3340
3340
  "onUpdate:modelValue": c[1] || (c[1] = (J) => N.value = J),
3341
3341
  onTabClick: K
@@ -3372,7 +3372,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3372
3372
  h.value >= 0 ? (p(), E(dt, {
3373
3373
  key: 0,
3374
3374
  ref_key: "tabPaneTableRef",
3375
- ref: b,
3375
+ ref: y,
3376
3376
  model: oe[h.value]
3377
3377
  }, null, 8, ["model"])) : F("", !0),
3378
3378
  g(f, {
@@ -3424,7 +3424,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3424
3424
  ], 64);
3425
3425
  };
3426
3426
  }
3427
- }), yr = /* @__PURE__ */ ye(br, [["__scopeId", "data-v-d48c0eb5"]]), wr = { class: "page-title" }, Sr = /* @__PURE__ */ Ce({
3427
+ }), yr = /* @__PURE__ */ ye(br, [["__scopeId", "data-v-8b860aa4"]]), wr = { class: "page-title" }, Sr = /* @__PURE__ */ Ce({
3428
3428
  __name: "TablePage",
3429
3429
  setup(e) {
3430
3430
  const { t } = Ze(), o = Xe(), n = pt(), s = T(), r = T([]), l = me({
@@ -3432,8 +3432,8 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3432
3432
  fields: []
3433
3433
  }), a = me(ot({}, l));
3434
3434
  function i() {
3435
- var b, x, N, M, X;
3436
- r.value = [], l.pageConfig && ((x = (b = l.pageConfig) == null ? void 0 : b.tablePage) != null && x.tabViewAttributes) && (r.value = (X = (M = (N = l.pageConfig) == null ? void 0 : N.tablePage) == null ? void 0 : M.tabViewAttributes) == null ? void 0 : X.map((G) => {
3435
+ var y, x, N, M, X;
3436
+ r.value = [], l.pageConfig && ((x = (y = l.pageConfig) == null ? void 0 : y.tablePage) != null && x.tabViewAttributes) && (r.value = (X = (M = (N = l.pageConfig) == null ? void 0 : N.tablePage) == null ? void 0 : M.tabViewAttributes) == null ? void 0 : X.map((G) => {
3437
3437
  let ee;
3438
3438
  return G.modelKey && ve.value[G.modelKey] ? ee = Ge(ve.value[G.modelKey]) : ee = Ge(l), G.queryParams && (ee.tableConfig || (ee.tableConfig = {}), ee.tableConfig.queryParams = G.queryParams), G.fields && (ee.fields = G.fields), G.modelKey && (ee.breadcrumbRoute = l.route), {
3439
3439
  key: G.key,
@@ -3447,13 +3447,13 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3447
3447
  function h() {
3448
3448
  var N, M;
3449
3449
  console.log("TablePage.init: loading model:", o.params.model), console.log("TablePage.init: current model list", ve.value);
3450
- const b = o.params.model;
3451
- if (ve.value[b] === void 0) {
3452
- console.warn("TablePage.init: model not found", b, ve.value);
3450
+ const y = o.params.model;
3451
+ if (ve.value[y] === void 0) {
3452
+ console.warn("TablePage.init: model not found", y, ve.value);
3453
3453
  return;
3454
3454
  }
3455
3455
  ze(l);
3456
- const x = Ge(ve.value[b]);
3456
+ const x = Ge(ve.value[y]);
3457
3457
  Object.assign(l, x), (M = (N = l.pageConfig) == null ? void 0 : N.tablePage) != null && M.tabViewAttributes || Object.assign(a, l), i();
3458
3458
  }
3459
3459
  return Oe([
@@ -3464,7 +3464,7 @@ const rr = { render: sr }, ar = { class: "toolbar" }, lr = { class: "tool-button
3464
3464
  }, {
3465
3465
  immediate: !0,
3466
3466
  deep: !0
3467
- }), (b, x) => {
3467
+ }), (y, x) => {
3468
3468
  var M;
3469
3469
  const N = k("el-scrollbar");
3470
3470
  return p(), V(ce, null, [