@vancone/console-component 0.1.1-beta.13 → 0.1.1-beta.14
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
|
@@ -26,7 +26,7 @@ var we = (e, t, o) => new Promise((n, s) => {
|
|
|
26
26
|
}, a = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(r, l);
|
|
27
27
|
a((o = o.apply(e, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import { openBlock as p, createElementBlock as M, createElementVNode as b, defineComponent as ve, reactive as ce, resolveComponent as k, createVNode as _, withCtx as m, unref as C, Fragment as oe, renderList as de, toDisplayString as D, normalizeStyle as De, ref as N, onMounted as Nt, createCommentVNode as z, createTextVNode as ee, createBlock as V, nextTick as
|
|
29
|
+
import { openBlock as p, createElementBlock as M, createElementVNode as b, defineComponent as ve, reactive as ce, resolveComponent as k, createVNode as _, withCtx as m, unref as C, Fragment as oe, renderList as de, toDisplayString as D, normalizeStyle as De, ref as N, onMounted as Nt, createCommentVNode as z, createTextVNode as ee, createBlock as V, nextTick as je, resolveDynamicComponent as tt, effectScope as At, markRaw as Pe, toRaw as ze, hasInjectionContext as _o, inject as go, getCurrentInstance as bo, watch as Ce, isRef as qe, isReactive as ft, toRef as at, computed as Fe, getCurrentScope as vo, onScopeDispose as yo, toRefs as St, createStaticVNode as wo, normalizeClass as Mt, resolveDirective as Ut, withDirectives as Tt } from "vue";
|
|
30
30
|
import { useRoute as He, useRouter as rt } from "vue-router";
|
|
31
31
|
import So from "axios";
|
|
32
32
|
import { ElMessage as lt, ElMessageBox as Co } from "element-plus";
|
|
@@ -595,7 +595,7 @@ const _n = { render: hn }, gn = { class: "header" }, bn = { class: "title" }, vn
|
|
|
595
595
|
},
|
|
596
596
|
setup(e) {
|
|
597
597
|
const t = e;
|
|
598
|
-
return
|
|
598
|
+
return je(() => console.log("menu", t.menu)), (o, n) => {
|
|
599
599
|
const s = k("SideMenuItem", !0), r = k("el-sub-menu"), l = k("el-menu-item");
|
|
600
600
|
return o.menu.children && o.menu.children.length > 0 ? (p(), V(r, {
|
|
601
601
|
key: 0,
|
|
@@ -750,8 +750,8 @@ function qt(e, t) {
|
|
|
750
750
|
* (c) 2024 Eduardo San Martin Morote
|
|
751
751
|
* @license MIT
|
|
752
752
|
*/
|
|
753
|
-
let
|
|
754
|
-
const
|
|
753
|
+
let Le;
|
|
754
|
+
const Be = (e) => Le = e, Bt = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
755
755
|
/* istanbul ignore next */
|
|
756
756
|
Symbol()
|
|
757
757
|
);
|
|
@@ -1076,7 +1076,7 @@ function Zn(e, t) {
|
|
|
1076
1076
|
editable: !0,
|
|
1077
1077
|
value: a._isOptionsAPI ? {
|
|
1078
1078
|
_custom: {
|
|
1079
|
-
value:
|
|
1079
|
+
value: ze(a.$state),
|
|
1080
1080
|
actions: [
|
|
1081
1081
|
{
|
|
1082
1082
|
icon: "restore",
|
|
@@ -1114,7 +1114,7 @@ function Zn(e, t) {
|
|
|
1114
1114
|
const s = n.nodeId === Ze ? t : t._s.get(n.nodeId);
|
|
1115
1115
|
if (!s)
|
|
1116
1116
|
return;
|
|
1117
|
-
s && (n.nodeId !== Ze && (globalThis.$store =
|
|
1117
|
+
s && (n.nodeId !== Ze && (globalThis.$store = ze(s)), n.state = Yn(s));
|
|
1118
1118
|
}
|
|
1119
1119
|
}), o.on.editInspectorState((n, s) => {
|
|
1120
1120
|
if (n.app === e && n.inspectorId === le) {
|
|
@@ -1271,7 +1271,7 @@ function es(e, t) {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
let Zt = 0, Oe;
|
|
1273
1273
|
function Ot(e, t, o) {
|
|
1274
|
-
const n = t.reduce((s, r) => (s[r] =
|
|
1274
|
+
const n = t.reduce((s, r) => (s[r] = ze(e)[r], s), {});
|
|
1275
1275
|
for (const s in n)
|
|
1276
1276
|
e[s] = function() {
|
|
1277
1277
|
const r = Zt, l = o ? new Proxy(e, {
|
|
@@ -1292,7 +1292,7 @@ function ts({ app: e, store: t, options: o }) {
|
|
|
1292
1292
|
if (t._isOptionsAPI = !!o.state, !t._p._testing) {
|
|
1293
1293
|
Ot(t, Object.keys(o.actions), t._isOptionsAPI);
|
|
1294
1294
|
const n = t._hotUpdate;
|
|
1295
|
-
|
|
1295
|
+
ze(t)._hotUpdate = function(s) {
|
|
1296
1296
|
n.apply(this, arguments), Ot(t, Object.keys(s._hmrPayload.actions), !!t._isOptionsAPI);
|
|
1297
1297
|
};
|
|
1298
1298
|
}
|
|
@@ -1308,7 +1308,7 @@ function os() {
|
|
|
1308
1308
|
let o = [], n = [];
|
|
1309
1309
|
const s = Pe({
|
|
1310
1310
|
install(r) {
|
|
1311
|
-
|
|
1311
|
+
Be(s), s._a = r, r.provide(Bt, s), r.config.globalProperties.$pinia = s, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ve && Zn(r, s), n.forEach((l) => o.push(l)), n = [];
|
|
1312
1312
|
},
|
|
1313
1313
|
use(r) {
|
|
1314
1314
|
return !this._a && !jt ? n.push(r) : o.push(r), this;
|
|
@@ -1329,7 +1329,7 @@ function eo(e, t) {
|
|
|
1329
1329
|
if (!(o in e))
|
|
1330
1330
|
continue;
|
|
1331
1331
|
const s = e[o];
|
|
1332
|
-
Ne(s) && Ne(n) && !
|
|
1332
|
+
Ne(s) && Ne(n) && !qe(n) && !ft(n) ? e[o] = eo(s, n) : e[o] = n;
|
|
1333
1333
|
}
|
|
1334
1334
|
return e;
|
|
1335
1335
|
}
|
|
@@ -1355,7 +1355,7 @@ function dt(e, t) {
|
|
|
1355
1355
|
if (!t.hasOwnProperty(o))
|
|
1356
1356
|
continue;
|
|
1357
1357
|
const n = t[o], s = e[o];
|
|
1358
|
-
Ne(s) && Ne(n) && e.hasOwnProperty(o) && !
|
|
1358
|
+
Ne(s) && Ne(n) && e.hasOwnProperty(o) && !qe(n) && !ft(n) ? e[o] = dt(s, n) : e[o] = n;
|
|
1359
1359
|
}
|
|
1360
1360
|
return e;
|
|
1361
1361
|
}
|
|
@@ -1368,7 +1368,7 @@ function rs(e) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
const { assign: fe } = Object;
|
|
1370
1370
|
function $t(e) {
|
|
1371
|
-
return !!(
|
|
1371
|
+
return !!(qe(e) && e.effect);
|
|
1372
1372
|
}
|
|
1373
1373
|
function It(e, t, o, n) {
|
|
1374
1374
|
const { state: s, actions: r, getters: l } = t, a = o.state.value[e];
|
|
@@ -1379,8 +1379,8 @@ function It(e, t, o, n) {
|
|
|
1379
1379
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1380
1380
|
St(N(s ? s() : {}).value)
|
|
1381
1381
|
) : St(o.state.value[e]);
|
|
1382
|
-
return fe(w, r, Object.keys(l || {}).reduce((y, A) => (process.env.NODE_ENV !== "production" && A in w && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${A}" in store "${e}".`), y[A] = Pe(
|
|
1383
|
-
|
|
1382
|
+
return fe(w, r, Object.keys(l || {}).reduce((y, A) => (process.env.NODE_ENV !== "production" && A in w && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${A}" in store "${e}".`), y[A] = Pe(Fe(() => {
|
|
1383
|
+
Be(o);
|
|
1384
1384
|
const U = o._s.get(e);
|
|
1385
1385
|
return l[A].call(U, U);
|
|
1386
1386
|
})), y), {}));
|
|
@@ -1414,7 +1414,7 @@ function pt(e, t, o = {}, n, s, r) {
|
|
|
1414
1414
|
events: U
|
|
1415
1415
|
});
|
|
1416
1416
|
const v = L = Symbol();
|
|
1417
|
-
|
|
1417
|
+
je().then(() => {
|
|
1418
1418
|
L === v && (d = !0);
|
|
1419
1419
|
}), w = !0, Me(y, c, n.state.value[e]);
|
|
1420
1420
|
}
|
|
@@ -1436,7 +1436,7 @@ function pt(e, t, o = {}, n, s, r) {
|
|
|
1436
1436
|
if (xt in u)
|
|
1437
1437
|
return u[ct] = c, u;
|
|
1438
1438
|
const v = function() {
|
|
1439
|
-
|
|
1439
|
+
Be(n);
|
|
1440
1440
|
const $ = Array.from(arguments), F = [], H = [];
|
|
1441
1441
|
function G(f) {
|
|
1442
1442
|
F.push(f);
|
|
@@ -1497,8 +1497,8 @@ function pt(e, t, o = {}, n, s, r) {
|
|
|
1497
1497
|
const I = (n._a && n._a.runWithContext || ns)(() => n._e.run(() => (l = At()).run(() => t({ action: B }))));
|
|
1498
1498
|
for (const u in I) {
|
|
1499
1499
|
const c = I[u];
|
|
1500
|
-
if (
|
|
1501
|
-
process.env.NODE_ENV !== "production" && s ? Qe(R.value, u, at(I, u)) : r || (j && rs(c) && (
|
|
1500
|
+
if (qe(c) && !$t(c) || ft(c))
|
|
1501
|
+
process.env.NODE_ENV !== "production" && s ? Qe(R.value, u, at(I, u)) : r || (j && rs(c) && (qe(c) ? c.value = j[u] : dt(c, j[u])), n.state.value[e][u] = c), process.env.NODE_ENV !== "production" && ne.state.push(u);
|
|
1502
1502
|
else if (typeof c == "function") {
|
|
1503
1503
|
const v = process.env.NODE_ENV !== "production" && s ? c : B(c, u);
|
|
1504
1504
|
I[u] = v, process.env.NODE_ENV !== "production" && (ne.actions[u] = c), a.actions[u] = c;
|
|
@@ -1508,7 +1508,7 @@ function pt(e, t, o = {}, n, s, r) {
|
|
|
1508
1508
|
) : c, Ve && (I._getters || // @ts-expect-error: same
|
|
1509
1509
|
(I._getters = Pe([]))).push(u));
|
|
1510
1510
|
}
|
|
1511
|
-
if (fe(g, I), fe(
|
|
1511
|
+
if (fe(g, I), fe(ze(g), I), Object.defineProperty(g, "$state", {
|
|
1512
1512
|
get: () => process.env.NODE_ENV !== "production" && s ? R.value : n.state.value[e],
|
|
1513
1513
|
set: (u) => {
|
|
1514
1514
|
if (process.env.NODE_ENV !== "production" && s)
|
|
@@ -1526,7 +1526,7 @@ function pt(e, t, o = {}, n, s, r) {
|
|
|
1526
1526
|
Qe(g, c, at(u.$state, c));
|
|
1527
1527
|
}), Object.keys(g.$state).forEach((c) => {
|
|
1528
1528
|
c in u.$state || it(g, c);
|
|
1529
|
-
}), d = !1, w = !1, n.state.value[e] = at(u._hmrPayload, "hotState"), w = !0,
|
|
1529
|
+
}), d = !1, w = !1, n.state.value[e] = at(u._hmrPayload, "hotState"), w = !0, je().then(() => {
|
|
1530
1530
|
d = !0;
|
|
1531
1531
|
});
|
|
1532
1532
|
for (const c in u._hmrPayload.actions) {
|
|
@@ -1536,7 +1536,7 @@ function pt(e, t, o = {}, n, s, r) {
|
|
|
1536
1536
|
for (const c in u._hmrPayload.getters) {
|
|
1537
1537
|
const v = u._hmrPayload.getters[c], $ = r ? (
|
|
1538
1538
|
// special handling of options api
|
|
1539
|
-
|
|
1539
|
+
Fe(() => (Be(n), v.call(g, g)))
|
|
1540
1540
|
) : v;
|
|
1541
1541
|
Qe(g, c, $);
|
|
1542
1542
|
}
|
|
@@ -1586,11 +1586,11 @@ function as(e, t, o) {
|
|
|
1586
1586
|
const d = _o();
|
|
1587
1587
|
if (a = // in test mode, ignore the argument provided as we can always retrieve a
|
|
1588
1588
|
// pinia instance with getActivePinia()
|
|
1589
|
-
(process.env.NODE_ENV === "test" &&
|
|
1589
|
+
(process.env.NODE_ENV === "test" && Le && Le._testing ? null : a) || (d ? go(Bt, null) : null), a && Be(a), process.env.NODE_ENV !== "production" && !Le)
|
|
1590
1590
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
1591
1591
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
1592
1592
|
This will fail in production.`);
|
|
1593
|
-
a =
|
|
1593
|
+
a = Le, a._s.has(n) || (r ? pt(n, t, s, a) : It(n, s, a), process.env.NODE_ENV !== "production" && (l._pinia = a));
|
|
1594
1594
|
const w = a._s.get(n);
|
|
1595
1595
|
if (process.env.NODE_ENV !== "production" && i) {
|
|
1596
1596
|
const y = "__hot:" + n, A = r ? pt(y, t, s, a, !0) : It(y, fe({}, s), a, !0);
|
|
@@ -1828,7 +1828,7 @@ const ro = /* @__PURE__ */ as("console", {
|
|
|
1828
1828
|
emits: ["update:menuCollapsed"],
|
|
1829
1829
|
setup(e, { emit: t }) {
|
|
1830
1830
|
ro(gt);
|
|
1831
|
-
const o = He(), n =
|
|
1831
|
+
const o = He(), n = Fe(() => {
|
|
1832
1832
|
var r;
|
|
1833
1833
|
const s = o.meta.activeMenu;
|
|
1834
1834
|
if (s === "{model}") {
|
|
@@ -1956,7 +1956,7 @@ const Vs = /* @__PURE__ */ _e(Is, [["render", Ps]]), Ns = { class: "card-wrapper
|
|
|
1956
1956
|
break;
|
|
1957
1957
|
}
|
|
1958
1958
|
}
|
|
1959
|
-
|
|
1959
|
+
je(() => {
|
|
1960
1960
|
s.tableRef && s.cards && s.cards.length > 0 && s.tableRef.updateConfigAndRefresh((a != null ? a : s.cards[0]).model);
|
|
1961
1961
|
});
|
|
1962
1962
|
}), Ce(
|
|
@@ -2009,7 +2009,7 @@ function Ee(e, t, o) {
|
|
|
2009
2009
|
return he.get(e, { params: o });
|
|
2010
2010
|
}
|
|
2011
2011
|
}
|
|
2012
|
-
const
|
|
2012
|
+
const Re = (e) => {
|
|
2013
2013
|
const t = Object.keys(e);
|
|
2014
2014
|
let o = {};
|
|
2015
2015
|
t.forEach((n) => {
|
|
@@ -2031,7 +2031,7 @@ const Be = (e) => {
|
|
|
2031
2031
|
},
|
|
2032
2032
|
emits: ["update:id"],
|
|
2033
2033
|
setup(e, { expose: t, emit: o }) {
|
|
2034
|
-
const { t: n } = ot.global, s = e, r = ce({}), l = N(!1), a = N(), i = ce({}), d = N(!0), w = (S) => s.mode === "view" && (B(S, void 0) || B(S, "input") || B(S, "select") || B(S, "password") || B(S, "input-number")), y =
|
|
2034
|
+
const { t: n } = ot.global, s = e, r = ce({}), l = N(!1), a = N(), i = ce({}), d = N(!0), w = (S) => s.mode === "view" && (B(S, void 0) || B(S, "input") || B(S, "select") || B(S, "password") || B(S, "input-number")), y = Fe(() => s.model.fields ? s.model.fields.filter(
|
|
2035
2035
|
(S) => {
|
|
2036
2036
|
var I, u, c, v;
|
|
2037
2037
|
let g = S.visible !== !1 && ((I = S.formItemAttributes) == null ? void 0 : I.visible) !== !1;
|
|
@@ -2055,7 +2055,7 @@ const Be = (e) => {
|
|
|
2055
2055
|
if (r[x.prop] = null, x.visible !== !1 && ((I = x.formItemAttributes) == null ? void 0 : I.visible) !== !1) {
|
|
2056
2056
|
if (((u = x.formItemAttributes) == null ? void 0 : u.defaultValue) !== void 0 ? r[x.prop] = (c = x.formItemAttributes) == null ? void 0 : c.defaultValue : r[x.prop] = void 0, s.mode !== "view") {
|
|
2057
2057
|
let Q = (v = x.formItemAttributes) == null ? void 0 : v.validationRule;
|
|
2058
|
-
Q !== void 0 && (g[x.prop] = Q), Object.assign(i, g);
|
|
2058
|
+
Q !== void 0 && (g[x.prop] = Q), Re(i), Object.assign(i, g);
|
|
2059
2059
|
}
|
|
2060
2060
|
const E = x.formItemAttributes, f = E == null ? void 0 : E.type, O = ($ = E == null ? void 0 : E.selectAttributes) == null ? void 0 : $.api, T = (F = E == null ? void 0 : E.selectAttributes) == null ? void 0 : F.valueMappingField, X = (H = E == null ? void 0 : E.selectAttributes) == null ? void 0 : H.labelMappingField;
|
|
2061
2061
|
if (f === "select" && O) {
|
|
@@ -2078,7 +2078,7 @@ const Be = (e) => {
|
|
|
2078
2078
|
function U() {
|
|
2079
2079
|
var S;
|
|
2080
2080
|
console.log(`FormView.refresh: id = ${s.id}, model = `, s.model), R(), d.value = (S = s.model.useI18n) != null ? S : !0, A(), (s.mode === "update" || s.mode === "view") && s.id !== void 0 && s.id !== "" && s.model.api !== "" && (l.value = !0, Ee(`${s.model.api}/${s.id}`, "GET", {}).then(({ data: g }) => {
|
|
2081
|
-
|
|
2081
|
+
Re(r), Object.assign(r, g.data), l.value = !1;
|
|
2082
2082
|
}));
|
|
2083
2083
|
}
|
|
2084
2084
|
function j() {
|
|
@@ -2245,7 +2245,7 @@ const Be = (e) => {
|
|
|
2245
2245
|
]);
|
|
2246
2246
|
};
|
|
2247
2247
|
}
|
|
2248
|
-
}), io = /* @__PURE__ */ _e(Fs, [["__scopeId", "data-v-
|
|
2248
|
+
}), io = /* @__PURE__ */ _e(Fs, [["__scopeId", "data-v-38082a40"]]), Gs = { class: "console-dialog__body" }, Ls = {
|
|
2249
2249
|
key: 0,
|
|
2250
2250
|
class: "process-view"
|
|
2251
2251
|
}, js = { class: "operation-button-wrapper" }, co = /* @__PURE__ */ ve({
|
|
@@ -2370,7 +2370,7 @@ const Be = (e) => {
|
|
|
2370
2370
|
pageSize: 10,
|
|
2371
2371
|
pageNo: 1,
|
|
2372
2372
|
totalElements: 0
|
|
2373
|
-
}), B =
|
|
2373
|
+
}), B = Fe(() => s.filter(
|
|
2374
2374
|
(f) => {
|
|
2375
2375
|
var O, T;
|
|
2376
2376
|
return ((O = f.formItemAttributes) == null ? void 0 : O.type) !== "password" && f.visible !== !1 && ((T = f.tableColumnAttributes) == null ? void 0 : T.visible) !== !1;
|
|
@@ -2409,13 +2409,13 @@ const Be = (e) => {
|
|
|
2409
2409
|
return f.label ? o(f.label) : (X = (T = f.functions) == null ? void 0 : T.transformLabel) == null ? void 0 : X.call(T, O.$index, O.row);
|
|
2410
2410
|
}
|
|
2411
2411
|
function g(f) {
|
|
2412
|
-
|
|
2412
|
+
Re(n.model), Object.assign(n.model, f);
|
|
2413
2413
|
}
|
|
2414
2414
|
function x() {
|
|
2415
2415
|
var O, T, X;
|
|
2416
2416
|
if (L.value = !0, !n.model || !n.model.api)
|
|
2417
2417
|
return;
|
|
2418
|
-
|
|
2418
|
+
Re(r), r.showPane = !0, Object.assign(r, (O = n.model.tableConfig) != null ? O : {}), s.splice(0, s.length, ...n.model.fields), l.value = (T = n.model.route) != null ? T : "", a.value = (X = n.model.useI18n) != null ? X : !0;
|
|
2419
2419
|
let f = Ye({}, r.queryParams);
|
|
2420
2420
|
f.pageSize = q.pageSize, f.pageNo = q.pageNo, f.search = w.value, Ee(n.model.api, "GET", f).then(({ data: Q }) => {
|
|
2421
2421
|
const { list: se, totalCount: ie } = Q.data;
|
|
@@ -2623,7 +2623,7 @@ const Be = (e) => {
|
|
|
2623
2623
|
"show-overflow-tooltip": ""
|
|
2624
2624
|
}, {
|
|
2625
2625
|
default: m((xe) => {
|
|
2626
|
-
var $e,
|
|
2626
|
+
var $e, Ge, bt;
|
|
2627
2627
|
return [
|
|
2628
2628
|
($e = J.tableColumnAttributes) != null && $e.link ? (p(), V(Z, {
|
|
2629
2629
|
key: 0,
|
|
@@ -2634,7 +2634,7 @@ const Be = (e) => {
|
|
|
2634
2634
|
b("span", null, D(ne(J, xe)), 1)
|
|
2635
2635
|
]),
|
|
2636
2636
|
_: 2
|
|
2637
|
-
}, 1032, ["to"])) : (
|
|
2637
|
+
}, 1032, ["to"])) : (Ge = J.tableColumnAttributes) != null && Ge.routerLink ? (p(), V(Z, {
|
|
2638
2638
|
key: 1,
|
|
2639
2639
|
class: "router-link",
|
|
2640
2640
|
to: J.tableColumnAttributes.routerLink.replace("{id}", xe.row.id)
|
|
@@ -2707,8 +2707,8 @@ const Be = (e) => {
|
|
|
2707
2707
|
type: "primary",
|
|
2708
2708
|
key: ge.label,
|
|
2709
2709
|
onClick: (xe) => {
|
|
2710
|
-
var $e,
|
|
2711
|
-
return ((
|
|
2710
|
+
var $e, Ge;
|
|
2711
|
+
return ((Ge = ($e = ge.functions) == null ? void 0 : $e.click) == null ? void 0 : Ge.call($e, J.$index, J.row)) && x();
|
|
2712
2712
|
}
|
|
2713
2713
|
}, {
|
|
2714
2714
|
default: m(() => [
|
|
@@ -2755,7 +2755,7 @@ const Be = (e) => {
|
|
|
2755
2755
|
}, Qs = { class: "icon-wrapper" }, Ks = { class: "info-wrapper" }, Xs = { class: "title-wrapper" }, Zs = { class: "tabs-wrapper" }, er = { class: "dialog-footer" }, tr = /* @__PURE__ */ ve({
|
|
2756
2756
|
__name: "DetailPage",
|
|
2757
2757
|
setup(e) {
|
|
2758
|
-
const { t } = Je(), o = He(), n = rt(), s =
|
|
2758
|
+
const { t } = Je(), o = He(), n = rt(), s = Fe(() => o.query.id), r = N(!1), l = N(!1), a = N("view"), i = N(), d = N(-1), w = N(), y = N(), A = N("summary"), U = N(""), j = N(""), R = N(""), L = N(0), P = ce({
|
|
2759
2759
|
api: "",
|
|
2760
2760
|
fields: []
|
|
2761
2761
|
}), K = ce([]);
|
|
@@ -2827,7 +2827,7 @@ const Be = (e) => {
|
|
|
2827
2827
|
return;
|
|
2828
2828
|
} else
|
|
2829
2829
|
console.debug("Detail page model found:", u, me.value[u]);
|
|
2830
|
-
|
|
2830
|
+
Re(P);
|
|
2831
2831
|
const c = Te(me.value[u]);
|
|
2832
2832
|
Object.assign(P, c), L.value++, d.value = -1, A.value = "summary";
|
|
2833
2833
|
const v = (F = ($ = P.pageConfig) == null ? void 0 : $.detailPage) == null ? void 0 : F.tabs;
|
|
@@ -2863,7 +2863,7 @@ const Be = (e) => {
|
|
|
2863
2863
|
}
|
|
2864
2864
|
],
|
|
2865
2865
|
(u) => {
|
|
2866
|
-
|
|
2866
|
+
je(() => {
|
|
2867
2867
|
var v, $, F;
|
|
2868
2868
|
const c = ($ = (v = P.pageConfig) == null ? void 0 : v.detailPage) == null ? void 0 : $.infoCard;
|
|
2869
2869
|
c && (U.value = c.titleFieldProp ? i.value.formData[c.titleFieldProp] : "", j.value = c.subtitleFieldProp ? i.value.formData[c.subtitleFieldProp] : "", R.value = c.tagFieldProp ? i.value.formData[c.tagFieldProp] : "", (F = P.fields) == null || F.forEach((H) => {
|
|
@@ -3115,7 +3115,7 @@ const Be = (e) => {
|
|
|
3115
3115
|
console.warn("TablePage.init: model not found", w, me.value);
|
|
3116
3116
|
return;
|
|
3117
3117
|
}
|
|
3118
|
-
|
|
3118
|
+
Re(l);
|
|
3119
3119
|
const y = Te(me.value[w]);
|
|
3120
3120
|
Object.assign(l, y), (U = (A = l.pageConfig) == null ? void 0 : A.tablePage) != null && U.tabViewAttributes || Object.assign(a, l), i();
|
|
3121
3121
|
}
|