@vancone/console-component 0.1.1-beta.66 → 0.1.1-beta.67
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.
package/package.json
CHANGED
|
@@ -42,12 +42,12 @@ const we = (e, o) => {
|
|
|
42
42
|
function Yo(e, o) {
|
|
43
43
|
return u(), E("div", Wo);
|
|
44
44
|
}
|
|
45
|
-
const Jo = /* @__PURE__ */ we(Bo, [["render", Yo], ["__scopeId", "data-v-07bd45d2"]]),
|
|
45
|
+
const Jo = /* @__PURE__ */ we(Bo, [["render", Yo], ["__scopeId", "data-v-07bd45d2"]]), ye = Ao.create({
|
|
46
46
|
timeout: 2 * 60 * 1e3,
|
|
47
47
|
withCredentials: !0
|
|
48
48
|
});
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
ye.interceptors.request.use((e) => e);
|
|
50
|
+
ye.interceptors.response.use((e) => {
|
|
51
51
|
const { headers: o, method: n } = e.config, { code: t, message: s } = e.data, { "No-Success-Message": a } = o, c = n !== "get";
|
|
52
52
|
return t === 0 ? (c && !a && mt({
|
|
53
53
|
message: s,
|
|
@@ -175,22 +175,22 @@ const Ko = {
|
|
|
175
175
|
const { origin: e } = window.location;
|
|
176
176
|
return e.includes("beta") || e.includes("localhost") ? "passport.beta.vancone.com" : "passport.vancone.com";
|
|
177
177
|
};
|
|
178
|
-
function
|
|
178
|
+
function me(e) {
|
|
179
179
|
const o = "i18n(", n = ")";
|
|
180
180
|
return e && e.startsWith(o) && e.endsWith(n) ? Xo(e.slice(o.length, -n.length)) : e != null ? e : "";
|
|
181
181
|
}
|
|
182
182
|
const Xt = Qt();
|
|
183
183
|
function Zo() {
|
|
184
|
-
return
|
|
184
|
+
return ye.get(`//${Xt}/api/passport/service/v1/account`);
|
|
185
185
|
}
|
|
186
186
|
function en() {
|
|
187
|
-
return
|
|
187
|
+
return ye.delete(`//${Xt}/api/passport/service/v1/login`);
|
|
188
188
|
}
|
|
189
189
|
function tn() {
|
|
190
|
-
return
|
|
190
|
+
return ye.get("//app-center.vancone.com/api/app-center/v1/app-group?pageSize=1000");
|
|
191
191
|
}
|
|
192
192
|
function on() {
|
|
193
|
-
return
|
|
193
|
+
return ye.get("//app-center.vancone.com/api/app-center/v1/store/app?pageSize=1000");
|
|
194
194
|
}
|
|
195
195
|
const nn = {
|
|
196
196
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -374,13 +374,13 @@ const Nn = { render: Mn };
|
|
|
374
374
|
function $e(e, o, n) {
|
|
375
375
|
switch (o) {
|
|
376
376
|
case "POST":
|
|
377
|
-
return
|
|
377
|
+
return ye.post(e, n);
|
|
378
378
|
case "PUT":
|
|
379
|
-
return
|
|
379
|
+
return ye.put(e, n);
|
|
380
380
|
case "DELETE":
|
|
381
|
-
return
|
|
381
|
+
return ye.delete(e + "/" + n);
|
|
382
382
|
default:
|
|
383
|
-
return
|
|
383
|
+
return ye.get(e, { params: n });
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
const Un = { class: "header" }, Tn = { class: "title" }, An = { class: "right" }, Dn = { class: "icon-wrapper" }, Rn = { class: "user-wrapper" }, Fn = { style: { "font-size": "11px", "font-weight": "bold" } }, Ln = { class: "user-popover-header" }, Gn = { style: { "font-size": "15px", "font-weight": "bold" } }, jn = ["onClick"], zn = { class: "message-center-header" }, qn = { class: "message-center-content" }, Hn = {
|
|
@@ -480,7 +480,7 @@ const Un = { class: "header" }, Tn = { class: "title" }, An = { class: "right" }
|
|
|
480
480
|
function oe() {
|
|
481
481
|
window.open("https://passport.vancone.com/#/account/profile", "_blank");
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function he() {
|
|
484
484
|
window.open(b.helpDocUrl, "_blank");
|
|
485
485
|
}
|
|
486
486
|
function W(l) {
|
|
@@ -600,7 +600,7 @@ const Un = { class: "header" }, Tn = { class: "title" }, An = { class: "right" }
|
|
|
600
600
|
b.helpDocUrl !== void 0 ? (u(), E("div", {
|
|
601
601
|
key: 0,
|
|
602
602
|
class: "icon-wrapper",
|
|
603
|
-
onClick:
|
|
603
|
+
onClick: he
|
|
604
604
|
}, [
|
|
605
605
|
h(y(En))
|
|
606
606
|
])) : G("", !0)
|
|
@@ -857,7 +857,7 @@ const Un = { class: "header" }, Tn = { class: "title" }, An = { class: "right" }
|
|
|
857
857
|
innerHTML: o.menu.meta.svgXml
|
|
858
858
|
}, null, 8, ls)) : G("", !0)
|
|
859
859
|
]),
|
|
860
|
-
v("span", null, A(y(
|
|
860
|
+
v("span", null, A(y(me)((b = n.menu.meta) == null ? void 0 : b.title)), 1)
|
|
861
861
|
];
|
|
862
862
|
}),
|
|
863
863
|
default: p(() => [
|
|
@@ -876,7 +876,7 @@ const Un = { class: "header" }, Tn = { class: "title" }, An = { class: "right" }
|
|
|
876
876
|
title: p(() => {
|
|
877
877
|
var r;
|
|
878
878
|
return [
|
|
879
|
-
v("span", null, A(y(
|
|
879
|
+
v("span", null, A(y(me)((r = n.menu.meta) == null ? void 0 : r.title)), 1)
|
|
880
880
|
];
|
|
881
881
|
}),
|
|
882
882
|
default: p(() => {
|
|
@@ -1624,7 +1624,7 @@ const Fs = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration")
|
|
|
1624
1624
|
function Ls(e) {
|
|
1625
1625
|
return !Le(e) || !e.hasOwnProperty(Fs);
|
|
1626
1626
|
}
|
|
1627
|
-
const { assign:
|
|
1627
|
+
const { assign: be } = Object;
|
|
1628
1628
|
function jt(e) {
|
|
1629
1629
|
return !!(Xe(e) && e.effect);
|
|
1630
1630
|
}
|
|
@@ -1637,7 +1637,7 @@ function zt(e, o, n, t) {
|
|
|
1637
1637
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1638
1638
|
Nt(N(s ? s() : {}).value)
|
|
1639
1639
|
) : Nt(n.state.value[e]);
|
|
1640
|
-
return
|
|
1640
|
+
return be(b, a, Object.keys(c || {}).reduce(($, V) => (process.env.NODE_ENV !== "production" && V in b && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${V}" in store "${e}".`), $[V] = Re(Ae(() => {
|
|
1641
1641
|
Ze(n);
|
|
1642
1642
|
const M = n._s.get(e);
|
|
1643
1643
|
return c[V].call(M, M);
|
|
@@ -1647,7 +1647,7 @@ function zt(e, o, n, t) {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
function bt(e, o, n = {}, t, s, a) {
|
|
1649
1649
|
let c;
|
|
1650
|
-
const r =
|
|
1650
|
+
const r = be({ actions: {} }, n);
|
|
1651
1651
|
if (process.env.NODE_ENV !== "production" && !t._e.active)
|
|
1652
1652
|
throw new Error("Pinia destroyed");
|
|
1653
1653
|
const i = { deep: !0 };
|
|
@@ -1679,7 +1679,7 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1679
1679
|
const ee = a ? function() {
|
|
1680
1680
|
const { state: l } = n, _ = l ? l() : {};
|
|
1681
1681
|
this.$patch((k) => {
|
|
1682
|
-
|
|
1682
|
+
be(k, _);
|
|
1683
1683
|
});
|
|
1684
1684
|
} : (
|
|
1685
1685
|
/* istanbul ignore next */
|
|
@@ -1690,7 +1690,7 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1690
1690
|
function oe() {
|
|
1691
1691
|
c.stop(), $ = [], V = [], t._s.delete(e);
|
|
1692
1692
|
}
|
|
1693
|
-
const
|
|
1693
|
+
const he = (d, l = "") => {
|
|
1694
1694
|
if (Gt in d)
|
|
1695
1695
|
return d[_t] = l, d;
|
|
1696
1696
|
const _ = function() {
|
|
@@ -1737,11 +1737,11 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1737
1737
|
type: Ie.direct,
|
|
1738
1738
|
events: M
|
|
1739
1739
|
}, P);
|
|
1740
|
-
},
|
|
1740
|
+
}, be({}, i, l)));
|
|
1741
1741
|
return _;
|
|
1742
1742
|
},
|
|
1743
1743
|
$dispose: oe
|
|
1744
|
-
}, U = pe(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Fe ?
|
|
1744
|
+
}, U = pe(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Fe ? be(
|
|
1745
1745
|
{
|
|
1746
1746
|
_hmrPayload: W,
|
|
1747
1747
|
_customProperties: Re(/* @__PURE__ */ new Set())
|
|
@@ -1752,13 +1752,13 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1752
1752
|
// setupStore
|
|
1753
1753
|
) : Ce);
|
|
1754
1754
|
t._s.set(e, U);
|
|
1755
|
-
const T = (t._a && t._a.runWithContext || Rs)(() => t._e.run(() => (c = Bt()).run(() => o({ action:
|
|
1755
|
+
const T = (t._a && t._a.runWithContext || Rs)(() => t._e.run(() => (c = Bt()).run(() => o({ action: he }))));
|
|
1756
1756
|
for (const d in T) {
|
|
1757
1757
|
const l = T[d];
|
|
1758
1758
|
if (Xe(l) && !jt(l) || Ct(l))
|
|
1759
1759
|
process.env.NODE_ENV !== "production" && s ? ot(Y.value, d, ft(T, d)) : a || (z && Ls(l) && (Xe(l) ? l.value = z[d] : gt(l, z[d])), t.state.value[e][d] = l), process.env.NODE_ENV !== "production" && W.state.push(d);
|
|
1760
1760
|
else if (typeof l == "function") {
|
|
1761
|
-
const _ = process.env.NODE_ENV !== "production" && s ? l :
|
|
1761
|
+
const _ = process.env.NODE_ENV !== "production" && s ? l : he(l, d);
|
|
1762
1762
|
T[d] = _, process.env.NODE_ENV !== "production" && (W.actions[d] = l), r.actions[d] = l;
|
|
1763
1763
|
} else process.env.NODE_ENV !== "production" && jt(l) && (W.getters[d] = a ? (
|
|
1764
1764
|
// @ts-expect-error
|
|
@@ -1766,13 +1766,13 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1766
1766
|
) : l, Fe && (T._getters || // @ts-expect-error: same
|
|
1767
1767
|
(T._getters = Re([]))).push(d));
|
|
1768
1768
|
}
|
|
1769
|
-
if (
|
|
1769
|
+
if (be(U, T), be(Qe(U), T), Object.defineProperty(U, "$state", {
|
|
1770
1770
|
get: () => process.env.NODE_ENV !== "production" && s ? Y.value : t.state.value[e],
|
|
1771
1771
|
set: (d) => {
|
|
1772
1772
|
if (process.env.NODE_ENV !== "production" && s)
|
|
1773
1773
|
throw new Error("cannot set hotState");
|
|
1774
1774
|
B((l) => {
|
|
1775
|
-
|
|
1775
|
+
be(l, d);
|
|
1776
1776
|
});
|
|
1777
1777
|
}
|
|
1778
1778
|
}), process.env.NODE_ENV !== "production" && (U._hotUpdate = Re((d) => {
|
|
@@ -1789,7 +1789,7 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1789
1789
|
});
|
|
1790
1790
|
for (const l in d._hmrPayload.actions) {
|
|
1791
1791
|
const _ = d[l];
|
|
1792
|
-
ot(U, l,
|
|
1792
|
+
ot(U, l, he(_, l));
|
|
1793
1793
|
}
|
|
1794
1794
|
for (const l in d._hmrPayload.getters) {
|
|
1795
1795
|
const _ = d._hmrPayload.getters[l], k = a ? (
|
|
@@ -1811,7 +1811,7 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1811
1811
|
enumerable: !1
|
|
1812
1812
|
};
|
|
1813
1813
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((l) => {
|
|
1814
|
-
Object.defineProperty(U, l,
|
|
1814
|
+
Object.defineProperty(U, l, be({ value: U[l] }, d));
|
|
1815
1815
|
});
|
|
1816
1816
|
}
|
|
1817
1817
|
return t._p.forEach((d) => {
|
|
@@ -1822,9 +1822,9 @@ function bt(e, o, n = {}, t, s, a) {
|
|
|
1822
1822
|
pinia: t,
|
|
1823
1823
|
options: r
|
|
1824
1824
|
}));
|
|
1825
|
-
Object.keys(l || {}).forEach((_) => U._customProperties.add(_)),
|
|
1825
|
+
Object.keys(l || {}).forEach((_) => U._customProperties.add(_)), be(U, l);
|
|
1826
1826
|
} else
|
|
1827
|
-
|
|
1827
|
+
be(U, c.run(() => d({
|
|
1828
1828
|
store: U,
|
|
1829
1829
|
app: t._a,
|
|
1830
1830
|
pinia: t,
|
|
@@ -1851,7 +1851,7 @@ This will fail in production.`);
|
|
|
1851
1851
|
r = Ke, r._s.has(t) || (a ? bt(t, o, s, r) : zt(t, s, r), process.env.NODE_ENV !== "production" && (c._pinia = r));
|
|
1852
1852
|
const b = r._s.get(t);
|
|
1853
1853
|
if (process.env.NODE_ENV !== "production" && i) {
|
|
1854
|
-
const $ = "__hot:" + t, V = a ? bt($, o, s, r, !0) : zt($,
|
|
1854
|
+
const $ = "__hot:" + t, V = a ? bt($, o, s, r, !0) : zt($, be({}, s), r, !0);
|
|
1855
1855
|
i._hotUpdate(V), delete r.state.value[$], r._s.delete($);
|
|
1856
1856
|
}
|
|
1857
1857
|
if (process.env.NODE_ENV !== "production" && Fe) {
|
|
@@ -2282,7 +2282,7 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2282
2282
|
]),
|
|
2283
2283
|
v("span", {
|
|
2284
2284
|
style: He({ color: i.disabled ? "#aaa" : "black" })
|
|
2285
|
-
}, A(y(
|
|
2285
|
+
}, A(y(me)(i.label)), 5)
|
|
2286
2286
|
]),
|
|
2287
2287
|
v("span", null, A(i.count), 1)
|
|
2288
2288
|
])
|
|
@@ -2356,27 +2356,27 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2356
2356
|
if (Z === "select") {
|
|
2357
2357
|
if (R) {
|
|
2358
2358
|
let re = `${Ae(() => 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}`;
|
|
2359
|
-
const
|
|
2360
|
-
|
|
2359
|
+
const _e = (g = C == null ? void 0 : C.select) == null ? void 0 : g.queryParamName, ue = (S = C == null ? void 0 : C.select) == null ? void 0 : S.queryParamValueField;
|
|
2360
|
+
_e && (re = `${re}?${_e}=${t.id}`), ue || $e(re, "GET", {}).then(({ data: ve }) => {
|
|
2361
2361
|
var ke;
|
|
2362
2362
|
if ((ke = d.formItem) != null && ke.select) {
|
|
2363
|
-
let
|
|
2364
|
-
Array.isArray(
|
|
2363
|
+
let ge = [];
|
|
2364
|
+
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((Ue) => ({
|
|
2365
2365
|
value: Ue.dbOrdinal,
|
|
2366
|
-
label:
|
|
2366
|
+
label: me(Ue.value)
|
|
2367
2367
|
}));
|
|
2368
2368
|
}
|
|
2369
2369
|
});
|
|
2370
2370
|
} else if (Q) {
|
|
2371
2371
|
let ae = Q;
|
|
2372
|
-
const re = (m = C == null ? void 0 : C.select) == null ? void 0 : m.queryParamName,
|
|
2373
|
-
re && (ae = `${ae}?${re}=${t.id}`),
|
|
2374
|
-
var
|
|
2375
|
-
if ((
|
|
2372
|
+
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;
|
|
2373
|
+
re && (ae = `${ae}?${re}=${t.id}`), _e || $e(ae, "GET", {}).then(({ data: ue }) => {
|
|
2374
|
+
var ve;
|
|
2375
|
+
if ((ve = d.formItem) != null && ve.select) {
|
|
2376
2376
|
let ke = [];
|
|
2377
|
-
Array.isArray(ue.data) ? ke = ue.data : ue.data.list && Array.isArray(ue.data.list) && (ke = ue.data.list), d.formItem.select.options = ke.map((
|
|
2378
|
-
value: J ?
|
|
2379
|
-
label:
|
|
2377
|
+
Array.isArray(ue.data) ? ke = ue.data : ue.data.list && Array.isArray(ue.data.list) && (ke = ue.data.list), d.formItem.select.options = ke.map((ge) => ({
|
|
2378
|
+
value: J ? ge[J] : ge.value,
|
|
2379
|
+
label: me(se ? ge[se] : ge.label)
|
|
2380
2380
|
}));
|
|
2381
2381
|
}
|
|
2382
2382
|
});
|
|
@@ -2408,7 +2408,7 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2408
2408
|
(w = c.value) == null || w.resetFields();
|
|
2409
2409
|
}
|
|
2410
2410
|
function B(w) {
|
|
2411
|
-
return w != null && w.prop ? w.label ?
|
|
2411
|
+
return w != null && w.prop ? w.label ? me(w.label) : w.prop.slice(0, 1).toUpperCase() + w.prop.slice(1).toLowerCase() : "";
|
|
2412
2412
|
}
|
|
2413
2413
|
function ee(w) {
|
|
2414
2414
|
var T, d, l, _, k, P;
|
|
@@ -2424,17 +2424,17 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2424
2424
|
if (O) {
|
|
2425
2425
|
for (let L of O)
|
|
2426
2426
|
if (L.value === s[w.prop])
|
|
2427
|
-
return
|
|
2427
|
+
return me(L.label);
|
|
2428
2428
|
}
|
|
2429
2429
|
}
|
|
2430
|
-
return s[w.prop];
|
|
2430
|
+
return me(s[w.prop]);
|
|
2431
2431
|
}
|
|
2432
2432
|
}
|
|
2433
2433
|
function oe(w) {
|
|
2434
2434
|
var T;
|
|
2435
2435
|
return ((T = w.formItem) == null ? void 0 : T.updatable) === !1 && t.mode === "update";
|
|
2436
2436
|
}
|
|
2437
|
-
function
|
|
2437
|
+
function he(w, T) {
|
|
2438
2438
|
var l, _;
|
|
2439
2439
|
const d = (_ = (l = T.formItem) == null ? void 0 : l.type) != null ? _ : "input";
|
|
2440
2440
|
switch (w) {
|
|
@@ -2471,7 +2471,7 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2471
2471
|
let D = [];
|
|
2472
2472
|
Array.isArray(F.data) ? D = F.data : F.data.list && Array.isArray(F.data.list) && (D = F.data.list), l.options = D.map((O) => ({
|
|
2473
2473
|
value: l.valueMappingField ? O[l.valueMappingField] : O.value,
|
|
2474
|
-
label: l.labelMappingField ? O[l.labelMappingField] : O.label
|
|
2474
|
+
label: me(l.labelMappingField ? O[l.labelMappingField] : O.label)
|
|
2475
2475
|
}));
|
|
2476
2476
|
}
|
|
2477
2477
|
});
|
|
@@ -2511,9 +2511,9 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2511
2511
|
label: B(m)
|
|
2512
2512
|
}, {
|
|
2513
2513
|
default: p(() => {
|
|
2514
|
-
var q, C, Z, R, ne, Q, J, se, ae, re,
|
|
2514
|
+
var q, C, Z, R, ne, Q, J, se, ae, re, _e, ue, ve, ke, ge, Ue, We, Ye, ie, K;
|
|
2515
2515
|
return [
|
|
2516
|
-
|
|
2516
|
+
he("input", m) ? (u(), I(d, {
|
|
2517
2517
|
key: 0,
|
|
2518
2518
|
type: W(m, "password") ? "password" : "text",
|
|
2519
2519
|
modelValue: s[m.prop],
|
|
@@ -2559,7 +2559,7 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2559
2559
|
"collapse-tags": (ne = (R = m.formItem) == null ? void 0 : R.select) == null ? void 0 : ne.multiple,
|
|
2560
2560
|
filterable: (J = (Q = m.formItem) == null ? void 0 : Q.select) == null ? void 0 : J.allowCreate,
|
|
2561
2561
|
"allow-create": (ae = (se = m.formItem) == null ? void 0 : se.select) == null ? void 0 : ae.allowCreate,
|
|
2562
|
-
"default-first-option": (
|
|
2562
|
+
"default-first-option": (_e = (re = m.formItem) == null ? void 0 : re.select) == null ? void 0 : _e.allowCreate,
|
|
2563
2563
|
modelValue: s[m.prop],
|
|
2564
2564
|
"onUpdate:modelValue": (X) => s[m.prop] = X,
|
|
2565
2565
|
disabled: oe(m),
|
|
@@ -2581,8 +2581,8 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2581
2581
|
style: { width: "100%" },
|
|
2582
2582
|
modelValue: s[m.prop],
|
|
2583
2583
|
"onUpdate:modelValue": (X) => s[m.prop] = X,
|
|
2584
|
-
min: (ke = (
|
|
2585
|
-
max: (We = (Ue = (
|
|
2584
|
+
min: (ke = (ve = (ue = m.formItem) == null ? void 0 : ue.inputNumber) == null ? void 0 : ve.min) != null ? ke : Number.NEGATIVE_INFINITY,
|
|
2585
|
+
max: (We = (Ue = (ge = m.formItem) == null ? void 0 : ge.inputNumber) == null ? void 0 : Ue.max) != null ? We : Number.POSITIVE_INFINITY,
|
|
2586
2586
|
step: (K = (ie = (Ye = m.formItem) == null ? void 0 : Ye.inputNumber) == null ? void 0 : ie.step) != null ? K : 1,
|
|
2587
2587
|
"value-on-clear": -10
|
|
2588
2588
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) : G("", !0),
|
|
@@ -2651,7 +2651,7 @@ const _a = /* @__PURE__ */ we(ma, [["render", ha]]), va = { class: "card-wrapper
|
|
|
2651
2651
|
], 64);
|
|
2652
2652
|
};
|
|
2653
2653
|
}
|
|
2654
|
-
}), wo = /* @__PURE__ */ we(Oa, [["__scopeId", "data-v-
|
|
2654
|
+
}), wo = /* @__PURE__ */ we(Oa, [["__scopeId", "data-v-e0665e01"]]), Pa = { class: "console-dialog__body" }, Ia = {
|
|
2655
2655
|
key: 0,
|
|
2656
2656
|
class: "process-view"
|
|
2657
2657
|
}, Va = { class: "operation-button-wrapper" }, Co = /* @__PURE__ */ Ee({
|
|
@@ -2791,7 +2791,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2791
2791
|
totalElements: 0
|
|
2792
2792
|
});
|
|
2793
2793
|
let oe = {};
|
|
2794
|
-
const
|
|
2794
|
+
const he = Ae(() => s.filter(
|
|
2795
2795
|
(g) => {
|
|
2796
2796
|
var S, m;
|
|
2797
2797
|
return ((S = g.formItem) == null ? void 0 : S.type) !== "password" && g.visible !== !1 && ((m = g.tableColumn) == null ? void 0 : m.visible) !== !1;
|
|
@@ -2824,8 +2824,8 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2824
2824
|
if (oe[J.dictId] === void 0) {
|
|
2825
2825
|
let ae = `${Ae(() => 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}`;
|
|
2826
2826
|
$e(ae, "GET", {}).then(({ data: re }) => {
|
|
2827
|
-
let
|
|
2828
|
-
Array.isArray(re.data) ?
|
|
2827
|
+
let _e = [];
|
|
2828
|
+
Array.isArray(re.data) ? _e = re.data : re.data.list && Array.isArray(re.data.list) && (_e = re.data.list), oe[J.dictId] = _e;
|
|
2829
2829
|
for (let ue of oe[J.dictId])
|
|
2830
2830
|
if (ue.dbOrdinal == m) {
|
|
2831
2831
|
m = ue.value;
|
|
@@ -2841,7 +2841,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2841
2841
|
}
|
|
2842
2842
|
}
|
|
2843
2843
|
}
|
|
2844
|
-
return
|
|
2844
|
+
return me(m);
|
|
2845
2845
|
}
|
|
2846
2846
|
function Ce(g, S) {
|
|
2847
2847
|
var m, q;
|
|
@@ -2892,7 +2892,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2892
2892
|
(S = a.functions) == null || S.batchDelete(M.value);
|
|
2893
2893
|
else {
|
|
2894
2894
|
const m = M.value.map((q) => q.id);
|
|
2895
|
-
|
|
2895
|
+
ye.delete(`${t.model.api}/${m.join(",")}`).then(({ data: q }) => {
|
|
2896
2896
|
q.code === 0 && (r.value = !1, w());
|
|
2897
2897
|
});
|
|
2898
2898
|
}
|
|
@@ -2927,7 +2927,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2927
2927
|
M.value = g;
|
|
2928
2928
|
}
|
|
2929
2929
|
function O(g) {
|
|
2930
|
-
return g != null && g.prop ? g.label ?
|
|
2930
|
+
return g != null && g.prop ? g.label ? me(g.label) : g.prop.slice(0, 1).toUpperCase() + g.prop.slice(1).toLowerCase() : "";
|
|
2931
2931
|
}
|
|
2932
2932
|
function L(g) {
|
|
2933
2933
|
g ? (ce.value = !0, $.splice(0, $.length, ...b), b.splice(0, b.length, ...M.value)) : (ce.value = !1, b.splice(0, b.length, ...$));
|
|
@@ -2941,12 +2941,12 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
2941
2941
|
return;
|
|
2942
2942
|
}
|
|
2943
2943
|
let g = "";
|
|
2944
|
-
|
|
2944
|
+
he.value.forEach((R) => {
|
|
2945
2945
|
g += `<th>${O(R)}</th>`;
|
|
2946
2946
|
});
|
|
2947
2947
|
let S = "";
|
|
2948
2948
|
M.value.forEach((R) => {
|
|
2949
|
-
S += "<tr>",
|
|
2949
|
+
S += "<tr>", he.value.forEach((ne) => {
|
|
2950
2950
|
S += `<td>${R[ne.prop]}</td>`;
|
|
2951
2951
|
}), S += "</tr>";
|
|
2952
2952
|
});
|
|
@@ -3016,7 +3016,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3016
3016
|
updateConfigAndRefresh: U
|
|
3017
3017
|
}), (g, S) => {
|
|
3018
3018
|
var Ue, We, Ye;
|
|
3019
|
-
const m = x("el-checkbox"), q = x("el-badge"), C = x("el-button"), Z = x("el-dropdown-item"), R = 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"),
|
|
3019
|
+
const m = x("el-checkbox"), q = x("el-badge"), C = x("el-button"), Z = x("el-dropdown-item"), R = 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"), ue = x("el-popconfirm"), ve = x("el-table"), ke = x("el-pagination"), ge = Wt("loading");
|
|
3020
3020
|
return u(), E("div", {
|
|
3021
3021
|
class: wt({ "table-view-wrapper": (Ue = a.display) == null ? void 0 : Ue.pane })
|
|
3022
3022
|
}, [
|
|
@@ -3211,7 +3211,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3211
3211
|
})) : G("", !0)
|
|
3212
3212
|
])
|
|
3213
3213
|
]),
|
|
3214
|
-
Yt((u(), I(
|
|
3214
|
+
Yt((u(), I(ve, {
|
|
3215
3215
|
border: !0,
|
|
3216
3216
|
ref_key: "tableRef",
|
|
3217
3217
|
ref: V,
|
|
@@ -3227,7 +3227,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3227
3227
|
type: "selection",
|
|
3228
3228
|
width: "50"
|
|
3229
3229
|
})),
|
|
3230
|
-
(u(!0), E(te, null, fe(
|
|
3230
|
+
(u(!0), E(te, null, fe(he.value, (K) => {
|
|
3231
3231
|
var X;
|
|
3232
3232
|
return u(), I(ae, {
|
|
3233
3233
|
prop: K.prop,
|
|
@@ -3257,7 +3257,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3257
3257
|
]),
|
|
3258
3258
|
_: 2
|
|
3259
3259
|
}, 1032, ["to"])) : (u(), E("span", Ra, A(W(K, Oe)), 1)),
|
|
3260
|
-
((Pt = K.tableColumn) == null ? void 0 : Pt.type) === "tag" ? (u(), I(
|
|
3260
|
+
((Pt = K.tableColumn) == null ? void 0 : Pt.type) === "tag" ? (u(), I(_e, { key: 3 }, {
|
|
3261
3261
|
default: p(() => [
|
|
3262
3262
|
H(A(Oe.row[K.prop]), 1)
|
|
3263
3263
|
]),
|
|
@@ -3336,7 +3336,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3336
3336
|
}),
|
|
3337
3337
|
_: 1
|
|
3338
3338
|
}, 8, ["data"])), [
|
|
3339
|
-
[
|
|
3339
|
+
[ge, Y.value]
|
|
3340
3340
|
]),
|
|
3341
3341
|
ce.value ? G("", !0) : (u(), I(ke, {
|
|
3342
3342
|
key: 0,
|
|
@@ -3382,7 +3382,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3382
3382
|
immediate: !0,
|
|
3383
3383
|
deep: !0
|
|
3384
3384
|
});
|
|
3385
|
-
function
|
|
3385
|
+
function he(d) {
|
|
3386
3386
|
f.value = parseInt(d.index) - 1;
|
|
3387
3387
|
}
|
|
3388
3388
|
function W() {
|
|
@@ -3411,7 +3411,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3411
3411
|
let O = (g = oe[f.value].api) == null ? void 0 : g.replace("/select", "");
|
|
3412
3412
|
O = O == null ? void 0 : O.substring(O.lastIndexOf("/"));
|
|
3413
3413
|
const L = B.api + "/" + s.value + O, j = D.map((S) => S.id);
|
|
3414
|
-
|
|
3414
|
+
ye.delete(`${L}/${j.join(",")}`).then(({ data: S }) => {
|
|
3415
3415
|
S.code === 0 && b.value.refresh();
|
|
3416
3416
|
});
|
|
3417
3417
|
}, _.operations = [
|
|
@@ -3520,7 +3520,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3520
3520
|
v("span", null, null, -1)
|
|
3521
3521
|
])),
|
|
3522
3522
|
content: p(() => [
|
|
3523
|
-
v("span", Ga, A(y(
|
|
3523
|
+
v("span", Ga, A(y(me)(B == null ? void 0 : B.name)), 1)
|
|
3524
3524
|
]),
|
|
3525
3525
|
_: 1
|
|
3526
3526
|
}),
|
|
@@ -3609,7 +3609,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3609
3609
|
h(g, {
|
|
3610
3610
|
modelValue: V.value,
|
|
3611
3611
|
"onUpdate:modelValue": l[1] || (l[1] = (Q) => V.value = Q),
|
|
3612
|
-
onTabClick:
|
|
3612
|
+
onTabClick: he
|
|
3613
3613
|
}, {
|
|
3614
3614
|
default: p(() => {
|
|
3615
3615
|
var Q, J;
|
|
@@ -3631,7 +3631,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3631
3631
|
_: 1
|
|
3632
3632
|
}, 8, ["label"]),
|
|
3633
3633
|
(u(!0), E(te, null, fe((J = (Q = B.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : J.tabs, (se) => (u(), I(j, {
|
|
3634
|
-
label: y(
|
|
3634
|
+
label: y(me)(se.name)
|
|
3635
3635
|
}, null, 8, ["label"]))), 256))
|
|
3636
3636
|
];
|
|
3637
3637
|
}),
|
|
@@ -3734,7 +3734,7 @@ const Ua = { render: Na }, Ta = { class: "toolbar" }, Aa = { class: "tool-button
|
|
|
3734
3734
|
}), (f, b) => {
|
|
3735
3735
|
const $ = x("el-scrollbar");
|
|
3736
3736
|
return u(), E(te, null, [
|
|
3737
|
-
v("h1", Ka, A(y(
|
|
3737
|
+
v("h1", Ka, A(y(me)(a == null ? void 0 : a.name)), 1),
|
|
3738
3738
|
h($, null, {
|
|
3739
3739
|
default: p(() => {
|
|
3740
3740
|
var V, M;
|