@vancone/console-component 0.1.1-beta.71 → 0.1.1-beta.73

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 Ne = (e, o, n) => new Promise((t, s) => {
26
26
  }, r = (i) => i.done ? t(i.value) : Promise.resolve(i.value).then(a, c);
27
27
  r((n = n.apply(e, o)).next());
28
28
  });
29
- import { openBlock as u, createElementBlock as E, createElementVNode as v, defineComponent as Oe, reactive as fe, resolveComponent as x, createVNode as h, withCtx as p, unref as y, Fragment as te, renderList as me, toDisplayString as A, normalizeStyle as He, shallowRef as ye, ref as j, onMounted as wt, createBlock as I, createTextVNode as B, createCommentVNode as L, normalizeClass as Ct, withModifiers as Po, resolveDynamicComponent as it, effectScope as Wt, markRaw as Fe, toRaw as Xe, hasInjectionContext as Io, inject as Vo, getCurrentInstance as Mo, watch as Me, isRef as Ze, isReactive as kt, toRef as mt, nextTick as ct, computed as De, getCurrentScope as No, onScopeDispose as Uo, toRefs as Ut, onUnmounted as To, createStaticVNode as Ao, resolveDirective as Yt, withDirectives as Jt } from "vue";
29
+ import { openBlock as u, createElementBlock as E, createElementVNode as v, defineComponent as Oe, reactive as fe, resolveComponent as x, createVNode as h, withCtx as p, unref as y, Fragment as oe, renderList as me, toDisplayString as A, normalizeStyle as He, shallowRef as ye, ref as j, onMounted as wt, createBlock as I, createTextVNode as B, createCommentVNode as L, normalizeClass as Ct, withModifiers as Po, resolveDynamicComponent as it, effectScope as Wt, markRaw as Fe, toRaw as Xe, hasInjectionContext as Io, inject as Vo, getCurrentInstance as Mo, watch as Me, isRef as Ze, isReactive as kt, toRef as mt, nextTick as ct, computed as De, getCurrentScope as No, onScopeDispose as Uo, toRefs as Ut, onUnmounted as To, createStaticVNode as Ao, resolveDirective as Yt, withDirectives as Jt } from "vue";
30
30
  import { useRoute as tt, useRouter as ft } from "vue-router";
31
31
  import Do from "axios";
32
32
  import { ElMessage as ht, ElMessageBox as Tt } from "element-plus";
@@ -186,7 +186,7 @@ function pr(e) {
186
186
  var o = new RegExp("(^|&)" + e + "=([^&]*)(&|$)"), n = window.location.search.substr(1).match(o);
187
187
  return n != null ? unescape(n[2]) : null;
188
188
  }
