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