@ximatai/muyun-web-app 0.26.21 → 0.26.23
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/dist/{BusinessActivityLogView-6L75GZVc.js → BusinessActivityLogView-IWGZiPLo.js} +2 -2
- package/dist/{BusinessLogListDrawer-C4iFnkE7.js → BusinessLogListDrawer-UCsg6psI.js} +85 -85
- package/dist/{CodeConfigurationView-D7sqbNCg.js → CodeConfigurationView-Calkazua.js} +532 -532
- package/dist/{ConfigurationTranslationView-ta82REbn.js → ConfigurationTranslationView-fZrlRAMy.js} +24 -24
- package/dist/{LoginAuditLogView-B_RQ9JIX.js → LoginAuditLogView-B6J7t__0.js} +2 -2
- package/dist/ModuleActionManagementView-BZ89Woex.js +755 -0
- package/dist/{ModuleGovernanceView-Cl6tkZ6M.js → ModuleGovernanceView-D8ONs78K.js} +1892 -1892
- package/dist/{RequestErrorLogView-BJDO3Scn.js → RequestErrorLogView-poMgx4_6.js} +2 -2
- package/dist/RoleDetailWorkspaceView-6Bs1eKbm.js +1435 -0
- package/dist/{RuntimeLogView-jP9ceuJD.js → RuntimeLogView-Co-Z86bt.js} +41 -41
- package/dist/WorkflowAdministrationView-D7QpRHDp.js +650 -0
- package/dist/{WorkflowConfigurationView-Dh6BKQm5.js → WorkflowConfigurationView-mSyL_-We.js} +32 -32
- package/dist/{WorkflowWorkbenchView-BvPNKbuV.js → WorkflowWorkbenchView-DBMh3ycN.js} +224 -224
- package/dist/{codeConfiguration-DhCBKbkc.js → codeConfiguration-D1zrxzoW.js} +44 -44
- package/dist/index.css +1 -1
- package/dist/index.js +524 -550
- package/dist/moduleMenuWorkspace-lIVrTaOB.js +626 -0
- package/dist/{platform-components-i2ONyZ8r.js → platform-components-D0T03KGl.js} +2815 -2913
- package/dist/{platform-workbench-DhaREttd.js → platform-workbench-CobObbuz.js} +2770 -2745
- package/dist/record-read.js +2 -0
- package/dist/recordReadEntry-CxDHM44F.js +152 -0
- package/dist/types/consumer/recordRead.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +4 -0
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +2 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +10 -8
- package/dist/types/platform-components/useBusinessCodeForm.d.ts +1 -0
- package/dist/types/platform-workbench/useAssistantConversation.d.ts +3 -0
- package/dist/types/web-contracts/operation.d.ts +2 -0
- package/dist/{useWorkflowConfigurationContext-B_NxZFyz.js → useWorkflowConfigurationContext-BkcNPU2H.js} +8 -8
- package/dist/{workspaceViews-MTwNg_aQ.js → workspaceViews-BtqO8rU0.js} +355 -355
- package/package.json +5 -1
- package/dist/ModuleActionManagementView-DtGF3NC_.js +0 -755
- package/dist/RoleDetailWorkspaceView-C0Ab3PEp.js +0 -1435
- package/dist/WorkflowAdministrationView-BmNJQYtq.js +0 -650
- package/dist/moduleMenuWorkspace-BbVmNKZn.js +0 -626
package/dist/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { n as e, r as t } from "./rolldown-runtime-BAC7EHh5.js";
|
|
2
|
-
import { $ as n, A as r, B as i, C as a, Ct as o, Dt as s, Et as c, F as l, G as u, H as d, I as f, J as p, K as m, L as h, M as g, N as _, O as v, Ot as y, P as b, Q as x, R as ee, S as te, St as ne, Tt as re, U as ie, V as S, W as ae, X as oe, Y as se, Z as ce, _ as C, _t as w, a as T, at as E, b as D, bt as le, c as ue, ct as O, d as de, dt as fe, et as pe, f as k, ft as me, gt as he, h as ge, ht as _e, i as ve, it as ye, j as be, k as xe, l as Se, lt as Ce, m as we, mt as Te, n as Ee, nt as A, o as De, ot as Oe, p as ke, pt as Ae, q as je, r as Me, rt as Ne, s as Pe, st as Fe, t as Ie, tt as Le, u as Re, ut as ze, v as Be, vt as Ve, w as He, wt as Ue, x as We, xt as Ge, y as Ke, yt as qe, z as Je } from "./platform-workbench-
|
|
3
|
-
import { $a as Ye, $i as Xe, $r as Ze, Aa as Qe, Ai as $e, An as et, Ar as tt, Ba as nt, Bi as rt, Bn as it, Br as at, Ca as ot, Ci as st, Cn as ct, Cr as lt, Da as ut, Di as dt, Dn as ft, Dr as pt, Ea as mt, Ei as ht, En as gt, Er as _t, Fa as vt, Fi as yt, Fr as bt, G as xt, Ga as St, Gi as Ct, Gn as wt, Gr as Tt, Ha as Et, Hi as Dt, Hn as Ot, Hr as kt, Ht as At, Ia as jt, Ii as Mt, In as Nt, Ir as Pt, It as Ft, Ja as It, Ji as Lt, Jn as Rt, Jr as zt, Ka as Bt, Ki as Vt, Kn as Ht, Kr as Ut, Kt as Wt, La as Gt, Li as Kt, Lr as qt, Ma as Jt, Mi as Yt, Mn as Xt, Mr as Zt, Na as Qt, Ni as $t, Nn as en, Nr as tn, Oa as nn, Oi as rn, Or as an, Pa as on, Pi as sn, Pn as cn, Pr as ln, Q as un, Qa as dn, Qi as fn, Qn as pn, Qr as mn, Ra as hn, Ri as gn, Rn as _n, Rr as vn, Sa as yn, Si as bn, Sn as xn, Sr as Sn, Ta as Cn, Ti as wn, Tr as Tn, Ua as En, Ui as Dn, Ur as On, Va as kn, Vi as An, Vr as jn, Wa as Mn, Wi as Nn, Wn as Pn, Wr as Fn, Xa as In, Xi as Ln, Xr as Rn, Ya as zn, Yi as Bn, Yr as Vn, Z as Hn, Za as Un, Zi as Wn, Zr as Gn, _a as Kn, _i as qn, _n as Jn, _r as Yn, _t as Xn, aa as Zn, ai as Qn, an as $n, ar as er, ba as tr, bi as nr, bn as rr, br as ir, bt as ar, ca as or, ci as sr, cn as cr, ct as lr, da as ur, di as dr, dn as fr, dr as pr, dt as mr, ea as hr, ei as gr, en as _r,
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import
|
|
2
|
+
import { $ as n, A as r, B as i, C as a, Ct as o, Dt as s, Et as c, F as l, G as u, H as d, I as f, J as p, K as m, L as h, M as g, N as _, O as v, Ot as y, P as b, Q as x, R as ee, S as te, St as ne, Tt as re, U as ie, V as S, W as ae, X as oe, Y as se, Z as ce, _ as C, _t as w, a as T, at as E, b as D, bt as le, c as ue, ct as O, d as de, dt as fe, et as pe, f as k, ft as me, gt as he, h as ge, ht as _e, i as ve, it as ye, j as be, k as xe, l as Se, lt as Ce, m as we, mt as Te, n as Ee, nt as A, o as De, ot as Oe, p as ke, pt as Ae, q as je, r as Me, rt as Ne, s as Pe, st as Fe, t as Ie, tt as Le, u as Re, ut as ze, v as Be, vt as Ve, w as He, wt as Ue, x as We, xt as Ge, y as Ke, yt as qe, z as Je } from "./platform-workbench-CobObbuz.js";
|
|
3
|
+
import { $a as Ye, $i as Xe, $r as Ze, Aa as Qe, Ai as $e, An as et, Ar as tt, Ba as nt, Bi as rt, Bn as it, Br as at, Ca as ot, Ci as st, Cn as ct, Cr as lt, Da as ut, Di as dt, Dn as ft, Dr as pt, Ea as mt, Ei as ht, En as gt, Er as _t, Fa as vt, Fi as yt, Fr as bt, G as xt, Ga as St, Gi as Ct, Gn as wt, Gr as Tt, Ha as Et, Hi as Dt, Hn as Ot, Hr as kt, Ht as At, Ia as jt, Ii as Mt, In as Nt, Ir as Pt, It as Ft, Ja as It, Ji as Lt, Jn as Rt, Jr as zt, Ka as Bt, Ki as Vt, Kn as Ht, Kr as Ut, Kt as Wt, La as Gt, Li as Kt, Lr as qt, Ma as Jt, Mi as Yt, Mn as Xt, Mr as Zt, Na as Qt, Ni as $t, Nn as en, Nr as tn, Oa as nn, Oi as rn, Or as an, Pa as on, Pi as sn, Pn as cn, Pr as ln, Q as un, Qa as dn, Qi as fn, Qn as pn, Qr as mn, Ra as hn, Ri as gn, Rn as _n, Rr as vn, Sa as yn, Si as bn, Sn as xn, Sr as Sn, Ta as Cn, Ti as wn, Tr as Tn, Ua as En, Ui as Dn, Ur as On, Va as kn, Vi as An, Vr as jn, Wa as Mn, Wi as Nn, Wn as Pn, Wr as Fn, Xa as In, Xi as Ln, Xr as Rn, Ya as zn, Yi as Bn, Yr as Vn, Z as Hn, Za as Un, Zi as Wn, Zr as Gn, _a as Kn, _i as qn, _n as Jn, _r as Yn, _t as Xn, aa as Zn, ai as Qn, an as $n, ar as er, ba as tr, bi as nr, bn as rr, br as ir, bt as ar, ca as or, ci as sr, cn as cr, ct as lr, da as ur, di as dr, dn as fr, dr as pr, dt as mr, ea as hr, ei as gr, en as _r, er as vr, et as yr, fa as br, fi as xr, fn as Sr, fr as Cr, ft as wr, ga as Tr, gi as Er, gr as Dr, ha as Or, hi as kr, hr as Ar, ia as jr, ii as Mr, ir as Nr, ja as Pr, ji as Fr, jr as Ir, ka as Lr, ki as Rr, kr as zr, la as Br, li as Vr, ln as Hr, lt as Ur, ma as Wr, mi as Gr, mn as Kr, mr as qr, mt as Jr, n as Yr, na as Xr, ni as Zr, no as Qr, oa as $r, oi as ei, on as ti, or as ni, pa as ri, pi as ii, pr as ai, pt as oi, qa as si, qi as ci, qn as li, qr as ui, ra as di, ri as fi, rn as pi, ro as mi, rr as j, sa as hi, si as gi, t as _i, ta as vi, ti as yi, tn as bi, to as xi, tt as Si, ua as Ci, ui as wi, un as Ti, ur as Ei, ut as Di, va as Oi, vi as ki, vn as Ai, vr as ji, vt as Mi, wa as Ni, wi as Pi, wr as Fi, xa as Ii, xi as Li, xr as Ri, xt as zi, ya as Bi, yi as Vi, yn as Hi, yr as Ui, za as Wi, zi as Gi, zn as Ki, zr as qi } from "./platform-components-D0T03KGl.js";
|
|
4
|
+
import { n as Ji, t as Yi } from "./recordReadEntry-CxDHM44F.js";
|
|
5
|
+
import { m as Xi } from "./codeConfiguration-D1zrxzoW.js";
|
|
6
|
+
import "./workspaceViews-BtqO8rU0.js";
|
|
7
|
+
import * as Zi from "vue";
|
|
8
|
+
import { Fragment as Qi, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createSlots as $i, createTextVNode as ea, createVNode as L, defineAsyncComponent as R, defineComponent as z, guardReactiveProps as ta, inject as na, normalizeClass as ra, normalizeProps as ia, normalizeStyle as aa, onBeforeUnmount as oa, onMounted as sa, openBlock as B, provide as ca, ref as V, renderList as la, renderSlot as H, resolveDynamicComponent as ua, toDisplayString as U, unref as W, vShow as da, watch as fa, withCtx as G, withDirectives as pa, withModifiers as ma } from "vue";
|
|
8
9
|
//#region node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
9
|
-
var
|
|
10
|
+
var ha = class {
|
|
10
11
|
constructor() {
|
|
11
12
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
12
13
|
}
|
|
@@ -20,7 +21,7 @@ var ma = class {
|
|
|
20
21
|
}
|
|
21
22
|
onSubscribe() {}
|
|
22
23
|
onUnsubscribe() {}
|
|
23
|
-
},
|
|
24
|
+
}, ga = new class extends ha {
|
|
24
25
|
#e;
|
|
25
26
|
#t;
|
|
26
27
|
#n;
|
|
@@ -57,13 +58,13 @@ var ma = class {
|
|
|
57
58
|
isFocused() {
|
|
58
59
|
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
59
60
|
}
|
|
60
|
-
}(),
|
|
61
|
+
}(), _a = {
|
|
61
62
|
setTimeout: (e, t) => setTimeout(e, t),
|
|
62
63
|
clearTimeout: (e) => clearTimeout(e),
|
|
63
64
|
setInterval: (e, t) => setInterval(e, t),
|
|
64
65
|
clearInterval: (e) => clearInterval(e)
|
|
65
|
-
},
|
|
66
|
-
#e =
|
|
66
|
+
}, va = new class {
|
|
67
|
+
#e = _a;
|
|
67
68
|
#t = !1;
|
|
68
69
|
setTimeoutProvider(e) {
|
|
69
70
|
process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.", {
|
|
@@ -84,34 +85,34 @@ var ma = class {
|
|
|
84
85
|
this.#e.clearInterval(e);
|
|
85
86
|
}
|
|
86
87
|
}();
|
|
87
|
-
function
|
|
88
|
+
function ya(e) {
|
|
88
89
|
setTimeout(e, 0);
|
|
89
90
|
}
|
|
90
91
|
//#endregion
|
|
91
92
|
//#region node_modules/@tanstack/query-core/build/modern/utils.js
|
|
92
|
-
var
|
|
93
|
+
var ba = typeof window > "u" || "Deno" in globalThis;
|
|
93
94
|
function K() {}
|
|
94
|
-
function
|
|
95
|
+
function xa(e, t) {
|
|
95
96
|
return typeof e == "function" ? e(t) : e;
|
|
96
97
|
}
|
|
97
|
-
function
|
|
98
|
+
function Sa(e) {
|
|
98
99
|
return typeof e == "number" && e >= 0 && e !== Infinity;
|
|
99
100
|
}
|
|
100
|
-
function Sa(e, t) {
|
|
101
|
-
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
102
|
-
}
|
|
103
101
|
function Ca(e, t) {
|
|
104
|
-
return
|
|
102
|
+
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
105
103
|
}
|
|
106
104
|
function wa(e, t) {
|
|
107
105
|
return typeof e == "function" ? e(t) : e;
|
|
108
106
|
}
|
|
109
107
|
function Ta(e, t) {
|
|
108
|
+
return typeof e == "function" ? e(t) : e;
|
|
109
|
+
}
|
|
110
|
+
function Ea(e, t) {
|
|
110
111
|
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
|
|
111
112
|
if (o) {
|
|
112
113
|
if (r) {
|
|
113
|
-
if (t.queryHash !==
|
|
114
|
-
} else if (!
|
|
114
|
+
if (t.queryHash !== Oa(o, t.options)) return !1;
|
|
115
|
+
} else if (!Aa(t.queryKey, o)) return !1;
|
|
115
116
|
}
|
|
116
117
|
if (n !== "all") {
|
|
117
118
|
let e = t.isActive();
|
|
@@ -119,90 +120,90 @@ function Ta(e, t) {
|
|
|
119
120
|
}
|
|
120
121
|
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
|
|
121
122
|
}
|
|
122
|
-
function
|
|
123
|
+
function Da(e, t) {
|
|
123
124
|
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
|
|
124
125
|
if (a) {
|
|
125
126
|
if (!t.options.mutationKey) return !1;
|
|
126
127
|
if (n) {
|
|
127
|
-
if (
|
|
128
|
-
} else if (!
|
|
128
|
+
if (ka(t.options.mutationKey) !== ka(a)) return !1;
|
|
129
|
+
} else if (!Aa(t.options.mutationKey, a)) return !1;
|
|
129
130
|
}
|
|
130
131
|
return !(r && t.state.status !== r || i && !i(t));
|
|
131
132
|
}
|
|
132
|
-
function
|
|
133
|
-
return (t?.queryKeyHashFn ||
|
|
133
|
+
function Oa(e, t) {
|
|
134
|
+
return (t?.queryKeyHashFn || ka)(e);
|
|
134
135
|
}
|
|
135
|
-
function
|
|
136
|
-
return JSON.stringify(e, (e, t) =>
|
|
136
|
+
function ka(e) {
|
|
137
|
+
return JSON.stringify(e, (e, t) => Pa(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
|
|
137
138
|
}
|
|
138
|
-
function
|
|
139
|
-
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) =>
|
|
139
|
+
function Aa(e, t) {
|
|
140
|
+
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => Aa(e[n], t[n])) : !1;
|
|
140
141
|
}
|
|
141
|
-
var
|
|
142
|
-
function
|
|
142
|
+
var ja = Object.prototype.hasOwnProperty;
|
|
143
|
+
function Ma(e, t, n = 0) {
|
|
143
144
|
if (e === t) return e;
|
|
144
145
|
if (n > 500) return t;
|
|
145
|
-
let r =
|
|
146
|
-
if (!r && !(
|
|
146
|
+
let r = Na(e) && Na(t);
|
|
147
|
+
if (!r && !(Pa(e) && Pa(t))) return t;
|
|
147
148
|
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
|
|
148
149
|
for (let l = 0; l < o; l++) {
|
|
149
150
|
let o = r ? l : a[l], u = e[o], d = t[o];
|
|
150
151
|
if (u === d) {
|
|
151
|
-
s[o] = u, (r ? l < i :
|
|
152
|
+
s[o] = u, (r ? l < i : ja.call(e, o)) && c++;
|
|
152
153
|
continue;
|
|
153
154
|
}
|
|
154
155
|
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
|
|
155
156
|
s[o] = d;
|
|
156
157
|
continue;
|
|
157
158
|
}
|
|
158
|
-
let f =
|
|
159
|
+
let f = Ma(u, d, n + 1);
|
|
159
160
|
s[o] = f, f === u && c++;
|
|
160
161
|
}
|
|
161
162
|
return i === o && c === i ? e : s;
|
|
162
163
|
}
|
|
163
|
-
function
|
|
164
|
+
function Na(e) {
|
|
164
165
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
165
166
|
}
|
|
166
|
-
function
|
|
167
|
-
if (!
|
|
167
|
+
function Pa(e) {
|
|
168
|
+
if (!Fa(e)) return !1;
|
|
168
169
|
let t = e.constructor;
|
|
169
170
|
if (t === void 0) return !0;
|
|
170
171
|
let n = t.prototype;
|
|
171
|
-
return !(!
|
|
172
|
+
return !(!Fa(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
172
173
|
}
|
|
173
|
-
function
|
|
174
|
+
function Fa(e) {
|
|
174
175
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
175
176
|
}
|
|
176
|
-
function
|
|
177
|
+
function Ia(e) {
|
|
177
178
|
return new Promise((t) => {
|
|
178
|
-
|
|
179
|
+
va.setTimeout(t, e);
|
|
179
180
|
});
|
|
180
181
|
}
|
|
181
|
-
function
|
|
182
|
+
function La(e, t, n) {
|
|
182
183
|
if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
|
|
183
184
|
if (n.structuralSharing !== !1) {
|
|
184
185
|
if (process.env.NODE_ENV !== "production") try {
|
|
185
|
-
return
|
|
186
|
+
return Ma(e, t);
|
|
186
187
|
} catch (e) {
|
|
187
188
|
throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`), e;
|
|
188
189
|
}
|
|
189
|
-
return
|
|
190
|
+
return Ma(e, t);
|
|
190
191
|
}
|
|
191
192
|
return t;
|
|
192
193
|
}
|
|
193
|
-
function
|
|
194
|
+
function Ra(e, t, n = 0) {
|
|
194
195
|
let r = [...e, t];
|
|
195
196
|
return n && r.length > n ? r.slice(1) : r;
|
|
196
197
|
}
|
|
197
|
-
function
|
|
198
|
+
function za(e, t, n = 0) {
|
|
198
199
|
let r = [t, ...e];
|
|
199
200
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
200
201
|
}
|
|
201
|
-
var
|
|
202
|
-
function
|
|
203
|
-
return process.env.NODE_ENV !== "production" && e.queryFn ===
|
|
202
|
+
var Ba = /* @__PURE__ */ Symbol();
|
|
203
|
+
function Va(e, t) {
|
|
204
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === Ba && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === Ba ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
204
205
|
}
|
|
205
|
-
function
|
|
206
|
+
function Ha(e, t, n) {
|
|
206
207
|
let r = !1, i;
|
|
207
208
|
return Object.defineProperty(e, "signal", {
|
|
208
209
|
enumerable: !0,
|
|
@@ -211,8 +212,8 @@ function Va(e, t, n) {
|
|
|
211
212
|
}
|
|
212
213
|
//#endregion
|
|
213
214
|
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
|
|
214
|
-
var
|
|
215
|
-
let e = () =>
|
|
215
|
+
var Ua = /* @__PURE__ */ (() => {
|
|
216
|
+
let e = () => ba;
|
|
216
217
|
return {
|
|
217
218
|
isServer() {
|
|
218
219
|
return e();
|
|
@@ -224,7 +225,7 @@ var Ha = /* @__PURE__ */ (() => {
|
|
|
224
225
|
})();
|
|
225
226
|
//#endregion
|
|
226
227
|
//#region node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
227
|
-
function
|
|
228
|
+
function Wa() {
|
|
228
229
|
let e, t, n = new Promise((n, r) => {
|
|
229
230
|
e = n, t = r;
|
|
230
231
|
});
|
|
@@ -246,13 +247,13 @@ function Ua() {
|
|
|
246
247
|
}
|
|
247
248
|
//#endregion
|
|
248
249
|
//#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
249
|
-
var
|
|
250
|
-
function
|
|
250
|
+
var Ga = ya;
|
|
251
|
+
function Ka() {
|
|
251
252
|
let e = [], t = 0, n = (e) => {
|
|
252
253
|
e();
|
|
253
254
|
}, r = (e) => {
|
|
254
255
|
e();
|
|
255
|
-
}, i =
|
|
256
|
+
}, i = Ga, a = (r) => {
|
|
256
257
|
t ? e.push(r) : i(() => {
|
|
257
258
|
n(r);
|
|
258
259
|
});
|
|
@@ -294,7 +295,7 @@ function Ga() {
|
|
|
294
295
|
}
|
|
295
296
|
};
|
|
296
297
|
}
|
|
297
|
-
var q =
|
|
298
|
+
var q = Ka(), qa = new class extends ha {
|
|
298
299
|
#e = !0;
|
|
299
300
|
#t;
|
|
300
301
|
#n;
|
|
@@ -328,28 +329,28 @@ var q = Ga(), Ka = new class extends ma {
|
|
|
328
329
|
}();
|
|
329
330
|
//#endregion
|
|
330
331
|
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
331
|
-
function
|
|
332
|
+
function Ja(e) {
|
|
332
333
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
333
334
|
}
|
|
334
|
-
function
|
|
335
|
-
return (e ?? "online") !== "online" ||
|
|
335
|
+
function Ya(e) {
|
|
336
|
+
return (e ?? "online") !== "online" || qa.isOnline();
|
|
336
337
|
}
|
|
337
|
-
var
|
|
338
|
+
var Xa = class extends Error {
|
|
338
339
|
constructor(e) {
|
|
339
340
|
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
340
341
|
}
|
|
341
342
|
};
|
|
342
|
-
function
|
|
343
|
-
let t = !1, n = 0, r, i =
|
|
343
|
+
function Za(e) {
|
|
344
|
+
let t = !1, n = 0, r, i = Wa(), a = () => i.status !== "pending", o = (t) => {
|
|
344
345
|
if (!a()) {
|
|
345
|
-
let n = new
|
|
346
|
+
let n = new Xa(t);
|
|
346
347
|
f(n), e.onCancel?.(n);
|
|
347
348
|
}
|
|
348
349
|
}, s = () => {
|
|
349
350
|
t = !0;
|
|
350
351
|
}, c = () => {
|
|
351
352
|
t = !1;
|
|
352
|
-
}, l = () =>
|
|
353
|
+
}, l = () => ga.isFocused() && (e.networkMode === "always" || qa.isOnline()) && e.canRun(), u = () => Ya(e.networkMode) && e.canRun(), d = (e) => {
|
|
353
354
|
a() || (r?.(), i.resolve(e));
|
|
354
355
|
}, f = (e) => {
|
|
355
356
|
a() || (r?.(), i.reject(e));
|
|
@@ -369,12 +370,12 @@ function Xa(e) {
|
|
|
369
370
|
}
|
|
370
371
|
Promise.resolve(r).then(d).catch((r) => {
|
|
371
372
|
if (a()) return;
|
|
372
|
-
let i = e.retry ?? (
|
|
373
|
+
let i = e.retry ?? (Ua.isServer() ? 0 : 3), o = e.retryDelay ?? Ja, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
|
|
373
374
|
if (t || !c) {
|
|
374
375
|
f(r);
|
|
375
376
|
return;
|
|
376
377
|
}
|
|
377
|
-
n++, e.onFail?.(n, r),
|
|
378
|
+
n++, e.onFail?.(n, r), Ia(s).then(() => l() ? void 0 : p()).then(() => {
|
|
378
379
|
t ? f(r) : m();
|
|
379
380
|
});
|
|
380
381
|
});
|
|
@@ -392,34 +393,34 @@ function Xa(e) {
|
|
|
392
393
|
}
|
|
393
394
|
//#endregion
|
|
394
395
|
//#region node_modules/@tanstack/query-core/build/modern/removable.js
|
|
395
|
-
var
|
|
396
|
+
var Qa = class {
|
|
396
397
|
#e;
|
|
397
398
|
destroy() {
|
|
398
399
|
this.clearGcTimeout();
|
|
399
400
|
}
|
|
400
401
|
scheduleGc() {
|
|
401
|
-
this.clearGcTimeout(),
|
|
402
|
+
this.clearGcTimeout(), Sa(this.gcTime) && (this.#e = va.setTimeout(() => {
|
|
402
403
|
this.optionalRemove();
|
|
403
404
|
}, this.gcTime));
|
|
404
405
|
}
|
|
405
406
|
updateGcTime(e) {
|
|
406
|
-
this.gcTime = Math.max(this.gcTime || 0, e ?? (
|
|
407
|
+
this.gcTime = Math.max(this.gcTime || 0, e ?? (Ua.isServer() ? Infinity : 3e5));
|
|
407
408
|
}
|
|
408
409
|
clearGcTimeout() {
|
|
409
|
-
this.#e !== void 0 && (
|
|
410
|
+
this.#e !== void 0 && (va.clearTimeout(this.#e), this.#e = void 0);
|
|
410
411
|
}
|
|
411
412
|
};
|
|
412
413
|
//#endregion
|
|
413
414
|
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
|
|
414
|
-
function
|
|
415
|
+
function $a(e) {
|
|
415
416
|
return { onFetch: (t, n) => {
|
|
416
417
|
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
|
|
417
418
|
pages: [],
|
|
418
419
|
pageParams: []
|
|
419
420
|
}, c = 0, l = async () => {
|
|
420
421
|
let n = !1, l = (e) => {
|
|
421
|
-
|
|
422
|
-
}, u =
|
|
422
|
+
Ha(e, () => t.signal, () => n = !0);
|
|
423
|
+
}, u = Va(t.options, t.fetchOptions), d = async (e, r, i) => {
|
|
423
424
|
if (n) return Promise.reject(t.signal.reason);
|
|
424
425
|
if (r == null && e.pages.length) return Promise.resolve(e);
|
|
425
426
|
let a = (() => {
|
|
@@ -431,14 +432,14 @@ function Qa(e) {
|
|
|
431
432
|
meta: t.options.meta
|
|
432
433
|
};
|
|
433
434
|
return l(e), e;
|
|
434
|
-
})(), o = await u(a), { maxPages: s } = t.options, c = i ?
|
|
435
|
+
})(), o = await u(a), { maxPages: s } = t.options, c = i ? za : Ra;
|
|
435
436
|
return {
|
|
436
437
|
pages: c(e.pages, o, s),
|
|
437
438
|
pageParams: c(e.pageParams, r, s)
|
|
438
439
|
};
|
|
439
440
|
};
|
|
440
441
|
if (i && a.length) {
|
|
441
|
-
let e = i === "backward", t = e ?
|
|
442
|
+
let e = i === "backward", t = e ? to : eo, n = {
|
|
442
443
|
pages: a,
|
|
443
444
|
pageParams: o
|
|
444
445
|
};
|
|
@@ -446,7 +447,7 @@ function Qa(e) {
|
|
|
446
447
|
} else {
|
|
447
448
|
let t = e ?? a.length;
|
|
448
449
|
do {
|
|
449
|
-
let e = c === 0 ? o[0] ?? r.initialPageParam :
|
|
450
|
+
let e = c === 0 ? o[0] ?? r.initialPageParam : eo(r, s);
|
|
450
451
|
if (c > 0 && e == null) break;
|
|
451
452
|
s = await d(s, e), c++;
|
|
452
453
|
} while (c < t);
|
|
@@ -461,16 +462,16 @@ function Qa(e) {
|
|
|
461
462
|
}, n) : l;
|
|
462
463
|
} };
|
|
463
464
|
}
|
|
464
|
-
function
|
|
465
|
+
function eo(e, { pages: t, pageParams: n }) {
|
|
465
466
|
let r = t.length - 1;
|
|
466
467
|
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
|
|
467
468
|
}
|
|
468
|
-
function
|
|
469
|
+
function to(e, { pages: t, pageParams: n }) {
|
|
469
470
|
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
470
471
|
}
|
|
471
472
|
//#endregion
|
|
472
473
|
//#region node_modules/@tanstack/query-core/build/modern/query.js
|
|
473
|
-
var
|
|
474
|
+
var no = class extends Qa {
|
|
474
475
|
#e;
|
|
475
476
|
#t;
|
|
476
477
|
#n;
|
|
@@ -480,7 +481,7 @@ var to = class extends Za {
|
|
|
480
481
|
#o;
|
|
481
482
|
#s;
|
|
482
483
|
constructor(e) {
|
|
483
|
-
super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t =
|
|
484
|
+
super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = ao(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
|
|
484
485
|
}
|
|
485
486
|
get meta() {
|
|
486
487
|
return this.options.meta;
|
|
@@ -496,15 +497,15 @@ var to = class extends Za {
|
|
|
496
497
|
...this.#o,
|
|
497
498
|
...e
|
|
498
499
|
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
499
|
-
let e =
|
|
500
|
-
e.data !== void 0 && (this.setState(
|
|
500
|
+
let e = ao(this.options);
|
|
501
|
+
e.data !== void 0 && (this.setState(io(e.data, e.dataUpdatedAt)), this.#t = e);
|
|
501
502
|
}
|
|
502
503
|
}
|
|
503
504
|
optionalRemove() {
|
|
504
505
|
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
|
|
505
506
|
}
|
|
506
507
|
setData(e, t) {
|
|
507
|
-
let n =
|
|
508
|
+
let n = La(this.state.data, e, this.options);
|
|
508
509
|
return this.#l({
|
|
509
510
|
data: n,
|
|
510
511
|
type: "success",
|
|
@@ -532,22 +533,22 @@ var to = class extends Za {
|
|
|
532
533
|
this.destroy(), this.setState(this.resetState);
|
|
533
534
|
}
|
|
534
535
|
isActive() {
|
|
535
|
-
return this.observers.some((e) =>
|
|
536
|
+
return this.observers.some((e) => Ta(e.options.enabled, this) !== !1);
|
|
536
537
|
}
|
|
537
538
|
isDisabled() {
|
|
538
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
539
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === Ba || !this.isFetched();
|
|
539
540
|
}
|
|
540
541
|
isFetched() {
|
|
541
542
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
542
543
|
}
|
|
543
544
|
isStatic() {
|
|
544
|
-
return this.getObserversCount() > 0 && this.observers.some((e) =>
|
|
545
|
+
return this.getObserversCount() > 0 && this.observers.some((e) => wa(e.options.staleTime, this) === "static");
|
|
545
546
|
}
|
|
546
547
|
isStale() {
|
|
547
548
|
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
548
549
|
}
|
|
549
550
|
isStaleByTime(e = 0) {
|
|
550
|
-
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !
|
|
551
|
+
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !Ca(this.state.dataUpdatedAt, e);
|
|
551
552
|
}
|
|
552
553
|
onFocus() {
|
|
553
554
|
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
|
|
@@ -594,7 +595,7 @@ var to = class extends Za {
|
|
|
594
595
|
get: () => (this.#s = !0, n.signal)
|
|
595
596
|
});
|
|
596
597
|
}, i = () => {
|
|
597
|
-
let e =
|
|
598
|
+
let e = Va(this.options, t), n = (() => {
|
|
598
599
|
let e = {
|
|
599
600
|
client: this.#i,
|
|
600
601
|
queryKey: this.queryKey,
|
|
@@ -614,14 +615,14 @@ var to = class extends Za {
|
|
|
614
615
|
};
|
|
615
616
|
return r(e), e;
|
|
616
617
|
})();
|
|
617
|
-
(this.#e === "infinite" ?
|
|
618
|
+
(this.#e === "infinite" ? $a(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#l({
|
|
618
619
|
type: "fetch",
|
|
619
620
|
meta: a.fetchOptions?.meta
|
|
620
|
-
}), this.#a =
|
|
621
|
+
}), this.#a = Za({
|
|
621
622
|
initialPromise: t?.initialPromise,
|
|
622
623
|
fn: a.fetchFn,
|
|
623
624
|
onCancel: (e) => {
|
|
624
|
-
e instanceof
|
|
625
|
+
e instanceof Xa && e.revert && this.setState({
|
|
625
626
|
...this.#n,
|
|
626
627
|
fetchStatus: "idle"
|
|
627
628
|
}), n.abort();
|
|
@@ -649,7 +650,7 @@ var to = class extends Za {
|
|
|
649
650
|
if (e === void 0) throw process.env.NODE_ENV !== "production" && console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`), Error(`${this.queryHash} data is undefined`);
|
|
650
651
|
return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
|
|
651
652
|
} catch (e) {
|
|
652
|
-
if (e instanceof
|
|
653
|
+
if (e instanceof Xa) {
|
|
653
654
|
if (e.silent) return this.#a.promise;
|
|
654
655
|
if (e.revert) {
|
|
655
656
|
if (this.state.data === void 0) throw e;
|
|
@@ -682,13 +683,13 @@ var to = class extends Za {
|
|
|
682
683
|
};
|
|
683
684
|
case "fetch": return {
|
|
684
685
|
...t,
|
|
685
|
-
...
|
|
686
|
+
...ro(t.data, this.options),
|
|
686
687
|
fetchMeta: e.meta ?? null
|
|
687
688
|
};
|
|
688
689
|
case "success":
|
|
689
690
|
let n = {
|
|
690
691
|
...t,
|
|
691
|
-
...
|
|
692
|
+
...io(e.data, e.dataUpdatedAt),
|
|
692
693
|
dataUpdateCount: t.dataUpdateCount + 1,
|
|
693
694
|
...!e.manual && {
|
|
694
695
|
fetchStatus: "idle",
|
|
@@ -731,18 +732,18 @@ var to = class extends Za {
|
|
|
731
732
|
});
|
|
732
733
|
}
|
|
733
734
|
};
|
|
734
|
-
function
|
|
735
|
+
function ro(e, t) {
|
|
735
736
|
return {
|
|
736
737
|
fetchFailureCount: 0,
|
|
737
738
|
fetchFailureReason: null,
|
|
738
|
-
fetchStatus:
|
|
739
|
+
fetchStatus: Ya(t.networkMode) ? "fetching" : "paused",
|
|
739
740
|
...e === void 0 && {
|
|
740
741
|
error: null,
|
|
741
742
|
status: "pending"
|
|
742
743
|
}
|
|
743
744
|
};
|
|
744
745
|
}
|
|
745
|
-
function
|
|
746
|
+
function io(e, t) {
|
|
746
747
|
return {
|
|
747
748
|
data: e,
|
|
748
749
|
dataUpdatedAt: t ?? Date.now(),
|
|
@@ -751,7 +752,7 @@ function ro(e, t) {
|
|
|
751
752
|
status: "success"
|
|
752
753
|
};
|
|
753
754
|
}
|
|
754
|
-
function
|
|
755
|
+
function ao(e) {
|
|
755
756
|
let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
|
|
756
757
|
return {
|
|
757
758
|
data: t,
|
|
@@ -770,13 +771,13 @@ function io(e) {
|
|
|
770
771
|
}
|
|
771
772
|
//#endregion
|
|
772
773
|
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
|
|
773
|
-
var
|
|
774
|
+
var oo = class extends Qa {
|
|
774
775
|
#e;
|
|
775
776
|
#t;
|
|
776
777
|
#n;
|
|
777
778
|
#r;
|
|
778
779
|
constructor(e) {
|
|
779
|
-
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state ||
|
|
780
|
+
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || so(), this.setOptions(e.options), this.scheduleGc();
|
|
780
781
|
}
|
|
781
782
|
setOptions(e) {
|
|
782
783
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -812,7 +813,7 @@ var ao = class extends Za {
|
|
|
812
813
|
meta: this.options.meta,
|
|
813
814
|
mutationKey: this.options.mutationKey
|
|
814
815
|
};
|
|
815
|
-
this.#r =
|
|
816
|
+
this.#r = Za({
|
|
816
817
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
|
|
817
818
|
onFail: (e, t) => {
|
|
818
819
|
this.#i({
|
|
@@ -940,7 +941,7 @@ var ao = class extends Za {
|
|
|
940
941
|
});
|
|
941
942
|
}
|
|
942
943
|
};
|
|
943
|
-
function
|
|
944
|
+
function so() {
|
|
944
945
|
return {
|
|
945
946
|
context: void 0,
|
|
946
947
|
data: void 0,
|
|
@@ -955,7 +956,7 @@ function oo() {
|
|
|
955
956
|
}
|
|
956
957
|
//#endregion
|
|
957
958
|
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
958
|
-
var
|
|
959
|
+
var co = class extends ha {
|
|
959
960
|
constructor(e = {}) {
|
|
960
961
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
961
962
|
}
|
|
@@ -963,7 +964,7 @@ var so = class extends ma {
|
|
|
963
964
|
#t;
|
|
964
965
|
#n;
|
|
965
966
|
build(e, t, n) {
|
|
966
|
-
let r = new
|
|
967
|
+
let r = new oo({
|
|
967
968
|
client: e,
|
|
968
969
|
mutationCache: this,
|
|
969
970
|
mutationId: ++this.#n,
|
|
@@ -974,7 +975,7 @@ var so = class extends ma {
|
|
|
974
975
|
}
|
|
975
976
|
add(e) {
|
|
976
977
|
this.#e.add(e);
|
|
977
|
-
let t =
|
|
978
|
+
let t = lo(e);
|
|
978
979
|
if (typeof t == "string") {
|
|
979
980
|
let n = this.#t.get(t);
|
|
980
981
|
n ? n.push(e) : this.#t.set(t, [e]);
|
|
@@ -986,7 +987,7 @@ var so = class extends ma {
|
|
|
986
987
|
}
|
|
987
988
|
remove(e) {
|
|
988
989
|
if (this.#e.delete(e)) {
|
|
989
|
-
let t =
|
|
990
|
+
let t = lo(e);
|
|
990
991
|
if (typeof t == "string") {
|
|
991
992
|
let n = this.#t.get(t);
|
|
992
993
|
if (n) {
|
|
@@ -1003,7 +1004,7 @@ var so = class extends ma {
|
|
|
1003
1004
|
});
|
|
1004
1005
|
}
|
|
1005
1006
|
canRun(e) {
|
|
1006
|
-
let t =
|
|
1007
|
+
let t = lo(e);
|
|
1007
1008
|
if (typeof t == "string") {
|
|
1008
1009
|
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
|
|
1009
1010
|
return !n || n === e;
|
|
@@ -1011,7 +1012,7 @@ var so = class extends ma {
|
|
|
1011
1012
|
return !0;
|
|
1012
1013
|
}
|
|
1013
1014
|
runNext(e) {
|
|
1014
|
-
let t =
|
|
1015
|
+
let t = lo(e);
|
|
1015
1016
|
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
1016
1017
|
}
|
|
1017
1018
|
clear() {
|
|
@@ -1032,10 +1033,10 @@ var so = class extends ma {
|
|
|
1032
1033
|
exact: !0,
|
|
1033
1034
|
...e
|
|
1034
1035
|
};
|
|
1035
|
-
return this.getAll().find((e) =>
|
|
1036
|
+
return this.getAll().find((e) => Da(t, e));
|
|
1036
1037
|
}
|
|
1037
1038
|
findAll(e = {}) {
|
|
1038
|
-
return this.getAll().filter((t) =>
|
|
1039
|
+
return this.getAll().filter((t) => Da(e, t));
|
|
1039
1040
|
}
|
|
1040
1041
|
notify(e) {
|
|
1041
1042
|
q.batch(() => {
|
|
@@ -1049,19 +1050,19 @@ var so = class extends ma {
|
|
|
1049
1050
|
return q.batch(() => Promise.all(e.map((e) => e.continue().catch(K))));
|
|
1050
1051
|
}
|
|
1051
1052
|
};
|
|
1052
|
-
function
|
|
1053
|
+
function lo(e) {
|
|
1053
1054
|
return e.options.scope?.id;
|
|
1054
1055
|
}
|
|
1055
1056
|
//#endregion
|
|
1056
1057
|
//#region node_modules/@tanstack/query-core/build/modern/queryCache.js
|
|
1057
|
-
var
|
|
1058
|
+
var uo = class extends ha {
|
|
1058
1059
|
constructor(e = {}) {
|
|
1059
1060
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
1060
1061
|
}
|
|
1061
1062
|
#e;
|
|
1062
1063
|
build(e, t, n) {
|
|
1063
|
-
let r = t.queryKey, i = t.queryHash ??
|
|
1064
|
-
return a || (a = new
|
|
1064
|
+
let r = t.queryKey, i = t.queryHash ?? Oa(r, t), a = this.get(i);
|
|
1065
|
+
return a || (a = new no({
|
|
1065
1066
|
client: e,
|
|
1066
1067
|
queryKey: r,
|
|
1067
1068
|
queryHash: i,
|
|
@@ -1101,11 +1102,11 @@ var lo = class extends ma {
|
|
|
1101
1102
|
exact: !0,
|
|
1102
1103
|
...e
|
|
1103
1104
|
};
|
|
1104
|
-
return this.getAll().find((e) =>
|
|
1105
|
+
return this.getAll().find((e) => Ea(t, e));
|
|
1105
1106
|
}
|
|
1106
1107
|
findAll(e = {}) {
|
|
1107
1108
|
let t = this.getAll();
|
|
1108
|
-
return Object.keys(e).length > 0 ? t.filter((t) =>
|
|
1109
|
+
return Object.keys(e).length > 0 ? t.filter((t) => Ea(e, t)) : t;
|
|
1109
1110
|
}
|
|
1110
1111
|
notify(e) {
|
|
1111
1112
|
q.batch(() => {
|
|
@@ -1128,7 +1129,7 @@ var lo = class extends ma {
|
|
|
1128
1129
|
});
|
|
1129
1130
|
});
|
|
1130
1131
|
}
|
|
1131
|
-
},
|
|
1132
|
+
}, fo = class {
|
|
1132
1133
|
#e;
|
|
1133
1134
|
#t;
|
|
1134
1135
|
#n;
|
|
@@ -1138,12 +1139,12 @@ var lo = class extends ma {
|
|
|
1138
1139
|
#o;
|
|
1139
1140
|
#s;
|
|
1140
1141
|
constructor(e = {}) {
|
|
1141
|
-
this.#e = e.queryCache || new
|
|
1142
|
+
this.#e = e.queryCache || new uo(), this.#t = e.mutationCache || new co(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
|
|
1142
1143
|
}
|
|
1143
1144
|
mount() {
|
|
1144
|
-
this.#a++, this.#a === 1 && (this.#o =
|
|
1145
|
+
this.#a++, this.#a === 1 && (this.#o = ga.subscribe(async (e) => {
|
|
1145
1146
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1146
|
-
}), this.#s =
|
|
1147
|
+
}), this.#s = qa.subscribe(async (e) => {
|
|
1147
1148
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
1148
1149
|
}));
|
|
1149
1150
|
}
|
|
@@ -1168,13 +1169,13 @@ var lo = class extends ma {
|
|
|
1168
1169
|
}
|
|
1169
1170
|
ensureQueryData(e) {
|
|
1170
1171
|
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
|
|
1171
|
-
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(
|
|
1172
|
+
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(wa(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
1172
1173
|
}
|
|
1173
1174
|
getQueriesData(e) {
|
|
1174
1175
|
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
|
|
1175
1176
|
}
|
|
1176
1177
|
setQueryData(e, t, n) {
|
|
1177
|
-
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a =
|
|
1178
|
+
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = xa(t, i);
|
|
1178
1179
|
if (a !== void 0) return this.#e.build(this, r).setData(a, {
|
|
1179
1180
|
...n,
|
|
1180
1181
|
manual: !0
|
|
@@ -1233,7 +1234,7 @@ var lo = class extends ma {
|
|
|
1233
1234
|
let t = this.defaultQueryOptions(e);
|
|
1234
1235
|
t.retry === void 0 && (t.retry = !1);
|
|
1235
1236
|
let n = this.#e.build(this, t);
|
|
1236
|
-
return n.isStaleByTime(
|
|
1237
|
+
return n.isStaleByTime(wa(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
1237
1238
|
}
|
|
1238
1239
|
prefetchQuery(e) {
|
|
1239
1240
|
return this.fetchQuery(e).then(K).catch(K);
|
|
@@ -1248,7 +1249,7 @@ var lo = class extends ma {
|
|
|
1248
1249
|
return e._type = "infinite", this.ensureQueryData(e);
|
|
1249
1250
|
}
|
|
1250
1251
|
resumePausedMutations() {
|
|
1251
|
-
return
|
|
1252
|
+
return qa.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
1252
1253
|
}
|
|
1253
1254
|
getQueryCache() {
|
|
1254
1255
|
return this.#e;
|
|
@@ -1263,7 +1264,7 @@ var lo = class extends ma {
|
|
|
1263
1264
|
this.#n = e;
|
|
1264
1265
|
}
|
|
1265
1266
|
setQueryDefaults(e, t) {
|
|
1266
|
-
this.#r.set(
|
|
1267
|
+
this.#r.set(ka(e), {
|
|
1267
1268
|
queryKey: e,
|
|
1268
1269
|
defaultOptions: t
|
|
1269
1270
|
});
|
|
@@ -1271,11 +1272,11 @@ var lo = class extends ma {
|
|
|
1271
1272
|
getQueryDefaults(e) {
|
|
1272
1273
|
let t = [...this.#r.values()], n = {};
|
|
1273
1274
|
return t.forEach((t) => {
|
|
1274
|
-
|
|
1275
|
+
Aa(e, t.queryKey) && Object.assign(n, t.defaultOptions);
|
|
1275
1276
|
}), n;
|
|
1276
1277
|
}
|
|
1277
1278
|
setMutationDefaults(e, t) {
|
|
1278
|
-
this.#i.set(
|
|
1279
|
+
this.#i.set(ka(e), {
|
|
1279
1280
|
mutationKey: e,
|
|
1280
1281
|
defaultOptions: t
|
|
1281
1282
|
});
|
|
@@ -1283,7 +1284,7 @@ var lo = class extends ma {
|
|
|
1283
1284
|
getMutationDefaults(e) {
|
|
1284
1285
|
let t = [...this.#i.values()], n = {};
|
|
1285
1286
|
return t.forEach((t) => {
|
|
1286
|
-
|
|
1287
|
+
Aa(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
|
|
1287
1288
|
}), n;
|
|
1288
1289
|
}
|
|
1289
1290
|
defaultQueryOptions(e) {
|
|
@@ -1294,7 +1295,7 @@ var lo = class extends ma {
|
|
|
1294
1295
|
...e,
|
|
1295
1296
|
_defaulted: !0
|
|
1296
1297
|
};
|
|
1297
|
-
return t.queryHash ||=
|
|
1298
|
+
return t.queryHash ||= Oa(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Ba && (t.enabled = !1), t;
|
|
1298
1299
|
}
|
|
1299
1300
|
defaultMutationOptions(e) {
|
|
1300
1301
|
return e?._defaulted ? e : {
|
|
@@ -1307,22 +1308,22 @@ var lo = class extends ma {
|
|
|
1307
1308
|
clear() {
|
|
1308
1309
|
this.#e.clear(), this.#t.clear();
|
|
1309
1310
|
}
|
|
1310
|
-
},
|
|
1311
|
-
Vue: () =>
|
|
1311
|
+
}, po = /* @__PURE__ */ e({
|
|
1312
|
+
Vue: () => Zi,
|
|
1312
1313
|
Vue2: () => void 0,
|
|
1313
|
-
del: () =>
|
|
1314
|
-
install: () =>
|
|
1314
|
+
del: () => _o,
|
|
1315
|
+
install: () => ho,
|
|
1315
1316
|
isVue2: () => !1,
|
|
1316
1317
|
isVue3: () => !0,
|
|
1317
|
-
set: () =>
|
|
1318
|
+
set: () => go
|
|
1318
1319
|
});
|
|
1319
|
-
import * as
|
|
1320
|
-
t(
|
|
1321
|
-
function
|
|
1322
|
-
function
|
|
1320
|
+
import * as mo from "vue";
|
|
1321
|
+
t(po, mo);
|
|
1322
|
+
function ho() {}
|
|
1323
|
+
function go(e, t, n) {
|
|
1323
1324
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
1324
1325
|
}
|
|
1325
|
-
function
|
|
1326
|
+
function _o(e, t) {
|
|
1326
1327
|
if (Array.isArray(e)) {
|
|
1327
1328
|
e.splice(t, 1);
|
|
1328
1329
|
return;
|
|
@@ -1331,100 +1332,100 @@ function ho(e, t) {
|
|
|
1331
1332
|
}
|
|
1332
1333
|
//#endregion
|
|
1333
1334
|
//#region node_modules/@tanstack/vue-query/build/modern/utils.js
|
|
1334
|
-
var
|
|
1335
|
-
function
|
|
1336
|
-
return `${
|
|
1335
|
+
var vo = "VUE_QUERY_CLIENT";
|
|
1336
|
+
function yo(e) {
|
|
1337
|
+
return `${vo}${e ? `:${e}` : ""}`;
|
|
1337
1338
|
}
|
|
1338
|
-
function
|
|
1339
|
+
function bo(e, t, n = "", r = 0) {
|
|
1339
1340
|
if (t) {
|
|
1340
1341
|
let i = t(e, n, r);
|
|
1341
|
-
if (i === void 0 && (0,
|
|
1342
|
+
if (i === void 0 && (0, po.isRef)(e) || i !== void 0) return i;
|
|
1342
1343
|
}
|
|
1343
|
-
if (Array.isArray(e)) return e.map((e, n) =>
|
|
1344
|
-
if (typeof e == "object" &&
|
|
1345
|
-
let n = Object.entries(e).map(([e, n]) => [e,
|
|
1344
|
+
if (Array.isArray(e)) return e.map((e, n) => bo(e, t, String(n), r + 1));
|
|
1345
|
+
if (typeof e == "object" && So(e)) {
|
|
1346
|
+
let n = Object.entries(e).map(([e, n]) => [e, bo(n, t, e, r + 1)]);
|
|
1346
1347
|
return Object.fromEntries(n);
|
|
1347
1348
|
}
|
|
1348
1349
|
return e;
|
|
1349
1350
|
}
|
|
1350
|
-
function
|
|
1351
|
-
return
|
|
1351
|
+
function xo(e, t) {
|
|
1352
|
+
return bo(e, t);
|
|
1352
1353
|
}
|
|
1353
|
-
function
|
|
1354
|
-
return
|
|
1355
|
-
if (r === 1 && n === "queryKey") return
|
|
1356
|
-
if (t &&
|
|
1357
|
-
if ((0,
|
|
1354
|
+
function J(e, t = !1) {
|
|
1355
|
+
return xo(e, (e, n, r) => {
|
|
1356
|
+
if (r === 1 && n === "queryKey") return J(e, !0);
|
|
1357
|
+
if (t && Co(e)) return J(e(), t);
|
|
1358
|
+
if ((0, po.isRef)(e)) return J((0, po.unref)(e), t);
|
|
1358
1359
|
});
|
|
1359
1360
|
}
|
|
1360
|
-
function
|
|
1361
|
+
function So(e) {
|
|
1361
1362
|
if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
|
|
1362
1363
|
let t = Object.getPrototypeOf(e);
|
|
1363
1364
|
return t === null || t === Object.prototype;
|
|
1364
1365
|
}
|
|
1365
|
-
function
|
|
1366
|
+
function Co(e) {
|
|
1366
1367
|
return typeof e == "function";
|
|
1367
1368
|
}
|
|
1368
1369
|
//#endregion
|
|
1369
1370
|
//#region node_modules/@tanstack/vue-query/build/modern/queryCache.js
|
|
1370
|
-
var
|
|
1371
|
+
var wo = class extends uo {
|
|
1371
1372
|
find(e) {
|
|
1372
|
-
return super.find(
|
|
1373
|
+
return super.find(J(e));
|
|
1373
1374
|
}
|
|
1374
1375
|
findAll(e = {}) {
|
|
1375
|
-
return super.findAll(
|
|
1376
|
+
return super.findAll(J(e));
|
|
1376
1377
|
}
|
|
1377
|
-
},
|
|
1378
|
+
}, To = class extends co {
|
|
1378
1379
|
find(e) {
|
|
1379
|
-
return super.find(
|
|
1380
|
+
return super.find(J(e));
|
|
1380
1381
|
}
|
|
1381
1382
|
findAll(e = {}) {
|
|
1382
|
-
return super.findAll(
|
|
1383
|
+
return super.findAll(J(e));
|
|
1383
1384
|
}
|
|
1384
|
-
},
|
|
1385
|
+
}, Eo = class extends fo {
|
|
1385
1386
|
constructor(e = {}) {
|
|
1386
1387
|
let t = {
|
|
1387
1388
|
defaultOptions: e.defaultOptions,
|
|
1388
|
-
queryCache: e.queryCache || new
|
|
1389
|
-
mutationCache: e.mutationCache || new
|
|
1389
|
+
queryCache: e.queryCache || new wo(),
|
|
1390
|
+
mutationCache: e.mutationCache || new To()
|
|
1390
1391
|
};
|
|
1391
|
-
super(t), this.isRestoring = (0,
|
|
1392
|
+
super(t), this.isRestoring = (0, po.ref)(!1);
|
|
1392
1393
|
}
|
|
1393
1394
|
isFetching(e = {}) {
|
|
1394
|
-
return super.isFetching(
|
|
1395
|
+
return super.isFetching(J(e));
|
|
1395
1396
|
}
|
|
1396
1397
|
isMutating(e = {}) {
|
|
1397
|
-
return super.isMutating(
|
|
1398
|
+
return super.isMutating(J(e));
|
|
1398
1399
|
}
|
|
1399
1400
|
getQueryData(e) {
|
|
1400
|
-
return super.getQueryData(
|
|
1401
|
+
return super.getQueryData(J(e));
|
|
1401
1402
|
}
|
|
1402
1403
|
ensureQueryData(e) {
|
|
1403
|
-
return super.ensureQueryData(
|
|
1404
|
+
return super.ensureQueryData(J(e));
|
|
1404
1405
|
}
|
|
1405
1406
|
getQueriesData(e) {
|
|
1406
|
-
return super.getQueriesData(
|
|
1407
|
+
return super.getQueriesData(J(e));
|
|
1407
1408
|
}
|
|
1408
1409
|
setQueryData(e, t, n = {}) {
|
|
1409
|
-
return super.setQueryData(
|
|
1410
|
+
return super.setQueryData(J(e), t, J(n));
|
|
1410
1411
|
}
|
|
1411
1412
|
setQueriesData(e, t, n = {}) {
|
|
1412
|
-
return super.setQueriesData(
|
|
1413
|
+
return super.setQueriesData(J(e), t, J(n));
|
|
1413
1414
|
}
|
|
1414
1415
|
getQueryState(e) {
|
|
1415
|
-
return super.getQueryState(
|
|
1416
|
+
return super.getQueryState(J(e));
|
|
1416
1417
|
}
|
|
1417
1418
|
removeQueries(e = {}) {
|
|
1418
|
-
return super.removeQueries(
|
|
1419
|
+
return super.removeQueries(J(e));
|
|
1419
1420
|
}
|
|
1420
1421
|
resetQueries(e = {}, t = {}) {
|
|
1421
|
-
return super.resetQueries(
|
|
1422
|
+
return super.resetQueries(J(e), J(t));
|
|
1422
1423
|
}
|
|
1423
1424
|
cancelQueries(e = {}, t = {}) {
|
|
1424
|
-
return super.cancelQueries(
|
|
1425
|
+
return super.cancelQueries(J(e), J(t));
|
|
1425
1426
|
}
|
|
1426
1427
|
invalidateQueries(e = {}, t = {}) {
|
|
1427
|
-
let n =
|
|
1428
|
+
let n = J(e), r = J(t);
|
|
1428
1429
|
if (super.invalidateQueries({
|
|
1429
1430
|
...n,
|
|
1430
1431
|
refetchType: "none"
|
|
@@ -1433,57 +1434,57 @@ var So = class extends lo {
|
|
|
1433
1434
|
...n,
|
|
1434
1435
|
type: n.refetchType ?? n.type ?? "active"
|
|
1435
1436
|
};
|
|
1436
|
-
return (0,
|
|
1437
|
+
return (0, po.nextTick)().then(() => super.refetchQueries(i, r));
|
|
1437
1438
|
}
|
|
1438
1439
|
refetchQueries(e = {}, t = {}) {
|
|
1439
|
-
return super.refetchQueries(
|
|
1440
|
+
return super.refetchQueries(J(e), J(t));
|
|
1440
1441
|
}
|
|
1441
1442
|
fetchQuery(e) {
|
|
1442
|
-
return super.fetchQuery(
|
|
1443
|
+
return super.fetchQuery(J(e));
|
|
1443
1444
|
}
|
|
1444
1445
|
prefetchQuery(e) {
|
|
1445
|
-
return super.prefetchQuery(
|
|
1446
|
+
return super.prefetchQuery(J(e));
|
|
1446
1447
|
}
|
|
1447
1448
|
fetchInfiniteQuery(e) {
|
|
1448
|
-
return super.fetchInfiniteQuery(
|
|
1449
|
+
return super.fetchInfiniteQuery(J(e));
|
|
1449
1450
|
}
|
|
1450
1451
|
prefetchInfiniteQuery(e) {
|
|
1451
|
-
return super.prefetchInfiniteQuery(
|
|
1452
|
+
return super.prefetchInfiniteQuery(J(e));
|
|
1452
1453
|
}
|
|
1453
1454
|
setDefaultOptions(e) {
|
|
1454
|
-
super.setDefaultOptions(
|
|
1455
|
+
super.setDefaultOptions(J(e));
|
|
1455
1456
|
}
|
|
1456
1457
|
setQueryDefaults(e, t) {
|
|
1457
|
-
super.setQueryDefaults(
|
|
1458
|
+
super.setQueryDefaults(J(e), J(t));
|
|
1458
1459
|
}
|
|
1459
1460
|
getQueryDefaults(e) {
|
|
1460
|
-
return super.getQueryDefaults(
|
|
1461
|
+
return super.getQueryDefaults(J(e));
|
|
1461
1462
|
}
|
|
1462
1463
|
setMutationDefaults(e, t) {
|
|
1463
|
-
super.setMutationDefaults(
|
|
1464
|
+
super.setMutationDefaults(J(e), J(t));
|
|
1464
1465
|
}
|
|
1465
1466
|
getMutationDefaults(e) {
|
|
1466
|
-
return super.getMutationDefaults(
|
|
1467
|
+
return super.getMutationDefaults(J(e));
|
|
1467
1468
|
}
|
|
1468
1469
|
};
|
|
1469
1470
|
//#endregion
|
|
1470
1471
|
//#region node_modules/@vue/devtools-api/lib/esm/env.js
|
|
1471
|
-
function
|
|
1472
|
-
return
|
|
1472
|
+
function Do() {
|
|
1473
|
+
return Oo().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
1473
1474
|
}
|
|
1474
|
-
function
|
|
1475
|
+
function Oo() {
|
|
1475
1476
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
1476
1477
|
}
|
|
1477
|
-
var
|
|
1478
|
-
function
|
|
1479
|
-
return
|
|
1478
|
+
var ko = typeof Proxy == "function", Ao = "devtools-plugin:setup", jo = "plugin:settings:set", Mo, No;
|
|
1479
|
+
function Po() {
|
|
1480
|
+
return Mo === void 0 && (typeof window < "u" && window.performance ? (Mo = !0, No = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (Mo = !0, No = globalThis.perf_hooks.performance) : Mo = !1), Mo;
|
|
1480
1481
|
}
|
|
1481
|
-
function
|
|
1482
|
-
return
|
|
1482
|
+
function Fo() {
|
|
1483
|
+
return Po() ? No.now() : Date.now();
|
|
1483
1484
|
}
|
|
1484
1485
|
//#endregion
|
|
1485
1486
|
//#region node_modules/@vue/devtools-api/lib/esm/proxy.js
|
|
1486
|
-
var
|
|
1487
|
+
var Io = class {
|
|
1487
1488
|
constructor(e, t) {
|
|
1488
1489
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = t;
|
|
1489
1490
|
let n = {};
|
|
@@ -1504,9 +1505,9 @@ var Po = class {
|
|
|
1504
1505
|
i = e;
|
|
1505
1506
|
},
|
|
1506
1507
|
now() {
|
|
1507
|
-
return
|
|
1508
|
+
return Fo();
|
|
1508
1509
|
}
|
|
1509
|
-
}, t && t.on(
|
|
1510
|
+
}, t && t.on(jo, (e, t) => {
|
|
1510
1511
|
e === this.plugin.id && this.fallbacks.setSettings(t);
|
|
1511
1512
|
}), this.proxiedOn = new Proxy({}, { get: (e, t) => this.target ? this.target.on[t] : (...e) => {
|
|
1512
1513
|
this.onQueue.push({
|
|
@@ -1533,11 +1534,11 @@ var Po = class {
|
|
|
1533
1534
|
};
|
|
1534
1535
|
//#endregion
|
|
1535
1536
|
//#region node_modules/@vue/devtools-api/lib/esm/index.js
|
|
1536
|
-
function
|
|
1537
|
-
let n = e, r =
|
|
1538
|
-
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(
|
|
1537
|
+
function Lo(e, t) {
|
|
1538
|
+
let n = e, r = Oo(), i = Do(), a = ko && n.enableEarlyProxy;
|
|
1539
|
+
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(Ao, e, t);
|
|
1539
1540
|
else {
|
|
1540
|
-
let e = a ? new
|
|
1541
|
+
let e = a ? new Io(n, i) : null;
|
|
1541
1542
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
1542
1543
|
pluginDescriptor: n,
|
|
1543
1544
|
setupFn: t,
|
|
@@ -1547,7 +1548,7 @@ function Fo(e, t) {
|
|
|
1547
1548
|
}
|
|
1548
1549
|
//#endregion
|
|
1549
1550
|
//#region node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
|
|
1550
|
-
var
|
|
1551
|
+
var Ro = {
|
|
1551
1552
|
À: "A",
|
|
1552
1553
|
Á: "A",
|
|
1553
1554
|
Â: "A",
|
|
@@ -1947,11 +1948,11 @@ var Io = {
|
|
|
1947
1948
|
x̧: "x",
|
|
1948
1949
|
Z̧: "Z",
|
|
1949
1950
|
z̧: "z"
|
|
1950
|
-
},
|
|
1951
|
-
function
|
|
1952
|
-
return e.replace(
|
|
1951
|
+
}, zo = Object.keys(Ro).join("|"), Bo = new RegExp(zo, "g");
|
|
1952
|
+
function Vo(e) {
|
|
1953
|
+
return e.replace(Bo, (e) => Ro[e]);
|
|
1953
1954
|
}
|
|
1954
|
-
var
|
|
1955
|
+
var Y = {
|
|
1955
1956
|
CASE_SENSITIVE_EQUAL: 7,
|
|
1956
1957
|
EQUAL: 6,
|
|
1957
1958
|
STARTS_WITH: 5,
|
|
@@ -1961,9 +1962,9 @@ var X = {
|
|
|
1961
1962
|
MATCHES: 1,
|
|
1962
1963
|
NO_MATCH: 0
|
|
1963
1964
|
};
|
|
1964
|
-
function
|
|
1965
|
-
if (n ||= {}, n.threshold = n.threshold ??
|
|
1966
|
-
let r =
|
|
1965
|
+
function Ho(e, t, n) {
|
|
1966
|
+
if (n ||= {}, n.threshold = n.threshold ?? Y.MATCHES, !n.accessors) {
|
|
1967
|
+
let r = Uo(e, t, n);
|
|
1967
1968
|
return {
|
|
1968
1969
|
rankedValue: e,
|
|
1969
1970
|
rank: r,
|
|
@@ -1972,23 +1973,23 @@ function Bo(e, t, n) {
|
|
|
1972
1973
|
passed: r >= n.threshold
|
|
1973
1974
|
};
|
|
1974
1975
|
}
|
|
1975
|
-
let r =
|
|
1976
|
+
let r = Jo(e, n.accessors), i = {
|
|
1976
1977
|
rankedValue: e,
|
|
1977
|
-
rank:
|
|
1978
|
+
rank: Y.NO_MATCH,
|
|
1978
1979
|
accessorIndex: -1,
|
|
1979
1980
|
accessorThreshold: n.threshold,
|
|
1980
1981
|
passed: !1
|
|
1981
1982
|
};
|
|
1982
1983
|
for (let e = 0; e < r.length; e++) {
|
|
1983
|
-
let a = r[e], o =
|
|
1984
|
-
o < s && o >=
|
|
1984
|
+
let a = r[e], o = Uo(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
|
|
1985
|
+
o < s && o >= Y.MATCHES ? o = s : o > c && (o = c), o = Math.min(o, c), o >= l && o > i.rank && (i.rank = o, i.passed = !0, i.accessorIndex = e, i.accessorThreshold = l, i.rankedValue = a.itemValue);
|
|
1985
1986
|
}
|
|
1986
1987
|
return i;
|
|
1987
1988
|
}
|
|
1988
|
-
function
|
|
1989
|
-
return e =
|
|
1989
|
+
function Uo(e, t, n) {
|
|
1990
|
+
return e = Ko(e, n), t = Ko(t, n), t.length > e.length ? Y.NO_MATCH : e === t ? Y.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? Y.EQUAL : e.startsWith(t) ? Y.STARTS_WITH : e.includes(` ${t}`) ? Y.WORD_STARTS_WITH : e.includes(t) ? Y.CONTAINS : t.length === 1 ? Y.NO_MATCH : Wo(e).includes(t) ? Y.ACRONYM : Go(e, t));
|
|
1990
1991
|
}
|
|
1991
|
-
function
|
|
1992
|
+
function Wo(e) {
|
|
1992
1993
|
let t = "";
|
|
1993
1994
|
return e.split(" ").forEach((e) => {
|
|
1994
1995
|
e.split("-").forEach((e) => {
|
|
@@ -1996,7 +1997,7 @@ function Ho(e) {
|
|
|
1996
1997
|
});
|
|
1997
1998
|
}), t;
|
|
1998
1999
|
}
|
|
1999
|
-
function
|
|
2000
|
+
function Go(e, t) {
|
|
2000
2001
|
let n = 0, r = 0;
|
|
2001
2002
|
function i(e, t, r) {
|
|
2002
2003
|
for (let i = r, a = t.length; i < a; i++) if (t[i] === e) return n += 1, i + 1;
|
|
@@ -2004,31 +2005,31 @@ function Uo(e, t) {
|
|
|
2004
2005
|
}
|
|
2005
2006
|
function a(e) {
|
|
2006
2007
|
let r = 1 / e, i = n / t.length;
|
|
2007
|
-
return
|
|
2008
|
+
return Y.MATCHES + i * r;
|
|
2008
2009
|
}
|
|
2009
2010
|
let o = i(t[0], e, 0);
|
|
2010
|
-
if (o < 0) return
|
|
2011
|
+
if (o < 0) return Y.NO_MATCH;
|
|
2011
2012
|
r = o;
|
|
2012
2013
|
for (let n = 1, a = t.length; n < a; n++) {
|
|
2013
2014
|
let a = t[n];
|
|
2014
|
-
if (r = i(a, e, r), !(r > -1)) return
|
|
2015
|
+
if (r = i(a, e, r), !(r > -1)) return Y.NO_MATCH;
|
|
2015
2016
|
}
|
|
2016
2017
|
return a(r - o);
|
|
2017
2018
|
}
|
|
2018
|
-
function
|
|
2019
|
+
function Ko(e, t) {
|
|
2019
2020
|
let { keepDiacritics: n } = t;
|
|
2020
|
-
return e = `${e}`, n || (e =
|
|
2021
|
+
return e = `${e}`, n || (e = Vo(e)), e;
|
|
2021
2022
|
}
|
|
2022
|
-
function
|
|
2023
|
+
function qo(e, t) {
|
|
2023
2024
|
let n = t;
|
|
2024
2025
|
typeof t == "object" && (n = t.accessor);
|
|
2025
2026
|
let r = n(e);
|
|
2026
2027
|
return r == null ? [] : Array.isArray(r) ? r : [String(r)];
|
|
2027
2028
|
}
|
|
2028
|
-
function
|
|
2029
|
+
function Jo(e, t) {
|
|
2029
2030
|
let n = [];
|
|
2030
2031
|
for (let r = 0, i = t.length; r < i; r++) {
|
|
2031
|
-
let i = t[r], a =
|
|
2032
|
+
let i = t[r], a = Xo(i), o = qo(e, i);
|
|
2032
2033
|
for (let e = 0, t = o.length; e < t; e++) n.push({
|
|
2033
2034
|
itemValue: o[e],
|
|
2034
2035
|
attributes: a
|
|
@@ -2036,41 +2037,41 @@ function Ko(e, t) {
|
|
|
2036
2037
|
}
|
|
2037
2038
|
return n;
|
|
2038
2039
|
}
|
|
2039
|
-
var
|
|
2040
|
+
var Yo = {
|
|
2040
2041
|
maxRanking: Infinity,
|
|
2041
2042
|
minRanking: -Infinity
|
|
2042
2043
|
};
|
|
2043
|
-
function
|
|
2044
|
-
return typeof e == "function" ?
|
|
2045
|
-
...
|
|
2044
|
+
function Xo(e) {
|
|
2045
|
+
return typeof e == "function" ? Yo : {
|
|
2046
|
+
...Yo,
|
|
2046
2047
|
...e
|
|
2047
2048
|
};
|
|
2048
2049
|
}
|
|
2049
2050
|
//#endregion
|
|
2050
2051
|
//#region node_modules/@tanstack/vue-query/build/modern/devtools/utils.js
|
|
2051
|
-
function
|
|
2052
|
+
function X(e) {
|
|
2052
2053
|
return e.state.fetchStatus === "fetching" ? 0 : e.state.fetchStatus === "paused" ? 4 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3;
|
|
2053
2054
|
}
|
|
2054
|
-
function
|
|
2055
|
-
let t =
|
|
2055
|
+
function Zo(e) {
|
|
2056
|
+
let t = X(e);
|
|
2056
2057
|
return t === 0 ? "fetching" : t === 4 ? "paused" : t === 2 ? "stale" : t === 3 ? "inactive" : "fresh";
|
|
2057
2058
|
}
|
|
2058
|
-
function
|
|
2059
|
-
return
|
|
2059
|
+
function Qo(e) {
|
|
2060
|
+
return X(e) === 2 ? 0 : 16777215;
|
|
2060
2061
|
}
|
|
2061
|
-
function
|
|
2062
|
-
let t =
|
|
2062
|
+
function $o(e) {
|
|
2063
|
+
let t = X(e);
|
|
2063
2064
|
return t === 0 ? 27647 : t === 4 ? 9193963 : t === 2 ? 16757248 : t === 3 ? 4148832 : 33575;
|
|
2064
2065
|
}
|
|
2065
|
-
var
|
|
2066
|
-
"Status > Last Updated": (e, t) =>
|
|
2067
|
-
"Query Hash":
|
|
2068
|
-
"Last Updated":
|
|
2069
|
-
},
|
|
2070
|
-
function
|
|
2071
|
-
|
|
2072
|
-
id:
|
|
2073
|
-
label:
|
|
2066
|
+
var es = (e, t) => e.queryHash.localeCompare(t.queryHash), ts = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, ns = {
|
|
2067
|
+
"Status > Last Updated": (e, t) => X(e) === X(t) ? ts(e, t) : X(e) > X(t) ? 1 : -1,
|
|
2068
|
+
"Query Hash": es,
|
|
2069
|
+
"Last Updated": ts
|
|
2070
|
+
}, Z = "vue-query", rs = "Vue Query";
|
|
2071
|
+
function is(e, t) {
|
|
2072
|
+
Lo({
|
|
2073
|
+
id: Z,
|
|
2074
|
+
label: rs,
|
|
2074
2075
|
packageName: "vue-query",
|
|
2075
2076
|
homepage: "https://tanstack.com/query/latest",
|
|
2076
2077
|
logo: "https://raw.githubusercontent.com/TanStack/query/main/packages/vue-query/media/vue-query.svg",
|
|
@@ -2092,11 +2093,11 @@ function ns(e, t) {
|
|
|
2092
2093
|
sortFn: {
|
|
2093
2094
|
type: "choice",
|
|
2094
2095
|
label: "Sort Function",
|
|
2095
|
-
options: Object.keys(
|
|
2096
|
+
options: Object.keys(ns).map((e) => ({
|
|
2096
2097
|
label: e,
|
|
2097
2098
|
value: e
|
|
2098
2099
|
})),
|
|
2099
|
-
defaultValue: Object.keys(
|
|
2100
|
+
defaultValue: Object.keys(ns)[0]
|
|
2100
2101
|
},
|
|
2101
2102
|
onlineMode: {
|
|
2102
2103
|
type: "choice",
|
|
@@ -2114,11 +2115,11 @@ function ns(e, t) {
|
|
|
2114
2115
|
}
|
|
2115
2116
|
}, (e) => {
|
|
2116
2117
|
let n = e.getSettings();
|
|
2117
|
-
|
|
2118
|
+
qa.setOnline(!!n.onlineMode.valueOf());
|
|
2118
2119
|
let r = t.getQueryCache();
|
|
2119
2120
|
e.addInspector({
|
|
2120
|
-
id:
|
|
2121
|
-
label:
|
|
2121
|
+
id: Z,
|
|
2122
|
+
label: rs,
|
|
2122
2123
|
icon: "api",
|
|
2123
2124
|
nodeActions: [
|
|
2124
2125
|
{
|
|
@@ -2177,16 +2178,16 @@ function ns(e, t) {
|
|
|
2177
2178
|
}
|
|
2178
2179
|
]
|
|
2179
2180
|
}), e.addTimelineLayer({
|
|
2180
|
-
id:
|
|
2181
|
-
label:
|
|
2181
|
+
id: Z,
|
|
2182
|
+
label: rs,
|
|
2182
2183
|
color: 16767308
|
|
2183
2184
|
}), r.subscribe((t) => {
|
|
2184
|
-
e.sendInspectorTree(
|
|
2185
|
+
e.sendInspectorTree(Z), e.sendInspectorState(Z), [
|
|
2185
2186
|
"added",
|
|
2186
2187
|
"removed",
|
|
2187
2188
|
"updated"
|
|
2188
2189
|
].includes(t.type) && e.addTimelineEvent({
|
|
2189
|
-
layerId:
|
|
2190
|
+
layerId: Z,
|
|
2190
2191
|
event: {
|
|
2191
2192
|
title: t.type,
|
|
2192
2193
|
subtitle: t.query.queryHash,
|
|
@@ -2198,25 +2199,25 @@ function ns(e, t) {
|
|
|
2198
2199
|
}
|
|
2199
2200
|
});
|
|
2200
2201
|
}), e.on.setPluginSettings((e) => {
|
|
2201
|
-
e.key === "onlineMode" &&
|
|
2202
|
+
e.key === "onlineMode" && qa.setOnline(!!e.newValue);
|
|
2202
2203
|
}), e.on.getInspectorTree((t) => {
|
|
2203
|
-
if (t.inspectorId ===
|
|
2204
|
+
if (t.inspectorId === Z) {
|
|
2204
2205
|
let n = r.getAll(), i = e.getSettings();
|
|
2205
|
-
t.rootNodes = (t.filter ? n.filter((e) =>
|
|
2206
|
-
let t =
|
|
2206
|
+
t.rootNodes = (t.filter ? n.filter((e) => Ho(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => ns[i.sortFn](e, t) * i.baseSort).map((e) => {
|
|
2207
|
+
let t = Zo(e);
|
|
2207
2208
|
return {
|
|
2208
2209
|
id: e.queryHash,
|
|
2209
2210
|
label: e.queryHash,
|
|
2210
2211
|
tags: [{
|
|
2211
2212
|
label: `${t} [${e.getObserversCount()}]`,
|
|
2212
|
-
textColor:
|
|
2213
|
-
backgroundColor:
|
|
2213
|
+
textColor: Qo(e),
|
|
2214
|
+
backgroundColor: $o(e)
|
|
2214
2215
|
}]
|
|
2215
2216
|
};
|
|
2216
2217
|
});
|
|
2217
2218
|
}
|
|
2218
2219
|
}), e.on.getInspectorState((e) => {
|
|
2219
|
-
if (e.inspectorId ===
|
|
2220
|
+
if (e.inspectorId === Z) {
|
|
2220
2221
|
let t = r.get(e.nodeId);
|
|
2221
2222
|
if (!t) return;
|
|
2222
2223
|
e.state = {
|
|
@@ -2227,7 +2228,7 @@ function ns(e, t) {
|
|
|
2227
2228
|
},
|
|
2228
2229
|
{
|
|
2229
2230
|
key: "Query status",
|
|
2230
|
-
value:
|
|
2231
|
+
value: Zo(t)
|
|
2231
2232
|
},
|
|
2232
2233
|
{
|
|
2233
2234
|
key: "Observers",
|
|
@@ -2253,9 +2254,9 @@ function ns(e, t) {
|
|
|
2253
2254
|
}
|
|
2254
2255
|
//#endregion
|
|
2255
2256
|
//#region node_modules/@tanstack/vue-query/build/modern/vueQueryPlugin.js
|
|
2256
|
-
var
|
|
2257
|
-
let n =
|
|
2258
|
-
r = "queryClient" in t && t.queryClient ? t.queryClient : new
|
|
2257
|
+
var as = { install: (e, t = {}) => {
|
|
2258
|
+
let n = yo(t.queryClientKey), r;
|
|
2259
|
+
r = "queryClient" in t && t.queryClient ? t.queryClient : new Eo("queryClientConfig" in t ? t.queryClientConfig : void 0), Ua.isServer() || r.mount();
|
|
2259
2260
|
let i = () => {};
|
|
2260
2261
|
if (t.clientPersister) {
|
|
2261
2262
|
r.isRestoring && (r.isRestoring.value = !0);
|
|
@@ -2274,17 +2275,17 @@ var rs = { install: (e, t = {}) => {
|
|
|
2274
2275
|
a(), t();
|
|
2275
2276
|
};
|
|
2276
2277
|
}
|
|
2277
|
-
e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin &&
|
|
2278
|
+
e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin && is(e, r);
|
|
2278
2279
|
} };
|
|
2279
2280
|
//#endregion
|
|
2280
2281
|
//#region src/web-core/query.ts
|
|
2281
|
-
function
|
|
2282
|
-
return new
|
|
2282
|
+
function os() {
|
|
2283
|
+
return new Eo({ defaultOptions: { queries: {
|
|
2283
2284
|
staleTime: 3e4,
|
|
2284
2285
|
refetchOnWindowFocus: !1
|
|
2285
2286
|
} } });
|
|
2286
2287
|
}
|
|
2287
|
-
var
|
|
2288
|
+
var ss = {
|
|
2288
2289
|
session: { current: ["session", "current"] },
|
|
2289
2290
|
menu: { mine: ["menu", "mine"] },
|
|
2290
2291
|
staticModule: {
|
|
@@ -2310,7 +2311,7 @@ var as = {
|
|
|
2310
2311
|
};
|
|
2311
2312
|
//#endregion
|
|
2312
2313
|
//#region src/web-core/constructionPlanClient.ts
|
|
2313
|
-
function
|
|
2314
|
+
function cs(e) {
|
|
2314
2315
|
let t = "/platform.application-construction-plans", n = (e) => `${t}/${encodeURIComponent(e)}`;
|
|
2315
2316
|
return {
|
|
2316
2317
|
designContract: () => e.request({ path: `${t}/design-contract` }),
|
|
@@ -2345,7 +2346,7 @@ function os(e) {
|
|
|
2345
2346
|
}
|
|
2346
2347
|
//#endregion
|
|
2347
2348
|
//#region src/web-core/assistantConversationClient.ts
|
|
2348
|
-
function
|
|
2349
|
+
function ls(e) {
|
|
2349
2350
|
let t = "/platform.assistant-conversations";
|
|
2350
2351
|
return {
|
|
2351
2352
|
lookupOperation: (t) => he(e, t),
|
|
@@ -2372,128 +2373,101 @@ function ss(e) {
|
|
|
2372
2373
|
};
|
|
2373
2374
|
}
|
|
2374
2375
|
//#endregion
|
|
2375
|
-
//#region src/web-core/recordReadEntry.ts
|
|
2376
|
-
function cs(e) {
|
|
2377
|
-
let { page: t, moduleAlias: n } = e;
|
|
2378
|
-
if (t?.target.moduleAlias && t.target.moduleAlias !== n) throw Error(`Read entry module mismatch: ${n}`);
|
|
2379
|
-
let r = {};
|
|
2380
|
-
if (t?.entryParamsJson !== void 0) {
|
|
2381
|
-
let e = JSON.parse(t.entryParamsJson);
|
|
2382
|
-
if (typeof e != "object" || !e || Array.isArray(e)) throw Error("Read entry parameters require a JSON object");
|
|
2383
|
-
r = e;
|
|
2384
|
-
}
|
|
2385
|
-
let i = r.view;
|
|
2386
|
-
if (i !== void 0 && (typeof i != "string" || !i.trim())) throw Error("Read entry requires a named view");
|
|
2387
|
-
let a = t?.menuId ? i : e.directViewCode ?? i ?? e.defaultViewCode;
|
|
2388
|
-
if (typeof a != "string" || !e.viewCodes.includes(a)) throw Error(`Unknown read view: ${String(a)}`);
|
|
2389
|
-
if (t?.menuId && e.directViewCode && e.directViewCode !== a) throw Error("Read entry view conflicts with menu");
|
|
2390
|
-
return {
|
|
2391
|
-
moduleAlias: n,
|
|
2392
|
-
viewCode: a,
|
|
2393
|
-
menuId: t?.menuId,
|
|
2394
|
-
params: r,
|
|
2395
|
-
...t?.pageType === "dynamic-module" || t?.pageType === "business-route" ? {
|
|
2396
|
-
defaultUiConfigId: t.target.defaultUiConfigId,
|
|
2397
|
-
defaultQueryTemplateId: t.target.defaultQueryTemplateId
|
|
2398
|
-
} : {}
|
|
2399
|
-
};
|
|
2400
|
-
}
|
|
2401
|
-
//#endregion
|
|
2402
2376
|
//#region src/platform-admin-runtime/platformAdminRoutes.ts
|
|
2403
|
-
var
|
|
2377
|
+
var us = R(() => import("./workspaceViews-BtqO8rU0.js").then((e) => e.n)), ds = R(() => import("./BusinessActivityLogView-IWGZiPLo.js")), fs = R(() => import("./RequestErrorLogView-poMgx4_6.js")), ps = R(() => import("./LoginAuditLogView-B6J7t__0.js")), ms = R(() => import("./RuntimeLogView-Co-Z86bt.js")), hs = [
|
|
2404
2378
|
{
|
|
2405
2379
|
route: "/platform/code-rule",
|
|
2406
2380
|
moduleAlias: "platform.code_rule",
|
|
2407
|
-
component: R(() => import("./CodeConfigurationView-
|
|
2381
|
+
component: R(() => import("./CodeConfigurationView-Calkazua.js").then((e) => e.n)),
|
|
2408
2382
|
layout: "workspace"
|
|
2409
2383
|
},
|
|
2410
2384
|
{
|
|
2411
2385
|
route: "/platform/translations",
|
|
2412
2386
|
moduleAlias: "platform.localization",
|
|
2413
|
-
component: R(() => import("./ConfigurationTranslationView-
|
|
2387
|
+
component: R(() => import("./ConfigurationTranslationView-fZrlRAMy.js")),
|
|
2414
2388
|
layout: "workspace"
|
|
2415
2389
|
},
|
|
2416
2390
|
{
|
|
2417
2391
|
route: "/workflow/admin",
|
|
2418
2392
|
moduleAlias: "platform.workflow_admin",
|
|
2419
|
-
component: R(() => import("./WorkflowAdministrationView-
|
|
2393
|
+
component: R(() => import("./WorkflowAdministrationView-D7QpRHDp.js")),
|
|
2420
2394
|
layout: "workspace"
|
|
2421
2395
|
},
|
|
2422
2396
|
{
|
|
2423
2397
|
route: "/workflow/workbench",
|
|
2424
2398
|
moduleAlias: "iam.workflow_workbench",
|
|
2425
|
-
component: R(() => import("./WorkflowWorkbenchView-
|
|
2399
|
+
component: R(() => import("./WorkflowWorkbenchView-DBMh3ycN.js")),
|
|
2426
2400
|
layout: "workspace"
|
|
2427
2401
|
},
|
|
2428
2402
|
{
|
|
2429
2403
|
route: "/platform/logs/runtime",
|
|
2430
2404
|
moduleAlias: "platform.runtime_log",
|
|
2431
|
-
component:
|
|
2405
|
+
component: ms,
|
|
2432
2406
|
layout: "workspace"
|
|
2433
2407
|
},
|
|
2434
2408
|
{
|
|
2435
2409
|
route: "/platform/logs/activity",
|
|
2436
2410
|
moduleAlias: "platform.business_activity_log",
|
|
2437
|
-
component:
|
|
2411
|
+
component: ds,
|
|
2438
2412
|
layout: "workspace"
|
|
2439
2413
|
},
|
|
2440
2414
|
{
|
|
2441
2415
|
route: "/platform/logs/errors",
|
|
2442
2416
|
moduleAlias: "platform.request_error_log",
|
|
2443
|
-
component:
|
|
2417
|
+
component: fs,
|
|
2444
2418
|
layout: "workspace"
|
|
2445
2419
|
},
|
|
2446
2420
|
{
|
|
2447
2421
|
route: "/iam/logs/login",
|
|
2448
2422
|
moduleAlias: "iam.login_audit_log",
|
|
2449
|
-
component:
|
|
2423
|
+
component: ps,
|
|
2450
2424
|
layout: "workspace"
|
|
2451
2425
|
},
|
|
2452
2426
|
{
|
|
2453
2427
|
route: "/iam/role/authorization",
|
|
2454
2428
|
moduleAlias: "iam.role",
|
|
2455
|
-
component:
|
|
2429
|
+
component: us,
|
|
2456
2430
|
layout: "workspace",
|
|
2457
2431
|
menuEntry: !1
|
|
2458
2432
|
}
|
|
2459
|
-
],
|
|
2460
|
-
function vs(e) {
|
|
2461
|
-
if (e) return ms.find((t) => bs(t, e.target));
|
|
2462
|
-
}
|
|
2433
|
+
], gs = Array.from(/* @__PURE__ */ new Set(["/_platform/workspace", ...hs.map((e) => e.route)])), _s = Object.fromEntries(hs.filter((e) => e.menuEntry !== !1).map((e) => [e.moduleAlias, e.route])), vs = Object.fromEntries(hs.map((e) => [e.route, e.layout]));
|
|
2463
2434
|
function ys(e) {
|
|
2464
|
-
|
|
2435
|
+
if (e) return hs.find((t) => xs(t, e.target));
|
|
2465
2436
|
}
|
|
2466
|
-
function bs(e
|
|
2467
|
-
return
|
|
2437
|
+
function bs(e) {
|
|
2438
|
+
return e?.pageType === "business-route" && !!ys(e);
|
|
2468
2439
|
}
|
|
2469
2440
|
function xs(e, t) {
|
|
2441
|
+
return t.route ? Ss(e.route, t.route) && (t.moduleAlias === void 0 || t.moduleAlias === e.moduleAlias) : t.moduleAlias === e.moduleAlias;
|
|
2442
|
+
}
|
|
2443
|
+
function Ss(e, t) {
|
|
2470
2444
|
let n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
|
|
2471
2445
|
return n.length === r.length && n.every((e, t) => e.startsWith(":") || e === r[t]);
|
|
2472
2446
|
}
|
|
2473
2447
|
//#endregion
|
|
2474
2448
|
//#region src/app/pageRouteContext.ts
|
|
2475
|
-
var
|
|
2476
|
-
function
|
|
2477
|
-
|
|
2449
|
+
var Cs = Symbol("page-route"), ws = Symbol("page-descriptor");
|
|
2450
|
+
function Ts(e) {
|
|
2451
|
+
ca(Cs, M(e));
|
|
2478
2452
|
}
|
|
2479
|
-
function
|
|
2480
|
-
let e =
|
|
2453
|
+
function Es() {
|
|
2454
|
+
let e = na(Cs);
|
|
2481
2455
|
if (e) return e;
|
|
2482
2456
|
let t = T();
|
|
2483
2457
|
return M(() => t);
|
|
2484
2458
|
}
|
|
2485
|
-
function
|
|
2486
|
-
return
|
|
2459
|
+
function Ds() {
|
|
2460
|
+
return na(ws) ?? M(() => void 0);
|
|
2487
2461
|
}
|
|
2488
2462
|
//#endregion
|
|
2489
2463
|
//#region src/platform-admin-runtime/PlatformAdminOutlet.vue
|
|
2490
|
-
var
|
|
2464
|
+
var Os = /* @__PURE__ */ z({
|
|
2491
2465
|
name: "PlatformAdminRouteOutlet",
|
|
2492
2466
|
__name: "PlatformAdminOutlet",
|
|
2493
2467
|
props: { descriptor: {} },
|
|
2494
2468
|
setup(e) {
|
|
2495
|
-
let t = e, n = M(() =>
|
|
2496
|
-
|
|
2469
|
+
let t = e, n = M(() => ys(t.descriptor)), r = M(() => t.descriptor.target.moduleAlias ?? n.value?.moduleAlias), i = M(() => t.descriptor.target.query?.workspacePresentation);
|
|
2470
|
+
bi(M(() => t.descriptor.layout ?? n.value?.layout)), Ts(() => {
|
|
2497
2471
|
let e = n.value?.route ?? t.descriptor.target.route ?? "", r = t.descriptor.target.route ?? e;
|
|
2498
2472
|
return {
|
|
2499
2473
|
path: r,
|
|
@@ -2509,36 +2483,36 @@ var Ds = /* @__PURE__ */ z({
|
|
|
2509
2483
|
e.startsWith(":") && i[t] && (n[e.slice(1)] = i[t]);
|
|
2510
2484
|
}), n;
|
|
2511
2485
|
}
|
|
2512
|
-
return (t, a) => n.value && r.value ? (B(), N(W(
|
|
2486
|
+
return (t, a) => n.value && r.value ? (B(), N(W(at), {
|
|
2513
2487
|
key: 0,
|
|
2514
2488
|
"module-alias": r.value
|
|
2515
2489
|
}, {
|
|
2516
2490
|
default: G(() => [i.value === "drawer" || i.value === "tab" ? (B(), N(W(De), {
|
|
2517
2491
|
key: 0,
|
|
2518
2492
|
descriptor: e.descriptor
|
|
2519
|
-
}, null, 8, ["descriptor"])) : (B(), N(
|
|
2493
|
+
}, null, 8, ["descriptor"])) : (B(), N(ua(n.value.component), { key: 1 }))]),
|
|
2520
2494
|
_: 1
|
|
2521
2495
|
}, 8, ["module-alias"])) : P("v-if", !0);
|
|
2522
2496
|
}
|
|
2523
|
-
}),
|
|
2524
|
-
function
|
|
2525
|
-
|
|
2497
|
+
}), ks;
|
|
2498
|
+
function As(e) {
|
|
2499
|
+
ks = e;
|
|
2526
2500
|
}
|
|
2527
|
-
function
|
|
2528
|
-
return
|
|
2501
|
+
function js(e, t) {
|
|
2502
|
+
return ks?.(e, t) ?? !1;
|
|
2529
2503
|
}
|
|
2530
2504
|
//#endregion
|
|
2531
2505
|
//#region src/platform-admin-runtime/backendHttp.ts
|
|
2532
|
-
function
|
|
2533
|
-
let t = () => Un(
|
|
2506
|
+
function Ms(e = {}) {
|
|
2507
|
+
let t = () => In(Un({
|
|
2534
2508
|
baseUrl: import.meta.env.VITE_MUYUN_API_BASE_URL,
|
|
2535
2509
|
token: e.withAuth === !1 ? void 0 : b(import.meta.env.VITE_MUYUN_AUTH_TOKEN),
|
|
2536
|
-
credentials:
|
|
2537
|
-
onAuthenticationRequired: e.withAuth === !1 ? void 0 : (e, t) =>
|
|
2538
|
-
}), e.language ??
|
|
2510
|
+
credentials: Ns(import.meta.env.VITE_MUYUN_CREDENTIALS),
|
|
2511
|
+
onAuthenticationRequired: e.withAuth === !1 ? void 0 : (e, t) => js(e, t)
|
|
2512
|
+
}), e.language ?? Bt);
|
|
2539
2513
|
return {
|
|
2540
2514
|
async request(e) {
|
|
2541
|
-
let n = await t().request(e), r =
|
|
2515
|
+
let n = await t().request(e), r = Wr(n);
|
|
2542
2516
|
return r.changeSetId && v.dispatch({
|
|
2543
2517
|
changeSetId: r.changeSetId,
|
|
2544
2518
|
changes: r.changes
|
|
@@ -2549,16 +2523,16 @@ function js(e = {}) {
|
|
|
2549
2523
|
}
|
|
2550
2524
|
};
|
|
2551
2525
|
}
|
|
2552
|
-
function
|
|
2526
|
+
function Ns(e) {
|
|
2553
2527
|
return e === "include" || e === "omit" || e === "same-origin" ? e : void 0;
|
|
2554
2528
|
}
|
|
2555
2529
|
//#endregion
|
|
2556
2530
|
//#region src/platform-admin-runtime/moduleOpenApi.ts
|
|
2557
|
-
var
|
|
2558
|
-
function
|
|
2559
|
-
return
|
|
2531
|
+
var Ps = /^\/openapi\/([a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)+)\/?$/;
|
|
2532
|
+
function Fs(e) {
|
|
2533
|
+
return Ps.exec(e)?.[1];
|
|
2560
2534
|
}
|
|
2561
|
-
function
|
|
2535
|
+
function Is(e, t) {
|
|
2562
2536
|
return {
|
|
2563
2537
|
pageType: "platform-route",
|
|
2564
2538
|
openMode: "workbench-route",
|
|
@@ -2575,14 +2549,14 @@ function Fs(e, t) {
|
|
|
2575
2549
|
}
|
|
2576
2550
|
};
|
|
2577
2551
|
}
|
|
2578
|
-
function
|
|
2579
|
-
let t = "platform.screen.OpenApiCatalogView.module-api-directory", n =
|
|
2552
|
+
function Ls(e = Bt) {
|
|
2553
|
+
let t = "platform.screen.OpenApiCatalogView.module-api-directory", n = St(t);
|
|
2580
2554
|
return {
|
|
2581
2555
|
pageType: "platform-route",
|
|
2582
2556
|
openMode: "workbench-route",
|
|
2583
2557
|
hostType: "platform-route-host",
|
|
2584
2558
|
title: "开放模块 API",
|
|
2585
|
-
titleText:
|
|
2559
|
+
titleText: nn(t, n.originalText, e),
|
|
2586
2560
|
target: { route: "/openapi" },
|
|
2587
2561
|
tabPolicy: {
|
|
2588
2562
|
identity: "by-target",
|
|
@@ -2591,20 +2565,20 @@ function Is(e = li) {
|
|
|
2591
2565
|
}
|
|
2592
2566
|
};
|
|
2593
2567
|
}
|
|
2594
|
-
function
|
|
2568
|
+
function Rs(e) {
|
|
2595
2569
|
if (e?.pageType !== "platform-route" || !("route" in e.target)) return !1;
|
|
2596
|
-
let t =
|
|
2570
|
+
let t = Fs(e.target.route ?? "");
|
|
2597
2571
|
return t !== void 0 && e.target.moduleAlias === t;
|
|
2598
2572
|
}
|
|
2599
|
-
function
|
|
2573
|
+
function zs(e) {
|
|
2600
2574
|
return e === "/openapi" || e === "/openapi/";
|
|
2601
2575
|
}
|
|
2602
2576
|
//#endregion
|
|
2603
2577
|
//#region src/app/workbenchStartup.ts
|
|
2604
|
-
function
|
|
2578
|
+
function Bs(e, t, n, r = {}) {
|
|
2605
2579
|
let i = se(t, n, r), a = e.find((e) => e.key === i.key);
|
|
2606
2580
|
if (a) {
|
|
2607
|
-
let o = a.pageDescriptor ?
|
|
2581
|
+
let o = a.pageDescriptor ? lc(t, n, a.pageDescriptor, r, a.instanceKey) : i;
|
|
2608
2582
|
return {
|
|
2609
2583
|
tabs: e.map((e) => e.key === i.key ? o : e),
|
|
2610
2584
|
activeTabKey: i.key
|
|
@@ -2615,8 +2589,8 @@ function zs(e, t, n, r = {}) {
|
|
|
2615
2589
|
activeTabKey: i.key
|
|
2616
2590
|
};
|
|
2617
2591
|
}
|
|
2618
|
-
function
|
|
2619
|
-
let r =
|
|
2592
|
+
function Vs(e, t, n = {}) {
|
|
2593
|
+
let r = oc(O(t), n), i = e.find((e) => e.key === r.key || r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" && E(e.pageDescriptor) === E(r.pageDescriptor));
|
|
2620
2594
|
return i ? {
|
|
2621
2595
|
tabs: e,
|
|
2622
2596
|
activeTabKey: i.key,
|
|
@@ -2627,49 +2601,49 @@ function Bs(e, t, n = {}) {
|
|
|
2627
2601
|
created: !0
|
|
2628
2602
|
};
|
|
2629
2603
|
}
|
|
2630
|
-
function
|
|
2604
|
+
function Hs(e, t, n = {}) {
|
|
2631
2605
|
return t.menuType === "link" && t.openMode === "window" ? t.externalUrl : A(ye(t, {
|
|
2632
2606
|
...n,
|
|
2633
2607
|
title: e.title
|
|
2634
2608
|
}), n);
|
|
2635
2609
|
}
|
|
2636
|
-
function
|
|
2610
|
+
function Us(e) {
|
|
2637
2611
|
let t = (e.tabs ?? []).find((t) => t.key === e.activeTabKey);
|
|
2638
2612
|
if (t?.fullPath) return t.fullPath;
|
|
2639
2613
|
let n = t?.pageDescriptor ?? (t?.target ? ye(t.target, { title: t.title }) : void 0);
|
|
2640
|
-
return n?.pageType === "platform-route" &&
|
|
2614
|
+
return n?.pageType === "platform-route" && Rs(n) && n.target.route ? n.target.route : n ? A(n) : void 0;
|
|
2641
2615
|
}
|
|
2642
|
-
function
|
|
2616
|
+
function Ws(e, t, r = {}, i = !1, a = Bt) {
|
|
2643
2617
|
if (t === "/" || t === "") return e;
|
|
2644
|
-
let o = t.split(/[?#]/, 1)[0] ?? "", s =
|
|
2618
|
+
let o = t.split(/[?#]/, 1)[0] ?? "", s = Fs(o), c = s ? Is(s) : zs(o) ? Ls(a) : Fe(t, r);
|
|
2645
2619
|
if (!c) return e;
|
|
2646
|
-
let l = c.menuId ?
|
|
2620
|
+
let l = c.menuId ? gc(e.menus, c.menuId) : void 0, u = l ? x(l) : void 0, d = l && u && Js(u, c) ? {
|
|
2647
2621
|
...c,
|
|
2648
2622
|
title: l.title,
|
|
2649
2623
|
titleText: l.titleText
|
|
2650
|
-
} : c, f =
|
|
2624
|
+
} : c, f = qs(d, r.title, a), p = f ?? d, m = e.tabs ?? [], h = f ? Ks(m, f) : void 0, g = f ? Gs(f, h) : i ? O(p) : p, _ = l && mc(l, g, r) ? l : pc(e.menus, g, r), v = _ === l ? u : _ ? x(_) : void 0, y = f ? oc(g, r) : _ && v && n(v) ? lc(_, v, g, r, m.find((e) => e.key === `menu:${_.id}`)?.instanceKey) : oc(g, r), b = cc(m, y);
|
|
2651
2625
|
return {
|
|
2652
2626
|
...e,
|
|
2653
2627
|
tabs: b,
|
|
2654
2628
|
activeTabKey: y.key
|
|
2655
2629
|
};
|
|
2656
2630
|
}
|
|
2657
|
-
function
|
|
2631
|
+
function Gs(e, t) {
|
|
2658
2632
|
return t?.instanceKey ? O(e, t.instanceKey) : t ? e : O(e);
|
|
2659
2633
|
}
|
|
2660
|
-
function
|
|
2634
|
+
function Ks(e, t) {
|
|
2661
2635
|
let n = E(t);
|
|
2662
2636
|
return e.find((e) => e.pageDescriptor?.pageType === "business-route" && E(e.pageDescriptor) === n);
|
|
2663
2637
|
}
|
|
2664
|
-
function
|
|
2638
|
+
function qs(e, t, n) {
|
|
2665
2639
|
if (e.pageType !== "business-route") return;
|
|
2666
2640
|
let r = Ae(e);
|
|
2667
2641
|
return r ? ze(r.view, r.input, r.presentation, t, n) : void 0;
|
|
2668
2642
|
}
|
|
2669
|
-
function
|
|
2643
|
+
function Js(e, t) {
|
|
2670
2644
|
return t.pageType === "dynamic-module" && e.menuType === "module" && e.moduleAlias === t.target.moduleAlias;
|
|
2671
2645
|
}
|
|
2672
|
-
function
|
|
2646
|
+
function Ys(e, t, n) {
|
|
2673
2647
|
let r = e.findIndex((e) => e.key === n);
|
|
2674
2648
|
if (r < 0) return {
|
|
2675
2649
|
tabs: e,
|
|
@@ -2684,7 +2658,7 @@ function Js(e, t, n) {
|
|
|
2684
2658
|
activeTabKey: t
|
|
2685
2659
|
};
|
|
2686
2660
|
}
|
|
2687
|
-
function
|
|
2661
|
+
function Xs(e, t, n) {
|
|
2688
2662
|
let r = new Set(n), i = e.findIndex((e) => e.key === t), a = e.filter((e) => !r.has(e.key) || e.closable === !1);
|
|
2689
2663
|
return !t || !r.has(t) ? {
|
|
2690
2664
|
tabs: a,
|
|
@@ -2694,16 +2668,16 @@ function Ys(e, t, n) {
|
|
|
2694
2668
|
activeTabKey: (a.find((t) => e.indexOf(t) > i) ?? a.at(-1))?.key
|
|
2695
2669
|
};
|
|
2696
2670
|
}
|
|
2697
|
-
function
|
|
2671
|
+
function Zs(e, t, n = !0) {
|
|
2698
2672
|
let r = new Map(e.map((e) => [e.key, e])), i = /* @__PURE__ */ new Set();
|
|
2699
2673
|
return [...t.flatMap((e) => {
|
|
2700
2674
|
if (i.has(e.key)) return [];
|
|
2701
2675
|
i.add(e.key);
|
|
2702
2676
|
let t = r.get(e.key);
|
|
2703
|
-
return t ? [
|
|
2677
|
+
return t ? [Qs(t, e)] : n ? [e] : [];
|
|
2704
2678
|
}), ...e.filter((e) => !i.has(e.key))];
|
|
2705
2679
|
}
|
|
2706
|
-
function
|
|
2680
|
+
function Qs(e, t) {
|
|
2707
2681
|
let n = e.pageDescriptor, r = t.pageDescriptor;
|
|
2708
2682
|
if (!n || !r || !t.target) return e;
|
|
2709
2683
|
let i = {
|
|
@@ -2714,83 +2688,83 @@ function Zs(e, t) {
|
|
|
2714
2688
|
};
|
|
2715
2689
|
return {
|
|
2716
2690
|
...t,
|
|
2717
|
-
...
|
|
2691
|
+
...oc(i),
|
|
2718
2692
|
target: t.target
|
|
2719
2693
|
};
|
|
2720
2694
|
}
|
|
2721
|
-
function
|
|
2695
|
+
function $s(e, t, n = {}, r = Bt) {
|
|
2722
2696
|
let i = /* @__PURE__ */ new Map();
|
|
2723
|
-
|
|
2697
|
+
rc(t, i);
|
|
2724
2698
|
let a = /* @__PURE__ */ new Set();
|
|
2725
2699
|
return e.flatMap((e) => {
|
|
2726
|
-
let t = e.pageDescriptor?.menuId ?? e.target?.menuId ??
|
|
2700
|
+
let t = e.pageDescriptor?.menuId ?? e.target?.menuId ?? ec(e.key);
|
|
2727
2701
|
if (t) {
|
|
2728
2702
|
if (a.has(t)) return [];
|
|
2729
2703
|
let e = i.get(t);
|
|
2730
2704
|
return e ? (a.add(t), [se(e.menu, e.target, n)]) : [];
|
|
2731
2705
|
}
|
|
2732
|
-
let o =
|
|
2706
|
+
let o = tc(e, r);
|
|
2733
2707
|
return !o || a.has(o.key) ? [] : (a.add(o.key), [o]);
|
|
2734
2708
|
});
|
|
2735
2709
|
}
|
|
2736
|
-
function
|
|
2710
|
+
function ec(e) {
|
|
2737
2711
|
return e.startsWith("menu:") && e.slice(5) || void 0;
|
|
2738
2712
|
}
|
|
2739
|
-
function
|
|
2713
|
+
function tc(e, t) {
|
|
2740
2714
|
let n = e.pageDescriptor;
|
|
2741
2715
|
if (n?.pageType !== "business-route") return;
|
|
2742
2716
|
let r = Ae(n);
|
|
2743
|
-
if (r && r.presentation === "tab") return
|
|
2717
|
+
if (r && r.presentation === "tab") return oc(ze(r.view, r.input, "tab", void 0, t));
|
|
2744
2718
|
}
|
|
2745
|
-
function
|
|
2719
|
+
function nc(e, t) {
|
|
2746
2720
|
let n = e.findIndex((e) => e.key === t.key);
|
|
2747
2721
|
return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
|
|
2748
2722
|
}
|
|
2749
|
-
function
|
|
2723
|
+
function rc(e, t) {
|
|
2750
2724
|
for (let r of e) {
|
|
2751
2725
|
let e = x(r.record);
|
|
2752
2726
|
e && n(e) && t.set(r.record.id, {
|
|
2753
2727
|
menu: r.record,
|
|
2754
2728
|
target: e
|
|
2755
|
-
}),
|
|
2729
|
+
}), rc(r.children, t);
|
|
2756
2730
|
}
|
|
2757
2731
|
}
|
|
2758
|
-
function
|
|
2732
|
+
function ic(e, t) {
|
|
2759
2733
|
let n = new Set(t);
|
|
2760
2734
|
return e.filter((e) => !n.has(e.key));
|
|
2761
2735
|
}
|
|
2762
|
-
function
|
|
2736
|
+
function ac(e, t, n = []) {
|
|
2763
2737
|
if (e.length !== t.length || new Set(t).size !== e.length) return e;
|
|
2764
2738
|
let r = new Map(e.map((e) => [e.key, e]));
|
|
2765
2739
|
if (t.some((e) => !r.has(e))) return e;
|
|
2766
2740
|
let i = t.map((e) => r.get(e)), a = new Set(n);
|
|
2767
2741
|
return [...i.filter((e) => a.has(e.key)), ...i.filter((e) => !a.has(e.key))];
|
|
2768
2742
|
}
|
|
2769
|
-
function
|
|
2743
|
+
function oc(e, t = {}) {
|
|
2770
2744
|
let n = A(e, t);
|
|
2771
2745
|
return {
|
|
2772
|
-
...
|
|
2746
|
+
...sc(e) ? { instanceKey: sc(e) } : {},
|
|
2773
2747
|
key: Oe(e),
|
|
2774
|
-
title: e.title ??
|
|
2748
|
+
title: e.title ?? fc(e),
|
|
2775
2749
|
fullPath: n,
|
|
2776
2750
|
pageDescriptor: e,
|
|
2777
2751
|
restoreState: { url: n },
|
|
2778
2752
|
closable: !0
|
|
2779
2753
|
};
|
|
2780
2754
|
}
|
|
2781
|
-
function
|
|
2755
|
+
function sc(e) {
|
|
2782
2756
|
let t = (e.pageType === "platform-route" || e.pageType === "business-route" ? e.target.query ?? e.params : e.params)?.InstanceKey, n = Array.isArray(t) ? t[0] : t;
|
|
2783
2757
|
return typeof n == "string" && n ? n : void 0;
|
|
2784
2758
|
}
|
|
2785
|
-
function
|
|
2759
|
+
function cc(e, t) {
|
|
2786
2760
|
let n = e.findIndex((e) => e.key === t.key);
|
|
2787
2761
|
return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
|
|
2788
2762
|
}
|
|
2789
|
-
function
|
|
2763
|
+
function lc(e, t, n, r, i) {
|
|
2790
2764
|
let a = O(n, i), o = se(e, t, r), s = o.pageDescriptor ?? a, c = a.title === void 0 ? {
|
|
2791
2765
|
title: e.title,
|
|
2792
2766
|
titleText: s.titleText
|
|
2793
|
-
} : { title: a.title }, l =
|
|
2767
|
+
} : { title: a.title }, l = uc(a) && uc(s) || dc(a) && dc(s) ? {
|
|
2794
2768
|
...a,
|
|
2795
2769
|
...c,
|
|
2796
2770
|
menuId: e.id,
|
|
@@ -2807,44 +2781,44 @@ function cc(e, t, n, r, i) {
|
|
|
2807
2781
|
};
|
|
2808
2782
|
return {
|
|
2809
2783
|
...o,
|
|
2810
|
-
...
|
|
2784
|
+
...oc(l, r),
|
|
2811
2785
|
target: t
|
|
2812
2786
|
};
|
|
2813
2787
|
}
|
|
2814
|
-
function
|
|
2788
|
+
function uc(e) {
|
|
2815
2789
|
return e.pageType === "platform-route" || e.pageType === "business-route";
|
|
2816
2790
|
}
|
|
2817
|
-
function
|
|
2791
|
+
function dc(e) {
|
|
2818
2792
|
return e.pageType === "remote-url" || e.pageType === "external-link";
|
|
2819
2793
|
}
|
|
2820
|
-
function
|
|
2794
|
+
function fc(e) {
|
|
2821
2795
|
return e.pageType === "dynamic-module" ? e.target.moduleAlias : e.pageType === "platform-route" || e.pageType === "business-route" ? e.target.route ?? e.target.routeName ?? e.target.pageKey ?? "workspace" : e.target.url;
|
|
2822
2796
|
}
|
|
2823
|
-
function
|
|
2797
|
+
function pc(e, t, n) {
|
|
2824
2798
|
for (let r of e) {
|
|
2825
|
-
if (
|
|
2826
|
-
let e =
|
|
2799
|
+
if (mc(r.record, t, n)) return r.record;
|
|
2800
|
+
let e = pc(r.children, t, n);
|
|
2827
2801
|
if (e) return e;
|
|
2828
2802
|
}
|
|
2829
2803
|
}
|
|
2830
|
-
function
|
|
2804
|
+
function mc(e, t, n) {
|
|
2831
2805
|
let r = x(e), i = r ? ye(r, {
|
|
2832
2806
|
...n,
|
|
2833
2807
|
title: e.title
|
|
2834
2808
|
}) : void 0;
|
|
2835
|
-
return i ?
|
|
2809
|
+
return i ? hc(i, t) : !1;
|
|
2836
2810
|
}
|
|
2837
|
-
function
|
|
2811
|
+
function hc(e, t) {
|
|
2838
2812
|
return e.pageType !== t.pageType || e.hostType !== t.hostType ? !1 : e.pageType === "dynamic-module" && t.pageType === "dynamic-module" ? e.target.moduleAlias === t.target.moduleAlias && (e.target.pageMode ?? "LIST") === (t.target.pageMode ?? "LIST") && (!t.target.defaultUiConfigId || e.target.defaultUiConfigId === t.target.defaultUiConfigId) && (!t.target.defaultQueryTemplateId || e.target.defaultQueryTemplateId === t.target.defaultQueryTemplateId) : (e.pageType === "platform-route" || e.pageType === "business-route") && (t.pageType === "platform-route" || t.pageType === "business-route") ? e.target.route === t.target.route && e.target.routeName === t.target.routeName && e.target.pageKey === t.target.pageKey : (e.pageType === "remote-url" || e.pageType === "external-link") && (t.pageType === "remote-url" || t.pageType === "external-link") && e.target.url === t.target.url;
|
|
2839
2813
|
}
|
|
2840
|
-
function
|
|
2814
|
+
function gc(e, t) {
|
|
2841
2815
|
for (let n of e) {
|
|
2842
2816
|
if (n.record.id === t) return n.record;
|
|
2843
|
-
let e =
|
|
2817
|
+
let e = gc(n.children, t);
|
|
2844
2818
|
if (e) return e;
|
|
2845
2819
|
}
|
|
2846
2820
|
}
|
|
2847
|
-
function
|
|
2821
|
+
function _c(e, t) {
|
|
2848
2822
|
return {
|
|
2849
2823
|
...e,
|
|
2850
2824
|
title: t,
|
|
@@ -2857,51 +2831,51 @@ function gc(e, t) {
|
|
|
2857
2831
|
}
|
|
2858
2832
|
//#endregion
|
|
2859
2833
|
//#region src/app/workbenchSessionTabs.ts
|
|
2860
|
-
function
|
|
2834
|
+
function vc(e) {
|
|
2861
2835
|
if (!Array.isArray(e)) return [];
|
|
2862
2836
|
let t = /* @__PURE__ */ new Set();
|
|
2863
|
-
return e.flatMap((e) => !
|
|
2837
|
+
return e.flatMap((e) => !yc(e) || t.has(e.key) ? [] : (t.add(e.key), [e]));
|
|
2864
2838
|
}
|
|
2865
|
-
function
|
|
2839
|
+
function yc(e) {
|
|
2866
2840
|
let t = e;
|
|
2867
|
-
return
|
|
2841
|
+
return Cc(e) && typeof t.key == "string" && typeof t.title == "string" && (bc(t.pageDescriptor) || Sc(t.target));
|
|
2868
2842
|
}
|
|
2869
|
-
function
|
|
2870
|
-
return !
|
|
2843
|
+
function bc(e) {
|
|
2844
|
+
return !Cc(e) || !Cc(e.target) || !Cc(e.tabPolicy) || ![
|
|
2871
2845
|
"by-menu",
|
|
2872
2846
|
"by-target",
|
|
2873
2847
|
"by-params"
|
|
2874
|
-
].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" &&
|
|
2875
|
-
}
|
|
2876
|
-
function bc(e) {
|
|
2877
|
-
return typeof e.route == "string" || typeof e.routeName == "string" || typeof e.pageKey == "string";
|
|
2848
|
+
].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" && xc(e.target) : e.pageType === "business-route" ? e.openMode === "workbench-route" && e.hostType === "business-route-host" && xc(e.target) : e.pageType === "dynamic-module" ? e.openMode === "dynamic-runner" && (e.hostType === "module-page-host" || e.hostType === "dynamic-module-host") && typeof e.target.moduleAlias == "string" : e.pageType === "remote-url" ? (e.openMode === "iframe" || e.openMode === "new-window") && e.hostType === "external-page-host" && typeof e.target.url == "string" : e.pageType === "external-link" && e.openMode === "new-window" && e.hostType === "external-page-host" && typeof e.target.url == "string";
|
|
2878
2849
|
}
|
|
2879
2850
|
function xc(e) {
|
|
2880
|
-
return
|
|
2851
|
+
return typeof e.route == "string" || typeof e.routeName == "string" || typeof e.pageKey == "string";
|
|
2881
2852
|
}
|
|
2882
2853
|
function Sc(e) {
|
|
2854
|
+
return !Cc(e) || typeof e.menuId != "string" || e.openMode !== "tab" ? !1 : e.menuType === "module" ? typeof e.moduleAlias == "string" : e.menuType === "route" ? typeof e.route == "string" : e.menuType === "link" && typeof e.externalUrl == "string";
|
|
2855
|
+
}
|
|
2856
|
+
function Cc(e) {
|
|
2883
2857
|
return typeof e == "object" && !!e;
|
|
2884
2858
|
}
|
|
2885
2859
|
//#endregion
|
|
2886
2860
|
//#region src/app/lockedTabPreference.ts
|
|
2887
|
-
var
|
|
2888
|
-
async function
|
|
2889
|
-
return
|
|
2861
|
+
var wc = "workbench.locked-tabs";
|
|
2862
|
+
async function Tc(e) {
|
|
2863
|
+
return Dc(await e.restore(wc, [], { persistence: "backend" }));
|
|
2890
2864
|
}
|
|
2891
|
-
async function
|
|
2892
|
-
await e.set(
|
|
2865
|
+
async function Ec(e, t) {
|
|
2866
|
+
await e.set(wc, t, { persistence: "backend" });
|
|
2893
2867
|
}
|
|
2894
|
-
function
|
|
2895
|
-
return
|
|
2868
|
+
function Dc(e) {
|
|
2869
|
+
return vc(e);
|
|
2896
2870
|
}
|
|
2897
2871
|
//#endregion
|
|
2898
2872
|
//#region src/consumer/PlatformAdminOutlet.vue
|
|
2899
|
-
var
|
|
2873
|
+
var Oc = /* @__PURE__ */ z({
|
|
2900
2874
|
name: "PlatformAdminOutlet",
|
|
2901
2875
|
__name: "PlatformAdminOutlet",
|
|
2902
2876
|
props: { descriptor: {} },
|
|
2903
2877
|
setup(e) {
|
|
2904
|
-
return (t, n) => W(
|
|
2878
|
+
return (t, n) => W(bs)(e.descriptor) ? (B(), N(Os, {
|
|
2905
2879
|
key: 0,
|
|
2906
2880
|
descriptor: e.descriptor
|
|
2907
2881
|
}, null, 8, ["descriptor"])) : (B(), N(Me, {
|
|
@@ -2912,7 +2886,7 @@ var Dc = /* @__PURE__ */ z({
|
|
|
2912
2886
|
});
|
|
2913
2887
|
//#endregion
|
|
2914
2888
|
//#region src/app/workbenchRouteSync.ts
|
|
2915
|
-
function
|
|
2889
|
+
function kc(e, t) {
|
|
2916
2890
|
if (e === t) return !0;
|
|
2917
2891
|
if (e === void 0 || t === void 0) return !1;
|
|
2918
2892
|
let n = (e) => {
|
|
@@ -2921,20 +2895,20 @@ function Oc(e, t) {
|
|
|
2921
2895
|
};
|
|
2922
2896
|
return n(e) === n(t);
|
|
2923
2897
|
}
|
|
2924
|
-
function
|
|
2925
|
-
let r =
|
|
2926
|
-
return
|
|
2898
|
+
function Ac(e, t, n) {
|
|
2899
|
+
let r = Us(e) ?? "/";
|
|
2900
|
+
return kc(r, t) ? void 0 : {
|
|
2927
2901
|
url: r,
|
|
2928
2902
|
mode: n
|
|
2929
2903
|
};
|
|
2930
2904
|
}
|
|
2931
2905
|
//#endregion
|
|
2932
2906
|
//#region src/platform-workbench/workspaceViewDiscardGuard.ts
|
|
2933
|
-
function
|
|
2907
|
+
function jc(e) {
|
|
2934
2908
|
return e.some((e) => ue(e).length > 0 || Se(e).length > 0);
|
|
2935
2909
|
}
|
|
2936
|
-
async function
|
|
2937
|
-
if (
|
|
2910
|
+
async function Mc(e, t = "close", n = Bt) {
|
|
2911
|
+
if (Nc(e, t, n)) return !1;
|
|
2938
2912
|
if ([...new Set(e.flatMap(Se))].length === 0) return !0;
|
|
2939
2913
|
let r = () => {
|
|
2940
2914
|
let r = t === "refresh" ? n.t("platform.screen.workspaceViewDiscardGuard.refresh", "刷新") : n.t("platform.screen.workspaceViewDiscardGuard.close", "关闭");
|
|
@@ -2950,9 +2924,9 @@ async function jc(e, t = "close", n = li) {
|
|
|
2950
2924
|
return await et({
|
|
2951
2925
|
...r(),
|
|
2952
2926
|
presentation: r
|
|
2953
|
-
}, n) && !
|
|
2927
|
+
}, n) && !Nc(e, t, n);
|
|
2954
2928
|
}
|
|
2955
|
-
function
|
|
2929
|
+
function Nc(e, t, n) {
|
|
2956
2930
|
let r = t === "refresh" ? n.t("platform.screen.workspaceViewDiscardGuard.refresh", "刷新") : n.t("platform.screen.workspaceViewDiscardGuard.close", "关闭"), i = [...new Set(e.flatMap(ue))];
|
|
2957
2931
|
return i.length !== 0 && (ft(n.t("platform.screen.workspaceViewDiscardGuard.value-has-an-operation-in-progress-wait-for-it-to", "“{value1}”正在处理操作,请完成后再{value2}。", {
|
|
2958
2932
|
value1: i.join(n.t("platform.list.separator", "、")),
|
|
@@ -2961,7 +2935,7 @@ function Mc(e, t, n) {
|
|
|
2961
2935
|
}
|
|
2962
2936
|
//#endregion
|
|
2963
2937
|
//#region src/consumer/AppWorkbenchShell.vue
|
|
2964
|
-
var
|
|
2938
|
+
var Pc = /* @__PURE__ */ z({
|
|
2965
2939
|
name: "AppWorkbenchShell",
|
|
2966
2940
|
__name: "AppWorkbenchShell",
|
|
2967
2941
|
props: {
|
|
@@ -2989,7 +2963,7 @@ var Nc = /* @__PURE__ */ z({
|
|
|
2989
2963
|
"userCommand"
|
|
2990
2964
|
],
|
|
2991
2965
|
setup(e, { emit: t }) {
|
|
2992
|
-
let n =
|
|
2966
|
+
let n = zn(), r = e, i = t, a = M(() => r.startup.activeTabKey), o = V([]), s = 0, c = Promise.resolve(), l = !1;
|
|
2993
2967
|
k({
|
|
2994
2968
|
refreshMenus: r.loadMenus ? async () => {
|
|
2995
2969
|
let e = r.startup.session, t = await r.loadMenus();
|
|
@@ -3010,20 +2984,20 @@ var Nc = /* @__PURE__ */ z({
|
|
|
3010
2984
|
replacePage: oe,
|
|
3011
2985
|
closePage: m,
|
|
3012
2986
|
setTabName: ae
|
|
3013
|
-
}),
|
|
2987
|
+
}), sa(() => {
|
|
3014
2988
|
l = !0, ve(), C(), ce(r.location);
|
|
3015
|
-
}),
|
|
2989
|
+
}), oa(() => {
|
|
3016
2990
|
l = !1;
|
|
3017
|
-
}),
|
|
2991
|
+
}), fa(() => r.location, (e) => ce(e));
|
|
3018
2992
|
function u(e, t = void 0) {
|
|
3019
2993
|
i("update:startup", e), t && se(e, t);
|
|
3020
2994
|
}
|
|
3021
2995
|
function d(e, t) {
|
|
3022
2996
|
if (t.openMode === "window") {
|
|
3023
|
-
window.open(
|
|
2997
|
+
window.open(Hs(e, t), "_blank", "noopener,noreferrer");
|
|
3024
2998
|
return;
|
|
3025
2999
|
}
|
|
3026
|
-
let n =
|
|
3000
|
+
let n = Bs(r.startup.tabs ?? [], e, t, r.resolveOptions);
|
|
3027
3001
|
u({
|
|
3028
3002
|
...r.startup,
|
|
3029
3003
|
tabs: n.tabs,
|
|
@@ -3037,28 +3011,28 @@ var Nc = /* @__PURE__ */ z({
|
|
|
3037
3011
|
}, "push");
|
|
3038
3012
|
}
|
|
3039
3013
|
async function p(e) {
|
|
3040
|
-
await
|
|
3014
|
+
await Mc([e], "refresh", n) && l && (r.startup.tabs ?? []).some((t) => t.key === e) && i("refreshPage", e);
|
|
3041
3015
|
}
|
|
3042
3016
|
async function m(e) {
|
|
3043
|
-
if (!await
|
|
3044
|
-
let t =
|
|
3045
|
-
o.value.some((t) => t.key === e) && v(
|
|
3017
|
+
if (!await Mc([e], "close", n) || !l) return;
|
|
3018
|
+
let t = Ys(r.startup.tabs ?? [], r.startup.activeTabKey, e);
|
|
3019
|
+
o.value.some((t) => t.key === e) && v(ic(o.value, [e])), u({
|
|
3046
3020
|
...r.startup,
|
|
3047
3021
|
tabs: t.tabs,
|
|
3048
3022
|
activeTabKey: t.activeTabKey
|
|
3049
3023
|
}, "replace"), Pe(e);
|
|
3050
3024
|
}
|
|
3051
3025
|
async function h(e) {
|
|
3052
|
-
if (!await
|
|
3053
|
-
let t =
|
|
3054
|
-
i.length > 0 && v(
|
|
3026
|
+
if (!await Mc(e, "close", n) || !l) return;
|
|
3027
|
+
let t = Xs(r.startup.tabs ?? [], r.startup.activeTabKey, e), i = e.filter((e) => o.value.some((t) => t.key === e));
|
|
3028
|
+
i.length > 0 && v(ic(o.value, i)), u({
|
|
3055
3029
|
...r.startup,
|
|
3056
3030
|
tabs: t.tabs,
|
|
3057
3031
|
activeTabKey: t.activeTabKey
|
|
3058
3032
|
}, "replace"), e.forEach(Pe);
|
|
3059
3033
|
}
|
|
3060
3034
|
function g(e) {
|
|
3061
|
-
let t =
|
|
3035
|
+
let t = ac(r.startup.tabs ?? [], e, o.value.map((e) => e.key)), n = t.filter((e) => o.value.some((t) => t.key === e.key));
|
|
3062
3036
|
n.map((e) => e.key).join("|") !== o.value.map((e) => e.key).join("|") && v(n), u({
|
|
3063
3037
|
...r.startup,
|
|
3064
3038
|
tabs: t
|
|
@@ -3067,10 +3041,10 @@ var Nc = /* @__PURE__ */ z({
|
|
|
3067
3041
|
function _(e) {
|
|
3068
3042
|
let t = r.startup.tabs?.find((t) => t.key === e);
|
|
3069
3043
|
if (!t) return;
|
|
3070
|
-
let n = o.value.some((t) => t.key === e), i = o.value, a = n ?
|
|
3044
|
+
let n = o.value.some((t) => t.key === e), i = o.value, a = n ? ic(i, [e]) : nc(i, t);
|
|
3071
3045
|
v(a), u({
|
|
3072
3046
|
...r.startup,
|
|
3073
|
-
tabs:
|
|
3047
|
+
tabs: Zs(r.startup.tabs ?? [], a)
|
|
3074
3048
|
});
|
|
3075
3049
|
}
|
|
3076
3050
|
function v(e) {
|
|
@@ -3079,17 +3053,17 @@ var Nc = /* @__PURE__ */ z({
|
|
|
3079
3053
|
}
|
|
3080
3054
|
async function y(e, t, n) {
|
|
3081
3055
|
try {
|
|
3082
|
-
c = c.catch(() => void 0).then(() =>
|
|
3056
|
+
c = c.catch(() => void 0).then(() => Ec(ii, e)), await c;
|
|
3083
3057
|
} catch {
|
|
3084
3058
|
if (n !== s) return;
|
|
3085
3059
|
o.value = t, u({
|
|
3086
3060
|
...r.startup,
|
|
3087
|
-
tabs:
|
|
3061
|
+
tabs: Zs(r.startup.tabs ?? [], t, !1)
|
|
3088
3062
|
});
|
|
3089
3063
|
}
|
|
3090
3064
|
}
|
|
3091
3065
|
function b(e) {
|
|
3092
|
-
let t =
|
|
3066
|
+
let t = Vs(r.startup.tabs ?? [], e);
|
|
3093
3067
|
return u({
|
|
3094
3068
|
...r.startup,
|
|
3095
3069
|
tabs: t.tabs,
|
|
@@ -3102,7 +3076,7 @@ var Nc = /* @__PURE__ */ z({
|
|
|
3102
3076
|
function te(e, t = {}) {
|
|
3103
3077
|
let i = r.startup.activeTabKey, a = r.startup.tabs?.find((e) => e.key === i), o = ke(e, t);
|
|
3104
3078
|
if (!i || !a) return S(o, "replace", r.startup, t.tabTitle);
|
|
3105
|
-
let s =
|
|
3079
|
+
let s = Ws(r.startup, o, {
|
|
3106
3080
|
...r.resolveOptions,
|
|
3107
3081
|
title: t.tabTitle ?? r.resolveOptions.title
|
|
3108
3082
|
}, !1, n), c = s.tabs?.find((e) => e.key === s.activeTabKey);
|
|
@@ -3125,14 +3099,14 @@ var Nc = /* @__PURE__ */ z({
|
|
|
3125
3099
|
}
|
|
3126
3100
|
function ne(e) {
|
|
3127
3101
|
let t = r.startup.activeTabKey;
|
|
3128
|
-
return t ?
|
|
3102
|
+
return t ? jc([t]) ? (re(e, t), { created: !1 }) : ie(e, t) : S(ke(e), "replace", r.startup);
|
|
3129
3103
|
}
|
|
3130
3104
|
async function re(e, t) {
|
|
3131
|
-
if (await
|
|
3105
|
+
if (await Mc([t], "close", n) && l && (r.startup.tabs ?? []).some((e) => e.key === t)) return ie(e, t);
|
|
3132
3106
|
}
|
|
3133
3107
|
function ie(e, t) {
|
|
3134
|
-
let n =
|
|
3135
|
-
Pe(t), o.value.some((e) => e.key === t) && v(
|
|
3108
|
+
let n = Ys(r.startup.tabs ?? [], r.startup.activeTabKey, t);
|
|
3109
|
+
Pe(t), o.value.some((e) => e.key === t) && v(ic(o.value, [t]));
|
|
3136
3110
|
let i = n.tabs.find((t) => {
|
|
3137
3111
|
let n = t.fullPath ?? (t.pageDescriptor ? A(t.pageDescriptor) : void 0);
|
|
3138
3112
|
return n && new URL(n, "http://muyun.local").pathname === e;
|
|
@@ -3148,20 +3122,20 @@ var Nc = /* @__PURE__ */ z({
|
|
|
3148
3122
|
});
|
|
3149
3123
|
}
|
|
3150
3124
|
function S(e, t, i, a, o = !1) {
|
|
3151
|
-
let s = new Set((i.tabs ?? []).map((e) => e.key)), c =
|
|
3125
|
+
let s = new Set((i.tabs ?? []).map((e) => e.key)), c = Ws(i, e, {
|
|
3152
3126
|
...r.resolveOptions,
|
|
3153
3127
|
title: a ?? r.resolveOptions.title
|
|
3154
3128
|
}, o, n);
|
|
3155
3129
|
return a && c.activeTabKey && (c = {
|
|
3156
3130
|
...c,
|
|
3157
|
-
tabs: (c.tabs ?? []).map((e) => e.key === c.activeTabKey ?
|
|
3131
|
+
tabs: (c.tabs ?? []).map((e) => e.key === c.activeTabKey ? _c(e, a) : e)
|
|
3158
3132
|
}), u(c, t), { created: !(!c.activeTabKey || s.has(c.activeTabKey)) };
|
|
3159
3133
|
}
|
|
3160
3134
|
function ae(e, t) {
|
|
3161
3135
|
let n = t.trim();
|
|
3162
3136
|
e && n && u({
|
|
3163
3137
|
...r.startup,
|
|
3164
|
-
tabs: (r.startup.tabs ?? []).map((t) => t.instanceKey === e ?
|
|
3138
|
+
tabs: (r.startup.tabs ?? []).map((t) => t.instanceKey === e ? _c(t, n) : t)
|
|
3165
3139
|
});
|
|
3166
3140
|
}
|
|
3167
3141
|
function oe(e, t) {
|
|
@@ -3171,28 +3145,28 @@ var Nc = /* @__PURE__ */ z({
|
|
|
3171
3145
|
pageDescriptor: t,
|
|
3172
3146
|
restoreState: { url: A(t) }
|
|
3173
3147
|
} : n), i = n.find((t) => t.key === e);
|
|
3174
|
-
i && o.value.some((t) => t.key === e) && v(
|
|
3148
|
+
i && o.value.some((t) => t.key === e) && v(nc(o.value, i)), u({
|
|
3175
3149
|
...r.startup,
|
|
3176
3150
|
tabs: n
|
|
3177
3151
|
}, "replace");
|
|
3178
3152
|
}
|
|
3179
3153
|
function se(e, t) {
|
|
3180
|
-
let n =
|
|
3154
|
+
let n = Ac(e, r.location, t);
|
|
3181
3155
|
n && i("navigate", n);
|
|
3182
3156
|
}
|
|
3183
3157
|
function ce(e) {
|
|
3184
|
-
u(
|
|
3158
|
+
u(Ws(r.startup, e, r.resolveOptions, !1, n));
|
|
3185
3159
|
}
|
|
3186
3160
|
async function C() {
|
|
3187
3161
|
let e = s;
|
|
3188
3162
|
try {
|
|
3189
|
-
let t =
|
|
3163
|
+
let t = $s(await Tc(ii), r.startup.menus, r.resolveOptions, n);
|
|
3190
3164
|
if (!l || e !== s) return;
|
|
3191
3165
|
o.value = t;
|
|
3192
3166
|
let i = new Set(t.map((e) => e.key)), a = [...t, ...(r.startup.tabs ?? []).filter((e) => !i.has(e.key))];
|
|
3193
3167
|
u({
|
|
3194
3168
|
...r.startup,
|
|
3195
|
-
tabs:
|
|
3169
|
+
tabs: Zs(a, t)
|
|
3196
3170
|
});
|
|
3197
3171
|
} catch {}
|
|
3198
3172
|
}
|
|
@@ -3214,12 +3188,12 @@ var Nc = /* @__PURE__ */ z({
|
|
|
3214
3188
|
onRefreshPage: p,
|
|
3215
3189
|
onUserCommand: n[0] ||= (e) => i("userCommand", e),
|
|
3216
3190
|
onRetryLoad: n[1] ||= (e) => i("retryLoad")
|
|
3217
|
-
},
|
|
3191
|
+
}, $i({
|
|
3218
3192
|
default: G(({ pageDescriptor: e }) => [H(t.$slots, "default", { pageDescriptor: e })]),
|
|
3219
3193
|
_: 2
|
|
3220
3194
|
}, [t.$slots["topbar-actions"] ? {
|
|
3221
3195
|
name: "topbar-actions",
|
|
3222
|
-
fn: G((e) => [H(t.$slots, "topbar-actions",
|
|
3196
|
+
fn: G((e) => [H(t.$slots, "topbar-actions", ia(ta(e)))]),
|
|
3223
3197
|
key: "0"
|
|
3224
3198
|
} : void 0]), 1032, [
|
|
3225
3199
|
"startup",
|
|
@@ -3235,42 +3209,42 @@ var Nc = /* @__PURE__ */ z({
|
|
|
3235
3209
|
});
|
|
3236
3210
|
//#endregion
|
|
3237
3211
|
//#region src/app/loginTenant.ts
|
|
3238
|
-
function
|
|
3239
|
-
let i =
|
|
3212
|
+
function Fc(e, t = Rc(), n = zc(), r = "/") {
|
|
3213
|
+
let i = Lc(t, n === Ic(r));
|
|
3240
3214
|
return i ? {
|
|
3241
3215
|
tenantId: i,
|
|
3242
3216
|
tenantLocked: !0
|
|
3243
3217
|
} : {
|
|
3244
|
-
tenantId:
|
|
3218
|
+
tenantId: Q(e),
|
|
3245
3219
|
tenantLocked: !1
|
|
3246
3220
|
};
|
|
3247
3221
|
}
|
|
3248
|
-
function
|
|
3222
|
+
function Q(e) {
|
|
3249
3223
|
return e?.trim() ?? "";
|
|
3250
3224
|
}
|
|
3251
|
-
function
|
|
3225
|
+
function Ic(e) {
|
|
3252
3226
|
let t = `/${(e?.trim() || "/").replace(/^\/+|\/+$/g, "")}`.replace(/^\/\/+/g, "/") || "/";
|
|
3253
3227
|
return t === "/" ? t : `${t}/`;
|
|
3254
3228
|
}
|
|
3255
|
-
function
|
|
3256
|
-
let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r =
|
|
3257
|
-
return r || !t ? r :
|
|
3229
|
+
function Lc(e, t) {
|
|
3230
|
+
let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r = Q(n.get("_muyunTenantId"));
|
|
3231
|
+
return r || !t ? r : Q(n.get("tenantId")) || Q(n.get("tenant"));
|
|
3258
3232
|
}
|
|
3259
|
-
function
|
|
3233
|
+
function Rc() {
|
|
3260
3234
|
return typeof window > "u" ? "" : window.location.search;
|
|
3261
3235
|
}
|
|
3262
|
-
function
|
|
3236
|
+
function zc() {
|
|
3263
3237
|
return typeof window > "u" ? "/" : window.location.pathname;
|
|
3264
3238
|
}
|
|
3265
3239
|
//#endregion
|
|
3266
3240
|
//#region src/app/LoginView.vue?vue&type=script&setup=true&lang.ts
|
|
3267
|
-
var
|
|
3241
|
+
var Bc = { class: "login-language" }, Vc = { class: "login-page" }, Hc = { class: "login-panel" }, Uc = { class: "login-brand" }, Wc = ["src"], Gc = { key: 1 }, Kc = { key: 0 }, qc = {
|
|
3268
3242
|
key: 1,
|
|
3269
3243
|
class: "login-subtitle"
|
|
3270
|
-
},
|
|
3244
|
+
}, Jc = {
|
|
3271
3245
|
key: 0,
|
|
3272
3246
|
class: "login-error"
|
|
3273
|
-
},
|
|
3247
|
+
}, Yc = { key: 0 }, Xc = { class: "login-context" }, Zc = /*#__PURE__*/ Cr(/* @__PURE__ */ z({
|
|
3274
3248
|
name: "LoginView",
|
|
3275
3249
|
__name: "LoginView",
|
|
3276
3250
|
props: {
|
|
@@ -3282,8 +3256,8 @@ var zc = { class: "login-language" }, Bc = { class: "login-page" }, Vc = { class
|
|
|
3282
3256
|
},
|
|
3283
3257
|
emits: ["authenticated"],
|
|
3284
3258
|
setup(e, { emit: t }) {
|
|
3285
|
-
let n =
|
|
3286
|
-
|
|
3259
|
+
let n = zn(), r = e, i = t, a = Fc(void 0), o = V(a.tenantId), s = a.tenantLocked, c = V(Q(r.initialUsername) || Q(void 0)), l = V(Q(void 0)), u = V(!1), d = V(), f = V(!1), p = V(), m = V(""), h = V(""), g = V(), _ = V(!1), v = V(), y = M(() => !s || !_.value && !v.value), b = M(() => g.value?.mode !== "logoOnly"), x = M(() => g.value?.title || n.t("platform.screen.LoginView.platform-sign-in", "平台登录")), ee = M(() => g.value?.subtitle);
|
|
3260
|
+
sa(async () => {
|
|
3287
3261
|
if (s && o.value) {
|
|
3288
3262
|
_.value = !0;
|
|
3289
3263
|
try {
|
|
@@ -3317,7 +3291,7 @@ var zc = { class: "login-language" }, Bc = { class: "login-page" }, Vc = { class
|
|
|
3317
3291
|
}
|
|
3318
3292
|
}
|
|
3319
3293
|
function ne(e) {
|
|
3320
|
-
return e instanceof
|
|
3294
|
+
return e instanceof tr ? e.status === 403 ? n.t("platform.screen.LoginView.this-site-is-not-authorized-by-the-server", "当前站点未获后端授权,请联系管理员配置访问来源") : e.code === Ni.networkError || e.code === Ni.httpError || (e.status ?? 0) >= 500 ? n.t("platform.screen.LoginView.cannot-reach-the-server-check-its-status-and", "无法访问后端,请检查服务状态或站点授权配置") : e.code === Ni.loginBadCredentials ? n.t("platform.screen.LoginView.incorrect-username-or-password", "用户名或密码错误") : e.message : e instanceof Error ? e.message : n.t("platform.screen.LoginView.sign-in-failed-please-try-again-later", "登录失败,请稍后重试");
|
|
3321
3295
|
}
|
|
3322
3296
|
async function re() {
|
|
3323
3297
|
if (d.value = void 0, !p.value) {
|
|
@@ -3341,29 +3315,29 @@ var zc = { class: "login-language" }, Bc = { class: "login-page" }, Vc = { class
|
|
|
3341
3315
|
});
|
|
3342
3316
|
i("authenticated", e);
|
|
3343
3317
|
} catch (e) {
|
|
3344
|
-
d.value = () => e instanceof Error ?
|
|
3318
|
+
d.value = () => e instanceof Error ? mt(ot(e), n) : n.t("platform.screen.LoginView.password-change-failed", "密码修改失败,请重试");
|
|
3345
3319
|
} finally {
|
|
3346
3320
|
u.value = !1;
|
|
3347
3321
|
}
|
|
3348
3322
|
}
|
|
3349
|
-
return (t, r) => (B(), F(
|
|
3350
|
-
I("header", null, [I("div",
|
|
3323
|
+
return (t, r) => (B(), F(Qi, null, [I("div", Bc, [L(W(Ie))]), I("main", Vc, [I("section", Hc, [
|
|
3324
|
+
I("header", null, [I("div", Uc, [g.value?.lightLogo ? (B(), F("img", {
|
|
3351
3325
|
key: 0,
|
|
3352
3326
|
class: "login-logo",
|
|
3353
3327
|
src: g.value.lightLogo,
|
|
3354
3328
|
alt: ""
|
|
3355
|
-
}, null, 8,
|
|
3356
|
-
g.value?.lightLogo ? P("v-if", !0) : (B(), F("p",
|
|
3329
|
+
}, null, 8, Wc)) : P("v-if", !0), b.value ? (B(), F("div", Gc, [
|
|
3330
|
+
g.value?.lightLogo ? P("v-if", !0) : (B(), F("p", Kc, "MuYun Platform")),
|
|
3357
3331
|
I("h1", null, U(x.value), 1),
|
|
3358
|
-
ee.value ? (B(), F("p",
|
|
3332
|
+
ee.value ? (B(), F("p", qc, U(ee.value), 1)) : P("v-if", !0)
|
|
3359
3333
|
])) : P("v-if", !0)])]),
|
|
3360
|
-
d.value || e.error || v.value ? (B(), F("p",
|
|
3334
|
+
d.value || e.error || v.value ? (B(), F("p", Jc, U(d.value?.() || e.error || v.value?.()), 1)) : P("v-if", !0),
|
|
3361
3335
|
f.value ? (B(), F("form", {
|
|
3362
3336
|
key: 2,
|
|
3363
3337
|
class: "login-form",
|
|
3364
|
-
onSubmit:
|
|
3338
|
+
onSubmit: ma(re, ["prevent"])
|
|
3365
3339
|
}, [
|
|
3366
|
-
I("p",
|
|
3340
|
+
I("p", Xc, U(W(n).t("platform.screen.LoginView.change-your-current-password-before-entering-the-system", "当前密码需要修改后才能进入系统")), 1),
|
|
3367
3341
|
I("label", null, [I("span", null, U(W(n).t("platform.screen.LoginView.new-password", "新密码")), 1), L(W(j), {
|
|
3368
3342
|
value: m.value,
|
|
3369
3343
|
"onUpdate:value": r[3] ||= (e) => m.value = e,
|
|
@@ -3378,21 +3352,21 @@ var zc = { class: "login-language" }, Bc = { class: "login-page" }, Vc = { class
|
|
|
3378
3352
|
autocomplete: "new-password",
|
|
3379
3353
|
required: ""
|
|
3380
3354
|
}, null, 8, ["value"])]),
|
|
3381
|
-
L(W(
|
|
3355
|
+
L(W(Ei), {
|
|
3382
3356
|
class: "login-submit",
|
|
3383
3357
|
"html-type": "submit",
|
|
3384
3358
|
type: "primary",
|
|
3385
3359
|
loading: u.value || e.loading
|
|
3386
3360
|
}, {
|
|
3387
|
-
default: G(() => [
|
|
3361
|
+
default: G(() => [ea(U(u.value || e.loading ? W(n).t("platform.screen.LoginView.saving", "保存中") : W(n).t("platform.screen.LoginView.change-password", "修改密码")), 1)]),
|
|
3388
3362
|
_: 1
|
|
3389
3363
|
}, 8, ["loading"])
|
|
3390
3364
|
], 32)) : (B(), F("form", {
|
|
3391
3365
|
key: 1,
|
|
3392
3366
|
class: "login-form",
|
|
3393
|
-
onSubmit:
|
|
3367
|
+
onSubmit: ma(te, ["prevent"])
|
|
3394
3368
|
}, [
|
|
3395
|
-
W(s) ? P("v-if", !0) : (B(), F("label",
|
|
3369
|
+
W(s) ? P("v-if", !0) : (B(), F("label", Yc, [I("span", null, U(W(n).t("platform.screen.LoginView.tenant-id", "租户 ID")), 1), L(W(j), {
|
|
3396
3370
|
value: o.value,
|
|
3397
3371
|
"onUpdate:value": r[0] ||= (e) => o.value = e,
|
|
3398
3372
|
autocomplete: "organization",
|
|
@@ -3411,14 +3385,14 @@ var zc = { class: "login-language" }, Bc = { class: "login-page" }, Vc = { class
|
|
|
3411
3385
|
autocomplete: "current-password",
|
|
3412
3386
|
required: ""
|
|
3413
3387
|
}, null, 8, ["value"])]),
|
|
3414
|
-
L(W(
|
|
3388
|
+
L(W(Ei), {
|
|
3415
3389
|
class: "login-submit",
|
|
3416
3390
|
"html-type": "submit",
|
|
3417
3391
|
type: "primary",
|
|
3418
3392
|
disabled: !y.value,
|
|
3419
3393
|
loading: u.value || e.loading || _.value
|
|
3420
3394
|
}, {
|
|
3421
|
-
default: G(() => [
|
|
3395
|
+
default: G(() => [ea(U(u.value || e.loading ? W(n).t("platform.screen.LoginView.signing-in", "登录中") : W(n).t("platform.screen.LoginView.sign-in", "登录")), 1)]),
|
|
3422
3396
|
_: 1
|
|
3423
3397
|
}, 8, ["disabled", "loading"])
|
|
3424
3398
|
], 32))
|
|
@@ -3427,8 +3401,8 @@ var zc = { class: "login-language" }, Bc = { class: "login-page" }, Vc = { class
|
|
|
3427
3401
|
}), [["__scopeId", "data-v-8ea5034c"]]);
|
|
3428
3402
|
//#endregion
|
|
3429
3403
|
//#region src/consumer/userPreferencePersistence.ts
|
|
3430
|
-
function
|
|
3431
|
-
|
|
3404
|
+
function Qc(e) {
|
|
3405
|
+
xr({
|
|
3432
3406
|
load: async (t) => (await e().request({
|
|
3433
3407
|
path: `/platform.user-preference/${encodeURIComponent(t)}`,
|
|
3434
3408
|
query: { clientType: "WEB" }
|
|
@@ -3450,10 +3424,10 @@ function Zc(e) {
|
|
|
3450
3424
|
}
|
|
3451
3425
|
//#endregion
|
|
3452
3426
|
//#region src/app/ChangeOwnPasswordDialog.vue?vue&type=script&setup=true&lang.ts
|
|
3453
|
-
var
|
|
3427
|
+
var $c = { class: "change-own-password-fields" }, el = {
|
|
3454
3428
|
key: 0,
|
|
3455
3429
|
class: "change-own-password-error"
|
|
3456
|
-
},
|
|
3430
|
+
}, tl = /*#__PURE__*/ Cr(/* @__PURE__ */ z({
|
|
3457
3431
|
name: "ChangeOwnPasswordDialog",
|
|
3458
3432
|
__name: "ChangeOwnPasswordDialog",
|
|
3459
3433
|
props: {
|
|
@@ -3478,7 +3452,7 @@ var Qc = { class: "change-own-password-fields" }, $c = {
|
|
|
3478
3452
|
"update:confirmPassword"
|
|
3479
3453
|
],
|
|
3480
3454
|
setup(e, { emit: t }) {
|
|
3481
|
-
let n =
|
|
3455
|
+
let n = zn(), r = t;
|
|
3482
3456
|
return (t, i) => (B(), N(W(cn), {
|
|
3483
3457
|
open: e.open,
|
|
3484
3458
|
title: W(n).t("platform.screen.ChangeOwnPasswordDialog.change-password", "修改密码"),
|
|
@@ -3488,7 +3462,7 @@ var Qc = { class: "change-own-password-fields" }, $c = {
|
|
|
3488
3462
|
onConfirm: i[3] ||= (e) => r("submit"),
|
|
3489
3463
|
onCancel: i[4] ||= (e) => r("close")
|
|
3490
3464
|
}, {
|
|
3491
|
-
default: G(() => [I("div",
|
|
3465
|
+
default: G(() => [I("div", $c, [
|
|
3492
3466
|
I("label", null, [I("span", null, U(W(n).t("platform.screen.ChangeOwnPasswordDialog.current-password", "当前密码")), 1), L(W(j), {
|
|
3493
3467
|
value: e.currentPassword,
|
|
3494
3468
|
type: "password",
|
|
@@ -3525,7 +3499,7 @@ var Qc = { class: "change-own-password-fields" }, $c = {
|
|
|
3525
3499
|
"disabled",
|
|
3526
3500
|
"placeholder"
|
|
3527
3501
|
])])
|
|
3528
|
-
]), e.error ? (B(), F("p",
|
|
3502
|
+
]), e.error ? (B(), F("p", el, U(e.error), 1)) : P("v-if", !0)]),
|
|
3529
3503
|
_: 1
|
|
3530
3504
|
}, 8, [
|
|
3531
3505
|
"open",
|
|
@@ -3535,18 +3509,18 @@ var Qc = { class: "change-own-password-fields" }, $c = {
|
|
|
3535
3509
|
"confirm-disabled"
|
|
3536
3510
|
]));
|
|
3537
3511
|
}
|
|
3538
|
-
}), [["__scopeId", "data-v-c6faa9f8"]]),
|
|
3512
|
+
}), [["__scopeId", "data-v-c6faa9f8"]]), nl = { class: "theme-skin-preferences" }, rl = {
|
|
3539
3513
|
key: 0,
|
|
3540
3514
|
class: "theme-skin-error",
|
|
3541
3515
|
role: "alert"
|
|
3542
|
-
},
|
|
3516
|
+
}, il = ["aria-label"], al = [
|
|
3543
3517
|
"aria-checked",
|
|
3544
3518
|
"tabindex",
|
|
3545
3519
|
"data-skin-id",
|
|
3546
3520
|
"disabled",
|
|
3547
3521
|
"onClick",
|
|
3548
3522
|
"onKeydown"
|
|
3549
|
-
],
|
|
3523
|
+
], ol = /*#__PURE__*/ Cr(/* @__PURE__ */ z({
|
|
3550
3524
|
name: "ThemeSkinPreferencesDialog",
|
|
3551
3525
|
__name: "ThemeSkinPreferencesDialog",
|
|
3552
3526
|
props: {
|
|
@@ -3562,7 +3536,7 @@ var Qc = { class: "change-own-password-fields" }, $c = {
|
|
|
3562
3536
|
},
|
|
3563
3537
|
emits: ["close", "select"],
|
|
3564
3538
|
setup(e, { emit: t }) {
|
|
3565
|
-
let n =
|
|
3539
|
+
let n = zn(), r = e, i = M(() => r.failure === "save-failed" ? n.t("platform.screen.themeSkinPreference.could-not-save-the-appearance-preference-the-previous", "皮肤保存失败,已恢复为之前的设置。") : r.error), a = t;
|
|
3566
3540
|
function o(e, t) {
|
|
3567
3541
|
if (![
|
|
3568
3542
|
"ArrowRight",
|
|
@@ -3587,16 +3561,16 @@ var Qc = { class: "change-own-password-fields" }, $c = {
|
|
|
3587
3561
|
onConfirm: r[0] ||= (e) => a("close"),
|
|
3588
3562
|
onCancel: r[1] ||= (e) => a("close")
|
|
3589
3563
|
}, {
|
|
3590
|
-
default: G(() => [I("section",
|
|
3564
|
+
default: G(() => [I("section", nl, [
|
|
3591
3565
|
I("header", null, [I("h2", null, U(W(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")), 1), I("p", null, U(W(n).t("platform.screen.ThemeSkinPreferencesDialog.your-appearance-preference-is-saved-to-this-account", "皮肤会同步保存到当前账号,并在下次启动时优先恢复。")), 1)]),
|
|
3592
|
-
i.value ? (B(), F("p",
|
|
3566
|
+
i.value ? (B(), F("p", rl, U(i.value), 1)) : P("v-if", !0),
|
|
3593
3567
|
I("div", {
|
|
3594
3568
|
class: "theme-skin-grid",
|
|
3595
3569
|
role: "radiogroup",
|
|
3596
3570
|
"aria-label": W(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")
|
|
3597
|
-
}, [(B(!0), F(
|
|
3571
|
+
}, [(B(!0), F(Qi, null, la(e.skins, (t, i) => (B(), F("button", {
|
|
3598
3572
|
key: t.id,
|
|
3599
|
-
class:
|
|
3573
|
+
class: ra(["theme-skin-card", { selected: t.id === e.activeSkinId }]),
|
|
3600
3574
|
type: "button",
|
|
3601
3575
|
role: "radio",
|
|
3602
3576
|
"aria-checked": t.id === e.activeSkinId,
|
|
@@ -3608,7 +3582,7 @@ var Qc = { class: "change-own-password-fields" }, $c = {
|
|
|
3608
3582
|
}, [
|
|
3609
3583
|
I("span", {
|
|
3610
3584
|
class: "theme-skin-preview",
|
|
3611
|
-
style:
|
|
3585
|
+
style: aa({
|
|
3612
3586
|
"--skin-canvas": t.theme.support.canvas,
|
|
3613
3587
|
"--skin-surface": t.theme.support.surface,
|
|
3614
3588
|
"--skin-text": t.theme.support.text,
|
|
@@ -3622,7 +3596,7 @@ var Qc = { class: "change-own-password-fields" }, $c = {
|
|
|
3622
3596
|
]], 4),
|
|
3623
3597
|
I("strong", null, U(t.titleKey ? W(n).t(t.titleKey, t.title) : t.title), 1),
|
|
3624
3598
|
I("small", null, U(t.descriptionKey ? W(n).t(t.descriptionKey, t.description) : t.description), 1)
|
|
3625
|
-
], 42,
|
|
3599
|
+
], 42, al))), 128))], 8, il)
|
|
3626
3600
|
])]),
|
|
3627
3601
|
_: 1
|
|
3628
3602
|
}, 8, [
|
|
@@ -3632,17 +3606,17 @@ var Qc = { class: "change-own-password-fields" }, $c = {
|
|
|
3632
3606
|
"confirm-loading"
|
|
3633
3607
|
]));
|
|
3634
3608
|
}
|
|
3635
|
-
}), [["__scopeId", "data-v-d7f8f04d"]]),
|
|
3609
|
+
}), [["__scopeId", "data-v-d7f8f04d"]]), $ = "workbench.theme-skin";
|
|
3636
3610
|
async function sl(e, t) {
|
|
3637
|
-
let n = await e.restore(
|
|
3638
|
-
return await e.set(
|
|
3611
|
+
let n = await e.restore($, t, { persistence: "backend" }), r = li(n).id;
|
|
3612
|
+
return await e.set($, r, { persistence: "local" }), r;
|
|
3639
3613
|
}
|
|
3640
3614
|
async function cl(e, t, n) {
|
|
3641
|
-
await e.set(
|
|
3615
|
+
await e.set($, t, { persistence: "local" });
|
|
3642
3616
|
try {
|
|
3643
|
-
return await e.set(
|
|
3617
|
+
return await e.set($, t, { persistence: "backend" }), { skinId: t };
|
|
3644
3618
|
} catch {
|
|
3645
|
-
return await e.set(
|
|
3619
|
+
return await e.set($, n, { persistence: "local" }), {
|
|
3646
3620
|
skinId: n,
|
|
3647
3621
|
failure: "save-failed"
|
|
3648
3622
|
};
|
|
@@ -3650,7 +3624,7 @@ async function cl(e, t, n) {
|
|
|
3650
3624
|
}
|
|
3651
3625
|
//#endregion
|
|
3652
3626
|
//#region src/platform-components/ReadonlyRecordWorkspace.vue?vue&type=script&setup=true&lang.ts
|
|
3653
|
-
var ll = ["aria-label"], ul = /*#__PURE__*/
|
|
3627
|
+
var ll = ["aria-label"], ul = /*#__PURE__*/ Cr(/* @__PURE__ */ z({
|
|
3654
3628
|
name: "ReadonlyRecordWorkspace",
|
|
3655
3629
|
__name: "ReadonlyRecordWorkspace",
|
|
3656
3630
|
props: {
|
|
@@ -3668,8 +3642,8 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
|
|
|
3668
3642
|
}
|
|
3669
3643
|
},
|
|
3670
3644
|
setup(e, { expose: t }) {
|
|
3671
|
-
|
|
3672
|
-
let n = e, r =
|
|
3645
|
+
bi("workspace");
|
|
3646
|
+
let n = e, r = zn(), i = Wi(r), a = V(), o = Yr(a, pi(0)), s = V({}), c = V({}), l = V({}), u = V(0), d = M({
|
|
3673
3647
|
get: () => s.value.criteria,
|
|
3674
3648
|
set: (e) => {
|
|
3675
3649
|
ae({
|
|
@@ -3691,7 +3665,7 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
|
|
|
3691
3665
|
n.view.scopeKey
|
|
3692
3666
|
])), _ = M(() => n.view.querySchema), v = M(() => _.value?.criteriaComposition ?? "TREE"), y = M(() => (_.value?.fields ?? []).filter((e) => !e.reference || !!n.referencePickerOf?.(e)).map((e) => ({
|
|
3693
3667
|
...e,
|
|
3694
|
-
title:
|
|
3668
|
+
title: Pr(e.title ?? e.name, e.titleText, r)
|
|
3695
3669
|
}))), b = M(() => y.value.filter((e) => e.persistentControl)), x = M(() => Object.values(l.value).every((e) => e.valid));
|
|
3696
3670
|
function ee(e) {
|
|
3697
3671
|
return b.value.flatMap((t) => {
|
|
@@ -3708,7 +3682,7 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
|
|
|
3708
3682
|
let t = e.persistentControl;
|
|
3709
3683
|
return {
|
|
3710
3684
|
...t,
|
|
3711
|
-
title:
|
|
3685
|
+
title: Pr(t.title, t.titleText, r),
|
|
3712
3686
|
field: e,
|
|
3713
3687
|
values: c.value[t.id] ?? t.defaultValues ?? [],
|
|
3714
3688
|
options: n.queryOptionsByField[e.name],
|
|
@@ -3741,7 +3715,7 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
|
|
|
3741
3715
|
quickSearchFields: _.value?.quickSearch.fields ?? n.query?.quickSearchFields
|
|
3742
3716
|
}));
|
|
3743
3717
|
function ae(e) {
|
|
3744
|
-
let t = JSON.stringify(S.value), i =
|
|
3718
|
+
let t = JSON.stringify(S.value), i = Di(lr([
|
|
3745
3719
|
n.query?.criteria,
|
|
3746
3720
|
...ee(e.persistentValues),
|
|
3747
3721
|
e.criteria
|
|
@@ -3768,7 +3742,7 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
|
|
|
3768
3742
|
},
|
|
3769
3743
|
defaultSorts: _.value?.defaultSorts
|
|
3770
3744
|
}));
|
|
3771
|
-
|
|
3745
|
+
fa([g, oe], () => {
|
|
3772
3746
|
s.value = {}, c.value = {}, l.value = {}, u.value++, p.value = !1, m.value = !1, h.value = "";
|
|
3773
3747
|
}, { flush: "sync" });
|
|
3774
3748
|
function se() {
|
|
@@ -3777,24 +3751,24 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
|
|
|
3777
3751
|
function ce(e) {
|
|
3778
3752
|
h.value = "", d.value = e;
|
|
3779
3753
|
}
|
|
3780
|
-
let C =
|
|
3754
|
+
let C = Ji({
|
|
3781
3755
|
view: () => n.view,
|
|
3782
3756
|
query: S,
|
|
3783
3757
|
pageSize: n.pageSize,
|
|
3784
3758
|
contentLanguage: () => i.languageTag.value
|
|
3785
3759
|
}), { result: w, loading: T, error: E, selected: D, detail: le, detailLoading: ue, detailError: O, pageNum: de, pageSize: fe } = C;
|
|
3786
|
-
|
|
3760
|
+
fa(oe, () => {
|
|
3787
3761
|
C.search("");
|
|
3788
3762
|
}, { flush: "sync" });
|
|
3789
3763
|
let pe = V("");
|
|
3790
|
-
|
|
3764
|
+
fa(() => n.pageSize, (e) => void C.resizePage(e)), fa(C.quickSearch, (e) => {
|
|
3791
3765
|
pe.value = e;
|
|
3792
|
-
}),
|
|
3766
|
+
}), fa(g, () => {
|
|
3793
3767
|
pe.value = "";
|
|
3794
3768
|
}, { flush: "sync" });
|
|
3795
|
-
let k = M(() => n.view.descriptor.page?.list), me = M(() =>
|
|
3769
|
+
let k = M(() => n.view.descriptor.page?.list), me = M(() => Jr(k.value?.fields)), he = M(() => n.view.descriptor.page?.detail?.display ? Ft(n.view.descriptor) : /* @__PURE__ */ new Map()), ge = M(() => !o.value), _e = M(() => k.value?.title?.text ?? k.value?.fields.title ?? n.view.viewCode), ve = M(() => D.value ? n.view.detail?.title(D.value) ?? _e.value : _e.value), ye = M(() => w.value?.pages ?? 0);
|
|
3796
3770
|
function be(e) {
|
|
3797
|
-
return
|
|
3771
|
+
return mt(ot(e), r);
|
|
3798
3772
|
}
|
|
3799
3773
|
return t({
|
|
3800
3774
|
refresh: C.refresh,
|
|
@@ -3838,7 +3812,7 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
|
|
|
3838
3812
|
onPageChange: W(C).goPage,
|
|
3839
3813
|
onPageSizeChange: W(C).resizePage,
|
|
3840
3814
|
onRowClick: i[6] ||= (e) => W(C).select(e)
|
|
3841
|
-
},
|
|
3815
|
+
}, $i({
|
|
3842
3816
|
persistentQueries: G(() => [L(Hn, {
|
|
3843
3817
|
controls: ne.value,
|
|
3844
3818
|
"reset-key": `${g.value}:${u.value}`,
|
|
@@ -3860,14 +3834,14 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
|
|
|
3860
3834
|
"disabled",
|
|
3861
3835
|
"valid"
|
|
3862
3836
|
]), H(t.$slots, "queries", {}, void 0, !0)]),
|
|
3863
|
-
queryControls: G(() => [L(
|
|
3837
|
+
queryControls: G(() => [L(wr, {
|
|
3864
3838
|
"sort-visible": !!_.value,
|
|
3865
3839
|
"sort-fields": _.value?.fields.filter((e) => e.sortable) ?? [],
|
|
3866
3840
|
sorts: f.value,
|
|
3867
3841
|
"filter-visible": v.value !== "NONE" && y.value.some((e) => v.value !== "FLAT_AND" || !e.persistentControl),
|
|
3868
3842
|
"filter-title": v.value === "FLAT_AND" ? W(r).t("platform.screen.RecordQueryListPanel.more-filters", "更多筛选") : W(r).t("platform.screen.RecordQueryListPanel.advanced-filters", "高级筛选"),
|
|
3869
3843
|
expanded: p.value,
|
|
3870
|
-
count: W(
|
|
3844
|
+
count: W(Ur)(d.value),
|
|
3871
3845
|
disabled: W(T),
|
|
3872
3846
|
onSortChange: i[2] ||= (e) => f.value = e,
|
|
3873
3847
|
onToggle: se
|
|
@@ -3888,14 +3862,14 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
|
|
|
3888
3862
|
}, null, 8, ["message"])) : P("v-if", !0), W(E) ? (B(), N(W(Xt), {
|
|
3889
3863
|
key: 1,
|
|
3890
3864
|
message: be(W(E))
|
|
3891
|
-
}, null, 8, ["message"])) : W(T) ? (B(), N(W(en), { key: 2 })) : W(w)?.records.length ? P("v-if", !0) : (B(), N(W(
|
|
3865
|
+
}, null, 8, ["message"])) : W(T) ? (B(), N(W(en), { key: 2 })) : W(w)?.records.length ? P("v-if", !0) : (B(), N(W(Ki), {
|
|
3892
3866
|
key: 3,
|
|
3893
3867
|
description: W(r).t("platform.read-view.empty", "暂无符合条件的记录")
|
|
3894
3868
|
}, null, 8, ["description"]))]),
|
|
3895
3869
|
cell: G(({ column: n, record: r }) => [H(t.$slots, "cell", {
|
|
3896
3870
|
column: me.value.find((e) => e.key === n.key),
|
|
3897
3871
|
record: r
|
|
3898
|
-
}, () => [L(
|
|
3872
|
+
}, () => [L(oi, {
|
|
3899
3873
|
column: me.value.find((e) => e.key === n.key),
|
|
3900
3874
|
record: r,
|
|
3901
3875
|
reading: W(w)?.businessContent?.readings[e.view.recordKey(r)]?.[n.key]
|
|
@@ -3907,7 +3881,7 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
|
|
|
3907
3881
|
_: 2
|
|
3908
3882
|
}, [m.value ? {
|
|
3909
3883
|
name: "conditions",
|
|
3910
|
-
fn: G(() => [
|
|
3884
|
+
fn: G(() => [pa(I("section", null, [(B(), N(un, {
|
|
3911
3885
|
key: g.value,
|
|
3912
3886
|
fields: y.value,
|
|
3913
3887
|
conjuncts: [...n.query?.criteria ? [n.query.criteria] : [], ...te.value],
|
|
@@ -3928,7 +3902,7 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
|
|
|
3928
3902
|
"reference-picker-of",
|
|
3929
3903
|
"disabled",
|
|
3930
3904
|
"composition"
|
|
3931
|
-
]))], 512), [[
|
|
3905
|
+
]))], 512), [[da, p.value]])]),
|
|
3932
3906
|
key: "0"
|
|
3933
3907
|
} : void 0]), 1032, [
|
|
3934
3908
|
"title",
|
|
@@ -3955,17 +3929,17 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
|
|
|
3955
3929
|
"onQuickSearch",
|
|
3956
3930
|
"onPageChange",
|
|
3957
3931
|
"onPageSizeChange"
|
|
3958
|
-
]), L(
|
|
3932
|
+
]), L(_i, {
|
|
3959
3933
|
open: !!W(D),
|
|
3960
3934
|
docked: ge.value,
|
|
3961
3935
|
title: ve.value,
|
|
3962
3936
|
dismissal: "dismissible",
|
|
3963
3937
|
onClose: W(C).closeDetail
|
|
3964
|
-
},
|
|
3938
|
+
}, $i({
|
|
3965
3939
|
default: G(() => [W(O) ? (B(), N(W(Xt), {
|
|
3966
3940
|
key: 0,
|
|
3967
3941
|
message: be(W(O))
|
|
3968
|
-
}, null, 8, ["message"])) : W(ue) ? (B(), N(W(en), { key: 1 })) : W(D) && W(le) ? (B(), F(
|
|
3942
|
+
}, null, 8, ["message"])) : W(ue) ? (B(), N(W(en), { key: 1 })) : W(D) && W(le) ? (B(), F(Qi, { key: 2 }, [L(ar, {
|
|
3969
3943
|
record: W(le),
|
|
3970
3944
|
fields: he.value
|
|
3971
3945
|
}, null, 8, ["record", "fields"]), H(t.$slots, "detail", {
|
|
@@ -3994,4 +3968,4 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
|
|
|
3994
3968
|
}
|
|
3995
3969
|
}), [["__scopeId", "data-v-e13b15ec"]]);
|
|
3996
3970
|
//#endregion
|
|
3997
|
-
export {
|
|
3971
|
+
export { tr as AppError, Pc as AppWorkbenchShell, Bn as AssistantCapabilityUsageError, Nn as AssistantConversationInterruptedError, Ln as AssistantEffectInterruptedError, hi as AssistantOperationRejectedError, hi as OperationRejectedError, xn as BusinessNotificationPanel, tl as ChangeOwnPasswordDialog, ct as DateTimeText, Br as DraftUpdateRejectedError, Kr as DrawerOperationBar, ge as DynamicModuleWorkspaceDetailView, Sr as FileSizeText, Hr as FileTransferUploadCancelledError, cr as FileTransferUploader, Ie as LanguageSelector, Zc as LoginView, _r as ManagementWorkspace, at as ModuleContextProvider, jn as ModuleHttpProvider, D as ModuleReferenceRecordDetailBrowser, Ci as OperationUsageError, Oc as PlatformAdminOutlet, Os as PlatformAdminRouteOutlet, ul as ReadonlyRecordWorkspace, zi as ReadonlyReferenceValue, At as RecordDetailDrawer, Xn as RecordDetailExtensionSection, ar as RecordDetailFields, xt as RecordDetailPanel, oi as RecordQueryListCell, Wt as RecordQueryListSurface, yr as ReferencePicker, Si as ReferencePickerReadError, Mi as ReferenceRecordDetailBrowser, $n as SingleImageFileReferenceField, Wn as StaleAssistantInvocationError, ol as ThemeSkinPreferencesDialog, Ei as UiButton, _n as UiDataTable, Nr as UiDatePicker, Ot as UiDropdown, Ki as UiEmpty, Xt as UiError, pr as UiIcon, j as UiInput, gt as UiLanguageProvider, ni as UiSelect, Nt as UiSidePanel, Pn as UiSwitch, vr as UiTextArea, wt as UiThemeProvider, it as UiTree, pn as UiTreeSelect, as as VueQueryPlugin, Je as Workbench, Te as WorkbenchAssistantPanel, i as WorkbenchMenu, Me as WorkbenchOutlet, De as WorkspaceViewOutlet, ri as actionResultData, Us as activeTabUrlOf, Zs as arrangeLockedMenuTabs, Ct as boundedAssistantConversationHistory, d as buildWorkbenchMegaMenuModel, ji as businessContentGenerationBatch, ut as businessContentLabel, Wi as businessContentLanguageContext, nt as businessContentLanguages, Ui as businessContentPath, kn as businessContentReadHeaders, rt as businessNotificationExpired, Vr as canQueryRecycleBin, p as canonicalDynamicModulePath, ir as changeBusinessContentTranslation, _ as clearAuthToken, ur as codeOperationErrorMessage, As as configureAuthenticationRecovery, kt as configureModuleContext, We as configureModulePageEnhancementContributions, te as configureModulePageEnhancements, Qc as configureUserPreferencePersistence, Ce as configureWorkspaceViewContributions, et as confirmAction, xe as connectAppRealtime, kr as connectRealtimeBusinessEvents, Er as connectRealtimeBusinessNotifications, qn as connectRealtimeDataChanges, ki as connectRealtimeUserNotifications, y as constructionPlanLimits, Vi as contextDataChangeChannel, fn as createAssistantCapabilitySelection, ls as createAssistantConversationClient, Vt as createAssistantDisplayObservations, Zn as createAssistantOperationConfirmation, Xe as createAssistantSurfaceRegistry, Dt as createAssistantTurnRequester, qe as createAuthClient, Ms as createBackendHttpClient, Ti as createBrowserFileTransferUpload, nn as createCodeTextPresentation, cs as createConstructionPlanClient, re as createDataChangeDispatcher, bt as createDataExchangeClient, Un as createHttpClient, Et as createLanguageContext, an as createLanguagePreferenceController, le as createLoginContextClient, Rn as createManagedDetailRelationClient, Ge as createMenuClient, se as createMenuTab, On as createModuleContext, Gn as createModuleCrudClient, a as createModulePageEnhancementRegistry, mn as createModuleTreeClient, Fn as createModuleTreeContext, Ze as createNavigatorReferenceCrudClient, gr as createNavigatorReferenceTreeClient, or as createOperationConfirmation, ne as createPageBootstrapClient, os as createQueryClient, nr as createRealtimeClient, Gr as createReferenceResolveClient, o as createSessionClient, Bi as createSseParser, yi as createStaticModuleCrudClient, Zr as createStaticModuleTreeClient, fi as createStaticResourceCrudClient, Mr as createStaticResourceTreeClient, _e as createUuid, ie as createWorkbenchMenuNodes, Ir as createWorkflowAdminClient, Zt as createWorkflowClient, tn as createWorkflowDefinitionClient, ze as createWorkspaceViewDescriptor, fe as createWorkspaceViewRegistry, Li as dataChangeChannel, Ht as defaultUiThemeSkinId, Xi as defineWorkspaceView, r as disconnectAppRealtime, me as dismissWorkspaceViewDescriptor, Vn as displayModuleRuntime, oe as dynamicModuleAliasFromPath, b as effectiveAuthToken, hr as emptyAssistantCapabilityInputSchema, ae as filterWorkbenchMenuNodes, ce as findFirstNavigationMenu, u as findWorkbenchMenuNodeById, m as findWorkbenchMenuPath, je as firstDeepRootIdOf, x as getMenuNavigationTarget, xi as hasExecutableDetailRelationMutationContract, Qr as hasExecutableDetailRelationQueryContract, wi as hasRecycleBinAbility, bn as imConversationMessageChannel, st as imMessageSendCommand, An as invokeBusinessNotificationRecordAction, dn as isHttpStreamClient, bs as isPlatformAdminRoutePage, n as isTabMenuTarget, Lr as isTextReference, Ii as isUnexpectedPlatformError, pe as isWindowMenuTarget, pi as listDetailWorkspaceMinWidth, Ri as loadBusinessContentGeneration, Sn as loadBusinessContentHistory, lt as loadBusinessContentReading, Fi as loadBusinessContentSources, Tn as loadBusinessContentTranslationHistory, En as loadLanguageCatalog, he as lookupOperationReceipt, yn as modelFailureMessage, dr as moduleAbilityCodes, Pi as moduleDataChangeChannel, He as modulePageWorkspaceViews, c as normalizeChangeSet, ot as normalizeError, Ue as normalizeMenuMineResponse, Qn as normalizeModuleListResponse, ei as normalizeModulePageResponse, gi as normalizeModuleRecord, sr as normalizeModuleTreeResponse, wn as organizationPublicDataChangeChannel, ht as organizationPublicNotificationChannel, Qe as originalPresentation, Pt as pageActionEntryDescription, qt as pageActionEntryTitle, vn as pageActionEntryVisible, qi as pageActionIntent, s as pageAssistantCatalog, Le as pageDescriptorFromUrl, A as pageDescriptorToUrl, Ne as pageInstanceKeyOf, w as pagePublicationDigest, vi as parseEmptyAssistantCapabilityInput, Ve as parseOperationReceiptReference, _s as platformAdminModuleRoutes, vs as platformAdminRouteLayouts, gs as platformAdminRoutePrefixes, hs as platformAdminRoutes, Mn as platformCodeTextOriginal, St as platformCodeTextReference, Ni as platformErrorCodes, Bt as platformLanguageContext, dt as platformPingCommand, _t as prepareBusinessContentTranslation, Jn as presentPlatformError, Ai as presentPlatformInfo, Hi as presentPlatformMessage, rr as presentPlatformSuccess, S as presentWorkbenchRealtimeStatus, Pr as presentationLabel, Xr as provideAssistantSurfaceHost, Be as provideCurrentUserContext, si as provideLanguageContext, Tt as provideModuleContextConfig, qr as provideRecordReadRefreshGuard, k as provideWorkbenchNavigation, zr as provideWorkspaceUnsavedStateRegistrar, Re as provideWorkspaceViewHost, ss as queryKeys, Dn as readAssistantAvailability, rn as realtimeDestinations, Rr as realtimeMessageTypes, Jt as recordBusinessContentArray, Qt as recordBusinessContentText, $e as recordDataChangeChannel, on as recordPresentationLabel, vt as recordPresentationText, C as refreshModulePageList, ln as refreshWorkflowRecordActions, er as registerUiLanguageLocales, ic as removeLockedMenuTabs, pt as requestBusinessContentGeneration, Cn as resolveGlobalErrorPresentation, br as resolveOperationErrorMessage, ye as resolvePageDescriptor, ys as resolvePlatformAdminRoute, jt as resolvePresentationText, Ft as resolveRecordDetailFields, Jr as resolveRecordQueryListColumns, Yi as resolveRecordReadEntry, Wr as resolveWebActionResult, Or as resolveWebActionResultMessage, Ae as resolveWorkspaceView, Fr as resourceDataChangeChannel, Yt as resourceRecordDataChangeChannel, $r as restoreAssistantOperationReceipt, Tc as restoreLockedTabPreference, $s as restoreLockedWorkbenchTabs, sl as restoreThemeSkinPreference, Ws as restoreWorkbenchStartupStateFromUrl, ke as routeUrlWithOpenOptions, ci as runAssistantConversation, Lt as runAssistantStep, di as sameAssistantInvocationToken, l as saveAuthSessionId, f as saveAuthToken, Ec as saveLockedTabPreference, cl as saveThemeSkinPreference, $t as sessionActivityCommand, h as storedAuthSessionId, ee as storedAuthToken, be as subscribeAppBusinessEvents, g as subscribeAppDataChanges, ve as syncModulePageWorkspaceViewContributions, E as tabIdentityKeyOf, Oe as tabKeyOf, sn as tenantPublicDataChangeChannel, yt as tenantPublicNotificationChannel, It as textReferenceMatchesOriginal, $ as themeSkinPreferenceKey, Gt as translatedPresentation, Fe as tryPageDescriptorFromUrl, li as uiThemeSkinById, Rt as uiThemeSkins, fr as unwrapResponsePayload, nc as updateLockedMenuTabs, ti as uploadedFileId, jr as useAssistantSurfaceHost, Yn as useBusinessContentGenerationBatch, ai as useBusinessContentReading, Ke as useCurrentUserContext, zn as useLanguageContext, Ut as useModuleContext, ui as useModuleHttpClient, zt as useModuleTreeContext, Ds as usePageDescriptor, Es as usePageRoute, Ar as useRecordReadRefreshGuard, Dr as useRecordReadRefreshRevision, Ji as useRecordReadSession, we as useWorkbenchNavigation, Yr as useWorkspaceDetailSurface, de as useWorkspaceViewHost, Ee as useWorkspaceViewNavigation, tt as useWorkspaceViewUnsavedState, Mt as userBusinessEventChannel, Kt as userBusinessNotificationChannel, mt as userFacingErrorMessage, gn as userImMessageChannel, Gi as userNotificationChannel, ii as userPreferences, Tr as webDataChangeKey, mi as webDataChangeTypes, Kn as webDataChanges, Ye as withHttpHeaders, In as withLanguageContext, O as withPageInstanceKey, Oi as withWebActionResultChanges, hn as withoutRecordPresentation };
|