189
- function le(e) {
189
+ function te(e) {
190
190
  const o = "i18n(", n = ")";
191
191
  return e && e.startsWith(o) && e.endsWith(n) ? Zo(e.slice(o.length, -n.length)) : e != null ? e : "";
192
192
  }
@@ -281,10 +281,10 @@ const mn = { render: fn }, hn = { class: "app-catalog-wrapper" }, _n = { class:
281
281
  }, {
282
282
  default: p(() => [
283
283
  v("div", _n, [
284
- (u(!0), E(te, null, me(o, (f) => (u(), E("div", vn, [
284
+ (u(!0), E(oe, null, me(o, (f) => (u(), E("div", vn, [
285
285
  v("h1", null, A(f.name), 1),
286
286
  v("div", gn, [
287
- (u(!0), E(te, null, me(f.apps, (b) => {
287
+ (u(!0), E(oe, null, me(f.apps, (b) => {
288
288
  var $, V;
289
289
  return u(), E("a", {
290
290
  style: He([{ "text-decoration": "none" }, { pointerEvents: (($ = b.homepageUrl) == null ? void 0 : $.length) > 0 ? "auto" : "none" }]),
@@ -490,7 +490,7 @@ const An = { class: "header" }, Dn = { class: "title" }, Rn = { class: "right" }
490
490
  function ee(l) {
491
491
  dt.global.locale.value = l, z.value = l, localStorage.setItem("locale", l);
492
492
  }
493
- function oe() {
493
+ function ne() {
494
494
  window.open("https://passport.vancone.com/#/account/profile", "_blank");
495
495
  }
496
496
  function he() {
@@ -524,7 +524,7 @@ const An = { class: "header" }, Dn = { class: "title" }, Rn = { class: "right" }
524
524
  }
525
525
  return (l, _) => {
526
526
  const k = x("el-icon"), P = x("el-dropdown-item"), R = x("el-dropdown-menu"), D = x("el-dropdown"), O = x("el-popover"), F = x("el-tooltip"), G = x("el-avatar"), g = x("el-menu-item"), S = x("el-menu"), m = x("el-button"), q = x("el-empty"), C = x("el-checkbox"), Z = x("el-drawer");
527
- return u(), E(te, null, [
527
+ return u(), E(oe, null, [
528
528
  v("div", An, [
529
529
  v("div", Dn, [
530
530
  v("div", {
@@ -544,7 +544,7 @@ const An = { class: "header" }, Dn = { class: "title" }, Rn = { class: "right" }
544
544
  dropdown: p(() => [
545
545
  h(R, { style: { width: "300px" } }, {
546
546
  default: p(() => [
547
- (u(!0), E(te, null, me($.value, (N) => (u(), I(P, {
547
+ (u(!0), E(oe, null, me($.value, (N) => (u(), I(P, {
548
548
  key: N.id,
549
549
  command: N.id
550
550
  }, {
@@ -673,7 +673,7 @@ const An = { class: "header" }, Dn = { class: "title" }, Rn = { class: "right" }
673
673
  ]),
674
674
  h(S, { class: "user-menu" }, {
675
675
  default: p(() => [
676
- h(g, { onClick: oe }, {
676
+ h(g, { onClick: ne }, {
677
677
  default: p(() => [
678
678
  B(A(y(o)("common.header.userCenter")), 1)
679
679
  ]),
@@ -707,10 +707,10 @@ const An = { class: "header" }, Dn = { class: "title" }, Rn = { class: "right" }
707
707
  "popper-style": "height: 80px; left: -165px"
708
708
  }, {
709
709
  default: p(() => [
710
- (u(!0), E(te, null, me(Y, (N) => (u(), E("div", {
710
+ (u(!0), E(oe, null, me(Y, (N) => (u(), E("div", {
711
711
  class: "select-list",
712
712
  key: N.id,
713
- onClick: (ne) => ee(N.id)
713
+ onClick: (se) => ee(N.id)
714
714
  }, [
715
715
  v("span", null, A(N.name), 1),
716
716
  N.id === z.value ? (u(), I(k, {
@@ -807,16 +807,16 @@ const An = { class: "header" }, Dn = { class: "title" }, Rn = { class: "right" }
807
807
  _: 1
808
808
  }, 8, ["indeterminate", "modelValue"])
809
809
  ])),
810
- (u(!0), E(te, null, me(r.value, (N) => (u(), E("div", {
810
+ (u(!0), E(oe, null, me(r.value, (N) => (u(), E("div", {
811
811
  key: N.id,
812
812
  class: Ct(["message-item", { unread: !N.isRead, selected: i.value.includes(N.id) }]),
813
- onClick: (ne) => i.value = i.value.includes(N.id) ? i.value.filter((Q) => Q !== N.id) : [...i.value, N.id]
813
+ onClick: (se) => i.value = i.value.includes(N.id) ? i.value.filter((Q) => Q !== N.id) : [...i.value, N.id]
814
814
  }, [
815
815
  v("div", Xn, [
816
816
  h(C, {
817
817
  "model-value": i.value.includes(N.id),
818
- onChange: (ne) => {
819
- ne ? i.value.includes(N.id) || (i.value = [...i.value, N.id]) : i.value = i.value.filter((Q) => Q !== N.id);
818
+ onChange: (se) => {
819
+ se ? i.value.includes(N.id) || (i.value = [...i.value, N.id]) : i.value = i.value.filter((Q) => Q !== N.id);
820
820
  },
821
821
  onClick: _[2] || (_[2] = Po(() => {
822
822
  }, ["stop"]))
@@ -872,11 +872,11 @@ const An = { class: "header" }, Dn = { class: "title" }, Rn = { class: "right" }
872
872
  innerHTML: o.menu.meta.svgXml
873
873
  }, null, 8, cs)) : L("", !0)
874
874
  ]),
875
- v("span", null, A(y(le)((b = n.menu.meta) == null ? void 0 : b.title)), 1)
875
+ v("span", null, A(y(te)((b = n.menu.meta) == null ? void 0 : b.title)), 1)
876
876
  ];
877
877
  }),
878
878
  default: p(() => [
879
- (u(!0), E(te, null, me(n.menu.children, (r) => (u(), I(s, {
879
+ (u(!0), E(oe, null, me(n.menu.children, (r) => (u(), I(s, {
880
880
  key: r.path,
881
881
  route: r,
882
882
  menu: r
@@ -891,7 +891,7 @@ const An = { class: "header" }, Dn = { class: "title" }, Rn = { class: "right" }
891
891
  title: p(() => {
892
892
  var r;
893
893
  return [
894
- v("span", null, A(y(le)((r = n.menu.meta) == null ? void 0 : r.title)), 1)
894
+ v("span", null, A(y(te)((r = n.menu.meta) == null ? void 0 : r.title)), 1)
895
895
  ];
896
896
  }),
897
897
  default: p(() => {
@@ -1702,7 +1702,7 @@ function yt(e, o, n = {}, t, s, a) {
1702
1702
  throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
1703
1703
  } : ho
1704
1704
  );
1705
- function oe() {
1705
+ function ne() {
1706
1706
  c.stop(), $ = [], V = [], t._s.delete(e);
1707
1707
  }
1708
1708
  const he = (d, l = "") => {
@@ -1755,7 +1755,7 @@ function yt(e, o, n = {}, t, s, a) {
1755
1755
  }, be({}, i, l)));
1756
1756
  return _;
1757
1757
  },
1758
- $dispose: oe
1758
+ $dispose: ne
1759
1759
  }, U = fe(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Le ? be(
1760
1760
  {
1761
1761
  _hmrPayload: W,
@@ -2148,7 +2148,7 @@ const bo = /* @__PURE__ */ zs("console", {
2148
2148
  router: ""
2149
2149
  }, {
2150
2150
  default: p(() => [
2151
- (u(!0), E(te, null, me(y(Rt), (M) => (u(), I(fs, {
2151
+ (u(!0), E(oe, null, me(y(Rt), (M) => (u(), I(fs, {
2152
2152
  key: M.path,
2153
2153
  menu: M
2154
2154
  }, null, 8, ["menu"]))), 128))
@@ -2177,7 +2177,7 @@ const bo = /* @__PURE__ */ zs("console", {
2177
2177
  const o = bo(Pt), n = tt(), t = j(o.menu.collapsed), s = e;
2178
2178
  return (a, c) => {
2179
2179
  const r = x("router-view"), i = x("el-scrollbar");
2180
- return u(), E(te, null, [
2180
+ return u(), E(oe, null, [
2181
2181
  y(n).query.embedded !== "true" ? (u(), I(eo, {
2182
2182
  key: 0,
2183
2183
  title: s.title,
@@ -2283,7 +2283,7 @@ const ga = /* @__PURE__ */ Ce(_a, [["render", va]]), ba = { class: "card-wrapper
2283
2283
  deep: !0
2284
2284
  }
2285
2285
  ), (c, r) => (u(), E("div", ba, [
2286
- (u(!0), E(te, null, me(t.cards, (i) => (u(), E("div", {
2286
+ (u(!0), E(oe, null, me(t.cards, (i) => (u(), E("div", {
2287
2287
  class: Ct(["card", { "card-selected": s.value === i.key }]),
2288
2288
  onClick: (f) => a(i)
2289
2289
  }, [
@@ -2297,7 +2297,7 @@ const ga = /* @__PURE__ */ Ce(_a, [["render", va]]), ba = { class: "card-wrapper
2297
2297
  ]),
2298
2298
  v("span", {
2299
2299
  style: He({ color: i.disabled ? "#aaa" : "black" })
2300
- }, A(y(le)(i.label)), 5)
2300
+ }, A(y(te)(i.label)), 5)
2301
2301
  ]),
2302
2302
  v("span", null, A(i.count), 1)
2303
2303
  ])
@@ -2364,34 +2364,34 @@ const ga = /* @__PURE__ */ Ce(_a, [["render", va]]), ba = { class: "card-wrapper
2364
2364
  var l, _, k, P, R, D, O, F, G, g, S, m, q;
2365
2365
  if (s[d.prop] = null, d.visible !== !1 && ((l = d.formItem) == null ? void 0 : l.visible) !== !1) {
2366
2366
  if (((_ = d.formItem) == null ? void 0 : _.defaultValue) !== void 0 ? s[d.prop] = (k = d.formItem) == null ? void 0 : k.defaultValue : s[d.prop] = void 0, t.mode !== "view") {
2367
- let ae = (P = d.formItem) == null ? void 0 : P.validationRule;
2368
- ae !== void 0 && (T[d.prop] = ae), We(r), Object.assign(r, T);
2367
+ let re = (P = d.formItem) == null ? void 0 : P.validationRule;
2368
+ re !== void 0 && (T[d.prop] = re), We(r), Object.assign(r, T);
2369
2369
  }
2370
- const C = d.formItem, Z = C == null ? void 0 : C.type, N = (R = C == null ? void 0 : C.select) == null ? void 0 : R.useDatableDict, ne = (D = C == null ? void 0 : C.select) == null ? void 0 : D.dictId, Q = (O = C == null ? void 0 : C.select) == null ? void 0 : O.api, J = (F = C == null ? void 0 : C.select) == null ? void 0 : F.valueMappingField, se = (G = C == null ? void 0 : C.select) == null ? void 0 : G.labelMappingField;
2370
+ const C = d.formItem, Z = C == null ? void 0 : C.type, N = (R = C == null ? void 0 : C.select) == null ? void 0 : R.useDatableDict, se = (D = C == null ? void 0 : C.select) == null ? void 0 : D.dictId, Q = (O = C == null ? void 0 : C.select) == null ? void 0 : O.api, J = (F = C == null ? void 0 : C.select) == null ? void 0 : F.valueMappingField, ae = (G = C == null ? void 0 : C.select) == null ? void 0 : G.labelMappingField;
2371
2371
  if (Z === "select") {
2372
2372
  if (N) {
2373
- let re = `${De(() => window.location.href.indexOf("localhost") > 0 ? "http://localhost.vancone.com:8080" : "https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${ne}`;
2373
+ let le = `${De(() => window.location.href.indexOf("localhost") > 0 ? "http://localhost.vancone.com:8080" : "https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${se}`;
2374
2374
  const _e = (g = C == null ? void 0 : C.select) == null ? void 0 : g.queryParamName, pe = (S = C == null ? void 0 : C.select) == null ? void 0 : S.queryParamValueField;
2375
- _e && (re = `${re}?${_e}=${t.id}`), pe || Ee(re, "GET", {}).then(({ data: ve }) => {
2375
+ _e && (le = `${le}?${_e}=${t.id}`), pe || Ee(le, "GET", {}).then(({ data: ve }) => {
2376
2376
  var Se;
2377
2377
  if ((Se = d.formItem) != null && Se.select) {
2378
2378
  let ge = [];
2379
2379
  Array.isArray(ve.data) ? ge = ve.data : ve.data.list && Array.isArray(ve.data.list) && (ge = ve.data.list), d.formItem.select.options = ge.map((Te) => ({
2380
2380
  value: Te.dbOrdinal,
2381
- label: le(Te.value)
2381
+ label: te(Te.value)
2382
2382
  }));
2383
2383
  }
2384
2384
  });
2385
2385
  } else if (Q) {
2386
- let ae = Q;
2387
- const re = (m = C == null ? void 0 : C.select) == null ? void 0 : m.queryParamName, _e = (q = C == null ? void 0 : C.select) == null ? void 0 : q.queryParamValueField;
2388
- re && (ae = `${ae}?${re}=${t.id}`), _e || Ee(ae, "GET", {}).then(({ data: pe }) => {
2386
+ let re = Q;
2387
+ const le = (m = C == null ? void 0 : C.select) == null ? void 0 : m.queryParamName, _e = (q = C == null ? void 0 : C.select) == null ? void 0 : q.queryParamValueField;
2388
+ le && (re = `${re}?${le}=${t.id}`), _e || Ee(re, "GET", {}).then(({ data: pe }) => {
2389
2389
  var ve;
2390
2390
  if ((ve = d.formItem) != null && ve.select) {
2391
2391
  let Se = [];
2392
2392
  Array.isArray(pe.data) ? Se = pe.data : pe.data.list && Array.isArray(pe.data.list) && (Se = pe.data.list), d.formItem.select.options = Se.map((ge) => ({
2393
2393
  value: J ? ge[J] : ge.value,
2394
- label: le(se ? ge[se] : ge.label)
2394
+ label: te(ae ? ge[ae] : ge.label)
2395
2395
  }));
2396
2396
  }
2397
2397
  });
@@ -2423,7 +2423,7 @@ const ga = /* @__PURE__ */ Ce(_a, [["render", va]]), ba = { class: "card-wrapper
2423
2423
  (w = c.value) == null || w.resetFields();
2424
2424
  }
2425
2425
  function H(w) {
2426
- return w != null && w.prop ? w.label ? le(w.label) : w.prop.slice(0, 1).toUpperCase() + w.prop.slice(1).toLowerCase() : "";
2426
+ return w != null && w.prop ? w.label ? te(w.label) : w.prop.slice(0, 1).toUpperCase() + w.prop.slice(1).toLowerCase() : "";
2427
2427
  }
2428
2428
  function ee(w) {
2429
2429
  var T, d, l, _, k, P;
@@ -2434,18 +2434,18 @@ const ga = /* @__PURE__ */ Ce(_a, [["render", va]]), ba = { class: "card-wrapper
2434
2434
  return R(s[w.prop]);
2435
2435
  const D = (_ = (l = w.formItem) == null ? void 0 : l.select) == null ? void 0 : _.viewModeLabelField;
2436
2436
  if (D)
2437
- return le(s[D]);
2437
+ return te(s[D]);
2438
2438
  const O = (P = (k = w.formItem) == null ? void 0 : k.select) == null ? void 0 : P.options;
2439
2439
  if (O) {
2440
2440
  for (let F of O)
2441
2441
  if (F.value === s[w.prop])
2442
- return le(F.label);
2442
+ return te(F.label);
2443
2443
  }
2444
2444
  }
2445
- return le(s[w.prop]);
2445
+ return te(s[w.prop]);
2446
2446
  }
2447
2447
  }
2448
- function oe(w) {
2448
+ function ne(w) {
2449
2449
  var T;
2450
2450
  return ((T = w.formItem) == null ? void 0 : T.updatable) === !1 && t.mode === "update";
2451
2451
  }
@@ -2486,7 +2486,7 @@ const ga = /* @__PURE__ */ Ce(_a, [["render", va]]), ba = { class: "card-wrapper
2486
2486
  let D = [];
2487
2487
  Array.isArray(R.data) ? D = R.data : R.data.list && Array.isArray(R.data.list) && (D = R.data.list), l.options = D.map((O) => ({
2488
2488
  value: l.valueMappingField ? O[l.valueMappingField] : O.value,
2489
- label: le(l.labelMappingField ? O[l.labelMappingField] : O.label)
2489
+ label: te(l.labelMappingField ? O[l.labelMappingField] : O.label)
2490
2490
  }));
2491
2491
  }
2492
2492
  });
@@ -2506,7 +2506,7 @@ const ga = /* @__PURE__ */ Ce(_a, [["render", va]]), ba = { class: "card-wrapper
2506
2506
  formData: s
2507
2507
  }), (w, T) => {
2508
2508
  const d = x("el-input"), l = x("el-switch"), _ = x("el-date-picker"), k = x("el-time-picker"), P = x("el-option"), R = x("el-select"), D = x("el-input-number"), O = x("el-button"), F = x("el-form-item"), G = x("el-form"), g = x("el-dialog"), S = Yt("loading");
2509
- return u(), E(te, null, [
2509
+ return u(), E(oe, null, [
2510
2510
  Jt((u(), I(G, {
2511
2511
  ref_key: "formRef",
2512
2512
  ref: c,
@@ -2519,14 +2519,14 @@ const ga = /* @__PURE__ */ Ce(_a, [["render", va]]), ba = { class: "card-wrapper
2519
2519
  inline: !t.disableInline
2520
2520
  }, {
2521
2521
  default: p(() => [
2522
- (u(!0), E(te, null, me(V.value, (m) => (u(), I(F, {
2522
+ (u(!0), E(oe, null, me(V.value, (m) => (u(), I(F, {
2523
2523
  class: "form-item",
2524
2524
  style: He({ width: t.disableInline ? "100%" : "calc(50% - 32px)" }),
2525
2525
  prop: m.prop,
2526
2526
  label: H(m)
2527
2527
  }, {
2528
2528
  default: p(() => {
2529
- var q, C, Z, N, ne, Q, J, se, ae, re, _e, pe, ve, Se, ge, Te, Ye, Je, ce, K;
2529
+ var q, C, Z, N, se, Q, J, ae, re, le, _e, pe, ve, Se, ge, Te, Ye, Je, ce, K;
2530
2530
  return [
2531
2531
  he("input", m) ? (u(), I(d, {
2532
2532
  key: 0,
@@ -2534,7 +2534,7 @@ const ga = /* @__PURE__ */ Ce(_a, [["render", va]]), ba = { class: "card-wrapper
2534
2534
  modelValue: s[m.prop],
2535
2535
  "onUpdate:modelValue": (X) => s[m.prop] = X,
2536
2536
  placeholder: (q = m.formItem) == null ? void 0 : q.placeholder,
2537
- disabled: oe(m)
2537
+ disabled: ne(m)
2538
2538
  }, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : L("", !0),
2539
2539
  $(m) ? (u(), E("span", xa, A(ee(m)), 1)) : L("", !0),
2540
2540
  W(m, "switch") ? (u(), I(l, {
@@ -2571,21 +2571,21 @@ const ga = /* @__PURE__ */ Ce(_a, [["render", va]]), ba = { class: "card-wrapper
2571
2571
  W(m, "select") && t.mode !== "view" ? (u(), I(R, {
2572
2572
  key: 6,
2573
2573
  multiple: (Z = (C = m.formItem) == null ? void 0 : C.select) == null ? void 0 : Z.multiple,
2574
- "collapse-tags": (ne = (N = m.formItem) == null ? void 0 : N.select) == null ? void 0 : ne.multiple,
2574
+ "collapse-tags": (se = (N = m.formItem) == null ? void 0 : N.select) == null ? void 0 : se.multiple,
2575
2575
  filterable: (J = (Q = m.formItem) == null ? void 0 : Q.select) == null ? void 0 : J.allowCreate,
2576
- "allow-create": (ae = (se = m.formItem) == null ? void 0 : se.select) == null ? void 0 : ae.allowCreate,
2577
- "default-first-option": (_e = (re = m.formItem) == null ? void 0 : re.select) == null ? void 0 : _e.allowCreate,
2576
+ "allow-create": (re = (ae = m.formItem) == null ? void 0 : ae.select) == null ? void 0 : re.allowCreate,
2577
+ "default-first-option": (_e = (le = m.formItem) == null ? void 0 : le.select) == null ? void 0 : _e.allowCreate,
2578
2578
  modelValue: s[m.prop],
2579
2579
  "onUpdate:modelValue": (X) => s[m.prop] = X,
2580
- disabled: oe(m),
2580
+ disabled: ne(m),
2581
2581
  onChange: (X) => ke(m)
2582
2582
  }, {
2583
2583
  default: p(() => {
2584
2584
  var X, Pe;
2585
2585
  return [
2586
- (u(!0), E(te, null, me((Pe = (X = m.formItem) == null ? void 0 : X.select) == null ? void 0 : Pe.options, (Ie) => (u(), I(P, {
2586
+ (u(!0), E(oe, null, me((Pe = (X = m.formItem) == null ? void 0 : X.select) == null ? void 0 : Pe.options, (Ie) => (u(), I(P, {
2587
2587
  value: Ie.value,
2588
- label: y(le)(Ie.label)
2588
+ label: y(te)(Ie.label)
2589
2589
  }, null, 8, ["value", "label"]))), 256))
2590
2590
  ];
2591
2591
  }),
@@ -2715,8 +2715,8 @@ const ga = /* @__PURE__ */ Ce(_a, [["render", va]]), ba = { class: "card-wrapper
2715
2715
  style: He({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
2716
2716
  }, [
2717
2717
  v("div", Na, [
2718
- (u(!0), E(te, null, me((H = s.model.formConfig) == null ? void 0 : H.dialogButtons, (ee) => (u(), I(Y, {
2719
- onClick: (oe) => ee.function(r.value.formData)
2718
+ (u(!0), E(oe, null, me((H = s.model.formConfig) == null ? void 0 : H.dialogButtons, (ee) => (u(), I(Y, {
2719
+ onClick: (ne) => ee.function(r.value.formData)
2720
2720
  }, {
2721
2721
  default: p(() => [
2722
2722
  B(A(y(t)(ee.label)), 1)
@@ -2805,7 +2805,7 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
2805
2805
  pageNo: 1,
2806
2806
  totalElements: 0
2807
2807
  });
2808
- let oe = {};
2808
+ let ne = {};
2809
2809
  const he = De(() => s.filter(
2810
2810
  (g) => {
2811
2811
  var S, m;
@@ -2813,15 +2813,15 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
2813
2813
  }
2814
2814
  ));
2815
2815
  function W(g, S) {
2816
- var Z, N, ne, Q;
2816
+ var Z, N, se, Q;
2817
2817
  let m = S.row[g.prop];
2818
- const q = (N = (Z = g.tableColumn) == null ? void 0 : Z.functions) == null ? void 0 : N.transformValue, C = (ne = g.tableColumn) == null ? void 0 : ne.transformValueMappings;
2818
+ const q = (N = (Z = g.tableColumn) == null ? void 0 : Z.functions) == null ? void 0 : N.transformValue, C = (se = g.tableColumn) == null ? void 0 : se.transformValueMappings;
2819
2819
  if (q)
2820
2820
  m = q(m);
2821
2821
  else if (C && C.length > 0) {
2822
2822
  for (let J of C)
2823
2823
  if (m === J.value) {
2824
- m = le(J.label);
2824
+ m = te(J.label);
2825
2825
  break;
2826
2826
  }
2827
2827
  } else if (((Q = g.formItem) == null ? void 0 : Q.type) === "select") {
@@ -2830,37 +2830,37 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
2830
2830
  if (J.viewModeLabelField)
2831
2831
  m = S.row[J.viewModeLabelField];
2832
2832
  else if (J.options && J.options.length > 0) {
2833
- for (let se of J.options)
2834
- if (se.value === S.row[g.prop]) {
2835
- m = se.label;
2833
+ for (let ae of J.options)
2834
+ if (ae.value === S.row[g.prop]) {
2835
+ m = ae.label;
2836
2836
  break;
2837
2837
  }
2838
2838
  } else if (J.useDatableDict && J.dictId) {
2839
- if (oe[J.dictId] === void 0) {
2840
- let ae = `${De(() => window.location.href.indexOf("localhost") > 0 ? "http://localhost.vancone.com:8080" : "https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${J.dictId}`;
2841
- Ee(ae, "GET", {}).then(({ data: re }) => {
2839
+ if (ne[J.dictId] === void 0) {
2840
+ let re = `${De(() => window.location.href.indexOf("localhost") > 0 ? "http://localhost.vancone.com:8080" : "https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${J.dictId}`;
2841
+ Ee(re, "GET", {}).then(({ data: le }) => {
2842
2842
  let _e = [];
2843
- Array.isArray(re.data) ? _e = re.data : re.data.list && Array.isArray(re.data.list) && (_e = re.data.list), oe[J.dictId] = _e;
2844
- for (let pe of oe[J.dictId])
2843
+ Array.isArray(le.data) ? _e = le.data : le.data.list && Array.isArray(le.data.list) && (_e = le.data.list), ne[J.dictId] = _e;
2844
+ for (let pe of ne[J.dictId])
2845
2845
  if (pe.dbOrdinal == m) {
2846
2846
  m = pe.value;
2847
2847
  break;
2848
2848
  }
2849
2849
  });
2850
2850
  } else
2851
- for (let se of oe[J.dictId])
2852
- if (se.dbOrdinal == m) {
2853
- m = se.value;
2851
+ for (let ae of ne[J.dictId])
2852
+ if (ae.dbOrdinal == m) {
2853
+ m = ae.value;
2854
2854
  break;
2855
2855
  }
2856
2856
  }
2857
2857
  }
2858
2858
  }
2859
- return le(m);
2859
+ return te(m);
2860
2860
  }
2861
2861
  function ke(g, S) {
2862
2862
  var m, q;
2863
- return g.label ? n(g.label) : (q = (m = g.functions) == null ? void 0 : m.transformLabel) == null ? void 0 : q.call(m, S.$index, S.row);
2863
+ return g.label ? te(g.label) : te((q = (m = g.functions) == null ? void 0 : m.transformLabel) == null ? void 0 : q.call(m, S.$index, S.row));
2864
2864
  }
2865
2865
  function U(g) {
2866
2866
  We(t.model), Object.assign(t.model, g);
@@ -2942,7 +2942,7 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
2942
2942
  M.value = g;
2943
2943
  }
2944
2944
  function O(g) {
2945
- return g != null && g.prop ? g.label ? le(g.label) : g.prop.slice(0, 1).toUpperCase() + g.prop.slice(1).toLowerCase() : "";
2945
+ return g != null && g.prop ? g.label ? te(g.label) : g.prop.slice(0, 1).toUpperCase() + g.prop.slice(1).toLowerCase() : "";
2946
2946
  }
2947
2947
  function F(g) {
2948
2948
  g ? (de.value = !0, $.splice(0, $.length, ...b), b.splice(0, b.length, ...M.value)) : (de.value = !1, b.splice(0, b.length, ...$));
@@ -2961,8 +2961,8 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
2961
2961
  });
2962
2962
  let S = "";
2963
2963
  M.value.forEach((N) => {
2964
- S += "<tr>", he.value.forEach((ne) => {
2965
- S += `<td>${N[ne.prop]}</td>`;
2964
+ S += "<tr>", he.value.forEach((se) => {
2965
+ S += `<td>${N[se.prop]}</td>`;
2966
2966
  }), S += "</tr>";
2967
2967
  });
2968
2968
  let m = `<table><tr>${g}</tr>${S}</table>`;
@@ -3031,7 +3031,7 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3031
3031
  updateConfigAndRefresh: U
3032
3032
  }), (g, S) => {
3033
3033
  var Te, Ye, Je;
3034
- const m = x("el-checkbox"), q = x("el-badge"), C = x("el-button"), Z = x("el-dropdown-item"), N = x("el-dropdown-menu"), ne = x("el-dropdown"), Q = x("el-icon"), J = x("el-tooltip"), se = x("el-input"), ae = x("el-table-column"), re = x("router-link"), _e = x("el-tag"), pe = x("el-popconfirm"), ve = x("el-table"), Se = x("el-pagination"), ge = Yt("loading");
3034
+ const m = x("el-checkbox"), q = x("el-badge"), C = x("el-button"), Z = x("el-dropdown-item"), N = x("el-dropdown-menu"), se = x("el-dropdown"), Q = x("el-icon"), J = x("el-tooltip"), ae = x("el-input"), re = x("el-table-column"), le = x("router-link"), _e = x("el-tag"), pe = x("el-popconfirm"), ve = x("el-table"), Se = x("el-pagination"), ge = Yt("loading");
3035
3035
  return u(), E("div", {
3036
3036
  class: Ct({ "table-view-wrapper": (Te = a.display) == null ? void 0 : Te.pane })
3037
3037
  }, [
@@ -3086,7 +3086,7 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3086
3086
  style: { width: "28px" },
3087
3087
  onClick: w
3088
3088
  }, null, 8, ["icon"]),
3089
- (Ye = a.display) != null && Ye.fileTaskButton ? (u(), I(ne, {
3089
+ (Ye = a.display) != null && Ye.fileTaskButton ? (u(), I(se, {
3090
3090
  key: 3,
3091
3091
  placement: "bottom-start",
3092
3092
  trigger: "click"
@@ -3146,7 +3146,7 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3146
3146
  ]),
3147
3147
  _: 1
3148
3148
  })) : L("", !0),
3149
- h(ne, {
3149
+ h(se, {
3150
3150
  placement: "bottom-start",
3151
3151
  trigger: "click"
3152
3152
  }, {
@@ -3201,7 +3201,7 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3201
3201
  }, 8, ["content"])) : L("", !0)
3202
3202
  ]),
3203
3203
  v("div", Fa, [
3204
- h(se, {
3204
+ h(ae, {
3205
3205
  placeholder: `${y(n)("common.table.search")}...`,
3206
3206
  modelValue: f.value,
3207
3207
  "onUpdate:modelValue": S[0] || (S[0] = (ce) => f.value = ce)
@@ -3237,14 +3237,14 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3237
3237
  default: p(() => {
3238
3238
  var ce;
3239
3239
  return [
3240
- a.readOnly ? L("", !0) : (u(), I(ae, {
3240
+ a.readOnly ? L("", !0) : (u(), I(re, {
3241
3241
  key: 0,
3242
3242
  type: "selection",
3243
3243
  width: "50"
3244
3244
  })),
3245
- (u(!0), E(te, null, me(he.value, (K) => {
3245
+ (u(!0), E(oe, null, me(he.value, (K) => {
3246
3246
  var X;
3247
- return u(), I(ae, {
3247
+ return u(), I(re, {
3248
3248
  prop: K.prop,
3249
3249
  label: O(K),
3250
3250
  width: (X = K.tableColumn) == null ? void 0 : X.width,
@@ -3253,7 +3253,7 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3253
3253
  default: p((Pe) => {
3254
3254
  var Ie, Ke, It;
3255
3255
  return [
3256
- (Ie = K.tableColumn) != null && Ie.link ? (u(), I(re, {
3256
+ (Ie = K.tableColumn) != null && Ie.link ? (u(), I(le, {
3257
3257
  key: 0,
3258
3258
  class: "router-link",
3259
3259
  to: `/${c.value}/detail?id=${Pe.row.id}`
@@ -3262,7 +3262,7 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3262
3262
  v("span", null, A(W(K, Pe)), 1)
3263
3263
  ]),
3264
3264
  _: 2
3265
- }, 1032, ["to"])) : (Ke = K.tableColumn) != null && Ke.routerLink ? (u(), I(re, {
3265
+ }, 1032, ["to"])) : (Ke = K.tableColumn) != null && Ke.routerLink ? (u(), I(le, {
3266
3266
  key: 1,
3267
3267
  class: "router-link",
3268
3268
  to: K.tableColumn.routerLink.replace("{id}", Pe.row.id)
@@ -3283,7 +3283,7 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3283
3283
  _: 2
3284
3284
  }, 1032, ["prop", "label", "width"]);
3285
3285
  }), 256)),
3286
- a.operations === void 0 && !((ce = a.selectMode) != null && ce) && !a.readOnly ? (u(), I(ae, {
3286
+ a.operations === void 0 && !((ce = a.selectMode) != null && ce) && !a.readOnly ? (u(), I(re, {
3287
3287
  key: 1,
3288
3288
  label: y(n)("common.table.operation"),
3289
3289
  width: "120"
@@ -3323,13 +3323,13 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3323
3323
  ]),
3324
3324
  _: 1
3325
3325
  }, 8, ["label"])) : L("", !0),
3326
- a.operations !== void 0 && !a.readOnly ? (u(), I(ae, {
3326
+ a.operations !== void 0 && !a.readOnly ? (u(), I(re, {
3327
3327
  key: 2,
3328
3328
  label: y(n)("common.table.operation"),
3329
3329
  width: "120"
3330
3330
  }, {
3331
3331
  default: p((K) => [
3332
- (u(!0), E(te, null, me(a.operations, (X) => (u(), I(C, {
3332
+ (u(!0), E(oe, null, me(a.operations, (X) => (u(), I(C, {
3333
3333
  class: "operation-button",
3334
3334
  link: "",
3335
3335
  type: "primary",
@@ -3377,7 +3377,7 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3377
3377
  ], 2);
3378
3378
  };
3379
3379
  }
3380
- }), pt = /* @__PURE__ */ Ce(Ga, [["__scopeId", "data-v-023aa648"]]), ja = { class: "nav-bar" }, za = { style: { "font-size": "16px" } }, qa = {
3380
+ }), pt = /* @__PURE__ */ Ce(Ga, [["__scopeId", "data-v-da480079"]]), ja = { class: "nav-bar" }, za = { style: { "font-size": "16px" } }, qa = {
3381
3381
  key: 0,
3382
3382
  class: "info-card-wrapper"
3383
3383
  }, Ba = { class: "icon-wrapper" }, Ha = { class: "info-wrapper" }, Wa = { class: "title-wrapper" }, Ya = { class: "tabs-wrapper" }, Ja = { class: "dialog-footer" }, Ka = /* @__PURE__ */ Oe({
@@ -3387,7 +3387,7 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3387
3387
  api: "",
3388
3388
  fields: []
3389
3389
  }), ee = fe([]);
3390
- let oe = [];
3390
+ let ne = [];
3391
3391
  Me([
3392
3392
  () => t.currentRoute.value,
3393
3393
  $e
@@ -3402,7 +3402,7 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3402
3402
  }
3403
3403
  function W() {
3404
3404
  var k;
3405
- let d = (k = oe[f.value].api) == null ? void 0 : k.replace("/select", "");
3405
+ let d = (k = ne[f.value].api) == null ? void 0 : k.replace("/select", "");
3406
3406
  d = d == null ? void 0 : d.substring(d.lastIndexOf("/"));
3407
3407
  const l = H.api + "/" + s.value + d, _ = $.value.multipleSelection.map((P) => P.id);
3408
3408
  Ee(l, "POST", _).then(() => {
@@ -3418,12 +3418,12 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3418
3418
  k.tableConfig || (k.tableConfig = {}), k.tableConfig.selectMode = !0, k.tableConfig.queryParams = {}, d.queryParamName && (k.tableConfig.queryParams[d.queryParamName] = s.value);
3419
3419
  for (var P in k.fields)
3420
3420
  k.fields[P].tableColumn && (R = k.fields[P].tableColumn) != null && R.link && (k.fields[P].tableColumn.link = !1);
3421
- oe.push(k), _.labels = {
3421
+ ne.push(k), _.labels = {
3422
3422
  create: "common.table.add",
3423
3423
  delete: "common.table.remove"
3424
3424
  }, _.functions.batchDelete = (D) => {
3425
3425
  var g;
3426
- let O = (g = oe[f.value].api) == null ? void 0 : g.replace("/select", "");
3426
+ let O = (g = ne[f.value].api) == null ? void 0 : g.replace("/select", "");
3427
3427
  O = O == null ? void 0 : O.substring(O.lastIndexOf("/"));
3428
3428
  const F = H.api + "/" + s.value + O, G = D.map((S) => S.id);
3429
3429
  we.delete(`${F}/${G.join(",")}`).then(({ data: S }) => {
@@ -3435,7 +3435,7 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3435
3435
  functions: {
3436
3436
  click: (D, O) => {
3437
3437
  var g;
3438
- let F = (g = oe[f.value].api) == null ? void 0 : g.replace("/select", "");
3438
+ let F = (g = ne[f.value].api) == null ? void 0 : g.replace("/select", "");
3439
3439
  F = F == null ? void 0 : F.substring(F.lastIndexOf("/"));
3440
3440
  const G = H.api + "/" + s.value + F;
3441
3441
  Ee(G, "DELETE", O.id).then(() => {
@@ -3470,7 +3470,7 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3470
3470
  }, D.modelRelationType === "associated")
3471
3471
  ke(D, O, F);
3472
3472
  else if (D.modelRelationType === "child") {
3473
- oe.push({
3473
+ ne.push({
3474
3474
  fields: []
3475
3475
  }), O.formConfig === void 0 && (O.formConfig = {}), O.formConfig.functions === void 0 && (O.formConfig.functions = {});
3476
3476
  const G = O.formConfig.functions.beforeSubmit;
@@ -3524,9 +3524,9 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3524
3524
  i.value.refresh();
3525
3525
  }
3526
3526
  return (d, l) => {
3527
- var m, q, C, Z, N, ne;
3527
+ var m, q, C, Z, N, se;
3528
3528
  const _ = x("el-page-header"), k = x("el-button"), P = x("el-icon"), R = x("el-dropdown-item"), D = x("el-dropdown-menu"), O = x("el-dropdown"), F = x("el-tag"), G = x("el-tab-pane"), g = x("el-tabs"), S = x("el-dialog");
3529
- return u(), E(te, null, [
3529
+ return u(), E(oe, null, [
3530
3530
  v("div", ja, [
3531
3531
  h(_, {
3532
3532
  onClick: l[0] || (l[0] = (Q) => y(t).back())
@@ -3535,7 +3535,7 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3535
3535
  v("span", null, null, -1)
3536
3536
  ])),
3537
3537
  content: p(() => [
3538
- v("span", za, A(y(le)(H == null ? void 0 : H.name)), 1)
3538
+ v("span", za, A(y(te)(H == null ? void 0 : H.name)), 1)
3539
3539
  ]),
3540
3540
  _: 1
3541
3541
  }),
@@ -3555,11 +3555,11 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3555
3555
  default: p(() => {
3556
3556
  var Q, J;
3557
3557
  return [
3558
- (u(!0), E(te, null, me((J = (Q = H.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : J.operationButtons, (se) => (u(), I(R, {
3559
- onClick: (ae) => se.function(i.value.formData)
3558
+ (u(!0), E(oe, null, me((J = (Q = H.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : J.operationButtons, (ae) => (u(), I(R, {
3559
+ onClick: (re) => ae.function(i.value.formData)
3560
3560
  }, {
3561
3561
  default: p(() => [
3562
- B(A(y(le)(se.label)), 1)
3562
+ B(A(y(te)(ae.label)), 1)
3563
3563
  ]),
3564
3564
  _: 2
3565
3565
  }, 1032, ["onClick"]))), 256))
@@ -3607,7 +3607,7 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3607
3607
  v("div", Ha, [
3608
3608
  v("div", Wa, [
3609
3609
  v("h1", null, A(M.value), 1),
3610
- ((ne = Y.value) == null ? void 0 : ne.length) > 0 ? (u(), I(F, {
3610
+ ((se = Y.value) == null ? void 0 : se.length) > 0 ? (u(), I(F, {
3611
3611
  key: 0,
3612
3612
  size: "small"
3613
3613
  }, {
@@ -3645,8 +3645,8 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3645
3645
  ]),
3646
3646
  _: 1
3647
3647
  }, 8, ["label"]),
3648
- (u(!0), E(te, null, me((J = (Q = H.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : J.tabs, (se) => (u(), I(G, {
3649
- label: y(le)(se.name)
3648
+ (u(!0), E(oe, null, me((J = (Q = H.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : J.tabs, (ae) => (u(), I(G, {
3649
+ label: y(te)(ae.name)
3650
3650
  }, null, 8, ["label"]))), 256))
3651
3651
  ];
3652
3652
  }),
@@ -3690,7 +3690,7 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3690
3690
  key: 0,
3691
3691
  ref_key: "selectTableRef",
3692
3692
  ref: $,
3693
- model: y(oe)[f.value]
3693
+ model: y(ne)[f.value]
3694
3694
  }, null, 8, ["model"])) : L("", !0)
3695
3695
  ]),
3696
3696
  _: 1
@@ -3748,8 +3748,8 @@ const Aa = { render: Ta }, Da = { class: "toolbar" }, Ra = { class: "tool-button
3748
3748
  deep: !0
3749
3749
  }), (f, b) => {
3750
3750
  const $ = x("el-scrollbar");
3751
- return u(), E(te, null, [
3752
- v("h1", Xa, A(y(le)(a == null ? void 0 : a.name)), 1),
3751
+ return u(), E(oe, null, [
3752
+ v("h1", Xa, A(y(te)(a == null ? void 0 : a.name)), 1),
3753
3753
  h($, null, {
3754
3754
  default: p(() => {
3755
3755
  var V, M;
@@ -3801,7 +3801,7 @@ export {
3801
3801
  er as TablePage,
3802
3802
  pt as TableView,
3803
3803
  ms as activeMenuMapping,
3804
- le as convertI18n,
3804
+ te as convertI18n,
3805
3805
  ur as createFile,
3806
3806
  en as deepMerge,
3807
3807
  fr as default,